Inherits QDoubleValidator.
Validator to check the validity of user inputs.
Accepts double values with scientific notation (i.e. 0.232, 12.5e-12) and turns
empty input to 0.0 and commas (,) to points (.).
def Modules.InputValidator.InputValidator.__init__ |
( |
|
self, |
|
|
|
bottom = float_info.min , |
|
|
|
top = float_info.max , |
|
|
|
decimals = float_info.dig , |
|
|
|
parent = None |
|
) |
| |
Initiates the class.
Args:
bottom: Float minimum value.
top: Float maximum value.
decimals: Integer representing decimals.
parent: Parent object.
def Modules.InputValidator.InputValidator.validate |
( |
|
self, |
|
|
|
input_value, |
|
|
|
pos |
|
) |
| |
Validates the given input. Overrides the QDoubleValidator's validate
function.
Args:
input_value: User given string to be validated.
pos: Cursor position (if required).
The documentation for this class was generated from the following file:
- C:/MyTemp/ibasoft/ibasoft/Modules/InputValidator.py