A simple terminal menu for python
'kiwi menu' is a python library that you can use to create simple menus in the terminal screen.
pip install kiwi_menu
from kiwi_menu import Menu fruits = ["apple", "banana", "kiwi"] menu = Menu( "Choose a fruit", fruits ) selected = menu.show_menu() print("You choosed", fruits[selected])
> apple banana kiwi You choosed apple
Observation: You optionaly can define the
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.
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Hashes for kiwi_menu-1.0.3-py3-none-any.whl