ListBoxRow#

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

Bases: Gtk.ListBoxRow.

A row for ListBox.

Properties:
  • on_activate (Callable, optional, read-write): Function to call when the user selects the row.

  • selected (bool, optional, read-write): Whether the row is selected by default.

Widget.ListBoxRow(
    label="row 1",
    on_activate=lambda x: print("selected row 1"),
    selected=True
)