Ignoring focus on a control

Hello,

I have 3 controls : a textCtrl, a button and another textCtrl

when the focus is for the first textCtrl, I want pressing tab key lead me to the second textCtrl, and symetrically shift+tab focus then the first text when on the second...

So I want ignoring focus on the button

I've imagined keeping a chained list of my text controls, but I don't know how to detect if tab or shift+tab is pressed when leaving focus, and overall I wanted a "cleaner" solution.

Thanks for any ideas

François

oops I've found that solution :

http://aspn.activestate.com/ASPN/Mail/Message/wxPython-users/1598915

sorry for flood... but if someone has a better solution... :wink: