pdwidgets

pdwidgets — Pure-Python UI widget toolkit.

pdwidgets Lightweight object-oriented UI widget framework including buttons, sliders, progress bars, labels, and event routing for PyDevices screens.

Live Pure-Python Device

Pure-Python UI Component Family

Widgets built on top of pydevices Display & Screen abstractions.

Buttons & Touch Triggers

Touch-friendly buttons with active states, focus outlines, text alignment, and event callbacks.

Form Controls & Switches

Checkboxes, radio toggles, text inputs, and numeric sliders for touchscreen user interfaces.

Navigation & Sheet Containers

Top bars, tabbed navigators, bottom sheets, and pop-up modal dialogs.

Material ColorTheme

Dynamic theme engine integrated with palettes for consistent light/dark UI themes.

Installation & Minimal Button Loop

import mip
mip.install("pdwidgets", index="https://PyDevices.github.io/mip")

# Example Usage:
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)

btn = pd.Button(screen, x=20, y=40, w=120, h=45, label="Click Me")