-
Notifications
You must be signed in to change notification settings - Fork 6
/
MainWindow.py
113 lines (106 loc) · 5.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'MainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.15.4
#
# 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(800, 600)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.layoutWidget = QtWidgets.QWidget(self.centralwidget)
self.layoutWidget.setGeometry(QtCore.QRect(21, 11, 131, 551))
self.layoutWidget.setObjectName("layoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.pushButton_1 = QtWidgets.QPushButton(self.layoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(20)
sizePolicy.setVerticalStretch(20)
sizePolicy.setHeightForWidth(self.pushButton_1.sizePolicy().hasHeightForWidth())
self.pushButton_1.setSizePolicy(sizePolicy)
self.pushButton_1.setSizeIncrement(QtCore.QSize(20, 20))
self.pushButton_1.setBaseSize(QtCore.QSize(20, 20))
font = QtGui.QFont()
font.setPointSize(10)
self.pushButton_1.setFont(font)
self.pushButton_1.setObjectName("pushButton_1")
self.verticalLayout.addWidget(self.pushButton_1)
self.pushButton_2 = QtWidgets.QPushButton(self.layoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(20)
sizePolicy.setVerticalStretch(20)
sizePolicy.setHeightForWidth(self.pushButton_2.sizePolicy().hasHeightForWidth())
self.pushButton_2.setSizePolicy(sizePolicy)
self.pushButton_2.setSizeIncrement(QtCore.QSize(20, 20))
self.pushButton_2.setBaseSize(QtCore.QSize(20, 20))
font = QtGui.QFont()
font.setPointSize(10)
self.pushButton_2.setFont(font)
self.pushButton_2.setObjectName("pushButton_2")
self.verticalLayout.addWidget(self.pushButton_2)
self.pushButton_3 = QtWidgets.QPushButton(self.layoutWidget)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(20)
sizePolicy.setVerticalStretch(20)
sizePolicy.setHeightForWidth(self.pushButton_3.sizePolicy().hasHeightForWidth())
self.pushButton_3.setSizePolicy(sizePolicy)
self.pushButton_3.setSizeIncrement(QtCore.QSize(20, 20))
self.pushButton_3.setBaseSize(QtCore.QSize(20, 20))
font = QtGui.QFont()
font.setPointSize(10)
self.pushButton_3.setFont(font)
self.pushButton_3.setObjectName("pushButton_3")
self.verticalLayout.addWidget(self.pushButton_3)
self.pushButton = QtWidgets.QPushButton(self.layoutWidget)
self.pushButton.setObjectName("pushButton")
self.verticalLayout.addWidget(self.pushButton)
self.label = QtWidgets.QLabel(self.centralwidget)
self.label.setGeometry(QtCore.QRect(160, 10, 621, 511))
self.label.setObjectName("label")
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.action_16 = QtWidgets.QAction(MainWindow)
self.action_16.setObjectName("action_16")
self.actiona = QtWidgets.QAction(MainWindow)
self.actiona.setObjectName("actiona")
self.actiona_2 = QtWidgets.QAction(MainWindow)
self.actiona_2.setObjectName("actiona_2")
self.actionb = QtWidgets.QAction(MainWindow)
self.actionb.setObjectName("actionb")
self.actiona_3 = QtWidgets.QAction(MainWindow)
self.actiona_3.setObjectName("actiona_3")
self.actiona_4 = QtWidgets.QAction(MainWindow)
self.actiona_4.setObjectName("actiona_4")
self.actionb_2 = QtWidgets.QAction(MainWindow)
self.actionb_2.setObjectName("actionb_2")
self.actiona_5 = QtWidgets.QAction(MainWindow)
self.actiona_5.setObjectName("actiona_5")
self.actionb_3 = QtWidgets.QAction(MainWindow)
self.actionb_3.setObjectName("actionb_3")
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.pushButton_1.setText(_translate("MainWindow", "图片检测"))
self.pushButton_2.setText(_translate("MainWindow", "视频检测"))
self.pushButton_3.setText(_translate("MainWindow", "实时监控"))
self.pushButton.setText(_translate("MainWindow", "统计时段"))
self.label.setText(_translate("MainWindow", "检测中..."))
self.action_16.setText(_translate("MainWindow", "按天统计"))
self.actiona.setText(_translate("MainWindow", "a"))
self.actiona_2.setText(_translate("MainWindow", "按月统计"))
self.actionb.setText(_translate("MainWindow", "按年统计"))
self.actiona_3.setText(_translate("MainWindow", "a"))
self.actiona_4.setText(_translate("MainWindow", "实时"))
self.actionb_2.setText(_translate("MainWindow", "打开文件"))
self.actiona_5.setText(_translate("MainWindow", "暂停"))
self.actionb_3.setText(_translate("MainWindow", "全屏"))