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