Skip to main content
Pre-release

This release is a pre-release and may not be stable for production use.

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 -i https://test.pypi.org/simple/ --extra-index-url https://pypi.org/simple/ 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.dev3

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.dev3
File Size Uploaded Provenance Actions
omnipython_pdwidgets-0.0.26.dev3.tar.gz 102.9 kB With provenance Details for omnipython_pdwidgets-0.0.26.dev3.tar.gz

Built distribution (wheel)

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

Total release size: 303.1 kB

Release files / omnipython_pdwidgets-0.0.26.dev3.tar.gz

Download URL omnipython_pdwidgets-0.0.26.dev3.tar.gz
Size 102.9 kB
Tags Source
SHA-256 checksum
How to use checksums
b18a54c9e233626658fadcce864b139c93c7ca40ac7f88988a483460c2809372
BLAKE2b-256 checksum
How to use checksums
5520e88180cee81fc824f8168db5f2b10ed478194133e1124dc99479d0ae2587
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.dev3-py3-none-any.whl

Download URL omnipython_pdwidgets-0.0.26.dev3-py3-none-any.whl
Size 200.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
576319b576aadca3c94ecb354d62c07f58291860852930caa076911cf03171df
BLAKE2b-256 checksum
How to use checksums
acab463f7471996c9307e8dbbb6cd014ca3d6649d8f56451282ab58c652920b6
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.dev3

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