Hi. It is almost exactly what I do in xyzcmd. I have a list of files and a text widget showing its name, size, permissions etc. So basically I override render() of my upper panel and inside it I change text of info panel with simple set_text(). Take a look: http://github.com/syhpoon/xyzcmd/blob/master/libxyz/ui/panel.py#L987 Its's _set_info() that does the job.
2010/9/3 Mariusz Kruk <[email protected]>: > Hello there. > Thanks to some suggestions on this list I did my directory browsing via list > updates but now I face another problem and I got no good idea which way to > approach it. > I would like to have a Pile widget which consists of my list on the top and a > window (let's say a Filler(Text)) with some description of the selected item > from the list. Let's imagine it as a list of files on the upper half of the > screen and file details on the lower half. > I need a way to update the lower window every time the focus of the upper list > changes. I thought about 'modified' signal but I create the ListWalker > implicitly by calling ListBox([...]) which gives me PollingListWalker who > doesn't emit the signal (when I tried to use SimpleListWalker, it wouldn't > update the contents when I changed them, so I can't use it). I hope there is a > simpler way than creating a subclass of ListBox or ListWalker. > I thought about filtering input to MainLoop but it seems to be a very ugly > hack. > Oh, and I'm a bit confused about Overlay widget. > I'm not sure how it's supposed to work. As far as I understand, the Overlay > widget steals the focus, so I should create the Overlay in runtime when I > need, for example, a confirmation dialog. But I can't do it. If I create my > widgets, run the MainLoop for my main widget, and then create Overlay with my > main widget as the bottom widget, nothing happens. Any suggestions here? The > docs are > > -- > Kruk@ -\ | > }-> epsilon.eu.org | > http:// -/ | > | > > _______________________________________________ > Urwid mailing list > [email protected] > http://lists.excess.org/mailman/listinfo/urwid > -- ~syhpoon _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
