Skip to main content

A tool for making terminal menus.

Project description

TermMenu

This is a little Python project that I wanted to do for some time.

The idea is that you should be able to make a terminal menu (below) easily and compactly.

Choose one:
0. Start game
1. Settings
2. And more
> {User input here}

Documentation

Read the documentation on ReadTheDocs.

Usage

To start off you need to import the library, and create a new menu.

import termmenu

testmenu = termmenu.Menu(title="What's up") # title is optional

Adding entries

To add entries, we use Menu.add_entry, usage:

Menu.add_entry(text, run=None, entry=None)

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

termmenu-1.5.tar.gz (3.4 kB view hashes)

Uploaded Source

Built Distribution

termmenu-1.5-py3-none-any.whl (3.9 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