Quoting Pedro Jorge Caridade <[EMAIL PROTECTED]>:

> created two empty (actually with one empty element) listboxes. I was
> expecting (again sorry if i going to say something really stupid) that
> when I call "update_readings()" function the listbox contents should be
> updated. But nothing happens. What am I doing wrong? What have I missed?

Line 94 (in update_readings) should be

self.queue_widget.w = urwid.AttrWrap(urwid.ListBox(#

instead of

self.queue_widget.body =


Just a note on your code: You are using spaces *and* tabs for indentation.
You should never mix spaces and tabs for indentation, that could lead to
misterious indentation errors. The python styleguide suggests using 4 spaces.


Yours,
Rebecca



_______________________________________________
Urwid mailing list
[email protected]
http://lists.excess.org/mailman/listinfo/urwid

Reply via email to