A simple menu manager package.
Project description
Python Simple Menu Manager V. 0.0.2
Purpose
This project was created so that I could have a relieable, simple, lightweight menu manager for use in CLI based tools.
Installation
To install simply run
pip install simple_menu_manager
Usage
This package allows for a reactive menu management experience without multiple added packages (apart from this of course).
The menu manager will always return the associated number based on the options submitted, starting at "1" for the first option.
The exit/return condition will always return "0".
Usage Example
from simple_menu_manager import simple_menu
simple_menu.menu_handler(
message="Choose an option:",
options=[
"Option 1",
"Option 2",
"Option 3",
"Option 4",
"Option 5",
"Option 6",
"Option 7",
"Option 8",
"Option 9",
"Option 10"
],
return_message='Exit',
menu_type='default')
- message - The message that appears above the menu, such as "Choose an option:".
- options - The selectable options, associated numbers added automatically.
- return_message - The text associated with the exit command, useally "Exit", "Cancel", "Return", or similar. (Optional, defaults to "Exit")
- menu_type - The type of menu utilized, available options; (Optional, defaults to "default")
- "default" - Auto selects based on what options are avaible for imoprt.
- "curses" - Leverages curses for an interactive menu.
- "standard" - Uses only standard parts of the Python library.
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