initialize_config
- lib.gui.utils.config.initialize_config(root: tk.Tk, cli_opts: CliOptions | None, statusbar: StatusBar | None) Config | None
Initialize the GUI Master
Configand add to global constant.This should only be called once on first GUI startup. Future access to
Configshould only be executed throughget_config().- Parameters:
root (
tkinter.Tk) – The root Tkinter objectcli_opts (
lib.gui.options.CliOptionsorNone) – The command line options object. Must be provided for main GUI. Must beNonefor toolsstatusbar (
lib.gui.custom_widgets.StatusBarorNone) – The GUI Status bar. Must be provided for main GUI. Must beNonefor tools
- Returns:
Noneif the config has already been initialized otherwise the global configuration options- Return type:
ConfigorNone