By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
449,312 Members | 1,850 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 449,312 IT Pros & Developers. It's quick & easy.

pyHook equivalent on Linux ? (mouse and keyboard events without focus)

P: n/a

I have a Windows Pyhon-Tk app which need to capture mouse end keyboard
events even when the app is not in focus.

On Windows so far I've used the excellent PyHook which does the job

" The pyHook library wraps the low-level mouse and keyboard hooks in
the Windows Hooking API for use in Python applications."

Is there something similar on Linux (I'm using Ubuntu/Kubuntu) ?

Should I go down down to the Windows Manager ? Can my Python-Tkinter
app communicate with KDE or Gnome to know and use these events ?

Any suggestions/leads would me much appreciated. :)


Jun 16 '06 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.