[PyKDE] [PATCH] Exception when passing baseinstance to
uic.loadUi(examples/pyuic/load_ui2.py)
Matt Newell
newellm at blur.com
Wed Oct 11 18:11:51 BST 2006
Patch to fix the problem is attached.
Matt
Error Message -
newellm at obsidian:/mnt/storage/blur/cpp/lib/PyQt4/examples/pyuic$ ./load_ui2.py
Traceback (most recent call last):
File "./load_ui2.py", line 19, in ?
widget = DemoImpl()
File "./load_ui2.py", line 10, in __init__
uic.loadUi("demo.ui", self)
File "/usr/lib/python2.4/site-packages/PyQt4/uic/__init__.py", line 91, in
loadUi
return loader.DynamicUILoader().loadUi(uifile, baseinstance)
File "/usr/lib/python2.4/site-packages/PyQt4/uic/Loader/loader.py", line 25,
in loadUi
return self.parse(filename)
File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 507, in
parse
actor(elem)
File "/usr/lib/python2.4/site-packages/PyQt4/uic/uiparser.py", line 365, in
createUserInterface
self.toplevelWidget = self.createToplevelWidget(cname, wname)
File "/usr/lib/python2.4/site-packages/PyQt4/uic/Loader/loader.py", line 15,
in createToplevelWidget
if not isinstance(self.toplevelInst, self.wdb[classname]):
TypeError: unsubscriptable object
-------------- next part --------------
A non-text attachment was scrubbed...
Name: pyuic.diff
Type: text/x-diff
Size: 1911 bytes
Desc: not available
Url : http://www.riverbankcomputing.com/pipermail/pyqt/attachments/20061011/03b606b3/pyuic.bin
More information about the PyQt
mailing list