[PyKDE] Pyuic generating empty sources or How

Phil Thompson phil at river-bank.demon.co.uk
Sun Sep 8 23:43:02 BST 2002


fede wrote:

> Hi all,
> 
> 	I will bother you because I have this problem:
> 
> I create a form in the qt designer and then
> use pyuic to create the python code and it is empty.
> Only the test code is genereated ( plus comments ) if 
> I use -x switch. : 
> 
> <output>
> # Form implementation generated from reading ui file 'form2.ui'
> #
> # Created: Sun Sep 8 17:02:08 2002
> #      by: The Python User Interface Compiler (pyuic)
> #
> # WARNING! All changes made in this file will be lost!
> 
> 
> import sys
> from qt import *
> 
> 
> if __name__ == '__main__':
>     a = QApplication(sys.argv)
>     QObject.connect(a,SIGNAL('lastWindowClosed()'),a,SLOT('quit()'))
>     w = Form2()
>     a.setMainWidget(w)
>     w.show()
>     a.exec_loop()
> </output>
> 
> Here is some data about my system : 
> 
> pyqt version: 2.5-4
> 
> Python version:
> f at godzuky:~/WorkShop/Devel/python/test/test1_designer$ python -V
> Python 2.1.3
> 
> 
> I found this mail in the list but no answer to it.
> http://www.mail-archive.com/pykde@mats.gmd.de/msg02849.html
> 
> I am new to python and more to pyqt so maybe I am missing something.
> Could someone point me to the right place to read or thing to do, I'll
> be extremely gratefull.
> 
> Thanks in advance, any further data you need, post to me and I'll will 
> answer.


That version of PyQt is over a year old.

Can you send me the .ui file. What version of Qt are you using?

Phil




More information about the PyQt mailing list