Hi,

On 11/01/2011 14:09, Giuseppe Penone wrote:
> I successfully tested the example
> http://www.pygtk.org/pygtk2tutorial/examples/treeviewdnd.py
> on my linux distro but then when I tested on windows xp pygtk installation
> the internal drag n drop was not working (no errors from the command line).
> You can modify treeviewdnd.py adding the following lines at the end of the
> __init__():

I have no idea why the example from the tutorial does not work on
windows (and have no time to investigate atm), but I can assure you
treeview DnD does work fine on windows.

There's another example script (originally intended as a test for
bgo637214) that got committed to pygtk and that I'm sure works on
windows:
http://git.gnome.org/browse/pygtk/tree/examples/gtk/treeview_dnd.py

You'll probably want to change line 57
from:
    self.set_drag_dest_row(None, pos)
to:
    self.set_drag_dest_row(path, pos)

Passing None as the first parameter was for testing that bug report
but is not all that useful if you want to learn about treeview DnD.

hth,
Dieter

_______________________________________________
pygtk mailing list   [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/

Reply via email to