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.4-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a94c7c4d05cf09fcc27669fa0db5db227934625bf2c3c94fb2aae6b8d0c5d9ca |
|
MD5 | 15b73bcfe34044ded70f86f626af9d58 |
|
BLAKE2b-256 | 25b4f45446099adaa59c26d157210664588dbb6bb55eb3b34bd17f9af72106ec |