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