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 modified?
Dominic On Sat, Jun 20, 2009 at 2:14 PM, Ian Ward<[email protected]> 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 > [email protected] > http://lists.excess.org/mailman/listinfo/urwid > > _______________________________________________ Urwid mailing list [email protected] http://lists.excess.org/mailman/listinfo/urwid
