The easy way to create command line menus
Project description
The easy way to create command line menus
Demo
>>> from pyclimenu.pyclimenu import Menu
>>> def first_func():
... return 'first item'
...
>>> def second_func():
... return 'second item'
...
>>> import pyclimenu
>>> items = [
... {'label': 'First item',
... 'callback': first_func
... },
... {'label': 'Second item',
... 'callback': second_func,
... }
... ]
>>> menu = pyclimenu.Menu(items=items)
>>> menu.display()
Demo Output
[0] First item
[1] Second item
[2] Exit
Select option: >
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
pyclimenu-0.1.1.5.tar.gz
(2.0 kB
view hashes)