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