Metadata-Version: 2.1
Name: ezui
Version: 0.1.1
Summary: A powerful and user-friendly Python library for creating dynamic command-line user interfaces.
Home-page: https://github.com/Plunder283/ezui
Author: Plunder283
Author-email: plunder283@protonmail.com
Keywords: ui,user interface,interface,GUI
Requires: colorama
Requires: keyboard
Description-Content-Type: text/markdown

# EzUI
A python module for easily creating a powerful and dynamic user interface in shell

![](https://github.com/Plunder283/ezui/blob/main/readme_assets/ui_exemple.png)

## How to use:

Here is a simple program who use it : (You can find it in the repo)
```python
import ezui
import sys

banner = """
  ______     _    _ _____ 
 |  ____|   | |  | |_   _|
 | |__   ___| |  | | | |  
 |  __| |_  / |  | | | |  
 | |____ / /| |__| |_| |_ 
 |______/___|\____/|_____|
                          
"""

def add(a, b):
    return a + b

def say_hello():
    print("Hello World!")

def sub(a, b):
    return a - b

def exit():
    sys.exit()

# This is the Menu elements
elements = [
    ("Hello World Function",say_hello),
    ("Additionner", add),
    ("Sub two operands", sub),
    ("Exit the programm", exit)
]

ezui.simple_menu(elements, banner, "default")
```

## Todo
    - Create a title system ✅
    - Find a way to know if the app is in foreground ❌
