This repository has been archived by the owner on May 10, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmainwindow.py
135 lines (126 loc) · 6.72 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
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'UiFiles/mainWindow.ui'
#
# Created by: PyQt5 UI code generator 5.13.2
#
# WARNING! All changes made in this file will be lost!
from PyQt5 import QtCore, QtGui, QtWidgets
class Ui_MainWindow(object):
def setupUi(self, MainWindow):
MainWindow.setObjectName("MainWindow")
MainWindow.resize(881, 653)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
MainWindow.setStyleSheet("")
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setStyleSheet("")
self.centralwidget.setObjectName("centralwidget")
self.verticalLayout = QtWidgets.QVBoxLayout(self.centralwidget)
self.verticalLayout.setObjectName("verticalLayout")
self.connectionBar = connectionBar(self.centralwidget)
self.connectionBar.setMinimumSize(QtCore.QSize(863, 0))
self.connectionBar.setObjectName("connectionBar")
self.verticalLayout.addWidget(self.connectionBar)
self.tabs = QtWidgets.QTabWidget(self.centralwidget)
self.tabs.setAutoFillBackground(False)
self.tabs.setStyleSheet("")
self.tabs.setTabShape(QtWidgets.QTabWidget.Rounded)
self.tabs.setObjectName("tabs")
self.test = QtWidgets.QWidget()
self.test.setObjectName("test")
self.horizontalLayout = QtWidgets.QHBoxLayout(self.test)
self.horizontalLayout.setObjectName("horizontalLayout")
self.dataBox = QtWidgets.QFrame(self.test)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Minimum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.dataBox.sizePolicy().hasHeightForWidth())
self.dataBox.setSizePolicy(sizePolicy)
self.dataBox.setMaximumSize(QtCore.QSize(200, 534))
self.dataBox.setFrameShape(QtWidgets.QFrame.NoFrame)
self.dataBox.setFrameShadow(QtWidgets.QFrame.Raised)
self.dataBox.setObjectName("dataBox")
self.verticalLayout_2 = QtWidgets.QVBoxLayout(self.dataBox)
self.verticalLayout_2.setObjectName("verticalLayout_2")
self.engineData = QtWidgets.QWidget(self.dataBox)
self.engineData.setObjectName("engineData")
self.horizontalLayout_3 = QtWidgets.QHBoxLayout(self.engineData)
self.horizontalLayout_3.setObjectName("horizontalLayout_3")
self.verticalLayout_2.addWidget(self.engineData)
self.boatData = QtWidgets.QWidget(self.dataBox)
self.boatData.setObjectName("boatData")
self.horizontalLayout_4 = QtWidgets.QHBoxLayout(self.boatData)
self.horizontalLayout_4.setObjectName("horizontalLayout_4")
self.verticalLayout_2.addWidget(self.boatData)
self.horizontalLayout.addWidget(self.dataBox)
self.cameraContainer = QtWidgets.QWidget(self.test)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Minimum, QtWidgets.QSizePolicy.Preferred)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(self.cameraContainer.sizePolicy().hasHeightForWidth())
self.cameraContainer.setSizePolicy(sizePolicy)
self.cameraContainer.setObjectName("cameraContainer")
self.horizontalLayout_2 = QtWidgets.QHBoxLayout(self.cameraContainer)
self.horizontalLayout_2.setObjectName("horizontalLayout_2")
self.horizontalLayout.addWidget(self.cameraContainer)
self.tabs.addTab(self.test, "")
self.PID = QtWidgets.QWidget()
self.PID.setObjectName("PID")
self.horizontalLayout_5 = QtWidgets.QHBoxLayout(self.PID)
self.horizontalLayout_5.setObjectName("horizontalLayout_5")
self.pidDataBox = QtWidgets.QFrame(self.PID)
self.pidDataBox.setFrameShape(QtWidgets.QFrame.StyledPanel)
self.pidDataBox.setFrameShadow(QtWidgets.QFrame.Raised)
self.pidDataBox.setObjectName("pidDataBox")
self.verticalLayout_3 = QtWidgets.QVBoxLayout(self.pidDataBox)
self.verticalLayout_3.setObjectName("verticalLayout_3")
self.pidSetup = QtWidgets.QWidget(self.pidDataBox)
self.pidSetup.setObjectName("pidSetup")
self.verticalLayout_4 = QtWidgets.QVBoxLayout(self.pidSetup)
self.verticalLayout_4.setObjectName("verticalLayout_4")
self.verticalLayout_3.addWidget(self.pidSetup)
self.pidBoatData = QtWidgets.QWidget(self.pidDataBox)
self.pidBoatData.setObjectName("pidBoatData")
self.horizontalLayout_7 = QtWidgets.QHBoxLayout(self.pidBoatData)
self.horizontalLayout_7.setObjectName("horizontalLayout_7")
self.verticalLayout_3.addWidget(self.pidBoatData)
self.horizontalLayout_5.addWidget(self.pidDataBox)
self.plots = QtWidgets.QWidget(self.PID)
self.plots.setObjectName("plots")
self.horizontalLayout_6 = QtWidgets.QHBoxLayout(self.plots)
self.horizontalLayout_6.setObjectName("horizontalLayout_6")
self.horizontalLayout_5.addWidget(self.plots)
self.tabs.addTab(self.PID, "")
self.control = QtWidgets.QWidget()
self.control.setObjectName("control")
self.tabs.addTab(self.control, "")
self.verticalLayout.addWidget(self.tabs)
MainWindow.setCentralWidget(self.centralwidget)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 881, 21))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.retranslateUi(MainWindow)
self.tabs.setCurrentIndex(0)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "Okoń"))
self.tabs.setTabText(self.tabs.indexOf(self.test), _translate("MainWindow", "Test"))
self.tabs.setTabText(self.tabs.indexOf(self.PID), _translate("MainWindow", "PID"))
self.tabs.setTabText(self.tabs.indexOf(self.control), _translate("MainWindow", "Control"))
from widgets.connectionBar import connectionBar
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_())