[pygtk] Drag row from a TreeView onto an EventBox

Dieter Verfaillie dieterv at optionexplicit.be
Tue Nov 28 05:54:28 WST 2006


On Mon, 2006-11-27 at 17:31 +0000, Stephen English wrote:
> I am struggling to fire suitable events when dragging a row from a
> treeview onto an eventbox. The code at http://phpfi.com/179070 and
> below doesn't run the sig_dropped or drag_data_get functions. What am
> I missing? 
> 
> Cheers,
> 
> Stephen English

Hi,

change:
evbox.drag_dest_set(gtk.DEST_DEFAULT_DROP, [('text/plain',
gtk.TARGET_SAME_APP, 0)], gtk.gdk.ACTION_COPY)

to:
evbox.drag_dest_set(gtk.DEST_DEFAULT_ALL, [('text/plain',
gtk.TARGET_SAME_APP, 0)], gtk.gdk.ACTION_COPY)

mvg,
Dieter



More information about the pygtk mailing list