[Urwid] Completely changing listbox contents

Muhammad Ammar 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
> or
> filtered. Anyways, the original message follows :-)
> Hello there.
> I'm trying to find a "proper" approach to displaying some filesystem-like
> structure.
> 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
> to
> 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
> ones?
> 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
> http://lists.excess.org/mailman/listinfo/urwid
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.excess.org/pipermail/urwid/attachments/20100720/23a2c347/attachment.htm 

More information about the Urwid mailing list