Skip to main content

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)

  1. Clone the repo: git clone https://github.com/Spelis/sgui.git and cd into it.
  2. Install dependencies: pip install -r requirements.txt
  3. Build Package: py -m build
  4. Install Package: pip install .

PyPI

  1. Install the package: pip install spelis-sgui
  2. Import the library:

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


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.4.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

spelis_sgui-0.0.4-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file spelis_sgui-0.0.4.tar.gz.

File metadata

  • Download URL: spelis_sgui-0.0.4.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

Hashes for spelis_sgui-0.0.4.tar.gz
Algorithm Hash digest
SHA256 a249e1c23436d8e077893ebe3dac93f6bc334853bf6db5f7819bf25844175aa4
MD5 75d5ec9e6ab639ff643869483f65c84f
BLAKE2b-256 d307ad03c8fe398607001817e9993295edcdbd77044396f568855e923582c2f7

See more details on using hashes here.

File details

Details for the file spelis_sgui-0.0.4-py3-none-any.whl.

File metadata

  • Download URL: spelis_sgui-0.0.4-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

Hashes for spelis_sgui-0.0.4-py3-none-any.whl
Algorithm Hash digest
SHA256 2628f4f52c065a73abab70e63148b60d490e23e4cd036d5ecadcb241676e7526
MD5 42cc4621faa9653d381c57f40c39282d
BLAKE2b-256 7eeac98f6d444baa192edffd4203ecdc275c4bdef4e608d7d77072e7b0449d76

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page