Overview
PicoUI provides core UI functionality for PySide6/Qt applications with a clean, type-safe API. Built for developers who need reliable UI components—layout helpers, group boxes, preference dialogs, widget specs, and more—without the bloat. It favors convention over configuration and keeps the surface area small.
Features
- Layout helpers — Create vertical/horizontal layouts, form layouts, and rows with optional stretches and spacing
- Group builders — Build
QGroupBoxfrom labels and content (layouts, widget lists, or definitions) - Spec-driven UI — Dataclass specs for buttons, checkboxes, combos, spinboxes, tabs, and windows to describe UI declaratively
- Preferences dialogs — Base class for tabbed preference dialogs with spec-driven fields, reset support, and tooltips
- Widget utilities — Button/checkbox creation from specs, spinbox-with-label helpers, and value setters
- Icon registry — Centralized icon definitions and retrieval with fallback support (qtawesome)
- Tooltip manager — Shared tooltip handling
- Dimensions — Standard sizes for icons, dialogs, and progress bars
Requirements
- Python 3.8+
- PySide6
- qtawesome (for icon registry)
Installation
pip install picoui
Or from source (editable):
git clone https://github.com/markxbrooks/PicoUI.git
cd PicoUI
pip install -e .
Quick Start
from PySide6.QtWidgets import QApplication, QLabel
from picoui.helpers import build_group, group_with_layout
app = QApplication([])
# Simple group with widgets
group = build_group("Options", [QLabel("Item 1"), QLabel("Item 2")])
# Group with layout for incremental building
group, layout = group_with_layout(label="Section", vertical=True)
layout.addWidget(QLabel("Dynamic content"))
# Layout helpers
from picoui.helpers import create_vertical_layout, create_form_layout
vbox = create_vertical_layout(spacing=8)
form = create_form_layout()
CLI SpecEditor (MxLib KeywordSpecs)
Edit command-line flags/options for crystallography programs that use MxLib
keyword catalogs (FlagSpec / OptionSpec / AssignmentSpec):
from picoui.widget.spec_editor import SpecEditor
from picoui.specs.cli import SpecField, SpecFieldKind, SpecValueType
editor = SpecEditor(
fields=[
SpecField("pdb_file", SpecFieldKind.OPTION, token="-p",
value_type=SpecValueType.PATH, group="Inputs"),
SpecField("autoncs", SpecFieldKind.FLAG, token="-autoncs",
value_type=SpecValueType.BOOL, group="Flags"),
],
program="refine",
)
editor.set_values({"pdb_file": "model.pdb", "autoncs": True})
print(editor.argv()) # ['refine', '-p', 'model.pdb', '-autoncs']
# Or bind an MxLib catalog:
# SpecEditor.from_keyword_specs(BusterKeywordSpecs, program="refine")
Project Structure
picoui/
├── helpers/ # Layout and group box utilities
├── specs/ # Dataclass specs for widgets + CLI SpecField
├── dialogs/ # Preferences dialog base and helpers
├── widget/ # Widget helpers, SpecEditor, setters
├── tooltip/ # Tooltip management
├── dimensions.py # Standard UI dimensions
├── icons.py # Icon registry
└── settings.py # Settings integration
License
This project is licensed under the MIT License - see the LICENSE file for details.
Made with ❤️ for the UI community
Metadata
Release files for picoui 0.1.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| picoui-0.1.4.tar.gz | 57.4 kB | With provenance | Details for picoui-0.1.4.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| picoui-0.1.4-py3-none-any.whl | Python 3 | none | any | Details for picoui-0.1.4-py3-none-any.whl |
Total release size: 125.9 kB
Release files / picoui-0.1.4.tar.gz
| Download URL | picoui-0.1.4.tar.gz |
|---|---|
| Size | 57.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
8e6ff4081ab3485cae69c2b6a670d6d21265e9989f69831c86fc57195d917553
|
|
BLAKE2b-256 checksum How to use checksums |
5f211cde5dbb1ba693a68368c07c5e82a68fceb06f01ca5e188d00180ad4c9af
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logRelease files / picoui-0.1.4-py3-none-any.whl
| Download URL | picoui-0.1.4-py3-none-any.whl |
|---|---|
| Size | 68.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a5022ece5f5a32c83b55849017ea1afc57f09a71c1448b8f829ff9f658b40695
|
|
BLAKE2b-256 checksum How to use checksums |
086c00d60905d6df28eab07968e30dfee78702837bd2e3d20e17011d2a0da313
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.16
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logSecurity for picoui 0.1.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
Full provenance
Both files in this release have been uploaded with provenance metadata.
Attestation for picoui-0.1.4.tar.gz
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 7, 2026.
Transparency logA note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.