I get some problems with pyhook work together with my wxpython GUI.
What I have done so far is help to integrate pyhook into pymouse which puts mouse event listener inside a threading.Thread.
So as shown in http://github.com/pepijndevos/PyMouse/blob/master/windows.py there is a pythoncom.PumpWaitingMessages() loop inside run function of Thread. To get mouse events from pyhook inside my gui I use wx.PostEvent(). No problems until now.
The problem occurs when I want to close my gui. The close event don't pass my gui.
How to use pyhook inside a gui?
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hallo,
I get some problems with pyhook work together with my wxpython GUI.
What I have done so far is help to integrate pyhook into pymouse which puts mouse event listener inside a threading.Thread.
So as shown in http://github.com/pepijndevos/PyMouse/blob/master/windows.py there is a pythoncom.PumpWaitingMessages() loop inside run function of Thread. To get mouse events from pyhook inside my gui I use wx.PostEvent(). No problems until now.
The problem occurs when I want to close my gui. The close event don't pass my gui.
How to use pyhook inside a gui?