0

Let's say this:

print """
Wleomce...
* To start the quiz press <s>
* For more information quiz press <i>
* To exit press <q>
"""
main_menu = raw_input('Your choice: ').lower().strip()
if mai_menu == 's':
	print """\
	* Press <n> to write yoyr name.
	* Press <l> to choice your level.
	* Press <b> to go back to the main menu.
	"""
...
...
..

I want to control the menu as this psuedocode:

press <m> to go back to the main menu
press <l> to go back to the level menu
...
..
3
Contributors
4
Replies
5
Views
6 Years
Discussion Span
Last Post by Boubakr
0

First you need a good organized class to control the menu levels. This shoud at least give you an idea.
1. You need the menu navigation class (a,b,c,d) etc menus
2. You need menu level navigation class inheriting the menu class. (Back,forward,up,down) etc
3. You need action class inheriting the menu level navigation class. (And action of any kind) etc

Draw you thinking on paper first, have a working idea before you even try to hit your keyboard.
Adios !

0

Yeah... It's really hard to make it like this.

I'll try :)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.