Closed Licini closed 2 years ago
Added rest of classes, with a settings class on top of them, which can be used as a dict but strong typed:
scripts/v120_settings.py
settings = Settings({
"a": IntValue(1),
"a2": IntValue(1, min=0, max=10),
"a3": IntValue(1, options=[0, 1, 2, 3]),
"b": FloatValue(0.005),
"c": StrValue("some texts"),
"d": ListValue([1, 2, 3], int),
"e": DictValue({"a": 1}, int),
"f": BoolValue(True),
})
Started to add value classes that strong types everything. For example
IntValue
class would also check for data type, min and max etc. @brgcode Could you take look at this examplescripts/v120_tree_editable.py
And let me know if this is on the right direction?