Am 07.02.2011 19:05, schrieb Phil Thompson:
Very wrong. Designer is a factory class for an item in a view. So you need
to create the factory for the view itself, then call the view factory to
create the actual GUI.
...it was just a very basic hack...to learn from error messages...
I am a bit ashamed...
Thanks for this example! I couldnt find anything like this on the web.
You helped me saving a lot of time.
(BTW I've just updated the snapshots to fix a bug so that the above
example will actually work.)
Phil, you are great!!
Thank you very much!
Achim
.......... very slow internet connection.........
I just tested it and it came with another error:
unhandled TypeError
"str() takes at most 1 argument (2 given)"
Datei: /usr/local/lib/python2.6/dist-packages/dip/ui/designer.py, Zeile: 96
(running designer.py:
unhandled ValueError
"Attempted relative import in non-package"
Datei: /usr/local/lib/python2.6/dist-packages/dip/ui/designer.py, Zeile: 23)
BTW:
(running meta-model.py:
unhandled ValueError
"Attempted relative import in non-package"
Datei: /usr/local/lib/python2.6/dist-packages/dip/model/meta_model.py,
Zeile: 21)
_______________________________________________
PyQt mailing list [email protected]
http://www.riverbankcomputing.com/mailman/listinfo/pyqt