提交 b8fd58c8 编写于 作者: 之一Yo's avatar 之一Yo

更新 README

上级 87fa1ce7
......@@ -77,7 +77,6 @@ Here are some projects based on PyQt-Fluent-Widgets:
* [**zhiyiYo/QMaterialWidgets**: A material design widgets library based on PySide](https://github.com/zhiyiYo/QMaterialWidgets)
* [**zhiyiYo/Groove**: A cross-platform music player based on PyQt5](https://github.com/zhiyiYo/Groove)
* [**zhiyiYo/Alpha-Gobang-Zero**: A gobang robot based on reinforcement learning](https://github.com/zhiyiYo/Alpha-Gobang-Zero)
* [**语核科技/CopyAsk**: Your AI Assistant at Fingertips](https://copyask.com/)
## Reference
* [**Windows design**: Design guidelines and toolkits for creating native app experiences](https://learn.microsoft.com/zh-cn/windows/apps/design/)
......
......@@ -78,7 +78,6 @@ python demo.py
* [**zhiyiYo/QMaterialWidgets**: 基于 PySide 的 Material Design 风格组件库](https://github.com/zhiyiYo/QMaterialWidgets)
* [**zhiyiYo/Groove**: 基于 PyQt5 的跨平台音乐播放器](https://github.com/zhiyiYo/Groove)
* [**zhiyiYo/Alpha-Gobang-Zero**: 基于强化学习的五子棋机器人](https://github.com/zhiyiYo/Alpha-Gobang-Zero)
* [**语核科技/CopyAsk**: 你的指尖 AI 助手](https://copyask.com/)
## 参考
* [**Windows design**: Design guidelines and toolkits for creating native app experiences](https://learn.microsoft.com/zh-cn/windows/apps/design/)
......
......@@ -2,7 +2,8 @@
from PyQt5.QtCore import Qt
from PyQt5.QtDesigner import QPyDesignerCustomWidgetPlugin
from qfluentwidgets import NavigationInterface, NavigationPanel, Pivot, SegmentedWidget, NavigationBar, FluentIcon
from qfluentwidgets import (NavigationInterface, NavigationPanel, Pivot, SegmentedWidget, NavigationBar,
FluentIcon, TabBar)
from plugin_base import PluginBase
......@@ -88,3 +89,20 @@ class SegmentedWidgetPlugin(NavigationPlugin, QPyDesignerCustomWidgetPlugin):
def name(self):
return "SegmentedWidget"
class TabBarPlugin(NavigationPlugin, QPyDesignerCustomWidgetPlugin):
""" Tab bar plugin """
def createWidget(self, parent):
p = TabBar(parent)
for i in range(1, 4):
p.addTab(f'Tab {i}', f'Tab {i}', FluentIcon.BASKETBALL)
return p
def icon(self):
return super().icon("TabView")
def name(self):
return "TabBar"
......@@ -12,7 +12,7 @@ Examples are available at https://github.com/zhiyiYo/PyQt-Fluent-Widgets/tree/ma
:license: GPLv3, see LICENSE for more details.
"""
__version__ = "1.0.5"
__version__ = "1.1.0"
from .components import *
from .common import *
......
......@@ -801,4 +801,4 @@ class TabBar(SingleDirectionScrollArea):
scrollable = pyqtProperty(bool, isScrollable, setScrollable)
tabMaxWidth = pyqtProperty(int, tabMaximumWidth, setTabMaximumWidth)
tabMinWidth = pyqtProperty(int, tabMinimumWidth, setTabMinimumWidth)
tabShadowEnabled = pyqtProperty(bool, isTabShadowEnabled, setTabSelectedBackgroundColor)
\ No newline at end of file
tabShadowEnabled = pyqtProperty(bool, isTabShadowEnabled, setTabShadowEnabled)
\ No newline at end of file
......@@ -6,7 +6,7 @@ with open('README.md', encoding='utf-8') as f:
setuptools.setup(
name="PyQt-Fluent-Widgets",
version="1.0.5",
version="1.1.0",
keywords="pyqt fluent widgets",
author="zhiyiYo",
author_email="shokokawaii@outlook.com",
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册