[Urwid] A more complex urwid password edit
Andrew Psaltis
ampsaltis at gmail.com
Sun Mar 1 22:21:13 EST 2009
Howdy, folks.
Here is a more complicated password edit (Ian, I mentioned this over IRC).
It allows for three different types of "masking modes", act like a password
edit all of the time, when not in focus, or never. For what I have tried to
use it for, it works quite well.
Also, included with the edit is an example program which demonstrates a
problem that I have been having with it (and a fix that seems a little
weird, IMO). If anyone wants to take a stab at why this is happening, feel
free.
The problem is as follows: if you type something into the edit and leave it
(going to the footer), the text will turn to stars (by design). However, if
you try to return from the footer to the body, the text doesn't revert back
to plain until you press a key that makes the edit react (left,right,
printable characters). I don't know what's up with that. Any help
(comments, and criticisms, too) would be appreciated
~Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.excess.org/pipermail/urwid/attachments/20090301/897956a9/attachment.htm
-------------- next part --------------
A non-text attachment was scrubbed...
Name: maskingedit.py
Type: application/octet-stream
Size: 3393 bytes
Desc: not available
Url : http://lists.excess.org/pipermail/urwid/attachments/20090301/897956a9/attachment.obj
More information about the Urwid
mailing list