Primitivus: fixed xmlui/chat bad contents change

This commit is contained in:
Goffi 2013-03-10 20:54:45 +01:00
commit fc74cc35d0
2 changed files with 2 additions and 2 deletions

View file

@ -185,7 +185,7 @@ class Chat(urwid.WidgetWrap, QuickChat):
def __appendGamePanel(self, widget):
assert (len(self.pile.contents) == 1)
self.pile.contents.insert(0,(widget,('weight', 1, False)))
self.pile.contents.insert(0,(widget,('weight', 1)))
self.pile.contents.insert(1,(urwid.Filler(urwid.Divider('-'),('fixed', 1))))
self.host.redraw()

View file

@ -39,7 +39,7 @@ class Pairs(urwid.WidgetWrap):
if self.idx == 1:
self._w.set_focus(1)
else:
pile.contents.append((widget,('weight',getattr(self,'weight_'+str(self.idx)), False)))
pile.contents.append((widget,('weight',getattr(self,'weight_'+str(self.idx)))))
self.idx = (self.idx + 1) % 2
class InvalidXMLUI(Exception):