diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 474a8b2..c9c896a 100755 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -61,10 +61,14 @@ class MainWindow(QtWidgets.QMainWindow): # Models self._thermostat = Thermostat(self, self.report_refresh_spin.value()) self._connecting_task = None - self._thermostat.connection_state_update.connect(self._on_connection_changed) + self._thermostat.connection_state_update.connect( + self._on_connection_state_changed + ) self._autotuners = PIDAutoTuner(self, self._thermostat, 2) - self._autotuners.autotune_state_changed.connect(self._pid_autotune_handler) + self._autotuners.autotune_state_changed.connect( + self._on_pid_autotune_state_changed + ) # Handlers for disconnections async def autotune_disconnect(): @@ -133,7 +137,7 @@ class MainWindow(QtWidgets.QMainWindow): pass @pyqtSlot(ThermostatConnectionState) - def _on_connection_changed(self, state): + def _on_connection_state_changed(self, state): self.graph_group.setEnabled(state == ThermostatConnectionState.CONNECTED) self.thermostat_settings.setEnabled( state == ThermostatConnectionState.CONNECTED @@ -159,7 +163,7 @@ class MainWindow(QtWidgets.QMainWindow): self.report_box.setChecked(False) @pyqtSlot(int, PIDAutotuneState) - def _pid_autotune_handler(self, _ch, _state): + def _on_pid_autotune_state_changed(self, _ch, _state): ch_tuning = [] for ch in range(self.NUM_CHANNELS): if self._autotuners.get_state(ch) in {