Skip to main content

Lightweight GUI module

Project description

ulite.py

  • 轻量化ui框架
  • 支持构建基于flask的webui

安装

git clone https://gitee.com/zlols/ulite.py
pip install -e ulite.py

用法

import ulite
import random

ui = ulite.createUI(backends='flask', port=5001)
ui.root.addChild(
    ulite.Button(text='hello').subscribeEvent('click', lambda e: e.target.setAttributes(text=random.randint(0,100)))
    )
ui.show(openbrowser=True)

小贴士

  • 使用nuitka打包时需要添加静态文件打包参数--include-package-data=ulite

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

ulite-2.2.0.tar.gz (402.6 kB view details)

Uploaded Source

Built Distribution

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

ulite-2.2.0-py3-none-any.whl (405.1 kB view details)

Uploaded Python 3

File details

Details for the file ulite-2.2.0.tar.gz.

File metadata

  • Download URL: ulite-2.2.0.tar.gz
  • Upload date:
  • Size: 402.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for ulite-2.2.0.tar.gz
Algorithm Hash digest
SHA256 91166ab2d6c9fbc55e60f1fa2af86351929a1a7abef2cb39bb20622ca3ff76c8
MD5 e1a28c101091d9ea4d823db22da415c3
BLAKE2b-256 a5654934aebebb051aa5db6bf076bd6414f105a90c4ba02d0ef486aeea8a9181

See more details on using hashes here.

File details

Details for the file ulite-2.2.0-py3-none-any.whl.

File metadata

  • Download URL: ulite-2.2.0-py3-none-any.whl
  • Upload date:
  • Size: 405.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for ulite-2.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 70143707474ceab1ed41fdbde60c3b9268303edab9ccb9b63ff4974d739baf89
MD5 f592b8b497e3bc365467e79ec6b5d0b9
BLAKE2b-256 8bc643e9f53a695aca415a94661e2cd500e4dc66b8be3a61810dd738b3b6e5bb

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