I produced 5 wxTextCtrl. My program is to let the user enter the serial number. Each wxTextCtrl has 4 maxlength. My ideal is if the user enter 4 digits on first wxTextCtrl, and the program will move the cursor to the second wxTextCtrl. I checked the wxTextCtrl::SetInsertingPoint. But this function is only move on itself. For exammple,
xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx .... .... self.tctrl_1 = wxTextCtrl(......) self.tctrl_2 = wxTextCtrl(......) self.Bind(EVT_TEXT,self.OnTextProcessing_1,self.tctrl_1) self.Bind(EVT_TEXT,self.OnTextProcessing_2,self.tctrl_2) .... .... def OnTextProcessing_1(self,evt): if len(evt.GetString())==4: self.tctrl_2.SetInsertionPoint(0) xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx The code "self.tctrl_2.SetInsertingPoint(0)" doesn't work. But if i change to "self.tctrl_1..." works fine. So what's problem? -- http://mail.python.org/mailman/listinfo/python-list