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

Modify MainFunctions.py, codiaclientgui/utils.py, main.py

parent 0c05ac94
......@@ -8,7 +8,7 @@ from PyQt5.QtWidgets import QListWidgetItem, QWidget, QListWidget
from PyQt5.QtWidgets import QMessageBox, QMainWindow, QApplication
import functionWindow
from codiaclientgui.utils import Font, Palette
from codiaclientgui.utils import Font, Palette, Style
from codiaclient.network import get_pack, show_pack
page_number = 0
......@@ -70,8 +70,8 @@ def function_Window_init(ui: functionWindow.Ui_functionWindow, nickname="UNDEFIN
global last_pack_pid
ui.progressBar_pack_frame.hide()
ui.progressBar_question_frame.hide()
ui.progressBar_pack_frame.setStyleSheet("QProgressBar { border: 2px solid grey; border-radius: 5px; background-color: #FFFFFF;}QProgressBar::chunk { background-color: #007FFF; width: 10px;}QProgressBar { border: 2px solid grey; border-radius: 5px; text-align: center;}")
ui.progressBar_question_frame.setStyleSheet("QProgressBar { border: 2px solid grey; border-radius: 5px; background-color: #FFFFFF;}QProgressBar::chunk { background-color: #007FFF; width: 10px;}QProgressBar { border: 2px solid grey; border-radius: 5px; text-align: center;}")
ui.progressBar_pack_frame.setStyleSheet(Style["progressBar"])
ui.progressBar_question_frame.setStyleSheet(Style["progressBar"])
pack_list = get_pack()['nodes']
pages.append(pack_list)
ui.exerciseFrame.hide()
......
......@@ -14,17 +14,22 @@ Palette = {
"gray": QPalette(),
}
Style = {
"progressBar": "",
}
import sys
if sys.platform == 'win32':
Font['main'].setFamily("Microsoft YaHei")
Font['main'].setPointSize(10)
Font['status'].setFamily("FangSong")
Font['main'].setPointSize(9)
Font['status'].setPointSize(9)
Style['progressBar'] = "QProgressBar { border: 2px solid grey; border-radius: 5px; background-color: #FFFFFF;}QProgressBar::chunk { background-color: #007FFF; width: 10px;}QProgressBar { border: 2px solid grey; border-radius: 5px; text-align: center;}"
elif sys.platform == 'darwin':
Font['main'].setFamily(".AppleSystemUIFont")
Font['main'].setPointSize(13)
Font['status'].setFamily(".AppleSystemUIFont")
Font['main'].setPointSize(12)
Font['status'].setPointSize(12)
pass
else:
Font['main'].setFamily("Microsoft YaHei")
......
......@@ -12,13 +12,13 @@ from codiaclient.network import *
from codiaclient.network import _acquire_verification
from codiaclient.report import Error as codiaError, error_translate
from codiaclient.utils import cookie_decrypt, cookie_encrypt
from codiaclientgui.utils import Style, Font
# 开始进行登录操作
def BeginLogin():
LoginUi.progressBar_Login.setValue(0)
LoginUi.progressBar_Login.show()
LoginUi.progressBar_Login.setStyleSheet("QProgressBar { border: 2px solid grey; border-radius: 5px; background-color: #FFFFFF;}QProgressBar::chunk { background-color: #007FFF; width: 10px;}QProgressBar { border: 2px solid grey; border-radius: 5px; text-align: center;}")
LoginUi.progressBar_Login.setStyleSheet(Style["progressBar"])
QApplication.processEvents()
loginusername = LoginUi.lineEdit0Username.text()
loginpassword = LoginUi.lineEdit0Password.text()
......
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