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