Skip to main content

A lightweight frameless UI framework for Python via ctypes and Win32 API

Project description

uui/cuil is a custom lightweight UI library written in Python using only ctypes. It provides direct interaction with the Windows API without heavy dependencies.

PULL REQUESTS ARE WELCOME!

installation

pip install uui-cuil

zero dependencies

Windows backend

Autors:

  • zcveo5 (i am)

Features

  • Lightweight & Fast: Zero external dependencies, pure Python + ctypes.
  • Frameless Window Support: Modern borderless windows while keeping native Windows 11 animations, resizing, and shadows.
  • Per-pixel Scroll: Built-in smooth, pixel-perfect scrolling system.
  • Customizable Render System: Uses native gdi32 out of the box, with full support for plugging in your own rendering backend (GDI+, Direct2D, etc.).
  • Low-level Control: Direct access to WND_PROCs and low-level Win32 messages like WM_MOUSEWHEEL or WM_LBUTTONDOWN.
  • Flexible Event Binding: Powerful binding system with parsed or raw wParam / lParam event data exposed directly to your code.

Limitations:

  • now only Windows backend ready, you can write your own and send pull request!

Rules for your own backend

  • use only built-in libraries
  • python 3.13 and newer
  • use uui.backend.abstract and Windows backend as base
  • form messages to uui.backend.events messages

Examples:

Hello world window

import uui

root = uui.Window('Hello World') # Create a window with the title "Hello World"

uui.Label(root,              # Parent (window or another widget)
          'Hello World!',    # Text
          '#000000',         # Color 
          ).pack()

root.start()

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

uui_cuil-0.2.1.tar.gz (157.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

uui_cuil-0.2.1-py3-none-any.whl (161.5 kB view details)

Uploaded Python 3

File details

Details for the file uui_cuil-0.2.1.tar.gz.

File metadata

  • Download URL: uui_cuil-0.2.1.tar.gz
  • Upload date:
  • Size: 157.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for uui_cuil-0.2.1.tar.gz
Algorithm Hash digest
SHA256 d590c2225c1bd3638732063d7d9e754d39a98b04de9b60ab00fc377ed9f050dd
MD5 0437e1c98cf766c90a9048cc7df70395
BLAKE2b-256 a4682293ce814c9dccc3d239443dffc1144e374b96facd34d0d90ad919a4178e

See more details on using hashes here.

File details

Details for the file uui_cuil-0.2.1-py3-none-any.whl.

File metadata

  • Download URL: uui_cuil-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 161.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.5

File hashes

Hashes for uui_cuil-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0cb27d1c6a1a39fd06936b89b1b1e08505183cd7c47d214666ac9b64a623d724
MD5 a976abdb2f8e9d23ba8b2a914b23be2d
BLAKE2b-256 2ad6a0f3d0d7c26cf997b59d1b39b053b4255b181dce9ddd7b9e88caea130434

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page