From 9531e7063a27f2521f836178bad5736636cb13ee Mon Sep 17 00:00:00 2001 From: atse Date: Wed, 28 Aug 2024 17:26:43 +0800 Subject: [PATCH] fixup! Rearrange MainWindow.__init__ --- pytec/tec_qt.py | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 034cfee..31b2755 100755 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -107,17 +107,10 @@ class MainWindow(QtWidgets.QMainWindow): ] ) - # Bottom bar + # Bottom bar menus self.conn_menu = ConnMenu(self.thermostat, self.connect_btn) self.connect_btn.setMenu(self.conn_menu) - self.zero_limits_warning = ZeroLimitsWarningView( - self.style(), self.limits_warning - ) - self.ctrl_panel_view.set_zero_limits_warning_sig.connect( - self.zero_limits_warning.set_limits_warning - ) - self.thermostat_ctrl_menu = ThermostatCtrlMenu( self.thermostat, self.info_box, self.style() ) @@ -126,6 +119,14 @@ class MainWindow(QtWidgets.QMainWindow): self.plot_options_menu = PlotOptionsMenu(self.channel_graphs) self.plot_settings.setMenu(self.plot_options_menu) + # Status line + self.zero_limits_warning = ZeroLimitsWarningView( + self.style(), self.limits_warning + ) + self.ctrl_panel_view.set_zero_limits_warning_sig.connect( + self.zero_limits_warning.set_limits_warning + ) + self.loading_spinner.hide() self.report_apply_btn.clicked.connect(