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.1-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | a5d89c80dcbb94f8a139c10cf88deed52772df7773bdd0ad6a3193f96c3dc5ec |
|
MD5 | 2cbcc084685f0381bc943df789ae4bc1 |
|
BLAKE2b-256 | 31a122fffeb7373b8b02b2c7c8d864e4fc84f331e53dac33496f5289ef72e3ef |