Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
k54kdk
PyQt Fluent Widgets
提交
b8fd58c8
P
PyQt Fluent Widgets
项目概览
k54kdk
/
PyQt Fluent Widgets
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
P
PyQt Fluent Widgets
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
b8fd58c8
编写于
8月 09, 2023
作者:
之一Yo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新 README
上级
87fa1ce7
变更
6
隐藏空白更改
内联
并排
Showing
6 changed file
with
22 addition
and
6 deletion
+22
-6
README.md
README.md
+0
-1
docs/README_zh.md
docs/README_zh.md
+0
-1
plugins/navigation_plugin.py
plugins/navigation_plugin.py
+19
-1
qfluentwidgets/__init__.py
qfluentwidgets/__init__.py
+1
-1
qfluentwidgets/components/widgets/tab_view.py
qfluentwidgets/components/widgets/tab_view.py
+1
-1
setup.py
setup.py
+1
-1
未找到文件。
README.md
浏览文件 @
b8fd58c8
...
...
@@ -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/
)
...
...
docs/README_zh.md
浏览文件 @
b8fd58c8
...
...
@@ -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/
)
...
...
plugins/navigation_plugin.py
浏览文件 @
b8fd58c8
...
...
@@ -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"
qfluentwidgets/__init__.py
浏览文件 @
b8fd58c8
...
...
@@ -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
*
...
...
qfluentwidgets/components/widgets/tab_view.py
浏览文件 @
b8fd58c8
...
...
@@ -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
setup.py
浏览文件 @
b8fd58c8
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录