CheckButton#

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

Bases: Gtk.CheckButton

A check button. If group is set, the check button behaves as a radio button.

Simple checkbutton:

Widget.CheckButton(
    label='check button',
    active=True,
)

Radio button:

Widget.CheckButton(
    group=Widget.CheckButton(label='radiobutton 1'),
    label='radiobutton 2',
    active=True,
)
property on_toggled: Callable#
  • optional, read-write

The function to call when button is toggled (checked/unchecked).