Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
k54kdk
PyQt Fluent Widgets
提交
8038b50b
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看板
提交
8038b50b
编写于
6月 28, 2023
作者:
之一Yo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
更新 gallery 主页的示例卡片
上级
f3570e7f
变更
2
隐藏空白更改
内联
并排
Showing
2 changed file
with
24 addition
and
18 deletion
+24
-18
examples/gallery/app/view/dialog_interface.py
examples/gallery/app/view/dialog_interface.py
+15
-16
examples/gallery/app/view/home_interface.py
examples/gallery/app/view/home_interface.py
+9
-2
未找到文件。
examples/gallery/app/view/dialog_interface.py
浏览文件 @
8038b50b
...
...
@@ -43,22 +43,6 @@ class DialogInterface(GalleryInterface):
'https://github.com/zhiyiYo/PyQt-Fluent-Widgets/blob/master/examples/color_dialog/demo.py'
)
self
.
teachingButton
=
PushButton
(
self
.
tr
(
'Show teaching tip'
))
self
.
teachingButton
.
clicked
.
connect
(
self
.
showBottomTeachingTip
)
self
.
addExampleCard
(
self
.
tr
(
'A teaching tip'
),
self
.
teachingButton
,
'https://github.com/zhiyiYo/PyQt-Fluent-Widgets/blob/master/examples/teaching_tip/demo.py'
)
self
.
teachingRightButton
=
PushButton
(
self
.
tr
(
'Show teaching tip'
))
self
.
teachingRightButton
.
clicked
.
connect
(
self
.
showLeftBottomTeachingTip
)
self
.
addExampleCard
(
self
.
tr
(
'A teaching tip with image and button'
),
self
.
teachingRightButton
,
'https://github.com/zhiyiYo/PyQt-Fluent-Widgets/blob/master/examples/teaching_tip/demo.py'
)
self
.
simpleFlyoutButton
=
PushButton
(
self
.
tr
(
'Show flyout'
))
self
.
simpleFlyoutButton
.
clicked
.
connect
(
self
.
showSimpleFlyout
)
self
.
addExampleCard
(
...
...
@@ -75,6 +59,21 @@ class DialogInterface(GalleryInterface):
'https://github.com/zhiyiYo/PyQt-Fluent-Widgets/blob/master/examples/flyout/demo.py'
)
self
.
teachingButton
=
PushButton
(
self
.
tr
(
'Show teaching tip'
))
self
.
teachingButton
.
clicked
.
connect
(
self
.
showBottomTeachingTip
)
self
.
addExampleCard
(
self
.
tr
(
'A teaching tip'
),
self
.
teachingButton
,
'https://github.com/zhiyiYo/PyQt-Fluent-Widgets/blob/master/examples/teaching_tip/demo.py'
)
self
.
teachingRightButton
=
PushButton
(
self
.
tr
(
'Show teaching tip'
))
self
.
teachingRightButton
.
clicked
.
connect
(
self
.
showLeftBottomTeachingTip
)
self
.
addExampleCard
(
self
.
tr
(
'A teaching tip with image and button'
),
self
.
teachingRightButton
,
'https://github.com/zhiyiYo/PyQt-Fluent-Widgets/blob/master/examples/teaching_tip/demo.py'
)
def
showDialog
(
self
):
title
=
self
.
tr
(
'This is a frameless message dialog'
)
...
...
examples/gallery/app/view/home_interface.py
浏览文件 @
8038b50b
...
...
@@ -252,11 +252,18 @@ class HomeInterface(ScrollArea):
index
=
2
)
dialogView
.
addSampleCard
(
icon
=
":/gallery/images/controls/ColorPicker.png"
,
icon
=
":/gallery/images/controls/Flyout.png"
,
title
=
"Flyout"
,
content
=
self
.
tr
(
"Shows contextual information and enables user interaction."
),
routeKey
=
"dialogInterface"
,
index
=
3
)
dialogView
.
addSampleCard
(
icon
=
":/gallery/images/controls/TeachingTip.png"
,
title
=
"TeachingTip"
,
content
=
self
.
tr
(
"A content-rich flyout for guiding users and enabling teaching moments."
),
routeKey
=
"dialogInterface"
,
index
=
3
index
=
5
)
self
.
vBoxLayout
.
addWidget
(
dialogView
)
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录