Skip to main content

License: LGPL v3 PyPI Python Qt Tests Platform

uitk

Name it, and it connects. A convention-driven Qt framework that turns UIs — Qt Designer files or widget trees built in code — plus Python slot classes into working applications with zero glue code.

uitk (highlighted) in the ecosystem: uitk requires pythontk; unitytk requires pythontk; mayatk requires uitk; blendertk requires uitk; tentacle requires uitk; extapps requires uitk; tentacle installs mayatk as its [maya] extra; tentacle installs blendertk as its [blender] extra; tentacle opens extapps by name (its [apps] extra) and never imports it; mayatk and blendertk share a mirrored API. tentacle and extapps are products, which nothing imports.

Why uitk exists

UITK comes from years of building artist tooling for DCC pipelines (Maya, Blender), where you don't need one big application — you need dozens of small ones. Each traditionally pays the same Qt tax before doing anything useful: load the .ui, findChild() every widget, .connect() every signal, restore and save state, style it, and behave correctly standalone or inside a host app. None of that code is the tool — and hand-rolling it slightly differently each time is how a toolkit of thirty tools becomes thirty apps by thirty authors.

Design

Principle In practice
Names do the wiring A widget's name in Designer is the name of the method it calls on the panel's slot class, and <name>_init runs once when the widget registers. UI files map to slot classes the same way, so a panel's code holds only what the tool does.
Good behavior by default Every widget's value is saved when it changes and restored the next time its window opens; every window remembers its place, and the theme applies with no code. A fleet of small tools then behaves as one application.
Options live on their widget Advanced settings attach to the control they belong to, as a .menu or an .option_box built with one call and read back by name, so a tool needs no separate settings dialog.
No application inside uitk names no DCC and no product. A host answers a small adapter (MarkingMenu(host=...), a UiHandler), and the same panels run standalone, in Maya and in Blender.
Every convention has an override @Signals picks the signals a slot connects to, a handler replaces how windows are shown and styled, and any default can be switched off for one widget or one UI.
Compiled UI that cannot go stale A .ui file compiles to a module stamped with its source's hash, and a stale one recompiles on load. Compilation uses the running binding's own uic, so the output loads where a venv's PySide6 and Maya's bundled one differ.
Saved settings survive renames When a panel is renamed or merged into another, its users' saved values, widget states and shortcut overrides are carried into the panel that took its place.
Test-driven, on live widgets Every bug is reproduced as a failing test before it is fixed, and the test stays in the suite. Nearly 6,000 tests run against live Qt widgets offscreen, and a release requires a full passing run recorded against that exact source.

Fits: fleets of small-to-medium tools, built in Designer or in code, standalone or hosted in an application such as a DCC. Doesn't: a single large app with its own UI layer, or non-Qt targets. tentacle's panels and extapps' apps are all built on it. The reasoning behind each rule is in the code standard.

What's in it

Part What it is for Guide
Switchboard Finds UI files and slot classes, wires them and owns the registries and settings: one object starts a whole fleet of tools Architecture
Slots The method-naming contract: default signals, @Signals, parameter injection, debounce, cancel Slots Contract
MainWindow Wraps every loaded UI: lifecycle signals, saved geometry and state, styling, placement User Guide
Widgets .menu, .option_box, tables, header and footer, each placeable in Qt Designer (python -m uitk.designer) Widgets
Marking menu A radial gesture menu: a whole toolkit reached from one held key Marking Menu
Sequencer and editors An NLE-style timeline (clips, keys, markers, audio scrub) and the bundled Style, Shortcut and UI Browser editors Widgets
Handlers Host-specific behavior (Maya, Blender, standalone) without forking the library or the tools Architecture
Bridge Parameter panels for jobs run in another program: options built from specs, presets, a log and a Run button Bridge

New here: the Tutorial goes from an empty folder to a working app, the Cookbook has recipes from real tools, and the API Reference lists the public signatures.

Install

pip install uitk PySide6          # standalone (PySide6 is the supported binding)
python -m uitk.examples.example   # optional: interactive demo of the full feature set

Inside a DCC, pip install uitk is enough — the host provides its own Qt binding (uitk pulls in the pure-Python qtpy shim but deliberately no binding).

from uitk import Switchboard

class EditorSlots:
    def __init__(self, **kwargs):
        self.sb = kwargs["switchboard"]
        self.ui = self.sb.loaded_ui.editor

    def btn_save_init(self, widget):   # runs once when btn_save registers
        widget.setText("Save")

    def btn_save(self):                # runs on clicked (QPushButton default signal)
        self.sb.message_box("Saved")

sb = Switchboard(ui_source="editor.ui", slot_source=EditorSlots)
sb.loaded_ui.editor.show(pos="screen", app_exec=True)

Widget btn_save in editor.ui is connected to EditorSlots.btn_save because the names match.

No .connect() calls. No findChild(). No manual state restore.

See also: changelog · tests · contributing · docs ledger.

License

LGPL-3.0-or-later — see COPYING.LESSER and COPYING.

Metadata

Release files for uitk 1.13.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distribution (wheel)

Table of built distributions (wheels) for uitk 1.13.1
File Interpreter ABI Platform Actions
uitk-1.13.1-py3-none-any.whl Python 3 none any Details for uitk-1.13.1-py3-none-any.whl

Release files / uitk-1.13.1-py3-none-any.whl

Download URL uitk-1.13.1-py3-none-any.whl
Size 1.6 MB
Tags Python 3
SHA-256 checksum
How to use checksums
c10267eb802468a5fddfe029595e1b4534a59e24548bbf5b51acf51a199b2e79
BLAKE2b-256 checksum
How to use checksums
35bf94a8bd0065c96e8da5c2ff908ad37c35f934fb68628e756b11128650a64b
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.18

Security for uitk 1.13.1

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A 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.

Release history Release notifications | RSS feed

This release

1.13.1 This release

1 release file No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page