# 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>
<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->
[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)
<!-- ALL-CONTRIBUTORS-BADGE:END -->
</p>
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)
![pageres](screenshots/push_button_light.png)![pageres](screenshots/push_button_dark.png)
### MLabel (<- QLabel)
![pageres](screenshots/label_light.png)![pageres](screenshots/label_dark.png)
### MLoading (<- QWidget)
![pageres](screenshots/loading_light.gif)![pageres](screenshots/loading_dark.gif)
### MToolButton (<- QToolButton)
![pageres](screenshots/tool_button_light.png)![pageres](screenshots/tool_button_dark.png)
## Navigation
### MBreadcrumb (<- QWidget)
![pageres](screenshots/breadcrumb_light.gif)![pageres](screenshots/breadcrumb_dark.gif)
### MMenuTabWidget (<- QWidget)
![pageres](screenshots/menu_tab_widget_light.png)![pageres](screenshots/menu_tab_widget_dark.png)
### MPage (<- QWidget)
![pageres](screenshots/page_light.png)![pageres](screenshots/page_dark.png)
## Data Entry
### MCheckBox <- QCheckBox
![pageres](screenshots/check_box_light.png)![pageres](screenshots/check_box_dark.png)
### MClickBrowserFilePushButton <- MPushButton
### MClickBrowserFileToolButton <- MToolButton
### MClickBrowserFolderPushButton <- MPushButton
### MClickBrowserFolderToolButton <- MToolButton
### MDragFileButton <- MToolButton
### MDragFolderButton <- MToolButton
![pageres](screenshots/browser_light.png)![pageres](screenshots/browser_dark.png)
### MLineEdit <- QLineEdit
![pageres](screenshots/line_edit_light.png)![pageres](screenshots/line_edit_dark.png)
### MRadioButton <- QRadioButton
![pageres](screenshots/radio_button_light.png)![pageres](screenshots/radio_button_dark.png)
### MSwitch <- QRadioButton
![pageres](screenshots/switch_light.png)![pageres](screenshots/switch_dark.png)
### MSilder <- QSlider
![pageres](screenshots/slider_light.png)![pageres](screenshots/slider_dark.png)
### MSpinBox <- QSpinBox
### MDoubleSpinBox <- QDoubleSpinBox
### MDateTimeEdit <- QDateTimeEdit
### MDateEdit <- QDateEdit
### MTimeEdit <- QTimeEdit
![pageres](screenshots/spin_box_light.png)![pageres](screenshots/spin_box_dark.png)
## Data Display
### MAvatar <- QLabel
![pageres](screenshots/avatar_light.png)![pageres](screenshots/avatar_dark.png)
### MBadge <- QWidget
![pageres](screenshots/badge_light.png)![pageres](screenshots/badge_dark.png)
### MCarousel <- QGraphicsView
![pageres](screenshots/carousel_light.gif)![pageres](screenshots/carousel_dark.gif)
### MCard <- QWidget
![pageres](screenshots/card_light.png)![pageres](screenshots/card_dark.png)
### MCollapse <- QWidget
![pageres](screenshots/collapse_light.gif)![pageres](screenshots/collapse_dark.gif)
### MLineTabWidget <- QWidget
![pageres](screenshots/line_tab_widget_light.gif)![pageres](screenshots/line_tab_widget_dark.gif)
### MTag <- QLabel
### MCheckableTag <- QCheckBox
### MNewTag <- QWidget
![pageres](screenshots/tag_light.png)![pageres](screenshots/tag_dark.png)
## Feedback
### MAlert <- QWidget
![pageres](screenshots/alert_light.png)![pageres](screenshots/alert_dark.png)
### MDrawer <- QWidget
![pageres](screenshots/drawer_light.gif)![pageres](screenshots/drawer_dark.gif)
### MMessage <- QWidget
![pageres](screenshots/message_light.gif)![pageres](screenshots/message_dark.gif)
### MProgressBar <- QProgressBar
![pageres](screenshots/progressbar_light.gif)![pageres](screenshots/progressbar_dark.gif)
### MProgressCircle <- QProgressBar
![pageres](screenshots/progress_circle_light.png)![pageres](screenshots/progress_circle_dark.png)
### MToast <- QWidget
![pageres](screenshots/toast_light.gif)![pageres](screenshots/toast_dark.gif)
## Other
### MDivider <- QWidget
![pageres](screenshots/divider_light.png)![pageres](screenshots/divider_dark.png)
# 如何贡献代码
## 安装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
```
## 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": "https://github.com/phenom-films/dayu_widgets",
"name": "dayu-widgets",
"maintainer": null,
"docs_url": null,
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7",
"maintainer_email": null,
"keywords": "PySide, PyQt, UI, PySide2, PyQt5",
"author": "muyanru",
"author_email": "muyanru345@163.com",
"download_url": "https://files.pythonhosted.org/packages/16/24/19b32758e9a4f9b59bd7609a6860385a35a53c449e65e1cd36a3c7aa029c/dayu_widgets-0.13.15.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\n<!-- ALL-CONTRIBUTORS-BADGE:START - Do not remove or modify this section -->\n[![All Contributors](https://img.shields.io/badge/all_contributors-3-orange.svg?style=flat-square)](#contributors-)\n<!-- ALL-CONTRIBUTORS-BADGE:END --> \n</p>\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![pageres](screenshots/push_button_light.png)![pageres](screenshots/push_button_dark.png)\n\n### MLabel (<- QLabel)\n![pageres](screenshots/label_light.png)![pageres](screenshots/label_dark.png)\n\n### MLoading (<- QWidget)\n![pageres](screenshots/loading_light.gif)![pageres](screenshots/loading_dark.gif)\n\n### MToolButton (<- QToolButton)\n![pageres](screenshots/tool_button_light.png)![pageres](screenshots/tool_button_dark.png)\n\n## Navigation\n\n\n### MBreadcrumb (<- QWidget)\n![pageres](screenshots/breadcrumb_light.gif)![pageres](screenshots/breadcrumb_dark.gif)\n\n### MMenuTabWidget (<- QWidget)\n![pageres](screenshots/menu_tab_widget_light.png)![pageres](screenshots/menu_tab_widget_dark.png)\n\n### MPage (<- QWidget)\n![pageres](screenshots/page_light.png)![pageres](screenshots/page_dark.png)\n\n\n## Data Entry\n\n\n### MCheckBox <- QCheckBox\n![pageres](screenshots/check_box_light.png)![pageres](screenshots/check_box_dark.png)\n\n### MClickBrowserFilePushButton <- MPushButton\n### MClickBrowserFileToolButton <- MToolButton\n### MClickBrowserFolderPushButton <- MPushButton\n### MClickBrowserFolderToolButton <- MToolButton\n### MDragFileButton <- MToolButton\n### MDragFolderButton <- MToolButton\n![pageres](screenshots/browser_light.png)![pageres](screenshots/browser_dark.png)\n\n### MLineEdit <- QLineEdit\n![pageres](screenshots/line_edit_light.png)![pageres](screenshots/line_edit_dark.png)\n\n### MRadioButton <- QRadioButton\n![pageres](screenshots/radio_button_light.png)![pageres](screenshots/radio_button_dark.png)\n\n### MSwitch <- QRadioButton\n![pageres](screenshots/switch_light.png)![pageres](screenshots/switch_dark.png)\n\n### MSilder <- QSlider\n![pageres](screenshots/slider_light.png)![pageres](screenshots/slider_dark.png)\n\n### MSpinBox <- QSpinBox\n### MDoubleSpinBox <- QDoubleSpinBox\n### MDateTimeEdit <- QDateTimeEdit\n### MDateEdit <- QDateEdit\n### MTimeEdit <- QTimeEdit\n![pageres](screenshots/spin_box_light.png)![pageres](screenshots/spin_box_dark.png)\n\n\n## Data Display\n\n\n### MAvatar <- QLabel\n![pageres](screenshots/avatar_light.png)![pageres](screenshots/avatar_dark.png)\n\n### MBadge <- QWidget\n![pageres](screenshots/badge_light.png)![pageres](screenshots/badge_dark.png)\n\n\n### MCarousel <- QGraphicsView\n![pageres](screenshots/carousel_light.gif)![pageres](screenshots/carousel_dark.gif)\n\n### MCard <- QWidget\n![pageres](screenshots/card_light.png)![pageres](screenshots/card_dark.png)\n\n### MCollapse <- QWidget\n![pageres](screenshots/collapse_light.gif)![pageres](screenshots/collapse_dark.gif)\n\n### MLineTabWidget <- QWidget\n![pageres](screenshots/line_tab_widget_light.gif)![pageres](screenshots/line_tab_widget_dark.gif)\n\n### MTag <- QLabel\n### MCheckableTag <- QCheckBox\n### MNewTag <- QWidget\n![pageres](screenshots/tag_light.png)![pageres](screenshots/tag_dark.png)\n\n\n## Feedback\n\n\n### MAlert <- QWidget\n![pageres](screenshots/alert_light.png)![pageres](screenshots/alert_dark.png)\n\n### MDrawer <- QWidget\n![pageres](screenshots/drawer_light.gif)![pageres](screenshots/drawer_dark.gif)\n\n### MMessage <- QWidget\n![pageres](screenshots/message_light.gif)![pageres](screenshots/message_dark.gif)\n\n### MProgressBar <- QProgressBar\n![pageres](screenshots/progressbar_light.gif)![pageres](screenshots/progressbar_dark.gif)\n\n### MProgressCircle <- QProgressBar\n![pageres](screenshots/progress_circle_light.png)![pageres](screenshots/progress_circle_dark.png)\n\n### MToast <- QWidget\n![pageres](screenshots/toast_light.gif)![pageres](screenshots/toast_dark.gif)\n\n## Other\n\n### MDivider <- QWidget\n![pageres](screenshots/divider_light.png)![pageres](screenshots/divider_dark.png)\n\n\n# \u5982\u4f55\u8d21\u732e\u4ee3\u7801\n\n## \u5b89\u88c5poetry\n``shell\npip install poetry\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## \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## 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 PySide/PyQt.",
"version": "0.13.15",
"project_urls": {
"Documentation": "https://phenom-films.github.io/dayu_widgets/#/",
"Homepage": "https://github.com/phenom-films/dayu_widgets",
"Repository": "https://github.com/phenom-films/dayu_widgets"
},
"split_keywords": [
"pyside",
" pyqt",
" ui",
" pyside2",
" pyqt5"
],
"urls": [
{
"comment_text": "",
"digests": {
"blake2b_256": "18b7f42b11998b8e610f7782f3f4b3212ce06edd7a18ac84c9afa3ae12313b74",
"md5": "3668ec69b2994649f1a9883a57c0d033",
"sha256": "083bb8009d2b39a930d05445db6a38e70f68a396cc132b4afd4fcf01d61c15df"
},
"downloads": -1,
"filename": "dayu_widgets-0.13.15-py2.py3-none-any.whl",
"has_sig": false,
"md5_digest": "3668ec69b2994649f1a9883a57c0d033",
"packagetype": "bdist_wheel",
"python_version": "py2.py3",
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7",
"size": 288249,
"upload_time": "2024-10-28T07:57:00",
"upload_time_iso_8601": "2024-10-28T07:57:00.351212Z",
"url": "https://files.pythonhosted.org/packages/18/b7/f42b11998b8e610f7782f3f4b3212ce06edd7a18ac84c9afa3ae12313b74/dayu_widgets-0.13.15-py2.py3-none-any.whl",
"yanked": false,
"yanked_reason": null
},
{
"comment_text": "",
"digests": {
"blake2b_256": "162419b32758e9a4f9b59bd7609a6860385a35a53c449e65e1cd36a3c7aa029c",
"md5": "224a284eee9a21b4a85b7b4a44dc61a0",
"sha256": "d3cc7a763f55c1c9de499454746f5d7135f9a8271da4b7025f32d20270b60ab5"
},
"downloads": -1,
"filename": "dayu_widgets-0.13.15.tar.gz",
"has_sig": false,
"md5_digest": "224a284eee9a21b4a85b7b4a44dc61a0",
"packagetype": "sdist",
"python_version": "source",
"requires_python": "!=3.0.*,!=3.1.*,!=3.2.*,!=3.3.*,!=3.4.*,!=3.5.*,>=2.7",
"size": 225601,
"upload_time": "2024-10-28T07:57:01",
"upload_time_iso_8601": "2024-10-28T07:57:01.950770Z",
"url": "https://files.pythonhosted.org/packages/16/24/19b32758e9a4f9b59bd7609a6860385a35a53c449e65e1cd36a3c7aa029c/dayu_widgets-0.13.15.tar.gz",
"yanked": false,
"yanked_reason": null
}
],
"upload_time": "2024-10-28 07:57:01",
"github": true,
"gitlab": false,
"bitbucket": false,
"codeberg": false,
"github_user": "phenom-films",
"github_project": "dayu_widgets",
"travis_ci": false,
"coveralls": false,
"github_actions": true,
"lcname": "dayu-widgets"
}