[PyQt] QSignalMapper (again)

Phil Thompson phil at riverbankcomputing.com
Sat Feb 9 18:01:32 GMT 2013


On Tue, 05 Feb 2013 14:02:03 +0100, Giuseppe Corbelli
<giuseppe.corbelli at copanitalia.com> wrote:
> We've been about the same subject before, see
> 
>
http://python.6.n6.nabble.com/Error-in-calling-QSignalMapper-bases-td1793973.html
> 
> I'm trying to run pylint on some PyQt (QtCore-only) code and stumbled
into
> http://www.logilab.org/ticket/57299
> 
> Tracked down to trying to access QSignalMapper.__module__
> 
> cowo at cowo:~/devel$ python
> Python 2.7.3 (default, Jan  2 2013, 16:53:07)
> [GCC 4.7.2] on linux2
> Type "help", "copyright", "credits" or "license" for more information.
>  >>> from PyQt4 import QtCore
>  >>> QtCore.QSignalMapper.__module__
> Traceback (most recent call last):
>    File "<stdin>", line 1, in <module>
> TypeError: C++ type 'QWidget*' is not supported as  type
>  >>> from PyQt4 import QtGui
>  >>> QtCore.QSignalMapper.__module__
> 'PyQt4.QtCore'
> 
>  >>QtCore.QT_VERSION
> QtCore.QT_VERSION      QtCore.QT_VERSION_STR
>  >>> QtCore.QT_VERSION_STR
> '4.8.2'
>  >>> QtCore.PYQT_VERSION_STR
> '4.9.6'
> 
> Is it possible to fix this? I just don't know enough of SIP to be of any
> help, 
> sorry.

Should be fixed in tonight's PyQt snapshot.

Thanks,
Phil


More information about the PyQt mailing list