Mercurial > libervia-backend
diff frontends/src/primitivus/card_game.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/card_game.py Sat Feb 23 17:50:58 2013 +0100 +++ b/frontends/src/primitivus/card_game.py Sun Feb 24 13:57:37 2013 +0100 @@ -111,15 +111,13 @@ @param hand: list of Card""" del self.columns.widget_list[:] del self.columns.column_types[:] - self.columns.widget_list.append(urwid.Text('')) - self.columns.column_types.append(('weight',1)) + self.columns.contents.append((urwid.Text(''),('weight',1, False))) for card in hand: widget = CardDisplayer(card) self.columns.widget_list.append(widget) self.columns.column_types.append(('fixed',3)) urwid.connect_signal(widget, 'click', self.__onClick) - self.columns.widget_list.append(urwid.Text('')) - self.columns.column_types.append(('weight',1)) + self.columns.contents.append((urwid.Text(''),('weight',1, False))) self.columns.set_focus(1) def __onClick(self,card_wid):