Button#

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

Bases: Gtk.Button

A button.

Widget.Button(
    child=Widget.Label(label="button"),
    on_click=lambda self: print(self),
    on_right_click=lambda self: print(self),
    on_middle_click=lambda self: print(self),
)
property on_click: Callable#
  • optional, read-write

The function to call on left click.

property on_right_click: Callable#
  • optional, read-write

The function to call on right click.

property on_middle_click: Callable#
  • optional, read-write

The function to call on middle click.