1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160
|
<a name="Module:Scientific.TkWidgets"><h1>Module Scientific.TkWidgets</h1></a>
<h1>Submodules:</h1>
<ul><li><a href="Scientific_34.html">Module Scientific.TkWidgets.TkPlotCanvas</a></ul>
<ul><li><a href="Scientific_35.html">Module Scientific.TkWidgets.TkVisualizationCanvas</a></ul>
<hr width=70%>
<a name="Class:Scientific.TkWidgets.FilenameEntry"><h2>Class FilenameEntry: Filename entry widget</h2></a>
<p>Constructor: FilenameEntry(<i>master</i>, <i>text</i>, <i>pattern</i>,
<i>must_exist_flag</i>=1)</p>
<p><dl>
<dt><i>master</i></dt>
<dd><p>
the master widget</p></dd>
<dt><i>text</i></dt>
<dd><p>
the label in front of the filename box</p></dd>
<dt><i>pattern</i></dt>
<dd><p>
the filename matching pattern that determines the
file list in the file selection dialog</p></dd>
<dt><i>must_exists_flag</i></dt>
<dd><p>
allow only names of existing files</p></dd>
</dl>
</p>
<p>A FilenameEntry widget consists of three parts: an identifying
label, a text entry field for the filename, and a button labelled
<tt>browse</tt> which call a file selection dialog box for picking a file
name.
</p>
<b>Methods:</b><br>
<ul>
<li> <b><i>get</i></b>()
<p>Return the current filename. If <i>must_exist_flag</i> is true,
verify that the name refers to an existing file.
Otherwise an error message is displayed and a ValueError is raised.
</p>
</ul>
<hr width=70%>
<a name="Class:Scientific.TkWidgets.FloatEntry"><h2>Class FloatEntry: An entry field for float numbers</h2></a>
<p>Constructor: FloatEntry(<i>master</i>, <i>text</i>, <i>initial</i>=None,
<i>lower</i>=None, <i>upper</i>=None)</p>
<p><dl>
<dt><i>master</i></dt>
<dd><p>
the master widget</p></dd>
<dt><i>text</i></dt>
<dd><p>
the label in front of the entry field</p></dd>
<dt><i>initial</i></dt>
<dd><p>
an optional initial value (default: blank field)</p></dd>
<dt><i>upper</i></dt>
<dd><p>
an optional upper limit for the value</p></dd>
<dt><i>lower</i></dt>
<dd><p>
an optional lower limit for the value</p></dd>
</dl>
</p>
<p>A FloatEntry widget consists of a label followed by a text entry
field.
</p>
<b>Methods:</b><br>
<ul>
<li> <b><i>set</i></b>(<i>value</i>)
<p>Set the value to <i>value</i>.</p>
<li> <b><i>get</i></b>()
<p>Return the current value, verifying that it is a number
and between the specified limits. Otherwise an error message
is displayed and a ValueError is raised.</p>
</ul>
<hr width=70%>
<a name="Class:Scientific.TkWidgets.IntEntry"><h2>Class IntEntry: An entry field for integer numbers</h2></a>
<p>Constructor: IntEntry(<i>master</i>, <i>text</i>, <i>initial</i>=None,
<i>lower</i>=None, <i>upper</i>=None)</p>
<p><dl>
<dt><i>master</i></dt>
<dd><p>
the master widget</p></dd>
<dt><i>text</i></dt>
<dd><p>
the label in front of the entry field</p></dd>
<dt><i>initial</i></dt>
<dd><p>
an optional initial value (default: blank field)</p></dd>
<dt><i>upper</i></dt>
<dd><p>
an optional upper limit for the value</p></dd>
<dt><i>lower</i></dt>
<dd><p>
an optional lower limit for the value</p></dd>
</dl>
</p>
<p>A IntEntry widget consists of a label followed by a text entry
field.
</p>
<b>Methods:</b><br>
<ul>
<li> <b><i>get</i></b>()
<p>Return the current value, verifying that it is an integer
and between the specified limits. Otherwise an error message
is displayed and a ValueError is raised.</p>
</ul>
<hr width=70%>
<a name="Class:Scientific.TkWidgets.ButtonBar"><h2>Class ButtonBar: A horizontal array of buttons</h2></a>
<p>Constructor: ButtonBar(<i>master</i>, <i>left_button_list</i>, <i>right_button_list</i>)</p>
<p><dl>
<dt><i>master</i></dt>
<dd><p>
the master widget</p></dd>
<dt><i>left_button_list</i></dt>
<dd><p>
a list of (text, action) tuples specifying the
buttons on the left-hand side of the button bar</p></dd>
<dt><i>right_button_list</i></dt>
<dd><p>
a list of (text, action) tuples specifying the
buttons on the right-hand side of the button bar
</p></dd>
</dl>
</p>
<hr width=70%>
<a name="Class:Scientific.TkWidgets.StatusBar"><h2>Class StatusBar: A status bar</h2></a>
<p>Constructor: StatusBar(<i>master</i>)</p>
<p><dl>
<dt><i>master</i></dt>
<dd><p>
the master widget</p></dd>
</dl>
</p>
<p>A status bar can be used to inform the user about the status of an
ongoing calculation. A message can be displayed with set() and
removed with clear(). In both cases, the StatusBar object makes
sure that the change takes place immediately. While a message
is being displayed, the cursor form is changed to a watch.
</p>
|