def changeSubMenu(self,submenu):
if submenu not in self.submenus:<EOL><INDENT>raise ValueError("<STR_LIT>"%submenu)<EOL><DEDENT>elif submenu == self.activeSubMenu:<EOL><INDENT>return <EOL><DEDENT>old = self.activeSubMenu<EOL>self.activeSubMenu = submenu<EOL>if old is not None:<EOL><INDENT>self.submenus[old].on_exit(submenu)<EOL>self.submenus[old].doAction("<STR_LIT>")<EOL><DEDENT>self.submenu.on_enter(old)<EOL>self.submenu.doAction("<STR_LIT>")<EOL>
Changes the submenu that is displayed.

:raises ValueError: if the name was not previously registered