Button#

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

Bases: Gtk.Button

A button.

Parameters:

**kwargs -- Properties to set.

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),
)
gproperty on_click: Callable#
  • read-write

The function to call on left click.

gproperty on_right_click: Callable#
  • read-write

The function to call on right click.

gproperty on_middle_click: Callable#
  • read-write

The function to call on middle click.