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