Sep-17-2018, 11:21 PM
Some improvements would be worthwhile before adding new features. First off, you should clean the imports and avoid using wildcards (from PyQt4.QtGui import *), as it makes the code harder to read and increase the risk of name collisions.
Also, you pass a QObject into your signals, but you don't use it in your slot. Instead, you can simply skip the arguments:
Also, you pass a QObject into your signals, but you don't use it in your slot. Instead, you can simply skip the arguments:
signal1 = QtCore.pyqtSignal() self.signal1.emit()Finally, you should move your TCP thread into a QThread, with Qt's moveToThread() method. As shown here.