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