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.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 39aa1933221ebf3484a02fdfb8ebc7a966789aea5841ad4e9518f8487beb384d |
|
MD5 | e8b4ccb8e7a8557269b5bfd15146336d |
|
BLAKE2b-256 | b919a16bd03b77ab2c45329d32004503cc6a3bc8884ec7e52615eaa55b070420 |