:right-sidebar: True SwitchRow =================================================================== .. currentmodule:: gi.repository.Adw .. versionadded:: 1.4 .. class:: SwitchRow(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Adw.ActionRow`, :class:`~gi.repository.Adw.PreferencesRow`, :class:`~gi.repository.Gtk.ListBoxRow`, :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: :: SwitchRow(**properties) new() -> Gtk.Widget Constructors ------------ .. rst-class:: interim-class .. class:: SwitchRow :no-index: .. classmethod:: new() -> ~gi.repository.Gtk.Widget Creates a new ``AdwSwitchRow``. .. versionadded:: 1.4 Methods ------- .. rst-class:: interim-class .. class:: SwitchRow :no-index: .. method:: get_active() -> bool Gets whether ``self`` is in its "on" or "off" position. .. versionadded:: 1.4 .. method:: set_active(is_active: bool) -> None Sets whether ``self`` is in its "on" or "off" position .. versionadded:: 1.4 :param is_active: whether ``self`` should be active Properties ---------- .. rst-class:: interim-class .. class:: SwitchRow :no-index: .. attribute:: props.active :type: bool Whether the switch row is in the "on" or "off" position. .. versionadded:: 1.4