diff frontends/src/primitivus/xmlui.py @ 607:c123dddaea6b

primitivus: fixed urwid issues with recent urwid versions fix bug 18
author Goffi <goffi@goffi.org>
date Sun, 24 Feb 2013 13:57:37 +0100
parents 952322b1d490
children 84a6e83157c2
line wrap: on
line diff
--- a/frontends/src/primitivus/xmlui.py	Sat Feb 23 17:50:58 2013 +0100
+++ b/frontends/src/primitivus/xmlui.py	Sun Feb 24 13:57:37 2013 +0100
@@ -41,8 +41,7 @@
             if self.idx == 1:
                 self._w.set_focus(1)
         else:
-            pile.widget_list.append(widget)
-            pile.item_types.append(('weight',getattr(self,'weight_'+str(self.idx))))
+            pile.contents.append((widget,('weight',getattr(self,'weight_'+str(self.idx)), False)))
         self.idx = (self.idx + 1) % 2
 
 class InvalidXMLUI(Exception):