Skip to main content

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 UIManager handles 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 Events class 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 an UIColorPicker.
  • 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

jmpui-0.1.41.tar.gz (42.4 kB view details)

Uploaded Source

Built Distribution

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

jmpui-0.1.41-py3-none-any.whl (30.9 kB view details)

Uploaded Python 3

File details

Details for the file jmpui-0.1.41.tar.gz.

File metadata

  • Download URL: jmpui-0.1.41.tar.gz
  • Upload date:
  • Size: 42.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jmpui-0.1.41.tar.gz
Algorithm Hash digest
SHA256 b36f70fa5b8ac2f4262e7fbfa28658bb2ffe85e7294bfa41f015bba57d6f8d15
MD5 221b8ab1c8eff3e3fa1d02f6c17a8a83
BLAKE2b-256 2030ef81aaeeab5f7ead991df000f42521d5684861b2153aa2db04c21f88af5b

See more details on using hashes here.

Provenance

The following attestation bundles were made for jmpui-0.1.41.tar.gz:

Publisher: release.yml on justusdecker/pigUI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file jmpui-0.1.41-py3-none-any.whl.

File metadata

  • Download URL: jmpui-0.1.41-py3-none-any.whl
  • Upload date:
  • Size: 30.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for jmpui-0.1.41-py3-none-any.whl
Algorithm Hash digest
SHA256 a2b0d0c6d4a01c9391e29f0c8ce9ff7d6e835ac6aa67194057890071475c0b13
MD5 8142fc23204c0a41331df7c1f59e63ee
BLAKE2b-256 687d25fc58aec0955f291e8c1feec7d025f7337eff5aa0333621fab0dccbc0f6

See more details on using hashes here.

Provenance

The following attestation bundles were made for jmpui-0.1.41-py3-none-any.whl:

Publisher: release.yml on justusdecker/pigUI

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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