Commit d8008a73 authored by Zheng Yile's avatar Zheng Yile
Browse files

Merge branch 'gui-master' of https://git.ustc.edu.cn/zzyyyl/codiaclient into gui-master

parents 4d575bb1 1e6379ad
......@@ -156,6 +156,7 @@ def AcquireVerification():
# 打开注册界面
def ShowRegister():
windowLogin.setWindowTitle('欢迎使用Codia——注册')
uiLogin.frameLogin.hide()
uiLogin.frameRegister.show()
if uiLogin.lineEditLoginUsername.text():
......@@ -164,6 +165,7 @@ def ShowRegister():
# 打开重置密码界面
def ShowReset():
windowLogin.setWindowTitle('欢迎使用Codia——重置密码')
uiLogin.frameLogin.hide()
uiLogin.frameReset.show()
if uiLogin.lineEditLoginUsername.text():
......@@ -226,12 +228,14 @@ def Reset():
# 从注册界面返回主界面
def RegisterReturn():
windowLogin.setWindowTitle('欢迎使用Codia——登录')
uiLogin.frameLogin.show()
uiLogin.frameRegister.hide()
# 从重置密码界面返回主界面
def ResetReturn():
windowLogin.setWindowTitle('欢迎使用Codia——登录')
uiLogin.frameLogin.show()
uiLogin.frameReset.hide()
......
......@@ -693,8 +693,11 @@ def SubmitCode(lang: str, code: str):
def SubmitInit():
languages = [toDisplay[lang] for lang in variables["exerciseInfo"]["supportedLanguages"]]
uiMain.comboBoxLanguageSubmit.clear()
uiMain.comboBoxLanguageSubmit.addItem("请选择提交语言")
if uiMain.comboBoxLanguage.currentText() == '请选择提交语言':
uiMain.comboBoxLanguageSubmit.addItem('请选择提交语言')
uiMain.comboBoxLanguageSubmit.addItems(languages)
if uiMain.comboBoxLanguage.currentText() != '请选择提交语言':
uiMain.comboBoxLanguageSubmit.setCurrentIndex(uiMain.comboBoxLanguage.currentIndex() - 1)
uiMain.frameQuestion.hide()
uiMain.frameSubmit.show()
......
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