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-1.0.2.tar.gz
(375.4 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
ulite-1.0.2-py3-none-any.whl
(377.5 kB
view details)
File details
Details for the file ulite-1.0.2.tar.gz.
File metadata
- Download URL: ulite-1.0.2.tar.gz
- Upload date:
- Size: 375.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
896757fa83e415d5fcebc4970aa7713738c703617a41c279d0730419eb8b2806
|
|
| MD5 |
9438fb901e48c5bac4f69c9ad7057f79
|
|
| BLAKE2b-256 |
a4e1be4c3e05e13b517ae678e59ce79a55bbc925afee0931febd933359d23468
|
File details
Details for the file ulite-1.0.2-py3-none-any.whl.
File metadata
- Download URL: ulite-1.0.2-py3-none-any.whl
- Upload date:
- Size: 377.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.3
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
eaabd082c58d56796c5ecc012c4981541f520424120bf6fb23aca056113651f5
|
|
| MD5 |
a6ab108b0e0b77b01d7079f613241364
|
|
| BLAKE2b-256 |
75f0e23c52f7333fa35e9e2504a1f68df9dcee9489ff10a7d2b76b3dd13d125c
|