[pygtk] button-press-event on a MenuItem
Adam Warski
adamw at aster.pl
Sat Jun 30 17:25:45 WST 2007
Hello,
I am having trouble handling the button-press-event on a MenuItem. I
want to display a context menu, when the user right clicks on a MenuItem
(which has a sub-menu). I connect the event the usual way, and my
handler is called but ... the menu doesn't appear (as I'm writing a
gnome panel applet, I display the context menu using
Applet.setup_menu()) most of the time - only sometimes. This works
without problems on a label in an event box. Any ideas why? :)
--
Regards,
Adam Warski
More information about the pygtk
mailing list