A Qua, 2004-04-07 Ãs 20:58, Jakub Piotr CÅapa escreveu:
> Why are this two different? It is mentioned in FAQ 10.13 that nobody
> alive knows this but maybe there is one who knows?
>
> I've found out that returning True doesn't stop button_press_event from
> propagating. I wanted jump to another entry in a TreeView when the user
> selected sth from the popup menu but it didn't work because of TreeView
> interpreting my 'popuping click' also as a 'selecting click'. However,
> when I executed trv.emit_stop_by_name ('button_press_event'), it worked
> perfectly. What's up?
You must be doing something really weird with your popup menu.
Usually, gtk.Menu.popup() grabs the keyboard and pointer, completely
avoiding the problem you described.
I just tried it, and return True in button-press-event works just
fine.
Regards.
--
Gustavo J. A. M. Carneiro
<[EMAIL PROTECTED]> <[EMAIL PROTECTED]>
_______________________________________________
pygtk mailing list [EMAIL PROTECTED]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/