No project description provided
Project description
Rich Menu
Rich menu is a library that allows the quick and simple creation of cli menus, using Rich as a backend.
Installation
Installation is very simple, just run the following command in the terminal:
pip install rich-menu
Basic Usage
from rich_menu import Menu
menu = Menu(
"Option 1",
"Option 2",
"Option 3",
"Exit",
)
match menu.ask():
case "Option 1":
print("first option selected")
case "Option 2":
print("second option selected")
case "Option 3":
print("third option selected")
case "Exit":
exit()
from rich_menu import Menu
menu = Menu(
"X",
"O",
color="blue",
rule_title="Tic Tac Toe",
align="center",
panel_title="Choose your icon",
selection_char="->",
)
selected = menu.ask(screen=False)
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
rich_menu-0.1.4.tar.gz
(3.1 kB
view hashes)
Built Distribution
Close
Hashes for rich_menu-0.1.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6156a1feecd615b250ce8fb6972b7e4c2f3d44af2eace66dee98f0c546853408 |
|
MD5 | ad2eb9368f66435d8ea292b6b439c5a1 |
|
BLAKE2b-256 | 9efab7c67d1c9067d5c0e54a78b8f09d6fb27581e48e65beaf1bb927564ad546 |