[pygtk] Re: Manual drag and drop
François Ingelrest
athropos at gmail.com
Thu Nov 1 20:25:11 WST 2007
The third parameter of drag_begin() should be 1, not
gtk.gdk.BUTTON1_MASK. This constant is a *mask* to test if a
particular bit is set in a field of bits, it's not the value that
represents mouse button 1. If I change that, the D'n'D works fine for
me.
On 10/31/07, Jeffrey Barish <jeff_barish at earthlink.net> wrote:
> I'm still stuck on this problem, so I created a test program. It evinces
> the same behavior. I suppose that there is a difference between my
> programs and the one that Francois wrote, but I'm not seeing it. In the
> test program, DnD works fine when I allow the treeview to initiate it
> automatically (set MANUAL to False). When I set MANUAL to True, it is no
> longer possible to drag a row to a new location (it is not possible to
> release the drag). Any help appreciated.
More information about the pygtk
mailing list