Uranium
Application Framework
UM.Settings.SettingFunction.SettingFunction Class Reference
Inheritance diagram for UM.Settings.SettingFunction.SettingFunction:
UM.Settings.Validator.Validator

Public Member Functions

def __init__
 
def __call__
 
def __eq__
 
def __hash__ (self)
 
def isValid (self)
 
def getUsedSettingKeys (self)
 
def __str__ (self)
 
def __repr__ (self)
 
def __getstate__ (self)
 
def __setstate__
 
def registerOperator
 

Detailed Description

Evaluates Python formulas for a setting's property.

If a setting's property is a static type, e.g. a string, an int, a float, etc., its value will just be interpreted
as it is, but when it's a Python code (formula), the value needs to be evaluated via this class.

Member Function Documentation

def UM.Settings.SettingFunction.SettingFunction.__getstate__ (   self,
  Dict,
  str,
  Any 
)
To support Pickle

Pickle does not support the compiled code, so instead remove it from the state.
We can re-compile it later on anyway.
def UM.Settings.SettingFunction.SettingFunction.getUsedSettingKeys (   self,
  FrozenSet,
  str 
)
Retrieve a set of the keys (strings) of all the settings used in this function.

:return: A set of the keys (strings) of all the settings used in this functions.
def UM.Settings.SettingFunction.SettingFunction.isValid (   self,
  bool 
)
Returns whether the function is ready to be executed.

:return: True if the function is valid, or False if it's not.

The documentation for this class was generated from the following file: