Skip to main content

A reactive tkinter-based desktop UI library

Project description

clemui

A reactive tkinter-based desktop UI library for Python.

Install

pip install clemui

Usage

from clemui import App, Signal, Component, VNode, VBox
from clemui.widgets import Label, Button

class Counter(Component):
    def __init__(self):
        super().__init__()
        self.count = Signal(0)
        self.bind(self.count)

    def render(self):
        return VNode(VBox, spacing=10, children=[
            VNode(Label, text=f"Count: {self.count.value}"),
            VNode(Button, text="+", command=lambda: self.count.set(self.count.value + 1)),
        ])

app = App(title="My App")
app.mount(Counter())
app.run()

Features

  • Signals — reactive state containers with auto-notification
  • Components — class-based UI with render() returning VNode trees
  • Auto-binding — Signal values auto-update widget properties
  • Layout — VBox, HBox, Padding helpers
  • Zero dependencies — pure Python + stdlib tkinter

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

clemui-0.1.0.tar.gz (6.2 kB view details)

Uploaded Source

Built Distribution

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

clemui-0.1.0-py3-none-any.whl (7.7 kB view details)

Uploaded Python 3

File details

Details for the file clemui-0.1.0.tar.gz.

File metadata

  • Download URL: clemui-0.1.0.tar.gz
  • Upload date:
  • Size: 6.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for clemui-0.1.0.tar.gz
Algorithm Hash digest
SHA256 159591debdc074a43640158254ab39fe92e79d05c64f0ad1d8c7045541e63da3
MD5 0f44ad6df9a6cc3d0878edc835334567
BLAKE2b-256 3aa4e791d2779064147a352cbd9efc50d90457a28e21cd921107deaa560022bf

See more details on using hashes here.

File details

Details for the file clemui-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: clemui-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for clemui-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 e8f08d0b38a99fc86178e2d1552eb49ee5007aa33af1d5c88c509087649677c0
MD5 e1c26a5995939c56e00c779a6a66ff66
BLAKE2b-256 81070bc332afbf20ce590a939cb66aea6ffc727145c92beaa092c7b8ec05ceb0

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