comparison frontends/src/primitivus/chat.py @ 610:c8c07c920e30

Primitivus: fixed xmlui/chat bad contents change
author Goffi <goffi@goffi.org>
date Sun, 10 Mar 2013 20:54:45 +0100
parents 84a6e83157c2
children 3b02554d4c8b
comparison
equal deleted inserted replaced
609:84a6e83157c2 610:c8c07c920e30
183 self.chat_colums.contents.remove((widget, options)) 183 self.chat_colums.contents.remove((widget, options))
184 break 184 break
185 185
186 def __appendGamePanel(self, widget): 186 def __appendGamePanel(self, widget):
187 assert (len(self.pile.contents) == 1) 187 assert (len(self.pile.contents) == 1)
188 self.pile.contents.insert(0,(widget,('weight', 1, False))) 188 self.pile.contents.insert(0,(widget,('weight', 1)))
189 self.pile.contents.insert(1,(urwid.Filler(urwid.Divider('-'),('fixed', 1)))) 189 self.pile.contents.insert(1,(urwid.Filler(urwid.Divider('-'),('fixed', 1))))
190 self.host.redraw() 190 self.host.redraw()
191 191
192 def __removeGamePanel(self): 192 def __removeGamePanel(self):
193 assert (len(self.pile.contents) == 3) 193 assert (len(self.pile.contents) == 3)