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