Skip to main content

DDQ UI Framework - 一个灵活的 UI 框架,支持多种后端实现

Project description

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

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

ddq_ui-0.1.4.tar.gz (47.2 kB view details)

Uploaded Source

Built Distribution

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

ddq_ui-0.1.4-py3-none-any.whl (74.6 kB view details)

Uploaded Python 3

File details

Details for the file ddq_ui-0.1.4.tar.gz.

File metadata

  • Download URL: ddq_ui-0.1.4.tar.gz
  • Upload date:
  • Size: 47.2 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for ddq_ui-0.1.4.tar.gz
Algorithm Hash digest
SHA256 6dfe4448603ec4206dafa53832d580de8097a58229ecd6ba0af666c13a4e02fc
MD5 50caa6c216abee7cc4863ffea43f22d2
BLAKE2b-256 f44d05252730b1e2461f89e1d28815e9da3412b537d1a9e183002f0afe3393e8

See more details on using hashes here.

File details

Details for the file ddq_ui-0.1.4-py3-none-any.whl.

File metadata

  • Download URL: ddq_ui-0.1.4-py3-none-any.whl
  • Upload date:
  • Size: 74.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for ddq_ui-0.1.4-py3-none-any.whl
Algorithm Hash digest
SHA256 73665ee76b9194bf09111889397f4bfb2e0fa9b3fbd38f2f2c62130899505e91
MD5 e0ec7c57f859ee8a833aa09ebf6e4b0a
BLAKE2b-256 9a93ddcbb8898721f25849cfb3c78a677ac5fbdda992fe0f2a3441b27c66ee65

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