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