Re: [Pyobjc-dev] Listening for mouse events
Brought to you by:
ronaldoussoren
From: Ratko J. <rja...@gm...> - 2010-03-30 21:11:12
|
I have had similar issues with capturing mouse events using carbon and PyObjC. My app works in the beginning but then for no apparent reason stops capturing events at random. On some machines it runs for a very long time, on some it stops quickly. No difference in machines either... go figure. Unfortunately I haven't been able to resolve any of them after months of intermittently looking at it. I would also be interesting in hearing if someone has experience with this. Pepijn, you said it served you well for the moving and clicking part. Could you explain a bit more what you were doing and how? Ratko On Tue, Mar 30, 2010 at 2:22 PM, Pepijn de Vos <pep...@gm...>wrote: > 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 > > > > ------------------------------------------------------------------------------ > Download Intel® Parallel Studio Eval > Try the new software tools for yourself. Speed compiling, find bugs > proactively, and fine-tune applications for parallel performance. > See why Intel Parallel Studio got high marks during beta. > http://p.sf.net/sfu/intel-sw-dev > _______________________________________________ > Pyobjc-dev mailing list > Pyo...@li... > https://lists.sourceforge.net/lists/listinfo/pyobjc-dev > |