dayu_widgets
April 27, 2025 · View on GitHub
AI Assistant Integration: This project is integrated with Context7, allowing AI assistants to access up-to-date documentation and examples. Try prompts like:
帮我创建一个dayu_widgets的进度条, use context7
Components for PySide
主要参考了 AntDesign 组件库,其他参考了 iView 组件库,微信基础组件。
更多在此基础上的组件插件:
提供亮色(light) 和 暗色(dark) 两种主题,每种主题可以设置主题颜色。 以下截图以:
- 亮色 #1890ff
- 暗色 #fa8c16
General
MPushButton(<- QPushButton)


MLabel (<- QLabel)


MLoading (<- QWidget)


MToolButton (<- QToolButton)


Navigation
MBreadcrumb (<- QWidget)


MMenuTabWidget (<- QWidget)


MPage (<- QWidget)


Data Entry
MCheckBox <- QCheckBox


MClickBrowserFilePushButton <- MPushButton
MClickBrowserFileToolButton <- MToolButton
MClickBrowserFolderPushButton <- MPushButton
MClickBrowserFolderToolButton <- MToolButton
MDragFileButton <- MToolButton
MDragFolderButton <- MToolButton


MLineEdit <- QLineEdit


MRadioButton <- QRadioButton


MSwitch <- QRadioButton


MSilder <- QSlider


MSpinBox <- QSpinBox
MDoubleSpinBox <- QDoubleSpinBox
MDateTimeEdit <- QDateTimeEdit
MDateEdit <- QDateEdit
MTimeEdit <- QTimeEdit


Data Display
MAvatar <- QLabel
![]()
![]()
MBadge <- QWidget


MCarousel <- QGraphicsView


MCard <- QWidget


MCollapse <- QWidget


MLineTabWidget <- QWidget


MTag <- QLabel
MCheckableTag <- QCheckBox
MNewTag <- QWidget


Feedback
MAlert <- QWidget


MDrawer <- QWidget


MMessage <- QWidget


MProgressBar <- QProgressBar


MProgressCircle <- QProgressBar


MToast <- QWidget


Other
MDivider <- QWidget


使用方法
安装
pip install dayu_widgets
运行示例程序
安装后,可以通过以下命令直接运行示例程序。注意,运行示例程序需要 Qt 环境(如 PySide2 或 PyQt5):
# 使用 Python 模块方式运行(需要先安装 PySide2 或 PyQt5)
python -m dayu_widgets
# 使用 uvx 命令行工具运行(推荐方式,自动处理依赖)
uvx --python 3.10 --with pyside2 dayu_widgets
注意:dayu_widgets 是一个 Qt 界面库,运行示例程序需要 Qt 环境。使用
uvx命令时可以通过--with pyside2参数自动处理 Qt 依赖。
如何贡献代码
安装poetry
pip install poetry
安装依赖
poetry install
运行单元测试
poetry run pytest
运行 black检查
poetry run black dayu_widgets
运行isort
poetry run isort dayu_widgets
提交代码
poetry run cz commit
Context7 Integration
This project includes a llms.txt file that provides code examples and documentation for AI assistants and LLMs through Context7. The file is automatically generated from the examples in the examples/ directory.
To manually generate the llms.txt file, run:
python scripts/generate_llms_txt.py
Contributors ✨
Thanks goes to these wonderful people (emoji key):
Yanru Mu 💻 |
Hal 💻 |
FXTD-ODYSSEY 💻 |