Configuration Manager

class bci_framework.framework.config_manager.ConfigManager(filename='.bciframework')[source]

File based configurations manager.

connect_widgets(method: Callable, config: Dict[str, bci_framework.framework.config_manager.QWidget]) None[source]

Automatically connect widgets with events.

get(section: str, option: str, default: Optional[str] = None, *args, **kwargs) None[source]

Read a configuration value, if not exists then save the default.

load() None[source]

Load the filename with configirations.

load_widgets(section: str, config: Dict[str, bci_framework.framework.config_manager.QWidget]) None[source]

Automatically load values from configurations and set them in widgets.

save() None[source]

Save configurations.

save_widgets(section: str, config: Dict[str, bci_framework.framework.config_manager.QWidget]) None[source]

Automatically save values from widgets.

set(section: str, option: str, value: Optional[str] = '', save: Optional[bool] = False) None[source]

Write and save configuration option.