Kevin Walzer wrote: > First, I simply import aemreceive into my app class. Next, I wrap its > "installeventhandler" function into a class method, cf: > > def installeventhandler (self, > eventcallback, > eventcode, > *parameterdefinitions): > aemreceive.installeventhandler(eventcallback, eventcode, > *parameterdefinitions, codecs=aem.Codecs()) > > Next, in my app class's __init__ method, I install the event handler like so: > > self.installeventhandler(self.getDomain, > 'CoKvdman', > ('----', 'self', > aemreceive.kae.typeUnicodeText), > ('----', 'domain', > aemreceive.kae.typeUnicodeText) > )
You don't pass self to a bound method in Python. Delete the ('----', 'self', ...) tuple. HTH has -- Control AppleScriptable applications from Python, Ruby and ObjC: http://appscript.sourceforge.net _______________________________________________ Pythonmac-SIG maillist - Pythonmac-SIG@python.org http://mail.python.org/mailman/listinfo/pythonmac-sig