allo to lex, um whoopsie :)
you remember this?
diff --git a/library/gwt/ui/Panel.py b/library/gwt/ui/Panel.py
index 9ce7c57..0ce39dc 100644
--- a/library/gwt/ui/Panel.py
+++ b/library/gwt/ui/Panel.py
@@ -63,12 +63,12 @@ class PanelBase(object):
existing = self.getWidget(index)
if existing is not None:
self.remove(existing)
- self.insert(widget, self.getElement(), index)
+ self.insert(widget, index)
def append(self, widget):
return self.add(widget)
- def __setitem__(self, index, widget):
+ def __setitem__(self, index):
return self.setWidget(index, widget)
def __getitem__(self, index):
um unfortunately that broke PyJSGlade (i just discovered today). the
fix that needs to be done is that the self.insert function needs to be
sorted (in each Panel) *not* adding self.getElement() as the 2nd
argument.
the reason is that e.g. VerticalPanel it uses self.getBody() *not*
self.getElement() as the container in which to insert the item. but
by calling self.insert with 3 args, that all goes pear-shaped.
so anyway i've reverted just that bit (not the __setitem__ that was
obviously the correct fix) and if there are any problems it is the
self.insert override in the deriving classes that need to be fixed, to
support both the 2-arg and the 3-arg syntax, see HorizontalPanel and
VerticalPanel for examples.
l.