[PyQt] pyuic4 bug
Iván García
capiscuas at gmail.com
Fri Jul 4 18:55:29 BST 2008
yen at yen-laptop:~/workspace/subdownloader/gui$ pyuic4 --version
Python User Interface Compiler 4.4.3-snapshot-20080627 for Qt version 4.4.0
yen at yen-laptop:~/workspace/subdownloader/gui$ pyuic4 about.ui -d
# -*- coding: utf-8 -*-
# Form implementation generated from reading ui file 'about.ui'
#
# Created: Sat Jul 5 01:50:53 2008
# by: PyQt4 UI code generator 4.4.3-snapshot-20080627
#
# WARNING! All changes made in this file will be lost!
PyQt4.uic.uiparser: UI version is 4.0
PyQt4.uic.uiparser: uiname is AboutDialog
from PyQt4 import QtCore, QtGui
class Ui_AboutDialog(object):
def setupUi(self, AboutDialog):
AboutDialog.setObjectName("AboutDialog")
PyQt4.uic.uiparser: toplevel widget is QDialog
PyQt4.uic.properties: setting property windowModality
PyQt4.uic.properties: WindowModal
AboutDialog.setWindowModality(QtCore.Qt.WindowModal)
PyQt4.uic.properties: setting property geometry
AboutDialog.resize(400, 400)
PyQt4.uic.properties: setting property sizePolicy
sizePolicy = QtGui.QSizePolicy(QtGui.QSizePolicy.Preferred,
QtGui.QSizePolicy.Maximum)
sizePolicy.setHorizontalStretch(0)
sizePolicy.setVerticalStretch(0)
sizePolicy.setHeightForWidth(AboutDialog.sizePolicy().hasHeightForWidth())
AboutDialog.setSizePolicy(sizePolicy)
PyQt4.uic.properties: setting property minimumSize
AboutDialog.setMinimumSize(QtCore.QSize(400, 400))
PyQt4.uic.properties: setting property maximumSize
AboutDialog.setMaximumSize(QtCore.QSize(400, 600))
PyQt4.uic.properties: setting property windowTitle
PyQt4.uic.properties: setting property autoFillBackground
AboutDialog.setAutoFillBackground(False)
PyQt4.uic.uiparser: push QDialog AboutDialog
self.vboxlayout = QtGui.QVBoxLayout(AboutDialog)
self.vboxlayout.setObjectName("vboxlayout")
PyQt4.uic.uiparser: push QVBoxLayout vboxlayout
spacerItem = QtGui.QSpacerItem(20, 16,
QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Fixed)
self.vboxlayout.addItem(spacerItem)
Traceback (most recent call last):
File "/usr/lib/python2.5/site-packages/PyQt4/uic/pyuic.py", line 73,
in <module>
options.indent, options.pyqt3_wrapper)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/pyuic.py", line 28,
in generateUi
uic.compileUi(uifname, pyfile, execute, indent, pyqt3_wrapper)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/__init__.py", line
66, in compileUi
winfo = compiler.UICompiler().compileUi(uifile, pyfile)
File
"/usr/lib/python2.5/site-packages/PyQt4/uic/Compiler/compiler.py", line
67, in compileUi
w = self.parse(input_stream)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line
667, in parse
actor(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line
526, in createUserInterface
self.traverseWidgetTree(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line
504, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line
320, in createLayout
self.traverseWidgetTree(elem)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line
504, in traverseWidgetTree
handler(self, child)
File "/usr/lib/python2.5/site-packages/PyQt4/uic/uiparser.py", line
425, in handleItem
self.item_nr += 1
AttributeError: 'UICompiler' object has no attribute 'item_nr'
This errors doesn't happen in earlier versions, like 4.4.2
-------------- next part --------------
A non-text attachment was scrubbed...
Name: about.ui
Type: application/x-designer
Size: 14174 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20080704/61e7353a/about-0001.bin
More information about the PyQt
mailing list