Search code examples
pythonpygtk

How can I convert a gtk.ListStore to list?


I have a GUI with a gtk.TreeView and I would like to convert the gtk.ListStore to python list, how can I do that?


Solution

  • You can use nested list comprehensions:

    rowList = [column for column in [row for row in yourListStore]]