1 Star 0 Fork 1

zpl-hill/yumathV3

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
Ui_add_mixtest.py 14.10 KB
一键复制 编辑 原始数据 按行查看 历史
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'g:\grace\yumath\Math_ver3\add_mixtest.ui'
#
# Created by: PyQt5 UI code generator 5.15.1
#
# 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.
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_add_sub(object):
def setupUi(self, add_sub):
add_sub.setObjectName("add_sub")
add_sub.setWindowModality(QtCore.Qt.WindowModal)
add_sub.resize(857, 649)
add_sub.setStyleSheet("QWidget#ADDwidget{border-image: url(:/res/bk5.jpg);}\n"
"QStatusBar, QToolBar{\n"
" \n"
" background-color: rgb(255, 255, 255);\n"
"}\n"
"\n"
"QGroupBox{\n"
";\n"
" color: rgb(0, 255, 0);\n"
" font: 14pt \"微软雅黑\";\n"
"}\n"
"QLabel{\n"
" color: rgb(255, 255, 127);\n"
" font: 12pt \"微软雅黑\";\n"
"}\n"
"QLabel#lashu1,#lashu2,#lafuhao{\n"
" color: rgb(255, 255, 127);\n"
" font: 30pt \"微软雅黑\";\n"
"}\n"
"QPushButton{\n"
"font: 9pt \"微软雅黑\";\n"
"color: rgb(0, 0, 127);\n"
"}\n"
"QLineEdit#leshushian{\n"
" color: rgb(0, 0, 0);\n"
" font: 30pt \"微软雅黑\";\n"
"}\n"
"QLCDNumber{\n"
" color: rgb(0, 255, 0);\n"
"}")
self.ADDwidget = QtWidgets.QWidget(add_sub)
self.ADDwidget.setObjectName("ADDwidget")
self.label = QtWidgets.QLabel(self.ADDwidget)
self.label.setGeometry(QtCore.QRect(20, 10, 811, 31))
font = QtGui.QFont()
font.setFamily("隶书")
font.setPointSize(20)
font.setBold(False)
font.setItalic(False)
font.setWeight(50)
self.label.setFont(font)
self.label.setStyleSheet("color: rgb(255, 255, 127);\n"
"font: 20pt \"隶书\";")
self.label.setAlignment(QtCore.Qt.AlignCenter)
self.label.setObjectName("label")
self.groupBox = QtWidgets.QGroupBox(self.ADDwidget)
self.groupBox.setGeometry(QtCore.QRect(30, 80, 331, 121))
self.groupBox.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.groupBox.setObjectName("groupBox")
self.gridLayout = QtWidgets.QGridLayout(self.groupBox)
self.gridLayout.setObjectName("gridLayout")
self.pbDone = QtWidgets.QPushButton(self.groupBox)
self.pbDone.setObjectName("pbDone")
self.gridLayout.addWidget(self.pbDone, 1, 0, 1, 1)
self.Lbtimu = QtWidgets.QLabel(self.groupBox)
self.Lbtimu.setObjectName("Lbtimu")
self.gridLayout.addWidget(self.Lbtimu, 0, 0, 1, 1)
self.pbPass = QtWidgets.QPushButton(self.groupBox)
self.pbPass.setObjectName("pbPass")
self.gridLayout.addWidget(self.pbPass, 1, 1, 1, 1)
self.pte_answer = QtWidgets.QPlainTextEdit(self.groupBox)
self.pte_answer.setLineWidth(1)
self.pte_answer.setSizeAdjustPolicy(QtWidgets.QAbstractScrollArea.AdjustToContents)
self.pte_answer.setObjectName("pte_answer")
self.gridLayout.addWidget(self.pte_answer, 0, 1, 1, 1)
self.gridLayout.setColumnStretch(0, 1)
self.gridLayout.setColumnStretch(1, 1)
self.gridLayout.setRowStretch(0, 1)
self.gridLayout.setRowStretch(1, 1)
self.groupBox_3 = QtWidgets.QGroupBox(self.ADDwidget)
self.groupBox_3.setGeometry(QtCore.QRect(370, 80, 101, 121))
self.groupBox_3.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.groupBox_3.setObjectName("groupBox_3")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.groupBox_3)
self.horizontalLayout_3.setSpacing(12)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.labresult = QtWidgets.QLabel(self.groupBox_3)
self.labresult.setText("")
self.labresult.setPixmap(QtGui.QPixmap(":/res/right.png"))
self.labresult.setScaledContents(True)
self.labresult.setObjectName("labresult")
self.horizontalLayout_3.addWidget(self.labresult)
self.groupBox_4 = QtWidgets.QGroupBox(self.ADDwidget)
self.groupBox_4.setGeometry(QtCore.QRect(500, 80, 343, 121))
self.groupBox_4.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.groupBox_4.setObjectName("groupBox_4")
self.gridLayout_2 = QtWidgets.QGridLayout(self.groupBox_4)
self.gridLayout_2.setObjectName("gridLayout_2")
self.label_2 = QtWidgets.QLabel(self.groupBox_4)
self.label_2.setObjectName("label_2")
self.gridLayout_2.addWidget(self.label_2, 0, 0, 1, 1)
self.labright = QtWidgets.QLabel(self.groupBox_4)
self.labright.setObjectName("labright")
self.gridLayout_2.addWidget(self.labright, 0, 1, 1, 1)
self.label_4 = QtWidgets.QLabel(self.groupBox_4)
self.label_4.setObjectName("label_4")
self.gridLayout_2.addWidget(self.label_4, 0, 2, 1, 1)
self.labtotal = QtWidgets.QLabel(self.groupBox_4)
self.labtotal.setObjectName("labtotal")
self.gridLayout_2.addWidget(self.labtotal, 0, 3, 1, 1)
self.label_3 = QtWidgets.QLabel(self.groupBox_4)
self.label_3.setObjectName("label_3")
self.gridLayout_2.addWidget(self.label_3, 1, 0, 1, 1)
self.labwrong = QtWidgets.QLabel(self.groupBox_4)
self.labwrong.setObjectName("labwrong")
self.gridLayout_2.addWidget(self.labwrong, 1, 1, 1, 1)
self.groupBox_5 = QtWidgets.QGroupBox(self.ADDwidget)
self.groupBox_5.setGeometry(QtCore.QRect(30, 230, 471, 321))
self.groupBox_5.setAlignment(QtCore.Qt.AlignLeading|QtCore.Qt.AlignLeft|QtCore.Qt.AlignVCenter)
self.groupBox_5.setObjectName("groupBox_5")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.groupBox_5)
self.horizontalLayout_5.setSpacing(12)
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.tableWidgethistory = QtWidgets.QTableWidget(self.groupBox_5)
self.tableWidgethistory.setObjectName("tableWidgethistory")
self.tableWidgethistory.setColumnCount(0)
self.tableWidgethistory.setRowCount(0)
self.horizontalLayout_5.addWidget(self.tableWidgethistory)
self.groupBoxkaoshi = QtWidgets.QGroupBox(self.ADDwidget)
self.groupBoxkaoshi.setGeometry(QtCore.QRect(520, 200, 321, 351))
self.groupBoxkaoshi.setObjectName("groupBoxkaoshi")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.groupBoxkaoshi)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.groupBox_6 = QtWidgets.QGroupBox(self.groupBoxkaoshi)
self.groupBox_6.setTitle("")
self.groupBox_6.setObjectName("groupBox_6")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.groupBox_6)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.btnStart = QtWidgets.QPushButton(self.groupBox_6)
self.btnStart.setObjectName("btnStart")
self.horizontalLayout_2.addWidget(self.btnStart)
self.btnStop = QtWidgets.QPushButton(self.groupBox_6)
self.btnStop.setEnabled(False)
self.btnStop.setObjectName("btnStop")
self.horizontalLayout_2.addWidget(self.btnStop)
self.verticalLayout_2.addWidget(self.groupBox_6)
self.groupBox_2 = QtWidgets.QGroupBox(self.groupBoxkaoshi)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth())
self.groupBox_2.setSizePolicy(sizePolicy)
self.groupBox_2.setMinimumSize(QtCore.QSize(0, 50))
self.groupBox_2.setObjectName("groupBox_2")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.groupBox_2)
self.horizontalLayout.setObjectName("horizontalLayout")
self.LCDHour = QtWidgets.QLCDNumber(self.groupBox_2)
font = QtGui.QFont()
font.setPointSize(11)
self.LCDHour.setFont(font)
self.LCDHour.setSmallDecimalPoint(False)
self.LCDHour.setDigitCount(2)
self.LCDHour.setSegmentStyle(QtWidgets.QLCDNumber.Filled)
self.LCDHour.setProperty("value", 10.0)
self.LCDHour.setProperty("intValue", 10)
self.LCDHour.setObjectName("LCDHour")
self.horizontalLayout.addWidget(self.LCDHour)
self.LCDMin = QtWidgets.QLCDNumber(self.groupBox_2)
self.LCDMin.setDigitCount(2)
self.LCDMin.setSegmentStyle(QtWidgets.QLCDNumber.Filled)
self.LCDMin.setProperty("value", 26.0)
self.LCDMin.setProperty("intValue", 26)
self.LCDMin.setObjectName("LCDMin")
self.horizontalLayout.addWidget(self.LCDMin)
self.LCDSec = QtWidgets.QLCDNumber(self.groupBox_2)
self.LCDSec.setDigitCount(2)
self.LCDSec.setProperty("intValue", 35)
self.LCDSec.setObjectName("LCDSec")
self.horizontalLayout.addWidget(self.LCDSec)
self.verticalLayout_2.addWidget(self.groupBox_2)
self.groupBox_7 = QtWidgets.QGroupBox(self.groupBoxkaoshi)
self.groupBox_7.setObjectName("groupBox_7")
self.verticalLayout = QtWidgets.QVBoxLayout(self.groupBox_7)
self.verticalLayout.setObjectName("verticalLayout")
self.labeltimushengyu = QtWidgets.QLabel(self.groupBox_7)
self.labeltimushengyu.setObjectName("labeltimushengyu")
self.verticalLayout.addWidget(self.labeltimushengyu)
self.verticalLayout_2.addWidget(self.groupBox_7)
self.verticalLayout_2.setStretch(1, 10)
add_sub.setCentralWidget(self.ADDwidget)
self.statusbar = QtWidgets.QStatusBar(add_sub)
self.statusbar.setObjectName("statusbar")
add_sub.setStatusBar(self.statusbar)
self.toolBar = QtWidgets.QToolBar(add_sub)
self.toolBar.setToolButtonStyle(QtCore.Qt.ToolButtonTextUnderIcon)
self.toolBar.setObjectName("toolBar")
add_sub.addToolBar(QtCore.Qt.TopToolBarArea, self.toolBar)
self.act_quit = QtWidgets.QAction(add_sub)
icon = QtGui.QIcon()
icon.addPixmap(QtGui.QPixmap(":/res/退出.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.act_quit.setIcon(icon)
self.act_quit.setObjectName("act_quit")
self.act_seting = QtWidgets.QAction(add_sub)
icon1 = QtGui.QIcon()
icon1.addPixmap(QtGui.QPixmap(":/res/目录.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.act_seting.setIcon(icon1)
self.act_seting.setObjectName("act_seting")
self.act_sound = QtWidgets.QAction(add_sub)
icon2 = QtGui.QIcon()
icon2.addPixmap(QtGui.QPixmap(":/res/soundstart.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.act_sound.setIcon(icon2)
self.act_sound.setObjectName("act_sound")
self.acti_nextsong = QtWidgets.QAction(add_sub)
icon3 = QtGui.QIcon()
icon3.addPixmap(QtGui.QPixmap(":/res/下一首.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.acti_nextsong.setIcon(icon3)
self.acti_nextsong.setObjectName("acti_nextsong")
self.actmultab = QtWidgets.QAction(add_sub)
icon4 = QtGui.QIcon()
icon4.addPixmap(QtGui.QPixmap(":/res/计算器 加 减 乘 除 线性.png"), QtGui.QIcon.Normal, QtGui.QIcon.Off)
self.actmultab.setIcon(icon4)
self.actmultab.setObjectName("actmultab")
self.actshushi = QtWidgets.QAction(add_sub)
self.actshushi.setIcon(icon4)
self.actshushi.setObjectName("actshushi")
self.toolBar.addAction(self.act_seting)
self.toolBar.addAction(self.actshushi)
self.toolBar.addAction(self.actmultab)
self.toolBar.addAction(self.act_sound)
self.toolBar.addAction(self.acti_nextsong)
self.toolBar.addAction(self.act_quit)
self.retranslateUi(add_sub)
self.act_quit.triggered.connect(self.ADDwidget.close)
QtCore.QMetaObject.connectSlotsByName(add_sub)
def retranslateUi(self, add_sub):
_translate = QtCore.QCoreApplication.translate
add_sub.setWindowTitle(_translate("add_sub", "add_sub"))
self.label.setText(_translate("add_sub", "欢迎:小鱼鱼,下面请开始加减法吧"))
self.groupBox.setTitle(_translate("add_sub", "解题区"))
self.pbDone.setText(_translate("add_sub", "完成(F)"))
self.pbDone.setShortcut(_translate("add_sub", "F"))
self.Lbtimu.setText(_translate("add_sub", "TextLabel"))
self.pbPass.setText(_translate("add_sub", "放弃(G)"))
self.pbPass.setShortcut(_translate("add_sub", "G"))
self.groupBox_3.setTitle(_translate("add_sub", "结果"))
self.groupBox_4.setTitle(_translate("add_sub", "统计"))
self.label_2.setText(_translate("add_sub", "答对:"))
self.labright.setText(_translate("add_sub", "TextLabel"))
self.label_4.setText(_translate("add_sub", "总计:"))
self.labtotal.setText(_translate("add_sub", "TextLabel"))
self.label_3.setText(_translate("add_sub", "答错:"))
self.labwrong.setText(_translate("add_sub", "TextLabel"))
self.groupBox_5.setTitle(_translate("add_sub", "历史"))
self.groupBoxkaoshi.setTitle(_translate("add_sub", "考试"))
self.btnStart.setText(_translate("add_sub", "开始"))
self.btnStop.setText(_translate("add_sub", "停止"))
self.groupBox_2.setTitle(_translate("add_sub", "时间剩余"))
self.groupBox_7.setTitle(_translate("add_sub", "题目剩余"))
self.labeltimushengyu.setText(_translate("add_sub", "TextLabel"))
self.toolBar.setWindowTitle(_translate("add_sub", "toolBar"))
self.act_quit.setText(_translate("add_sub", "退出"))
self.act_quit.setShortcut(_translate("add_sub", "Ctrl+Q"))
self.act_seting.setText(_translate("add_sub", "计算设置"))
self.act_seting.setShortcut(_translate("add_sub", "Ctrl+S"))
self.act_sound.setText(_translate("add_sub", "音效"))
self.act_sound.setShortcut(_translate("add_sub", "Ctrl+M"))
self.acti_nextsong.setText(_translate("add_sub", "下一首"))
self.acti_nextsong.setShortcut(_translate("add_sub", "Ctrl+N"))
self.actmultab.setText(_translate("add_sub", "乘法表"))
self.actshushi.setText(_translate("add_sub", "竖式"))
import ico_rc
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Python
1
https://gitee.com/cij/yumath-v3.git
[email protected]:cij/yumath-v3.git
cij
yumath-v3
yumathV3
master

搜索帮助