[Pyobjc-dev] handle function calls with struct arguments?
Brought to you by:
ronaldoussoren
|
From: Ian J. <enj...@gm...> - 2008-01-27 04:02:45
|
I am trying to use a framework with some delegate functions that pass
structs in the call:
- (void) buttonChanged:(WiiButtonType) type isPressed:(BOOL) isPressed;
when I try to make this python function:
def buttonChanged_isPressed_(self, type, isPressed):
I get an error around pythonify_c_value
if I change it to:
def buttonChanged_isPressed_(self, *posargs, **kwdargs):
print posargs
print kwdargs
the output is () and {}
Does pyobjc not support structs in function calls?
here is my code in case anyone is interested:
http://enja.org/enj/enjapen/enjapenAppDelegate.py
and here is the library I am trying to use:
http://darwiin-remote.svn.sourceforge.net/viewvc/darwiin-remote/WiiRemoteFramework/trunk/WiiRemote.h?view=markup
--
Ian Johnson
Ignorance is Piss.
|