Skip to main content

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

menus_py-1.1.0.post1.tar.gz (15.1 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

menus_py-1.1.0.post1-py3-none-any.whl (15.8 kB view details)

Uploaded Python 3

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page