[Urwid] FileChooser

Rebecca Breu rebecca at rbreu.de
Fri Jul 7 09:26:26 EDT 2006


Hi all!

It's been a while since I said I would try programming a file dialog, but
here it is at last: The first version of my FileChooser.

It displays the subdirectories and files in the selected directory in two
different ListBoxes, and the whole filename of the selected file in an
Edit widget. The user can choose from the ListBoxes, or type an arbitrary path
in the Edit widget. After pressing enter in the Edit widget, the ListBoxes will
be updated accordingly.

The FileChooser has some text in English, but one can easiliy create a new
widget inheriting from FileChooser and alter the string constants.

Maybe it would be nice to have some sort of filename filtering, so that only
files of a specific type (e.g. *.py) will be displayed?


Critics, enhancements, suggestions and the like are welcome. :)


Hava a nice weekend,
Rebecca
-------------- next part --------------
A non-text attachment was scrubbed...
Name: filechooser.py
Type: text/x-python
Size: 10334 bytes
Desc: not available
Url : http://lists.excess.org/pipermail/urwid/attachments/20060707/c0a30bd0/filechooser.py


More information about the Urwid mailing list