[PyKDE] file handling

Phil Thompson phil at river-bank.demon.co.uk
Sat Mar 24 10:39:48 GMT 2001


Sharmad Naik wrote:
> 
> Hi,
>         I m new to python and Qt and have generated a form using designer which i want to use with python for generating application.Can anybody give me an idea how to go about it?
>         I want to know how to use uic or its equivalent

If your form design is form.ui then run the following to generate the
python implementation of the form:

pyuic -o form.py form.ui

If you want to test your form, run the following:

pyuic -x -o form.py form.ui
python form.py

The -x flag causes some extra code to be generated to actually
instantiate the form.

Phil




More information about the PyQt mailing list