source: sasview/calculatorview/docs/sphinx/html/api/perspectives/calculator/sample_editor.html @ 5f50326

ESS_GUIESS_GUI_DocsESS_GUI_batch_fittingESS_GUI_bumps_abstractionESS_GUI_iss1116ESS_GUI_iss879ESS_GUI_iss959ESS_GUI_openclESS_GUI_orderingESS_GUI_sync_sascalccostrafo411magnetic_scattrelease-4.1.1release-4.1.2release-4.2.2release_4.0.1ticket-1009ticket-1094-headlessticket-1242-2d-resolutionticket-1243ticket-1249ticket885unittest-saveload
Last change on this file since 5f50326 was 5f50326, checked in by Gervaise Alina <gervyh@…>, 13 years ago

edit calculator docs

  • Property mode set to 100644
File size: 194.1 KB
Line 
1
2
3<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
4  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
6
7<html xmlns="http://www.w3.org/1999/xhtml">
8  <head>
9    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
10   
11    <title>sample_editor &mdash; calculatorview 0.1.0 documentation</title>
12   
13    <link rel="stylesheet" href="../../../_static/default.css" type="text/css" />
14    <link rel="stylesheet" href="../../../_static/pygments.css" type="text/css" />
15   
16    <script type="text/javascript">
17      var DOCUMENTATION_OPTIONS = {
18        URL_ROOT:    '../../../',
19        VERSION:     '0.1.0',
20        COLLAPSE_INDEX: false,
21        FILE_SUFFIX: '.html',
22        HAS_SOURCE:  true
23      };
24    </script>
25    <script type="text/javascript" src="../../../_static/jquery.js"></script>
26    <script type="text/javascript" src="../../../_static/underscore.js"></script>
27    <script type="text/javascript" src="../../../_static/doctools.js"></script>
28    <link rel="top" title="calculatorview 0.1.0 documentation" href="../../../index.html" />
29    <link rel="up" title="Reference" href="index.html" />
30    <link rel="next" title="sld_panel" href="sld_panel.html" />
31    <link rel="prev" title="resolution_calculator_panel" href="resolution_calculator_panel.html" /> 
32  </head>
33  <body>
34    <div class="related">
35      <h3>Navigation</h3>
36      <ul>
37        <li class="right" style="margin-right: 10px">
38          <a href="../../../genindex.html" title="General Index"
39             accesskey="I">index</a></li>
40        <li class="right" >
41          <a href="../../../py-modindex.html" title="Python Module Index"
42             >modules</a> |</li>
43        <li class="right" >
44          <a href="sld_panel.html" title="sld_panel"
45             accesskey="N">next</a> |</li>
46        <li class="right" >
47          <a href="resolution_calculator_panel.html" title="resolution_calculator_panel"
48             accesskey="P">previous</a> |</li>
49        <li><a href="../../../index.html">calculatorview 0.1.0 documentation</a> &raquo;</li>
50          <li><a href="index.html" accesskey="U">Reference</a> &raquo;</li> 
51      </ul>
52    </div> 
53
54    <div class="document">
55      <div class="documentwrapper">
56        <div class="bodywrapper">
57          <div class="body">
58           
59  <div class="section" id="sample-editor">
60<h1>sample_editor<a class="headerlink" href="#sample-editor" title="Permalink to this headline">¶</a></h1>
61<div class="section" id="sans-perspectives-calculator-sample-editor">
62<h2><a class="reference internal" href="#module-sans.perspectives.calculator.sample_editor" title="sans.perspectives.calculator.sample_editor"><tt class="xref py py-mod docutils literal"><span class="pre">sans.perspectives.calculator.sample_editor</span></tt></a><a class="headerlink" href="#sans-perspectives-calculator-sample-editor" title="Permalink to this headline">¶</a></h2>
63<span class="target" id="module-sans.perspectives.calculator.sample_editor"></span><dl class="class">
64<dt id="sans.perspectives.calculator.sample_editor.SampleDialog">
65<em class="property">class </em><tt class="descclassname">sans.perspectives.calculator.sample_editor.</tt><tt class="descname">SampleDialog</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog" title="Permalink to this definition">¶</a></dt>
66<dd><p>Bases: <tt class="xref py py-class docutils literal"><span class="pre">wx._windows.Dialog</span></tt></p>
67<dl class="attribute">
68<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.AcceleratorTable">
69<tt class="descname">AcceleratorTable</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.AcceleratorTable" title="Permalink to this definition">¶</a></dt>
70<dd><p>See <cite>GetAcceleratorTable</cite> and <cite>SetAcceleratorTable</cite></p>
71</dd></dl>
72
73<dl class="method">
74<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.AcceptsFocus">
75<tt class="descname">AcceptsFocus</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.AcceptsFocus" title="Permalink to this definition">¶</a></dt>
76<dd><p>Can this window have focus?</p>
77</dd></dl>
78
79<dl class="method">
80<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.AcceptsFocusFromKeyboard">
81<tt class="descname">AcceptsFocusFromKeyboard</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.AcceptsFocusFromKeyboard" title="Permalink to this definition">¶</a></dt>
82<dd><p>Can this window be given focus by keyboard navigation? if not, the
83only way to give it focus (provided it accepts it at all) is to click
84it.</p>
85</dd></dl>
86
87<dl class="method">
88<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.AddChild">
89<tt class="descname">AddChild</tt><big>(</big><em>self</em>, <em>Window child</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.AddChild" title="Permalink to this definition">¶</a></dt>
90<dd><p>Adds a child window. This is called automatically by window creation
91functions so should not be required by the application programmer.</p>
92</dd></dl>
93
94<dl class="method">
95<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.AddPendingEvent">
96<tt class="descname">AddPendingEvent</tt><big>(</big><em>self</em>, <em>Event event</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.AddPendingEvent" title="Permalink to this definition">¶</a></dt>
97<dd></dd></dl>
98
99<dl class="method">
100<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.AdjustForLayoutDirection">
101<tt class="descname">AdjustForLayoutDirection</tt><big>(</big><em>self</em>, <em>int x</em>, <em>int width</em>, <em>int widthTotal</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.AdjustForLayoutDirection" title="Permalink to this definition">¶</a></dt>
102<dd><p>Mirror coordinates for RTL layout if this window uses it and if the
103mirroring is not done automatically like Win32.</p>
104</dd></dl>
105
106<dl class="attribute">
107<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.AffirmativeId">
108<tt class="descname">AffirmativeId</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.AffirmativeId" title="Permalink to this definition">¶</a></dt>
109<dd><p>See <cite>GetAffirmativeId</cite> and <cite>SetAffirmativeId</cite></p>
110</dd></dl>
111
112<dl class="method">
113<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.AssociateHandle">
114<tt class="descname">AssociateHandle</tt><big>(</big><em>self</em>, <em>long handle</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.AssociateHandle" title="Permalink to this definition">¶</a></dt>
115<dd><p>Associate the window with a new native handle</p>
116</dd></dl>
117
118<dl class="attribute">
119<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.AutoLayout">
120<tt class="descname">AutoLayout</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.AutoLayout" title="Permalink to this definition">¶</a></dt>
121<dd><p>See <cite>GetAutoLayout</cite> and <cite>SetAutoLayout</cite></p>
122</dd></dl>
123
124<dl class="attribute">
125<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.BackgroundColour">
126<tt class="descname">BackgroundColour</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.BackgroundColour" title="Permalink to this definition">¶</a></dt>
127<dd><p>See <cite>GetBackgroundColour</cite> and <cite>SetBackgroundColour</cite></p>
128</dd></dl>
129
130<dl class="attribute">
131<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.BackgroundStyle">
132<tt class="descname">BackgroundStyle</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.BackgroundStyle" title="Permalink to this definition">¶</a></dt>
133<dd><p>See <cite>GetBackgroundStyle</cite> and <cite>SetBackgroundStyle</cite></p>
134</dd></dl>
135
136<dl class="attribute">
137<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.BestSize">
138<tt class="descname">BestSize</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.BestSize" title="Permalink to this definition">¶</a></dt>
139<dd><p>See <cite>GetBestSize</cite></p>
140</dd></dl>
141
142<dl class="attribute">
143<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.BestVirtualSize">
144<tt class="descname">BestVirtualSize</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.BestVirtualSize" title="Permalink to this definition">¶</a></dt>
145<dd><p>See <cite>GetBestVirtualSize</cite></p>
146</dd></dl>
147
148<dl class="method">
149<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Bind">
150<tt class="descname">Bind</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Bind" title="Permalink to this definition">¶</a></dt>
151<dd><p>Bind an event to an event handler.</p>
152<table class="docutils field-list" frame="void" rules="none">
153<col class="field-name" />
154<col class="field-body" />
155<tbody valign="top">
156<tr class="field-odd field"><th class="field-name">Parameters:</th><td class="field-body"><ul class="first last simple">
157<li><strong>event</strong> &#8211; One of the EVT_* objects that specifies the
158type of event to bind,</li>
159<li><strong>handler</strong> &#8211; A callable object to be invoked when the
160event is delivered to self.  Pass None to
161disconnect an event handler.</li>
162<li><strong>source</strong> &#8211; Sometimes the event originates from a
163different window than self, but you still
164want to catch it in self.  (For example, a
165button event delivered to a frame.)  By
166passing the source of the event, the event
167handling system is able to differentiate
168between the same event type from different
169controls.</li>
170<li><strong>id</strong> &#8211; Used to spcify the event source by ID instead
171of instance.</li>
172<li><strong>id2</strong> &#8211; Used when it is desirable to bind a handler
173to a range of IDs, such as with EVT_MENU_RANGE.</li>
174</ul>
175</td>
176</tr>
177</tbody>
178</table>
179</dd></dl>
180
181<dl class="attribute">
182<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Border">
183<tt class="descname">Border</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Border" title="Permalink to this definition">¶</a></dt>
184<dd><p>See <cite>GetBorder</cite></p>
185</dd></dl>
186
187<dl class="attribute">
188<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ButtonSizerFlags">
189<tt class="descname">ButtonSizerFlags</tt><em class="property"> = 32926</em><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ButtonSizerFlags" title="Permalink to this definition">¶</a></dt>
190<dd></dd></dl>
191
192<dl class="method">
193<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.CacheBestSize">
194<tt class="descname">CacheBestSize</tt><big>(</big><em>self</em>, <em>Size size</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.CacheBestSize" title="Permalink to this definition">¶</a></dt>
195<dd><p>Cache the best size so it doesn&#8217;t need to be calculated again, (at least until
196some properties of the window change.)</p>
197</dd></dl>
198
199<dl class="method">
200<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.CanSetTransparent">
201<tt class="descname">CanSetTransparent</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.CanSetTransparent" title="Permalink to this definition">¶</a></dt>
202<dd><p>Returns <tt class="docutils literal"><span class="pre">True</span></tt> if the platform supports setting the transparency for
203this window.  Note that this method will err on the side of caution,
204so it is possible that this will return <tt class="docutils literal"><span class="pre">False</span></tt> when it is in fact
205possible to set the transparency.</p>
206<p>NOTE: On X-windows systems the X server must have the composite
207extension loaded, and there must be a composite manager program (such
208as xcompmgr) running.</p>
209</dd></dl>
210
211<dl class="method">
212<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.CaptureMouse">
213<tt class="descname">CaptureMouse</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.CaptureMouse" title="Permalink to this definition">¶</a></dt>
214<dd><p>Directs all mouse input to this window. Call wx.Window.ReleaseMouse to
215release the capture.</p>
216<p>Note that wxWindows maintains the stack of windows having captured the
217mouse and when the mouse is released the capture returns to the window
218which had had captured it previously and it is only really released if
219there were no previous window. In particular, this means that you must
220release the mouse as many times as you capture it, unless the window
221receives the <cite>wx.MouseCaptureLostEvent</cite> event.</p>
222<p>Any application which captures the mouse in the beginning of some
223operation <em>must</em> handle <cite>wx.MouseCaptureLostEvent</cite> and cancel this
224operation when it receives the event. The event handler must not
225recapture mouse.</p>
226</dd></dl>
227
228<dl class="attribute">
229<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Caret">
230<tt class="descname">Caret</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Caret" title="Permalink to this definition">¶</a></dt>
231<dd><p>See <cite>GetCaret</cite> and <cite>SetCaret</cite></p>
232</dd></dl>
233
234<dl class="method">
235<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Center">
236<tt class="descname">Center</tt><big>(</big><em>self</em>, <em>int direction=BOTH</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Center" title="Permalink to this definition">¶</a></dt>
237<dd><p>Centers the window.  The parameter specifies the direction for
238centering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
239also include wx.CENTER_ON_SCREEN flag if you want to center the window
240on the entire screen and not on its parent window.  If it is a
241top-level window and has no parent then it will always be centered
242relative to the screen.</p>
243</dd></dl>
244
245<dl class="method">
246<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.CenterOnParent">
247<tt class="descname">CenterOnParent</tt><big>(</big><em>self</em>, <em>int dir=BOTH</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.CenterOnParent" title="Permalink to this definition">¶</a></dt>
248<dd><p>Center with respect to the the parent window</p>
249</dd></dl>
250
251<dl class="method">
252<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.CenterOnScreen">
253<tt class="descname">CenterOnScreen</tt><big>(</big><em>self</em>, <em>int dir=BOTH</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.CenterOnScreen" title="Permalink to this definition">¶</a></dt>
254<dd><p>Center the window on screen</p>
255</dd></dl>
256
257<dl class="method">
258<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Centre">
259<tt class="descname">Centre</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Centre" title="Permalink to this definition">¶</a></dt>
260<dd><p>Center(self, int direction=BOTH)</p>
261<p>Centers the window.  The parameter specifies the direction for
262centering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may
263also include wx.CENTER_ON_SCREEN flag if you want to center the window
264on the entire screen and not on its parent window.  If it is a
265top-level window and has no parent then it will always be centered
266relative to the screen.</p>
267</dd></dl>
268
269<dl class="method">
270<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.CentreOnParent">
271<tt class="descname">CentreOnParent</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.CentreOnParent" title="Permalink to this definition">¶</a></dt>
272<dd><p>CenterOnParent(self, int dir=BOTH)</p>
273<p>Center with respect to the the parent window</p>
274</dd></dl>
275
276<dl class="method">
277<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.CentreOnScreen">
278<tt class="descname">CentreOnScreen</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.CentreOnScreen" title="Permalink to this definition">¶</a></dt>
279<dd><p>CenterOnScreen(self, int dir=BOTH)</p>
280<p>Center the window on screen</p>
281</dd></dl>
282
283<dl class="attribute">
284<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.CharHeight">
285<tt class="descname">CharHeight</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.CharHeight" title="Permalink to this definition">¶</a></dt>
286<dd><p>See <cite>GetCharHeight</cite></p>
287</dd></dl>
288
289<dl class="attribute">
290<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.CharWidth">
291<tt class="descname">CharWidth</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.CharWidth" title="Permalink to this definition">¶</a></dt>
292<dd><p>See <cite>GetCharWidth</cite></p>
293</dd></dl>
294
295<dl class="attribute">
296<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Children">
297<tt class="descname">Children</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Children" title="Permalink to this definition">¶</a></dt>
298<dd><p>See <cite>GetChildren</cite></p>
299</dd></dl>
300
301<dl class="attribute">
302<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ClassName">
303<tt class="descname">ClassName</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ClassName" title="Permalink to this definition">¶</a></dt>
304<dd><p>See <cite>GetClassName</cite></p>
305</dd></dl>
306
307<dl class="method">
308<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ClearBackground">
309<tt class="descname">ClearBackground</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ClearBackground" title="Permalink to this definition">¶</a></dt>
310<dd><p>Clears the window by filling it with the current background
311colour. Does not cause an erase background event to be generated.</p>
312</dd></dl>
313
314<dl class="attribute">
315<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ClientAreaOrigin">
316<tt class="descname">ClientAreaOrigin</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ClientAreaOrigin" title="Permalink to this definition">¶</a></dt>
317<dd><p>See <cite>GetClientAreaOrigin</cite></p>
318</dd></dl>
319
320<dl class="attribute">
321<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ClientRect">
322<tt class="descname">ClientRect</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ClientRect" title="Permalink to this definition">¶</a></dt>
323<dd><p>See <cite>GetClientRect</cite> and <cite>SetClientRect</cite></p>
324</dd></dl>
325
326<dl class="attribute">
327<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ClientSize">
328<tt class="descname">ClientSize</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ClientSize" title="Permalink to this definition">¶</a></dt>
329<dd><p>See <cite>GetClientSize</cite> and <cite>SetClientSize</cite></p>
330</dd></dl>
331
332<dl class="method">
333<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ClientToScreen">
334<tt class="descname">ClientToScreen</tt><big>(</big><em>self</em>, <em>Point pt</em><big>)</big> &rarr; Point<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ClientToScreen" title="Permalink to this definition">¶</a></dt>
335<dd><p>Converts to screen coordinates from coordinates relative to this window.</p>
336</dd></dl>
337
338<dl class="method">
339<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ClientToScreenXY">
340<tt class="descname">ClientToScreenXY</tt><big>(</big><em>int x</em>, <em>int y) -&gt; (x</em>, <em>y</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ClientToScreenXY" title="Permalink to this definition">¶</a></dt>
341<dd><p>Converts to screen coordinates from coordinates relative to this window.</p>
342</dd></dl>
343
344<dl class="method">
345<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ClientToWindowSize">
346<tt class="descname">ClientToWindowSize</tt><big>(</big><em>self</em>, <em>Size size</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ClientToWindowSize" title="Permalink to this definition">¶</a></dt>
347<dd></dd></dl>
348
349<dl class="method">
350<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Close">
351<tt class="descname">Close</tt><big>(</big><em>self</em>, <em>bool force=False</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Close" title="Permalink to this definition">¶</a></dt>
352<dd><p>This function simply generates a EVT_CLOSE event whose handler usually
353tries to close the window. It doesn&#8217;t close the window itself,
354however.  If force is False (the default) then the window&#8217;s close
355handler will be allowed to veto the destruction of the window.</p>
356</dd></dl>
357
358<dl class="method">
359<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Connect">
360<tt class="descname">Connect</tt><big>(</big><em>self</em>, <em>int id</em>, <em>int lastId</em>, <em>int eventType</em>, <em>PyObject func</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Connect" title="Permalink to this definition">¶</a></dt>
361<dd></dd></dl>
362
363<dl class="attribute">
364<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Constraints">
365<tt class="descname">Constraints</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Constraints" title="Permalink to this definition">¶</a></dt>
366<dd><p>See <cite>GetConstraints</cite> and <cite>SetConstraints</cite></p>
367</dd></dl>
368
369<dl class="attribute">
370<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ContainingSizer">
371<tt class="descname">ContainingSizer</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ContainingSizer" title="Permalink to this definition">¶</a></dt>
372<dd><p>See <cite>GetContainingSizer</cite> and <cite>SetContainingSizer</cite></p>
373</dd></dl>
374
375<dl class="method">
376<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ConvertDialogPointToPixels">
377<tt class="descname">ConvertDialogPointToPixels</tt><big>(</big><em>self</em>, <em>Point pt</em><big>)</big> &rarr; Point<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ConvertDialogPointToPixels" title="Permalink to this definition">¶</a></dt>
378<dd><p>Converts a point or size from dialog units to pixels.  Dialog units
379are used for maintaining a dialog&#8217;s proportions even if the font
380changes. For the x dimension, the dialog units are multiplied by the
381average character width and then divided by 4. For the y dimension,
382the dialog units are multiplied by the average character height and
383then divided by 8.</p>
384</dd></dl>
385
386<dl class="method">
387<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ConvertDialogSizeToPixels">
388<tt class="descname">ConvertDialogSizeToPixels</tt><big>(</big><em>self</em>, <em>Size sz</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ConvertDialogSizeToPixels" title="Permalink to this definition">¶</a></dt>
389<dd><p>Converts a point or size from dialog units to pixels.  Dialog units
390are used for maintaining a dialog&#8217;s proportions even if the font
391changes. For the x dimension, the dialog units are multiplied by the
392average character width and then divided by 4. For the y dimension,
393the dialog units are multiplied by the average character height and
394then divided by 8.</p>
395</dd></dl>
396
397<dl class="method">
398<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ConvertPixelPointToDialog">
399<tt class="descname">ConvertPixelPointToDialog</tt><big>(</big><em>self</em>, <em>Point pt</em><big>)</big> &rarr; Point<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ConvertPixelPointToDialog" title="Permalink to this definition">¶</a></dt>
400<dd></dd></dl>
401
402<dl class="method">
403<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ConvertPixelSizeToDialog">
404<tt class="descname">ConvertPixelSizeToDialog</tt><big>(</big><em>self</em>, <em>Size sz</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ConvertPixelSizeToDialog" title="Permalink to this definition">¶</a></dt>
405<dd></dd></dl>
406
407<dl class="method">
408<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Create">
409<tt class="descname">Create</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Create" title="Permalink to this definition">¶</a></dt>
410<dd><p>Create(self, Window parent, int id=-1, String title=EmptyString,
411Point pos=DefaultPosition, Size size=DefaultSize,
412long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -&gt; bool</p>
413</dd></dl>
414
415<dl class="method">
416<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.CreateButtonSizer">
417<tt class="descname">CreateButtonSizer</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.CreateButtonSizer" title="Permalink to this definition">¶</a></dt>
418<dd></dd></dl>
419
420<dl class="method">
421<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.CreateSeparatedButtonSizer">
422<tt class="descname">CreateSeparatedButtonSizer</tt><big>(</big><em>self</em>, <em>long flags</em><big>)</big> &rarr; Sizer<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.CreateSeparatedButtonSizer" title="Permalink to this definition">¶</a></dt>
423<dd></dd></dl>
424
425<dl class="method">
426<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.CreateStdDialogButtonSizer">
427<tt class="descname">CreateStdDialogButtonSizer</tt><big>(</big><em>self</em>, <em>long flags</em><big>)</big> &rarr; StdDialogButtonSizer<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.CreateStdDialogButtonSizer" title="Permalink to this definition">¶</a></dt>
428<dd></dd></dl>
429
430<dl class="method">
431<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.CreateTextSizer">
432<tt class="descname">CreateTextSizer</tt><big>(</big><em>self</em>, <em>String message</em><big>)</big> &rarr; Sizer<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.CreateTextSizer" title="Permalink to this definition">¶</a></dt>
433<dd></dd></dl>
434
435<dl class="attribute">
436<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Cursor">
437<tt class="descname">Cursor</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Cursor" title="Permalink to this definition">¶</a></dt>
438<dd><p>See <cite>GetCursor</cite> and <cite>SetCursor</cite></p>
439</dd></dl>
440
441<dl class="method">
442<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.DLG_PNT">
443<tt class="descname">DLG_PNT</tt><big>(</big><em>self</em>, <em>Point pt</em><big>)</big> &rarr; Point<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.DLG_PNT" title="Permalink to this definition">¶</a></dt>
444<dd><p>Converts a point or size from dialog units to pixels.  Dialog units
445are used for maintaining a dialog&#8217;s proportions even if the font
446changes. For the x dimension, the dialog units are multiplied by the
447average character width and then divided by 4. For the y dimension,
448the dialog units are multiplied by the average character height and
449then divided by 8.</p>
450</dd></dl>
451
452<dl class="method">
453<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.DLG_SZE">
454<tt class="descname">DLG_SZE</tt><big>(</big><em>self</em>, <em>Size sz</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.DLG_SZE" title="Permalink to this definition">¶</a></dt>
455<dd><p>Converts a point or size from dialog units to pixels.  Dialog units
456are used for maintaining a dialog&#8217;s proportions even if the font
457changes. For the x dimension, the dialog units are multiplied by the
458average character width and then divided by 4. For the y dimension,
459the dialog units are multiplied by the average character height and
460then divided by 8.</p>
461</dd></dl>
462
463<dl class="attribute">
464<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.DefaultAttributes">
465<tt class="descname">DefaultAttributes</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.DefaultAttributes" title="Permalink to this definition">¶</a></dt>
466<dd><p>See <cite>GetDefaultAttributes</cite></p>
467</dd></dl>
468
469<dl class="attribute">
470<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.DefaultItem">
471<tt class="descname">DefaultItem</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.DefaultItem" title="Permalink to this definition">¶</a></dt>
472<dd><p>See <cite>GetDefaultItem</cite> and <cite>SetDefaultItem</cite></p>
473</dd></dl>
474
475<dl class="method">
476<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Destroy">
477<tt class="descname">Destroy</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Destroy" title="Permalink to this definition">¶</a></dt>
478<dd><p>Destroys the window safely.  Frames and dialogs are not destroyed
479immediately when this function is called &#8211; they are added to a list
480of windows to be deleted on idle time, when all the window&#8217;s events
481have been processed. This prevents problems with events being sent to
482non-existent windows.</p>
483<p>Returns True if the window has either been successfully deleted, or it
484has been added to the list of windows pending real deletion.</p>
485</dd></dl>
486
487<dl class="method">
488<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.DestroyChildren">
489<tt class="descname">DestroyChildren</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.DestroyChildren" title="Permalink to this definition">¶</a></dt>
490<dd><p>Destroys all children of a window. Called automatically by the
491destructor.</p>
492</dd></dl>
493
494<dl class="method">
495<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Disable">
496<tt class="descname">Disable</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Disable" title="Permalink to this definition">¶</a></dt>
497<dd><p>Disables the window, same as Enable(false).</p>
498</dd></dl>
499
500<dl class="method">
501<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Disconnect">
502<tt class="descname">Disconnect</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Disconnect" title="Permalink to this definition">¶</a></dt>
503<dd><p>Disconnect(self, int id, int lastId=-1, EventType eventType=wxEVT_NULL,
504PyObject func=None) -&gt; bool</p>
505</dd></dl>
506
507<dl class="method">
508<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.DissociateHandle">
509<tt class="descname">DissociateHandle</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.DissociateHandle" title="Permalink to this definition">¶</a></dt>
510<dd><p>Dissociate the current native handle from the window</p>
511</dd></dl>
512
513<dl class="method">
514<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.DragAcceptFiles">
515<tt class="descname">DragAcceptFiles</tt><big>(</big><em>self</em>, <em>bool accept</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.DragAcceptFiles" title="Permalink to this definition">¶</a></dt>
516<dd><p>Enables or disables eligibility for drop file events, EVT_DROP_FILES.</p>
517</dd></dl>
518
519<dl class="attribute">
520<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.DropTarget">
521<tt class="descname">DropTarget</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.DropTarget" title="Permalink to this definition">¶</a></dt>
522<dd><p>See <cite>GetDropTarget</cite> and <cite>SetDropTarget</cite></p>
523</dd></dl>
524
525<dl class="attribute">
526<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.EffectiveMinSize">
527<tt class="descname">EffectiveMinSize</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.EffectiveMinSize" title="Permalink to this definition">¶</a></dt>
528<dd><p>See <cite>GetEffectiveMinSize</cite></p>
529</dd></dl>
530
531<dl class="method">
532<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Enable">
533<tt class="descname">Enable</tt><big>(</big><em>self</em>, <em>bool enable=True</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Enable" title="Permalink to this definition">¶</a></dt>
534<dd><p>Enable or disable the window for user input. Note that when a parent
535window is disabled, all of its children are disabled as well and they
536are reenabled again when the parent is.  Returns true if the window
537has been enabled or disabled, false if nothing was done, i.e. if the
538window had already been in the specified state.</p>
539</dd></dl>
540
541<dl class="method">
542<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.EnableCloseButton">
543<tt class="descname">EnableCloseButton</tt><big>(</big><em>self</em>, <em>bool enable</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.EnableCloseButton" title="Permalink to this definition">¶</a></dt>
544<dd></dd></dl>
545
546<dl class="attribute">
547<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Enabled">
548<tt class="descname">Enabled</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Enabled" title="Permalink to this definition">¶</a></dt>
549<dd><p>See <cite>IsEnabled</cite> and <cite>Enable</cite></p>
550</dd></dl>
551
552<dl class="method">
553<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.EndModal">
554<tt class="descname">EndModal</tt><big>(</big><em>self</em>, <em>int retCode</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.EndModal" title="Permalink to this definition">¶</a></dt>
555<dd></dd></dl>
556
557<dl class="attribute">
558<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.EscapeId">
559<tt class="descname">EscapeId</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.EscapeId" title="Permalink to this definition">¶</a></dt>
560<dd><p>See <cite>GetEscapeId</cite> and <cite>SetEscapeId</cite></p>
561</dd></dl>
562
563<dl class="attribute">
564<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.EventHandler">
565<tt class="descname">EventHandler</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.EventHandler" title="Permalink to this definition">¶</a></dt>
566<dd><p>See <cite>GetEventHandler</cite> and <cite>SetEventHandler</cite></p>
567</dd></dl>
568
569<dl class="attribute">
570<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.EvtHandlerEnabled">
571<tt class="descname">EvtHandlerEnabled</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.EvtHandlerEnabled" title="Permalink to this definition">¶</a></dt>
572<dd><p>See <cite>GetEvtHandlerEnabled</cite> and <cite>SetEvtHandlerEnabled</cite></p>
573</dd></dl>
574
575<dl class="attribute">
576<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ExtraStyle">
577<tt class="descname">ExtraStyle</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ExtraStyle" title="Permalink to this definition">¶</a></dt>
578<dd><p>See <cite>GetExtraStyle</cite> and <cite>SetExtraStyle</cite></p>
579</dd></dl>
580
581<dl class="staticmethod">
582<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.FindFocus">
583<em class="property">static </em><tt class="descname">FindFocus</tt><big>(</big><big>)</big> &rarr; Window<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.FindFocus" title="Permalink to this definition">¶</a></dt>
584<dd><p>Returns the window or control that currently has the keyboard focus,
585or None.</p>
586</dd></dl>
587
588<dl class="method">
589<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.FindWindowById">
590<tt class="descname">FindWindowById</tt><big>(</big><em>self</em>, <em>long winid</em><big>)</big> &rarr; Window<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.FindWindowById" title="Permalink to this definition">¶</a></dt>
591<dd><p>Find a child of this window by window ID</p>
592</dd></dl>
593
594<dl class="method">
595<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.FindWindowByLabel">
596<tt class="descname">FindWindowByLabel</tt><big>(</big><em>self</em>, <em>String label</em><big>)</big> &rarr; Window<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.FindWindowByLabel" title="Permalink to this definition">¶</a></dt>
597<dd><p>Find a child of this window by label</p>
598</dd></dl>
599
600<dl class="method">
601<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.FindWindowByName">
602<tt class="descname">FindWindowByName</tt><big>(</big><em>self</em>, <em>String name</em><big>)</big> &rarr; Window<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.FindWindowByName" title="Permalink to this definition">¶</a></dt>
603<dd><p>Find a child of this window by name</p>
604</dd></dl>
605
606<dl class="method">
607<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Fit">
608<tt class="descname">Fit</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Fit" title="Permalink to this definition">¶</a></dt>
609<dd><p>Sizes the window so that it fits around its subwindows. This function
610won&#8217;t do anything if there are no subwindows and will only really work
611correctly if sizers are used for the subwindows layout. Also, if the
612window has exactly one subwindow it is better (faster and the result
613is more precise as Fit adds some margin to account for fuzziness of
614its calculations) to call window.SetClientSize(child.GetSize())
615instead of calling Fit.</p>
616</dd></dl>
617
618<dl class="method">
619<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.FitInside">
620<tt class="descname">FitInside</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.FitInside" title="Permalink to this definition">¶</a></dt>
621<dd><p>Similar to Fit, but sizes the interior (virtual) size of a
622window. Mainly useful with scrolled windows to reset scrollbars after
623sizing changes that do not trigger a size event, and/or scrolled
624windows without an interior sizer. This function similarly won&#8217;t do
625anything if there are no subwindows.</p>
626</dd></dl>
627
628<dl class="attribute">
629<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Font">
630<tt class="descname">Font</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Font" title="Permalink to this definition">¶</a></dt>
631<dd><p>See <cite>GetFont</cite> and <cite>SetFont</cite></p>
632</dd></dl>
633
634<dl class="attribute">
635<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ForegroundColour">
636<tt class="descname">ForegroundColour</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ForegroundColour" title="Permalink to this definition">¶</a></dt>
637<dd><p>See <cite>GetForegroundColour</cite> and <cite>SetForegroundColour</cite></p>
638</dd></dl>
639
640<dl class="method">
641<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Freeze">
642<tt class="descname">Freeze</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Freeze" title="Permalink to this definition">¶</a></dt>
643<dd><p>Freezes the window or, in other words, prevents any updates from
644taking place on screen, the window is not redrawn at all. Thaw must be
645called to reenable window redrawing.  Calls to Freeze/Thaw may be
646nested, with the actual Thaw being delayed until all the nesting has
647been undone.</p>
648<p>This method is useful for visual appearance optimization (for example,
649it is a good idea to use it before inserting large amount of text into
650a wxTextCtrl under wxGTK) but is not implemented on all platforms nor
651for all controls so it is mostly just a hint to wxWindows and not a
652mandatory directive.</p>
653</dd></dl>
654
655<dl class="method">
656<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetAcceleratorTable">
657<tt class="descname">GetAcceleratorTable</tt><big>(</big><em>self</em><big>)</big> &rarr; AcceleratorTable<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetAcceleratorTable" title="Permalink to this definition">¶</a></dt>
658<dd><p>Gets the accelerator table for this window.</p>
659</dd></dl>
660
661<dl class="method">
662<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetAdjustedBestSize">
663<tt class="descname">GetAdjustedBestSize</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetAdjustedBestSize" title="Permalink to this definition">¶</a></dt>
664<dd><p>Use <cite>GetEffectiveMinSize</cite> instead.</p>
665</dd></dl>
666
667<dl class="method">
668<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetAffirmativeId">
669<tt class="descname">GetAffirmativeId</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetAffirmativeId" title="Permalink to this definition">¶</a></dt>
670<dd></dd></dl>
671
672<dl class="method">
673<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetAutoLayout">
674<tt class="descname">GetAutoLayout</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetAutoLayout" title="Permalink to this definition">¶</a></dt>
675<dd><p>Returns the current autoLayout setting</p>
676</dd></dl>
677
678<dl class="method">
679<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetBackgroundColour">
680<tt class="descname">GetBackgroundColour</tt><big>(</big><em>self</em><big>)</big> &rarr; Colour<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetBackgroundColour" title="Permalink to this definition">¶</a></dt>
681<dd><p>Returns the background colour of the window.</p>
682</dd></dl>
683
684<dl class="method">
685<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetBackgroundStyle">
686<tt class="descname">GetBackgroundStyle</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetBackgroundStyle" title="Permalink to this definition">¶</a></dt>
687<dd><p>Returns the background style of the window.</p>
688<table class="docutils field-list" frame="void" rules="none">
689<col class="field-name" />
690<col class="field-body" />
691<tbody valign="top">
692<tr class="field-odd field"><th class="field-name">See :</th><td class="field-body"><cite>SetBackgroundStyle</cite></td>
693</tr>
694</tbody>
695</table>
696</dd></dl>
697
698<dl class="method">
699<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetBestFittingSize">
700<tt class="descname">GetBestFittingSize</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetBestFittingSize" title="Permalink to this definition">¶</a></dt>
701<dd><p>Use <cite>GetEffectiveMinSize</cite> instead.</p>
702</dd></dl>
703
704<dl class="method">
705<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetBestSize">
706<tt class="descname">GetBestSize</tt><big>(</big><em>self</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetBestSize" title="Permalink to this definition">¶</a></dt>
707<dd><p>This function returns the best acceptable minimal size for the
708window, if applicable. For example, for a static text control, it will
709be the minimal size such that the control label is not truncated. For
710windows containing subwindows (such as wx.Panel), the size returned by
711this function will be the same as the size the window would have had
712after calling Fit.</p>
713</dd></dl>
714
715<dl class="method">
716<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetBestSizeTuple">
717<tt class="descname">GetBestSizeTuple</tt><big>(</big><em>) -&gt; (width</em>, <em>height</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetBestSizeTuple" title="Permalink to this definition">¶</a></dt>
718<dd><p>This function returns the best acceptable minimal size for the
719window, if applicable. For example, for a static text control, it will
720be the minimal size such that the control label is not truncated. For
721windows containing subwindows (such as wx.Panel), the size returned by
722this function will be the same as the size the window would have had
723after calling Fit.</p>
724</dd></dl>
725
726<dl class="method">
727<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetBestVirtualSize">
728<tt class="descname">GetBestVirtualSize</tt><big>(</big><em>self</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetBestVirtualSize" title="Permalink to this definition">¶</a></dt>
729<dd><p>Return the largest of ClientSize and BestSize (as determined by a
730sizer, interior children, or other means)</p>
731</dd></dl>
732
733<dl class="method">
734<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetBorder">
735<tt class="descname">GetBorder</tt><big>(</big><em>self</em>, <em>long flags</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetBorder" title="Permalink to this definition">¶</a></dt>
736<dd><p>GetBorder(self) -&gt; int</p>
737<p>Get border for the flags of this window</p>
738</dd></dl>
739
740<dl class="staticmethod">
741<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetCapture">
742<em class="property">static </em><tt class="descname">GetCapture</tt><big>(</big><big>)</big> &rarr; Window<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetCapture" title="Permalink to this definition">¶</a></dt>
743<dd><p>Returns the window which currently captures the mouse or None</p>
744</dd></dl>
745
746<dl class="method">
747<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetCaret">
748<tt class="descname">GetCaret</tt><big>(</big><em>self</em><big>)</big> &rarr; Caret<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetCaret" title="Permalink to this definition">¶</a></dt>
749<dd><p>Returns the caret associated with the window.</p>
750</dd></dl>
751
752<dl class="method">
753<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetCharHeight">
754<tt class="descname">GetCharHeight</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetCharHeight" title="Permalink to this definition">¶</a></dt>
755<dd><p>Get the (average) character size for the current font.</p>
756</dd></dl>
757
758<dl class="method">
759<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetCharWidth">
760<tt class="descname">GetCharWidth</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetCharWidth" title="Permalink to this definition">¶</a></dt>
761<dd><p>Get the (average) character size for the current font.</p>
762</dd></dl>
763
764<dl class="method">
765<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetChildren">
766<tt class="descname">GetChildren</tt><big>(</big><em>self</em><big>)</big> &rarr; WindowList<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetChildren" title="Permalink to this definition">¶</a></dt>
767<dd><p>Returns an object containing a list of the window&#8217;s children.  The
768object provides a Python sequence-like interface over the internal
769list maintained by the window..</p>
770</dd></dl>
771
772<dl class="staticmethod">
773<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetClassDefaultAttributes">
774<em class="property">static </em><tt class="descname">GetClassDefaultAttributes</tt><big>(</big><em>int variant=WINDOW_VARIANT_NORMAL</em><big>)</big> &rarr; VisualAttributes<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetClassDefaultAttributes" title="Permalink to this definition">¶</a></dt>
775<dd><p>Get the default attributes for this class.  This is useful if you want
776to use the same font or colour in your own control as in a standard
777control &#8211; which is a much better idea than hard coding specific
778colours or fonts which might look completely out of place on the
779user&#8217;s system, especially if it uses themes.</p>
780<p>The variant parameter is only relevant under Mac currently and is
781ignore under other platforms. Under Mac, it will change the size of
782the returned font. See <cite>wx.Window.SetWindowVariant</cite> for more about
783this.</p>
784</dd></dl>
785
786<dl class="method">
787<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetClassName">
788<tt class="descname">GetClassName</tt><big>(</big><em>self</em><big>)</big> &rarr; String<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetClassName" title="Permalink to this definition">¶</a></dt>
789<dd><p>Returns the class name of the C++ class using wxRTTI.</p>
790</dd></dl>
791
792<dl class="method">
793<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetClientAreaOrigin">
794<tt class="descname">GetClientAreaOrigin</tt><big>(</big><em>self</em><big>)</big> &rarr; Point<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetClientAreaOrigin" title="Permalink to this definition">¶</a></dt>
795<dd><p>Get the origin of the client area of the window relative to the
796window&#8217;s top left corner (the client area may be shifted because of
797the borders, scrollbars, other decorations...)</p>
798</dd></dl>
799
800<dl class="method">
801<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetClientRect">
802<tt class="descname">GetClientRect</tt><big>(</big><em>self</em><big>)</big> &rarr; Rect<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetClientRect" title="Permalink to this definition">¶</a></dt>
803<dd><p>Get the client area position and size as a <cite>wx.Rect</cite> object.</p>
804</dd></dl>
805
806<dl class="method">
807<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetClientSize">
808<tt class="descname">GetClientSize</tt><big>(</big><em>self</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetClientSize" title="Permalink to this definition">¶</a></dt>
809<dd><p>This gets the size of the window&#8217;s &#8216;client area&#8217; in pixels. The client
810area is the area which may be drawn on by the programmer, excluding
811title bar, border, scrollbars, etc.</p>
812</dd></dl>
813
814<dl class="method">
815<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetClientSizeTuple">
816<tt class="descname">GetClientSizeTuple</tt><big>(</big><em>) -&gt; (width</em>, <em>height</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetClientSizeTuple" title="Permalink to this definition">¶</a></dt>
817<dd><p>This gets the size of the window&#8217;s &#8216;client area&#8217; in pixels. The client
818area is the area which may be drawn on by the programmer, excluding
819title bar, border, scrollbars, etc.</p>
820</dd></dl>
821
822<dl class="method">
823<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetConstraints">
824<tt class="descname">GetConstraints</tt><big>(</big><em>self</em><big>)</big> &rarr; LayoutConstraints<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetConstraints" title="Permalink to this definition">¶</a></dt>
825<dd><p>Returns a pointer to the window&#8217;s layout constraints, or None if there
826are none.</p>
827</dd></dl>
828
829<dl class="method">
830<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetContainingSizer">
831<tt class="descname">GetContainingSizer</tt><big>(</big><em>self</em><big>)</big> &rarr; Sizer<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetContainingSizer" title="Permalink to this definition">¶</a></dt>
832<dd><p>Return the sizer that this window is a member of, if any, otherwise None.</p>
833</dd></dl>
834
835<dl class="method">
836<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetCursor">
837<tt class="descname">GetCursor</tt><big>(</big><em>self</em><big>)</big> &rarr; Cursor<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetCursor" title="Permalink to this definition">¶</a></dt>
838<dd><p>Return the cursor associated with this window.</p>
839</dd></dl>
840
841<dl class="method">
842<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetDefaultAttributes">
843<tt class="descname">GetDefaultAttributes</tt><big>(</big><em>self</em><big>)</big> &rarr; VisualAttributes<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetDefaultAttributes" title="Permalink to this definition">¶</a></dt>
844<dd><p>Get the default attributes for an instance of this class.  This is
845useful if you want to use the same font or colour in your own control
846as in a standard control &#8211; which is a much better idea than hard
847coding specific colours or fonts which might look completely out of
848place on the user&#8217;s system, especially if it uses themes.</p>
849</dd></dl>
850
851<dl class="method">
852<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetDefaultItem">
853<tt class="descname">GetDefaultItem</tt><big>(</big><em>self</em><big>)</big> &rarr; Window<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetDefaultItem" title="Permalink to this definition">¶</a></dt>
854<dd><p>Get the default child of this parent, i.e. the one which is activated
855by pressing &lt;Enter&gt; such as the OK button on a wx.Dialog.</p>
856</dd></dl>
857
858<dl class="method">
859<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetDropTarget">
860<tt class="descname">GetDropTarget</tt><big>(</big><em>self</em><big>)</big> &rarr; DropTarget<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetDropTarget" title="Permalink to this definition">¶</a></dt>
861<dd><p>Returns the associated drop target, which may be None.</p>
862</dd></dl>
863
864<dl class="method">
865<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetEffectiveMinSize">
866<tt class="descname">GetEffectiveMinSize</tt><big>(</big><em>self</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetEffectiveMinSize" title="Permalink to this definition">¶</a></dt>
867<dd><p>This function will merge the window&#8217;s best size into the window&#8217;s
868minimum size, giving priority to the min size components, and returns
869the results.</p>
870</dd></dl>
871
872<dl class="method">
873<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetEscapeId">
874<tt class="descname">GetEscapeId</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetEscapeId" title="Permalink to this definition">¶</a></dt>
875<dd></dd></dl>
876
877<dl class="method">
878<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetEventHandler">
879<tt class="descname">GetEventHandler</tt><big>(</big><em>self</em><big>)</big> &rarr; EvtHandler<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetEventHandler" title="Permalink to this definition">¶</a></dt>
880<dd><p>Returns the event handler for this window. By default, the window is
881its own event handler.</p>
882</dd></dl>
883
884<dl class="method">
885<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetEvtHandlerEnabled">
886<tt class="descname">GetEvtHandlerEnabled</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetEvtHandlerEnabled" title="Permalink to this definition">¶</a></dt>
887<dd></dd></dl>
888
889<dl class="method">
890<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetExtraStyle">
891<tt class="descname">GetExtraStyle</tt><big>(</big><em>self</em><big>)</big> &rarr; long<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetExtraStyle" title="Permalink to this definition">¶</a></dt>
892<dd><p>Returns the extra style bits for the window.</p>
893</dd></dl>
894
895<dl class="method">
896<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetFont">
897<tt class="descname">GetFont</tt><big>(</big><em>self</em><big>)</big> &rarr; Font<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetFont" title="Permalink to this definition">¶</a></dt>
898<dd><p>Returns the default font used for this window.</p>
899</dd></dl>
900
901<dl class="method">
902<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetForegroundColour">
903<tt class="descname">GetForegroundColour</tt><big>(</big><em>self</em><big>)</big> &rarr; Colour<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetForegroundColour" title="Permalink to this definition">¶</a></dt>
904<dd><p>Returns the foreground colour of the window.  The interpretation of
905foreground colour is dependent on the window class; it may be the text
906colour or other colour, or it may not be used at all.</p>
907</dd></dl>
908
909<dl class="method">
910<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetFullTextExtent">
911<tt class="descname">GetFullTextExtent</tt><big>(</big><em>String string</em>, <em>Font font=None</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetFullTextExtent" title="Permalink to this definition">¶</a></dt>
912<dd><blockquote>
913<div>(width, height, descent, externalLeading)</div></blockquote>
914<p>Get the width, height, decent and leading of the text using the
915current or specified font.</p>
916</dd></dl>
917
918<dl class="method">
919<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetGrandParent">
920<tt class="descname">GetGrandParent</tt><big>(</big><em>self</em><big>)</big> &rarr; Window<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetGrandParent" title="Permalink to this definition">¶</a></dt>
921<dd><p>Returns the parent of the parent of this window, or None if there
922isn&#8217;t one.</p>
923</dd></dl>
924
925<dl class="method">
926<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetGtkWidget">
927<tt class="descname">GetGtkWidget</tt><big>(</big><em>self</em><big>)</big> &rarr; long<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetGtkWidget" title="Permalink to this definition">¶</a></dt>
928<dd><p>On wxGTK returns a pointer to the GtkWidget for this window as a long
929integer.  On the other platforms this method returns zero.</p>
930</dd></dl>
931
932<dl class="method">
933<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetHandle">
934<tt class="descname">GetHandle</tt><big>(</big><em>self</em><big>)</big> &rarr; long<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetHandle" title="Permalink to this definition">¶</a></dt>
935<dd><p>Returns the platform-specific handle (as a long integer) of the
936physical window.  On wxMSW this is the win32 window handle, on wxGTK
937it is the XWindow ID, and on wxMac it is the ControlRef.</p>
938</dd></dl>
939
940<dl class="method">
941<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetHelpText">
942<tt class="descname">GetHelpText</tt><big>(</big><em>self</em><big>)</big> &rarr; String<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetHelpText" title="Permalink to this definition">¶</a></dt>
943<dd><p>Gets the help text to be used as context-sensitive help for this
944window.  Note that the text is actually stored by the current
945<cite>wx.HelpProvider</cite> implementation, and not in the window object itself.</p>
946</dd></dl>
947
948<dl class="method">
949<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetHelpTextAtPoint">
950<tt class="descname">GetHelpTextAtPoint</tt><big>(</big><em>self</em>, <em>Point pt</em>, <em>wxHelpEvent::Origin origin</em><big>)</big> &rarr; String<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetHelpTextAtPoint" title="Permalink to this definition">¶</a></dt>
951<dd><p>Get the help string associated with the given position in this window.</p>
952<p>Notice that pt may be invalid if event origin is keyboard or unknown
953and this method should return the global window help text then</p>
954</dd></dl>
955
956<dl class="method">
957<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetIcon">
958<tt class="descname">GetIcon</tt><big>(</big><em>self</em><big>)</big> &rarr; Icon<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetIcon" title="Permalink to this definition">¶</a></dt>
959<dd></dd></dl>
960
961<dl class="method">
962<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetId">
963<tt class="descname">GetId</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetId" title="Permalink to this definition">¶</a></dt>
964<dd><p>Returns the identifier of the window.  Each window has an integer
965identifier. If the application has not provided one (or the default Id
966-1 is used) then an unique identifier with a negative value will be
967generated.</p>
968</dd></dl>
969
970<dl class="method">
971<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetLabel">
972<tt class="descname">GetLabel</tt><big>(</big><em>self</em><big>)</big> &rarr; String<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetLabel" title="Permalink to this definition">¶</a></dt>
973<dd><p>Generic way of getting a label from any window, for identification
974purposes.  The interpretation of this function differs from class to
975class. For frames and dialogs, the value returned is the title. For
976buttons or static text controls, it is the button text. This function
977can be useful for meta-programs such as testing tools or special-needs
978access programs)which need to identify windows by name.</p>
979</dd></dl>
980
981<dl class="method">
982<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetLayoutDirection">
983<tt class="descname">GetLayoutDirection</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetLayoutDirection" title="Permalink to this definition">¶</a></dt>
984<dd><p>Get the layout direction (LTR or RTL) for this window.  Returns
985<tt class="docutils literal"><span class="pre">wx.Layout_Default</span></tt> if layout direction is not supported.</p>
986</dd></dl>
987
988<dl class="method">
989<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetMaxHeight">
990<tt class="descname">GetMaxHeight</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetMaxHeight" title="Permalink to this definition">¶</a></dt>
991<dd></dd></dl>
992
993<dl class="method">
994<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetMaxSize">
995<tt class="descname">GetMaxSize</tt><big>(</big><em>self</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetMaxSize" title="Permalink to this definition">¶</a></dt>
996<dd></dd></dl>
997
998<dl class="method">
999<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetMaxWidth">
1000<tt class="descname">GetMaxWidth</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetMaxWidth" title="Permalink to this definition">¶</a></dt>
1001<dd></dd></dl>
1002
1003<dl class="method">
1004<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetMinHeight">
1005<tt class="descname">GetMinHeight</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetMinHeight" title="Permalink to this definition">¶</a></dt>
1006<dd></dd></dl>
1007
1008<dl class="method">
1009<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetMinSize">
1010<tt class="descname">GetMinSize</tt><big>(</big><em>self</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetMinSize" title="Permalink to this definition">¶</a></dt>
1011<dd></dd></dl>
1012
1013<dl class="method">
1014<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetMinWidth">
1015<tt class="descname">GetMinWidth</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetMinWidth" title="Permalink to this definition">¶</a></dt>
1016<dd></dd></dl>
1017
1018<dl class="method">
1019<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetName">
1020<tt class="descname">GetName</tt><big>(</big><em>self</em><big>)</big> &rarr; String<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetName" title="Permalink to this definition">¶</a></dt>
1021<dd><p>Returns the windows name.  This name is not guaranteed to be unique;
1022it is up to the programmer to supply an appropriate name in the window
1023constructor or via wx.Window.SetName.</p>
1024</dd></dl>
1025
1026<dl class="method">
1027<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetNextHandler">
1028<tt class="descname">GetNextHandler</tt><big>(</big><em>self</em><big>)</big> &rarr; EvtHandler<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetNextHandler" title="Permalink to this definition">¶</a></dt>
1029<dd></dd></dl>
1030
1031<dl class="method">
1032<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetParent">
1033<tt class="descname">GetParent</tt><big>(</big><em>self</em><big>)</big> &rarr; Window<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetParent" title="Permalink to this definition">¶</a></dt>
1034<dd><p>Returns the parent window of this window, or None if there isn&#8217;t one.</p>
1035</dd></dl>
1036
1037<dl class="method">
1038<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetPosition">
1039<tt class="descname">GetPosition</tt><big>(</big><em>self</em><big>)</big> &rarr; Point<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetPosition" title="Permalink to this definition">¶</a></dt>
1040<dd><p>Get the window&#8217;s position.  Notice that the position is in client
1041coordinates for child windows and screen coordinates for the top level
1042ones, use <cite>GetScreenPosition</cite> if you need screen coordinates for all
1043kinds of windows.</p>
1044</dd></dl>
1045
1046<dl class="method">
1047<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetPositionTuple">
1048<tt class="descname">GetPositionTuple</tt><big>(</big><em>) -&gt; (x</em>, <em>y</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetPositionTuple" title="Permalink to this definition">¶</a></dt>
1049<dd><p>Get the window&#8217;s position.  Notice that the position is in client
1050coordinates for child windows and screen coordinates for the top level
1051ones, use <cite>GetScreenPosition</cite> if you need screen coordinates for all
1052kinds of windows.</p>
1053</dd></dl>
1054
1055<dl class="method">
1056<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetPreviousHandler">
1057<tt class="descname">GetPreviousHandler</tt><big>(</big><em>self</em><big>)</big> &rarr; EvtHandler<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetPreviousHandler" title="Permalink to this definition">¶</a></dt>
1058<dd></dd></dl>
1059
1060<dl class="method">
1061<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetRect">
1062<tt class="descname">GetRect</tt><big>(</big><em>self</em><big>)</big> &rarr; Rect<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetRect" title="Permalink to this definition">¶</a></dt>
1063<dd><p>Returns the size and position of the window as a <cite>wx.Rect</cite> object.</p>
1064</dd></dl>
1065
1066<dl class="method">
1067<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetReturnCode">
1068<tt class="descname">GetReturnCode</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetReturnCode" title="Permalink to this definition">¶</a></dt>
1069<dd></dd></dl>
1070
1071<dl class="method">
1072<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetScreenPosition">
1073<tt class="descname">GetScreenPosition</tt><big>(</big><em>self</em><big>)</big> &rarr; Point<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetScreenPosition" title="Permalink to this definition">¶</a></dt>
1074<dd><p>Get the position of the window in screen coordinantes.</p>
1075</dd></dl>
1076
1077<dl class="method">
1078<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetScreenPositionTuple">
1079<tt class="descname">GetScreenPositionTuple</tt><big>(</big><em>) -&gt; (x</em>, <em>y</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetScreenPositionTuple" title="Permalink to this definition">¶</a></dt>
1080<dd><p>Get the position of the window in screen coordinantes.</p>
1081</dd></dl>
1082
1083<dl class="method">
1084<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetScreenRect">
1085<tt class="descname">GetScreenRect</tt><big>(</big><em>self</em><big>)</big> &rarr; Rect<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetScreenRect" title="Permalink to this definition">¶</a></dt>
1086<dd><p>Returns the size and position of the window in screen coordinantes as
1087a <cite>wx.Rect</cite> object.</p>
1088</dd></dl>
1089
1090<dl class="method">
1091<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetScrollPos">
1092<tt class="descname">GetScrollPos</tt><big>(</big><em>self</em>, <em>int orientation</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetScrollPos" title="Permalink to this definition">¶</a></dt>
1093<dd><p>Returns the built-in scrollbar position.</p>
1094</dd></dl>
1095
1096<dl class="method">
1097<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetScrollRange">
1098<tt class="descname">GetScrollRange</tt><big>(</big><em>self</em>, <em>int orientation</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetScrollRange" title="Permalink to this definition">¶</a></dt>
1099<dd><p>Returns the built-in scrollbar range.</p>
1100</dd></dl>
1101
1102<dl class="method">
1103<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetScrollThumb">
1104<tt class="descname">GetScrollThumb</tt><big>(</big><em>self</em>, <em>int orientation</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetScrollThumb" title="Permalink to this definition">¶</a></dt>
1105<dd><p>Returns the built-in scrollbar thumb size.</p>
1106</dd></dl>
1107
1108<dl class="method">
1109<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetSize">
1110<tt class="descname">GetSize</tt><big>(</big><em>self</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetSize" title="Permalink to this definition">¶</a></dt>
1111<dd><p>Get the window size.</p>
1112</dd></dl>
1113
1114<dl class="method">
1115<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetSizeTuple">
1116<tt class="descname">GetSizeTuple</tt><big>(</big><em>) -&gt; (width</em>, <em>height</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetSizeTuple" title="Permalink to this definition">¶</a></dt>
1117<dd><p>Get the window size.</p>
1118</dd></dl>
1119
1120<dl class="method">
1121<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetSizer">
1122<tt class="descname">GetSizer</tt><big>(</big><em>self</em><big>)</big> &rarr; Sizer<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetSizer" title="Permalink to this definition">¶</a></dt>
1123<dd><p>Return the sizer associated with the window by a previous call to
1124SetSizer or None if there isn&#8217;t one.</p>
1125</dd></dl>
1126
1127<dl class="method">
1128<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetTextExtent">
1129<tt class="descname">GetTextExtent</tt><big>(</big><em>String string) -&gt; (width</em>, <em>height</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetTextExtent" title="Permalink to this definition">¶</a></dt>
1130<dd><p>Get the width and height of the text using the current font.</p>
1131</dd></dl>
1132
1133<dl class="method">
1134<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetThemeEnabled">
1135<tt class="descname">GetThemeEnabled</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetThemeEnabled" title="Permalink to this definition">¶</a></dt>
1136<dd><p>Return the themeEnabled flag.</p>
1137</dd></dl>
1138
1139<dl class="method">
1140<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetTitle">
1141<tt class="descname">GetTitle</tt><big>(</big><em>self</em><big>)</big> &rarr; String<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetTitle" title="Permalink to this definition">¶</a></dt>
1142<dd></dd></dl>
1143
1144<dl class="method">
1145<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetTmpDefaultItem">
1146<tt class="descname">GetTmpDefaultItem</tt><big>(</big><em>self</em><big>)</big> &rarr; Window<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetTmpDefaultItem" title="Permalink to this definition">¶</a></dt>
1147<dd><p>Return the temporary default item, which can be None.</p>
1148</dd></dl>
1149
1150<dl class="method">
1151<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetToolTip">
1152<tt class="descname">GetToolTip</tt><big>(</big><em>self</em><big>)</big> &rarr; ToolTip<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetToolTip" title="Permalink to this definition">¶</a></dt>
1153<dd><p>get the associated tooltip or None if none</p>
1154</dd></dl>
1155
1156<dl class="method">
1157<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetTopLevelParent">
1158<tt class="descname">GetTopLevelParent</tt><big>(</big><em>self</em><big>)</big> &rarr; Window<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetTopLevelParent" title="Permalink to this definition">¶</a></dt>
1159<dd><p>Returns the first frame or dialog in this window&#8217;s parental hierarchy.</p>
1160</dd></dl>
1161
1162<dl class="method">
1163<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetUpdateClientRect">
1164<tt class="descname">GetUpdateClientRect</tt><big>(</big><em>self</em><big>)</big> &rarr; Rect<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetUpdateClientRect" title="Permalink to this definition">¶</a></dt>
1165<dd><p>Get the update rectangle region bounding box in client coords.</p>
1166</dd></dl>
1167
1168<dl class="method">
1169<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetUpdateRegion">
1170<tt class="descname">GetUpdateRegion</tt><big>(</big><em>self</em><big>)</big> &rarr; Region<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetUpdateRegion" title="Permalink to this definition">¶</a></dt>
1171<dd><p>Returns the region specifying which parts of the window have been
1172damaged. Should only be called within an EVT_PAINT handler.</p>
1173</dd></dl>
1174
1175<dl class="method">
1176<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetValidator">
1177<tt class="descname">GetValidator</tt><big>(</big><em>self</em><big>)</big> &rarr; Validator<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetValidator" title="Permalink to this definition">¶</a></dt>
1178<dd><p>Returns a pointer to the current validator for the window, or None if
1179there is none.</p>
1180</dd></dl>
1181
1182<dl class="method">
1183<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetVirtualSize">
1184<tt class="descname">GetVirtualSize</tt><big>(</big><em>self</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetVirtualSize" title="Permalink to this definition">¶</a></dt>
1185<dd><p>Get the the virtual size of the window in pixels.  For most windows
1186this is just the client area of the window, but for some like scrolled
1187windows it is more or less independent of the screen window size.</p>
1188</dd></dl>
1189
1190<dl class="method">
1191<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetVirtualSizeTuple">
1192<tt class="descname">GetVirtualSizeTuple</tt><big>(</big><em>) -&gt; (width</em>, <em>height</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetVirtualSizeTuple" title="Permalink to this definition">¶</a></dt>
1193<dd><p>Get the the virtual size of the window in pixels.  For most windows
1194this is just the client area of the window, but for some like scrolled
1195windows it is more or less independent of the screen window size.</p>
1196</dd></dl>
1197
1198<dl class="method">
1199<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetWindowBorderSize">
1200<tt class="descname">GetWindowBorderSize</tt><big>(</big><em>self</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetWindowBorderSize" title="Permalink to this definition">¶</a></dt>
1201<dd><p>Return the size of the left/right and top/bottom borders.</p>
1202</dd></dl>
1203
1204<dl class="method">
1205<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetWindowStyle">
1206<tt class="descname">GetWindowStyle</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetWindowStyle" title="Permalink to this definition">¶</a></dt>
1207<dd><p>GetWindowStyleFlag(self) -&gt; long</p>
1208<p>Gets the window style that was passed to the constructor or Create
1209method.</p>
1210</dd></dl>
1211
1212<dl class="method">
1213<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetWindowStyleFlag">
1214<tt class="descname">GetWindowStyleFlag</tt><big>(</big><em>self</em><big>)</big> &rarr; long<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetWindowStyleFlag" title="Permalink to this definition">¶</a></dt>
1215<dd><p>Gets the window style that was passed to the constructor or Create
1216method.</p>
1217</dd></dl>
1218
1219<dl class="method">
1220<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GetWindowVariant">
1221<tt class="descname">GetWindowVariant</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GetWindowVariant" title="Permalink to this definition">¶</a></dt>
1222<dd></dd></dl>
1223
1224<dl class="attribute">
1225<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GrandParent">
1226<tt class="descname">GrandParent</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GrandParent" title="Permalink to this definition">¶</a></dt>
1227<dd><p>See <cite>GetGrandParent</cite></p>
1228</dd></dl>
1229
1230<dl class="attribute">
1231<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.GtkWidget">
1232<tt class="descname">GtkWidget</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.GtkWidget" title="Permalink to this definition">¶</a></dt>
1233<dd><p>GetGtkWidget(self) -&gt; long</p>
1234<p>On wxGTK returns a pointer to the GtkWidget for this window as a long
1235integer.  On the other platforms this method returns zero.</p>
1236</dd></dl>
1237
1238<dl class="attribute">
1239<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Handle">
1240<tt class="descname">Handle</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Handle" title="Permalink to this definition">¶</a></dt>
1241<dd><p>See <cite>GetHandle</cite></p>
1242</dd></dl>
1243
1244<dl class="method">
1245<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.HasCapture">
1246<tt class="descname">HasCapture</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.HasCapture" title="Permalink to this definition">¶</a></dt>
1247<dd><p>Returns true if this window has the current mouse capture.</p>
1248</dd></dl>
1249
1250<dl class="method">
1251<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.HasFlag">
1252<tt class="descname">HasFlag</tt><big>(</big><em>self</em>, <em>int flag</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.HasFlag" title="Permalink to this definition">¶</a></dt>
1253<dd><p>Test if the given style is set for this window.</p>
1254</dd></dl>
1255
1256<dl class="method">
1257<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.HasMultiplePages">
1258<tt class="descname">HasMultiplePages</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.HasMultiplePages" title="Permalink to this definition">¶</a></dt>
1259<dd></dd></dl>
1260
1261<dl class="method">
1262<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.HasScrollbar">
1263<tt class="descname">HasScrollbar</tt><big>(</big><em>self</em>, <em>int orient</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.HasScrollbar" title="Permalink to this definition">¶</a></dt>
1264<dd><p>Does the window have the scrollbar for this orientation?</p>
1265</dd></dl>
1266
1267<dl class="method">
1268<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.HasTransparentBackground">
1269<tt class="descname">HasTransparentBackground</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.HasTransparentBackground" title="Permalink to this definition">¶</a></dt>
1270<dd><p>Returns True if this window&#8217;s background is transparent (as, for
1271example, for <cite>wx.StaticText</cite>) and should show the parent window&#8217;s
1272background.</p>
1273<p>This method is mostly used internally by the library itself and you
1274normally shouldn&#8217;t have to call it. You may, however, have to override
1275it in your custom control classes to ensure that background is painted
1276correctly.</p>
1277</dd></dl>
1278
1279<dl class="attribute">
1280<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.HelpText">
1281<tt class="descname">HelpText</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.HelpText" title="Permalink to this definition">¶</a></dt>
1282<dd><p>See <cite>GetHelpText</cite> and <cite>SetHelpText</cite></p>
1283</dd></dl>
1284
1285<dl class="method">
1286<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Hide">
1287<tt class="descname">Hide</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Hide" title="Permalink to this definition">¶</a></dt>
1288<dd><p>Equivalent to calling Show(False).</p>
1289</dd></dl>
1290
1291<dl class="method">
1292<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.HitTest">
1293<tt class="descname">HitTest</tt><big>(</big><em>self</em>, <em>Point pt</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.HitTest" title="Permalink to this definition">¶</a></dt>
1294<dd><p>Test where the given (in client coords) point lies</p>
1295</dd></dl>
1296
1297<dl class="method">
1298<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.HitTestXY">
1299<tt class="descname">HitTestXY</tt><big>(</big><em>self</em>, <em>int x</em>, <em>int y</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.HitTestXY" title="Permalink to this definition">¶</a></dt>
1300<dd><p>Test where the given (in client coords) point lies</p>
1301</dd></dl>
1302
1303<dl class="attribute">
1304<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Icon">
1305<tt class="descname">Icon</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Icon" title="Permalink to this definition">¶</a></dt>
1306<dd><p>See <cite>GetIcon</cite> and <cite>SetIcon</cite></p>
1307</dd></dl>
1308
1309<dl class="method">
1310<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Iconize">
1311<tt class="descname">Iconize</tt><big>(</big><em>self</em>, <em>bool iconize=True</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Iconize" title="Permalink to this definition">¶</a></dt>
1312<dd></dd></dl>
1313
1314<dl class="attribute">
1315<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Id">
1316<tt class="descname">Id</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Id" title="Permalink to this definition">¶</a></dt>
1317<dd><p>See <cite>GetId</cite> and <cite>SetId</cite></p>
1318</dd></dl>
1319
1320<dl class="method">
1321<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.InheritAttributes">
1322<tt class="descname">InheritAttributes</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.InheritAttributes" title="Permalink to this definition">¶</a></dt>
1323<dd><p>This function is (or should be, in case of custom controls) called
1324during window creation to intelligently set up the window visual
1325attributes, that is the font and the foreground and background
1326colours.</p>
1327<p>By &#8216;intelligently&#8217; the following is meant: by default, all windows use
1328their own default attributes. However if some of the parent&#8217;s
1329attributes are explicitly changed (that is, using SetFont and not
1330SetOwnFont) and if the corresponding attribute hadn&#8217;t been
1331explicitly set for this window itself, then this window takes the same
1332value as used by the parent. In addition, if the window overrides
1333ShouldInheritColours to return false, the colours will not be changed
1334no matter what and only the font might.</p>
1335<p>This rather complicated logic is necessary in order to accommodate the
1336different usage scenarios. The most common one is when all default
1337attributes are used and in this case, nothing should be inherited as
1338in modern GUIs different controls use different fonts (and colours)
1339than their siblings so they can&#8217;t inherit the same value from the
1340parent. However it was also deemed desirable to allow to simply change
1341the attributes of all children at once by just changing the font or
1342colour of their common parent, hence in this case we do inherit the
1343parents attributes.</p>
1344</dd></dl>
1345
1346<dl class="method">
1347<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.InheritsBackgroundColour">
1348<tt class="descname">InheritsBackgroundColour</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.InheritsBackgroundColour" title="Permalink to this definition">¶</a></dt>
1349<dd></dd></dl>
1350
1351<dl class="method">
1352<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.InitDialog">
1353<tt class="descname">InitDialog</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.InitDialog" title="Permalink to this definition">¶</a></dt>
1354<dd><p>Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
1355to the dialog via validators.</p>
1356</dd></dl>
1357
1358<dl class="method">
1359<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.InvalidateBestSize">
1360<tt class="descname">InvalidateBestSize</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.InvalidateBestSize" title="Permalink to this definition">¶</a></dt>
1361<dd><p>Reset the cached best size value so it will be recalculated the next
1362time it is needed.</p>
1363</dd></dl>
1364
1365<dl class="method">
1366<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsActive">
1367<tt class="descname">IsActive</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsActive" title="Permalink to this definition">¶</a></dt>
1368<dd></dd></dl>
1369
1370<dl class="method">
1371<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsAlwaysMaximized">
1372<tt class="descname">IsAlwaysMaximized</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsAlwaysMaximized" title="Permalink to this definition">¶</a></dt>
1373<dd></dd></dl>
1374
1375<dl class="method">
1376<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsBeingDeleted">
1377<tt class="descname">IsBeingDeleted</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsBeingDeleted" title="Permalink to this definition">¶</a></dt>
1378<dd><p>Is the window in the process of being deleted?</p>
1379</dd></dl>
1380
1381<dl class="method">
1382<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsDoubleBuffered">
1383<tt class="descname">IsDoubleBuffered</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsDoubleBuffered" title="Permalink to this definition">¶</a></dt>
1384<dd><p>Returns <tt class="docutils literal"><span class="pre">True</span></tt> if the window contents is double-buffered by the
1385system, i.e. if any drawing done on the window is really done on a
1386temporary backing surface and transferred to the screen all at once
1387later.</p>
1388</dd></dl>
1389
1390<dl class="method">
1391<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsEnabled">
1392<tt class="descname">IsEnabled</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsEnabled" title="Permalink to this definition">¶</a></dt>
1393<dd><p>Returns true if the window is enabled for input, false otherwise.</p>
1394</dd></dl>
1395
1396<dl class="method">
1397<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsExposed">
1398<tt class="descname">IsExposed</tt><big>(</big><em>self</em>, <em>int x</em>, <em>int y</em>, <em>int w=1</em>, <em>int h=1</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsExposed" title="Permalink to this definition">¶</a></dt>
1399<dd><p>Returns true if the given point or rectangle area has been exposed
1400since the last repaint. Call this in an paint event handler to
1401optimize redrawing by only redrawing those areas, which have been
1402exposed.</p>
1403</dd></dl>
1404
1405<dl class="method">
1406<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsExposedPoint">
1407<tt class="descname">IsExposedPoint</tt><big>(</big><em>self</em>, <em>Point pt</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsExposedPoint" title="Permalink to this definition">¶</a></dt>
1408<dd><p>Returns true if the given point or rectangle area has been exposed
1409since the last repaint. Call this in an paint event handler to
1410optimize redrawing by only redrawing those areas, which have been
1411exposed.</p>
1412</dd></dl>
1413
1414<dl class="method">
1415<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsExposedRect">
1416<tt class="descname">IsExposedRect</tt><big>(</big><em>self</em>, <em>Rect rect</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsExposedRect" title="Permalink to this definition">¶</a></dt>
1417<dd><p>Returns true if the given point or rectangle area has been exposed
1418since the last repaint. Call this in an paint event handler to
1419optimize redrawing by only redrawing those areas, which have been
1420exposed.</p>
1421</dd></dl>
1422
1423<dl class="method">
1424<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsFrozen">
1425<tt class="descname">IsFrozen</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsFrozen" title="Permalink to this definition">¶</a></dt>
1426<dd><p>Returns <tt class="docutils literal"><span class="pre">True</span></tt> if the window has been frozen and not thawed yet.</p>
1427<table class="docutils field-list" frame="void" rules="none">
1428<col class="field-name" />
1429<col class="field-body" />
1430<tbody valign="top">
1431<tr class="field-odd field"><th class="field-name">See :</th><td class="field-body"><cite>Freeze</cite> and <cite>Thaw</cite></td>
1432</tr>
1433</tbody>
1434</table>
1435</dd></dl>
1436
1437<dl class="method">
1438<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsFullScreen">
1439<tt class="descname">IsFullScreen</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsFullScreen" title="Permalink to this definition">¶</a></dt>
1440<dd></dd></dl>
1441
1442<dl class="method">
1443<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsIconized">
1444<tt class="descname">IsIconized</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsIconized" title="Permalink to this definition">¶</a></dt>
1445<dd></dd></dl>
1446
1447<dl class="method">
1448<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsMaximized">
1449<tt class="descname">IsMaximized</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsMaximized" title="Permalink to this definition">¶</a></dt>
1450<dd></dd></dl>
1451
1452<dl class="method">
1453<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsModal">
1454<tt class="descname">IsModal</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsModal" title="Permalink to this definition">¶</a></dt>
1455<dd></dd></dl>
1456
1457<dl class="method">
1458<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsRetained">
1459<tt class="descname">IsRetained</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsRetained" title="Permalink to this definition">¶</a></dt>
1460<dd><p>Returns true if the window is retained, false otherwise.  Retained
1461windows are only available on X platforms.</p>
1462</dd></dl>
1463
1464<dl class="method">
1465<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsSameAs">
1466<tt class="descname">IsSameAs</tt><big>(</big><em>self</em>, <em>Object p</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsSameAs" title="Permalink to this definition">¶</a></dt>
1467<dd><p>For wx.Objects that use C++ reference counting internally, this method
1468can be used to determine if two objects are referencing the same data
1469object.</p>
1470</dd></dl>
1471
1472<dl class="method">
1473<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsShown">
1474<tt class="descname">IsShown</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsShown" title="Permalink to this definition">¶</a></dt>
1475<dd><p>Returns true if the window is shown, false if it has been hidden.</p>
1476</dd></dl>
1477
1478<dl class="method">
1479<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsShownOnScreen">
1480<tt class="descname">IsShownOnScreen</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsShownOnScreen" title="Permalink to this definition">¶</a></dt>
1481<dd><p>Returns <tt class="docutils literal"><span class="pre">True</span></tt> if the window is physically visible on the screen,
1482i.e. it is shown and all its parents up to the toplevel window are
1483shown as well.</p>
1484</dd></dl>
1485
1486<dl class="method">
1487<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.IsTopLevel">
1488<tt class="descname">IsTopLevel</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.IsTopLevel" title="Permalink to this definition">¶</a></dt>
1489<dd><p>Returns true if the given window is a top-level one. Currently all
1490frames and dialogs are always considered to be top-level windows (even
1491if they have a parent window).</p>
1492</dd></dl>
1493
1494<dl class="attribute">
1495<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Label">
1496<tt class="descname">Label</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Label" title="Permalink to this definition">¶</a></dt>
1497<dd><p>See <cite>GetLabel</cite> and <cite>SetLabel</cite></p>
1498</dd></dl>
1499
1500<dl class="method">
1501<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Layout">
1502<tt class="descname">Layout</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Layout" title="Permalink to this definition">¶</a></dt>
1503<dd><p>Invokes the constraint-based layout algorithm or the sizer-based
1504algorithm for this window.  See SetAutoLayout: when auto layout is on,
1505this function gets called automatically by the default EVT_SIZE
1506handler when the window is resized.</p>
1507</dd></dl>
1508
1509<dl class="attribute">
1510<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.LayoutDirection">
1511<tt class="descname">LayoutDirection</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.LayoutDirection" title="Permalink to this definition">¶</a></dt>
1512<dd><p>See <cite>GetLayoutDirection</cite> and <cite>SetLayoutDirection</cite></p>
1513</dd></dl>
1514
1515<dl class="method">
1516<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.LineDown">
1517<tt class="descname">LineDown</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.LineDown" title="Permalink to this definition">¶</a></dt>
1518<dd><p>This is just a wrapper for ScrollLines(1).</p>
1519</dd></dl>
1520
1521<dl class="method">
1522<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.LineUp">
1523<tt class="descname">LineUp</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.LineUp" title="Permalink to this definition">¶</a></dt>
1524<dd><p>This is just a wrapper for ScrollLines(-1).</p>
1525</dd></dl>
1526
1527<dl class="method">
1528<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Lower">
1529<tt class="descname">Lower</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Lower" title="Permalink to this definition">¶</a></dt>
1530<dd><p>Lowers the window to the bottom of the window hierarchy.  In current
1531version of wxWidgets this works both for managed and child windows.</p>
1532</dd></dl>
1533
1534<dl class="method">
1535<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MacGetMetalAppearance">
1536<tt class="descname">MacGetMetalAppearance</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MacGetMetalAppearance" title="Permalink to this definition">¶</a></dt>
1537<dd></dd></dl>
1538
1539<dl class="method">
1540<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MacGetTopLevelWindowRef">
1541<tt class="descname">MacGetTopLevelWindowRef</tt><big>(</big><em>self</em><big>)</big> &rarr; long<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MacGetTopLevelWindowRef" title="Permalink to this definition">¶</a></dt>
1542<dd></dd></dl>
1543
1544<dl class="method">
1545<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MacGetUnifiedAppearance">
1546<tt class="descname">MacGetUnifiedAppearance</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MacGetUnifiedAppearance" title="Permalink to this definition">¶</a></dt>
1547<dd></dd></dl>
1548
1549<dl class="method">
1550<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MacSetMetalAppearance">
1551<tt class="descname">MacSetMetalAppearance</tt><big>(</big><em>self</em>, <em>bool on</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MacSetMetalAppearance" title="Permalink to this definition">¶</a></dt>
1552<dd></dd></dl>
1553
1554<dl class="method">
1555<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MakeModal">
1556<tt class="descname">MakeModal</tt><big>(</big><em>self</em>, <em>bool modal=True</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MakeModal" title="Permalink to this definition">¶</a></dt>
1557<dd><p>Disables all other windows in the application so that the user can
1558only interact with this window.  Passing False will reverse this
1559effect.</p>
1560</dd></dl>
1561
1562<dl class="attribute">
1563<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MaxHeight">
1564<tt class="descname">MaxHeight</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MaxHeight" title="Permalink to this definition">¶</a></dt>
1565<dd><p>See <cite>GetMaxHeight</cite></p>
1566</dd></dl>
1567
1568<dl class="attribute">
1569<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MaxSize">
1570<tt class="descname">MaxSize</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MaxSize" title="Permalink to this definition">¶</a></dt>
1571<dd><p>See <cite>GetMaxSize</cite> and <cite>SetMaxSize</cite></p>
1572</dd></dl>
1573
1574<dl class="attribute">
1575<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MaxWidth">
1576<tt class="descname">MaxWidth</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MaxWidth" title="Permalink to this definition">¶</a></dt>
1577<dd><p>See <cite>GetMaxWidth</cite></p>
1578</dd></dl>
1579
1580<dl class="method">
1581<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Maximize">
1582<tt class="descname">Maximize</tt><big>(</big><em>self</em>, <em>bool maximize=True</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Maximize" title="Permalink to this definition">¶</a></dt>
1583<dd></dd></dl>
1584
1585<dl class="attribute">
1586<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MinHeight">
1587<tt class="descname">MinHeight</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MinHeight" title="Permalink to this definition">¶</a></dt>
1588<dd><p>See <cite>GetMinHeight</cite></p>
1589</dd></dl>
1590
1591<dl class="attribute">
1592<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MinSize">
1593<tt class="descname">MinSize</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MinSize" title="Permalink to this definition">¶</a></dt>
1594<dd><p>See <cite>GetMinSize</cite> and <cite>SetMinSize</cite></p>
1595</dd></dl>
1596
1597<dl class="attribute">
1598<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MinWidth">
1599<tt class="descname">MinWidth</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MinWidth" title="Permalink to this definition">¶</a></dt>
1600<dd><p>See <cite>GetMinWidth</cite></p>
1601</dd></dl>
1602
1603<dl class="method">
1604<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Move">
1605<tt class="descname">Move</tt><big>(</big><em>self</em>, <em>Point pt</em>, <em>int flags=SIZE_USE_EXISTING</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Move" title="Permalink to this definition">¶</a></dt>
1606<dd><p>Moves the window to the given position.</p>
1607</dd></dl>
1608
1609<dl class="method">
1610<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MoveAfterInTabOrder">
1611<tt class="descname">MoveAfterInTabOrder</tt><big>(</big><em>self</em>, <em>Window win</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MoveAfterInTabOrder" title="Permalink to this definition">¶</a></dt>
1612<dd><p>Moves this window in the tab navigation order after the specified
1613sibling window.  This means that when the user presses the TAB key on
1614that other window, the focus switches to this window.</p>
1615<p>The default tab order is the same as creation order.  This function
1616and <cite>MoveBeforeInTabOrder</cite> allow to change it after creating all the
1617windows.</p>
1618</dd></dl>
1619
1620<dl class="method">
1621<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MoveBeforeInTabOrder">
1622<tt class="descname">MoveBeforeInTabOrder</tt><big>(</big><em>self</em>, <em>Window win</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MoveBeforeInTabOrder" title="Permalink to this definition">¶</a></dt>
1623<dd><p>Same as <cite>MoveAfterInTabOrder</cite> except that it inserts this window just
1624before win instead of putting it right after it.</p>
1625</dd></dl>
1626
1627<dl class="method">
1628<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.MoveXY">
1629<tt class="descname">MoveXY</tt><big>(</big><em>self</em>, <em>int x</em>, <em>int y</em>, <em>int flags=SIZE_USE_EXISTING</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.MoveXY" title="Permalink to this definition">¶</a></dt>
1630<dd><p>Moves the window to the given position.</p>
1631</dd></dl>
1632
1633<dl class="attribute">
1634<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Name">
1635<tt class="descname">Name</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Name" title="Permalink to this definition">¶</a></dt>
1636<dd><p>See <cite>GetName</cite> and <cite>SetName</cite></p>
1637</dd></dl>
1638
1639<dl class="method">
1640<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Navigate">
1641<tt class="descname">Navigate</tt><big>(</big><em>self</em>, <em>int flags=NavigationKeyEvent.IsForward</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Navigate" title="Permalink to this definition">¶</a></dt>
1642<dd><p>Does keyboard navigation from this window to another, by sending a
1643<cite>wx.NavigationKeyEvent</cite>.</p>
1644</dd></dl>
1645
1646<dl class="staticmethod">
1647<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.NewControlId">
1648<em class="property">static </em><tt class="descname">NewControlId</tt><big>(</big><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.NewControlId" title="Permalink to this definition">¶</a></dt>
1649<dd><p>Generate a control id for the controls which were not given one.</p>
1650</dd></dl>
1651
1652<dl class="staticmethod">
1653<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.NextControlId">
1654<em class="property">static </em><tt class="descname">NextControlId</tt><big>(</big><em>int winid</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.NextControlId" title="Permalink to this definition">¶</a></dt>
1655<dd><p>Get the id of the control following the one with the given
1656autogenerated) id</p>
1657</dd></dl>
1658
1659<dl class="attribute">
1660<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.NextHandler">
1661<tt class="descname">NextHandler</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.NextHandler" title="Permalink to this definition">¶</a></dt>
1662<dd><p>See <cite>GetNextHandler</cite> and <cite>SetNextHandler</cite></p>
1663</dd></dl>
1664
1665<dl class="method">
1666<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.OnPaint">
1667<tt class="descname">OnPaint</tt><big>(</big><em>self</em>, <em>PaintEvent event</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.OnPaint" title="Permalink to this definition">¶</a></dt>
1668<dd></dd></dl>
1669
1670<dl class="method">
1671<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.PageDown">
1672<tt class="descname">PageDown</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.PageDown" title="Permalink to this definition">¶</a></dt>
1673<dd><p>This is just a wrapper for ScrollPages(1).</p>
1674</dd></dl>
1675
1676<dl class="method">
1677<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.PageUp">
1678<tt class="descname">PageUp</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.PageUp" title="Permalink to this definition">¶</a></dt>
1679<dd><p>This is just a wrapper for ScrollPages(-1).</p>
1680</dd></dl>
1681
1682<dl class="attribute">
1683<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Parent">
1684<tt class="descname">Parent</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Parent" title="Permalink to this definition">¶</a></dt>
1685<dd><p>See <cite>GetParent</cite></p>
1686</dd></dl>
1687
1688<dl class="method">
1689<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.PopEventHandler">
1690<tt class="descname">PopEventHandler</tt><big>(</big><em>self</em>, <em>bool deleteHandler=False</em><big>)</big> &rarr; EvtHandler<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.PopEventHandler" title="Permalink to this definition">¶</a></dt>
1691<dd><p>Removes and returns the top-most event handler on the event handler
1692stack.  If deleteHandler is True then the wx.EvtHandler object will be
1693destroyed after it is popped, and <tt class="docutils literal"><span class="pre">None</span></tt> will be returned instead.</p>
1694</dd></dl>
1695
1696<dl class="method">
1697<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.PopupMenu">
1698<tt class="descname">PopupMenu</tt><big>(</big><em>self</em>, <em>Menu menu</em>, <em>Point pos=DefaultPosition</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.PopupMenu" title="Permalink to this definition">¶</a></dt>
1699<dd><p>Pops up the given menu at the specified coordinates, relative to this window,
1700and returns control when the user has dismissed the menu. If a menu item is
1701selected, the corresponding menu event is generated and will be processed as
1702usual.  If the default position is given then the current position of the
1703mouse cursor will be used.</p>
1704</dd></dl>
1705
1706<dl class="method">
1707<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.PopupMenuXY">
1708<tt class="descname">PopupMenuXY</tt><big>(</big><em>self</em>, <em>Menu menu</em>, <em>int x=-1</em>, <em>int y=-1</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.PopupMenuXY" title="Permalink to this definition">¶</a></dt>
1709<dd><p>Pops up the given menu at the specified coordinates, relative to this window,
1710and returns control when the user has dismissed the menu. If a menu item is
1711selected, the corresponding menu event is generated and will be processed as
1712usual.  If the default position is given then the current position of the
1713mouse cursor will be used.</p>
1714</dd></dl>
1715
1716<dl class="attribute">
1717<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Position">
1718<tt class="descname">Position</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Position" title="Permalink to this definition">¶</a></dt>
1719<dd><p>See <cite>GetPosition</cite> and <cite>SetPosition</cite></p>
1720</dd></dl>
1721
1722<dl class="method">
1723<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.PostCreate">
1724<tt class="descname">PostCreate</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.PostCreate" title="Permalink to this definition">¶</a></dt>
1725<dd><p>Phase 3 of the 2-phase create &lt;wink!&gt;
1726Call this method after precreating the window with the 2-phase create method.</p>
1727</dd></dl>
1728
1729<dl class="method">
1730<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.PrepareDC">
1731<tt class="descname">PrepareDC</tt><big>(</big><em>self</em>, <em>DC dc</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.PrepareDC" title="Permalink to this definition">¶</a></dt>
1732<dd><p>Call this function to prepare the device context for drawing a
1733scrolled image. It sets the device origin according to the current
1734scroll position.</p>
1735</dd></dl>
1736
1737<dl class="staticmethod">
1738<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.PrevControlId">
1739<em class="property">static </em><tt class="descname">PrevControlId</tt><big>(</big><em>int winid</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.PrevControlId" title="Permalink to this definition">¶</a></dt>
1740<dd><p>Get the id of the control preceding the one with the given
1741autogenerated) id</p>
1742</dd></dl>
1743
1744<dl class="attribute">
1745<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.PreviousHandler">
1746<tt class="descname">PreviousHandler</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.PreviousHandler" title="Permalink to this definition">¶</a></dt>
1747<dd><p>See <cite>GetPreviousHandler</cite> and <cite>SetPreviousHandler</cite></p>
1748</dd></dl>
1749
1750<dl class="method">
1751<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ProcessEvent">
1752<tt class="descname">ProcessEvent</tt><big>(</big><em>self</em>, <em>Event event</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ProcessEvent" title="Permalink to this definition">¶</a></dt>
1753<dd></dd></dl>
1754
1755<dl class="method">
1756<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ProcessPendingEvents">
1757<tt class="descname">ProcessPendingEvents</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ProcessPendingEvents" title="Permalink to this definition">¶</a></dt>
1758<dd></dd></dl>
1759
1760<dl class="method">
1761<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.PushEventHandler">
1762<tt class="descname">PushEventHandler</tt><big>(</big><em>self</em>, <em>EvtHandler handler</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.PushEventHandler" title="Permalink to this definition">¶</a></dt>
1763<dd><p>Pushes this event handler onto the event handler stack for the window.
1764An event handler is an object that is capable of processing the events
1765sent to a window.  (In other words, is able to dispatch the events to a
1766handler function.)  By default, the window is its own event handler,
1767but an application may wish to substitute another, for example to
1768allow central implementation of event-handling for a variety of
1769different window classes.</p>
1770<p>wx.Window.PushEventHandler allows an application to set up a chain of
1771event handlers, where an event not handled by one event handler is
1772handed to the next one in the chain.  Use <cite>wx.Window.PopEventHandler</cite>
1773to remove the event handler.  Ownership of the handler is <em>not</em> given
1774to the window, so you should be sure to pop the handler before the
1775window is destroyed and either let PopEventHandler destroy it, or call
1776its Destroy method yourself.</p>
1777</dd></dl>
1778
1779<dl class="method">
1780<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Raise">
1781<tt class="descname">Raise</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Raise" title="Permalink to this definition">¶</a></dt>
1782<dd><p>Raises the window to the top of the window hierarchy.  In current
1783version of wxWidgets this works both for managed and child windows.</p>
1784</dd></dl>
1785
1786<dl class="attribute">
1787<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Rect">
1788<tt class="descname">Rect</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Rect" title="Permalink to this definition">¶</a></dt>
1789<dd><p>See <cite>GetRect</cite> and <cite>SetRect</cite></p>
1790</dd></dl>
1791
1792<dl class="method">
1793<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Refresh">
1794<tt class="descname">Refresh</tt><big>(</big><em>self</em>, <em>bool eraseBackground=True</em>, <em>Rect rect=None</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Refresh" title="Permalink to this definition">¶</a></dt>
1795<dd><p>Mark the specified rectangle (or the whole window) as &#8220;dirty&#8221; so it
1796will be repainted.  Causes an EVT_PAINT event to be generated and sent
1797to the window.</p>
1798</dd></dl>
1799
1800<dl class="method">
1801<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.RefreshRect">
1802<tt class="descname">RefreshRect</tt><big>(</big><em>self</em>, <em>Rect rect</em>, <em>bool eraseBackground=True</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.RefreshRect" title="Permalink to this definition">¶</a></dt>
1803<dd><p>Redraws the contents of the given rectangle: the area inside it will
1804be repainted.  This is the same as Refresh but has a nicer syntax.</p>
1805</dd></dl>
1806
1807<dl class="method">
1808<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.RegisterHotKey">
1809<tt class="descname">RegisterHotKey</tt><big>(</big><em>self</em>, <em>int hotkeyId</em>, <em>int modifiers</em>, <em>int keycode</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.RegisterHotKey" title="Permalink to this definition">¶</a></dt>
1810<dd><p>Registers a system wide hotkey. Every time the user presses the hotkey
1811registered here, this window will receive a hotkey event. It will
1812receive the event even if the application is in the background and
1813does not have the input focus because the user is working with some
1814other application.  To bind an event handler function to this hotkey
1815use EVT_HOTKEY with an id equal to hotkeyId.  Returns True if the
1816hotkey was registered successfully.</p>
1817</dd></dl>
1818
1819<dl class="method">
1820<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ReleaseMouse">
1821<tt class="descname">ReleaseMouse</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ReleaseMouse" title="Permalink to this definition">¶</a></dt>
1822<dd><p>Releases mouse input captured with wx.Window.CaptureMouse.</p>
1823</dd></dl>
1824
1825<dl class="method">
1826<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.RemoveChild">
1827<tt class="descname">RemoveChild</tt><big>(</big><em>self</em>, <em>Window child</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.RemoveChild" title="Permalink to this definition">¶</a></dt>
1828<dd><p>Removes a child window. This is called automatically by window
1829deletion functions so should not be required by the application
1830programmer.</p>
1831</dd></dl>
1832
1833<dl class="method">
1834<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.RemoveEventHandler">
1835<tt class="descname">RemoveEventHandler</tt><big>(</big><em>self</em>, <em>EvtHandler handler</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.RemoveEventHandler" title="Permalink to this definition">¶</a></dt>
1836<dd><p>Find the given handler in the event handler chain and remove (but not
1837delete) it from the event handler chain, returns True if it was found
1838and False otherwise (this also results in an assert failure so this
1839function should only be called when the handler is supposed to be
1840there.)</p>
1841</dd></dl>
1842
1843<dl class="method">
1844<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Reparent">
1845<tt class="descname">Reparent</tt><big>(</big><em>self</em>, <em>Window newParent</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Reparent" title="Permalink to this definition">¶</a></dt>
1846<dd><p>Reparents the window, i.e the window will be removed from its current
1847parent window (e.g. a non-standard toolbar in a wxFrame) and then
1848re-inserted into another. Available on Windows and GTK.  Returns True
1849if the parent was changed, False otherwise (error or newParent ==
1850oldParent)</p>
1851</dd></dl>
1852
1853<dl class="method">
1854<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.RequestUserAttention">
1855<tt class="descname">RequestUserAttention</tt><big>(</big><em>self</em>, <em>int flags=USER_ATTENTION_INFO</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.RequestUserAttention" title="Permalink to this definition">¶</a></dt>
1856<dd></dd></dl>
1857
1858<dl class="method">
1859<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Restore">
1860<tt class="descname">Restore</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Restore" title="Permalink to this definition">¶</a></dt>
1861<dd></dd></dl>
1862
1863<dl class="attribute">
1864<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ReturnCode">
1865<tt class="descname">ReturnCode</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ReturnCode" title="Permalink to this definition">¶</a></dt>
1866<dd><p>See <cite>GetReturnCode</cite> and <cite>SetReturnCode</cite></p>
1867</dd></dl>
1868
1869<dl class="attribute">
1870<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ScreenPosition">
1871<tt class="descname">ScreenPosition</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ScreenPosition" title="Permalink to this definition">¶</a></dt>
1872<dd><p>See <cite>GetScreenPosition</cite></p>
1873</dd></dl>
1874
1875<dl class="attribute">
1876<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ScreenRect">
1877<tt class="descname">ScreenRect</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ScreenRect" title="Permalink to this definition">¶</a></dt>
1878<dd><p>See <cite>GetScreenRect</cite></p>
1879</dd></dl>
1880
1881<dl class="method">
1882<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ScreenToClient">
1883<tt class="descname">ScreenToClient</tt><big>(</big><em>self</em>, <em>Point pt</em><big>)</big> &rarr; Point<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ScreenToClient" title="Permalink to this definition">¶</a></dt>
1884<dd><p>Converts from screen to client window coordinates.</p>
1885</dd></dl>
1886
1887<dl class="method">
1888<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ScreenToClientXY">
1889<tt class="descname">ScreenToClientXY</tt><big>(</big><em>int x</em>, <em>int y) -&gt; (x</em>, <em>y</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ScreenToClientXY" title="Permalink to this definition">¶</a></dt>
1890<dd><p>Converts from screen to client window coordinates.</p>
1891</dd></dl>
1892
1893<dl class="method">
1894<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ScrollLines">
1895<tt class="descname">ScrollLines</tt><big>(</big><em>self</em>, <em>int lines</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ScrollLines" title="Permalink to this definition">¶</a></dt>
1896<dd><p>If the platform and window class supports it, scrolls the window by
1897the given number of lines down, if lines is positive, or up if lines
1898is negative.  Returns True if the window was scrolled, False if it was
1899already on top/bottom and nothing was done.</p>
1900</dd></dl>
1901
1902<dl class="method">
1903<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ScrollPages">
1904<tt class="descname">ScrollPages</tt><big>(</big><em>self</em>, <em>int pages</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ScrollPages" title="Permalink to this definition">¶</a></dt>
1905<dd><p>If the platform and window class supports it, scrolls the window by
1906the given number of pages down, if pages is positive, or up if pages
1907is negative.  Returns True if the window was scrolled, False if it was
1908already on top/bottom and nothing was done.</p>
1909</dd></dl>
1910
1911<dl class="method">
1912<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ScrollWindow">
1913<tt class="descname">ScrollWindow</tt><big>(</big><em>self</em>, <em>int dx</em>, <em>int dy</em>, <em>Rect rect=None</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ScrollWindow" title="Permalink to this definition">¶</a></dt>
1914<dd><p>Physically scrolls the pixels in the window and move child windows
1915accordingly.  Use this function to optimise your scrolling
1916implementations, to minimise the area that must be redrawn. Note that
1917it is rarely required to call this function from a user program.</p>
1918</dd></dl>
1919
1920<dl class="method">
1921<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SendSizeEvent">
1922<tt class="descname">SendSizeEvent</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SendSizeEvent" title="Permalink to this definition">¶</a></dt>
1923<dd></dd></dl>
1924
1925<dl class="method">
1926<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetAcceleratorTable">
1927<tt class="descname">SetAcceleratorTable</tt><big>(</big><em>self</em>, <em>AcceleratorTable accel</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetAcceleratorTable" title="Permalink to this definition">¶</a></dt>
1928<dd><p>Sets the accelerator table for this window.</p>
1929</dd></dl>
1930
1931<dl class="method">
1932<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetAffirmativeId">
1933<tt class="descname">SetAffirmativeId</tt><big>(</big><em>self</em>, <em>int affirmativeId</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetAffirmativeId" title="Permalink to this definition">¶</a></dt>
1934<dd></dd></dl>
1935
1936<dl class="method">
1937<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetAutoLayout">
1938<tt class="descname">SetAutoLayout</tt><big>(</big><em>self</em>, <em>bool autoLayout</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetAutoLayout" title="Permalink to this definition">¶</a></dt>
1939<dd><p>Determines whether the Layout function will be called automatically
1940when the window is resized.  lease note that this only happens for the
1941windows usually used to contain children, namely <cite>wx.Panel</cite> and
1942<cite>wx.TopLevelWindow</cite> (and the classes deriving from them).</p>
1943<p>This method is called implicitly by <cite>SetSizer</cite> but if you use
1944<cite>SetConstraints</cite> you should call it manually or otherwise the window
1945layout won&#8217;t be correctly updated when its size changes.</p>
1946</dd></dl>
1947
1948<dl class="method">
1949<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetBackgroundColour">
1950<tt class="descname">SetBackgroundColour</tt><big>(</big><em>self</em>, <em>Colour colour</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetBackgroundColour" title="Permalink to this definition">¶</a></dt>
1951<dd><p>Sets the background colour of the window.  Returns True if the colour
1952was changed.  The background colour is usually painted by the default
1953EVT_ERASE_BACKGROUND event handler function under Windows and
1954automatically under GTK.  Using <cite>wx.NullColour</cite> will reset the window
1955to the default background colour.</p>
1956<p>Note that setting the background colour may not cause an immediate
1957refresh, so you may wish to call <cite>ClearBackground</cite> or <cite>Refresh</cite> after
1958calling this function.</p>
1959<p>Using this function will disable attempts to use themes for this
1960window, if the system supports them.  Use with care since usually the
1961themes represent the appearance chosen by the user to be used for all
1962applications on the system.</p>
1963</dd></dl>
1964
1965<dl class="method">
1966<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetBackgroundStyle">
1967<tt class="descname">SetBackgroundStyle</tt><big>(</big><em>self</em>, <em>int style</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetBackgroundStyle" title="Permalink to this definition">¶</a></dt>
1968<dd><p>Returns the background style of the window. The background style
1969indicates how the background of the window is drawn.</p>
1970<blockquote>
1971<div><table border="1" class="docutils">
1972<colgroup>
1973<col width="35%" />
1974<col width="65%" />
1975</colgroup>
1976<tbody valign="top">
1977<tr class="row-odd"><td>wx.BG_STYLE_SYSTEM</td>
1978<td>The background colour or pattern should
1979be determined by the system</td>
1980</tr>
1981<tr class="row-even"><td>wx.BG_STYLE_COLOUR</td>
1982<td>The background should be a solid colour</td>
1983</tr>
1984<tr class="row-odd"><td>wx.BG_STYLE_CUSTOM</td>
1985<td>The background will be implemented by the
1986application.</td>
1987</tr>
1988</tbody>
1989</table>
1990</div></blockquote>
1991<p>On GTK+, use of wx.BG_STYLE_CUSTOM allows the flicker-free drawing of
1992a custom background, such as a tiled bitmap. Currently the style has
1993no effect on other platforms.</p>
1994<table class="docutils field-list" frame="void" rules="none">
1995<col class="field-name" />
1996<col class="field-body" />
1997<tbody valign="top">
1998<tr class="field-odd field"><th class="field-name">See :</th><td class="field-body"><cite>GetBackgroundStyle</cite>, <cite>SetBackgroundColour</cite></td>
1999</tr>
2000</tbody>
2001</table>
2002</dd></dl>
2003
2004<dl class="method">
2005<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetBestFittingSize">
2006<tt class="descname">SetBestFittingSize</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetBestFittingSize" title="Permalink to this definition">¶</a></dt>
2007<dd><p>Use <cite>SetInitialSize</cite></p>
2008</dd></dl>
2009
2010<dl class="method">
2011<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetCaret">
2012<tt class="descname">SetCaret</tt><big>(</big><em>self</em>, <em>Caret caret</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetCaret" title="Permalink to this definition">¶</a></dt>
2013<dd><p>Sets the caret associated with the window.</p>
2014</dd></dl>
2015
2016<dl class="method">
2017<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetClientRect">
2018<tt class="descname">SetClientRect</tt><big>(</big><em>self</em>, <em>Rect rect</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetClientRect" title="Permalink to this definition">¶</a></dt>
2019<dd><p>This sets the size of the window client area in pixels. Using this
2020function to size a window tends to be more device-independent than
2021wx.Window.SetSize, since the application need not worry about what
2022dimensions the border or title bar have when trying to fit the window
2023around panel items, for example.</p>
2024</dd></dl>
2025
2026<dl class="method">
2027<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetClientSize">
2028<tt class="descname">SetClientSize</tt><big>(</big><em>self</em>, <em>Size size</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetClientSize" title="Permalink to this definition">¶</a></dt>
2029<dd><p>This sets the size of the window client area in pixels. Using this
2030function to size a window tends to be more device-independent than
2031wx.Window.SetSize, since the application need not worry about what
2032dimensions the border or title bar have when trying to fit the window
2033around panel items, for example.</p>
2034</dd></dl>
2035
2036<dl class="method">
2037<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetClientSizeWH">
2038<tt class="descname">SetClientSizeWH</tt><big>(</big><em>self</em>, <em>int width</em>, <em>int height</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetClientSizeWH" title="Permalink to this definition">¶</a></dt>
2039<dd><p>This sets the size of the window client area in pixels. Using this
2040function to size a window tends to be more device-independent than
2041wx.Window.SetSize, since the application need not worry about what
2042dimensions the border or title bar have when trying to fit the window
2043around panel items, for example.</p>
2044</dd></dl>
2045
2046<dl class="method">
2047<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetConstraints">
2048<tt class="descname">SetConstraints</tt><big>(</big><em>self</em>, <em>LayoutConstraints constraints</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetConstraints" title="Permalink to this definition">¶</a></dt>
2049<dd><p>Sets the window to have the given layout constraints. If an existing
2050layout constraints object is already owned by the window, it will be
2051deleted.  Pass None to disassociate and delete the window&#8217;s current
2052constraints.</p>
2053<p>You must call SetAutoLayout to tell a window to use the constraints
2054automatically in its default EVT_SIZE handler; otherwise, you must
2055handle EVT_SIZE yourself and call Layout() explicitly. When setting
2056both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have
2057effect.</p>
2058</dd></dl>
2059
2060<dl class="method">
2061<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetContainingSizer">
2062<tt class="descname">SetContainingSizer</tt><big>(</big><em>self</em>, <em>Sizer sizer</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetContainingSizer" title="Permalink to this definition">¶</a></dt>
2063<dd><p>This normally does not need to be called by application code. It is
2064called internally when a window is added to a sizer, and is used so
2065the window can remove itself from the sizer when it is destroyed.</p>
2066</dd></dl>
2067
2068<dl class="method">
2069<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetCursor">
2070<tt class="descname">SetCursor</tt><big>(</big><em>self</em>, <em>Cursor cursor</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetCursor" title="Permalink to this definition">¶</a></dt>
2071<dd><p>Sets the window&#8217;s cursor. Notice that the window cursor also sets it
2072for the children of the window implicitly.</p>
2073<p>The cursor may be wx.NullCursor in which case the window cursor will
2074be reset back to default.</p>
2075</dd></dl>
2076
2077<dl class="method">
2078<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetDefaultItem">
2079<tt class="descname">SetDefaultItem</tt><big>(</big><em>self</em>, <em>Window child</em><big>)</big> &rarr; Window<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetDefaultItem" title="Permalink to this definition">¶</a></dt>
2080<dd><p>Set this child as default, return the old default.</p>
2081</dd></dl>
2082
2083<dl class="method">
2084<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetDimensions">
2085<tt class="descname">SetDimensions</tt><big>(</big><em>self</em>, <em>int x</em>, <em>int y</em>, <em>int width</em>, <em>int height</em>, <em>int sizeFlags=SIZE_AUTO</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetDimensions" title="Permalink to this definition">¶</a></dt>
2086<dd><p>Sets the position and size of the window in pixels.  The sizeFlags
2087parameter indicates the interpretation of the other params if they are
2088equal to -1.</p>
2089<blockquote>
2090<div><table border="1" class="docutils">
2091<colgroup>
2092<col width="39%" />
2093<col width="61%" />
2094</colgroup>
2095<tbody valign="top">
2096<tr class="row-odd"><td>wx.SIZE_AUTO</td>
2097<td>A -1 indicates that a class-specific
2098default should be used.</td>
2099</tr>
2100<tr class="row-even"><td>wx.SIZE_USE_EXISTING</td>
2101<td>Existing dimensions should be used if
2102-1 values are supplied.</td>
2103</tr>
2104<tr class="row-odd"><td>wxSIZE_ALLOW_MINUS_ONE</td>
2105<td>Allow dimensions of -1 and less to be
2106interpreted as real dimensions, not
2107default values.</td>
2108</tr>
2109</tbody>
2110</table>
2111</div></blockquote>
2112</dd></dl>
2113
2114<dl class="method">
2115<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetDoubleBuffered">
2116<tt class="descname">SetDoubleBuffered</tt><big>(</big><em>self</em>, <em>bool on</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetDoubleBuffered" title="Permalink to this definition">¶</a></dt>
2117<dd><p>Put the native window into double buffered or composited mode.</p>
2118</dd></dl>
2119
2120<dl class="method">
2121<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetDropTarget">
2122<tt class="descname">SetDropTarget</tt><big>(</big><em>self</em>, <em>DropTarget dropTarget</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetDropTarget" title="Permalink to this definition">¶</a></dt>
2123<dd><p>Associates a drop target with this window.  If the window already has
2124a drop target, it is deleted.</p>
2125</dd></dl>
2126
2127<dl class="method">
2128<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetEscapeId">
2129<tt class="descname">SetEscapeId</tt><big>(</big><em>self</em>, <em>int escapeId</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetEscapeId" title="Permalink to this definition">¶</a></dt>
2130<dd></dd></dl>
2131
2132<dl class="method">
2133<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetEventHandler">
2134<tt class="descname">SetEventHandler</tt><big>(</big><em>self</em>, <em>EvtHandler handler</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetEventHandler" title="Permalink to this definition">¶</a></dt>
2135<dd><p>Sets the event handler for this window.  An event handler is an object
2136that is capable of processing the events sent to a window.  (In other
2137words, is able to dispatch the events to handler function.)  By
2138default, the window is its own event handler, but an application may
2139wish to substitute another, for example to allow central
2140implementation of event-handling for a variety of different window
2141classes.</p>
2142<p>It is usually better to use <cite>wx.Window.PushEventHandler</cite> since this sets
2143up a chain of event handlers, where an event not handled by one event
2144handler is handed off to the next one in the chain.</p>
2145</dd></dl>
2146
2147<dl class="method">
2148<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetEvtHandlerEnabled">
2149<tt class="descname">SetEvtHandlerEnabled</tt><big>(</big><em>self</em>, <em>bool enabled</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetEvtHandlerEnabled" title="Permalink to this definition">¶</a></dt>
2150<dd></dd></dl>
2151
2152<dl class="method">
2153<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetExtraStyle">
2154<tt class="descname">SetExtraStyle</tt><big>(</big><em>self</em>, <em>long exStyle</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetExtraStyle" title="Permalink to this definition">¶</a></dt>
2155<dd><p>Sets the extra style bits for the window.  Extra styles are the less
2156often used style bits which can&#8217;t be set with the constructor or with
2157SetWindowStyleFlag()</p>
2158</dd></dl>
2159
2160<dl class="method">
2161<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetFocus">
2162<tt class="descname">SetFocus</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetFocus" title="Permalink to this definition">¶</a></dt>
2163<dd><p>Set&#8217;s the focus to this window, allowing it to receive keyboard input.</p>
2164</dd></dl>
2165
2166<dl class="method">
2167<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetFocusFromKbd">
2168<tt class="descname">SetFocusFromKbd</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetFocusFromKbd" title="Permalink to this definition">¶</a></dt>
2169<dd><p>Set focus to this window as the result of a keyboard action.  Normally
2170only called internally.</p>
2171</dd></dl>
2172
2173<dl class="method">
2174<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetFont">
2175<tt class="descname">SetFont</tt><big>(</big><em>self</em>, <em>Font font</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetFont" title="Permalink to this definition">¶</a></dt>
2176<dd><p>Sets the font for this window.</p>
2177</dd></dl>
2178
2179<dl class="method">
2180<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetForegroundColour">
2181<tt class="descname">SetForegroundColour</tt><big>(</big><em>self</em>, <em>Colour colour</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetForegroundColour" title="Permalink to this definition">¶</a></dt>
2182<dd><p>Sets the foreground colour of the window.  Returns True is the colour
2183was changed.  The interpretation of foreground colour is dependent on
2184the window class; it may be the text colour or other colour, or it may
2185not be used at all.</p>
2186</dd></dl>
2187
2188<dl class="method">
2189<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetHelpText">
2190<tt class="descname">SetHelpText</tt><big>(</big><em>self</em>, <em>String text</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetHelpText" title="Permalink to this definition">¶</a></dt>
2191<dd><p>Sets the help text to be used as context-sensitive help for this
2192window.  Note that the text is actually stored by the current
2193<cite>wx.HelpProvider</cite> implementation, and not in the window object itself.</p>
2194</dd></dl>
2195
2196<dl class="method">
2197<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetHelpTextForId">
2198<tt class="descname">SetHelpTextForId</tt><big>(</big><em>self</em>, <em>String text</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetHelpTextForId" title="Permalink to this definition">¶</a></dt>
2199<dd><p>Associate this help text with all windows with the same id as this
2200one.</p>
2201</dd></dl>
2202
2203<dl class="method">
2204<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetIcon">
2205<tt class="descname">SetIcon</tt><big>(</big><em>self</em>, <em>Icon icon</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetIcon" title="Permalink to this definition">¶</a></dt>
2206<dd></dd></dl>
2207
2208<dl class="method">
2209<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetIcons">
2210<tt class="descname">SetIcons</tt><big>(</big><em>self</em>, <em>wxIconBundle icons</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetIcons" title="Permalink to this definition">¶</a></dt>
2211<dd></dd></dl>
2212
2213<dl class="method">
2214<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetId">
2215<tt class="descname">SetId</tt><big>(</big><em>self</em>, <em>int winid</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetId" title="Permalink to this definition">¶</a></dt>
2216<dd><p>Sets the identifier of the window.  Each window has an integer
2217identifier. If the application has not provided one, an identifier
2218will be generated. Normally, the identifier should be provided on
2219creation and should not be modified subsequently.</p>
2220</dd></dl>
2221
2222<dl class="method">
2223<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetInitialSize">
2224<tt class="descname">SetInitialSize</tt><big>(</big><em>self</em>, <em>Size size=DefaultSize</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetInitialSize" title="Permalink to this definition">¶</a></dt>
2225<dd><p>A &#8216;Smart&#8217; SetSize that will fill in default size components with the
2226window&#8217;s <em>best size</em> values.  Also set&#8217;s the minsize for use with sizers.</p>
2227</dd></dl>
2228
2229<dl class="method">
2230<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetLabel">
2231<tt class="descname">SetLabel</tt><big>(</big><em>self</em>, <em>String label</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetLabel" title="Permalink to this definition">¶</a></dt>
2232<dd><p>Set the text which the window shows in its label if applicable.</p>
2233</dd></dl>
2234
2235<dl class="method">
2236<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetLayoutDirection">
2237<tt class="descname">SetLayoutDirection</tt><big>(</big><em>self</em>, <em>int dir</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetLayoutDirection" title="Permalink to this definition">¶</a></dt>
2238<dd><p>Set the layout direction (LTR or RTL) for this window.</p>
2239</dd></dl>
2240
2241<dl class="method">
2242<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetMaxSize">
2243<tt class="descname">SetMaxSize</tt><big>(</big><em>self</em>, <em>Size maxSize</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetMaxSize" title="Permalink to this definition">¶</a></dt>
2244<dd><p>A more convenient method than <cite>SetSizeHints</cite> for setting just the
2245max size.</p>
2246</dd></dl>
2247
2248<dl class="method">
2249<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetMinSize">
2250<tt class="descname">SetMinSize</tt><big>(</big><em>self</em>, <em>Size minSize</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetMinSize" title="Permalink to this definition">¶</a></dt>
2251<dd><p>A more convenient method than <cite>SetSizeHints</cite> for setting just the
2252min size.</p>
2253</dd></dl>
2254
2255<dl class="method">
2256<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetName">
2257<tt class="descname">SetName</tt><big>(</big><em>self</em>, <em>String name</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetName" title="Permalink to this definition">¶</a></dt>
2258<dd><p>Sets the window&#8217;s name.  The window name is used for ressource setting
2259in X, it is not the same as the window title/label</p>
2260</dd></dl>
2261
2262<dl class="method">
2263<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetNextHandler">
2264<tt class="descname">SetNextHandler</tt><big>(</big><em>self</em>, <em>EvtHandler handler</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetNextHandler" title="Permalink to this definition">¶</a></dt>
2265<dd></dd></dl>
2266
2267<dl class="method">
2268<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetOwnBackgroundColour">
2269<tt class="descname">SetOwnBackgroundColour</tt><big>(</big><em>self</em>, <em>Colour colour</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetOwnBackgroundColour" title="Permalink to this definition">¶</a></dt>
2270<dd></dd></dl>
2271
2272<dl class="method">
2273<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetOwnFont">
2274<tt class="descname">SetOwnFont</tt><big>(</big><em>self</em>, <em>Font font</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetOwnFont" title="Permalink to this definition">¶</a></dt>
2275<dd></dd></dl>
2276
2277<dl class="method">
2278<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetOwnForegroundColour">
2279<tt class="descname">SetOwnForegroundColour</tt><big>(</big><em>self</em>, <em>Colour colour</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetOwnForegroundColour" title="Permalink to this definition">¶</a></dt>
2280<dd></dd></dl>
2281
2282<dl class="method">
2283<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetPosition">
2284<tt class="descname">SetPosition</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetPosition" title="Permalink to this definition">¶</a></dt>
2285<dd><p>Move(self, Point pt, int flags=SIZE_USE_EXISTING)</p>
2286<p>Moves the window to the given position.</p>
2287</dd></dl>
2288
2289<dl class="method">
2290<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetPreviousHandler">
2291<tt class="descname">SetPreviousHandler</tt><big>(</big><em>self</em>, <em>EvtHandler handler</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetPreviousHandler" title="Permalink to this definition">¶</a></dt>
2292<dd></dd></dl>
2293
2294<dl class="method">
2295<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetRect">
2296<tt class="descname">SetRect</tt><big>(</big><em>self</em>, <em>Rect rect</em>, <em>int sizeFlags=SIZE_AUTO</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetRect" title="Permalink to this definition">¶</a></dt>
2297<dd><p>Sets the position and size of the window in pixels using a wx.Rect.</p>
2298</dd></dl>
2299
2300<dl class="method">
2301<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetReturnCode">
2302<tt class="descname">SetReturnCode</tt><big>(</big><em>self</em>, <em>int returnCode</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetReturnCode" title="Permalink to this definition">¶</a></dt>
2303<dd></dd></dl>
2304
2305<dl class="method">
2306<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetScrollPos">
2307<tt class="descname">SetScrollPos</tt><big>(</big><em>self</em>, <em>int orientation</em>, <em>int pos</em>, <em>bool refresh=True</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetScrollPos" title="Permalink to this definition">¶</a></dt>
2308<dd><p>Sets the position of one of the built-in scrollbars.</p>
2309</dd></dl>
2310
2311<dl class="method">
2312<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetScrollbar">
2313<tt class="descname">SetScrollbar</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetScrollbar" title="Permalink to this definition">¶</a></dt>
2314<dd><dl class="docutils">
2315<dt>SetScrollbar(self, int orientation, int position, int thumbSize, int range, </dt>
2316<dd>bool refresh=True)</dd>
2317</dl>
2318<p>Sets the scrollbar properties of a built-in scrollbar.</p>
2319</dd></dl>
2320
2321<dl class="method">
2322<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetShape">
2323<tt class="descname">SetShape</tt><big>(</big><em>self</em>, <em>Region region</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetShape" title="Permalink to this definition">¶</a></dt>
2324<dd></dd></dl>
2325
2326<dl class="method">
2327<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetSize">
2328<tt class="descname">SetSize</tt><big>(</big><em>self</em>, <em>Size size</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetSize" title="Permalink to this definition">¶</a></dt>
2329<dd><p>Sets the size of the window in pixels.</p>
2330</dd></dl>
2331
2332<dl class="method">
2333<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetSizeHints">
2334<tt class="descname">SetSizeHints</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetSizeHints" title="Permalink to this definition">¶</a></dt>
2335<dd><dl class="docutils">
2336<dt>SetSizeHints(self, int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1, </dt>
2337<dd>int incH=-1)</dd>
2338</dl>
2339<p>Allows specification of minimum and maximum window sizes, and window
2340size increments. If a pair of values is not set (or set to -1), the
2341default values will be used.  If this function is called, the user
2342will not be able to size the window outside the given bounds (if it is
2343a top-level window.)  Sizers will also inspect the minimum window size
2344and will use that value if set when calculating layout.</p>
2345<p>The resizing increments are only significant under Motif or Xt.</p>
2346</dd></dl>
2347
2348<dl class="method">
2349<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetSizeHintsSz">
2350<tt class="descname">SetSizeHintsSz</tt><big>(</big><em>self</em>, <em>Size minSize</em>, <em>Size maxSize=DefaultSize</em>, <em>Size incSize=DefaultSize</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetSizeHintsSz" title="Permalink to this definition">¶</a></dt>
2351<dd><p>Allows specification of minimum and maximum window sizes, and window
2352size increments. If a pair of values is not set (or set to -1), the
2353default values will be used.  If this function is called, the user
2354will not be able to size the window outside the given bounds (if it is
2355a top-level window.)  Sizers will also inspect the minimum window size
2356and will use that value if set when calculating layout.</p>
2357<p>The resizing increments are only significant under Motif or Xt.</p>
2358</dd></dl>
2359
2360<dl class="method">
2361<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetSizeWH">
2362<tt class="descname">SetSizeWH</tt><big>(</big><em>self</em>, <em>int width</em>, <em>int height</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetSizeWH" title="Permalink to this definition">¶</a></dt>
2363<dd><p>Sets the size of the window in pixels.</p>
2364</dd></dl>
2365
2366<dl class="method">
2367<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetSizer">
2368<tt class="descname">SetSizer</tt><big>(</big><em>self</em>, <em>Sizer sizer</em>, <em>bool deleteOld=True</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetSizer" title="Permalink to this definition">¶</a></dt>
2369<dd><p>Sets the window to have the given layout sizer. The window will then
2370own the object, and will take care of its deletion. If an existing
2371layout sizer object is already owned by the window, it will be deleted
2372if the deleteOld parameter is true. Note that this function will also
2373call SetAutoLayout implicitly with a True parameter if the sizer is
2374non-None, and False otherwise.</p>
2375</dd></dl>
2376
2377<dl class="method">
2378<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetSizerAndFit">
2379<tt class="descname">SetSizerAndFit</tt><big>(</big><em>self</em>, <em>Sizer sizer</em>, <em>bool deleteOld=True</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetSizerAndFit" title="Permalink to this definition">¶</a></dt>
2380<dd><p>The same as SetSizer, except it also sets the size hints for the
2381window based on the sizer&#8217;s minimum size.</p>
2382</dd></dl>
2383
2384<dl class="method">
2385<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetThemeEnabled">
2386<tt class="descname">SetThemeEnabled</tt><big>(</big><em>self</em>, <em>bool enableTheme</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetThemeEnabled" title="Permalink to this definition">¶</a></dt>
2387<dd><dl class="docutils">
2388<dt>This function tells a window if it should use the system&#8217;s &#8220;theme&#8221;</dt>
2389<dd>code to draw the windows&#8217; background instead if its own background
2390drawing code. This will only have an effect on platforms that support
2391the notion of themes in user defined windows. One such platform is
2392GTK+ where windows can have (very colourful) backgrounds defined by a
2393user&#8217;s selected theme.</dd>
2394</dl>
2395<p>Dialogs, notebook pages and the status bar have this flag set to true
2396by default so that the default look and feel is simulated best.</p>
2397</dd></dl>
2398
2399<dl class="method">
2400<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetTitle">
2401<tt class="descname">SetTitle</tt><big>(</big><em>self</em>, <em>String title</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetTitle" title="Permalink to this definition">¶</a></dt>
2402<dd></dd></dl>
2403
2404<dl class="method">
2405<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetTmpDefaultItem">
2406<tt class="descname">SetTmpDefaultItem</tt><big>(</big><em>self</em>, <em>Window win</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetTmpDefaultItem" title="Permalink to this definition">¶</a></dt>
2407<dd><p>Set this child as temporary default</p>
2408</dd></dl>
2409
2410<dl class="method">
2411<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetToolTip">
2412<tt class="descname">SetToolTip</tt><big>(</big><em>self</em>, <em>ToolTip tip</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetToolTip" title="Permalink to this definition">¶</a></dt>
2413<dd><p>Attach a tooltip to the window.</p>
2414</dd></dl>
2415
2416<dl class="method">
2417<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetToolTipString">
2418<tt class="descname">SetToolTipString</tt><big>(</big><em>self</em>, <em>String tip</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetToolTipString" title="Permalink to this definition">¶</a></dt>
2419<dd><p>Attach a tooltip to the window.</p>
2420</dd></dl>
2421
2422<dl class="method">
2423<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetTransparent">
2424<tt class="descname">SetTransparent</tt><big>(</big><em>self</em>, <em>byte alpha</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetTransparent" title="Permalink to this definition">¶</a></dt>
2425<dd><p>Attempt to set the transparency of this window to the <tt class="docutils literal"><span class="pre">alpha</span></tt> value,
2426returns True on success.  The <tt class="docutils literal"><span class="pre">alpha</span></tt> value is an integer in the
2427range of 0 to 255, where 0 is fully transparent and 255 is fully
2428opaque.</p>
2429</dd></dl>
2430
2431<dl class="method">
2432<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetValidator">
2433<tt class="descname">SetValidator</tt><big>(</big><em>self</em>, <em>Validator validator</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetValidator" title="Permalink to this definition">¶</a></dt>
2434<dd><p>Deletes the current validator (if any) and sets the window validator,
2435having called wx.Validator.Clone to create a new validator of this
2436type.</p>
2437</dd></dl>
2438
2439<dl class="method">
2440<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetVirtualSize">
2441<tt class="descname">SetVirtualSize</tt><big>(</big><em>self</em>, <em>Size size</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetVirtualSize" title="Permalink to this definition">¶</a></dt>
2442<dd><p>Set the the virtual size of a window in pixels.  For most windows this
2443is just the client area of the window, but for some like scrolled
2444windows it is more or less independent of the screen window size.</p>
2445</dd></dl>
2446
2447<dl class="method">
2448<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetVirtualSizeHints">
2449<tt class="descname">SetVirtualSizeHints</tt><big>(</big><em>self</em>, <em>int minW</em>, <em>int minH</em>, <em>int maxW=-1</em>, <em>int maxH=-1</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetVirtualSizeHints" title="Permalink to this definition">¶</a></dt>
2450<dd><p>Allows specification of minimum and maximum virtual window sizes. If a
2451pair of values is not set (or set to -1), the default values will be
2452used.  If this function is called, the user will not be able to size
2453the virtual area of the window outside the given bounds.</p>
2454</dd></dl>
2455
2456<dl class="method">
2457<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetVirtualSizeHintsSz">
2458<tt class="descname">SetVirtualSizeHintsSz</tt><big>(</big><em>self</em>, <em>Size minSize</em>, <em>Size maxSize=DefaultSize</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetVirtualSizeHintsSz" title="Permalink to this definition">¶</a></dt>
2459<dd><p>Allows specification of minimum and maximum virtual window sizes. If a
2460pair of values is not set (or set to -1), the default values will be
2461used.  If this function is called, the user will not be able to size
2462the virtual area of the window outside the given bounds.</p>
2463</dd></dl>
2464
2465<dl class="method">
2466<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetVirtualSizeWH">
2467<tt class="descname">SetVirtualSizeWH</tt><big>(</big><em>self</em>, <em>int w</em>, <em>int h</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetVirtualSizeWH" title="Permalink to this definition">¶</a></dt>
2468<dd><p>Set the the virtual size of a window in pixels.  For most windows this
2469is just the client area of the window, but for some like scrolled
2470windows it is more or less independent of the screen window size.</p>
2471</dd></dl>
2472
2473<dl class="method">
2474<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetWindowStyle">
2475<tt class="descname">SetWindowStyle</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetWindowStyle" title="Permalink to this definition">¶</a></dt>
2476<dd><p>SetWindowStyleFlag(self, long style)</p>
2477<p>Sets the style of the window. Please note that some styles cannot be
2478changed after the window creation and that Refresh() might need to be
2479called after changing the others for the change to take place
2480immediately.</p>
2481</dd></dl>
2482
2483<dl class="method">
2484<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetWindowStyleFlag">
2485<tt class="descname">SetWindowStyleFlag</tt><big>(</big><em>self</em>, <em>long style</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetWindowStyleFlag" title="Permalink to this definition">¶</a></dt>
2486<dd><p>Sets the style of the window. Please note that some styles cannot be
2487changed after the window creation and that Refresh() might need to be
2488called after changing the others for the change to take place
2489immediately.</p>
2490</dd></dl>
2491
2492<dl class="method">
2493<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.SetWindowVariant">
2494<tt class="descname">SetWindowVariant</tt><big>(</big><em>self</em>, <em>int variant</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.SetWindowVariant" title="Permalink to this definition">¶</a></dt>
2495<dd><p>Sets the variant of the window/font size to use for this window, if
2496the platform supports variants, for example, wxMac.</p>
2497</dd></dl>
2498
2499<dl class="method">
2500<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ShouldInheritColours">
2501<tt class="descname">ShouldInheritColours</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ShouldInheritColours" title="Permalink to this definition">¶</a></dt>
2502<dd><p>Return true from here to allow the colours of this window to be
2503changed by InheritAttributes, returning false forbids inheriting them
2504from the parent window.</p>
2505<p>The base class version returns false, but this method is overridden in
2506wxControl where it returns true.</p>
2507</dd></dl>
2508
2509<dl class="method">
2510<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Show">
2511<tt class="descname">Show</tt><big>(</big><em>self</em>, <em>bool show=True</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Show" title="Permalink to this definition">¶</a></dt>
2512<dd><p>Shows or hides the window. You may need to call Raise for a top level
2513window if you want to bring it to top, although this is not needed if
2514Show is called immediately after the frame creation.  Returns True if
2515the window has been shown or hidden or False if nothing was done
2516because it already was in the requested state.</p>
2517</dd></dl>
2518
2519<dl class="method">
2520<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ShowFullScreen">
2521<tt class="descname">ShowFullScreen</tt><big>(</big><em>self</em>, <em>bool show</em>, <em>long style=FULLSCREEN_ALL</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ShowFullScreen" title="Permalink to this definition">¶</a></dt>
2522<dd></dd></dl>
2523
2524<dl class="method">
2525<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ShowModal">
2526<tt class="descname">ShowModal</tt><big>(</big><em>self</em><big>)</big> &rarr; int<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ShowModal" title="Permalink to this definition">¶</a></dt>
2527<dd></dd></dl>
2528
2529<dl class="attribute">
2530<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Shown">
2531<tt class="descname">Shown</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Shown" title="Permalink to this definition">¶</a></dt>
2532<dd><p>See <cite>IsShown</cite> and <cite>Show</cite></p>
2533</dd></dl>
2534
2535<dl class="attribute">
2536<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Size">
2537<tt class="descname">Size</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Size" title="Permalink to this definition">¶</a></dt>
2538<dd><p>See <cite>GetSize</cite> and <cite>SetSize</cite></p>
2539</dd></dl>
2540
2541<dl class="attribute">
2542<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Sizer">
2543<tt class="descname">Sizer</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Sizer" title="Permalink to this definition">¶</a></dt>
2544<dd><p>See <cite>GetSizer</cite> and <cite>SetSizer</cite></p>
2545</dd></dl>
2546
2547<dl class="method">
2548<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Thaw">
2549<tt class="descname">Thaw</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Thaw" title="Permalink to this definition">¶</a></dt>
2550<dd><p>Reenables window updating after a previous call to Freeze.  Calls to
2551Freeze/Thaw may be nested, so Thaw must be called the same number of
2552times that Freeze was before the window will be updated.</p>
2553</dd></dl>
2554
2555<dl class="attribute">
2556<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ThemeEnabled">
2557<tt class="descname">ThemeEnabled</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ThemeEnabled" title="Permalink to this definition">¶</a></dt>
2558<dd><p>See <cite>GetThemeEnabled</cite> and <cite>SetThemeEnabled</cite></p>
2559</dd></dl>
2560
2561<dl class="attribute">
2562<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Title">
2563<tt class="descname">Title</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Title" title="Permalink to this definition">¶</a></dt>
2564<dd><p>See <cite>GetTitle</cite> and <cite>SetTitle</cite></p>
2565</dd></dl>
2566
2567<dl class="attribute">
2568<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.TmpDefaultItem">
2569<tt class="descname">TmpDefaultItem</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.TmpDefaultItem" title="Permalink to this definition">¶</a></dt>
2570<dd><p>See <cite>GetTmpDefaultItem</cite> and <cite>SetTmpDefaultItem</cite></p>
2571</dd></dl>
2572
2573<dl class="method">
2574<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ToggleWindowStyle">
2575<tt class="descname">ToggleWindowStyle</tt><big>(</big><em>self</em>, <em>int flag</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ToggleWindowStyle" title="Permalink to this definition">¶</a></dt>
2576<dd><p>Turn the flag on if it had been turned off before and vice versa,
2577returns True if the flag is turned on by this function call.</p>
2578</dd></dl>
2579
2580<dl class="attribute">
2581<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.ToolTip">
2582<tt class="descname">ToolTip</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.ToolTip" title="Permalink to this definition">¶</a></dt>
2583<dd><p>See <cite>GetToolTip</cite> and <cite>SetToolTip</cite></p>
2584</dd></dl>
2585
2586<dl class="attribute">
2587<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.TopLevel">
2588<tt class="descname">TopLevel</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.TopLevel" title="Permalink to this definition">¶</a></dt>
2589<dd><p>See <cite>IsTopLevel</cite></p>
2590</dd></dl>
2591
2592<dl class="attribute">
2593<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.TopLevelParent">
2594<tt class="descname">TopLevelParent</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.TopLevelParent" title="Permalink to this definition">¶</a></dt>
2595<dd><p>See <cite>GetTopLevelParent</cite></p>
2596</dd></dl>
2597
2598<dl class="method">
2599<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.TransferDataFromWindow">
2600<tt class="descname">TransferDataFromWindow</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.TransferDataFromWindow" title="Permalink to this definition">¶</a></dt>
2601<dd><p>Transfers values from child controls to data areas specified by their
2602validators. Returns false if a transfer failed.  If the window has
2603wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will
2604also call TransferDataFromWindow() of all child windows.</p>
2605</dd></dl>
2606
2607<dl class="method">
2608<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.TransferDataToWindow">
2609<tt class="descname">TransferDataToWindow</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.TransferDataToWindow" title="Permalink to this definition">¶</a></dt>
2610<dd><p>Transfers values to child controls from data areas specified by their
2611validators.  If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
2612style flag set, the method will also call TransferDataToWindow() of
2613all child windows.</p>
2614</dd></dl>
2615
2616<dl class="method">
2617<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Unbind">
2618<tt class="descname">Unbind</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Unbind" title="Permalink to this definition">¶</a></dt>
2619<dd><p>Disconnects the event handler binding for event from self.
2620Returns True if successful.</p>
2621</dd></dl>
2622
2623<dl class="method">
2624<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.UnregisterHotKey">
2625<tt class="descname">UnregisterHotKey</tt><big>(</big><em>self</em>, <em>int hotkeyId</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.UnregisterHotKey" title="Permalink to this definition">¶</a></dt>
2626<dd><p>Unregisters a system wide hotkey.</p>
2627</dd></dl>
2628
2629<dl class="method">
2630<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Update">
2631<tt class="descname">Update</tt><big>(</big><em>self</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Update" title="Permalink to this definition">¶</a></dt>
2632<dd><p>Calling this method immediately repaints the invalidated area of the
2633window instead of waiting for the EVT_PAINT event to happen, (normally
2634this would usually only happen when the flow of control returns to the
2635event loop.)  Notice that this function doesn&#8217;t refresh the window and
2636does nothing if the window has been already repainted.  Use <cite>Refresh</cite>
2637first if you want to immediately redraw the window (or some portion of
2638it) unconditionally.</p>
2639</dd></dl>
2640
2641<dl class="attribute">
2642<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.UpdateClientRect">
2643<tt class="descname">UpdateClientRect</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.UpdateClientRect" title="Permalink to this definition">¶</a></dt>
2644<dd><p>See <cite>GetUpdateClientRect</cite></p>
2645</dd></dl>
2646
2647<dl class="attribute">
2648<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.UpdateRegion">
2649<tt class="descname">UpdateRegion</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.UpdateRegion" title="Permalink to this definition">¶</a></dt>
2650<dd><p>See <cite>GetUpdateRegion</cite></p>
2651</dd></dl>
2652
2653<dl class="method">
2654<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.UpdateWindowUI">
2655<tt class="descname">UpdateWindowUI</tt><big>(</big><em>self</em>, <em>long flags=UPDATE_UI_NONE</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.UpdateWindowUI" title="Permalink to this definition">¶</a></dt>
2656<dd><p>This function sends EVT_UPDATE_UI events to the window. The particular
2657implementation depends on the window; for example a wx.ToolBar will
2658send an update UI event for each toolbar button, and a wx.Frame will
2659send an update UI event for each menubar menu item. You can call this
2660function from your application to ensure that your UI is up-to-date at
2661a particular point in time (as far as your EVT_UPDATE_UI handlers are
2662concerned). This may be necessary if you have called
2663<cite>wx.UpdateUIEvent.SetMode</cite> or <cite>wx.UpdateUIEvent.SetUpdateInterval</cite> to
2664limit the overhead that wxWindows incurs by sending update UI events
2665in idle time.</p>
2666</dd></dl>
2667
2668<dl class="method">
2669<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.UseBgCol">
2670<tt class="descname">UseBgCol</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.UseBgCol" title="Permalink to this definition">¶</a></dt>
2671<dd></dd></dl>
2672
2673<dl class="method">
2674<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Validate">
2675<tt class="descname">Validate</tt><big>(</big><em>self</em><big>)</big> &rarr; bool<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Validate" title="Permalink to this definition">¶</a></dt>
2676<dd><p>Validates the current values of the child controls using their
2677validators.  If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
2678style flag set, the method will also call Validate() of all child
2679windows.  Returns false if any of the validations failed.</p>
2680</dd></dl>
2681
2682<dl class="attribute">
2683<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.Validator">
2684<tt class="descname">Validator</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.Validator" title="Permalink to this definition">¶</a></dt>
2685<dd><p>See <cite>GetValidator</cite> and <cite>SetValidator</cite></p>
2686</dd></dl>
2687
2688<dl class="attribute">
2689<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.VirtualSize">
2690<tt class="descname">VirtualSize</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.VirtualSize" title="Permalink to this definition">¶</a></dt>
2691<dd><p>See <cite>GetVirtualSize</cite> and <cite>SetVirtualSize</cite></p>
2692</dd></dl>
2693
2694<dl class="method">
2695<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.WarpPointer">
2696<tt class="descname">WarpPointer</tt><big>(</big><em>self</em>, <em>int x</em>, <em>int y</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.WarpPointer" title="Permalink to this definition">¶</a></dt>
2697<dd><p>Moves the pointer to the given position on the window.</p>
2698<p>NOTE: This function is not supported under Mac because Apple Human
2699Interface Guidelines forbid moving the mouse cursor programmatically.</p>
2700</dd></dl>
2701
2702<dl class="attribute">
2703<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.WindowStyle">
2704<tt class="descname">WindowStyle</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.WindowStyle" title="Permalink to this definition">¶</a></dt>
2705<dd><p>See <cite>GetWindowStyle</cite> and <cite>SetWindowStyle</cite></p>
2706</dd></dl>
2707
2708<dl class="attribute">
2709<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.WindowStyleFlag">
2710<tt class="descname">WindowStyleFlag</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.WindowStyleFlag" title="Permalink to this definition">¶</a></dt>
2711<dd><p>See <cite>GetWindowStyleFlag</cite> and <cite>SetWindowStyleFlag</cite></p>
2712</dd></dl>
2713
2714<dl class="method">
2715<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.WindowToClientSize">
2716<tt class="descname">WindowToClientSize</tt><big>(</big><em>self</em>, <em>Size size</em><big>)</big> &rarr; Size<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.WindowToClientSize" title="Permalink to this definition">¶</a></dt>
2717<dd></dd></dl>
2718
2719<dl class="attribute">
2720<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.WindowVariant">
2721<tt class="descname">WindowVariant</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.WindowVariant" title="Permalink to this definition">¶</a></dt>
2722<dd><p>See <cite>GetWindowVariant</cite> and <cite>SetWindowVariant</cite></p>
2723</dd></dl>
2724
2725<dl class="method">
2726<dt id="sans.perspectives.calculator.sample_editor.SampleDialog._CreateButtonSizer">
2727<tt class="descname">_CreateButtonSizer</tt><big>(</big><em>self</em>, <em>long flags</em><big>)</big> &rarr; Sizer<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog._CreateButtonSizer" title="Permalink to this definition">¶</a></dt>
2728<dd></dd></dl>
2729
2730<dl class="attribute">
2731<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__class__">
2732<tt class="descname">__class__</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__class__" title="Permalink to this definition">¶</a></dt>
2733<dd><p>alias of <tt class="xref py py-class docutils literal"><span class="pre">type</span></tt></p>
2734</dd></dl>
2735
2736<dl class="attribute">
2737<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__delattr__">
2738<tt class="descname">__delattr__</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__delattr__" title="Permalink to this definition">¶</a></dt>
2739<dd><p>x.__delattr__(&#8216;name&#8217;) &lt;==&gt; del x.name</p>
2740</dd></dl>
2741
2742<dl class="attribute">
2743<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__dict__">
2744<tt class="descname">__dict__</tt><em class="property"> = &lt;dictproxy object at 0x05C2E610&gt;</em><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__dict__" title="Permalink to this definition">¶</a></dt>
2745<dd></dd></dl>
2746
2747<dl class="method">
2748<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__enter__">
2749<tt class="descname">__enter__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__enter__" title="Permalink to this definition">¶</a></dt>
2750<dd></dd></dl>
2751
2752<dl class="method">
2753<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__exit__">
2754<tt class="descname">__exit__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__exit__" title="Permalink to this definition">¶</a></dt>
2755<dd></dd></dl>
2756
2757<dl class="attribute">
2758<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__getattribute__">
2759<tt class="descname">__getattribute__</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__getattribute__" title="Permalink to this definition">¶</a></dt>
2760<dd><p>x.__getattribute__(&#8216;name&#8217;) &lt;==&gt; x.name</p>
2761</dd></dl>
2762
2763<dl class="attribute">
2764<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__hash__">
2765<tt class="descname">__hash__</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__hash__" title="Permalink to this definition">¶</a></dt>
2766<dd><p>x.__hash__() &lt;==&gt; hash(x)</p>
2767</dd></dl>
2768
2769<dl class="method">
2770<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__init__">
2771<tt class="descname">__init__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__init__" title="Permalink to this definition">¶</a></dt>
2772<dd></dd></dl>
2773
2774<dl class="attribute">
2775<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__module__">
2776<tt class="descname">__module__</tt><em class="property"> = 'sans.perspectives.calculator.sample_editor'</em><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__module__" title="Permalink to this definition">¶</a></dt>
2777<dd></dd></dl>
2778
2779<dl class="staticmethod">
2780<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__new__">
2781<em class="property">static </em><tt class="descname">__new__</tt><big>(</big><em>S</em>, <em>...</em><big>)</big> &rarr; a new object with type S, a subtype of T<a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__new__" title="Permalink to this definition">¶</a></dt>
2782<dd></dd></dl>
2783
2784<dl class="method">
2785<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__reduce__">
2786<tt class="descname">__reduce__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__reduce__" title="Permalink to this definition">¶</a></dt>
2787<dd><p>helper for pickle</p>
2788</dd></dl>
2789
2790<dl class="method">
2791<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__reduce_ex__">
2792<tt class="descname">__reduce_ex__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__reduce_ex__" title="Permalink to this definition">¶</a></dt>
2793<dd><p>helper for pickle</p>
2794</dd></dl>
2795
2796<dl class="method">
2797<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__repr__">
2798<tt class="descname">__repr__</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__repr__" title="Permalink to this definition">¶</a></dt>
2799<dd></dd></dl>
2800
2801<dl class="attribute">
2802<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__setattr__">
2803<tt class="descname">__setattr__</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__setattr__" title="Permalink to this definition">¶</a></dt>
2804<dd><p>x.__setattr__(&#8216;name&#8217;, value) &lt;==&gt; x.name = value</p>
2805</dd></dl>
2806
2807<dl class="attribute">
2808<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__str__">
2809<tt class="descname">__str__</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__str__" title="Permalink to this definition">¶</a></dt>
2810<dd><p>x.__str__() &lt;==&gt; str(x)</p>
2811</dd></dl>
2812
2813<dl class="attribute">
2814<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.__weakref__">
2815<tt class="descname">__weakref__</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.__weakref__" title="Permalink to this definition">¶</a></dt>
2816<dd><p>list of weak references to the object (if defined)</p>
2817</dd></dl>
2818
2819<dl class="method">
2820<dt id="sans.perspectives.calculator.sample_editor.SampleDialog._define_structure">
2821<tt class="descname">_define_structure</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog._define_structure" title="Permalink to this definition">¶</a></dt>
2822<dd><p>define initial sizer</p>
2823</dd></dl>
2824
2825<dl class="method">
2826<dt id="sans.perspectives.calculator.sample_editor.SampleDialog._do_layout">
2827<tt class="descname">_do_layout</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog._do_layout" title="Permalink to this definition">¶</a></dt>
2828<dd><p>Draw the current panel</p>
2829</dd></dl>
2830
2831<dl class="method">
2832<dt id="sans.perspectives.calculator.sample_editor.SampleDialog._layout_button">
2833<tt class="descname">_layout_button</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog._layout_button" title="Permalink to this definition">¶</a></dt>
2834<dd><p>Do the layout for the button widgets</p>
2835</dd></dl>
2836
2837<dl class="method">
2838<dt id="sans.perspectives.calculator.sample_editor.SampleDialog._layout_details">
2839<tt class="descname">_layout_details</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog._layout_details" title="Permalink to this definition">¶</a></dt>
2840<dd><p>Do the layout for beam size name related widgets</p>
2841</dd></dl>
2842
2843<dl class="method">
2844<dt id="sans.perspectives.calculator.sample_editor.SampleDialog._layout_id">
2845<tt class="descname">_layout_id</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog._layout_id" title="Permalink to this definition">¶</a></dt>
2846<dd><p>Do the layout for id related widgets</p>
2847</dd></dl>
2848
2849<dl class="method">
2850<dt id="sans.perspectives.calculator.sample_editor.SampleDialog._layout_name">
2851<tt class="descname">_layout_name</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog._layout_name" title="Permalink to this definition">¶</a></dt>
2852<dd><p>Do the layout for sample name related widgets</p>
2853</dd></dl>
2854
2855<dl class="method">
2856<dt id="sans.perspectives.calculator.sample_editor.SampleDialog._layout_orientation">
2857<tt class="descname">_layout_orientation</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog._layout_orientation" title="Permalink to this definition">¶</a></dt>
2858<dd><p>Do the  layout for orientation related widgets</p>
2859</dd></dl>
2860
2861<dl class="method">
2862<dt id="sans.perspectives.calculator.sample_editor.SampleDialog._layout_position">
2863<tt class="descname">_layout_position</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog._layout_position" title="Permalink to this definition">¶</a></dt>
2864<dd><p>Do the  layout for position related widgets</p>
2865</dd></dl>
2866
2867<dl class="method">
2868<dt id="sans.perspectives.calculator.sample_editor.SampleDialog._layout_temperature">
2869<tt class="descname">_layout_temperature</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog._layout_temperature" title="Permalink to this definition">¶</a></dt>
2870<dd><p>Do the  layout for temperature related widgets</p>
2871</dd></dl>
2872
2873<dl class="method">
2874<dt id="sans.perspectives.calculator.sample_editor.SampleDialog._layout_thickness">
2875<tt class="descname">_layout_thickness</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog._layout_thickness" title="Permalink to this definition">¶</a></dt>
2876<dd><p>Do the  layout for thickness related widgets</p>
2877</dd></dl>
2878
2879<dl class="method">
2880<dt id="sans.perspectives.calculator.sample_editor.SampleDialog._layout_transmission">
2881<tt class="descname">_layout_transmission</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog._layout_transmission" title="Permalink to this definition">¶</a></dt>
2882<dd><p>Do the  layout for transmission related widgets</p>
2883</dd></dl>
2884
2885<dl class="method">
2886<dt id="sans.perspectives.calculator.sample_editor.SampleDialog._setOORInfo">
2887<tt class="descname">_setOORInfo</tt><big>(</big><em>self</em>, <em>PyObject _self</em>, <em>bool incref=True</em><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog._setOORInfo" title="Permalink to this definition">¶</a></dt>
2888<dd></dd></dl>
2889
2890<dl class="method">
2891<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.get_notes">
2892<tt class="descname">get_notes</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.get_notes" title="Permalink to this definition">¶</a></dt>
2893<dd><p>return notes</p>
2894</dd></dl>
2895
2896<dl class="method">
2897<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.get_sample">
2898<tt class="descname">get_sample</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.get_sample" title="Permalink to this definition">¶</a></dt>
2899<dd><p>return the current sample</p>
2900</dd></dl>
2901
2902<dl class="method">
2903<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.on_change_details">
2904<tt class="descname">on_change_details</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.on_change_details" title="Permalink to this definition">¶</a></dt>
2905<dd><p>Change details</p>
2906</dd></dl>
2907
2908<dl class="method">
2909<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.on_change_id">
2910<tt class="descname">on_change_id</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.on_change_id" title="Permalink to this definition">¶</a></dt>
2911<dd><p>Change id of the sample</p>
2912</dd></dl>
2913
2914<dl class="method">
2915<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.on_change_name">
2916<tt class="descname">on_change_name</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.on_change_name" title="Permalink to this definition">¶</a></dt>
2917<dd><p>Change name</p>
2918</dd></dl>
2919
2920<dl class="method">
2921<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.on_change_orientation">
2922<tt class="descname">on_change_orientation</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.on_change_orientation" title="Permalink to this definition">¶</a></dt>
2923<dd><p>Change orientation</p>
2924</dd></dl>
2925
2926<dl class="method">
2927<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.on_change_position">
2928<tt class="descname">on_change_position</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.on_change_position" title="Permalink to this definition">¶</a></dt>
2929<dd><p>Change position</p>
2930</dd></dl>
2931
2932<dl class="method">
2933<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.on_change_temperature">
2934<tt class="descname">on_change_temperature</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.on_change_temperature" title="Permalink to this definition">¶</a></dt>
2935<dd><p>Change temperature</p>
2936</dd></dl>
2937
2938<dl class="method">
2939<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.on_change_thickness">
2940<tt class="descname">on_change_thickness</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.on_change_thickness" title="Permalink to this definition">¶</a></dt>
2941<dd><p>Change thickness</p>
2942</dd></dl>
2943
2944<dl class="method">
2945<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.on_change_transmission">
2946<tt class="descname">on_change_transmission</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.on_change_transmission" title="Permalink to this definition">¶</a></dt>
2947<dd><p>Change transmission</p>
2948</dd></dl>
2949
2950<dl class="method">
2951<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.on_click_apply">
2952<tt class="descname">on_click_apply</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.on_click_apply" title="Permalink to this definition">¶</a></dt>
2953<dd><p>Apply user values to the sample</p>
2954</dd></dl>
2955
2956<dl class="method">
2957<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.on_click_cancel">
2958<tt class="descname">on_click_cancel</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.on_click_cancel" title="Permalink to this definition">¶</a></dt>
2959<dd><p>leave the sample as it is and close</p>
2960</dd></dl>
2961
2962<dl class="method">
2963<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.reset_sample">
2964<tt class="descname">reset_sample</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.reset_sample" title="Permalink to this definition">¶</a></dt>
2965<dd><p>Put initial values of the sample back to the current sample</p>
2966</dd></dl>
2967
2968<dl class="method">
2969<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.set_details">
2970<tt class="descname">set_details</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.set_details" title="Permalink to this definition">¶</a></dt>
2971<dd><p>print details on the current sample</p>
2972</dd></dl>
2973
2974<dl class="method">
2975<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.set_manager">
2976<tt class="descname">set_manager</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.set_manager" title="Permalink to this definition">¶</a></dt>
2977<dd><p>Set manager of this window</p>
2978</dd></dl>
2979
2980<dl class="method">
2981<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.set_values">
2982<tt class="descname">set_values</tt><big>(</big><big>)</big><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.set_values" title="Permalink to this definition">¶</a></dt>
2983<dd><p>take the sample values of the current data and display them
2984through the panel</p>
2985</dd></dl>
2986
2987<dl class="attribute">
2988<dt id="sans.perspectives.calculator.sample_editor.SampleDialog.thisown">
2989<tt class="descname">thisown</tt><a class="headerlink" href="#sans.perspectives.calculator.sample_editor.SampleDialog.thisown" title="Permalink to this definition">¶</a></dt>
2990<dd><p>The membership flag</p>
2991</dd></dl>
2992
2993</dd></dl>
2994
2995</div>
2996</div>
2997
2998
2999          </div>
3000        </div>
3001      </div>
3002      <div class="sphinxsidebar">
3003        <div class="sphinxsidebarwrapper">
3004  <h3><a href="../../../index.html">Table Of Contents</a></h3>
3005  <ul>
3006<li><a class="reference internal" href="#">sample_editor</a><ul>
3007<li><a class="reference internal" href="#sans-perspectives-calculator-sample-editor"><tt class="docutils literal"><span class="pre">sans.perspectives.calculator.sample_editor</span></tt></a></li>
3008</ul>
3009</li>
3010</ul>
3011
3012  <h4>Previous topic</h4>
3013  <p class="topless"><a href="resolution_calculator_panel.html"
3014                        title="previous chapter">resolution_calculator_panel</a></p>
3015  <h4>Next topic</h4>
3016  <p class="topless"><a href="sld_panel.html"
3017                        title="next chapter">sld_panel</a></p>
3018  <h3>This Page</h3>
3019  <ul class="this-page-menu">
3020    <li><a href="../../../_sources/api/perspectives/calculator/sample_editor.txt"
3021           rel="nofollow">Show Source</a></li>
3022  </ul>
3023<div id="searchbox" style="display: none">
3024  <h3>Quick search</h3>
3025    <form class="search" action="../../../search.html" method="get">
3026      <input type="text" name="q" />
3027      <input type="submit" value="Go" />
3028      <input type="hidden" name="check_keywords" value="yes" />
3029      <input type="hidden" name="area" value="default" />
3030    </form>
3031    <p class="searchtip" style="font-size: 90%">
3032    Enter search terms or a module, class or function name.
3033    </p>
3034</div>
3035<script type="text/javascript">$('#searchbox').show(0);</script>
3036        </div>
3037      </div>
3038      <div class="clearer"></div>
3039    </div>
3040    <div class="related">
3041      <h3>Navigation</h3>
3042      <ul>
3043        <li class="right" style="margin-right: 10px">
3044          <a href="../../../genindex.html" title="General Index"
3045             >index</a></li>
3046        <li class="right" >
3047          <a href="../../../py-modindex.html" title="Python Module Index"
3048             >modules</a> |</li>
3049        <li class="right" >
3050          <a href="sld_panel.html" title="sld_panel"
3051             >next</a> |</li>
3052        <li class="right" >
3053          <a href="resolution_calculator_panel.html" title="resolution_calculator_panel"
3054             >previous</a> |</li>
3055        <li><a href="../../../index.html">calculatorview 0.1.0 documentation</a> &raquo;</li>
3056          <li><a href="index.html" >Reference</a> &raquo;</li> 
3057      </ul>
3058    </div>
3059    <div class="footer">
3060        &copy; Copyright 2010, sans group.
3061      Created using <a href="http://sphinx.pocoo.org/">Sphinx</a> 1.1.
3062    </div>
3063  </body>
3064</html>
Note: See TracBrowser for help on using the repository browser.