Hello all--

I am having trouble running my PyQt application under PySide on both my Nokia n900 and Fedora workstation. My software uses a TCP socket server for IPC, and it doesn't seem that the PySide implementation supports setting which port the server will listen on:

result = self.socket.listen(port=self.server_port)
TypeError: listen() takes no keyword arguments


If I purposefully generate an error, the traceback shows that I can set the IP address (and therefore the interface), but not control the port:


Python 2.5.4 (r254:67916, May 17 2010, 21:00:32)
[GCC 4.2.1] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from PySide import QtNetwork
>>> socket = QtNetwork.QTcpServer()
>>> socket.listen(1234)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
TypeError: 'PySide.QtNetwork.QTcpServer.listen' called with wrong argument types:
  PySide.QtNetwork.QTcpServer.listen(int)
Supported signatures:
PySide.QtNetwork.QTcpServer.listen(PySide.QtNetwork.QHostAddress = QHostAddress.Any, unsigned short = 0)


    This conflicts with the PySide documentation:

http://www.pyside.org/docs/pyside/PySide/QtNetwork/QTcpServer.html#PySide.QtNetwork.QTcpServer.listen


    On the Nokia n900 I am running version 0.3.1-1maemo2

    On the Fedora workstation I am running python-pyside-0.3.2-1.1.i386



Is there something I am doing wrong or is this just a bug which I should report to the PySide Bugzilla tracker?



Cheers

Steve Castellotti

_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside

Reply via email to