pygs provides cross-platform global hotkey / shortcuts for python using PyQt4.
pygs is a wrapper for libqxt’s QxtGlobalShortcut.
My aim is to provide cross-platform support for global hotkeys (shortcuts) in python. Ideally I would like to remove the PyQt4 and libqxt dependency but that remains a (distant) future goal. I believe it is definitely possible and potentially quite useful though.
Requirements
sufficient not necessary
- Python 2.6
- Qt
- SIP
- PyQt4
Mac and Linux
To Install
make
make install
Windows
To Install
make -f Makefile.windows
make -f Makefile.windows install
See examples/simple.py
python simple.py
ctrl+alt+s – activate shortcut
ctrl+alt+f – quit application
NOTE: ctrl maps to COMMAND on macs!!!! Yeah this is crazy confusing. But it’s Qt not me :)
pygs uses
Thanks!
pygs – Python bindings to libqxt’s QxtGlobalShortcut using SIP and PyQt4. In other words, global hotkeys for PyQt4
.
Copyright © 2010 J. Matt Peterson
You may use pygs under the terms of the General Public License (GPL) Version 2 or you may contact the author for permission or a commercial license. The commercial license option is specifically provided for those who are unable or unwilling to use the GPL.