[Linux] View Command Line Histroy on a Linux Computer Get link Facebook X Pinterest Email Other Apps June 16, 2022 List quickly go by with the last 500 commands used on a Linux terminal$ history Get link Facebook X Pinterest Email Other Apps Comments
[Python] PyQt Threads July 11, 2022 Define the Thread: class ThreadWorker(QThread): updateValueSignal = pyqtSignal( str ) updateTextEditSignal = pyqtSignal( str ) def run ( self ): #self.updateTextEditSignal.emit("Started MODBUS Read...\r\n\r\n") self .updateTextEditSignal.emit( "emit text signal" ) print ( "emit text signal" ) #buttonReply = QMessageBox.question(self, 'READ PASS', f"Reading from {modbus_ip} > Serial no.: {regs[0]}", # QMessageBox.Ok) def stop ( self ): self .terminate() Running the thread: def RunThread ( self ): self .threadworker = ThreadWorker() #self.threadworker.updateValueSignal.connect(self.showdialog) self .threadworker.updateTextEditSignal.connect( self .updateText) # self.modbusworker.updateListSignal.connect(self.updateList) self .threadworker.start() Read more
Comments
Post a Comment