
默认情况下,按Tab或者Shift+Tab键时会自动Focus到该滑动条上。如何才能禁止它呢?
下面的方法值得一试:
1)首先初始化UI时:
self.m_slider.Bind(wx.EVT_SET_FOCUS, self.onFocus)
2)在处理该事件时:
def onFocus(self, event):
#print "slider on focus"
self.m_nextButton.SetFocus()
event.Skip()
那个m_nextButton是希望Focus的下一个control。
【结语】还是希望能有一个如此的Method,比如:SetTabStop(False)。
2014.07.06