[Pythonmac-SIG] MacPython 2.3b2, CarbonEvt.ReceiveNextEvent()

Mark Kim timbuktu at myrealbox.com
Thu Jul 17 20:06:48 EDT 2003


Hi all,

I'm a developer with Transana (www.transana.org) and I am working on 
integrating Quicktime into our program using WxPython, MacPython 2.3b2, 
and ctypes 0.6.2.

My question pertains to Carbon events, specifically ReceiveNextEvent. 
At the Apple developer website, ReceiveNextEvent has an inList variable 
(const EventTypeSpec *inList) which can be specified as Null "if any 
event should cause this function to return."  I've tried passing 
ReceiveNextEvent a 0 and None/NULL, but it always throws an error, 
"TypeError: argument must be 2-item sequence, not None" or "int".  I 
looked at _CarbonEvtModule.c and it doesn't look like I can pass 
ReceiveNextEvent a Null because it demands a type of EventTypeSpec.  The 
only way I can think to avoid this is to make a list of all the 
eventhandlers *groan*.

Am I making this too difficult on myself and is there a better solution?

Thanks!
Mark




More information about the Pythonmac-SIG mailing list