Skip to main content

Components for PySide2/PySide6.

Project description

dayu_widgets

python version PyPI version Downloads Status License pypi format Maintenance Context7 Enabled

All Contributors

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)

pagerespageres

MLabel (<- QLabel)

pagerespageres

MLoading (<- QWidget)

pagerespageres

MToolButton (<- QToolButton)

pagerespageres

Navigation

MBreadcrumb (<- QWidget)

pagerespageres

MMenuTabWidget (<- QWidget)

pagerespageres

MPage (<- QWidget)

pagerespageres

Data Entry

MCheckBox <- QCheckBox

pagerespageres

MClickBrowserFilePushButton <- MPushButton

MClickBrowserFileToolButton <- MToolButton

MClickBrowserFolderPushButton <- MPushButton

MClickBrowserFolderToolButton <- MToolButton

MDragFileButton <- MToolButton

MDragFolderButton <- MToolButton

pagerespageres

MLineEdit <- QLineEdit

pagerespageres

MRadioButton <- QRadioButton

pagerespageres

MSwitch <- QRadioButton

pagerespageres

MSilder <- QSlider

pagerespageres

MSpinBox <- QSpinBox

MDoubleSpinBox <- QDoubleSpinBox

MDateTimeEdit <- QDateTimeEdit

MDateEdit <- QDateEdit

MTimeEdit <- QTimeEdit

pagerespageres

Data Display

MAvatar <- QLabel

pagerespageres

MBadge <- QWidget

pagerespageres

MCarousel <- QGraphicsView

pagerespageres

MCard <- QWidget

pagerespageres

MCollapse <- QWidget

pagerespageres

MLineTabWidget <- QWidget

pagerespageres

MTag <- QLabel

MCheckableTag <- QCheckBox

MNewTag <- QWidget

pagerespageres

Feedback

MAlert <- QWidget

pagerespageres

MDrawer <- QWidget

pagerespageres

MMessage <- QWidget

pagerespageres

MProgressBar <- QProgressBar

pagerespageres

MProgressCircle <- QProgressBar

pagerespageres

MToast <- QWidget

pagerespageres

Other

MDivider <- QWidget

pagerespageres

使用方法

安装

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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

dayu_widgets-1.1.1.tar.gz (225.2 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

dayu_widgets-1.1.1-py3-none-any.whl (284.8 kB view details)

Uploaded Python 3

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

Hashes for dayu_widgets-1.1.1.tar.gz
Algorithm Hash digest
SHA256 535b19951aeab11790ed66783d295d8acd6f57988d8ca5b96df93a07990d3f70
MD5 04b1e84f4343c759432c6b26df79feb0
BLAKE2b-256 8f1922ad9be883308ea04f07ffd1a6280db2a58b14ef9c06f8b3898ca36c1292

See more details on using hashes here.

Provenance

The following attestation bundles were made for dayu_widgets-1.1.1.tar.gz:

Publisher: python-publish.yml on phenom-films/dayu_widgets

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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

Hashes for dayu_widgets-1.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 633f350451a1cdf1ef61d746e1c2e9b95128cb01a2947f6394d2dbe29ab9a8e6
MD5 957a7915ea7393c86ed7be89c13bba60
BLAKE2b-256 7fe276a84fabc7ca7630a3c1ff36d129b5d8c385005617786ef756362a53d205

See more details on using hashes here.

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

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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