buttonReply = QMessageBox.question( self , 'Shutdown Server' , "Shutdown Server VM, Continue?" , QMessageBox.Yes | QMessageBox.No , QMessageBox.No) if buttonReply == QMessageBox.Yes: operation_num = 2 self .operationsThread = Operations_Thread() self .operationsThread.updateTextEditSignal.connect( self .updateText) self .operationsThread.start() self .updateText( "[{}]Shutting down VM - Please wait..." .format(time.strftime( "%Y.%m.%d-%H:%M:%S" ))) def showdialog ( self , text): global mon_config if text != 'FAIL' : msg = QMessageBox() msg.setIcon(QMessageBox.Information) msg.setWindowTitle( f"MODBUS TCP Read from: { self .selectedDevice } " ) msg.setText( f"Sensor serial no: { text } " ) msg.setInformativeText( "For more info. click 'Show Details'" ) msg.setDetailedText( f"Serial no. from IP address : { self .selectedDevic...
Comments
Post a Comment