[PyQt] QComboBox: Icons: Error
Chris Giles
chris.g.27 at gmail.com
Thu Jul 17 01:45:13 BST 2008
My application has a QComboBox that contains icons on each line. It worked
fine with (Py)Qt 4.3. I'm now using Qt 4.4.0 and PyQt 4.4.2. I receive the
following error at runtime:
Traceback (most recent call last):
File "./Q7Z.pyw", line 14, in <module>
import Main
File "Main.py", line 52, in <module>
uiMain.setupUi(mwMain)
File
"/media/Exchange/Programming/PyQt4/Q7Z/SVN/SourceForge/trunk/Q7Z/Source/Ui_Main.py",
line 758, in setupUi
self.retranslateUi(Main)
File
"/media/Exchange/Programming/PyQt4/Q7Z/SVN/SourceForge/trunk/Q7Z/Source/Ui_Main.py",
line 804, in retranslateUi
self.cbAlgorithm.addItem(icon,QtGui.QApplication.translate("Main",
"7-Zip", None, QtGui.QApplication.UnicodeUTF8))
NameError: global name 'icon' is not defined
Related issues have been raised both on this mailing list and here:
http://groups.google.com/group/profitpy-discuss/browse_thread/thread/fb579a71c66fecb2.
Will this problem be fixed in time for the PyQt 4.4.3 release?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080717/ccc47e6f/attachment.html
More information about the PyQt
mailing list