[Urwid] an insight about the display list

Eric S. Johansson esj at harvee.org
Mon Jun 26 14:57:54 EDT 2006


if you have changing data, you need to change it inside the while loop 
processing and rendering the screen within the run method.  The hard 
part is knowing which element in the display list you need to change. 
What seems to work for me is building composite elements containing all 
of the static and dynamic fields.  Then I order those elements in the 
display list according to how I want them displayed.  I count on my 
fingers to figure out which elements is where in the list and overwrite 
the dynamic elements inside the while loop before I re-render the display.

Now onto reading the edit fields post modification.

---eric

-- 
Speech-recognition in use.  It makes mistakes, I correct some.




More information about the Urwid mailing list