params_interfaces#
- class UiParameter(tab, src_folder=None, params_dict=None)[source]#
Bases:
QObject
This is a class to link the GUI widgets to the config file. This is done automatically from parsing the
params_dict
attribute. Theparams_dict
attribute is a dictionary of the form:{'attr_name': ParamLink(keys, widget, attr_name=, default=, connect=)} or {'attr_name': keys,}
where:
attr_name
is the name of the attribute in the classkeys
is a list of keys (chain) to access the value in the config file.
If
None
, the attribute is not connected widget is the GUI widgetconnect
is a boolean to indicate whether the widget should be connected to the config file. Set toFalse
to not connect or connect manually. If the value is not aParamLink
, it is assumed that the keys point to the value and the widget connection is done through accessors and mutators.- property config#
- property config_path#
- property default_config#
- property path#