Metadata-Version: 2.1
Name: spelis-sgui
Version: 0.0.3
Summary: Lightweight and easy-to-use Immediate Mode GUI library for Python and Raylib
Home-page: https://github.com/spelis/sgui
Author: Elis Eriksson
Author-email: Elis Eriksson <elis.eriksson.2010@gmail.com>
Project-URL: Homepage, https://github.com/spelis/sgui
Project-URL: Issues, https://github.com/spelis/sgui/issues
Classifier: Programming Language :: Python :: 3
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Requires-Python: >=3.8
Description-Content-Type: text/markdown
License-File: LICENSE

# SGUI - Spelis's GUI Library

A lightweight and easy-to-use GUI library inspired by the [ImGui](https://github.com/ocornut/imgui) library. The library is written in Python and uses the [Raylib](https://github.com/raysan5/raylib) library for rendering.

### Contributions are very welcome! :D

## Features
- Minimal dependencies
- Easy to use and integrate

## Installation
### Manual (GitHub)
1. Clone the repo: `git clone https://github.com/Spelis/sgui.git` at a location accessible to your project or script.
2. Install raylib: `pip install raylib`
3. Import the library: `import sgui`
### PyPI
1. Install the package: `pip install spelis-sgui`
2. Import the library: 

## Building
1. Build the package: `py -m build`
2. Upload to PyPI (optional): `py -m twine upload dist/*`

## Example Usage
```python
import sgui as gui
from pyray import *

# initialize raylib
init_window(800,600,"SGUI Example")
gui.init()
window = gui.Window(10,10,150,150,"Example Window")

while not window_should_close(): # raylib window loop and drawing
    begin_drawing()
    clear_background(BLACK)

    with window: # my gui library :)
        if gui.button(100,"Example Button"):
            print("Button was pressed!")

    end_drawing()

close_window()
```
