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

修改进度条样式;优化做题界面UI

parent 7b81e945
......@@ -39,7 +39,7 @@ if sys.platform == 'win32':
Font['main'].setPointSize(10)
Font['status'].setFamily("KaiTi")
Font['status'].setPointSize(10)
Style['progressBar'] = "QProgressBar { border: 1px solid grey; border-radius: 2px; text-align: center; background-color: #FFFFFF;}QProgressBar::chunk { background-color: #30A132; width: 10px;}"
Style['progressBar'] = "QProgressBar { max-height: 12px; border: none; border-radius: 6px; text-align: center; background-color: #FFFFFF } QProgressBar::chunk { border: none; border-radius: 6px; background: qlineargradient(spread: pad, x1: 0, y1: 0, x2: 1, y2: 0, stop: 0 #05A01E, stop: 1 #75C090) }"
elif sys.platform == 'darwin':
Font['main'].setFamily("PingFang SC")
Font['main'].setPointSize(13)
......
......@@ -65,7 +65,7 @@ class Ui_windowLogin(object):
self.pushButtonLogin.setGeometry(QtCore.QRect(105, 190, 120, 32))
self.pushButtonLogin.setObjectName("pushButtonLogin")
self.progressBarLogin = QtWidgets.QProgressBar(self.frameLogin)
self.progressBarLogin.setGeometry(QtCore.QRect(78, 240, 384, 20))
self.progressBarLogin.setGeometry(QtCore.QRect(78, 240, 384, 12))
self.progressBarLogin.setProperty("value", 0)
self.progressBarLogin.setTextVisible(False)
self.progressBarLogin.setObjectName("progressBarLogin")
......@@ -193,9 +193,9 @@ class Ui_windowLogin(object):
self.pushButtonResetReturn = NewPushButton(self.frameReset)
self.pushButtonResetReturn.setGeometry(QtCore.QRect(315, 190, 120, 32))
self.pushButtonResetReturn.setObjectName("pushButtonResetReturn")
self.frameLogin.raise_()
self.frameReset.raise_()
self.frameRegister.raise_()
self.frameLogin.raise_()
windowLogin.setCentralWidget(self.centralwidget)
self.menuBar = QtWidgets.QMenuBar(windowLogin)
self.menuBar.setGeometry(QtCore.QRect(0, 0, 540, 26))
......
......@@ -189,7 +189,7 @@
<x>78</x>
<y>240</y>
<width>384</width>
<height>20</height>
<height>12</height>
</rect>
</property>
<property name="value">
......@@ -584,9 +584,9 @@
</property>
</widget>
</widget>
<zorder>frameLogin</zorder>
<zorder>frameReset</zorder>
<zorder>frameRegister</zorder>
<zorder>frameLogin</zorder>
</widget>
<widget class="QMenuBar" name="menuBar">
<property name="geometry">
......
......@@ -2,7 +2,7 @@
# Form implementation generated from reading ui file 'mainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
# Created by: PyQt5 UI code generator 5.15.2
#
# WARNING: Any manual changes made to this file will be lost when pyuic5 is
# run again. Do not edit this file unless you know what you are doing.
......@@ -35,20 +35,20 @@ class Ui_windowMain(object):
self.listWidgetPack.setMaximumSize(QtCore.QSize(1280, 768))
self.listWidgetPack.setObjectName("listWidgetPack")
self.pushButtonPackOK = NewPushButton(self.framePack)
self.pushButtonPackOK.setGeometry(QtCore.QRect(270, 620, 120, 32))
self.pushButtonPackOK.setGeometry(QtCore.QRect(480, 630, 120, 32))
self.pushButtonPackOK.setObjectName("pushButtonPackOK")
self.pushButtonPackNext = NewPushButton(self.framePack)
self.pushButtonPackNext.setGeometry(QtCore.QRect(635, 620, 120, 32))
self.pushButtonPackNext.setGeometry(QtCore.QRect(730, 630, 120, 32))
self.pushButtonPackNext.setObjectName("pushButtonPackNext")
self.pushButtonPackPrevious = NewPushButton(self.framePack)
self.pushButtonPackPrevious.setGeometry(QtCore.QRect(490, 620, 120, 32))
self.pushButtonPackPrevious.setGeometry(QtCore.QRect(230, 630, 120, 32))
self.pushButtonPackPrevious.setObjectName("pushButtonPackPrevious")
self.labelPackPage = QtWidgets.QLabel(self.framePack)
self.labelPackPage.setGeometry(QtCore.QRect(50, 620, 120, 32))
self.labelPackPage.setGeometry(QtCore.QRect(50, 630, 120, 32))
self.labelPackPage.setAlignment(QtCore.Qt.AlignCenter)
self.labelPackPage.setObjectName("labelPackPage")
self.progressBarPack = QtWidgets.QProgressBar(self.framePack)
self.progressBarPack.setGeometry(QtCore.QRect(40, 580, 1000, 20))
self.progressBarPack.setGeometry(QtCore.QRect(180, 9, 720, 12))
self.progressBarPack.setProperty("value", 20)
self.progressBarPack.setTextVisible(False)
self.progressBarPack.setObjectName("progressBarPack")
......@@ -60,24 +60,24 @@ class Ui_windowMain(object):
self.frameExercise.setFrameShadow(QtWidgets.QFrame.Raised)
self.frameExercise.setObjectName("frameExercise")
self.pushButtonExerciseOK = NewPushButton(self.frameExercise)
self.pushButtonExerciseOK.setGeometry(QtCore.QRect(270, 620, 120, 32))
self.pushButtonExerciseOK.setGeometry(QtCore.QRect(480, 630, 120, 32))
self.pushButtonExerciseOK.setObjectName("pushButtonExerciseOK")
self.pushButtonExerciseReturn = NewPushButton(self.frameExercise)
self.pushButtonExerciseReturn.setGeometry(QtCore.QRect(490, 620, 120, 32))
self.pushButtonExerciseReturn.setGeometry(QtCore.QRect(730, 630, 120, 32))
self.pushButtonExerciseReturn.setObjectName("pushButtonExerciseReturn")
self.listWidgetExercise = QtWidgets.QListWidget(self.frameExercise)
self.listWidgetExercise.setGeometry(QtCore.QRect(28, 170, 1024, 391))
self.listWidgetExercise.setObjectName("listWidgetExercise")
self.pushButtonExerciseBegin = NewPushButton(self.frameExercise)
self.pushButtonExerciseBegin.setGeometry(QtCore.QRect(50, 620, 120, 32))
self.pushButtonExerciseBegin.setGeometry(QtCore.QRect(50, 630, 120, 32))
self.pushButtonExerciseBegin.setObjectName("pushButtonExerciseBegin")
self.labelDeadline = QtWidgets.QLabel(self.frameExercise)
self.labelDeadline.setGeometry(QtCore.QRect(780, 620, 280, 32))
self.labelDeadline.setGeometry(QtCore.QRect(780, 580, 280, 32))
self.labelDeadline.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.labelDeadline.setIndent(10)
self.labelDeadline.setObjectName("labelDeadline")
self.progressBarExercise = QtWidgets.QProgressBar(self.frameExercise)
self.progressBarExercise.setGeometry(QtCore.QRect(40, 580, 1001, 21))
self.progressBarExercise.setGeometry(QtCore.QRect(180, 9, 720, 12))
self.progressBarExercise.setProperty("value", 20)
self.progressBarExercise.setTextVisible(False)
self.progressBarExercise.setObjectName("progressBarExercise")
......@@ -85,6 +85,13 @@ class Ui_windowMain(object):
self.textEditExerciseDiscription.setGeometry(QtCore.QRect(28, 30, 1024, 141))
self.textEditExerciseDiscription.setReadOnly(True)
self.textEditExerciseDiscription.setObjectName("textEditExerciseDiscription")
self.pushButtonExerciseOK.raise_()
self.pushButtonExerciseReturn.raise_()
self.listWidgetExercise.raise_()
self.pushButtonExerciseBegin.raise_()
self.labelDeadline.raise_()
self.textEditExerciseDiscription.raise_()
self.progressBarExercise.raise_()
self.frameQuestion = QtWidgets.QFrame(self.centralwidget)
self.frameQuestion.setGeometry(QtCore.QRect(0, 0, 1080, 768))
self.frameQuestion.setFrameShape(QtWidgets.QFrame.NoFrame)
......@@ -95,22 +102,22 @@ class Ui_windowMain(object):
self.textEditQuestionDiscription.setReadOnly(True)
self.textEditQuestionDiscription.setObjectName("textEditQuestionDiscription")
self.pushButtonSubmit = NewPushButton(self.frameQuestion)
self.pushButtonSubmit.setGeometry(QtCore.QRect(490, 620, 120, 32))
self.pushButtonSubmit.setGeometry(QtCore.QRect(563, 630, 120, 32))
self.pushButtonSubmit.setObjectName("pushButtonSubmit")
self.pushButtonHistory = NewPushButton(self.frameQuestion)
self.pushButtonHistory.setGeometry(QtCore.QRect(635, 620, 120, 32))
self.pushButtonHistory.setGeometry(QtCore.QRect(50, 630, 120, 32))
self.pushButtonHistory.setObjectName("pushButtonHistory")
self.pushButtonQuestionReturn = NewPushButton(self.frameQuestion)
self.pushButtonQuestionReturn.setGeometry(QtCore.QRect(780, 620, 120, 32))
self.pushButtonQuestionReturn.setGeometry(QtCore.QRect(730, 630, 120, 32))
self.pushButtonQuestionReturn.setObjectName("pushButtonQuestionReturn")
self.labelQuestionStatus = QtWidgets.QLabel(self.frameQuestion)
self.labelQuestionStatus.setGeometry(QtCore.QRect(30, 10, 171, 16))
self.labelQuestionStatus.setGeometry(QtCore.QRect(30, 0, 150, 30))
self.labelQuestionStatus.setObjectName("labelQuestionStatus")
self.pushButtonSubmitFile = QtWidgets.QPushButton(self.frameQuestion)
self.pushButtonSubmitFile.setGeometry(QtCore.QRect(345, 620, 113, 32))
self.pushButtonSubmitFile = NewPushButton(self.frameQuestion)
self.pushButtonSubmitFile.setGeometry(QtCore.QRect(397, 630, 120, 32))
self.pushButtonSubmitFile.setObjectName("pushButtonSubmitFile")
self.comboBoxLanguage = QtWidgets.QComboBox(self.frameQuestion)
self.comboBoxLanguage.setGeometry(QtCore.QRect(920, 0, 141, 32))
self.comboBoxLanguage.setGeometry(QtCore.QRect(920, 0, 132, 30))
self.comboBoxLanguage.setObjectName("comboBoxLanguage")
self.comboBoxLanguage.addItem("")
self.frameSubmit = QtWidgets.QFrame(self.centralwidget)
......@@ -119,35 +126,35 @@ class Ui_windowMain(object):
self.frameSubmit.setFrameShadow(QtWidgets.QFrame.Raised)
self.frameSubmit.setObjectName("frameSubmit")
self.comboBoxLanguageSubmit = QtWidgets.QComboBox(self.frameSubmit)
self.comboBoxLanguageSubmit.setGeometry(QtCore.QRect(920, 0, 141, 32))
self.comboBoxLanguageSubmit.setGeometry(QtCore.QRect(920, 0, 132, 30))
self.comboBoxLanguageSubmit.setObjectName("comboBoxLanguageSubmit")
self.comboBoxLanguageSubmit.addItem("")
self.labelSubmitStatus = QtWidgets.QLabel(self.frameSubmit)
self.labelSubmitStatus.setGeometry(QtCore.QRect(30, 10, 171, 16))
self.labelSubmitStatus.setGeometry(QtCore.QRect(30, 0, 150, 30))
self.labelSubmitStatus.setObjectName("labelSubmitStatus")
self.textEditSubmit = QtWidgets.QTextEdit(self.frameSubmit)
self.textEditSubmit.setGeometry(QtCore.QRect(28, 30, 1024, 531))
self.textEditSubmit.setTabStopWidth(40)
self.textEditSubmit.setObjectName("textEditSubmit")
self.pushButtonSubmitCode = QtWidgets.QPushButton(self.frameSubmit)
self.pushButtonSubmitCode.setGeometry(QtCore.QRect(320, 620, 120, 32))
self.pushButtonSubmitCode = NewPushButton(self.frameSubmit)
self.pushButtonSubmitCode.setGeometry(QtCore.QRect(480, 630, 120, 32))
self.pushButtonSubmitCode.setObjectName("pushButtonSubmitCode")
self.pushButtonSubmitBack = QtWidgets.QPushButton(self.frameSubmit)
self.pushButtonSubmitBack.setGeometry(QtCore.QRect(670, 620, 113, 32))
self.pushButtonSubmitBack = NewPushButton(self.frameSubmit)
self.pushButtonSubmitBack.setGeometry(QtCore.QRect(730, 630, 120, 32))
self.pushButtonSubmitBack.setObjectName("pushButtonSubmitBack")
self.frameHistory = QtWidgets.QFrame(self.centralwidget)
self.frameHistory.setGeometry(QtCore.QRect(0, 0, 1080, 768))
self.frameHistory.setFrameShape(QtWidgets.QFrame.NoFrame)
self.frameHistory.setFrameShadow(QtWidgets.QFrame.Raised)
self.frameHistory.setObjectName("frameHistory")
self.frameExercise.raise_()
self.framePack.raise_()
self.frameHistory.raise_()
self.frameSubmit.raise_()
self.frameQuestion.raise_()
self.framePack.raise_()
self.frameSubmit.raise_()
self.frameExercise.raise_()
windowMain.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(windowMain)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1080, 24))
self.menubar.setGeometry(QtCore.QRect(0, 0, 1080, 26))
self.menubar.setObjectName("menubar")
windowMain.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(windowMain)
......
......@@ -79,8 +79,8 @@
<widget class="NewPushButton" name="pushButtonPackOK">
<property name="geometry">
<rect>
<x>270</x>
<y>620</y>
<x>480</x>
<y>630</y>
<width>120</width>
<height>32</height>
</rect>
......@@ -92,8 +92,8 @@
<widget class="NewPushButton" name="pushButtonPackNext">
<property name="geometry">
<rect>
<x>635</x>
<y>620</y>
<x>730</x>
<y>630</y>
<width>120</width>
<height>32</height>
</rect>
......@@ -105,8 +105,8 @@
<widget class="NewPushButton" name="pushButtonPackPrevious">
<property name="geometry">
<rect>
<x>490</x>
<y>620</y>
<x>230</x>
<y>630</y>
<width>120</width>
<height>32</height>
</rect>
......@@ -119,7 +119,7 @@
<property name="geometry">
<rect>
<x>50</x>
<y>620</y>
<y>630</y>
<width>120</width>
<height>32</height>
</rect>
......@@ -134,10 +134,10 @@
<widget class="QProgressBar" name="progressBarPack">
<property name="geometry">
<rect>
<x>40</x>
<y>580</y>
<width>1000</width>
<height>20</height>
<x>180</x>
<y>9</y>
<width>720</width>
<height>12</height>
</rect>
</property>
<property name="value">
......@@ -178,8 +178,8 @@
<widget class="NewPushButton" name="pushButtonExerciseOK">
<property name="geometry">
<rect>
<x>270</x>
<y>620</y>
<x>480</x>
<y>630</y>
<width>120</width>
<height>32</height>
</rect>
......@@ -191,8 +191,8 @@
<widget class="NewPushButton" name="pushButtonExerciseReturn">
<property name="geometry">
<rect>
<x>490</x>
<y>620</y>
<x>730</x>
<y>630</y>
<width>120</width>
<height>32</height>
</rect>
......@@ -215,7 +215,7 @@
<property name="geometry">
<rect>
<x>50</x>
<y>620</y>
<y>630</y>
<width>120</width>
<height>32</height>
</rect>
......@@ -228,7 +228,7 @@
<property name="geometry">
<rect>
<x>780</x>
<y>620</y>
<y>580</y>
<width>280</width>
<height>32</height>
</rect>
......@@ -246,10 +246,10 @@
<widget class="QProgressBar" name="progressBarExercise">
<property name="geometry">
<rect>
<x>40</x>
<y>580</y>
<width>1001</width>
<height>21</height>
<x>180</x>
<y>9</y>
<width>720</width>
<height>12</height>
</rect>
</property>
<property name="value">
......@@ -272,6 +272,13 @@
<bool>true</bool>
</property>
</widget>
<zorder>pushButtonExerciseOK</zorder>
<zorder>pushButtonExerciseReturn</zorder>
<zorder>listWidgetExercise</zorder>
<zorder>pushButtonExerciseBegin</zorder>
<zorder>labelDeadline</zorder>
<zorder>textEditExerciseDiscription</zorder>
<zorder>progressBarExercise</zorder>
</widget>
<widget class="QFrame" name="frameQuestion">
<property name="geometry">
......@@ -304,8 +311,8 @@
<widget class="NewPushButton" name="pushButtonSubmit">
<property name="geometry">
<rect>
<x>490</x>
<y>620</y>
<x>563</x>
<y>630</y>
<width>120</width>
<height>32</height>
</rect>
......@@ -317,8 +324,8 @@
<widget class="NewPushButton" name="pushButtonHistory">
<property name="geometry">
<rect>
<x>635</x>
<y>620</y>
<x>50</x>
<y>630</y>
<width>120</width>
<height>32</height>
</rect>
......@@ -330,8 +337,8 @@
<widget class="NewPushButton" name="pushButtonQuestionReturn">
<property name="geometry">
<rect>
<x>780</x>
<y>620</y>
<x>730</x>
<y>630</y>
<width>120</width>
<height>32</height>
</rect>
......@@ -344,21 +351,21 @@
<property name="geometry">
<rect>
<x>30</x>
<y>10</y>
<width>171</width>
<height>16</height>
<y>0</y>
<width>150</width>
<height>30</height>
</rect>
</property>
<property name="text">
<string>通过/尝试:</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonSubmitFile">
<widget class="NewPushButton" name="pushButtonSubmitFile">
<property name="geometry">
<rect>
<x>345</x>
<y>620</y>
<width>113</width>
<x>397</x>
<y>630</y>
<width>120</width>
<height>32</height>
</rect>
</property>
......@@ -371,8 +378,8 @@
<rect>
<x>920</x>
<y>0</y>
<width>141</width>
<height>32</height>
<width>132</width>
<height>30</height>
</rect>
</property>
<item>
......@@ -402,8 +409,8 @@
<rect>
<x>920</x>
<y>0</y>
<width>141</width>
<height>32</height>
<width>132</width>
<height>30</height>
</rect>
</property>
<item>
......@@ -416,9 +423,9 @@
<property name="geometry">
<rect>
<x>30</x>
<y>10</y>
<width>171</width>
<height>16</height>
<y>0</y>
<width>150</width>
<height>30</height>
</rect>
</property>
<property name="text">
......@@ -438,11 +445,11 @@
<number>40</number>
</property>
</widget>
<widget class="QPushButton" name="pushButtonSubmitCode">
<widget class="NewPushButton" name="pushButtonSubmitCode">
<property name="geometry">
<rect>
<x>320</x>
<y>620</y>
<x>480</x>
<y>630</y>
<width>120</width>
<height>32</height>
</rect>
......@@ -451,12 +458,12 @@
<string>提交</string>
</property>
</widget>
<widget class="QPushButton" name="pushButtonSubmitBack">
<widget class="NewPushButton" name="pushButtonSubmitBack">
<property name="geometry">
<rect>
<x>670</x>
<y>620</y>
<width>113</width>
<x>730</x>
<y>630</y>
<width>120</width>
<height>32</height>
</rect>
</property>
......@@ -481,11 +488,11 @@
<enum>QFrame::Raised</enum>
</property>
</widget>
<zorder>frameExercise</zorder>
<zorder>framePack</zorder>
<zorder>frameHistory</zorder>
<zorder>frameSubmit</zorder>
<zorder>frameQuestion</zorder>
<zorder>framePack</zorder>
<zorder>frameSubmit</zorder>
<zorder>frameExercise</zorder>
</widget>
<widget class="QMenuBar" name="menubar">
<property name="geometry">
......@@ -493,7 +500,7 @@
<x>0</x>
<y>0</y>
<width>1080</width>
<height>24</height>
<height>26</height>
</rect>
</property>
</widget>
......
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