  
      def build_frame(self, defaults, refresh_callback, patch_callback):
          """ Build the action frame """
          logger.debug("Building Action frame")
          top_frame = ttk.Frame(self)
          top_frame.pack(side=tk.TOP, fill=tk.BOTH, anchor=tk.N, expand=True)
          bottom_frame = ttk.Frame(self)
          bottom_frame.pack(side=tk.BOTTOM, fill=tk.X, anchor=tk.S)
  
          self.add_comboboxes(top_frame, defaults)
          busy_indicator = self.add_busy_indicator(top_frame)
 
</s> remove         self.add_comboboxes(top_frame, defaults)
        busy_indicator = self.add_busy_indicator(top_frame)
        self.add_refresh_button(top_frame, refresh_callback)
        self.add_patch_callback(patch_callback)
        self.add_actions(bottom_frame)
 </s> add         self._add_cli_choices(top_frame, defaults, available_masks, has_predicted_mask)

        busy_indicator = self._add_busy_indicator(bottom_frame)
        self._add_refresh_button(bottom_frame, refresh_callback)
        self._add_patch_callback(patch_callback)
        self._add_actions(bottom_frame) </s> remove     def build_frame(self, defaults, refresh_callback, patch_callback):
        """ Build the action frame """
 </s> add     def _build_frame(self, defaults, refresh_callback, patch_callback,
                     available_masks, has_predicted_mask):
        """ Build the :class:`ActionFrame`.

        Parameters
        ----------
        defaults: dict
            The default command line options
        patch_callback: python function
            The function to execute when a patch callback is received
        refresh_callback: python function
            The function to execute when a refresh callback is received
        available_masks: list
            The available masks that exist within the alignments file
        has_predicted_mask: bool
            Whether the model was trained with a mask

        Returns
        -------
        ttk.Progressbar
            A Progress bar to indicate that the Preview tool is busy
        """ </s> remove     def format_to_display(var):
        """ Format a variable from display version """
 </s> add     def _format_to_display(var):
        """ Format a variable from the command line action version to the display version.
        Parameters
        ----------
        var: str
            The variable name to format

        Returns
        -------
        str
            The formatted variable name
        """ </s> remove         self.frame_separator = self.add_frame_separator()
        self.action_frame = ttk.Frame(self)
        self.action_frame.pack(padx=5, pady=5, side=tk.BOTTOM, fill=tk.X, anchor=tk.E)

        self.build_frame(parent, config_key)

        self.bind("<Configure>", self.resize_frame)
 </s> add         self._action_frame = ttk.Frame(self)
        self._action_frame.pack(padx=0, pady=(0, 5), side=tk.BOTTOM, fill=tk.X, anchor=tk.E)
        self._add_frame_separator()
  
      def build_frame(self, defaults, refresh_callback, patch_callback):
          """ Build the action frame """
          logger.debug("Building Action frame")


          bottom_frame = ttk.Frame(self)
          bottom_frame.pack(side=tk.BOTTOM, fill=tk.X, anchor=tk.S)
  
          self.add_comboboxes(top_frame, defaults)
          busy_indicator = self.add_busy_indicator(top_frame)
keep keep keep keep 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