how to let serial work well background and also foreground?
问题 i have a serial app, The Robot class need to always receive serial message and then to do some thing, the Demo gui need to interactive Robot and get Robot.handle_readData , if no data get, need to get again and again until had data. Now i had no idea how to solve this problem, need someone give me good idea. from PyQt5.QtWidgets import * from PyQt5.QtCore import * from PyQt5.QtGui import * from PyQt5.QtSerialPort import * class Robot(QObject): def __init__(self): super().__init__() self