Gtk.ListView
is the new list and tree widget for GTK4.
I started with a simple list model (simple_list.py). The next step is to add some hierarchy, make it a tree (simple_tree.py).
Note that, in the .ui files, type="__main__+Demo"
. This is because the Demo class is defined in the module
we start (__main__
).
#Set up
poetry install
To enable the Python virtual environment:
poetry shell
To run an example:
python -m gtk4_list_view.simple_list