[Urwid] Columns set_focus problem
Ian Ward
ian at excess.org
Sun Jul 23 19:37:16 EDT 2006
Sébastien Pierre wrote:
> Hi !
>
> The Columns.set_focus does not work as the Pile.set_focus does (pile
> takes an int, columns takes a widget). This small modification make
> Columns.set_focus take an int too:
>
> def set_focus(self, widget):
> """Set the column in focus with a widget in self.widget_list."""
> if type(widget) != int:
> position = self.widget_list.index(widget)
> else:
> position = widget
> self.focus_col = position
Thanks. The change will appear in the next release.
Ian
More information about the Urwid
mailing list