      >>> print(video_file)
      '/path/to/selected/video.mp4'
      """
  
      def __init__(self, handle_type, file_type, title=None, initial_folder=None, initial_file=None,
                   command=None, action=None, variable=None):
          logger.debug("Initializing %s: (handle_type: '%s', file_type: '%s', title: '%s', "
                       "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)
          self._handletype = handle_type
 
</s> remove         kwargs = dict(master=self._dummy_master)
 </s> add         kwargs: Dict[str, Union[None, tk.Frame, str,
                                List[Tuple[str, str]]]] = dict(master=self._dummy_master) </s> remove     def _set_kwargs(self, title, initial_folder, initial_file, file_type, command, action,
                    variable=None):
 </s> add     def _set_kwargs(self,
                    title: Optional[str],
                    initial_folder: Optional[str],
                    initial_file: Optional[str],
                    file_type: _FileType,
                    command: Optional[str],
                    action: Optional[str],
                    variable: Optional[str] = None
                    ) -> Dict[str, Union[None, tk.Frame, str, List[Tuple[str, str]]]]: </s> remove         img = self._previewtrain[name][1]
 </s> add         img = cast(Image.Image, self._previewtrain[name][1]) </s> remove         if not self._previewtrain.get(name, None):
 </s> add         if not self._previewtrain.get(name): </s> remove     def resize_image(self, name, frame_dims):
 </s> add     def resize_image(self, name: str, frame_dims: Tuple[int, int]):
    def __init__(self,
                 handle_type: _HandleType,
                 file_type: _FileType,
                 title: Optional[str] = None,
                 initial_folder: Optional[str] = None,
                 initial_file: Optional[str] = None,
                 command: Optional[str] = None,
                 action: Optional[str] = None,
                 variable: Optional[str] = None) -> None:
      >>> print(video_file)
      '/path/to/selected/video.mp4'
      """
  
    def __init__(self,
                 handle_type: _HandleType,
                 file_type: _FileType,
                 title: Optional[str] = None,
                 initial_folder: Optional[str] = None,
                 initial_file: Optional[str] = None,
                 command: Optional[str] = None,
                 action: Optional[str] = None,
                 variable: Optional[str] = None) -> None:
    def __init__(self,
                 handle_type: _HandleType,
                 file_type: _FileType,
                 title: Optional[str] = None,
                 initial_folder: Optional[str] = None,
                 initial_file: Optional[str] = None,
                 command: Optional[str] = None,
                 action: Optional[str] = None,
                 variable: Optional[str] = None) -> None:
          logger.debug("Initializing %s: (handle_type: '%s', file_type: '%s', title: '%s', "
                       "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)
          self._handletype = handle_type
keep keep keep keep replace replace keep keep keep keep keep
 Bugfix: Preview for extract in batch mode 
lib/gui/utils.py