From dde1af4fe25c719af2a57038b56604bad37aed35 Mon Sep 17 00:00:00 2001 From: Zhengyu Peng Date: Fri, 4 Mar 2022 16:47:31 -0500 Subject: [PATCH] Update hexapod.py --- software/pc/hexapod.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/software/pc/hexapod.py b/software/pc/hexapod.py index 78063ab..94e06ec 100644 --- a/software/pc/hexapod.py +++ b/software/pc/hexapod.py @@ -320,6 +320,9 @@ class MyApp(QtWidgets.QMainWindow): self.ui.buttonTcpConnect.setText('Connect') self.tcp_client_thread.quit() + self.ui.button_Refresh.setEnabled(True) + self.ui.comboBox_Interface.setEnabled(True) + self.ui.lineEdit_TcpClientTargetIP.setEnabled(True) self.ui.lineEdit_TcpClientTargetPort.setEnabled(True) @@ -333,6 +336,10 @@ class MyApp(QtWidgets.QMainWindow): elif status == TCPClient.CONNECTED: self.ui.buttonTcpConnect.setText('Disconnect') + + self.ui.button_Refresh.setEnabled(False) + self.ui.comboBox_Interface.setEnabled(False) + self.ui.groupBox_Control.setEnabled(True) self.ui.textBrowserMessage.setEnabled(True)