示例#1
0
 def set_value(self, s):
     if s and (s[0] != "<"):
         try:
             s = editobj2.eval(s)
         except:
             pass  # sys.excepthook(*sys.exc_info())
     Field.set_value(self, s)
示例#2
0
 def set_value(self, s):
   try: s = int(editobj2.eval(s))
   except: return
   Field.set_value(self, s)