[Urwid] How do you use SimpleListWalker?

Dominic LoBue dom.lobue at gmail.com
Sat Jun 20 18:18:53 EDT 2009

Ohh, I see. Thanks, that would never have occurred to me!

That just leaves me with two remaining questions: If it is possible to
share the same set of private variables between two classes (say
parent and child, like how methods work with self), how is it done? If
sharing is not possible, then how do I communicate to the
convContainer dict that one of the lists it contains has been


On Sat, Jun 20, 2009 at 2:14 PM, Ian Ward<ian at excess.org> wrote:
> Dominic LoBue wrote:
>> I just found what you're talking about in browse.py. You basically
>> have self.widget being set to urwid.Text(somevar) when you initialize
>> the class, when somevar being passed when you instantiate the class.
>> This would make the text that the widget displays static, wouldn't it?
>> That won't work in my case since I plan on dynamically displaying a
>> little summary on the newest messages in the thread (subject, labels,
>> senders, date of last message, etc).
> You can always call self.widget.set_text(somevalue) when the subject,
> senders, labels, etc change.  Then the widget knows it needs to be redrawn.
> Ian
> _______________________________________________
> Urwid mailing list
> Urwid at lists.excess.org
> http://lists.excess.org/mailman/listinfo/urwid

More information about the Urwid mailing list