https://github.com/alice1017/selectmenu
SelectMenu is the input form to choose from menu by arrow keys.
https://github.com/alice1017/selectmenu
prompt-toolkit python2 selectmenu
Last synced: about 1 month ago
JSON representation
SelectMenu is the input form to choose from menu by arrow keys.
- Host: GitHub
- URL: https://github.com/alice1017/selectmenu
- Owner: alice1017
- License: mit
- Created: 2018-04-03T04:23:31.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-12-17T12:37:45.000Z (over 4 years ago)
- Last Synced: 2025-03-23T19:51:33.966Z (about 2 months ago)
- Topics: prompt-toolkit, python2, selectmenu
- Language: Python
- Size: 1.72 MB
- Stars: 22
- Watchers: 1
- Forks: 10
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# SelectMenu
[](http://forthebadge.com)

## :page_facing_up: Overview
**SelectMenu** is the input form to **choose from menu** by arrow keys.
SelectMenu powered by [**python-prompt-toolkit**](https://github.com/jonathanslenders/python-prompt-toolkit).
## :pencil2: Usage
```python
>>> 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
```## :inbox_tray: Installation
```
$ git clone [email protected]:alice1017/SelectMenu.git
$ cd SelectMenu
$ python setup.py build install
```or
```
$ pip install SelectMenu
```## :eyes: Contribution
1. Forks on [Github](https://github.com/alice1017/SelectMenu)
2. Find a bug? Send a pull request to get it merged and published.