SwitchRow
-
class SwitchRow(**properties: Any)
Superclasses: ActionRow
, PreferencesRow
, ListBoxRow
, Widget
, InitiallyUnowned
, Object
Implemented Interfaces: Accessible
, Actionable
, Buildable
, ConstraintTarget
- Constructors:
SwitchRow(**properties)
new() -> Gtk.Widget
Constructors
-
class SwitchRow
-
classmethod new() → Widget
Creates a new AdwSwitchRow
.
Methods
-
class SwitchRow
-
get_active() → bool
Gets whether self
is in its “on” or “off” position.
-
set_active(is_active: bool) → None
Sets whether self
is in its “on” or “off” position
- Parameters:
is_active – whether self
should be active
Properties
-
class SwitchRow
-
props.active: bool
Whether the switch row is in the “on” or “off” position.