1 | |
---|
2 | <!doctype html PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> |
---|
3 | <html><head><title>Python: module wxmtxy_tab</title> |
---|
4 | </head><body bgcolor="#f0f0f8"> |
---|
5 | |
---|
6 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="heading"> |
---|
7 | <tr bgcolor="#7799ee"> |
---|
8 | <td valign=bottom> <br> |
---|
9 | <font color="#ffffff" face="helvetica, arial"> <br><big><big><strong>wxmtxy_tab</strong></big></big></font></td |
---|
10 | ><td align=right valign=bottom |
---|
11 | ><font color="#ffffff" face="helvetica, arial"><a href=".">index</a><br><a href="file:/home/oxygen18/JEMIAN/Documents/eclipse/usaxs/wxmtxy/trunk/wxmtxy_tab.py">/home/oxygen18/JEMIAN/Documents/eclipse/usaxs/wxmtxy/trunk/wxmtxy_tab.py</a></font></td></tr></table> |
---|
12 | <p><tt>Define the GUI elements and interface for one tab (table) of the X,Y pair<br> |
---|
13 | <br> |
---|
14 | @version: <br> |
---|
15 | ########### SVN repository information ###################<br> |
---|
16 | # $Date: 2010-06-02 18:14:09 -0500 (Wed, 02 Jun 2010) $<br> |
---|
17 | # $Author: jemian $<br> |
---|
18 | # $Revision: 178 $<br> |
---|
19 | # $URL: https://subversion.xor.aps.anl.gov/bcdaext/wxmtxy/trunk/wxmtxy_tab.py $<br> |
---|
20 | # $Id: wxmtxy_tab.py 178 2010-06-02 23:14:09Z jemian $<br> |
---|
21 | ########### SVN repository information ###################</tt></p> |
---|
22 | <p> |
---|
23 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
---|
24 | <tr bgcolor="#aa55cc"> |
---|
25 | <td colspan=3 valign=bottom> <br> |
---|
26 | <font color="#fffff" face="helvetica, arial"><big><strong>Modules</strong></big></font></td></tr> |
---|
27 | |
---|
28 | <tr><td bgcolor="#aa55cc"><tt> </tt></td><td> </td> |
---|
29 | <td width="100%"><table width="100%" summary="list"><tr><td width="25%" valign=top><a href="wx.html">wx</a><br> |
---|
30 | </td><td width="25%" valign=top><a href="wxmtxy_row.html">wxmtxy_row</a><br> |
---|
31 | </td><td width="25%" valign=top></td><td width="25%" valign=top></td></tr></table></td></tr></table><p> |
---|
32 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
---|
33 | <tr bgcolor="#ee77aa"> |
---|
34 | <td colspan=3 valign=bottom> <br> |
---|
35 | <font color="#ffffff" face="helvetica, arial"><big><strong>Classes</strong></big></font></td></tr> |
---|
36 | |
---|
37 | <tr><td bgcolor="#ee77aa"><tt> </tt></td><td> </td> |
---|
38 | <td width="100%"><dl> |
---|
39 | <dt><font face="helvetica, arial"><a href="wx.lib.scrolledpanel.html#ScrolledPanel">wx.lib.scrolledpanel.ScrolledPanel</a>(<a href="wx._windows.html#PyScrolledWindow">wx._windows.PyScrolledWindow</a>) |
---|
40 | </font></dt><dd> |
---|
41 | <dl> |
---|
42 | <dt><font face="helvetica, arial"><a href="wxmtxy_tab.html#Tab">Tab</a> |
---|
43 | </font></dt></dl> |
---|
44 | </dd> |
---|
45 | </dl> |
---|
46 | <p> |
---|
47 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
---|
48 | <tr bgcolor="#ffc8d8"> |
---|
49 | <td colspan=3 valign=bottom> <br> |
---|
50 | <font color="#000000" face="helvetica, arial"><a name="Tab">class <strong>Tab</strong></a>(<a href="wx.lib.scrolledpanel.html#ScrolledPanel">wx.lib.scrolledpanel.ScrolledPanel</a>)</font></td></tr> |
---|
51 | |
---|
52 | <tr bgcolor="#ffc8d8"><td rowspan=2><tt> </tt></td> |
---|
53 | <td colspan=2><tt>Create a panel to display rows of settings<br> </tt></td></tr> |
---|
54 | <tr><td> </td> |
---|
55 | <td width="100%"><dl><dt>Method resolution order:</dt> |
---|
56 | <dd><a href="wxmtxy_tab.html#Tab">Tab</a></dd> |
---|
57 | <dd><a href="wx.lib.scrolledpanel.html#ScrolledPanel">wx.lib.scrolledpanel.ScrolledPanel</a></dd> |
---|
58 | <dd><a href="wx._windows.html#PyScrolledWindow">wx._windows.PyScrolledWindow</a></dd> |
---|
59 | <dd><a href="wx._windows.html#ScrolledWindow">wx._windows.ScrolledWindow</a></dd> |
---|
60 | <dd><a href="wx._windows.html#Panel">wx._windows.Panel</a></dd> |
---|
61 | <dd><a href="wx._core.html#Window">wx._core.Window</a></dd> |
---|
62 | <dd><a href="wx._core.html#EvtHandler">wx._core.EvtHandler</a></dd> |
---|
63 | <dd><a href="wx._core.html#Object">wx._core.Object</a></dd> |
---|
64 | <dd><a href="__builtin__.html#object">__builtin__.object</a></dd> |
---|
65 | </dl> |
---|
66 | <hr> |
---|
67 | Methods defined here:<br> |
---|
68 | <dl><dt><a name="Tab-DeleteRow"><strong>DeleteRow</strong></a>(self, theRow)</dt><dd><tt>Delete a row object<br> |
---|
69 | @param theRow:</tt></dd></dl> |
---|
70 | |
---|
71 | <dl><dt><a name="Tab-GetRowLabel"><strong>GetRowLabel</strong></a>(self, rownum)</dt><dd><tt>return the text in the label slot for the given row</tt></dd></dl> |
---|
72 | |
---|
73 | <dl><dt><a name="Tab-GetRowXY"><strong>GetRowXY</strong></a>(self, rownum)</dt><dd><tt>return the X,Y values in the label slot for the given row</tt></dd></dl> |
---|
74 | |
---|
75 | <dl><dt><a name="Tab-NewRow"><strong>NewRow</strong></a>(self, remap<font color="#909090">=False</font>)</dt><dd><tt>Make a new row and append it to the current tab<br> |
---|
76 | @param remap: [Boolean] option to call <a href="#Tab-Remap">Remap</a>()</tt></dd></dl> |
---|
77 | |
---|
78 | <dl><dt><a name="Tab-Remap"><strong>Remap</strong></a>(self)</dt><dd><tt>adjust the layout for any changes</tt></dd></dl> |
---|
79 | |
---|
80 | <dl><dt><a name="Tab-RowHandler"><strong>RowHandler</strong></a>(self, theRow, command)</dt><dd><tt>Handle a command from a row</tt></dd></dl> |
---|
81 | |
---|
82 | <dl><dt><a name="Tab-SetRowLabel"><strong>SetRowLabel</strong></a>(self, rownum, label)</dt><dd><tt>set the text in the label slot for the given row</tt></dd></dl> |
---|
83 | |
---|
84 | <dl><dt><a name="Tab-SetRowXY"><strong>SetRowXY</strong></a>(self, rownum, x, y)</dt><dd><tt>set the text in the label slot for the given row</tt></dd></dl> |
---|
85 | |
---|
86 | <dl><dt><a name="Tab-__init__"><strong>__init__</strong></a>(self, parent, pair, pairCallback, newrow<font color="#909090">=False</font>)</dt><dd><tt>create the panel</tt></dd></dl> |
---|
87 | |
---|
88 | <hr> |
---|
89 | Methods inherited from <a href="wx.lib.scrolledpanel.html#ScrolledPanel">wx.lib.scrolledpanel.ScrolledPanel</a>:<br> |
---|
90 | <dl><dt><a name="Tab-OnChildFocus"><strong>OnChildFocus</strong></a>(self, evt)</dt></dl> |
---|
91 | |
---|
92 | <dl><dt><a name="Tab-ScrollChildIntoView"><strong>ScrollChildIntoView</strong></a>(self, child)</dt><dd><tt>Scrolls the panel such that the specified child window is in view.</tt></dd></dl> |
---|
93 | |
---|
94 | <dl><dt><a name="Tab-SetupScrolling"><strong>SetupScrolling</strong></a>(self, scroll_x<font color="#909090">=True</font>, scroll_y<font color="#909090">=True</font>, rate_x<font color="#909090">=20</font>, rate_y<font color="#909090">=20</font>)</dt><dd><tt>This function sets up the event handling necessary to handle<br> |
---|
95 | scrolling properly. It should be called within the __init__<br> |
---|
96 | function of any class that is derived from <a href="wx.lib.scrolledpanel.html#ScrolledPanel">ScrolledPanel</a>,<br> |
---|
97 | once the controls on the panel have been constructed and<br> |
---|
98 | thus the size of the scrolling area can be determined.</tt></dd></dl> |
---|
99 | |
---|
100 | <hr> |
---|
101 | Methods inherited from <a href="wx._windows.html#PyScrolledWindow">wx._windows.PyScrolledWindow</a>:<br> |
---|
102 | <dl><dt><a name="Tab-DoEraseBackground"><strong>DoEraseBackground</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DoEraseBackground">DoEraseBackground</a>(self, DC dc) -> bool</tt></dd></dl> |
---|
103 | |
---|
104 | <dl><dt><a name="Tab-DoGetBestSize"><strong>DoGetBestSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DoGetBestSize">DoGetBestSize</a>(self) -> Size</tt></dd></dl> |
---|
105 | |
---|
106 | <dl><dt><a name="Tab-DoGetClientSize"><strong>DoGetClientSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DoGetClientSize">DoGetClientSize</a>() -> (width, height)</tt></dd></dl> |
---|
107 | |
---|
108 | <dl><dt><a name="Tab-DoGetPosition"><strong>DoGetPosition</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DoGetPosition">DoGetPosition</a>() -> (x,y)</tt></dd></dl> |
---|
109 | |
---|
110 | <dl><dt><a name="Tab-DoGetSize"><strong>DoGetSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DoGetSize">DoGetSize</a>() -> (width, height)</tt></dd></dl> |
---|
111 | |
---|
112 | <dl><dt><a name="Tab-DoGetVirtualSize"><strong>DoGetVirtualSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DoGetVirtualSize">DoGetVirtualSize</a>(self) -> Size</tt></dd></dl> |
---|
113 | |
---|
114 | <dl><dt><a name="Tab-DoMoveWindow"><strong>DoMoveWindow</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DoMoveWindow">DoMoveWindow</a>(self, int x, int y, int width, int height)</tt></dd></dl> |
---|
115 | |
---|
116 | <dl><dt><a name="Tab-DoSetClientSize"><strong>DoSetClientSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DoSetClientSize">DoSetClientSize</a>(self, int width, int height)</tt></dd></dl> |
---|
117 | |
---|
118 | <dl><dt><a name="Tab-DoSetSize"><strong>DoSetSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DoSetSize">DoSetSize</a>(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)</tt></dd></dl> |
---|
119 | |
---|
120 | <dl><dt><a name="Tab-DoSetVirtualSize"><strong>DoSetVirtualSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DoSetVirtualSize">DoSetVirtualSize</a>(self, int x, int y)</tt></dd></dl> |
---|
121 | |
---|
122 | <dl><dt><a name="Tab-GetDefaultAttributes"><strong>GetDefaultAttributes</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetDefaultAttributes">GetDefaultAttributes</a>(self) -> VisualAttributes</tt></dd></dl> |
---|
123 | |
---|
124 | <dl><dt><a name="Tab-OnInternalIdle"><strong>OnInternalIdle</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-OnInternalIdle">OnInternalIdle</a>(self)</tt></dd></dl> |
---|
125 | |
---|
126 | <dl><dt><a name="Tab-SetBestSize"><strong>SetBestSize</strong></a> = SetInitialSize(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetInitialSize">SetInitialSize</a>(self, Size size=DefaultSize)<br> |
---|
127 | <br> |
---|
128 | A 'Smart' SetSize that will fill in default size components with the<br> |
---|
129 | window's *best size* values. Also set's the minsize for use with sizers.</tt></dd></dl> |
---|
130 | |
---|
131 | <dl><dt><a name="Tab-__repr__"><strong>__repr__</strong></a> = _swig_repr(self)</dt></dl> |
---|
132 | |
---|
133 | <dl><dt><a name="Tab-base_AcceptsFocus"><strong>base_AcceptsFocus</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.AcceptsFocus instead.</tt></dd></dl> |
---|
134 | |
---|
135 | <dl><dt><a name="Tab-base_AcceptsFocusFromKeyboard"><strong>base_AcceptsFocusFromKeyboard</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.</tt></dd></dl> |
---|
136 | |
---|
137 | <dl><dt><a name="Tab-base_AddChild"><strong>base_AddChild</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.AddChild instead.</tt></dd></dl> |
---|
138 | |
---|
139 | <dl><dt><a name="Tab-base_DoGetBestSize"><strong>base_DoGetBestSize</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.DoGetBestSize instead.</tt></dd></dl> |
---|
140 | |
---|
141 | <dl><dt><a name="Tab-base_DoGetClientSize"><strong>base_DoGetClientSize</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.DoGetClientSize instead.</tt></dd></dl> |
---|
142 | |
---|
143 | <dl><dt><a name="Tab-base_DoGetPosition"><strong>base_DoGetPosition</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.DoGetPosition instead.</tt></dd></dl> |
---|
144 | |
---|
145 | <dl><dt><a name="Tab-base_DoGetSize"><strong>base_DoGetSize</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.DoGetSize instead.</tt></dd></dl> |
---|
146 | |
---|
147 | <dl><dt><a name="Tab-base_DoGetVirtualSize"><strong>base_DoGetVirtualSize</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.DoGetVirtualSize instead.</tt></dd></dl> |
---|
148 | |
---|
149 | <dl><dt><a name="Tab-base_DoMoveWindow"><strong>base_DoMoveWindow</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.DoMoveWindow instead.</tt></dd></dl> |
---|
150 | |
---|
151 | <dl><dt><a name="Tab-base_DoSetClientSize"><strong>base_DoSetClientSize</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.DoSetClientSize instead.</tt></dd></dl> |
---|
152 | |
---|
153 | <dl><dt><a name="Tab-base_DoSetSize"><strong>base_DoSetSize</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.DoSetSize instead.</tt></dd></dl> |
---|
154 | |
---|
155 | <dl><dt><a name="Tab-base_DoSetVirtualSize"><strong>base_DoSetVirtualSize</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.DoSetVirtualSize instead.</tt></dd></dl> |
---|
156 | |
---|
157 | <dl><dt><a name="Tab-base_GetDefaultAttributes"><strong>base_GetDefaultAttributes</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.GetDefaultAttributes instead.</tt></dd></dl> |
---|
158 | |
---|
159 | <dl><dt><a name="Tab-base_GetMaxSize"><strong>base_GetMaxSize</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.GetMaxSize instead.</tt></dd></dl> |
---|
160 | |
---|
161 | <dl><dt><a name="Tab-base_InitDialog"><strong>base_InitDialog</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.InitDialog instead.</tt></dd></dl> |
---|
162 | |
---|
163 | <dl><dt><a name="Tab-base_OnInternalIdle"><strong>base_OnInternalIdle</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.OnInternalIdle instead.</tt></dd></dl> |
---|
164 | |
---|
165 | <dl><dt><a name="Tab-base_RemoveChild"><strong>base_RemoveChild</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.RemoveChild instead.</tt></dd></dl> |
---|
166 | |
---|
167 | <dl><dt><a name="Tab-base_ShouldInheritColours"><strong>base_ShouldInheritColours</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.ShouldInheritColours instead.</tt></dd></dl> |
---|
168 | |
---|
169 | <dl><dt><a name="Tab-base_TransferDataFromWindow"><strong>base_TransferDataFromWindow</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.TransferDataFromWindow instead.</tt></dd></dl> |
---|
170 | |
---|
171 | <dl><dt><a name="Tab-base_TransferDataToWindow"><strong>base_TransferDataToWindow</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.TransferDataToWindow instead.</tt></dd></dl> |
---|
172 | |
---|
173 | <dl><dt><a name="Tab-base_Validate"><strong>base_Validate</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Please use PyScrolledWindow.Validate instead.</tt></dd></dl> |
---|
174 | |
---|
175 | <hr> |
---|
176 | Data descriptors inherited from <a href="wx._windows.html#PyScrolledWindow">wx._windows.PyScrolledWindow</a>:<br> |
---|
177 | <dl><dt><strong>thisown</strong></dt> |
---|
178 | <dd><tt>The membership flag</tt></dd> |
---|
179 | </dl> |
---|
180 | <hr> |
---|
181 | Methods inherited from <a href="wx._windows.html#ScrolledWindow">wx._windows.ScrolledWindow</a>:<br> |
---|
182 | <dl><dt><a name="Tab-AdjustScrollbars"><strong>AdjustScrollbars</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-AdjustScrollbars">AdjustScrollbars</a>(self)</tt></dd></dl> |
---|
183 | |
---|
184 | <dl><dt><a name="Tab-CalcScrollInc"><strong>CalcScrollInc</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-CalcScrollInc">CalcScrollInc</a>(self, ScrollWinEvent event) -> int</tt></dd></dl> |
---|
185 | |
---|
186 | <dl><dt><a name="Tab-CalcScrolledPosition"><strong>CalcScrolledPosition</strong></a>(*args)</dt><dd><tt><a href="#Tab-CalcScrolledPosition">CalcScrolledPosition</a>(self, Point pt) -> Point<br> |
---|
187 | <a href="#Tab-CalcScrolledPosition">CalcScrolledPosition</a>(int x, int y) -> (sx, sy)<br> |
---|
188 | <br> |
---|
189 | Translate between scrolled and unscrolled coordinates.</tt></dd></dl> |
---|
190 | |
---|
191 | <dl><dt><a name="Tab-CalcUnscrolledPosition"><strong>CalcUnscrolledPosition</strong></a>(*args)</dt><dd><tt><a href="#Tab-CalcUnscrolledPosition">CalcUnscrolledPosition</a>(self, Point pt) -> Point<br> |
---|
192 | <a href="#Tab-CalcUnscrolledPosition">CalcUnscrolledPosition</a>(int x, int y) -> (ux, uy)<br> |
---|
193 | <br> |
---|
194 | Translate between scrolled and unscrolled coordinates.</tt></dd></dl> |
---|
195 | |
---|
196 | <dl><dt><a name="Tab-Create"><strong>Create</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Create">Create</a>(self, Window parent, int id=-1, Point pos=DefaultPosition, <br> |
---|
197 | Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, <br> |
---|
198 | String name=PanelNameStr) -> bool<br> |
---|
199 | <br> |
---|
200 | Create the GUI part of the Window for 2-phase creation mode.</tt></dd></dl> |
---|
201 | |
---|
202 | <dl><dt><a name="Tab-DoPrepareDC"><strong>DoPrepareDC</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DoPrepareDC">DoPrepareDC</a>(self, DC dc)<br> |
---|
203 | <br> |
---|
204 | Normally what is called by `PrepareDC`.</tt></dd></dl> |
---|
205 | |
---|
206 | <dl><dt><a name="Tab-EnableScrolling"><strong>EnableScrolling</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-EnableScrolling">EnableScrolling</a>(self, bool x_scrolling, bool y_scrolling)</tt></dd></dl> |
---|
207 | |
---|
208 | <dl><dt><a name="Tab-GetScaleX"><strong>GetScaleX</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetScaleX">GetScaleX</a>(self) -> double</tt></dd></dl> |
---|
209 | |
---|
210 | <dl><dt><a name="Tab-GetScaleY"><strong>GetScaleY</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetScaleY">GetScaleY</a>(self) -> double</tt></dd></dl> |
---|
211 | |
---|
212 | <dl><dt><a name="Tab-GetScrollPageSize"><strong>GetScrollPageSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetScrollPageSize">GetScrollPageSize</a>(self, int orient) -> int</tt></dd></dl> |
---|
213 | |
---|
214 | <dl><dt><a name="Tab-GetScrollPixelsPerUnit"><strong>GetScrollPixelsPerUnit</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetScrollPixelsPerUnit">GetScrollPixelsPerUnit</a>() -> (xUnit, yUnit)<br> |
---|
215 | <br> |
---|
216 | Get the size of one logical unit in physical units.</tt></dd></dl> |
---|
217 | |
---|
218 | <dl><dt><a name="Tab-GetTargetWindow"><strong>GetTargetWindow</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetTargetWindow">GetTargetWindow</a>(self) -> Window</tt></dd></dl> |
---|
219 | |
---|
220 | <dl><dt><a name="Tab-GetViewStart"><strong>GetViewStart</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetViewStart">GetViewStart</a>() -> (x,y)<br> |
---|
221 | <br> |
---|
222 | Get the view start</tt></dd></dl> |
---|
223 | |
---|
224 | <dl><dt><a name="Tab-Scroll"><strong>Scroll</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Scroll">Scroll</a>(self, int x, int y)</tt></dd></dl> |
---|
225 | |
---|
226 | <dl><dt><a name="Tab-SetScale"><strong>SetScale</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetScale">SetScale</a>(self, double xs, double ys)</tt></dd></dl> |
---|
227 | |
---|
228 | <dl><dt><a name="Tab-SetScrollPageSize"><strong>SetScrollPageSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetScrollPageSize">SetScrollPageSize</a>(self, int orient, int pageSize)</tt></dd></dl> |
---|
229 | |
---|
230 | <dl><dt><a name="Tab-SetScrollRate"><strong>SetScrollRate</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetScrollRate">SetScrollRate</a>(self, int xstep, int ystep)</tt></dd></dl> |
---|
231 | |
---|
232 | <dl><dt><a name="Tab-SetScrollbars"><strong>SetScrollbars</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetScrollbars">SetScrollbars</a>(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, <br> |
---|
233 | int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)</tt></dd></dl> |
---|
234 | |
---|
235 | <dl><dt><a name="Tab-SetTargetWindow"><strong>SetTargetWindow</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetTargetWindow">SetTargetWindow</a>(self, Window target)</tt></dd></dl> |
---|
236 | |
---|
237 | <hr> |
---|
238 | Static methods inherited from <a href="wx._windows.html#ScrolledWindow">wx._windows.ScrolledWindow</a>:<br> |
---|
239 | <dl><dt><a name="Tab-GetClassDefaultAttributes"><strong>GetClassDefaultAttributes</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetClassDefaultAttributes">GetClassDefaultAttributes</a>(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes<br> |
---|
240 | <br> |
---|
241 | Get the default attributes for this class. This is useful if you want<br> |
---|
242 | to use the same font or colour in your own control as in a standard<br> |
---|
243 | control -- which is a much better idea than hard coding specific<br> |
---|
244 | colours or fonts which might look completely out of place on the<br> |
---|
245 | user's system, especially if it uses themes.<br> |
---|
246 | <br> |
---|
247 | The variant parameter is only relevant under Mac currently and is<br> |
---|
248 | ignore under other platforms. Under Mac, it will change the size of<br> |
---|
249 | the returned font. See `wx.Window.SetWindowVariant` for more about<br> |
---|
250 | this.</tt></dd></dl> |
---|
251 | |
---|
252 | <hr> |
---|
253 | Data descriptors inherited from <a href="wx._windows.html#ScrolledWindow">wx._windows.ScrolledWindow</a>:<br> |
---|
254 | <dl><dt><strong>ScaleX</strong></dt> |
---|
255 | <dd><tt>See `GetScaleX`</tt></dd> |
---|
256 | </dl> |
---|
257 | <dl><dt><strong>ScaleY</strong></dt> |
---|
258 | <dd><tt>See `GetScaleY`</tt></dd> |
---|
259 | </dl> |
---|
260 | <dl><dt><strong>TargetWindow</strong></dt> |
---|
261 | <dd><tt>See `GetTargetWindow` and `SetTargetWindow`</tt></dd> |
---|
262 | </dl> |
---|
263 | <dl><dt><strong>ViewStart</strong></dt> |
---|
264 | <dd><tt>See `GetViewStart`</tt></dd> |
---|
265 | </dl> |
---|
266 | <hr> |
---|
267 | Methods inherited from <a href="wx._windows.html#Panel">wx._windows.Panel</a>:<br> |
---|
268 | <dl><dt><a name="Tab-SetFocusIgnoringChildren"><strong>SetFocusIgnoringChildren</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetFocusIgnoringChildren">SetFocusIgnoringChildren</a>(self)<br> |
---|
269 | <br> |
---|
270 | In contrast to `SetFocus` (see above) this will set the focus to the<br> |
---|
271 | panel even of there are child windows in the panel. This is only<br> |
---|
272 | rarely needed.</tt></dd></dl> |
---|
273 | |
---|
274 | <hr> |
---|
275 | Methods inherited from <a href="wx._core.html#Window">wx._core.Window</a>:<br> |
---|
276 | <dl><dt><a name="Tab-AcceptsFocus"><strong>AcceptsFocus</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-AcceptsFocus">AcceptsFocus</a>(self) -> bool<br> |
---|
277 | <br> |
---|
278 | Can this window have focus?</tt></dd></dl> |
---|
279 | |
---|
280 | <dl><dt><a name="Tab-AcceptsFocusFromKeyboard"><strong>AcceptsFocusFromKeyboard</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-AcceptsFocusFromKeyboard">AcceptsFocusFromKeyboard</a>(self) -> bool<br> |
---|
281 | <br> |
---|
282 | Can this window be given focus by keyboard navigation? if not, the<br> |
---|
283 | only way to give it focus (provided it accepts it at all) is to click<br> |
---|
284 | it.</tt></dd></dl> |
---|
285 | |
---|
286 | <dl><dt><a name="Tab-AddChild"><strong>AddChild</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-AddChild">AddChild</a>(self, Window child)<br> |
---|
287 | <br> |
---|
288 | Adds a child window. This is called automatically by window creation<br> |
---|
289 | functions so should not be required by the application programmer.</tt></dd></dl> |
---|
290 | |
---|
291 | <dl><dt><a name="Tab-AdjustForLayoutDirection"><strong>AdjustForLayoutDirection</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-AdjustForLayoutDirection">AdjustForLayoutDirection</a>(self, int x, int width, int widthTotal) -> int<br> |
---|
292 | <br> |
---|
293 | Mirror coordinates for RTL layout if this window uses it and if the<br> |
---|
294 | mirroring is not done automatically like Win32.</tt></dd></dl> |
---|
295 | |
---|
296 | <dl><dt><a name="Tab-AssociateHandle"><strong>AssociateHandle</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-AssociateHandle">AssociateHandle</a>(self, long handle)<br> |
---|
297 | <br> |
---|
298 | Associate the window with a new native handle</tt></dd></dl> |
---|
299 | |
---|
300 | <dl><dt><a name="Tab-CacheBestSize"><strong>CacheBestSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-CacheBestSize">CacheBestSize</a>(self, Size size)<br> |
---|
301 | <br> |
---|
302 | Cache the best size so it doesn't need to be calculated again, (at least until<br> |
---|
303 | some properties of the window change.)</tt></dd></dl> |
---|
304 | |
---|
305 | <dl><dt><a name="Tab-CanSetTransparent"><strong>CanSetTransparent</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-CanSetTransparent">CanSetTransparent</a>(self) -> bool<br> |
---|
306 | <br> |
---|
307 | Returns ``True`` if the platform supports setting the transparency for<br> |
---|
308 | this window. Note that this method will err on the side of caution,<br> |
---|
309 | so it is possible that this will return ``False`` when it is in fact<br> |
---|
310 | possible to set the transparency.<br> |
---|
311 | <br> |
---|
312 | NOTE: On X-windows systems the X server must have the composite<br> |
---|
313 | extension loaded, and there must be a composite manager program (such<br> |
---|
314 | as xcompmgr) running.</tt></dd></dl> |
---|
315 | |
---|
316 | <dl><dt><a name="Tab-CaptureMouse"><strong>CaptureMouse</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-CaptureMouse">CaptureMouse</a>(self)<br> |
---|
317 | <br> |
---|
318 | Directs all mouse input to this window. Call wx.Window.ReleaseMouse to<br> |
---|
319 | release the capture.<br> |
---|
320 | <br> |
---|
321 | Note that wxWindows maintains the stack of windows having captured the<br> |
---|
322 | mouse and when the mouse is released the capture returns to the window<br> |
---|
323 | which had had captured it previously and it is only really released if<br> |
---|
324 | there were no previous window. In particular, this means that you must<br> |
---|
325 | release the mouse as many times as you capture it, unless the window<br> |
---|
326 | receives the `wx.MouseCaptureLostEvent` event.<br> |
---|
327 | <br> |
---|
328 | Any application which captures the mouse in the beginning of some<br> |
---|
329 | operation *must* handle `wx.MouseCaptureLostEvent` and cancel this<br> |
---|
330 | operation when it receives the event. The event handler must not<br> |
---|
331 | recapture mouse.</tt></dd></dl> |
---|
332 | |
---|
333 | <dl><dt><a name="Tab-Center"><strong>Center</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Center">Center</a>(self, int direction=BOTH)<br> |
---|
334 | <br> |
---|
335 | Centers the window. The parameter specifies the direction for<br> |
---|
336 | cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may<br> |
---|
337 | also include wx.CENTER_ON_SCREEN flag if you want to center the window<br> |
---|
338 | on the entire screen and not on its parent window. If it is a<br> |
---|
339 | top-level window and has no parent then it will always be centered<br> |
---|
340 | relative to the screen.</tt></dd></dl> |
---|
341 | |
---|
342 | <dl><dt><a name="Tab-CenterOnParent"><strong>CenterOnParent</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-CenterOnParent">CenterOnParent</a>(self, int dir=BOTH)<br> |
---|
343 | <br> |
---|
344 | Center with respect to the the parent window</tt></dd></dl> |
---|
345 | |
---|
346 | <dl><dt><a name="Tab-Centre"><strong>Centre</strong></a> = Center(*args, **kwargs)</dt><dd><tt><a href="#Tab-Center">Center</a>(self, int direction=BOTH)<br> |
---|
347 | <br> |
---|
348 | Centers the window. The parameter specifies the direction for<br> |
---|
349 | cetering, and may be wx.HORIZONTAL, wx.VERTICAL or wx.BOTH. It may<br> |
---|
350 | also include wx.CENTER_ON_SCREEN flag if you want to center the window<br> |
---|
351 | on the entire screen and not on its parent window. If it is a<br> |
---|
352 | top-level window and has no parent then it will always be centered<br> |
---|
353 | relative to the screen.</tt></dd></dl> |
---|
354 | |
---|
355 | <dl><dt><a name="Tab-CentreOnParent"><strong>CentreOnParent</strong></a> = CenterOnParent(*args, **kwargs)</dt><dd><tt><a href="#Tab-CenterOnParent">CenterOnParent</a>(self, int dir=BOTH)<br> |
---|
356 | <br> |
---|
357 | Center with respect to the the parent window</tt></dd></dl> |
---|
358 | |
---|
359 | <dl><dt><a name="Tab-ClearBackground"><strong>ClearBackground</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ClearBackground">ClearBackground</a>(self)<br> |
---|
360 | <br> |
---|
361 | Clears the window by filling it with the current background<br> |
---|
362 | colour. Does not cause an erase background event to be generated.</tt></dd></dl> |
---|
363 | |
---|
364 | <dl><dt><a name="Tab-ClientToScreen"><strong>ClientToScreen</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ClientToScreen">ClientToScreen</a>(self, Point pt) -> Point<br> |
---|
365 | <br> |
---|
366 | Converts to screen coordinates from coordinates relative to this window.</tt></dd></dl> |
---|
367 | |
---|
368 | <dl><dt><a name="Tab-ClientToScreenXY"><strong>ClientToScreenXY</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ClientToScreenXY">ClientToScreenXY</a>(int x, int y) -> (x,y)<br> |
---|
369 | <br> |
---|
370 | Converts to screen coordinates from coordinates relative to this window.</tt></dd></dl> |
---|
371 | |
---|
372 | <dl><dt><a name="Tab-Close"><strong>Close</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Close">Close</a>(self, bool force=False) -> bool<br> |
---|
373 | <br> |
---|
374 | This function simply generates a EVT_CLOSE event whose handler usually<br> |
---|
375 | tries to close the window. It doesn't close the window itself,<br> |
---|
376 | however. If force is False (the default) then the window's close<br> |
---|
377 | handler will be allowed to veto the destruction of the window.</tt></dd></dl> |
---|
378 | |
---|
379 | <dl><dt><a name="Tab-ConvertDialogPointToPixels"><strong>ConvertDialogPointToPixels</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ConvertDialogPointToPixels">ConvertDialogPointToPixels</a>(self, Point pt) -> Point<br> |
---|
380 | <br> |
---|
381 | Converts a point or size from dialog units to pixels. Dialog units<br> |
---|
382 | are used for maintaining a dialog's proportions even if the font<br> |
---|
383 | changes. For the x dimension, the dialog units are multiplied by the<br> |
---|
384 | average character width and then divided by 4. For the y dimension,<br> |
---|
385 | the dialog units are multiplied by the average character height and<br> |
---|
386 | then divided by 8.</tt></dd></dl> |
---|
387 | |
---|
388 | <dl><dt><a name="Tab-ConvertDialogSizeToPixels"><strong>ConvertDialogSizeToPixels</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ConvertDialogSizeToPixels">ConvertDialogSizeToPixels</a>(self, Size sz) -> Size<br> |
---|
389 | <br> |
---|
390 | Converts a point or size from dialog units to pixels. Dialog units<br> |
---|
391 | are used for maintaining a dialog's proportions even if the font<br> |
---|
392 | changes. For the x dimension, the dialog units are multiplied by the<br> |
---|
393 | average character width and then divided by 4. For the y dimension,<br> |
---|
394 | the dialog units are multiplied by the average character height and<br> |
---|
395 | then divided by 8.</tt></dd></dl> |
---|
396 | |
---|
397 | <dl><dt><a name="Tab-ConvertPixelPointToDialog"><strong>ConvertPixelPointToDialog</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ConvertPixelPointToDialog">ConvertPixelPointToDialog</a>(self, Point pt) -> Point</tt></dd></dl> |
---|
398 | |
---|
399 | <dl><dt><a name="Tab-ConvertPixelSizeToDialog"><strong>ConvertPixelSizeToDialog</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ConvertPixelSizeToDialog">ConvertPixelSizeToDialog</a>(self, Size sz) -> Size</tt></dd></dl> |
---|
400 | |
---|
401 | <dl><dt><a name="Tab-DLG_PNT"><strong>DLG_PNT</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DLG_PNT">DLG_PNT</a>(self, Point pt) -> Point<br> |
---|
402 | <br> |
---|
403 | Converts a point or size from dialog units to pixels. Dialog units<br> |
---|
404 | are used for maintaining a dialog's proportions even if the font<br> |
---|
405 | changes. For the x dimension, the dialog units are multiplied by the<br> |
---|
406 | average character width and then divided by 4. For the y dimension,<br> |
---|
407 | the dialog units are multiplied by the average character height and<br> |
---|
408 | then divided by 8.</tt></dd></dl> |
---|
409 | |
---|
410 | <dl><dt><a name="Tab-DLG_SZE"><strong>DLG_SZE</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DLG_SZE">DLG_SZE</a>(self, Size sz) -> Size<br> |
---|
411 | <br> |
---|
412 | Converts a point or size from dialog units to pixels. Dialog units<br> |
---|
413 | are used for maintaining a dialog's proportions even if the font<br> |
---|
414 | changes. For the x dimension, the dialog units are multiplied by the<br> |
---|
415 | average character width and then divided by 4. For the y dimension,<br> |
---|
416 | the dialog units are multiplied by the average character height and<br> |
---|
417 | then divided by 8.</tt></dd></dl> |
---|
418 | |
---|
419 | <dl><dt><a name="Tab-Destroy"><strong>Destroy</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Destroy">Destroy</a>(self) -> bool<br> |
---|
420 | <br> |
---|
421 | Destroys the window safely. Frames and dialogs are not destroyed<br> |
---|
422 | immediately when this function is called -- they are added to a list<br> |
---|
423 | of windows to be deleted on idle time, when all the window's events<br> |
---|
424 | have been processed. This prevents problems with events being sent to<br> |
---|
425 | non-existent windows.<br> |
---|
426 | <br> |
---|
427 | Returns True if the window has either been successfully deleted, or it<br> |
---|
428 | has been added to the list of windows pending real deletion.</tt></dd></dl> |
---|
429 | |
---|
430 | <dl><dt><a name="Tab-DestroyChildren"><strong>DestroyChildren</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DestroyChildren">DestroyChildren</a>(self) -> bool<br> |
---|
431 | <br> |
---|
432 | Destroys all children of a window. Called automatically by the<br> |
---|
433 | destructor.</tt></dd></dl> |
---|
434 | |
---|
435 | <dl><dt><a name="Tab-Disable"><strong>Disable</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Disable">Disable</a>(self) -> bool<br> |
---|
436 | <br> |
---|
437 | Disables the window, same as <a href="#Tab-Enable">Enable</a>(false).</tt></dd></dl> |
---|
438 | |
---|
439 | <dl><dt><a name="Tab-DissociateHandle"><strong>DissociateHandle</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DissociateHandle">DissociateHandle</a>(self)<br> |
---|
440 | <br> |
---|
441 | Dissociate the current native handle from the window</tt></dd></dl> |
---|
442 | |
---|
443 | <dl><dt><a name="Tab-DragAcceptFiles"><strong>DragAcceptFiles</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-DragAcceptFiles">DragAcceptFiles</a>(self, bool accept)<br> |
---|
444 | <br> |
---|
445 | Enables or disables eligibility for drop file events, EVT_DROP_FILES.<br> |
---|
446 | Only functional on Windows.</tt></dd></dl> |
---|
447 | |
---|
448 | <dl><dt><a name="Tab-Enable"><strong>Enable</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Enable">Enable</a>(self, bool enable=True) -> bool<br> |
---|
449 | <br> |
---|
450 | Enable or disable the window for user input. Note that when a parent<br> |
---|
451 | window is disabled, all of its children are disabled as well and they<br> |
---|
452 | are reenabled again when the parent is. Returns true if the window<br> |
---|
453 | has been enabled or disabled, false if nothing was done, i.e. if the<br> |
---|
454 | window had already been in the specified state.</tt></dd></dl> |
---|
455 | |
---|
456 | <dl><dt><a name="Tab-FindWindowById"><strong>FindWindowById</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-FindWindowById">FindWindowById</a>(self, long winid) -> Window<br> |
---|
457 | <br> |
---|
458 | Find a child of this window by window ID</tt></dd></dl> |
---|
459 | |
---|
460 | <dl><dt><a name="Tab-FindWindowByName"><strong>FindWindowByName</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-FindWindowByName">FindWindowByName</a>(self, String name) -> Window<br> |
---|
461 | <br> |
---|
462 | Find a child of this window by name</tt></dd></dl> |
---|
463 | |
---|
464 | <dl><dt><a name="Tab-Fit"><strong>Fit</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Fit">Fit</a>(self)<br> |
---|
465 | <br> |
---|
466 | Sizes the window so that it fits around its subwindows. This function<br> |
---|
467 | won't do anything if there are no subwindows and will only really work<br> |
---|
468 | correctly if sizers are used for the subwindows layout. Also, if the<br> |
---|
469 | window has exactly one subwindow it is better (faster and the result<br> |
---|
470 | is more precise as Fit adds some margin to account for fuzziness of<br> |
---|
471 | its calculations) to call window.<a href="#Tab-SetClientSize">SetClientSize</a>(child.<a href="#Tab-GetSize">GetSize</a>())<br> |
---|
472 | instead of calling Fit.</tt></dd></dl> |
---|
473 | |
---|
474 | <dl><dt><a name="Tab-FitInside"><strong>FitInside</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-FitInside">FitInside</a>(self)<br> |
---|
475 | <br> |
---|
476 | Similar to Fit, but sizes the interior (virtual) size of a<br> |
---|
477 | window. Mainly useful with scrolled windows to reset scrollbars after<br> |
---|
478 | sizing changes that do not trigger a size event, and/or scrolled<br> |
---|
479 | windows without an interior sizer. This function similarly won't do<br> |
---|
480 | anything if there are no subwindows.</tt></dd></dl> |
---|
481 | |
---|
482 | <dl><dt><a name="Tab-Freeze"><strong>Freeze</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Freeze">Freeze</a>(self)<br> |
---|
483 | <br> |
---|
484 | Freezes the window or, in other words, prevents any updates from<br> |
---|
485 | taking place on screen, the window is not redrawn at all. Thaw must be<br> |
---|
486 | called to reenable window redrawing. Calls to Freeze/Thaw may be<br> |
---|
487 | nested, with the actual Thaw being delayed until all the nesting has<br> |
---|
488 | been undone.<br> |
---|
489 | <br> |
---|
490 | This method is useful for visual appearance optimization (for example,<br> |
---|
491 | it is a good idea to use it before inserting large amount of text into<br> |
---|
492 | a wxTextCtrl under wxGTK) but is not implemented on all platforms nor<br> |
---|
493 | for all controls so it is mostly just a hint to wxWindows and not a<br> |
---|
494 | mandatory directive.</tt></dd></dl> |
---|
495 | |
---|
496 | <dl><dt><a name="Tab-GetAcceleratorTable"><strong>GetAcceleratorTable</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetAcceleratorTable">GetAcceleratorTable</a>(self) -> AcceleratorTable<br> |
---|
497 | <br> |
---|
498 | Gets the accelerator table for this window.</tt></dd></dl> |
---|
499 | |
---|
500 | <dl><dt><a name="Tab-GetAdjustedBestSize"><strong>GetAdjustedBestSize</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Use `GetEffectiveMinSize` instead.</tt></dd></dl> |
---|
501 | |
---|
502 | <dl><dt><a name="Tab-GetAutoLayout"><strong>GetAutoLayout</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetAutoLayout">GetAutoLayout</a>(self) -> bool<br> |
---|
503 | <br> |
---|
504 | Returns the current autoLayout setting</tt></dd></dl> |
---|
505 | |
---|
506 | <dl><dt><a name="Tab-GetBackgroundColour"><strong>GetBackgroundColour</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetBackgroundColour">GetBackgroundColour</a>(self) -> Colour<br> |
---|
507 | <br> |
---|
508 | Returns the background colour of the window.</tt></dd></dl> |
---|
509 | |
---|
510 | <dl><dt><a name="Tab-GetBackgroundStyle"><strong>GetBackgroundStyle</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetBackgroundStyle">GetBackgroundStyle</a>(self) -> int<br> |
---|
511 | <br> |
---|
512 | Returns the background style of the window.<br> |
---|
513 | <br> |
---|
514 | :see: `SetBackgroundStyle`</tt></dd></dl> |
---|
515 | |
---|
516 | <dl><dt><a name="Tab-GetBestFittingSize"><strong>GetBestFittingSize</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Use `GetEffectiveMinSize` instead.</tt></dd></dl> |
---|
517 | |
---|
518 | <dl><dt><a name="Tab-GetBestSize"><strong>GetBestSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetBestSize">GetBestSize</a>(self) -> Size<br> |
---|
519 | <br> |
---|
520 | This function returns the best acceptable minimal size for the<br> |
---|
521 | window, if applicable. For example, for a static text control, it will<br> |
---|
522 | be the minimal size such that the control label is not truncated. For<br> |
---|
523 | windows containing subwindows (suzh aswx.Panel), the size returned by<br> |
---|
524 | this function will be the same as the size the window would have had<br> |
---|
525 | after calling Fit.</tt></dd></dl> |
---|
526 | |
---|
527 | <dl><dt><a name="Tab-GetBestSizeTuple"><strong>GetBestSizeTuple</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetBestSizeTuple">GetBestSizeTuple</a>() -> (width, height)<br> |
---|
528 | <br> |
---|
529 | This function returns the best acceptable minimal size for the<br> |
---|
530 | window, if applicable. For example, for a static text control, it will<br> |
---|
531 | be the minimal size such that the control label is not truncated. For<br> |
---|
532 | windows containing subwindows (suzh aswx.Panel), the size returned by<br> |
---|
533 | this function will be the same as the size the window would have had<br> |
---|
534 | after calling Fit.</tt></dd></dl> |
---|
535 | |
---|
536 | <dl><dt><a name="Tab-GetBestVirtualSize"><strong>GetBestVirtualSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetBestVirtualSize">GetBestVirtualSize</a>(self) -> Size<br> |
---|
537 | <br> |
---|
538 | Return the largest of ClientSize and BestSize (as determined by a<br> |
---|
539 | sizer, interior children, or other means)</tt></dd></dl> |
---|
540 | |
---|
541 | <dl><dt><a name="Tab-GetBorder"><strong>GetBorder</strong></a>(*args)</dt><dd><tt><a href="#Tab-GetBorder">GetBorder</a>(self, long flags) -> int<br> |
---|
542 | <a href="#Tab-GetBorder">GetBorder</a>(self) -> int<br> |
---|
543 | <br> |
---|
544 | Get border for the flags of this window</tt></dd></dl> |
---|
545 | |
---|
546 | <dl><dt><a name="Tab-GetCaret"><strong>GetCaret</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetCaret">GetCaret</a>(self) -> Caret<br> |
---|
547 | <br> |
---|
548 | Returns the caret associated with the window.</tt></dd></dl> |
---|
549 | |
---|
550 | <dl><dt><a name="Tab-GetCharHeight"><strong>GetCharHeight</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetCharHeight">GetCharHeight</a>(self) -> int<br> |
---|
551 | <br> |
---|
552 | Get the (average) character size for the current font.</tt></dd></dl> |
---|
553 | |
---|
554 | <dl><dt><a name="Tab-GetCharWidth"><strong>GetCharWidth</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetCharWidth">GetCharWidth</a>(self) -> int<br> |
---|
555 | <br> |
---|
556 | Get the (average) character size for the current font.</tt></dd></dl> |
---|
557 | |
---|
558 | <dl><dt><a name="Tab-GetChildren"><strong>GetChildren</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetChildren">GetChildren</a>(self) -> WindowList<br> |
---|
559 | <br> |
---|
560 | Returns an object containing a list of the window's children. The<br> |
---|
561 | object provides a Python sequence-like interface over the internal<br> |
---|
562 | list maintained by the window..</tt></dd></dl> |
---|
563 | |
---|
564 | <dl><dt><a name="Tab-GetClientAreaOrigin"><strong>GetClientAreaOrigin</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetClientAreaOrigin">GetClientAreaOrigin</a>(self) -> Point<br> |
---|
565 | <br> |
---|
566 | Get the origin of the client area of the window relative to the<br> |
---|
567 | window's top left corner (the client area may be shifted because of<br> |
---|
568 | the borders, scrollbars, other decorations...)</tt></dd></dl> |
---|
569 | |
---|
570 | <dl><dt><a name="Tab-GetClientRect"><strong>GetClientRect</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetClientRect">GetClientRect</a>(self) -> Rect<br> |
---|
571 | <br> |
---|
572 | Get the client area position and size as a `wx.Rect` object.</tt></dd></dl> |
---|
573 | |
---|
574 | <dl><dt><a name="Tab-GetClientSize"><strong>GetClientSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetClientSize">GetClientSize</a>(self) -> Size<br> |
---|
575 | <br> |
---|
576 | This gets the size of the window's 'client area' in pixels. The client<br> |
---|
577 | area is the area which may be drawn on by the programmer, excluding<br> |
---|
578 | title bar, border, scrollbars, etc.</tt></dd></dl> |
---|
579 | |
---|
580 | <dl><dt><a name="Tab-GetClientSizeTuple"><strong>GetClientSizeTuple</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetClientSizeTuple">GetClientSizeTuple</a>() -> (width, height)<br> |
---|
581 | <br> |
---|
582 | This gets the size of the window's 'client area' in pixels. The client<br> |
---|
583 | area is the area which may be drawn on by the programmer, excluding<br> |
---|
584 | title bar, border, scrollbars, etc.</tt></dd></dl> |
---|
585 | |
---|
586 | <dl><dt><a name="Tab-GetConstraints"><strong>GetConstraints</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetConstraints">GetConstraints</a>(self) -> LayoutConstraints<br> |
---|
587 | <br> |
---|
588 | Returns a pointer to the window's layout constraints, or None if there<br> |
---|
589 | are none.</tt></dd></dl> |
---|
590 | |
---|
591 | <dl><dt><a name="Tab-GetContainingSizer"><strong>GetContainingSizer</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetContainingSizer">GetContainingSizer</a>(self) -> Sizer<br> |
---|
592 | <br> |
---|
593 | Return the sizer that this window is a member of, if any, otherwise None.</tt></dd></dl> |
---|
594 | |
---|
595 | <dl><dt><a name="Tab-GetCursor"><strong>GetCursor</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetCursor">GetCursor</a>(self) -> Cursor<br> |
---|
596 | <br> |
---|
597 | Return the cursor associated with this window.</tt></dd></dl> |
---|
598 | |
---|
599 | <dl><dt><a name="Tab-GetDropTarget"><strong>GetDropTarget</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetDropTarget">GetDropTarget</a>(self) -> DropTarget<br> |
---|
600 | <br> |
---|
601 | Returns the associated drop target, which may be None.</tt></dd></dl> |
---|
602 | |
---|
603 | <dl><dt><a name="Tab-GetEffectiveMinSize"><strong>GetEffectiveMinSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetEffectiveMinSize">GetEffectiveMinSize</a>(self) -> Size<br> |
---|
604 | <br> |
---|
605 | This function will merge the window's best size into the window's<br> |
---|
606 | minimum size, giving priority to the min size components, and returns<br> |
---|
607 | the results.</tt></dd></dl> |
---|
608 | |
---|
609 | <dl><dt><a name="Tab-GetEventHandler"><strong>GetEventHandler</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetEventHandler">GetEventHandler</a>(self) -> EvtHandler<br> |
---|
610 | <br> |
---|
611 | Returns the event handler for this window. By default, the window is<br> |
---|
612 | its own event handler.</tt></dd></dl> |
---|
613 | |
---|
614 | <dl><dt><a name="Tab-GetExtraStyle"><strong>GetExtraStyle</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetExtraStyle">GetExtraStyle</a>(self) -> long<br> |
---|
615 | <br> |
---|
616 | Returns the extra style bits for the window.</tt></dd></dl> |
---|
617 | |
---|
618 | <dl><dt><a name="Tab-GetFont"><strong>GetFont</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetFont">GetFont</a>(self) -> Font<br> |
---|
619 | <br> |
---|
620 | Returns the default font used for this window.</tt></dd></dl> |
---|
621 | |
---|
622 | <dl><dt><a name="Tab-GetForegroundColour"><strong>GetForegroundColour</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetForegroundColour">GetForegroundColour</a>(self) -> Colour<br> |
---|
623 | <br> |
---|
624 | Returns the foreground colour of the window. The interpretation of<br> |
---|
625 | foreground colour is dependent on the window class; it may be the text<br> |
---|
626 | colour or other colour, or it may not be used at all.</tt></dd></dl> |
---|
627 | |
---|
628 | <dl><dt><a name="Tab-GetFullTextExtent"><strong>GetFullTextExtent</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetFullTextExtent">GetFullTextExtent</a>(String string, Font font=None) -><br> |
---|
629 | (width, height, descent, externalLeading)<br> |
---|
630 | <br> |
---|
631 | Get the width, height, decent and leading of the text using the<br> |
---|
632 | current or specified font.</tt></dd></dl> |
---|
633 | |
---|
634 | <dl><dt><a name="Tab-GetGrandParent"><strong>GetGrandParent</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetGrandParent">GetGrandParent</a>(self) -> Window<br> |
---|
635 | <br> |
---|
636 | Returns the parent of the parent of this window, or None if there<br> |
---|
637 | isn't one.</tt></dd></dl> |
---|
638 | |
---|
639 | <dl><dt><a name="Tab-GetGtkWidget"><strong>GetGtkWidget</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetGtkWidget">GetGtkWidget</a>(self) -> long<br> |
---|
640 | <br> |
---|
641 | On wxGTK returns a pointer to the GtkWidget for this window as a long<br> |
---|
642 | integer. On the other platforms this method returns zero.</tt></dd></dl> |
---|
643 | |
---|
644 | <dl><dt><a name="Tab-GetHandle"><strong>GetHandle</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetHandle">GetHandle</a>(self) -> long<br> |
---|
645 | <br> |
---|
646 | Returns the platform-specific handle (as a long integer) of the<br> |
---|
647 | physical window. On wxMSW this is the win32 window handle, on wxGTK<br> |
---|
648 | it is the XWindow ID, and on wxMac it is the ControlRef.</tt></dd></dl> |
---|
649 | |
---|
650 | <dl><dt><a name="Tab-GetHelpText"><strong>GetHelpText</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetHelpText">GetHelpText</a>(self) -> String<br> |
---|
651 | <br> |
---|
652 | Gets the help text to be used as context-sensitive help for this<br> |
---|
653 | window. Note that the text is actually stored by the current<br> |
---|
654 | `wx.HelpProvider` implementation, and not in the window object itself.</tt></dd></dl> |
---|
655 | |
---|
656 | <dl><dt><a name="Tab-GetHelpTextAtPoint"><strong>GetHelpTextAtPoint</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetHelpTextAtPoint">GetHelpTextAtPoint</a>(self, Point pt, wxHelpEvent::Origin origin) -> String<br> |
---|
657 | <br> |
---|
658 | Get the help string associated with the given position in this window.<br> |
---|
659 | <br> |
---|
660 | Notice that pt may be invalid if event origin is keyboard or unknown<br> |
---|
661 | and this method should return the global window help text then</tt></dd></dl> |
---|
662 | |
---|
663 | <dl><dt><a name="Tab-GetId"><strong>GetId</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetId">GetId</a>(self) -> int<br> |
---|
664 | <br> |
---|
665 | Returns the identifier of the window. Each window has an integer<br> |
---|
666 | identifier. If the application has not provided one (or the default Id<br> |
---|
667 | -1 is used) then an unique identifier with a negative value will be<br> |
---|
668 | generated.</tt></dd></dl> |
---|
669 | |
---|
670 | <dl><dt><a name="Tab-GetLabel"><strong>GetLabel</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetLabel">GetLabel</a>(self) -> String<br> |
---|
671 | <br> |
---|
672 | Generic way of getting a label from any window, for identification<br> |
---|
673 | purposes. The interpretation of this function differs from class to<br> |
---|
674 | class. For frames and dialogs, the value returned is the title. For<br> |
---|
675 | buttons or static text controls, it is the button text. This function<br> |
---|
676 | can be useful for meta-programs such as testing tools or special-needs<br> |
---|
677 | access programs)which need to identify windows by name.</tt></dd></dl> |
---|
678 | |
---|
679 | <dl><dt><a name="Tab-GetLayoutDirection"><strong>GetLayoutDirection</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetLayoutDirection">GetLayoutDirection</a>(self) -> int<br> |
---|
680 | <br> |
---|
681 | Get the layout direction (LTR or RTL) for this window. Returns<br> |
---|
682 | ``wx.Layout_Default`` if layout direction is not supported.</tt></dd></dl> |
---|
683 | |
---|
684 | <dl><dt><a name="Tab-GetMaxHeight"><strong>GetMaxHeight</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetMaxHeight">GetMaxHeight</a>(self) -> int</tt></dd></dl> |
---|
685 | |
---|
686 | <dl><dt><a name="Tab-GetMaxSize"><strong>GetMaxSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetMaxSize">GetMaxSize</a>(self) -> Size</tt></dd></dl> |
---|
687 | |
---|
688 | <dl><dt><a name="Tab-GetMaxWidth"><strong>GetMaxWidth</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetMaxWidth">GetMaxWidth</a>(self) -> int</tt></dd></dl> |
---|
689 | |
---|
690 | <dl><dt><a name="Tab-GetMinHeight"><strong>GetMinHeight</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetMinHeight">GetMinHeight</a>(self) -> int</tt></dd></dl> |
---|
691 | |
---|
692 | <dl><dt><a name="Tab-GetMinSize"><strong>GetMinSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetMinSize">GetMinSize</a>(self) -> Size</tt></dd></dl> |
---|
693 | |
---|
694 | <dl><dt><a name="Tab-GetMinWidth"><strong>GetMinWidth</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetMinWidth">GetMinWidth</a>(self) -> int</tt></dd></dl> |
---|
695 | |
---|
696 | <dl><dt><a name="Tab-GetName"><strong>GetName</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetName">GetName</a>(self) -> String<br> |
---|
697 | <br> |
---|
698 | Returns the windows name. This name is not guaranteed to be unique;<br> |
---|
699 | it is up to the programmer to supply an appropriate name in the window<br> |
---|
700 | constructor or via wx.Window.SetName.</tt></dd></dl> |
---|
701 | |
---|
702 | <dl><dt><a name="Tab-GetParent"><strong>GetParent</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetParent">GetParent</a>(self) -> Window<br> |
---|
703 | <br> |
---|
704 | Returns the parent window of this window, or None if there isn't one.</tt></dd></dl> |
---|
705 | |
---|
706 | <dl><dt><a name="Tab-GetPosition"><strong>GetPosition</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetPosition">GetPosition</a>(self) -> Point<br> |
---|
707 | <br> |
---|
708 | Get the window's position. Notice that the position is in client<br> |
---|
709 | coordinates for child windows and screen coordinates for the top level<br> |
---|
710 | ones, use `GetScreenPosition` if you need screen coordinates for all<br> |
---|
711 | kinds of windows.</tt></dd></dl> |
---|
712 | |
---|
713 | <dl><dt><a name="Tab-GetPositionTuple"><strong>GetPositionTuple</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetPositionTuple">GetPositionTuple</a>() -> (x,y)<br> |
---|
714 | <br> |
---|
715 | Get the window's position. Notice that the position is in client<br> |
---|
716 | coordinates for child windows and screen coordinates for the top level<br> |
---|
717 | ones, use `GetScreenPosition` if you need screen coordinates for all<br> |
---|
718 | kinds of windows.</tt></dd></dl> |
---|
719 | |
---|
720 | <dl><dt><a name="Tab-GetRect"><strong>GetRect</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetRect">GetRect</a>(self) -> Rect<br> |
---|
721 | <br> |
---|
722 | Returns the size and position of the window as a `wx.Rect` object.</tt></dd></dl> |
---|
723 | |
---|
724 | <dl><dt><a name="Tab-GetScreenPosition"><strong>GetScreenPosition</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetScreenPosition">GetScreenPosition</a>(self) -> Point<br> |
---|
725 | <br> |
---|
726 | Get the position of the window in screen coordinantes.</tt></dd></dl> |
---|
727 | |
---|
728 | <dl><dt><a name="Tab-GetScreenPositionTuple"><strong>GetScreenPositionTuple</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetScreenPositionTuple">GetScreenPositionTuple</a>() -> (x,y)<br> |
---|
729 | <br> |
---|
730 | Get the position of the window in screen coordinantes.</tt></dd></dl> |
---|
731 | |
---|
732 | <dl><dt><a name="Tab-GetScreenRect"><strong>GetScreenRect</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetScreenRect">GetScreenRect</a>(self) -> Rect<br> |
---|
733 | <br> |
---|
734 | Returns the size and position of the window in screen coordinantes as<br> |
---|
735 | a `wx.Rect` object.</tt></dd></dl> |
---|
736 | |
---|
737 | <dl><dt><a name="Tab-GetScrollPos"><strong>GetScrollPos</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetScrollPos">GetScrollPos</a>(self, int orientation) -> int<br> |
---|
738 | <br> |
---|
739 | Returns the built-in scrollbar position.</tt></dd></dl> |
---|
740 | |
---|
741 | <dl><dt><a name="Tab-GetScrollRange"><strong>GetScrollRange</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetScrollRange">GetScrollRange</a>(self, int orientation) -> int<br> |
---|
742 | <br> |
---|
743 | Returns the built-in scrollbar range.</tt></dd></dl> |
---|
744 | |
---|
745 | <dl><dt><a name="Tab-GetScrollThumb"><strong>GetScrollThumb</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetScrollThumb">GetScrollThumb</a>(self, int orientation) -> int<br> |
---|
746 | <br> |
---|
747 | Returns the built-in scrollbar thumb size.</tt></dd></dl> |
---|
748 | |
---|
749 | <dl><dt><a name="Tab-GetSize"><strong>GetSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetSize">GetSize</a>(self) -> Size<br> |
---|
750 | <br> |
---|
751 | Get the window size.</tt></dd></dl> |
---|
752 | |
---|
753 | <dl><dt><a name="Tab-GetSizeTuple"><strong>GetSizeTuple</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetSizeTuple">GetSizeTuple</a>() -> (width, height)<br> |
---|
754 | <br> |
---|
755 | Get the window size.</tt></dd></dl> |
---|
756 | |
---|
757 | <dl><dt><a name="Tab-GetSizer"><strong>GetSizer</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetSizer">GetSizer</a>(self) -> Sizer<br> |
---|
758 | <br> |
---|
759 | Return the sizer associated with the window by a previous call to<br> |
---|
760 | SetSizer or None if there isn't one.</tt></dd></dl> |
---|
761 | |
---|
762 | <dl><dt><a name="Tab-GetTextExtent"><strong>GetTextExtent</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetTextExtent">GetTextExtent</a>(String string) -> (width, height)<br> |
---|
763 | <br> |
---|
764 | Get the width and height of the text using the current font.</tt></dd></dl> |
---|
765 | |
---|
766 | <dl><dt><a name="Tab-GetThemeEnabled"><strong>GetThemeEnabled</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetThemeEnabled">GetThemeEnabled</a>(self) -> bool<br> |
---|
767 | <br> |
---|
768 | Return the themeEnabled flag.</tt></dd></dl> |
---|
769 | |
---|
770 | <dl><dt><a name="Tab-GetToolTip"><strong>GetToolTip</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetToolTip">GetToolTip</a>(self) -> ToolTip<br> |
---|
771 | <br> |
---|
772 | get the associated tooltip or None if none</tt></dd></dl> |
---|
773 | |
---|
774 | <dl><dt><a name="Tab-GetTopLevelParent"><strong>GetTopLevelParent</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetTopLevelParent">GetTopLevelParent</a>(self) -> Window<br> |
---|
775 | <br> |
---|
776 | Returns the first frame or dialog in this window's parental hierarchy.</tt></dd></dl> |
---|
777 | |
---|
778 | <dl><dt><a name="Tab-GetUpdateClientRect"><strong>GetUpdateClientRect</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetUpdateClientRect">GetUpdateClientRect</a>(self) -> Rect<br> |
---|
779 | <br> |
---|
780 | Get the update rectangle region bounding box in client coords.</tt></dd></dl> |
---|
781 | |
---|
782 | <dl><dt><a name="Tab-GetUpdateRegion"><strong>GetUpdateRegion</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetUpdateRegion">GetUpdateRegion</a>(self) -> Region<br> |
---|
783 | <br> |
---|
784 | Returns the region specifying which parts of the window have been<br> |
---|
785 | damaged. Should only be called within an EVT_PAINT handler.</tt></dd></dl> |
---|
786 | |
---|
787 | <dl><dt><a name="Tab-GetValidator"><strong>GetValidator</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetValidator">GetValidator</a>(self) -> Validator<br> |
---|
788 | <br> |
---|
789 | Returns a pointer to the current validator for the window, or None if<br> |
---|
790 | there is none.</tt></dd></dl> |
---|
791 | |
---|
792 | <dl><dt><a name="Tab-GetVirtualSize"><strong>GetVirtualSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetVirtualSize">GetVirtualSize</a>(self) -> Size<br> |
---|
793 | <br> |
---|
794 | Get the the virtual size of the window in pixels. For most windows<br> |
---|
795 | this is just the client area of the window, but for some like scrolled<br> |
---|
796 | windows it is more or less independent of the screen window size.</tt></dd></dl> |
---|
797 | |
---|
798 | <dl><dt><a name="Tab-GetVirtualSizeTuple"><strong>GetVirtualSizeTuple</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetVirtualSizeTuple">GetVirtualSizeTuple</a>() -> (width, height)<br> |
---|
799 | <br> |
---|
800 | Get the the virtual size of the window in pixels. For most windows<br> |
---|
801 | this is just the client area of the window, but for some like scrolled<br> |
---|
802 | windows it is more or less independent of the screen window size.</tt></dd></dl> |
---|
803 | |
---|
804 | <dl><dt><a name="Tab-GetWindowBorderSize"><strong>GetWindowBorderSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetWindowBorderSize">GetWindowBorderSize</a>(self) -> Size<br> |
---|
805 | <br> |
---|
806 | Return the size of the left/right and top/bottom borders.</tt></dd></dl> |
---|
807 | |
---|
808 | <dl><dt><a name="Tab-GetWindowStyle"><strong>GetWindowStyle</strong></a> = GetWindowStyleFlag(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetWindowStyleFlag">GetWindowStyleFlag</a>(self) -> long<br> |
---|
809 | <br> |
---|
810 | Gets the window style that was passed to the constructor or Create<br> |
---|
811 | method.</tt></dd></dl> |
---|
812 | |
---|
813 | <dl><dt><a name="Tab-GetWindowStyleFlag"><strong>GetWindowStyleFlag</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetWindowStyleFlag">GetWindowStyleFlag</a>(self) -> long<br> |
---|
814 | <br> |
---|
815 | Gets the window style that was passed to the constructor or Create<br> |
---|
816 | method.</tt></dd></dl> |
---|
817 | |
---|
818 | <dl><dt><a name="Tab-GetWindowVariant"><strong>GetWindowVariant</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetWindowVariant">GetWindowVariant</a>(self) -> int</tt></dd></dl> |
---|
819 | |
---|
820 | <dl><dt><a name="Tab-HasCapture"><strong>HasCapture</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-HasCapture">HasCapture</a>(self) -> bool<br> |
---|
821 | <br> |
---|
822 | Returns true if this window has the current mouse capture.</tt></dd></dl> |
---|
823 | |
---|
824 | <dl><dt><a name="Tab-HasFlag"><strong>HasFlag</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-HasFlag">HasFlag</a>(self, int flag) -> bool<br> |
---|
825 | <br> |
---|
826 | Test if the given style is set for this window.</tt></dd></dl> |
---|
827 | |
---|
828 | <dl><dt><a name="Tab-HasMultiplePages"><strong>HasMultiplePages</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-HasMultiplePages">HasMultiplePages</a>(self) -> bool</tt></dd></dl> |
---|
829 | |
---|
830 | <dl><dt><a name="Tab-HasScrollbar"><strong>HasScrollbar</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-HasScrollbar">HasScrollbar</a>(self, int orient) -> bool<br> |
---|
831 | <br> |
---|
832 | Does the window have the scrollbar for this orientation?</tt></dd></dl> |
---|
833 | |
---|
834 | <dl><dt><a name="Tab-HasTransparentBackground"><strong>HasTransparentBackground</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-HasTransparentBackground">HasTransparentBackground</a>(self) -> bool<br> |
---|
835 | <br> |
---|
836 | Returns True if this window's background is transparent (as, for<br> |
---|
837 | example, for `wx.StaticText`) and should show the parent window's<br> |
---|
838 | background.<br> |
---|
839 | <br> |
---|
840 | This method is mostly used internally by the library itself and you<br> |
---|
841 | normally shouldn't have to call it. You may, however, have to override<br> |
---|
842 | it in your custom control classes to ensure that background is painted<br> |
---|
843 | correctly.</tt></dd></dl> |
---|
844 | |
---|
845 | <dl><dt><a name="Tab-Hide"><strong>Hide</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Hide">Hide</a>(self) -> bool<br> |
---|
846 | <br> |
---|
847 | Equivalent to calling <a href="#Tab-Show">Show</a>(False).</tt></dd></dl> |
---|
848 | |
---|
849 | <dl><dt><a name="Tab-HitTest"><strong>HitTest</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-HitTest">HitTest</a>(self, Point pt) -> int<br> |
---|
850 | <br> |
---|
851 | Test where the given (in client coords) point lies</tt></dd></dl> |
---|
852 | |
---|
853 | <dl><dt><a name="Tab-HitTestXY"><strong>HitTestXY</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-HitTestXY">HitTestXY</a>(self, int x, int y) -> int<br> |
---|
854 | <br> |
---|
855 | Test where the given (in client coords) point lies</tt></dd></dl> |
---|
856 | |
---|
857 | <dl><dt><a name="Tab-InheritAttributes"><strong>InheritAttributes</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-InheritAttributes">InheritAttributes</a>(self)<br> |
---|
858 | <br> |
---|
859 | This function is (or should be, in case of custom controls) called<br> |
---|
860 | during window creation to intelligently set up the window visual<br> |
---|
861 | attributes, that is the font and the foreground and background<br> |
---|
862 | colours.<br> |
---|
863 | <br> |
---|
864 | By 'intelligently' the following is meant: by default, all windows use<br> |
---|
865 | their own default attributes. However if some of the parent's<br> |
---|
866 | attributes are explicitly changed (that is, using SetFont and not<br> |
---|
867 | SetOwnFont) and if the corresponding attribute hadn't been<br> |
---|
868 | explicitly set for this window itself, then this window takes the same<br> |
---|
869 | value as used by the parent. In addition, if the window overrides<br> |
---|
870 | ShouldInheritColours to return false, the colours will not be changed<br> |
---|
871 | no matter what and only the font might.<br> |
---|
872 | <br> |
---|
873 | This rather complicated logic is necessary in order to accommodate the<br> |
---|
874 | different usage scenarios. The most common one is when all default<br> |
---|
875 | attributes are used and in this case, nothing should be inherited as<br> |
---|
876 | in modern GUIs different controls use different fonts (and colours)<br> |
---|
877 | than their siblings so they can't inherit the same value from the<br> |
---|
878 | parent. However it was also deemed desirable to allow to simply change<br> |
---|
879 | the attributes of all children at once by just changing the font or<br> |
---|
880 | colour of their common parent, hence in this case we do inherit the<br> |
---|
881 | parents attributes.</tt></dd></dl> |
---|
882 | |
---|
883 | <dl><dt><a name="Tab-InheritsBackgroundColour"><strong>InheritsBackgroundColour</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-InheritsBackgroundColour">InheritsBackgroundColour</a>(self) -> bool</tt></dd></dl> |
---|
884 | |
---|
885 | <dl><dt><a name="Tab-InitDialog"><strong>InitDialog</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-InitDialog">InitDialog</a>(self)<br> |
---|
886 | <br> |
---|
887 | Sends an EVT_INIT_DIALOG event, whose handler usually transfers data<br> |
---|
888 | to the dialog via validators.</tt></dd></dl> |
---|
889 | |
---|
890 | <dl><dt><a name="Tab-InvalidateBestSize"><strong>InvalidateBestSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-InvalidateBestSize">InvalidateBestSize</a>(self)<br> |
---|
891 | <br> |
---|
892 | Reset the cached best size value so it will be recalculated the next<br> |
---|
893 | time it is needed.</tt></dd></dl> |
---|
894 | |
---|
895 | <dl><dt><a name="Tab-IsBeingDeleted"><strong>IsBeingDeleted</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-IsBeingDeleted">IsBeingDeleted</a>(self) -> bool<br> |
---|
896 | <br> |
---|
897 | Is the window in the process of being deleted?</tt></dd></dl> |
---|
898 | |
---|
899 | <dl><dt><a name="Tab-IsDoubleBuffered"><strong>IsDoubleBuffered</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-IsDoubleBuffered">IsDoubleBuffered</a>(self) -> bool<br> |
---|
900 | <br> |
---|
901 | Returns ``True`` if the window contents is double-buffered by the<br> |
---|
902 | system, i.e. if any drawing done on the window is really done on a<br> |
---|
903 | temporary backing surface and transferred to the screen all at once<br> |
---|
904 | later.</tt></dd></dl> |
---|
905 | |
---|
906 | <dl><dt><a name="Tab-IsEnabled"><strong>IsEnabled</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-IsEnabled">IsEnabled</a>(self) -> bool<br> |
---|
907 | <br> |
---|
908 | Returns true if the window is enabled for input, false otherwise.</tt></dd></dl> |
---|
909 | |
---|
910 | <dl><dt><a name="Tab-IsExposed"><strong>IsExposed</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-IsExposed">IsExposed</a>(self, int x, int y, int w=1, int h=1) -> bool<br> |
---|
911 | <br> |
---|
912 | Returns true if the given point or rectangle area has been exposed<br> |
---|
913 | since the last repaint. Call this in an paint event handler to<br> |
---|
914 | optimize redrawing by only redrawing those areas, which have been<br> |
---|
915 | exposed.</tt></dd></dl> |
---|
916 | |
---|
917 | <dl><dt><a name="Tab-IsExposedPoint"><strong>IsExposedPoint</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-IsExposedPoint">IsExposedPoint</a>(self, Point pt) -> bool<br> |
---|
918 | <br> |
---|
919 | Returns true if the given point or rectangle area has been exposed<br> |
---|
920 | since the last repaint. Call this in an paint event handler to<br> |
---|
921 | optimize redrawing by only redrawing those areas, which have been<br> |
---|
922 | exposed.</tt></dd></dl> |
---|
923 | |
---|
924 | <dl><dt><a name="Tab-IsExposedRect"><strong>IsExposedRect</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-IsExposedRect">IsExposedRect</a>(self, Rect rect) -> bool<br> |
---|
925 | <br> |
---|
926 | Returns true if the given point or rectangle area has been exposed<br> |
---|
927 | since the last repaint. Call this in an paint event handler to<br> |
---|
928 | optimize redrawing by only redrawing those areas, which have been<br> |
---|
929 | exposed.</tt></dd></dl> |
---|
930 | |
---|
931 | <dl><dt><a name="Tab-IsFrozen"><strong>IsFrozen</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-IsFrozen">IsFrozen</a>(self) -> bool<br> |
---|
932 | <br> |
---|
933 | Returns ``True`` if the window has been frozen and not thawed yet.<br> |
---|
934 | <br> |
---|
935 | :see: `Freeze` and `Thaw`</tt></dd></dl> |
---|
936 | |
---|
937 | <dl><dt><a name="Tab-IsRetained"><strong>IsRetained</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-IsRetained">IsRetained</a>(self) -> bool<br> |
---|
938 | <br> |
---|
939 | Returns true if the window is retained, false otherwise. Retained<br> |
---|
940 | windows are only available on X platforms.</tt></dd></dl> |
---|
941 | |
---|
942 | <dl><dt><a name="Tab-IsShown"><strong>IsShown</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-IsShown">IsShown</a>(self) -> bool<br> |
---|
943 | <br> |
---|
944 | Returns true if the window is shown, false if it has been hidden.</tt></dd></dl> |
---|
945 | |
---|
946 | <dl><dt><a name="Tab-IsShownOnScreen"><strong>IsShownOnScreen</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-IsShownOnScreen">IsShownOnScreen</a>(self) -> bool<br> |
---|
947 | <br> |
---|
948 | Returns ``True`` if the window is physically visible on the screen,<br> |
---|
949 | i.e. it is shown and all its parents up to the toplevel window are<br> |
---|
950 | shown as well.</tt></dd></dl> |
---|
951 | |
---|
952 | <dl><dt><a name="Tab-IsTopLevel"><strong>IsTopLevel</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-IsTopLevel">IsTopLevel</a>(self) -> bool<br> |
---|
953 | <br> |
---|
954 | Returns true if the given window is a top-level one. Currently all<br> |
---|
955 | frames and dialogs are always considered to be top-level windows (even<br> |
---|
956 | if they have a parent window).</tt></dd></dl> |
---|
957 | |
---|
958 | <dl><dt><a name="Tab-Layout"><strong>Layout</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Layout">Layout</a>(self) -> bool<br> |
---|
959 | <br> |
---|
960 | Invokes the constraint-based layout algorithm or the sizer-based<br> |
---|
961 | algorithm for this window. See SetAutoLayout: when auto layout is on,<br> |
---|
962 | this function gets called automatically by the default EVT_SIZE<br> |
---|
963 | handler when the window is resized.</tt></dd></dl> |
---|
964 | |
---|
965 | <dl><dt><a name="Tab-LineDown"><strong>LineDown</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-LineDown">LineDown</a>(self) -> bool<br> |
---|
966 | <br> |
---|
967 | This is just a wrapper for <a href="#Tab-ScrollLines">ScrollLines</a>(1).</tt></dd></dl> |
---|
968 | |
---|
969 | <dl><dt><a name="Tab-LineUp"><strong>LineUp</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-LineUp">LineUp</a>(self) -> bool<br> |
---|
970 | <br> |
---|
971 | This is just a wrapper for <a href="#Tab-ScrollLines">ScrollLines</a>(-1).</tt></dd></dl> |
---|
972 | |
---|
973 | <dl><dt><a name="Tab-Lower"><strong>Lower</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Lower">Lower</a>(self)<br> |
---|
974 | <br> |
---|
975 | Lowers the window to the bottom of the window hierarchy. In current<br> |
---|
976 | version of wxWidgets this works both for managed and child windows.</tt></dd></dl> |
---|
977 | |
---|
978 | <dl><dt><a name="Tab-MakeModal"><strong>MakeModal</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-MakeModal">MakeModal</a>(self, bool modal=True)<br> |
---|
979 | <br> |
---|
980 | Disables all other windows in the application so that the user can<br> |
---|
981 | only interact with this window. Passing False will reverse this<br> |
---|
982 | effect.</tt></dd></dl> |
---|
983 | |
---|
984 | <dl><dt><a name="Tab-Move"><strong>Move</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Move">Move</a>(self, Point pt, int flags=SIZE_USE_EXISTING)<br> |
---|
985 | <br> |
---|
986 | Moves the window to the given position.</tt></dd></dl> |
---|
987 | |
---|
988 | <dl><dt><a name="Tab-MoveAfterInTabOrder"><strong>MoveAfterInTabOrder</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-MoveAfterInTabOrder">MoveAfterInTabOrder</a>(self, Window win)<br> |
---|
989 | <br> |
---|
990 | Moves this window in the tab navigation order after the specified<br> |
---|
991 | sibling window. This means that when the user presses the TAB key on<br> |
---|
992 | that other window, the focus switches to this window.<br> |
---|
993 | <br> |
---|
994 | The default tab order is the same as creation order. This function<br> |
---|
995 | and `MoveBeforeInTabOrder` allow to change it after creating all the<br> |
---|
996 | windows.</tt></dd></dl> |
---|
997 | |
---|
998 | <dl><dt><a name="Tab-MoveBeforeInTabOrder"><strong>MoveBeforeInTabOrder</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-MoveBeforeInTabOrder">MoveBeforeInTabOrder</a>(self, Window win)<br> |
---|
999 | <br> |
---|
1000 | Same as `MoveAfterInTabOrder` except that it inserts this window just<br> |
---|
1001 | before win instead of putting it right after it.</tt></dd></dl> |
---|
1002 | |
---|
1003 | <dl><dt><a name="Tab-MoveXY"><strong>MoveXY</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-MoveXY">MoveXY</a>(self, int x, int y, int flags=SIZE_USE_EXISTING)<br> |
---|
1004 | <br> |
---|
1005 | Moves the window to the given position.</tt></dd></dl> |
---|
1006 | |
---|
1007 | <dl><dt><a name="Tab-Navigate"><strong>Navigate</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Navigate">Navigate</a>(self, int flags=NavigationKeyEvent.IsForward) -> bool<br> |
---|
1008 | <br> |
---|
1009 | Does keyboard navigation from this window to another, by sending a<br> |
---|
1010 | `wx.NavigationKeyEvent`.</tt></dd></dl> |
---|
1011 | |
---|
1012 | <dl><dt><a name="Tab-PageDown"><strong>PageDown</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-PageDown">PageDown</a>(self) -> bool<br> |
---|
1013 | <br> |
---|
1014 | This is just a wrapper for <a href="#Tab-ScrollPages">ScrollPages</a>(1).</tt></dd></dl> |
---|
1015 | |
---|
1016 | <dl><dt><a name="Tab-PageUp"><strong>PageUp</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-PageUp">PageUp</a>(self) -> bool<br> |
---|
1017 | <br> |
---|
1018 | This is just a wrapper for <a href="#Tab-ScrollPages">ScrollPages</a>(-1).</tt></dd></dl> |
---|
1019 | |
---|
1020 | <dl><dt><a name="Tab-PopEventHandler"><strong>PopEventHandler</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-PopEventHandler">PopEventHandler</a>(self, bool deleteHandler=False) -> EvtHandler<br> |
---|
1021 | <br> |
---|
1022 | Removes and returns the top-most event handler on the event handler<br> |
---|
1023 | stack. If deleteHandler is True then the wx.EvtHandler object will be<br> |
---|
1024 | destroyed after it is popped, and ``None`` will be returned instead.</tt></dd></dl> |
---|
1025 | |
---|
1026 | <dl><dt><a name="Tab-PopupMenu"><strong>PopupMenu</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-PopupMenu">PopupMenu</a>(self, Menu menu, Point pos=DefaultPosition) -> bool<br> |
---|
1027 | <br> |
---|
1028 | Pops up the given menu at the specified coordinates, relative to this window,<br> |
---|
1029 | and returns control when the user has dismissed the menu. If a menu item is<br> |
---|
1030 | selected, the corresponding menu event is generated and will be processed as<br> |
---|
1031 | usual. If the default position is given then the current position of the<br> |
---|
1032 | mouse cursor will be used.</tt></dd></dl> |
---|
1033 | |
---|
1034 | <dl><dt><a name="Tab-PopupMenuXY"><strong>PopupMenuXY</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-PopupMenuXY">PopupMenuXY</a>(self, Menu menu, int x=-1, int y=-1) -> bool<br> |
---|
1035 | <br> |
---|
1036 | Pops up the given menu at the specified coordinates, relative to this window,<br> |
---|
1037 | and returns control when the user has dismissed the menu. If a menu item is<br> |
---|
1038 | selected, the corresponding menu event is generated and will be processed as<br> |
---|
1039 | usual. If the default position is given then the current position of the<br> |
---|
1040 | mouse cursor will be used.</tt></dd></dl> |
---|
1041 | |
---|
1042 | <dl><dt><a name="Tab-PostCreate"><strong>PostCreate</strong></a>(self, pre)</dt><dd><tt>Phase 3 of the 2-phase create <wink!><br> |
---|
1043 | Call this method after precreating the window with the 2-phase create method.</tt></dd></dl> |
---|
1044 | |
---|
1045 | <dl><dt><a name="Tab-PrepareDC"><strong>PrepareDC</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-PrepareDC">PrepareDC</a>(self, DC dc)<br> |
---|
1046 | <br> |
---|
1047 | Call this function to prepare the device context for drawing a<br> |
---|
1048 | scrolled image. It sets the device origin according to the current<br> |
---|
1049 | scroll position.</tt></dd></dl> |
---|
1050 | |
---|
1051 | <dl><dt><a name="Tab-PushEventHandler"><strong>PushEventHandler</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-PushEventHandler">PushEventHandler</a>(self, EvtHandler handler)<br> |
---|
1052 | <br> |
---|
1053 | Pushes this event handler onto the event handler stack for the window.<br> |
---|
1054 | An event handler is an object that is capable of processing the events<br> |
---|
1055 | sent to a window. (In other words, is able to dispatch the events to a<br> |
---|
1056 | handler function.) By default, the window is its own event handler,<br> |
---|
1057 | but an application may wish to substitute another, for example to<br> |
---|
1058 | allow central implementation of event-handling for a variety of<br> |
---|
1059 | different window classes.<br> |
---|
1060 | <br> |
---|
1061 | wx.Window.PushEventHandler allows an application to set up a chain of<br> |
---|
1062 | event handlers, where an event not handled by one event handler is<br> |
---|
1063 | handed to the next one in the chain. Use `wx.Window.PopEventHandler`<br> |
---|
1064 | to remove the event handler. Ownership of the handler is *not* given<br> |
---|
1065 | to the window, so you should be sure to pop the handler before the<br> |
---|
1066 | window is destroyed and either let PopEventHandler destroy it, or call<br> |
---|
1067 | its Destroy method yourself.</tt></dd></dl> |
---|
1068 | |
---|
1069 | <dl><dt><a name="Tab-Raise"><strong>Raise</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Raise">Raise</a>(self)<br> |
---|
1070 | <br> |
---|
1071 | Raises the window to the top of the window hierarchy. In current<br> |
---|
1072 | version of wxWidgets this works both for managed and child windows.</tt></dd></dl> |
---|
1073 | |
---|
1074 | <dl><dt><a name="Tab-Refresh"><strong>Refresh</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Refresh">Refresh</a>(self, bool eraseBackground=True, Rect rect=None)<br> |
---|
1075 | <br> |
---|
1076 | Mark the specified rectangle (or the whole window) as "dirty" so it<br> |
---|
1077 | will be repainted. Causes an EVT_PAINT event to be generated and sent<br> |
---|
1078 | to the window.</tt></dd></dl> |
---|
1079 | |
---|
1080 | <dl><dt><a name="Tab-RefreshRect"><strong>RefreshRect</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-RefreshRect">RefreshRect</a>(self, Rect rect, bool eraseBackground=True)<br> |
---|
1081 | <br> |
---|
1082 | Redraws the contents of the given rectangle: the area inside it will<br> |
---|
1083 | be repainted. This is the same as Refresh but has a nicer syntax.</tt></dd></dl> |
---|
1084 | |
---|
1085 | <dl><dt><a name="Tab-RegisterHotKey"><strong>RegisterHotKey</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-RegisterHotKey">RegisterHotKey</a>(self, int hotkeyId, int modifiers, int keycode) -> bool<br> |
---|
1086 | <br> |
---|
1087 | Registers a system wide hotkey. Every time the user presses the hotkey<br> |
---|
1088 | registered here, this window will receive a hotkey event. It will<br> |
---|
1089 | receive the event even if the application is in the background and<br> |
---|
1090 | does not have the input focus because the user is working with some<br> |
---|
1091 | other application. To bind an event handler function to this hotkey<br> |
---|
1092 | use EVT_HOTKEY with an id equal to hotkeyId. Returns True if the<br> |
---|
1093 | hotkey was registered successfully.</tt></dd></dl> |
---|
1094 | |
---|
1095 | <dl><dt><a name="Tab-ReleaseMouse"><strong>ReleaseMouse</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ReleaseMouse">ReleaseMouse</a>(self)<br> |
---|
1096 | <br> |
---|
1097 | Releases mouse input captured with wx.Window.CaptureMouse.</tt></dd></dl> |
---|
1098 | |
---|
1099 | <dl><dt><a name="Tab-RemoveChild"><strong>RemoveChild</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-RemoveChild">RemoveChild</a>(self, Window child)<br> |
---|
1100 | <br> |
---|
1101 | Removes a child window. This is called automatically by window<br> |
---|
1102 | deletion functions so should not be required by the application<br> |
---|
1103 | programmer.</tt></dd></dl> |
---|
1104 | |
---|
1105 | <dl><dt><a name="Tab-RemoveEventHandler"><strong>RemoveEventHandler</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-RemoveEventHandler">RemoveEventHandler</a>(self, EvtHandler handler) -> bool<br> |
---|
1106 | <br> |
---|
1107 | Find the given handler in the event handler chain and remove (but not<br> |
---|
1108 | delete) it from the event handler chain, returns True if it was found<br> |
---|
1109 | and False otherwise (this also results in an assert failure so this<br> |
---|
1110 | function should only be called when the handler is supposed to be<br> |
---|
1111 | there.)</tt></dd></dl> |
---|
1112 | |
---|
1113 | <dl><dt><a name="Tab-Reparent"><strong>Reparent</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Reparent">Reparent</a>(self, Window newParent) -> bool<br> |
---|
1114 | <br> |
---|
1115 | Reparents the window, i.e the window will be removed from its current<br> |
---|
1116 | parent window (e.g. a non-standard toolbar in a wxFrame) and then<br> |
---|
1117 | re-inserted into another. Available on Windows and GTK. Returns True<br> |
---|
1118 | if the parent was changed, False otherwise (error or newParent ==<br> |
---|
1119 | oldParent)</tt></dd></dl> |
---|
1120 | |
---|
1121 | <dl><dt><a name="Tab-ScreenToClient"><strong>ScreenToClient</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ScreenToClient">ScreenToClient</a>(self, Point pt) -> Point<br> |
---|
1122 | <br> |
---|
1123 | Converts from screen to client window coordinates.</tt></dd></dl> |
---|
1124 | |
---|
1125 | <dl><dt><a name="Tab-ScreenToClientXY"><strong>ScreenToClientXY</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ScreenToClientXY">ScreenToClientXY</a>(int x, int y) -> (x,y)<br> |
---|
1126 | <br> |
---|
1127 | Converts from screen to client window coordinates.</tt></dd></dl> |
---|
1128 | |
---|
1129 | <dl><dt><a name="Tab-ScrollLines"><strong>ScrollLines</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ScrollLines">ScrollLines</a>(self, int lines) -> bool<br> |
---|
1130 | <br> |
---|
1131 | If the platform and window class supports it, scrolls the window by<br> |
---|
1132 | the given number of lines down, if lines is positive, or up if lines<br> |
---|
1133 | is negative. Returns True if the window was scrolled, False if it was<br> |
---|
1134 | already on top/bottom and nothing was done.</tt></dd></dl> |
---|
1135 | |
---|
1136 | <dl><dt><a name="Tab-ScrollPages"><strong>ScrollPages</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ScrollPages">ScrollPages</a>(self, int pages) -> bool<br> |
---|
1137 | <br> |
---|
1138 | If the platform and window class supports it, scrolls the window by<br> |
---|
1139 | the given number of pages down, if pages is positive, or up if pages<br> |
---|
1140 | is negative. Returns True if the window was scrolled, False if it was<br> |
---|
1141 | already on top/bottom and nothing was done.</tt></dd></dl> |
---|
1142 | |
---|
1143 | <dl><dt><a name="Tab-ScrollWindow"><strong>ScrollWindow</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ScrollWindow">ScrollWindow</a>(self, int dx, int dy, Rect rect=None)<br> |
---|
1144 | <br> |
---|
1145 | Physically scrolls the pixels in the window and move child windows<br> |
---|
1146 | accordingly. Use this function to optimise your scrolling<br> |
---|
1147 | implementations, to minimise the area that must be redrawn. Note that<br> |
---|
1148 | it is rarely required to call this function from a user program.</tt></dd></dl> |
---|
1149 | |
---|
1150 | <dl><dt><a name="Tab-SendSizeEvent"><strong>SendSizeEvent</strong></a>(self)</dt></dl> |
---|
1151 | |
---|
1152 | <dl><dt><a name="Tab-SetAcceleratorTable"><strong>SetAcceleratorTable</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetAcceleratorTable">SetAcceleratorTable</a>(self, AcceleratorTable accel)<br> |
---|
1153 | <br> |
---|
1154 | Sets the accelerator table for this window.</tt></dd></dl> |
---|
1155 | |
---|
1156 | <dl><dt><a name="Tab-SetAutoLayout"><strong>SetAutoLayout</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetAutoLayout">SetAutoLayout</a>(self, bool autoLayout)<br> |
---|
1157 | <br> |
---|
1158 | Determines whether the Layout function will be called automatically<br> |
---|
1159 | when the window is resized. lease note that this only happens for the<br> |
---|
1160 | windows usually used to contain children, namely `wx.Panel` and<br> |
---|
1161 | `wx.TopLevelWindow` (and the classes deriving from them).<br> |
---|
1162 | <br> |
---|
1163 | This method is called implicitly by `SetSizer` but if you use<br> |
---|
1164 | `SetConstraints` you should call it manually or otherwise the window<br> |
---|
1165 | layout won't be correctly updated when its size changes.</tt></dd></dl> |
---|
1166 | |
---|
1167 | <dl><dt><a name="Tab-SetBackgroundColour"><strong>SetBackgroundColour</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetBackgroundColour">SetBackgroundColour</a>(self, Colour colour) -> bool<br> |
---|
1168 | <br> |
---|
1169 | Sets the background colour of the window. Returns True if the colour<br> |
---|
1170 | was changed. The background colour is usually painted by the default<br> |
---|
1171 | EVT_ERASE_BACKGROUND event handler function under Windows and<br> |
---|
1172 | automatically under GTK. Using `wx.NullColour` will reset the window<br> |
---|
1173 | to the default background colour.<br> |
---|
1174 | <br> |
---|
1175 | Note that setting the background colour may not cause an immediate<br> |
---|
1176 | refresh, so you may wish to call `ClearBackground` or `Refresh` after<br> |
---|
1177 | calling this function.<br> |
---|
1178 | <br> |
---|
1179 | Using this function will disable attempts to use themes for this<br> |
---|
1180 | window, if the system supports them. Use with care since usually the<br> |
---|
1181 | themes represent the appearance chosen by the user to be used for all<br> |
---|
1182 | applications on the system.</tt></dd></dl> |
---|
1183 | |
---|
1184 | <dl><dt><a name="Tab-SetBackgroundStyle"><strong>SetBackgroundStyle</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetBackgroundStyle">SetBackgroundStyle</a>(self, int style) -> bool<br> |
---|
1185 | <br> |
---|
1186 | Returns the background style of the window. The background style<br> |
---|
1187 | indicates how the background of the window is drawn.<br> |
---|
1188 | <br> |
---|
1189 | ====================== ========================================<br> |
---|
1190 | wx.BG_STYLE_SYSTEM The background colour or pattern should<br> |
---|
1191 | be determined by the system<br> |
---|
1192 | wx.BG_STYLE_COLOUR The background should be a solid colour<br> |
---|
1193 | wx.BG_STYLE_CUSTOM The background will be implemented by the<br> |
---|
1194 | application.<br> |
---|
1195 | ====================== ========================================<br> |
---|
1196 | <br> |
---|
1197 | On GTK+, use of wx.BG_STYLE_CUSTOM allows the flicker-free drawing of<br> |
---|
1198 | a custom background, such as a tiled bitmap. Currently the style has<br> |
---|
1199 | no effect on other platforms.<br> |
---|
1200 | <br> |
---|
1201 | :see: `GetBackgroundStyle`, `SetBackgroundColour`</tt></dd></dl> |
---|
1202 | |
---|
1203 | <dl><dt><a name="Tab-SetBestFittingSize"><strong>SetBestFittingSize</strong></a> = deprecatedWrapper(*args, **kwargs)</dt><dd><tt>Use `SetInitialSize`</tt></dd></dl> |
---|
1204 | |
---|
1205 | <dl><dt><a name="Tab-SetCaret"><strong>SetCaret</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetCaret">SetCaret</a>(self, Caret caret)<br> |
---|
1206 | <br> |
---|
1207 | Sets the caret associated with the window.</tt></dd></dl> |
---|
1208 | |
---|
1209 | <dl><dt><a name="Tab-SetClientRect"><strong>SetClientRect</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetClientRect">SetClientRect</a>(self, Rect rect)<br> |
---|
1210 | <br> |
---|
1211 | This sets the size of the window client area in pixels. Using this<br> |
---|
1212 | function to size a window tends to be more device-independent than<br> |
---|
1213 | wx.Window.SetSize, since the application need not worry about what<br> |
---|
1214 | dimensions the border or title bar have when trying to fit the window<br> |
---|
1215 | around panel items, for example.</tt></dd></dl> |
---|
1216 | |
---|
1217 | <dl><dt><a name="Tab-SetClientSize"><strong>SetClientSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetClientSize">SetClientSize</a>(self, Size size)<br> |
---|
1218 | <br> |
---|
1219 | This sets the size of the window client area in pixels. Using this<br> |
---|
1220 | function to size a window tends to be more device-independent than<br> |
---|
1221 | wx.Window.SetSize, since the application need not worry about what<br> |
---|
1222 | dimensions the border or title bar have when trying to fit the window<br> |
---|
1223 | around panel items, for example.</tt></dd></dl> |
---|
1224 | |
---|
1225 | <dl><dt><a name="Tab-SetClientSizeWH"><strong>SetClientSizeWH</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetClientSizeWH">SetClientSizeWH</a>(self, int width, int height)<br> |
---|
1226 | <br> |
---|
1227 | This sets the size of the window client area in pixels. Using this<br> |
---|
1228 | function to size a window tends to be more device-independent than<br> |
---|
1229 | wx.Window.SetSize, since the application need not worry about what<br> |
---|
1230 | dimensions the border or title bar have when trying to fit the window<br> |
---|
1231 | around panel items, for example.</tt></dd></dl> |
---|
1232 | |
---|
1233 | <dl><dt><a name="Tab-SetConstraints"><strong>SetConstraints</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetConstraints">SetConstraints</a>(self, LayoutConstraints constraints)<br> |
---|
1234 | <br> |
---|
1235 | Sets the window to have the given layout constraints. If an existing<br> |
---|
1236 | layout constraints object is already owned by the window, it will be<br> |
---|
1237 | deleted. Pass None to disassociate and delete the window's current<br> |
---|
1238 | constraints.<br> |
---|
1239 | <br> |
---|
1240 | You must call SetAutoLayout to tell a window to use the constraints<br> |
---|
1241 | automatically in its default EVT_SIZE handler; otherwise, you must<br> |
---|
1242 | handle EVT_SIZE yourself and call <a href="#Tab-Layout">Layout</a>() explicitly. When setting<br> |
---|
1243 | both a wx.LayoutConstraints and a wx.Sizer, only the sizer will have<br> |
---|
1244 | effect.</tt></dd></dl> |
---|
1245 | |
---|
1246 | <dl><dt><a name="Tab-SetContainingSizer"><strong>SetContainingSizer</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetContainingSizer">SetContainingSizer</a>(self, Sizer sizer)<br> |
---|
1247 | <br> |
---|
1248 | This normally does not need to be called by application code. It is<br> |
---|
1249 | called internally when a window is added to a sizer, and is used so<br> |
---|
1250 | the window can remove itself from the sizer when it is destroyed.</tt></dd></dl> |
---|
1251 | |
---|
1252 | <dl><dt><a name="Tab-SetCursor"><strong>SetCursor</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetCursor">SetCursor</a>(self, Cursor cursor) -> bool<br> |
---|
1253 | <br> |
---|
1254 | Sets the window's cursor. Notice that the window cursor also sets it<br> |
---|
1255 | for the children of the window implicitly.<br> |
---|
1256 | <br> |
---|
1257 | The cursor may be wx.NullCursor in which case the window cursor will<br> |
---|
1258 | be reset back to default.</tt></dd></dl> |
---|
1259 | |
---|
1260 | <dl><dt><a name="Tab-SetDimensions"><strong>SetDimensions</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetDimensions">SetDimensions</a>(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)<br> |
---|
1261 | <br> |
---|
1262 | Sets the position and size of the window in pixels. The sizeFlags<br> |
---|
1263 | parameter indicates the interpretation of the other params if they are<br> |
---|
1264 | equal to -1.<br> |
---|
1265 | <br> |
---|
1266 | ======================== ======================================<br> |
---|
1267 | wx.SIZE_AUTO A -1 indicates that a class-specific<br> |
---|
1268 | default should be used.<br> |
---|
1269 | wx.SIZE_USE_EXISTING Axisting dimensions should be used if<br> |
---|
1270 | -1 values are supplied.<br> |
---|
1271 | wxSIZE_ALLOW_MINUS_ONE Allow dimensions of -1 and less to be<br> |
---|
1272 | interpreted as real dimensions, not<br> |
---|
1273 | default values.<br> |
---|
1274 | ======================== ======================================</tt></dd></dl> |
---|
1275 | |
---|
1276 | <dl><dt><a name="Tab-SetDoubleBuffered"><strong>SetDoubleBuffered</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetDoubleBuffered">SetDoubleBuffered</a>(self, bool on)<br> |
---|
1277 | <br> |
---|
1278 | Currently wxGTK2 only.</tt></dd></dl> |
---|
1279 | |
---|
1280 | <dl><dt><a name="Tab-SetDropTarget"><strong>SetDropTarget</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetDropTarget">SetDropTarget</a>(self, DropTarget dropTarget)<br> |
---|
1281 | <br> |
---|
1282 | Associates a drop target with this window. If the window already has<br> |
---|
1283 | a drop target, it is deleted.</tt></dd></dl> |
---|
1284 | |
---|
1285 | <dl><dt><a name="Tab-SetEventHandler"><strong>SetEventHandler</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetEventHandler">SetEventHandler</a>(self, EvtHandler handler)<br> |
---|
1286 | <br> |
---|
1287 | Sets the event handler for this window. An event handler is an object<br> |
---|
1288 | that is capable of processing the events sent to a window. (In other<br> |
---|
1289 | words, is able to dispatch the events to handler function.) By<br> |
---|
1290 | default, the window is its own event handler, but an application may<br> |
---|
1291 | wish to substitute another, for example to allow central<br> |
---|
1292 | implementation of event-handling for a variety of different window<br> |
---|
1293 | classes.<br> |
---|
1294 | <br> |
---|
1295 | It is usually better to use `wx.Window.PushEventHandler` since this sets<br> |
---|
1296 | up a chain of event handlers, where an event not handled by one event<br> |
---|
1297 | handler is handed off to the next one in the chain.</tt></dd></dl> |
---|
1298 | |
---|
1299 | <dl><dt><a name="Tab-SetExtraStyle"><strong>SetExtraStyle</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetExtraStyle">SetExtraStyle</a>(self, long exStyle)<br> |
---|
1300 | <br> |
---|
1301 | Sets the extra style bits for the window. Extra styles are the less<br> |
---|
1302 | often used style bits which can't be set with the constructor or with<br> |
---|
1303 | <a href="#Tab-SetWindowStyleFlag">SetWindowStyleFlag</a>()</tt></dd></dl> |
---|
1304 | |
---|
1305 | <dl><dt><a name="Tab-SetFocus"><strong>SetFocus</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetFocus">SetFocus</a>(self)<br> |
---|
1306 | <br> |
---|
1307 | Set's the focus to this window, allowing it to receive keyboard input.</tt></dd></dl> |
---|
1308 | |
---|
1309 | <dl><dt><a name="Tab-SetFocusFromKbd"><strong>SetFocusFromKbd</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetFocusFromKbd">SetFocusFromKbd</a>(self)<br> |
---|
1310 | <br> |
---|
1311 | Set focus to this window as the result of a keyboard action. Normally<br> |
---|
1312 | only called internally.</tt></dd></dl> |
---|
1313 | |
---|
1314 | <dl><dt><a name="Tab-SetFont"><strong>SetFont</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetFont">SetFont</a>(self, Font font) -> bool<br> |
---|
1315 | <br> |
---|
1316 | Sets the font for this window.</tt></dd></dl> |
---|
1317 | |
---|
1318 | <dl><dt><a name="Tab-SetForegroundColour"><strong>SetForegroundColour</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetForegroundColour">SetForegroundColour</a>(self, Colour colour) -> bool<br> |
---|
1319 | <br> |
---|
1320 | Sets the foreground colour of the window. Returns True is the colour<br> |
---|
1321 | was changed. The interpretation of foreground colour is dependent on<br> |
---|
1322 | the window class; it may be the text colour or other colour, or it may<br> |
---|
1323 | not be used at all.</tt></dd></dl> |
---|
1324 | |
---|
1325 | <dl><dt><a name="Tab-SetHelpText"><strong>SetHelpText</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetHelpText">SetHelpText</a>(self, String text)<br> |
---|
1326 | <br> |
---|
1327 | Sets the help text to be used as context-sensitive help for this<br> |
---|
1328 | window. Note that the text is actually stored by the current<br> |
---|
1329 | `wx.HelpProvider` implementation, and not in the window object itself.</tt></dd></dl> |
---|
1330 | |
---|
1331 | <dl><dt><a name="Tab-SetHelpTextForId"><strong>SetHelpTextForId</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetHelpTextForId">SetHelpTextForId</a>(self, String text)<br> |
---|
1332 | <br> |
---|
1333 | Associate this help text with all windows with the same id as this<br> |
---|
1334 | one.</tt></dd></dl> |
---|
1335 | |
---|
1336 | <dl><dt><a name="Tab-SetId"><strong>SetId</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetId">SetId</a>(self, int winid)<br> |
---|
1337 | <br> |
---|
1338 | Sets the identifier of the window. Each window has an integer<br> |
---|
1339 | identifier. If the application has not provided one, an identifier<br> |
---|
1340 | will be generated. Normally, the identifier should be provided on<br> |
---|
1341 | creation and should not be modified subsequently.</tt></dd></dl> |
---|
1342 | |
---|
1343 | <dl><dt><a name="Tab-SetInitialSize"><strong>SetInitialSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetInitialSize">SetInitialSize</a>(self, Size size=DefaultSize)<br> |
---|
1344 | <br> |
---|
1345 | A 'Smart' SetSize that will fill in default size components with the<br> |
---|
1346 | window's *best size* values. Also set's the minsize for use with sizers.</tt></dd></dl> |
---|
1347 | |
---|
1348 | <dl><dt><a name="Tab-SetLabel"><strong>SetLabel</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetLabel">SetLabel</a>(self, String label)<br> |
---|
1349 | <br> |
---|
1350 | Set the text which the window shows in its label if applicable.</tt></dd></dl> |
---|
1351 | |
---|
1352 | <dl><dt><a name="Tab-SetLayoutDirection"><strong>SetLayoutDirection</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetLayoutDirection">SetLayoutDirection</a>(self, int dir)<br> |
---|
1353 | <br> |
---|
1354 | Set the layout direction (LTR or RTL) for this window.</tt></dd></dl> |
---|
1355 | |
---|
1356 | <dl><dt><a name="Tab-SetMaxSize"><strong>SetMaxSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetMaxSize">SetMaxSize</a>(self, Size maxSize)<br> |
---|
1357 | <br> |
---|
1358 | A more convenient method than `SetSizeHints` for setting just the<br> |
---|
1359 | max size.</tt></dd></dl> |
---|
1360 | |
---|
1361 | <dl><dt><a name="Tab-SetMinSize"><strong>SetMinSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetMinSize">SetMinSize</a>(self, Size minSize)<br> |
---|
1362 | <br> |
---|
1363 | A more convenient method than `SetSizeHints` for setting just the<br> |
---|
1364 | min size.</tt></dd></dl> |
---|
1365 | |
---|
1366 | <dl><dt><a name="Tab-SetName"><strong>SetName</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetName">SetName</a>(self, String name)<br> |
---|
1367 | <br> |
---|
1368 | Sets the window's name. The window name is used for ressource setting<br> |
---|
1369 | in X, it is not the same as the window title/label</tt></dd></dl> |
---|
1370 | |
---|
1371 | <dl><dt><a name="Tab-SetOwnBackgroundColour"><strong>SetOwnBackgroundColour</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetOwnBackgroundColour">SetOwnBackgroundColour</a>(self, Colour colour)</tt></dd></dl> |
---|
1372 | |
---|
1373 | <dl><dt><a name="Tab-SetOwnFont"><strong>SetOwnFont</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetOwnFont">SetOwnFont</a>(self, Font font)</tt></dd></dl> |
---|
1374 | |
---|
1375 | <dl><dt><a name="Tab-SetOwnForegroundColour"><strong>SetOwnForegroundColour</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetOwnForegroundColour">SetOwnForegroundColour</a>(self, Colour colour)</tt></dd></dl> |
---|
1376 | |
---|
1377 | <dl><dt><a name="Tab-SetPosition"><strong>SetPosition</strong></a> = Move(*args, **kwargs)</dt><dd><tt><a href="#Tab-Move">Move</a>(self, Point pt, int flags=SIZE_USE_EXISTING)<br> |
---|
1378 | <br> |
---|
1379 | Moves the window to the given position.</tt></dd></dl> |
---|
1380 | |
---|
1381 | <dl><dt><a name="Tab-SetRect"><strong>SetRect</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetRect">SetRect</a>(self, Rect rect, int sizeFlags=SIZE_AUTO)<br> |
---|
1382 | <br> |
---|
1383 | Sets the position and size of the window in pixels using a wx.Rect.</tt></dd></dl> |
---|
1384 | |
---|
1385 | <dl><dt><a name="Tab-SetScrollPos"><strong>SetScrollPos</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetScrollPos">SetScrollPos</a>(self, int orientation, int pos, bool refresh=True)<br> |
---|
1386 | <br> |
---|
1387 | Sets the position of one of the built-in scrollbars.</tt></dd></dl> |
---|
1388 | |
---|
1389 | <dl><dt><a name="Tab-SetScrollbar"><strong>SetScrollbar</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetScrollbar">SetScrollbar</a>(self, int orientation, int position, int thumbSize, int range, <br> |
---|
1390 | bool refresh=True)<br> |
---|
1391 | <br> |
---|
1392 | Sets the scrollbar properties of a built-in scrollbar.</tt></dd></dl> |
---|
1393 | |
---|
1394 | <dl><dt><a name="Tab-SetSize"><strong>SetSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetSize">SetSize</a>(self, Size size)<br> |
---|
1395 | <br> |
---|
1396 | Sets the size of the window in pixels.</tt></dd></dl> |
---|
1397 | |
---|
1398 | <dl><dt><a name="Tab-SetSizeHints"><strong>SetSizeHints</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetSizeHints">SetSizeHints</a>(self, int minW, int minH, int maxW=-1, int maxH=-1, int incW=-1, <br> |
---|
1399 | int incH=-1)<br> |
---|
1400 | <br> |
---|
1401 | Allows specification of minimum and maximum window sizes, and window<br> |
---|
1402 | size increments. If a pair of values is not set (or set to -1), the<br> |
---|
1403 | default values will be used. If this function is called, the user<br> |
---|
1404 | will not be able to size the window outside the given bounds (if it is<br> |
---|
1405 | a top-level window.) Sizers will also inspect the minimum window size<br> |
---|
1406 | and will use that value if set when calculating layout.<br> |
---|
1407 | <br> |
---|
1408 | The resizing increments are only significant under Motif or Xt.</tt></dd></dl> |
---|
1409 | |
---|
1410 | <dl><dt><a name="Tab-SetSizeHintsSz"><strong>SetSizeHintsSz</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetSizeHintsSz">SetSizeHintsSz</a>(self, Size minSize, Size maxSize=DefaultSize, Size incSize=DefaultSize)<br> |
---|
1411 | <br> |
---|
1412 | Allows specification of minimum and maximum window sizes, and window<br> |
---|
1413 | size increments. If a pair of values is not set (or set to -1), the<br> |
---|
1414 | default values will be used. If this function is called, the user<br> |
---|
1415 | will not be able to size the window outside the given bounds (if it is<br> |
---|
1416 | a top-level window.) Sizers will also inspect the minimum window size<br> |
---|
1417 | and will use that value if set when calculating layout.<br> |
---|
1418 | <br> |
---|
1419 | The resizing increments are only significant under Motif or Xt.</tt></dd></dl> |
---|
1420 | |
---|
1421 | <dl><dt><a name="Tab-SetSizeWH"><strong>SetSizeWH</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetSizeWH">SetSizeWH</a>(self, int width, int height)<br> |
---|
1422 | <br> |
---|
1423 | Sets the size of the window in pixels.</tt></dd></dl> |
---|
1424 | |
---|
1425 | <dl><dt><a name="Tab-SetSizer"><strong>SetSizer</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetSizer">SetSizer</a>(self, Sizer sizer, bool deleteOld=True)<br> |
---|
1426 | <br> |
---|
1427 | Sets the window to have the given layout sizer. The window will then<br> |
---|
1428 | own the object, and will take care of its deletion. If an existing<br> |
---|
1429 | layout sizer object is already owned by the window, it will be deleted<br> |
---|
1430 | if the deleteOld parameter is true. Note that this function will also<br> |
---|
1431 | call SetAutoLayout implicitly with a True parameter if the sizer is<br> |
---|
1432 | non-None, and False otherwise.</tt></dd></dl> |
---|
1433 | |
---|
1434 | <dl><dt><a name="Tab-SetSizerAndFit"><strong>SetSizerAndFit</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetSizerAndFit">SetSizerAndFit</a>(self, Sizer sizer, bool deleteOld=True)<br> |
---|
1435 | <br> |
---|
1436 | The same as SetSizer, except it also sets the size hints for the<br> |
---|
1437 | window based on the sizer's minimum size.</tt></dd></dl> |
---|
1438 | |
---|
1439 | <dl><dt><a name="Tab-SetThemeEnabled"><strong>SetThemeEnabled</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetThemeEnabled">SetThemeEnabled</a>(self, bool enableTheme)<br> |
---|
1440 | <br> |
---|
1441 | This function tells a window if it should use the system's "theme"<br> |
---|
1442 | code to draw the windows' background instead if its own background<br> |
---|
1443 | drawing code. This will only have an effect on platforms that support<br> |
---|
1444 | the notion of themes in user defined windows. One such platform is<br> |
---|
1445 | GTK+ where windows can have (very colourful) backgrounds defined by a<br> |
---|
1446 | user's selected theme.<br> |
---|
1447 | <br> |
---|
1448 | Dialogs, notebook pages and the status bar have this flag set to true<br> |
---|
1449 | by default so that the default look and feel is simulated best.</tt></dd></dl> |
---|
1450 | |
---|
1451 | <dl><dt><a name="Tab-SetToolTip"><strong>SetToolTip</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetToolTip">SetToolTip</a>(self, ToolTip tip)<br> |
---|
1452 | <br> |
---|
1453 | Attach a tooltip to the window.</tt></dd></dl> |
---|
1454 | |
---|
1455 | <dl><dt><a name="Tab-SetToolTipString"><strong>SetToolTipString</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetToolTipString">SetToolTipString</a>(self, String tip)<br> |
---|
1456 | <br> |
---|
1457 | Attach a tooltip to the window.</tt></dd></dl> |
---|
1458 | |
---|
1459 | <dl><dt><a name="Tab-SetTransparent"><strong>SetTransparent</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetTransparent">SetTransparent</a>(self, byte alpha) -> bool<br> |
---|
1460 | <br> |
---|
1461 | Attempt to set the transparency of this window to the ``alpha`` value,<br> |
---|
1462 | returns True on success. The ``alpha`` value is an integer in the<br> |
---|
1463 | range of 0 to 255, where 0 is fully transparent and 255 is fully<br> |
---|
1464 | opaque.</tt></dd></dl> |
---|
1465 | |
---|
1466 | <dl><dt><a name="Tab-SetValidator"><strong>SetValidator</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetValidator">SetValidator</a>(self, Validator validator)<br> |
---|
1467 | <br> |
---|
1468 | Deletes the current validator (if any) and sets the window validator,<br> |
---|
1469 | having called wx.Validator.Clone to create a new validator of this<br> |
---|
1470 | type.</tt></dd></dl> |
---|
1471 | |
---|
1472 | <dl><dt><a name="Tab-SetVirtualSize"><strong>SetVirtualSize</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetVirtualSize">SetVirtualSize</a>(self, Size size)<br> |
---|
1473 | <br> |
---|
1474 | Set the the virtual size of a window in pixels. For most windows this<br> |
---|
1475 | is just the client area of the window, but for some like scrolled<br> |
---|
1476 | windows it is more or less independent of the screen window size.</tt></dd></dl> |
---|
1477 | |
---|
1478 | <dl><dt><a name="Tab-SetVirtualSizeHints"><strong>SetVirtualSizeHints</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetVirtualSizeHints">SetVirtualSizeHints</a>(self, int minW, int minH, int maxW=-1, int maxH=-1)<br> |
---|
1479 | <br> |
---|
1480 | Allows specification of minimum and maximum virtual window sizes. If a<br> |
---|
1481 | pair of values is not set (or set to -1), the default values will be<br> |
---|
1482 | used. If this function is called, the user will not be able to size<br> |
---|
1483 | the virtual area of the window outside the given bounds.</tt></dd></dl> |
---|
1484 | |
---|
1485 | <dl><dt><a name="Tab-SetVirtualSizeHintsSz"><strong>SetVirtualSizeHintsSz</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetVirtualSizeHintsSz">SetVirtualSizeHintsSz</a>(self, Size minSize, Size maxSize=DefaultSize)<br> |
---|
1486 | <br> |
---|
1487 | Allows specification of minimum and maximum virtual window sizes. If a<br> |
---|
1488 | pair of values is not set (or set to -1), the default values will be<br> |
---|
1489 | used. If this function is called, the user will not be able to size<br> |
---|
1490 | the virtual area of the window outside the given bounds.</tt></dd></dl> |
---|
1491 | |
---|
1492 | <dl><dt><a name="Tab-SetVirtualSizeWH"><strong>SetVirtualSizeWH</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetVirtualSizeWH">SetVirtualSizeWH</a>(self, int w, int h)<br> |
---|
1493 | <br> |
---|
1494 | Set the the virtual size of a window in pixels. For most windows this<br> |
---|
1495 | is just the client area of the window, but for some like scrolled<br> |
---|
1496 | windows it is more or less independent of the screen window size.</tt></dd></dl> |
---|
1497 | |
---|
1498 | <dl><dt><a name="Tab-SetWindowStyle"><strong>SetWindowStyle</strong></a> = SetWindowStyleFlag(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetWindowStyleFlag">SetWindowStyleFlag</a>(self, long style)<br> |
---|
1499 | <br> |
---|
1500 | Sets the style of the window. Please note that some styles cannot be<br> |
---|
1501 | changed after the window creation and that <a href="#Tab-Refresh">Refresh</a>() might need to be<br> |
---|
1502 | called after changing the others for the change to take place<br> |
---|
1503 | immediately.</tt></dd></dl> |
---|
1504 | |
---|
1505 | <dl><dt><a name="Tab-SetWindowStyleFlag"><strong>SetWindowStyleFlag</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetWindowStyleFlag">SetWindowStyleFlag</a>(self, long style)<br> |
---|
1506 | <br> |
---|
1507 | Sets the style of the window. Please note that some styles cannot be<br> |
---|
1508 | changed after the window creation and that <a href="#Tab-Refresh">Refresh</a>() might need to be<br> |
---|
1509 | called after changing the others for the change to take place<br> |
---|
1510 | immediately.</tt></dd></dl> |
---|
1511 | |
---|
1512 | <dl><dt><a name="Tab-SetWindowVariant"><strong>SetWindowVariant</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetWindowVariant">SetWindowVariant</a>(self, int variant)<br> |
---|
1513 | <br> |
---|
1514 | Sets the variant of the window/font size to use for this window, if<br> |
---|
1515 | the platform supports variants, for example, wxMac.</tt></dd></dl> |
---|
1516 | |
---|
1517 | <dl><dt><a name="Tab-ShouldInheritColours"><strong>ShouldInheritColours</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ShouldInheritColours">ShouldInheritColours</a>(self) -> bool<br> |
---|
1518 | <br> |
---|
1519 | Return true from here to allow the colours of this window to be<br> |
---|
1520 | changed by InheritAttributes, returning false forbids inheriting them<br> |
---|
1521 | from the parent window.<br> |
---|
1522 | <br> |
---|
1523 | The base class version returns false, but this method is overridden in<br> |
---|
1524 | wxControl where it returns true.</tt></dd></dl> |
---|
1525 | |
---|
1526 | <dl><dt><a name="Tab-Show"><strong>Show</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Show">Show</a>(self, bool show=True) -> bool<br> |
---|
1527 | <br> |
---|
1528 | Shows or hides the window. You may need to call Raise for a top level<br> |
---|
1529 | window if you want to bring it to top, although this is not needed if<br> |
---|
1530 | Show is called immediately after the frame creation. Returns True if<br> |
---|
1531 | the window has been shown or hidden or False if nothing was done<br> |
---|
1532 | because it already was in the requested state.</tt></dd></dl> |
---|
1533 | |
---|
1534 | <dl><dt><a name="Tab-Thaw"><strong>Thaw</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Thaw">Thaw</a>(self)<br> |
---|
1535 | <br> |
---|
1536 | Reenables window updating after a previous call to Freeze. Calls to<br> |
---|
1537 | Freeze/Thaw may be nested, so Thaw must be called the same number of<br> |
---|
1538 | times that Freeze was before the window will be updated.</tt></dd></dl> |
---|
1539 | |
---|
1540 | <dl><dt><a name="Tab-ToggleWindowStyle"><strong>ToggleWindowStyle</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ToggleWindowStyle">ToggleWindowStyle</a>(self, int flag) -> bool<br> |
---|
1541 | <br> |
---|
1542 | Turn the flag on if it had been turned off before and vice versa,<br> |
---|
1543 | returns True if the flag is turned on by this function call.</tt></dd></dl> |
---|
1544 | |
---|
1545 | <dl><dt><a name="Tab-TransferDataFromWindow"><strong>TransferDataFromWindow</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-TransferDataFromWindow">TransferDataFromWindow</a>(self) -> bool<br> |
---|
1546 | <br> |
---|
1547 | Transfers values from child controls to data areas specified by their<br> |
---|
1548 | validators. Returns false if a transfer failed. If the window has<br> |
---|
1549 | wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will<br> |
---|
1550 | also call <a href="#Tab-TransferDataFromWindow">TransferDataFromWindow</a>() of all child windows.</tt></dd></dl> |
---|
1551 | |
---|
1552 | <dl><dt><a name="Tab-TransferDataToWindow"><strong>TransferDataToWindow</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-TransferDataToWindow">TransferDataToWindow</a>(self) -> bool<br> |
---|
1553 | <br> |
---|
1554 | Transfers values to child controls from data areas specified by their<br> |
---|
1555 | validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra<br> |
---|
1556 | style flag set, the method will also call <a href="#Tab-TransferDataToWindow">TransferDataToWindow</a>() of<br> |
---|
1557 | all child windows.</tt></dd></dl> |
---|
1558 | |
---|
1559 | <dl><dt><a name="Tab-UnregisterHotKey"><strong>UnregisterHotKey</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-UnregisterHotKey">UnregisterHotKey</a>(self, int hotkeyId) -> bool<br> |
---|
1560 | <br> |
---|
1561 | Unregisters a system wide hotkey.</tt></dd></dl> |
---|
1562 | |
---|
1563 | <dl><dt><a name="Tab-Update"><strong>Update</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Update">Update</a>(self)<br> |
---|
1564 | <br> |
---|
1565 | Calling this method immediately repaints the invalidated area of the<br> |
---|
1566 | window instead of waiting for the EVT_PAINT event to happen, (normally<br> |
---|
1567 | this would usually only happen when the flow of control returns to the<br> |
---|
1568 | event loop.) Notice that this function doesn't refresh the window and<br> |
---|
1569 | does nothing if the window has been already repainted. Use `Refresh`<br> |
---|
1570 | first if you want to immediately redraw the window (or some portion of<br> |
---|
1571 | it) unconditionally.</tt></dd></dl> |
---|
1572 | |
---|
1573 | <dl><dt><a name="Tab-UpdateWindowUI"><strong>UpdateWindowUI</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-UpdateWindowUI">UpdateWindowUI</a>(self, long flags=UPDATE_UI_NONE)<br> |
---|
1574 | <br> |
---|
1575 | This function sends EVT_UPDATE_UI events to the window. The particular<br> |
---|
1576 | implementation depends on the window; for example a wx.ToolBar will<br> |
---|
1577 | send an update UI event for each toolbar button, and a wx.Frame will<br> |
---|
1578 | send an update UI event for each menubar menu item. You can call this<br> |
---|
1579 | function from your application to ensure that your UI is up-to-date at<br> |
---|
1580 | a particular point in time (as far as your EVT_UPDATE_UI handlers are<br> |
---|
1581 | concerned). This may be necessary if you have called<br> |
---|
1582 | `wx.UpdateUIEvent.SetMode` or `wx.UpdateUIEvent.SetUpdateInterval` to<br> |
---|
1583 | limit the overhead that wxWindows incurs by sending update UI events<br> |
---|
1584 | in idle time.</tt></dd></dl> |
---|
1585 | |
---|
1586 | <dl><dt><a name="Tab-UseBgCol"><strong>UseBgCol</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-UseBgCol">UseBgCol</a>(self) -> bool</tt></dd></dl> |
---|
1587 | |
---|
1588 | <dl><dt><a name="Tab-Validate"><strong>Validate</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Validate">Validate</a>(self) -> bool<br> |
---|
1589 | <br> |
---|
1590 | Validates the current values of the child controls using their<br> |
---|
1591 | validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra<br> |
---|
1592 | style flag set, the method will also call <a href="#Tab-Validate">Validate</a>() of all child<br> |
---|
1593 | windows. Returns false if any of the validations failed.</tt></dd></dl> |
---|
1594 | |
---|
1595 | <dl><dt><a name="Tab-WarpPointer"><strong>WarpPointer</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-WarpPointer">WarpPointer</a>(self, int x, int y)<br> |
---|
1596 | <br> |
---|
1597 | Moves the pointer to the given position on the window.<br> |
---|
1598 | <br> |
---|
1599 | NOTE: This function is not supported under Mac because Apple Human<br> |
---|
1600 | Interface Guidelines forbid moving the mouse cursor programmatically.</tt></dd></dl> |
---|
1601 | |
---|
1602 | <hr> |
---|
1603 | Static methods inherited from <a href="wx._core.html#Window">wx._core.Window</a>:<br> |
---|
1604 | <dl><dt><a name="Tab-FindFocus"><strong>FindFocus</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-FindFocus">FindFocus</a>() -> Window<br> |
---|
1605 | <br> |
---|
1606 | Returns the window or control that currently has the keyboard focus,<br> |
---|
1607 | or None.</tt></dd></dl> |
---|
1608 | |
---|
1609 | <dl><dt><a name="Tab-GetCapture"><strong>GetCapture</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetCapture">GetCapture</a>() -> Window<br> |
---|
1610 | <br> |
---|
1611 | Returns the window which currently captures the mouse or None</tt></dd></dl> |
---|
1612 | |
---|
1613 | <dl><dt><a name="Tab-NewControlId"><strong>NewControlId</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-NewControlId">NewControlId</a>() -> int<br> |
---|
1614 | <br> |
---|
1615 | Generate a control id for the controls which were not given one.</tt></dd></dl> |
---|
1616 | |
---|
1617 | <dl><dt><a name="Tab-NextControlId"><strong>NextControlId</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-NextControlId">NextControlId</a>(int winid) -> int<br> |
---|
1618 | <br> |
---|
1619 | Get the id of the control following the one with the given<br> |
---|
1620 | autogenerated) id</tt></dd></dl> |
---|
1621 | |
---|
1622 | <dl><dt><a name="Tab-PrevControlId"><strong>PrevControlId</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-PrevControlId">PrevControlId</a>(int winid) -> int<br> |
---|
1623 | <br> |
---|
1624 | Get the id of the control preceding the one with the given<br> |
---|
1625 | autogenerated) id</tt></dd></dl> |
---|
1626 | |
---|
1627 | <hr> |
---|
1628 | Data descriptors inherited from <a href="wx._core.html#Window">wx._core.Window</a>:<br> |
---|
1629 | <dl><dt><strong>AcceleratorTable</strong></dt> |
---|
1630 | <dd><tt>See `GetAcceleratorTable` and `SetAcceleratorTable`</tt></dd> |
---|
1631 | </dl> |
---|
1632 | <dl><dt><strong>AutoLayout</strong></dt> |
---|
1633 | <dd><tt>See `GetAutoLayout` and `SetAutoLayout`</tt></dd> |
---|
1634 | </dl> |
---|
1635 | <dl><dt><strong>BackgroundColour</strong></dt> |
---|
1636 | <dd><tt>See `GetBackgroundColour` and `SetBackgroundColour`</tt></dd> |
---|
1637 | </dl> |
---|
1638 | <dl><dt><strong>BackgroundStyle</strong></dt> |
---|
1639 | <dd><tt>See `GetBackgroundStyle` and `SetBackgroundStyle`</tt></dd> |
---|
1640 | </dl> |
---|
1641 | <dl><dt><strong>BestSize</strong></dt> |
---|
1642 | <dd><tt>See `GetBestSize`</tt></dd> |
---|
1643 | </dl> |
---|
1644 | <dl><dt><strong>BestVirtualSize</strong></dt> |
---|
1645 | <dd><tt>See `GetBestVirtualSize`</tt></dd> |
---|
1646 | </dl> |
---|
1647 | <dl><dt><strong>Border</strong></dt> |
---|
1648 | <dd><tt>See `GetBorder`</tt></dd> |
---|
1649 | </dl> |
---|
1650 | <dl><dt><strong>Caret</strong></dt> |
---|
1651 | <dd><tt>See `GetCaret` and `SetCaret`</tt></dd> |
---|
1652 | </dl> |
---|
1653 | <dl><dt><strong>CharHeight</strong></dt> |
---|
1654 | <dd><tt>See `GetCharHeight`</tt></dd> |
---|
1655 | </dl> |
---|
1656 | <dl><dt><strong>CharWidth</strong></dt> |
---|
1657 | <dd><tt>See `GetCharWidth`</tt></dd> |
---|
1658 | </dl> |
---|
1659 | <dl><dt><strong>Children</strong></dt> |
---|
1660 | <dd><tt>See `GetChildren`</tt></dd> |
---|
1661 | </dl> |
---|
1662 | <dl><dt><strong>ClientAreaOrigin</strong></dt> |
---|
1663 | <dd><tt>See `GetClientAreaOrigin`</tt></dd> |
---|
1664 | </dl> |
---|
1665 | <dl><dt><strong>ClientRect</strong></dt> |
---|
1666 | <dd><tt>See `GetClientRect` and `SetClientRect`</tt></dd> |
---|
1667 | </dl> |
---|
1668 | <dl><dt><strong>ClientSize</strong></dt> |
---|
1669 | <dd><tt>See `GetClientSize` and `SetClientSize`</tt></dd> |
---|
1670 | </dl> |
---|
1671 | <dl><dt><strong>Constraints</strong></dt> |
---|
1672 | <dd><tt>See `GetConstraints` and `SetConstraints`</tt></dd> |
---|
1673 | </dl> |
---|
1674 | <dl><dt><strong>ContainingSizer</strong></dt> |
---|
1675 | <dd><tt>See `GetContainingSizer` and `SetContainingSizer`</tt></dd> |
---|
1676 | </dl> |
---|
1677 | <dl><dt><strong>Cursor</strong></dt> |
---|
1678 | <dd><tt>See `GetCursor` and `SetCursor`</tt></dd> |
---|
1679 | </dl> |
---|
1680 | <dl><dt><strong>DefaultAttributes</strong></dt> |
---|
1681 | <dd><tt>See `GetDefaultAttributes`</tt></dd> |
---|
1682 | </dl> |
---|
1683 | <dl><dt><strong>DropTarget</strong></dt> |
---|
1684 | <dd><tt>See `GetDropTarget` and `SetDropTarget`</tt></dd> |
---|
1685 | </dl> |
---|
1686 | <dl><dt><strong>EffectiveMinSize</strong></dt> |
---|
1687 | <dd><tt>See `GetEffectiveMinSize`</tt></dd> |
---|
1688 | </dl> |
---|
1689 | <dl><dt><strong>Enabled</strong></dt> |
---|
1690 | <dd><tt>See `IsEnabled` and `Enable`</tt></dd> |
---|
1691 | </dl> |
---|
1692 | <dl><dt><strong>EventHandler</strong></dt> |
---|
1693 | <dd><tt>See `GetEventHandler` and `SetEventHandler`</tt></dd> |
---|
1694 | </dl> |
---|
1695 | <dl><dt><strong>ExtraStyle</strong></dt> |
---|
1696 | <dd><tt>See `GetExtraStyle` and `SetExtraStyle`</tt></dd> |
---|
1697 | </dl> |
---|
1698 | <dl><dt><strong>Font</strong></dt> |
---|
1699 | <dd><tt>See `GetFont` and `SetFont`</tt></dd> |
---|
1700 | </dl> |
---|
1701 | <dl><dt><strong>ForegroundColour</strong></dt> |
---|
1702 | <dd><tt>See `GetForegroundColour` and `SetForegroundColour`</tt></dd> |
---|
1703 | </dl> |
---|
1704 | <dl><dt><strong>GrandParent</strong></dt> |
---|
1705 | <dd><tt>See `GetGrandParent`</tt></dd> |
---|
1706 | </dl> |
---|
1707 | <dl><dt><strong>GtkWidget</strong></dt> |
---|
1708 | <dd><tt>GetGtkWidget(self) -> long<br> |
---|
1709 | <br> |
---|
1710 | On wxGTK returns a pointer to the GtkWidget for this window as a long<br> |
---|
1711 | integer. On the other platforms this method returns zero.</tt></dd> |
---|
1712 | </dl> |
---|
1713 | <dl><dt><strong>Handle</strong></dt> |
---|
1714 | <dd><tt>See `GetHandle`</tt></dd> |
---|
1715 | </dl> |
---|
1716 | <dl><dt><strong>HelpText</strong></dt> |
---|
1717 | <dd><tt>See `GetHelpText` and `SetHelpText`</tt></dd> |
---|
1718 | </dl> |
---|
1719 | <dl><dt><strong>Id</strong></dt> |
---|
1720 | <dd><tt>See `GetId` and `SetId`</tt></dd> |
---|
1721 | </dl> |
---|
1722 | <dl><dt><strong>Label</strong></dt> |
---|
1723 | <dd><tt>See `GetLabel` and `SetLabel`</tt></dd> |
---|
1724 | </dl> |
---|
1725 | <dl><dt><strong>LayoutDirection</strong></dt> |
---|
1726 | <dd><tt>See `GetLayoutDirection` and `SetLayoutDirection`</tt></dd> |
---|
1727 | </dl> |
---|
1728 | <dl><dt><strong>MaxHeight</strong></dt> |
---|
1729 | <dd><tt>See `GetMaxHeight`</tt></dd> |
---|
1730 | </dl> |
---|
1731 | <dl><dt><strong>MaxSize</strong></dt> |
---|
1732 | <dd><tt>See `GetMaxSize` and `SetMaxSize`</tt></dd> |
---|
1733 | </dl> |
---|
1734 | <dl><dt><strong>MaxWidth</strong></dt> |
---|
1735 | <dd><tt>See `GetMaxWidth`</tt></dd> |
---|
1736 | </dl> |
---|
1737 | <dl><dt><strong>MinHeight</strong></dt> |
---|
1738 | <dd><tt>See `GetMinHeight`</tt></dd> |
---|
1739 | </dl> |
---|
1740 | <dl><dt><strong>MinSize</strong></dt> |
---|
1741 | <dd><tt>See `GetMinSize` and `SetMinSize`</tt></dd> |
---|
1742 | </dl> |
---|
1743 | <dl><dt><strong>MinWidth</strong></dt> |
---|
1744 | <dd><tt>See `GetMinWidth`</tt></dd> |
---|
1745 | </dl> |
---|
1746 | <dl><dt><strong>Name</strong></dt> |
---|
1747 | <dd><tt>See `GetName` and `SetName`</tt></dd> |
---|
1748 | </dl> |
---|
1749 | <dl><dt><strong>Parent</strong></dt> |
---|
1750 | <dd><tt>See `GetParent`</tt></dd> |
---|
1751 | </dl> |
---|
1752 | <dl><dt><strong>Position</strong></dt> |
---|
1753 | <dd><tt>See `GetPosition` and `SetPosition`</tt></dd> |
---|
1754 | </dl> |
---|
1755 | <dl><dt><strong>Rect</strong></dt> |
---|
1756 | <dd><tt>See `GetRect` and `SetRect`</tt></dd> |
---|
1757 | </dl> |
---|
1758 | <dl><dt><strong>ScreenPosition</strong></dt> |
---|
1759 | <dd><tt>See `GetScreenPosition`</tt></dd> |
---|
1760 | </dl> |
---|
1761 | <dl><dt><strong>ScreenRect</strong></dt> |
---|
1762 | <dd><tt>See `GetScreenRect`</tt></dd> |
---|
1763 | </dl> |
---|
1764 | <dl><dt><strong>Shown</strong></dt> |
---|
1765 | <dd><tt>See `IsShown` and `Show`</tt></dd> |
---|
1766 | </dl> |
---|
1767 | <dl><dt><strong>Size</strong></dt> |
---|
1768 | <dd><tt>See `GetSize` and `SetSize`</tt></dd> |
---|
1769 | </dl> |
---|
1770 | <dl><dt><strong>Sizer</strong></dt> |
---|
1771 | <dd><tt>See `GetSizer` and `SetSizer`</tt></dd> |
---|
1772 | </dl> |
---|
1773 | <dl><dt><strong>ThemeEnabled</strong></dt> |
---|
1774 | <dd><tt>See `GetThemeEnabled` and `SetThemeEnabled`</tt></dd> |
---|
1775 | </dl> |
---|
1776 | <dl><dt><strong>ToolTip</strong></dt> |
---|
1777 | <dd><tt>See `GetToolTip` and `SetToolTip`</tt></dd> |
---|
1778 | </dl> |
---|
1779 | <dl><dt><strong>TopLevel</strong></dt> |
---|
1780 | <dd><tt>See `IsTopLevel`</tt></dd> |
---|
1781 | </dl> |
---|
1782 | <dl><dt><strong>TopLevelParent</strong></dt> |
---|
1783 | <dd><tt>See `GetTopLevelParent`</tt></dd> |
---|
1784 | </dl> |
---|
1785 | <dl><dt><strong>UpdateClientRect</strong></dt> |
---|
1786 | <dd><tt>See `GetUpdateClientRect`</tt></dd> |
---|
1787 | </dl> |
---|
1788 | <dl><dt><strong>UpdateRegion</strong></dt> |
---|
1789 | <dd><tt>See `GetUpdateRegion`</tt></dd> |
---|
1790 | </dl> |
---|
1791 | <dl><dt><strong>Validator</strong></dt> |
---|
1792 | <dd><tt>See `GetValidator` and `SetValidator`</tt></dd> |
---|
1793 | </dl> |
---|
1794 | <dl><dt><strong>VirtualSize</strong></dt> |
---|
1795 | <dd><tt>See `GetVirtualSize` and `SetVirtualSize`</tt></dd> |
---|
1796 | </dl> |
---|
1797 | <dl><dt><strong>WindowStyle</strong></dt> |
---|
1798 | <dd><tt>See `GetWindowStyle` and `SetWindowStyle`</tt></dd> |
---|
1799 | </dl> |
---|
1800 | <dl><dt><strong>WindowStyleFlag</strong></dt> |
---|
1801 | <dd><tt>See `GetWindowStyleFlag` and `SetWindowStyleFlag`</tt></dd> |
---|
1802 | </dl> |
---|
1803 | <dl><dt><strong>WindowVariant</strong></dt> |
---|
1804 | <dd><tt>See `GetWindowVariant` and `SetWindowVariant`</tt></dd> |
---|
1805 | </dl> |
---|
1806 | <hr> |
---|
1807 | Methods inherited from <a href="wx._core.html#EvtHandler">wx._core.EvtHandler</a>:<br> |
---|
1808 | <dl><dt><a name="Tab-AddPendingEvent"><strong>AddPendingEvent</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-AddPendingEvent">AddPendingEvent</a>(self, Event event)</tt></dd></dl> |
---|
1809 | |
---|
1810 | <dl><dt><a name="Tab-Bind"><strong>Bind</strong></a>(self, event, handler, source<font color="#909090">=None</font>, id<font color="#909090">=-1</font>, id2<font color="#909090">=-1</font>)</dt><dd><tt>Bind an event to an event handler.<br> |
---|
1811 | <br> |
---|
1812 | :param event: One of the EVT_* objects that specifies the<br> |
---|
1813 | type of event to bind,<br> |
---|
1814 | <br> |
---|
1815 | :param handler: A callable object to be invoked when the<br> |
---|
1816 | event is delivered to self. Pass None to<br> |
---|
1817 | disconnect an event handler.<br> |
---|
1818 | <br> |
---|
1819 | :param source: Sometimes the event originates from a<br> |
---|
1820 | different window than self, but you still<br> |
---|
1821 | want to catch it in self. (For example, a<br> |
---|
1822 | button event delivered to a frame.) By<br> |
---|
1823 | passing the source of the event, the event<br> |
---|
1824 | handling system is able to differentiate<br> |
---|
1825 | between the same event type from different<br> |
---|
1826 | controls.<br> |
---|
1827 | <br> |
---|
1828 | :param id: Used to spcify the event source by ID instead<br> |
---|
1829 | of instance.<br> |
---|
1830 | <br> |
---|
1831 | :param id2: Used when it is desirable to bind a handler<br> |
---|
1832 | to a range of IDs, such as with EVT_MENU_RANGE.</tt></dd></dl> |
---|
1833 | |
---|
1834 | <dl><dt><a name="Tab-Connect"><strong>Connect</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Connect">Connect</a>(self, int id, int lastId, int eventType, PyObject func)</tt></dd></dl> |
---|
1835 | |
---|
1836 | <dl><dt><a name="Tab-Disconnect"><strong>Disconnect</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-Disconnect">Disconnect</a>(self, int id, int lastId=-1, EventType eventType=wxEVT_NULL) -> bool</tt></dd></dl> |
---|
1837 | |
---|
1838 | <dl><dt><a name="Tab-GetEvtHandlerEnabled"><strong>GetEvtHandlerEnabled</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetEvtHandlerEnabled">GetEvtHandlerEnabled</a>(self) -> bool</tt></dd></dl> |
---|
1839 | |
---|
1840 | <dl><dt><a name="Tab-GetNextHandler"><strong>GetNextHandler</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetNextHandler">GetNextHandler</a>(self) -> EvtHandler</tt></dd></dl> |
---|
1841 | |
---|
1842 | <dl><dt><a name="Tab-GetPreviousHandler"><strong>GetPreviousHandler</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetPreviousHandler">GetPreviousHandler</a>(self) -> EvtHandler</tt></dd></dl> |
---|
1843 | |
---|
1844 | <dl><dt><a name="Tab-ProcessEvent"><strong>ProcessEvent</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ProcessEvent">ProcessEvent</a>(self, Event event) -> bool</tt></dd></dl> |
---|
1845 | |
---|
1846 | <dl><dt><a name="Tab-ProcessPendingEvents"><strong>ProcessPendingEvents</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-ProcessPendingEvents">ProcessPendingEvents</a>(self)</tt></dd></dl> |
---|
1847 | |
---|
1848 | <dl><dt><a name="Tab-SetEvtHandlerEnabled"><strong>SetEvtHandlerEnabled</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetEvtHandlerEnabled">SetEvtHandlerEnabled</a>(self, bool enabled)</tt></dd></dl> |
---|
1849 | |
---|
1850 | <dl><dt><a name="Tab-SetNextHandler"><strong>SetNextHandler</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetNextHandler">SetNextHandler</a>(self, EvtHandler handler)</tt></dd></dl> |
---|
1851 | |
---|
1852 | <dl><dt><a name="Tab-SetPreviousHandler"><strong>SetPreviousHandler</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-SetPreviousHandler">SetPreviousHandler</a>(self, EvtHandler handler)</tt></dd></dl> |
---|
1853 | |
---|
1854 | <dl><dt><a name="Tab-Unbind"><strong>Unbind</strong></a>(self, event, source<font color="#909090">=None</font>, id<font color="#909090">=-1</font>, id2<font color="#909090">=-1</font>)</dt><dd><tt>Disconencts the event handler binding for event from self.<br> |
---|
1855 | Returns True if successful.</tt></dd></dl> |
---|
1856 | |
---|
1857 | <hr> |
---|
1858 | Data descriptors inherited from <a href="wx._core.html#EvtHandler">wx._core.EvtHandler</a>:<br> |
---|
1859 | <dl><dt><strong>EvtHandlerEnabled</strong></dt> |
---|
1860 | <dd><tt>See `GetEvtHandlerEnabled` and `SetEvtHandlerEnabled`</tt></dd> |
---|
1861 | </dl> |
---|
1862 | <dl><dt><strong>NextHandler</strong></dt> |
---|
1863 | <dd><tt>See `GetNextHandler` and `SetNextHandler`</tt></dd> |
---|
1864 | </dl> |
---|
1865 | <dl><dt><strong>PreviousHandler</strong></dt> |
---|
1866 | <dd><tt>See `GetPreviousHandler` and `SetPreviousHandler`</tt></dd> |
---|
1867 | </dl> |
---|
1868 | <hr> |
---|
1869 | Methods inherited from <a href="wx._core.html#Object">wx._core.Object</a>:<br> |
---|
1870 | <dl><dt><a name="Tab-GetClassName"><strong>GetClassName</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-GetClassName">GetClassName</a>(self) -> String<br> |
---|
1871 | <br> |
---|
1872 | Returns the class name of the C++ class using wxRTTI.</tt></dd></dl> |
---|
1873 | |
---|
1874 | <dl><dt><a name="Tab-IsSameAs"><strong>IsSameAs</strong></a>(*args, **kwargs)</dt><dd><tt><a href="#Tab-IsSameAs">IsSameAs</a>(self, Object p) -> bool<br> |
---|
1875 | <br> |
---|
1876 | For wx.Objects that use C++ reference counting internally, this method<br> |
---|
1877 | can be used to determine if two objects are referencing the same data<br> |
---|
1878 | object.</tt></dd></dl> |
---|
1879 | |
---|
1880 | <hr> |
---|
1881 | Data descriptors inherited from <a href="wx._core.html#Object">wx._core.Object</a>:<br> |
---|
1882 | <dl><dt><strong>ClassName</strong></dt> |
---|
1883 | <dd><tt>See `GetClassName`</tt></dd> |
---|
1884 | </dl> |
---|
1885 | <dl><dt><strong>__dict__</strong></dt> |
---|
1886 | <dd><tt>dictionary for instance variables (if defined)</tt></dd> |
---|
1887 | </dl> |
---|
1888 | <dl><dt><strong>__weakref__</strong></dt> |
---|
1889 | <dd><tt>list of weak references to the object (if defined)</tt></dd> |
---|
1890 | </dl> |
---|
1891 | </td></tr></table></td></tr></table><p> |
---|
1892 | <table width="100%" cellspacing=0 cellpadding=2 border=0 summary="section"> |
---|
1893 | <tr bgcolor="#55aa55"> |
---|
1894 | <td colspan=3 valign=bottom> <br> |
---|
1895 | <font color="#ffffff" face="helvetica, arial"><big><strong>Data</strong></big></font></td></tr> |
---|
1896 | |
---|
1897 | <tr><td bgcolor="#55aa55"><tt> </tt></td><td> </td> |
---|
1898 | <td width="100%"><strong>wxID_TAB</strong> = 112</td></tr></table> |
---|
1899 | </body></html> |
---|