Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要为我的应用程序创建一个全局热键,它应该可以在 X11 和 Windows 下工作。
您使用的是什么 GUI 工具包?通常,全局热键由桌面环境或窗口管理器处理 - 我不相信 Python 的内置工具包(tkinter)可以制作全局热键。您可能会查看用于 Unix 的xlib和用于 Windows 的 win lib。
只是一个附加的窗口,如果你在你的应用程序中使用 wxpython,你可以注册你的hotkey。例子在这里