Hi Luke,

the error seems weird indeed, and really nothing seems to be wrong
with your code.
That said, I don't have a clue why the type error claims that exactly
3 arguments are needed and 4 was passed, it must be a bug, but to find
out what it is we'll really need that simple example. :)
We need just a small version of the class that contains the signal and
a few lines connecting it to a dummy callback.

On Sun, Oct 9, 2011 at 6:24 PM, Luke Campagnola <[email protected]> wrote:
> Howdy,
> I'm getting an error when connecting a specific signal in my application
> (most connections work just fine). The offending line looks like:
>         self.chart.sigFileLoaded.connect(self.setCurrentFile)
> ..and the error is:
>         TypeError: connect() takes exactly 3 arguments (4 given)
> ..and the signal is created as a class attribute like this:
>         sigFileLoaded = QtCore.Signal(object)
> ..and finally, self.setCurrentFile is just a regular class method.
> Given that it seems connect() takes only one argument (or two if you count
> the signal), this is somewhat perplexing. Additionally, the bug is not
> present when running with PyQt. I assume PySide is doing some argument
> translation before it makes the call to QObject.connect, and the actual
> error is generated during that procedure?
> Can anyone think of a situation that could possibly lead to this error?
> The usual disclaimer applies: "this code is so complex that I have not yet
> tried / been able to produce a simple example demonstrating the behavior".
>
> Thanks,
> Luke
> _______________________________________________
> PySide mailing list
> [email protected]
> http://lists.pyside.org/listinfo/pyside
>
>
_______________________________________________
PySide mailing list
[email protected]
http://lists.pyside.org/listinfo/pyside

Reply via email to