params_interfaces#
- class UiParameter(tab, src_folder=None, params_dict=None)[source]#
Bases:
QObjectThis is a class to link the GUI widgets to the config file. This is done automatically from parsing the
params_dictattribute. Theparams_dictattribute is a dictionary of the form:{'attr_name': ParamLink(keys, widget, attr_name=, default=, connect=)} or {'attr_name': keys,}
where:
attr_nameis the name of the attribute in the classkeysis a list of keys (chain) to access the value in the config file.
If
None, the attribute is not connected widget is the GUI widgetconnectis a boolean to indicate whether the widget should be connected to the config file. Set toFalseto 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#