index.lxp@lxpwrap=x61_252ehtm.htm

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

HTM
253
字号
    <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>Conventions</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="Preface"HREF="f26.htm"><LINKREL="PREVIOUS"TITLE="How to read this book"HREF="x52.htm"><LINKREL="NEXT"TITLE="Acknowledgments"HREF="x76.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=x52_252ehtm.htm">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Preface</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><A accesskey="N" href="index.lxp@lxpwrap=x76_252ehtm.htm">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1">Conventions</A></H1><P>Code is always printed in a monospaced        font - like this:      </P><PRECLASS="PROGRAMLISTING">class Test:    def printTest(self):        print self      </PRE><P>This also holds for references to bits        of code in the running text. If I cite a function in the text,        it is done like this: <TTCLASS="FUNCTION">printTest()</TT> &#8212;        i.e., I generally don't quote the parameter list. This makes        it easier to follow the run of the text</P><P>Even though PyQt is a cross-platform        toolkit (and I've tested most of the examples on Windows,        too), all development has been done on two Linux computers: my        laptop &#8216;maldar', and my main system, &#8216;calcifer',        named after one of the main characters in Diana Wynne Jones'        <ICLASS="CITETITLE">Howl's Moving Castle</I>. Because        BlackAdder wasn't ready when I wrote this book, I used XEmacs        and Bash (the command line shell) to create and test all        examples. That's why you will often see prompts in        illustrations, and not so often screenshots of        BlackAdder:</P><PRECLASS="SCREEN">boudewijn@maldar:~/doc/pyqt/ch3 &#62; python sigslot.pyObject with ID 135113236 Got signal: messageObject with ID 135115668 Got signal: messageObject with ID 135318532 Got signal: messageboudewijn@maldar:~/doc/pyqt/ch3 &#62;      </PRE><P>If you are using Windows, you can use a        DOS box to emulate the <SPANCLASS="APPLICATION">Bash</SPAN> shell,        but it won't be quite as convenient.</P><P>Finally, it is a widely-honored        convention in programming literature, and especially in Python        books, to make allusions and puns that are related to the        punny names of the product. By rights I should have filled my        code with witty allusions to the British comedy series        <ICLASS="CITETITLE">Monty Python</I> and        <ICLASS="CITETITLE">BlackAdder</I>. However, excellent and        essential as these are, it's been long years since I last        watched those on the television, and I don't feel quite up to        it. I've done my best, but don't expect too much!</P><P>A note on versions: when I wrote this book        I mostly used the stable 2.x versions of Qt,  but as soon as        betas of Qt 3.x became available, I started integrating        information about its improvements in the text. I will note        wherever one version is different from the other. On the        Opendocs webforum for this book you'll find versions of the        examples both for Qt 2.x and Qt 3.x.</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=x52_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=x76_252ehtm.htm">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">How to read this book</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><A accesskey="U" href="index.lxp@lxpwrap=f26_252ehtm.htm">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Acknowledgments</TD></TR></TABLE></DIV></BODY></HTML>      </td>      </tr>      </table>      </td>    </tr>  </table>      

⌨️ 快捷键说明

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