def value_from_text(self, record, text, callback=None): field = record[self.field_name] digits = field.digits(record) field.set_client(record, common.text_to_float_time(text, self.conv, digits[1])) if callback: callback()
def set_value(self, record, field): value = self.entry.get_text() digits = field.digits(record) return field.set_client(record, common.text_to_float_time(value, self.conv, digits[1]))
def set_value(self, record, field): value = self.entry.get_text() digits = field.digits(record) return field.set_client( record, common.text_to_float_time(value, self.conv, digits[1]))