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.
Widget.ListBox( rows=[ Widget.ListBoxRow(label="row 1", on_activate=lambda x: print("selected row 1")), Widget.ListBoxRow(label="row 2", on_activate=lambda x: print("selected row 2")) ] )
- property rows: list[ListBoxRow]#
optional, read-write
A list of rows.