简介
本项目是基于尘中远的一个轻量级的Ribbon控件(SARibbon)移植的pyqt版本,功能与原版本基本保持一致
界面截图也基本相似:
MIT协议,欢迎大家使用并提出意见
gitee(码云) - https://gitee.com/sardkit/saribbon-pyqt5
github(hub) - https://github.com/sardkit/SARibbon-pyqt5
它支持4种目前常见的ribbon样式在线切换(目前简单测试通过,未进行深度测试)
包括2种office模式,office模式是最常见的ribbon模式了,就是我们经常看到的word模式,office模式的tab和标题栏占用位置较多。
另两种参考wps设计的wps模式,wps模式是office模式的改良版,它为了减小ribbon的高度,把标签和标题栏设置在一起
office模式和wps模式都支持两行和3行设计,满足不同界面需求。
使用方法
- 进入src目录,打开终端,安装此包,命令如下:
python setup.py install
2然后在项目的文件中import PySARibbon或from PySARibbon import *即可,
或者引用具体实用类示例如下:
from PySARibbon import SARibbonMainWindow
更多截图(copy自原Qt项目)
- 支持quickAccessBar(word快速菜单),在wps模式和office模式下会有不同的显示效果
- 支持4种不同的ribbon button,普通按钮,延迟弹出菜单按钮,菜单按钮,action菜单按钮(action菜单按钮是此ribbon控件最主要解决的问题之一)
- 支持qss对ribbon进行设置
题外
大部分代码是根据原C++代码结构进行移植的,也有部分是基于Python语法特性对原代码结构进行了调整和更改;
更多相关功能可看Qt原作者相关项目,欢迎有兴趣的朋友一起完善本并丰富本项目。
计划及进度
计划
- 实现C++版最新功能
已知bug
- 暂未完全测试
已解决
- 略
其他
此处向原作者尘中远致敬
Metadata
Release files for PySARibbon 1.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| pysaribbon-1.1.0.tar.gz | 151.1 kB | Without provenance | Details for pysaribbon-1.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| pysaribbon-1.1.0-py3-none-any.whl | Python 3 | none | any | Details for pysaribbon-1.1.0-py3-none-any.whl |
Total release size: 336.2 kB
Release files / pysaribbon-1.1.0.tar.gz
| Download URL | pysaribbon-1.1.0.tar.gz |
|---|---|
| Size | 151.1 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
6f88be0d87d674206da7335f58b19eddc55446ec67fba0a0df67b4b031ab783d
|
|
BLAKE2b-256 checksum How to use checksums |
1bf9c054960cc47f80175873330802717835da48900b8f56a806e1e8d4dbc151
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Release files / pysaribbon-1.1.0-py3-none-any.whl
| Download URL | pysaribbon-1.1.0-py3-none-any.whl |
|---|---|
| Size | 185.1 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
ce9ee74a0314fa651fdf8d1e4014db3946de19c61d3a0dcb17b695368cc0fb8c
|
|
BLAKE2b-256 checksum How to use checksums |
38e18db3cd8037fc74f0960e04bcad78d84d8518983b3378672dcd15beca45d2
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.3
|
Security for PySARibbon 1.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.