Sophie

Sophie

distrib > Mandriva > current > i586 > media > main-updates > by-pkgid > b77dda48f87d4eda8cc559e40c49a652 > files > 159

python-kde4-doc-4.4.5-0.2mdv2010.2.i586.rpm

<HTML>
<HEAD>
<TITLE></TITLE>
</HEAD>
<BODY style="font-size : 10pt;">
<DIV CLASS="NAVHEADER">

<TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" style="font-size : 10pt;">
<TR><TH COLSPAN="3" ALIGN="center">PyKDE4 and QtDesigner</TH></TR>
<TR><TD WIDTH="10%" ALIGN="left" VALIGN="bottom"><A HREF="pykdedocs.html" ACCESSKEY="P">Prev</A></TD>
<TD WIDTH="80%" ALIGN="center" VALIGN="bottom"></TD>
<TD WIDTH="10%" ALIGN="right" VALIGN="bottom"><A HREF="faq.html" ACCESSKEY="N">Next</A></TD>
</TR>
</TABLE><HR ALIGN="LEFT" WIDTH="100%"></DIV>

<h2>pykdeuic4 - Designer Qt .ui file compiler for PyKDE 4</h2>

<p>by Simon Edwards <simon@simonzone.com></p>


<h3>Introduction</h3>
<p>
pykdeuic4 is an enhanced version of pyuic4 which supports KDE4 widgets and
i18n. It compiles Designer Qt .ui files to Python classes. Primary features
or differences compared to pyuic4 are:
</p>
<ul>
<li>Support KDE 4 widgets.</li>
<li>Uses KDE's i18n() function for handling translatable strings.</li>
<li>Generates code to preview the GUI.</li>
</ul>

<h3>Installation</h3>
<p>
Copy kde4.py to <python-install-dir>/site-packages/PyQt4/uic/widget-plugins/
pykdeuic4 should be installed to somewhere on your path, like /usr/bin/.
</p>

<h3>Usage</h3>
<pre>
python pykdeuic4.py MyWindow.ui
</pre>
<p>
will compile the .ui file and print the
output to stdout. Use the -o option to specify a file to put the output in.
</p>
<p>
Use the -e flag to generate extra code which will display the GUI when run.
</p>















<DIV CLASS="NAVFOOTER">
<HR ALIGN="LEFT" WIDTH="100%">
<TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0"  style="font-size : 10pt;">
<TR>
<TD WIDTH="33%" ALIGN="left" VALIGN="top"><A HREF="pykdedocs.html" ACCESSKEY="P">Prev</A></TD>
<TD WIDTH="34%" ALIGN="center" VALIGN="top"><A HREF="toc.html" ACCESSKEY="H">Table of Contents</A></TD>
<TD WIDTH="33%" ALIGN="right" VALIGN="top"><A HREF="faq.html" ACCESSKEY="N">Next</A></TD>
</TR>
<TR>
<TD WIDTH="33%" ALIGN="left" VALIGN="top">pykdedocs</TD>
<TD WIDTH="34%" ALIGN="center" VALIGN="top">&nbsp;</TD>
<TD WIDTH="33%" ALIGN="right" VALIGN="top">FAQ</TD>
</TR>
</TABLE>
</DIV>
</BODY>
</HTML>