Lightweight and easy-to-use Immediate Mode GUI library for Python and Raylib
Project description
SGUI - Spelis's GUI Library
A lightweight and easy-to-use GUI library inspired by the ImGui library. The library is written in Python and uses the Raylib library for rendering.
Contributions are very welcome! :D
Features
- Minimal dependencies
- Easy to use and integrate
Installation
Manual (GitHub)
- Clone the repo:
git clone https://github.com/Spelis/sgui.gitat a location accessible to your project or script. - Install raylib:
pip install raylib - Import the library:
import sgui
PyPI
- Install the package:
pip install spelis-sgui - Import the library:
Building
- Build the package:
py -m build - Upload to PyPI (optional):
py -m twine upload dist/*
Example Usage
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()
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
spelis_sgui-0.0.2.tar.gz
(2.7 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file spelis_sgui-0.0.2.tar.gz.
File metadata
- Download URL: spelis_sgui-0.0.2.tar.gz
- Upload date:
- Size: 2.7 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9a00bc9aa584c5e3a29e6a26b66ff16cf30b90a3f90b00ba727d693bf47975db
|
|
| MD5 |
cfe5147d578c8200170b272d249645bc
|
|
| BLAKE2b-256 |
3cc3bb05a420bbb7d61c3314096061f63a2e3cdd032e619fe43b59acc7fdfce7
|
File details
Details for the file spelis_sgui-0.0.2-py3-none-any.whl.
File metadata
- Download URL: spelis_sgui-0.0.2-py3-none-any.whl
- Upload date:
- Size: 2.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
94724fba431c7fbe18c92295079130e1019e3714d31f99ea72a65793e414afea
|
|
| MD5 |
466d278f3b29223541de37a98f8905b8
|
|
| BLAKE2b-256 |
8444c2dbdbb40d11539ff6ea4ad6d2a52a0dca0cd6f4a0852622270fad86b98e
|