I have posted this problem yesterday. I worked a solution for this.
The solution lies in using this pygtk feature called singal emission and propogation.
On 9/28/05, Nalli Dinesh <[EMAIL PROTECTED]> wrote:
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.
_______________________________________________ pygtk mailing list [email protected] http://www.daa.com.au/mailman/listinfo/pygtk Read the PyGTK FAQ: http://www.async.com.br/faq/pygtk/
