[Pyobjc-dev] HotKeyPython sample question
Brought to you by:
ronaldoussoren
From: ytrewq1 <yt...@gm...> - 2006-07-16 08:11:42
|
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. Looking at similar samples in Objective-C I think what I see is type-casting being used (i.e. (int)EventHotKeyRef). Thanks for any help. |