Skip to main content

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


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.7.tar.gz (2.0 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page