default.htm

来自「GUI Programming with Python」· HTM 代码 · 共 1,254 行 · 第 1/3 页

HTM
1,254
字号
><DT>C-1. <A href="index.lxp@lxpwrap=x8887_252ehtm.htm#AEN8899">C++ access specifiers and sip</A></DT><DT>C-2. <A href="index.lxp@lxpwrap=x9022_252ehtm.htm#AEN9053">Command line options</A></DT><DT>C-3. <A href="index.lxp@lxpwrap=x9022_252ehtm.htm#AEN9208">Macros in Makefile Templates</A></DT><DT>C-4. <A href="index.lxp@lxpwrap=x9571_252ehtm.htm#AEN9608">Flags in member function declaration</A></DT><DT>C-1. <A href="index.lxp@lxpwrap=r9791_252ehtm.htm#AEN9816">Error flags in sipParseArgs()</A></DT><DT>C-2. <A href="index.lxp@lxpwrap=r9791_252ehtm.htm#AEN9848">Format specifiers for                      sipParseArgs()</A></DT></DL></DIV><DIVCLASS="LOT"><DLCLASS="LOT"><DT><B>List of Figures</B></DT><DT>10-1. <A href="index.lxp@lxpwrap=c2591_252ehtm.htm#AEN2605">Qt Inheritance Hierarchy (only the most important classes)</A></DT><DT>10-2. <A href="index.lxp@lxpwrap=c2591_252ehtm.htm#AEN2626">Object Ownership Hierarchy</A></DT><DT>20-1. <A href="index.lxp@lxpwrap=c6996_252ehtm.htm#AEN7095">Playing with <TTCLASS="FUNCTION">eval()</TT></A></DT><DT>20-2. <A href="index.lxp@lxpwrap=c6996_252ehtm.htm#AEN7121">Playing with <TTCLASS="FUNCTION">exec</TT></A></DT><DT>20-3. <A href="index.lxp@lxpwrap=c6996_252ehtm.htm#AEN7149">Playing with      <TTCLASS="FUNCTION">execfile()</TT></A></DT></DL></DIV><DIVCLASS="LOT"><DLCLASS="LOT"><DT><B>List of Examples</B></DT><DT>1-1. <A href="index.lxp@lxpwrap=c88_252ehtm.htm#AEN143">Bootstrapping a Python application</A></DT><DT>6-1. <A href="index.lxp@lxpwrap=x1067_252ehtm.htm#AEN1087">hello1.py &#8212; hello world</A></DT><DT>6-2. <A href="index.lxp@lxpwrap=x1149_252ehtm.htm#AEN1152">hello2.py &#8212; a better hello world</A></DT><DT>6-3. <A href="index.lxp@lxpwrap=x1149_252ehtm.htm#AEN1185">fragment from hello3.py</A></DT><DT>6-4. <A href="index.lxp@lxpwrap=x1149_252ehtm.htm#AEN1197">Fragment from hello5.py</A></DT><DT>6-5. <A href="index.lxp@lxpwrap=x1149_252ehtm.htm#AEN1203">Fragment from hello4.py</A></DT><DT>6-6. <A href="index.lxp@lxpwrap=x1214_252ehtm.htm#AEN1239">frmconnect.py</A></DT><DT>6-7. <A href="index.lxp@lxpwrap=x1214_252ehtm.htm#AEN1248">dlgconnect.py &#8212; the subclass of the generated form</A></DT><DT>7-1. <A href="index.lxp@lxpwrap=c1267_252ehtm.htm#AEN1280">A stupid button which is not reusable</A></DT><DT>7-2. <A href="index.lxp@lxpwrap=c1267_252ehtm.htm#AEN1290">A simple callback system</A></DT><DT>7-3. <A href="index.lxp@lxpwrap=c1267_252ehtm.htm#AEN1326">A central registry of connected widgets</A></DT><DT>7-4. <A href="index.lxp@lxpwrap=x1408_252ehtm.htm#AEN1467">Connecting a signal to a slot</A></DT><DT>7-5. <A href="index.lxp@lxpwrap=x1408_252ehtm.htm#CH6-EXAMPLE-QDIAL">Connection a dial to a label with signals and slots</A></DT><DT>7-6. <A href="index.lxp@lxpwrap=x1408_252ehtm.htm#AEN1535">Python signals and slots</A></DT><DT>7-7. <A href="index.lxp@lxpwrap=x1408_252ehtm.htm#AEN1544">Python signals and slots with arguments</A></DT><DT>7-8. <A href="index.lxp@lxpwrap=x1631_252ehtm.htm#AEN1665">datasource.py &#8212; connecting and disconnecting signals and      slots</A></DT><DT>7-9. <A href="index.lxp@lxpwrap=x1807_252ehtm.htm#AEN1825">An XML parser with signals and slots</A></DT><DT>8-1. <A href="index.lxp@lxpwrap=x2068_252ehtm.htm#AEN2084">qstring1.py &#8212; conversion from        <TTCLASS="CLASSNAME">QString</TT> to a Python string.</A></DT><DT>8-2. <A href="index.lxp@lxpwrap=x2068_252ehtm.htm#AEN2099">qstring2.py - second try of saving a        <TTCLASS="CLASSNAME">QString</TT> to a file</A></DT><DT>8-3. <A href="index.lxp@lxpwrap=x2104_252ehtm.htm#AEN2120">empty.py - feeding zero bytes to a QCString</A></DT><DT>8-4. <A href="index.lxp@lxpwrap=x2104_252ehtm.htm#AEN2158">null.py - empty and null QCStrings and Python        strings</A></DT><DT>8-5. <A href="index.lxp@lxpwrap=x2104_252ehtm.htm#AEN2170">emptyqstring.py - feeding zero bytes to a        QString</A></DT><DT>8-6. <A href="index.lxp@lxpwrap=x2183_252ehtm.htm#AEN2256">Loading an utf-8 encoded text</A></DT><DT>8-7. <A href="index.lxp@lxpwrap=x2183_252ehtm.htm#AEN2272">Building a string from single Unicode            characters</A></DT><DT>8-8. <A href="index.lxp@lxpwrap=x2183_252ehtm.htm#AEN2301">sitecustomize.py &#8212; saving a useful              function from wanton destruction</A></DT><DT>8-9. <A href="index.lxp@lxpwrap=x2183_252ehtm.htm#AEN2308">uniqstring3.py - messing with Unicode strings              using utf-8 as default encoding</A></DT><DT>8-10. <A href="index.lxp@lxpwrap=x2183_252ehtm.htm#AEN2330">uniqstring1.py - coercing Python strings into          and from QStrings</A></DT><DT>8-11. <A href="index.lxp@lxpwrap=x2183_252ehtm.htm#AEN2338">uniqstring2.py - coercing Python strings into and from              QStrings</A></DT><DT>9-1. <A href="index.lxp@lxpwrap=c2341_252ehtm.htm#AEN2367">refs.py - showing object references</A></DT><DT>9-2. <A href="index.lxp@lxpwrap=x2377_252ehtm.htm#AEN2382">circular.py - circululululular references</A></DT><DT>9-3. <A href="index.lxp@lxpwrap=x2420_252ehtm.htm#AEN2429">qtrefs1.py &#8212; about Qt reference counting</A></DT><DT>9-4. <A href="index.lxp@lxpwrap=x2420_252ehtm.htm#AEN2441">qtrefs2.py - keeping a Qt widget alive</A></DT><DT>9-5. <A href="index.lxp@lxpwrap=x2420_252ehtm.htm#AEN2449">qtrefs3.py - Qt parents and children</A></DT><DT>9-6. <A href="index.lxp@lxpwrap=x2420_252ehtm.htm#AEN2477">Eradicating a widget</A></DT><DT>9-7. <A href="index.lxp@lxpwrap=x2420_252ehtm.htm#CH3EXAMPLECHILDREN">children.py - getting the children from a single        parent</A></DT><DT>9-8. <A href="index.lxp@lxpwrap=x2420_252ehtm.htm#AEN2498">Iterating over children</A></DT><DT>9-9. <A href="index.lxp@lxpwrap=x2549_252ehtm.htm#AEN2556">sigslot.py - a simple signals/slots implementation        in Python, following the Observer pattern</A></DT><DT>9-10. <A href="index.lxp@lxpwrap=x2568_252ehtm.htm#AEN2581">Object introspection using Qt</A></DT><DT>9-11. <A href="index.lxp@lxpwrap=x2568_252ehtm.htm#AEN2585">Object introspection using Python</A></DT><DT>10-1. <A href="index.lxp@lxpwrap=x2629_252ehtm.htm#AEN2679">event1.py - handling mouse events in PyQt</A></DT><DT>10-2. <A href="index.lxp@lxpwrap=x2693_252ehtm.htm#AEN2723">action.py - Using a QAction to group data associated with        user commands</A></DT><DT>10-3. <A href="index.lxp@lxpwrap=x2693_252ehtm.htm#AEN2756">fragment from mdi.py - ten little scribbling windows</A></DT><DT>10-4. <A href="index.lxp@lxpwrap=x2765_252ehtm.htm#AEN2778">event2.py - using QWidget to create a custom,        double-buffered drawing widget.</A></DT><DT>10-5. <A href="index.lxp@lxpwrap=x2765_252ehtm.htm#AEN2820">snippet from event3.py - a peach puff drawing          board</A></DT><DT>10-6. <A href="index.lxp@lxpwrap=x2765_252ehtm.htm#AEN2908">fragment from action2.py - You cannot create a            QPixmap before a QApplication</A></DT><DT>10-7. <A href="index.lxp@lxpwrap=x2976_252ehtm.htm#AEN3057">buttons.py - Four pushbuttons saying          &#8216;hello'.</A></DT><DT>10-8. <A href="index.lxp@lxpwrap=x2976_252ehtm.htm#AEN3077">label.py - a label associated with an          edit control</A></DT><DT>10-9. <A href="index.lxp@lxpwrap=x2976_252ehtm.htm#CH2EXAMPLERADIOBUTTONS">radio.py - a group of mutually exclusive          options</A></DT><DT>10-10. <A href="index.lxp@lxpwrap=x2976_252ehtm.htm#AEN3160">listbox.py - A listbox where data can be          associated with an entry</A></DT><DT>10-11. <A href="index.lxp@lxpwrap=x3270_252ehtm.htm#AEN3321">tree.py - building a tree</A></DT><DT>10-12. <A href="index.lxp@lxpwrap=x3410_252ehtm.htm#CH2EXAMPLELAYOUT">layout.py - two box layouts and adding and removing buttons          dynamically to a layout</A></DT><DT>10-13. <A href="index.lxp@lxpwrap=x3410_252ehtm.htm#AEN3578">geometry.py - setting the initial size of an          application</A></DT><DT>10-14. <A href="index.lxp@lxpwrap=x3581_252ehtm.htm#AEN3605">dialogs.py - opening message and default dialogs boxes</A></DT><DT>10-15. <A href="index.lxp@lxpwrap=x3581_252ehtm.htm#AEN3661">fragment from dialogs.py - opening a file dialog</A></DT><DT>10-16. <A href="index.lxp@lxpwrap=x3581_252ehtm.htm#AEN3683">fragment from dialogs.py - opening a font dialog</A></DT><DT>10-17. <A href="index.lxp@lxpwrap=x3581_252ehtm.htm#AEN3706">fragment from dialogs.py - opening a color dialog</A></DT><DT>10-18. <A href="index.lxp@lxpwrap=x3738_252ehtm.htm#AEN3754">from dv_qt.py - using Qt utility        classes</A></DT><DT>10-19. <A href="index.lxp@lxpwrap=x3738_252ehtm.htm#AEN3757">fragment from db_python.py - using Python utility classes</A></DT><DT>10-20. <A href="index.lxp@lxpwrap=x3738_252ehtm.htm#AEN3961">Using QMimeSourceFactory (application.py)</A></DT><DT>10-21. <A href="index.lxp@lxpwrap=x3738_252ehtm.htm#AEN4002">thread1.py &#8212; Python threads without          gui</A></DT><DT>10-22. <A href="index.lxp@lxpwrap=x3738_252ehtm.htm#AEN4008">Python threads and a PyQt gui window</A></DT><DT>11-1. <A href="index.lxp@lxpwrap=x4274_252ehtm.htm#AEN4551">dlgcomplex.py &#8212; a subclass of frmcomplex.py</A></DT><DT>11-2. <A href="index.lxp@lxpwrap=x4274_252ehtm.htm#AEN4596">Setting default values</A></DT><DT>12-1. <A href="index.lxp@lxpwrap=c4631_252ehtm.htm#AEN4672">A simple document-view framework</A></DT><DT>12-2. <A href="index.lxp@lxpwrap=x4760_252ehtm.htm#AEN4767">Scripting an application is easy</A></DT><DT>13-1. <A href="index.lxp@lxpwrap=c4807_252ehtm.htm#AEN4870">Defining a complex toggle action</A></DT><DT>15-1. <A href="index.lxp@lxpwrap=x5339_252ehtm.htm#AEN5356">A testcase for a document manager</A></DT><DT>15-2. <A href="index.lxp@lxpwrap=x5388_252ehtm.htm#AEN5392">The document manager class</A></DT><DT>15-3. <A href="index.lxp@lxpwrap=x5451_252ehtm.htm#AEN5455">The document class</A></DT><DT>15-4. <A href="index.lxp@lxpwrap=x5458_252ehtm.htm#AEN5466">The view class</A></DT><DT>15-5. <A href="index.lxp@lxpwrap=x5469_252ehtm.htm#AEN5477">The application class</A></DT><DT>21-1. <A href="index.lxp@lxpwrap=c7391_252ehtm.htm#AEN7480">typometer.py - A silly type-o-meter that keeps a          running count of how many characters are added to a certain          document and shows a chart of the typerate...</A></DT><DT>21-2. <A href="index.lxp@lxpwrap=x7601_252ehtm.htm#AEN7689">charmap.py - a Unicode character selection        widget</A></DT><DT>22-1. <A href="index.lxp@lxpwrap=x7898_252ehtm.htm#AEN7924">remote.py - remote control application</A></DT><DT>22-2. <A href="index.lxp@lxpwrap=x7898_252ehtm.htm#AEN7931">view.py - the main view of the remote control          application</A></DT><DT>22-3. <A href="index.lxp@lxpwrap=x7898_252ehtm.htm#AEN7940">button.py - the class that implements the pixmapped          buttons</A></DT><DT>22-4. <A href="index.lxp@lxpwrap=x7947_252ehtm.htm#AEN7998">A Qt 2 custom style - a minimalist          implementation of the classic Mac style in PyQt.</A></DT><DT>22-5. <A href="index.lxp@lxpwrap=x7947_252ehtm.htm#AEN8007">Testing styles</A></DT><DT>23-1. <A href="index.lxp@lxpwrap=c8016_252ehtm.htm#AEN8046">Handling drop events</A></DT><DT>23-2. <A href="index.lxp@lxpwrap=x8073_252ehtm.htm#AEN8092">Drag and drop</A></DT><DT>25-1. <A href="index.lxp@lxpwrap=c8212_252ehtm.htm#AEN8337">Installing the translator</A></DT><DT>26-1. <A href="index.lxp@lxpwrap=x8401_252ehtm.htm#AEN8412">README</A></DT><DT>26-2. <A href="index.lxp@lxpwrap=x8418_252ehtm.htm#AEN8442">setup.py - a sample setup script</A></DT><DT>26-3. <A href="index.lxp@lxpwrap=x8418_252ehtm.htm#AEN8505">MANIFEST.in</A></DT><DT>C-1. <A href="index.lxp@lxpwrap=r9791_252ehtm.htm#AEN9929">Interface for                QRegExp::match</A></DT></DL></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">&nbsp;</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top">&nbsp;</TD><TDWIDTH="33%"ALIGN="right"VALIGN="top"><A accesskey="N" href="index.lxp@lxpwrap=f26_252ehtm.htm">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">&nbsp;</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top">&nbsp;</TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Preface</TD></TR></TABLE></DIV></BODY></HTML>      </td>      </tr>      </table>      </td>    </tr>  </table>      

⌨️ 快捷键说明

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