Switch#
- class ignis.widgets.Widget.Switch(*args: Any, **kwargs: Any)#
Bases: Gtk.Switch.
A switch widget.
- Properties:
on_change (
Callable
, optional, read-write): Function to call when the position of the switch changes (e.g., when the user toggles the switch).
Widget.Switch( active=True, on_change=lambda x, active: print(active), )