focus and keypress question



I have a window that is connected to the 'key_press_event', and in
the window there are some entrys and spinbuttons in addition to
other widgets.

I want the callback function for the 'key_press_event' to know if
some of the entrys have the keyboard focus so it can ignore those
keypresses.

Are there some magic that can do this, or is the best way to connect
each entry to the 'focus_in|out_event' and set a global flag for the
'key_press_event' callback to check?

Thanks in advance
(pleace cc: me)
-- 
Tom Cato Amundsen <tca gnu org>
GNU Solfege - free eartraining, http://www.gnu.org/software/solfege/




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]