pyclimenu
This python module creates simple command line menus. Just define the callable and the label of each option and voila! Foreground, background color numbering and labels are adjustable.
Install
pip install pyclimenu
Demo
from pyclimenu.menu import Menu
def a():
print('''
Let's Rock!
''')
return 1
mn = Menu(items=[
{"label": "The easy way", "callback": a},
{"label": "to create", "callback": a},
{"label": "command line menus", "callback": a}
])
mn.set_colors(num_fg="cyan", num_bld=True, label_fg="blue", label_bl=True)
results = mn.run(header="pyclimenu")
print(results)
Metadata
Release files for pyclimenu 0.1.18
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| pyclimenu-0.1.18.tar.gz | 4.5 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| pyclimenu-0.1.18-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 21.5 kB