Metadata-Version: 2.1
Name: interactive_buttons
Version: 1.5
Author: Mathys B
Author-email: mathys.boyer@pro.mbinc.tech
Description-Content-Type: text/markdown
Requires-Dist: keyboard
Requires-Dist: pynput==1.7.6


# 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

```bash
  pip install interactive_buttons
```



## Usage/Examples

```python
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** :
![](https://cdn.discordapp.com/attachments/946745366395621379/1160240952309461044/image.png?ex=6533f197&is=65217c97&hm=0a84b34fd0d4e29b98652fcbeebdf8dd6179a9a413cec5dfc2de249a40623cc7&)


### Author
[@mbcraft-exe](https://github.com/mbcraft-exe)

