./examples/kitchensink/Images.py:    def onLoad(self, sender=None):
./examples/kitchensink/Images.py:    text="This page demonstrates
GWT's support for images.  Notice in particular how it uses the
image's onLoad event to display a 'wait spinner' between the back and
forward buttons."
./examples/kitchensink/Tabs.py:    text="This page demonstrates GWT's
support for images.  Notice in particular how it uses the image's
onLoad event to display a 'wait spinner' between the back and forward
buttons."
./examples/misc/flowplayer/fp.py:    def onLoadPlayer(self):
./examples/misc/flowplayer/fp.py:    def onLoadPlugin(self, name):
./examples/dnd/DNDTest.py:    def onLoad(self):
./examples/dnd/DNDTest.py:    def onLoad(self):
./examples/dnd/DNDTest.py:    def onLoad(self):
./examples/dnd/DNDTest.py:    def onLoad(self):
./examples/dnd/DNDTest.py:    def onLoad(self):
./examples/dnd/DNDTest.py:    def onLoad(self):
./examples/dnd/DNDTest.py:    def onLoad(self):
./examples/dnd/DNDTest.py:    def onLoad(self):
./examples/dnd/DNDTest.py:    def onLoad(self):
./examples/addonsgallery/Canvas2DTab.py:    def onLoad(self, sender=None):
./library/gwt/HTTPRequest.py:    def onLoad(self, sender, event, ignorearg):
./library/gwt/HTTPRequest.py:                xmlHttp, "load", self.onLoad,
./library/gwt/ui/FlashPanel.py:    def onLoad(self):
./library/gwt/ui/Tree.py:    def onLoad(self):
./library/gwt/ui/Composite.py:        self.onLoad()
./library/gwt/ui/Widget.py:    def onLoad(self):
./library/gwt/ui/Widget.py:        self.onLoad()
./library/gwt/ui/Image.py:                listener.onLoad(self)
./library/gwt/Canvas2D.py:    def onLoad(self, sender):
./library/gwt/Canvas2D.py:                listener.onLoad(self)
./library/gwt/chart/GChart.py:    def onLoad(self):
./library/gwt/chart/GChart.py:        Composite.onLoad(self)
./library/gwt/Canvas/ImageLoader.py:    def onLoad(self, img):
./library/pyjamas/builder/Builder.py:    onLoad = ("addLoadListener", "sender"),

yeah it looks like KitchenSink has the same thing (sender=None).  bizarre!


On Fri, Dec 16, 2011 at 3:53 PM, Alain Spineux <[email protected]> wrote:
> 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