Skip to main content

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

Project description

forthebadge

demo

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 git@github.com: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.

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

SelectMenu-1.0.0b2.tar.gz (3.4 kB view details)

Uploaded Source

File details

Details for the file SelectMenu-1.0.0b2.tar.gz.

File metadata

File hashes

Hashes for SelectMenu-1.0.0b2.tar.gz
Algorithm Hash digest
SHA256 9e8623a5ac1a632b5f1e7a96698d62f7e76a4307639e4d7433e8a1a28c263e73
MD5 6ab3034ab5a5d463bbb59496977ed5da
BLAKE2b-256 cdb98078a7f34c5b877e7fa26e5c5c5f62cbc765d44c949dd672a29aef62089a

See more details on using hashes here.

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