2013-02-08から1日間の記事一覧

pygtk の gtk.TreeStore の要素に、リストや辞書を含める。

store = gtk.TreeStore(dict) store.append( None, {} )ではダメ...。 TypeError: could not get typecode from object というエラーが出る。dictやlist指定ではダメです。 とはいえ、gtk にも定義されていない。正解は、 store = gtk.TreeStore(object) sto…