forked from M-Labs/thermostat
parent
2d341df23c
commit
a9c0106c46
|
@ -315,6 +315,8 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow):
|
||||||
self.actionReset.triggered.connect(reset_thermostat)
|
self.actionReset.triggered.connect(reset_thermostat)
|
||||||
self.menu.addAction(self.actionReset)
|
self.menu.addAction(self.actionReset)
|
||||||
|
|
||||||
|
self.menu.addAction(self.actionEnter_DFU_Mode)
|
||||||
|
|
||||||
self.thermostat_settings.setMenu(self.menu)
|
self.thermostat_settings.setMenu(self.menu)
|
||||||
|
|
||||||
self.plot_menu = QtWidgets.QMenu()
|
self.plot_menu = QtWidgets.QMenu()
|
||||||
|
|
|
@ -460,6 +460,17 @@
|
||||||
<enum>QAction::NoRole</enum>
|
<enum>QAction::NoRole</enum>
|
||||||
</property>
|
</property>
|
||||||
</action>
|
</action>
|
||||||
|
<action name="actionEnter_DFU_Mode">
|
||||||
|
<property name="text">
|
||||||
|
<string>Enter DFU Mode</string>
|
||||||
|
</property>
|
||||||
|
<property name="toolTip">
|
||||||
|
<string>Reset thermostat and enter USB device firmware update (DFU) mode</string>
|
||||||
|
</property>
|
||||||
|
<property name="menuRole">
|
||||||
|
<enum>QAction::NoRole</enum>
|
||||||
|
</property>
|
||||||
|
</action>
|
||||||
</widget>
|
</widget>
|
||||||
<customwidgets>
|
<customwidgets>
|
||||||
<customwidget>
|
<customwidget>
|
||||||
|
|
|
@ -198,6 +198,9 @@ class Ui_MainWindow(object):
|
||||||
self.actionReset = QtGui.QAction(parent=MainWindow)
|
self.actionReset = QtGui.QAction(parent=MainWindow)
|
||||||
self.actionReset.setMenuRole(QtGui.QAction.MenuRole.NoRole)
|
self.actionReset.setMenuRole(QtGui.QAction.MenuRole.NoRole)
|
||||||
self.actionReset.setObjectName("actionReset")
|
self.actionReset.setObjectName("actionReset")
|
||||||
|
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.retranslateUi(MainWindow)
|
self.retranslateUi(MainWindow)
|
||||||
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
QtCore.QMetaObject.connectSlotsByName(MainWindow)
|
||||||
|
@ -218,6 +221,8 @@ class Ui_MainWindow(object):
|
||||||
self.report_apply_btn.setText(_translate("MainWindow", "Apply"))
|
self.report_apply_btn.setText(_translate("MainWindow", "Apply"))
|
||||||
self.actionReset.setText(_translate("MainWindow", "Reset"))
|
self.actionReset.setText(_translate("MainWindow", "Reset"))
|
||||||
self.actionReset.setToolTip(_translate("MainWindow", "Reset the Thermostat"))
|
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"))
|
||||||
from pglive.sources.live_plot_widget import LivePlotWidget
|
from pglive.sources.live_plot_widget import LivePlotWidget
|
||||||
from pyqtgraph.parametertree import ParameterTree
|
from pyqtgraph.parametertree import ParameterTree
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue