[pygtk] Problems with gtk.TreeIter and reorderable gtk.TreeView
Damián Nohales
damiannohales at gmail.com
Mon Sep 12 11:44:57 WST 2011
Hello there!
I have a gtk.TreeView using a gtk.ListStore model, which is a list of
music tracks. I've setted the "reorderable" property to TRUE in the
gtk.TreeView object and I'm using a gtk.TreeIter to save the current
playing item, called "current_track".
Well suppose that I have 5 music tracks on my list and the second track
is playing, so the path associated to "current_track" when I use
"model.get_path(current_track)" is (1,). When I drag the first element
below the second, now "current_track" path is (0,), but, when I drag the
row associated with "current_track" (now the first row), to another
position, the path of "current_track" is None.
Is this the normal behavior or am I doing something wrong?
Thanks!
Regards!!
More information about the pygtk
mailing list