[Urwid] Completely changing listbox contents
mammar at gmail.com
Tue Jul 20 11:20:18 EDT 2010
check the browse.py example at following link
and source code here
On Tue, Jul 20, 2010 at 2:07 PM, Mariusz Kruk
<Mariusz.Kruk at epsilon.eu.org>wrote:
> I'm sorry if it happens to get sent twice. I sent it at first from other
> address than I was subscribed with and was not sure whether it got accepted
> filtered. Anyways, the original message follows :-)
> Hello there.
> I'm trying to find a "proper" approach to displaying some filesystem-like
> I have some objects, let's call them directories and files for simplicity.
> What I want to achieve is to present it in a "one depth level at a time"
> approach (like one of Norton Commander panels, for example).
> I think I can construct a suitable ListWalker. But I'm not sure how to
> approach the problem of traversing the directories.
> If I do a MyDirListWalker(directoryobject), the "natural" approach would be
> simply switch in the ListBox to another MyDirListWalker() based on another
> directory. But I'm not sure if the ListBox will be ok with that.
> Or should I just remove all contents from the old listwalker and add now
> I think this approach is "uglier".
> Any ideas/advices?
> .\.Kruk at epsilon.eu.org.\.\.
> \.http://epsilon.eu.org/\ <http://epsilon.eu.org/%5C>.\
> Urwid mailing list
> Urwid at lists.excess.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Urwid