          self._vars = dict()
          self._cache = dict()
          self._config_cpanel_dict = self._get_config()
          self._displayed_frame = None
  
      def _get_config(self):
          """ Format the configuration options stored in :attr:`_config` into a dict of
          :class:`~lib.gui.control_helper.ControlPanelOption's for placement into option frames.
  
          Returns
 
</s> remove         self._build_header()
 </s> add  </s> remove     def __init__(self, parent, configurations, tree, theme):
 </s> add     def __init__(self, top_level, parent, configurations, tree, theme): </s> remove     def _set_kwargs(self, title, initialdir, filetype, command, action, variable=None):
 </s> add     def _set_kwargs(self, title, initial_folder, initial_file, file_type, command, action,
                    variable=None): </s> remove             kwargs["filetypes"] = self._filetypes[filetype]
            if self._defaults.get(filetype):
                kwargs['defaultextension'] = self._defaults[filetype]
 </s> add             kwargs["filetypes"] = self._filetypes[file_type]
            if self._defaults.get(file_type):
                kwargs['defaultextension'] = self._defaults[file_type] </s> remove         if initialdir is not None:
            kwargs["initialdir"] = initialdir
 </s> add         if initial_folder is not None:
            kwargs["initialdir"] = initial_folder

        if initial_file is not None:
            kwargs["initialfile"] = initial_file
        self._displayed_key = None

        self._presets = _Presets(self, top_level)
        self._build_header()

    @property
    def displayed_key(self):
        """ str: The current display page's lookup key for configuration options. """
        return self._displayed_key

    @property
    def config_dict(self):
        """ dict: The configuration dictionary for all display pages. """
        return self._config_cpanel_dict
          self._vars = dict()
          self._cache = dict()
          self._config_cpanel_dict = self._get_config()
          self._displayed_frame = None
        self._displayed_key = None

        self._presets = _Presets(self, top_level)
        self._build_header()

    @property
    def displayed_key(self):
        """ str: The current display page's lookup key for configuration options. """
        return self._displayed_key

    @property
    def config_dict(self):
        """ dict: The configuration dictionary for all display pages. """
        return self._config_cpanel_dict
  
      def _get_config(self):
          """ Format the configuration options stored in :attr:`_config` into a dict of
          :class:`~lib.gui.control_helper.ControlPanelOption's for placement into option frames.
  
          Returns
keep keep keep add keep keep keep keep keep keep
 GUI - Plugin preset support
  - Add ability to load and save presets for all existing faceswap plugins
  - Add phaze-a presets 
lib/gui/popup_configure.py