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)
| 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)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| 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
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.