Beispiel #1
0
 def format_input(self, spin, new_value_pointer):
     text = spin.get_text()
     if text:
         value = user_locale_format.str2int(text)
         value_location = ctypes.c_double.from_address(hash(new_value_pointer))
         value_location.value = float(value)
         return True
     return False
 def value_from_text(self, model, text):
     return user_locale_format.str2int(text)
Beispiel #3
0
 def value_from_text(self, model, text):
     return user_locale_format.str2int(text)