---
name: "pyuic"
section: "1"
platform: "linux"
package: "pyqt-tools"
version: "3.18.1-4"
release: "Debian 6.0 (Squeeze)"
platforms: ["linux"]
url: "https://new.carta.tech/pyuic"
---

# pyuic(1)

Qt user interface compiler for Python

## NAME

pyuic - Qt user interface compiler for Python

## SYNOPSIS

**pyuic** \[options\] \<uifile\>

## DESCRIPTION

This page documents the **Python User Interface Compiler** for the Qt GUI application framework. The **pyuic** reads a user interface definition file (.ui) in XML as generated by Qt Designer and creates corresponding Python module.

Generate implementation:\
 	***pyuic \[options\]** \<uifile\>*\

Generate image collection:\
 	***pyuic \[options\] -embed** \<project\> \<image1\> \<image2\> \<image3\> **...***\
\
         *\<project\>*:       project name\
         *\<image\[1..n\]\>*:   image files\

Generate subclass implementation:\
 	***pyuic \[options\] -subimpl \<classname\>** \<uifile\>*\
\
         *\<classname\>*:      name of the subclass to generate

## GENERAL OPTIONS

- *-o file*

  Write output to *file* rather than to stdout.

- *-p indent*

  Set the Python *indent* in spaces (0 to use a tab)

- *-tr func*

  Use  *func(...)* rather than tr(...) for i18n.

- *-x*

  Generate extra code to test the class

- *-test*

  Generate extra code to test but not display the class

- *-version*

  Display version of pyuic

- *-help*

  Display this information

## SEE ALSO

[**uic**(1)](/uic/1.md)

**http://www.trolltech.com/**

**http://www.riverbankcomputing.co.uk/**

## AUTHOR

This manual page was written by Ricardo J. Cárdenes Medina for the Debian GNU/Linux System (but may be used by others), based on Trolltech's \<info@trolltech.com\> manual page for uic
