Skip to content

SelectMenu is the input form to choose from menu by arrow keys.

License

Notifications You must be signed in to change notification settings

alice1017/SelectMenu

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

SelectMenu

forthebadge

demo

📄 Overview

SelectMenu is the input form to choose from menu by arrow keys.

SelectMenu powered by python-prompt-toolkit.

✏️ Usage

>>> from selectmenu import SelectMenu
>>> menu = SelectMenu()
>>> menu.add_choices(
...    ["Python", "Ruby", "Javascript", "HTML", "CSS"])
>>> result = menu.select("What language do you like?")
What language do you like? (Use arrow keys)
 > Python
   Ruby
   Javascript
   HTML
   CSS
>>> print result
Python

📥 Installation

$ git clone [email protected]:alice1017/SelectMenu.git
$ cd SelectMenu
$ python setup.py build install

or

$ pip install SelectMenu

👀 Contribution

  1. Forks on Github
  2. Find a bug? Send a pull request to get it merged and published.

About

SelectMenu is the input form to choose from menu by arrow keys.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages