Skip to main content

fork of https://github.com/IngoMeyer441/simple-term-menu but add a new parameter: print_entry_fn

This parameter allow you to control how to print each entry.
example: use rich to print text

from rich_simple_term_menu import TerminalMenu
from rich.console import Console

console = Console()

options = ["[bold gold1]entry 1", "entry 2", "entry 3"]

# Add the new `print_entry_fn` to control how to print each entry! 
terminal_menu = TerminalMenu(options, print_entry_fn=lambda x: console.print(x, end=''))

menu_entry_index = terminal_menu.show()
print(f"You have selected {options[menu_entry_index]}!")

Metadata

Release files for rich-simple-term-menu 0.1.0

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

Source distribution (sdist)

Source distribution for rich-simple-term-menu 0.1.0
File Size Uploaded Provenance Actions
rich_simple_term_menu-0.1.0.tar.gz 18.7 kB Without provenance Details for rich_simple_term_menu-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for rich-simple-term-menu 0.1.0
File Interpreter ABI Platform Actions
rich_simple_term_menu-0.1.0-py3-none-any.whl Python 3 none any Details for rich_simple_term_menu-0.1.0-py3-none-any.whl

Total release size: 37.9 kB

Release files / rich_simple_term_menu-0.1.0.tar.gz

Download URL rich_simple_term_menu-0.1.0.tar.gz
Size 18.7 kB
Tags Source
SHA-256 checksum
How to use checksums
4ff5f11b47625e3cc3da8bdea2fb3c8eca2af28bc26d88be78b377ee119e0f6a
BLAKE2b-256 checksum
How to use checksums
f679731d830c66c54b19defc78e48d5ce1c135aecb66e99f5a8fbdf0499d926b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.11.2 Darwin/22.4.0

Release files / rich_simple_term_menu-0.1.0-py3-none-any.whl

Download URL rich_simple_term_menu-0.1.0-py3-none-any.whl
Size 19.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d11f6ab3caf0d02f8008d95909576b9e07e82b40ca31ae270194d28bf2ad25c9
BLAKE2b-256 checksum
How to use checksums
8267d256b3ff4feab38f1128284689d79e3d304a2cea7e189a9ff29a71ccab95
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via poetry/1.4.1 CPython/3.11.2 Darwin/22.4.0

Security for rich-simple-term-menu 0.1.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

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