          if handletype.lower() == "save":
              kwargs["mode"] = "w"
          if handletype.lower() == "open":
              kwargs["mode"] = "r"
          if handletype.lower() == "context":
              kwargs["filetype"] = filetype
              kwargs["command"] = command
              kwargs["action"] = action
              kwargs["variable"] = variable
          return kwargs
  
      def open(self):
          """ Open a file """
          return filedialog.askopenfile(**self.kwargs)
 
</s> remove         if handletype.lower() == "open":
 </s> add         if self.handletype.lower() == "open": </s> remove         if handletype.lower() == "save":
 </s> add         if self.handletype.lower() == "save": </s> remove         if handletype.lower() in ("open", "save", "filename", "savefilename"):
 </s> add         if self.handletype.lower() == "context":
            self.set_context_handletype(command, action, variable)

        if self.handletype.lower() in (
                "open", "save", "filename", "savefilename"): </s> remove     def set_kwargs(self, handletype, filetype, command, action, variable=None):
 </s> add     def set_kwargs(self, filetype, command, action, variable=None):
          if handletype.lower() == "save":
              kwargs["mode"] = "w"
          if handletype.lower() == "open":
              kwargs["mode"] = "r"





          return kwargs
  
      def open(self):
          """ Open a file """
          return filedialog.askopenfile(**self.kwargs)
keep keep keep keep replace replace replace replace replace keep keep keep keep keep
 Gui - fix ffmpeg for windows 
lib/gui/utils.py