Skip to main content

A premium, grid-based Python GUI library built on CustomTkinter.

Project description

SulvionPiGUI 🎨

SulvionPiGUI (or spgui) is a premium, powerful, and easy-to-use Python GUI library built on top of CustomTkinter. It's designed for developers who want to create beautiful, grid-based desktop applications with minimal code.

🌟 Features

  • Grid-Based Layout: No more complex pixel math. Place widgets using intuitive grid coordinates.
  • Modern Aesthetics: Built-in dark and light themes with premium CustomTkinter widgets.
  • Dynamic Plots: Integrated Matplotlib support for real-time data visualization.
  • Interactive Widgets: Drag-and-drop, resizable widgets, and easy event binding.
  • High-DPI Support: Automatically handles screen scaling for crisp visuals on all displays.
  • Beginner Friendly: Simple API inspired by the best practices of modern web design.

🚀 Installation

You can install SulvionPiGUI via pip:

pip install spgui

Dependencies:

  • customtkinter
  • matplotlib
  • pillow

📖 Quick Start

Here is a simple example to get you started:

import SPGUI as ui

# Initialize app with a 10x10 grid
app = ui.init(
    SIZE=[10, 10], 
    title="Hello SPGUI", 
    theme="dark", 
    show_grid=True
)

# Add a label at (0, 0)
app.label(pos=[0, 0], size=[10, 1], text="Welcome to SulvionPiGUI!", text_size=16)

# Add a button that shows a message
def say_hello():
    app.message("Greeting", "Hello World!")

app.btn(pos=[4, 4], size=[2, 1], text="Click Me!", onclick=say_hello)

# Add a text input
def on_text_changed(text):
    print(f"User typed: {text}")

app.input(pos=[2, 6], size=[6, 1], placeholder="Type here...", onchange=on_text_changed)

app.run()

🛠️ Available Widgets

  • app.label() / app.text(): Display text.
  • app.btn() / app.button(): Interactive buttons.
  • app.input(): Text entry fields.
  • app.checkbox(): Toggle boxes.
  • app.dropdown(): Select menus.
  • app.slider(): Range sliders.
  • app.number(): Numeric inputs with filtering.
  • app.plot(): Matplotlib charts (line/bar).
  • app.table(): Data grids.
  • app.image(): Display images via PIL.

⛓️ Performance & Debugging

Enable the debug grid during development to visualize your layout:

app = ui.init(show_grid=True, coord_color="#00ff00")

📄 License

This project is licensed under the MIT License. See the LICENSE file for details.

Developed with ❤️ by Hafiz Daffa W.

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

sulvion_pigui-0.1.1.tar.gz (3.4 kB view details)

Uploaded Source

Built Distribution

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

sulvion_pigui-0.1.1-py3-none-any.whl (3.5 kB view details)

Uploaded Python 3

File details

Details for the file sulvion_pigui-0.1.1.tar.gz.

File metadata

  • Download URL: sulvion_pigui-0.1.1.tar.gz
  • Upload date:
  • Size: 3.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for sulvion_pigui-0.1.1.tar.gz
Algorithm Hash digest
SHA256 aa2822ef77c5ba647b987a2fdb6db57cd02cc6472614345d0a1d7afa72dda490
MD5 0f933dbdbe2f3153a840980bf19bcf83
BLAKE2b-256 467b8991bd9183d6698ebda3652eea61cf33fbc6f69c64802cb4670b4afc9bf8

See more details on using hashes here.

File details

Details for the file sulvion_pigui-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: sulvion_pigui-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 3.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.12.6

File hashes

Hashes for sulvion_pigui-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 776ae2b7e1238641d7cc8871869e6ce5f83b00a6e2b7bff828e32582e394c1f2
MD5 6664529dce7982bb34f08429507df20f
BLAKE2b-256 96a9d6984628faf915780bb337cc7e426422ef190b99b01ca3c7dbe5f1ecebdd

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