Always focus on main Frame

Hi,

I have created an application where there are so many widgets, run time GUI and so on…
How do I always keep focus on my main Frame? I am bindings key events to main frame and it will work only when your main frame is having a focus.
When you click any other widget, main frame looses it’s focus. One way is to write frame.SetFocus() everywhere but I dont think it’s the right way to do
or is it?

Thanks

Prashant Saxena wrote:

Hi,

I have created an application where there are so many widgets, run time GUI and so on....
How do I always keep focus on my main Frame? I am bindings key events to main frame and it will work only when your main frame is having a focus.
When you click any other widget, main frame looses it's focus. One way is to write frame.SetFocus() everywhere but I dont think it's the right way to do
or is it?

Maybe an accelerator table would work better for you.

···

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!