[pygtk] Using python objects as DnD data
Jacob Kroon
jacob.kroon at gmail.com
Fri Apr 7 07:47:06 WST 2006
Hello,
Is there an easy way of doing DnD with a python object as the data being
passed? I realize that since DnD can be an interprocess operation,
passing memory pointers doesn't make sense, but is there a preferred way
to do this?
I could just assign the object to a global variable in drag_data_get()
(also it seems that I have to set some dummy text using data.set_text(),
otherwise the drag_data_received() won't get called in the other end),
and access the variable in drag_data_recieved(), but it seems a little
ugly.
--Jacob
More information about the pygtk
mailing list