⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 index.lxp@lxpwrap=x8401_252ehtm.htm

📁 GUI Programming with Python
💻 HTM
字号:
    <table border="0" cellspacing="0" cellpadding="3" width="100%"><tr><td>    <div align="center" id="bldcontent">      <a href="../default.htm"><img src="../images/opendocs.png" width="63" height="76" border="0"></a>      <br>      <div class="symbol">Your OpenSource Publisher&#153;</div>    </div>      </td></tr></table>    <div align="center" class="author">      	<a href="../products.lxp">Products</a>	&nbsp;|&nbsp;	<a href="../wheretobuy.lxp">Where to buy</a>	&nbsp;|&nbsp;	<a href="../bookstore.lxp">Retailers</a>	&nbsp;|&nbsp;	<a href="../faq.lxp">FAQ</a>	&nbsp;|&nbsp;        <a href="../writeforus.lxp">Write for Us.</a>        &nbsp;|&nbsp;        <a href="#contact">Contact Us.</a>  </div>    <table border="0" cellspacing="3" cellpadding="0" width="100%"><tr><td width="100%">      <div class="content">        <table border="0" cellspacing="2" cellpadding="0" width="100%"><tr><td width="100%">          <div align="center"><H4 CLASS="AUTHOR"><A NAME="AEN5">Boudewijn Rempt</A><br><a href="../../https@secure.linuxports.com/opendocs/default.htm"><img src=odpyqt125.png></a><br>ISBN: 0-97003300-4-4<br><a href="../../https@secure.linuxports.com/opendocs/default.htm">Available from bookstores everywhere or you can order it here.</a><p>You can download the source files for the book <a href="pyqtsrc.tgz">(code / eps) here.</a><hr></div>                    <HTML><HEAD><TITLE>Packaging source</TITLE><METANAME="GENERATOR"CONTENT="Modular DocBook HTML Stylesheet Version 1.72"><LINKREL="HOME"TITLE="GUI Programming with Python: QT Edition"HREF="book1.htm"><LINKREL="UP"TITLE="Delivering your Application"HREF="c8349.htm"><LINKREL="PREVIOUS"TITLE="Delivering your Application"HREF="c8349.htm"><LINKREL="NEXT"TITLE="Starting with distutils."HREF="x8418.htm"></HEAD><BODYCLASS="SECT1"BGCOLOR="#FFFFFF"TEXT="#000000"LINK="#0000FF"VLINK="#840084"ALINK="#0000FF"><DIVCLASS="NAVHEADER"><TABLESUMMARY="Header navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><THCOLSPAN="3"ALIGN="center">GUI Programming with Python: QT Edition</TH></TR><TR><TDWIDTH="10%"ALIGN="left"VALIGN="bottom"><A accesskey="P" href="index.lxp@lxpwrap=c8349_252ehtm.htm">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 26. Delivering your Application</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><A accesskey="N" href="index.lxp@lxpwrap=x8418_252ehtm.htm">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1">Packaging source</A></H1><P>If you merely want to deliver the source      to your PyQt application, you might as well create a nice      package structure. You can zip the source-code up or tar it      down, and deliver it. You'd package the code with a clear README      file that details what settings should be altered in either the      <TTCLASS="FILENAME">.profile</TT> (or <TTCLASS="FILENAME">.bashrc</TT>),      or, for Windows, to add a variable to the environment using the      friendly dialog window Control Panel provides.</P><P>One of those settings will probably be the      PYTHONPATH variable. If the application is divided into several      modules (as <SPANCLASS="APPLICATION">Kalam</SPAN> is), the PYTHONPATH      must include the top-level directory where the source is      installed. It is not a good idea to install application source      into the Python modules directory.</P><DIVCLASS="EXAMPLE"></A><P><B>Example 26-1. README</B></P><PRECLASS="SCREEN">   Kalam - the undocumented, extensible editor.Kalam is an editor written in Python and PyQt as an exampleapplication to accompany the third part of the book "Gui programmingwith Python and Qt", published by OpenDocs.You can extend Kalam with macro's written in Python. See edmund.pyfor an example. Consult either the book, or the file kalamconfig.pyto configure Kalam, using, for instance startup.py.   InstallationIn order to run Kalam, the kalam main directory needs to be on thePython path. On Unix, you can add something like:PYTHONPATH=/path/to/kalam/directory:$PYTHONPATH to .bashrc. OnWindows, you must edit that system variable using the Control Panel.   Requirements:you must have Python (&#62;2.0) and PyQt (&#62;2.4) installed. PyQt dependson sip. You can get Python from www.python.org and PyQt fromwww.thekompany.com.Boudewijn Remptboud@rempt.xs4all.nl      </PRE></DIV><P>This is the easiest way out for you as a      developer. You can also use Python's distutils to create a      source distribution of your application. Since this is the first      step to a binary distribution, it's a good idea to use      distutils, even for source-only distributions.</P></DIV><DIVCLASS="NAVFOOTER"><HRALIGN="LEFT"WIDTH="100%"><TABLESUMMARY="Footer navigation table"WIDTH="100%"BORDER="0"CELLPADDING="0"CELLSPACING="0"><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top"><A accesskey="P" href="index.lxp@lxpwrap=c8349_252ehtm.htm">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><A accesskey="H" href="index.lxp@lxpwrap=book1_252ehtm">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><A accesskey="N" href="index.lxp@lxpwrap=x8418_252ehtm.htm">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Delivering your Application</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><A accesskey="U" href="index.lxp@lxpwrap=c8349_252ehtm.htm">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Starting with distutils.</TD></TR></TABLE></DIV></BODY></HTML>      </td>      </tr>      </table>      </td>    </tr>  </table>      

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -