          """ Add button to refresh the images """
          btn = ttk.Button(parent, text="Update Samples", command=refresh_callback)
          btn.pack(padx=5, pady=5, side=tk.BOTTOM, fill=tk.X, anchor=tk.S)
  
      def add_patch_callback(self, patch_callback):
          """ Add callback to repatch images on action option change """
          for tk_var in self.tk_vars.values():
              tk_var.trace("w", patch_callback)
  
      def add_busy_indicator(self, parent):
          """ Place progress bar into bottom bar to indicate when processing """
          logger.debug("Placing busy indicator")
 
</s> remove         btn.pack(padx=5, pady=5, side=tk.BOTTOM, fill=tk.X, anchor=tk.S)
 </s> add         btn.pack(padx=5, pady=5, side=tk.TOP, fill=tk.X, anchor=tk.N)

    def _add_patch_callback(self, patch_callback):
        """ Add callback to re-patch images on action option change. </s> remove     def add_busy_indicator(self, parent):
        """ Place progress bar into bottom bar to indicate when processing """
 </s> add     def _add_busy_indicator(self, parent):
        """ Place progress bar into bottom bar to indicate when processing.

        Parameters
        ----------
        parent: tkinter object
            The tkinter object that holds the busy indicator

        Returns
        -------
        ttk.Progressbar
            A Progress bar to indicate that the Preview tool is busy
        """ </s> remove     def add_refresh_button(parent, refresh_callback):
        """ Add button to refresh the images """
 </s> add     def _add_refresh_button(parent, refresh_callback):
        """ Add a button to refresh the images.

        Parameters
        ----------
        refresh_callback: python function
            The function to execute when the refresh button is pressed
        """ </s> remove         pbar.pack(side=tk.BOTTOM, padx=5, pady=5, fill=tk.X)
 </s> add         pbar.pack(side=tk.LEFT) </s> remove                 tab = ConfigFrame(self,
                                  config_key,
                                  config_dict)
                self.tabs[section][plugin] = tab
                self.tabs[section]["tab"].add(tab, text=plugin.replace("_", " ").title())

    def add_patch_callback(self, patch_callback):
        """ Add callback to repatch images on config option change """
 </s> add                 tab = ConfigFrame(self, config_key, config_dict)
                self._tabs[section][plugin] = tab
                self._tabs[section]["tab"].add(tab, text=plugin.replace("_", " ").title())

    def _add_patch_callback(self, patch_callback):
        """ Add callback to re-patch images on configuration option change.

        Parameters
        ----------
        patch_callback: python function
            The function to execute when the images require patching
        """
        Parameters
        ----------
        patch_callback: python function
            The function to execute when the images require patching
        """
        for tk_var in self._tk_vars.values():
          """ Add button to refresh the images """
          btn = ttk.Button(parent, text="Update Samples", command=refresh_callback)
          btn.pack(padx=5, pady=5, side=tk.BOTTOM, fill=tk.X, anchor=tk.S)
  
        Parameters
        ----------
        patch_callback: python function
            The function to execute when the images require patching
        """
        for tk_var in self._tk_vars.values():
        Parameters
        ----------
        patch_callback: python function
            The function to execute when the images require patching
        """
        for tk_var in self._tk_vars.values():
        Parameters
        ----------
        patch_callback: python function
            The function to execute when the images require patching
        """
        for tk_var in self._tk_vars.values():
              tk_var.trace("w", patch_callback)
  
      def add_busy_indicator(self, parent):
          """ Place progress bar into bottom bar to indicate when processing """
          logger.debug("Placing busy indicator")
keep keep keep keep replace replace 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