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... | |
![]() | |
def | __init__ |
Constructor. More... | |
def | __call__ |
Call the actual function to calculate the value. More... | |
def | __eq__ |
def | isValid |
Returns whether the function is ready to be executed. More... | |
def | getUsedSettingKeys |
Retrieve a set of the keys (strings) of all the settings used in this function. More... | |
def | __str__ |
def | __repr__ |
def | __getstate__ |
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.