[wxPython-users] Focus order

Josiah Carlson jcarlson at uci.edu
Sun Sep 3 14:14:11 PDT 2006


egbert <egbert.bouwman at hccnet.nl> wrote:
> 
> Hello,
> wxPython is new for me, I am still experimenting.
> This is my first post here.
> 
> In a Frame with one Panel and one GridbagSizer the widgets 
> receive tab-focus in the same order in which i added them 
> to the panel and sizer.
> 
> If you have several (nested) panels and/or (nested) sizers,
> can you then tell beforehand what the tab-focus-order will be ?
> 
> Is it possible to change this tab-focus order, 
> with something like set_focus_chain() in pygtk ?

See the MoveAfterInTabOrder and MoveBeforeInTabOrder methods on
wx.Window() instances.  Generally speaking, controls will tend to only
cycle through themselves with tab on the same window/panel.  Nested
panels would require custom code to handle the tabs.

I believe there may have been a thread in this list a few months ago
discussing this particular topic.

 - Josiah





More information about the wxpython-users mailing list