ToggleButton#

class ignis.widgets.Widget.ToggleButton(**kwargs) None#

Bases: Gtk.ToggleButton

A toggle button widget.

Parameters:

**kwargs -- Properties to set.

Widget.ToggleButton(
    on_toggled=lambda x, active: print(active)
)
gproperty on_toggled: Callable | None#
  • read-write

The function to call when the button is toggled by the user.