| 1 | <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
| 2 | <html> |
| 3 | <head> |
| 4 | <link rel="STYLESHEET" href="lib.css" type='text/css' /> |
| 5 | <link rel="SHORTCUT ICON" href="../icons/pyfav.png" type="image/png" /> |
| 6 | <link rel='start' href='../index.html' title='Python Documentation Index' /> |
| 7 | <link rel="first" href="lib.html" title='Python Library Reference' /> |
| 8 | <link rel='contents' href='contents.html' title="Contents" /> |
| 9 | <link rel='index' href='genindex.html' title='Index' /> |
| 10 | <link rel='last' href='about.html' title='About this document...' /> |
| 11 | <link rel='help' href='about.html' title='About this document...' /> |
| 12 | <link rel="next" href="node736.html" /> |
| 13 | <link rel="prev" href="node734.html" /> |
| 14 | <link rel="parent" href="node734.html" /> |
| 15 | <link rel="next" href="node736.html" /> |
| 16 | <meta name='aesop' content='information' /> |
| 17 | <title>16.2.2.1 Basic Widgets</title> |
| 18 | </head> |
| 19 | <body> |
| 20 | <DIV CLASS="navigation"> |
| 21 | <div id='top-navigation-panel' xml:id='top-navigation-panel'> |
| 22 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 23 | <tr> |
| 24 | <td class='online-navigation'><a rel="prev" title="16.2.2 Tix Widgets" |
| 25 | href="node734.html"><img src='../icons/previous.png' |
| 26 | border='0' height='32' alt='Previous Page' width='32' /></A></td> |
| 27 | <td class='online-navigation'><a rel="parent" title="16.2.2 Tix Widgets" |
| 28 | href="node734.html"><img src='../icons/up.png' |
| 29 | border='0' height='32' alt='Up One Level' width='32' /></A></td> |
| 30 | <td class='online-navigation'><a rel="next" title="16.2.2.2 File Selectors" |
| 31 | href="node736.html"><img src='../icons/next.png' |
| 32 | border='0' height='32' alt='Next Page' width='32' /></A></td> |
| 33 | <td align="center" width="100%">Python Library Reference</td> |
| 34 | <td class='online-navigation'><a rel="contents" title="Table of Contents" |
| 35 | href="contents.html"><img src='../icons/contents.png' |
| 36 | border='0' height='32' alt='Contents' width='32' /></A></td> |
| 37 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' |
| 38 | border='0' height='32' alt='Module Index' width='32' /></a></td> |
| 39 | <td class='online-navigation'><a rel="index" title="Index" |
| 40 | href="genindex.html"><img src='../icons/index.png' |
| 41 | border='0' height='32' alt='Index' width='32' /></A></td> |
| 42 | </tr></table> |
| 43 | <div class='online-navigation'> |
| 44 | <b class="navlabel">Previous:</b> |
| 45 | <a class="sectref" rel="prev" href="node734.html">16.2.2 Tix Widgets</A> |
| 46 | <b class="navlabel">Up:</b> |
| 47 | <a class="sectref" rel="parent" href="node734.html">16.2.2 Tix Widgets</A> |
| 48 | <b class="navlabel">Next:</b> |
| 49 | <a class="sectref" rel="next" href="node736.html">16.2.2.2 File Selectors</A> |
| 50 | </div> |
| 51 | <hr /></div> |
| 52 | </DIV> |
| 53 | <!--End of Navigation Panel--> |
| 54 | |
| 55 | <H3><A NAME="SECTION0018221000000000000000"> |
| 56 | 16.2.2.1 Basic Widgets</A> |
| 57 | </H3> |
| 58 | |
| 59 | <P> |
| 60 | <dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> |
| 61 | <td><nobr><b><span class="typelabel">class</span> <tt id='l2h-4845' xml:id='l2h-4845' class="class">Balloon</tt></b>(</nobr></td> |
| 62 | <td><var></var>)</td></tr></table></dt> |
| 63 | <dd> |
| 64 | A <a class="ulink" href="http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixBalloon.htm" |
| 65 | >Balloon</a> |
| 66 | that pops up over a widget to provide help. When the user moves the |
| 67 | cursor inside a widget to which a Balloon widget has been bound, a |
| 68 | small pop-up window with a descriptive message will be shown on the |
| 69 | screen. |
| 70 | </dl> |
| 71 | |
| 72 | <P> |
| 73 | <dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> |
| 74 | <td><nobr><b><span class="typelabel">class</span> <tt id='l2h-4846' xml:id='l2h-4846' class="class">ButtonBox</tt></b>(</nobr></td> |
| 75 | <td><var></var>)</td></tr></table></dt> |
| 76 | <dd> |
| 77 | The <a class="ulink" href="http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixButtonBox.htm" |
| 78 | >ButtonBox</a> |
| 79 | widget creates a box of buttons, such as is commonly used for <code>Ok |
| 80 | Cancel</code>. |
| 81 | </dl> |
| 82 | |
| 83 | <P> |
| 84 | <dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> |
| 85 | <td><nobr><b><span class="typelabel">class</span> <tt id='l2h-4847' xml:id='l2h-4847' class="class">ComboBox</tt></b>(</nobr></td> |
| 86 | <td><var></var>)</td></tr></table></dt> |
| 87 | <dd> |
| 88 | The <a class="ulink" href="http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixComboBox.htm" |
| 89 | >ComboBox</a> |
| 90 | widget is similar to the combo box control in MS Windows. The user can |
| 91 | select a choice by either typing in the entry subwdget or selecting |
| 92 | from the listbox subwidget. |
| 93 | </dl> |
| 94 | |
| 95 | <P> |
| 96 | <dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> |
| 97 | <td><nobr><b><span class="typelabel">class</span> <tt id='l2h-4848' xml:id='l2h-4848' class="class">Control</tt></b>(</nobr></td> |
| 98 | <td><var></var>)</td></tr></table></dt> |
| 99 | <dd> |
| 100 | The <a class="ulink" href="http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixControl.htm" |
| 101 | >Control</a> |
| 102 | widget is also known as the <tt class="class">SpinBox</tt> widget. The user can |
| 103 | adjust the value by pressing the two arrow buttons or by entering the |
| 104 | value directly into the entry. The new value will be checked against |
| 105 | the user-defined upper and lower limits. |
| 106 | </dl> |
| 107 | |
| 108 | <P> |
| 109 | <dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> |
| 110 | <td><nobr><b><span class="typelabel">class</span> <tt id='l2h-4849' xml:id='l2h-4849' class="class">LabelEntry</tt></b>(</nobr></td> |
| 111 | <td><var></var>)</td></tr></table></dt> |
| 112 | <dd> |
| 113 | The <a class="ulink" href="http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixLabelEntry.htm" |
| 114 | >LabelEntry</a> |
| 115 | widget packages an entry widget and a label into one mega widget. It |
| 116 | can be used be used to simplify the creation of ``entry-form'' type of |
| 117 | interface. |
| 118 | </dl> |
| 119 | |
| 120 | <P> |
| 121 | <dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> |
| 122 | <td><nobr><b><span class="typelabel">class</span> <tt id='l2h-4850' xml:id='l2h-4850' class="class">LabelFrame</tt></b>(</nobr></td> |
| 123 | <td><var></var>)</td></tr></table></dt> |
| 124 | <dd> |
| 125 | The <a class="ulink" href="http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixLabelFrame.htm" |
| 126 | >LabelFrame</a> |
| 127 | widget packages a frame widget and a label into one mega widget. To |
| 128 | create widgets inside a LabelFrame widget, one creates the new widgets |
| 129 | relative to the <tt class="member">frame</tt> subwidget and manage them inside the |
| 130 | <tt class="member">frame</tt> subwidget. |
| 131 | </dl> |
| 132 | |
| 133 | <P> |
| 134 | <dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> |
| 135 | <td><nobr><b><span class="typelabel">class</span> <tt id='l2h-4851' xml:id='l2h-4851' class="class">Meter</tt></b>(</nobr></td> |
| 136 | <td><var></var>)</td></tr></table></dt> |
| 137 | <dd> |
| 138 | The <a class="ulink" href="http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixMeter.htm" |
| 139 | >Meter</a> |
| 140 | widget can be used to show the progress of a background job which may |
| 141 | take a long time to execute. |
| 142 | </dl> |
| 143 | |
| 144 | <P> |
| 145 | <dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> |
| 146 | <td><nobr><b><span class="typelabel">class</span> <tt id='l2h-4852' xml:id='l2h-4852' class="class">OptionMenu</tt></b>(</nobr></td> |
| 147 | <td><var></var>)</td></tr></table></dt> |
| 148 | <dd> |
| 149 | The <a class="ulink" href="http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixOptionMenu.htm" |
| 150 | >OptionMenu</a> |
| 151 | creates a menu button of options. |
| 152 | </dl> |
| 153 | |
| 154 | <P> |
| 155 | <dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> |
| 156 | <td><nobr><b><span class="typelabel">class</span> <tt id='l2h-4853' xml:id='l2h-4853' class="class">PopupMenu</tt></b>(</nobr></td> |
| 157 | <td><var></var>)</td></tr></table></dt> |
| 158 | <dd> |
| 159 | The <a class="ulink" href="http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixPopupMenu.htm" |
| 160 | >PopupMenu</a> |
| 161 | widget can be used as a replacement of the <code>tk_popup</code> |
| 162 | command. The advantage of the <tt class="module"><a href="module-Tix.html">Tix</a></tt> <tt class="class">PopupMenu</tt> widget |
| 163 | is it requires less application code to manipulate. |
| 164 | </dl> |
| 165 | |
| 166 | <P> |
| 167 | <dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> |
| 168 | <td><nobr><b><span class="typelabel">class</span> <tt id='l2h-4854' xml:id='l2h-4854' class="class">Select</tt></b>(</nobr></td> |
| 169 | <td><var></var>)</td></tr></table></dt> |
| 170 | <dd> |
| 171 | The <a class="ulink" href="http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixSelect.htm" |
| 172 | >Select</a> |
| 173 | widget is a container of button subwidgets. It can be used to provide |
| 174 | radio-box or check-box style of selection options for the user. |
| 175 | </dl> |
| 176 | |
| 177 | <P> |
| 178 | <dl><dt><table cellpadding="0" cellspacing="0"><tr valign="baseline"> |
| 179 | <td><nobr><b><span class="typelabel">class</span> <tt id='l2h-4855' xml:id='l2h-4855' class="class">StdButtonBox</tt></b>(</nobr></td> |
| 180 | <td><var></var>)</td></tr></table></dt> |
| 181 | <dd> |
| 182 | The <a class="ulink" href="http://tix.sourceforge.net/dist/current/man/html/TixCmd/tixStdButtonBox.htm" |
| 183 | >StdButtonBox</a> |
| 184 | widget is a group of standard buttons for Motif-like dialog boxes. |
| 185 | </dl> |
| 186 | |
| 187 | <P> |
| 188 | |
| 189 | <DIV CLASS="navigation"> |
| 190 | <div class='online-navigation'> |
| 191 | <p></p><hr /> |
| 192 | <table align="center" width="100%" cellpadding="0" cellspacing="2"> |
| 193 | <tr> |
| 194 | <td class='online-navigation'><a rel="prev" title="16.2.2 Tix Widgets" |
| 195 | href="node734.html"><img src='../icons/previous.png' |
| 196 | border='0' height='32' alt='Previous Page' width='32' /></A></td> |
| 197 | <td class='online-navigation'><a rel="parent" title="16.2.2 Tix Widgets" |
| 198 | href="node734.html"><img src='../icons/up.png' |
| 199 | border='0' height='32' alt='Up One Level' width='32' /></A></td> |
| 200 | <td class='online-navigation'><a rel="next" title="16.2.2.2 File Selectors" |
| 201 | href="node736.html"><img src='../icons/next.png' |
| 202 | border='0' height='32' alt='Next Page' width='32' /></A></td> |
| 203 | <td align="center" width="100%">Python Library Reference</td> |
| 204 | <td class='online-navigation'><a rel="contents" title="Table of Contents" |
| 205 | href="contents.html"><img src='../icons/contents.png' |
| 206 | border='0' height='32' alt='Contents' width='32' /></A></td> |
| 207 | <td class='online-navigation'><a href="modindex.html" title="Module Index"><img src='../icons/modules.png' |
| 208 | border='0' height='32' alt='Module Index' width='32' /></a></td> |
| 209 | <td class='online-navigation'><a rel="index" title="Index" |
| 210 | href="genindex.html"><img src='../icons/index.png' |
| 211 | border='0' height='32' alt='Index' width='32' /></A></td> |
| 212 | </tr></table> |
| 213 | <div class='online-navigation'> |
| 214 | <b class="navlabel">Previous:</b> |
| 215 | <a class="sectref" rel="prev" href="node734.html">16.2.2 Tix Widgets</A> |
| 216 | <b class="navlabel">Up:</b> |
| 217 | <a class="sectref" rel="parent" href="node734.html">16.2.2 Tix Widgets</A> |
| 218 | <b class="navlabel">Next:</b> |
| 219 | <a class="sectref" rel="next" href="node736.html">16.2.2.2 File Selectors</A> |
| 220 | </div> |
| 221 | </div> |
| 222 | <hr /> |
| 223 | <span class="release-info">Release 2.4.2, documentation updated on 28 September 2005.</span> |
| 224 | </DIV> |
| 225 | <!--End of Navigation Panel--> |
| 226 | <ADDRESS> |
| 227 | See <i><a href="about.html">About this document...</a></i> for information on suggesting changes. |
| 228 | </ADDRESS> |
| 229 | </BODY> |
| 230 | </HTML> |