Skip to content

Commit

Permalink
optimize ui
Browse files Browse the repository at this point in the history
  • Loading branch information
Javacr committed Dec 4, 2022
1 parent 7f0f840 commit 0d0394e
Show file tree
Hide file tree
Showing 2 changed files with 291 additions and 57 deletions.
93 changes: 71 additions & 22 deletions main_win/win.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# Form implementation generated from reading ui file 'win.ui'
#
# Created by: PyQt5 UI code generator 5.15.2
# 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.
Expand Down Expand Up @@ -157,18 +157,20 @@ def setupUi(self, mainWindow):
self.groupBox_8.setTitle("")
self.groupBox_8.setObjectName("groupBox_8")
self.verticalLayout_8 = QtWidgets.QVBoxLayout(self.groupBox_8)
self.verticalLayout_8.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_8.setSpacing(11)
self.verticalLayout_8.setObjectName("verticalLayout_8")
self.groupBox_2 = QtWidgets.QGroupBox(self.groupBox_8)
self.groupBox_2.setMinimumSize(QtCore.QSize(0, 42))
self.groupBox_2.setMaximumSize(QtCore.QSize(16777215, 42))
self.groupBox_2.setStyleSheet("#groupBox_2{\n"
"border: 0px solid #42adff;\n"
"border-bottom: 1px solid rgba(200, 200, 200,100);\n"
"border-radius:0px;}")
self.groupBox_2.setTitle("")
self.groupBox_2.setObjectName("groupBox_2")
self.horizontalLayout_35 = QtWidgets.QHBoxLayout(self.groupBox_2)
self.horizontalLayout_35.setContentsMargins(2, 0, 0, 0)
self.horizontalLayout_35.setContentsMargins(11, 0, 11, 0)
self.horizontalLayout_35.setObjectName("horizontalLayout_35")
self.label_5 = QtWidgets.QLabel(self.groupBox_2)
self.label_5.setMinimumSize(QtCore.QSize(0, 0))
Expand All @@ -186,14 +188,14 @@ def setupUi(self, mainWindow):
"")
self.label_5.setObjectName("label_5")
self.horizontalLayout_35.addWidget(self.label_5)
spacerItem1 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
spacerItem1 = QtWidgets.QSpacerItem(37, 39, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_35.addItem(spacerItem1)
self.verticalLayout_8.addWidget(self.groupBox_2)
self.horizontalLayout_2 = QtWidgets.QHBoxLayout()
self.horizontalLayout_2.setContentsMargins(-1, -1, 7, -1)
self.horizontalLayout_2.setContentsMargins(11, -1, 11, -1)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.label_3 = QtWidgets.QLabel(self.groupBox_8)
self.label_3.setMinimumSize(QtCore.QSize(0, 35))
self.label_3.setMinimumSize(QtCore.QSize(0, 28))
self.label_3.setMaximumSize(QtCore.QSize(80, 16777215))
self.label_3.setStyleSheet("QLabel\n"
"{\n"
Expand All @@ -208,7 +210,7 @@ def setupUi(self, mainWindow):
self.label_3.setObjectName("label_3")
self.horizontalLayout_2.addWidget(self.label_3)
self.comboBox = QtWidgets.QComboBox(self.groupBox_8)
self.comboBox.setMinimumSize(QtCore.QSize(0, 35))
self.comboBox.setMinimumSize(QtCore.QSize(0, 28))
self.comboBox.setStyleSheet("QComboBox QAbstractItemView {\n"
"font-family: \"Microsoft YaHei\";\n"
"font-size: 16px;\n"
Expand Down Expand Up @@ -241,6 +243,7 @@ def setupUi(self, mainWindow):
self.horizontalLayout_2.addWidget(self.comboBox)
self.verticalLayout_8.addLayout(self.horizontalLayout_2)
self.horizontalLayout_9 = QtWidgets.QHBoxLayout()
self.horizontalLayout_9.setContentsMargins(11, -1, 0, -1)
self.horizontalLayout_9.setObjectName("horizontalLayout_9")
self.label_10 = QtWidgets.QLabel(self.groupBox_8)
self.label_10.setMaximumSize(QtCore.QSize(80, 16777215))
Expand Down Expand Up @@ -454,6 +457,7 @@ def setupUi(self, mainWindow):
self.horizontalLayout_9.addLayout(self.horizontalLayout_11)
self.verticalLayout_8.addLayout(self.horizontalLayout_9)
self.verticalLayout_3 = QtWidgets.QVBoxLayout()
self.verticalLayout_3.setContentsMargins(11, -1, 11, -1)
self.verticalLayout_3.setSpacing(4)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.label_2 = QtWidgets.QLabel(self.groupBox_8)
Expand Down Expand Up @@ -536,6 +540,7 @@ def setupUi(self, mainWindow):
self.verticalLayout_3.addLayout(self.horizontalLayout_4)
self.verticalLayout_8.addLayout(self.verticalLayout_3)
self.verticalLayout = QtWidgets.QVBoxLayout()
self.verticalLayout.setContentsMargins(11, -1, 11, -1)
self.verticalLayout.setSpacing(4)
self.verticalLayout.setObjectName("verticalLayout")
self.label = QtWidgets.QLabel(self.groupBox_8)
Expand Down Expand Up @@ -620,6 +625,7 @@ def setupUi(self, mainWindow):
self.verticalLayout.addLayout(self.horizontalLayout_3)
self.verticalLayout_8.addLayout(self.verticalLayout)
self.verticalLayout_5 = QtWidgets.QVBoxLayout()
self.verticalLayout_5.setContentsMargins(11, -1, 11, -1)
self.verticalLayout_5.setSpacing(4)
self.verticalLayout_5.setObjectName("verticalLayout_5")
self.horizontalLayout_14 = QtWidgets.QHBoxLayout()
Expand Down Expand Up @@ -737,10 +743,21 @@ def setupUi(self, mainWindow):
self.horizontalLayout_13.addWidget(self.rateSlider)
self.verticalLayout_5.addLayout(self.horizontalLayout_13)
self.verticalLayout_8.addLayout(self.verticalLayout_5)
self.saveCheckBox = QtWidgets.QCheckBox(self.groupBox_8)
self.groupBox_6 = QtWidgets.QGroupBox(self.groupBox_8)
self.groupBox_6.setMinimumSize(QtCore.QSize(0, 0))
self.groupBox_6.setMaximumSize(QtCore.QSize(16777215, 42))
self.groupBox_6.setStyleSheet("#groupBox_6{\n"
"border: 0px solid #42adff;\n"
"border-radius:0px;}")
self.groupBox_6.setTitle("")
self.groupBox_6.setObjectName("groupBox_6")
self.horizontalLayout_36 = QtWidgets.QHBoxLayout(self.groupBox_6)
self.horizontalLayout_36.setContentsMargins(11, 0, 11, 0)
self.horizontalLayout_36.setObjectName("horizontalLayout_36")
self.saveCheckBox = QtWidgets.QCheckBox(self.groupBox_6)
self.saveCheckBox.setStyleSheet("\n"
"QCheckBox\n"
"{font-size: 16px;\n"
"{font-size: 18px;\n"
" font-family: \"Microsoft YaHei\";\n"
" font-weight: bold;\n"
" border-radius:9px;\n"
Expand All @@ -762,13 +779,28 @@ def setupUi(self, mainWindow):
"")
self.saveCheckBox.setChecked(True)
self.saveCheckBox.setObjectName("saveCheckBox")
self.verticalLayout_8.addWidget(self.saveCheckBox)
self.horizontalLayout_36.addWidget(self.saveCheckBox)
self.verticalLayout_8.addWidget(self.groupBox_6)
self.verticalLayout_7 = QtWidgets.QVBoxLayout()
self.verticalLayout_7.setContentsMargins(-1, 0, -1, 0)
self.verticalLayout_7.setObjectName("verticalLayout_7")
self.label_11 = QtWidgets.QLabel(self.groupBox_8)
self.groupBox_9 = QtWidgets.QGroupBox(self.groupBox_8)
self.groupBox_9.setMinimumSize(QtCore.QSize(0, 42))
self.groupBox_9.setMaximumSize(QtCore.QSize(16777215, 42))
self.groupBox_9.setStyleSheet("#groupBox_9{\n"
"border: 0px solid #42adff;\n"
"border-top: 1px solid rgba(200, 200, 200,100);\n"
"border-bottom: 1px solid rgba(200, 200, 200,100);\n"
"border-radius:0px;}")
self.groupBox_9.setTitle("")
self.groupBox_9.setObjectName("groupBox_9")
self.horizontalLayout_38 = QtWidgets.QHBoxLayout(self.groupBox_9)
self.horizontalLayout_38.setContentsMargins(11, 0, 11, 0)
self.horizontalLayout_38.setObjectName("horizontalLayout_38")
self.label_11 = QtWidgets.QLabel(self.groupBox_9)
self.label_11.setStyleSheet("QLabel\n"
"{\n"
" font-size: 18px;\n"
" font-size: 22px;\n"
" font-family: \"Microsoft YaHei\";\n"
" font-weight: bold;\n"
" border-radius:9px;\n"
Expand All @@ -777,20 +809,36 @@ def setupUi(self, mainWindow):
"}\n"
"")
self.label_11.setObjectName("label_11")
self.verticalLayout_7.addWidget(self.label_11)
self.resultWidget = QtWidgets.QListWidget(self.groupBox_8)
self.horizontalLayout_38.addWidget(self.label_11)
spacerItem2 = QtWidgets.QSpacerItem(37, 39, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_38.addItem(spacerItem2)
self.verticalLayout_7.addWidget(self.groupBox_9)
self.groupBox_10 = QtWidgets.QGroupBox(self.groupBox_8)
self.groupBox_10.setMinimumSize(QtCore.QSize(0, 42))
self.groupBox_10.setMaximumSize(QtCore.QSize(16777215, 16777215))
self.groupBox_10.setStyleSheet("#groupBox_10{\n"
"border: 0px solid #42adff;\n"
"\n"
"border-radius:0px;}")
self.groupBox_10.setTitle("")
self.groupBox_10.setObjectName("groupBox_10")
self.horizontalLayout_39 = QtWidgets.QHBoxLayout(self.groupBox_10)
self.horizontalLayout_39.setContentsMargins(11, 0, 11, 0)
self.horizontalLayout_39.setObjectName("horizontalLayout_39")
self.resultWidget = QtWidgets.QListWidget(self.groupBox_10)
self.resultWidget.setStyleSheet("QListWidget{\n"
"background-color: rgba(12, 28, 77, 0);\n"
"border: 1px solid rgba(200, 200, 200,100);\n"
"border-bottom: 0px solid rgba(200, 200, 200,100);\n"
"\n"
"border-radius:0px;\n"
"font-family: \"Microsoft YaHei\";\n"
"font-size: 16px;\n"
"color: rgb(218, 218, 218);\n"
"}\n"
"")
self.resultWidget.setObjectName("resultWidget")
self.verticalLayout_7.addWidget(self.resultWidget)
self.horizontalLayout_39.addWidget(self.resultWidget)
self.verticalLayout_7.addWidget(self.groupBox_10)
self.verticalLayout_7.setStretch(1, 1)
self.verticalLayout_8.addLayout(self.verticalLayout_7)
self.horizontalLayout_7.addWidget(self.groupBox_8)
self.groupBox_201 = QtWidgets.QGroupBox(self.groupBox_18)
Expand All @@ -803,18 +851,19 @@ def setupUi(self, mainWindow):
self.groupBox_201.setTitle("")
self.groupBox_201.setObjectName("groupBox_201")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.groupBox_201)
self.verticalLayout_4.setContentsMargins(-1, 0, -1, 0)
self.verticalLayout_4.setContentsMargins(0, 0, 0, 0)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.groupBox_3 = QtWidgets.QGroupBox(self.groupBox_201)
self.groupBox_3.setMinimumSize(QtCore.QSize(0, 42))
self.groupBox_3.setMaximumSize(QtCore.QSize(16777215, 42))
self.groupBox_3.setStyleSheet("#groupBox_3{\n"
"border: 0px solid #42adff;\n"
"border-bottom: 1px solid rgba(200, 200, 200,100);\n"
"border-radius:0px;}")
self.groupBox_3.setTitle("")
self.groupBox_3.setObjectName("groupBox_3")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.groupBox_3)
self.horizontalLayout_6.setContentsMargins(0, 0, 0, 0)
self.horizontalLayout_6.setContentsMargins(11, 0, 11, 0)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.label_6 = QtWidgets.QLabel(self.groupBox_3)
self.label_6.setMinimumSize(QtCore.QSize(0, 0))
Expand All @@ -831,8 +880,8 @@ def setupUi(self, mainWindow):
"")
self.label_6.setObjectName("label_6")
self.horizontalLayout_6.addWidget(self.label_6)
spacerItem2 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_6.addItem(spacerItem2)
spacerItem3 = QtWidgets.QSpacerItem(40, 20, QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Minimum)
self.horizontalLayout_6.addItem(spacerItem3)
self.fps_label = QtWidgets.QLabel(self.groupBox_3)
self.fps_label.setMinimumSize(QtCore.QSize(100, 40))
self.fps_label.setMaximumSize(QtCore.QSize(100, 40))
Expand Down Expand Up @@ -899,7 +948,7 @@ def setupUi(self, mainWindow):
self.out_video.setObjectName("out_video")
self.verticalLayout_4.addWidget(self.splitter)
self.horizontalLayout_12 = QtWidgets.QHBoxLayout()
self.horizontalLayout_12.setContentsMargins(-1, -1, 0, -1)
self.horizontalLayout_12.setContentsMargins(11, -1, 11, -1)
self.horizontalLayout_12.setObjectName("horizontalLayout_12")
self.runButton = QtWidgets.QPushButton(self.groupBox_201)
self.runButton.setMinimumSize(QtCore.QSize(40, 40))
Expand Down Expand Up @@ -1022,6 +1071,6 @@ def retranslateUi(self, mainWindow):
self.checkBox.setText(_translate("mainWindow", "enable"))
self.saveCheckBox.setText(_translate("mainWindow", "save automatically"))
self.label_11.setText(_translate("mainWindow", "result statistics"))
self.label_6.setText(_translate("mainWindow", "video"))
self.label_6.setText(_translate("mainWindow", "view"))
from MouseLabel import Label_click_Mouse
import apprcc_rc
Loading

0 comments on commit 0d0394e

Please sign in to comment.