[prev in list] [next in list] [prev in thread] [next in thread]
List: pykde
Subject: [PyKDE] image bug re-introduced
From: Kaleb Pederson <kibab () icehouse ! net>
Date: 2003-04-29 21:51:27
[Download RAW message or body]
Here's a section of a pyuic generated file:
# Form implementation generated from reading ui file 'MainInterface.ui'
#
# Created: Tue Apr 29 14:40:12 2003
# by: The PyQt User Interface Compiler (pyuic) 3.6
...
# in the constructor
self.image0 = QPixmap(image0_data)
self.image1 = QPixmap(image1_data)
self.image2 = QPixmap(image2_data)
...
self.fileNewAction = QAction(self,"fileNewAction")
self.fileNewAction.setIconSet(QIconSet(image1))
self.fileOpenAction = QAction(self,"fileOpenAction")
self.fileOpenAction.setIconSet(QIconSet(image2))
...
Here's my version information:
kibab@kibab gui $ pyuic -version
Python User Interface Compiler 3.6 for Qt version 3.1.2
>>> import qt
>>> print qt.qVersion()
3.1.2
>>> print qt.PYQT_VERSION_STR
3.6
It results in:
...
File "/home/kibab/.../MainInterfaceImpl.py", line 76, in __init__
MainInterface.__init__(self,parent,name,fl)
File "/home/kibab/.../MainInterface.py", line 980, in __init__
self.fileNewAction.setIconSet(QIconSet(image1))
NameError: global name 'image1' is not defined
Thanks for adding the version info into the generated file, it makes it much
easier to tell which version of PyQt/pyuic I compiled it with.
--Kaleb
[Attachment #3 (application/pgp-signature)]
_______________________________________________
PyKDE mailing list PyKDE@mats.gmd.de
http://mats.gmd.de/mailman/listinfo/pykde
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic