Hi Nicola,
to connect signals in the old way on PySide you need use the full
signature on SIGNAL('function_name(arguments_types)') call. Try
replace your code with something like that
<< self.connect(self.xmlcalls, SIGNAL('rpc_response'),self.onXmlResponse)
>> self.connect(self.xmlcalls, SIGNAL('rpc_response(object)'),
>> self.onXmlResponse)
There is a bug reported about this problem in:
http://bugs.openbossa.org/show_bug.cgi?id=314.
We did not decide yet, if this feature will be implemented or not
because this is a deprecated API, then the best solution is update
your code to use the new API, if you have problems with the new API
you can use the ml or pyside irc channel to ask about that.
Thanks
On Sat, Sep 25, 2010 at 5:08 AM, Mailing List SVR
<[email protected]> wrote:
> Hi,
>
> I'm experiencing some problems passing arguments when emitting signals
> in pyside,
>
> code such this:
>
> self.xmlcalls=XmlCalls(parent=self)
> self.connect(self.xmlcalls, SIGNAL('rpc_response'),self.onXmlResponse)
>
> def onXmlResponse(self,resp):
> print 'xmlresponse'
> print resp
>
> and then in the XmlCalls:
>
> self.emit(SIGNAL('rpc_response'),resp)
>
> works fine in PyQt, but in PySide I have the following error:
>
> Error calling slot "onXmlResponse"
> TypeError: onXmlResponse() takes exactly 2 arguments (1 given)
>
> I tryed to follow this guide
>
> http://www.pyside.org/docs/pyside/newsigslot.html
>
> with no success is this updated?
>
> any help would be appreciated,
>
> thanks
> Nicola
>
> _______________________________________________
> 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
_______________________________________________
PySide mailing list
[email protected]
http://lists.openbossa.org/listinfo/pyside