PDA

View Full Version : [SOLVED] [pygtk] Best way to tell if a treemodels rows have been reordered?



days_of_ruin
October 27th, 2008, 10:19 PM
Like when the you drag the treeview rows to change their order.
What I want to know is how to call a function when that happens.
I have googled it and got some workarounds but there aren't very simple
and I am hoping some one here know a good way.

days_of_ruin
October 28th, 2008, 12:28 AM
Never mind I figured it out.
I did this:
treeview.connect("drag-end",func)

This will call "func" whenever the user finishes reordering treeview rows.


:guitar::guitar::guitar: