Gtk.PasswordEntry¶
- Subclasses:
None
Methods¶
- Inherited:
Gtk.Widget (181), GObject.Object (37), Gtk.Accessible (15), Gtk.Buildable (1), Gtk.Editable (27)
- Structs:
class |
|
|
|
|
Virtual Methods¶
Properties¶
- Inherited:
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r/w/en |
|||
r/w/en |
|||
r/w |
|||
r/w/en |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
Emitted when the entry is activated. |
Fields¶
- Inherited:
Class Details¶
- class Gtk.PasswordEntry(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
GtkPasswordEntry
is an entry that has been tailored for entering secrets.An example
Gtk.PasswordEntry
It does not show its contents in clear text, does not allow to copy it to the clipboard, and it shows a warning when Caps Lock is engaged. If the underlying platform allows it,
GtkPasswordEntry
will also place the text in a non-pageable memory area, to avoid it being written out to disk by the operating system.Optionally, it can offer a way to reveal the contents in clear text.
GtkPasswordEntry
provides only minimal API and should be used with the [iface`Gtk`.Editable] API.- CSS Nodes
`` entry.password ╰── text
├── image.caps-lock-indicator ┊
GtkPasswordEntry
has a single CSS node with name entry that carries a .passwordstyle class. The text Css node below it has a child with name image and style class .caps-lock-indicator for the Caps Lock icon, and possibly other children.- Accessibility
GtkPasswordEntry
uses theGtk.AccessibleRole.TEXT_BOX
role.- Returns:
the menu model
- Return type:
Gets the menu model set with
Gtk.PasswordEntry.set_extra_menu
().
- Parameters:
model (
Gio.MenuModel
orNone
) – aGMenuModel
Sets a menu model to add when constructing the context menu for self.
Signal Details¶
- Gtk.PasswordEntry.signals.activate(password_entry)¶
- Signal Name:
activate
- Flags:
- Parameters:
password_entry (
Gtk.PasswordEntry
) – The object which received the signal
Emitted when the entry is activated.
The keybindings for this signal are all forms of the Enter key.
Property Details¶
- Gtk.PasswordEntry.props.activates_default¶
- Name:
activates-default
- Type:
- Default Value:
- Flags:
Whether to activate the default widget when Enter is pressed.
- Name:
extra-menu
- Type:
- Default Value:
- Flags:
A menu model whose contents will be appended to the context menu.
- Gtk.PasswordEntry.props.placeholder_text¶
-
The text that will be displayed in the
GtkPasswordEntry
when it is empty and unfocused.