Hi!
I would like to be able to DnD files from outside into a treeview as
well as have the treeview be reordable. However, it seems that for DnD's
from outside 
treeview.enable_model_drag_dest(["string", 0, 0], gtk.gdk.ACTION_COPY)
does not work (treeview does not accept them) but reordering the
treeview does work.
On the other hand,
treeview.drag_dest_set(gtk.DEST_DEFAULT_ALL, target[:-1], gtk.gdk.ACTION_COPY |
                               gtk.gdk.ACTION_MOVE)
(target being a list of tuples) works for DnD's from outside, but when
trying to reorder the treeview, dropping the row does not work (not 
accepted, moved back to initial position.

So I tried setting the DnD properties mentioned above dynamically using
the drag_motion signal [1]. However, this enables DnDs from outside only
when the mouse is moving and reordering of the treeview does not work at
all.
Obviously my understanding of DnD in PyGTK is flawed somewhere so I'd
appreciate any pointers or hints!
Thanks,
jj

[1] http://www.mail-archive.com/[EMAIL PROTECTED]/msg07101.html
-- 
Preserve wildlife -- pickle a squirrel today!

Attachment: signature.asc
Description: Digital signature

_______________________________________________
pygtk mailing list   [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/

Reply via email to