Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Zheng Yile
codiaclient
Commits
5c5762d8
Commit
5c5762d8
authored
Jun 27, 2021
by
Zheng Yile
Browse files
Modify mainFunctions.py
parent
4fb9de1b
Changes
1
Hide whitespace changes
Inline
Side-by-side
mainFunctions.py
View file @
5c5762d8
...
...
@@ -44,6 +44,7 @@ toDisplay = {
"RUST"
:
"Rust"
,
"PYTHON"
:
"Python"
,
"passed"
:
"通过"
,
"compile error"
:
"编译错误"
,
"wrong answer"
:
"答案错误"
,
"runtime error"
:
"运行时错误"
,
"time limit exceeds"
:
"超时"
,
...
...
@@ -154,8 +155,8 @@ def GetExerciseWidget(data: dict):
labelExerciseStatus
=
QLabel
(
"未通过"
)
labelExerciseStatus
.
setPalette
(
Palette
[
QPalette
.
Text
][
"red"
])
labelExerciseTitle
=
QLabel
(
str
(
data
[
"title"
]))
labelExercisePassed
=
QLabel
(
f
"通过数:
{
data
[
"viewerStatus"
][
"passedCount"
]
}
"
)
labelExerciseSubmit
=
QLabel
(
f
"提交数:
{
data
[
"viewerStatus"
][
"totalCount"
]
}
"
)
labelExercisePassed
=
QLabel
(
f
"
""
通过数:
{
data
[
"viewerStatus"
][
"passedCount"
]
}
"
""
)
labelExerciseSubmit
=
QLabel
(
f
"
""
提交数:
{
data
[
"viewerStatus"
][
"totalCount"
]
}
"
""
)
layoutExerciseMain
=
QHBoxLayout
()
layoutExerciseRight
=
QVBoxLayout
()
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment