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

📄 c271.htm

📁 GUI Programming with Python
💻 HTM
字号:
<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"><AHREF="p266.htm"ACCESSKEY="P">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom"></TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><AHREF="x327.htm"ACCESSKEY="N">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="CHAPTER"><H1><ANAME="CH21">Chapter 2. Installation</A></H1><DIVCLASS="TOC"><DL><DT><B>Table of Contents</B></DT><DT><AHREF="c271.htm#AEN277">Installing BlackAdder</A></DT><DT><AHREF="x327.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"><ANAME="AEN277">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"><ANAME="AEN280">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"><ANAME="CH21-INSTALLING-LINUX">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"><AHREF="p266.htm"ACCESSKEY="P">Prev</A></TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="book1.htm"ACCESSKEY="H">Home</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><AHREF="x327.htm"ACCESSKEY="N">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Introduction to the BlackAdder IDE</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><AHREF="p266.htm"ACCESSKEY="U">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Installing       sip and PyQt without BlackAdder</TD></TR></TABLE></DIV></BODY></HTML>

⌨️ 快捷键说明

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