[PyQt] Having a problem with QTcpSocket

Phil Thompson phil at riverbankcomputing.com
Thu Nov 26 17:38:19 GMT 2009


On Mon, 23 Nov 2009 21:01:38 +0100, "Hans-Peter Jansen" <hpj at urpla.net>
wrote:
> On Monday 23 November 2009, 19:39:36 Nick Gaens wrote:
>>  Hans-Peter Jansen schreef:
>>
>>  Hmm.. That doesn't seem to work :-S..
>>
>>  self.server.listen(QtNetwork.QHostAddress.Any, 55555):
>>        TypeError: argument 1 of QTcpServer.listen() has an invalid
>>  type
> 
> It's not that uncommon. Try:
> 
> 	self.listen(QtNetwork.QHostAddress(QtNetwork.QHostAddress.Any), 55555)
> 
> Phil, is it possible to eliminate this useless wrapper?

...tonight's snapshot.

Phil


More information about the PyQt mailing list