|
Uranium
Application Framework
|
Validates that a SettingInstance's value is within a certain minimum and maximum value. More...
Inherits UM.Settings.SettingFunction.SettingFunction.
Public Member Functions | |
| def | __init__ |
| Constructor. More... | |
| def | __call__ |
| Perform the actual validation. 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.