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.8.tar.gz (50.0 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.8-py3-none-any.whl (78.5 kB view details)

Uploaded Python 3

File details

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

File metadata

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

File hashes

Hashes for ddq_ui-0.1.8.tar.gz
Algorithm Hash digest
SHA256 a206ad1670ddd22deb559c5a173d07db64339c47e2113836970fd492614f7a1b
MD5 1ed6d271dd2b6a559dcd503a6526aab6
BLAKE2b-256 ba284c4f70f28e89deb84277b78970c8b5b5ae37c77e46293cc2e301d2bf7a17

See more details on using hashes here.

File details

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

File metadata

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

File hashes

Hashes for ddq_ui-0.1.8-py3-none-any.whl
Algorithm Hash digest
SHA256 252d27346aa440ce9bf4cec77d710ee86f0b1563c6d7a213d3323cc8dc5577eb
MD5 bdf7a60cb67a91c4d831cb787c4547d2
BLAKE2b-256 0432b74a7695f50165ee36748b5e34c4dabbc3de672f0d4c8ca93f6bd8c2ff77

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