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
- Install the package:
pip install spelis-sgui - Import the library:
import sgui as gui - If something went wrong and raylib (pyray) isnt installed, run this command:
pip install raylib
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.6.tar.gz
(9.8 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.6.tar.gz.
File metadata
- Download URL: spelis_sgui-0.0.6.tar.gz
- Upload date:
- Size: 9.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
440bcc60aeaff0421cdf7e8e58b23280948fae68f11cb7700ffd8fada4fe4cb5
|
|
| MD5 |
99471f08b1558554ee4ddb2b6031286a
|
|
| BLAKE2b-256 |
b9a0613e53f7c0cd324aaf47462bca1dd11edf5a89992aaa7d085ea0b44440db
|
File details
Details for the file spelis_sgui-0.0.6-py3-none-any.whl.
File metadata
- Download URL: spelis_sgui-0.0.6-py3-none-any.whl
- Upload date:
- Size: 9.0 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 |
d1a361f8d0800f685a8efddc8476b6ac6937ca099f31e4ae740924464f24bb33
|
|
| MD5 |
3eec297dc744c889d8fba0671166c95a
|
|
| BLAKE2b-256 |
1143eb22d6b6ea21e19ab61eab6120d23e614add890c625b27fb35a3a61f078c
|