[Urwid] filechooser

Ian Ward ian at excess.org
Fri Oct 13 22:52:33 EDT 2006


Rebecca Breu wrote:
> class FileChooser(WidgetWrap):
...
>     def __init__(self, directory=".", file="", attr=(None, None),
>                  show_hidden=False):
>         """
>         directory, file -- default selection
>         attr -- (inner selectable widgets, selected widgets)
>         show_hidden -- If True, hidden files are shown by default.
>         """
> 
>         selection = None
>         b_pressed = None

This should probably say "self.b_pressed = None"

Ian




More information about the Urwid mailing list