Commit 5c5762d8 authored by Zheng Yile's avatar Zheng Yile
Browse files

Modify mainFunctions.py

parent 4fb9de1b
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment