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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ddq_ui-0.1.7.tar.gz
  • Upload date:
  • Size: 50.3 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.7.tar.gz
Algorithm Hash digest
SHA256 130901931bdd2c48f0bae54fb9a30acdfb0013ff40ebcdfce7280575784ec87c
MD5 7d417ada0550e7d6bfd158fb6e5f4310
BLAKE2b-256 518bd98e872513858eab4025020349526108fa215517d883724ec83f8467db6a

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ddq_ui-0.1.7-py3-none-any.whl
  • Upload date:
  • Size: 78.4 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.7-py3-none-any.whl
Algorithm Hash digest
SHA256 9698c3f0b00bb09199abe480f947cc203463f90a10d8e01a9f05f8cf68b8719f
MD5 c24c59c02071a46e0cb2e6bd62c3eb53
BLAKE2b-256 ff8ee7f2f67d8a98b7cb15abe4382602bbba29e29b2e2a3b15714f0a33c405f5

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