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 | |
None | __init__ (self, str key) |
Constructor. More... | |
Optional[ValidatorState] | __call__ (self, ContainerInterface value_provider, Optional[PropertyEvaluationContext] context=None) |
Perform the actual validation. | |
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.
None UM.Settings.Validator.Validator.__init__ | ( | self, | |
str | key | ||
) |
Constructor.
instance | The instance this Validator validates. |