UI组件库
Project description
MangoUI - PySide6 UI 组件库
介绍
MangoUI 是一个基于 PySide6 的现代化桌面应用程序 UI 组件库,提供了丰富的可视化控件和布局管理功能,用于快速构建美观、功能完善的桌面应用界面。
该库包含多种类型的组件,如输入组件、显示组件、容器组件、图表组件等,所有组件都经过精心设计,具有统一的视觉风格和良好的用户体验。
特性
- 🎨 现代化设计: 采用现代化的 UI 设计语言,支持圆角、阴影等视觉效果
- 🎯 组件丰富: 提供输入、显示、容器、图表等多种类型的组件
- 🎨 主题支持: 支持自定义主题,可轻松切换不同的视觉风格
- 📦 易于使用: 简洁的 API 设计,易于集成到现有项目中
- ⚡ 性能优化: 组件经过优化,确保良好的运行性能
安装教程
pip install mangoui
或者从源码安装:
git clone https://gitee.com/mao-peng/MangoUi.git
cd MangoUi
pip install -r requirements.txt
python setup.py install
使用说明
基本使用
from PySide6.QtWidgets import QApplication
from mangoui.widgets.input import MangoPushButton
app = QApplication([])
button = MangoPushButton("点击我")
button.show()
app.exec()
运行示例
项目包含完整的测试页面,可以通过运行以下命令查看所有组件的效果:
cd tests
python demo.py
或者运行主测试程序:
cd tests/pages
python main.py
组件类型
- 输入组件: 按钮、文本框、下拉框、滑块、开关等
- 显示组件: 标签、进度条、表格、列表等
- 容器组件: 卡片、分组框、堆叠窗口等
- 图表组件: 折线图、饼图等
- 布局组件: 各种布局管理器
- 菜单组件: 菜单栏、工具栏等
- 窗口组件: 主窗口、对话框等
依赖
- PySide6 >= 6.7.3
- pydantic >= 2.9.2
- matplotlib >= 3.9.2
- numpy >= 2.2.0
- pyqtgraph >= 0.13.7
项目结构
mangoui/
├── widgets/ # 核心UI组件
│ ├── input/ # 输入组件
│ ├── display/ # 显示组件
│ ├── container/ # 容器组件
│ ├── charts/ # 图表组件
│ ├── layout/ # 布局组件
│ ├── menu/ # 菜单组件
│ ├── window/ # 窗口组件
│ └── title_bar/ # 标题栏组件
├── styles/ # 样式和主题
├── settings/ # 配置和主题设置
├── models/ # 数据模型
├── components/ # 公共组件
└── enums/ # 枚举类型
开发
要为项目贡献代码,请遵循以下步骤:
- Fork 项目
- 创建功能分支
- 提交更改
- 发起 Pull Request
许可证
MIT License
作者
毛鹏 (729164035@qq.com)
项目地址
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
mangoui-4.0.2.tar.gz
(476.6 kB
view details)
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
mangoui-4.0.2-py3-none-any.whl
(553.0 kB
view details)
File details
Details for the file mangoui-4.0.2.tar.gz.
File metadata
- Download URL: mangoui-4.0.2.tar.gz
- Upload date:
- Size: 476.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
02a4e850010cf394fd781b9f36acae320387da80592ab4c50e694d39180cf6ee
|
|
| MD5 |
0dfd23af34d021678ad79e0f74617134
|
|
| BLAKE2b-256 |
c6644b3420e76d16e19a94eabf59eea679986ac26533864d946cb3b07959fe0c
|
File details
Details for the file mangoui-4.0.2-py3-none-any.whl.
File metadata
- Download URL: mangoui-4.0.2-py3-none-any.whl
- Upload date:
- Size: 553.0 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.10.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
78e69e5514ff46fff9b1ff526a0dd0c3ecc563a091d4a0f26c4b6b9fbe7546ec
|
|
| MD5 |
c4b94e38f88ef0571d3d19e3a1bdfd03
|
|
| BLAKE2b-256 |
1d61354d7f097774a67dfd0eed73b48b365d0c9ce36356dc6b629069f2fffa31
|