Ciao scusa... non è che mi potresti spiegare come si fa a far spostare il focus con il TAB??
Anche il tasto return mi interessa....
A me non funziona niente:
file guilogin.py:
file login.py:codice:... self.text_ctrl_2 = wx.TextCtrl(self, -1, "", style=wx.TE_PROCESS_TAB|wx.TE_PROCESS_ENTER) ....
Cosa sbaglio???????codice:... self.frame.Bind(wx.EVT_CHAR, self.OnChar, self.frame.text_ctrl_2) ... def OnChar(self, event): if event.GetKeyCode() == wx.WXK_TAB: self.frame.text_ctrl_2.SetFocus() event.Skip()
Rap.

Rispondi quotando