pyqt unhandled RuntimeError \"no access to protected functions or signals for objects not created from Python
luca72
lucaberto at libero.it
Fri Sep 3 03:58:12 EDT 2010
Hello i have also write to pyqt mailing list but maybe you can help me
to solve this question:
I have write a tcpserver but wheni try to read by the signal
readyRead() e get the error
this the part of the program:
def nuova_connessione(self):
print 'Nuova connessione'
self.nuovo_socket =
self.mio_server.nextPendingConnection()
print self.nuovo_socket
self.connect(self.nuovo_socket,
QtCore.SIGNAL("connected()"), self.
connessione)
self.connect(self.nuovo_socket,
QtCore.SIGNAL("readyRead()"), self.
leggo_risposta)
self.connect(self.nuovo_socket,
QtCore.SIGNAL("disconnected"), self.
sconnesso)
self.connect(self.nuovo_socket,
QtCore.SIGNAL("error(Qtcore.
QAbsatctSocket::SocketError)"), self.server_errore)
def leggo_risposta(self):
cosa_leggo = self.nuovo_socket.readData(self.nuovo_socket.
bytesAvailable())
can you help me
Thanks
More information about the Python-list
mailing list