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.

Click the button and drag the slider below. It runs in your browser, on MicroPython compiled to WebAssembly.

Initializing Python…

  

Install it, then run your first program. The guides take one task each, the docstrings in lib/pdwidgets document every widget and name, and How it works explains the design.