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.2.tar.gz
(3.0 kB
view hashes)
Built Distribution
Close
Hashes for rich_menu-0.1.2-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a0a1f743fdafc01cfce8d6c43eb95a4a3d09c2c2fbd3992e8fd34efb2d64bfc6 |
|
MD5 | bd120af04000c5fc74ce523bcc72a137 |
|
BLAKE2b-256 | 5f145d4874515c3049dee9aaee30d73a2c5b718a3f7fdda0ba8c2c205b2e2341 |