class NM(GObject.Object):
name = GObject.Property(type=str)
def init(self, name):
super().init()
self.name = name
ls = Gio.ListStore()
for i in range(20):
ls.append(NM(i))
ss = Gtk.SingleSelection()
ss.set_model(ls)
grid.set_model(ss)
factory = Gtk.SignalListItemFactory()
First of all, this code is incomprehensible and incomplete. Please use the forum’s code formatting tool and include a minimum working example, if possible, include information such as error messages too.
That said, Gtk.Image does not have a set_selectable() method.