From 34ed3cf39ad771f0c5a927809a6ca2df9d7fff9c Mon Sep 17 00:00:00 2001 From: atse Date: Mon, 31 Jul 2023 13:30:14 +0800 Subject: [PATCH] Add tooltip to settings buttons --- pytec/tec_qt.ui | 6 ++++++ pytec/ui_tec_qt.py | 2 ++ 2 files changed, 8 insertions(+) diff --git a/pytec/tec_qt.ui b/pytec/tec_qt.ui index d33c3b4..d6a3f71 100644 --- a/pytec/tec_qt.ui +++ b/pytec/tec_qt.ui @@ -154,6 +154,9 @@ 40 + + Thermostat Settings + QFrame::StyledPanel @@ -263,6 +266,9 @@ ... + + Plot Settings + QToolButton::InstantPopup diff --git a/pytec/ui_tec_qt.py b/pytec/ui_tec_qt.py index 5ffcaa1..4431f0e 100644 --- a/pytec/ui_tec_qt.py +++ b/pytec/ui_tec_qt.py @@ -225,9 +225,11 @@ class Ui_MainWindow(object): self.ch0_t_graph.setTitle(_translate("MainWindow", "Channel 0 Temperature")) self.ch0_i_graph.setTitle(_translate("MainWindow", "Channel 0 Current")) self.ch1_i_graph.setTitle(_translate("MainWindow", "Channel 1 Current")) + self.bottom_settings_group.setToolTip(_translate("MainWindow", "Thermostat Settings")) self.connect_btn.setText(_translate("MainWindow", "Connect")) self.status_lbl.setText(_translate("MainWindow", "Disconnected")) self.plot_settings.setText(_translate("MainWindow", "...")) + self.plot_settings.setToolTip(_translate("MainWindow", "Plot Settings")) self.report_lbl.setText(_translate("MainWindow", "Poll every: ")) self.report_refresh_spin.setSuffix(_translate("MainWindow", " s")) self.report_box.setText(_translate("MainWindow", "Report"))