(self, name: str, type: str = None)
Only specify type if it's the root menu.
Only specify type if it's the root menu.
Only specify type if it s the root menu .
def __init__(self, name: str, type: str = None):
        '''
        Only specify type if it's the root menu.
        '''

        self.name = name
        self.sub_items = []
        self.type = type
        self.isMenu = True
def __init__ ( self , name : str , type : str = None ) : self . name = name self . sub_items = [ ] self . type = type self . isMenu = True