def OnChar(self, event=None): posDimStatus(self) key = chr(event.GetKeyCode()) REGEXP = re.compile(ur"\d|\.|auto", re.UNICODE | re.IGNORECASE) if re.match(REGEXP, key) or event.GetKeyCode() in (8, 127): event.Skip() return
def OnChar(self, event=None): posDimStatus(self) key = chr(event.GetKeyCode()) REGEXP = re.compile( ur"\d|\.|auto", re.UNICODE|re.IGNORECASE) if re.match(REGEXP, key) or event.GetKeyCode() in (8, 127): event.Skip() return
def Validate(self): posDimStatus(self) return True
def OnKillFocus(self, event=None): posDimStatus(self) return True
def OnText(self, event=None): posDimStatus(self) self.frame.OnEdit() #set temporary data for possible later saving self.TransferFromWindow() return True