The only python GUI library you will need in 2026...
Source: Dev.to
Introduction
PyUIkit is a Python library that brings HTML‑like simplicity to desktop GUI development. It uses Div‑based layouts and reusable components, allowing you to create interactive applications quickly without writing messy layout code.
Simple Example
from pyuikit import Body
app = Body(width=400, height=300, bg_color='white')
app.run()
The code above creates a blank window with the specified size and background color.
Building a Small App
from pyuikit import Body, Div
from pyuikit.components import Text, Button, Input
def greet():
name = Input.get_input(id='name_input')
Text.set_text(id='greeting', new_text=f'Hello, {name}!')
app = Body(width=400, height=300, bg_color='white')
Div(
width=360,
height=250,
children=[
Text(text='Enter your name:'),
Input(placeholder='Name', id='name_input'),
Button(text='Greet', on_click=greet),
Text(text='', id='greeting')
]
)
app.run()
This example demonstrates how easy it is to create a GUI, add components, and handle events—all in pure Python with an HTML‑style approach.
Installation
pip install pyuikit
Getting Started
- GitHub Repository – (link to repository)
- PyPI Page – (link to PyPI)
- Quickstart Guide – (link to guide)
Contributing
PyUIkit is open to pull requests, feedback, and feature requests. Issues can be reported on GitHub. The project will continue to evolve, and contributions are welcome.