          self.recent_menu = tk.Menu(self, tearoff=0, postcommand=self.refresh_recent_menu)
          self.build()
          logger.debug("Initialized %s", self.__class__.__name__)
  
      def build(self):
          """ Add the file menu to the menu bar """
          logger.debug("Building File menu")
          self.add_command(label="New Project...",
                           underline=0,
                           accelerator="Ctrl+N",
 
</s> remove         self.recent_menu = tk.Menu(self, tearoff=0, postcommand=self.refresh_recent_menu)
        self.build()
 </s> add         self.recent_menu = tk.Menu(self, tearoff=0, postcommand=self._refresh_recent_menu)
        self._build() </s> remove         self.add_command(label="New Project...",
 </s> add         self.add_command(label=_("New Project..."), </s> remove     def build(self):
 </s> add     def _build(self) -> None: </s> remove     """ File menu items and functions """
    def __init__(self, parent):
 </s> add     """ File menu items and functions

    Parameters
    ----------
    parent: :class:`tkinter.Menu`
        The main menu bar to hold this menu item
    """
    def __init__(self, parent: MainMenuBar) -> None: </s> remove         self.build()
 </s> add         self._build()
    def _refresh_recent_menu(self) -> None:
        """ Refresh recent menu on save/load of files """
        self.recent_menu.delete(0, "end")
        self._build_recent_menu()

    def _build(self) -> None:
          self.recent_menu = tk.Menu(self, tearoff=0, postcommand=self.refresh_recent_menu)
          self.build()
          logger.debug("Initialized %s", self.__class__.__name__)
  
    def _refresh_recent_menu(self) -> None:
        """ Refresh recent menu on save/load of files """
        self.recent_menu.delete(0, "end")
        self._build_recent_menu()

    def _build(self) -> None:
          """ Add the file menu to the menu bar """
          logger.debug("Building File menu")
          self.add_command(label="New Project...",
                           underline=0,
                           accelerator="Ctrl+N",
keep keep keep keep replace keep keep keep keep keep
 locales: Add GUI menu translations 
lib/gui/menu.py