A simple terminal menu for python
Project description
kiwi menu
'kiwi menu' is a python library that you can use to create simple menus in the terminal screen.
Install
pip install kiwi_menu
Example
from kiwi_menu import Menu
fruits = ["apple", "banana", "kiwi"]
menu = Menu(
"Choose a fruit",
fruits
)
selected = menu.show_menu()
print("You choosed", fruits[selected])
Result:
> apple
banana
kiwi
You choosed apple
Observation: You optionaly can define the color, symbol, and the pre-selected number.
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
kiwi_menu-1.0.2.tar.gz
(2.1 kB
view hashes)
Built Distribution
Close
Hashes for kiwi_menu-1.0.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 1c64dec057ce0722c20b45f8ef0b1a4cf1a7057c9f5eaaf7f4a347923747d515 |
|
MD5 | 355eb04b93825917b9f0c7933dace4ff |
|
BLAKE2b-256 | 54b641e4437e9b8e8d36df42924549977127fc74591562588137f4f8eaf24b1b |