EventBox#
- class ignis.widgets.Widget.EventBox(*args: Any, **kwargs: Any)#
Bases:
Box
The same
Box
, but it can receive events.Widget.EventBox( child=[Widget.Label(label='this is eventbox'), Widget.Label(label="It can contain multiple child as Widget.Box")], vertical=True, homogeneous=False, spacing=52, on_click=lambda self: print("clicked!"), on_right_click=lambda self: print("right clicked!"), on_middle_click=lambda self: print("middle clicked!"), on_hover=lambda self: print("hovered!"), on_hover_lost=lambda self: print("hover lost((("), on_scroll_up=lambda self: print("scrolled up!"), on_scroll_down=lambda self: print("scrolled down!") )