The easy way to create command line menus
Project description
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 git+https://github.com/sp1thas/pyclimenu.git
Demo
from pyclimenu.menu import Menu
def a():
print('''
Let's Rock!
''')
return 1
mn = Menu()
mn.add_item(label="The easy way", callback=a, args=())
mn.add_item(label="to create", callback=a, kwargs={})
mn.add_item(label="command line menus", callback=a)
mn.set_colors(num_fg="cyan", num_bld=True, label_fg="blue", label_bld=True)
results = mn.run(header="pyclimenu")
print(results)
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 Distributions
No source distribution files available for this release.See tutorial on generating distribution archives.
Built Distribution
pyclimenu-0.1.16-py3-none-any.whl
(17.0 kB
view hashes)
Close
Hashes for pyclimenu-0.1.16-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 87847361f9f66dd70af4d1233aba742bd78b363d8238400619e993480e1c7c18 |
|
MD5 | 2f38cf0d384c0e36b1dad636b84d691b |
|
BLAKE2b-256 | 136ebb37c358240b93ee60842ed55e54a20b93dcbfcf636aa3507bc595f022ba |