From 6b1a0eae16261f498b4a0875914bd50885a27f0f Mon Sep 17 00:00:00 2001 From: Zhengyu Peng Date: Thu, 23 Dec 2021 23:17:17 -0500 Subject: [PATCH] update --- software/pc/hexapod.py | 16 ++++++++-------- software/pc/mainwindow.ui | 2 +- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/software/pc/hexapod.py b/software/pc/hexapod.py index c4e0d5f..4715a5c 100644 --- a/software/pc/hexapod.py +++ b/software/pc/hexapod.py @@ -208,23 +208,23 @@ class MyApp(QtWidgets.QMainWindow): self.ui.lineEdit_TcpClientTargetPort.setEnabled(True) self.ui.textBrowser_TcpClientMessage.setEnabled(False) - self.ui.lineEdit_TcpClientSend.setEnabled(False) - self.ui.button_TcpClientSend.setEnabled(False) + # self.ui.lineEdit_TcpClientSend.setEnabled(False) + # self.ui.button_TcpClientSend.setEnabled(False) self.status_message[0] = '● Idle' - if self.ui.tabWidget.currentIndex() == 0: - self.on_tab_changed(0) + # if self.ui.tabWidget.currentIndex() == 0: + # self.on_tab_changed(0) elif status == TCPClient.CONNECTED: self.ui.button_TcpClient.setText('Disconnect') self.ui.textBrowser_TcpClientMessage.setEnabled(True) - self.ui.lineEdit_TcpClientSend.setEnabled(True) - self.ui.button_TcpClientSend.setEnabled(True) + # self.ui.lineEdit_TcpClientSend.setEnabled(True) + # self.ui.button_TcpClientSend.setEnabled(True) self.status_message[0] = '● Connected to ' +\ self.ui.label_LocalIP.text() +\ ':'+self.ui.lineEdit_TcpClientTargetPort.text() - if self.ui.tabWidget.currentIndex() == 0: - self.on_tab_changed(0) + # if self.ui.tabWidget.currentIndex() == 0: + # self.on_tab_changed(0) self.ui.button_TcpClient.setEnabled(True) diff --git a/software/pc/mainwindow.ui b/software/pc/mainwindow.ui index 65325c1..be1cbef 100644 --- a/software/pc/mainwindow.ui +++ b/software/pc/mainwindow.ui @@ -329,7 +329,7 @@ - +