[pygtk] How to add a keyboard shortcut to a widget?
David M. Cook
dave at davidcook.org
Sun Apr 15 19:45:49 WST 2007
On Sun, Apr 15, 2007 at 06:12:15AM -0300, Gabriel Falcão wrote:
> self.desktop = gtk.gdk.get_default_root_window()
> self.deskEvent = gtk.gdk.Event(gtk.gdk.BUTTON_PRESS)
> gtk.binding_entry_add_signal(self.deskEvent, gtk.keysyms.F12,
> gtk.keysyms.Control_L, 'button-press-event')
I've only gotten it to work by subclassing a gtk widget as in the FAQ
example. Can you subclass egg.TrayIcon?
Dave Cook
More information about the pygtk
mailing list