Better Menu
better_menu is a Python library for creating simple but cool menu(s) very fastly.
Installation
Use the package manager pip to install Pydeas
pip install better_menu
Get Started
For an example of the final output check
The menu constructor
the Menu constructor takes in 1 argument (and other optionals 2) : a menu dictionary that has the voice and a function that will be executed if the voice is chosen
m = {
'1. Insert User': insert_user,
'2. Exit': exit
}
Now pass the menu to the constructor
from better_menu.menu import Menu
m = {
'1. Insert User': insert_user,
'2. Exit': exit
}
menu = Menu(m)
menu.init()
Title and Subtitle
You can add a title and a subtitle that will be printed within the menu
from better_menu.menu import Menu
m = {
'1. Insert User': insert_user,
'2. Exit': exit
}
menu = Menu(m)
menu.title('Title')
menu.subtitle('Subitle')
menu.init()
Option Argument (indicator, color)
Indicator (ind): indicate the indicator of the selcted voice
Color (color): indicate the color of the title or subtitle or of the selcted voice if passed to the menu constructor
from better_menu.menu import Menu
m = {
'1. Insert User': insert_user,
'2. Exit': exit
}
#set the indicator of the selcted voice to '>' and the color of the selected voice to red
menu = Menu(m, ind='>', color='red')
# set the color of the title to 'black'
menu.title('Title', color='black')
# set the color of the subtitle to 'blue'
menu.subtitle('Subitle', color='blue')
menu.init()
Metadata
Release files for better-menu 1.0.13
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 | |
|---|---|---|---|---|
| better_menu-1.0.13.tar.gz | 2.9 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| better_menu-1.0.13-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.9 kB
Security for better-menu 1.0.13
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.