WxPython使用tab按钮在控件之间切换

WxPython使用tab按钮在控件之间切换,python,tabs,wxpython,Python,Tabs,Wxpython,我有一个包含各种控件的窗口 class FindReplaceWindow(wx.MiniFrame): def __init__(self, parent): Style = wx.DEFAULT_MINIFRAME_STYLE|wx.SYSTEM_MENU|wx.CLOSE_BOX super(FindReplaceWindow, self).__init__(parent, -1, 'Find and Replace', style = Style) self.

我有一个包含各种控件的窗口

class FindReplaceWindow(wx.MiniFrame):
  def __init__(self, parent):
    Style = wx.DEFAULT_MINIFRAME_STYLE|wx.SYSTEM_MENU|wx.CLOSE_BOX
    super(FindReplaceWindow, self).__init__(parent, -1, 'Find and Replace', style = Style)
    self.BackgroundColour = wx.WHITE
    self.MaxSize = wx.Size(400,300)
    self.MinSize = self.MaxSize
    self.CenterOnParent()
    self.LabelFind = wx.StaticText(self, label = 'Find')
    self.LabelReplace = wx.StaticText(self, label = 'Replace')
    self.LabelTransparency = wx.StaticText(self, label = 'Transparency')
    self.TextFind = wx.TextCtrl(self, size = (350,20), style = wx.TE_PROCESS_TAB)
    self.TextReplace = wx.TextCtrl(self, size = (350,20), style = wx.TE_PROCESS_TAB)
    self.SearchDirection = wx.RadioBox(self, -1, 'Search Direction',
     size = (110,-1), choices = ('Up','Down'), style = wx.RA_VERTICAL)
    self.SearchMode = wx.RadioBox(self, -1, 'Search Mode',
     size = (110, -1), choices = ('Text','Regex'), style = wx.RA_VERTICAL)
    self.Flags = wx.CheckListBox(self, -1, wx.DefaultPosition,
     (95,-1), ('Ignore Case','Whole Word(s)','Selection Only'), wx.VERTICAL)
    self.ButtonFind = wx.Button(self, wx.ID_FIND, 'Find')
    self.ButtonReplace = wx.Button(self, wx.ID_REPLACE, 'Replace')
    self.ButtonReplaceAll = wx.Button(self, wx.ID_REPLACE_ALL, 'Replace All')

如何使用Tab按钮在它们之间切换?

查看wx.Tab\u遍历标志。这里有一些示例代码(它还包括一个替代方法):