ToggleButton#

class ignis.widgets.Widget.ToggleButton(*args: Any, **kwargs: Any)#

Bases: Gtk.ToggleButton.

A toggle button widget.

Properties:
  • on_toggled (Callable, optional, read-write): Function to call when the button is toggled by the user.

Widget.ToggleButton(
    on_toggled=lambda x, active: print(active)
)