Depending if I use this prototype

    def onLoad(self, sender):

File "/opt/pyjamas/share/pyjamas/library/gwt/ui/Composite.py", line
51, in onAttach
    self.onLoad()
TypeError: onLoad() takes exactly 2 arguments (1 given)

or this one:

    def onLoad(self):

File "/opt/git/pyjamas/library/gwt/ui/Image.py", line 59, in onBrowserEvent
    listener.onLoad(self)
TypeError: onLoad() takes exactly 1 argument (2 given)

I get different error at different places

It looks like google use this prototype :

void onLoad(Widget sender)

For now I use this prototype with success :

 def onLoad(self, sender=None):

Regards


-- 
Alain Spineux                   |  aspineux gmail com
Monitor your iT & Backups |  http://www.magikmon.com
Free Backup front-end       | http://www.magikmon.com/mksbackup
Your email 100% available |  http://www.emailgency.com

Reply via email to