Changing brightness of the Macbook(Pro) keyboard backlight

眉间皱痕 提交于 2019-12-30 07:15:15

问题


Programaticly, how can I modify the brightness of the backlit keyboard on a Macbook or Macbook Pro using Python?


回答1:


Amit Singh discusses these undocumented APIs in this online bonus chapter, but does so using C -- I'm not sure if a Python extension exists to do the same work from Python, perhaps as part of PyObjC (otherwise, such an extension would have to be written -- or ctypes used to access the shared C libraries directly from Python [shudder;-)]).



来源:https://stackoverflow.com/questions/991813/changing-brightness-of-the-macbookpro-keyboard-backlight

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!