filterstage-gui.py
def sendLine(self, message):
        ''' Send one line to the serial port and add it to the terminal window '''
        self.terminalAdd(message+"\n")
        self.ser.writeTimeout = 0.1
        try:
            self.ser.write((message+"\n").encode('utf-8'))
        except serial.SerialTimeoutException:
            self.terminalAdd('Error: Serial command timed out')
        # self.emit.update()   # (not self.emit.update()) but self.update.emit() !!!
        self.update.emit()
 Send one line to the serial port and add it to the terminal window 
Send one line to the serial port and add it to the terminal window
Send one line to the serial port and add it to the terminal window
def sendLine(self, message):
        self.terminalAdd(message+"\n")
        self.ser.writeTimeout = 0.1
        try:
            self.ser.write((message+"\n").encode('utf-8'))
        except serial.SerialTimeoutException:
            self.terminalAdd('Error: Serial command timed out')
        self.update.emit()
def sendLine ( self , message ) : self . terminalAdd ( message + "\n" ) self . ser . writeTimeout = 0.1 try : self . ser . write ( ( message + "\n" ) . encode ( 'utf-8' ) ) except serial . SerialTimeoutException : self . terminalAdd ( 'Error: Serial command timed out' ) self . update . emit ( )
Send one line to the serial port and add it to the terminal window
Send one line to the serial port and add it to the terminal window
''' Send one line to the serial port and add it to the terminal window ''' # self.emit.update()   # (not self.emit.update()) but self.update.emit() !!!
self
message