'Changing brightness of the Macbook(Pro) keyboard backlight

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



Solution 1:[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;-)]).

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Glorfindel