[pygtk] Setting a context menu on a combo box
Lennon Cook
lennon at riscque.net
Tue Dec 11 05:14:14 WST 2007
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.daa.com.au/pipermail/pygtk/attachments/20071211/94aa8dd3/signature.pgp
More information about the pygtk
mailing list