Name | dayu-widgets JSON |
Version |
1.1.1
JSON |
| download |
home_page | None |
Summary | Components for PySide2/PySide6. |
upload_time | 2025-07-28 07:38:28 |
maintainer | None |
docs_url | None |
author | muyanru |
requires_python | <4.0,>=3.7 |
license | MIT |
keywords |
ui
pyside2
pyqt5
pyside6
|
VCS |
 |
bugtrack_url |
|
requirements |
No requirements were recorded.
|
Travis-CI |
No Travis.
|
coveralls test coverage |
No coveralls.
|
# dayu_widgets
<p align="center">
<a href="https://img.shields.io/pypi/pyversions/dayu_widgets">
<img src="https://img.shields.io/pypi/pyversions/dayu_widgets" alt="python version"></a>
<a href="https://badge.fury.io/py/dayu_widgets">
<img src="https://img.shields.io/pypi/v/dayu_widgets?color=green" alt="PyPI version"></a>
<img src="https://img.shields.io/pypi/dw/dayu_widgets" alt="Downloads Status">
<img src="https://img.shields.io/pypi/l/dayu_widgets" alt="License">
<img src="https://img.shields.io/pypi/format/dayu_widgets" alt="pypi format">
<img src="https://img.shields.io/badge/Maintained%3F-yes-green.svg" alt="Maintenance"></a>
<a href="https://context7.com/phenom-films/dayu_widgets">
<img src="https://img.shields.io/badge/Context7-Enabled-blue" alt="Context7 Enabled"></a>
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
</p>
> **AI Assistant Integration**: This project is integrated with [Context7](https://context7.com/phenom-films/dayu_widgets), allowing AI assistants to access up-to-date documentation and examples. Try prompts like: `帮我创建一个dayu_widgets的进度条, use context7`
Components for PySide
主要参考了 [AntDesign](https://ant.design/) 组件库,其他参考了 [iView](https://www.iviewui.com/) 组件库,微信基础组件。
更多在此基础上的组件插件:
* [dayu_widgets_tag](https://github.com/muyr/dayu_widgets_tag): [中文](https://muyr.github.io/dayu_widgets_tag/#/zh-cn/) | [EN](https://muyr.github.io/dayu_widgets_tag/#/)
* [dayu_widgets_log](https://github.com/muyr/dayu_widgets_log): [中文](https://muyr.github.io/dayu_widgets_log/#/zh-cn/) | [EN](https://muyr.github.io/dayu_widgets_log/#/)
* [dayu_widgets_overlay](https://github.com/FXTD-ODYSSEY/dayu_widgets_overlay)
提供**亮色(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

# 使用方法
## 安装
```shell
pip install dayu_widgets
```
## 运行示例程序
安装后,可以通过以下命令直接运行示例程序。注意,运行示例程序需要 Qt 环境(如 PySide2 或 PyQt5):
```shell
# 使用 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
```shell
pip install poetry
```
## 安装依赖
```shell
poetry install
```
## 运行单元测试
```shell
poetry run pytest
```
## 运行 black检查
```shell
poetry run black dayu_widgets
```
## 运行isort
```shell
poetry run isort dayu_widgets
```
## 提交代码
```shell
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](https://context7.com/). The file is automatically generated from the examples in the `examples/` directory.
To manually generate the `llms.txt` file, run:
```shell
python scripts/generate_llms_txt.py
```
## Contributors ✨
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://github.com/muyr"><img src="https://avatars.githubusercontent.com/u/1860334?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Yanru Mu</b></sub></a><br /><a href="https://github.com/phenom-films/dayu_widgets/commits?q=author%3Yanru Mu" itle="Code">💻</a></td>
<td align="center"><a href="https://github.com/loonghao"><img src="https://avatars1.githubusercontent.com/u/13111745?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Hal</b></sub></a><br /><a href="https://github.com/phenom-films/dayu_widgets/commits?author=loonghao" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/FXTD-ODYSSEY"><img src="https://avatars.githubusercontent.com/u/40897360?v=4?s=100" width="100px;" alt=""/><br /><sub><b>FXTD-ODYSSEY</b></sub></a><br /><a href="https://github.com/phenom-films/dayu_widgets/commits?author=FXTD-ODYSSEY" title="Code">💻</a></td>
</tr>
</table>
<!-- markdownlint-restore -->
<!-- prettier-ignore-end -->
<!-- ALL-CONTRIBUTORS-LIST:END -->
Raw data
{
"_id": null,
"home_page": null,
"name": "dayu-widgets",
"maintainer": null,
"docs_url": null,
"requires_python": "<4.0,>=3.7",
"maintainer_email": null,
"keywords": "UI, PySide2, PyQt5, PySide6",
"author": "muyanru",
"author_email": "muyanru@163.com",
"download_url": "https://files.pythonhosted.org/packages/8f/19/22ad9be883308ea04f07ffd1a6280db2a58b14ef9c06f8b3898ca36c1292/dayu_widgets-1.1.1.tar.gz",
"platform": null,
"description": "# dayu_widgets\n\n<p align=\"center\">\n<a href=\"https://img.shields.io/pypi/pyversions/dayu_widgets\">\n<img src=\"https://img.shields.io/pypi/pyversions/dayu_widgets\" alt=\"python version\"></a>\n<a href=\"https://badge.fury.io/py/dayu_widgets\">\n<img src=\"https://img.shields.io/pypi/v/dayu_widgets?color=green\" alt=\"PyPI version\"></a>\n<img src=\"https://img.shields.io/pypi/dw/dayu_widgets\" alt=\"Downloads Status\">\n<img src=\"https://img.shields.io/pypi/l/dayu_widgets\" alt=\"License\">\n<img src=\"https://img.shields.io/pypi/format/dayu_widgets\" alt=\"pypi format\">\n<img src=\"https://img.shields.io/badge/Maintained%3F-yes-green.svg\" alt=\"Maintenance\"></a>\n<a href=\"https://context7.com/phenom-films/dayu_widgets\">\n<img src=\"https://img.shields.io/badge/Context7-Enabled-blue\" alt=\"Context7 Enabled\"></a>\n\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END -->\n</p>\n\n> **AI Assistant Integration**: This project is integrated with [Context7](https://context7.com/phenom-films/dayu_widgets), allowing AI assistants to access up-to-date documentation and examples. Try prompts like: `\u5e2e\u6211\u521b\u5efa\u4e00\u4e2adayu_widgets\u7684\u8fdb\u5ea6\u6761\uff0c use context7`\n\n\nComponents for PySide\n\n\u4e3b\u8981\u53c2\u8003\u4e86 [AntDesign](https://ant.design/) \u7ec4\u4ef6\u5e93\uff0c\u5176\u4ed6\u53c2\u8003\u4e86 [iView](https://www.iviewui.com/) \u7ec4\u4ef6\u5e93\uff0c\u5fae\u4fe1\u57fa\u7840\u7ec4\u4ef6\u3002\n\n\u66f4\u591a\u5728\u6b64\u57fa\u7840\u4e0a\u7684\u7ec4\u4ef6\u63d2\u4ef6\uff1a\n\n* [dayu_widgets_tag](https://github.com/muyr/dayu_widgets_tag): [\u4e2d\u6587](https://muyr.github.io/dayu_widgets_tag/#/zh-cn/) | [EN](https://muyr.github.io/dayu_widgets_tag/#/)\n* [dayu_widgets_log](https://github.com/muyr/dayu_widgets_log): [\u4e2d\u6587](https://muyr.github.io/dayu_widgets_log/#/zh-cn/) | [EN](https://muyr.github.io/dayu_widgets_log/#/)\n* [dayu_widgets_overlay](https://github.com/FXTD-ODYSSEY/dayu_widgets_overlay)\n\n\u63d0\u4f9b**\u4eae\u8272(light)** \u548c **\u6697\u8272(dark)** \u4e24\u79cd\u4e3b\u9898\uff0c\u6bcf\u79cd\u4e3b\u9898\u53ef\u4ee5\u8bbe\u7f6e\u4e3b\u9898\u989c\u8272\u3002\n\u4ee5\u4e0b\u622a\u56fe\u4ee5\uff1a\n\n* \u4eae\u8272 #1890ff\n* \u6697\u8272 #fa8c16\n\n## General\n\n\n### MPushButton(<- QPushButton)\n\n\n### MLabel (<- QLabel)\n\n\n### MLoading (<- QWidget)\n\n\n### MToolButton (<- QToolButton)\n\n\n## Navigation\n\n\n### MBreadcrumb (<- QWidget)\n\n\n### MMenuTabWidget (<- QWidget)\n\n\n### MPage (<- QWidget)\n\n\n\n## Data Entry\n\n\n### MCheckBox <- QCheckBox\n\n\n### MClickBrowserFilePushButton <- MPushButton\n### MClickBrowserFileToolButton <- MToolButton\n### MClickBrowserFolderPushButton <- MPushButton\n### MClickBrowserFolderToolButton <- MToolButton\n### MDragFileButton <- MToolButton\n### MDragFolderButton <- MToolButton\n\n\n### MLineEdit <- QLineEdit\n\n\n### MRadioButton <- QRadioButton\n\n\n### MSwitch <- QRadioButton\n\n\n### MSilder <- QSlider\n\n\n### MSpinBox <- QSpinBox\n### MDoubleSpinBox <- QDoubleSpinBox\n### MDateTimeEdit <- QDateTimeEdit\n### MDateEdit <- QDateEdit\n### MTimeEdit <- QTimeEdit\n\n\n\n## Data Display\n\n\n### MAvatar <- QLabel\n\n\n### MBadge <- QWidget\n\n\n\n### MCarousel <- QGraphicsView\n\n\n### MCard <- QWidget\n\n\n### MCollapse <- QWidget\n\n\n### MLineTabWidget <- QWidget\n\n\n### MTag <- QLabel\n### MCheckableTag <- QCheckBox\n### MNewTag <- QWidget\n\n\n\n## Feedback\n\n\n### MAlert <- QWidget\n\n\n### MDrawer <- QWidget\n\n\n### MMessage <- QWidget\n\n\n### MProgressBar <- QProgressBar\n\n\n### MProgressCircle <- QProgressBar\n\n\n### MToast <- QWidget\n\n\n## Other\n\n### MDivider <- QWidget\n\n\n\n# \u4f7f\u7528\u65b9\u6cd5\n\n## \u5b89\u88c5\n\n```shell\npip install dayu_widgets\n```\n\n## \u8fd0\u884c\u793a\u4f8b\u7a0b\u5e8f\n\n\u5b89\u88c5\u540e\uff0c\u53ef\u4ee5\u901a\u8fc7\u4ee5\u4e0b\u547d\u4ee4\u76f4\u63a5\u8fd0\u884c\u793a\u4f8b\u7a0b\u5e8f\u3002\u6ce8\u610f\uff0c\u8fd0\u884c\u793a\u4f8b\u7a0b\u5e8f\u9700\u8981 Qt \u73af\u5883\uff08\u5982 PySide2 \u6216 PyQt5\uff09\uff1a\n\n```shell\n# \u4f7f\u7528 Python \u6a21\u5757\u65b9\u5f0f\u8fd0\u884c\uff08\u9700\u8981\u5148\u5b89\u88c5 PySide2 \u6216 PyQt5\uff09\npython -m dayu_widgets\n\n# \u4f7f\u7528 uvx \u547d\u4ee4\u884c\u5de5\u5177\u8fd0\u884c\uff08\u63a8\u8350\u65b9\u5f0f\uff0c\u81ea\u52a8\u5904\u7406\u4f9d\u8d56\uff09\nuvx --python 3.10 --with pyside2 dayu_widgets\n```\n\n> **\u6ce8\u610f**\uff1adayu_widgets \u662f\u4e00\u4e2a Qt \u754c\u9762\u5e93\uff0c\u8fd0\u884c\u793a\u4f8b\u7a0b\u5e8f\u9700\u8981 Qt \u73af\u5883\u3002\u4f7f\u7528 `uvx` \u547d\u4ee4\u65f6\u53ef\u4ee5\u901a\u8fc7 `--with pyside2` \u53c2\u6570\u81ea\u52a8\u5904\u7406 Qt \u4f9d\u8d56\u3002\n\n# \u5982\u4f55\u8d21\u732e\u4ee3\u7801\n\n## \u5b89\u88c5poetry\n```shell\npip install poetry\n```\n\n## \u5b89\u88c5\u4f9d\u8d56\n```shell\npoetry install\n```\n\n## \u8fd0\u884c\u5355\u5143\u6d4b\u8bd5\n```shell\npoetry run pytest\n```\n\n## \u8fd0\u884c black\u68c0\u67e5\n```shell\npoetry run black dayu_widgets\n```\n\n## \u8fd0\u884cisort\n```shell\npoetry run isort dayu_widgets\n```\n\n## \u63d0\u4ea4\u4ee3\u7801\n```shell\npoetry run cz commit\n```\n\n## Context7 Integration\n\nThis project includes a `llms.txt` file that provides code examples and documentation for AI assistants and LLMs through [Context7](https://context7.com/). The file is automatically generated from the examples in the `examples/` directory.\n\nTo manually generate the `llms.txt` file, run:\n\n```shell\npython scripts/generate_llms_txt.py\n```\n\n## Contributors \u2728\n\nThanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):\n\n<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->\n<!-- prettier-ignore-start -->\n<!-- markdownlint-disable -->\n<table>\n <tr>\n <td align=\"center\"><a href=\"https://github.com/muyr\"><img src=\"https://avatars.githubusercontent.com/u/1860334?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Yanru Mu</b></sub></a><br /><a href=\"https://github.com/phenom-films/dayu_widgets/commits?q=author%3Yanru Mu\" itle=\"Code\">\ud83d\udcbb</a></td>\n <td align=\"center\"><a href=\"https://github.com/loonghao\"><img src=\"https://avatars1.githubusercontent.com/u/13111745?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>Hal</b></sub></a><br /><a href=\"https://github.com/phenom-films/dayu_widgets/commits?author=loonghao\" title=\"Code\">\ud83d\udcbb</a></td>\n <td align=\"center\"><a href=\"https://github.com/FXTD-ODYSSEY\"><img src=\"https://avatars.githubusercontent.com/u/40897360?v=4?s=100\" width=\"100px;\" alt=\"\"/><br /><sub><b>FXTD-ODYSSEY</b></sub></a><br /><a href=\"https://github.com/phenom-films/dayu_widgets/commits?author=FXTD-ODYSSEY\" title=\"Code\">\ud83d\udcbb</a></td>\n </tr>\n</table>\n\n<!-- markdownlint-restore -->\n<!-- prettier-ignore-end -->\n\n<!-- ALL-CONTRIBUTORS-LIST:END -->\n\n",
"bugtrack_url": null,
"license": "MIT",
"summary": "Components for PySide2/PySide6.",
"version": "1.1.1",
"project_urls": {
"Documentation": "https://muyr.github.io/dayu_widgets3/#/",
"Homepage": "https://github.com/muyr/dayu_widgets3",
"Repository": "https://github.com/muyr/dayu_widgets3"
},
"split_keywords": [
"ui",
" pyside2",
" pyqt5",
" pyside6"
],
"urls": [
{
"comment_text": null,
"digests": {
"blake2b_256": "7fe276a84fabc7ca7630a3c1ff36d129b5d8c385005617786ef756362a53d205",
"md5": "957a7915ea7393c86ed7be89c13bba60",
"sha256": "633f350451a1cdf1ef61d746e1c2e9b95128cb01a2947f6394d2dbe29ab9a8e6"
},
"downloads": -1,
"filename": "dayu_widgets-1.1.1-py3-none-any.whl",
"has_sig": false,
"md5_digest": "957a7915ea7393c86ed7be89c13bba60",
"packagetype": "bdist_wheel",
"python_version": "py3",
"requires_python": "<4.0,>=3.7",
"size": 284836,
"upload_time": "2025-07-28T07:38:25",
"upload_time_iso_8601": "2025-07-28T07:38:25.912804Z",
"url": "https://files.pythonhosted.org/packages/7f/e2/76a84fabc7ca7630a3c1ff36d129b5d8c385005617786ef756362a53d205/dayu_widgets-1.1.1-py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": null,
"digests": {
"blake2b_256": "8f1922ad9be883308ea04f07ffd1a6280db2a58b14ef9c06f8b3898ca36c1292",
"md5": "04b1e84f4343c759432c6b26df79feb0",
"sha256": "535b19951aeab11790ed66783d295d8acd6f57988d8ca5b96df93a07990d3f70"
},
"downloads": -1,
"filename": "dayu_widgets-1.1.1.tar.gz",
"has_sig": false,
"md5_digest": "04b1e84f4343c759432c6b26df79feb0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "<4.0,>=3.7",
"size": 225169,
"upload_time": "2025-07-28T07:38:28",
"upload_time_iso_8601": "2025-07-28T07:38:28.220829Z",
"url": "https://files.pythonhosted.org/packages/8f/19/22ad9be883308ea04f07ffd1a6280db2a58b14ef9c06f8b3898ca36c1292/dayu_widgets-1.1.1.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2025-07-28 07:38:28",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "muyr",
"github_project": "dayu_widgets3",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "dayu-widgets"
}