[Urwid] simple layout - howto?
Ian Ward
ian at excess.org
Mon Jun 26 23:40:28 EDT 2006
Eric S. Johansson wrote:
> Ian Ward wrote:
>
>> you can read the user's input with user_input.get_edit_text(), modify
>> the status bar with status_bar.set_text() and change the content by
>> modifying the content_list (using in-place editing, not assignment).
>
> by in-place editing you mean changing an element of the content list?
> For example in my code there is a content list with four elements. I
> wasn't seeing every visible changes until I changed one of the elements
> to the new content.
>
>
see:
http://docs.python.org/lib/typesseq-mutable.html
When you pass a list into a ListBox or Pile widget it keeps a reference
to that list. If you want your changes to appear in the ListBox or Pile
you need to use in-place editing on that list.
Ian
More information about the Urwid
mailing list