A Framework for Pygame UI Elements
Project description
A Pygame-Based UI Element Framework
pigUI is a modular, event-driven framework built on Pygame designed for creating ui / ui-styles(ux). It provides all the necessary low-level components—from a robust UI manager and specialized widgets to a smooth Bézier curve drawing utility—to quickly prototype and build graphical programming tools.
✨ Features Overview
- Hierarchical UI Management: The
UIManagerhandles element layering, rendering order, and ensures input blocking (only the top/active element, like a dragged node or a text input, receives events). - Intuitive Event Handling: The
Eventsclass abstracts raw Pygame events (mouse clicks, double-clicks, wheel scroll, keyboard input) into simple, clean state variables. - Specialized UI Widgets: Includes complex, ready-to-use components like
UITextInput(with key repeat and validation),UIDropDown,UIMenuBar, and anUIColorPicker. - Customizable Aesthetics: The separation of logic (
UIElement) and visuals (UXElement/UXWrapper) allows for easy theme changes and custom component rendering.
🛠️ Installation and Setup
Prerequisites
You need Python 3.x installed.
Install
PyNodle requires Pygame and NumPy (used for array manipulation in the color picker and potentially other areas).
pip install -r requirements.txt
The package
pip install jmpUI
🚀 Usage and Extending
The application's core logic runs in app.py. The UIManager (UIM) manages every component you create.
Implementing Custom Interactions
All custom components should inherit from UIElement and override the appropriate callback methods.
🤝 Contributing
We welcome contributions, bug reports, and feature requests! Please feel free to open an issue or submit a pull request.
📜 License
This project is licensed under the GPL V3 License.
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
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 jmpui-0.1.59.tar.gz.
File metadata
- Download URL: jmpui-0.1.59.tar.gz
- Upload date:
- Size: 53.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6185a9946271e31205513644fd17c3122a2c6f8ad41b1d99b35920df2d041c31
|
|
| MD5 |
4737fae5876c339ef813da6ee88183cf
|
|
| BLAKE2b-256 |
09de1752a31fc22a65d43228bbab3644ab81fc44374d69c40be8bbde5fc9a886
|
Provenance
The following attestation bundles were made for jmpui-0.1.59.tar.gz:
Publisher:
release.yml on justusdecker/pigUI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jmpui-0.1.59.tar.gz -
Subject digest:
6185a9946271e31205513644fd17c3122a2c6f8ad41b1d99b35920df2d041c31 - Sigstore transparency entry: 757793778
- Sigstore integration time:
-
Permalink:
justusdecker/pigUI@2699f871ee0ac64ce4510560ee4c66b4c913a3a8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/justusdecker
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2699f871ee0ac64ce4510560ee4c66b4c913a3a8 -
Trigger Event:
push
-
Statement type:
File details
Details for the file jmpui-0.1.59-py3-none-any.whl.
File metadata
- Download URL: jmpui-0.1.59-py3-none-any.whl
- Upload date:
- Size: 45.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5463db3266bf4e2d9de94a5e57453c1fecb8e5ad407e60363dd661889d8d083a
|
|
| MD5 |
689ed7fa82614e3a79580adeaa979c8a
|
|
| BLAKE2b-256 |
c1104e519b7fa2b5c16789b0e0e14a9a2a3e74e629bddea8a4ae0d571421f4e3
|
Provenance
The following attestation bundles were made for jmpui-0.1.59-py3-none-any.whl:
Publisher:
release.yml on justusdecker/pigUI
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
jmpui-0.1.59-py3-none-any.whl -
Subject digest:
5463db3266bf4e2d9de94a5e57453c1fecb8e5ad407e60363dd661889d8d083a - Sigstore transparency entry: 757793781
- Sigstore integration time:
-
Permalink:
justusdecker/pigUI@2699f871ee0ac64ce4510560ee4c66b4c913a3a8 -
Branch / Tag:
refs/heads/main - Owner: https://github.com/justusdecker
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
release.yml@2699f871ee0ac64ce4510560ee4c66b4c913a3a8 -
Trigger Event:
push
-
Statement type: