SwitchRow

Added in version 1.4.

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.

Added in version 1.4.

Methods

class SwitchRow
get_active() bool

Gets whether self is in its “on” or “off” position.

Added in version 1.4.

set_active(is_active: bool) None

Sets whether self is in its “on” or “off” position

Added in version 1.4.

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.

Added in version 1.4.