Re: [Pyobjc-dev] HotKeyPython sample question
Brought to you by:
ronaldoussoren
From: ytrewq1 <yt...@gm...> - 2006-07-16 08:36:30
|
Wow, thanks for that. I hope it or something similar makes it into Python's Carbon Events support :-) On 7/16/06, Nicholas Riley <nj...@ui...> wrote: > On Sun, Jul 16, 2006 at 05:11:40PM +0900, ytrewq1 wrote: > > I'm looking at the HotKeyPython sample and I noticed that > > RegisterEventHotKey returns things like: > > > > <_CarbonEvt.EventHotKeyRef object at 0x......> > > > > while when I call data1 on the event I get in sendEvent_, > > I seem to get integers back. > > > > How can I translate between these two? I tried dir() on > > the returned _CarbonEvt.EventHotKeyRef objects to see > > if there were any relevant-looking things, but I didn't notice > > anything that looked usable. > > I wrote a module to do this: > > <http://dev.sabi.net/svn/dev/trunk/StreamVision/HotKeymodule.c> > > An example of its use: > > <http://dev.sabi.net/svn/dev/trunk/StreamVision/StreamVision.py> > > There's also a setup.py that explains how to compile it. I guess this > should be part of Python's Carbon Events support, but I never had time > to do anything about it. > > -- > Nicholas Riley <nj...@ui...> | <http://www.uiuc.edu/ph/www/njriley> > |