Skip to content

D-Edward-Scott/Simple-Menu-Manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Python Simple Menu Manager V. 0.0.3

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",
    verbose=False) 
  • 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.
  • verbose - Option to allow for more verbose CLI printing. (Optional, defaults to "False")

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages