config ¤
Classes:
Attributes:
-
T– -
PARAM_BOOLEAN– -
PARAM_AUTO_BOOLEAN– -
PARAM_INTEGER– -
PARAM_ZINTEGER– -
PARAM_UINTEGER– -
PARAM_ZUINTEGER– -
PARAM_ZUINTEGER_UNLIMITED– -
PARAM_STRING– -
PARAM_ENUM– -
PARAM_OPTIONAL_FILENAME– -
PARAM_CLASSES– -
HELP_DEFAULT_PREFIX– -
HELP_VALID_VALUES_PREFIX–
PARAM_CLASSES module-attribute ¤
PARAM_CLASSES = {bool: PARAM_BOOLEAN, int: PARAM_ZINTEGER, str: PARAM_STRING}
Scope ¤
Parameter ¤
Parameter(
name: str,
default: Any,
set_show_doc: str,
*,
help_docstring: str = "",
param_class: int | None = None,
enum_sequence: Sequence[str] | None = None,
scope: Scope = config,
)
Methods:
-
add_update_listener– -
revert_default– -
attr_name–Returns the attribute name associated with this config option,
-
__getattr__– -
pretty_val–Convert a value this object could contain to its pretty string representation.
-
pretty– -
pretty_default– -
__int__– -
__str__– -
__bool__– -
__eq__– -
__lt__– -
__add__– -
__radd__– -
__sub__– -
__rsub__– -
__mul__– -
__rmul__– -
__div__– -
__floordiv__– -
__pow__– -
__mod__– -
__len__–
Attributes:
-
name– -
default– -
param_class– -
set_show_doc– -
help_docstring– -
enum_sequence– -
scope– -
update_listeners(list[Callable[[Any], None]]) – -
value(Any) – -
is_changed(bool) –
Config ¤
Methods:
-
add_param– -
add_param_obj– -
trigger– -
get_params– -
__getattr__– -
__setattr__–
Attributes: