PasswordEntry
-
class PasswordEntry(**properties: Any)
Superclasses: Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Buildable
, ConstraintTarget
, Editable
- Constructors:
PasswordEntry(**properties)
new() -> Gtk.Widget
Constructors
-
class PasswordEntry
-
classmethod new() → Widget
Creates a GtkPasswordEntry
.
Methods
-
class PasswordEntry
Gets the menu model set with set_extra_menu()
.
-
get_show_peek_icon() → bool
Returns whether the entry is showing an icon to
reveal the contents.
Sets a menu model to add when constructing
the context menu for entry
.
- Parameters:
model – a GMenuModel
-
set_show_peek_icon(show_peek_icon: bool) → None
Sets whether the entry should have a clickable icon
to reveal the contents.
Setting this to False
also hides the text again.
- Parameters:
show_peek_icon – whether to show the peek icon
Properties
-
class PasswordEntry
-
props.activates_default: bool
Whether to activate the default widget when Enter is pressed.
A menu model whose contents will be appended to
the context menu.
-
props.placeholder_text: str
The text that will be displayed in the GtkPasswordEntry
when it is empty and unfocused.
-
props.show_peek_icon: bool
Whether to show an icon for revealing the content.
Signals
-
class PasswordEntry.signals
-
activate() → None
Emitted when the entry is activated.
The keybindings for this signal are all forms of the Enter key.