      """ Handles all GUI File Dialog actions and tasks.
  
      Parameters
      ----------
      handle_type: ['open', 'save', 'filename', 'filename_multi', 'save_filename', 'context', `dir`]
          The type of file dialog to return. `open` and `save` will perform the open and save actions
          and return the file. `filename` returns the filename from an `open` dialog.
          `filename_multi` allows for multi-selection of files and returns a list of files selected.
          `save_filename` returns the filename from a `save as` dialog. `context` is a context
          sensitive parameter that returns a certain dialog based on the current options. `dir` asks
 
</s> remove     def _set_dummy_master(cls):
 </s> add     def _set_dummy_master(cls) -> Optional[tk.Frame]: </s> remove     def _contexts(self):
 </s> add     def _contexts(self) -> Dict[str, Dict[str, Union[str, Dict[str, str]]]]: </s> remove                 filetypes[key].insert(0, tuple(multi))
 </s> add                 filetypes[key].insert(0, cast(Tuple[str, str], tuple(multi))) </s> remove         variable: :class:`tkinter.StringVar`
 </s> add         variable: str
    handle_type: ['open', 'save', 'filename', 'filename_multi', 'save_filename', 'context', 'dir']
      """ Handles all GUI File Dialog actions and tasks.
  
      Parameters
      ----------
    handle_type: ['open', 'save', 'filename', 'filename_multi', 'save_filename', 'context', 'dir']
          The type of file dialog to return. `open` and `save` will perform the open and save actions
          and return the file. `filename` returns the filename from an `open` dialog.
          `filename_multi` allows for multi-selection of files and returns a list of files selected.
          `save_filename` returns the filename from a `save as` dialog. `context` is a context
          sensitive parameter that returns a certain dialog based on the current options. `dir` asks
keep keep keep keep replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py