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

📄 index.lxp@lxpwrap=x455_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>Toolbars</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="Interface"HREF="c411.htm"><LINKREL="PREVIOUS"TITLE="Interface"HREF="c411.htm"><LINKREL="NEXT"TITLE="Project management"HREF="x545.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=c411_252ehtm.htm">Prev</A></TD><TDWIDTH="80%"ALIGN="center"VALIGN="bottom">Chapter 3. Interface</TD><TDWIDTH="10%"ALIGN="right"VALIGN="bottom"><A accesskey="N" href="index.lxp@lxpwrap=x545_252ehtm.htm">Next</A></TD></TR></TABLE><HRALIGN="LEFT"WIDTH="100%"></DIV><DIVCLASS="SECT1"><H1CLASS="SECT1">Toolbars</A></H1><P>BlackAdder possesses an imposing array of      toolbars. I'd certainly advise you to not emulate this example      in your own application!</P><DIVCLASS="MEDIAOBJECT"><P><DIVCLASS="CAPTION"><P>The BlackAdder collection of toolbars.</P></DIV></P></DIV><P>Most of the toolbars are used when      designing forms, as they represent different widgets and layout      strategies. These widget buttons really belong in a floating      tool palette, but let's gloss over that user interface design      nicety.</P><P>Going from left to right and top to bottom      on the previous image, we encounter the following      toolbars:</P><DIVCLASS="SECT2"><H2CLASS="SECT2">File toolbar</A></H2><P>This toolbar contains buttons that can be        used to create, open and save BlackAdder projects, single        Python scripts and dialog designs. The last two buttons are        used to compile either the current dialog design, or all        dialog designs in the current project. In this case,        compilation means that the XML-based designs are converted to        usable Python code. Running a project also means that all form        designs will be compiled to Python.</P><DIVCLASS="MEDIAOBJECT"><P><DIVCLASS="CAPTION"><P>The file toolbar.</P></DIV></P></DIV></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2">Edit toolbar</A></H2><P>Undo, redo, cut, copy and paste are all fairly      standard functions, and work on both widgets in dialog design      mode, and on text in the editor.</P><DIVCLASS="MEDIAOBJECT"><P><DIVCLASS="CAPTION"><P>The edit toolbar.</P></DIV></P></DIV></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2">Execution toolbar</A></H2><P> This toolbar contains buttons to start      scripts and projects, debug scripts and projects, restart      debugging, continue running while debugging, single stepping,      clear the breakpoints in the currently edited script, clear all      breakpoints set in the whole project, and cancel or stop      debugging.</P><DIVCLASS="MEDIAOBJECT"><P><DIVCLASS="CAPTION"><P>The execution toolbar.</P></DIV></P></DIV></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2">Layout manager toolbar</A></H2><P>On the next row we find the layout        manager toolbar. Again, from left to right, there are buttons        to resize widgets, insert a horizontal, vertical and grid        layout manager, remove the current layout manager and insert a        spacer object (the spacer is the the curious springy        thing).</P><DIVCLASS="MEDIAOBJECT"><P><DIVCLASS="CAPTION"><P>The layout toolbar.</P></DIV></P></DIV></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2">Widgets</A></H2><P>Next follows a set of buttons that insert        display widgets in your design: a textlabel, a picture label,        and LCD number, a line, a progressbar, and finally, a textview        and a more complex textbrowser (this is a small html browser        in itself). These last two buttons are used to insert rich        text widgets.</P><DIVCLASS="MEDIAOBJECT"><P><DIVCLASS="CAPTION"><P>The first widget toolbar.</P></DIV></P></DIV></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2">Help</A></H2><P>The lonely button on the last toolbar of        the second row gives you help if you first click on the        button, and then on the object you want help with. By clicking        it and then subsequently clicking on all toolbar buttons,        you'll discover that I haven't been lying to you in this        section.</P><DIVCLASS="MEDIAOBJECT"><P><DIVCLASS="CAPTION"><P>The help toolbar.</P></DIV></P></DIV></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2">Pointer toolbar</A></H2><P>The first toolbar on the third row has        three buttons. The first resets your cursor to a pointer. This        is useful if you want to select a widget in your design, but        have previously pressed another button. The second allows you        to graphically connect signals and slots between elements on        screen. The last button helps you put all the components of        your design in the right tab order.</P><DIVCLASS="MEDIAOBJECT"><P><DIVCLASS="CAPTION"><P>The pointer toolbar.</P></DIV></P></DIV></DIV><DIVCLASS="SECT2"><H2CLASS="SECT2">More widget toolbars</A></H2><P>The last four toolbars contain more        widgets: pushbutton, toolbutton, radio button and checkbox.        Then we have group box, button group, frame and tab-bar, next        listbox, treeview, iconview  and table. Finally you get        line-editor, spin box, multi-line editor, slider and        dial.</P><DIVCLASS="MEDIAOBJECT"><P><DIVCLASS="CAPTION"><P>The widget toolbars.</P></DIV></P></DIV><P>You can also add your own widgets to the        palette. If you do so, you will discover BlackAdder has given        you a new, and last, button bar.</P></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=c411_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=x545_252ehtm.htm">Next</A></TD></TR><TR><TDWIDTH="33%"ALIGN="left"VALIGN="top">Interface</TD><TDWIDTH="34%"ALIGN="center"VALIGN="top"><A accesskey="U" href="index.lxp@lxpwrap=c411_252ehtm.htm">Up</A></TD><TDWIDTH="33%"ALIGN="right"VALIGN="top">Project management</TD></TR></TABLE></DIV></BODY></HTML>      </td>      </tr>      </table>      </td>    </tr>  </table>      

⌨️ 快捷键说明

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