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 made by Spelis (Me :3) 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
- yeah, no i haven't gotten around to putting it on PyPI yet.
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.1.tar.gz
(8.0 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.1.tar.gz.
File metadata
- Download URL: spelis_sgui-0.0.1.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ebf9e602b7b9129bddd239c5f5245461d8de2930b1b52b4c673ec79ede67a88a
|
|
| MD5 |
e3b08d02800c219efc2055f60c92ee0e
|
|
| BLAKE2b-256 |
37cc4e98baa9d624ca3d03cf94bc7734645efdd21b1952caf9a7d768d5cb1043
|
File details
Details for the file spelis_sgui-0.0.1-py3-none-any.whl.
File metadata
- Download URL: spelis_sgui-0.0.1-py3-none-any.whl
- Upload date:
- Size: 8.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 |
cae38f1c87fc5035791244c858a777396da919f482f140a158467172fcc927e9
|
|
| MD5 |
036c924273b7311a8a89baf18674c06c
|
|
| BLAKE2b-256 |
4776608bb3f9a7a54e3802bb526683b48b8bc65ec97d2429bd28b3c6c229f779
|