From ad5e36beab72331c50153124bdffb7452e960cb6 Mon Sep 17 00:00:00 2001 From: atse Date: Thu, 6 Jul 2023 17:04:20 +0800 Subject: [PATCH] Add unit to report spinbox --- pytec/tec_qt.ui | 3 +++ pytec/ui_tec_qt.py | 1 + 2 files changed, 4 insertions(+) diff --git a/pytec/tec_qt.ui b/pytec/tec_qt.ui index 072befa..b108b7c 100644 --- a/pytec/tec_qt.ui +++ b/pytec/tec_qt.ui @@ -377,6 +377,9 @@ 0 + + s + 1 diff --git a/pytec/ui_tec_qt.py b/pytec/ui_tec_qt.py index 9e502d5..0a727bb 100644 --- a/pytec/ui_tec_qt.py +++ b/pytec/ui_tec_qt.py @@ -304,6 +304,7 @@ class Ui_MainWindow(object): self.ip_set_line.setPlaceholderText(_translate("MainWindow", "IP:port for the Thermostat")) self.connect_btn.setText(_translate("MainWindow", "Connect")) self.status_lbl.setText(_translate("MainWindow", "Disconnected")) + self.report_refresh_spin.setSuffix(_translate("MainWindow", " s")) self.report_box.setText(_translate("MainWindow", "Report")) self.report_apply_btn.setText(_translate("MainWindow", "Apply")) self.fan_lbl.setText(_translate("MainWindow", "Fan:"))