【发布时间】:2013-08-18 03:54:41
【问题描述】:
我不明白gtk.Treeview() 列表模型的工作原理:
据我了解,我必须将 lismodel 包装在 gtk.TreeModelSort() 中,但是当我这样做时,我无法再访问 listmodel 方法了..
lm = gtk.ListStore(object)
listmodel = gtk.TreeModelSort(lm)
for f in files:
listmodel.append([f])
return listmodel
AttributeError: 'gtk.TreeModelSort' 对象没有属性 'append'
我正在与this example (source) 合作:如何使表格在每一列上都可排序?
【问题讨论】: