Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
PyGtkでは、私は常にこれを使用して画像付きのリストストアを作成しました(ファイルを表示するためにIconViewで使用します)。
store = gtk.ListStore(str, gtk.gdk.Pixbuf, bool)
しかし、Python3とPyGObjectでこれを行う方法がわかりません。
方法は次のとおりです。
from gi.repository import Gtk, GdkPixbuf store = Gtk.ListStore(str, GdkPixbuf.Pixbuf, bool)