          -------
          dict:
              The key word arguments for the file dialog to be launched
          """
          logger.debug("Setting Kwargs: (title: %s, initialdir: %s, filetype: '%s', "
                       "command: '%s': action: '%s', variable: '%s')",
                       title, initialdir, filetype, command, action, variable)
          kwargs = dict()
          if self._handletype.lower() == "context":
              self._set_context_handletype(command, action, variable)
  
          if title is not None:
 
</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 </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                      "initial_folder: '%s, 'command: '%s', action: '%s', variable: %s)",
                     self.__class__.__name__, handle_type, file_type, title, initial_folder,
                     command, action, variable)
 </s> add                      "initial_folder: '%s', initial_file: '%s', command: '%s', action: '%s', "
                     "variable: %s)", self.__class__.__name__, handle_type, file_type, title,
                     initial_folder, initial_file, command, action, variable) </s> remove     def __init__(self, handle_type, file_type, title=None, initial_folder=None, command=None,
                 action=None, variable=None):
 </s> add     def __init__(self, handle_type, file_type, title=None, initial_folder=None, initial_file=None,
                 command=None, action=None, 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]
        logger.debug("Setting Kwargs: (title: %s, initial_folder: %s, initial_file: '%s', "
                     "file_type: '%s', command: '%s': action: '%s', variable: '%s')",
                     title, initial_folder, initial_file, file_type, command, action, variable)
          -------
          dict:
              The key word arguments for the file dialog to be launched
          """
        logger.debug("Setting Kwargs: (title: %s, initial_folder: %s, initial_file: '%s', "
                     "file_type: '%s', command: '%s': action: '%s', variable: '%s')",
                     title, initial_folder, initial_file, file_type, command, action, variable)
        logger.debug("Setting Kwargs: (title: %s, initial_folder: %s, initial_file: '%s', "
                     "file_type: '%s', command: '%s': action: '%s', variable: '%s')",
                     title, initial_folder, initial_file, file_type, command, action, variable)
        logger.debug("Setting Kwargs: (title: %s, initial_folder: %s, initial_file: '%s', "
                     "file_type: '%s', command: '%s': action: '%s', variable: '%s')",
                     title, initial_folder, initial_file, file_type, command, action, variable)
          kwargs = dict()
          if self._handletype.lower() == "context":
              self._set_context_handletype(command, action, variable)
  
          if title is not None:
keep keep keep keep replace replace replace 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/utils.py