[PyQt] Attribute 'swap' is missing - e.g. QIcon

Michael Hartung michael at infinite-drive.com
Tue Jul 17 09:24:47 BST 2012


Hi,

After switching to 4.9.4 I can use 'swap' e.g. with QIcon on MacOSX:

self.__majorQIcon.swap(QtGui.QIcon(iconPath))

Before this attribute was not available on MacOSX and on Linux whereas 
it works on Windows all the time.

Updating to 4.9.4 did not help on Linux.

An explanation would be nice...

Thanks in advance!
Michael




More information about the PyQt mailing list