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