Park Shinjo wrote:
> 2008/7/25 Ian Ward <[EMAIL PROTECTED]>:
>> Park Shinjo wrote:
>>> 2. How to use multiple screens(forms) in one program? I defined
>>> several widgets as a form, and want to connect between them. Because
>>> the program isn't "wizard", links between forms should be arbitrarily.
>>>
>> This is another good candidate for an example.  In the past I have
>> switched between screens by changing the "body" of a frame widget, is
>> that the kind of thing you are looking for?
>>
> 
> Hmm... can I see the example code of it?

There is the little slideshow program I wrote:
http://excess.org/urwid/browser/contrib/trunk/oclug200604.py#L835

It just renders a completely new Frame widget every time.  You can also 
create a Frame and reuse it by changing the body part to a different 
widget whenever you need to:

     my_frame.body = some_other_widget

Ian



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

Reply via email to