<div>hi all, </div>
<div> </div>
<div>i try to disconnect a tcpSocket SLOT</div>
<div> </div>
<div>connection in __init__</div>
<div> self.connect(self.tcpSocket, QtCore.SIGNAL("readyRead()"), self.readyRead)</div>
<div> </div>
<div>and for disconnect :</div>
<div> </div>
<div> def readyRead(self):<br> msg= self.tcpSocket.readAll()<br> if msg == '200 3.00 Ready\r\n' :<br> self.MyPrint('Manager pret')</div>
<div> self.disconnect(self.tcpSocket, QtCore.SIGNAL("readyRead()"), self.readyRead)</div>
<div> .......................</div>
<div> </div>
<div>and i have this error :</div>
<div><br>self.disconnect(self.tcpSocket, QtCore.SIGNAL("readyRead()"), self.readyRead)<br>TypeError: disconnect() takes exactly 1 argument (4 given)</div>
<div> </div>
<div> </div>
<div>i use PyQt Py2.5 and QT 4.2</div>
<div> </div>
<div>thx for your help</div>
<div> </div>
<div>Kermit</div>