FPIBG Utility
ELMainWindow.SetupTab Class Reference
Inheritance diagram for ELMainWindow.SetupTab:
Collaboration diagram for ELMainWindow.SetupTab:

Public Member Functions

 __init__ (self)
 
 connect_to_server (self)
 
 disconnect_from_server (self)
 
 send_command (self)
 
 receive_response (self, command)
 
 display_response (self, response)
 
 log_command (self, command, response)
 
 clear_output (self)
 
 save_config (self)
 
 load_config (self)
 

Public Attributes

 config = configparser.ConfigParser()
 
 client = TCPIP()
 
bool connected = False
 
float socket_timeout = 5.0
 
 ip_input = QLineEdit(self.client.server_ip)
 
 port_input = QLineEdit(str(self.client.server_port))
 
 connect_button = QPushButton("Connect")
 
 connect_to_server
 
 disconnect_button = QPushButton("Disconnect")
 
 disconnect_from_server
 
 output_display = QTextEdit()
 
 command_input = QLineEdit()
 
 send_command
 
 send_button = QPushButton("Send")
 
 clear_button = QPushButton("Clear")
 
 clear_output
 
 display_response
 

Static Public Attributes

 received_signal = pyqtSignal(str)
 

Constructor & Destructor Documentation

◆ __init__()

ELMainWindow.SetupTab.__init__ ( self)

Member Function Documentation

◆ clear_output()

ELMainWindow.SetupTab.clear_output ( self)
clear the output display

◆ connect_to_server()

ELMainWindow.SetupTab.connect_to_server ( self)
connect to the server with timeout handling

◆ disconnect_from_server()

ELMainWindow.SetupTab.disconnect_from_server ( self)
handle server disconnection cleanly

◆ display_response()

ELMainWindow.SetupTab.display_response ( self,
response )
thread-safe method to update ui with response

◆ load_config()

ELMainWindow.SetupTab.load_config ( self)
load saved settings from config file

◆ log_command()

ELMainWindow.SetupTab.log_command ( self,
command,
response )
log command and response with timestamp

◆ receive_response()

ELMainWindow.SetupTab.receive_response ( self,
command )
handle server response in separate thread with timeout

◆ save_config()

ELMainWindow.SetupTab.save_config ( self)
save all settings to config file

◆ send_command()

ELMainWindow.SetupTab.send_command ( self)
send command with threaded response handling

Member Data Documentation

◆ clear_button

ELMainWindow.SetupTab.clear_button = QPushButton("Clear")

◆ clear_output

ELMainWindow.SetupTab.clear_output

◆ client

ELMainWindow.SetupTab.client = TCPIP()

◆ command_input

ELMainWindow.SetupTab.command_input = QLineEdit()

◆ config

ELMainWindow.SetupTab.config = configparser.ConfigParser()

◆ connect_button

ELMainWindow.SetupTab.connect_button = QPushButton("Connect")

◆ connect_to_server

ELMainWindow.SetupTab.connect_to_server

◆ connected

bool ELMainWindow.SetupTab.connected = False

◆ disconnect_button

ELMainWindow.SetupTab.disconnect_button = QPushButton("Disconnect")

◆ disconnect_from_server

ELMainWindow.SetupTab.disconnect_from_server

◆ display_response

ELMainWindow.SetupTab.display_response

◆ ip_input

ELMainWindow.SetupTab.ip_input = QLineEdit(self.client.server_ip)

◆ output_display

ELMainWindow.SetupTab.output_display = QTextEdit()

◆ port_input

ELMainWindow.SetupTab.port_input = QLineEdit(str(self.client.server_port))

◆ received_signal

ELMainWindow.SetupTab.received_signal = pyqtSignal(str)
static

◆ send_button

ELMainWindow.SetupTab.send_button = QPushButton("Send")

◆ send_command

ELMainWindow.SetupTab.send_command

◆ socket_timeout

ELMainWindow.SetupTab.socket_timeout = 5.0

The documentation for this class was generated from the following file: