I'm new to coding and this is probably a stupid question...
I'm setting up a simple Gtk.ListStore(str) but as soon as I append(['whatever']) I get a "AttributeError: 'ListStore' object has no attribute 'insert_with_valuesv'".
I'm on Fedora 34(beta), python 3.9, GTK4.
This is a minimum example where the error happens:
#!/usr/bin/python
import gi
gi.require_version('Gtk','4.0')
from gi.repository import Gtk
simple = Gtk.ListStore(str)
simple.append(['whatever'])
Traceback (most recent call last):
File "/home/dedum/prova/provagtk2.py", line 7, in <module>
simple.append(['whatever'])
File "/usr/lib/python3.9/site-packages/gi/overrides/Gtk.py", line 1009, in append
return self._do_insert(-1, row)
File "/usr/lib/python3.9/site-packages/gi/overrides/Gtk.py", line 1001, in _do_insert
treeiter = self.insert_with_valuesv(position, columns, row)
AttributeError: 'ListStore' object has no attribute 'insert_with_valuesv'
What am I doing wrong?