diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index a46daed..d5cf3d8 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -316,6 +316,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): self.menu.addAction(self.actionReset) self.menu.addAction(self.actionEnter_DFU_Mode) + self.menu.addAction(self.actionNetwork_Settings) self.thermostat_settings.setMenu(self.menu) diff --git a/pytec/tec_qt.ui b/pytec/tec_qt.ui index c894598..6962c70 100644 --- a/pytec/tec_qt.ui +++ b/pytec/tec_qt.ui @@ -471,6 +471,17 @@ QAction::NoRole + + + Network Settings + + + Configure IPv4 address, netmask length, and optional default gateway + + + QAction::NoRole + + diff --git a/pytec/ui_tec_qt.py b/pytec/ui_tec_qt.py index 7c10a57..739cbb3 100644 --- a/pytec/ui_tec_qt.py +++ b/pytec/ui_tec_qt.py @@ -201,6 +201,9 @@ class Ui_MainWindow(object): self.actionEnter_DFU_Mode = QtGui.QAction(parent=MainWindow) self.actionEnter_DFU_Mode.setMenuRole(QtGui.QAction.MenuRole.NoRole) self.actionEnter_DFU_Mode.setObjectName("actionEnter_DFU_Mode") + self.actionNetwork_Settings = QtGui.QAction(parent=MainWindow) + self.actionNetwork_Settings.setMenuRole(QtGui.QAction.MenuRole.NoRole) + self.actionNetwork_Settings.setObjectName("actionNetwork_Settings") self.retranslateUi(MainWindow) QtCore.QMetaObject.connectSlotsByName(MainWindow) @@ -223,6 +226,8 @@ class Ui_MainWindow(object): self.actionReset.setToolTip(_translate("MainWindow", "Reset the Thermostat")) self.actionEnter_DFU_Mode.setText(_translate("MainWindow", "Enter DFU Mode")) self.actionEnter_DFU_Mode.setToolTip(_translate("MainWindow", "Reset thermostat and enter USB device firmware update (DFU) mode")) + self.actionNetwork_Settings.setText(_translate("MainWindow", "Network Settings")) + self.actionNetwork_Settings.setToolTip(_translate("MainWindow", "Configure IPv4 address, netmask length, and optional default gateway")) from pglive.sources.live_plot_widget import LivePlotWidget from pyqtgraph.parametertree import ParameterTree