Why I don't get focus with TAB?

Hi!

I wanna write an ImageControl object that can get focus, and can key events too.
When I clicked to the component, it get focus. But TAB is not working with it.

What I do wrong?

Special thanks for your help!

dd

ps: the code is in test phase...

ImageControl.py (11.9 KB)

durumdara@gmail.com wrote:

Hi!

I wanna write an ImageControl object that can get focus, and can key events too.
When I clicked to the component, it get focus. But TAB is not working with it.

What I do wrong?

Tab-traversal is implemented in panels (and related container widgets) not in frames. So you need add a wx.Panel between your frame and your test widgets.

ยทยทยท

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