예제 #1
0
 def __init__(self, parent = None):
     QTcpSocket.__init__(self, parent)
     
     # The 'readyRead' signal is from QTcpSocket, call 'readyReadId' 
     # whenever is emitted.
     self.readyRead.connect(self.onReadyRead)
     self.disconnected.connect(self.onDisconnected)
예제 #2
0
    def __init__(self, parent=None):
        QTcpSocket.__init__(self, parent)

        # The 'readyRead' signal is from QTcpSocket, call 'readyReadId'
        # whenever is emitted.
        self.readyRead.connect(self.onReadyRead)
        self.disconnected.connect(self.onDisconnected)