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