更改Macbook(Pro)键盘背光的亮度 [英] Changing brightness of the Macbook(Pro) keyboard backlight

查看:431
本文介绍了更改Macbook(Pro)键盘背光的亮度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

以编程方式,如何使用Python修改Macbook或Macbook Pro上的背光键盘的亮度?

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

推荐答案

Amit Singh在在线奖金一章,但是使用C这样做-我不确定是否存在Python扩展来从Python进行相同的工作,也许是PyObjC的一部分(否则,这样的扩展会必须编写-或ctypes用于直接从Python [shudder ;-)]访问共享的C库.

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;-)]).

这篇关于更改Macbook(Pro)键盘背光的亮度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆