[Urwid] Two questions
Park Shinjo
peremen at gmail.com
Fri Jul 25 00:30:30 EDT 2008
2008/7/25 Ian Ward <ian at excess.org>:
> Park Shinjo wrote:
>> 1. Is it possible to input password-like text with Urwid? For example,
>> character is recorded internally but no text or just star(*) is
>> displayed.
>
> This is a common question.. Maybe it's time to add a PasswordEdit class,
> or at least a good example on the web site.
>
> The simplest way is to create an Edit subclass, eg:
>
> class PasswordEdit(urwid.Edit):
> def get_text(self):
> return self.caption + "*"*len(self.edit_text), self.attrib
Thank you. That's what I wanted for.
>>
>> 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?
More information about the Urwid
mailing list