Skip to main content

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


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)

Uploaded Source

Built Distribution

kiwi_menu-1.0.2-py3-none-any.whl (2.1 kB view hashes)

Uploaded Python 3

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