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.6-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | c690271fde26b2418b38a3510faf59ea00ae0873d374e544082ab11b612d103b |
|
MD5 | 3a0200e4f25cfcfc41f6f54d7b3efb99 |
|
BLAKE2b-256 | 04ddb97adbe5ea3f511fe3c5946b20af3f7047938233e9f3d6103fe3b75c25cf |