[wxpython-users] How to enable tab traversal cross panels?

Robin Dunn robin at alldunn.com
Sat May 3 16:27:30 PDT 2008


Can Xue wrote:
> With a wx.TAB_TRAVERSAL flag, a wx.Panel can enable tab traversal.
> But the tab traversal cycle is confined in that panel.
> Below is a small sample to show this, when a user press TAB in TextCtrl '1-5',
> the input focus will go to TextCtrl '1-1' but I hope it will be '2-1'.
> So my question is how to enable tab traversal cross panels?

Try making the parent of the panels be another panel, instead of having 
them be direct children of the frame.

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



More information about the wxpython-users mailing list