  _CONFIG: Optional["Config"] = None
  
  
  def initialize_config(root: tk.Tk,
                        cli_opts: "CliOptions",
                        statusbar: "StatusBar") -> Optional["Config"]:
      """ Initialize the GUI Master :class:`Config` and add to global constant.
  
      This should only be called once on first GUI startup. Future access to :class:`Config`
      should only be executed through :func:`get_config`.
  
 
</s> remove     cli_opts: :class:`lib.gui.options.CliOpts`
        The command line options object
    statusbar: :class:`lib.gui.custom_widgets.StatusBar`
        The GUI Status bar
 </s> add     cli_opts: :class:`lib.gui.options.CliOptions` or ``None``
        The command line options object. Must be provided for main GUI. Must be ``None`` for tools
    statusbar: :class:`lib.gui.custom_widgets.StatusBar` or ``None``
        The GUI Status bar. Must be provided for main GUI. Must be ``None`` for tools </s> remove     def __init__(self, root: tk.Tk, cli_opts: "CliOptions", statusbar: "StatusBar") -> None:
 </s> add     def __init__(self,
                 root: tk.Tk,
                 cli_opts: Optional["CliOptions"],
                 statusbar: Optional["StatusBar"]) -> None: </s> remove     cli_opts: :class:`lib.gui.options.CliOptions`
        The command line options object
    statusbar: :class:`lib.gui.custom_widgets.StatusBar`
        The GUI Status bar
 </s> add     cli_opts: :class:`lib.gui.options.CliOptions` or ``None``
        The command line options object. Must be provided for main GUI. Must be ``None`` for tools
    statusbar: :class:`lib.gui.custom_widgets.StatusBar` or ``None``
        The GUI Status bar. Must be provided for main GUI. Must be ``None`` for tools
                      cli_opts: Optional["CliOptions"],
                      statusbar: Optional["StatusBar"]) -> Optional["Config"]:
  _CONFIG: Optional["Config"] = None
  
  
  def initialize_config(root: tk.Tk,
                      cli_opts: Optional["CliOptions"],
                      statusbar: Optional["StatusBar"]) -> Optional["Config"]:
                      cli_opts: Optional["CliOptions"],
                      statusbar: Optional["StatusBar"]) -> Optional["Config"]:
      """ Initialize the GUI Master :class:`Config` and add to global constant.
  
      This should only be called once on first GUI startup. Future access to :class:`Config`
      should only be executed through :func:`get_config`.
  
keep keep keep keep replace replace keep keep keep keep keep
 bugfix:
    - preview tool - Prevent tkinter variables from exiting main thread
refactor:
    - preview tool - Split module to smaller sub-modules + docs, locales
Typing:
    - tools.preview.cli
Unit test:
    - tools.preview.viewer 
lib/gui/utils/config.py