Re: [pygtk] Re: Manual drag and drop

2007-11-01 Thread François Ingelrest
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 <[EMAIL PROTECTE

[pygtk] Re: Manual drag and drop

2007-10-31 Thread Jeffrey Barish
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

[pygtk] Re: Manual drag and drop

2007-10-26 Thread Jeffrey Barish
Jeffrey Barish wrote: > Doesn't the appearance of that line indicate > that there are valid drop locations as specified by the > enable_model_drag_dest call? I changed the target in the enable_model_drag_dest() call to something that was clearly wrong and found that I no longer get the lines show

[pygtk] Re: Manual drag and drop

2007-10-25 Thread Jeffrey Barish
François Ingelrest wrote: > Maybe you are missing something, because once you call drag_begin(), > the DnD is automatically handled by GTK. Did you first call > enable_model_drag_dest() on your tree? Yes, I did call enable_model_drag_dest. In fact, it is the same statement that was already in pl