Gnome中Python应用程序的全局热键 [英] Global hotkey for Python application in Gnome
本文介绍了Gnome中Python应用程序的全局热键的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我想为在Gnome中运行的Python应用程序分配一个全局热键.我怎么做?我所能找到的只有两年的帖子说,好吧,几乎什么都没有:-)
I would like to assign a global hotkey to my Python application, running in Gnome. How do I do that? All I can find are two year old posts saying, well, pretty much nothing :-)
推荐答案
查看桌面栏源代码-他们这样做; afaik,他们调出一个与X11交互的C库来完成这项工作
Check out the Deskbar source code - they do this; afaik, they call out a C library that interacts with X11 to do the job
这篇关于Gnome中Python应用程序的全局热键的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文