def __init__(self, text, submenu, menu=None, should_exit=False):
super(SubmenuItem, self).__init__(text=text, menu=menu, should_exit=should_exit)<EOL>self.submenu = submenu<EOL>if menu:<EOL><INDENT>self.submenu.parent = menu<EOL><DEDENT>
:ivar CursesMenu self.submenu: The submenu to be opened when this item is selected