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.0.9.tar.gz
(12.3 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.9.tar.gz.
File metadata
- Download URL: spelis_sgui-0.0.9.tar.gz
- Upload date:
- Size: 12.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.0.1 CPython/3.11.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4c7f6e02dc4a6010774d49ba8d44a8db39f3eb16677e816ed8f4553013342ba0
|
|
| MD5 |
328dc5accbfc577dd213a74dd0c360e1
|
|
| BLAKE2b-256 |
d87a42cfcc46b71340234640a6d998a00f1c01571fc4dd6f6c03932d750f0733
|
File details
Details for the file spelis_sgui-0.0.9-py3-none-any.whl.
File metadata
- Download URL: spelis_sgui-0.0.9-py3-none-any.whl
- Upload date:
- Size: 11.3 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 |
87b2b3e102f56c0573e5c2543d0e91530437d6b6607ace88f6d1cd92f08161d1
|
|
| MD5 |
7e43d0f663ce788e2cdf7baa9034b307
|
|
| BLAKE2b-256 |
9410a333b5acf519bcd1d46d0922fc430b1357f2817fee9f5e2d7297780c67f1
|