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