          self.root.title("Faceswap.py - Convert Settings")
          self.root.tk.call(
              "wm",
              "iconphoto",
              self.root._w, get_images().icons["favicon"])  # pylint:disable=protected-access
          logger.debug("Initialized tkinter")
  
      def get_scaling(self):
          """ Get dpi and update scaling for the display """
          dpi = self.root.winfo_fpixels("1i")
 
</s> remove     def get_scaling(self):
        """ Get dpi and update scaling for the display """
        dpi = self.root.winfo_fpixels("1i")
 </s> add     def _get_scaling(self):
        """ Get dpi and update scaling for the display.

        Returns
        -------
        float: The scaling factor for display
        """
        dpi = self.winfo_fpixels("1i") </s> remove         self.set_geometry()
        self.root.title("Faceswap.py - Convert Settings")
        self.root.tk.call(
 </s> add         self._set_geometry()
        self.title("Faceswap.py - Convert Settings")
        self.tk.call( </s> remove         initialize_config(self.root, None, None, None)
 </s> add         initialize_config(self, None, None, None) </s> remove     def initialize_tkinter(self):
        """ Initialize tkinter for standalone or GUI """
 </s> add     def _initialize_tkinter(self):
        """ Initialize a standalone tkinter instance. """ </s> remove     def set_geometry(self):
        """ Set GUI geometry """
        self.root.tk.call("tk", "scaling", self.scaling)
        width = int(940 * self.scaling)
        height = int(600 * self.scaling)
 </s> add     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)
            self._w, get_images().icons["favicon"])  # pylint:disable=protected-access
          self.root.title("Faceswap.py - Convert Settings")
          self.root.tk.call(
              "wm",
              "iconphoto",
            self._w, get_images().icons["favicon"])  # pylint:disable=protected-access
          logger.debug("Initialized tkinter")
  
      def get_scaling(self):
          """ Get dpi and update scaling for the display """
          dpi = self.root.winfo_fpixels("1i")
keep keep keep keep replace keep keep keep keep keep
 Smart Masks to Convert (#957)

- scripts.convert - Use Smart Masks for Convert
    * Make on-the-fly conversion an explicit option

- Move BlurMask to lib.faces_detect

- tools.preview - Fix for smart masks
    * Subclass from tk.Tk
    * Options to lib.gui.control_helper
    *variable cleanup

- lib.logger - Demote more tensorflow deprecation messages

- Documentation:
    * lib.faces_detect.BlurMask
    * plugins.convert.mask
    * lib.convert
    * scripts.convert
    * scripts.fsmedia
    * tools.preview 
tools/preview.py