-
Notifications
You must be signed in to change notification settings - Fork 0
/
UI_TPLINK.py
89 lines (82 loc) · 4.55 KB
/
UI_TPLINK.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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'TPLINK.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_TPLINK(object):
def setupUi(self, TPLINK):
TPLINK.setObjectName("TPLINK")
TPLINK.resize(1125, 622)
self.layoutWidget = QtWidgets.QWidget(TPLINK)
self.layoutWidget.setGeometry(QtCore.QRect(840, 0, 271, 621))
self.layoutWidget.setObjectName("layoutWidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget)
self.verticalLayout.setContentsMargins(0, 0, 0, 0)
self.verticalLayout.setObjectName("verticalLayout")
self.gridLayout = QtWidgets.QGridLayout()
self.gridLayout.setObjectName("gridLayout")
self.downBtn = QtWidgets.QPushButton(self.layoutWidget)
self.downBtn.setObjectName("downBtn")
self.gridLayout.addWidget(self.downBtn, 2, 1, 1, 1)
spacerItem = QtWidgets.QSpacerItem(20, 40, QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Fixed)
self.gridLayout.addItem(spacerItem, 1, 1, 1, 1)
self.upBtn = QtWidgets.QPushButton(self.layoutWidget)
self.upBtn.setObjectName("upBtn")
self.gridLayout.addWidget(self.upBtn, 0, 1, 1, 1)
self.rightBtn = QtWidgets.QPushButton(self.layoutWidget)
self.rightBtn.setObjectName("rightBtn")
self.gridLayout.addWidget(self.rightBtn, 1, 2, 1, 1)
self.leftBtn = QtWidgets.QPushButton(self.layoutWidget)
self.leftBtn.setObjectName("leftBtn")
self.gridLayout.addWidget(self.leftBtn, 1, 0, 1, 1)
self.verticalLayout.addLayout(self.gridLayout)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.startBtn = QtWidgets.QPushButton(self.layoutWidget)
self.startBtn.setObjectName("startBtn")
self.horizontalLayout.addWidget(self.startBtn)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout.addItem(spacerItem1)
self.closeBtn = QtWidgets.QPushButton(self.layoutWidget)
self.closeBtn.setObjectName("closeBtn")
self.horizontalLayout.addWidget(self.closeBtn)
self.verticalLayout.addLayout(self.horizontalLayout)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.snapshotBtn = QtWidgets.QPushButton(self.layoutWidget)
self.snapshotBtn.setObjectName("snapshotBtn")
self.horizontalLayout_2.addWidget(self.snapshotBtn)
self.startRecordBtn = QtWidgets.QPushButton(self.layoutWidget)
self.startRecordBtn.setObjectName("startRecordBtn")
self.horizontalLayout_2.addWidget(self.startRecordBtn)
self.stopRecordBtn = QtWidgets.QPushButton(self.layoutWidget)
self.stopRecordBtn.setObjectName("stopRecordBtn")
self.horizontalLayout_2.addWidget(self.stopRecordBtn)
self.verticalLayout.addLayout(self.horizontalLayout_2)
self.player = QtWidgets.QLabel(TPLINK)
self.player.setGeometry(QtCore.QRect(10, 10, 800, 601))
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.MinimumExpanding, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.player.sizePolicy().hasHeightForWidth())
self.player.setSizePolicy(sizePolicy)
self.player.setMinimumSize(QtCore.QSize(800, 400))
self.player.setText("")
self.player.setObjectName("player")
self.retranslateUi(TPLINK)
QtCore.QMetaObject.connectSlotsByName(TPLINK)
def retranslateUi(self, TPLINK):
_translate = QtCore.QCoreApplication.translate
TPLINK.setWindowTitle(_translate("TPLINK", "TP-LINK"))
self.downBtn.setText(_translate("TPLINK", "下"))
self.upBtn.setText(_translate("TPLINK", "上"))
self.rightBtn.setText(_translate("TPLINK", "右"))
self.leftBtn.setText(_translate("TPLINK", "左"))
self.startBtn.setText(_translate("TPLINK", "开启"))
self.closeBtn.setText(_translate("TPLINK", "关闭"))
self.snapshotBtn.setText(_translate("TPLINK", "截屏"))
self.startRecordBtn.setText(_translate("TPLINK", "开始录制"))
self.stopRecordBtn.setText(_translate("TPLINK", "停止录制"))