LockButton

Deprecated since version 4.10: This widget will be removed in GTK 5

class LockButton(**properties: Any)

Superclasses: Button, Widget, InitiallyUnowned, Object

Implemented Interfaces: Accessible, Actionable, Buildable, ConstraintTarget

Constructors:

LockButton(**properties)
new(permission:Gio.Permission=None) -> Gtk.Widget

Constructors

class LockButton
classmethod new(permission: Permission | None = None) Widget

Creates a new lock button which reflects the permission.

Deprecated since version 4.10: This widget will be removed in GTK 5

Parameters:

permission – a GPermission

Methods

class LockButton
get_permission() Permission | None

Obtains the GPermission object that controls button.

Deprecated since version 4.10: This widget will be removed in GTK 5

set_permission(permission: Permission | None = None) None

Sets the GPermission object that controls button.

Deprecated since version 4.10: This widget will be removed in GTK 5

Parameters:

permission – a GPermission object

Properties

class LockButton
props.permission: Permission

The `GPermission object controlling this button.

Deprecated since version 4.10: This widget will be removed in GTK 5

props.text_lock: str

The text to display when prompting the user to lock.

Deprecated since version 4.10: This widget will be removed in GTK 5

props.text_unlock: str

The text to display when prompting the user to unlock.

Deprecated since version 4.10: This widget will be removed in GTK 5

props.tooltip_lock: str

The tooltip to display when prompting the user to lock.

Deprecated since version 4.10: This widget will be removed in GTK 5

props.tooltip_not_authorized: str

The tooltip to display when the user cannot obtain authorization.

Deprecated since version 4.10: This widget will be removed in GTK 5

props.tooltip_unlock: str

The tooltip to display when prompting the user to unlock.

Deprecated since version 4.10: This widget will be removed in GTK 5