              btn.pack(side=tk.LEFT, anchor=tk.W)
              hlp = self.set_help(btntype)
              Tooltip(btn, text=hlp, wrap_length=200)
  
      @staticmethod
      def _loader_and_kwargs(btntype):
          if btntype == "save":
              loader = btntype
              kwargs = dict(save_as=False)
          elif btntype == "save_as":
              loader = "save"
              kwargs = dict(save_as=True)
          else:
              loader = btntype
              kwargs = {}
          logger.debug("btntype: %s, loader: %s, kwargs: %s", btntype, loader, kwargs)
          return loader, kwargs
  
      def _settings_btns(self):
          # pylint: disable=cell-var-from-loop
          frame = ttk.Frame(self._btn_frame)
          frame.pack(side=tk.LEFT, anchor=tk.W, expand=False, padx=2)
          for name in ("extract", "train", "convert"):
              btntype = f"settings_{name}"
 
</s> remove     def _project_btns(self):
 </s> add     @classmethod
    def _loader_and_kwargs(cls, btntype: str) -> T.Tuple[str, T.Dict[str, bool]]:
        """ Get the loader name and key word arguments for the given button type

        Parameters
        ----------
        btntype: str
            The button type to obtain the information for

        Returns
        -------
        loader: str
            The name of the loader to use for the given button type
        kwargs: dict[str, bool]
            The keyword arguments to use for the returned loader
        """
        if btntype == "save":
            loader = btntype
            kwargs = {"save_as": False}
        elif btntype == "save_as":
            loader = "save"
            kwargs = {"save_as": True}
        else:
            loader = btntype
            kwargs = {}
        logger.debug("btntype: %s, loader: %s, kwargs: %s", btntype, loader, kwargs)
        return loader, kwargs

    @classmethod
    def _set_help(cls, btntype: str) -> str:
        """ Set the helptext for option buttons

        Parameters
        ----------
        btntype: str
            The button type to set the help text for
        """
        logger.debug("Setting help")
        hlp = ""
        task = _("currently selected Task") if btntype[-1] == "2" else _("Project")
        if btntype.startswith("reload"):
            hlp = _("Reload {} from disk").format(task)
        if btntype == "new":
            hlp = _("Create a new {}...").format(task)
        if btntype.startswith("clear"):
            hlp = _("Reset {} to default").format(task)
        elif btntype.startswith("save") and "_" not in btntype:
            hlp = _("Save {}").format(task)
        elif btntype.startswith("save_as"):
            hlp = _("Save {} as...").format(task)
        elif btntype.startswith("load"):
            msg = task
            if msg.endswith("Task"):
                msg += _(" from a task or project file")
            hlp = _("Load {}...").format(msg)
        return hlp

    def _project_btns(self) -> None:
        """ Place the project buttons """ </s> remove             hlp = self.set_help(btntype)
 </s> add             hlp = self._set_help(btntype) </s> remove     def _task_btns(self):
 </s> add     def _task_btns(self) -> None:
        """ Place the task buttons """ </s> remove             hlp = self.set_help(btntype)
 </s> add             hlp = self._set_help(btntype) </s> remove                              command=lambda fn=cmd, kw=kwargs: fn(**kw))
 </s> add                              command=lambda fn=cmd, kw=kwargs: fn(**kw))  # type:ignore
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
              btn.pack(side=tk.LEFT, anchor=tk.W)
              hlp = self.set_help(btntype)
              Tooltip(btn, text=hlp, wrap_length=200)
  
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
    def _settings_btns(self) -> None:
        """ Place the settings buttons """
          # pylint: disable=cell-var-from-loop
          frame = ttk.Frame(self._btn_frame)
          frame.pack(side=tk.LEFT, anchor=tk.W, expand=False, padx=2)
          for name in ("extract", "train", "convert"):
              btntype = f"settings_{name}"
keep keep keep keep replace replace replace replace replace replace replace replace replace replace replace replace replace replace replace keep keep keep keep keep
 locales: Add GUI menu translations 
lib/gui/menu.py