From 5ced33594c388c7c305d21d47909ac4d7e7e9e2f Mon Sep 17 00:00:00 2001 From: atse Date: Tue, 18 Jul 2023 10:36:29 +0800 Subject: [PATCH] Change name of button slot --- pytec/tec_qt.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pytec/tec_qt.py b/pytec/tec_qt.py index 71c744d..b1eea22 100644 --- a/pytec/tec_qt.py +++ b/pytec/tec_qt.py @@ -73,7 +73,6 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): self.setupUi(self) - self.connect_btn.clicked.connect(self.connect) self.fan_power_slider.valueChanged.connect(self.fan_set) self.fan_auto_box.stateChanged.connect(self.fan_auto_set) @@ -163,7 +162,7 @@ class MainWindow(QtWidgets.QMainWindow, Ui_MainWindow): await self.tec_client.disconnect() @asyncSlot() - async def connect(self): + async def on_connect_btn_clicked(self): ip, port = self.ip_set_line.text(), self.port_set_spin.value() try: if not (self.tec_client.is_connecting() or self.tec_client.is_connected()):