          self.build_sub_tabs()
          self.add_patch_callback(patch_callback)
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def build_tabs(self):
          """ Build the tabs for the relevant section """
          logger.debug("Build Tabs")
          for section in self.config_tools.sections:
              tab = ttk.Notebook(self)
              self.tabs[section] = {"tab": tab}
              self.add(tab, text=section.replace("_", " ").title())
 
</s> remove             self.tabs[section] = {"tab": tab}
 </s> add             self._tabs[section] = {"tab": tab} </s> remove     def build_sub_tabs(self):
        """ Build the sub tabs for the relevant plugin """
 </s> add     def _build_sub_tabs(self):
        """ Build the notebook sub tabs for each convert section's plugin. """ </s> remove         self.tabs = dict()
        self.build_tabs()
        self.build_sub_tabs()
        self.add_patch_callback(patch_callback)
 </s> add         self._tabs = dict()
        self._build_tabs()
        self._build_sub_tabs()
        self._add_patch_callback(patch_callback) </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
        """ </s> remove     def build_frame(self, parent, config_key):
        """ Build the options frame for this command """
        logger.debug("Add Config Frame")
 </s> add     def _build_frame(self, parent, config_key):
        """ Build the options frame for this command
    def _build_tabs(self):
        """ Build the notebook tabs for the each configuration section. """
          self.build_sub_tabs()
          self.add_patch_callback(patch_callback)
          logger.debug("Initialized %s", self.__class__.__name__)
  
    def _build_tabs(self):
        """ Build the notebook tabs for the each configuration section. """
    def _build_tabs(self):
        """ Build the notebook tabs for the each configuration section. """
          logger.debug("Build Tabs")
          for section in self.config_tools.sections:
              tab = ttk.Notebook(self)
              self.tabs[section] = {"tab": tab}
              self.add(tab, text=section.replace("_", " ").title())
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