0

I have a Gtk TreeView written in PyGtk.

I have implemented a sort when the user clicks on the treeview column header.

something like

self.liststore_model = Gtk.ListStore(YosemiteObject.__gtype__, str, str, bool)
self.liststore_model.set_sort_func(1, self.tree_name_compare, None)

So far so good, the tree reorders fine.

However, I would like for the reordered tree to be persisted back to the model so the user can do a export in order.

Is that possible ?

At the moment when I print the rows of the model they are in their original order.

Thanks

Glenn Pierce
  • 720
  • 1
  • 6
  • 18

0 Answers0