[pygtk] problem: Key_press_event on Window widget and Accelerator
for Buttons inside Window
Nalli Dinesh
nalli.dinesh at gmail.com
Thu Sep 29 05:49:49 WST 2005
Gentlemen,
I have a window widget. Key_press_event is attached to this window. When
any alphanumeric key is pressed, I handle this using this event and do
appropriate action.
Now, this window widget is added with some buttons. Each button has a
'clicked' signal handler defined and a corresponding Function key(F1-F8) are
attached as accelerators that emit 'clicked' signal.
Given the above scenario, the problem is:
When I press F1, since it a key press, the Key_press_event handler handles
it. But I want this event to be considered as Button press , which is not
happening now.
When I press alphanumeric key, yes I want the key_press_event handler to
handle it and I do appropriate action.But when I press F1-F8 function keys,
somehow I want this key_press_handler to PROPOGATE this event to the
correspnding button click.
I don't no whether this question makes any sense to you guys, but I think
its a geniuine problem, and its seems to me an important problem in GUI
world. Would appreciate comments from the group.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.daa.com.au/pipermail/pygtk/attachments/20050928/541f52b7/attachment.htm
More information about the pygtk
mailing list