标签: python pygtk
我有一个带有gtk.TreeView的GUI,我想将gtk.ListStore转换为python列表,我该怎么做?
答案 0 :(得分:1)
您可以使用嵌套的list comprehensions:
rowList = [column for column in [row for row in yourListStore]]