(readme adapted from in-code docs)
menus.py is a small module designed to help quickly make simple and effective
text-based menus of various types. It handles erroneous inputs automatically.
Functions
mainMenu
Makes the user select one of any number of options
mainMenu(title,options,return_name=False,return_index=True)
title
The title of the menu
options
The list of menu options to display and select from
return_name
Returns the name of the option selected
return_index
Returns the index of the option in the list of options
yesNo
Asks the user for a yes/no answer to a question
yesNo(question)
question
The question to be asked