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