Many thanks, dropping the named parameters did in fact solve the
problem.
However, now I'm having trouble connecting to a client socket's
"disconnected" signal:
...
self.socket = QtNetwork.QTcpServer()
self.socket.newConnection.connect(self.processConnection)
...
def processConnection(self):
clientConnection = self.socket.nextPendingConnection()
clientConnection.disconnected.connect(clientConnection.deleteLater)
...
Error calling slot processConnectiona29b2eca2b5844()
Traceback (most recent call last):
File "network_server.py", line 123, in processConnection
clientConnection.disconnected.connect(clientConnection.deleteLater)
AttributeError: 'Signal' object has no attribute 'connect'
Again, this code works without a problem under PyQt4, is there a
workaround for PySide?
Cheers
Steve
On Wed, 2010-07-14 at 11:32 -0300, Renato Araujo Oliveira Filho wrote:
> Hi Steve,
>
> PySide support to named args was not released yet, in current release
> you need pass the both args for this function. A new release is coming
> with this new feature and much more.
>
> BR
>
>
> On Wed, Jul 14, 2010 at 5:47 AM, Luca Donaggio <[email protected]>
> wrote:
>
> Hi Steve,
>
>
> Supported signatures:
>
> PySide.QtNetwork.QTcpServer.listen(PySide.QtNetwork.QHostAddress =
> QHostAddress.Any, unsigned short = 0)
>
>
>
>
> According to that message, the supported parameters are a
> QtNetwork.QHostAddress and an unsigned short, which I assume
> is used to specify the port. Have you tried to pass both of
> them to the listen method?
>
> --
> Luca Donaggio
>
> _______________________________________________
> PySide mailing list
> [email protected]
> http://lists.openbossa.org/listinfo/pyside
>
>
>
>
>
> --
> Renato Araujo Oliveira Filho
> Instituto Nokia de Tecnologia - INdT
> Mobile: +55 (81) 8704-2144
Steve Castellotti
Puzzlebox Limited
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside