-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgui2.py
81 lines (73 loc) · 3.98 KB
/
gui2.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
# Form implementation generated from reading ui file '.\mousemenu.ui'
#
# Created by: PyQt6 UI code generator 6.7.0
#
# WARNING: Any manual changes made to this file will be lost when pyuic6 is
# run again. Do not edit this file unless you know what you are doing.
from PyQt6 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(1108, 796)
MainWindow.setStyleSheet("background-color: rgb(50, 50, 50);")
self.centralwidget = QtWidgets.QWidget(parent=MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.gridLayout = QtWidgets.QGridLayout(self.centralwidget)
self.gridLayout.setObjectName("gridLayout")
self.image_label = QtWidgets.QLabel(parent=self.centralwidget)
font = QtGui.QFont()
font.setFamily("Yu Gothic UI Semilight")
font.setPointSize(28)
self.image_label.setFont(font)
self.image_label.setStyleSheet("color: rgb(255, 255, 255);")
self.image_label.setAlignment(QtCore.Qt.AlignmentFlag.AlignLeading|QtCore.Qt.AlignmentFlag.AlignLeft|QtCore.Qt.AlignmentFlag.AlignTop)
self.image_label.setObjectName("image_label")
self.gridLayout.addWidget(self.image_label, 0, 0, 1, 1)
self.horizontalLayout = QtWidgets.QHBoxLayout()
self.horizontalLayout.setObjectName("horizontalLayout")
self.label_2 = QtWidgets.QLabel(parent=self.centralwidget)
self.label_2.setStyleSheet("color: rgb(255, 255, 255);")
self.label_2.setObjectName("label_2")
self.horizontalLayout.addWidget(self.label_2)
self.MouseCamButton = QtWidgets.QPushButton(parent=self.centralwidget)
self.MouseCamButton.setStyleSheet("color: rgb(255, 255, 255);\n"
"selection-background-color: rgb(196, 215, 255);")
self.MouseCamButton.setCheckable(True)
self.MouseCamButton.setObjectName("MouseCamButton")
self.horizontalLayout.addWidget(self.MouseCamButton)
self.label = QtWidgets.QLabel(parent=self.centralwidget)
self.label.setStyleSheet("color: rgb(255, 255, 255);")
self.label.setFrameShape(QtWidgets.QFrame.Shape.NoFrame)
self.label.setAlignment(QtCore.Qt.AlignmentFlag.AlignRight|QtCore.Qt.AlignmentFlag.AlignTrailing|QtCore.Qt.AlignmentFlag.AlignVCenter)
self.label.setObjectName("label")
self.horizontalLayout.addWidget(self.label)
self.CameraBox = QtWidgets.QSpinBox(parent=self.centralwidget)
self.CameraBox.setStyleSheet("background-color: rgb(255, 255, 255);")
self.CameraBox.setObjectName("CameraBox")
self.horizontalLayout.addWidget(self.CameraBox)
self.gridLayout.addLayout(self.horizontalLayout, 2, 0, 1, 1)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(parent=MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1108, 22))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(parent=MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "MainWindow"))
self.image_label.setText(_translate("MainWindow", "Video Loading..."))
self.label_2.setText(_translate("MainWindow", "🔴Status: Detection: Camera Feed Not Available 😨"))
self.MouseCamButton.setText(_translate("MainWindow", "MouseCam is (OFF) ❌"))
self.label.setText(_translate("MainWindow", "Camera:"))
if __name__ == "__main__":
import sys
app = QtWidgets.QApplication(sys.argv)
MainWindow = QtWidgets.QMainWindow()
ui = Ui_MainWindow()
ui.setupUi(MainWindow)
MainWindow.show()
sys.exit(app.exec())