IconView : retirer un élément
Bonjour,
Je n'arrive pas à retirer une icône d'une IconView. Voila comment j'ajoute :
Code:
1 2 3 4 5 6 7 8 9 10 11 12 13 14
| iconview = gtk.IconView()
model = gtk.ListStore(gtk.gdk.Pixbuf)
with open(self.filename, "r") as f:
path = f.readline()
path = path[0:len(path)-1]
while (not path == ""):
model.append([gtk.gdk.pixbuf_new_from_file_at_size(path, 96, 96)])
self.list_paths.append(path)
path = f.readline()
path = path[0:len(path)-1]
iconview.set_model(model)
iconview.set_pixbuf_column(0) |
self.filename est un fichier où sont stockés le chemin de mes images.
La méthode remove de ListStore existe mais je n'arrive pas à l'utiliser.
Comment faire ?
Merci d'avance.