|
Uranium
Application Framework
|
Validates that a SettingInstance's value is within a certain minimum and maximum value. More...
Public Member Functions | |
| def | __init__ |
| Constructor. More... | |
| def | __call__ |
| Perform the actual validation. More... | |
Public Member Functions inherited from UM.Settings.SettingFunction.SettingFunction | |
| def | __init__ |
| Constructor. More... | |
| def | __call__ |
| Call the actual function to calculate the value. More... | |
| def | __eq__ (self, other) |
| def | isValid (self) |
| Returns whether the function is ready to be executed. More... | |
| def | getUsedSettingKeys (self) |
| Retrieve a set of the keys (strings) of all the settings used in this function. More... | |
| def | __str__ (self) |
| def | __repr__ (self) |
| def | __getstate__ (self) |
| To support Pickle. More... | |
| def | __setstate__ |
| def | registerOperator |
| Expose a custom function to the code executed by SettingFunction. More... | |
Validates that a SettingInstance's value is within a certain minimum and maximum value.
This class performs validation of any value that has lt and gt implemented, but it is primarily used for numerical values like integers and floats.
| def UM.Settings.Validator.Validator.__init__ | ( | self, | |
| key | |||
| ) |
Constructor.
| instance | The instance this Validator validates. |
| def UM.Settings.Validator.Validator.__call__ | ( | self, | |
| value_provider | |||
| ) |
Perform the actual validation.