Components for PySide2/PySide6.
Project description
dayu_widgets
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 💻 |
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file dayu_widgets-1.1.1.tar.gz.
File metadata
- Download URL: dayu_widgets-1.1.1.tar.gz
- Upload date:
- Size: 225.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
535b19951aeab11790ed66783d295d8acd6f57988d8ca5b96df93a07990d3f70
|
|
| MD5 |
04b1e84f4343c759432c6b26df79feb0
|
|
| BLAKE2b-256 |
8f1922ad9be883308ea04f07ffd1a6280db2a58b14ef9c06f8b3898ca36c1292
|
Provenance
The following attestation bundles were made for dayu_widgets-1.1.1.tar.gz:
Publisher:
python-publish.yml on phenom-films/dayu_widgets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dayu_widgets-1.1.1.tar.gz -
Subject digest:
535b19951aeab11790ed66783d295d8acd6f57988d8ca5b96df93a07990d3f70 - Sigstore transparency entry: 319257836
- Sigstore integration time:
-
Permalink:
phenom-films/dayu_widgets@d083a8e1b900cf0ef7c8e68b464db4034aea5194 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/phenom-films
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d083a8e1b900cf0ef7c8e68b464db4034aea5194 -
Trigger Event:
push
-
Statement type:
File details
Details for the file dayu_widgets-1.1.1-py3-none-any.whl.
File metadata
- Download URL: dayu_widgets-1.1.1-py3-none-any.whl
- Upload date:
- Size: 284.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
633f350451a1cdf1ef61d746e1c2e9b95128cb01a2947f6394d2dbe29ab9a8e6
|
|
| MD5 |
957a7915ea7393c86ed7be89c13bba60
|
|
| BLAKE2b-256 |
7fe276a84fabc7ca7630a3c1ff36d129b5d8c385005617786ef756362a53d205
|
Provenance
The following attestation bundles were made for dayu_widgets-1.1.1-py3-none-any.whl:
Publisher:
python-publish.yml on phenom-films/dayu_widgets
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
dayu_widgets-1.1.1-py3-none-any.whl -
Subject digest:
633f350451a1cdf1ef61d746e1c2e9b95128cb01a2947f6394d2dbe29ab9a8e6 - Sigstore transparency entry: 319257847
- Sigstore integration time:
-
Permalink:
phenom-films/dayu_widgets@d083a8e1b900cf0ef7c8e68b464db4034aea5194 -
Branch / Tag:
refs/tags/v1.1.1 - Owner: https://github.com/phenom-films
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
python-publish.yml@d083a8e1b900cf0ef7c8e68b464db4034aea5194 -
Trigger Event:
push
-
Statement type: