I am attempting to set a right-click context menu on a gtk.ComboBox . A recent thread on this list discussed doing this for a ListView, and suggested setting a callback for button-press-event which calls menu.popup() on right click. However, comboboxes appear to not emit this signal - the handler is never called, and the virtual method do_button_press_event from GtkWidget isn't overridden. It is possible to do using an EventBox, but only if it is set to be above its child, blocking normal function of the combobox. Attempting to forward the event to the combobox using either emit or event methods is unsuccessful.
Is there any way to set a context menu on a (working) ComboBox? -- Lennon Victor Cook "He who receives an idea from me receives without lessening, as he who lights his candle at mine receives light without darkening" -- Thomas Jefferson
signature.asc
Description: PGP signature
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
