Simple library for creating text-based menus
Project description
(readme adapted from in-code docs)
menus.py - Simple menu functions
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters