Re: [Tutor] Creating sub-menus?

2008-12-31 Thread nathan virgil
Okay, so I changed line 84 from: current_menu to: choice = current_menu, and the menu prtion seems to work fine. Only problem now is, once I select a formula, it repeats that function over and over again, never going back to a menu. Should I just add something like: choice = current_menu to ea

Re: [Tutor] Creating sub-menus?

2008-12-31 Thread Kent Johnson
On Wed, Dec 31, 2008 at 2:22 AM, nathan virgil wrote: > I was reading the Non-Programmer's Tutorial for Python, and became really > proud of myself when I realized I could create a menu for functions. I > decided to try to take this one step further and see if I could create not > just a menu, but

Re: [Tutor] Creating sub-menus?

2008-12-31 Thread Alan Gauld
"nathan virgil" wrote Each menu is a function that prints out options, saves a raw_input as the variable choice, and returns choice. In the main menu, each option leads to a sub-menu. After choice is defined, however, the sub-menu "tags" the value of choice. Yes that can all work. Then cr

[Tutor] Creating sub-menus?

2008-12-30 Thread nathan virgil
I was reading the Non-Programmer's Tutorial for Python, and became really proud of myself when I realized I could create a menu for functions. I decided to try to take this one step further and see if I could create not just a menu, but a menu with sub-menus, too! Ultimately, the idea I came up wit