code: def get_menu(self, name):
          
          if self.menubar is None:
              raise ValueError("No menu bar configured")
          return self.menubar.get_menu(name)
docs: Get the menu with name `name` from the global menu bar.
          Returns a menu widget.