[pygtk] passing event handling to parent widget

Chris Lambacher lambacck at computer.org
Fri Aug 12 21:26:09 WST 2005


AccelGroup:
http://www.pygtk.org/pygtk2reference/class-gtkaccelgroup.html

If you are using UIManager to create your toolbar and menus, it allows you to
define an accelerator key as well.

-Chris

On Fri, Aug 12, 2005 at 08:33:09AM +0000, Vinay Reddy wrote:
> Hi,
> I have a menu in my pygtk application, which has a toolbar and a
> couple of range widgets (HScale). They are all added to a hbox.
> No matter where the keyboard focus is, I want to have a common set of
> short-cuts. I defined these shortcuts for the vbox by connecting the
> key-press-event for vbox to a function that maps the keys to
> shortcuts. Is it possible to pass the key-press-event generated in the
> widgets to the vbox? Is there an elegant way to do what I require?
> 
> Thanks,
> Vinay
> _______________________________________________
> pygtk mailing list   pygtk at daa.com.au
> http://www.daa.com.au/mailman/listinfo/pygtk
> Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/


More information about the pygtk mailing list