Skip to main content

Lightweight and easy-to-use Immediate Mode GUI library for Python and Raylib

Project description

SGUI - Spelis's GUI Library

PyPI - Version PyPI - Python Version GitHub repo size

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

  1. Install the package: pip install spelis-sgui
  2. Import the library: import sgui as gui
  3. 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


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.7.tar.gz (10.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.7-py3-none-any.whl (9.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: spelis_sgui-0.0.7.tar.gz
  • Upload date:
  • Size: 10.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.7.tar.gz
Algorithm Hash digest
SHA256 76f57eb90a768eae974aa50a21f3598afe566209bde5bc557f8fc0e344494e49
MD5 05cf68e18392d8cca82e1a159c0954d6
BLAKE2b-256 f92f58f03266433e986750d444619b2985d246c4786bcccca13877e1fe180fab

See more details on using hashes here.

File details

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

File metadata

  • Download URL: spelis_sgui-0.0.7-py3-none-any.whl
  • Upload date:
  • Size: 9.8 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 d806657e92cbe683503a00ac18429b13583d3c40ddd539317a154bc2d20509c9
MD5 1b86d27f63cf6b04647b19154679ac59
BLAKE2b-256 f2b4d66c5289c75692dd4580514f8d72a85591db384bee7ed92797e4b7a6adf1

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