Primitivus: fixed xmlui/chat bad contents change
This commit is contained in:
parent
1cd98e8dea
commit
fc74cc35d0
2 changed files with 2 additions and 2 deletions
|
|
@ -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()
|
||||
|
||||
|
|
|
|||
|
|
@ -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):
|
||||
|
|
|
|||
Loading…
Reference in a new issue