Skip to main content
A label reading Taps: 3 above a button labelled Tap me, on black

pdwidgets

pdwidgets is a whole user-interface toolkit written in Python, with no C: labels, buttons, sliders, lists, dialogs and layouts, built on OmniPython's displaydev, boarddev, appdev and multimer. It shows that the core is a foundation other UI frameworks can stand on, and it runs the same code on MicroPython-compatible boards, CPython and in the browser. For an interface you ship, LVGL is the toolkit to reach for.

pip install --pre omnipython-pdwidgets omnipython-desktop
import omip
for package in ("omnipython", "pygraphics", "palettes", "pdwidgets"):
    omip.install(package)

omip comes with OmniPython firmware. On other MicroPython firmware, run mip.install("github:PyDevices/omnipython/lib/omip.py") once to put it on the board.

The first is for a desktop, and omnipython-desktop brings the display it draws on. The second installs onto a board, which also needs its board config: Install has every board and channel.

import board_config
import appdev
import pdwidgets as pd

app = appdev.App(board_config)
display = pd.Display(board_config.display_drv, app)
screen = pd.Screen(display, bg=0x0000)

label = pd.Label(screen, value="Taps: 0", align=pd.ALIGN.TOP, y=40, bg=screen.bg)
button = pd.Button(screen, label="Tap me", align=pd.ALIGN.CENTER, w=160, h=50)
taps = 0

def on_tap(sender, event):
    global taps
    taps += 1
    label.value = f"Taps: {taps}"
    print(label.value)

button.add_event_cb(pd.events.MOUSEBUTTONUP, on_tap)
app.run()
Taps: 1
Taps: 2
Taps: 3

That opens a window with a button in it, and each click prints a line. The picture at the top of this page is the window after three clicks.

Docs · Examples · Roadmap

OmniPython is made by PyDevices.

Metadata

Release files for omnipython-pdwidgets 0.0.26

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

Source distribution (sdist)

Source distribution for omnipython-pdwidgets 0.0.26
File Size Uploaded Provenance Actions
omnipython_pdwidgets-0.0.26.tar.gz 102.9 kB With provenance Details for omnipython_pdwidgets-0.0.26.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for omnipython-pdwidgets 0.0.26
File Interpreter ABI Platform Actions
omnipython_pdwidgets-0.0.26-py3-none-any.whl Python 3 none any Details for omnipython_pdwidgets-0.0.26-py3-none-any.whl

Total release size: 303.0 kB

Release files / omnipython_pdwidgets-0.0.26.tar.gz

Download URL omnipython_pdwidgets-0.0.26.tar.gz
Size 102.9 kB
Tags Source
SHA-256 checksum
How to use checksums
74d8af5b096d54d983f8b1fe2ff9b2ac289d33dfecc960ccb794444c024b83b8
BLAKE2b-256 checksum
How to use checksums
6635c86099e72847c3671cb06bd3d6c51961ed3e5718d28c131101d0c622b9d2
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 17, 2026.

Transparency log

Release files / omnipython_pdwidgets-0.0.26-py3-none-any.whl

Download URL omnipython_pdwidgets-0.0.26-py3-none-any.whl
Size 200.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
9819235a5439e68620f2af7c6f487dc705d0c4db488fab2428a34539db598a7b
BLAKE2b-256 checksum
How to use checksums
1b520f1185a5b9b1eb18a175e9da6c327a316015a395f9ec2f46c5e65636430f
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 17, 2026.

Transparency log

Security for omnipython-pdwidgets 0.0.26

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.

Select from 2 files

Attestation for omnipython_pdwidgets-0.0.26.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 17, 2026.

Transparency log

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

0.0.26 This release

2 release files Full 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