Hi all,
In Qt following works :
QUdpSocket sock = new QUdpSocket();
sock.bind(QHostAdress.Any, 4444)
But in PyQt it doesn't like it :
>>> sock = QUdpSocket()
>>> sock.bind(QHostAddress.Any, 4444)
Traceback (most recent call last):
File "<stdin>", line 1, in ?
TypeError: argument 2 of QUdpSocket.bind() has an invalid type
However if I don't use an enum it works :
>>> sock.bind(QHostAddress("0.0.0.0"), 4444)
True
Any ideas?
Regards,
ismail
--
Never learn by your mistakes, if you do you may never dare to try again.
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt