9

PyQt-Fluent-Widgets:一个 Fluent Design 风格的组件库 - 之一Yo

 1 year ago
source link: https://www.cnblogs.com/zhiyiYo/p/17216928.html
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
default_wife_cover.gif

PyQt-Fluent-Widgets:一个 Fluent Design 风格的组件库

发表于 2023-03-14 23:33 | 分类 Python | 阅读量 0

这是一个使用 PyQt/PySide 编写的 Fluent Design 风格的组件库,包含最常用的组件,支持亮暗主题无缝切换。实际上此项目是从 Groove Music 项目剥离出来的子项目,github 仓库地址为 https://github.com/zhiyiYo/PyQt-Fluent-Widgets。

2065884-20230314232331457-748278514.png

轻量版 (AcrylicLabel 不可用):

复制pip install PyQt-Fluent-Widgets
复制pip install 'PyQt-Fluent-Widgets[full]'

安装完 pyqt-fluent-widgets 包之后,可以切换到 examples 目录下运行示例代码,比如封面对应的示例代码:

复制cd examples/settings
python demo.py

建议在使用之前阅读一下在线帮助文档,里面介绍了使用这个组件库的正确姿势,文档地址为:https://pyqt-fluent-widgets.readthedocs.io

部分组件展示

2065884-20230314232519342-2020333818.gif

颜色对话框

2065884-20230314232646264-1951816963.gif

这个无边框消息框 Dialog 是否圆角取决于操作系统,比如 Win10 就会是尖角。

2065884-20230314232716265-1052886327.gif

带遮罩的消息框

2065884-20230314232844755-1363640304.gif

Win10 风格的消息框

2065884-20230314232836543-1943885133.gif

2065884-20230314233006949-1738254027.gif

滑块中空的滑动条

2065884-20230314233039421-205758993.gif

圆角阴影菜单

2065884-20230314233101554-1339035427.gif

进度提示条

2065884-20230314233127934-1191086125.gif

2065884-20230314233144721-1963789009.gif

2065884-20230314233202742-1864480868.gif

About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK