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)
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.0.tar.gz
(13.0 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.0-py3-none-any.whl
(15.2 kB
view details)
File details
Details for the file ulite-1.0.0.tar.gz.
File metadata
- Download URL: ulite-1.0.0.tar.gz
- Upload date:
- Size: 13.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6d255ca73d6df3aadd1e7b2d5fb3834b2b07266e47350c64ec69b52d68bee550
|
|
| MD5 |
ade7cf529e33b57158be824bea92f051
|
|
| BLAKE2b-256 |
3a4c9a30be1c471cd82f882f81587c904efddefbe16e014ab2fe38ec0d60aa5f
|
File details
Details for the file ulite-1.0.0-py3-none-any.whl.
File metadata
- Download URL: ulite-1.0.0-py3-none-any.whl
- Upload date:
- Size: 15.2 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.6
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
4847f50b4596d4d9a0737c515a4f56b7dd6be0baae68cff40b9559b46253001b
|
|
| MD5 |
1dc2655f3318ded1e1c813b89a539e0a
|
|
| BLAKE2b-256 |
2f730ca10c6c3c50a0231a2a579271319fa8127ae5ff7579440c63b8c4351d43
|