Skip to main content

PyCLIMenu

CLI Menu module for Python.

Usage

Standard usage

import menu

main_menu = menu.Menu("Main Menu")

main_menu.add_items({
    "Option 1": callback_1,
    "Option 2": callback_2
})

main_menu.display()

Alternatively...

import menu

menu.BasicMenu("Main Menu", {
    "Option 1": callback_1,
    "Option 2": callback_2
})

Option menu

import menu

color_menu = menu.OptionMenu("Color")

red = (255, 0, 0)
green = (0, 255, 0)
blue = (0, 0, 255)

color_menu.add_items({
    "Red": red,
    "Green": green,
    "Blue": blue
})

color = color_menu.display()

Alternatively...

import menu

color_menu = menu.BasicOptionMenu("Color", {
    "Red": (255, 0, 0),
    "Green": (0, 255, 0),
    "Blue": (0, 0, 255)
})

color = color_menu.selection

Release files for climenu-pkg-baely 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for climenu-pkg-baely 0.0.1
File Size Uploaded
climenu-pkg-baely-0.0.1.tar.gz 1.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for climenu-pkg-baely 0.0.1
File Interpreter ABI Platform
climenu_pkg_baely-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 3.9 kB

Release files / climenu-pkg-baely-0.0.1.tar.gz

Download URL climenu-pkg-baely-0.0.1.tar.gz
Size 1.6 kB
Tags Source
SHA-256 checksum
How to use checksums
a780b13d69ca78ca0e88d0dfc9a582d694f12f239bd90feda05f62907e2e9d1d
BLAKE2b-256 checksum
How to use checksums
89496cfcfde1014809bcdb4dfed24b69981fd4fb036447bb7178c976b227e5ae
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Release files / climenu_pkg_baely-0.0.1-py3-none-any.whl

Download URL climenu_pkg_baely-0.0.1-py3-none-any.whl
Size 2.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9400f8493fa56ddfc55f99096defae94db7f4e735dd1e688ed8f7c576249f7cc
BLAKE2b-256 checksum
How to use checksums
7306253f7709fa793c4fb22d95edab6a6a862a2c1d748a9c12667fc5c628cf97
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.1 CPython/3.8.3

Release history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page