DDQ UI Framework
一个灵活的 UI 框架,支持多种后端实现。目前提供了基于 Tkinter 的实现。
特性
- 提供了一套统一的 UI 组件接口
- 支持多种后端实现(目前支持 Tkinter)
- 包含丰富的基础组件:按钮、文本框、下拉框等
- 提供配置管理功能,支持配置的保存和加载
- 支持组件的联动和状态管理
安装
pip install ddq_ui
快速开始
import tkinter as tk
from ddq_ui.ddq_tkinter.ddq_widgets import Form, ButtonGroup
# 创建窗口
root = tk.Tk()
root.title("DDQ UI Demo")
# 创建表单
form = Form(root)
form.input("name", "姓名:", required=True)
form.select("gender", "性别:", options=["男", "女"])
form.pack()
# 创建按钮组
buttons = ButtonGroup(root)
buttons.add_new("提交", lambda: print(form.get_values()))
buttons.pack()
root.mainloop()
组件
Form(表单)
- 支持多种输入控件:文本框、下拉框、单选框等
- 支持表单验证
- 支持表单联动
ButtonGroup(按钮组)
- 统一的按钮样式
- 支持按钮的启用/禁用状态
- 支持按钮的布局配置
ConfigurableTool(可配置工具)
- 支持配置的保存和加载
- 提供配置管理面板
- 支持配置的导入导出
示例
查看 examples 目录获取更多示例:
demo_form.py: 表单组件示例demo_button_group.py: 按钮组示例demo_config_manager.py: 配置管理示例
许可证
MIT License
Metadata
Release files for ddq-ui 0.1.8
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ddq_ui-0.1.8.tar.gz | 50.0 kB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ddq_ui-0.1.8-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 128.5 kB
Release files / ddq_ui-0.1.8.tar.gz
| Download URL | ddq_ui-0.1.8.tar.gz |
|---|---|
| Size | 50.0 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
a206ad1670ddd22deb559c5a173d07db64339c47e2113836970fd492614f7a1b
|
|
BLAKE2b-256 checksum How to use checksums |
ba284c4f70f28e89deb84277b78970c8b5b5ae37c77e46293cc2e301d2bf7a17
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.11
|
Release files / ddq_ui-0.1.8-py3-none-any.whl
| Download URL | ddq_ui-0.1.8-py3-none-any.whl |
|---|---|
| Size | 78.5 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
252d27346aa440ce9bf4cec77d710ee86f0b1563c6d7a213d3323cc8dc5577eb
|
|
BLAKE2b-256 checksum How to use checksums |
0432b74a7695f50165ee36748b5e34c4dabbc3de672f0d4c8ca93f6bd8c2ff77
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.10.11
|
Security for ddq-ui 0.1.8
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.