          scaling_factor = self.get_scaling()
          pathcache = os.path.join(pathscript, "lib", "gui", ".cache")
          statusbar = StatusBar(self)
          session = Session()
          initialize_config(cliopts, scaling_factor, pathcache, statusbar, session)
          initialize_images()
  
      def get_scaling(self):
          """ Get the display DPI """
          dpi = self.winfo_fpixels("1i")
 
</s> remove     def __init__(self, cli_opts, scaling_factor, pathcache, statusbar, session):
        logger.debug("Initializing %s: (cli_opts: %s, scaling_factor: %s, pathcache: %s, "
                     "statusbar: %s, session: %s)", self.__class__.__name__, cli_opts,
 </s> add     def __init__(self, root, cli_opts, scaling_factor, pathcache, statusbar, session):
        logger.debug("Initializing %s: (root %s, cli_opts: %s, scaling_factor: %s, pathcache: %s, "
                     "statusbar: %s, session: %s)", self.__class__.__name__, root, cli_opts, </s> remove     logger.debug("Initializing config: (cli_opts: %s, tk_vars: %s, pathcache: %s, statusbar: %s, "
                 "session: %s)", cli_opts, scaling_factor, pathcache, statusbar, session)
    _CONFIG = Config(cli_opts, scaling_factor, pathcache, statusbar, session)
 </s> add     logger.debug("Initializing config: (root: %s, cli_opts: %s, tk_vars: %s, pathcache: %s, "
                 "statusbar: %s, session: %s)", root, cli_opts, scaling_factor, pathcache,
                 statusbar, session)
    _CONFIG = Config(root, cli_opts, scaling_factor, pathcache, statusbar, session) </s> remove def initialize_config(cli_opts, scaling_factor, pathcache, statusbar, session):
 </s> add def initialize_config(root, cli_opts, scaling_factor, pathcache, statusbar, session):
        initialize_config(self, cliopts, scaling_factor, pathcache, statusbar, session)
          scaling_factor = self.get_scaling()
          pathcache = os.path.join(pathscript, "lib", "gui", ".cache")
          statusbar = StatusBar(self)
          session = Session()
        initialize_config(self, cliopts, scaling_factor, pathcache, statusbar, session)
          initialize_images()
  
      def get_scaling(self):
          """ Get the display DPI """
          dpi = self.winfo_fpixels("1i")
keep keep keep keep replace keep keep keep keep keep
 GUI Fixups

- Analysis: Handle missing session Ids
- Analysis: Handle invalid data selections
- Analysis: Don't update graph on check box selection
- Analysis: Add cursor events to analysis tab
- Analysis: Change default graph view
- Training: Prevent GUI from attempting to close graphs which do not exist
- Extract/Convert: Make file extensions case-insensitive for preview
- Progress bar: Make compatible for downloads
- Progress bar: Add TQDM Description to progress bar stats text 
scripts/gui.py