No project description provided
Project description
Interactive buttons
Interactive Buttons is a Python package which allows you to create buttons in the command prompt.
How to use it ?
To use IB, you have to use keyboard arrows
to select the option you want and the enter
key to execute the button linked function.
Install IB
pip install interactive_buttons
Usage/Examples
import interactive_buttons
print("Choose what you wants to do :")
def say_hello():
print("Hello !")
def add(number_one, number_two):
print(number_one + number_two)
buttons = [["Say hello", say_hello],
["Do math", add, (2, 2)]]
interactive_buttons.linear_buttons(buttons)
Output :
Author
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Close
Hashes for interactive_buttons-1.0-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | f78d853eef7ba9a299b72cec764c60ecdc08324e1a37ea4715d5f118dda81f71 |
|
MD5 | 3cae991f5a45b0c286475736d866cb8b |
|
BLAKE2b-256 | 6f4f9c31a6964b6f6b991bcafeb41b32fe91cb81187d795abe8d792c80fd87a6 |