-
Notifications
You must be signed in to change notification settings - Fork 0
/
mainwindow.py
147 lines (140 loc) · 7.79 KB
/
mainwindow.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'mainwindow.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_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(872, 637)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.label_4 = QtWidgets.QLabel(self.centralwidget)
self.label_4.setGeometry(QtCore.QRect(13, 41, 111, 111))
self.label_4.setObjectName("label_4")
self.widget = QtWidgets.QWidget(self.centralwidget)
self.widget.setGeometry(QtCore.QRect(11, 11, 906, 604))
self.widget.setObjectName("widget")
self.gridLayout = QtWidgets.QGridLayout(self.widget)
self.gridLayout.setContentsMargins(0, 0, 0, 0)
self.gridLayout.setObjectName("gridLayout")
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
spacerItem = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem)
self.timeEdit = QtWidgets.QTimeEdit(self.widget)
self.timeEdit.setReadOnly(True)
self.timeEdit.setObjectName("timeEdit")
self.horizontalLayout.addWidget(self.timeEdit)
self.dateEdit = QtWidgets.QDateEdit(self.widget)
self.dateEdit.setReadOnly(True)
self.dateEdit.setObjectName("dateEdit")
self.horizontalLayout.addWidget(self.dateEdit)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.gridLayout.addLayout(self.horizontalLayout, 0, 0, 1, 1)
self.label = QtWidgets.QLabel(self.widget)
self.label.setMinimumSize(QtCore.QSize(640, 480))
self.label.setSizeIncrement(QtCore.QSize(640, 480))
self.label.setLineWidth(0)
self.label.setText("")
self.label.setObjectName("label")
self.gridLayout.addWidget(self.label, 1, 0, 1, 1)
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setObjectName("verticalLayout")
spacerItem2 = QtWidgets.QSpacerItem(17, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem2)
self.label_2 = QtWidgets.QLabel(self.widget)
self.label_2.setObjectName("label_2")
self.verticalLayout.addWidget(self.label_2)
self.plainTextEdit = QtWidgets.QPlainTextEdit(self.widget)
self.plainTextEdit.setMinimumSize(QtCore.QSize(200, 0))
self.plainTextEdit.setSizeIncrement(QtCore.QSize(200, 0))
self.plainTextEdit.setReadOnly(True)
self.plainTextEdit.setObjectName("plainTextEdit")
self.verticalLayout.addWidget(self.plainTextEdit)
self.label_3 = QtWidgets.QLabel(self.widget)
self.label_3.setObjectName("label_3")
self.verticalLayout.addWidget(self.label_3)
self.plainTextEdit_2 = QtWidgets.QPlainTextEdit(self.widget)
self.plainTextEdit_2.setMinimumSize(QtCore.QSize(0, 300))
self.plainTextEdit_2.setSizeIncrement(QtCore.QSize(200, 0))
self.plainTextEdit_2.setReadOnly(True)
self.plainTextEdit_2.setObjectName("plainTextEdit_2")
self.verticalLayout.addWidget(self.plainTextEdit_2)
spacerItem3 = QtWidgets.QSpacerItem(17, 13, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Expanding)
self.verticalLayout.addItem(spacerItem3)
self.gridLayout.addLayout(self.verticalLayout, 1, 1, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 872, 22))
self.menubar.setObjectName("menubar")
self.menu = QtWidgets.QMenu(self.menubar)
self.menu.setObjectName("menu")
self.menu_3 = QtWidgets.QMenu(self.menubar)
self.menu_3.setObjectName("menu_3")
self.menu_4 = QtWidgets.QMenu(self.menubar)
self.menu_4.setObjectName("menu_4")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.actionopen = QtWidgets.QAction(MainWindow)
self.actionopen.setObjectName("actionopen")
self.actionclose = QtWidgets.QAction(MainWindow)
self.actionclose.setObjectName("actionclose")
self.actionadd = QtWidgets.QAction(MainWindow)
self.actionadd.setObjectName("actionadd")
self.actiondel = QtWidgets.QAction(MainWindow)
self.actiondel.setObjectName("actiondel")
self.actionsave = QtWidgets.QAction(MainWindow)
self.actionsave.setObjectName("actionsave")
self.actiond = QtWidgets.QAction(MainWindow)
self.actiond.setObjectName("actiond")
self.actionaddgroup = QtWidgets.QAction(MainWindow)
self.actionaddgroup.setObjectName("actionaddgroup")
self.actiondelgroup = QtWidgets.QAction(MainWindow)
self.actiondelgroup.setObjectName("actiondelgroup")
self.actiongetlist = QtWidgets.QAction(MainWindow)
self.actiongetlist.setObjectName("actiongetlist")
self.actionadduser = QtWidgets.QAction(MainWindow)
self.actionadduser.setObjectName("actionadduser")
self.actiondeluser = QtWidgets.QAction(MainWindow)
self.actiondeluser.setObjectName("actiondeluser")
self.menu.addSeparator()
self.menu.addAction(self.actionopen)
self.menu.addAction(self.actionclose)
self.menu_3.addAction(self.actionsave)
self.menu_4.addAction(self.actionaddgroup)
self.menu_4.addAction(self.actiongetlist)
self.menu_4.addAction(self.actiondelgroup)
self.menu_4.addAction(self.actionadduser)
self.menu_4.addAction(self.actiondeluser)
self.menubar.addAction(self.menu.menuAction())
self.menubar.addAction(self.menu_4.menuAction())
self.menubar.addAction(self.menu_3.menuAction())
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.label_4.setText(_translate("MainWindow", "TextLabel"))
self.label_2.setText(_translate("MainWindow", "学生签到情况"))
self.label_3.setText(_translate("MainWindow", "学生人脸信息"))
self.menu.setTitle(_translate("MainWindow", "签到"))
self.menu_3.setTitle(_translate("MainWindow", "签到信息"))
self.menu_4.setTitle(_translate("MainWindow", "人脸库管理"))
self.actionopen.setText(_translate("MainWindow", "开始签到"))
self.actionclose.setText(_translate("MainWindow", "退出签到"))
self.actionadd.setText(_translate("MainWindow", "添加学生"))
self.actiondel.setText(_translate("MainWindow", "删除学生"))
self.actionsave.setText(_translate("MainWindow", "学生签到成功信息"))
self.actiond.setText(_translate("MainWindow", "导出学生签到信息"))
self.actionaddgroup.setText(_translate("MainWindow", "添加班级"))
self.actiondelgroup.setText(_translate("MainWindow", "删除班级"))
self.actiongetlist.setText(_translate("MainWindow", "查询用班级"))
self.actionadduser.setText(_translate("MainWindow", "添加学生"))
self.actiondeluser.setText(_translate("MainWindow", "查看学生"))