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.5-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | d7a30dd01986910f8bbe80b809ffc800b5b5b63a470067d63ed02508a4e35970 |
|
MD5 | 26cdb57abf3d49386a62e65c008e0eb8 |
|
BLAKE2b-256 | 8bb129851f378a7d1e8e978bd071c6f16a619eb8edcd8fd48e7ceadce61a1050 |