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