class controls.FloatField(ValueField)
A FloatField is a field for editing a float value.
Methods
- get_value()
- Returns the current value as a float. Raises a ValueError if the field does not contain a valid float or is empty and no empty value has been specified.
- set_value(value)
- Sets the current value to the given float, or empties the field if value is equal to the specified empty value.
---