Humm, sorry for the bad formatting
Ok, I’ve got a completely normal panel, declared in this manner:
class MyPanel(wx.Panel)
def init(self, parent, to):
wx.Panel.init(self, parent, -1, style=wx.TAB_TRAVERSAL)
# etc
This panel is filled with child controls
self.SetSizer(fGridsizer) # the grid sizer holds many simple controls like TextCtrl,SpinCtrl etc…
Lets say the panel as 10 child controls, and the focus is on the first control.
With tab key, I traverse the panel’s controls. After having pressed 10 times the tab key, the focus
i
s on the last control of my panel. Every things Ok.
Pressing an other time the tab key, I expect that the focus jumps on the first control of the panel.
Instead, the focus goes on a completely other control inside my app. This is not what I expect!
As you said, my panel of class “MyPanel” is child of an other panel,
A simplified view of the window hierarchy is the following:
App -> Frame -> TreeCtrl
-> Notebook -> Panel -> MyPanel
&
nbsp;-> Panel1 -> TextCtrl1
-> Button1
The TextCtrl1 and Button1 are childs of Panel1
The TreeCtrl, Notebook abd Panel1 are “sibling” of the frame.
The focus, after the 10-th tab-key, is set … I don’t known where,
then on the TextCtrl1,
then on Button1,
then on the page of the Notebook
then on the first control of MyPanel
then on the second control of MyPanel etc
XXL-Speicher, PC-Virenschutz, Spartarife & mehr: Nur im WEB.DE Club!
Jetzt gratis testen! http://freemail.web.de/home/landingpad/?mc=021130