[PyQt] QSignalMapper (again)

Giuseppe Corbelli giuseppe.corbelli at copanitalia.com
Tue Feb 5 13:02:03 GMT 2013


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.

-- 
             Giuseppe Corbelli
WASP Software Engineer, Copan Italia S.p.A
Phone: +390303666318  Fax: +390302659932
E-mail: giuseppe.corbelli at copanitalia.com


More information about the PyQt mailing list