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

Discussion in 'Python' started by learner404@gmail.com, Jun 16, 2006.

  1. Guest

    Hello,

    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
    perfectly:

    " The pyHook library wraps the low-level mouse and keyboard hooks in
    the Windows Hooking API for use in Python applications."
    http://www.cs.unc.edu/~parente/tech/tr08.shtml

    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. :)

    learner404
     
    , Jun 16, 2006
    #1
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Replies:
    0
    Views:
    357
  2. Replies:
    2
    Views:
    518
    Thomas Fritsch
    Feb 7, 2005
  3. RayS

    pyHook and Win98 key events

    RayS, Feb 15, 2006, in forum: Python
    Replies:
    0
    Views:
    373
  4. =?ISO-8859-15?Q?Jan_B=F6cker?=

    pyHook equivalent for WH_SHELL hooks?

    =?ISO-8859-15?Q?Jan_B=F6cker?=, Apr 21, 2007, in forum: Python
    Replies:
    0
    Views:
    388
    =?ISO-8859-15?Q?Jan_B=F6cker?=
    Apr 21, 2007
  5. Raffi
    Replies:
    1
    Views:
    106
    Randy Webb
    Aug 6, 2005
Loading...

Share This Page