      config_tools: :class:`ConfigTools`
          Tools for loading and saving configuration files
      patch_callback: python function
          The function to execute when a patch callback is received
      scaling: float
          The scaling factor for display
  
      Attributes
      ----------
      config_tools: :class:`ConfigTools`
          Tools for loading and saving configuration files
 
</s> remove     def __init__(self, parent, config_tools, patch_callback, scaling):
        logger.debug("Initializing %s: (parent: %s, config: %s, scaling: %s)",
                     self.__class__.__name__, parent, config_tools, scaling)
 </s> add     def __init__(self, parent, config_tools, patch_callback):
        logger.debug("Initializing %s: (parent: %s, config: %s)",
                     self.__class__.__name__, parent, config_tools) </s> remove     def _get_scaling(self):
        """ Get dpi and update scaling for the display.

        Returns
        -------
        float: The scaling factor for display
        """
        dpi = self.winfo_fpixels("1i")
        scaling = dpi / 72.0
        logger.debug("dpi: %s, scaling: %s'", dpi, scaling)
        return scaling

    def _set_geometry(self):
        """ Set the GUI window geometry. """
        self.tk.call("tk", "scaling", self._scaling)
        width = int(940 * self._scaling)
        height = int(600 * self._scaling)
        logger.debug("Geometry: %sx%s", width, height)
        self.geometry("{}x{}+80+80".format(str(width), str(height)))

 </s> add  </s> remove         exit()
 </s> add         sys.exit(0) </s> remove         """ list: The mask names that are available for every face in the alignmnets file """
 </s> add         """ list: The mask names that are available for every face in the alignments file """ </s> remove                                       self._refresh,
                                      self._scaling)
 </s> add                                       self._refresh)
      config_tools: :class:`ConfigTools`
          Tools for loading and saving configuration files
      patch_callback: python function
          The function to execute when a patch callback is received


  
      Attributes
      ----------
      config_tools: :class:`ConfigTools`
          Tools for loading and saving configuration files
keep keep keep keep replace replace keep keep keep keep keep
 lib.gui
Centralize get_scaling and set_geometry to utils.config
Suppress Error when rebuilding GUI for TreeView 
tools/preview.py