Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
k54kdk
PyQt Fluent Widgets
提交
059b2599
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看板
提交
059b2599
编写于
3月 27, 2023
作者:
之一Yo
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复状态信息 gallery 界面按钮没有及时更新文本的问题
上级
9a8b701e
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
60 addition
and
59 deletion
+60
-59
examples/gallery/app/resource/i18n/gallery_hk.qm
examples/gallery/app/resource/i18n/gallery_hk.qm
+0
-0
examples/gallery/app/resource/i18n/gallery_hk.ts
examples/gallery/app/resource/i18n/gallery_hk.ts
+35
-35
examples/gallery/app/resource/i18n/gallery_zh.qm
examples/gallery/app/resource/i18n/gallery_zh.qm
+0
-0
examples/gallery/app/resource/i18n/gallery_zh.ts
examples/gallery/app/resource/i18n/gallery_zh.ts
+23
-23
examples/gallery/app/view/status_info_interface.py
examples/gallery/app/view/status_info_interface.py
+2
-1
未找到文件。
examples/gallery/app/resource/i18n/gallery_hk.qm
浏览文件 @
059b2599
无法预览此类型文件
examples/gallery/app/resource/i18n/gallery_hk.ts
浏览文件 @
059b2599
...
...
@@ -150,7 +150,7 @@
<
context
>
<
name
>
ExampleCard
<
/name
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
8
5
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
8
6
"
/>
<
source
>
Source
code
<
/source
>
<
translation
>
源代碼
<
/translation
>
<
/message
>
...
...
@@ -221,54 +221,54 @@
<
context
>
<
name
>
MainWindow
<
/name
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
16
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
28
"
/>
<
source
>
Home
<
/source
>
<
translation
type
=
"
unfinished
"
>
<
/translation
>
<
translation
>
主頁
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
24
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
36
"
/>
<
source
>
Basic
input
<
/source
>
<
translation
type
=
"
unfinished
"
>
基本輸入
<
/translation
>
<
translation
>
基本輸入
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
31
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
43
"
/>
<
source
>
Dialogs
<
/source
>
<
translation
type
=
"
unfinished
"
>
對話框
<
/translation
>
<
translation
>
對話框
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
38
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
50
"
/>
<
source
>
Layout
<
/source
>
<
translation
type
=
"
unfinished
"
>
布局
<
/translation
>
<
translation
>
布局
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
45
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
64
"
/>
<
source
>
Menus
<
/source
>
<
translation
type
=
"
unfinished
"
>
菜單
<
/translation
>
<
translation
>
菜單
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
15
2
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
15
7
"
/>
<
source
>
Material
<
/source
>
<
translation
type
=
"
unfinished
"
>
材料
<
/translation
>
<
translation
>
材料
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
59
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
71
"
/>
<
source
>
Scrolling
<
/source
>
<
translation
type
=
"
unfinished
"
>
滾動
<
/translation
>
<
translation
>
滾動
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
66
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
78
"
/>
<
source
>
Status
&
amp
;
info
<
/source
>
<
translation
type
=
"
unfinished
"
>
狀態和信息
<
/translation
>
<
translation
>
狀態和信息
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
2
27
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
2
39
"
/>
<
source
>
This
is
a
help
message
<
/source
>
<
translation
type
=
"
unfinished
"
>
<
/translation
>
<
translation
>
一條友善的提示
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
2
27
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
2
39
"
/>
<
source
>
You
clicked
a
customized
navigation
widget
.
You
can
add
more
custom
widgets
by
calling
`NavigationInterface.addWidget()`
😉
<
/source
>
<
translation
type
=
"
unfinished
"
>
<
/translation
>
<
translation
>
你點擊了一個自定義的導航項
。
你可以通過
`NavigationInterface.addWidget()`
添加更多的自定義導航項
。
<
/translation
>
<
/message
>
<
/context
>
<
context
>
...
...
@@ -350,14 +350,14 @@
<
context
>
<
name
>
ScrollInterface
<
/name
>
<
message
>
<
location
filename
=
"
../../view/scroll_interface.py
"
line
=
"
3
6
"
/>
<
location
filename
=
"
../../view/scroll_interface.py
"
line
=
"
3
3
"
/>
<
source
>
Smooth
scroll
area
<
/source
>
<
translation
>
平滑滾動區域
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/scroll_interface.py
"
line
=
"
28
"
/>
<
location
filename
=
"
../../view/scroll_interface.py
"
line
=
"
39
"
/>
<
source
>
Chitanda
Eru
is
too
hot
🥵
<
/source
>
<
translation
type
=
"
unfinished
"
>
<
/translation
>
<
translation
>
好奇寶寶千反田太燒了
🥵
<
/translation
>
<
/message
>
<
/context
>
<
context
>
...
...
@@ -543,7 +543,7 @@
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
44
"
/>
<
source
>
Label
with
a
ToolTip
<
/source
>
<
translation
>
標簽的工具提示
<
/translation
>
<
translation
>
多看一眼就會爆炸
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
47
"
/>
...
...
@@ -551,12 +551,7 @@
<
translation
>
帶有工具提示的標簽
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
61
"
/>
<
source
>
Hide
state
tool
tip
<
/source
>
<
translation
>
隱藏狀態提示條
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
23
"
/>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
56
"
/>
<
source
>
Show
StateToolTip
<
/source
>
<
translation
>
顯示進度提示條
<
/translation
>
<
/message
>
...
...
@@ -576,15 +571,20 @@
<
translation
>
模型訓練完成啦
!
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
59
"
/>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
60
"
/>
<
source
>
Training
model
<
/source
>
<
translation
>
正在訓練模型
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
59
"
/>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
60
"
/>
<
source
>
Please
wait
patiently
<
/source
>
<
translation
>
我知道你很急
,
但是你先別急
~~<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
62
"
/>
<
source
>
Hide
StateToolTip
<
/source
>
<
translation
>
隱藏進度提示條
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ToolBar
<
/name
>
...
...
@@ -599,12 +599,12 @@
<
translation
>
源代碼
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
5
3
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
5
4
"
/>
<
source
>
Toggle
theme
<
/source
>
<
translation
>
切換主題
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
5
4
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
5
5
"
/>
<
source
>
Send
feedback
<
/source
>
<
translation
>
提供反饋
<
/translation
>
<
/message
>
...
...
examples/gallery/app/resource/i18n/gallery_zh.qm
浏览文件 @
059b2599
无法预览此类型文件
examples/gallery/app/resource/i18n/gallery_zh.ts
浏览文件 @
059b2599
...
...
@@ -150,7 +150,7 @@
<
context
>
<
name
>
ExampleCard
<
/name
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
8
5
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
8
6
"
/>
<
source
>
Source
code
<
/source
>
<
translation
>
源代码
<
/translation
>
<
/message
>
...
...
@@ -221,52 +221,52 @@
<
context
>
<
name
>
MainWindow
<
/name
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
16
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
28
"
/>
<
source
>
Home
<
/source
>
<
translation
>
主页
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
24
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
36
"
/>
<
source
>
Basic
input
<
/source
>
<
translation
>
基本输入
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
31
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
43
"
/>
<
source
>
Dialogs
<
/source
>
<
translation
>
对话框
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
38
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
50
"
/>
<
source
>
Layout
<
/source
>
<
translation
>
布局
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
45
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
64
"
/>
<
source
>
Menus
<
/source
>
<
translation
>
菜单
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
15
2
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
15
7
"
/>
<
source
>
Material
<
/source
>
<
translation
>
材料
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
59
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
71
"
/>
<
source
>
Scrolling
<
/source
>
<
translation
>
滚动
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
66
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
1
78
"
/>
<
source
>
Status
&
amp
;
info
<
/source
>
<
translation
>
状态和信息
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
2
27
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
2
39
"
/>
<
source
>
This
is
a
help
message
<
/source
>
<
translation
>
一条友善的提示
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
2
27
"
/>
<
location
filename
=
"
../../view/main_window.py
"
line
=
"
2
39
"
/>
<
source
>
You
clicked
a
customized
navigation
widget
.
You
can
add
more
custom
widgets
by
calling
`NavigationInterface.addWidget()`
😉
<
/source
>
<
translation
>
你点击了一个自定义的导航项
。
你可以通过
`NavigationInterface.addWidget()`
添加更多的自定义导航项
。
<
/translation
>
<
/message
>
...
...
@@ -350,12 +350,12 @@
<
context
>
<
name
>
ScrollInterface
<
/name
>
<
message
>
<
location
filename
=
"
../../view/scroll_interface.py
"
line
=
"
3
6
"
/>
<
location
filename
=
"
../../view/scroll_interface.py
"
line
=
"
3
3
"
/>
<
source
>
Smooth
scroll
area
<
/source
>
<
translation
>
平滑滚动区域
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/scroll_interface.py
"
line
=
"
28
"
/>
<
location
filename
=
"
../../view/scroll_interface.py
"
line
=
"
39
"
/>
<
source
>
Chitanda
Eru
is
too
hot
🥵
<
/source
>
<
translation
>
好奇宝宝千反田太烧了
🥵
<
/translation
>
<
/message
>
...
...
@@ -551,12 +551,7 @@
<
translation
>
带有工具提示的标签
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
61
"
/>
<
source
>
Hide
state
tool
tip
<
/source
>
<
translation
>
隐藏状态提示条
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
23
"
/>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
56
"
/>
<
source
>
Show
StateToolTip
<
/source
>
<
translation
>
显示进度提示条
<
/translation
>
<
/message
>
...
...
@@ -576,15 +571,20 @@
<
translation
>
模型训练完成啦
!
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
59
"
/>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
60
"
/>
<
source
>
Training
model
<
/source
>
<
translation
>
正在训练模型
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
59
"
/>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
60
"
/>
<
source
>
Please
wait
patiently
<
/source
>
<
translation
>
我知道你很急
,
但是你先别急
~~<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/status_info_interface.py
"
line
=
"
62
"
/>
<
source
>
Hide
StateToolTip
<
/source
>
<
translation
>
隐藏进度提示条
<
/translation
>
<
/message
>
<
/context
>
<
context
>
<
name
>
ToolBar
<
/name
>
...
...
@@ -599,12 +599,12 @@
<
translation
>
源代码
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
5
3
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
5
4
"
/>
<
source
>
Toggle
theme
<
/source
>
<
translation
>
切换主题
<
/translation
>
<
/message
>
<
message
>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
5
4
"
/>
<
location
filename
=
"
../../view/gallery_interface.py
"
line
=
"
5
5
"
/>
<
source
>
Send
feedback
<
/source
>
<
translation
>
提供反馈
<
/translation
>
<
/message
>
...
...
examples/gallery/app/view/status_info_interface.py
浏览文件 @
059b2599
...
...
@@ -53,11 +53,12 @@ class StatusInfoInterface(GalleryInterface):
def
onStateButtonClicked
(
self
):
if
self
.
stateTooltip
:
self
.
stateTooltip
.
setContent
(
self
.
tr
(
'The model training is complete!'
)
+
' 😆'
)
self
.
sender
().
setText
(
self
.
tr
(
'Show StateToolTip'
))
self
.
stateTooltip
.
setState
(
True
)
self
.
stateTooltip
=
None
else
:
self
.
stateTooltip
=
StateToolTip
(
self
.
tr
(
'Training model'
),
self
.
tr
(
'Please wait patiently'
),
self
.
window
())
self
.
sender
().
setText
(
self
.
tr
(
'Hide
state tool t
ip'
))
self
.
sender
().
setText
(
self
.
tr
(
'Hide
StateToolT
ip'
))
self
.
stateTooltip
.
move
(
self
.
stateTooltip
.
getSuitablePos
())
self
.
stateTooltip
.
show
()
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录