-
Notifications
You must be signed in to change notification settings - Fork 1
/
gui.py
156 lines (150 loc) · 6.89 KB
/
gui.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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'gui.ui'
#
# Created by: PyQt5 UI code generator 5.10.1
#
# 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(1300, 720)
sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Fixed, QtWidgets.QSizePolicy.Fixed)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(MainWindow.sizePolicy().hasHeightForWidth())
MainWindow.setSizePolicy(sizePolicy)
MainWindow.setDocumentMode(False)
self.centralwidget = QtWidgets.QWidget(MainWindow)
self.centralwidget.setObjectName("centralwidget")
self.ProgressBar = QtWidgets.QProgressBar(self.centralwidget)
self.ProgressBar.setGeometry(QtCore.QRect(1030, 110, 251, 611))
self.ProgressBar.setProperty("value", 0)
self.ProgressBar.setTextVisible(False)
self.ProgressBar.setOrientation(QtCore.Qt.Vertical)
self.ProgressBar.setInvertedAppearance(False)
self.ProgressBar.setTextDirection(QtWidgets.QProgressBar.TopToBottom)
self.ProgressBar.setObjectName("ProgressBar")
self.PumpCheckBox = QtWidgets.QCheckBox(self.centralwidget)
self.PumpCheckBox.setEnabled(True)
self.PumpCheckBox.setGeometry(QtCore.QRect(810, 480, 191, 40))
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setWeight(75)
self.PumpCheckBox.setFont(font)
self.PumpCheckBox.setObjectName("PumpCheckBox")
self.StepLabel = QtWidgets.QLabel(self.centralwidget)
self.StepLabel.setGeometry(QtCore.QRect(20, 30, 781, 501))
font = QtGui.QFont()
font.setPointSize(12)
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
self.StepLabel.setFont(font)
self.StepLabel.setObjectName("StepLabel")
self.TempUpButton = QtWidgets.QPushButton(self.centralwidget)
self.TempUpButton.setGeometry(QtCore.QRect(810, 310, 201, 70))
font = QtGui.QFont()
font.setPointSize(14)
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
self.TempUpButton.setFont(font)
self.TempUpButton.setObjectName("TempUpButton")
self.TempDownButton = QtWidgets.QPushButton(self.centralwidget)
self.TempDownButton.setGeometry(QtCore.QRect(810, 400, 201, 70))
font = QtGui.QFont()
font.setPointSize(14)
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
self.TempDownButton.setFont(font)
self.TempDownButton.setObjectName("TempDownButton")
self.PauseButton = QtWidgets.QPushButton(self.centralwidget)
self.PauseButton.setGeometry(QtCore.QRect(810, 530, 201, 100))
font = QtGui.QFont()
font.setPointSize(18)
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
self.PauseButton.setFont(font)
self.PauseButton.setObjectName("PauseButton")
self.SensorLabel = QtWidgets.QLabel(self.centralwidget)
self.SensorLabel.setGeometry(QtCore.QRect(810, 10, 461, 81))
font = QtGui.QFont()
font.setPointSize(12)
self.SensorLabel.setFont(font)
self.SensorLabel.setText("")
self.SensorLabel.setObjectName("SensorLabel")
self.TimeUpButton = QtWidgets.QPushButton(self.centralwidget)
self.TimeUpButton.setGeometry(QtCore.QRect(810, 110, 201, 70))
font = QtGui.QFont()
font.setPointSize(14)
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
self.TimeUpButton.setFont(font)
self.TimeUpButton.setObjectName("TimeUpButton")
self.TimeDownButton = QtWidgets.QPushButton(self.centralwidget)
self.TimeDownButton.setGeometry(QtCore.QRect(810, 200, 201, 70))
font = QtGui.QFont()
font.setPointSize(14)
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
font.setStrikeOut(False)
self.TimeDownButton.setFont(font)
self.TimeDownButton.setObjectName("TimeDownButton")
self.MainTempLabel = QtWidgets.QLabel(self.centralwidget)
self.MainTempLabel.setGeometry(QtCore.QRect(1040, 120, 231, 61))
font = QtGui.QFont()
font.setPointSize(20)
font.setBold(True)
font.setItalic(True)
font.setWeight(75)
self.MainTempLabel.setFont(font)
self.MainTempLabel.setAlignment(QtCore.Qt.AlignCenter)
self.MainTempLabel.setObjectName("MainTempLabel")
self.StepUpButton = QtWidgets.QPushButton(self.centralwidget)
self.StepUpButton.setGeometry(QtCore.QRect(810, 640, 81, 31))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setItalic(True)
font.setWeight(50)
self.StepUpButton.setFont(font)
self.StepUpButton.setObjectName("StepUpButton")
self.StepDownButton = QtWidgets.QPushButton(self.centralwidget)
self.StepDownButton.setGeometry(QtCore.QRect(930, 640, 81, 31))
font = QtGui.QFont()
font.setPointSize(10)
font.setBold(False)
font.setItalic(True)
font.setWeight(50)
self.StepDownButton.setFont(font)
self.StepDownButton.setObjectName("StepDownButton")
MainWindow.setCentralWidget(self.centralwidget)
self.statusbar = QtWidgets.QStatusBar(MainWindow)
self.statusbar.setObjectName("statusbar")
MainWindow.setStatusBar(self.statusbar)
self.menubar = QtWidgets.QMenuBar(MainWindow)
self.menubar.setGeometry(QtCore.QRect(0, 0, 1300, 21))
self.menubar.setObjectName("menubar")
MainWindow.setMenuBar(self.menubar)
self.retranslateUi(MainWindow)
QtCore.QMetaObject.connectSlotsByName(MainWindow)
def retranslateUi(self, MainWindow):
_translate = QtCore.QCoreApplication.translate
MainWindow.setWindowTitle(_translate("MainWindow", "BrewLinker"))
self.ProgressBar.setFormat(_translate("MainWindow", "%p"))
self.PumpCheckBox.setText(_translate("MainWindow", "Pumps"))
self.StepLabel.setText(_translate("MainWindow", "TextLabel"))
self.TempUpButton.setText(_translate("MainWindow", "↑temp up"))
self.TempDownButton.setText(_translate("MainWindow", "↓temp down"))
self.PauseButton.setText(_translate("MainWindow", "Pause"))
self.TimeUpButton.setText(_translate("MainWindow", "↑ time up"))
self.TimeDownButton.setText(_translate("MainWindow", "↓time down"))
self.MainTempLabel.setText(_translate("MainWindow", "TextLabel"))
self.StepUpButton.setText(_translate("MainWindow", "step forward"))
self.StepDownButton.setText(_translate("MainWindow", "step back"))