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