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