Exemplo n.º 1
0
Arquivo: position.py Projeto: olpa/tex
 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
Exemplo n.º 2
0
Arquivo: position.py Projeto: olpa/tex
 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
Exemplo n.º 3
0
Arquivo: position.py Projeto: olpa/tex
 def Validate(self):
     posDimStatus(self)
     return True
Exemplo n.º 4
0
Arquivo: position.py Projeto: olpa/tex
 def OnKillFocus(self, event=None):
     posDimStatus(self)
     return True
Exemplo n.º 5
0
Arquivo: position.py Projeto: olpa/tex
 def OnText(self, event=None):
     posDimStatus(self)
     self.frame.OnEdit()
     #set temporary data for possible later saving
     self.TransferFromWindow()
     return True
Exemplo n.º 6
0
Arquivo: position.py Projeto: olpa/tex
 def Validate(self):
     posDimStatus(self)
     return True
Exemplo n.º 7
0
Arquivo: position.py Projeto: olpa/tex
 def OnKillFocus(self, event=None):
     posDimStatus(self)
     return True
Exemplo n.º 8
0
Arquivo: position.py Projeto: olpa/tex
 def OnText(self, event=None):
     posDimStatus(self)
     self.frame.OnEdit()
     #set temporary data for possible later saving
     self.TransferFromWindow()
     return True