ListBox#
- class ignis.widgets.Widget.ListBox(*args: Any, **kwargs: Any)#
Bases:
Gtk.ListBox
A vertical list that allows selecting rows. Well suited, for example, for a navigation bar.
- Parameters:
**kwargs -- Properties to set.
Widget.ListBox( rows=[ Widget.ListBoxRow( child=Widget.Label(label="row 1"), on_activate=lambda x: print("selected row 1"), ), Widget.ListBoxRow( child=Widget.Label(label="row 2"), on_activate=lambda x: print("selected row 2"), ), ] )
- gproperty rows: list[ListBoxRow]#
read-write
A list of rows.