[python-nl] qt4-designer

Rob Hooft rob at hooft.net
Sun Aug 12 11:06:48 CEST 2007


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wichert Akkerman wrote:
> frankje wrote:
>> hallo,
>>
>> Ik ben net begonnen met qt4-designer en python, en bij het volgende
>> oefenprogje van de site: http://www.rkblog.rk.edu.pl/w/p/introduction-pyqt4/
>> krijg ik bij het runnen de volgende fout:
>>
>> frank at ubuntu:~/python$ python test.py
>> Traceback (most recent call last):
>>   File "test.py", line 4, in <module>
>>     from test_ui import Ui_Form
>>   File "/home/frank/python/test_ui.py", line 1
>>     <ui version="4.0" >
>>     ^
>> SyntaxError: invalid syntax
>> frank at ubuntu:~/python$ 
>>
>>
>> Wat doe ik verkeerd?
> 
> Dat is een XML file, geen python file.

Dan zou hij .ui moeten heten, en kan "pyuic" worden gebruikt om deze om
te zetten in een echte .py file.

Rob

- --
Rob W.W. Hooft  ||  rob at hooft.net  ||  http://www.hooft.net/people/rob/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFGvs2oH7J/Cv8rb3QRAj6QAKCgIP1gg5GFnOuZtRrRZ2Y2GM4W2QCbBTNd
6/VZqi0kBIefv4QzCLW2LLE=
=D2Xl
-----END PGP SIGNATURE-----


More information about the Python-nl mailing list