comparison frontends/src/primitivus/xmlui.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 06f44f797a1b
comparison
equal deleted inserted replaced
609:84a6e83157c2 610:c8c07c920e30
37 if isinstance(pile, urwid.Text): 37 if isinstance(pile, urwid.Text):
38 self._w.widget_list[self.idx] = urwid.Pile([widget]) 38 self._w.widget_list[self.idx] = urwid.Pile([widget])
39 if self.idx == 1: 39 if self.idx == 1:
40 self._w.set_focus(1) 40 self._w.set_focus(1)
41 else: 41 else:
42 pile.contents.append((widget,('weight',getattr(self,'weight_'+str(self.idx)), False))) 42 pile.contents.append((widget,('weight',getattr(self,'weight_'+str(self.idx)))))
43 self.idx = (self.idx + 1) % 2 43 self.idx = (self.idx + 1) % 2
44 44
45 class InvalidXMLUI(Exception): 45 class InvalidXMLUI(Exception):
46 pass 46 pass
47 47