in reply to Password widget for Gtk-Perl?
I think you have to set a property on the Entry widget to hide the text - similiar to -show => '*' for Perl/Tk (Entry widget). This code might make it so that the characters being typed are not visible.
$entry->set_visibility ($visibility);
Where $visibility is a boolean value.
Here's some info from http://www.gnome.org/~james/pygtk-docs/class-gtkentry.html - a page on gtk.
gtk.Entry.set_invisible_char instance.set_invisible_char(ch); ch a Unicode character Sets the character to use in place of the actual text when gtk.En +try.set_visibility() has been called to set text visibility to FALSE. + i.e. this is the character used in "password mode" to show the user +how many characters have been typed. The default invisible char is an + asterisk ('*'). If you set the invisible char to 0, then the user wi +ll get no feedback at all; there will be no text on the screen as the +y type.
I didn't see any Perl/gtk calls to set_invisible_char, but it doesn't mean it doesn't exist.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Password widget for Gtk-Perl?
by TrinityInfinity (Scribe) on May 29, 2002 at 18:35 UTC |