The number of options is quite large so I plan to use this file as a module to import into a file that integrates other issues.
And my question goes this way. For example, when I select to log in to a page in the menu, what I do in the menu is put a variable that when entering that option becomes true.
So in the main file I have something like:
Expand|Select|Wrap|Line Numbers
- import menus
- ShowMenu = menus.displayMenu(initial_menu)
- ShowMenu.start()
- while 1:
- if ShowMenu.login == True:
- makesomething
- ShowMenu.login = False
- if.... etc.