Hello. I'd like to be able to connect a MenuItem to a callback when a key is pressed on this item menu.
I have tried this:
item.connect("key_press_event", callback)
item.add_events(gtk.gdk.KEY_PRESS)
but nothing happens when I press a key.
Is it possible to do? If yes, how?
Thanks.
--
F. Delente
_______________________________________________
pygtk mailing list [email protected]
http://www.daa.com.au/mailman/listinfo/pygtk
Read the PyGTK FAQ: http://faq.pygtk.org/
