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