code: def set_menu(self, menu):
          
          self.menu = menu
          self.submenu.parent = menu
docs: Sets the menu of this item.
          Should be used instead of directly accessing the menu attribute for this class.
  
          :param ConsoleMenu menu: the menu