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
. And you can put some 'texts' for center, like a description with the argument centered_texts
, with the texts inside a list.
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.3.tar.gz
(2.2 kB
view hashes)
Built Distribution
Close
Hashes for kiwi_menu-1.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8eb6d28c72bee00ccb2dff5a5e8efee80b8ee51e1c2fe002a74f5417367884b0 |
|
MD5 | 15729cb7bda01a2f7f86549fbc7e995f |
|
BLAKE2b-256 | 60f8dd1c8d41d34a94409390960de85472c50e8666af023d63e87bba009ef629 |