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