Python menu for CLI
Project description
PyCLIMenu
CLI Menu module for Python.
Usage
Standard usage
from pyclimenu import menu
main_menu = menu.Menu("Main Menu")
main_menu.add_items({
"Option 1": callback_1,
"Option 2": callback_2
})
main_menu.display()
Alternatively...
from pyclimenu import menu
menu.BasicMenu("Main Menu", {
"Option 1": callback_1,
"Option 2": callback_2
})
Option menu
from pyclimenu import menu
color_menu = menu.OptionMenu("Color")
red = (255, 0, 0)
green = (0, 255, 0)
blue = (0, 0, 255)
color_menu.add_items({
"Red": red,
"Green": green,
"Blue": blue
})
color = color_menu.display()
Alternatively...
from pyclimenu import menu
color_menu = menu.BasicOptionMenu("Color", {
"Red": (255, 0, 0),
"Green": (0, 255, 0),
"Blue": (0, 0, 255)
})
color = color_menu.selection
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
climen-0.1.0.tar.gz
(3.3 kB
view details)
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
File details
Details for the file climen-0.1.0.tar.gz.
File metadata
- Download URL: climen-0.1.0.tar.gz
- Upload date:
- Size: 3.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5b71f22a2d1cc6674db8b2e7a896b5f40cafa61925acdd0c1b63b7802039382
|
|
| MD5 |
f2a63722c4d13b44a58f6b3d9b317c6a
|
|
| BLAKE2b-256 |
a89157833960efabf033ee1f54b564d41c96292129d9f14c8123d7e1689959e3
|
File details
Details for the file climen-0.1.0-py3-none-any.whl.
File metadata
- Download URL: climen-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e773d6f7ad3fa08e53d014b31264bb4ac0b616f9ae3db39f38b911b77ea73492
|
|
| MD5 |
770c7a796ed87c3e17869a35c44b87e9
|
|
| BLAKE2b-256 |
30b595687724e55295dba983744ca38241b3cb470b55db97c1cb3f728e2e7a74
|