PyQt-Fluent-Widgets:一个 Fluent Design 风格的组件库 - 之一Yo
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.
PyQt-Fluent-Widgets:一个 Fluent Design 风格的组件库
这是一个使用 PyQt/PySide 编写的 Fluent Design 风格的组件库,包含最常用的组件,支持亮暗主题无缝切换。实际上此项目是从 Groove Music 项目剥离出来的子项目,github 仓库地址为 https://github.com/zhiyiYo/PyQt-Fluent-Widgets。
轻量版 (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
部分组件展示
颜色对话框
这个无边框消息框 Dialog
是否圆角取决于操作系统,比如 Win10 就会是尖角。
带遮罩的消息框
Win10 风格的消息框
滑块中空的滑动条
圆角阴影菜单
进度提示条
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK