2011-09-13 15 views
5
Hep (görüntüleme dosyalar için bir IconView ile kullanarak) Görüntü ile bir ListStore oluşturmak için bu kullanılan PyGtk yılında

:Python & GTK3: Bir Liststore nasıl oluşturulur

store = gtk.ListStore(str, gtk.gdk.Pixbuf, bool) 

Ama çözemiyorum Bunu Python 3 ve PyGObject ile nasıl yapabilirsiniz.

cevap

8

İşte nasıl:

from gi.repository import Gtk, GdkPixbuf 
store = Gtk.ListStore(str, GdkPixbuf.Pixbuf, bool) 
İlgili konular