[PyKDE] image bug re-introduced

Kaleb Pederson kibab at icehouse.net
Tue Apr 29 23:53:00 BST 2003


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 at 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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20030429/45a2b424/attachment.bin


More information about the PyQt mailing list