diff --git a/brewpi.py b/brewpi.py index 324d0ef..ac14e34 100644 --- a/brewpi.py +++ b/brewpi.py @@ -145,13 +145,16 @@ class TcTask(ATask): print ("Rate ist change to {}".format(value)) asyncio.create_task(self.send({'Ist': {'Rate': value}})) - async def recv(self, data): - print(data) - for pair in data.items(): - if 'Soll' in pair[0]: - self.tc.set_theta_soll(pair[1]) - elif 'Rate' in pair[0]: - self.tc.set_heatrate_soll(pair[1]) + async def recv(self, msg): + print(msg) + for key in msg.keys(): + if 'Soll' in key: + submsg = msg['Soll'] + for subkey in submsg.keys(): + if 'Temp' in subkey: + self.tc.set_theta_soll(submsg['Temp']) + if 'Rate' in subkey: + self.tc.set_heatrate_soll(submsg['Rate']) async def send(self, data): await self.msg_handler.send(data) diff --git a/brewpi.ui b/brewpi.ui index 3c7701a..8c2e622 100644 --- a/brewpi.ui +++ b/brewpi.ui @@ -9,8 +9,8 @@ 0 0 - 1591 - 718 + 1091 + 629 @@ -488,8 +488,8 @@ 10 0 - 350 - 471 + 341 + 481 @@ -501,7 +501,128 @@ - + + + + 0 + 0 + + + + + 0 + 0 + + + + Temperatur + + + + + 50 + 40 + 63 + 311 + + + + 0.000000000000000 + + + 100.000000000000000 + + + 7 + + + 3 + + + 0.000000000000000 + + + + + + 10 + 370 + 67 + 31 + + + + Heizrate + + + Qt::AlignCenter + + + + + + 90 + 370 + 51 + 31 + + + + 1 + + + 3.000000000000000 + + + 0.100000000000000 + + + + + + + + Power + + + + + 30 + 40 + 81 + 311 + + + + 0.000000000000000 + + + 100.000000000000000 + + + 7 + + + 3 + + + 0.000000000000000 + + + + + + 40 + 370 + 81 + 23 + + + + Activate + + + @@ -516,69 +637,18 @@ - + - 380 - 70 - 131 - 401 + 550 + 60 + 481 + 374 - - Power - - - - - 22 - 40 - 81 - 311 - - - - 0.000000000000000 - - - 100.000000000000000 - - - 7 - - - 3 - - - 0.000000000000000 - - - - - - 30 - 370 - 81 - 23 - - - - Activate - - - - - - - 700 - 70 - 328 - 422 - - - - - + + + 0 @@ -1047,8 +1117,8 @@ - - + + 0 @@ -1511,8 +1581,1412 @@ - - + + + + + 0 + 120 + + + + + + + + + 0 + 0 + 0 + + + + + + + 138 + 226 + 52 + + + + + + + 198 + 255 + 143 + + + + + + + 168 + 240 + 97 + + + + + + + 69 + 113 + 26 + + + + + + + 92 + 151 + 34 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 138 + 226 + 52 + + + + + + + 0 + 0 + 0 + + + + + + + 196 + 240 + 153 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + + + 0 + 0 + 0 + + + + + + + 138 + 226 + 52 + + + + + + + 198 + 255 + 143 + + + + + + + 168 + 240 + 97 + + + + + + + 69 + 113 + 26 + + + + + + + 92 + 151 + 34 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 138 + 226 + 52 + + + + + + + 0 + 0 + 0 + + + + + + + 196 + 240 + 153 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + + + 69 + 113 + 26 + + + + + + + 138 + 226 + 52 + + + + + + + 198 + 255 + 143 + + + + + + + 168 + 240 + 97 + + + + + + + 69 + 113 + 26 + + + + + + + 92 + 151 + 34 + + + + + + + 69 + 113 + 26 + + + + + + + 255 + 255 + 255 + + + + + + + 69 + 113 + 26 + + + + + + + 138 + 226 + 52 + + + + + + + 138 + 226 + 52 + + + + + + + 0 + 0 + 0 + + + + + + + 138 + 226 + 52 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + + QFrame::Box + + + QFrame::Raised + + + false + + + 2037.000000000000000 + + + + + + + + 0 + 120 + + + + + + + + + 0 + 0 + 0 + + + + + + + 138 + 226 + 52 + + + + + + + 198 + 255 + 143 + + + + + + + 168 + 240 + 97 + + + + + + + 69 + 113 + 26 + + + + + + + 92 + 151 + 34 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 138 + 226 + 52 + + + + + + + 0 + 0 + 0 + + + + + + + 196 + 240 + 153 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + + + 0 + 0 + 0 + + + + + + + 138 + 226 + 52 + + + + + + + 198 + 255 + 143 + + + + + + + 168 + 240 + 97 + + + + + + + 69 + 113 + 26 + + + + + + + 92 + 151 + 34 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 138 + 226 + 52 + + + + + + + 0 + 0 + 0 + + + + + + + 196 + 240 + 153 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + + + 69 + 113 + 26 + + + + + + + 138 + 226 + 52 + + + + + + + 198 + 255 + 143 + + + + + + + 168 + 240 + 97 + + + + + + + 69 + 113 + 26 + + + + + + + 92 + 151 + 34 + + + + + + + 69 + 113 + 26 + + + + + + + 255 + 255 + 255 + + + + + + + 69 + 113 + 26 + + + + + + + 138 + 226 + 52 + + + + + + + 138 + 226 + 52 + + + + + + + 0 + 0 + 0 + + + + + + + 138 + 226 + 52 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + + QFrame::Box + + + QFrame::Raised + + + false + + + 5 + + + QLCDNumber::Filled + + + 2037.000000000000000 + + + + + + + + 0 + 120 + + + + + + + + + 0 + 0 + 0 + + + + + + + 138 + 226 + 52 + + + + + + + 198 + 255 + 143 + + + + + + + 168 + 240 + 97 + + + + + + + 69 + 113 + 26 + + + + + + + 92 + 151 + 34 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 138 + 226 + 52 + + + + + + + 0 + 0 + 0 + + + + + + + 196 + 240 + 153 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + + + 0 + 0 + 0 + + + + + + + 138 + 226 + 52 + + + + + + + 198 + 255 + 143 + + + + + + + 168 + 240 + 97 + + + + + + + 69 + 113 + 26 + + + + + + + 92 + 151 + 34 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 0 + 0 + 0 + + + + + + + 255 + 255 + 255 + + + + + + + 138 + 226 + 52 + + + + + + + 0 + 0 + 0 + + + + + + + 196 + 240 + 153 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + + + 69 + 113 + 26 + + + + + + + 138 + 226 + 52 + + + + + + + 198 + 255 + 143 + + + + + + + 168 + 240 + 97 + + + + + + + 69 + 113 + 26 + + + + + + + 92 + 151 + 34 + + + + + + + 69 + 113 + 26 + + + + + + + 255 + 255 + 255 + + + + + + + 69 + 113 + 26 + + + + + + + 138 + 226 + 52 + + + + + + + 138 + 226 + 52 + + + + + + + 0 + 0 + 0 + + + + + + + 138 + 226 + 52 + + + + + + + 255 + 255 + 220 + + + + + + + 0 + 0 + 0 + + + + + + + 0 + 0 + 0 + + + + + + + + QFrame::Box + + + QFrame::Raised + + + false + + + 5 + + + QLCDNumber::Filled + + + 2037.000000000000000 + + + + + 0 @@ -1977,43 +3451,85 @@ - + - 540 - 70 - 111 - 401 + 590 + 30 + 67 + 17 - - Temperatur + + Ist + + + Qt::AlignCenter + + + + + + 870 + 30 + 67 + 17 + + + + Soll + + + Qt::AlignCenter + + + + + + 410 + 110 + 121 + 20 + + + + Temperatur [°C] + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + 410 + 240 + 121 + 20 + + + + Heizrate [°C/min] + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter + + + + + + 430 + 360 + 101 + 20 + + + + Leistung [W] + + + Qt::AlignRight|Qt::AlignTrailing|Qt::AlignVCenter - - - - 10 - 40 - 63 - 311 - - - - 0.000000000000000 - - - 100.000000000000000 - - - 7 - - - 3 - - - 0.000000000000000 - - @@ -2021,7 +3537,7 @@ 0 0 - 1591 + 1091 22 diff --git a/brewpi_gui.py b/brewpi_gui.py index fd2b1b1..e665439 100644 --- a/brewpi_gui.py +++ b/brewpi_gui.py @@ -31,12 +31,14 @@ class Window(QtWidgets.QMainWindow, Ui_MainWindow): self.actionStop.triggered.connect(self.disconnect) self.Slider_pwr_soll.valueChanged.connect(self.on_slider_pwr_soll_changed) self.Slider_temp_soll.valueChanged.connect(self.on_slider_temp_soll_changed) + self.doubleSpinBox_heatrate_soll.valueChanged.connect(self.on_heatrate_soll_changed) self.checkbox_heater_activate.stateChanged.connect(self.on_checkbox_changed) self.send_data = Queue() self.slider_pwr_initial_update = True self.slider_temp_soll_initial_update = True self.checkbox_heater_activate_initial_update = True + self.heatrate_soll_initial_update = True def connect(self): self.slider_pwr_initial_update = True @@ -47,13 +49,18 @@ class Window(QtWidgets.QMainWindow, Ui_MainWindow): def disconnect(self): self.ws_client.disconnect() + def on_heatrate_soll_changed(self, value): + value = round(value, 1) + print("on_textbox_heatrate_soll_changed {}".format(value)) + self.msg_tempctrl.send({'Soll': {'Rate': value}}) + def on_slider_pwr_soll_changed(self, value): print("on_slider_pwr_soll_changed {}".format(value)) self.msg_heater.send({'Power': value}) def on_slider_temp_soll_changed(self, value): print("on_slider_temp_soll_changed {}".format(value)) - self.msg_tempctrl.send({'Soll': value}) + self.msg_tempctrl.send({'Soll': {'Temp': value}}) def on_checkbox_changed(self, value): print("on_checkbox_changed {}".format(value)) @@ -63,22 +70,34 @@ class Window(QtWidgets.QMainWindow, Ui_MainWindow): print("on_pot_changed {}".format(msg)) for key in msg: if "Power" in key: - self.lcdNumber_2.display(msg['Power']) + self.lcdNumber_power_pot.display(msg['Power']) def on_sensor_changed(self, msg): print("on_sensor_changed {}".format(msg)) if "Temp" in msg: - self.lcdNumber_3.display(str(msg['Temp'])) + self.lcdNumber_temp_ist.display(str(msg['Temp'])) def on_tempctrl_changed(self, msg): print("on_tempctrl_changed {}".format(msg)) for key in msg: if "Soll" in key: submsg = msg['Soll'] - self.lcdNumber.display(str(submsg['Temp'])) - if self.slider_temp_soll_initial_update: - self.Slider_temp_soll.setValue(submsg['Temp']) - self.slider_temp_soll_initial_update = False + if 'Temp' in submsg: + self.lcdNumber_temp_soll.display(str(submsg['Temp'])) + if self.slider_temp_soll_initial_update: + self.Slider_temp_soll.setValue(submsg['Temp']) + self.slider_temp_soll_initial_update = False + if 'Rate' in submsg: + self.lcdNumber_heatrate_soll.display(str(submsg['Rate'])) + if self.heatrate_soll_initial_update: + self.heatrate_soll_initial_update = False + self.doubleSpinBox_heatrate_soll.setValue(submsg['Rate']) + if "Ist" in key: + submsg = msg['Ist'] + if 'Temp' in submsg: + self.lcdNumber_temp_ist.display(str(submsg['Temp'])) + if 'Rate' in submsg: + self.lcdNumber_heatrate_ist.display(str(submsg['Rate'])) def on_heater_changed(self, msg): print("on_heater_changed {}".format(msg)) @@ -88,6 +107,7 @@ class Window(QtWidgets.QMainWindow, Ui_MainWindow): self.checkbox_heater_activate.setCheckState(2 if msg['Activate'] == 1 else 0) self.checkbox_heater_activate_initial_update = False elif "Power" in key: + self.lcdNumber_power_heater.display(msg['Power']) if self.slider_pwr_initial_update: self.Slider_pwr_soll.setValue(msg['Power']) self.slider_pwr_initial_update = False diff --git a/brewpi_win.py b/brewpi_win.py index d11b8cf..3ec0fc9 100644 --- a/brewpi_win.py +++ b/brewpi_win.py @@ -14,7 +14,7 @@ class Ui_MainWindow(object): def setupUi(self, MainWindow): MainWindow.setObjectName("MainWindow") MainWindow.setEnabled(True) - MainWindow.resize(1591, 718) + MainWindow.resize(1091, 629) sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Expanding, QtWidgets.QSizePolicy.Expanding) sizePolicy.setHorizontalStretch(0) sizePolicy.setVerticalStretch(0) @@ -175,27 +175,43 @@ class Ui_MainWindow(object): self.centralwidget.setObjectName("centralwidget") self.horizontalTabWidget = QtWidgets.QTabWidget(self.centralwidget) self.horizontalTabWidget.setEnabled(True) - self.horizontalTabWidget.setGeometry(QtCore.QRect(10, 0, 350, 471)) + self.horizontalTabWidget.setGeometry(QtCore.QRect(10, 0, 341, 481)) self.horizontalTabWidget.setObjectName("horizontalTabWidget") self.horizontalTabWidgetPage1 = QtWidgets.QWidget() self.horizontalTabWidgetPage1.setObjectName("horizontalTabWidgetPage1") self.horizontalLayout = QtWidgets.QHBoxLayout(self.horizontalTabWidgetPage1) self.horizontalLayout.setObjectName("horizontalLayout") - self.gridLayout = QtWidgets.QGridLayout() - self.gridLayout.setObjectName("gridLayout") - self.horizontalLayout.addLayout(self.gridLayout) - self.horizontalTabWidget.addTab(self.horizontalTabWidgetPage1, "") - self.tab = QtWidgets.QWidget() - self.tab.setObjectName("tab") - self.horizontalTabWidget.addTab(self.tab, "") - self.tab_2 = QtWidgets.QWidget() - self.tab_2.setObjectName("tab_2") - self.horizontalTabWidget.addTab(self.tab_2, "") - self.groupBox = QtWidgets.QGroupBox(self.centralwidget) - self.groupBox.setGeometry(QtCore.QRect(380, 70, 131, 401)) + self.groupBox_2 = QtWidgets.QGroupBox(self.horizontalTabWidgetPage1) + sizePolicy = QtWidgets.QSizePolicy(QtWidgets.QSizePolicy.Preferred, QtWidgets.QSizePolicy.Preferred) + sizePolicy.setHorizontalStretch(0) + sizePolicy.setVerticalStretch(0) + sizePolicy.setHeightForWidth(self.groupBox_2.sizePolicy().hasHeightForWidth()) + self.groupBox_2.setSizePolicy(sizePolicy) + self.groupBox_2.setMinimumSize(QtCore.QSize(0, 0)) + self.groupBox_2.setObjectName("groupBox_2") + self.Slider_temp_soll = QwtSlider(self.groupBox_2) + self.Slider_temp_soll.setGeometry(QtCore.QRect(50, 40, 63, 311)) + self.Slider_temp_soll.setLowerBound(0.0) + self.Slider_temp_soll.setUpperBound(100.0) + self.Slider_temp_soll.setScaleMaxMajor(7) + self.Slider_temp_soll.setScaleMaxMinor(3) + self.Slider_temp_soll.setScaleStepSize(0.0) + self.Slider_temp_soll.setObjectName("Slider_temp_soll") + self.label_6 = QtWidgets.QLabel(self.groupBox_2) + self.label_6.setGeometry(QtCore.QRect(10, 370, 67, 31)) + self.label_6.setAlignment(QtCore.Qt.AlignCenter) + self.label_6.setObjectName("label_6") + self.doubleSpinBox_heatrate_soll = QtWidgets.QDoubleSpinBox(self.groupBox_2) + self.doubleSpinBox_heatrate_soll.setGeometry(QtCore.QRect(90, 370, 51, 31)) + self.doubleSpinBox_heatrate_soll.setDecimals(1) + self.doubleSpinBox_heatrate_soll.setMaximum(3.0) + self.doubleSpinBox_heatrate_soll.setSingleStep(0.1) + self.doubleSpinBox_heatrate_soll.setObjectName("doubleSpinBox_heatrate_soll") + self.horizontalLayout.addWidget(self.groupBox_2) + self.groupBox = QtWidgets.QGroupBox(self.horizontalTabWidgetPage1) self.groupBox.setObjectName("groupBox") self.Slider_pwr_soll = QwtSlider(self.groupBox) - self.Slider_pwr_soll.setGeometry(QtCore.QRect(22, 40, 81, 311)) + self.Slider_pwr_soll.setGeometry(QtCore.QRect(30, 40, 81, 311)) self.Slider_pwr_soll.setLowerBound(0.0) self.Slider_pwr_soll.setUpperBound(100.0) self.Slider_pwr_soll.setScaleMaxMajor(7) @@ -203,16 +219,24 @@ class Ui_MainWindow(object): self.Slider_pwr_soll.setScaleStepSize(0.0) self.Slider_pwr_soll.setObjectName("Slider_pwr_soll") self.checkbox_heater_activate = QtWidgets.QCheckBox(self.groupBox) - self.checkbox_heater_activate.setGeometry(QtCore.QRect(30, 370, 81, 23)) + self.checkbox_heater_activate.setGeometry(QtCore.QRect(40, 370, 81, 23)) self.checkbox_heater_activate.setObjectName("checkbox_heater_activate") - self.layoutWidget = QtWidgets.QWidget(self.centralwidget) - self.layoutWidget.setGeometry(QtCore.QRect(700, 70, 328, 422)) - self.layoutWidget.setObjectName("layoutWidget") - self.verticalLayout = QtWidgets.QVBoxLayout(self.layoutWidget) - self.verticalLayout.setContentsMargins(0, 0, 0, 0) - self.verticalLayout.setObjectName("verticalLayout") - self.lcdNumber_3 = QtWidgets.QLCDNumber(self.layoutWidget) - self.lcdNumber_3.setMinimumSize(QtCore.QSize(0, 120)) + self.horizontalLayout.addWidget(self.groupBox) + self.horizontalTabWidget.addTab(self.horizontalTabWidgetPage1, "") + self.tab = QtWidgets.QWidget() + self.tab.setObjectName("tab") + self.horizontalTabWidget.addTab(self.tab, "") + self.tab_2 = QtWidgets.QWidget() + self.tab_2.setObjectName("tab_2") + self.horizontalTabWidget.addTab(self.tab_2, "") + self.gridLayoutWidget = QtWidgets.QWidget(self.centralwidget) + self.gridLayoutWidget.setGeometry(QtCore.QRect(550, 60, 481, 374)) + self.gridLayoutWidget.setObjectName("gridLayoutWidget") + self.gridLayout_2 = QtWidgets.QGridLayout(self.gridLayoutWidget) + self.gridLayout_2.setContentsMargins(0, 0, 0, 0) + self.gridLayout_2.setObjectName("gridLayout_2") + self.lcdNumber_temp_ist = QtWidgets.QLCDNumber(self.gridLayoutWidget) + self.lcdNumber_temp_ist.setMinimumSize(QtCore.QSize(0, 120)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) @@ -358,17 +382,17 @@ class Ui_MainWindow(object): brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.PlaceholderText, brush) - self.lcdNumber_3.setPalette(palette) - self.lcdNumber_3.setFrameShape(QtWidgets.QFrame.Box) - self.lcdNumber_3.setFrameShadow(QtWidgets.QFrame.Raised) - self.lcdNumber_3.setSmallDecimalPoint(False) - self.lcdNumber_3.setDigitCount(5) - self.lcdNumber_3.setSegmentStyle(QtWidgets.QLCDNumber.Filled) - self.lcdNumber_3.setProperty("value", 2037.0) - self.lcdNumber_3.setObjectName("lcdNumber_3") - self.verticalLayout.addWidget(self.lcdNumber_3) - self.lcdNumber = QtWidgets.QLCDNumber(self.layoutWidget) - self.lcdNumber.setMinimumSize(QtCore.QSize(0, 120)) + self.lcdNumber_temp_ist.setPalette(palette) + self.lcdNumber_temp_ist.setFrameShape(QtWidgets.QFrame.Box) + self.lcdNumber_temp_ist.setFrameShadow(QtWidgets.QFrame.Raised) + self.lcdNumber_temp_ist.setSmallDecimalPoint(False) + self.lcdNumber_temp_ist.setDigitCount(5) + self.lcdNumber_temp_ist.setSegmentStyle(QtWidgets.QLCDNumber.Filled) + self.lcdNumber_temp_ist.setProperty("value", 2037.0) + self.lcdNumber_temp_ist.setObjectName("lcdNumber_temp_ist") + self.gridLayout_2.addWidget(self.lcdNumber_temp_ist, 0, 0, 1, 1) + self.lcdNumber_power_pot = QtWidgets.QLCDNumber(self.gridLayoutWidget) + self.lcdNumber_power_pot.setMinimumSize(QtCore.QSize(0, 120)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) @@ -514,15 +538,15 @@ class Ui_MainWindow(object): brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.PlaceholderText, brush) - self.lcdNumber.setPalette(palette) - self.lcdNumber.setFrameShape(QtWidgets.QFrame.Box) - self.lcdNumber.setFrameShadow(QtWidgets.QFrame.Raised) - self.lcdNumber.setSmallDecimalPoint(False) - self.lcdNumber.setProperty("value", 2037.0) - self.lcdNumber.setObjectName("lcdNumber") - self.verticalLayout.addWidget(self.lcdNumber) - self.lcdNumber_2 = QtWidgets.QLCDNumber(self.layoutWidget) - self.lcdNumber_2.setMinimumSize(QtCore.QSize(0, 120)) + self.lcdNumber_power_pot.setPalette(palette) + self.lcdNumber_power_pot.setFrameShape(QtWidgets.QFrame.Box) + self.lcdNumber_power_pot.setFrameShadow(QtWidgets.QFrame.Raised) + self.lcdNumber_power_pot.setSmallDecimalPoint(False) + self.lcdNumber_power_pot.setProperty("value", 2037.0) + self.lcdNumber_power_pot.setObjectName("lcdNumber_power_pot") + self.gridLayout_2.addWidget(self.lcdNumber_power_pot, 2, 0, 1, 1) + self.lcdNumber_temp_soll = QtWidgets.QLCDNumber(self.gridLayoutWidget) + self.lcdNumber_temp_soll.setMinimumSize(QtCore.QSize(0, 120)) palette = QtGui.QPalette() brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) brush.setStyle(QtCore.Qt.SolidPattern) @@ -668,27 +692,502 @@ class Ui_MainWindow(object): brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) brush.setStyle(QtCore.Qt.SolidPattern) palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.PlaceholderText, brush) - self.lcdNumber_2.setPalette(palette) - self.lcdNumber_2.setFrameShape(QtWidgets.QFrame.Box) - self.lcdNumber_2.setFrameShadow(QtWidgets.QFrame.Raised) - self.lcdNumber_2.setSmallDecimalPoint(False) - self.lcdNumber_2.setProperty("value", 2037.0) - self.lcdNumber_2.setObjectName("lcdNumber_2") - self.verticalLayout.addWidget(self.lcdNumber_2) - self.groupBox_2 = QtWidgets.QGroupBox(self.centralwidget) - self.groupBox_2.setGeometry(QtCore.QRect(540, 70, 111, 401)) - self.groupBox_2.setObjectName("groupBox_2") - self.Slider_temp_soll = QwtSlider(self.groupBox_2) - self.Slider_temp_soll.setGeometry(QtCore.QRect(10, 40, 63, 311)) - self.Slider_temp_soll.setLowerBound(0.0) - self.Slider_temp_soll.setUpperBound(100.0) - self.Slider_temp_soll.setScaleMaxMajor(7) - self.Slider_temp_soll.setScaleMaxMinor(3) - self.Slider_temp_soll.setScaleStepSize(0.0) - self.Slider_temp_soll.setObjectName("Slider_temp_soll") + self.lcdNumber_temp_soll.setPalette(palette) + self.lcdNumber_temp_soll.setFrameShape(QtWidgets.QFrame.Box) + self.lcdNumber_temp_soll.setFrameShadow(QtWidgets.QFrame.Raised) + self.lcdNumber_temp_soll.setSmallDecimalPoint(False) + self.lcdNumber_temp_soll.setProperty("value", 2037.0) + self.lcdNumber_temp_soll.setObjectName("lcdNumber_temp_soll") + self.gridLayout_2.addWidget(self.lcdNumber_temp_soll, 0, 1, 1, 1) + self.lcdNumber_heatrate_ist = QtWidgets.QLCDNumber(self.gridLayoutWidget) + self.lcdNumber_heatrate_ist.setMinimumSize(QtCore.QSize(0, 120)) + palette = QtGui.QPalette() + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) + brush = QtGui.QBrush(QtGui.QColor(198, 255, 143)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush) + brush = QtGui.QBrush(QtGui.QColor(168, 240, 97)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush) + brush = QtGui.QBrush(QtGui.QColor(92, 151, 34)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush) + brush = QtGui.QBrush(QtGui.QColor(196, 240, 153)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.PlaceholderText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) + brush = QtGui.QBrush(QtGui.QColor(198, 255, 143)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush) + brush = QtGui.QBrush(QtGui.QColor(168, 240, 97)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush) + brush = QtGui.QBrush(QtGui.QColor(92, 151, 34)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush) + brush = QtGui.QBrush(QtGui.QColor(196, 240, 153)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.PlaceholderText, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) + brush = QtGui.QBrush(QtGui.QColor(198, 255, 143)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush) + brush = QtGui.QBrush(QtGui.QColor(168, 240, 97)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush) + brush = QtGui.QBrush(QtGui.QColor(92, 151, 34)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.PlaceholderText, brush) + self.lcdNumber_heatrate_ist.setPalette(palette) + self.lcdNumber_heatrate_ist.setFrameShape(QtWidgets.QFrame.Box) + self.lcdNumber_heatrate_ist.setFrameShadow(QtWidgets.QFrame.Raised) + self.lcdNumber_heatrate_ist.setSmallDecimalPoint(False) + self.lcdNumber_heatrate_ist.setDigitCount(5) + self.lcdNumber_heatrate_ist.setSegmentStyle(QtWidgets.QLCDNumber.Filled) + self.lcdNumber_heatrate_ist.setProperty("value", 2037.0) + self.lcdNumber_heatrate_ist.setObjectName("lcdNumber_heatrate_ist") + self.gridLayout_2.addWidget(self.lcdNumber_heatrate_ist, 1, 0, 1, 1) + self.lcdNumber_heatrate_soll = QtWidgets.QLCDNumber(self.gridLayoutWidget) + self.lcdNumber_heatrate_soll.setMinimumSize(QtCore.QSize(0, 120)) + palette = QtGui.QPalette() + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) + brush = QtGui.QBrush(QtGui.QColor(198, 255, 143)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush) + brush = QtGui.QBrush(QtGui.QColor(168, 240, 97)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush) + brush = QtGui.QBrush(QtGui.QColor(92, 151, 34)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush) + brush = QtGui.QBrush(QtGui.QColor(196, 240, 153)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.PlaceholderText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) + brush = QtGui.QBrush(QtGui.QColor(198, 255, 143)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush) + brush = QtGui.QBrush(QtGui.QColor(168, 240, 97)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush) + brush = QtGui.QBrush(QtGui.QColor(92, 151, 34)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush) + brush = QtGui.QBrush(QtGui.QColor(196, 240, 153)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.PlaceholderText, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) + brush = QtGui.QBrush(QtGui.QColor(198, 255, 143)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush) + brush = QtGui.QBrush(QtGui.QColor(168, 240, 97)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush) + brush = QtGui.QBrush(QtGui.QColor(92, 151, 34)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.PlaceholderText, brush) + self.lcdNumber_heatrate_soll.setPalette(palette) + self.lcdNumber_heatrate_soll.setFrameShape(QtWidgets.QFrame.Box) + self.lcdNumber_heatrate_soll.setFrameShadow(QtWidgets.QFrame.Raised) + self.lcdNumber_heatrate_soll.setSmallDecimalPoint(False) + self.lcdNumber_heatrate_soll.setDigitCount(5) + self.lcdNumber_heatrate_soll.setSegmentStyle(QtWidgets.QLCDNumber.Filled) + self.lcdNumber_heatrate_soll.setProperty("value", 2037.0) + self.lcdNumber_heatrate_soll.setObjectName("lcdNumber_heatrate_soll") + self.gridLayout_2.addWidget(self.lcdNumber_heatrate_soll, 1, 1, 1, 1) + self.lcdNumber_power_heater = QtWidgets.QLCDNumber(self.gridLayoutWidget) + self.lcdNumber_power_heater.setMinimumSize(QtCore.QSize(0, 120)) + palette = QtGui.QPalette() + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Button, brush) + brush = QtGui.QBrush(QtGui.QColor(198, 255, 143)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Light, brush) + brush = QtGui.QBrush(QtGui.QColor(168, 240, 97)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Midlight, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Dark, brush) + brush = QtGui.QBrush(QtGui.QColor(92, 151, 34)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Mid, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.BrightText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ButtonText, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Base, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Window, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.Shadow, brush) + brush = QtGui.QBrush(QtGui.QColor(196, 240, 153)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.AlternateBase, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipBase, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.ToolTipText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Active, QtGui.QPalette.PlaceholderText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Button, brush) + brush = QtGui.QBrush(QtGui.QColor(198, 255, 143)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Light, brush) + brush = QtGui.QBrush(QtGui.QColor(168, 240, 97)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Midlight, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Dark, brush) + brush = QtGui.QBrush(QtGui.QColor(92, 151, 34)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Mid, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.BrightText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ButtonText, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Base, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Window, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.Shadow, brush) + brush = QtGui.QBrush(QtGui.QColor(196, 240, 153)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.AlternateBase, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipBase, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.ToolTipText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Inactive, QtGui.QPalette.PlaceholderText, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.WindowText, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Button, brush) + brush = QtGui.QBrush(QtGui.QColor(198, 255, 143)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Light, brush) + brush = QtGui.QBrush(QtGui.QColor(168, 240, 97)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Midlight, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Dark, brush) + brush = QtGui.QBrush(QtGui.QColor(92, 151, 34)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Mid, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Text, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 255)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.BrightText, brush) + brush = QtGui.QBrush(QtGui.QColor(69, 113, 26)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ButtonText, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Base, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Window, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.Shadow, brush) + brush = QtGui.QBrush(QtGui.QColor(138, 226, 52)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.AlternateBase, brush) + brush = QtGui.QBrush(QtGui.QColor(255, 255, 220)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipBase, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.ToolTipText, brush) + brush = QtGui.QBrush(QtGui.QColor(0, 0, 0, 128)) + brush.setStyle(QtCore.Qt.SolidPattern) + palette.setBrush(QtGui.QPalette.Disabled, QtGui.QPalette.PlaceholderText, brush) + self.lcdNumber_power_heater.setPalette(palette) + self.lcdNumber_power_heater.setFrameShape(QtWidgets.QFrame.Box) + self.lcdNumber_power_heater.setFrameShadow(QtWidgets.QFrame.Raised) + self.lcdNumber_power_heater.setSmallDecimalPoint(False) + self.lcdNumber_power_heater.setProperty("value", 2037.0) + self.lcdNumber_power_heater.setObjectName("lcdNumber_power_heater") + self.gridLayout_2.addWidget(self.lcdNumber_power_heater, 2, 1, 1, 1) + self.label = QtWidgets.QLabel(self.centralwidget) + self.label.setGeometry(QtCore.QRect(590, 30, 67, 17)) + self.label.setAlignment(QtCore.Qt.AlignCenter) + self.label.setObjectName("label") + self.label_2 = QtWidgets.QLabel(self.centralwidget) + self.label_2.setGeometry(QtCore.QRect(870, 30, 67, 17)) + self.label_2.setAlignment(QtCore.Qt.AlignCenter) + self.label_2.setObjectName("label_2") + self.label_3 = QtWidgets.QLabel(self.centralwidget) + self.label_3.setGeometry(QtCore.QRect(410, 110, 121, 20)) + self.label_3.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) + self.label_3.setObjectName("label_3") + self.label_4 = QtWidgets.QLabel(self.centralwidget) + self.label_4.setGeometry(QtCore.QRect(410, 240, 121, 20)) + self.label_4.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) + self.label_4.setObjectName("label_4") + self.label_5 = QtWidgets.QLabel(self.centralwidget) + self.label_5.setGeometry(QtCore.QRect(430, 360, 101, 20)) + self.label_5.setAlignment(QtCore.Qt.AlignRight|QtCore.Qt.AlignTrailing|QtCore.Qt.AlignVCenter) + self.label_5.setObjectName("label_5") MainWindow.setCentralWidget(self.centralwidget) self.menubar = QtWidgets.QMenuBar(MainWindow) - self.menubar.setGeometry(QtCore.QRect(0, 0, 1591, 22)) + self.menubar.setGeometry(QtCore.QRect(0, 0, 1091, 22)) self.menubar.setObjectName("menubar") self.menu_File = QtWidgets.QMenu(self.menubar) self.menu_File.setObjectName("menu_File") @@ -720,12 +1219,18 @@ class Ui_MainWindow(object): def retranslateUi(self, MainWindow): _translate = QtCore.QCoreApplication.translate MainWindow.setWindowTitle(_translate("MainWindow", "BrewPi")) + self.groupBox_2.setTitle(_translate("MainWindow", "Temperatur")) + self.label_6.setText(_translate("MainWindow", "Heizrate")) + self.groupBox.setTitle(_translate("MainWindow", "Power")) + self.checkbox_heater_activate.setText(_translate("MainWindow", "Activate")) self.horizontalTabWidget.setTabText(self.horizontalTabWidget.indexOf(self.horizontalTabWidgetPage1), _translate("MainWindow", "Manual")) self.horizontalTabWidget.setTabText(self.horizontalTabWidget.indexOf(self.tab), _translate("MainWindow", "Automatic")) self.horizontalTabWidget.setTabText(self.horizontalTabWidget.indexOf(self.tab_2), _translate("MainWindow", "Seite")) - self.groupBox.setTitle(_translate("MainWindow", "Power")) - self.checkbox_heater_activate.setText(_translate("MainWindow", "Activate")) - self.groupBox_2.setTitle(_translate("MainWindow", "Temperatur")) + self.label.setText(_translate("MainWindow", "Ist")) + self.label_2.setText(_translate("MainWindow", "Soll")) + self.label_3.setText(_translate("MainWindow", "Temperatur [°C]")) + self.label_4.setText(_translate("MainWindow", "Heizrate [°C/min]")) + self.label_5.setText(_translate("MainWindow", "Leistung [W]")) self.menu_File.setTitle(_translate("MainWindow", "&File")) self.menu_Help.setTitle(_translate("MainWindow", "&Help")) self.toolBar.setWindowTitle(_translate("MainWindow", "toolBar"))