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