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 * # Raylib
init_window(800,600,"SGUI Example")
gui.init() # initialize the library after raylib
win = gui.Window(10,10,150,150,"My Window!") # create a window
while not window_should_close(): # raylib drawing functions
begin_drawing()
clear_background(BLACK)
gui.NotifTick() # update the notifications (optional)
with win: # this is a context manager that sets the window as the current window
gui.label("Hello World!") # displays a little label inside the window
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.1.0.tar.gz
(12.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.1.0.tar.gz.
File metadata
- Download URL: spelis_sgui-0.1.0.tar.gz
- Upload date:
- Size: 12.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
24502e9d1ae9a9d82ad7b38ced10501eb2ae81d9a09ef1d7e08c6f3edbd09844
|
|
| MD5 |
3c2b392ccc519df249b5f4da2be350e3
|
|
| BLAKE2b-256 |
6749b984f23b78d17dfa256ad1dccca34876f84a94836db5631285abac0f64bf
|
File details
Details for the file spelis_sgui-0.1.0-py3-none-any.whl.
File metadata
- Download URL: spelis_sgui-0.1.0-py3-none-any.whl
- Upload date:
- Size: 11.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.2
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
259d5323def8f0e305d5a8f18b00a4ce376e6c390fe518effad5d7961e90be96
|
|
| MD5 |
a30a65c9ea927bafe9330251d5da8536
|
|
| BLAKE2b-256 |
1f1dca45b238431ec0477dbfd3cf3ff6e18a08740353358c857fb110ebd80997
|