[Pyobjc-dev] Listening for mouse events
Brought to you by:
ronaldoussoren
From: Pepijn de V. <pep...@gm...> - 2010-03-30 19:22:29
|
Hey, For my mouse control project I want to add the ability to listen to mouse events. My lib is at http://github.com/pepijndevos/PyMouse To do this on Mac I turned to PyObjC. While PyObjC served me well for the clicking and moving part of my lib, listening to events has proven problematic. First it just crashed, but since I installed a newer version of PyObjC it simply runs in an endless loop without the callback getting called. Here is a snippet of code... Can anyone see what is wrong with it? http://gist.github.com/349472 I would be very grateful if anyone could help me to get this working, I've been looking all over the internet for weeks now. Groeten, Pepijn de Vos -- Sent from my iPod Shuffle http://pepijndevos.nl |