[PyQt] pyqt attribute error
blueeagle2 at gmail.com
blueeagle2 at gmail.com
Wed Oct 26 07:54:35 BST 2011
I tried using "pyuic4 -p -d Dialog-Test.ui" on my Ubuntu 10.04 box to test
the ui I made in QT4 Designer and I get an attribute error. It is quite
large so I just included the traceback lines. It appears to have something
to do with the KLed. Does anyone know how to fix this error.
Traceback (most recent call last):
File "/usr/lib/pymodules/python2.6/PyQt4/uic/port_v2/invoke.py", line 12,
in invoke
exit_status = driver.invoke()
File "/usr/lib/pymodules/python2.6/PyQt4/uic/driver.py", line 35, in
invoke
return self._preview()
File "/usr/lib/pymodules/python2.6/PyQt4/uic/driver.py", line 49, in
_preview
widget = loadUi(self._ui_file)
File "/usr/lib/pymodules/python2.6/PyQt4/uic/__init__.py", line 177, in
loadUi
return DynamicUILoader().loadUi(uifile, baseinstance)
File "/usr/lib/pymodules/python2.6/PyQt4/uic/Loader/loader.py", line 21,
in loadUi
return self.parse(filename)
File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 813, in
parse
actor(elem)
File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 661, in
createUserInterface
self.traverseWidgetTree(elem)
File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 639, in
traverseWidgetTree
handler(self, child)
File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 163, in
createWidget
self.stack.push(self.setupObject(widgetClass(elem), parent, elem))
File "/usr/lib/pymodules/python2.6/PyQt4/uic/uiparser.py", line 136, in
setupObject
self.wprops.setProperties(obj, branch)
File "/usr/lib/pymodules/python2.6/PyQt4/uic/properties.py", line 345, in
setProperties
prop_value = self.convert(prop, widget)
File "/usr/lib/pymodules/python2.6/PyQt4/uic/properties.py", line 310, in
convert
return func(prop[0], **args)
File "/usr/lib/pymodules/python2.6/PyQt4/uic/properties.py", line 74, in
_enum
return self._pyEnumMember(prop.text)
File "/usr/lib/pymodules/python2.6/PyQt4/uic/properties.py", line 53, in
_pyEnumMember
return getattr(getattr(QtGui, prefix), membername)
AttributeError: 'module' object has no attribute 'KLed'
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20111025/d7f143e8/attachment.html>
More information about the PyQt
mailing list