:right-sidebar: True LockButton =================================================================== .. currentmodule:: gi.repository.Gtk .. deprecated:: 4.10 This widget will be removed in GTK 5 .. class:: LockButton(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gtk.Button`, :class:`~gi.repository.Gtk.Widget`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Implemented Interfaces: :class:`~gi.repository.Gtk.Accessible`, :class:`~gi.repository.Gtk.Actionable`, :class:`~gi.repository.Gtk.Buildable`, :class:`~gi.repository.Gtk.ConstraintTarget` :Constructors: :: LockButton(**properties) new(permission:Gio.Permission=None) -> Gtk.Widget Constructors ------------ .. rst-class:: interim-class .. class:: LockButton :no-index: .. classmethod:: new(permission: ~gi.repository.Gio.Permission | None = None) -> ~gi.repository.Gtk.Widget Creates a new lock button which reflects the ``permission``. .. deprecated:: 4.10 This widget will be removed in GTK 5 :param permission: a ``GPermission`` Methods ------- .. rst-class:: interim-class .. class:: LockButton :no-index: .. method:: get_permission() -> ~gi.repository.Gio.Permission | None Obtains the ``GPermission`` object that controls ``button``. .. deprecated:: 4.10 This widget will be removed in GTK 5 .. method:: set_permission(permission: ~gi.repository.Gio.Permission | None = None) -> None Sets the ``GPermission`` object that controls ``button``. .. deprecated:: 4.10 This widget will be removed in GTK 5 :param permission: a ``GPermission`` object Properties ---------- .. rst-class:: interim-class .. class:: LockButton :no-index: .. attribute:: props.permission :type: ~gi.repository.Gio.Permission The `GPermission object controlling this button. .. deprecated:: 4.10 This widget will be removed in GTK 5 .. attribute:: props.text_lock :type: str The text to display when prompting the user to lock. .. deprecated:: 4.10 This widget will be removed in GTK 5 .. attribute:: props.text_unlock :type: str The text to display when prompting the user to unlock. .. deprecated:: 4.10 This widget will be removed in GTK 5 .. attribute:: props.tooltip_lock :type: str The tooltip to display when prompting the user to lock. .. deprecated:: 4.10 This widget will be removed in GTK 5 .. attribute:: props.tooltip_not_authorized :type: str The tooltip to display when the user cannot obtain authorization. .. deprecated:: 4.10 This widget will be removed in GTK 5 .. attribute:: props.tooltip_unlock :type: str The tooltip to display when prompting the user to unlock. .. deprecated:: 4.10 This widget will be removed in GTK 5