Skip to main content

A lightweight, focused UI library for Python

Project description

PicoUI Logo

PicoUI

A lightweight, focused UI library for Python

License: MIT Python


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 QGroupBox from 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()

Project Structure

picoui/
├── helpers/        # Layout and group box utilities
├── specs/          # Dataclass specs for widgets (ButtonSpec, CheckBoxSpec, etc.)
├── dialogs/        # Preferences dialog base and helpers
├── widget/         # Widget creation helpers and 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

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

picoui-0.1.2.tar.gz (8.1 kB view details)

Uploaded Source

Built Distribution

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

picoui-0.1.2-py3-none-any.whl (7.6 kB view details)

Uploaded Python 3

File details

Details for the file picoui-0.1.2.tar.gz.

File metadata

  • Download URL: picoui-0.1.2.tar.gz
  • Upload date:
  • Size: 8.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for picoui-0.1.2.tar.gz
Algorithm Hash digest
SHA256 5d81479985a7afdd32778956c96abcc1e72e6ec618fc7a89ed2c6c1be23aa23b
MD5 f472353d0142ae23e584f4fdb2932329
BLAKE2b-256 4d083cc6b2ae00decc4016c5a278f38f075111d3e9472b41a48af4705a5ddbc9

See more details on using hashes here.

File details

Details for the file picoui-0.1.2-py3-none-any.whl.

File metadata

  • Download URL: picoui-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 7.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.10.11

File hashes

Hashes for picoui-0.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 75d4b7f7878bab7a5cbc02f655e0dcfad61e10a94ef7e44049588e0e58270a17
MD5 a58cf0ab222a1136f7d5d40f204539bd
BLAKE2b-256 1591c18a65943ba280ee9fb0723746e81cac7e890291eaeac356b942b849f757

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