index.lxp@lxpwrap=c271_252ehtm.htm

来自「GUI Programming with Python」· HTM 代码 · 共 328 行

HTM
328
字号
    <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>Installation</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="Introduction to the BlackAdder IDE"HREF="p266.htm"><LINKREL="PREVIOUS"TITLE="Introduction to the BlackAdder IDE"HREF="p266.htm"><LINKREL="NEXT"TITLE="Installing       sip and PyQt without BlackAdder"HREF="x327.htm"></HEAD><BODYCLASS="CHAPTER"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=p266_252ehtm.htm">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><A accesskey="N" href="index.lxp@lxpwrap=x327_252ehtm.htm">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="CHAPTER"><H1>Chapter 2. Installation</A></H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT><A href="index.lxp@lxpwrap=c271_252ehtm.htm#AEN277">Installing BlackAdder</A></DT><DT><A href="index.lxp@lxpwrap=x327_252ehtm.htm">Installing       sip and PyQt without BlackAdder</A></DT></DL></DIV><P>In this chapter I briefly describe how to    install BlackAdder on Windows and Linux. After that, compiling    PyQt from source is described in a little more detail.</P><P>Of course, a book generally has a longer life    than a certain version of a software package, so installation    details might have changed between time of writing and time of    buying&#8212;so don't forget to read the README files!</P><DIVCLASS="SECT1"><H1CLASS="SECT1">Installing BlackAdder</A></H1><P>PyQt can be used on Windows, Unix/X11 and      soon OS X, but BlackAdder is only available for Windows and      Unix/X11 (due to licensing restrictions).</P><DIVCLASS="SECT2"><H2CLASS="SECT2">Windows</A></H2><P>To install BlackAdder on Windows you need the following components:</P><P></P><UL><LI><P>Python. (Be careful to choose            the version of Python that is right for your version of            BlackAdder.)</P></LI><LI><P>BlackAdder.</P></LI><LI><P>The BlackAdder Qt module.</P></LI><LI><P>And eventually, the Egenix MX ODBC module, if you want to do database work.</P></LI></UL><P>Now it's simply a matter of installing        the components, one after another. Every component is provided        in a comfortable Windows installer package.</P><DIVCLASS="MEDIAOBJECT"><P><DIVCLASS="CAPTION"><P><SPANCLASS="APPLICATION">Installing                BlackAdder</SPAN></P></DIV></P></DIV><P>BlackAdder will now be ready to run        &#8212; a friendly icon has appeared on your desktop, just        begging to be clicked.</P></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2">Linux</A></H2><P>There are rpm packages for a lot of        distributions: Mandrake, RedHat and SuSE. Additionally, there        is a .tgz package for Slackware.</P><P>Installing BlackAdder does not differ        from installing any other package for your favorite        distribution &#8212; you can use a fancy gui like        <SPANCLASS="APPLICATION">KPackage</SPAN>, or type </P><PRECLASS="SCREEN">boud@calcifer:~/tmp &#62; rpm --install BA-personal-1.0Beta3-1_tkc_suse71.i386.rpm      </PRE><P>on the command line, if you're        installing the 3.1 beta for SuSE Linux. The actual name of the        rpm will vary, of course.</P><DIVCLASS="MEDIAOBJECT"><P><DIVCLASS="CAPTION"><P><SPANCLASS="APPLICATION">KPackage with the                BlackAdder rpm</SPAN></P></DIV></P></DIV><P>Additionally, you might want to set two        environment variables in your <TTCLASS="FILENAME">.bashrc</TT>        file. Installing BlackAdder and Python in the default location        isn't necessary, but if you deviate from the standard        BlackAdder installation directory, you need to set the        following variables.</P><PRECLASS="SCREEN">export BLACKADDERDIR=/usr/lib/BlackAdder exportBLACKADDERPYTHON=/usr/local/bin/python      </PRE><P>Now, simply typing "ba" on the command        line will start BlackAdder.</P></DIV></DIV></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=p266_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=x327_252ehtm.htm">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Introduction to the BlackAdder IDE</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><A accesskey="U" href="index.lxp@lxpwrap=p266_252ehtm.htm">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Installing       sip and PyQt without BlackAdder</TD></TR></TABLE></DIV></BODY></HTML>      </td>      </tr>      </table>      </td>    </tr>  </table>      

⌨️ 快捷键说明

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