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

Uploaded Python 3

File details

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

File metadata

  • Download URL: ddq_ui-0.1.0.tar.gz
  • Upload date:
  • Size: 47.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.0.tar.gz
Algorithm Hash digest
SHA256 93e8a3536bc65bd061f84a733b706a9ee31dc87e5c6820d8eae347567522cdc5
MD5 7cb840a7fc094e4e8b3f1df91ed7156c
BLAKE2b-256 400b6df0af6a605f46d9fc31fec9a075c427d58a2765a0af46eebc8bf5e0652e

See more details on using hashes here.

File details

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

File metadata

  • Download URL: ddq_ui-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 74.7 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.0-py3-none-any.whl
Algorithm Hash digest
SHA256 7ec192d1b788b80204fb0281d9f929d1d6c41ef562e1e8edf7cda2aa32cf5af4
MD5 1a3e53e8d01e5fb361d430dc8c742023
BLAKE2b-256 d5c1abeda588ed415092cbfb2c57e40767971c860be24bc3134b6ed22809bcdb

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