]>
Commit | Line | Data |
---|---|---|
1bd55598 | 1 | # This file was created automatically by SWIG 1.3.29. |
d55e5bfc RD |
2 | # Don't modify this file, modify the SWIG interface instead. |
3 | ||
4 | import _windows_ | |
1bd55598 RD |
5 | import new |
6 | new_instancemethod = new.instancemethod | |
36ed4f51 | 7 | def _swig_setattr_nondynamic(self,class_type,name,value,static=1): |
1bd55598 | 8 | if (name == "thisown"): return self.this.own(value) |
36ed4f51 | 9 | if (name == "this"): |
1bd55598 RD |
10 | if type(value).__name__ == 'PySwigObject': |
11 | self.__dict__[name] = value | |
36ed4f51 RD |
12 | return |
13 | method = class_type.__swig_setmethods__.get(name,None) | |
14 | if method: return method(self,value) | |
1bd55598 | 15 | if (not static) or hasattr(self,name): |
36ed4f51 RD |
16 | self.__dict__[name] = value |
17 | else: | |
18 | raise AttributeError("You cannot add attributes to %s" % self) | |
19 | ||
20 | def _swig_setattr(self,class_type,name,value): | |
21 | return _swig_setattr_nondynamic(self,class_type,name,value,0) | |
22 | ||
23 | def _swig_getattr(self,class_type,name): | |
1bd55598 | 24 | if (name == "thisown"): return self.this.own() |
36ed4f51 RD |
25 | method = class_type.__swig_getmethods__.get(name,None) |
26 | if method: return method(self) | |
27 | raise AttributeError,name | |
28 | ||
1bd55598 RD |
29 | def _swig_repr(self): |
30 | try: strthis = "proxy of " + self.this.__repr__() | |
31 | except: strthis = "" | |
32 | return "<%s.%s; %s >" % (self.__class__.__module__, self.__class__.__name__, strthis,) | |
33 | ||
36ed4f51 RD |
34 | import types |
35 | try: | |
36 | _object = types.ObjectType | |
37 | _newclass = 1 | |
38 | except AttributeError: | |
39 | class _object : pass | |
40 | _newclass = 0 | |
41 | del types | |
42 | ||
43 | ||
44 | def _swig_setattr_nondynamic_method(set): | |
45 | def set_attr(self,name,value): | |
1bd55598 RD |
46 | if (name == "thisown"): return self.this.own(value) |
47 | if hasattr(self,name) or (name == "this"): | |
36ed4f51 RD |
48 | set(self,name,value) |
49 | else: | |
50 | raise AttributeError("You cannot add attributes to %s" % self) | |
51 | return set_attr | |
52 | ||
53 | ||
d55e5bfc RD |
54 | import _core |
55 | wx = _core | |
d55e5bfc RD |
56 | #--------------------------------------------------------------------------- |
57 | ||
58 | class Panel(_core.Window): | |
36ed4f51 | 59 | """Proxy of C++ Panel class""" |
1bd55598 RD |
60 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
61 | __repr__ = _swig_repr | |
62 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
63 | """ |
64 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
65 | Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, | |
66 | String name=PanelNameStr) -> Panel | |
67 | """ | |
1bd55598 | 68 | _windows_.Panel_swiginit(self,_windows_.new_Panel(*args, **kwargs)) |
d55e5bfc RD |
69 | self._setOORInfo(self) |
70 | ||
71 | def Create(*args, **kwargs): | |
72 | """ | |
73 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
74 | Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER, | |
75 | String name=PanelNameStr) -> bool | |
01ac03ba RD |
76 | |
77 | Create the GUI part of the Window for 2-phase creation mode. | |
d55e5bfc RD |
78 | """ |
79 | return _windows_.Panel_Create(*args, **kwargs) | |
80 | ||
5cbf236d RD |
81 | def SetFocusIgnoringChildren(*args, **kwargs): |
82 | """ | |
83 | SetFocusIgnoringChildren(self) | |
84 | ||
85 | In contrast to `SetFocus` (see above) this will set the focus to the | |
86 | panel even of there are child windows in the panel. This is only | |
87 | rarely needed. | |
88 | """ | |
89 | return _windows_.Panel_SetFocusIgnoringChildren(*args, **kwargs) | |
90 | ||
f20a2e1f RD |
91 | def GetClassDefaultAttributes(*args, **kwargs): |
92 | """ | |
93 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
94 | ||
15817c7e RD |
95 | Get the default attributes for this class. This is useful if you want |
96 | to use the same font or colour in your own control as in a standard | |
97 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
98 | colours or fonts which might look completely out of place on the |
99 | user's system, especially if it uses themes. | |
f20a2e1f RD |
100 | |
101 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 102 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
103 | the returned font. See `wx.Window.SetWindowVariant` for more about |
104 | this. | |
f20a2e1f RD |
105 | """ |
106 | return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs) | |
107 | ||
108 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 109 | _windows_.Panel_swigregister(Panel) |
d55e5bfc RD |
110 | |
111 | def PrePanel(*args, **kwargs): | |
112 | """PrePanel() -> Panel""" | |
113 | val = _windows_.new_PrePanel(*args, **kwargs) | |
d55e5bfc RD |
114 | return val |
115 | ||
f20a2e1f | 116 | def Panel_GetClassDefaultAttributes(*args, **kwargs): |
1bd55598 | 117 | """ |
f20a2e1f RD |
118 | Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
119 | ||
15817c7e RD |
120 | Get the default attributes for this class. This is useful if you want |
121 | to use the same font or colour in your own control as in a standard | |
122 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
123 | colours or fonts which might look completely out of place on the |
124 | user's system, especially if it uses themes. | |
f20a2e1f RD |
125 | |
126 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 127 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
128 | the returned font. See `wx.Window.SetWindowVariant` for more about |
129 | this. | |
f20a2e1f | 130 | """ |
1bd55598 | 131 | return _windows_.Panel_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 132 | |
d55e5bfc RD |
133 | #--------------------------------------------------------------------------- |
134 | ||
135 | class ScrolledWindow(Panel): | |
36ed4f51 | 136 | """Proxy of C++ ScrolledWindow class""" |
1bd55598 RD |
137 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
138 | __repr__ = _swig_repr | |
139 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
140 | """ |
141 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
142 | Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, | |
143 | String name=PanelNameStr) -> ScrolledWindow | |
144 | """ | |
1bd55598 | 145 | _windows_.ScrolledWindow_swiginit(self,_windows_.new_ScrolledWindow(*args, **kwargs)) |
d55e5bfc RD |
146 | self._setOORInfo(self) |
147 | ||
148 | def Create(*args, **kwargs): | |
149 | """ | |
150 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
151 | Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL, | |
152 | String name=PanelNameStr) -> bool | |
01ac03ba RD |
153 | |
154 | Create the GUI part of the Window for 2-phase creation mode. | |
d55e5bfc RD |
155 | """ |
156 | return _windows_.ScrolledWindow_Create(*args, **kwargs) | |
157 | ||
158 | def SetScrollbars(*args, **kwargs): | |
159 | """ | |
160 | SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX, | |
161 | int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False) | |
162 | """ | |
163 | return _windows_.ScrolledWindow_SetScrollbars(*args, **kwargs) | |
164 | ||
165 | def Scroll(*args, **kwargs): | |
166 | """Scroll(self, int x, int y)""" | |
167 | return _windows_.ScrolledWindow_Scroll(*args, **kwargs) | |
168 | ||
169 | def GetScrollPageSize(*args, **kwargs): | |
170 | """GetScrollPageSize(self, int orient) -> int""" | |
171 | return _windows_.ScrolledWindow_GetScrollPageSize(*args, **kwargs) | |
172 | ||
173 | def SetScrollPageSize(*args, **kwargs): | |
174 | """SetScrollPageSize(self, int orient, int pageSize)""" | |
175 | return _windows_.ScrolledWindow_SetScrollPageSize(*args, **kwargs) | |
176 | ||
177 | def SetScrollRate(*args, **kwargs): | |
178 | """SetScrollRate(self, int xstep, int ystep)""" | |
179 | return _windows_.ScrolledWindow_SetScrollRate(*args, **kwargs) | |
180 | ||
181 | def GetScrollPixelsPerUnit(*args, **kwargs): | |
a001823c RD |
182 | """ |
183 | GetScrollPixelsPerUnit() -> (xUnit, yUnit) | |
184 | ||
185 | Get the size of one logical unit in physical units. | |
186 | """ | |
d55e5bfc RD |
187 | return _windows_.ScrolledWindow_GetScrollPixelsPerUnit(*args, **kwargs) |
188 | ||
189 | def EnableScrolling(*args, **kwargs): | |
190 | """EnableScrolling(self, bool x_scrolling, bool y_scrolling)""" | |
191 | return _windows_.ScrolledWindow_EnableScrolling(*args, **kwargs) | |
192 | ||
193 | def GetViewStart(*args, **kwargs): | |
a001823c RD |
194 | """ |
195 | GetViewStart() -> (x,y) | |
196 | ||
197 | Get the view start | |
198 | """ | |
d55e5bfc RD |
199 | return _windows_.ScrolledWindow_GetViewStart(*args, **kwargs) |
200 | ||
201 | def SetScale(*args, **kwargs): | |
202 | """SetScale(self, double xs, double ys)""" | |
203 | return _windows_.ScrolledWindow_SetScale(*args, **kwargs) | |
204 | ||
205 | def GetScaleX(*args, **kwargs): | |
206 | """GetScaleX(self) -> double""" | |
207 | return _windows_.ScrolledWindow_GetScaleX(*args, **kwargs) | |
208 | ||
209 | def GetScaleY(*args, **kwargs): | |
210 | """GetScaleY(self) -> double""" | |
211 | return _windows_.ScrolledWindow_GetScaleY(*args, **kwargs) | |
212 | ||
213 | def CalcScrolledPosition(*args): | |
214 | """ | |
215 | CalcScrolledPosition(self, Point pt) -> Point | |
216 | CalcScrolledPosition(int x, int y) -> (sx, sy) | |
217 | ||
218 | Translate between scrolled and unscrolled coordinates. | |
219 | """ | |
220 | return _windows_.ScrolledWindow_CalcScrolledPosition(*args) | |
221 | ||
222 | def CalcUnscrolledPosition(*args): | |
223 | """ | |
224 | CalcUnscrolledPosition(self, Point pt) -> Point | |
225 | CalcUnscrolledPosition(int x, int y) -> (ux, uy) | |
226 | ||
227 | Translate between scrolled and unscrolled coordinates. | |
228 | """ | |
229 | return _windows_.ScrolledWindow_CalcUnscrolledPosition(*args) | |
230 | ||
231 | def AdjustScrollbars(*args, **kwargs): | |
232 | """AdjustScrollbars(self)""" | |
233 | return _windows_.ScrolledWindow_AdjustScrollbars(*args, **kwargs) | |
234 | ||
235 | def CalcScrollInc(*args, **kwargs): | |
236 | """CalcScrollInc(self, ScrollWinEvent event) -> int""" | |
237 | return _windows_.ScrolledWindow_CalcScrollInc(*args, **kwargs) | |
238 | ||
239 | def SetTargetWindow(*args, **kwargs): | |
240 | """SetTargetWindow(self, Window target)""" | |
241 | return _windows_.ScrolledWindow_SetTargetWindow(*args, **kwargs) | |
242 | ||
243 | def GetTargetWindow(*args, **kwargs): | |
244 | """GetTargetWindow(self) -> Window""" | |
245 | return _windows_.ScrolledWindow_GetTargetWindow(*args, **kwargs) | |
246 | ||
247 | def SetTargetRect(*args, **kwargs): | |
248 | """SetTargetRect(self, Rect rect)""" | |
249 | return _windows_.ScrolledWindow_SetTargetRect(*args, **kwargs) | |
250 | ||
251 | def GetTargetRect(*args, **kwargs): | |
252 | """GetTargetRect(self) -> Rect""" | |
253 | return _windows_.ScrolledWindow_GetTargetRect(*args, **kwargs) | |
254 | ||
f5b96ee1 RD |
255 | def DoPrepareDC(*args, **kwargs): |
256 | """ | |
257 | DoPrepareDC(self, DC dc) | |
258 | ||
259 | Normally what is called by `PrepareDC`. | |
260 | """ | |
261 | return _windows_.ScrolledWindow_DoPrepareDC(*args, **kwargs) | |
262 | ||
f20a2e1f RD |
263 | def GetClassDefaultAttributes(*args, **kwargs): |
264 | """ | |
265 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
266 | ||
15817c7e RD |
267 | Get the default attributes for this class. This is useful if you want |
268 | to use the same font or colour in your own control as in a standard | |
269 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
270 | colours or fonts which might look completely out of place on the |
271 | user's system, especially if it uses themes. | |
f20a2e1f RD |
272 | |
273 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 274 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
275 | the returned font. See `wx.Window.SetWindowVariant` for more about |
276 | this. | |
f20a2e1f RD |
277 | """ |
278 | return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs) | |
279 | ||
280 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 281 | _windows_.ScrolledWindow_swigregister(ScrolledWindow) |
d55e5bfc RD |
282 | |
283 | def PreScrolledWindow(*args, **kwargs): | |
284 | """PreScrolledWindow() -> ScrolledWindow""" | |
285 | val = _windows_.new_PreScrolledWindow(*args, **kwargs) | |
d55e5bfc RD |
286 | return val |
287 | ||
f20a2e1f | 288 | def ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs): |
1bd55598 | 289 | """ |
f20a2e1f RD |
290 | ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
291 | ||
15817c7e RD |
292 | Get the default attributes for this class. This is useful if you want |
293 | to use the same font or colour in your own control as in a standard | |
294 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
295 | colours or fonts which might look completely out of place on the |
296 | user's system, especially if it uses themes. | |
f20a2e1f RD |
297 | |
298 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 299 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
300 | the returned font. See `wx.Window.SetWindowVariant` for more about |
301 | this. | |
f20a2e1f | 302 | """ |
1bd55598 | 303 | return _windows_.ScrolledWindow_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 304 | |
d55e5bfc RD |
305 | #--------------------------------------------------------------------------- |
306 | ||
307 | STAY_ON_TOP = _windows_.STAY_ON_TOP | |
308 | ICONIZE = _windows_.ICONIZE | |
309 | MINIMIZE = _windows_.MINIMIZE | |
310 | MAXIMIZE = _windows_.MAXIMIZE | |
311 | CLOSE_BOX = _windows_.CLOSE_BOX | |
312 | THICK_FRAME = _windows_.THICK_FRAME | |
313 | SYSTEM_MENU = _windows_.SYSTEM_MENU | |
314 | MINIMIZE_BOX = _windows_.MINIMIZE_BOX | |
315 | MAXIMIZE_BOX = _windows_.MAXIMIZE_BOX | |
316 | TINY_CAPTION_HORIZ = _windows_.TINY_CAPTION_HORIZ | |
317 | TINY_CAPTION_VERT = _windows_.TINY_CAPTION_VERT | |
318 | RESIZE_BOX = _windows_.RESIZE_BOX | |
319 | RESIZE_BORDER = _windows_.RESIZE_BORDER | |
320 | DIALOG_NO_PARENT = _windows_.DIALOG_NO_PARENT | |
321 | DEFAULT_FRAME_STYLE = _windows_.DEFAULT_FRAME_STYLE | |
322 | DEFAULT_DIALOG_STYLE = _windows_.DEFAULT_DIALOG_STYLE | |
323 | FRAME_TOOL_WINDOW = _windows_.FRAME_TOOL_WINDOW | |
324 | FRAME_FLOAT_ON_PARENT = _windows_.FRAME_FLOAT_ON_PARENT | |
325 | FRAME_NO_WINDOW_MENU = _windows_.FRAME_NO_WINDOW_MENU | |
326 | FRAME_NO_TASKBAR = _windows_.FRAME_NO_TASKBAR | |
327 | FRAME_SHAPED = _windows_.FRAME_SHAPED | |
b411df4a | 328 | FRAME_DRAWER = _windows_.FRAME_DRAWER |
f491ed97 RD |
329 | FRAME_EX_METAL = _windows_.FRAME_EX_METAL |
330 | DIALOG_EX_METAL = _windows_.DIALOG_EX_METAL | |
fc46b7f3 | 331 | WS_EX_CONTEXTHELP = _windows_.WS_EX_CONTEXTHELP |
d55e5bfc RD |
332 | DIALOG_MODAL = _windows_.DIALOG_MODAL |
333 | DIALOG_MODELESS = _windows_.DIALOG_MODELESS | |
334 | USER_COLOURS = _windows_.USER_COLOURS | |
335 | NO_3D = _windows_.NO_3D | |
fc46b7f3 RD |
336 | FRAME_EX_CONTEXTHELP = _windows_.FRAME_EX_CONTEXTHELP |
337 | DIALOG_EX_CONTEXTHELP = _windows_.DIALOG_EX_CONTEXTHELP | |
d55e5bfc RD |
338 | FULLSCREEN_NOMENUBAR = _windows_.FULLSCREEN_NOMENUBAR |
339 | FULLSCREEN_NOTOOLBAR = _windows_.FULLSCREEN_NOTOOLBAR | |
340 | FULLSCREEN_NOSTATUSBAR = _windows_.FULLSCREEN_NOSTATUSBAR | |
341 | FULLSCREEN_NOBORDER = _windows_.FULLSCREEN_NOBORDER | |
342 | FULLSCREEN_NOCAPTION = _windows_.FULLSCREEN_NOCAPTION | |
343 | FULLSCREEN_ALL = _windows_.FULLSCREEN_ALL | |
344 | TOPLEVEL_EX_DIALOG = _windows_.TOPLEVEL_EX_DIALOG | |
c370783e RD |
345 | USER_ATTENTION_INFO = _windows_.USER_ATTENTION_INFO |
346 | USER_ATTENTION_ERROR = _windows_.USER_ATTENTION_ERROR | |
d55e5bfc | 347 | class TopLevelWindow(_core.Window): |
36ed4f51 | 348 | """Proxy of C++ TopLevelWindow class""" |
1bd55598 RD |
349 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
350 | def __init__(self): raise AttributeError, "No constructor defined" | |
351 | __repr__ = _swig_repr | |
d55e5bfc RD |
352 | def Maximize(*args, **kwargs): |
353 | """Maximize(self, bool maximize=True)""" | |
354 | return _windows_.TopLevelWindow_Maximize(*args, **kwargs) | |
355 | ||
356 | def Restore(*args, **kwargs): | |
357 | """Restore(self)""" | |
358 | return _windows_.TopLevelWindow_Restore(*args, **kwargs) | |
359 | ||
360 | def Iconize(*args, **kwargs): | |
361 | """Iconize(self, bool iconize=True)""" | |
362 | return _windows_.TopLevelWindow_Iconize(*args, **kwargs) | |
363 | ||
364 | def IsMaximized(*args, **kwargs): | |
365 | """IsMaximized(self) -> bool""" | |
366 | return _windows_.TopLevelWindow_IsMaximized(*args, **kwargs) | |
367 | ||
2131d850 RD |
368 | def IsAlwaysMaximized(*args, **kwargs): |
369 | """IsAlwaysMaximized(self) -> bool""" | |
370 | return _windows_.TopLevelWindow_IsAlwaysMaximized(*args, **kwargs) | |
371 | ||
d55e5bfc RD |
372 | def IsIconized(*args, **kwargs): |
373 | """IsIconized(self) -> bool""" | |
374 | return _windows_.TopLevelWindow_IsIconized(*args, **kwargs) | |
375 | ||
376 | def GetIcon(*args, **kwargs): | |
377 | """GetIcon(self) -> Icon""" | |
378 | return _windows_.TopLevelWindow_GetIcon(*args, **kwargs) | |
379 | ||
380 | def SetIcon(*args, **kwargs): | |
381 | """SetIcon(self, Icon icon)""" | |
382 | return _windows_.TopLevelWindow_SetIcon(*args, **kwargs) | |
383 | ||
384 | def SetIcons(*args, **kwargs): | |
385 | """SetIcons(self, wxIconBundle icons)""" | |
386 | return _windows_.TopLevelWindow_SetIcons(*args, **kwargs) | |
387 | ||
388 | def ShowFullScreen(*args, **kwargs): | |
389 | """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool""" | |
390 | return _windows_.TopLevelWindow_ShowFullScreen(*args, **kwargs) | |
391 | ||
392 | def IsFullScreen(*args, **kwargs): | |
393 | """IsFullScreen(self) -> bool""" | |
394 | return _windows_.TopLevelWindow_IsFullScreen(*args, **kwargs) | |
395 | ||
396 | def SetTitle(*args, **kwargs): | |
943e8dfd | 397 | """SetTitle(self, String title)""" |
d55e5bfc RD |
398 | return _windows_.TopLevelWindow_SetTitle(*args, **kwargs) |
399 | ||
400 | def GetTitle(*args, **kwargs): | |
943e8dfd | 401 | """GetTitle(self) -> String""" |
d55e5bfc RD |
402 | return _windows_.TopLevelWindow_GetTitle(*args, **kwargs) |
403 | ||
404 | def SetShape(*args, **kwargs): | |
405 | """SetShape(self, Region region) -> bool""" | |
406 | return _windows_.TopLevelWindow_SetShape(*args, **kwargs) | |
407 | ||
c370783e RD |
408 | def RequestUserAttention(*args, **kwargs): |
409 | """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)""" | |
410 | return _windows_.TopLevelWindow_RequestUserAttention(*args, **kwargs) | |
411 | ||
5e483524 RD |
412 | def IsActive(*args, **kwargs): |
413 | """IsActive(self) -> bool""" | |
414 | return _windows_.TopLevelWindow_IsActive(*args, **kwargs) | |
415 | ||
d55e5bfc RD |
416 | def MacSetMetalAppearance(*args, **kwargs): |
417 | """MacSetMetalAppearance(self, bool on)""" | |
418 | return _windows_.TopLevelWindow_MacSetMetalAppearance(*args, **kwargs) | |
419 | ||
420 | def MacGetMetalAppearance(*args, **kwargs): | |
421 | """MacGetMetalAppearance(self) -> bool""" | |
422 | return _windows_.TopLevelWindow_MacGetMetalAppearance(*args, **kwargs) | |
423 | ||
b1fcee84 RD |
424 | def CenterOnScreen(*args, **kwargs): |
425 | """ | |
426 | CenterOnScreen(self, int dir=BOTH) | |
427 | ||
428 | Center the window on screen | |
429 | """ | |
430 | return _windows_.TopLevelWindow_CenterOnScreen(*args, **kwargs) | |
431 | ||
432 | CentreOnScreen = CenterOnScreen | |
10044bf1 RD |
433 | def EnableCloseButton(*args, **kwargs): |
434 | """EnableCloseButton(self, bool enable=True) -> bool""" | |
435 | return _windows_.TopLevelWindow_EnableCloseButton(*args, **kwargs) | |
436 | ||
1eeb270e RD |
437 | def GetDefaultItem(*args, **kwargs): |
438 | """ | |
439 | GetDefaultItem(self) -> Window | |
440 | ||
441 | Get the default child of this parent, i.e. the one which is activated | |
442 | by pressing <Enter> such as the OK button on a wx.Dialog. | |
443 | """ | |
444 | return _windows_.TopLevelWindow_GetDefaultItem(*args, **kwargs) | |
445 | ||
446 | def SetDefaultItem(*args, **kwargs): | |
447 | """ | |
448 | SetDefaultItem(self, Window child) -> Window | |
449 | ||
450 | Set this child as default, return the old default. | |
451 | """ | |
452 | return _windows_.TopLevelWindow_SetDefaultItem(*args, **kwargs) | |
453 | ||
454 | def SetTmpDefaultItem(*args, **kwargs): | |
455 | """ | |
456 | SetTmpDefaultItem(self, Window win) | |
457 | ||
458 | Set this child as temporary default | |
459 | """ | |
460 | return _windows_.TopLevelWindow_SetTmpDefaultItem(*args, **kwargs) | |
461 | ||
462 | def GetTmpDefaultItem(*args, **kwargs): | |
463 | """ | |
464 | GetTmpDefaultItem(self) -> Window | |
465 | ||
466 | Return the temporary default item, which can be None. | |
467 | """ | |
468 | return _windows_.TopLevelWindow_GetTmpDefaultItem(*args, **kwargs) | |
469 | ||
2131d850 | 470 | _windows_.TopLevelWindow_swigregister(TopLevelWindow) |
d55e5bfc RD |
471 | cvar = _windows_.cvar |
472 | FrameNameStr = cvar.FrameNameStr | |
473 | DialogNameStr = cvar.DialogNameStr | |
474 | StatusLineNameStr = cvar.StatusLineNameStr | |
475 | ToolBarNameStr = cvar.ToolBarNameStr | |
476 | ||
477 | #--------------------------------------------------------------------------- | |
478 | ||
479 | class Frame(TopLevelWindow): | |
36ed4f51 | 480 | """Proxy of C++ Frame class""" |
1bd55598 RD |
481 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
482 | __repr__ = _swig_repr | |
483 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 484 | """ |
bfddbb17 RD |
485 | __init__(self, Window parent, int id=-1, String title=EmptyString, |
486 | Point pos=DefaultPosition, Size size=DefaultSize, | |
487 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame | |
d55e5bfc | 488 | """ |
1bd55598 | 489 | _windows_.Frame_swiginit(self,_windows_.new_Frame(*args, **kwargs)) |
d55e5bfc RD |
490 | self._setOORInfo(self) |
491 | ||
492 | def Create(*args, **kwargs): | |
493 | """ | |
bfddbb17 RD |
494 | Create(self, Window parent, int id=-1, String title=EmptyString, |
495 | Point pos=DefaultPosition, Size size=DefaultSize, | |
496 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool | |
d55e5bfc RD |
497 | """ |
498 | return _windows_.Frame_Create(*args, **kwargs) | |
499 | ||
d55e5bfc RD |
500 | def SendSizeEvent(*args, **kwargs): |
501 | """SendSizeEvent(self)""" | |
502 | return _windows_.Frame_SendSizeEvent(*args, **kwargs) | |
503 | ||
504 | def SetMenuBar(*args, **kwargs): | |
505 | """SetMenuBar(self, MenuBar menubar)""" | |
506 | return _windows_.Frame_SetMenuBar(*args, **kwargs) | |
507 | ||
508 | def GetMenuBar(*args, **kwargs): | |
509 | """GetMenuBar(self) -> MenuBar""" | |
510 | return _windows_.Frame_GetMenuBar(*args, **kwargs) | |
511 | ||
512 | def ProcessCommand(*args, **kwargs): | |
513 | """ProcessCommand(self, int winid) -> bool""" | |
514 | return _windows_.Frame_ProcessCommand(*args, **kwargs) | |
515 | ||
516 | Command = ProcessCommand | |
517 | def CreateStatusBar(*args, **kwargs): | |
518 | """ | |
a3957d3d RD |
519 | CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0, |
520 | String name=StatusLineNameStr) -> StatusBar | |
d55e5bfc RD |
521 | """ |
522 | return _windows_.Frame_CreateStatusBar(*args, **kwargs) | |
523 | ||
524 | def GetStatusBar(*args, **kwargs): | |
525 | """GetStatusBar(self) -> StatusBar""" | |
526 | return _windows_.Frame_GetStatusBar(*args, **kwargs) | |
527 | ||
528 | def SetStatusBar(*args, **kwargs): | |
529 | """SetStatusBar(self, StatusBar statBar)""" | |
530 | return _windows_.Frame_SetStatusBar(*args, **kwargs) | |
531 | ||
532 | def SetStatusText(*args, **kwargs): | |
533 | """SetStatusText(self, String text, int number=0)""" | |
534 | return _windows_.Frame_SetStatusText(*args, **kwargs) | |
535 | ||
536 | def SetStatusWidths(*args, **kwargs): | |
36ed4f51 | 537 | """SetStatusWidths(self, int widths)""" |
d55e5bfc RD |
538 | return _windows_.Frame_SetStatusWidths(*args, **kwargs) |
539 | ||
540 | def PushStatusText(*args, **kwargs): | |
541 | """PushStatusText(self, String text, int number=0)""" | |
542 | return _windows_.Frame_PushStatusText(*args, **kwargs) | |
543 | ||
544 | def PopStatusText(*args, **kwargs): | |
545 | """PopStatusText(self, int number=0)""" | |
546 | return _windows_.Frame_PopStatusText(*args, **kwargs) | |
547 | ||
548 | def SetStatusBarPane(*args, **kwargs): | |
549 | """SetStatusBarPane(self, int n)""" | |
550 | return _windows_.Frame_SetStatusBarPane(*args, **kwargs) | |
551 | ||
552 | def GetStatusBarPane(*args, **kwargs): | |
553 | """GetStatusBarPane(self) -> int""" | |
554 | return _windows_.Frame_GetStatusBarPane(*args, **kwargs) | |
555 | ||
556 | def CreateToolBar(*args, **kwargs): | |
557 | """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar""" | |
558 | return _windows_.Frame_CreateToolBar(*args, **kwargs) | |
559 | ||
560 | def GetToolBar(*args, **kwargs): | |
561 | """GetToolBar(self) -> wxToolBar""" | |
562 | return _windows_.Frame_GetToolBar(*args, **kwargs) | |
563 | ||
564 | def SetToolBar(*args, **kwargs): | |
565 | """SetToolBar(self, wxToolBar toolbar)""" | |
566 | return _windows_.Frame_SetToolBar(*args, **kwargs) | |
567 | ||
568 | def DoGiveHelp(*args, **kwargs): | |
569 | """DoGiveHelp(self, String text, bool show)""" | |
570 | return _windows_.Frame_DoGiveHelp(*args, **kwargs) | |
571 | ||
572 | def DoMenuUpdates(*args, **kwargs): | |
573 | """DoMenuUpdates(self, Menu menu=None)""" | |
574 | return _windows_.Frame_DoMenuUpdates(*args, **kwargs) | |
575 | ||
f20a2e1f RD |
576 | def GetClassDefaultAttributes(*args, **kwargs): |
577 | """ | |
578 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
579 | ||
15817c7e RD |
580 | Get the default attributes for this class. This is useful if you want |
581 | to use the same font or colour in your own control as in a standard | |
582 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
583 | colours or fonts which might look completely out of place on the |
584 | user's system, especially if it uses themes. | |
f20a2e1f RD |
585 | |
586 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 587 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
588 | the returned font. See `wx.Window.SetWindowVariant` for more about |
589 | this. | |
f20a2e1f RD |
590 | """ |
591 | return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs) | |
592 | ||
593 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 594 | _windows_.Frame_swigregister(Frame) |
d55e5bfc RD |
595 | |
596 | def PreFrame(*args, **kwargs): | |
597 | """PreFrame() -> Frame""" | |
598 | val = _windows_.new_PreFrame(*args, **kwargs) | |
d55e5bfc RD |
599 | return val |
600 | ||
f20a2e1f | 601 | def Frame_GetClassDefaultAttributes(*args, **kwargs): |
1bd55598 | 602 | """ |
f20a2e1f RD |
603 | Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
604 | ||
15817c7e RD |
605 | Get the default attributes for this class. This is useful if you want |
606 | to use the same font or colour in your own control as in a standard | |
607 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
608 | colours or fonts which might look completely out of place on the |
609 | user's system, especially if it uses themes. | |
f20a2e1f RD |
610 | |
611 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 612 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
613 | the returned font. See `wx.Window.SetWindowVariant` for more about |
614 | this. | |
f20a2e1f | 615 | """ |
1bd55598 | 616 | return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 617 | |
d55e5bfc RD |
618 | #--------------------------------------------------------------------------- |
619 | ||
620 | class Dialog(TopLevelWindow): | |
36ed4f51 | 621 | """Proxy of C++ Dialog class""" |
1bd55598 RD |
622 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
623 | __repr__ = _swig_repr | |
32fe5131 | 624 | ButtonSizerFlags = _windows_.Dialog_ButtonSizerFlags |
1bd55598 | 625 | def __init__(self, *args, **kwargs): |
d55e5bfc | 626 | """ |
bfddbb17 RD |
627 | __init__(self, Window parent, int id=-1, String title=EmptyString, |
628 | Point pos=DefaultPosition, Size size=DefaultSize, | |
629 | long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog | |
d55e5bfc | 630 | """ |
1bd55598 | 631 | _windows_.Dialog_swiginit(self,_windows_.new_Dialog(*args, **kwargs)) |
d55e5bfc RD |
632 | self._setOORInfo(self) |
633 | ||
634 | def Create(*args, **kwargs): | |
635 | """ | |
bfddbb17 RD |
636 | Create(self, Window parent, int id=-1, String title=EmptyString, |
637 | Point pos=DefaultPosition, Size size=DefaultSize, | |
638 | long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool | |
d55e5bfc RD |
639 | """ |
640 | return _windows_.Dialog_Create(*args, **kwargs) | |
641 | ||
642 | def SetReturnCode(*args, **kwargs): | |
643 | """SetReturnCode(self, int returnCode)""" | |
644 | return _windows_.Dialog_SetReturnCode(*args, **kwargs) | |
645 | ||
646 | def GetReturnCode(*args, **kwargs): | |
647 | """GetReturnCode(self) -> int""" | |
648 | return _windows_.Dialog_GetReturnCode(*args, **kwargs) | |
649 | ||
b1fcee84 RD |
650 | def SetAffirmativeId(*args, **kwargs): |
651 | """SetAffirmativeId(self, int affirmativeId)""" | |
652 | return _windows_.Dialog_SetAffirmativeId(*args, **kwargs) | |
653 | ||
654 | def GetAffirmativeId(*args, **kwargs): | |
655 | """GetAffirmativeId(self) -> int""" | |
656 | return _windows_.Dialog_GetAffirmativeId(*args, **kwargs) | |
657 | ||
658 | def SetEscapeId(*args, **kwargs): | |
659 | """SetEscapeId(self, int escapeId)""" | |
660 | return _windows_.Dialog_SetEscapeId(*args, **kwargs) | |
661 | ||
662 | def GetEscapeId(*args, **kwargs): | |
663 | """GetEscapeId(self) -> int""" | |
664 | return _windows_.Dialog_GetEscapeId(*args, **kwargs) | |
665 | ||
d55e5bfc RD |
666 | def CreateTextSizer(*args, **kwargs): |
667 | """CreateTextSizer(self, String message) -> Sizer""" | |
668 | return _windows_.Dialog_CreateTextSizer(*args, **kwargs) | |
669 | ||
670 | def CreateButtonSizer(*args, **kwargs): | |
32fe5131 | 671 | """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer""" |
d55e5bfc RD |
672 | return _windows_.Dialog_CreateButtonSizer(*args, **kwargs) |
673 | ||
62d32a5f RD |
674 | def CreateStdDialogButtonSizer(*args, **kwargs): |
675 | """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer""" | |
676 | return _windows_.Dialog_CreateStdDialogButtonSizer(*args, **kwargs) | |
677 | ||
d55e5bfc RD |
678 | def IsModal(*args, **kwargs): |
679 | """IsModal(self) -> bool""" | |
680 | return _windows_.Dialog_IsModal(*args, **kwargs) | |
681 | ||
682 | def ShowModal(*args, **kwargs): | |
683 | """ShowModal(self) -> int""" | |
684 | return _windows_.Dialog_ShowModal(*args, **kwargs) | |
685 | ||
686 | def EndModal(*args, **kwargs): | |
687 | """EndModal(self, int retCode)""" | |
688 | return _windows_.Dialog_EndModal(*args, **kwargs) | |
689 | ||
f20a2e1f RD |
690 | def GetClassDefaultAttributes(*args, **kwargs): |
691 | """ | |
692 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
693 | ||
15817c7e RD |
694 | Get the default attributes for this class. This is useful if you want |
695 | to use the same font or colour in your own control as in a standard | |
696 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
697 | colours or fonts which might look completely out of place on the |
698 | user's system, especially if it uses themes. | |
f20a2e1f RD |
699 | |
700 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 701 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
702 | the returned font. See `wx.Window.SetWindowVariant` for more about |
703 | this. | |
f20a2e1f RD |
704 | """ |
705 | return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs) | |
706 | ||
707 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2bf58437 RD |
708 | AffirmativeId = property(GetAffirmativeId,SetAffirmativeId,doc="See `GetAffirmativeId` and `SetAffirmativeId`") |
709 | EscapeId = property(GetEscapeId,SetEscapeId,doc="See `GetEscapeId` and `SetEscapeId`") | |
710 | ReturnCode = property(GetReturnCode,SetReturnCode,doc="See `GetReturnCode` and `SetReturnCode`") | |
2131d850 | 711 | _windows_.Dialog_swigregister(Dialog) |
d55e5bfc RD |
712 | |
713 | def PreDialog(*args, **kwargs): | |
714 | """PreDialog() -> Dialog""" | |
715 | val = _windows_.new_PreDialog(*args, **kwargs) | |
d55e5bfc RD |
716 | return val |
717 | ||
f20a2e1f | 718 | def Dialog_GetClassDefaultAttributes(*args, **kwargs): |
1bd55598 | 719 | """ |
f20a2e1f RD |
720 | Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
721 | ||
15817c7e RD |
722 | Get the default attributes for this class. This is useful if you want |
723 | to use the same font or colour in your own control as in a standard | |
724 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
725 | colours or fonts which might look completely out of place on the |
726 | user's system, especially if it uses themes. | |
f20a2e1f RD |
727 | |
728 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 729 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
730 | the returned font. See `wx.Window.SetWindowVariant` for more about |
731 | this. | |
f20a2e1f | 732 | """ |
1bd55598 | 733 | return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 734 | |
d55e5bfc RD |
735 | #--------------------------------------------------------------------------- |
736 | ||
737 | class MiniFrame(Frame): | |
36ed4f51 | 738 | """Proxy of C++ MiniFrame class""" |
1bd55598 RD |
739 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
740 | __repr__ = _swig_repr | |
741 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 742 | """ |
bfddbb17 RD |
743 | __init__(self, Window parent, int id=-1, String title=EmptyString, |
744 | Point pos=DefaultPosition, Size size=DefaultSize, | |
745 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame | |
d55e5bfc | 746 | """ |
1bd55598 | 747 | _windows_.MiniFrame_swiginit(self,_windows_.new_MiniFrame(*args, **kwargs)) |
d55e5bfc RD |
748 | self._setOORInfo(self) |
749 | ||
750 | def Create(*args, **kwargs): | |
751 | """ | |
bfddbb17 RD |
752 | Create(self, Window parent, int id=-1, String title=EmptyString, |
753 | Point pos=DefaultPosition, Size size=DefaultSize, | |
754 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool | |
d55e5bfc RD |
755 | """ |
756 | return _windows_.MiniFrame_Create(*args, **kwargs) | |
757 | ||
2131d850 | 758 | _windows_.MiniFrame_swigregister(MiniFrame) |
d55e5bfc RD |
759 | |
760 | def PreMiniFrame(*args, **kwargs): | |
761 | """PreMiniFrame() -> MiniFrame""" | |
762 | val = _windows_.new_PreMiniFrame(*args, **kwargs) | |
d55e5bfc RD |
763 | return val |
764 | ||
765 | #--------------------------------------------------------------------------- | |
766 | ||
767 | SPLASH_CENTRE_ON_PARENT = _windows_.SPLASH_CENTRE_ON_PARENT | |
768 | SPLASH_CENTRE_ON_SCREEN = _windows_.SPLASH_CENTRE_ON_SCREEN | |
769 | SPLASH_NO_CENTRE = _windows_.SPLASH_NO_CENTRE | |
770 | SPLASH_TIMEOUT = _windows_.SPLASH_TIMEOUT | |
771 | SPLASH_NO_TIMEOUT = _windows_.SPLASH_NO_TIMEOUT | |
772 | class SplashScreenWindow(_core.Window): | |
36ed4f51 | 773 | """Proxy of C++ SplashScreenWindow class""" |
1bd55598 RD |
774 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
775 | __repr__ = _swig_repr | |
776 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
777 | """ |
778 | __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition, | |
779 | Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow | |
780 | """ | |
1bd55598 | 781 | _windows_.SplashScreenWindow_swiginit(self,_windows_.new_SplashScreenWindow(*args, **kwargs)) |
d55e5bfc RD |
782 | self._setOORInfo(self) |
783 | ||
784 | def SetBitmap(*args, **kwargs): | |
785 | """SetBitmap(self, Bitmap bitmap)""" | |
786 | return _windows_.SplashScreenWindow_SetBitmap(*args, **kwargs) | |
787 | ||
788 | def GetBitmap(*args, **kwargs): | |
789 | """GetBitmap(self) -> Bitmap""" | |
790 | return _windows_.SplashScreenWindow_GetBitmap(*args, **kwargs) | |
791 | ||
2131d850 | 792 | _windows_.SplashScreenWindow_swigregister(SplashScreenWindow) |
d55e5bfc RD |
793 | |
794 | class SplashScreen(Frame): | |
36ed4f51 | 795 | """Proxy of C++ SplashScreen class""" |
1bd55598 RD |
796 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
797 | __repr__ = _swig_repr | |
798 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
799 | """ |
800 | __init__(self, Bitmap bitmap, long splashStyle, int milliseconds, | |
bfddbb17 | 801 | Window parent, int id=-1, Point pos=DefaultPosition, |
d55e5bfc RD |
802 | Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen |
803 | """ | |
1bd55598 | 804 | _windows_.SplashScreen_swiginit(self,_windows_.new_SplashScreen(*args, **kwargs)) |
d55e5bfc RD |
805 | self._setOORInfo(self) |
806 | ||
807 | def GetSplashStyle(*args, **kwargs): | |
808 | """GetSplashStyle(self) -> long""" | |
809 | return _windows_.SplashScreen_GetSplashStyle(*args, **kwargs) | |
810 | ||
811 | def GetSplashWindow(*args, **kwargs): | |
812 | """GetSplashWindow(self) -> SplashScreenWindow""" | |
813 | return _windows_.SplashScreen_GetSplashWindow(*args, **kwargs) | |
814 | ||
815 | def GetTimeout(*args, **kwargs): | |
816 | """GetTimeout(self) -> int""" | |
817 | return _windows_.SplashScreen_GetTimeout(*args, **kwargs) | |
818 | ||
2131d850 | 819 | _windows_.SplashScreen_swigregister(SplashScreen) |
d55e5bfc RD |
820 | |
821 | #--------------------------------------------------------------------------- | |
822 | ||
03837c5c RD |
823 | SB_NORMAL = _windows_.SB_NORMAL |
824 | SB_FLAT = _windows_.SB_FLAT | |
825 | SB_RAISED = _windows_.SB_RAISED | |
d55e5bfc | 826 | class StatusBar(_core.Window): |
36ed4f51 | 827 | """Proxy of C++ StatusBar class""" |
1bd55598 RD |
828 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
829 | __repr__ = _swig_repr | |
830 | def __init__(self, *args, **kwargs): | |
6d88e192 | 831 | """ |
a3957d3d | 832 | __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE, |
6d88e192 RD |
833 | String name=StatusLineNameStr) -> StatusBar |
834 | """ | |
1bd55598 | 835 | _windows_.StatusBar_swiginit(self,_windows_.new_StatusBar(*args, **kwargs)) |
d55e5bfc RD |
836 | self._setOORInfo(self) |
837 | ||
838 | def Create(*args, **kwargs): | |
bfddbb17 | 839 | """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool""" |
d55e5bfc RD |
840 | return _windows_.StatusBar_Create(*args, **kwargs) |
841 | ||
842 | def SetFieldsCount(*args, **kwargs): | |
843 | """SetFieldsCount(self, int number=1)""" | |
844 | return _windows_.StatusBar_SetFieldsCount(*args, **kwargs) | |
845 | ||
846 | def GetFieldsCount(*args, **kwargs): | |
847 | """GetFieldsCount(self) -> int""" | |
848 | return _windows_.StatusBar_GetFieldsCount(*args, **kwargs) | |
849 | ||
850 | def SetStatusText(*args, **kwargs): | |
851 | """SetStatusText(self, String text, int number=0)""" | |
852 | return _windows_.StatusBar_SetStatusText(*args, **kwargs) | |
853 | ||
854 | def GetStatusText(*args, **kwargs): | |
855 | """GetStatusText(self, int number=0) -> String""" | |
856 | return _windows_.StatusBar_GetStatusText(*args, **kwargs) | |
857 | ||
858 | def PushStatusText(*args, **kwargs): | |
859 | """PushStatusText(self, String text, int number=0)""" | |
860 | return _windows_.StatusBar_PushStatusText(*args, **kwargs) | |
861 | ||
862 | def PopStatusText(*args, **kwargs): | |
863 | """PopStatusText(self, int number=0)""" | |
864 | return _windows_.StatusBar_PopStatusText(*args, **kwargs) | |
865 | ||
866 | def SetStatusWidths(*args, **kwargs): | |
36ed4f51 | 867 | """SetStatusWidths(self, int widths)""" |
d55e5bfc RD |
868 | return _windows_.StatusBar_SetStatusWidths(*args, **kwargs) |
869 | ||
03837c5c | 870 | def SetStatusStyles(*args, **kwargs): |
36ed4f51 | 871 | """SetStatusStyles(self, int styles)""" |
03837c5c RD |
872 | return _windows_.StatusBar_SetStatusStyles(*args, **kwargs) |
873 | ||
d55e5bfc RD |
874 | def GetFieldRect(*args, **kwargs): |
875 | """GetFieldRect(self, int i) -> Rect""" | |
876 | return _windows_.StatusBar_GetFieldRect(*args, **kwargs) | |
877 | ||
878 | def SetMinHeight(*args, **kwargs): | |
879 | """SetMinHeight(self, int height)""" | |
880 | return _windows_.StatusBar_SetMinHeight(*args, **kwargs) | |
881 | ||
882 | def GetBorderX(*args, **kwargs): | |
883 | """GetBorderX(self) -> int""" | |
884 | return _windows_.StatusBar_GetBorderX(*args, **kwargs) | |
885 | ||
886 | def GetBorderY(*args, **kwargs): | |
887 | """GetBorderY(self) -> int""" | |
888 | return _windows_.StatusBar_GetBorderY(*args, **kwargs) | |
889 | ||
f20a2e1f RD |
890 | def GetClassDefaultAttributes(*args, **kwargs): |
891 | """ | |
892 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
893 | ||
15817c7e RD |
894 | Get the default attributes for this class. This is useful if you want |
895 | to use the same font or colour in your own control as in a standard | |
896 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
897 | colours or fonts which might look completely out of place on the |
898 | user's system, especially if it uses themes. | |
f20a2e1f RD |
899 | |
900 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 901 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
902 | the returned font. See `wx.Window.SetWindowVariant` for more about |
903 | this. | |
f20a2e1f RD |
904 | """ |
905 | return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs) | |
906 | ||
907 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 908 | _windows_.StatusBar_swigregister(StatusBar) |
d55e5bfc RD |
909 | |
910 | def PreStatusBar(*args, **kwargs): | |
911 | """PreStatusBar() -> StatusBar""" | |
912 | val = _windows_.new_PreStatusBar(*args, **kwargs) | |
d55e5bfc RD |
913 | return val |
914 | ||
f20a2e1f | 915 | def StatusBar_GetClassDefaultAttributes(*args, **kwargs): |
1bd55598 | 916 | """ |
f20a2e1f RD |
917 | StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
918 | ||
15817c7e RD |
919 | Get the default attributes for this class. This is useful if you want |
920 | to use the same font or colour in your own control as in a standard | |
921 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
922 | colours or fonts which might look completely out of place on the |
923 | user's system, especially if it uses themes. | |
f20a2e1f RD |
924 | |
925 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 926 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
927 | the returned font. See `wx.Window.SetWindowVariant` for more about |
928 | this. | |
f20a2e1f | 929 | """ |
1bd55598 | 930 | return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 931 | |
d55e5bfc RD |
932 | #--------------------------------------------------------------------------- |
933 | ||
934 | SP_NOBORDER = _windows_.SP_NOBORDER | |
935 | SP_NOSASH = _windows_.SP_NOSASH | |
936 | SP_PERMIT_UNSPLIT = _windows_.SP_PERMIT_UNSPLIT | |
937 | SP_LIVE_UPDATE = _windows_.SP_LIVE_UPDATE | |
938 | SP_3DSASH = _windows_.SP_3DSASH | |
939 | SP_3DBORDER = _windows_.SP_3DBORDER | |
940 | SP_NO_XP_THEME = _windows_.SP_NO_XP_THEME | |
941 | SP_BORDER = _windows_.SP_BORDER | |
942 | SP_3D = _windows_.SP_3D | |
943 | SPLIT_HORIZONTAL = _windows_.SPLIT_HORIZONTAL | |
944 | SPLIT_VERTICAL = _windows_.SPLIT_VERTICAL | |
945 | SPLIT_DRAG_NONE = _windows_.SPLIT_DRAG_NONE | |
946 | SPLIT_DRAG_DRAGGING = _windows_.SPLIT_DRAG_DRAGGING | |
947 | SPLIT_DRAG_LEFT_DOWN = _windows_.SPLIT_DRAG_LEFT_DOWN | |
948 | class SplitterWindow(_core.Window): | |
949 | """ | |
15817c7e RD |
950 | wx.SplitterWindow manages up to two subwindows or panes, with an |
951 | optional vertical or horizontal split which can be used with the mouse | |
952 | or programmatically. | |
d55e5bfc | 953 | """ |
1bd55598 RD |
954 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
955 | __repr__ = _swig_repr | |
956 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
957 | """ |
958 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
959 | Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow | |
960 | ||
961 | Constructor. Creates and shows a SplitterWindow. | |
962 | """ | |
963 | if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point'] | |
1bd55598 | 964 | _windows_.SplitterWindow_swiginit(self,_windows_.new_SplitterWindow(*args, **kwargs)) |
d55e5bfc RD |
965 | self._setOORInfo(self) |
966 | ||
967 | def Create(*args, **kwargs): | |
968 | """ | |
969 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, | |
970 | Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool | |
971 | ||
972 | Create the GUI part of the SplitterWindow for the 2-phase create. | |
973 | """ | |
974 | return _windows_.SplitterWindow_Create(*args, **kwargs) | |
975 | ||
976 | def GetWindow1(*args, **kwargs): | |
977 | """ | |
978 | GetWindow1(self) -> Window | |
979 | ||
980 | Gets the only or left/top pane. | |
981 | """ | |
982 | return _windows_.SplitterWindow_GetWindow1(*args, **kwargs) | |
983 | ||
984 | def GetWindow2(*args, **kwargs): | |
985 | """ | |
986 | GetWindow2(self) -> Window | |
987 | ||
988 | Gets the right/bottom pane. | |
989 | """ | |
990 | return _windows_.SplitterWindow_GetWindow2(*args, **kwargs) | |
991 | ||
992 | def SetSplitMode(*args, **kwargs): | |
993 | """ | |
994 | SetSplitMode(self, int mode) | |
995 | ||
996 | Sets the split mode. The mode can be wx.SPLIT_VERTICAL or | |
15817c7e RD |
997 | wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not |
998 | update the display. | |
d55e5bfc RD |
999 | """ |
1000 | return _windows_.SplitterWindow_SetSplitMode(*args, **kwargs) | |
1001 | ||
1002 | def GetSplitMode(*args, **kwargs): | |
1003 | """ | |
1004 | GetSplitMode(self) -> int | |
1005 | ||
1006 | Gets the split mode | |
1007 | """ | |
1008 | return _windows_.SplitterWindow_GetSplitMode(*args, **kwargs) | |
1009 | ||
1010 | def Initialize(*args, **kwargs): | |
1011 | """ | |
1012 | Initialize(self, Window window) | |
1013 | ||
15817c7e RD |
1014 | Initializes the splitter window to have one pane. This should be |
1015 | called if you wish to initially view only a single pane in the | |
51b83b37 | 1016 | splitter window. The child window is shown if it is currently hidden. |
d55e5bfc RD |
1017 | """ |
1018 | return _windows_.SplitterWindow_Initialize(*args, **kwargs) | |
1019 | ||
1020 | def SplitVertically(*args, **kwargs): | |
1021 | """ | |
1022 | SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool | |
1023 | ||
51b83b37 RD |
1024 | Initializes the left and right panes of the splitter window. The |
1025 | child windows are shown if they are currently hidden. | |
d55e5bfc RD |
1026 | """ |
1027 | return _windows_.SplitterWindow_SplitVertically(*args, **kwargs) | |
1028 | ||
1029 | def SplitHorizontally(*args, **kwargs): | |
1030 | """ | |
1031 | SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool | |
1032 | ||
51b83b37 RD |
1033 | Initializes the top and bottom panes of the splitter window. The |
1034 | child windows are shown if they are currently hidden. | |
d55e5bfc RD |
1035 | """ |
1036 | return _windows_.SplitterWindow_SplitHorizontally(*args, **kwargs) | |
1037 | ||
1038 | def Unsplit(*args, **kwargs): | |
1039 | """ | |
1040 | Unsplit(self, Window toRemove=None) -> bool | |
1041 | ||
15817c7e RD |
1042 | Unsplits the window. Pass the pane to remove, or None to remove the |
1043 | right or bottom pane. Returns True if successful, False otherwise (the | |
1044 | window was not split). | |
d55e5bfc RD |
1045 | |
1046 | This function will not actually delete the pane being | |
1047 | removed; it sends EVT_SPLITTER_UNSPLIT which can be handled | |
1048 | for the desired behaviour. By default, the pane being | |
1049 | removed is only hidden. | |
1050 | """ | |
1051 | return _windows_.SplitterWindow_Unsplit(*args, **kwargs) | |
1052 | ||
1053 | def ReplaceWindow(*args, **kwargs): | |
1054 | """ | |
1055 | ReplaceWindow(self, Window winOld, Window winNew) -> bool | |
1056 | ||
1057 | This function replaces one of the windows managed by the | |
15817c7e RD |
1058 | SplitterWindow with another one. It is in general better to use it |
1059 | instead of calling Unsplit() and then resplitting the window back | |
1060 | because it will provoke much less flicker. It is valid to call this | |
1061 | function whether the splitter has two windows or only one. | |
1062 | ||
1063 | Both parameters should be non-None and winOld must specify one of the | |
1064 | windows managed by the splitter. If the parameters are incorrect or | |
1065 | the window couldn't be replaced, False is returned. Otherwise the | |
1066 | function will return True, but please notice that it will not Destroy | |
1067 | the replaced window and you may wish to do it yourself. | |
d55e5bfc RD |
1068 | """ |
1069 | return _windows_.SplitterWindow_ReplaceWindow(*args, **kwargs) | |
1070 | ||
1071 | def UpdateSize(*args, **kwargs): | |
1072 | """ | |
1073 | UpdateSize(self) | |
1074 | ||
15817c7e RD |
1075 | Causes any pending sizing of the sash and child panes to take place |
1076 | immediately. | |
d55e5bfc | 1077 | |
15817c7e RD |
1078 | Such resizing normally takes place in idle time, in order to wait for |
1079 | layout to be completed. However, this can cause unacceptable flicker | |
1080 | as the panes are resized after the window has been shown. To work | |
1081 | around this, you can perform window layout (for example by sending a | |
1082 | size event to the parent window), and then call this function, before | |
1083 | showing the top-level window. | |
d55e5bfc RD |
1084 | """ |
1085 | return _windows_.SplitterWindow_UpdateSize(*args, **kwargs) | |
1086 | ||
1087 | def IsSplit(*args, **kwargs): | |
1088 | """ | |
1089 | IsSplit(self) -> bool | |
1090 | ||
1091 | Is the window split? | |
1092 | """ | |
1093 | return _windows_.SplitterWindow_IsSplit(*args, **kwargs) | |
1094 | ||
1095 | def SetSashSize(*args, **kwargs): | |
1096 | """ | |
1097 | SetSashSize(self, int width) | |
1098 | ||
88c6b281 | 1099 | Sets the sash size. |
d55e5bfc RD |
1100 | """ |
1101 | return _windows_.SplitterWindow_SetSashSize(*args, **kwargs) | |
1102 | ||
1103 | def SetBorderSize(*args, **kwargs): | |
1104 | """ | |
1105 | SetBorderSize(self, int width) | |
1106 | ||
6e0de3df | 1107 | Sets the border size. Currently a NOP. |
d55e5bfc RD |
1108 | """ |
1109 | return _windows_.SplitterWindow_SetBorderSize(*args, **kwargs) | |
1110 | ||
1111 | def GetSashSize(*args, **kwargs): | |
1112 | """ | |
1113 | GetSashSize(self) -> int | |
1114 | ||
1115 | Gets the sash size | |
1116 | """ | |
1117 | return _windows_.SplitterWindow_GetSashSize(*args, **kwargs) | |
1118 | ||
1119 | def GetBorderSize(*args, **kwargs): | |
1120 | """ | |
1121 | GetBorderSize(self) -> int | |
1122 | ||
1123 | Gets the border size | |
1124 | """ | |
1125 | return _windows_.SplitterWindow_GetBorderSize(*args, **kwargs) | |
1126 | ||
1127 | def SetSashPosition(*args, **kwargs): | |
1128 | """ | |
1129 | SetSashPosition(self, int position, bool redraw=True) | |
1130 | ||
15817c7e RD |
1131 | Sets the sash position, in pixels. If redraw is Ttrue then the panes |
1132 | are resized and the sash and border are redrawn. | |
d55e5bfc RD |
1133 | """ |
1134 | return _windows_.SplitterWindow_SetSashPosition(*args, **kwargs) | |
1135 | ||
1136 | def GetSashPosition(*args, **kwargs): | |
1137 | """ | |
1138 | GetSashPosition(self) -> int | |
1139 | ||
1140 | Returns the surrent sash position. | |
1141 | """ | |
1142 | return _windows_.SplitterWindow_GetSashPosition(*args, **kwargs) | |
1143 | ||
5cbf236d RD |
1144 | def SetSashGravity(*args, **kwargs): |
1145 | """ | |
1146 | SetSashGravity(self, double gravity) | |
1147 | ||
1148 | Set the sash gravity. Gravity is a floating-point factor between 0.0 | |
1149 | and 1.0 which controls position of sash while resizing the | |
1150 | `wx.SplitterWindow`. The gravity specifies how much the left/top | |
1151 | window will grow while resizing. | |
1152 | """ | |
1153 | return _windows_.SplitterWindow_SetSashGravity(*args, **kwargs) | |
1154 | ||
1155 | def GetSashGravity(*args, **kwargs): | |
1156 | """ | |
1157 | GetSashGravity(self) -> double | |
1158 | ||
1159 | Gets the sash gravity. | |
1160 | ||
1161 | :see: `SetSashGravity` | |
1162 | ||
1163 | """ | |
1164 | return _windows_.SplitterWindow_GetSashGravity(*args, **kwargs) | |
1165 | ||
d55e5bfc RD |
1166 | def SetMinimumPaneSize(*args, **kwargs): |
1167 | """ | |
1168 | SetMinimumPaneSize(self, int min) | |
1169 | ||
1170 | Sets the minimum pane size in pixels. | |
1171 | ||
15817c7e RD |
1172 | The default minimum pane size is zero, which means that either pane |
1173 | can be reduced to zero by dragging the sash, thus removing one of the | |
1174 | panes. To prevent this behaviour (and veto out-of-range sash | |
1175 | dragging), set a minimum size, for example 20 pixels. If the | |
1176 | wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created, | |
1177 | the window may be unsplit even if minimum size is non-zero. | |
d55e5bfc RD |
1178 | """ |
1179 | return _windows_.SplitterWindow_SetMinimumPaneSize(*args, **kwargs) | |
1180 | ||
1181 | def GetMinimumPaneSize(*args, **kwargs): | |
1182 | """ | |
1183 | GetMinimumPaneSize(self) -> int | |
1184 | ||
1185 | Gets the minimum pane size in pixels. | |
1186 | """ | |
1187 | return _windows_.SplitterWindow_GetMinimumPaneSize(*args, **kwargs) | |
1188 | ||
1189 | def SashHitTest(*args, **kwargs): | |
1190 | """ | |
1191 | SashHitTest(self, int x, int y, int tolerance=5) -> bool | |
1192 | ||
1193 | Tests for x, y over the sash | |
1194 | """ | |
1195 | return _windows_.SplitterWindow_SashHitTest(*args, **kwargs) | |
1196 | ||
1197 | def SizeWindows(*args, **kwargs): | |
1198 | """ | |
1199 | SizeWindows(self) | |
1200 | ||
1201 | Resizes subwindows | |
1202 | """ | |
1203 | return _windows_.SplitterWindow_SizeWindows(*args, **kwargs) | |
1204 | ||
1205 | def SetNeedUpdating(*args, **kwargs): | |
1206 | """SetNeedUpdating(self, bool needUpdating)""" | |
1207 | return _windows_.SplitterWindow_SetNeedUpdating(*args, **kwargs) | |
1208 | ||
1209 | def GetNeedUpdating(*args, **kwargs): | |
1210 | """GetNeedUpdating(self) -> bool""" | |
1211 | return _windows_.SplitterWindow_GetNeedUpdating(*args, **kwargs) | |
1212 | ||
f20a2e1f RD |
1213 | def GetClassDefaultAttributes(*args, **kwargs): |
1214 | """ | |
1215 | GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes | |
1216 | ||
15817c7e RD |
1217 | Get the default attributes for this class. This is useful if you want |
1218 | to use the same font or colour in your own control as in a standard | |
1219 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
1220 | colours or fonts which might look completely out of place on the |
1221 | user's system, especially if it uses themes. | |
f20a2e1f RD |
1222 | |
1223 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 1224 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
1225 | the returned font. See `wx.Window.SetWindowVariant` for more about |
1226 | this. | |
f20a2e1f RD |
1227 | """ |
1228 | return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs) | |
1229 | ||
1230 | GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes) | |
2131d850 | 1231 | _windows_.SplitterWindow_swigregister(SplitterWindow) |
d55e5bfc RD |
1232 | SplitterNameStr = cvar.SplitterNameStr |
1233 | ||
1234 | def PreSplitterWindow(*args, **kwargs): | |
1235 | """ | |
1236 | PreSplitterWindow() -> SplitterWindow | |
1237 | ||
1238 | Precreate a SplitterWindow for 2-phase creation. | |
1239 | """ | |
1240 | val = _windows_.new_PreSplitterWindow(*args, **kwargs) | |
d55e5bfc RD |
1241 | return val |
1242 | ||
f20a2e1f | 1243 | def SplitterWindow_GetClassDefaultAttributes(*args, **kwargs): |
1bd55598 | 1244 | """ |
f20a2e1f RD |
1245 | SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes |
1246 | ||
15817c7e RD |
1247 | Get the default attributes for this class. This is useful if you want |
1248 | to use the same font or colour in your own control as in a standard | |
1249 | control -- which is a much better idea than hard coding specific | |
a5ee0656 RD |
1250 | colours or fonts which might look completely out of place on the |
1251 | user's system, especially if it uses themes. | |
f20a2e1f RD |
1252 | |
1253 | The variant parameter is only relevant under Mac currently and is | |
15817c7e | 1254 | ignore under other platforms. Under Mac, it will change the size of |
a5ee0656 RD |
1255 | the returned font. See `wx.Window.SetWindowVariant` for more about |
1256 | this. | |
f20a2e1f | 1257 | """ |
1bd55598 | 1258 | return _windows_.SplitterWindow_GetClassDefaultAttributes(*args, **kwargs) |
f20a2e1f | 1259 | |
d55e5bfc RD |
1260 | class SplitterEvent(_core.NotifyEvent): |
1261 | """This class represents the events generated by a splitter control.""" | |
1bd55598 RD |
1262 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1263 | __repr__ = _swig_repr | |
1264 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1265 | """ |
2131d850 | 1266 | __init__(self, EventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent |
d55e5bfc RD |
1267 | |
1268 | This class represents the events generated by a splitter control. | |
1269 | """ | |
1bd55598 | 1270 | _windows_.SplitterEvent_swiginit(self,_windows_.new_SplitterEvent(*args, **kwargs)) |
d55e5bfc RD |
1271 | def SetSashPosition(*args, **kwargs): |
1272 | """ | |
1273 | SetSashPosition(self, int pos) | |
1274 | ||
51b83b37 | 1275 | This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING |
15817c7e RD |
1276 | and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED |
1277 | events, sets the the new sash position. In the case of _CHANGING | |
1278 | events, sets the new tracking bar position so visual feedback during | |
1279 | dragging will represent that change that will actually take place. Set | |
1280 | to -1 from the event handler code to prevent repositioning. | |
d55e5bfc RD |
1281 | """ |
1282 | return _windows_.SplitterEvent_SetSashPosition(*args, **kwargs) | |
1283 | ||
1284 | def GetSashPosition(*args, **kwargs): | |
1285 | """ | |
1286 | GetSashPosition(self) -> int | |
1287 | ||
15817c7e RD |
1288 | Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING |
1289 | and EVT_SPLITTER_SASH_POS_CHANGED events. | |
d55e5bfc RD |
1290 | """ |
1291 | return _windows_.SplitterEvent_GetSashPosition(*args, **kwargs) | |
1292 | ||
1293 | def GetWindowBeingRemoved(*args, **kwargs): | |
1294 | """ | |
1295 | GetWindowBeingRemoved(self) -> Window | |
1296 | ||
15817c7e RD |
1297 | Returns a pointer to the window being removed when a splitter window |
1298 | is unsplit. | |
d55e5bfc RD |
1299 | """ |
1300 | return _windows_.SplitterEvent_GetWindowBeingRemoved(*args, **kwargs) | |
1301 | ||
1302 | def GetX(*args, **kwargs): | |
1303 | """ | |
1304 | GetX(self) -> int | |
1305 | ||
1306 | Returns the x coordinate of the double-click point in a | |
1307 | EVT_SPLITTER_DCLICK event. | |
1308 | """ | |
1309 | return _windows_.SplitterEvent_GetX(*args, **kwargs) | |
1310 | ||
1311 | def GetY(*args, **kwargs): | |
1312 | """ | |
1313 | GetY(self) -> int | |
1314 | ||
1315 | Returns the y coordinate of the double-click point in a | |
1316 | EVT_SPLITTER_DCLICK event. | |
1317 | """ | |
1318 | return _windows_.SplitterEvent_GetY(*args, **kwargs) | |
1319 | ||
2131d850 | 1320 | _windows_.SplitterEvent_swigregister(SplitterEvent) |
d55e5bfc RD |
1321 | |
1322 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED | |
1323 | wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING | |
1324 | wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows_.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED | |
1325 | wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows_.wxEVT_COMMAND_SPLITTER_UNSPLIT | |
1326 | EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 1 ) | |
1327 | EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 1 ) | |
1328 | EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 1 ) | |
1329 | EVT_SPLITTER_UNSPLIT = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT, 1 ) | |
1330 | EVT_SPLITTER_DCLICK = EVT_SPLITTER_DOUBLECLICKED | |
1331 | ||
1332 | #--------------------------------------------------------------------------- | |
1333 | ||
1334 | SASH_DRAG_NONE = _windows_.SASH_DRAG_NONE | |
1335 | SASH_DRAG_DRAGGING = _windows_.SASH_DRAG_DRAGGING | |
1336 | SASH_DRAG_LEFT_DOWN = _windows_.SASH_DRAG_LEFT_DOWN | |
1337 | SW_NOBORDER = _windows_.SW_NOBORDER | |
1338 | SW_BORDER = _windows_.SW_BORDER | |
1339 | SW_3DSASH = _windows_.SW_3DSASH | |
1340 | SW_3DBORDER = _windows_.SW_3DBORDER | |
1341 | SW_3D = _windows_.SW_3D | |
1342 | SASH_TOP = _windows_.SASH_TOP | |
1343 | SASH_RIGHT = _windows_.SASH_RIGHT | |
1344 | SASH_BOTTOM = _windows_.SASH_BOTTOM | |
1345 | SASH_LEFT = _windows_.SASH_LEFT | |
1346 | SASH_NONE = _windows_.SASH_NONE | |
1347 | class SashWindow(_core.Window): | |
36ed4f51 | 1348 | """Proxy of C++ SashWindow class""" |
1bd55598 RD |
1349 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1350 | __repr__ = _swig_repr | |
1351 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1352 | """ |
bfddbb17 RD |
1353 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1354 | Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, | |
d55e5bfc RD |
1355 | String name=SashNameStr) -> SashWindow |
1356 | """ | |
1bd55598 | 1357 | _windows_.SashWindow_swiginit(self,_windows_.new_SashWindow(*args, **kwargs)) |
d55e5bfc RD |
1358 | self._setOORInfo(self) |
1359 | ||
1360 | def Create(*args, **kwargs): | |
1361 | """ | |
bfddbb17 RD |
1362 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1363 | Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, | |
d55e5bfc RD |
1364 | String name=SashNameStr) -> bool |
1365 | """ | |
1366 | return _windows_.SashWindow_Create(*args, **kwargs) | |
1367 | ||
1368 | def SetSashVisible(*args, **kwargs): | |
1369 | """SetSashVisible(self, int edge, bool sash)""" | |
1370 | return _windows_.SashWindow_SetSashVisible(*args, **kwargs) | |
1371 | ||
1372 | def GetSashVisible(*args, **kwargs): | |
1373 | """GetSashVisible(self, int edge) -> bool""" | |
1374 | return _windows_.SashWindow_GetSashVisible(*args, **kwargs) | |
1375 | ||
1376 | def SetSashBorder(*args, **kwargs): | |
1377 | """SetSashBorder(self, int edge, bool border)""" | |
1378 | return _windows_.SashWindow_SetSashBorder(*args, **kwargs) | |
1379 | ||
1380 | def HasBorder(*args, **kwargs): | |
1381 | """HasBorder(self, int edge) -> bool""" | |
1382 | return _windows_.SashWindow_HasBorder(*args, **kwargs) | |
1383 | ||
1384 | def GetEdgeMargin(*args, **kwargs): | |
1385 | """GetEdgeMargin(self, int edge) -> int""" | |
1386 | return _windows_.SashWindow_GetEdgeMargin(*args, **kwargs) | |
1387 | ||
1388 | def SetDefaultBorderSize(*args, **kwargs): | |
1389 | """SetDefaultBorderSize(self, int width)""" | |
1390 | return _windows_.SashWindow_SetDefaultBorderSize(*args, **kwargs) | |
1391 | ||
1392 | def GetDefaultBorderSize(*args, **kwargs): | |
1393 | """GetDefaultBorderSize(self) -> int""" | |
1394 | return _windows_.SashWindow_GetDefaultBorderSize(*args, **kwargs) | |
1395 | ||
1396 | def SetExtraBorderSize(*args, **kwargs): | |
1397 | """SetExtraBorderSize(self, int width)""" | |
1398 | return _windows_.SashWindow_SetExtraBorderSize(*args, **kwargs) | |
1399 | ||
1400 | def GetExtraBorderSize(*args, **kwargs): | |
1401 | """GetExtraBorderSize(self) -> int""" | |
1402 | return _windows_.SashWindow_GetExtraBorderSize(*args, **kwargs) | |
1403 | ||
1404 | def SetMinimumSizeX(*args, **kwargs): | |
1405 | """SetMinimumSizeX(self, int min)""" | |
1406 | return _windows_.SashWindow_SetMinimumSizeX(*args, **kwargs) | |
1407 | ||
1408 | def SetMinimumSizeY(*args, **kwargs): | |
1409 | """SetMinimumSizeY(self, int min)""" | |
1410 | return _windows_.SashWindow_SetMinimumSizeY(*args, **kwargs) | |
1411 | ||
1412 | def GetMinimumSizeX(*args, **kwargs): | |
1413 | """GetMinimumSizeX(self) -> int""" | |
1414 | return _windows_.SashWindow_GetMinimumSizeX(*args, **kwargs) | |
1415 | ||
1416 | def GetMinimumSizeY(*args, **kwargs): | |
1417 | """GetMinimumSizeY(self) -> int""" | |
1418 | return _windows_.SashWindow_GetMinimumSizeY(*args, **kwargs) | |
1419 | ||
1420 | def SetMaximumSizeX(*args, **kwargs): | |
1421 | """SetMaximumSizeX(self, int max)""" | |
1422 | return _windows_.SashWindow_SetMaximumSizeX(*args, **kwargs) | |
1423 | ||
1424 | def SetMaximumSizeY(*args, **kwargs): | |
1425 | """SetMaximumSizeY(self, int max)""" | |
1426 | return _windows_.SashWindow_SetMaximumSizeY(*args, **kwargs) | |
1427 | ||
1428 | def GetMaximumSizeX(*args, **kwargs): | |
1429 | """GetMaximumSizeX(self) -> int""" | |
1430 | return _windows_.SashWindow_GetMaximumSizeX(*args, **kwargs) | |
1431 | ||
1432 | def GetMaximumSizeY(*args, **kwargs): | |
1433 | """GetMaximumSizeY(self) -> int""" | |
1434 | return _windows_.SashWindow_GetMaximumSizeY(*args, **kwargs) | |
1435 | ||
1436 | def SashHitTest(*args, **kwargs): | |
1437 | """SashHitTest(self, int x, int y, int tolerance=2) -> int""" | |
1438 | return _windows_.SashWindow_SashHitTest(*args, **kwargs) | |
1439 | ||
1440 | def SizeWindows(*args, **kwargs): | |
1441 | """SizeWindows(self)""" | |
1442 | return _windows_.SashWindow_SizeWindows(*args, **kwargs) | |
1443 | ||
2131d850 | 1444 | _windows_.SashWindow_swigregister(SashWindow) |
d55e5bfc RD |
1445 | SashNameStr = cvar.SashNameStr |
1446 | SashLayoutNameStr = cvar.SashLayoutNameStr | |
1447 | ||
1448 | def PreSashWindow(*args, **kwargs): | |
1449 | """PreSashWindow() -> SashWindow""" | |
1450 | val = _windows_.new_PreSashWindow(*args, **kwargs) | |
d55e5bfc RD |
1451 | return val |
1452 | ||
1453 | SASH_STATUS_OK = _windows_.SASH_STATUS_OK | |
1454 | SASH_STATUS_OUT_OF_RANGE = _windows_.SASH_STATUS_OUT_OF_RANGE | |
1455 | class SashEvent(_core.CommandEvent): | |
36ed4f51 | 1456 | """Proxy of C++ SashEvent class""" |
1bd55598 RD |
1457 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1458 | __repr__ = _swig_repr | |
1459 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1460 | """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent""" |
1bd55598 | 1461 | _windows_.SashEvent_swiginit(self,_windows_.new_SashEvent(*args, **kwargs)) |
d55e5bfc RD |
1462 | def SetEdge(*args, **kwargs): |
1463 | """SetEdge(self, int edge)""" | |
1464 | return _windows_.SashEvent_SetEdge(*args, **kwargs) | |
1465 | ||
1466 | def GetEdge(*args, **kwargs): | |
1467 | """GetEdge(self) -> int""" | |
1468 | return _windows_.SashEvent_GetEdge(*args, **kwargs) | |
1469 | ||
1470 | def SetDragRect(*args, **kwargs): | |
1471 | """SetDragRect(self, Rect rect)""" | |
1472 | return _windows_.SashEvent_SetDragRect(*args, **kwargs) | |
1473 | ||
1474 | def GetDragRect(*args, **kwargs): | |
1475 | """GetDragRect(self) -> Rect""" | |
1476 | return _windows_.SashEvent_GetDragRect(*args, **kwargs) | |
1477 | ||
1478 | def SetDragStatus(*args, **kwargs): | |
1479 | """SetDragStatus(self, int status)""" | |
1480 | return _windows_.SashEvent_SetDragStatus(*args, **kwargs) | |
1481 | ||
1482 | def GetDragStatus(*args, **kwargs): | |
1483 | """GetDragStatus(self) -> int""" | |
1484 | return _windows_.SashEvent_GetDragStatus(*args, **kwargs) | |
1485 | ||
2131d850 | 1486 | _windows_.SashEvent_swigregister(SashEvent) |
d55e5bfc RD |
1487 | |
1488 | wxEVT_SASH_DRAGGED = _windows_.wxEVT_SASH_DRAGGED | |
1489 | EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 ) | |
1490 | EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 ) | |
1491 | ||
1492 | #--------------------------------------------------------------------------- | |
1493 | ||
1494 | LAYOUT_HORIZONTAL = _windows_.LAYOUT_HORIZONTAL | |
1495 | LAYOUT_VERTICAL = _windows_.LAYOUT_VERTICAL | |
1496 | LAYOUT_NONE = _windows_.LAYOUT_NONE | |
1497 | LAYOUT_TOP = _windows_.LAYOUT_TOP | |
1498 | LAYOUT_LEFT = _windows_.LAYOUT_LEFT | |
1499 | LAYOUT_RIGHT = _windows_.LAYOUT_RIGHT | |
1500 | LAYOUT_BOTTOM = _windows_.LAYOUT_BOTTOM | |
1501 | LAYOUT_LENGTH_Y = _windows_.LAYOUT_LENGTH_Y | |
1502 | LAYOUT_LENGTH_X = _windows_.LAYOUT_LENGTH_X | |
1503 | LAYOUT_MRU_LENGTH = _windows_.LAYOUT_MRU_LENGTH | |
1504 | LAYOUT_QUERY = _windows_.LAYOUT_QUERY | |
1505 | wxEVT_QUERY_LAYOUT_INFO = _windows_.wxEVT_QUERY_LAYOUT_INFO | |
1506 | wxEVT_CALCULATE_LAYOUT = _windows_.wxEVT_CALCULATE_LAYOUT | |
1507 | class QueryLayoutInfoEvent(_core.Event): | |
36ed4f51 | 1508 | """Proxy of C++ QueryLayoutInfoEvent class""" |
1bd55598 RD |
1509 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1510 | __repr__ = _swig_repr | |
1511 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1512 | """__init__(self, int id=0) -> QueryLayoutInfoEvent""" |
1bd55598 | 1513 | _windows_.QueryLayoutInfoEvent_swiginit(self,_windows_.new_QueryLayoutInfoEvent(*args, **kwargs)) |
d55e5bfc RD |
1514 | def SetRequestedLength(*args, **kwargs): |
1515 | """SetRequestedLength(self, int length)""" | |
1516 | return _windows_.QueryLayoutInfoEvent_SetRequestedLength(*args, **kwargs) | |
1517 | ||
1518 | def GetRequestedLength(*args, **kwargs): | |
1519 | """GetRequestedLength(self) -> int""" | |
1520 | return _windows_.QueryLayoutInfoEvent_GetRequestedLength(*args, **kwargs) | |
1521 | ||
1522 | def SetFlags(*args, **kwargs): | |
1523 | """SetFlags(self, int flags)""" | |
1524 | return _windows_.QueryLayoutInfoEvent_SetFlags(*args, **kwargs) | |
1525 | ||
1526 | def GetFlags(*args, **kwargs): | |
1527 | """GetFlags(self) -> int""" | |
1528 | return _windows_.QueryLayoutInfoEvent_GetFlags(*args, **kwargs) | |
1529 | ||
1530 | def SetSize(*args, **kwargs): | |
1531 | """SetSize(self, Size size)""" | |
1532 | return _windows_.QueryLayoutInfoEvent_SetSize(*args, **kwargs) | |
1533 | ||
1534 | def GetSize(*args, **kwargs): | |
1535 | """GetSize(self) -> Size""" | |
1536 | return _windows_.QueryLayoutInfoEvent_GetSize(*args, **kwargs) | |
1537 | ||
1538 | def SetOrientation(*args, **kwargs): | |
1539 | """SetOrientation(self, int orient)""" | |
1540 | return _windows_.QueryLayoutInfoEvent_SetOrientation(*args, **kwargs) | |
1541 | ||
1542 | def GetOrientation(*args, **kwargs): | |
1543 | """GetOrientation(self) -> int""" | |
1544 | return _windows_.QueryLayoutInfoEvent_GetOrientation(*args, **kwargs) | |
1545 | ||
1546 | def SetAlignment(*args, **kwargs): | |
1547 | """SetAlignment(self, int align)""" | |
1548 | return _windows_.QueryLayoutInfoEvent_SetAlignment(*args, **kwargs) | |
1549 | ||
1550 | def GetAlignment(*args, **kwargs): | |
1551 | """GetAlignment(self) -> int""" | |
1552 | return _windows_.QueryLayoutInfoEvent_GetAlignment(*args, **kwargs) | |
1553 | ||
2131d850 | 1554 | _windows_.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent) |
d55e5bfc RD |
1555 | |
1556 | class CalculateLayoutEvent(_core.Event): | |
36ed4f51 | 1557 | """Proxy of C++ CalculateLayoutEvent class""" |
1bd55598 RD |
1558 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1559 | __repr__ = _swig_repr | |
1560 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1561 | """__init__(self, int id=0) -> CalculateLayoutEvent""" |
1bd55598 | 1562 | _windows_.CalculateLayoutEvent_swiginit(self,_windows_.new_CalculateLayoutEvent(*args, **kwargs)) |
d55e5bfc RD |
1563 | def SetFlags(*args, **kwargs): |
1564 | """SetFlags(self, int flags)""" | |
1565 | return _windows_.CalculateLayoutEvent_SetFlags(*args, **kwargs) | |
1566 | ||
1567 | def GetFlags(*args, **kwargs): | |
1568 | """GetFlags(self) -> int""" | |
1569 | return _windows_.CalculateLayoutEvent_GetFlags(*args, **kwargs) | |
1570 | ||
1571 | def SetRect(*args, **kwargs): | |
1572 | """SetRect(self, Rect rect)""" | |
1573 | return _windows_.CalculateLayoutEvent_SetRect(*args, **kwargs) | |
1574 | ||
1575 | def GetRect(*args, **kwargs): | |
1576 | """GetRect(self) -> Rect""" | |
1577 | return _windows_.CalculateLayoutEvent_GetRect(*args, **kwargs) | |
1578 | ||
2bf58437 RD |
1579 | Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`") |
1580 | Rect = property(GetRect,SetRect,doc="See `GetRect` and `SetRect`") | |
2131d850 | 1581 | _windows_.CalculateLayoutEvent_swigregister(CalculateLayoutEvent) |
d55e5bfc RD |
1582 | |
1583 | EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO ) | |
1584 | EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT ) | |
1585 | ||
1586 | class SashLayoutWindow(SashWindow): | |
36ed4f51 | 1587 | """Proxy of C++ SashLayoutWindow class""" |
1bd55598 RD |
1588 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1589 | __repr__ = _swig_repr | |
1590 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1591 | """ |
bfddbb17 RD |
1592 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1593 | Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, | |
d55e5bfc RD |
1594 | String name=SashLayoutNameStr) -> SashLayoutWindow |
1595 | """ | |
1bd55598 | 1596 | _windows_.SashLayoutWindow_swiginit(self,_windows_.new_SashLayoutWindow(*args, **kwargs)) |
d55e5bfc RD |
1597 | self._setOORInfo(self) |
1598 | ||
1599 | def Create(*args, **kwargs): | |
1600 | """ | |
bfddbb17 RD |
1601 | Create(self, Window parent, int id=-1, Point pos=DefaultPosition, |
1602 | Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D, | |
d55e5bfc RD |
1603 | String name=SashLayoutNameStr) -> bool |
1604 | """ | |
1605 | return _windows_.SashLayoutWindow_Create(*args, **kwargs) | |
1606 | ||
1607 | def GetAlignment(*args, **kwargs): | |
1608 | """GetAlignment(self) -> int""" | |
1609 | return _windows_.SashLayoutWindow_GetAlignment(*args, **kwargs) | |
1610 | ||
1611 | def GetOrientation(*args, **kwargs): | |
1612 | """GetOrientation(self) -> int""" | |
1613 | return _windows_.SashLayoutWindow_GetOrientation(*args, **kwargs) | |
1614 | ||
1615 | def SetAlignment(*args, **kwargs): | |
1616 | """SetAlignment(self, int alignment)""" | |
1617 | return _windows_.SashLayoutWindow_SetAlignment(*args, **kwargs) | |
1618 | ||
1619 | def SetDefaultSize(*args, **kwargs): | |
1620 | """SetDefaultSize(self, Size size)""" | |
1621 | return _windows_.SashLayoutWindow_SetDefaultSize(*args, **kwargs) | |
1622 | ||
1623 | def SetOrientation(*args, **kwargs): | |
1624 | """SetOrientation(self, int orientation)""" | |
1625 | return _windows_.SashLayoutWindow_SetOrientation(*args, **kwargs) | |
1626 | ||
2131d850 | 1627 | _windows_.SashLayoutWindow_swigregister(SashLayoutWindow) |
d55e5bfc RD |
1628 | |
1629 | def PreSashLayoutWindow(*args, **kwargs): | |
1630 | """PreSashLayoutWindow() -> SashLayoutWindow""" | |
1631 | val = _windows_.new_PreSashLayoutWindow(*args, **kwargs) | |
d55e5bfc RD |
1632 | return val |
1633 | ||
1634 | class LayoutAlgorithm(_core.Object): | |
36ed4f51 | 1635 | """Proxy of C++ LayoutAlgorithm class""" |
1bd55598 RD |
1636 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1637 | __repr__ = _swig_repr | |
1638 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1639 | """__init__(self) -> LayoutAlgorithm""" |
1bd55598 RD |
1640 | _windows_.LayoutAlgorithm_swiginit(self,_windows_.new_LayoutAlgorithm(*args, **kwargs)) |
1641 | __swig_destroy__ = _windows_.delete_LayoutAlgorithm | |
1642 | __del__ = lambda self : None; | |
d55e5bfc RD |
1643 | def LayoutMDIFrame(*args, **kwargs): |
1644 | """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool""" | |
1645 | return _windows_.LayoutAlgorithm_LayoutMDIFrame(*args, **kwargs) | |
1646 | ||
1647 | def LayoutFrame(*args, **kwargs): | |
1648 | """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool""" | |
1649 | return _windows_.LayoutAlgorithm_LayoutFrame(*args, **kwargs) | |
1650 | ||
1651 | def LayoutWindow(*args, **kwargs): | |
1652 | """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool""" | |
1653 | return _windows_.LayoutAlgorithm_LayoutWindow(*args, **kwargs) | |
1654 | ||
2131d850 | 1655 | _windows_.LayoutAlgorithm_swigregister(LayoutAlgorithm) |
d55e5bfc RD |
1656 | |
1657 | class PopupWindow(_core.Window): | |
36ed4f51 | 1658 | """Proxy of C++ PopupWindow class""" |
1bd55598 RD |
1659 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1660 | __repr__ = _swig_repr | |
1661 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1662 | """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow""" |
1bd55598 | 1663 | _windows_.PopupWindow_swiginit(self,_windows_.new_PopupWindow(*args, **kwargs)) |
2131d850 | 1664 | _windows_.PopupWindow_swigregister(PopupWindow) |
d55e5bfc RD |
1665 | |
1666 | def PrePopupWindow(*args, **kwargs): | |
1667 | """PrePopupWindow() -> PopupWindow""" | |
1668 | val = _windows_.new_PrePopupWindow(*args, **kwargs) | |
d55e5bfc RD |
1669 | return val |
1670 | ||
1671 | class PopupTransientWindow(PopupWindow): | |
36ed4f51 | 1672 | """Proxy of C++ PopupTransientWindow class""" |
1bd55598 RD |
1673 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1674 | __repr__ = _swig_repr | |
1675 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1676 | """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow""" |
1bd55598 | 1677 | _windows_.PopupTransientWindow_swiginit(self,_windows_.new_PopupTransientWindow(*args, **kwargs)) |
2131d850 | 1678 | _windows_.PopupTransientWindow_swigregister(PopupTransientWindow) |
d55e5bfc RD |
1679 | |
1680 | def PrePopupTransientWindow(*args, **kwargs): | |
1681 | """PrePopupTransientWindow() -> PopupTransientWindow""" | |
1682 | val = _windows_.new_PrePopupTransientWindow(*args, **kwargs) | |
d55e5bfc RD |
1683 | return val |
1684 | ||
1685 | #--------------------------------------------------------------------------- | |
1686 | ||
1687 | class TipWindow(Frame): | |
36ed4f51 | 1688 | """Proxy of C++ TipWindow class""" |
1bd55598 RD |
1689 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1690 | __repr__ = _swig_repr | |
1691 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1692 | """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow""" |
1bd55598 | 1693 | _windows_.TipWindow_swiginit(self,_windows_.new_TipWindow(*args, **kwargs)) |
d55e5bfc RD |
1694 | self._setOORInfo(self) |
1695 | ||
1696 | def SetBoundingRect(*args, **kwargs): | |
1697 | """SetBoundingRect(self, Rect rectBound)""" | |
1698 | return _windows_.TipWindow_SetBoundingRect(*args, **kwargs) | |
1699 | ||
1700 | def Close(*args, **kwargs): | |
36ed4f51 RD |
1701 | """ |
1702 | Close(self) | |
1703 | ||
1704 | This function simply generates a EVT_CLOSE event whose handler usually | |
1705 | tries to close the window. It doesn't close the window itself, | |
1706 | however. If force is False (the default) then the window's close | |
1707 | handler will be allowed to veto the destruction of the window. | |
1708 | """ | |
d55e5bfc RD |
1709 | return _windows_.TipWindow_Close(*args, **kwargs) |
1710 | ||
2131d850 | 1711 | _windows_.TipWindow_swigregister(TipWindow) |
d55e5bfc RD |
1712 | |
1713 | #--------------------------------------------------------------------------- | |
1714 | ||
1715 | class VScrolledWindow(Panel): | |
36ed4f51 | 1716 | """Proxy of C++ VScrolledWindow class""" |
1bd55598 RD |
1717 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1718 | __repr__ = _swig_repr | |
1719 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
1720 | """ |
1721 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1722 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow | |
1723 | """ | |
1bd55598 | 1724 | _windows_.VScrolledWindow_swiginit(self,_windows_.new_VScrolledWindow(*args, **kwargs)) |
d55e5bfc RD |
1725 | self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow) |
1726 | ||
1727 | def _setCallbackInfo(*args, **kwargs): | |
1728 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
1729 | return _windows_.VScrolledWindow__setCallbackInfo(*args, **kwargs) | |
1730 | ||
1731 | def Create(*args, **kwargs): | |
1732 | """ | |
1733 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1734 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool | |
1735 | """ | |
1736 | return _windows_.VScrolledWindow_Create(*args, **kwargs) | |
1737 | ||
1738 | def SetLineCount(*args, **kwargs): | |
1739 | """SetLineCount(self, size_t count)""" | |
1740 | return _windows_.VScrolledWindow_SetLineCount(*args, **kwargs) | |
1741 | ||
1742 | def ScrollToLine(*args, **kwargs): | |
1743 | """ScrollToLine(self, size_t line) -> bool""" | |
1744 | return _windows_.VScrolledWindow_ScrollToLine(*args, **kwargs) | |
1745 | ||
d55e5bfc RD |
1746 | def RefreshLine(*args, **kwargs): |
1747 | """RefreshLine(self, size_t line)""" | |
1748 | return _windows_.VScrolledWindow_RefreshLine(*args, **kwargs) | |
1749 | ||
1750 | def RefreshLines(*args, **kwargs): | |
1751 | """RefreshLines(self, size_t from, size_t to)""" | |
1752 | return _windows_.VScrolledWindow_RefreshLines(*args, **kwargs) | |
1753 | ||
03ee685a | 1754 | def HitTestXY(*args, **kwargs): |
fc46b7f3 | 1755 | """HitTestXY(self, int x, int y) -> int""" |
03ee685a | 1756 | return _windows_.VScrolledWindow_HitTestXY(*args, **kwargs) |
d55e5bfc RD |
1757 | |
1758 | def HitTest(*args, **kwargs): | |
fc46b7f3 | 1759 | """HitTest(self, Point pt) -> int""" |
d55e5bfc RD |
1760 | return _windows_.VScrolledWindow_HitTest(*args, **kwargs) |
1761 | ||
1762 | def RefreshAll(*args, **kwargs): | |
1763 | """RefreshAll(self)""" | |
1764 | return _windows_.VScrolledWindow_RefreshAll(*args, **kwargs) | |
1765 | ||
1766 | def GetLineCount(*args, **kwargs): | |
1767 | """GetLineCount(self) -> size_t""" | |
1768 | return _windows_.VScrolledWindow_GetLineCount(*args, **kwargs) | |
1769 | ||
7993762b RD |
1770 | def GetVisibleBegin(*args, **kwargs): |
1771 | """GetVisibleBegin(self) -> size_t""" | |
1772 | return _windows_.VScrolledWindow_GetVisibleBegin(*args, **kwargs) | |
1773 | ||
1774 | def GetVisibleEnd(*args, **kwargs): | |
1775 | """GetVisibleEnd(self) -> size_t""" | |
1776 | return _windows_.VScrolledWindow_GetVisibleEnd(*args, **kwargs) | |
1777 | ||
1778 | def IsVisible(*args, **kwargs): | |
1779 | """IsVisible(self, size_t line) -> bool""" | |
1780 | return _windows_.VScrolledWindow_IsVisible(*args, **kwargs) | |
1781 | ||
d55e5bfc RD |
1782 | def GetFirstVisibleLine(*args, **kwargs): |
1783 | """GetFirstVisibleLine(self) -> size_t""" | |
1784 | return _windows_.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs) | |
1785 | ||
1786 | def GetLastVisibleLine(*args, **kwargs): | |
1787 | """GetLastVisibleLine(self) -> size_t""" | |
1788 | return _windows_.VScrolledWindow_GetLastVisibleLine(*args, **kwargs) | |
1789 | ||
1bd55598 RD |
1790 | def FindFirstFromBottom(*args, **kwargs): |
1791 | """FindFirstFromBottom(self, size_t lineLast, bool fullyVisible=False) -> size_t""" | |
1792 | return _windows_.VScrolledWindow_FindFirstFromBottom(*args, **kwargs) | |
d55e5bfc | 1793 | |
1bd55598 RD |
1794 | def GetLinesHeight(*args, **kwargs): |
1795 | """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int""" | |
1796 | return _windows_.VScrolledWindow_GetLinesHeight(*args, **kwargs) | |
1797 | ||
2131d850 | 1798 | _windows_.VScrolledWindow_swigregister(VScrolledWindow) |
d55e5bfc RD |
1799 | |
1800 | def PreVScrolledWindow(*args, **kwargs): | |
1801 | """PreVScrolledWindow() -> VScrolledWindow""" | |
1802 | val = _windows_.new_PreVScrolledWindow(*args, **kwargs) | |
d55e5bfc RD |
1803 | return val |
1804 | ||
1805 | class VListBox(VScrolledWindow): | |
36ed4f51 | 1806 | """Proxy of C++ VListBox class""" |
1bd55598 RD |
1807 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1808 | __repr__ = _swig_repr | |
1809 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
1810 | """ |
1811 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1812 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox | |
1813 | """ | |
1bd55598 | 1814 | _windows_.VListBox_swiginit(self,_windows_.new_VListBox(*args, **kwargs)) |
d55e5bfc RD |
1815 | self._setOORInfo(self);self._setCallbackInfo(self, VListBox) |
1816 | ||
1817 | def _setCallbackInfo(*args, **kwargs): | |
1818 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
1819 | return _windows_.VListBox__setCallbackInfo(*args, **kwargs) | |
1820 | ||
1821 | def Create(*args, **kwargs): | |
1822 | """ | |
1823 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1824 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool | |
1825 | """ | |
1826 | return _windows_.VListBox_Create(*args, **kwargs) | |
1827 | ||
1828 | def GetItemCount(*args, **kwargs): | |
1829 | """GetItemCount(self) -> size_t""" | |
1830 | return _windows_.VListBox_GetItemCount(*args, **kwargs) | |
1831 | ||
1832 | def HasMultipleSelection(*args, **kwargs): | |
1833 | """HasMultipleSelection(self) -> bool""" | |
1834 | return _windows_.VListBox_HasMultipleSelection(*args, **kwargs) | |
1835 | ||
1836 | def GetSelection(*args, **kwargs): | |
1837 | """GetSelection(self) -> int""" | |
1838 | return _windows_.VListBox_GetSelection(*args, **kwargs) | |
1839 | ||
1840 | def IsCurrent(*args, **kwargs): | |
1841 | """IsCurrent(self, size_t item) -> bool""" | |
1842 | return _windows_.VListBox_IsCurrent(*args, **kwargs) | |
1843 | ||
1844 | def IsSelected(*args, **kwargs): | |
1845 | """IsSelected(self, size_t item) -> bool""" | |
1846 | return _windows_.VListBox_IsSelected(*args, **kwargs) | |
1847 | ||
1848 | def GetSelectedCount(*args, **kwargs): | |
1849 | """GetSelectedCount(self) -> size_t""" | |
1850 | return _windows_.VListBox_GetSelectedCount(*args, **kwargs) | |
1851 | ||
1852 | def GetFirstSelected(*args, **kwargs): | |
09c21d3b | 1853 | """GetFirstSelected(self) -> PyObject""" |
d55e5bfc RD |
1854 | return _windows_.VListBox_GetFirstSelected(*args, **kwargs) |
1855 | ||
1856 | def GetNextSelected(*args, **kwargs): | |
09c21d3b | 1857 | """GetNextSelected(self, unsigned long cookie) -> PyObject""" |
d55e5bfc RD |
1858 | return _windows_.VListBox_GetNextSelected(*args, **kwargs) |
1859 | ||
1860 | def GetMargins(*args, **kwargs): | |
1861 | """GetMargins(self) -> Point""" | |
1862 | return _windows_.VListBox_GetMargins(*args, **kwargs) | |
1863 | ||
1864 | def GetSelectionBackground(*args, **kwargs): | |
1865 | """GetSelectionBackground(self) -> Colour""" | |
1866 | return _windows_.VListBox_GetSelectionBackground(*args, **kwargs) | |
1867 | ||
1868 | def SetItemCount(*args, **kwargs): | |
1869 | """SetItemCount(self, size_t count)""" | |
1870 | return _windows_.VListBox_SetItemCount(*args, **kwargs) | |
1871 | ||
1872 | def Clear(*args, **kwargs): | |
1873 | """Clear(self)""" | |
1874 | return _windows_.VListBox_Clear(*args, **kwargs) | |
1875 | ||
1876 | def SetSelection(*args, **kwargs): | |
1877 | """SetSelection(self, int selection)""" | |
1878 | return _windows_.VListBox_SetSelection(*args, **kwargs) | |
1879 | ||
1880 | def Select(*args, **kwargs): | |
1881 | """Select(self, size_t item, bool select=True) -> bool""" | |
1882 | return _windows_.VListBox_Select(*args, **kwargs) | |
1883 | ||
1884 | def SelectRange(*args, **kwargs): | |
1885 | """SelectRange(self, size_t from, size_t to) -> bool""" | |
1886 | return _windows_.VListBox_SelectRange(*args, **kwargs) | |
1887 | ||
1888 | def Toggle(*args, **kwargs): | |
1889 | """Toggle(self, size_t item)""" | |
1890 | return _windows_.VListBox_Toggle(*args, **kwargs) | |
1891 | ||
1892 | def SelectAll(*args, **kwargs): | |
1893 | """SelectAll(self) -> bool""" | |
1894 | return _windows_.VListBox_SelectAll(*args, **kwargs) | |
1895 | ||
1896 | def DeselectAll(*args, **kwargs): | |
1897 | """DeselectAll(self) -> bool""" | |
1898 | return _windows_.VListBox_DeselectAll(*args, **kwargs) | |
1899 | ||
1900 | def SetMargins(*args, **kwargs): | |
1901 | """SetMargins(self, Point pt)""" | |
1902 | return _windows_.VListBox_SetMargins(*args, **kwargs) | |
1903 | ||
1904 | def SetMarginsXY(*args, **kwargs): | |
1905 | """SetMarginsXY(self, int x, int y)""" | |
1906 | return _windows_.VListBox_SetMarginsXY(*args, **kwargs) | |
1907 | ||
1908 | def SetSelectionBackground(*args, **kwargs): | |
1909 | """SetSelectionBackground(self, Colour col)""" | |
1910 | return _windows_.VListBox_SetSelectionBackground(*args, **kwargs) | |
1911 | ||
1c71765a RD |
1912 | def OnDrawSeparator(*args, **kwargs): |
1913 | """OnDrawSeparator(self, DC dc, Rect rect, size_t n)""" | |
1914 | return _windows_.VListBox_OnDrawSeparator(*args, **kwargs) | |
1915 | ||
1916 | def OnDrawBackground(*args, **kwargs): | |
1917 | """OnDrawBackground(self, DC dc, Rect rect, size_t n)""" | |
1918 | return _windows_.VListBox_OnDrawBackground(*args, **kwargs) | |
1919 | ||
2131d850 | 1920 | _windows_.VListBox_swigregister(VListBox) |
d55e5bfc RD |
1921 | VListBoxNameStr = cvar.VListBoxNameStr |
1922 | ||
1923 | def PreVListBox(*args, **kwargs): | |
1924 | """PreVListBox() -> VListBox""" | |
1925 | val = _windows_.new_PreVListBox(*args, **kwargs) | |
d55e5bfc RD |
1926 | return val |
1927 | ||
1928 | class HtmlListBox(VListBox): | |
36ed4f51 | 1929 | """Proxy of C++ HtmlListBox class""" |
1bd55598 RD |
1930 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1931 | __repr__ = _swig_repr | |
1932 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
1933 | """ |
1934 | __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1935 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox | |
1936 | """ | |
1bd55598 | 1937 | _windows_.HtmlListBox_swiginit(self,_windows_.new_HtmlListBox(*args, **kwargs)) |
d55e5bfc RD |
1938 | self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox) |
1939 | ||
1940 | def _setCallbackInfo(*args, **kwargs): | |
1941 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
1942 | return _windows_.HtmlListBox__setCallbackInfo(*args, **kwargs) | |
1943 | ||
1944 | def Create(*args, **kwargs): | |
1945 | """ | |
1946 | Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition, | |
1947 | Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool | |
1948 | """ | |
1949 | return _windows_.HtmlListBox_Create(*args, **kwargs) | |
1950 | ||
d55e5bfc RD |
1951 | def SetItemCount(*args, **kwargs): |
1952 | """SetItemCount(self, size_t count)""" | |
1953 | return _windows_.HtmlListBox_SetItemCount(*args, **kwargs) | |
1954 | ||
d6c14a4c RD |
1955 | def GetFileSystem(*args, **kwargs): |
1956 | """GetFileSystem(self) -> FileSystem""" | |
1957 | return _windows_.HtmlListBox_GetFileSystem(*args, **kwargs) | |
1958 | ||
e9d6f3a4 RD |
1959 | def OnLinkClicked(*args, **kwargs): |
1960 | """OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)""" | |
1961 | return _windows_.HtmlListBox_OnLinkClicked(*args, **kwargs) | |
1962 | ||
2131d850 | 1963 | _windows_.HtmlListBox_swigregister(HtmlListBox) |
d55e5bfc RD |
1964 | |
1965 | def PreHtmlListBox(*args, **kwargs): | |
1966 | """PreHtmlListBox() -> HtmlListBox""" | |
1967 | val = _windows_.new_PreHtmlListBox(*args, **kwargs) | |
d55e5bfc RD |
1968 | return val |
1969 | ||
1970 | #--------------------------------------------------------------------------- | |
1971 | ||
1972 | class TaskBarIcon(_core.EvtHandler): | |
36ed4f51 | 1973 | """Proxy of C++ TaskBarIcon class""" |
1bd55598 RD |
1974 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
1975 | __repr__ = _swig_repr | |
1976 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 1977 | """__init__(self) -> TaskBarIcon""" |
1bd55598 | 1978 | _windows_.TaskBarIcon_swiginit(self,_windows_.new_TaskBarIcon(*args, **kwargs)) |
5e483524 RD |
1979 | self._setCallbackInfo(self, TaskBarIcon, 0) |
1980 | ||
1bd55598 RD |
1981 | __swig_destroy__ = _windows_.delete_TaskBarIcon |
1982 | __del__ = lambda self : None; | |
5e483524 RD |
1983 | def _setCallbackInfo(*args, **kwargs): |
1984 | """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)""" | |
1985 | return _windows_.TaskBarIcon__setCallbackInfo(*args, **kwargs) | |
d55e5bfc RD |
1986 | |
1987 | def Destroy(*args, **kwargs): | |
1988 | """ | |
1989 | Destroy(self) | |
1990 | ||
1991 | Deletes the C++ object this Python object is a proxy for. | |
1992 | """ | |
7e08d4ef RD |
1993 | val = _windows_.TaskBarIcon_Destroy(*args, **kwargs) |
1994 | args[0].thisown = 0 | |
1995 | return val | |
d55e5bfc | 1996 | |
b411df4a RD |
1997 | def IsOk(*args, **kwargs): |
1998 | """IsOk(self) -> bool""" | |
1999 | return _windows_.TaskBarIcon_IsOk(*args, **kwargs) | |
2000 | ||
2001 | def __nonzero__(self): return self.IsOk() | |
2002 | def IsIconInstalled(*args, **kwargs): | |
2003 | """IsIconInstalled(self) -> bool""" | |
2004 | return _windows_.TaskBarIcon_IsIconInstalled(*args, **kwargs) | |
2005 | ||
2006 | def SetIcon(*args, **kwargs): | |
2007 | """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool""" | |
2008 | return _windows_.TaskBarIcon_SetIcon(*args, **kwargs) | |
2009 | ||
2010 | def RemoveIcon(*args, **kwargs): | |
2011 | """RemoveIcon(self) -> bool""" | |
2012 | return _windows_.TaskBarIcon_RemoveIcon(*args, **kwargs) | |
2013 | ||
2014 | def PopupMenu(*args, **kwargs): | |
2015 | """PopupMenu(self, Menu menu) -> bool""" | |
2016 | return _windows_.TaskBarIcon_PopupMenu(*args, **kwargs) | |
2017 | ||
2131d850 | 2018 | _windows_.TaskBarIcon_swigregister(TaskBarIcon) |
d55e5bfc RD |
2019 | |
2020 | class TaskBarIconEvent(_core.Event): | |
36ed4f51 | 2021 | """Proxy of C++ TaskBarIconEvent class""" |
1bd55598 RD |
2022 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2023 | __repr__ = _swig_repr | |
2024 | def __init__(self, *args, **kwargs): | |
2131d850 | 2025 | """__init__(self, EventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent""" |
1bd55598 | 2026 | _windows_.TaskBarIconEvent_swiginit(self,_windows_.new_TaskBarIconEvent(*args, **kwargs)) |
2131d850 | 2027 | _windows_.TaskBarIconEvent_swigregister(TaskBarIconEvent) |
d55e5bfc RD |
2028 | |
2029 | wxEVT_TASKBAR_MOVE = _windows_.wxEVT_TASKBAR_MOVE | |
2030 | wxEVT_TASKBAR_LEFT_DOWN = _windows_.wxEVT_TASKBAR_LEFT_DOWN | |
2031 | wxEVT_TASKBAR_LEFT_UP = _windows_.wxEVT_TASKBAR_LEFT_UP | |
2032 | wxEVT_TASKBAR_RIGHT_DOWN = _windows_.wxEVT_TASKBAR_RIGHT_DOWN | |
2033 | wxEVT_TASKBAR_RIGHT_UP = _windows_.wxEVT_TASKBAR_RIGHT_UP | |
2034 | wxEVT_TASKBAR_LEFT_DCLICK = _windows_.wxEVT_TASKBAR_LEFT_DCLICK | |
2035 | wxEVT_TASKBAR_RIGHT_DCLICK = _windows_.wxEVT_TASKBAR_RIGHT_DCLICK | |
2036 | EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE ) | |
2037 | EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN ) | |
2038 | EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP ) | |
2039 | EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN ) | |
2040 | EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP ) | |
2041 | EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK ) | |
2042 | EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK ) | |
2043 | ||
2044 | #--------------------------------------------------------------------------- | |
2045 | ||
2046 | class ColourData(_core.Object): | |
d6c14a4c RD |
2047 | """ |
2048 | This class holds a variety of information related to the colour | |
2049 | chooser dialog, used to transfer settings and results to and from the | |
2050 | `wx.ColourDialog`. | |
2051 | """ | |
1bd55598 RD |
2052 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2053 | __repr__ = _swig_repr | |
2054 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2055 | """ |
2056 | __init__(self) -> ColourData | |
2057 | ||
2058 | Constructor, sets default values. | |
2059 | """ | |
1bd55598 RD |
2060 | _windows_.ColourData_swiginit(self,_windows_.new_ColourData(*args, **kwargs)) |
2061 | __swig_destroy__ = _windows_.delete_ColourData | |
2062 | __del__ = lambda self : None; | |
d55e5bfc RD |
2063 | def GetChooseFull(*args, **kwargs): |
2064 | """ | |
2065 | GetChooseFull(self) -> bool | |
2066 | ||
d6c14a4c RD |
2067 | Under Windows, determines whether the Windows colour dialog will |
2068 | display the full dialog with custom colour selection controls. Has no | |
2069 | meaning under other platforms. The default value is true. | |
d55e5bfc RD |
2070 | """ |
2071 | return _windows_.ColourData_GetChooseFull(*args, **kwargs) | |
2072 | ||
2073 | def GetColour(*args, **kwargs): | |
2074 | """ | |
2075 | GetColour(self) -> Colour | |
2076 | ||
2077 | Gets the colour (pre)selected by the dialog. | |
2078 | """ | |
2079 | return _windows_.ColourData_GetColour(*args, **kwargs) | |
2080 | ||
2081 | def GetCustomColour(*args, **kwargs): | |
2082 | """ | |
2083 | GetCustomColour(self, int i) -> Colour | |
2084 | ||
d6c14a4c RD |
2085 | Gets the i'th custom colour associated with the colour dialog. i |
2086 | should be an integer between 0 and 15. The default custom colours are | |
bfddbb17 | 2087 | all invalid colours. |
d55e5bfc RD |
2088 | """ |
2089 | return _windows_.ColourData_GetCustomColour(*args, **kwargs) | |
2090 | ||
2091 | def SetChooseFull(*args, **kwargs): | |
2092 | """ | |
2093 | SetChooseFull(self, int flag) | |
2094 | ||
d6c14a4c RD |
2095 | Under Windows, tells the Windows colour dialog to display the full |
2096 | dialog with custom colour selection controls. Under other platforms, | |
2097 | has no effect. The default value is true. | |
d55e5bfc RD |
2098 | """ |
2099 | return _windows_.ColourData_SetChooseFull(*args, **kwargs) | |
2100 | ||
2101 | def SetColour(*args, **kwargs): | |
2102 | """ | |
2103 | SetColour(self, Colour colour) | |
2104 | ||
d6c14a4c RD |
2105 | Sets the default colour for the colour dialog. The default colour is |
2106 | black. | |
d55e5bfc RD |
2107 | """ |
2108 | return _windows_.ColourData_SetColour(*args, **kwargs) | |
2109 | ||
2110 | def SetCustomColour(*args, **kwargs): | |
2111 | """ | |
2112 | SetCustomColour(self, int i, Colour colour) | |
2113 | ||
d6c14a4c | 2114 | Sets the i'th custom colour for the colour dialog. i should be an |
bfddbb17 | 2115 | integer between 0 and 15. The default custom colours are all invalid colours. |
d55e5bfc RD |
2116 | """ |
2117 | return _windows_.ColourData_SetCustomColour(*args, **kwargs) | |
2118 | ||
2bf58437 RD |
2119 | ChooseFull = property(GetChooseFull,SetChooseFull,doc="See `GetChooseFull` and `SetChooseFull`") |
2120 | Colour = property(GetColour,SetColour,doc="See `GetColour` and `SetColour`") | |
2121 | CustomColour = property(GetCustomColour,SetCustomColour,doc="See `GetCustomColour` and `SetCustomColour`") | |
2131d850 | 2122 | _windows_.ColourData_swigregister(ColourData) |
d55e5bfc RD |
2123 | FileSelectorPromptStr = cvar.FileSelectorPromptStr |
2124 | DirSelectorPromptStr = cvar.DirSelectorPromptStr | |
2125 | DirDialogNameStr = cvar.DirDialogNameStr | |
2126 | FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr | |
2127 | GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr | |
2128 | MessageBoxCaptionStr = cvar.MessageBoxCaptionStr | |
2129 | ||
2130 | class ColourDialog(Dialog): | |
2131 | """This class represents the colour chooser dialog.""" | |
1bd55598 RD |
2132 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2133 | __repr__ = _swig_repr | |
2134 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2135 | """ |
2136 | __init__(self, Window parent, ColourData data=None) -> ColourDialog | |
2137 | ||
d6c14a4c RD |
2138 | Constructor. Pass a parent window, and optionally a `wx.ColourData`, |
2139 | which will be copied to the colour dialog's internal ColourData | |
2140 | instance. | |
d55e5bfc | 2141 | """ |
1bd55598 | 2142 | _windows_.ColourDialog_swiginit(self,_windows_.new_ColourDialog(*args, **kwargs)) |
d55e5bfc RD |
2143 | self._setOORInfo(self) |
2144 | ||
2145 | def GetColourData(*args, **kwargs): | |
2146 | """ | |
2147 | GetColourData(self) -> ColourData | |
2148 | ||
d6c14a4c | 2149 | Returns a reference to the `wx.ColourData` used by the dialog. |
d55e5bfc RD |
2150 | """ |
2151 | return _windows_.ColourDialog_GetColourData(*args, **kwargs) | |
2152 | ||
2bf58437 | 2153 | ColourData = property(GetColourData,doc="See `GetColourData`") |
2131d850 | 2154 | _windows_.ColourDialog_swigregister(ColourDialog) |
d55e5bfc | 2155 | |
32fe5131 RD |
2156 | |
2157 | def GetColourFromUser(*args, **kwargs): | |
1bd55598 | 2158 | """ |
32fe5131 RD |
2159 | GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour, |
2160 | String caption=EmptyString) -> Colour | |
2161 | """ | |
1bd55598 | 2162 | return _windows_.GetColourFromUser(*args, **kwargs) |
704eda0c RD |
2163 | DD_NEW_DIR_BUTTON = _windows_.DD_NEW_DIR_BUTTON |
2164 | DD_DEFAULT_STYLE = _windows_.DD_DEFAULT_STYLE | |
2165 | DD_CHANGE_DIR = _windows_.DD_CHANGE_DIR | |
d55e5bfc | 2166 | class DirDialog(Dialog): |
d6c14a4c RD |
2167 | """ |
2168 | wx.DirDialog allows the user to select a directory by browising the | |
2169 | file system. | |
d6c14a4c | 2170 | """ |
1bd55598 RD |
2171 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2172 | __repr__ = _swig_repr | |
2173 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2174 | """ |
2175 | __init__(self, Window parent, String message=DirSelectorPromptStr, | |
704eda0c | 2176 | String defaultPath=EmptyString, long style=DD_DEFAULT_STYLE, |
d55e5bfc RD |
2177 | Point pos=DefaultPosition, Size size=DefaultSize, |
2178 | String name=DirDialogNameStr) -> DirDialog | |
2179 | ||
2180 | Constructor. Use ShowModal method to show the dialog. | |
2181 | """ | |
1bd55598 | 2182 | _windows_.DirDialog_swiginit(self,_windows_.new_DirDialog(*args, **kwargs)) |
d55e5bfc RD |
2183 | self._setOORInfo(self) |
2184 | ||
2185 | def GetPath(*args, **kwargs): | |
2186 | """ | |
2187 | GetPath(self) -> String | |
2188 | ||
2189 | Returns the default or user-selected path. | |
2190 | """ | |
2191 | return _windows_.DirDialog_GetPath(*args, **kwargs) | |
2192 | ||
2193 | def GetMessage(*args, **kwargs): | |
2194 | """ | |
2195 | GetMessage(self) -> String | |
2196 | ||
2197 | Returns the message that will be displayed on the dialog. | |
2198 | """ | |
2199 | return _windows_.DirDialog_GetMessage(*args, **kwargs) | |
2200 | ||
d55e5bfc RD |
2201 | def SetMessage(*args, **kwargs): |
2202 | """ | |
2203 | SetMessage(self, String message) | |
2204 | ||
2205 | Sets the message that will be displayed on the dialog. | |
2206 | """ | |
2207 | return _windows_.DirDialog_SetMessage(*args, **kwargs) | |
2208 | ||
2209 | def SetPath(*args, **kwargs): | |
2210 | """ | |
2211 | SetPath(self, String path) | |
2212 | ||
2213 | Sets the default path. | |
2214 | """ | |
2215 | return _windows_.DirDialog_SetPath(*args, **kwargs) | |
2216 | ||
2bf58437 RD |
2217 | Message = property(GetMessage,SetMessage,doc="See `GetMessage` and `SetMessage`") |
2218 | Path = property(GetPath,SetPath,doc="See `GetPath` and `SetPath`") | |
2131d850 | 2219 | _windows_.DirDialog_swigregister(DirDialog) |
d55e5bfc | 2220 | |
704eda0c RD |
2221 | OPEN = _windows_.OPEN |
2222 | SAVE = _windows_.SAVE | |
2223 | OVERWRITE_PROMPT = _windows_.OVERWRITE_PROMPT | |
2224 | FILE_MUST_EXIST = _windows_.FILE_MUST_EXIST | |
2225 | MULTIPLE = _windows_.MULTIPLE | |
2226 | CHANGE_DIR = _windows_.CHANGE_DIR | |
b02396e8 | 2227 | HIDE_READONLY = _windows_.HIDE_READONLY |
704eda0c RD |
2228 | FD_OPEN = _windows_.FD_OPEN |
2229 | FD_SAVE = _windows_.FD_SAVE | |
2230 | FD_OVERWRITE_PROMPT = _windows_.FD_OVERWRITE_PROMPT | |
2231 | FD_FILE_MUST_EXIST = _windows_.FD_FILE_MUST_EXIST | |
2232 | FD_MULTIPLE = _windows_.FD_MULTIPLE | |
2233 | FD_CHANGE_DIR = _windows_.FD_CHANGE_DIR | |
1eeb270e | 2234 | FD_PREVIEW = _windows_.FD_PREVIEW |
704eda0c | 2235 | FD_DEFAULT_STYLE = _windows_.FD_DEFAULT_STYLE |
d55e5bfc | 2236 | class FileDialog(Dialog): |
d6c14a4c RD |
2237 | """ |
2238 | wx.FileDialog allows the user to select one or more files from the | |
2239 | filesystem. | |
d6c14a4c | 2240 | """ |
1bd55598 RD |
2241 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2242 | __repr__ = _swig_repr | |
2243 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2244 | """ |
2245 | __init__(self, Window parent, String message=FileSelectorPromptStr, | |
2246 | String defaultDir=EmptyString, String defaultFile=EmptyString, | |
2247 | String wildcard=FileSelectorDefaultWildcardStr, | |
704eda0c RD |
2248 | long style=FD_DEFAULT_STYLE, |
2249 | Point pos=DefaultPosition) -> FileDialog | |
d55e5bfc RD |
2250 | |
2251 | Constructor. Use ShowModal method to show the dialog. | |
2252 | """ | |
1bd55598 | 2253 | _windows_.FileDialog_swiginit(self,_windows_.new_FileDialog(*args, **kwargs)) |
d55e5bfc RD |
2254 | self._setOORInfo(self) |
2255 | ||
2256 | def SetMessage(*args, **kwargs): | |
2257 | """ | |
2258 | SetMessage(self, String message) | |
2259 | ||
2260 | Sets the message that will be displayed on the dialog. | |
2261 | """ | |
2262 | return _windows_.FileDialog_SetMessage(*args, **kwargs) | |
2263 | ||
2264 | def SetPath(*args, **kwargs): | |
2265 | """ | |
2266 | SetPath(self, String path) | |
2267 | ||
d6c14a4c RD |
2268 | Sets the path (the combined directory and filename that will be |
2269 | returned when the dialog is dismissed). | |
d55e5bfc RD |
2270 | """ |
2271 | return _windows_.FileDialog_SetPath(*args, **kwargs) | |
2272 | ||
2273 | def SetDirectory(*args, **kwargs): | |
2274 | """ | |
2275 | SetDirectory(self, String dir) | |
2276 | ||
2277 | Sets the default directory. | |
2278 | """ | |
2279 | return _windows_.FileDialog_SetDirectory(*args, **kwargs) | |
2280 | ||
2281 | def SetFilename(*args, **kwargs): | |
2282 | """ | |
2283 | SetFilename(self, String name) | |
2284 | ||
2285 | Sets the default filename. | |
2286 | """ | |
2287 | return _windows_.FileDialog_SetFilename(*args, **kwargs) | |
2288 | ||
2289 | def SetWildcard(*args, **kwargs): | |
2290 | """ | |
2291 | SetWildcard(self, String wildCard) | |
2292 | ||
d6c14a4c RD |
2293 | Sets the wildcard, which can contain multiple file types, for |
2294 | example:: | |
2295 | ||
d55e5bfc | 2296 | "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif" |
d6c14a4c | 2297 | |
d55e5bfc RD |
2298 | """ |
2299 | return _windows_.FileDialog_SetWildcard(*args, **kwargs) | |
2300 | ||
d55e5bfc RD |
2301 | def SetFilterIndex(*args, **kwargs): |
2302 | """ | |
2303 | SetFilterIndex(self, int filterIndex) | |
2304 | ||
2305 | Sets the default filter index, starting from zero. | |
2306 | """ | |
2307 | return _windows_.FileDialog_SetFilterIndex(*args, **kwargs) | |
2308 | ||
2309 | def GetMessage(*args, **kwargs): | |
2310 | """ | |
2311 | GetMessage(self) -> String | |
2312 | ||
2313 | Returns the message that will be displayed on the dialog. | |
2314 | """ | |
2315 | return _windows_.FileDialog_GetMessage(*args, **kwargs) | |
2316 | ||
2317 | def GetPath(*args, **kwargs): | |
2318 | """ | |
2319 | GetPath(self) -> String | |
2320 | ||
2321 | Returns the full path (directory and filename) of the selected file. | |
2322 | """ | |
2323 | return _windows_.FileDialog_GetPath(*args, **kwargs) | |
2324 | ||
2325 | def GetDirectory(*args, **kwargs): | |
2326 | """ | |
2327 | GetDirectory(self) -> String | |
2328 | ||
2329 | Returns the default directory. | |
2330 | """ | |
2331 | return _windows_.FileDialog_GetDirectory(*args, **kwargs) | |
2332 | ||
2333 | def GetFilename(*args, **kwargs): | |
2334 | """ | |
2335 | GetFilename(self) -> String | |
2336 | ||
2337 | Returns the default filename. | |
2338 | """ | |
2339 | return _windows_.FileDialog_GetFilename(*args, **kwargs) | |
2340 | ||
2341 | def GetWildcard(*args, **kwargs): | |
2342 | """ | |
2343 | GetWildcard(self) -> String | |
2344 | ||
2345 | Returns the file dialog wildcard. | |
2346 | """ | |
2347 | return _windows_.FileDialog_GetWildcard(*args, **kwargs) | |
2348 | ||
d55e5bfc RD |
2349 | def GetFilterIndex(*args, **kwargs): |
2350 | """ | |
2351 | GetFilterIndex(self) -> int | |
2352 | ||
2353 | Returns the index into the list of filters supplied, optionally, in | |
2354 | the wildcard parameter. Before the dialog is shown, this is the index | |
d6c14a4c RD |
2355 | which will be used when the dialog is first displayed. After the |
2356 | dialog is shown, this is the index selected by the user. | |
d55e5bfc RD |
2357 | """ |
2358 | return _windows_.FileDialog_GetFilterIndex(*args, **kwargs) | |
2359 | ||
2360 | def GetFilenames(*args, **kwargs): | |
2361 | """ | |
2362 | GetFilenames(self) -> PyObject | |
2363 | ||
d6c14a4c RD |
2364 | Returns a list of filenames chosen in the dialog. This function |
2365 | should only be used with the dialogs which have wx.MULTIPLE style, use | |
d55e5bfc RD |
2366 | GetFilename for the others. |
2367 | """ | |
2368 | return _windows_.FileDialog_GetFilenames(*args, **kwargs) | |
2369 | ||
2370 | def GetPaths(*args, **kwargs): | |
2371 | """ | |
2372 | GetPaths(self) -> PyObject | |
2373 | ||
2374 | Fills the array paths with the full paths of the files chosen. This | |
d6c14a4c RD |
2375 | function should only be used with the dialogs which have wx.MULTIPLE |
2376 | style, use GetPath for the others. | |
d55e5bfc RD |
2377 | """ |
2378 | return _windows_.FileDialog_GetPaths(*args, **kwargs) | |
2379 | ||
2131d850 | 2380 | _windows_.FileDialog_swigregister(FileDialog) |
d55e5bfc RD |
2381 | |
2382 | CHOICEDLG_STYLE = _windows_.CHOICEDLG_STYLE | |
2383 | class MultiChoiceDialog(Dialog): | |
2384 | """A simple dialog with a multi selection listbox.""" | |
1bd55598 RD |
2385 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2386 | __repr__ = _swig_repr | |
2387 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 2388 | """ |
034e3677 | 2389 | __init__(self, Window parent, String message, String caption, |
5dce5a9a | 2390 | List choices=EmptyList, long style=CHOICEDLG_STYLE, |
d55e5bfc RD |
2391 | Point pos=DefaultPosition) -> MultiChoiceDialog |
2392 | ||
034e3677 RD |
2393 | Constructor. Use the `ShowModal` method to show the dialog. |
2394 | ||
2395 | :param parent: The parent window. | |
2396 | :param message: Text to display above the list of selections. | |
2397 | :param caption: Text to use in the title bar of the dialog. | |
2398 | :param choices: A list of strings or unicode objects that the | |
2399 | user is allowed to choose from. | |
2400 | :param style: Styles to apply to the dialog. The default value is | |
2401 | equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER. | |
2402 | :param pos: Where to position the dialog (not used on Windows) | |
2403 | ||
2404 | ||
d55e5bfc | 2405 | """ |
1bd55598 | 2406 | _windows_.MultiChoiceDialog_swiginit(self,_windows_.new_MultiChoiceDialog(*args, **kwargs)) |
d55e5bfc RD |
2407 | self._setOORInfo(self) |
2408 | ||
2409 | def SetSelections(*args, **kwargs): | |
a001823c RD |
2410 | """ |
2411 | SetSelections(List selections) | |
2412 | ||
2413 | Specify the items in the list that should be selected, using a list of | |
034e3677 RD |
2414 | integers. The list should specify the indexes of the items that |
2415 | should be selected. | |
a001823c | 2416 | """ |
d55e5bfc RD |
2417 | return _windows_.MultiChoiceDialog_SetSelections(*args, **kwargs) |
2418 | ||
2419 | def GetSelections(*args, **kwargs): | |
2420 | """ | |
2421 | GetSelections() -> [selections] | |
2422 | ||
2423 | Returns a list of integers representing the items that are selected. | |
034e3677 | 2424 | If an item is selected then its index will appear in the list. |
d55e5bfc RD |
2425 | """ |
2426 | return _windows_.MultiChoiceDialog_GetSelections(*args, **kwargs) | |
2427 | ||
2131d850 | 2428 | _windows_.MultiChoiceDialog_swigregister(MultiChoiceDialog) |
d55e5bfc RD |
2429 | |
2430 | class SingleChoiceDialog(Dialog): | |
2431 | """A simple dialog with a single selection listbox.""" | |
1bd55598 RD |
2432 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2433 | __repr__ = _swig_repr | |
2434 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2435 | """ |
2436 | __init__(Window parent, String message, String caption, | |
5dce5a9a | 2437 | List choices=EmptyList, long style=CHOICEDLG_STYLE, |
d55e5bfc RD |
2438 | Point pos=DefaultPosition) -> SingleChoiceDialog |
2439 | ||
2440 | Constructor. Use ShowModal method to show the dialog. | |
2441 | """ | |
1bd55598 | 2442 | _windows_.SingleChoiceDialog_swiginit(self,_windows_.new_SingleChoiceDialog(*args, **kwargs)) |
d55e5bfc RD |
2443 | self._setOORInfo(self) |
2444 | ||
2445 | def GetSelection(*args, **kwargs): | |
2446 | """ | |
2447 | GetSelection(self) -> int | |
2448 | ||
1eeb270e | 2449 | Get the index of the currently selected item. |
d55e5bfc RD |
2450 | """ |
2451 | return _windows_.SingleChoiceDialog_GetSelection(*args, **kwargs) | |
2452 | ||
2453 | def GetStringSelection(*args, **kwargs): | |
2454 | """ | |
2455 | GetStringSelection(self) -> String | |
2456 | ||
2457 | Returns the string value of the currently selected item | |
2458 | """ | |
2459 | return _windows_.SingleChoiceDialog_GetStringSelection(*args, **kwargs) | |
2460 | ||
2461 | def SetSelection(*args, **kwargs): | |
2462 | """ | |
2463 | SetSelection(self, int sel) | |
2464 | ||
2465 | Set the current selected item to sel | |
2466 | """ | |
2467 | return _windows_.SingleChoiceDialog_SetSelection(*args, **kwargs) | |
2468 | ||
2131d850 | 2469 | _windows_.SingleChoiceDialog_swigregister(SingleChoiceDialog) |
d55e5bfc | 2470 | |
03e46024 | 2471 | TextEntryDialogStyle = _windows_.TextEntryDialogStyle |
d55e5bfc RD |
2472 | class TextEntryDialog(Dialog): |
2473 | """A dialog with text control, [ok] and [cancel] buttons""" | |
1bd55598 RD |
2474 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2475 | __repr__ = _swig_repr | |
2476 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2477 | """ |
2478 | __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr, | |
2479 | String defaultValue=EmptyString, | |
03e46024 | 2480 | long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog |
d55e5bfc RD |
2481 | |
2482 | Constructor. Use ShowModal method to show the dialog. | |
2483 | """ | |
1bd55598 | 2484 | _windows_.TextEntryDialog_swiginit(self,_windows_.new_TextEntryDialog(*args, **kwargs)) |
d55e5bfc RD |
2485 | self._setOORInfo(self) |
2486 | ||
2487 | def GetValue(*args, **kwargs): | |
2488 | """ | |
2489 | GetValue(self) -> String | |
2490 | ||
2491 | Returns the text that the user has entered if the user has pressed OK, | |
2492 | or the original value if the user has pressed Cancel. | |
2493 | """ | |
2494 | return _windows_.TextEntryDialog_GetValue(*args, **kwargs) | |
2495 | ||
2496 | def SetValue(*args, **kwargs): | |
2497 | """ | |
2498 | SetValue(self, String value) | |
2499 | ||
2500 | Sets the default text value. | |
2501 | """ | |
2502 | return _windows_.TextEntryDialog_SetValue(*args, **kwargs) | |
2503 | ||
2131d850 | 2504 | _windows_.TextEntryDialog_swigregister(TextEntryDialog) |
d55e5bfc | 2505 | |
070c48b4 | 2506 | class PasswordEntryDialog(TextEntryDialog): |
36ed4f51 | 2507 | """Proxy of C++ PasswordEntryDialog class""" |
1bd55598 RD |
2508 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2509 | __repr__ = _swig_repr | |
2510 | def __init__(self, *args, **kwargs): | |
070c48b4 RD |
2511 | """ |
2512 | __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr, | |
2513 | String value=EmptyString, | |
03e46024 | 2514 | long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog |
070c48b4 | 2515 | """ |
1bd55598 | 2516 | _windows_.PasswordEntryDialog_swiginit(self,_windows_.new_PasswordEntryDialog(*args, **kwargs)) |
2131d850 | 2517 | _windows_.PasswordEntryDialog_swigregister(PasswordEntryDialog) |
070c48b4 RD |
2518 | GetPasswordFromUserPromptStr = cvar.GetPasswordFromUserPromptStr |
2519 | ||
27e45892 RD |
2520 | class NumberEntryDialog(Dialog): |
2521 | """A dialog with spin control, ok and cancel buttons.""" | |
2522 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') | |
2523 | __repr__ = _swig_repr | |
2524 | def __init__(self, *args, **kwargs): | |
2525 | """ | |
2526 | __init__(self, Window parent, String message, String prompt, String caption, | |
2527 | long value, long min, long max, Point pos=DefaultPosition) -> NumberEntryDialog | |
2528 | ||
2529 | Constructor. Use ShowModal method to show the dialog. | |
2530 | """ | |
2531 | _windows_.NumberEntryDialog_swiginit(self,_windows_.new_NumberEntryDialog(*args, **kwargs)) | |
2532 | self._setOORInfo(self) | |
2533 | ||
2534 | def GetValue(*args, **kwargs): | |
2535 | """GetValue(self) -> long""" | |
2536 | return _windows_.NumberEntryDialog_GetValue(*args, **kwargs) | |
2537 | ||
2538 | _windows_.NumberEntryDialog_swigregister(NumberEntryDialog) | |
2539 | ||
d55e5bfc | 2540 | class FontData(_core.Object): |
d6c14a4c RD |
2541 | """ |
2542 | This class holds a variety of information related to font dialogs and | |
2543 | is used to transfer settings to and results from a `wx.FontDialog`. | |
2544 | """ | |
1bd55598 RD |
2545 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2546 | __repr__ = _swig_repr | |
2547 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2548 | """ |
2549 | __init__(self) -> FontData | |
2550 | ||
d6c14a4c RD |
2551 | This class holds a variety of information related to font dialogs and |
2552 | is used to transfer settings to and results from a `wx.FontDialog`. | |
d55e5bfc | 2553 | """ |
1bd55598 RD |
2554 | _windows_.FontData_swiginit(self,_windows_.new_FontData(*args, **kwargs)) |
2555 | __swig_destroy__ = _windows_.delete_FontData | |
2556 | __del__ = lambda self : None; | |
d55e5bfc RD |
2557 | def EnableEffects(*args, **kwargs): |
2558 | """ | |
2559 | EnableEffects(self, bool enable) | |
2560 | ||
d6c14a4c RD |
2561 | Enables or disables 'effects' under MS Windows only. This refers to |
2562 | the controls for manipulating colour, strikeout and underline | |
d55e5bfc RD |
2563 | properties. The default value is true. |
2564 | """ | |
2565 | return _windows_.FontData_EnableEffects(*args, **kwargs) | |
2566 | ||
2567 | def GetAllowSymbols(*args, **kwargs): | |
2568 | """ | |
2569 | GetAllowSymbols(self) -> bool | |
2570 | ||
d6c14a4c RD |
2571 | Under MS Windows, returns a flag determining whether symbol fonts can |
2572 | be selected. Has no effect on other platforms. The default value is | |
2573 | true. | |
d55e5bfc RD |
2574 | """ |
2575 | return _windows_.FontData_GetAllowSymbols(*args, **kwargs) | |
2576 | ||
2577 | def GetColour(*args, **kwargs): | |
2578 | """ | |
2579 | GetColour(self) -> Colour | |
2580 | ||
d6c14a4c RD |
2581 | Gets the colour associated with the font dialog. The default value is |
2582 | black. | |
d55e5bfc RD |
2583 | """ |
2584 | return _windows_.FontData_GetColour(*args, **kwargs) | |
2585 | ||
2586 | def GetChosenFont(*args, **kwargs): | |
2587 | """ | |
2588 | GetChosenFont(self) -> Font | |
2589 | ||
2590 | Gets the font chosen by the user. | |
2591 | """ | |
2592 | return _windows_.FontData_GetChosenFont(*args, **kwargs) | |
2593 | ||
2594 | def GetEnableEffects(*args, **kwargs): | |
2595 | """ | |
2596 | GetEnableEffects(self) -> bool | |
2597 | ||
2598 | Determines whether 'effects' are enabled under Windows. | |
2599 | """ | |
2600 | return _windows_.FontData_GetEnableEffects(*args, **kwargs) | |
2601 | ||
2602 | def GetInitialFont(*args, **kwargs): | |
2603 | """ | |
2604 | GetInitialFont(self) -> Font | |
2605 | ||
d6c14a4c RD |
2606 | Gets the font that will be initially used by the font dialog. This |
2607 | should have previously been set by the application. | |
d55e5bfc RD |
2608 | """ |
2609 | return _windows_.FontData_GetInitialFont(*args, **kwargs) | |
2610 | ||
2611 | def GetShowHelp(*args, **kwargs): | |
2612 | """ | |
2613 | GetShowHelp(self) -> bool | |
2614 | ||
d6c14a4c RD |
2615 | Returns true if the Help button will be shown (Windows only). The |
2616 | default value is false. | |
d55e5bfc RD |
2617 | """ |
2618 | return _windows_.FontData_GetShowHelp(*args, **kwargs) | |
2619 | ||
2620 | def SetAllowSymbols(*args, **kwargs): | |
2621 | """ | |
2622 | SetAllowSymbols(self, bool allowSymbols) | |
2623 | ||
d6c14a4c RD |
2624 | Under MS Windows, determines whether symbol fonts can be selected. Has |
2625 | no effect on other platforms. The default value is true. | |
d55e5bfc RD |
2626 | """ |
2627 | return _windows_.FontData_SetAllowSymbols(*args, **kwargs) | |
2628 | ||
2629 | def SetChosenFont(*args, **kwargs): | |
2630 | """ | |
2631 | SetChosenFont(self, Font font) | |
2632 | ||
d6c14a4c RD |
2633 | Sets the font that will be returned to the user (normally for internal |
2634 | use only). | |
d55e5bfc RD |
2635 | """ |
2636 | return _windows_.FontData_SetChosenFont(*args, **kwargs) | |
2637 | ||
2638 | def SetColour(*args, **kwargs): | |
2639 | """ | |
2640 | SetColour(self, Colour colour) | |
2641 | ||
d6c14a4c RD |
2642 | Sets the colour that will be used for the font foreground colour. The |
2643 | default colour is black. | |
d55e5bfc RD |
2644 | """ |
2645 | return _windows_.FontData_SetColour(*args, **kwargs) | |
2646 | ||
2647 | def SetInitialFont(*args, **kwargs): | |
2648 | """ | |
2649 | SetInitialFont(self, Font font) | |
2650 | ||
2651 | Sets the font that will be initially used by the font dialog. | |
2652 | """ | |
2653 | return _windows_.FontData_SetInitialFont(*args, **kwargs) | |
2654 | ||
2655 | def SetRange(*args, **kwargs): | |
2656 | """ | |
2657 | SetRange(self, int min, int max) | |
2658 | ||
d6c14a4c RD |
2659 | Sets the valid range for the font point size (Windows only). The |
2660 | default is 0, 0 (unrestricted range). | |
d55e5bfc RD |
2661 | """ |
2662 | return _windows_.FontData_SetRange(*args, **kwargs) | |
2663 | ||
2664 | def SetShowHelp(*args, **kwargs): | |
2665 | """ | |
2666 | SetShowHelp(self, bool showHelp) | |
2667 | ||
d6c14a4c RD |
2668 | Determines whether the Help button will be displayed in the font |
2669 | dialog (Windows only). The default value is false. | |
d55e5bfc RD |
2670 | """ |
2671 | return _windows_.FontData_SetShowHelp(*args, **kwargs) | |
2672 | ||
2131d850 | 2673 | _windows_.FontData_swigregister(FontData) |
d55e5bfc RD |
2674 | |
2675 | class FontDialog(Dialog): | |
d6c14a4c RD |
2676 | """ |
2677 | wx.FontDialog allows the user to select a system font and its attributes. | |
2678 | ||
2679 | :see: `wx.FontData` | |
2680 | ||
2681 | """ | |
1bd55598 RD |
2682 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2683 | __repr__ = _swig_repr | |
2684 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2685 | """ |
2686 | __init__(self, Window parent, FontData data) -> FontDialog | |
2687 | ||
d6c14a4c RD |
2688 | Constructor. Pass a parent window and the `wx.FontData` object to be |
2689 | used to initialize the dialog controls. Call `ShowModal` to display | |
2690 | the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the | |
2691 | results with via the `wx.FontData` returned by `GetFontData`. | |
d55e5bfc | 2692 | """ |
1bd55598 | 2693 | _windows_.FontDialog_swiginit(self,_windows_.new_FontDialog(*args, **kwargs)) |
d55e5bfc RD |
2694 | self._setOORInfo(self) |
2695 | ||
2696 | def GetFontData(*args, **kwargs): | |
2697 | """ | |
2698 | GetFontData(self) -> FontData | |
2699 | ||
d6c14a4c RD |
2700 | Returns a reference to the internal `wx.FontData` used by the |
2701 | wx.FontDialog. | |
d55e5bfc RD |
2702 | """ |
2703 | return _windows_.FontDialog_GetFontData(*args, **kwargs) | |
2704 | ||
2131d850 | 2705 | _windows_.FontDialog_swigregister(FontDialog) |
d55e5bfc | 2706 | |
32fe5131 RD |
2707 | |
2708 | def GetFontFromUser(*args, **kwargs): | |
1bd55598 RD |
2709 | """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font""" |
2710 | return _windows_.GetFontFromUser(*args, **kwargs) | |
d55e5bfc RD |
2711 | class MessageDialog(Dialog): |
2712 | """ | |
d6c14a4c RD |
2713 | This class provides a simple dialog that shows a single or multi-line |
2714 | message, with a choice of OK, Yes, No and/or Cancel buttons. | |
d55e5bfc | 2715 | """ |
1bd55598 RD |
2716 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2717 | __repr__ = _swig_repr | |
2718 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2719 | """ |
2720 | __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr, | |
2721 | long style=wxOK|wxCANCEL|wxCENTRE, | |
2722 | Point pos=DefaultPosition) -> MessageDialog | |
2723 | ||
d6c14a4c | 2724 | Constructor, use `ShowModal` to display the dialog. |
d55e5bfc | 2725 | """ |
1bd55598 | 2726 | _windows_.MessageDialog_swiginit(self,_windows_.new_MessageDialog(*args, **kwargs)) |
d55e5bfc RD |
2727 | self._setOORInfo(self) |
2728 | ||
2131d850 | 2729 | _windows_.MessageDialog_swigregister(MessageDialog) |
d55e5bfc RD |
2730 | |
2731 | class ProgressDialog(Frame): | |
2732 | """ | |
d6c14a4c RD |
2733 | A dialog that shows a short message and a progress bar. Optionally, it |
2734 | can display an ABORT button. | |
d55e5bfc | 2735 | """ |
1bd55598 RD |
2736 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2737 | __repr__ = _swig_repr | |
2738 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2739 | """ |
2740 | __init__(self, String title, String message, int maximum=100, Window parent=None, | |
2741 | int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog | |
2742 | ||
d6c14a4c RD |
2743 | Constructor. Creates the dialog, displays it and disables user input |
2744 | for other windows, or, if wx.PD_APP_MODAL flag is not given, for its | |
2745 | parent window only. | |
d55e5bfc | 2746 | """ |
1bd55598 | 2747 | _windows_.ProgressDialog_swiginit(self,_windows_.new_ProgressDialog(*args, **kwargs)) |
d55e5bfc RD |
2748 | self._setOORInfo(self) |
2749 | ||
2750 | def Update(*args, **kwargs): | |
2751 | """ | |
2131d850 | 2752 | Update(self, int value, String newmsg) --> (continue, skip) |
d55e5bfc | 2753 | |
d6c14a4c | 2754 | Updates the dialog, setting the progress bar to the new value and, if |
6923d0a9 RD |
2755 | given changes the message above it. The value given should be less |
2756 | than or equal to the maximum value given to the constructor and the | |
2131d850 RD |
2757 | dialog is closed if it is equal to the maximum. Returns a tuple of |
2758 | boolean values, ``(continue, skip)`` where ``continue`` is ``True`` | |
2759 | unless the Cancel button has been pressed, and ``skip`` is ``False`` | |
2760 | unless the Skip button (if any) has been pressed. | |
2761 | ||
2762 | If the ``continue`` return value is ``false``, the application can either | |
2763 | immediately destroy the dialog or ask the user for confirmation, and if the | |
2764 | abort is not confirmed the dialog may be resumed with `Resume` function. | |
d55e5bfc | 2765 | |
d55e5bfc RD |
2766 | """ |
2767 | return _windows_.ProgressDialog_Update(*args, **kwargs) | |
2768 | ||
2769 | def Resume(*args, **kwargs): | |
2770 | """ | |
2771 | Resume(self) | |
2772 | ||
d6c14a4c RD |
2773 | Can be used to continue with the dialog, after the user had chosen to |
2774 | abort. | |
d55e5bfc RD |
2775 | """ |
2776 | return _windows_.ProgressDialog_Resume(*args, **kwargs) | |
2777 | ||
2131d850 | 2778 | _windows_.ProgressDialog_swigregister(ProgressDialog) |
d55e5bfc RD |
2779 | |
2780 | FR_DOWN = _windows_.FR_DOWN | |
2781 | FR_WHOLEWORD = _windows_.FR_WHOLEWORD | |
2782 | FR_MATCHCASE = _windows_.FR_MATCHCASE | |
2783 | FR_REPLACEDIALOG = _windows_.FR_REPLACEDIALOG | |
2784 | FR_NOUPDOWN = _windows_.FR_NOUPDOWN | |
2785 | FR_NOMATCHCASE = _windows_.FR_NOMATCHCASE | |
2786 | FR_NOWHOLEWORD = _windows_.FR_NOWHOLEWORD | |
2787 | wxEVT_COMMAND_FIND = _windows_.wxEVT_COMMAND_FIND | |
2788 | wxEVT_COMMAND_FIND_NEXT = _windows_.wxEVT_COMMAND_FIND_NEXT | |
2789 | wxEVT_COMMAND_FIND_REPLACE = _windows_.wxEVT_COMMAND_FIND_REPLACE | |
2790 | wxEVT_COMMAND_FIND_REPLACE_ALL = _windows_.wxEVT_COMMAND_FIND_REPLACE_ALL | |
2791 | wxEVT_COMMAND_FIND_CLOSE = _windows_.wxEVT_COMMAND_FIND_CLOSE | |
2792 | EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 ) | |
2793 | EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 ) | |
2794 | EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 ) | |
2795 | EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 ) | |
2796 | EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 ) | |
2797 | ||
2798 | # For backwards compatibility. Should they be removed? | |
704eda0c | 2799 | EVT_COMMAND_FIND = EVT_FIND |
d55e5bfc RD |
2800 | EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT |
2801 | EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE | |
2802 | EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL | |
704eda0c | 2803 | EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE |
d55e5bfc RD |
2804 | |
2805 | class FindDialogEvent(_core.CommandEvent): | |
2806 | """Events for the FindReplaceDialog""" | |
1bd55598 RD |
2807 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2808 | __repr__ = _swig_repr | |
2809 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 2810 | """ |
2131d850 | 2811 | __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent |
d55e5bfc RD |
2812 | |
2813 | Events for the FindReplaceDialog | |
2814 | """ | |
1bd55598 | 2815 | _windows_.FindDialogEvent_swiginit(self,_windows_.new_FindDialogEvent(*args, **kwargs)) |
d55e5bfc RD |
2816 | def GetFlags(*args, **kwargs): |
2817 | """ | |
2818 | GetFlags(self) -> int | |
2819 | ||
2820 | Get the currently selected flags: this is the combination of | |
2821 | wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags. | |
2822 | """ | |
2823 | return _windows_.FindDialogEvent_GetFlags(*args, **kwargs) | |
2824 | ||
2825 | def GetFindString(*args, **kwargs): | |
2826 | """ | |
2827 | GetFindString(self) -> String | |
2828 | ||
2829 | Return the string to find (never empty). | |
2830 | """ | |
2831 | return _windows_.FindDialogEvent_GetFindString(*args, **kwargs) | |
2832 | ||
2833 | def GetReplaceString(*args, **kwargs): | |
2834 | """ | |
2835 | GetReplaceString(self) -> String | |
2836 | ||
d6c14a4c RD |
2837 | Return the string to replace the search string with (only for replace |
2838 | and replace all events). | |
d55e5bfc RD |
2839 | """ |
2840 | return _windows_.FindDialogEvent_GetReplaceString(*args, **kwargs) | |
2841 | ||
2842 | def GetDialog(*args, **kwargs): | |
2843 | """ | |
2844 | GetDialog(self) -> FindReplaceDialog | |
2845 | ||
2846 | Return the pointer to the dialog which generated this event. | |
2847 | """ | |
2848 | return _windows_.FindDialogEvent_GetDialog(*args, **kwargs) | |
2849 | ||
2850 | def SetFlags(*args, **kwargs): | |
2851 | """SetFlags(self, int flags)""" | |
2852 | return _windows_.FindDialogEvent_SetFlags(*args, **kwargs) | |
2853 | ||
2854 | def SetFindString(*args, **kwargs): | |
2855 | """SetFindString(self, String str)""" | |
2856 | return _windows_.FindDialogEvent_SetFindString(*args, **kwargs) | |
2857 | ||
2858 | def SetReplaceString(*args, **kwargs): | |
2859 | """SetReplaceString(self, String str)""" | |
2860 | return _windows_.FindDialogEvent_SetReplaceString(*args, **kwargs) | |
2861 | ||
2131d850 | 2862 | _windows_.FindDialogEvent_swigregister(FindDialogEvent) |
d55e5bfc RD |
2863 | |
2864 | class FindReplaceData(_core.Object): | |
2865 | """ | |
d6c14a4c RD |
2866 | wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used |
2867 | to initialize the dialog with the default values and will keep the | |
2868 | last values from the dialog when it is closed. It is also updated each | |
2869 | time a `wx.FindDialogEvent` is generated so instead of using the | |
2870 | `wx.FindDialogEvent` methods you can also directly query this object. | |
d55e5bfc | 2871 | |
d6c14a4c RD |
2872 | Note that all SetXXX() methods may only be called before showing the |
2873 | dialog and calling them has no effect later. | |
d55e5bfc | 2874 | """ |
1bd55598 RD |
2875 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2876 | __repr__ = _swig_repr | |
2877 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2878 | """ |
2879 | __init__(self, int flags=0) -> FindReplaceData | |
2880 | ||
2881 | Constuctor initializes the flags to default value (0). | |
2882 | """ | |
1bd55598 RD |
2883 | _windows_.FindReplaceData_swiginit(self,_windows_.new_FindReplaceData(*args, **kwargs)) |
2884 | __swig_destroy__ = _windows_.delete_FindReplaceData | |
2885 | __del__ = lambda self : None; | |
d55e5bfc RD |
2886 | def GetFindString(*args, **kwargs): |
2887 | """ | |
2888 | GetFindString(self) -> String | |
2889 | ||
2890 | Get the string to find. | |
2891 | """ | |
2892 | return _windows_.FindReplaceData_GetFindString(*args, **kwargs) | |
2893 | ||
2894 | def GetReplaceString(*args, **kwargs): | |
2895 | """ | |
2896 | GetReplaceString(self) -> String | |
2897 | ||
2898 | Get the replacement string. | |
2899 | """ | |
2900 | return _windows_.FindReplaceData_GetReplaceString(*args, **kwargs) | |
2901 | ||
2902 | def GetFlags(*args, **kwargs): | |
2903 | """ | |
2904 | GetFlags(self) -> int | |
2905 | ||
2906 | Get the combination of flag values. | |
2907 | """ | |
2908 | return _windows_.FindReplaceData_GetFlags(*args, **kwargs) | |
2909 | ||
2910 | def SetFlags(*args, **kwargs): | |
2911 | """ | |
2912 | SetFlags(self, int flags) | |
2913 | ||
2914 | Set the flags to use to initialize the controls of the dialog. | |
2915 | """ | |
2916 | return _windows_.FindReplaceData_SetFlags(*args, **kwargs) | |
2917 | ||
2918 | def SetFindString(*args, **kwargs): | |
2919 | """ | |
2920 | SetFindString(self, String str) | |
2921 | ||
2922 | Set the string to find (used as initial value by the dialog). | |
2923 | """ | |
2924 | return _windows_.FindReplaceData_SetFindString(*args, **kwargs) | |
2925 | ||
2926 | def SetReplaceString(*args, **kwargs): | |
2927 | """ | |
2928 | SetReplaceString(self, String str) | |
2929 | ||
2930 | Set the replacement string (used as initial value by the dialog). | |
2931 | """ | |
2932 | return _windows_.FindReplaceData_SetReplaceString(*args, **kwargs) | |
2933 | ||
2131d850 | 2934 | _windows_.FindReplaceData_swigregister(FindReplaceData) |
d55e5bfc RD |
2935 | |
2936 | class FindReplaceDialog(Dialog): | |
2937 | """ | |
d6c14a4c RD |
2938 | wx.FindReplaceDialog is a standard modeless dialog which is used to |
2939 | allow the user to search for some text (and possibly replace it with | |
2940 | something else). The actual searching is supposed to be done in the | |
2941 | owner window which is the parent of this dialog. Note that it means | |
2942 | that unlike for the other standard dialogs this one must have a parent | |
2943 | window. Also note that there is no way to use this dialog in a modal | |
2944 | way; it is always, by design and implementation, modeless. | |
d55e5bfc | 2945 | """ |
1bd55598 RD |
2946 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
2947 | __repr__ = _swig_repr | |
2948 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
2949 | """ |
2950 | __init__(self, Window parent, FindReplaceData data, String title, | |
2951 | int style=0) -> FindReplaceDialog | |
2952 | ||
2953 | Create a FindReplaceDialog. The parent and data parameters must be | |
2954 | non-None. Use Show to display the dialog. | |
2955 | """ | |
1bd55598 | 2956 | _windows_.FindReplaceDialog_swiginit(self,_windows_.new_FindReplaceDialog(*args, **kwargs)) |
d55e5bfc RD |
2957 | self._setOORInfo(self) |
2958 | ||
2959 | def Create(*args, **kwargs): | |
2960 | """ | |
2961 | Create(self, Window parent, FindReplaceData data, String title, | |
2962 | int style=0) -> bool | |
2963 | ||
2964 | Create the dialog, for 2-phase create. | |
2965 | """ | |
2966 | return _windows_.FindReplaceDialog_Create(*args, **kwargs) | |
2967 | ||
2968 | def GetData(*args, **kwargs): | |
2969 | """ | |
2970 | GetData(self) -> FindReplaceData | |
2971 | ||
2972 | Get the FindReplaceData object used by this dialog. | |
2973 | """ | |
2974 | return _windows_.FindReplaceDialog_GetData(*args, **kwargs) | |
2975 | ||
2976 | def SetData(*args, **kwargs): | |
2977 | """ | |
2978 | SetData(self, FindReplaceData data) | |
2979 | ||
2980 | Set the FindReplaceData object used by this dialog. | |
2981 | """ | |
2982 | return _windows_.FindReplaceDialog_SetData(*args, **kwargs) | |
2983 | ||
2131d850 | 2984 | _windows_.FindReplaceDialog_swigregister(FindReplaceDialog) |
d55e5bfc RD |
2985 | |
2986 | def PreFindReplaceDialog(*args, **kwargs): | |
2987 | """ | |
2988 | PreFindReplaceDialog() -> FindReplaceDialog | |
2989 | ||
2990 | Precreate a FindReplaceDialog for 2-phase creation | |
2991 | """ | |
2992 | val = _windows_.new_PreFindReplaceDialog(*args, **kwargs) | |
d55e5bfc RD |
2993 | return val |
2994 | ||
2995 | #--------------------------------------------------------------------------- | |
2996 | ||
2997 | IDM_WINDOWTILE = _windows_.IDM_WINDOWTILE | |
2998 | IDM_WINDOWTILEHOR = _windows_.IDM_WINDOWTILEHOR | |
2999 | IDM_WINDOWCASCADE = _windows_.IDM_WINDOWCASCADE | |
3000 | IDM_WINDOWICONS = _windows_.IDM_WINDOWICONS | |
3001 | IDM_WINDOWNEXT = _windows_.IDM_WINDOWNEXT | |
3002 | IDM_WINDOWTILEVERT = _windows_.IDM_WINDOWTILEVERT | |
24d7cbea | 3003 | IDM_WINDOWPREV = _windows_.IDM_WINDOWPREV |
d55e5bfc RD |
3004 | FIRST_MDI_CHILD = _windows_.FIRST_MDI_CHILD |
3005 | LAST_MDI_CHILD = _windows_.LAST_MDI_CHILD | |
3006 | class MDIParentFrame(Frame): | |
36ed4f51 | 3007 | """Proxy of C++ MDIParentFrame class""" |
1bd55598 RD |
3008 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3009 | __repr__ = _swig_repr | |
3010 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 3011 | """ |
bfddbb17 RD |
3012 | __init__(self, Window parent, int id=-1, String title=EmptyString, |
3013 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3014 | long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, | |
d55e5bfc RD |
3015 | String name=FrameNameStr) -> MDIParentFrame |
3016 | """ | |
1bd55598 | 3017 | _windows_.MDIParentFrame_swiginit(self,_windows_.new_MDIParentFrame(*args, **kwargs)) |
d55e5bfc RD |
3018 | self._setOORInfo(self) |
3019 | ||
3020 | def Create(*args, **kwargs): | |
3021 | """ | |
bfddbb17 RD |
3022 | Create(self, Window parent, int id=-1, String title=EmptyString, |
3023 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3024 | long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL, | |
d55e5bfc RD |
3025 | String name=FrameNameStr) -> bool |
3026 | """ | |
3027 | return _windows_.MDIParentFrame_Create(*args, **kwargs) | |
3028 | ||
3029 | def ActivateNext(*args, **kwargs): | |
3030 | """ActivateNext(self)""" | |
3031 | return _windows_.MDIParentFrame_ActivateNext(*args, **kwargs) | |
3032 | ||
3033 | def ActivatePrevious(*args, **kwargs): | |
3034 | """ActivatePrevious(self)""" | |
3035 | return _windows_.MDIParentFrame_ActivatePrevious(*args, **kwargs) | |
3036 | ||
3037 | def ArrangeIcons(*args, **kwargs): | |
3038 | """ArrangeIcons(self)""" | |
3039 | return _windows_.MDIParentFrame_ArrangeIcons(*args, **kwargs) | |
3040 | ||
3041 | def Cascade(*args, **kwargs): | |
3042 | """Cascade(self)""" | |
3043 | return _windows_.MDIParentFrame_Cascade(*args, **kwargs) | |
3044 | ||
3045 | def GetActiveChild(*args, **kwargs): | |
3046 | """GetActiveChild(self) -> MDIChildFrame""" | |
3047 | return _windows_.MDIParentFrame_GetActiveChild(*args, **kwargs) | |
3048 | ||
3049 | def GetClientWindow(*args, **kwargs): | |
3050 | """GetClientWindow(self) -> MDIClientWindow""" | |
3051 | return _windows_.MDIParentFrame_GetClientWindow(*args, **kwargs) | |
3052 | ||
3053 | def GetToolBar(*args, **kwargs): | |
3054 | """GetToolBar(self) -> Window""" | |
3055 | return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs) | |
3056 | ||
3057 | def Tile(*args, **kwargs): | |
3837a853 | 3058 | """Tile(self, int orient=HORIZONTAL)""" |
d55e5bfc RD |
3059 | return _windows_.MDIParentFrame_Tile(*args, **kwargs) |
3060 | ||
2131d850 | 3061 | _windows_.MDIParentFrame_swigregister(MDIParentFrame) |
d55e5bfc RD |
3062 | |
3063 | def PreMDIParentFrame(*args, **kwargs): | |
3064 | """PreMDIParentFrame() -> MDIParentFrame""" | |
3065 | val = _windows_.new_PreMDIParentFrame(*args, **kwargs) | |
d55e5bfc RD |
3066 | return val |
3067 | ||
3068 | class MDIChildFrame(Frame): | |
36ed4f51 | 3069 | """Proxy of C++ MDIChildFrame class""" |
1bd55598 RD |
3070 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3071 | __repr__ = _swig_repr | |
3072 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 3073 | """ |
bfddbb17 RD |
3074 | __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString, |
3075 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3076 | long style=DEFAULT_FRAME_STYLE, | |
d55e5bfc RD |
3077 | String name=FrameNameStr) -> MDIChildFrame |
3078 | """ | |
1bd55598 | 3079 | _windows_.MDIChildFrame_swiginit(self,_windows_.new_MDIChildFrame(*args, **kwargs)) |
d55e5bfc RD |
3080 | self._setOORInfo(self) |
3081 | ||
3082 | def Create(*args, **kwargs): | |
3083 | """ | |
bfddbb17 RD |
3084 | Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString, |
3085 | Point pos=DefaultPosition, Size size=DefaultSize, | |
3086 | long style=DEFAULT_FRAME_STYLE, | |
d55e5bfc RD |
3087 | String name=FrameNameStr) -> bool |
3088 | """ | |
3089 | return _windows_.MDIChildFrame_Create(*args, **kwargs) | |
3090 | ||
3091 | def Activate(*args, **kwargs): | |
3092 | """Activate(self)""" | |
3093 | return _windows_.MDIChildFrame_Activate(*args, **kwargs) | |
3094 | ||
2131d850 | 3095 | _windows_.MDIChildFrame_swigregister(MDIChildFrame) |
d55e5bfc RD |
3096 | |
3097 | def PreMDIChildFrame(*args, **kwargs): | |
3098 | """PreMDIChildFrame() -> MDIChildFrame""" | |
3099 | val = _windows_.new_PreMDIChildFrame(*args, **kwargs) | |
d55e5bfc RD |
3100 | return val |
3101 | ||
3102 | class MDIClientWindow(_core.Window): | |
36ed4f51 | 3103 | """Proxy of C++ MDIClientWindow class""" |
1bd55598 RD |
3104 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3105 | __repr__ = _swig_repr | |
3106 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 3107 | """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow""" |
1bd55598 | 3108 | _windows_.MDIClientWindow_swiginit(self,_windows_.new_MDIClientWindow(*args, **kwargs)) |
d55e5bfc RD |
3109 | self._setOORInfo(self) |
3110 | ||
3111 | def Create(*args, **kwargs): | |
3112 | """Create(self, MDIParentFrame parent, long style=0) -> bool""" | |
3113 | return _windows_.MDIClientWindow_Create(*args, **kwargs) | |
3114 | ||
2131d850 | 3115 | _windows_.MDIClientWindow_swigregister(MDIClientWindow) |
d55e5bfc RD |
3116 | |
3117 | def PreMDIClientWindow(*args, **kwargs): | |
3118 | """PreMDIClientWindow() -> MDIClientWindow""" | |
3119 | val = _windows_.new_PreMDIClientWindow(*args, **kwargs) | |
d55e5bfc RD |
3120 | return val |
3121 | ||
3122 | #--------------------------------------------------------------------------- | |
3123 | ||
3124 | class PyWindow(_core.Window): | |
36ed4f51 | 3125 | """Proxy of C++ PyWindow class""" |
1bd55598 RD |
3126 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3127 | __repr__ = _swig_repr | |
3128 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 3129 | """ |
bfddbb17 RD |
3130 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3131 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow | |
d55e5bfc | 3132 | """ |
1bd55598 | 3133 | _windows_.PyWindow_swiginit(self,_windows_.new_PyWindow(*args, **kwargs)) |
d55e5bfc RD |
3134 | self._setOORInfo(self); self._setCallbackInfo(self, PyWindow) |
3135 | ||
3136 | def _setCallbackInfo(*args, **kwargs): | |
3137 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
3138 | return _windows_.PyWindow__setCallbackInfo(*args, **kwargs) | |
3139 | ||
a5ee0656 RD |
3140 | def SetBestSize(*args, **kwargs): |
3141 | """SetBestSize(self, Size size)""" | |
3142 | return _windows_.PyWindow_SetBestSize(*args, **kwargs) | |
3143 | ||
976dbff5 RD |
3144 | def DoEraseBackground(*args, **kwargs): |
3145 | """DoEraseBackground(self, DC dc) -> bool""" | |
3146 | return _windows_.PyWindow_DoEraseBackground(*args, **kwargs) | |
3147 | ||
7f7aa166 RD |
3148 | def DoMoveWindow(*args, **kwargs): |
3149 | """DoMoveWindow(self, int x, int y, int width, int height)""" | |
3150 | return _windows_.PyWindow_DoMoveWindow(*args, **kwargs) | |
d55e5bfc | 3151 | |
7f7aa166 RD |
3152 | def DoSetSize(*args, **kwargs): |
3153 | """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
3154 | return _windows_.PyWindow_DoSetSize(*args, **kwargs) | |
d55e5bfc | 3155 | |
7f7aa166 RD |
3156 | def DoSetClientSize(*args, **kwargs): |
3157 | """DoSetClientSize(self, int width, int height)""" | |
3158 | return _windows_.PyWindow_DoSetClientSize(*args, **kwargs) | |
d55e5bfc | 3159 | |
7f7aa166 RD |
3160 | def DoSetVirtualSize(*args, **kwargs): |
3161 | """DoSetVirtualSize(self, int x, int y)""" | |
3162 | return _windows_.PyWindow_DoSetVirtualSize(*args, **kwargs) | |
d55e5bfc | 3163 | |
7f7aa166 RD |
3164 | def DoGetSize(*args, **kwargs): |
3165 | """DoGetSize() -> (width, height)""" | |
3166 | return _windows_.PyWindow_DoGetSize(*args, **kwargs) | |
d55e5bfc | 3167 | |
7f7aa166 RD |
3168 | def DoGetClientSize(*args, **kwargs): |
3169 | """DoGetClientSize() -> (width, height)""" | |
3170 | return _windows_.PyWindow_DoGetClientSize(*args, **kwargs) | |
d55e5bfc | 3171 | |
7f7aa166 RD |
3172 | def DoGetPosition(*args, **kwargs): |
3173 | """DoGetPosition() -> (x,y)""" | |
3174 | return _windows_.PyWindow_DoGetPosition(*args, **kwargs) | |
d55e5bfc | 3175 | |
7f7aa166 RD |
3176 | def DoGetVirtualSize(*args, **kwargs): |
3177 | """DoGetVirtualSize(self) -> Size""" | |
3178 | return _windows_.PyWindow_DoGetVirtualSize(*args, **kwargs) | |
d55e5bfc | 3179 | |
7f7aa166 RD |
3180 | def DoGetBestSize(*args, **kwargs): |
3181 | """DoGetBestSize(self) -> Size""" | |
3182 | return _windows_.PyWindow_DoGetBestSize(*args, **kwargs) | |
d55e5bfc | 3183 | |
7f7aa166 RD |
3184 | def GetDefaultAttributes(*args, **kwargs): |
3185 | """GetDefaultAttributes(self) -> VisualAttributes""" | |
3186 | return _windows_.PyWindow_GetDefaultAttributes(*args, **kwargs) | |
3187 | ||
3188 | def OnInternalIdle(*args, **kwargs): | |
3189 | """OnInternalIdle(self)""" | |
3190 | return _windows_.PyWindow_OnInternalIdle(*args, **kwargs) | |
3191 | ||
3192 | def base_DoMoveWindow(*args, **kw): | |
3193 | return PyWindow.DoMoveWindow(*args, **kw) | |
3194 | base_DoMoveWindow = wx._deprecated(base_DoMoveWindow, | |
3195 | "Please use PyWindow.DoMoveWindow instead.") | |
3196 | ||
3197 | def base_DoSetSize(*args, **kw): | |
3198 | return PyWindow.DoSetSize(*args, **kw) | |
3199 | base_DoSetSize = wx._deprecated(base_DoSetSize, | |
3200 | "Please use PyWindow.DoSetSize instead.") | |
d55e5bfc | 3201 | |
7f7aa166 RD |
3202 | def base_DoSetClientSize(*args, **kw): |
3203 | return PyWindow.DoSetClientSize(*args, **kw) | |
3204 | base_DoSetClientSize = wx._deprecated(base_DoSetClientSize, | |
3205 | "Please use PyWindow.DoSetClientSize instead.") | |
d55e5bfc | 3206 | |
7f7aa166 RD |
3207 | def base_DoSetVirtualSize(*args, **kw): |
3208 | return PyWindow.DoSetVirtualSize(*args, **kw) | |
3209 | base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize, | |
3210 | "Please use PyWindow.DoSetVirtualSize instead.") | |
d55e5bfc | 3211 | |
7f7aa166 RD |
3212 | def base_DoGetSize(*args, **kw): |
3213 | return PyWindow.DoGetSize(*args, **kw) | |
3214 | base_DoGetSize = wx._deprecated(base_DoGetSize, | |
3215 | "Please use PyWindow.DoGetSize instead.") | |
d55e5bfc | 3216 | |
7f7aa166 RD |
3217 | def base_DoGetClientSize(*args, **kw): |
3218 | return PyWindow.DoGetClientSize(*args, **kw) | |
3219 | base_DoGetClientSize = wx._deprecated(base_DoGetClientSize, | |
3220 | "Please use PyWindow.DoGetClientSize instead.") | |
d55e5bfc | 3221 | |
7f7aa166 RD |
3222 | def base_DoGetPosition(*args, **kw): |
3223 | return PyWindow.DoGetPosition(*args, **kw) | |
3224 | base_DoGetPosition = wx._deprecated(base_DoGetPosition, | |
3225 | "Please use PyWindow.DoGetPosition instead.") | |
d55e5bfc | 3226 | |
7f7aa166 RD |
3227 | def base_DoGetVirtualSize(*args, **kw): |
3228 | return PyWindow.DoGetVirtualSize(*args, **kw) | |
3229 | base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize, | |
3230 | "Please use PyWindow.DoGetVirtualSize instead.") | |
d55e5bfc | 3231 | |
7f7aa166 RD |
3232 | def base_DoGetBestSize(*args, **kw): |
3233 | return PyWindow.DoGetBestSize(*args, **kw) | |
3234 | base_DoGetBestSize = wx._deprecated(base_DoGetBestSize, | |
3235 | "Please use PyWindow.DoGetBestSize instead.") | |
d55e5bfc | 3236 | |
7f7aa166 RD |
3237 | def base_InitDialog(*args, **kw): |
3238 | return PyWindow.InitDialog(*args, **kw) | |
3239 | base_InitDialog = wx._deprecated(base_InitDialog, | |
3240 | "Please use PyWindow.InitDialog instead.") | |
d55e5bfc | 3241 | |
7f7aa166 RD |
3242 | def base_TransferDataToWindow(*args, **kw): |
3243 | return PyWindow.TransferDataToWindow(*args, **kw) | |
3244 | base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow, | |
3245 | "Please use PyWindow.TransferDataToWindow instead.") | |
d55e5bfc | 3246 | |
7f7aa166 RD |
3247 | def base_TransferDataFromWindow(*args, **kw): |
3248 | return PyWindow.TransferDataFromWindow(*args, **kw) | |
3249 | base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow, | |
3250 | "Please use PyWindow.TransferDataFromWindow instead.") | |
a5ee0656 | 3251 | |
7f7aa166 RD |
3252 | def base_Validate(*args, **kw): |
3253 | return PyWindow.Validate(*args, **kw) | |
3254 | base_Validate = wx._deprecated(base_Validate, | |
3255 | "Please use PyWindow.Validate instead.") | |
3256 | ||
3257 | def base_AcceptsFocus(*args, **kw): | |
3258 | return PyWindow.AcceptsFocus(*args, **kw) | |
3259 | base_AcceptsFocus = wx._deprecated(base_AcceptsFocus, | |
3260 | "Please use PyWindow.AcceptsFocus instead.") | |
3261 | ||
3262 | def base_AcceptsFocusFromKeyboard(*args, **kw): | |
3263 | return PyWindow.AcceptsFocusFromKeyboard(*args, **kw) | |
3264 | base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard, | |
3265 | "Please use PyWindow.AcceptsFocusFromKeyboard instead.") | |
3266 | ||
3267 | def base_GetMaxSize(*args, **kw): | |
3268 | return PyWindow.GetMaxSize(*args, **kw) | |
3269 | base_GetMaxSize = wx._deprecated(base_GetMaxSize, | |
3270 | "Please use PyWindow.GetMaxSize instead.") | |
3271 | ||
3272 | def base_AddChild(*args, **kw): | |
3273 | return PyWindow.AddChild(*args, **kw) | |
3274 | base_AddChild = wx._deprecated(base_AddChild, | |
3275 | "Please use PyWindow.AddChild instead.") | |
3276 | ||
3277 | def base_RemoveChild(*args, **kw): | |
3278 | return PyWindow.RemoveChild(*args, **kw) | |
3279 | base_RemoveChild = wx._deprecated(base_RemoveChild, | |
3280 | "Please use PyWindow.RemoveChild instead.") | |
3281 | ||
3282 | def base_ShouldInheritColours(*args, **kw): | |
3283 | return PyWindow.ShouldInheritColours(*args, **kw) | |
3284 | base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours, | |
3285 | "Please use PyWindow.ShouldInheritColours instead.") | |
3286 | ||
3287 | def base_GetDefaultAttributes(*args, **kw): | |
3288 | return PyWindow.GetDefaultAttributes(*args, **kw) | |
3289 | base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes, | |
3290 | "Please use PyWindow.GetDefaultAttributes instead.") | |
3291 | ||
3292 | def base_OnInternalIdle(*args, **kw): | |
3293 | return PyWindow.OnInternalIdle(*args, **kw) | |
3294 | base_OnInternalIdle = wx._deprecated(base_OnInternalIdle, | |
3295 | "Please use PyWindow.OnInternalIdle instead.") | |
8d38bd1d | 3296 | |
2131d850 | 3297 | _windows_.PyWindow_swigregister(PyWindow) |
d55e5bfc RD |
3298 | |
3299 | def PrePyWindow(*args, **kwargs): | |
3300 | """PrePyWindow() -> PyWindow""" | |
3301 | val = _windows_.new_PrePyWindow(*args, **kwargs) | |
d55e5bfc RD |
3302 | return val |
3303 | ||
3304 | class PyPanel(Panel): | |
36ed4f51 | 3305 | """Proxy of C++ PyPanel class""" |
1bd55598 RD |
3306 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3307 | __repr__ = _swig_repr | |
3308 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 3309 | """ |
bfddbb17 RD |
3310 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3311 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel | |
d55e5bfc | 3312 | """ |
1bd55598 | 3313 | _windows_.PyPanel_swiginit(self,_windows_.new_PyPanel(*args, **kwargs)) |
d55e5bfc RD |
3314 | self._setOORInfo(self); self._setCallbackInfo(self, PyPanel) |
3315 | ||
3316 | def _setCallbackInfo(*args, **kwargs): | |
3317 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
3318 | return _windows_.PyPanel__setCallbackInfo(*args, **kwargs) | |
3319 | ||
a5ee0656 RD |
3320 | def SetBestSize(*args, **kwargs): |
3321 | """SetBestSize(self, Size size)""" | |
3322 | return _windows_.PyPanel_SetBestSize(*args, **kwargs) | |
3323 | ||
976dbff5 RD |
3324 | def DoEraseBackground(*args, **kwargs): |
3325 | """DoEraseBackground(self, DC dc) -> bool""" | |
3326 | return _windows_.PyPanel_DoEraseBackground(*args, **kwargs) | |
3327 | ||
7f7aa166 RD |
3328 | def DoMoveWindow(*args, **kwargs): |
3329 | """DoMoveWindow(self, int x, int y, int width, int height)""" | |
3330 | return _windows_.PyPanel_DoMoveWindow(*args, **kwargs) | |
3331 | ||
3332 | def DoSetSize(*args, **kwargs): | |
3333 | """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
3334 | return _windows_.PyPanel_DoSetSize(*args, **kwargs) | |
3335 | ||
3336 | def DoSetClientSize(*args, **kwargs): | |
3337 | """DoSetClientSize(self, int width, int height)""" | |
3338 | return _windows_.PyPanel_DoSetClientSize(*args, **kwargs) | |
3339 | ||
3340 | def DoSetVirtualSize(*args, **kwargs): | |
3341 | """DoSetVirtualSize(self, int x, int y)""" | |
3342 | return _windows_.PyPanel_DoSetVirtualSize(*args, **kwargs) | |
3343 | ||
3344 | def DoGetSize(*args, **kwargs): | |
3345 | """DoGetSize() -> (width, height)""" | |
3346 | return _windows_.PyPanel_DoGetSize(*args, **kwargs) | |
3347 | ||
3348 | def DoGetClientSize(*args, **kwargs): | |
3349 | """DoGetClientSize() -> (width, height)""" | |
3350 | return _windows_.PyPanel_DoGetClientSize(*args, **kwargs) | |
3351 | ||
3352 | def DoGetPosition(*args, **kwargs): | |
3353 | """DoGetPosition() -> (x,y)""" | |
3354 | return _windows_.PyPanel_DoGetPosition(*args, **kwargs) | |
3355 | ||
3356 | def DoGetVirtualSize(*args, **kwargs): | |
3357 | """DoGetVirtualSize(self) -> Size""" | |
3358 | return _windows_.PyPanel_DoGetVirtualSize(*args, **kwargs) | |
3359 | ||
3360 | def DoGetBestSize(*args, **kwargs): | |
3361 | """DoGetBestSize(self) -> Size""" | |
3362 | return _windows_.PyPanel_DoGetBestSize(*args, **kwargs) | |
3363 | ||
7f7aa166 RD |
3364 | def GetDefaultAttributes(*args, **kwargs): |
3365 | """GetDefaultAttributes(self) -> VisualAttributes""" | |
3366 | return _windows_.PyPanel_GetDefaultAttributes(*args, **kwargs) | |
d55e5bfc | 3367 | |
7f7aa166 RD |
3368 | def OnInternalIdle(*args, **kwargs): |
3369 | """OnInternalIdle(self)""" | |
3370 | return _windows_.PyPanel_OnInternalIdle(*args, **kwargs) | |
d55e5bfc | 3371 | |
7f7aa166 RD |
3372 | def base_DoMoveWindow(*args, **kw): |
3373 | return PyPanel.DoMoveWindow(*args, **kw) | |
3374 | base_DoMoveWindow = wx._deprecated(base_DoMoveWindow, | |
3375 | "Please use PyPanel.DoMoveWindow instead.") | |
d55e5bfc | 3376 | |
7f7aa166 RD |
3377 | def base_DoSetSize(*args, **kw): |
3378 | return PyPanel.DoSetSize(*args, **kw) | |
3379 | base_DoSetSize = wx._deprecated(base_DoSetSize, | |
3380 | "Please use PyPanel.DoSetSize instead.") | |
d55e5bfc | 3381 | |
7f7aa166 RD |
3382 | def base_DoSetClientSize(*args, **kw): |
3383 | return PyPanel.DoSetClientSize(*args, **kw) | |
3384 | base_DoSetClientSize = wx._deprecated(base_DoSetClientSize, | |
3385 | "Please use PyPanel.DoSetClientSize instead.") | |
d55e5bfc | 3386 | |
7f7aa166 RD |
3387 | def base_DoSetVirtualSize(*args, **kw): |
3388 | return PyPanel.DoSetVirtualSize(*args, **kw) | |
3389 | base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize, | |
3390 | "Please use PyPanel.DoSetVirtualSize instead.") | |
d55e5bfc | 3391 | |
7f7aa166 RD |
3392 | def base_DoGetSize(*args, **kw): |
3393 | return PyPanel.DoGetSize(*args, **kw) | |
3394 | base_DoGetSize = wx._deprecated(base_DoGetSize, | |
3395 | "Please use PyPanel.DoGetSize instead.") | |
d55e5bfc | 3396 | |
7f7aa166 RD |
3397 | def base_DoGetClientSize(*args, **kw): |
3398 | return PyPanel.DoGetClientSize(*args, **kw) | |
3399 | base_DoGetClientSize = wx._deprecated(base_DoGetClientSize, | |
3400 | "Please use PyPanel.DoGetClientSize instead.") | |
d55e5bfc | 3401 | |
7f7aa166 RD |
3402 | def base_DoGetPosition(*args, **kw): |
3403 | return PyPanel.DoGetPosition(*args, **kw) | |
3404 | base_DoGetPosition = wx._deprecated(base_DoGetPosition, | |
3405 | "Please use PyPanel.DoGetPosition instead.") | |
d55e5bfc | 3406 | |
7f7aa166 RD |
3407 | def base_DoGetVirtualSize(*args, **kw): |
3408 | return PyPanel.DoGetVirtualSize(*args, **kw) | |
3409 | base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize, | |
3410 | "Please use PyPanel.DoGetVirtualSize instead.") | |
d55e5bfc | 3411 | |
7f7aa166 RD |
3412 | def base_DoGetBestSize(*args, **kw): |
3413 | return PyPanel.DoGetBestSize(*args, **kw) | |
3414 | base_DoGetBestSize = wx._deprecated(base_DoGetBestSize, | |
3415 | "Please use PyPanel.DoGetBestSize instead.") | |
d55e5bfc | 3416 | |
7f7aa166 RD |
3417 | def base_InitDialog(*args, **kw): |
3418 | return PyPanel.InitDialog(*args, **kw) | |
3419 | base_InitDialog = wx._deprecated(base_InitDialog, | |
3420 | "Please use PyPanel.InitDialog instead.") | |
d55e5bfc | 3421 | |
7f7aa166 RD |
3422 | def base_TransferDataToWindow(*args, **kw): |
3423 | return PyPanel.TransferDataToWindow(*args, **kw) | |
3424 | base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow, | |
3425 | "Please use PyPanel.TransferDataToWindow instead.") | |
d55e5bfc | 3426 | |
7f7aa166 RD |
3427 | def base_TransferDataFromWindow(*args, **kw): |
3428 | return PyPanel.TransferDataFromWindow(*args, **kw) | |
3429 | base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow, | |
3430 | "Please use PyPanel.TransferDataFromWindow instead.") | |
d55e5bfc | 3431 | |
7f7aa166 RD |
3432 | def base_Validate(*args, **kw): |
3433 | return PyPanel.Validate(*args, **kw) | |
3434 | base_Validate = wx._deprecated(base_Validate, | |
3435 | "Please use PyPanel.Validate instead.") | |
a5ee0656 | 3436 | |
7f7aa166 RD |
3437 | def base_AcceptsFocus(*args, **kw): |
3438 | return PyPanel.AcceptsFocus(*args, **kw) | |
3439 | base_AcceptsFocus = wx._deprecated(base_AcceptsFocus, | |
3440 | "Please use PyPanel.AcceptsFocus instead.") | |
3441 | ||
3442 | def base_AcceptsFocusFromKeyboard(*args, **kw): | |
3443 | return PyPanel.AcceptsFocusFromKeyboard(*args, **kw) | |
3444 | base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard, | |
3445 | "Please use PyPanel.AcceptsFocusFromKeyboard instead.") | |
3446 | ||
3447 | def base_GetMaxSize(*args, **kw): | |
3448 | return PyPanel.GetMaxSize(*args, **kw) | |
3449 | base_GetMaxSize = wx._deprecated(base_GetMaxSize, | |
3450 | "Please use PyPanel.GetMaxSize instead.") | |
3451 | ||
3452 | def base_AddChild(*args, **kw): | |
3453 | return PyPanel.AddChild(*args, **kw) | |
3454 | base_AddChild = wx._deprecated(base_AddChild, | |
3455 | "Please use PyPanel.AddChild instead.") | |
3456 | ||
3457 | def base_RemoveChild(*args, **kw): | |
3458 | return PyPanel.RemoveChild(*args, **kw) | |
3459 | base_RemoveChild = wx._deprecated(base_RemoveChild, | |
3460 | "Please use PyPanel.RemoveChild instead.") | |
3461 | ||
3462 | def base_ShouldInheritColours(*args, **kw): | |
3463 | return PyPanel.ShouldInheritColours(*args, **kw) | |
3464 | base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours, | |
3465 | "Please use PyPanel.ShouldInheritColours instead.") | |
3466 | ||
3467 | def base_GetDefaultAttributes(*args, **kw): | |
3468 | return PyPanel.GetDefaultAttributes(*args, **kw) | |
3469 | base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes, | |
3470 | "Please use PyPanel.GetDefaultAttributes instead.") | |
3471 | ||
3472 | def base_OnInternalIdle(*args, **kw): | |
3473 | return PyPanel.OnInternalIdle(*args, **kw) | |
3474 | base_OnInternalIdle = wx._deprecated(base_OnInternalIdle, | |
3475 | "Please use PyPanel.OnInternalIdle instead.") | |
8d38bd1d | 3476 | |
2131d850 | 3477 | _windows_.PyPanel_swigregister(PyPanel) |
d55e5bfc RD |
3478 | |
3479 | def PrePyPanel(*args, **kwargs): | |
3480 | """PrePyPanel() -> PyPanel""" | |
3481 | val = _windows_.new_PrePyPanel(*args, **kwargs) | |
d55e5bfc RD |
3482 | return val |
3483 | ||
3484 | class PyScrolledWindow(ScrolledWindow): | |
36ed4f51 | 3485 | """Proxy of C++ PyScrolledWindow class""" |
1bd55598 RD |
3486 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3487 | __repr__ = _swig_repr | |
3488 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 3489 | """ |
bfddbb17 RD |
3490 | __init__(self, Window parent, int id=-1, Point pos=DefaultPosition, |
3491 | Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow | |
d55e5bfc | 3492 | """ |
1bd55598 | 3493 | _windows_.PyScrolledWindow_swiginit(self,_windows_.new_PyScrolledWindow(*args, **kwargs)) |
a01da36a | 3494 | self._setOORInfo(self); self._setCallbackInfo(self, PyScrolledWindow) |
d55e5bfc RD |
3495 | |
3496 | def _setCallbackInfo(*args, **kwargs): | |
3497 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
3498 | return _windows_.PyScrolledWindow__setCallbackInfo(*args, **kwargs) | |
3499 | ||
a5ee0656 RD |
3500 | def SetBestSize(*args, **kwargs): |
3501 | """SetBestSize(self, Size size)""" | |
3502 | return _windows_.PyScrolledWindow_SetBestSize(*args, **kwargs) | |
3503 | ||
976dbff5 RD |
3504 | def DoEraseBackground(*args, **kwargs): |
3505 | """DoEraseBackground(self, DC dc) -> bool""" | |
3506 | return _windows_.PyScrolledWindow_DoEraseBackground(*args, **kwargs) | |
3507 | ||
7f7aa166 RD |
3508 | def DoMoveWindow(*args, **kwargs): |
3509 | """DoMoveWindow(self, int x, int y, int width, int height)""" | |
3510 | return _windows_.PyScrolledWindow_DoMoveWindow(*args, **kwargs) | |
3511 | ||
3512 | def DoSetSize(*args, **kwargs): | |
3513 | """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)""" | |
3514 | return _windows_.PyScrolledWindow_DoSetSize(*args, **kwargs) | |
3515 | ||
3516 | def DoSetClientSize(*args, **kwargs): | |
3517 | """DoSetClientSize(self, int width, int height)""" | |
3518 | return _windows_.PyScrolledWindow_DoSetClientSize(*args, **kwargs) | |
3519 | ||
3520 | def DoSetVirtualSize(*args, **kwargs): | |
3521 | """DoSetVirtualSize(self, int x, int y)""" | |
3522 | return _windows_.PyScrolledWindow_DoSetVirtualSize(*args, **kwargs) | |
d55e5bfc | 3523 | |
7f7aa166 RD |
3524 | def DoGetSize(*args, **kwargs): |
3525 | """DoGetSize() -> (width, height)""" | |
3526 | return _windows_.PyScrolledWindow_DoGetSize(*args, **kwargs) | |
d55e5bfc | 3527 | |
7f7aa166 RD |
3528 | def DoGetClientSize(*args, **kwargs): |
3529 | """DoGetClientSize() -> (width, height)""" | |
3530 | return _windows_.PyScrolledWindow_DoGetClientSize(*args, **kwargs) | |
d55e5bfc | 3531 | |
7f7aa166 RD |
3532 | def DoGetPosition(*args, **kwargs): |
3533 | """DoGetPosition() -> (x,y)""" | |
3534 | return _windows_.PyScrolledWindow_DoGetPosition(*args, **kwargs) | |
d55e5bfc | 3535 | |
7f7aa166 RD |
3536 | def DoGetVirtualSize(*args, **kwargs): |
3537 | """DoGetVirtualSize(self) -> Size""" | |
3538 | return _windows_.PyScrolledWindow_DoGetVirtualSize(*args, **kwargs) | |
d55e5bfc | 3539 | |
7f7aa166 RD |
3540 | def DoGetBestSize(*args, **kwargs): |
3541 | """DoGetBestSize(self) -> Size""" | |
3542 | return _windows_.PyScrolledWindow_DoGetBestSize(*args, **kwargs) | |
d55e5bfc | 3543 | |
7f7aa166 RD |
3544 | def GetDefaultAttributes(*args, **kwargs): |
3545 | """GetDefaultAttributes(self) -> VisualAttributes""" | |
3546 | return _windows_.PyScrolledWindow_GetDefaultAttributes(*args, **kwargs) | |
d55e5bfc | 3547 | |
7f7aa166 RD |
3548 | def OnInternalIdle(*args, **kwargs): |
3549 | """OnInternalIdle(self)""" | |
3550 | return _windows_.PyScrolledWindow_OnInternalIdle(*args, **kwargs) | |
d55e5bfc | 3551 | |
7f7aa166 RD |
3552 | def base_DoMoveWindow(*args, **kw): |
3553 | return PyScrolledWindow.DoMoveWindow(*args, **kw) | |
3554 | base_DoMoveWindow = wx._deprecated(base_DoMoveWindow, | |
3555 | "Please use PyScrolledWindow.DoMoveWindow instead.") | |
d55e5bfc | 3556 | |
7f7aa166 RD |
3557 | def base_DoSetSize(*args, **kw): |
3558 | return PyScrolledWindow.DoSetSize(*args, **kw) | |
3559 | base_DoSetSize = wx._deprecated(base_DoSetSize, | |
3560 | "Please use PyScrolledWindow.DoSetSize instead.") | |
d55e5bfc | 3561 | |
7f7aa166 RD |
3562 | def base_DoSetClientSize(*args, **kw): |
3563 | return PyScrolledWindow.DoSetClientSize(*args, **kw) | |
3564 | base_DoSetClientSize = wx._deprecated(base_DoSetClientSize, | |
3565 | "Please use PyScrolledWindow.DoSetClientSize instead.") | |
d55e5bfc | 3566 | |
7f7aa166 RD |
3567 | def base_DoSetVirtualSize(*args, **kw): |
3568 | return PyScrolledWindow.DoSetVirtualSize(*args, **kw) | |
3569 | base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize, | |
3570 | "Please use PyScrolledWindow.DoSetVirtualSize instead.") | |
d55e5bfc | 3571 | |
7f7aa166 RD |
3572 | def base_DoGetSize(*args, **kw): |
3573 | return PyScrolledWindow.DoGetSize(*args, **kw) | |
3574 | base_DoGetSize = wx._deprecated(base_DoGetSize, | |
3575 | "Please use PyScrolledWindow.DoGetSize instead.") | |
d55e5bfc | 3576 | |
7f7aa166 RD |
3577 | def base_DoGetClientSize(*args, **kw): |
3578 | return PyScrolledWindow.DoGetClientSize(*args, **kw) | |
3579 | base_DoGetClientSize = wx._deprecated(base_DoGetClientSize, | |
3580 | "Please use PyScrolledWindow.DoGetClientSize instead.") | |
d55e5bfc | 3581 | |
7f7aa166 RD |
3582 | def base_DoGetPosition(*args, **kw): |
3583 | return PyScrolledWindow.DoGetPosition(*args, **kw) | |
3584 | base_DoGetPosition = wx._deprecated(base_DoGetPosition, | |
3585 | "Please use PyScrolledWindow.DoGetPosition instead.") | |
d55e5bfc | 3586 | |
7f7aa166 RD |
3587 | def base_DoGetVirtualSize(*args, **kw): |
3588 | return PyScrolledWindow.DoGetVirtualSize(*args, **kw) | |
3589 | base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize, | |
3590 | "Please use PyScrolledWindow.DoGetVirtualSize instead.") | |
d55e5bfc | 3591 | |
7f7aa166 RD |
3592 | def base_DoGetBestSize(*args, **kw): |
3593 | return PyScrolledWindow.DoGetBestSize(*args, **kw) | |
3594 | base_DoGetBestSize = wx._deprecated(base_DoGetBestSize, | |
3595 | "Please use PyScrolledWindow.DoGetBestSize instead.") | |
a5ee0656 | 3596 | |
7f7aa166 RD |
3597 | def base_InitDialog(*args, **kw): |
3598 | return PyScrolledWindow.InitDialog(*args, **kw) | |
3599 | base_InitDialog = wx._deprecated(base_InitDialog, | |
3600 | "Please use PyScrolledWindow.InitDialog instead.") | |
3601 | ||
3602 | def base_TransferDataToWindow(*args, **kw): | |
3603 | return PyScrolledWindow.TransferDataToWindow(*args, **kw) | |
3604 | base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow, | |
3605 | "Please use PyScrolledWindow.TransferDataToWindow instead.") | |
3606 | ||
3607 | def base_TransferDataFromWindow(*args, **kw): | |
3608 | return PyScrolledWindow.TransferDataFromWindow(*args, **kw) | |
3609 | base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow, | |
3610 | "Please use PyScrolledWindow.TransferDataFromWindow instead.") | |
3611 | ||
3612 | def base_Validate(*args, **kw): | |
3613 | return PyScrolledWindow.Validate(*args, **kw) | |
3614 | base_Validate = wx._deprecated(base_Validate, | |
3615 | "Please use PyScrolledWindow.Validate instead.") | |
3616 | ||
3617 | def base_AcceptsFocus(*args, **kw): | |
3618 | return PyScrolledWindow.AcceptsFocus(*args, **kw) | |
3619 | base_AcceptsFocus = wx._deprecated(base_AcceptsFocus, | |
3620 | "Please use PyScrolledWindow.AcceptsFocus instead.") | |
3621 | ||
3622 | def base_AcceptsFocusFromKeyboard(*args, **kw): | |
3623 | return PyScrolledWindow.AcceptsFocusFromKeyboard(*args, **kw) | |
3624 | base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard, | |
3625 | "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.") | |
3626 | ||
3627 | def base_GetMaxSize(*args, **kw): | |
3628 | return PyScrolledWindow.GetMaxSize(*args, **kw) | |
3629 | base_GetMaxSize = wx._deprecated(base_GetMaxSize, | |
3630 | "Please use PyScrolledWindow.GetMaxSize instead.") | |
3631 | ||
3632 | def base_AddChild(*args, **kw): | |
3633 | return PyScrolledWindow.AddChild(*args, **kw) | |
3634 | base_AddChild = wx._deprecated(base_AddChild, | |
3635 | "Please use PyScrolledWindow.AddChild instead.") | |
3636 | ||
3637 | def base_RemoveChild(*args, **kw): | |
3638 | return PyScrolledWindow.RemoveChild(*args, **kw) | |
3639 | base_RemoveChild = wx._deprecated(base_RemoveChild, | |
3640 | "Please use PyScrolledWindow.RemoveChild instead.") | |
3641 | ||
3642 | def base_ShouldInheritColours(*args, **kw): | |
3643 | return PyScrolledWindow.ShouldInheritColours(*args, **kw) | |
3644 | base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours, | |
3645 | "Please use PyScrolledWindow.ShouldInheritColours instead.") | |
3646 | ||
3647 | def base_GetDefaultAttributes(*args, **kw): | |
3648 | return PyScrolledWindow.GetDefaultAttributes(*args, **kw) | |
3649 | base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes, | |
3650 | "Please use PyScrolledWindow.GetDefaultAttributes instead.") | |
3651 | ||
3652 | def base_OnInternalIdle(*args, **kw): | |
3653 | return PyScrolledWindow.OnInternalIdle(*args, **kw) | |
3654 | base_OnInternalIdle = wx._deprecated(base_OnInternalIdle, | |
3655 | "Please use PyScrolledWindow.OnInternalIdle instead.") | |
8d38bd1d | 3656 | |
2131d850 | 3657 | _windows_.PyScrolledWindow_swigregister(PyScrolledWindow) |
d55e5bfc RD |
3658 | |
3659 | def PrePyScrolledWindow(*args, **kwargs): | |
3660 | """PrePyScrolledWindow() -> PyScrolledWindow""" | |
3661 | val = _windows_.new_PrePyScrolledWindow(*args, **kwargs) | |
d55e5bfc RD |
3662 | return val |
3663 | ||
3664 | #--------------------------------------------------------------------------- | |
3665 | ||
3666 | PRINT_MODE_NONE = _windows_.PRINT_MODE_NONE | |
3667 | PRINT_MODE_PREVIEW = _windows_.PRINT_MODE_PREVIEW | |
3668 | PRINT_MODE_FILE = _windows_.PRINT_MODE_FILE | |
3669 | PRINT_MODE_PRINTER = _windows_.PRINT_MODE_PRINTER | |
3670 | PRINT_MODE_STREAM = _windows_.PRINT_MODE_STREAM | |
b411df4a RD |
3671 | PRINTBIN_DEFAULT = _windows_.PRINTBIN_DEFAULT |
3672 | PRINTBIN_ONLYONE = _windows_.PRINTBIN_ONLYONE | |
3673 | PRINTBIN_LOWER = _windows_.PRINTBIN_LOWER | |
3674 | PRINTBIN_MIDDLE = _windows_.PRINTBIN_MIDDLE | |
3675 | PRINTBIN_MANUAL = _windows_.PRINTBIN_MANUAL | |
3676 | PRINTBIN_ENVELOPE = _windows_.PRINTBIN_ENVELOPE | |
3677 | PRINTBIN_ENVMANUAL = _windows_.PRINTBIN_ENVMANUAL | |
3678 | PRINTBIN_AUTO = _windows_.PRINTBIN_AUTO | |
3679 | PRINTBIN_TRACTOR = _windows_.PRINTBIN_TRACTOR | |
3680 | PRINTBIN_SMALLFMT = _windows_.PRINTBIN_SMALLFMT | |
3681 | PRINTBIN_LARGEFMT = _windows_.PRINTBIN_LARGEFMT | |
3682 | PRINTBIN_LARGECAPACITY = _windows_.PRINTBIN_LARGECAPACITY | |
3683 | PRINTBIN_CASSETTE = _windows_.PRINTBIN_CASSETTE | |
3684 | PRINTBIN_FORMSOURCE = _windows_.PRINTBIN_FORMSOURCE | |
3685 | PRINTBIN_USER = _windows_.PRINTBIN_USER | |
d55e5bfc | 3686 | class PrintData(_core.Object): |
36ed4f51 | 3687 | """Proxy of C++ PrintData class""" |
1bd55598 RD |
3688 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3689 | __repr__ = _swig_repr | |
3690 | def __init__(self, *args): | |
09c21d3b RD |
3691 | """ |
3692 | __init__(self) -> PrintData | |
3693 | __init__(self, PrintData data) -> PrintData | |
3694 | """ | |
1bd55598 RD |
3695 | _windows_.PrintData_swiginit(self,_windows_.new_PrintData(*args)) |
3696 | __swig_destroy__ = _windows_.delete_PrintData | |
3697 | __del__ = lambda self : None; | |
d55e5bfc RD |
3698 | def GetNoCopies(*args, **kwargs): |
3699 | """GetNoCopies(self) -> int""" | |
3700 | return _windows_.PrintData_GetNoCopies(*args, **kwargs) | |
3701 | ||
3702 | def GetCollate(*args, **kwargs): | |
3703 | """GetCollate(self) -> bool""" | |
3704 | return _windows_.PrintData_GetCollate(*args, **kwargs) | |
3705 | ||
3706 | def GetOrientation(*args, **kwargs): | |
3707 | """GetOrientation(self) -> int""" | |
3708 | return _windows_.PrintData_GetOrientation(*args, **kwargs) | |
3709 | ||
3710 | def Ok(*args, **kwargs): | |
3711 | """Ok(self) -> bool""" | |
3712 | return _windows_.PrintData_Ok(*args, **kwargs) | |
3713 | ||
3714 | def GetPrinterName(*args, **kwargs): | |
3715 | """GetPrinterName(self) -> String""" | |
3716 | return _windows_.PrintData_GetPrinterName(*args, **kwargs) | |
3717 | ||
3718 | def GetColour(*args, **kwargs): | |
3719 | """GetColour(self) -> bool""" | |
3720 | return _windows_.PrintData_GetColour(*args, **kwargs) | |
3721 | ||
3722 | def GetDuplex(*args, **kwargs): | |
3723 | """GetDuplex(self) -> int""" | |
3724 | return _windows_.PrintData_GetDuplex(*args, **kwargs) | |
3725 | ||
3726 | def GetPaperId(*args, **kwargs): | |
3727 | """GetPaperId(self) -> int""" | |
3728 | return _windows_.PrintData_GetPaperId(*args, **kwargs) | |
3729 | ||
3730 | def GetPaperSize(*args, **kwargs): | |
3731 | """GetPaperSize(self) -> Size""" | |
3732 | return _windows_.PrintData_GetPaperSize(*args, **kwargs) | |
3733 | ||
3734 | def GetQuality(*args, **kwargs): | |
3735 | """GetQuality(self) -> int""" | |
3736 | return _windows_.PrintData_GetQuality(*args, **kwargs) | |
3737 | ||
b411df4a RD |
3738 | def GetBin(*args, **kwargs): |
3739 | """GetBin(self) -> int""" | |
3740 | return _windows_.PrintData_GetBin(*args, **kwargs) | |
3741 | ||
070c48b4 RD |
3742 | def GetPrintMode(*args, **kwargs): |
3743 | """GetPrintMode(self) -> int""" | |
3744 | return _windows_.PrintData_GetPrintMode(*args, **kwargs) | |
3745 | ||
d55e5bfc RD |
3746 | def SetNoCopies(*args, **kwargs): |
3747 | """SetNoCopies(self, int v)""" | |
3748 | return _windows_.PrintData_SetNoCopies(*args, **kwargs) | |
3749 | ||
3750 | def SetCollate(*args, **kwargs): | |
3751 | """SetCollate(self, bool flag)""" | |
3752 | return _windows_.PrintData_SetCollate(*args, **kwargs) | |
3753 | ||
3754 | def SetOrientation(*args, **kwargs): | |
3755 | """SetOrientation(self, int orient)""" | |
3756 | return _windows_.PrintData_SetOrientation(*args, **kwargs) | |
3757 | ||
3758 | def SetPrinterName(*args, **kwargs): | |
3759 | """SetPrinterName(self, String name)""" | |
3760 | return _windows_.PrintData_SetPrinterName(*args, **kwargs) | |
3761 | ||
3762 | def SetColour(*args, **kwargs): | |
3763 | """SetColour(self, bool colour)""" | |
3764 | return _windows_.PrintData_SetColour(*args, **kwargs) | |
3765 | ||
3766 | def SetDuplex(*args, **kwargs): | |
3767 | """SetDuplex(self, int duplex)""" | |
3768 | return _windows_.PrintData_SetDuplex(*args, **kwargs) | |
3769 | ||
3770 | def SetPaperId(*args, **kwargs): | |
3771 | """SetPaperId(self, int sizeId)""" | |
3772 | return _windows_.PrintData_SetPaperId(*args, **kwargs) | |
3773 | ||
3774 | def SetPaperSize(*args, **kwargs): | |
3775 | """SetPaperSize(self, Size sz)""" | |
3776 | return _windows_.PrintData_SetPaperSize(*args, **kwargs) | |
3777 | ||
3778 | def SetQuality(*args, **kwargs): | |
3779 | """SetQuality(self, int quality)""" | |
3780 | return _windows_.PrintData_SetQuality(*args, **kwargs) | |
3781 | ||
b411df4a RD |
3782 | def SetBin(*args, **kwargs): |
3783 | """SetBin(self, int bin)""" | |
3784 | return _windows_.PrintData_SetBin(*args, **kwargs) | |
3785 | ||
070c48b4 RD |
3786 | def SetPrintMode(*args, **kwargs): |
3787 | """SetPrintMode(self, int printMode)""" | |
3788 | return _windows_.PrintData_SetPrintMode(*args, **kwargs) | |
3789 | ||
3790 | def GetFilename(*args, **kwargs): | |
3791 | """GetFilename(self) -> String""" | |
3792 | return _windows_.PrintData_GetFilename(*args, **kwargs) | |
3793 | ||
3794 | def SetFilename(*args, **kwargs): | |
3795 | """SetFilename(self, String filename)""" | |
3796 | return _windows_.PrintData_SetFilename(*args, **kwargs) | |
3797 | ||
3798 | def __nonzero__(self): return self.Ok() | |
7fbf8399 RD |
3799 | def GetPrivData(*args, **kwargs): |
3800 | """GetPrivData(self) -> PyObject""" | |
3801 | return _windows_.PrintData_GetPrivData(*args, **kwargs) | |
3802 | ||
3803 | def SetPrivData(*args, **kwargs): | |
3804 | """SetPrivData(self, PyObject data)""" | |
3805 | return _windows_.PrintData_SetPrivData(*args, **kwargs) | |
3806 | ||
2131d850 | 3807 | _windows_.PrintData_swigregister(PrintData) |
d55e5bfc RD |
3808 | PrintoutTitleStr = cvar.PrintoutTitleStr |
3809 | PreviewCanvasNameStr = cvar.PreviewCanvasNameStr | |
3810 | ||
3811 | class PageSetupDialogData(_core.Object): | |
36ed4f51 | 3812 | """Proxy of C++ PageSetupDialogData class""" |
1bd55598 RD |
3813 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3814 | __repr__ = _swig_repr | |
3815 | def __init__(self, *args): | |
09c21d3b RD |
3816 | """ |
3817 | __init__(self) -> PageSetupDialogData | |
3818 | __init__(self, PageSetupDialogData data) -> PageSetupDialogData | |
fef4c27a | 3819 | __init__(self, PrintData data) -> PageSetupDialogData |
09c21d3b | 3820 | """ |
1bd55598 RD |
3821 | _windows_.PageSetupDialogData_swiginit(self,_windows_.new_PageSetupDialogData(*args)) |
3822 | __swig_destroy__ = _windows_.delete_PageSetupDialogData | |
3823 | __del__ = lambda self : None; | |
d55e5bfc RD |
3824 | def EnableHelp(*args, **kwargs): |
3825 | """EnableHelp(self, bool flag)""" | |
3826 | return _windows_.PageSetupDialogData_EnableHelp(*args, **kwargs) | |
3827 | ||
3828 | def EnableMargins(*args, **kwargs): | |
3829 | """EnableMargins(self, bool flag)""" | |
3830 | return _windows_.PageSetupDialogData_EnableMargins(*args, **kwargs) | |
3831 | ||
3832 | def EnableOrientation(*args, **kwargs): | |
3833 | """EnableOrientation(self, bool flag)""" | |
3834 | return _windows_.PageSetupDialogData_EnableOrientation(*args, **kwargs) | |
3835 | ||
3836 | def EnablePaper(*args, **kwargs): | |
3837 | """EnablePaper(self, bool flag)""" | |
3838 | return _windows_.PageSetupDialogData_EnablePaper(*args, **kwargs) | |
3839 | ||
3840 | def EnablePrinter(*args, **kwargs): | |
3841 | """EnablePrinter(self, bool flag)""" | |
3842 | return _windows_.PageSetupDialogData_EnablePrinter(*args, **kwargs) | |
3843 | ||
3844 | def GetDefaultMinMargins(*args, **kwargs): | |
3845 | """GetDefaultMinMargins(self) -> bool""" | |
3846 | return _windows_.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs) | |
3847 | ||
3848 | def GetEnableMargins(*args, **kwargs): | |
3849 | """GetEnableMargins(self) -> bool""" | |
3850 | return _windows_.PageSetupDialogData_GetEnableMargins(*args, **kwargs) | |
3851 | ||
3852 | def GetEnableOrientation(*args, **kwargs): | |
3853 | """GetEnableOrientation(self) -> bool""" | |
3854 | return _windows_.PageSetupDialogData_GetEnableOrientation(*args, **kwargs) | |
3855 | ||
3856 | def GetEnablePaper(*args, **kwargs): | |
3857 | """GetEnablePaper(self) -> bool""" | |
3858 | return _windows_.PageSetupDialogData_GetEnablePaper(*args, **kwargs) | |
3859 | ||
3860 | def GetEnablePrinter(*args, **kwargs): | |
3861 | """GetEnablePrinter(self) -> bool""" | |
3862 | return _windows_.PageSetupDialogData_GetEnablePrinter(*args, **kwargs) | |
3863 | ||
3864 | def GetEnableHelp(*args, **kwargs): | |
3865 | """GetEnableHelp(self) -> bool""" | |
3866 | return _windows_.PageSetupDialogData_GetEnableHelp(*args, **kwargs) | |
3867 | ||
3868 | def GetDefaultInfo(*args, **kwargs): | |
3869 | """GetDefaultInfo(self) -> bool""" | |
3870 | return _windows_.PageSetupDialogData_GetDefaultInfo(*args, **kwargs) | |
3871 | ||
3872 | def GetMarginTopLeft(*args, **kwargs): | |
3873 | """GetMarginTopLeft(self) -> Point""" | |
3874 | return _windows_.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs) | |
3875 | ||
3876 | def GetMarginBottomRight(*args, **kwargs): | |
3877 | """GetMarginBottomRight(self) -> Point""" | |
3878 | return _windows_.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs) | |
3879 | ||
3880 | def GetMinMarginTopLeft(*args, **kwargs): | |
3881 | """GetMinMarginTopLeft(self) -> Point""" | |
3882 | return _windows_.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs) | |
3883 | ||
3884 | def GetMinMarginBottomRight(*args, **kwargs): | |
3885 | """GetMinMarginBottomRight(self) -> Point""" | |
3886 | return _windows_.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs) | |
3887 | ||
3888 | def GetPaperId(*args, **kwargs): | |
3889 | """GetPaperId(self) -> int""" | |
3890 | return _windows_.PageSetupDialogData_GetPaperId(*args, **kwargs) | |
3891 | ||
3892 | def GetPaperSize(*args, **kwargs): | |
3893 | """GetPaperSize(self) -> Size""" | |
3894 | return _windows_.PageSetupDialogData_GetPaperSize(*args, **kwargs) | |
3895 | ||
3896 | def GetPrintData(*args, **kwargs): | |
3897 | """GetPrintData(self) -> PrintData""" | |
3898 | return _windows_.PageSetupDialogData_GetPrintData(*args, **kwargs) | |
3899 | ||
3900 | def Ok(*args, **kwargs): | |
3901 | """Ok(self) -> bool""" | |
3902 | return _windows_.PageSetupDialogData_Ok(*args, **kwargs) | |
3903 | ||
3904 | def SetDefaultInfo(*args, **kwargs): | |
3905 | """SetDefaultInfo(self, bool flag)""" | |
3906 | return _windows_.PageSetupDialogData_SetDefaultInfo(*args, **kwargs) | |
3907 | ||
3908 | def SetDefaultMinMargins(*args, **kwargs): | |
3909 | """SetDefaultMinMargins(self, bool flag)""" | |
3910 | return _windows_.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs) | |
3911 | ||
3912 | def SetMarginTopLeft(*args, **kwargs): | |
3913 | """SetMarginTopLeft(self, Point pt)""" | |
3914 | return _windows_.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs) | |
3915 | ||
3916 | def SetMarginBottomRight(*args, **kwargs): | |
3917 | """SetMarginBottomRight(self, Point pt)""" | |
3918 | return _windows_.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs) | |
3919 | ||
3920 | def SetMinMarginTopLeft(*args, **kwargs): | |
3921 | """SetMinMarginTopLeft(self, Point pt)""" | |
3922 | return _windows_.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs) | |
3923 | ||
3924 | def SetMinMarginBottomRight(*args, **kwargs): | |
3925 | """SetMinMarginBottomRight(self, Point pt)""" | |
3926 | return _windows_.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs) | |
3927 | ||
3928 | def SetPaperId(*args, **kwargs): | |
3929 | """SetPaperId(self, int id)""" | |
3930 | return _windows_.PageSetupDialogData_SetPaperId(*args, **kwargs) | |
3931 | ||
3932 | def SetPaperSize(*args, **kwargs): | |
3933 | """SetPaperSize(self, Size size)""" | |
3934 | return _windows_.PageSetupDialogData_SetPaperSize(*args, **kwargs) | |
3935 | ||
3936 | def SetPrintData(*args, **kwargs): | |
3937 | """SetPrintData(self, PrintData printData)""" | |
3938 | return _windows_.PageSetupDialogData_SetPrintData(*args, **kwargs) | |
3939 | ||
fef4c27a RD |
3940 | def CalculateIdFromPaperSize(*args, **kwargs): |
3941 | """CalculateIdFromPaperSize(self)""" | |
3942 | return _windows_.PageSetupDialogData_CalculateIdFromPaperSize(*args, **kwargs) | |
3943 | ||
3944 | def CalculatePaperSizeFromId(*args, **kwargs): | |
3945 | """CalculatePaperSizeFromId(self)""" | |
3946 | return _windows_.PageSetupDialogData_CalculatePaperSizeFromId(*args, **kwargs) | |
3947 | ||
d55e5bfc | 3948 | def __nonzero__(self): return self.Ok() |
2131d850 | 3949 | _windows_.PageSetupDialogData_swigregister(PageSetupDialogData) |
d55e5bfc | 3950 | |
6e0de3df | 3951 | class PageSetupDialog(_core.Object): |
36ed4f51 | 3952 | """Proxy of C++ PageSetupDialog class""" |
1bd55598 RD |
3953 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3954 | __repr__ = _swig_repr | |
3955 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 3956 | """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog""" |
1bd55598 | 3957 | _windows_.PageSetupDialog_swiginit(self,_windows_.new_PageSetupDialog(*args, **kwargs)) |
06810ecf RD |
3958 | __swig_destroy__ = _windows_.delete_PageSetupDialog |
3959 | __del__ = lambda self : None; | |
d55e5bfc RD |
3960 | def GetPageSetupData(*args, **kwargs): |
3961 | """GetPageSetupData(self) -> PageSetupDialogData""" | |
3962 | return _windows_.PageSetupDialog_GetPageSetupData(*args, **kwargs) | |
3963 | ||
6e0de3df RD |
3964 | def GetPageSetupDialogData(*args, **kwargs): |
3965 | """GetPageSetupDialogData(self) -> PageSetupDialogData""" | |
3966 | return _windows_.PageSetupDialog_GetPageSetupDialogData(*args, **kwargs) | |
3967 | ||
d55e5bfc RD |
3968 | def ShowModal(*args, **kwargs): |
3969 | """ShowModal(self) -> int""" | |
3970 | return _windows_.PageSetupDialog_ShowModal(*args, **kwargs) | |
3971 | ||
06810ecf | 3972 | def Destroy(self): pass |
2131d850 | 3973 | _windows_.PageSetupDialog_swigregister(PageSetupDialog) |
d55e5bfc RD |
3974 | |
3975 | class PrintDialogData(_core.Object): | |
36ed4f51 | 3976 | """Proxy of C++ PrintDialogData class""" |
1bd55598 RD |
3977 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
3978 | __repr__ = _swig_repr | |
3979 | def __init__(self, *args): | |
d55e5bfc RD |
3980 | """ |
3981 | __init__(self) -> PrintDialogData | |
3982 | __init__(self, PrintData printData) -> PrintDialogData | |
fef4c27a | 3983 | __init__(self, PrintDialogData printData) -> PrintDialogData |
d55e5bfc | 3984 | """ |
1bd55598 RD |
3985 | _windows_.PrintDialogData_swiginit(self,_windows_.new_PrintDialogData(*args)) |
3986 | __swig_destroy__ = _windows_.delete_PrintDialogData | |
3987 | __del__ = lambda self : None; | |
d55e5bfc RD |
3988 | def GetFromPage(*args, **kwargs): |
3989 | """GetFromPage(self) -> int""" | |
3990 | return _windows_.PrintDialogData_GetFromPage(*args, **kwargs) | |
3991 | ||
3992 | def GetToPage(*args, **kwargs): | |
3993 | """GetToPage(self) -> int""" | |
3994 | return _windows_.PrintDialogData_GetToPage(*args, **kwargs) | |
3995 | ||
3996 | def GetMinPage(*args, **kwargs): | |
3997 | """GetMinPage(self) -> int""" | |
3998 | return _windows_.PrintDialogData_GetMinPage(*args, **kwargs) | |
3999 | ||
4000 | def GetMaxPage(*args, **kwargs): | |
4001 | """GetMaxPage(self) -> int""" | |
4002 | return _windows_.PrintDialogData_GetMaxPage(*args, **kwargs) | |
4003 | ||
4004 | def GetNoCopies(*args, **kwargs): | |
4005 | """GetNoCopies(self) -> int""" | |
4006 | return _windows_.PrintDialogData_GetNoCopies(*args, **kwargs) | |
4007 | ||
4008 | def GetAllPages(*args, **kwargs): | |
4009 | """GetAllPages(self) -> bool""" | |
4010 | return _windows_.PrintDialogData_GetAllPages(*args, **kwargs) | |
4011 | ||
4012 | def GetSelection(*args, **kwargs): | |
4013 | """GetSelection(self) -> bool""" | |
4014 | return _windows_.PrintDialogData_GetSelection(*args, **kwargs) | |
4015 | ||
4016 | def GetCollate(*args, **kwargs): | |
4017 | """GetCollate(self) -> bool""" | |
4018 | return _windows_.PrintDialogData_GetCollate(*args, **kwargs) | |
4019 | ||
4020 | def GetPrintToFile(*args, **kwargs): | |
4021 | """GetPrintToFile(self) -> bool""" | |
4022 | return _windows_.PrintDialogData_GetPrintToFile(*args, **kwargs) | |
4023 | ||
d55e5bfc RD |
4024 | def SetFromPage(*args, **kwargs): |
4025 | """SetFromPage(self, int v)""" | |
4026 | return _windows_.PrintDialogData_SetFromPage(*args, **kwargs) | |
4027 | ||
4028 | def SetToPage(*args, **kwargs): | |
4029 | """SetToPage(self, int v)""" | |
4030 | return _windows_.PrintDialogData_SetToPage(*args, **kwargs) | |
4031 | ||
4032 | def SetMinPage(*args, **kwargs): | |
4033 | """SetMinPage(self, int v)""" | |
4034 | return _windows_.PrintDialogData_SetMinPage(*args, **kwargs) | |
4035 | ||
4036 | def SetMaxPage(*args, **kwargs): | |
4037 | """SetMaxPage(self, int v)""" | |
4038 | return _windows_.PrintDialogData_SetMaxPage(*args, **kwargs) | |
4039 | ||
4040 | def SetNoCopies(*args, **kwargs): | |
4041 | """SetNoCopies(self, int v)""" | |
4042 | return _windows_.PrintDialogData_SetNoCopies(*args, **kwargs) | |
4043 | ||
4044 | def SetAllPages(*args, **kwargs): | |
4045 | """SetAllPages(self, bool flag)""" | |
4046 | return _windows_.PrintDialogData_SetAllPages(*args, **kwargs) | |
4047 | ||
4048 | def SetSelection(*args, **kwargs): | |
4049 | """SetSelection(self, bool flag)""" | |
4050 | return _windows_.PrintDialogData_SetSelection(*args, **kwargs) | |
4051 | ||
4052 | def SetCollate(*args, **kwargs): | |
4053 | """SetCollate(self, bool flag)""" | |
4054 | return _windows_.PrintDialogData_SetCollate(*args, **kwargs) | |
4055 | ||
4056 | def SetPrintToFile(*args, **kwargs): | |
4057 | """SetPrintToFile(self, bool flag)""" | |
4058 | return _windows_.PrintDialogData_SetPrintToFile(*args, **kwargs) | |
4059 | ||
d55e5bfc RD |
4060 | def EnablePrintToFile(*args, **kwargs): |
4061 | """EnablePrintToFile(self, bool flag)""" | |
4062 | return _windows_.PrintDialogData_EnablePrintToFile(*args, **kwargs) | |
4063 | ||
4064 | def EnableSelection(*args, **kwargs): | |
4065 | """EnableSelection(self, bool flag)""" | |
4066 | return _windows_.PrintDialogData_EnableSelection(*args, **kwargs) | |
4067 | ||
4068 | def EnablePageNumbers(*args, **kwargs): | |
4069 | """EnablePageNumbers(self, bool flag)""" | |
4070 | return _windows_.PrintDialogData_EnablePageNumbers(*args, **kwargs) | |
4071 | ||
4072 | def EnableHelp(*args, **kwargs): | |
4073 | """EnableHelp(self, bool flag)""" | |
4074 | return _windows_.PrintDialogData_EnableHelp(*args, **kwargs) | |
4075 | ||
4076 | def GetEnablePrintToFile(*args, **kwargs): | |
4077 | """GetEnablePrintToFile(self) -> bool""" | |
4078 | return _windows_.PrintDialogData_GetEnablePrintToFile(*args, **kwargs) | |
4079 | ||
4080 | def GetEnableSelection(*args, **kwargs): | |
4081 | """GetEnableSelection(self) -> bool""" | |
4082 | return _windows_.PrintDialogData_GetEnableSelection(*args, **kwargs) | |
4083 | ||
4084 | def GetEnablePageNumbers(*args, **kwargs): | |
4085 | """GetEnablePageNumbers(self) -> bool""" | |
4086 | return _windows_.PrintDialogData_GetEnablePageNumbers(*args, **kwargs) | |
4087 | ||
4088 | def GetEnableHelp(*args, **kwargs): | |
4089 | """GetEnableHelp(self) -> bool""" | |
4090 | return _windows_.PrintDialogData_GetEnableHelp(*args, **kwargs) | |
4091 | ||
4092 | def Ok(*args, **kwargs): | |
4093 | """Ok(self) -> bool""" | |
4094 | return _windows_.PrintDialogData_Ok(*args, **kwargs) | |
4095 | ||
4096 | def GetPrintData(*args, **kwargs): | |
4097 | """GetPrintData(self) -> PrintData""" | |
4098 | return _windows_.PrintDialogData_GetPrintData(*args, **kwargs) | |
4099 | ||
4100 | def SetPrintData(*args, **kwargs): | |
4101 | """SetPrintData(self, PrintData printData)""" | |
4102 | return _windows_.PrintDialogData_SetPrintData(*args, **kwargs) | |
4103 | ||
4104 | def __nonzero__(self): return self.Ok() | |
2131d850 | 4105 | _windows_.PrintDialogData_swigregister(PrintDialogData) |
d55e5bfc | 4106 | |
070c48b4 | 4107 | class PrintDialog(_core.Object): |
36ed4f51 | 4108 | """Proxy of C++ PrintDialog class""" |
1bd55598 RD |
4109 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4110 | __repr__ = _swig_repr | |
4111 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 4112 | """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog""" |
1bd55598 | 4113 | _windows_.PrintDialog_swiginit(self,_windows_.new_PrintDialog(*args, **kwargs)) |
06810ecf RD |
4114 | __swig_destroy__ = _windows_.delete_PrintDialog |
4115 | __del__ = lambda self : None; | |
070c48b4 RD |
4116 | def ShowModal(*args, **kwargs): |
4117 | """ShowModal(self) -> int""" | |
4118 | return _windows_.PrintDialog_ShowModal(*args, **kwargs) | |
d55e5bfc RD |
4119 | |
4120 | def GetPrintDialogData(*args, **kwargs): | |
4121 | """GetPrintDialogData(self) -> PrintDialogData""" | |
4122 | return _windows_.PrintDialog_GetPrintDialogData(*args, **kwargs) | |
4123 | ||
070c48b4 RD |
4124 | def GetPrintData(*args, **kwargs): |
4125 | """GetPrintData(self) -> PrintData""" | |
4126 | return _windows_.PrintDialog_GetPrintData(*args, **kwargs) | |
4127 | ||
d55e5bfc RD |
4128 | def GetPrintDC(*args, **kwargs): |
4129 | """GetPrintDC(self) -> DC""" | |
4130 | return _windows_.PrintDialog_GetPrintDC(*args, **kwargs) | |
4131 | ||
06810ecf | 4132 | def Destroy(self): pass |
2131d850 | 4133 | _windows_.PrintDialog_swigregister(PrintDialog) |
d55e5bfc RD |
4134 | |
4135 | PRINTER_NO_ERROR = _windows_.PRINTER_NO_ERROR | |
4136 | PRINTER_CANCELLED = _windows_.PRINTER_CANCELLED | |
4137 | PRINTER_ERROR = _windows_.PRINTER_ERROR | |
4138 | class Printer(_core.Object): | |
36ed4f51 | 4139 | """Proxy of C++ Printer class""" |
1bd55598 RD |
4140 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4141 | __repr__ = _swig_repr | |
4142 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 4143 | """__init__(self, PrintDialogData data=None) -> Printer""" |
1bd55598 RD |
4144 | _windows_.Printer_swiginit(self,_windows_.new_Printer(*args, **kwargs)) |
4145 | __swig_destroy__ = _windows_.delete_Printer | |
4146 | __del__ = lambda self : None; | |
d55e5bfc | 4147 | def CreateAbortWindow(*args, **kwargs): |
070c48b4 | 4148 | """CreateAbortWindow(self, Window parent, Printout printout) -> Window""" |
d55e5bfc RD |
4149 | return _windows_.Printer_CreateAbortWindow(*args, **kwargs) |
4150 | ||
070c48b4 RD |
4151 | def ReportError(*args, **kwargs): |
4152 | """ReportError(self, Window parent, Printout printout, String message)""" | |
4153 | return _windows_.Printer_ReportError(*args, **kwargs) | |
4154 | ||
4155 | def Setup(*args, **kwargs): | |
4156 | """Setup(self, Window parent) -> bool""" | |
4157 | return _windows_.Printer_Setup(*args, **kwargs) | |
d55e5bfc RD |
4158 | |
4159 | def Print(*args, **kwargs): | |
070c48b4 | 4160 | """Print(self, Window parent, Printout printout, bool prompt=True) -> bool""" |
d55e5bfc RD |
4161 | return _windows_.Printer_Print(*args, **kwargs) |
4162 | ||
4163 | def PrintDialog(*args, **kwargs): | |
4164 | """PrintDialog(self, Window parent) -> DC""" | |
4165 | return _windows_.Printer_PrintDialog(*args, **kwargs) | |
4166 | ||
070c48b4 RD |
4167 | def GetPrintDialogData(*args, **kwargs): |
4168 | """GetPrintDialogData(self) -> PrintDialogData""" | |
4169 | return _windows_.Printer_GetPrintDialogData(*args, **kwargs) | |
d55e5bfc RD |
4170 | |
4171 | def GetAbort(*args, **kwargs): | |
4172 | """GetAbort(self) -> bool""" | |
4173 | return _windows_.Printer_GetAbort(*args, **kwargs) | |
4174 | ||
4175 | def GetLastError(*args, **kwargs): | |
d6c14a4c | 4176 | """GetLastError() -> int""" |
d55e5bfc RD |
4177 | return _windows_.Printer_GetLastError(*args, **kwargs) |
4178 | ||
4179 | GetLastError = staticmethod(GetLastError) | |
2131d850 | 4180 | _windows_.Printer_swigregister(Printer) |
d55e5bfc | 4181 | |
1bd55598 RD |
4182 | def Printer_GetLastError(*args): |
4183 | """Printer_GetLastError() -> int""" | |
4184 | return _windows_.Printer_GetLastError(*args) | |
d55e5bfc RD |
4185 | |
4186 | class Printout(_core.Object): | |
36ed4f51 | 4187 | """Proxy of C++ Printout class""" |
1bd55598 RD |
4188 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4189 | __repr__ = _swig_repr | |
4190 | def __init__(self, *args, **kwargs): | |
d55e5bfc | 4191 | """__init__(self, String title=PrintoutTitleStr) -> Printout""" |
1bd55598 | 4192 | _windows_.Printout_swiginit(self,_windows_.new_Printout(*args, **kwargs)) |
d55e5bfc RD |
4193 | self._setCallbackInfo(self, Printout) |
4194 | ||
1bd55598 RD |
4195 | __swig_destroy__ = _windows_.delete_Printout |
4196 | __del__ = lambda self : None; | |
d55e5bfc RD |
4197 | def _setCallbackInfo(*args, **kwargs): |
4198 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4199 | return _windows_.Printout__setCallbackInfo(*args, **kwargs) | |
4200 | ||
4201 | def GetTitle(*args, **kwargs): | |
4202 | """GetTitle(self) -> String""" | |
4203 | return _windows_.Printout_GetTitle(*args, **kwargs) | |
4204 | ||
4205 | def GetDC(*args, **kwargs): | |
4206 | """GetDC(self) -> DC""" | |
4207 | return _windows_.Printout_GetDC(*args, **kwargs) | |
4208 | ||
4209 | def SetDC(*args, **kwargs): | |
4210 | """SetDC(self, DC dc)""" | |
4211 | return _windows_.Printout_SetDC(*args, **kwargs) | |
4212 | ||
4213 | def SetPageSizePixels(*args, **kwargs): | |
4214 | """SetPageSizePixels(self, int w, int h)""" | |
4215 | return _windows_.Printout_SetPageSizePixels(*args, **kwargs) | |
4216 | ||
4217 | def GetPageSizePixels(*args, **kwargs): | |
4218 | """GetPageSizePixels() -> (w, h)""" | |
4219 | return _windows_.Printout_GetPageSizePixels(*args, **kwargs) | |
4220 | ||
4221 | def SetPageSizeMM(*args, **kwargs): | |
4222 | """SetPageSizeMM(self, int w, int h)""" | |
4223 | return _windows_.Printout_SetPageSizeMM(*args, **kwargs) | |
4224 | ||
4225 | def GetPageSizeMM(*args, **kwargs): | |
4226 | """GetPageSizeMM() -> (w, h)""" | |
4227 | return _windows_.Printout_GetPageSizeMM(*args, **kwargs) | |
4228 | ||
4229 | def SetPPIScreen(*args, **kwargs): | |
4230 | """SetPPIScreen(self, int x, int y)""" | |
4231 | return _windows_.Printout_SetPPIScreen(*args, **kwargs) | |
4232 | ||
4233 | def GetPPIScreen(*args, **kwargs): | |
4234 | """GetPPIScreen() -> (x,y)""" | |
4235 | return _windows_.Printout_GetPPIScreen(*args, **kwargs) | |
4236 | ||
4237 | def SetPPIPrinter(*args, **kwargs): | |
4238 | """SetPPIPrinter(self, int x, int y)""" | |
4239 | return _windows_.Printout_SetPPIPrinter(*args, **kwargs) | |
4240 | ||
4241 | def GetPPIPrinter(*args, **kwargs): | |
4242 | """GetPPIPrinter() -> (x,y)""" | |
4243 | return _windows_.Printout_GetPPIPrinter(*args, **kwargs) | |
4244 | ||
4245 | def IsPreview(*args, **kwargs): | |
4246 | """IsPreview(self) -> bool""" | |
4247 | return _windows_.Printout_IsPreview(*args, **kwargs) | |
4248 | ||
4249 | def SetIsPreview(*args, **kwargs): | |
4250 | """SetIsPreview(self, bool p)""" | |
4251 | return _windows_.Printout_SetIsPreview(*args, **kwargs) | |
4252 | ||
7f7aa166 RD |
4253 | def OnBeginDocument(*args, **kwargs): |
4254 | """OnBeginDocument(self, int startPage, int endPage) -> bool""" | |
4255 | return _windows_.Printout_OnBeginDocument(*args, **kwargs) | |
4256 | ||
4257 | def OnEndDocument(*args, **kwargs): | |
4258 | """OnEndDocument(self)""" | |
4259 | return _windows_.Printout_OnEndDocument(*args, **kwargs) | |
4260 | ||
4261 | def OnBeginPrinting(*args, **kwargs): | |
4262 | """OnBeginPrinting(self)""" | |
4263 | return _windows_.Printout_OnBeginPrinting(*args, **kwargs) | |
d55e5bfc | 4264 | |
7f7aa166 RD |
4265 | def OnEndPrinting(*args, **kwargs): |
4266 | """OnEndPrinting(self)""" | |
4267 | return _windows_.Printout_OnEndPrinting(*args, **kwargs) | |
d55e5bfc | 4268 | |
7f7aa166 RD |
4269 | def OnPreparePrinting(*args, **kwargs): |
4270 | """OnPreparePrinting(self)""" | |
4271 | return _windows_.Printout_OnPreparePrinting(*args, **kwargs) | |
d55e5bfc | 4272 | |
7f7aa166 RD |
4273 | def HasPage(*args, **kwargs): |
4274 | """HasPage(self, int page) -> bool""" | |
4275 | return _windows_.Printout_HasPage(*args, **kwargs) | |
d55e5bfc | 4276 | |
7f7aa166 RD |
4277 | def GetPageInfo(*args, **kwargs): |
4278 | """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)""" | |
4279 | return _windows_.Printout_GetPageInfo(*args, **kwargs) | |
d55e5bfc | 4280 | |
7f7aa166 RD |
4281 | def base_OnBeginDocument(*args, **kw): |
4282 | return Printout.OnBeginDocument(*args, **kw) | |
4283 | base_OnBeginDocument = wx._deprecated(base_OnBeginDocument, | |
4284 | "Please use Printout.OnBeginDocument instead.") | |
d55e5bfc | 4285 | |
7f7aa166 RD |
4286 | def base_OnEndDocument(*args, **kw): |
4287 | return Printout.OnEndDocument(*args, **kw) | |
4288 | base_OnEndDocument = wx._deprecated(base_OnEndDocument, | |
4289 | "Please use Printout.OnEndDocument instead.") | |
4290 | ||
4291 | def base_OnBeginPrinting(*args, **kw): | |
4292 | return Printout.OnBeginPrinting(*args, **kw) | |
4293 | base_OnBeginPrinting = wx._deprecated(base_OnBeginPrinting, | |
4294 | "Please use Printout.OnBeginPrinting instead.") | |
4295 | ||
4296 | def base_OnEndPrinting(*args, **kw): | |
4297 | return Printout.OnEndPrinting(*args, **kw) | |
4298 | base_OnEndPrinting = wx._deprecated(base_OnEndPrinting, | |
4299 | "Please use Printout.OnEndPrinting instead.") | |
4300 | ||
4301 | def base_OnPreparePrinting(*args, **kw): | |
4302 | return Printout.OnPreparePrinting(*args, **kw) | |
4303 | base_OnPreparePrinting = wx._deprecated(base_OnPreparePrinting, | |
4304 | "Please use Printout.OnPreparePrinting instead.") | |
4305 | ||
4306 | def base_GetPageInfo(*args, **kw): | |
4307 | return Printout.GetPageInfo(*args, **kw) | |
4308 | base_GetPageInfo = wx._deprecated(base_GetPageInfo, | |
4309 | "Please use Printout.GetPageInfo instead.") | |
d55e5bfc | 4310 | |
2131d850 | 4311 | _windows_.Printout_swigregister(Printout) |
d55e5bfc RD |
4312 | |
4313 | class PreviewCanvas(ScrolledWindow): | |
36ed4f51 | 4314 | """Proxy of C++ PreviewCanvas class""" |
1bd55598 RD |
4315 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4316 | __repr__ = _swig_repr | |
4317 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
4318 | """ |
4319 | __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition, | |
4320 | Size size=DefaultSize, long style=0, | |
4321 | String name=PreviewCanvasNameStr) -> PreviewCanvas | |
4322 | """ | |
1bd55598 | 4323 | _windows_.PreviewCanvas_swiginit(self,_windows_.new_PreviewCanvas(*args, **kwargs)) |
d55e5bfc RD |
4324 | self._setOORInfo(self) |
4325 | ||
2131d850 | 4326 | _windows_.PreviewCanvas_swigregister(PreviewCanvas) |
d55e5bfc RD |
4327 | |
4328 | class PreviewFrame(Frame): | |
36ed4f51 | 4329 | """Proxy of C++ PreviewFrame class""" |
1bd55598 RD |
4330 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4331 | __repr__ = _swig_repr | |
4332 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
4333 | """ |
4334 | __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, | |
4335 | Size size=DefaultSize, | |
4336 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame | |
4337 | """ | |
1bd55598 | 4338 | _windows_.PreviewFrame_swiginit(self,_windows_.new_PreviewFrame(*args, **kwargs)) |
d55e5bfc RD |
4339 | self._setOORInfo(self) |
4340 | ||
4341 | def Initialize(*args, **kwargs): | |
4342 | """Initialize(self)""" | |
4343 | return _windows_.PreviewFrame_Initialize(*args, **kwargs) | |
4344 | ||
4345 | def CreateControlBar(*args, **kwargs): | |
4346 | """CreateControlBar(self)""" | |
4347 | return _windows_.PreviewFrame_CreateControlBar(*args, **kwargs) | |
4348 | ||
4349 | def CreateCanvas(*args, **kwargs): | |
4350 | """CreateCanvas(self)""" | |
4351 | return _windows_.PreviewFrame_CreateCanvas(*args, **kwargs) | |
4352 | ||
4353 | def GetControlBar(*args, **kwargs): | |
4354 | """GetControlBar(self) -> PreviewControlBar""" | |
4355 | return _windows_.PreviewFrame_GetControlBar(*args, **kwargs) | |
4356 | ||
2131d850 | 4357 | _windows_.PreviewFrame_swigregister(PreviewFrame) |
d55e5bfc RD |
4358 | |
4359 | PREVIEW_PRINT = _windows_.PREVIEW_PRINT | |
4360 | PREVIEW_PREVIOUS = _windows_.PREVIEW_PREVIOUS | |
4361 | PREVIEW_NEXT = _windows_.PREVIEW_NEXT | |
4362 | PREVIEW_ZOOM = _windows_.PREVIEW_ZOOM | |
4363 | PREVIEW_FIRST = _windows_.PREVIEW_FIRST | |
4364 | PREVIEW_LAST = _windows_.PREVIEW_LAST | |
4365 | PREVIEW_GOTO = _windows_.PREVIEW_GOTO | |
4366 | PREVIEW_DEFAULT = _windows_.PREVIEW_DEFAULT | |
4367 | ID_PREVIEW_CLOSE = _windows_.ID_PREVIEW_CLOSE | |
4368 | ID_PREVIEW_NEXT = _windows_.ID_PREVIEW_NEXT | |
4369 | ID_PREVIEW_PREVIOUS = _windows_.ID_PREVIEW_PREVIOUS | |
4370 | ID_PREVIEW_PRINT = _windows_.ID_PREVIEW_PRINT | |
4371 | ID_PREVIEW_ZOOM = _windows_.ID_PREVIEW_ZOOM | |
4372 | ID_PREVIEW_FIRST = _windows_.ID_PREVIEW_FIRST | |
4373 | ID_PREVIEW_LAST = _windows_.ID_PREVIEW_LAST | |
4374 | ID_PREVIEW_GOTO = _windows_.ID_PREVIEW_GOTO | |
4375 | class PreviewControlBar(Panel): | |
36ed4f51 | 4376 | """Proxy of C++ PreviewControlBar class""" |
1bd55598 RD |
4377 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4378 | __repr__ = _swig_repr | |
4379 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
4380 | """ |
4381 | __init__(self, PrintPreview preview, long buttons, Window parent, | |
4382 | Point pos=DefaultPosition, Size size=DefaultSize, | |
4383 | long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar | |
4384 | """ | |
1bd55598 | 4385 | _windows_.PreviewControlBar_swiginit(self,_windows_.new_PreviewControlBar(*args, **kwargs)) |
d55e5bfc RD |
4386 | self._setOORInfo(self) |
4387 | ||
4388 | def GetZoomControl(*args, **kwargs): | |
4389 | """GetZoomControl(self) -> int""" | |
4390 | return _windows_.PreviewControlBar_GetZoomControl(*args, **kwargs) | |
4391 | ||
4392 | def SetZoomControl(*args, **kwargs): | |
4393 | """SetZoomControl(self, int zoom)""" | |
4394 | return _windows_.PreviewControlBar_SetZoomControl(*args, **kwargs) | |
4395 | ||
4396 | def GetPrintPreview(*args, **kwargs): | |
4397 | """GetPrintPreview(self) -> PrintPreview""" | |
4398 | return _windows_.PreviewControlBar_GetPrintPreview(*args, **kwargs) | |
4399 | ||
4400 | def OnNext(*args, **kwargs): | |
4401 | """OnNext(self)""" | |
4402 | return _windows_.PreviewControlBar_OnNext(*args, **kwargs) | |
4403 | ||
4404 | def OnPrevious(*args, **kwargs): | |
4405 | """OnPrevious(self)""" | |
4406 | return _windows_.PreviewControlBar_OnPrevious(*args, **kwargs) | |
4407 | ||
4408 | def OnFirst(*args, **kwargs): | |
4409 | """OnFirst(self)""" | |
4410 | return _windows_.PreviewControlBar_OnFirst(*args, **kwargs) | |
4411 | ||
4412 | def OnLast(*args, **kwargs): | |
4413 | """OnLast(self)""" | |
4414 | return _windows_.PreviewControlBar_OnLast(*args, **kwargs) | |
4415 | ||
4416 | def OnGoto(*args, **kwargs): | |
4417 | """OnGoto(self)""" | |
4418 | return _windows_.PreviewControlBar_OnGoto(*args, **kwargs) | |
4419 | ||
2131d850 | 4420 | _windows_.PreviewControlBar_swigregister(PreviewControlBar) |
d55e5bfc RD |
4421 | |
4422 | class PrintPreview(_core.Object): | |
36ed4f51 | 4423 | """Proxy of C++ PrintPreview class""" |
1bd55598 RD |
4424 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4425 | __repr__ = _swig_repr | |
4426 | def __init__(self, *args): | |
d55e5bfc RD |
4427 | """ |
4428 | __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview | |
4429 | __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview | |
4430 | """ | |
1bd55598 RD |
4431 | _windows_.PrintPreview_swiginit(self,_windows_.new_PrintPreview(*args)) |
4432 | __swig_destroy__ = _windows_.delete_PrintPreview | |
4433 | __del__ = lambda self : None; | |
d55e5bfc RD |
4434 | def SetCurrentPage(*args, **kwargs): |
4435 | """SetCurrentPage(self, int pageNum) -> bool""" | |
4436 | return _windows_.PrintPreview_SetCurrentPage(*args, **kwargs) | |
4437 | ||
4438 | def GetCurrentPage(*args, **kwargs): | |
4439 | """GetCurrentPage(self) -> int""" | |
4440 | return _windows_.PrintPreview_GetCurrentPage(*args, **kwargs) | |
4441 | ||
4442 | def SetPrintout(*args, **kwargs): | |
4443 | """SetPrintout(self, Printout printout)""" | |
4444 | return _windows_.PrintPreview_SetPrintout(*args, **kwargs) | |
4445 | ||
4446 | def GetPrintout(*args, **kwargs): | |
4447 | """GetPrintout(self) -> Printout""" | |
4448 | return _windows_.PrintPreview_GetPrintout(*args, **kwargs) | |
4449 | ||
4450 | def GetPrintoutForPrinting(*args, **kwargs): | |
4451 | """GetPrintoutForPrinting(self) -> Printout""" | |
4452 | return _windows_.PrintPreview_GetPrintoutForPrinting(*args, **kwargs) | |
4453 | ||
4454 | def SetFrame(*args, **kwargs): | |
4455 | """SetFrame(self, Frame frame)""" | |
4456 | return _windows_.PrintPreview_SetFrame(*args, **kwargs) | |
4457 | ||
4458 | def SetCanvas(*args, **kwargs): | |
4459 | """SetCanvas(self, PreviewCanvas canvas)""" | |
4460 | return _windows_.PrintPreview_SetCanvas(*args, **kwargs) | |
4461 | ||
4462 | def GetFrame(*args, **kwargs): | |
4463 | """GetFrame(self) -> Frame""" | |
4464 | return _windows_.PrintPreview_GetFrame(*args, **kwargs) | |
4465 | ||
4466 | def GetCanvas(*args, **kwargs): | |
4467 | """GetCanvas(self) -> PreviewCanvas""" | |
4468 | return _windows_.PrintPreview_GetCanvas(*args, **kwargs) | |
4469 | ||
4470 | def PaintPage(*args, **kwargs): | |
4471 | """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool""" | |
4472 | return _windows_.PrintPreview_PaintPage(*args, **kwargs) | |
4473 | ||
4474 | def DrawBlankPage(*args, **kwargs): | |
4475 | """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool""" | |
4476 | return _windows_.PrintPreview_DrawBlankPage(*args, **kwargs) | |
4477 | ||
4478 | def RenderPage(*args, **kwargs): | |
4479 | """RenderPage(self, int pageNum) -> bool""" | |
4480 | return _windows_.PrintPreview_RenderPage(*args, **kwargs) | |
4481 | ||
4482 | def AdjustScrollbars(*args, **kwargs): | |
4483 | """AdjustScrollbars(self, PreviewCanvas canvas)""" | |
4484 | return _windows_.PrintPreview_AdjustScrollbars(*args, **kwargs) | |
4485 | ||
4486 | def GetPrintDialogData(*args, **kwargs): | |
4487 | """GetPrintDialogData(self) -> PrintDialogData""" | |
4488 | return _windows_.PrintPreview_GetPrintDialogData(*args, **kwargs) | |
4489 | ||
4490 | def SetZoom(*args, **kwargs): | |
4491 | """SetZoom(self, int percent)""" | |
4492 | return _windows_.PrintPreview_SetZoom(*args, **kwargs) | |
4493 | ||
4494 | def GetZoom(*args, **kwargs): | |
4495 | """GetZoom(self) -> int""" | |
4496 | return _windows_.PrintPreview_GetZoom(*args, **kwargs) | |
4497 | ||
4498 | def GetMaxPage(*args, **kwargs): | |
4499 | """GetMaxPage(self) -> int""" | |
4500 | return _windows_.PrintPreview_GetMaxPage(*args, **kwargs) | |
4501 | ||
4502 | def GetMinPage(*args, **kwargs): | |
4503 | """GetMinPage(self) -> int""" | |
4504 | return _windows_.PrintPreview_GetMinPage(*args, **kwargs) | |
4505 | ||
4506 | def Ok(*args, **kwargs): | |
4507 | """Ok(self) -> bool""" | |
4508 | return _windows_.PrintPreview_Ok(*args, **kwargs) | |
4509 | ||
4510 | def SetOk(*args, **kwargs): | |
4511 | """SetOk(self, bool ok)""" | |
4512 | return _windows_.PrintPreview_SetOk(*args, **kwargs) | |
4513 | ||
4514 | def Print(*args, **kwargs): | |
4515 | """Print(self, bool interactive) -> bool""" | |
4516 | return _windows_.PrintPreview_Print(*args, **kwargs) | |
4517 | ||
4518 | def DetermineScaling(*args, **kwargs): | |
4519 | """DetermineScaling(self)""" | |
4520 | return _windows_.PrintPreview_DetermineScaling(*args, **kwargs) | |
4521 | ||
4522 | def __nonzero__(self): return self.Ok() | |
2131d850 | 4523 | _windows_.PrintPreview_swigregister(PrintPreview) |
d55e5bfc RD |
4524 | |
4525 | class PyPrintPreview(PrintPreview): | |
36ed4f51 | 4526 | """Proxy of C++ PyPrintPreview class""" |
1bd55598 RD |
4527 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4528 | __repr__ = _swig_repr | |
4529 | def __init__(self, *args): | |
d55e5bfc RD |
4530 | """ |
4531 | __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview | |
4532 | __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview | |
4533 | """ | |
1bd55598 | 4534 | _windows_.PyPrintPreview_swiginit(self,_windows_.new_PyPrintPreview(*args)) |
d55e5bfc RD |
4535 | self._setCallbackInfo(self, PyPrintPreview) |
4536 | ||
4537 | def _setCallbackInfo(*args, **kwargs): | |
4538 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4539 | return _windows_.PyPrintPreview__setCallbackInfo(*args, **kwargs) | |
4540 | ||
7f7aa166 RD |
4541 | def base_SetCurrentPage(*args, **kw): |
4542 | return PyPrintPreview.SetCurrentPage(*args, **kw) | |
4543 | base_SetCurrentPage = wx._deprecated(base_SetCurrentPage, | |
4544 | "Please use PyPrintPreview.SetCurrentPage instead.") | |
d55e5bfc | 4545 | |
7f7aa166 RD |
4546 | def base_PaintPage(*args, **kw): |
4547 | return PyPrintPreview.PaintPage(*args, **kw) | |
4548 | base_PaintPage = wx._deprecated(base_PaintPage, | |
4549 | "Please use PyPrintPreview.PaintPage instead.") | |
d55e5bfc | 4550 | |
7f7aa166 RD |
4551 | def base_DrawBlankPage(*args, **kw): |
4552 | return PyPrintPreview.DrawBlankPage(*args, **kw) | |
4553 | base_DrawBlankPage = wx._deprecated(base_DrawBlankPage, | |
4554 | "Please use PyPrintPreview.DrawBlankPage instead.") | |
d55e5bfc | 4555 | |
7f7aa166 RD |
4556 | def base_RenderPage(*args, **kw): |
4557 | return PyPrintPreview.RenderPage(*args, **kw) | |
4558 | base_RenderPage = wx._deprecated(base_RenderPage, | |
4559 | "Please use PyPrintPreview.RenderPage instead.") | |
4560 | ||
4561 | def base_SetZoom(*args, **kw): | |
4562 | return PyPrintPreview.SetZoom(*args, **kw) | |
4563 | base_SetZoom = wx._deprecated(base_SetZoom, | |
4564 | "Please use PyPrintPreview.SetZoom instead.") | |
4565 | ||
4566 | def base_Print(*args, **kw): | |
4567 | return PyPrintPreview.Print(*args, **kw) | |
4568 | base_Print = wx._deprecated(base_Print, | |
4569 | "Please use PyPrintPreview.Print instead.") | |
4570 | ||
4571 | def base_DetermineScaling(*args, **kw): | |
4572 | return PyPrintPreview.DetermineScaling(*args, **kw) | |
4573 | base_DetermineScaling = wx._deprecated(base_DetermineScaling, | |
4574 | "Please use PyPrintPreview.DetermineScaling instead.") | |
d55e5bfc | 4575 | |
2131d850 | 4576 | _windows_.PyPrintPreview_swigregister(PyPrintPreview) |
d55e5bfc RD |
4577 | |
4578 | class PyPreviewFrame(PreviewFrame): | |
36ed4f51 | 4579 | """Proxy of C++ PyPreviewFrame class""" |
1bd55598 RD |
4580 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4581 | __repr__ = _swig_repr | |
4582 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
4583 | """ |
4584 | __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition, | |
4585 | Size size=DefaultSize, | |
4586 | long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame | |
4587 | """ | |
1bd55598 | 4588 | _windows_.PyPreviewFrame_swiginit(self,_windows_.new_PyPreviewFrame(*args, **kwargs)) |
d55e5bfc RD |
4589 | self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self) |
4590 | ||
4591 | def _setCallbackInfo(*args, **kwargs): | |
4592 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4593 | return _windows_.PyPreviewFrame__setCallbackInfo(*args, **kwargs) | |
4594 | ||
4595 | def SetPreviewCanvas(*args, **kwargs): | |
4596 | """SetPreviewCanvas(self, PreviewCanvas canvas)""" | |
4597 | return _windows_.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs) | |
4598 | ||
4599 | def SetControlBar(*args, **kwargs): | |
4600 | """SetControlBar(self, PreviewControlBar bar)""" | |
4601 | return _windows_.PyPreviewFrame_SetControlBar(*args, **kwargs) | |
4602 | ||
7f7aa166 RD |
4603 | def Initialize(*args, **kwargs): |
4604 | """Initialize(self)""" | |
4605 | return _windows_.PyPreviewFrame_Initialize(*args, **kwargs) | |
4606 | ||
4607 | def CreateCanvas(*args, **kwargs): | |
4608 | """CreateCanvas(self)""" | |
4609 | return _windows_.PyPreviewFrame_CreateCanvas(*args, **kwargs) | |
4610 | ||
4611 | def CreateControlBar(*args, **kwargs): | |
4612 | """CreateControlBar(self)""" | |
4613 | return _windows_.PyPreviewFrame_CreateControlBar(*args, **kwargs) | |
d55e5bfc | 4614 | |
7f7aa166 RD |
4615 | def base_Initialize(*args, **kw): |
4616 | return PyPreviewFrame.Initialize(*args, **kw) | |
4617 | base_Initialize = wx._deprecated(base_Initialize, | |
4618 | "Please use PyPreviewFrame.Initialize instead.") | |
d55e5bfc | 4619 | |
7f7aa166 RD |
4620 | def base_CreateCanvas(*args, **kw): |
4621 | return PyPreviewFrame.CreateCanvas(*args, **kw) | |
4622 | base_CreateCanvas = wx._deprecated(base_CreateCanvas, | |
4623 | "Please use PyPreviewFrame.CreateCanvas instead.") | |
4624 | ||
4625 | def base_CreateControlBar(*args, **kw): | |
4626 | return PyPreviewFrame.CreateControlBar(*args, **kw) | |
4627 | base_CreateControlBar = wx._deprecated(base_CreateControlBar, | |
4628 | "Please use PyPreviewFrame.CreateControlBar instead.") | |
d55e5bfc | 4629 | |
2131d850 | 4630 | _windows_.PyPreviewFrame_swigregister(PyPreviewFrame) |
d55e5bfc RD |
4631 | |
4632 | class PyPreviewControlBar(PreviewControlBar): | |
36ed4f51 | 4633 | """Proxy of C++ PyPreviewControlBar class""" |
1bd55598 RD |
4634 | thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag') |
4635 | __repr__ = _swig_repr | |
4636 | def __init__(self, *args, **kwargs): | |
d55e5bfc RD |
4637 | """ |
4638 | __init__(self, PrintPreview preview, long buttons, Window parent, | |
4639 | Point pos=DefaultPosition, Size size=DefaultSize, | |
4640 | long style=0, String name=PanelNameStr) -> PyPreviewControlBar | |
4641 | """ | |
1bd55598 | 4642 | _windows_.PyPreviewControlBar_swiginit(self,_windows_.new_PyPreviewControlBar(*args, **kwargs)) |
d55e5bfc RD |
4643 | self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self) |
4644 | ||
4645 | def _setCallbackInfo(*args, **kwargs): | |
4646 | """_setCallbackInfo(self, PyObject self, PyObject _class)""" | |
4647 | return _windows_.PyPreviewControlBar__setCallbackInfo(*args, **kwargs) | |
4648 | ||
4649 | def SetPrintPreview(*args, **kwargs): | |
4650 | """SetPrintPreview(self, PrintPreview preview)""" | |
4651 | return _windows_.PyPreviewControlBar_SetPrintPreview(*args, **kwargs) | |
4652 | ||
7f7aa166 RD |
4653 | def CreateButtons(*args, **kwargs): |
4654 | """CreateButtons(self)""" | |
4655 | return _windows_.PyPreviewControlBar_CreateButtons(*args, **kwargs) | |
4656 | ||
4657 | def SetZoomControl(*args, **kwargs): | |
4658 | """SetZoomControl(self, int zoom)""" | |
4659 | return _windows_.PyPreviewControlBar_SetZoomControl(*args, **kwargs) | |
4660 | ||
4661 | def base_CreateButtons(*args, **kw): | |
4662 | return PreviewControlBar.CreateButtons(*args, **kw) | |
4663 | base_CreateButtons = wx._deprecated(base_CreateButtons, | |
4664 | "Please use PreviewControlBar.CreateButtons instead.") | |
d55e5bfc | 4665 | |
7f7aa166 RD |
4666 | def base_SetZoomControl(*args, **kw): |
4667 | return PreviewControlBar.SetZoomControl(*args, **kw) | |
4668 | base_SetZoomControl = wx._deprecated(base_SetZoomControl, | |
4669 | "Please use PreviewControlBar.SetZoomControl instead.") | |
d55e5bfc | 4670 | |
2131d850 | 4671 | _windows_.PyPreviewControlBar_swigregister(PyPreviewControlBar) |
d55e5bfc RD |
4672 | |
4673 | ||
32fe5131 | 4674 |