651 lines
25 KiB
HTML
Executable file
651 lines
25 KiB
HTML
Executable file
<?xml version="1.0" encoding="ascii"?>
|
|
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
|
"DTD/xhtml1-transitional.dtd">
|
|
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
|
<head>
|
|
<title>Scientific.TkWidgets.TkPlotCanvas.PlotCanvas</title>
|
|
<link rel="stylesheet" href="epydoc.css" type="text/css" />
|
|
<script type="text/javascript" src="epydoc.js"></script>
|
|
</head>
|
|
|
|
<body bgcolor="white" text="black" link="blue" vlink="#204080"
|
|
alink="#204080">
|
|
<!-- ==================== NAVIGATION BAR ==================== -->
|
|
<table class="navbar" border="0" width="100%" cellpadding="0"
|
|
bgcolor="#a0c0ff" cellspacing="0">
|
|
<tr valign="middle">
|
|
<!-- Home link -->
|
|
<th> <a
|
|
href="Scientific-module.html">Home</a> </th>
|
|
|
|
<!-- Tree link -->
|
|
<th> <a
|
|
href="module-tree.html">Trees</a> </th>
|
|
|
|
<!-- Index link -->
|
|
<th> <a
|
|
href="identifier-index.html">Indices</a> </th>
|
|
|
|
<!-- Help link -->
|
|
<th> <a
|
|
href="help.html">Help</a> </th>
|
|
|
|
<!-- Project homepage -->
|
|
<th class="navbar" align="right" width="100%">
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><th class="navbar" align="center"
|
|
><a class="navbar" target="_top" href="http://dirac.cnrs-orleans.fr/ScientificPython/">Scientific Python</a></th>
|
|
</tr></table></th>
|
|
</tr>
|
|
</table>
|
|
<table width="100%" cellpadding="0" cellspacing="0">
|
|
<tr valign="top">
|
|
<td width="100%">
|
|
<span class="breadcrumbs">
|
|
<a href="Scientific-module.html">Package Scientific</a> ::
|
|
<a href="Scientific.TkWidgets-module.html">Package TkWidgets</a> ::
|
|
<a href="Scientific.TkWidgets.TkPlotCanvas-module.html">Module TkPlotCanvas</a> ::
|
|
Class PlotCanvas
|
|
</span>
|
|
</td>
|
|
<td>
|
|
<table cellpadding="0" cellspacing="0">
|
|
<!-- hide/show private -->
|
|
<tr><td align="right"><span class="options"
|
|
>[<a href="frames.html" target="_top">frames</a
|
|
>] | <a href="Scientific.TkWidgets.TkPlotCanvas.PlotCanvas-class.html"
|
|
target="_top">no frames</a>]</span></td></tr>
|
|
</table>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- ==================== CLASS DESCRIPTION ==================== -->
|
|
<h1 class="epydoc">Class PlotCanvas</h1><p class="nomargin-top"></p>
|
|
<pre class="base-tree">
|
|
Tkinter.Misc --+
|
|
|
|
|
Tkinter.BaseWidget --+
|
|
|
|
|
Tkinter.Pack --+
|
|
|
|
|
Tkinter.Place --+
|
|
|
|
|
Tkinter.Grid --+
|
|
|
|
|
Tkinter.Widget --+
|
|
|
|
|
Tkinter.Frame --+
|
|
|
|
|
<strong class="uidshort">PlotCanvas</strong>
|
|
</pre>
|
|
|
|
<hr />
|
|
<p>Tk plot widget</p>
|
|
<p>PlotCanvas objects support all operations of Tk widgets.</p>
|
|
|
|
<!-- ==================== NESTED CLASSES ==================== -->
|
|
<a name="section-NestedClasses"></a>
|
|
<table class="summary" border="1" cellpadding="3"
|
|
cellspacing="0" width="100%" bgcolor="white">
|
|
<tr bgcolor="#70b0f0" class="table-header">
|
|
<td align="left" colspan="2" class="table-header">
|
|
<span class="table-header">Nested Classes</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" class="summary">
|
|
<p class="indent-wrapped-lines"><b>Inherited from <code>Tkinter.Misc</code></b>:
|
|
<code><a href="float-class.html">getdouble</a></code>,
|
|
<code><a href="int-class.html">getint</a></code>
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- ==================== INSTANCE METHODS ==================== -->
|
|
<a name="section-InstanceMethods"></a>
|
|
<table class="summary" border="1" cellpadding="3"
|
|
cellspacing="0" width="100%" bgcolor="white">
|
|
<tr bgcolor="#70b0f0" class="table-header">
|
|
<td align="left" colspan="2" class="table-header">
|
|
<span class="table-header">Instance Methods</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td width="15%" align="right" valign="top" class="summary">
|
|
<span class="summary-type"> </span>
|
|
</td><td class="summary">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td><span class="summary-sig"><a href="Scientific.TkWidgets.TkPlotCanvas.PlotCanvas-class.html#__init__" class="summary-sig-name">__init__</a>(<span class="summary-sig-arg">self</span>,
|
|
<span class="summary-sig-arg">master</span>,
|
|
<span class="summary-sig-arg">width</span>,
|
|
<span class="summary-sig-arg">height</span>,
|
|
<span class="summary-sig-arg">background</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">white</code><code class="variable-quote">'</code></span>,
|
|
<span class="summary-sig-arg">font</span>=<span class="summary-sig-default"><code class="variable-quote">'</code><code class="variable-string">-*-helvetica-medium-r-normal--10-*-*-*-*-*-*-*</code><code class="variable-quote">'</code></span>,
|
|
<span class="summary-sig-arg">**attr</span>)</span><br />
|
|
Construct a frame widget with the parent MASTER.</td>
|
|
<td align="right" valign="top">
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="15%" align="right" valign="top" class="summary">
|
|
<span class="summary-type"> </span>
|
|
</td><td class="summary">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td><span class="summary-sig"><a href="Scientific.TkWidgets.TkPlotCanvas.PlotCanvas-class.html#bind" class="summary-sig-name">bind</a>(<span class="summary-sig-arg">self</span>,
|
|
<span class="summary-sig-arg">*args</span>)</span><br />
|
|
Bind to this widget at event SEQUENCE a call to function FUNC.</td>
|
|
<td align="right" valign="top">
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="15%" align="right" valign="top" class="summary">
|
|
<span class="summary-type"> </span>
|
|
</td><td class="summary">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td><span class="summary-sig"><a name="clear"></a><span class="summary-sig-name">clear</span>(<span class="summary-sig-arg">self</span>)</span><br />
|
|
Clear the canvas</td>
|
|
<td align="right" valign="top">
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="15%" align="right" valign="top" class="summary">
|
|
<span class="summary-type"> </span>
|
|
</td><td class="summary">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td><span class="summary-sig"><a href="Scientific.TkWidgets.TkPlotCanvas.PlotCanvas-class.html#draw" class="summary-sig-name">draw</a>(<span class="summary-sig-arg">self</span>,
|
|
<span class="summary-sig-arg">graphics</span>,
|
|
<span class="summary-sig-arg">xaxis</span>=<span class="summary-sig-default">None</span>,
|
|
<span class="summary-sig-arg">yaxis</span>=<span class="summary-sig-default">None</span>)</span><br />
|
|
Draw something on the canvas</td>
|
|
<td align="right" valign="top">
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="15%" align="right" valign="top" class="summary">
|
|
<span class="summary-type"> </span>
|
|
</td><td class="summary">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td><span class="summary-sig"><a name="reconfigure"></a><span class="summary-sig-name">reconfigure</span>(<span class="summary-sig-arg">self</span>,
|
|
<span class="summary-sig-arg">event</span>)</span></td>
|
|
<td align="right" valign="top">
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="15%" align="right" valign="top" class="summary">
|
|
<span class="summary-type"> </span>
|
|
</td><td class="summary">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td><span class="summary-sig"><a name="redraw"></a><span class="summary-sig-name">redraw</span>(<span class="summary-sig-arg">self</span>)</span><br />
|
|
Redraw the most recent canvas contents</td>
|
|
<td align="right" valign="top">
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td width="15%" align="right" valign="top" class="summary">
|
|
<span class="summary-type"> </span>
|
|
</td><td class="summary">
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr>
|
|
<td><span class="summary-sig"><a href="Scientific.TkWidgets.TkPlotCanvas.PlotCanvas-class.html#select" class="summary-sig-name">select</a>(<span class="summary-sig-arg">self</span>,
|
|
<span class="summary-sig-arg">range</span>)</span><br />
|
|
Highlight a range on the x-axis</td>
|
|
<td align="right" valign="top">
|
|
|
|
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" class="summary">
|
|
<p class="indent-wrapped-lines"><b>Inherited from <code>Tkinter.BaseWidget</code></b>:
|
|
<code>destroy</code>
|
|
</p>
|
|
<p class="indent-wrapped-lines"><b>Inherited from <code>Tkinter.Misc</code></b>:
|
|
<code>__getitem__</code>,
|
|
<code>__setitem__</code>,
|
|
<code>__str__</code>,
|
|
<code>after</code>,
|
|
<code>after_cancel</code>,
|
|
<code>after_idle</code>,
|
|
<code>bbox</code>,
|
|
<code>bell</code>,
|
|
<code>bind_all</code>,
|
|
<code>bind_class</code>,
|
|
<code>bindtags</code>,
|
|
<code>cget</code>,
|
|
<code>clipboard_append</code>,
|
|
<code>clipboard_clear</code>,
|
|
<code>clipboard_get</code>,
|
|
<code>colormodel</code>,
|
|
<code>columnconfigure</code>,
|
|
<code>config</code>,
|
|
<code>configure</code>,
|
|
<code>deletecommand</code>,
|
|
<code>event_add</code>,
|
|
<code>event_delete</code>,
|
|
<code>event_generate</code>,
|
|
<code>event_info</code>,
|
|
<code>focus</code>,
|
|
<code>focus_displayof</code>,
|
|
<code>focus_force</code>,
|
|
<code>focus_get</code>,
|
|
<code>focus_lastfor</code>,
|
|
<code>focus_set</code>,
|
|
<code>getboolean</code>,
|
|
<code>getvar</code>,
|
|
<code>grab_current</code>,
|
|
<code>grab_release</code>,
|
|
<code>grab_set</code>,
|
|
<code>grab_set_global</code>,
|
|
<code>grab_status</code>,
|
|
<code>grid_bbox</code>,
|
|
<code>grid_columnconfigure</code>,
|
|
<code>grid_location</code>,
|
|
<code>grid_propagate</code>,
|
|
<code>grid_rowconfigure</code>,
|
|
<code>grid_size</code>,
|
|
<code>grid_slaves</code>,
|
|
<code>image_names</code>,
|
|
<code>image_types</code>,
|
|
<code>keys</code>,
|
|
<code>lift</code>,
|
|
<code>lower</code>,
|
|
<code>mainloop</code>,
|
|
<code>nametowidget</code>,
|
|
<code>option_add</code>,
|
|
<code>option_clear</code>,
|
|
<code>option_get</code>,
|
|
<code>option_readfile</code>,
|
|
<code>pack_propagate</code>,
|
|
<code>pack_slaves</code>,
|
|
<code>place_slaves</code>,
|
|
<code>propagate</code>,
|
|
<code>quit</code>,
|
|
<code>register</code>,
|
|
<code>rowconfigure</code>,
|
|
<code>selection_clear</code>,
|
|
<code>selection_get</code>,
|
|
<code>selection_handle</code>,
|
|
<code>selection_own</code>,
|
|
<code>selection_own_get</code>,
|
|
<code>send</code>,
|
|
<code>setvar</code>,
|
|
<code>size</code>,
|
|
<code>slaves</code>,
|
|
<code>tk_bisque</code>,
|
|
<code>tk_focusFollowsMouse</code>,
|
|
<code>tk_focusNext</code>,
|
|
<code>tk_focusPrev</code>,
|
|
<code>tk_menuBar</code>,
|
|
<code>tk_setPalette</code>,
|
|
<code>tk_strictMotif</code>,
|
|
<code>tkraise</code>,
|
|
<code>unbind</code>,
|
|
<code>unbind_all</code>,
|
|
<code>unbind_class</code>,
|
|
<code>update</code>,
|
|
<code>update_idletasks</code>,
|
|
<code>wait_variable</code>,
|
|
<code>wait_visibility</code>,
|
|
<code>wait_window</code>,
|
|
<code>waitvar</code>,
|
|
<code>winfo_atom</code>,
|
|
<code>winfo_atomname</code>,
|
|
<code>winfo_cells</code>,
|
|
<code>winfo_children</code>,
|
|
<code>winfo_class</code>,
|
|
<code>winfo_colormapfull</code>,
|
|
<code>winfo_containing</code>,
|
|
<code>winfo_depth</code>,
|
|
<code>winfo_exists</code>,
|
|
<code>winfo_fpixels</code>,
|
|
<code>winfo_geometry</code>,
|
|
<code>winfo_height</code>,
|
|
<code>winfo_id</code>,
|
|
<code>winfo_interps</code>,
|
|
<code>winfo_ismapped</code>,
|
|
<code>winfo_manager</code>,
|
|
<code>winfo_name</code>,
|
|
<code>winfo_parent</code>,
|
|
<code>winfo_pathname</code>,
|
|
<code>winfo_pixels</code>,
|
|
<code>winfo_pointerx</code>,
|
|
<code>winfo_pointerxy</code>,
|
|
<code>winfo_pointery</code>,
|
|
<code>winfo_reqheight</code>,
|
|
<code>winfo_reqwidth</code>,
|
|
<code>winfo_rgb</code>,
|
|
<code>winfo_rootx</code>,
|
|
<code>winfo_rooty</code>,
|
|
<code>winfo_screen</code>,
|
|
<code>winfo_screencells</code>,
|
|
<code>winfo_screendepth</code>,
|
|
<code>winfo_screenheight</code>,
|
|
<code>winfo_screenmmheight</code>,
|
|
<code>winfo_screenmmwidth</code>,
|
|
<code>winfo_screenvisual</code>,
|
|
<code>winfo_screenwidth</code>,
|
|
<code>winfo_server</code>,
|
|
<code>winfo_toplevel</code>,
|
|
<code>winfo_viewable</code>,
|
|
<code>winfo_visual</code>,
|
|
<code>winfo_visualid</code>,
|
|
<code>winfo_visualsavailable</code>,
|
|
<code>winfo_vrootheight</code>,
|
|
<code>winfo_vrootwidth</code>,
|
|
<code>winfo_vrootx</code>,
|
|
<code>winfo_vrooty</code>,
|
|
<code>winfo_width</code>,
|
|
<code>winfo_x</code>,
|
|
<code>winfo_y</code>
|
|
</p>
|
|
<p class="indent-wrapped-lines"><b>Inherited from <code>Tkinter.Pack</code></b>:
|
|
<code>forget</code>,
|
|
<code>info</code>,
|
|
<code>pack</code>,
|
|
<code>pack_configure</code>,
|
|
<code>pack_forget</code>,
|
|
<code>pack_info</code>
|
|
</p>
|
|
<p class="indent-wrapped-lines"><b>Inherited from <code>Tkinter.Place</code></b>:
|
|
<code>place</code>,
|
|
<code>place_configure</code>,
|
|
<code>place_forget</code>,
|
|
<code>place_info</code>
|
|
</p>
|
|
<p class="indent-wrapped-lines"><b>Inherited from <code>Tkinter.Grid</code></b>:
|
|
<code>grid</code>,
|
|
<code>grid_configure</code>,
|
|
<code>grid_forget</code>,
|
|
<code>grid_info</code>,
|
|
<code>grid_remove</code>,
|
|
<code>location</code>
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- ==================== CLASS VARIABLES ==================== -->
|
|
<a name="section-ClassVariables"></a>
|
|
<table class="summary" border="1" cellpadding="3"
|
|
cellspacing="0" width="100%" bgcolor="white">
|
|
<tr bgcolor="#70b0f0" class="table-header">
|
|
<td align="left" colspan="2" class="table-header">
|
|
<span class="table-header">Class Variables</span></td>
|
|
</tr>
|
|
<tr>
|
|
<td colspan="2" class="summary">
|
|
<p class="indent-wrapped-lines"><b>Inherited from <code>Tkinter.Misc</code></b>:
|
|
<code>_noarg_</code>
|
|
</p>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
<!-- ==================== METHOD DETAILS ==================== -->
|
|
<a name="section-MethodDetails"></a>
|
|
<table class="details" border="1" cellpadding="3"
|
|
cellspacing="0" width="100%" bgcolor="white">
|
|
<tr bgcolor="#70b0f0" class="table-header">
|
|
<td align="left" colspan="2" class="table-header">
|
|
<span class="table-header">Method Details</span></td>
|
|
</tr>
|
|
</table>
|
|
<a name="__init__"></a>
|
|
<div>
|
|
<table class="details" border="1" cellpadding="3"
|
|
cellspacing="0" width="100%" bgcolor="white">
|
|
<tr><td>
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr valign="top"><td>
|
|
<h3 class="epydoc"><span class="sig"><span class="sig-name">__init__</span>(<span class="sig-arg">self</span>,
|
|
<span class="sig-arg">master</span>,
|
|
<span class="sig-arg">width</span>,
|
|
<span class="sig-arg">height</span>,
|
|
<span class="sig-arg">background</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">white</code><code class="variable-quote">'</code></span>,
|
|
<span class="sig-arg">font</span>=<span class="sig-default"><code class="variable-quote">'</code><code class="variable-string">-*-helvetica-medium-r-normal--10-*-*-*-*-*-*-*</code><code class="variable-quote">'</code></span>,
|
|
<span class="sig-arg">**attr</span>)</span>
|
|
<br /><em class="fname">(Constructor)</em>
|
|
</h3>
|
|
</td><td align="right" valign="top"
|
|
>
|
|
</td>
|
|
</tr></table>
|
|
|
|
<p>Construct a frame widget with the parent MASTER.</p>
|
|
<p>Valid resource names: background, bd, bg, borderwidth, class,
|
|
colormap, container, cursor, height, highlightbackground, highlightcolor,
|
|
highlightthickness, relief, takefocus, visual, width.</p>
|
|
<dl class="fields">
|
|
<dt>Parameters:</dt>
|
|
<dd><ul class="nomargin-top">
|
|
<li><strong class="pname"><code>master</code></strong> - the parent widget</li>
|
|
<li><strong class="pname"><code>width</code></strong> (<code>int</code>) - the initial width of the canvas</li>
|
|
<li><strong class="pname"><code>height</code></strong> (<code>int</code>) - the initial height of the canvas</li>
|
|
<li><strong class="pname"><code>background</code></strong> (<code>str</code>) - the background color</li>
|
|
<li><strong class="pname"><code>font</code></strong> (<code>str</code>) - the font used for the axis labels</li>
|
|
<li><strong class="pname"><code>attr</code></strong> - widget attributes</li>
|
|
<li><strong class="pname"><code>zoom</code></strong> (<code>bool</code>) - a flag that indicates whether interactive zooming (using the left
|
|
mouse button) is enabled; the default is <code>False</code> (no
|
|
zoom)</li>
|
|
<li><strong class="pname"><code>select</code></strong> - enables the user to select a range along the x axis by dragging
|
|
the mouse (with the left button pressed) in the area <b>under</b>
|
|
the x axis. If select is 0, no selection is possible. Otherwise
|
|
the value of select must be a callable object that is called
|
|
whenever the selection changes, with a single argument that can
|
|
be <code>None</code> (no selection) or a tuple containing two x
|
|
values.</li>
|
|
</ul></dd>
|
|
<dt>Overrides:
|
|
Tkinter.BaseWidget.__init__
|
|
</dt>
|
|
</dl>
|
|
</td></tr></table>
|
|
</div>
|
|
<a name="bind"></a>
|
|
<div>
|
|
<table class="details" border="1" cellpadding="3"
|
|
cellspacing="0" width="100%" bgcolor="white">
|
|
<tr><td>
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr valign="top"><td>
|
|
<h3 class="epydoc"><span class="sig"><span class="sig-name">bind</span>(<span class="sig-arg">self</span>,
|
|
<span class="sig-arg">*args</span>)</span>
|
|
</h3>
|
|
</td><td align="right" valign="top"
|
|
>
|
|
</td>
|
|
</tr></table>
|
|
|
|
<p>Bind to this widget at event SEQUENCE a call to function FUNC.</p>
|
|
<p>SEQUENCE is a string of concatenated event patterns. An event pattern
|
|
is of the form <MODIFIER-MODIFIER-TYPE-DETAIL> where MODIFIER is
|
|
one of Control, Mod2, M2, Shift, Mod3, M3, Lock, Mod4, M4, Button1, B1,
|
|
Mod5, M5 Button2, B2, Meta, M, Button3, B3, Alt, Button4, B4, Double,
|
|
Button5, B5 Triple, Mod1, M1. TYPE is one of Activate, Enter, Map,
|
|
ButtonPress, Button, Expose, Motion, ButtonRelease FocusIn, MouseWheel,
|
|
Circulate, FocusOut, Property, Colormap, Gravity Reparent, Configure,
|
|
KeyPress, Key, Unmap, Deactivate, KeyRelease Visibility, Destroy, Leave
|
|
and DETAIL is the button number for ButtonPress, ButtonRelease and DETAIL
|
|
is the Keysym for KeyPress and KeyRelease. Examples are
|
|
<Control-Button-1> for pressing Control and mouse button 1 or
|
|
<Alt-A> for pressing A and the Alt key (KeyPress can be omitted).
|
|
An event pattern can also be a virtual event of the form
|
|
<<AString>> where AString can be arbitrary. This event can be
|
|
generated by event_generate. If events are concatenated they must appear
|
|
shortly after each other.</p>
|
|
<p>FUNC will be called if the event sequence occurs with an instance of
|
|
Event as argument. If the return value of FUNC is "break" no
|
|
further bound function is invoked.</p>
|
|
<p>An additional boolean parameter ADD specifies whether FUNC will be
|
|
called additionally to the other bound function or whether it will
|
|
replace the previous function.</p>
|
|
<p>Bind will return an identifier to allow deletion of the bound function
|
|
with unbind without memory leak.</p>
|
|
<p>If FUNC or SEQUENCE is omitted the bound function or list of bound
|
|
events are returned.</p>
|
|
<dl class="fields">
|
|
<dt>Overrides:
|
|
Tkinter.Misc.bind
|
|
<dd><em class="note">(inherited documentation)</em></dd>
|
|
</dt>
|
|
</dl>
|
|
</td></tr></table>
|
|
</div>
|
|
<a name="draw"></a>
|
|
<div>
|
|
<table class="details" border="1" cellpadding="3"
|
|
cellspacing="0" width="100%" bgcolor="white">
|
|
<tr><td>
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr valign="top"><td>
|
|
<h3 class="epydoc"><span class="sig"><span class="sig-name">draw</span>(<span class="sig-arg">self</span>,
|
|
<span class="sig-arg">graphics</span>,
|
|
<span class="sig-arg">xaxis</span>=<span class="sig-default">None</span>,
|
|
<span class="sig-arg">yaxis</span>=<span class="sig-default">None</span>)</span>
|
|
</h3>
|
|
</td><td align="right" valign="top"
|
|
>
|
|
</td>
|
|
</tr></table>
|
|
|
|
<p>Draw something on the canvas</p>
|
|
<dl class="fields">
|
|
<dt>Parameters:</dt>
|
|
<dd><ul class="nomargin-top">
|
|
<li><strong class="pname"><code>graphics</code></strong> - the graphics object (<a
|
|
href="Scientific.TkWidgets.TkPlotCanvas.PolyLine-class.html"
|
|
class="link">PolyLine</a>, <a
|
|
href="Scientific.TkWidgets.TkPlotCanvas.PolyMarker-class.html"
|
|
class="link">PolyMarker</a>, or <a
|
|
href="Scientific.TkWidgets.TkPlotCanvas.PlotGraphics-class.html"
|
|
class="link">PlotGraphics</a>) to be drawn</li>
|
|
<li><strong class="pname"><code>xaxis</code></strong> - <code>None</code> (no x-axis), <code>"automatic"</code>
|
|
(automatic scaling), or a pair (x1, x2) defining the range of the
|
|
x-axis</li>
|
|
<li><strong class="pname"><code>yaxis</code></strong> - <code>None</code> (no y-axis), <code>"automatic"</code>
|
|
(automatic scaling), or a pair (y1, y2) defining the range of the
|
|
y-axis</li>
|
|
</ul></dd>
|
|
</dl>
|
|
</td></tr></table>
|
|
</div>
|
|
<a name="select"></a>
|
|
<div>
|
|
<table class="details" border="1" cellpadding="3"
|
|
cellspacing="0" width="100%" bgcolor="white">
|
|
<tr><td>
|
|
<table width="100%" cellpadding="0" cellspacing="0" border="0">
|
|
<tr valign="top"><td>
|
|
<h3 class="epydoc"><span class="sig"><span class="sig-name">select</span>(<span class="sig-arg">self</span>,
|
|
<span class="sig-arg">range</span>)</span>
|
|
</h3>
|
|
</td><td align="right" valign="top"
|
|
>
|
|
</td>
|
|
</tr></table>
|
|
|
|
<p>Highlight a range on the x-axis</p>
|
|
<dl class="fields">
|
|
<dt>Parameters:</dt>
|
|
<dd><ul class="nomargin-top">
|
|
<li><strong class="pname"><code>range</code></strong> - the range on the x-axis to be highlighted. It can be
|
|
<code>None</code> (no selection) or a sequence of two values on
|
|
the x-axis.</li>
|
|
</ul></dd>
|
|
</dl>
|
|
</td></tr></table>
|
|
</div>
|
|
<br />
|
|
<!-- ==================== NAVIGATION BAR ==================== -->
|
|
<table class="navbar" border="0" width="100%" cellpadding="0"
|
|
bgcolor="#a0c0ff" cellspacing="0">
|
|
<tr valign="middle">
|
|
<!-- Home link -->
|
|
<th> <a
|
|
href="Scientific-module.html">Home</a> </th>
|
|
|
|
<!-- Tree link -->
|
|
<th> <a
|
|
href="module-tree.html">Trees</a> </th>
|
|
|
|
<!-- Index link -->
|
|
<th> <a
|
|
href="identifier-index.html">Indices</a> </th>
|
|
|
|
<!-- Help link -->
|
|
<th> <a
|
|
href="help.html">Help</a> </th>
|
|
|
|
<!-- Project homepage -->
|
|
<th class="navbar" align="right" width="100%">
|
|
<table border="0" cellpadding="0" cellspacing="0">
|
|
<tr><th class="navbar" align="center"
|
|
><a class="navbar" target="_top" href="http://dirac.cnrs-orleans.fr/ScientificPython/">Scientific Python</a></th>
|
|
</tr></table></th>
|
|
</tr>
|
|
</table>
|
|
<table border="0" cellpadding="0" cellspacing="0" width="100%%">
|
|
<tr>
|
|
<td align="left" class="footer">
|
|
Generated by Epydoc 3.0 on Tue Oct 28 14:16:08 2008
|
|
</td>
|
|
<td align="right" class="footer">
|
|
<a target="mainFrame" href="http://epydoc.sourceforge.net"
|
|
>http://epydoc.sourceforge.net</a>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
|
|
<script type="text/javascript">
|
|
<!--
|
|
// Private objects are initially displayed (because if
|
|
// javascript is turned off then we want them to be
|
|
// visible); but by default, we want to hide them. So hide
|
|
// them unless we have a cookie that says to show them.
|
|
checkCookie();
|
|
// -->
|
|
</script>
|
|
</body>
|
|
</html>
|