On Wednesday, 22 of September 2010, Mariusz Kruk wrote:
> Don't append lalista. Append the contents of loop itself.
I meant listbox of course, not the loop :-)
For example, in one of my programs, I have a class which has a listbox.
I define the listbox by:
contents=contentlist(a,am,fm,sam,sfm)
self.listbox=urwid.ListBox(contents)
(contentlist is a function which gets data from external source and builds a
list of items)
Then, at some point, I modify the contents by calling simply:
self.listbox.body.contents=contentlist(cat,am,fm,sam,sfm)
--
\------------------------/
| [email protected] |
| http://epsilon.eu.org/ |
/------------------------\
_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid