Listening for keypress in the background

Mathias Dahl brakjoller at gmail.com
Sat Oct 22 07:36:10 EDT 2005


I have created a small Python program that is running on my desktop.

How can I make it listen for a certain keypress (say, Windows-key +
space) in a controlled fashion even when it is not the program having
focus?

I need to do this running under GNOME in Mandrake GN/Linux 10.

/Mathias



More information about the Python-list mailing list