Handling Gtk.StringList changes in Python

G’day!

I’m missing a bit of documentation here. Here’s the code:

self._model = Gtk.StringList()
...
self._model.connect("items_changed", self._on_string_list_changed)
...
def _on_string_list_changed(self, instance, foo, bar, baz):
    # foo, bar and baz are integers are passed as integers.
    ...

What are foo, bar and baz here? GTK does complain if I don’t have the right number of parameters.

Many thanks,

J.R.

A Gtk.StringList implements Gio.ListModel, so you need to check the documentation for that interface as well.

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.