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