Re: [Pythonmac-SIG] Integrating aemreceive into a class--help

2010-01-12 Thread has
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,

Re: [Pythonmac-SIG] Integrating aemreceive into a class--help

2010-01-12 Thread Kevin Walzer
On 1/12/10 2:13 PM, has wrote: You don't pass self to a bound method in Python. Delete the ('', 'self', ...) tuple. My app crashes when I do that. Here's the error message: TypeError: Can't install event handler 'CoKvdman': expected 2 parameters but function 'getDomain' has 1.

Re: [Pythonmac-SIG] Integrating aemreceive into a class--help

2010-01-12 Thread Kevin Walzer
On 1/12/10 2:13 PM, has wrote: Kevin Walzer wrote: You don't pass self to a bound method in Python. Delete the ('', 'self', ...) tuple. HTH One more follow-up: The code now works! I run this code in Script Editor: tell application QuickWho get domain codebykevin.com end tell