[PyQt] dip error

Phil Thompson phil at riverbankcomputing.com
Tue Feb 8 12:35:00 GMT 2011


On Mon, 07 Feb 2011 19:24:23 +0100, Achim Kisseler
<ak7 at jupiter.uni-freiburg.de> wrote:
> 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

Until I push the latest changes you can fix this by changing "str" to
"unicode".

> (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)

These files aren't intended to be run in isolation.

Phil


More information about the PyQt mailing list