Johan Dahlin wrote:
I tried to return False in the on_button_press event I connected to the treeview, but this has no effect. The event handler get's certainly called because I popup a menu when the user clicks a button (not in the example in my former mail, but in another appliction)

Of course, it was True and not False, so the following should do it:

def button_press_cb(tree, event):
    if event.button != 1:
        return True
tv.connect('button-press-event', button_press_cb)

Ok, this works now, but I was wondering wether this problem should be sumbitted as a bug. In fact the gtk.TreeView method enable_model_drag_source does not do what is is supposed to. Luckily you found a workaround, but in fact this is still a bug.


regards,

Toon
_______________________________________________
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