]> git.saurik.com Git - wxWidgets.git/blame - wxPython/src/mac/_windows.py
added a test to check how exception handling works with Win32 SEH; corrected copyright
[wxWidgets.git] / wxPython / src / mac / _windows.py
CommitLineData
d55e5bfc
RD
1# This file was created automatically by SWIG.
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
d55e5bfc
RD
363DIALOG_MODAL = _windows_.DIALOG_MODAL
364DIALOG_MODELESS = _windows_.DIALOG_MODELESS
365USER_COLOURS = _windows_.USER_COLOURS
366NO_3D = _windows_.NO_3D
367FULLSCREEN_NOMENUBAR = _windows_.FULLSCREEN_NOMENUBAR
368FULLSCREEN_NOTOOLBAR = _windows_.FULLSCREEN_NOTOOLBAR
369FULLSCREEN_NOSTATUSBAR = _windows_.FULLSCREEN_NOSTATUSBAR
370FULLSCREEN_NOBORDER = _windows_.FULLSCREEN_NOBORDER
371FULLSCREEN_NOCAPTION = _windows_.FULLSCREEN_NOCAPTION
372FULLSCREEN_ALL = _windows_.FULLSCREEN_ALL
373TOPLEVEL_EX_DIALOG = _windows_.TOPLEVEL_EX_DIALOG
c370783e
RD
374USER_ATTENTION_INFO = _windows_.USER_ATTENTION_INFO
375USER_ATTENTION_ERROR = _windows_.USER_ATTENTION_ERROR
d55e5bfc 376class TopLevelWindow(_core.Window):
36ed4f51 377 """Proxy of C++ TopLevelWindow class"""
d55e5bfc
RD
378 def __init__(self): raise RuntimeError, "No constructor defined"
379 def __repr__(self):
380 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
381 def Maximize(*args, **kwargs):
382 """Maximize(self, bool maximize=True)"""
383 return _windows_.TopLevelWindow_Maximize(*args, **kwargs)
384
385 def Restore(*args, **kwargs):
386 """Restore(self)"""
387 return _windows_.TopLevelWindow_Restore(*args, **kwargs)
388
389 def Iconize(*args, **kwargs):
390 """Iconize(self, bool iconize=True)"""
391 return _windows_.TopLevelWindow_Iconize(*args, **kwargs)
392
393 def IsMaximized(*args, **kwargs):
394 """IsMaximized(self) -> bool"""
395 return _windows_.TopLevelWindow_IsMaximized(*args, **kwargs)
396
397 def IsIconized(*args, **kwargs):
398 """IsIconized(self) -> bool"""
399 return _windows_.TopLevelWindow_IsIconized(*args, **kwargs)
400
401 def GetIcon(*args, **kwargs):
402 """GetIcon(self) -> Icon"""
403 return _windows_.TopLevelWindow_GetIcon(*args, **kwargs)
404
405 def SetIcon(*args, **kwargs):
406 """SetIcon(self, Icon icon)"""
407 return _windows_.TopLevelWindow_SetIcon(*args, **kwargs)
408
409 def SetIcons(*args, **kwargs):
410 """SetIcons(self, wxIconBundle icons)"""
411 return _windows_.TopLevelWindow_SetIcons(*args, **kwargs)
412
413 def ShowFullScreen(*args, **kwargs):
414 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
415 return _windows_.TopLevelWindow_ShowFullScreen(*args, **kwargs)
416
417 def IsFullScreen(*args, **kwargs):
418 """IsFullScreen(self) -> bool"""
419 return _windows_.TopLevelWindow_IsFullScreen(*args, **kwargs)
420
421 def SetTitle(*args, **kwargs):
422 """
423 SetTitle(self, String title)
424
425 Sets the window's title. Applicable only to frames and dialogs.
426 """
427 return _windows_.TopLevelWindow_SetTitle(*args, **kwargs)
428
429 def GetTitle(*args, **kwargs):
430 """
431 GetTitle(self) -> String
432
433 Gets the window's title. Applicable only to frames and dialogs.
434 """
435 return _windows_.TopLevelWindow_GetTitle(*args, **kwargs)
436
437 def SetShape(*args, **kwargs):
438 """SetShape(self, Region region) -> bool"""
439 return _windows_.TopLevelWindow_SetShape(*args, **kwargs)
440
c370783e
RD
441 def RequestUserAttention(*args, **kwargs):
442 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
443 return _windows_.TopLevelWindow_RequestUserAttention(*args, **kwargs)
444
5e483524
RD
445 def IsActive(*args, **kwargs):
446 """IsActive(self) -> bool"""
447 return _windows_.TopLevelWindow_IsActive(*args, **kwargs)
448
d55e5bfc
RD
449 def MacSetMetalAppearance(*args, **kwargs):
450 """MacSetMetalAppearance(self, bool on)"""
451 return _windows_.TopLevelWindow_MacSetMetalAppearance(*args, **kwargs)
452
453 def MacGetMetalAppearance(*args, **kwargs):
454 """MacGetMetalAppearance(self) -> bool"""
455 return _windows_.TopLevelWindow_MacGetMetalAppearance(*args, **kwargs)
456
457
458class TopLevelWindowPtr(TopLevelWindow):
459 def __init__(self, this):
460 self.this = this
461 if not hasattr(self,"thisown"): self.thisown = 0
462 self.__class__ = TopLevelWindow
463_windows_.TopLevelWindow_swigregister(TopLevelWindowPtr)
464cvar = _windows_.cvar
465FrameNameStr = cvar.FrameNameStr
466DialogNameStr = cvar.DialogNameStr
467StatusLineNameStr = cvar.StatusLineNameStr
468ToolBarNameStr = cvar.ToolBarNameStr
469
470#---------------------------------------------------------------------------
471
472class Frame(TopLevelWindow):
36ed4f51 473 """Proxy of C++ Frame class"""
d55e5bfc
RD
474 def __repr__(self):
475 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
476 def __init__(self, *args, **kwargs):
477 """
bfddbb17
RD
478 __init__(self, Window parent, int id=-1, String title=EmptyString,
479 Point pos=DefaultPosition, Size size=DefaultSize,
480 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
d55e5bfc
RD
481 """
482 newobj = _windows_.new_Frame(*args, **kwargs)
483 self.this = newobj.this
484 self.thisown = 1
485 del newobj.thisown
486 self._setOORInfo(self)
487
488 def Create(*args, **kwargs):
489 """
bfddbb17
RD
490 Create(self, Window parent, int id=-1, String title=EmptyString,
491 Point pos=DefaultPosition, Size size=DefaultSize,
492 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
d55e5bfc
RD
493 """
494 return _windows_.Frame_Create(*args, **kwargs)
495
496 def GetClientAreaOrigin(*args, **kwargs):
497 """
498 GetClientAreaOrigin(self) -> Point
499
500 Get the origin of the client area of the window relative to the
501 window's top left corner (the client area may be shifted because of
502 the borders, scrollbars, other decorations...)
503 """
504 return _windows_.Frame_GetClientAreaOrigin(*args, **kwargs)
505
506 def SendSizeEvent(*args, **kwargs):
507 """SendSizeEvent(self)"""
508 return _windows_.Frame_SendSizeEvent(*args, **kwargs)
509
510 def SetMenuBar(*args, **kwargs):
511 """SetMenuBar(self, MenuBar menubar)"""
512 return _windows_.Frame_SetMenuBar(*args, **kwargs)
513
514 def GetMenuBar(*args, **kwargs):
515 """GetMenuBar(self) -> MenuBar"""
516 return _windows_.Frame_GetMenuBar(*args, **kwargs)
517
518 def ProcessCommand(*args, **kwargs):
519 """ProcessCommand(self, int winid) -> bool"""
520 return _windows_.Frame_ProcessCommand(*args, **kwargs)
521
522 Command = ProcessCommand
523 def CreateStatusBar(*args, **kwargs):
524 """
525 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
526 String name=StatusLineNameStr) -> StatusBar
527 """
528 return _windows_.Frame_CreateStatusBar(*args, **kwargs)
529
530 def GetStatusBar(*args, **kwargs):
531 """GetStatusBar(self) -> StatusBar"""
532 return _windows_.Frame_GetStatusBar(*args, **kwargs)
533
534 def SetStatusBar(*args, **kwargs):
535 """SetStatusBar(self, StatusBar statBar)"""
536 return _windows_.Frame_SetStatusBar(*args, **kwargs)
537
538 def SetStatusText(*args, **kwargs):
539 """SetStatusText(self, String text, int number=0)"""
540 return _windows_.Frame_SetStatusText(*args, **kwargs)
541
542 def SetStatusWidths(*args, **kwargs):
36ed4f51 543 """SetStatusWidths(self, int widths)"""
d55e5bfc
RD
544 return _windows_.Frame_SetStatusWidths(*args, **kwargs)
545
546 def PushStatusText(*args, **kwargs):
547 """PushStatusText(self, String text, int number=0)"""
548 return _windows_.Frame_PushStatusText(*args, **kwargs)
549
550 def PopStatusText(*args, **kwargs):
551 """PopStatusText(self, int number=0)"""
552 return _windows_.Frame_PopStatusText(*args, **kwargs)
553
554 def SetStatusBarPane(*args, **kwargs):
555 """SetStatusBarPane(self, int n)"""
556 return _windows_.Frame_SetStatusBarPane(*args, **kwargs)
557
558 def GetStatusBarPane(*args, **kwargs):
559 """GetStatusBarPane(self) -> int"""
560 return _windows_.Frame_GetStatusBarPane(*args, **kwargs)
561
562 def CreateToolBar(*args, **kwargs):
563 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
564 return _windows_.Frame_CreateToolBar(*args, **kwargs)
565
566 def GetToolBar(*args, **kwargs):
567 """GetToolBar(self) -> wxToolBar"""
568 return _windows_.Frame_GetToolBar(*args, **kwargs)
569
570 def SetToolBar(*args, **kwargs):
571 """SetToolBar(self, wxToolBar toolbar)"""
572 return _windows_.Frame_SetToolBar(*args, **kwargs)
573
574 def DoGiveHelp(*args, **kwargs):
575 """DoGiveHelp(self, String text, bool show)"""
576 return _windows_.Frame_DoGiveHelp(*args, **kwargs)
577
578 def DoMenuUpdates(*args, **kwargs):
579 """DoMenuUpdates(self, Menu menu=None)"""
580 return _windows_.Frame_DoMenuUpdates(*args, **kwargs)
581
f20a2e1f
RD
582 def GetClassDefaultAttributes(*args, **kwargs):
583 """
584 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
585
15817c7e
RD
586 Get the default attributes for this class. This is useful if you want
587 to use the same font or colour in your own control as in a standard
588 control -- which is a much better idea than hard coding specific
a5ee0656
RD
589 colours or fonts which might look completely out of place on the
590 user's system, especially if it uses themes.
f20a2e1f
RD
591
592 The variant parameter is only relevant under Mac currently and is
15817c7e 593 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
RD
594 the returned font. See `wx.Window.SetWindowVariant` for more about
595 this.
f20a2e1f
RD
596 """
597 return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs)
598
599 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
d55e5bfc
RD
600
601class FramePtr(Frame):
602 def __init__(self, this):
603 self.this = this
604 if not hasattr(self,"thisown"): self.thisown = 0
605 self.__class__ = Frame
606_windows_.Frame_swigregister(FramePtr)
607
608def PreFrame(*args, **kwargs):
609 """PreFrame() -> Frame"""
610 val = _windows_.new_PreFrame(*args, **kwargs)
611 val.thisown = 1
612 return val
613
f20a2e1f
RD
614def Frame_GetClassDefaultAttributes(*args, **kwargs):
615 """
616 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
617
15817c7e
RD
618 Get the default attributes for this class. This is useful if you want
619 to use the same font or colour in your own control as in a standard
620 control -- which is a much better idea than hard coding specific
a5ee0656
RD
621 colours or fonts which might look completely out of place on the
622 user's system, especially if it uses themes.
f20a2e1f
RD
623
624 The variant parameter is only relevant under Mac currently and is
15817c7e 625 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
RD
626 the returned font. See `wx.Window.SetWindowVariant` for more about
627 this.
f20a2e1f
RD
628 """
629 return _windows_.Frame_GetClassDefaultAttributes(*args, **kwargs)
630
d55e5bfc
RD
631#---------------------------------------------------------------------------
632
633class Dialog(TopLevelWindow):
36ed4f51 634 """Proxy of C++ Dialog class"""
d55e5bfc
RD
635 def __repr__(self):
636 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
637 def __init__(self, *args, **kwargs):
638 """
bfddbb17
RD
639 __init__(self, Window parent, int id=-1, String title=EmptyString,
640 Point pos=DefaultPosition, Size size=DefaultSize,
641 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
d55e5bfc
RD
642 """
643 newobj = _windows_.new_Dialog(*args, **kwargs)
644 self.this = newobj.this
645 self.thisown = 1
646 del newobj.thisown
647 self._setOORInfo(self)
648
649 def Create(*args, **kwargs):
650 """
bfddbb17
RD
651 Create(self, Window parent, int id=-1, String title=EmptyString,
652 Point pos=DefaultPosition, Size size=DefaultSize,
653 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
d55e5bfc
RD
654 """
655 return _windows_.Dialog_Create(*args, **kwargs)
656
657 def SetReturnCode(*args, **kwargs):
658 """SetReturnCode(self, int returnCode)"""
659 return _windows_.Dialog_SetReturnCode(*args, **kwargs)
660
661 def GetReturnCode(*args, **kwargs):
662 """GetReturnCode(self) -> int"""
663 return _windows_.Dialog_GetReturnCode(*args, **kwargs)
664
665 def CreateTextSizer(*args, **kwargs):
666 """CreateTextSizer(self, String message) -> Sizer"""
667 return _windows_.Dialog_CreateTextSizer(*args, **kwargs)
668
669 def CreateButtonSizer(*args, **kwargs):
670 """CreateButtonSizer(self, long flags) -> Sizer"""
671 return _windows_.Dialog_CreateButtonSizer(*args, **kwargs)
672
62d32a5f
RD
673 def CreateStdDialogButtonSizer(*args, **kwargs):
674 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
675 return _windows_.Dialog_CreateStdDialogButtonSizer(*args, **kwargs)
676
d55e5bfc
RD
677 def IsModal(*args, **kwargs):
678 """IsModal(self) -> bool"""
679 return _windows_.Dialog_IsModal(*args, **kwargs)
680
681 def ShowModal(*args, **kwargs):
682 """ShowModal(self) -> int"""
683 return _windows_.Dialog_ShowModal(*args, **kwargs)
684
685 def EndModal(*args, **kwargs):
686 """EndModal(self, int retCode)"""
687 return _windows_.Dialog_EndModal(*args, **kwargs)
688
f20a2e1f
RD
689 def GetClassDefaultAttributes(*args, **kwargs):
690 """
691 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
692
15817c7e
RD
693 Get the default attributes for this class. This is useful if you want
694 to use the same font or colour in your own control as in a standard
695 control -- which is a much better idea than hard coding specific
a5ee0656
RD
696 colours or fonts which might look completely out of place on the
697 user's system, especially if it uses themes.
f20a2e1f
RD
698
699 The variant parameter is only relevant under Mac currently and is
15817c7e 700 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
RD
701 the returned font. See `wx.Window.SetWindowVariant` for more about
702 this.
f20a2e1f
RD
703 """
704 return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs)
705
706 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
bf26d883
RD
707 def SendSizeEvent(self):
708 self.ProcessEvent(wx.SizeEvent((-1,-1)))
709
d55e5bfc
RD
710
711class DialogPtr(Dialog):
712 def __init__(self, this):
713 self.this = this
714 if not hasattr(self,"thisown"): self.thisown = 0
715 self.__class__ = Dialog
716_windows_.Dialog_swigregister(DialogPtr)
717
718def PreDialog(*args, **kwargs):
719 """PreDialog() -> Dialog"""
720 val = _windows_.new_PreDialog(*args, **kwargs)
721 val.thisown = 1
722 return val
723
f20a2e1f
RD
724def Dialog_GetClassDefaultAttributes(*args, **kwargs):
725 """
726 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
727
15817c7e
RD
728 Get the default attributes for this class. This is useful if you want
729 to use the same font or colour in your own control as in a standard
730 control -- which is a much better idea than hard coding specific
a5ee0656
RD
731 colours or fonts which might look completely out of place on the
732 user's system, especially if it uses themes.
f20a2e1f
RD
733
734 The variant parameter is only relevant under Mac currently and is
15817c7e 735 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
RD
736 the returned font. See `wx.Window.SetWindowVariant` for more about
737 this.
f20a2e1f
RD
738 """
739 return _windows_.Dialog_GetClassDefaultAttributes(*args, **kwargs)
740
d55e5bfc
RD
741#---------------------------------------------------------------------------
742
743class MiniFrame(Frame):
36ed4f51 744 """Proxy of C++ MiniFrame class"""
d55e5bfc
RD
745 def __repr__(self):
746 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
747 def __init__(self, *args, **kwargs):
748 """
bfddbb17
RD
749 __init__(self, Window parent, int id=-1, String title=EmptyString,
750 Point pos=DefaultPosition, Size size=DefaultSize,
751 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
d55e5bfc
RD
752 """
753 newobj = _windows_.new_MiniFrame(*args, **kwargs)
754 self.this = newobj.this
755 self.thisown = 1
756 del newobj.thisown
757 self._setOORInfo(self)
758
759 def Create(*args, **kwargs):
760 """
bfddbb17
RD
761 Create(self, Window parent, int id=-1, String title=EmptyString,
762 Point pos=DefaultPosition, Size size=DefaultSize,
763 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
d55e5bfc
RD
764 """
765 return _windows_.MiniFrame_Create(*args, **kwargs)
766
767
768class MiniFramePtr(MiniFrame):
769 def __init__(self, this):
770 self.this = this
771 if not hasattr(self,"thisown"): self.thisown = 0
772 self.__class__ = MiniFrame
773_windows_.MiniFrame_swigregister(MiniFramePtr)
774
775def PreMiniFrame(*args, **kwargs):
776 """PreMiniFrame() -> MiniFrame"""
777 val = _windows_.new_PreMiniFrame(*args, **kwargs)
778 val.thisown = 1
779 return val
780
781#---------------------------------------------------------------------------
782
783SPLASH_CENTRE_ON_PARENT = _windows_.SPLASH_CENTRE_ON_PARENT
784SPLASH_CENTRE_ON_SCREEN = _windows_.SPLASH_CENTRE_ON_SCREEN
785SPLASH_NO_CENTRE = _windows_.SPLASH_NO_CENTRE
786SPLASH_TIMEOUT = _windows_.SPLASH_TIMEOUT
787SPLASH_NO_TIMEOUT = _windows_.SPLASH_NO_TIMEOUT
788class SplashScreenWindow(_core.Window):
36ed4f51 789 """Proxy of C++ SplashScreenWindow class"""
d55e5bfc
RD
790 def __repr__(self):
791 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
792 def __init__(self, *args, **kwargs):
793 """
794 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
795 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
796 """
797 newobj = _windows_.new_SplashScreenWindow(*args, **kwargs)
798 self.this = newobj.this
799 self.thisown = 1
800 del newobj.thisown
801 self._setOORInfo(self)
802
803 def SetBitmap(*args, **kwargs):
804 """SetBitmap(self, Bitmap bitmap)"""
805 return _windows_.SplashScreenWindow_SetBitmap(*args, **kwargs)
806
807 def GetBitmap(*args, **kwargs):
808 """GetBitmap(self) -> Bitmap"""
809 return _windows_.SplashScreenWindow_GetBitmap(*args, **kwargs)
810
811
812class SplashScreenWindowPtr(SplashScreenWindow):
813 def __init__(self, this):
814 self.this = this
815 if not hasattr(self,"thisown"): self.thisown = 0
816 self.__class__ = SplashScreenWindow
817_windows_.SplashScreenWindow_swigregister(SplashScreenWindowPtr)
818
819class SplashScreen(Frame):
36ed4f51 820 """Proxy of C++ SplashScreen class"""
d55e5bfc
RD
821 def __repr__(self):
822 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
823 def __init__(self, *args, **kwargs):
824 """
825 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
bfddbb17 826 Window parent, int id=-1, Point pos=DefaultPosition,
d55e5bfc
RD
827 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
828 """
829 newobj = _windows_.new_SplashScreen(*args, **kwargs)
830 self.this = newobj.this
831 self.thisown = 1
832 del newobj.thisown
833 self._setOORInfo(self)
834
835 def GetSplashStyle(*args, **kwargs):
836 """GetSplashStyle(self) -> long"""
837 return _windows_.SplashScreen_GetSplashStyle(*args, **kwargs)
838
839 def GetSplashWindow(*args, **kwargs):
840 """GetSplashWindow(self) -> SplashScreenWindow"""
841 return _windows_.SplashScreen_GetSplashWindow(*args, **kwargs)
842
843 def GetTimeout(*args, **kwargs):
844 """GetTimeout(self) -> int"""
845 return _windows_.SplashScreen_GetTimeout(*args, **kwargs)
846
847
848class SplashScreenPtr(SplashScreen):
849 def __init__(self, this):
850 self.this = this
851 if not hasattr(self,"thisown"): self.thisown = 0
852 self.__class__ = SplashScreen
853_windows_.SplashScreen_swigregister(SplashScreenPtr)
854
855#---------------------------------------------------------------------------
856
03837c5c
RD
857SB_NORMAL = _windows_.SB_NORMAL
858SB_FLAT = _windows_.SB_FLAT
859SB_RAISED = _windows_.SB_RAISED
d55e5bfc 860class StatusBar(_core.Window):
36ed4f51 861 """Proxy of C++ StatusBar class"""
d55e5bfc
RD
862 def __repr__(self):
863 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
864 def __init__(self, *args, **kwargs):
865 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
866 newobj = _windows_.new_StatusBar(*args, **kwargs)
867 self.this = newobj.this
868 self.thisown = 1
869 del newobj.thisown
870 self._setOORInfo(self)
871
872 def Create(*args, **kwargs):
bfddbb17 873 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
d55e5bfc
RD
874 return _windows_.StatusBar_Create(*args, **kwargs)
875
876 def SetFieldsCount(*args, **kwargs):
877 """SetFieldsCount(self, int number=1)"""
878 return _windows_.StatusBar_SetFieldsCount(*args, **kwargs)
879
880 def GetFieldsCount(*args, **kwargs):
881 """GetFieldsCount(self) -> int"""
882 return _windows_.StatusBar_GetFieldsCount(*args, **kwargs)
883
884 def SetStatusText(*args, **kwargs):
885 """SetStatusText(self, String text, int number=0)"""
886 return _windows_.StatusBar_SetStatusText(*args, **kwargs)
887
888 def GetStatusText(*args, **kwargs):
889 """GetStatusText(self, int number=0) -> String"""
890 return _windows_.StatusBar_GetStatusText(*args, **kwargs)
891
892 def PushStatusText(*args, **kwargs):
893 """PushStatusText(self, String text, int number=0)"""
894 return _windows_.StatusBar_PushStatusText(*args, **kwargs)
895
896 def PopStatusText(*args, **kwargs):
897 """PopStatusText(self, int number=0)"""
898 return _windows_.StatusBar_PopStatusText(*args, **kwargs)
899
900 def SetStatusWidths(*args, **kwargs):
36ed4f51 901 """SetStatusWidths(self, int widths)"""
d55e5bfc
RD
902 return _windows_.StatusBar_SetStatusWidths(*args, **kwargs)
903
03837c5c 904 def SetStatusStyles(*args, **kwargs):
36ed4f51 905 """SetStatusStyles(self, int styles)"""
03837c5c
RD
906 return _windows_.StatusBar_SetStatusStyles(*args, **kwargs)
907
d55e5bfc
RD
908 def GetFieldRect(*args, **kwargs):
909 """GetFieldRect(self, int i) -> Rect"""
910 return _windows_.StatusBar_GetFieldRect(*args, **kwargs)
911
912 def SetMinHeight(*args, **kwargs):
913 """SetMinHeight(self, int height)"""
914 return _windows_.StatusBar_SetMinHeight(*args, **kwargs)
915
916 def GetBorderX(*args, **kwargs):
917 """GetBorderX(self) -> int"""
918 return _windows_.StatusBar_GetBorderX(*args, **kwargs)
919
920 def GetBorderY(*args, **kwargs):
921 """GetBorderY(self) -> int"""
922 return _windows_.StatusBar_GetBorderY(*args, **kwargs)
923
f20a2e1f
RD
924 def GetClassDefaultAttributes(*args, **kwargs):
925 """
926 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
927
15817c7e
RD
928 Get the default attributes for this class. This is useful if you want
929 to use the same font or colour in your own control as in a standard
930 control -- which is a much better idea than hard coding specific
a5ee0656
RD
931 colours or fonts which might look completely out of place on the
932 user's system, especially if it uses themes.
f20a2e1f
RD
933
934 The variant parameter is only relevant under Mac currently and is
15817c7e 935 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
RD
936 the returned font. See `wx.Window.SetWindowVariant` for more about
937 this.
f20a2e1f
RD
938 """
939 return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs)
940
941 GetClassDefaultAttributes = staticmethod(GetClassDefaultAttributes)
d55e5bfc
RD
942
943class StatusBarPtr(StatusBar):
944 def __init__(self, this):
945 self.this = this
946 if not hasattr(self,"thisown"): self.thisown = 0
947 self.__class__ = StatusBar
948_windows_.StatusBar_swigregister(StatusBarPtr)
949
950def PreStatusBar(*args, **kwargs):
951 """PreStatusBar() -> StatusBar"""
952 val = _windows_.new_PreStatusBar(*args, **kwargs)
953 val.thisown = 1
954 return val
955
f20a2e1f
RD
956def StatusBar_GetClassDefaultAttributes(*args, **kwargs):
957 """
958 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
959
15817c7e
RD
960 Get the default attributes for this class. This is useful if you want
961 to use the same font or colour in your own control as in a standard
962 control -- which is a much better idea than hard coding specific
a5ee0656
RD
963 colours or fonts which might look completely out of place on the
964 user's system, especially if it uses themes.
f20a2e1f
RD
965
966 The variant parameter is only relevant under Mac currently and is
15817c7e 967 ignore under other platforms. Under Mac, it will change the size of
a5ee0656
RD
968 the returned font. See `wx.Window.SetWindowVariant` for more about
969 this.
f20a2e1f
RD
970 """
971 return _windows_.StatusBar_GetClassDefaultAttributes(*args, **kwargs)
972
d55e5bfc
RD
973#---------------------------------------------------------------------------
974
975SP_NOBORDER = _windows_.SP_NOBORDER
976SP_NOSASH = _windows_.SP_NOSASH
977SP_PERMIT_UNSPLIT = _windows_.SP_PERMIT_UNSPLIT
978SP_LIVE_UPDATE = _windows_.SP_LIVE_UPDATE
979SP_3DSASH = _windows_.SP_3DSASH
980SP_3DBORDER = _windows_.SP_3DBORDER
981SP_NO_XP_THEME = _windows_.SP_NO_XP_THEME
982SP_BORDER = _windows_.SP_BORDER
983SP_3D = _windows_.SP_3D
984SPLIT_HORIZONTAL = _windows_.SPLIT_HORIZONTAL
985SPLIT_VERTICAL = _windows_.SPLIT_VERTICAL
986SPLIT_DRAG_NONE = _windows_.SPLIT_DRAG_NONE
987SPLIT_DRAG_DRAGGING = _windows_.SPLIT_DRAG_DRAGGING
988SPLIT_DRAG_LEFT_DOWN = _windows_.SPLIT_DRAG_LEFT_DOWN
989class SplitterWindow(_core.Window):
990 """
15817c7e
RD
991 wx.SplitterWindow manages up to two subwindows or panes, with an
992 optional vertical or horizontal split which can be used with the mouse
993 or programmatically.
d55e5bfc
RD
994 """
995 def __repr__(self):
996 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
997 def __init__(self, *args, **kwargs):
998 """
999 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1000 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
1001
1002 Constructor. Creates and shows a SplitterWindow.
1003 """
1004 if kwargs.has_key('point'): kwargs['pos'] = kwargs['point'];del kwargs['point']
1005 newobj = _windows_.new_SplitterWindow(*args, **kwargs)
1006 self.this = newobj.this
1007 self.thisown = 1
1008 del newobj.thisown
1009 self._setOORInfo(self)
1010
1011 def Create(*args, **kwargs):
1012 """
1013 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1014 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
1015
1016 Create the GUI part of the SplitterWindow for the 2-phase create.
1017 """
1018 return _windows_.SplitterWindow_Create(*args, **kwargs)
1019
1020 def GetWindow1(*args, **kwargs):
1021 """
1022 GetWindow1(self) -> Window
1023
1024 Gets the only or left/top pane.
1025 """
1026 return _windows_.SplitterWindow_GetWindow1(*args, **kwargs)
1027
1028 def GetWindow2(*args, **kwargs):
1029 """
1030 GetWindow2(self) -> Window
1031
1032 Gets the right/bottom pane.
1033 """
1034 return _windows_.SplitterWindow_GetWindow2(*args, **kwargs)
1035
1036 def SetSplitMode(*args, **kwargs):
1037 """
1038 SetSplitMode(self, int mode)
1039
1040 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
15817c7e
RD
1041 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
1042 update the display.
d55e5bfc
RD
1043 """
1044 return _windows_.SplitterWindow_SetSplitMode(*args, **kwargs)
1045
1046 def GetSplitMode(*args, **kwargs):
1047 """
1048 GetSplitMode(self) -> int
1049
1050 Gets the split mode
1051 """
1052 return _windows_.SplitterWindow_GetSplitMode(*args, **kwargs)
1053
1054 def Initialize(*args, **kwargs):
1055 """
1056 Initialize(self, Window window)
1057
15817c7e
RD
1058 Initializes the splitter window to have one pane. This should be
1059 called if you wish to initially view only a single pane in the
1060 splitter window.
d55e5bfc
RD
1061 """
1062 return _windows_.SplitterWindow_Initialize(*args, **kwargs)
1063
1064 def SplitVertically(*args, **kwargs):
1065 """
1066 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1067
1068 Initializes the left and right panes of the splitter window.
d55e5bfc
RD
1069 """
1070 return _windows_.SplitterWindow_SplitVertically(*args, **kwargs)
1071
1072 def SplitHorizontally(*args, **kwargs):
1073 """
1074 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1075
1076 Initializes the top and bottom panes of the splitter window.
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
6e0de3df 1141 Sets the sash size. Currently a NOP.
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
15817c7e
RD
1327 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
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
1948 def GetFirstVisibleLine(*args, **kwargs):
1949 """GetFirstVisibleLine(self) -> size_t"""
1950 return _windows_.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs)
1951
1952 def GetLastVisibleLine(*args, **kwargs):
1953 """GetLastVisibleLine(self) -> size_t"""
1954 return _windows_.VScrolledWindow_GetLastVisibleLine(*args, **kwargs)
1955
1956 def IsVisible(*args, **kwargs):
1957 """IsVisible(self, size_t line) -> bool"""
1958 return _windows_.VScrolledWindow_IsVisible(*args, **kwargs)
1959
1960
1961class VScrolledWindowPtr(VScrolledWindow):
1962 def __init__(self, this):
1963 self.this = this
1964 if not hasattr(self,"thisown"): self.thisown = 0
1965 self.__class__ = VScrolledWindow
1966_windows_.VScrolledWindow_swigregister(VScrolledWindowPtr)
1967
1968def PreVScrolledWindow(*args, **kwargs):
1969 """PreVScrolledWindow() -> VScrolledWindow"""
1970 val = _windows_.new_PreVScrolledWindow(*args, **kwargs)
1971 val.thisown = 1
1972 return val
1973
1974class VListBox(VScrolledWindow):
36ed4f51 1975 """Proxy of C++ VListBox class"""
d55e5bfc
RD
1976 def __repr__(self):
1977 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
1978 def __init__(self, *args, **kwargs):
1979 """
1980 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1981 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1982 """
1983 newobj = _windows_.new_VListBox(*args, **kwargs)
1984 self.this = newobj.this
1985 self.thisown = 1
1986 del newobj.thisown
1987 self._setOORInfo(self);self._setCallbackInfo(self, VListBox)
1988
1989 def _setCallbackInfo(*args, **kwargs):
1990 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1991 return _windows_.VListBox__setCallbackInfo(*args, **kwargs)
1992
1993 def Create(*args, **kwargs):
1994 """
1995 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1996 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1997 """
1998 return _windows_.VListBox_Create(*args, **kwargs)
1999
2000 def GetItemCount(*args, **kwargs):
2001 """GetItemCount(self) -> size_t"""
2002 return _windows_.VListBox_GetItemCount(*args, **kwargs)
2003
2004 def HasMultipleSelection(*args, **kwargs):
2005 """HasMultipleSelection(self) -> bool"""
2006 return _windows_.VListBox_HasMultipleSelection(*args, **kwargs)
2007
2008 def GetSelection(*args, **kwargs):
2009 """GetSelection(self) -> int"""
2010 return _windows_.VListBox_GetSelection(*args, **kwargs)
2011
2012 def IsCurrent(*args, **kwargs):
2013 """IsCurrent(self, size_t item) -> bool"""
2014 return _windows_.VListBox_IsCurrent(*args, **kwargs)
2015
2016 def IsSelected(*args, **kwargs):
2017 """IsSelected(self, size_t item) -> bool"""
2018 return _windows_.VListBox_IsSelected(*args, **kwargs)
2019
2020 def GetSelectedCount(*args, **kwargs):
2021 """GetSelectedCount(self) -> size_t"""
2022 return _windows_.VListBox_GetSelectedCount(*args, **kwargs)
2023
2024 def GetFirstSelected(*args, **kwargs):
09c21d3b 2025 """GetFirstSelected(self) -> PyObject"""
d55e5bfc
RD
2026 return _windows_.VListBox_GetFirstSelected(*args, **kwargs)
2027
2028 def GetNextSelected(*args, **kwargs):
09c21d3b 2029 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
d55e5bfc
RD
2030 return _windows_.VListBox_GetNextSelected(*args, **kwargs)
2031
2032 def GetMargins(*args, **kwargs):
2033 """GetMargins(self) -> Point"""
2034 return _windows_.VListBox_GetMargins(*args, **kwargs)
2035
2036 def GetSelectionBackground(*args, **kwargs):
2037 """GetSelectionBackground(self) -> Colour"""
2038 return _windows_.VListBox_GetSelectionBackground(*args, **kwargs)
2039
2040 def SetItemCount(*args, **kwargs):
2041 """SetItemCount(self, size_t count)"""
2042 return _windows_.VListBox_SetItemCount(*args, **kwargs)
2043
2044 def Clear(*args, **kwargs):
2045 """Clear(self)"""
2046 return _windows_.VListBox_Clear(*args, **kwargs)
2047
2048 def SetSelection(*args, **kwargs):
2049 """SetSelection(self, int selection)"""
2050 return _windows_.VListBox_SetSelection(*args, **kwargs)
2051
2052 def Select(*args, **kwargs):
2053 """Select(self, size_t item, bool select=True) -> bool"""
2054 return _windows_.VListBox_Select(*args, **kwargs)
2055
2056 def SelectRange(*args, **kwargs):
2057 """SelectRange(self, size_t from, size_t to) -> bool"""
2058 return _windows_.VListBox_SelectRange(*args, **kwargs)
2059
2060 def Toggle(*args, **kwargs):
2061 """Toggle(self, size_t item)"""
2062 return _windows_.VListBox_Toggle(*args, **kwargs)
2063
2064 def SelectAll(*args, **kwargs):
2065 """SelectAll(self) -> bool"""
2066 return _windows_.VListBox_SelectAll(*args, **kwargs)
2067
2068 def DeselectAll(*args, **kwargs):
2069 """DeselectAll(self) -> bool"""
2070 return _windows_.VListBox_DeselectAll(*args, **kwargs)
2071
2072 def SetMargins(*args, **kwargs):
2073 """SetMargins(self, Point pt)"""
2074 return _windows_.VListBox_SetMargins(*args, **kwargs)
2075
2076 def SetMarginsXY(*args, **kwargs):
2077 """SetMarginsXY(self, int x, int y)"""
2078 return _windows_.VListBox_SetMarginsXY(*args, **kwargs)
2079
2080 def SetSelectionBackground(*args, **kwargs):
2081 """SetSelectionBackground(self, Colour col)"""
2082 return _windows_.VListBox_SetSelectionBackground(*args, **kwargs)
2083
2084
2085class VListBoxPtr(VListBox):
2086 def __init__(self, this):
2087 self.this = this
2088 if not hasattr(self,"thisown"): self.thisown = 0
2089 self.__class__ = VListBox
2090_windows_.VListBox_swigregister(VListBoxPtr)
2091VListBoxNameStr = cvar.VListBoxNameStr
2092
2093def PreVListBox(*args, **kwargs):
2094 """PreVListBox() -> VListBox"""
2095 val = _windows_.new_PreVListBox(*args, **kwargs)
2096 val.thisown = 1
2097 return val
2098
2099class HtmlListBox(VListBox):
36ed4f51 2100 """Proxy of C++ HtmlListBox class"""
d55e5bfc
RD
2101 def __repr__(self):
2102 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2103 def __init__(self, *args, **kwargs):
2104 """
2105 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2106 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2107 """
2108 newobj = _windows_.new_HtmlListBox(*args, **kwargs)
2109 self.this = newobj.this
2110 self.thisown = 1
2111 del newobj.thisown
2112 self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox)
2113
2114 def _setCallbackInfo(*args, **kwargs):
2115 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2116 return _windows_.HtmlListBox__setCallbackInfo(*args, **kwargs)
2117
2118 def Create(*args, **kwargs):
2119 """
2120 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2121 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2122 """
2123 return _windows_.HtmlListBox_Create(*args, **kwargs)
2124
2125 def RefreshAll(*args, **kwargs):
2126 """RefreshAll(self)"""
2127 return _windows_.HtmlListBox_RefreshAll(*args, **kwargs)
2128
2129 def SetItemCount(*args, **kwargs):
2130 """SetItemCount(self, size_t count)"""
2131 return _windows_.HtmlListBox_SetItemCount(*args, **kwargs)
2132
d6c14a4c
RD
2133 def GetFileSystem(*args, **kwargs):
2134 """GetFileSystem(self) -> FileSystem"""
2135 return _windows_.HtmlListBox_GetFileSystem(*args, **kwargs)
2136
d55e5bfc
RD
2137
2138class HtmlListBoxPtr(HtmlListBox):
2139 def __init__(self, this):
2140 self.this = this
2141 if not hasattr(self,"thisown"): self.thisown = 0
2142 self.__class__ = HtmlListBox
2143_windows_.HtmlListBox_swigregister(HtmlListBoxPtr)
2144
2145def PreHtmlListBox(*args, **kwargs):
2146 """PreHtmlListBox() -> HtmlListBox"""
2147 val = _windows_.new_PreHtmlListBox(*args, **kwargs)
2148 val.thisown = 1
2149 return val
2150
2151#---------------------------------------------------------------------------
2152
2153class TaskBarIcon(_core.EvtHandler):
36ed4f51 2154 """Proxy of C++ TaskBarIcon class"""
d55e5bfc 2155 def __repr__(self):
5e483524 2156 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
d55e5bfc
RD
2157 def __init__(self, *args, **kwargs):
2158 """__init__(self) -> TaskBarIcon"""
2159 newobj = _windows_.new_TaskBarIcon(*args, **kwargs)
2160 self.this = newobj.this
2161 self.thisown = 1
2162 del newobj.thisown
5e483524
RD
2163 self._setCallbackInfo(self, TaskBarIcon, 0)
2164
2165 def _setCallbackInfo(*args, **kwargs):
2166 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2167 return _windows_.TaskBarIcon__setCallbackInfo(*args, **kwargs)
d55e5bfc
RD
2168
2169 def Destroy(*args, **kwargs):
2170 """
2171 Destroy(self)
2172
2173 Deletes the C++ object this Python object is a proxy for.
2174 """
2175 return _windows_.TaskBarIcon_Destroy(*args, **kwargs)
2176
b411df4a
RD
2177 def IsOk(*args, **kwargs):
2178 """IsOk(self) -> bool"""
2179 return _windows_.TaskBarIcon_IsOk(*args, **kwargs)
2180
2181 def __nonzero__(self): return self.IsOk()
2182 def IsIconInstalled(*args, **kwargs):
2183 """IsIconInstalled(self) -> bool"""
2184 return _windows_.TaskBarIcon_IsIconInstalled(*args, **kwargs)
2185
2186 def SetIcon(*args, **kwargs):
2187 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2188 return _windows_.TaskBarIcon_SetIcon(*args, **kwargs)
2189
2190 def RemoveIcon(*args, **kwargs):
2191 """RemoveIcon(self) -> bool"""
2192 return _windows_.TaskBarIcon_RemoveIcon(*args, **kwargs)
2193
2194 def PopupMenu(*args, **kwargs):
2195 """PopupMenu(self, Menu menu) -> bool"""
2196 return _windows_.TaskBarIcon_PopupMenu(*args, **kwargs)
2197
d55e5bfc
RD
2198
2199class TaskBarIconPtr(TaskBarIcon):
2200 def __init__(self, this):
2201 self.this = this
2202 if not hasattr(self,"thisown"): self.thisown = 0
2203 self.__class__ = TaskBarIcon
2204_windows_.TaskBarIcon_swigregister(TaskBarIconPtr)
2205
2206class TaskBarIconEvent(_core.Event):
36ed4f51 2207 """Proxy of C++ TaskBarIconEvent class"""
d55e5bfc
RD
2208 def __repr__(self):
2209 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2210 def __init__(self, *args, **kwargs):
5e483524 2211 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
d55e5bfc
RD
2212 newobj = _windows_.new_TaskBarIconEvent(*args, **kwargs)
2213 self.this = newobj.this
2214 self.thisown = 1
2215 del newobj.thisown
2216
2217class TaskBarIconEventPtr(TaskBarIconEvent):
2218 def __init__(self, this):
2219 self.this = this
2220 if not hasattr(self,"thisown"): self.thisown = 0
2221 self.__class__ = TaskBarIconEvent
2222_windows_.TaskBarIconEvent_swigregister(TaskBarIconEventPtr)
2223
2224wxEVT_TASKBAR_MOVE = _windows_.wxEVT_TASKBAR_MOVE
2225wxEVT_TASKBAR_LEFT_DOWN = _windows_.wxEVT_TASKBAR_LEFT_DOWN
2226wxEVT_TASKBAR_LEFT_UP = _windows_.wxEVT_TASKBAR_LEFT_UP
2227wxEVT_TASKBAR_RIGHT_DOWN = _windows_.wxEVT_TASKBAR_RIGHT_DOWN
2228wxEVT_TASKBAR_RIGHT_UP = _windows_.wxEVT_TASKBAR_RIGHT_UP
2229wxEVT_TASKBAR_LEFT_DCLICK = _windows_.wxEVT_TASKBAR_LEFT_DCLICK
2230wxEVT_TASKBAR_RIGHT_DCLICK = _windows_.wxEVT_TASKBAR_RIGHT_DCLICK
2231EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE )
2232EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN )
2233EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP )
2234EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN )
2235EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP )
2236EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK )
2237EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK )
2238
2239#---------------------------------------------------------------------------
2240
2241class ColourData(_core.Object):
d6c14a4c
RD
2242 """
2243 This class holds a variety of information related to the colour
2244 chooser dialog, used to transfer settings and results to and from the
2245 `wx.ColourDialog`.
2246 """
d55e5bfc
RD
2247 def __repr__(self):
2248 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2249 def __init__(self, *args, **kwargs):
2250 """
2251 __init__(self) -> ColourData
2252
2253 Constructor, sets default values.
2254 """
2255 newobj = _windows_.new_ColourData(*args, **kwargs)
2256 self.this = newobj.this
2257 self.thisown = 1
2258 del newobj.thisown
2259 def __del__(self, destroy=_windows_.delete_ColourData):
2260 """__del__(self)"""
2261 try:
2262 if self.thisown: destroy(self)
2263 except: pass
2264
2265 def GetChooseFull(*args, **kwargs):
2266 """
2267 GetChooseFull(self) -> bool
2268
d6c14a4c
RD
2269 Under Windows, determines whether the Windows colour dialog will
2270 display the full dialog with custom colour selection controls. Has no
2271 meaning under other platforms. The default value is true.
d55e5bfc
RD
2272 """
2273 return _windows_.ColourData_GetChooseFull(*args, **kwargs)
2274
2275 def GetColour(*args, **kwargs):
2276 """
2277 GetColour(self) -> Colour
2278
2279 Gets the colour (pre)selected by the dialog.
2280 """
2281 return _windows_.ColourData_GetColour(*args, **kwargs)
2282
2283 def GetCustomColour(*args, **kwargs):
2284 """
2285 GetCustomColour(self, int i) -> Colour
2286
d6c14a4c
RD
2287 Gets the i'th custom colour associated with the colour dialog. i
2288 should be an integer between 0 and 15. The default custom colours are
bfddbb17 2289 all invalid colours.
d55e5bfc
RD
2290 """
2291 return _windows_.ColourData_GetCustomColour(*args, **kwargs)
2292
2293 def SetChooseFull(*args, **kwargs):
2294 """
2295 SetChooseFull(self, int flag)
2296
d6c14a4c
RD
2297 Under Windows, tells the Windows colour dialog to display the full
2298 dialog with custom colour selection controls. Under other platforms,
2299 has no effect. The default value is true.
d55e5bfc
RD
2300 """
2301 return _windows_.ColourData_SetChooseFull(*args, **kwargs)
2302
2303 def SetColour(*args, **kwargs):
2304 """
2305 SetColour(self, Colour colour)
2306
d6c14a4c
RD
2307 Sets the default colour for the colour dialog. The default colour is
2308 black.
d55e5bfc
RD
2309 """
2310 return _windows_.ColourData_SetColour(*args, **kwargs)
2311
2312 def SetCustomColour(*args, **kwargs):
2313 """
2314 SetCustomColour(self, int i, Colour colour)
2315
d6c14a4c 2316 Sets the i'th custom colour for the colour dialog. i should be an
bfddbb17 2317 integer between 0 and 15. The default custom colours are all invalid colours.
d55e5bfc
RD
2318 """
2319 return _windows_.ColourData_SetCustomColour(*args, **kwargs)
2320
2321
2322class ColourDataPtr(ColourData):
2323 def __init__(self, this):
2324 self.this = this
2325 if not hasattr(self,"thisown"): self.thisown = 0
2326 self.__class__ = ColourData
2327_windows_.ColourData_swigregister(ColourDataPtr)
2328FileSelectorPromptStr = cvar.FileSelectorPromptStr
2329DirSelectorPromptStr = cvar.DirSelectorPromptStr
2330DirDialogNameStr = cvar.DirDialogNameStr
2331FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
2332GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr
2333MessageBoxCaptionStr = cvar.MessageBoxCaptionStr
2334
2335class ColourDialog(Dialog):
2336 """This class represents the colour chooser dialog."""
2337 def __repr__(self):
2338 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2339 def __init__(self, *args, **kwargs):
2340 """
2341 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2342
d6c14a4c
RD
2343 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2344 which will be copied to the colour dialog's internal ColourData
2345 instance.
d55e5bfc
RD
2346 """
2347 newobj = _windows_.new_ColourDialog(*args, **kwargs)
2348 self.this = newobj.this
2349 self.thisown = 1
2350 del newobj.thisown
2351 self._setOORInfo(self)
2352
2353 def GetColourData(*args, **kwargs):
2354 """
2355 GetColourData(self) -> ColourData
2356
d6c14a4c 2357 Returns a reference to the `wx.ColourData` used by the dialog.
d55e5bfc
RD
2358 """
2359 return _windows_.ColourDialog_GetColourData(*args, **kwargs)
2360
2361
2362class ColourDialogPtr(ColourDialog):
2363 def __init__(self, this):
2364 self.this = this
2365 if not hasattr(self,"thisown"): self.thisown = 0
2366 self.__class__ = ColourDialog
2367_windows_.ColourDialog_swigregister(ColourDialogPtr)
2368
2369class DirDialog(Dialog):
d6c14a4c
RD
2370 """
2371 wx.DirDialog allows the user to select a directory by browising the
2372 file system.
d6c14a4c 2373 """
d55e5bfc
RD
2374 def __repr__(self):
2375 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2376 def __init__(self, *args, **kwargs):
2377 """
2378 __init__(self, Window parent, String message=DirSelectorPromptStr,
2379 String defaultPath=EmptyString, long style=0,
2380 Point pos=DefaultPosition, Size size=DefaultSize,
2381 String name=DirDialogNameStr) -> DirDialog
2382
2383 Constructor. Use ShowModal method to show the dialog.
2384 """
2385 newobj = _windows_.new_DirDialog(*args, **kwargs)
2386 self.this = newobj.this
2387 self.thisown = 1
2388 del newobj.thisown
2389 self._setOORInfo(self)
2390
2391 def GetPath(*args, **kwargs):
2392 """
2393 GetPath(self) -> String
2394
2395 Returns the default or user-selected path.
2396 """
2397 return _windows_.DirDialog_GetPath(*args, **kwargs)
2398
2399 def GetMessage(*args, **kwargs):
2400 """
2401 GetMessage(self) -> String
2402
2403 Returns the message that will be displayed on the dialog.
2404 """
2405 return _windows_.DirDialog_GetMessage(*args, **kwargs)
2406
2407 def GetStyle(*args, **kwargs):
2408 """
2409 GetStyle(self) -> long
2410
2411 Returns the dialog style.
2412 """
2413 return _windows_.DirDialog_GetStyle(*args, **kwargs)
2414
2415 def SetMessage(*args, **kwargs):
2416 """
2417 SetMessage(self, String message)
2418
2419 Sets the message that will be displayed on the dialog.
2420 """
2421 return _windows_.DirDialog_SetMessage(*args, **kwargs)
2422
2423 def SetPath(*args, **kwargs):
2424 """
2425 SetPath(self, String path)
2426
2427 Sets the default path.
2428 """
2429 return _windows_.DirDialog_SetPath(*args, **kwargs)
2430
2431
2432class DirDialogPtr(DirDialog):
2433 def __init__(self, this):
2434 self.this = this
2435 if not hasattr(self,"thisown"): self.thisown = 0
2436 self.__class__ = DirDialog
2437_windows_.DirDialog_swigregister(DirDialogPtr)
2438
2439class FileDialog(Dialog):
d6c14a4c
RD
2440 """
2441 wx.FileDialog allows the user to select one or more files from the
2442 filesystem.
d6c14a4c 2443 """
d55e5bfc
RD
2444 def __repr__(self):
2445 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2446 def __init__(self, *args, **kwargs):
2447 """
2448 __init__(self, Window parent, String message=FileSelectorPromptStr,
2449 String defaultDir=EmptyString, String defaultFile=EmptyString,
2450 String wildcard=FileSelectorDefaultWildcardStr,
2451 long style=0, Point pos=DefaultPosition) -> FileDialog
2452
2453 Constructor. Use ShowModal method to show the dialog.
2454 """
2455 newobj = _windows_.new_FileDialog(*args, **kwargs)
2456 self.this = newobj.this
2457 self.thisown = 1
2458 del newobj.thisown
2459 self._setOORInfo(self)
2460
2461 def SetMessage(*args, **kwargs):
2462 """
2463 SetMessage(self, String message)
2464
2465 Sets the message that will be displayed on the dialog.
2466 """
2467 return _windows_.FileDialog_SetMessage(*args, **kwargs)
2468
2469 def SetPath(*args, **kwargs):
2470 """
2471 SetPath(self, String path)
2472
d6c14a4c
RD
2473 Sets the path (the combined directory and filename that will be
2474 returned when the dialog is dismissed).
d55e5bfc
RD
2475 """
2476 return _windows_.FileDialog_SetPath(*args, **kwargs)
2477
2478 def SetDirectory(*args, **kwargs):
2479 """
2480 SetDirectory(self, String dir)
2481
2482 Sets the default directory.
2483 """
2484 return _windows_.FileDialog_SetDirectory(*args, **kwargs)
2485
2486 def SetFilename(*args, **kwargs):
2487 """
2488 SetFilename(self, String name)
2489
2490 Sets the default filename.
2491 """
2492 return _windows_.FileDialog_SetFilename(*args, **kwargs)
2493
2494 def SetWildcard(*args, **kwargs):
2495 """
2496 SetWildcard(self, String wildCard)
2497
d6c14a4c
RD
2498 Sets the wildcard, which can contain multiple file types, for
2499 example::
2500
d55e5bfc 2501 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
d6c14a4c 2502
d55e5bfc
RD
2503 """
2504 return _windows_.FileDialog_SetWildcard(*args, **kwargs)
2505
2506 def SetStyle(*args, **kwargs):
2507 """
2508 SetStyle(self, long style)
2509
2510 Sets the dialog style.
2511 """
2512 return _windows_.FileDialog_SetStyle(*args, **kwargs)
2513
2514 def SetFilterIndex(*args, **kwargs):
2515 """
2516 SetFilterIndex(self, int filterIndex)
2517
2518 Sets the default filter index, starting from zero.
2519 """
2520 return _windows_.FileDialog_SetFilterIndex(*args, **kwargs)
2521
2522 def GetMessage(*args, **kwargs):
2523 """
2524 GetMessage(self) -> String
2525
2526 Returns the message that will be displayed on the dialog.
2527 """
2528 return _windows_.FileDialog_GetMessage(*args, **kwargs)
2529
2530 def GetPath(*args, **kwargs):
2531 """
2532 GetPath(self) -> String
2533
2534 Returns the full path (directory and filename) of the selected file.
2535 """
2536 return _windows_.FileDialog_GetPath(*args, **kwargs)
2537
2538 def GetDirectory(*args, **kwargs):
2539 """
2540 GetDirectory(self) -> String
2541
2542 Returns the default directory.
2543 """
2544 return _windows_.FileDialog_GetDirectory(*args, **kwargs)
2545
2546 def GetFilename(*args, **kwargs):
2547 """
2548 GetFilename(self) -> String
2549
2550 Returns the default filename.
2551 """
2552 return _windows_.FileDialog_GetFilename(*args, **kwargs)
2553
2554 def GetWildcard(*args, **kwargs):
2555 """
2556 GetWildcard(self) -> String
2557
2558 Returns the file dialog wildcard.
2559 """
2560 return _windows_.FileDialog_GetWildcard(*args, **kwargs)
2561
2562 def GetStyle(*args, **kwargs):
2563 """
2564 GetStyle(self) -> long
2565
2566 Returns the dialog style.
2567 """
2568 return _windows_.FileDialog_GetStyle(*args, **kwargs)
2569
2570 def GetFilterIndex(*args, **kwargs):
2571 """
2572 GetFilterIndex(self) -> int
2573
2574 Returns the index into the list of filters supplied, optionally, in
2575 the wildcard parameter. Before the dialog is shown, this is the index
d6c14a4c
RD
2576 which will be used when the dialog is first displayed. After the
2577 dialog is shown, this is the index selected by the user.
d55e5bfc
RD
2578 """
2579 return _windows_.FileDialog_GetFilterIndex(*args, **kwargs)
2580
2581 def GetFilenames(*args, **kwargs):
2582 """
2583 GetFilenames(self) -> PyObject
2584
d6c14a4c
RD
2585 Returns a list of filenames chosen in the dialog. This function
2586 should only be used with the dialogs which have wx.MULTIPLE style, use
d55e5bfc
RD
2587 GetFilename for the others.
2588 """
2589 return _windows_.FileDialog_GetFilenames(*args, **kwargs)
2590
2591 def GetPaths(*args, **kwargs):
2592 """
2593 GetPaths(self) -> PyObject
2594
2595 Fills the array paths with the full paths of the files chosen. This
d6c14a4c
RD
2596 function should only be used with the dialogs which have wx.MULTIPLE
2597 style, use GetPath for the others.
d55e5bfc
RD
2598 """
2599 return _windows_.FileDialog_GetPaths(*args, **kwargs)
2600
2601
2602class FileDialogPtr(FileDialog):
2603 def __init__(self, this):
2604 self.this = this
2605 if not hasattr(self,"thisown"): self.thisown = 0
2606 self.__class__ = FileDialog
2607_windows_.FileDialog_swigregister(FileDialogPtr)
2608
2609CHOICEDLG_STYLE = _windows_.CHOICEDLG_STYLE
2610class MultiChoiceDialog(Dialog):
2611 """A simple dialog with a multi selection listbox."""
2612 def __repr__(self):
2613 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2614 def __init__(self, *args, **kwargs):
2615 """
2616 __init__(Window parent, String message, String caption,
2617 List choices=[], long style=CHOICEDLG_STYLE,
2618 Point pos=DefaultPosition) -> MultiChoiceDialog
2619
2620 Constructor. Use ShowModal method to show the dialog.
2621 """
2622 newobj = _windows_.new_MultiChoiceDialog(*args, **kwargs)
2623 self.this = newobj.this
2624 self.thisown = 1
2625 del newobj.thisown
2626 self._setOORInfo(self)
2627
2628 def SetSelections(*args, **kwargs):
a001823c
RD
2629 """
2630 SetSelections(List selections)
2631
2632 Specify the items in the list that should be selected, using a list of
2633 integers.
2634 """
d55e5bfc
RD
2635 return _windows_.MultiChoiceDialog_SetSelections(*args, **kwargs)
2636
2637 def GetSelections(*args, **kwargs):
2638 """
2639 GetSelections() -> [selections]
2640
2641 Returns a list of integers representing the items that are selected.
2642 """
2643 return _windows_.MultiChoiceDialog_GetSelections(*args, **kwargs)
2644
2645
2646class MultiChoiceDialogPtr(MultiChoiceDialog):
2647 def __init__(self, this):
2648 self.this = this
2649 if not hasattr(self,"thisown"): self.thisown = 0
2650 self.__class__ = MultiChoiceDialog
2651_windows_.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr)
2652
2653class SingleChoiceDialog(Dialog):
2654 """A simple dialog with a single selection listbox."""
2655 def __repr__(self):
2656 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2657 def __init__(self, *args, **kwargs):
2658 """
2659 __init__(Window parent, String message, String caption,
2660 List choices=[], long style=CHOICEDLG_STYLE,
2661 Point pos=DefaultPosition) -> SingleChoiceDialog
2662
2663 Constructor. Use ShowModal method to show the dialog.
2664 """
2665 newobj = _windows_.new_SingleChoiceDialog(*args, **kwargs)
2666 self.this = newobj.this
2667 self.thisown = 1
2668 del newobj.thisown
2669 self._setOORInfo(self)
2670
2671 def GetSelection(*args, **kwargs):
2672 """
2673 GetSelection(self) -> int
2674
2675 Get the index of teh currently selected item.
2676 """
2677 return _windows_.SingleChoiceDialog_GetSelection(*args, **kwargs)
2678
2679 def GetStringSelection(*args, **kwargs):
2680 """
2681 GetStringSelection(self) -> String
2682
2683 Returns the string value of the currently selected item
2684 """
2685 return _windows_.SingleChoiceDialog_GetStringSelection(*args, **kwargs)
2686
2687 def SetSelection(*args, **kwargs):
2688 """
2689 SetSelection(self, int sel)
2690
2691 Set the current selected item to sel
2692 """
2693 return _windows_.SingleChoiceDialog_SetSelection(*args, **kwargs)
2694
2695
2696class SingleChoiceDialogPtr(SingleChoiceDialog):
2697 def __init__(self, this):
2698 self.this = this
2699 if not hasattr(self,"thisown"): self.thisown = 0
2700 self.__class__ = SingleChoiceDialog
2701_windows_.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr)
2702
03e46024 2703TextEntryDialogStyle = _windows_.TextEntryDialogStyle
d55e5bfc
RD
2704class TextEntryDialog(Dialog):
2705 """A dialog with text control, [ok] and [cancel] buttons"""
2706 def __repr__(self):
2707 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2708 def __init__(self, *args, **kwargs):
2709 """
2710 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2711 String defaultValue=EmptyString,
03e46024 2712 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
d55e5bfc
RD
2713
2714 Constructor. Use ShowModal method to show the dialog.
2715 """
2716 newobj = _windows_.new_TextEntryDialog(*args, **kwargs)
2717 self.this = newobj.this
2718 self.thisown = 1
2719 del newobj.thisown
2720 self._setOORInfo(self)
2721
2722 def GetValue(*args, **kwargs):
2723 """
2724 GetValue(self) -> String
2725
2726 Returns the text that the user has entered if the user has pressed OK,
2727 or the original value if the user has pressed Cancel.
2728 """
2729 return _windows_.TextEntryDialog_GetValue(*args, **kwargs)
2730
2731 def SetValue(*args, **kwargs):
2732 """
2733 SetValue(self, String value)
2734
2735 Sets the default text value.
2736 """
2737 return _windows_.TextEntryDialog_SetValue(*args, **kwargs)
2738
2739
2740class TextEntryDialogPtr(TextEntryDialog):
2741 def __init__(self, this):
2742 self.this = this
2743 if not hasattr(self,"thisown"): self.thisown = 0
2744 self.__class__ = TextEntryDialog
2745_windows_.TextEntryDialog_swigregister(TextEntryDialogPtr)
2746
070c48b4 2747class PasswordEntryDialog(TextEntryDialog):
36ed4f51 2748 """Proxy of C++ PasswordEntryDialog class"""
070c48b4
RD
2749 def __repr__(self):
2750 return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2751 def __init__(self, *args, **kwargs):
2752 """
2753 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2754 String value=EmptyString,
03e46024 2755 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
070c48b4
RD
2756 """
2757 newobj = _windows_.new_PasswordEntryDialog(*args, **kwargs)
2758 self.this = newobj.this
2759 self.thisown = 1
2760 del newobj.thisown
2761
2762class PasswordEntryDialogPtr(PasswordEntryDialog):
2763 def __init__(self, this):
2764 self.this = this
2765 if not hasattr(self,"thisown"): self.thisown = 0
2766 self.__class__ = PasswordEntryDialog
2767_windows_.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr)
2768GetPasswordFromUserPromptStr = cvar.GetPasswordFromUserPromptStr
2769
d55e5bfc 2770class FontData(_core.Object):
d6c14a4c
RD
2771 """
2772 This class holds a variety of information related to font dialogs and
2773 is used to transfer settings to and results from a `wx.FontDialog`.
2774 """
d55e5bfc
RD
2775 def __repr__(self):
2776 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2777 def __init__(self, *args, **kwargs):
2778 """
2779 __init__(self) -> FontData
2780
d6c14a4c
RD
2781 This class holds a variety of information related to font dialogs and
2782 is used to transfer settings to and results from a `wx.FontDialog`.
d55e5bfc
RD
2783 """
2784 newobj = _windows_.new_FontData(*args, **kwargs)
2785 self.this = newobj.this
2786 self.thisown = 1
2787 del newobj.thisown
2788 def __del__(self, destroy=_windows_.delete_FontData):
2789 """__del__(self)"""
2790 try:
2791 if self.thisown: destroy(self)
2792 except: pass
2793
2794 def EnableEffects(*args, **kwargs):
2795 """
2796 EnableEffects(self, bool enable)
2797
d6c14a4c
RD
2798 Enables or disables 'effects' under MS Windows only. This refers to
2799 the controls for manipulating colour, strikeout and underline
d55e5bfc
RD
2800 properties. The default value is true.
2801 """
2802 return _windows_.FontData_EnableEffects(*args, **kwargs)
2803
2804 def GetAllowSymbols(*args, **kwargs):
2805 """
2806 GetAllowSymbols(self) -> bool
2807
d6c14a4c
RD
2808 Under MS Windows, returns a flag determining whether symbol fonts can
2809 be selected. Has no effect on other platforms. The default value is
2810 true.
d55e5bfc
RD
2811 """
2812 return _windows_.FontData_GetAllowSymbols(*args, **kwargs)
2813
2814 def GetColour(*args, **kwargs):
2815 """
2816 GetColour(self) -> Colour
2817
d6c14a4c
RD
2818 Gets the colour associated with the font dialog. The default value is
2819 black.
d55e5bfc
RD
2820 """
2821 return _windows_.FontData_GetColour(*args, **kwargs)
2822
2823 def GetChosenFont(*args, **kwargs):
2824 """
2825 GetChosenFont(self) -> Font
2826
2827 Gets the font chosen by the user.
2828 """
2829 return _windows_.FontData_GetChosenFont(*args, **kwargs)
2830
2831 def GetEnableEffects(*args, **kwargs):
2832 """
2833 GetEnableEffects(self) -> bool
2834
2835 Determines whether 'effects' are enabled under Windows.
2836 """
2837 return _windows_.FontData_GetEnableEffects(*args, **kwargs)
2838
2839 def GetInitialFont(*args, **kwargs):
2840 """
2841 GetInitialFont(self) -> Font
2842
d6c14a4c
RD
2843 Gets the font that will be initially used by the font dialog. This
2844 should have previously been set by the application.
d55e5bfc
RD
2845 """
2846 return _windows_.FontData_GetInitialFont(*args, **kwargs)
2847
2848 def GetShowHelp(*args, **kwargs):
2849 """
2850 GetShowHelp(self) -> bool
2851
d6c14a4c
RD
2852 Returns true if the Help button will be shown (Windows only). The
2853 default value is false.
d55e5bfc
RD
2854 """
2855 return _windows_.FontData_GetShowHelp(*args, **kwargs)
2856
2857 def SetAllowSymbols(*args, **kwargs):
2858 """
2859 SetAllowSymbols(self, bool allowSymbols)
2860
d6c14a4c
RD
2861 Under MS Windows, determines whether symbol fonts can be selected. Has
2862 no effect on other platforms. The default value is true.
d55e5bfc
RD
2863 """
2864 return _windows_.FontData_SetAllowSymbols(*args, **kwargs)
2865
2866 def SetChosenFont(*args, **kwargs):
2867 """
2868 SetChosenFont(self, Font font)
2869
d6c14a4c
RD
2870 Sets the font that will be returned to the user (normally for internal
2871 use only).
d55e5bfc
RD
2872 """
2873 return _windows_.FontData_SetChosenFont(*args, **kwargs)
2874
2875 def SetColour(*args, **kwargs):
2876 """
2877 SetColour(self, Colour colour)
2878
d6c14a4c
RD
2879 Sets the colour that will be used for the font foreground colour. The
2880 default colour is black.
d55e5bfc
RD
2881 """
2882 return _windows_.FontData_SetColour(*args, **kwargs)
2883
2884 def SetInitialFont(*args, **kwargs):
2885 """
2886 SetInitialFont(self, Font font)
2887
2888 Sets the font that will be initially used by the font dialog.
2889 """
2890 return _windows_.FontData_SetInitialFont(*args, **kwargs)
2891
2892 def SetRange(*args, **kwargs):
2893 """
2894 SetRange(self, int min, int max)
2895
d6c14a4c
RD
2896 Sets the valid range for the font point size (Windows only). The
2897 default is 0, 0 (unrestricted range).
d55e5bfc
RD
2898 """
2899 return _windows_.FontData_SetRange(*args, **kwargs)
2900
2901 def SetShowHelp(*args, **kwargs):
2902 """
2903 SetShowHelp(self, bool showHelp)
2904
d6c14a4c
RD
2905 Determines whether the Help button will be displayed in the font
2906 dialog (Windows only). The default value is false.
d55e5bfc
RD
2907 """
2908 return _windows_.FontData_SetShowHelp(*args, **kwargs)
2909
2910
2911class FontDataPtr(FontData):
2912 def __init__(self, this):
2913 self.this = this
2914 if not hasattr(self,"thisown"): self.thisown = 0
2915 self.__class__ = FontData
2916_windows_.FontData_swigregister(FontDataPtr)
2917
2918class FontDialog(Dialog):
d6c14a4c
RD
2919 """
2920 wx.FontDialog allows the user to select a system font and its attributes.
2921
2922 :see: `wx.FontData`
2923
2924 """
d55e5bfc
RD
2925 def __repr__(self):
2926 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2927 def __init__(self, *args, **kwargs):
2928 """
2929 __init__(self, Window parent, FontData data) -> FontDialog
2930
d6c14a4c
RD
2931 Constructor. Pass a parent window and the `wx.FontData` object to be
2932 used to initialize the dialog controls. Call `ShowModal` to display
2933 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2934 results with via the `wx.FontData` returned by `GetFontData`.
d55e5bfc
RD
2935 """
2936 newobj = _windows_.new_FontDialog(*args, **kwargs)
2937 self.this = newobj.this
2938 self.thisown = 1
2939 del newobj.thisown
2940 self._setOORInfo(self)
2941
2942 def GetFontData(*args, **kwargs):
2943 """
2944 GetFontData(self) -> FontData
2945
d6c14a4c
RD
2946 Returns a reference to the internal `wx.FontData` used by the
2947 wx.FontDialog.
d55e5bfc
RD
2948 """
2949 return _windows_.FontDialog_GetFontData(*args, **kwargs)
2950
2951
2952class FontDialogPtr(FontDialog):
2953 def __init__(self, this):
2954 self.this = this
2955 if not hasattr(self,"thisown"): self.thisown = 0
2956 self.__class__ = FontDialog
2957_windows_.FontDialog_swigregister(FontDialogPtr)
2958
2959class MessageDialog(Dialog):
2960 """
d6c14a4c
RD
2961 This class provides a simple dialog that shows a single or multi-line
2962 message, with a choice of OK, Yes, No and/or Cancel buttons.
d55e5bfc
RD
2963 """
2964 def __repr__(self):
2965 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2966 def __init__(self, *args, **kwargs):
2967 """
2968 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2969 long style=wxOK|wxCANCEL|wxCENTRE,
2970 Point pos=DefaultPosition) -> MessageDialog
2971
d6c14a4c 2972 Constructor, use `ShowModal` to display the dialog.
d55e5bfc
RD
2973 """
2974 newobj = _windows_.new_MessageDialog(*args, **kwargs)
2975 self.this = newobj.this
2976 self.thisown = 1
2977 del newobj.thisown
2978 self._setOORInfo(self)
2979
2980
2981class MessageDialogPtr(MessageDialog):
2982 def __init__(self, this):
2983 self.this = this
2984 if not hasattr(self,"thisown"): self.thisown = 0
2985 self.__class__ = MessageDialog
2986_windows_.MessageDialog_swigregister(MessageDialogPtr)
2987
2988class ProgressDialog(Frame):
2989 """
d6c14a4c
RD
2990 A dialog that shows a short message and a progress bar. Optionally, it
2991 can display an ABORT button.
d55e5bfc
RD
2992 """
2993 def __repr__(self):
2994 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
2995 def __init__(self, *args, **kwargs):
2996 """
2997 __init__(self, String title, String message, int maximum=100, Window parent=None,
2998 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2999
d6c14a4c
RD
3000 Constructor. Creates the dialog, displays it and disables user input
3001 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
3002 parent window only.
d55e5bfc
RD
3003 """
3004 newobj = _windows_.new_ProgressDialog(*args, **kwargs)
3005 self.this = newobj.this
3006 self.thisown = 1
3007 del newobj.thisown
3008 self._setOORInfo(self)
3009
3010 def Update(*args, **kwargs):
3011 """
3012 Update(self, int value, String newmsg=EmptyString) -> bool
3013
d6c14a4c 3014 Updates the dialog, setting the progress bar to the new value and, if
6923d0a9
RD
3015 given changes the message above it. The value given should be less
3016 than or equal to the maximum value given to the constructor and the
62d32a5f 3017 dialog is closed if it is equal to the maximum. Returns True unless
6923d0a9 3018 the Cancel button has been pressed.
d55e5bfc 3019
d6c14a4c
RD
3020 If false is returned, the application can either immediately destroy
3021 the dialog or ask the user for the confirmation and if the abort is
3022 not confirmed the dialog may be resumed with Resume function.
d55e5bfc
RD
3023 """
3024 return _windows_.ProgressDialog_Update(*args, **kwargs)
3025
3026 def Resume(*args, **kwargs):
3027 """
3028 Resume(self)
3029
d6c14a4c
RD
3030 Can be used to continue with the dialog, after the user had chosen to
3031 abort.
d55e5bfc
RD
3032 """
3033 return _windows_.ProgressDialog_Resume(*args, **kwargs)
3034
3035
3036class ProgressDialogPtr(ProgressDialog):
3037 def __init__(self, this):
3038 self.this = this
3039 if not hasattr(self,"thisown"): self.thisown = 0
3040 self.__class__ = ProgressDialog
3041_windows_.ProgressDialog_swigregister(ProgressDialogPtr)
3042
3043FR_DOWN = _windows_.FR_DOWN
3044FR_WHOLEWORD = _windows_.FR_WHOLEWORD
3045FR_MATCHCASE = _windows_.FR_MATCHCASE
3046FR_REPLACEDIALOG = _windows_.FR_REPLACEDIALOG
3047FR_NOUPDOWN = _windows_.FR_NOUPDOWN
3048FR_NOMATCHCASE = _windows_.FR_NOMATCHCASE
3049FR_NOWHOLEWORD = _windows_.FR_NOWHOLEWORD
3050wxEVT_COMMAND_FIND = _windows_.wxEVT_COMMAND_FIND
3051wxEVT_COMMAND_FIND_NEXT = _windows_.wxEVT_COMMAND_FIND_NEXT
3052wxEVT_COMMAND_FIND_REPLACE = _windows_.wxEVT_COMMAND_FIND_REPLACE
3053wxEVT_COMMAND_FIND_REPLACE_ALL = _windows_.wxEVT_COMMAND_FIND_REPLACE_ALL
3054wxEVT_COMMAND_FIND_CLOSE = _windows_.wxEVT_COMMAND_FIND_CLOSE
3055EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 )
3056EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 )
3057EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 )
3058EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 )
3059EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 )
3060
3061# For backwards compatibility. Should they be removed?
3062EVT_COMMAND_FIND = EVT_FIND
3063EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT
3064EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE
3065EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL
3066EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE
3067
3068class FindDialogEvent(_core.CommandEvent):
3069 """Events for the FindReplaceDialog"""
3070 def __repr__(self):
3071 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3072 def __init__(self, *args, **kwargs):
3073 """
3074 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3075
3076 Events for the FindReplaceDialog
3077 """
3078 newobj = _windows_.new_FindDialogEvent(*args, **kwargs)
3079 self.this = newobj.this
3080 self.thisown = 1
3081 del newobj.thisown
3082 def GetFlags(*args, **kwargs):
3083 """
3084 GetFlags(self) -> int
3085
3086 Get the currently selected flags: this is the combination of
3087 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3088 """
3089 return _windows_.FindDialogEvent_GetFlags(*args, **kwargs)
3090
3091 def GetFindString(*args, **kwargs):
3092 """
3093 GetFindString(self) -> String
3094
3095 Return the string to find (never empty).
3096 """
3097 return _windows_.FindDialogEvent_GetFindString(*args, **kwargs)
3098
3099 def GetReplaceString(*args, **kwargs):
3100 """
3101 GetReplaceString(self) -> String
3102
d6c14a4c
RD
3103 Return the string to replace the search string with (only for replace
3104 and replace all events).
d55e5bfc
RD
3105 """
3106 return _windows_.FindDialogEvent_GetReplaceString(*args, **kwargs)
3107
3108 def GetDialog(*args, **kwargs):
3109 """
3110 GetDialog(self) -> FindReplaceDialog
3111
3112 Return the pointer to the dialog which generated this event.
3113 """
3114 return _windows_.FindDialogEvent_GetDialog(*args, **kwargs)
3115
3116 def SetFlags(*args, **kwargs):
3117 """SetFlags(self, int flags)"""
3118 return _windows_.FindDialogEvent_SetFlags(*args, **kwargs)
3119
3120 def SetFindString(*args, **kwargs):
3121 """SetFindString(self, String str)"""
3122 return _windows_.FindDialogEvent_SetFindString(*args, **kwargs)
3123
3124 def SetReplaceString(*args, **kwargs):
3125 """SetReplaceString(self, String str)"""
3126 return _windows_.FindDialogEvent_SetReplaceString(*args, **kwargs)
3127
3128
3129class FindDialogEventPtr(FindDialogEvent):
3130 def __init__(self, this):
3131 self.this = this
3132 if not hasattr(self,"thisown"): self.thisown = 0
3133 self.__class__ = FindDialogEvent
3134_windows_.FindDialogEvent_swigregister(FindDialogEventPtr)
3135
3136class FindReplaceData(_core.Object):
3137 """
d6c14a4c
RD
3138 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3139 to initialize the dialog with the default values and will keep the
3140 last values from the dialog when it is closed. It is also updated each
3141 time a `wx.FindDialogEvent` is generated so instead of using the
3142 `wx.FindDialogEvent` methods you can also directly query this object.
d55e5bfc 3143
d6c14a4c
RD
3144 Note that all SetXXX() methods may only be called before showing the
3145 dialog and calling them has no effect later.
d55e5bfc
RD
3146 """
3147 def __repr__(self):
3148 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3149 def __init__(self, *args, **kwargs):
3150 """
3151 __init__(self, int flags=0) -> FindReplaceData
3152
3153 Constuctor initializes the flags to default value (0).
3154 """
3155 newobj = _windows_.new_FindReplaceData(*args, **kwargs)
3156 self.this = newobj.this
3157 self.thisown = 1
3158 del newobj.thisown
3159 def __del__(self, destroy=_windows_.delete_FindReplaceData):
3160 """__del__(self)"""
3161 try:
3162 if self.thisown: destroy(self)
3163 except: pass
3164
3165 def GetFindString(*args, **kwargs):
3166 """
3167 GetFindString(self) -> String
3168
3169 Get the string to find.
3170 """
3171 return _windows_.FindReplaceData_GetFindString(*args, **kwargs)
3172
3173 def GetReplaceString(*args, **kwargs):
3174 """
3175 GetReplaceString(self) -> String
3176
3177 Get the replacement string.
3178 """
3179 return _windows_.FindReplaceData_GetReplaceString(*args, **kwargs)
3180
3181 def GetFlags(*args, **kwargs):
3182 """
3183 GetFlags(self) -> int
3184
3185 Get the combination of flag values.
3186 """
3187 return _windows_.FindReplaceData_GetFlags(*args, **kwargs)
3188
3189 def SetFlags(*args, **kwargs):
3190 """
3191 SetFlags(self, int flags)
3192
3193 Set the flags to use to initialize the controls of the dialog.
3194 """
3195 return _windows_.FindReplaceData_SetFlags(*args, **kwargs)
3196
3197 def SetFindString(*args, **kwargs):
3198 """
3199 SetFindString(self, String str)
3200
3201 Set the string to find (used as initial value by the dialog).
3202 """
3203 return _windows_.FindReplaceData_SetFindString(*args, **kwargs)
3204
3205 def SetReplaceString(*args, **kwargs):
3206 """
3207 SetReplaceString(self, String str)
3208
3209 Set the replacement string (used as initial value by the dialog).
3210 """
3211 return _windows_.FindReplaceData_SetReplaceString(*args, **kwargs)
3212
3213
3214class FindReplaceDataPtr(FindReplaceData):
3215 def __init__(self, this):
3216 self.this = this
3217 if not hasattr(self,"thisown"): self.thisown = 0
3218 self.__class__ = FindReplaceData
3219_windows_.FindReplaceData_swigregister(FindReplaceDataPtr)
3220
3221class FindReplaceDialog(Dialog):
3222 """
d6c14a4c
RD
3223 wx.FindReplaceDialog is a standard modeless dialog which is used to
3224 allow the user to search for some text (and possibly replace it with
3225 something else). The actual searching is supposed to be done in the
3226 owner window which is the parent of this dialog. Note that it means
3227 that unlike for the other standard dialogs this one must have a parent
3228 window. Also note that there is no way to use this dialog in a modal
3229 way; it is always, by design and implementation, modeless.
d55e5bfc
RD
3230 """
3231 def __repr__(self):
3232 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3233 def __init__(self, *args, **kwargs):
3234 """
3235 __init__(self, Window parent, FindReplaceData data, String title,
3236 int style=0) -> FindReplaceDialog
3237
3238 Create a FindReplaceDialog. The parent and data parameters must be
3239 non-None. Use Show to display the dialog.
3240 """
3241 newobj = _windows_.new_FindReplaceDialog(*args, **kwargs)
3242 self.this = newobj.this
3243 self.thisown = 1
3244 del newobj.thisown
3245 self._setOORInfo(self)
3246
3247 def Create(*args, **kwargs):
3248 """
3249 Create(self, Window parent, FindReplaceData data, String title,
3250 int style=0) -> bool
3251
3252 Create the dialog, for 2-phase create.
3253 """
3254 return _windows_.FindReplaceDialog_Create(*args, **kwargs)
3255
3256 def GetData(*args, **kwargs):
3257 """
3258 GetData(self) -> FindReplaceData
3259
3260 Get the FindReplaceData object used by this dialog.
3261 """
3262 return _windows_.FindReplaceDialog_GetData(*args, **kwargs)
3263
3264 def SetData(*args, **kwargs):
3265 """
3266 SetData(self, FindReplaceData data)
3267
3268 Set the FindReplaceData object used by this dialog.
3269 """
3270 return _windows_.FindReplaceDialog_SetData(*args, **kwargs)
3271
3272
3273class FindReplaceDialogPtr(FindReplaceDialog):
3274 def __init__(self, this):
3275 self.this = this
3276 if not hasattr(self,"thisown"): self.thisown = 0
3277 self.__class__ = FindReplaceDialog
3278_windows_.FindReplaceDialog_swigregister(FindReplaceDialogPtr)
3279
3280def PreFindReplaceDialog(*args, **kwargs):
3281 """
3282 PreFindReplaceDialog() -> FindReplaceDialog
3283
3284 Precreate a FindReplaceDialog for 2-phase creation
3285 """
3286 val = _windows_.new_PreFindReplaceDialog(*args, **kwargs)
3287 val.thisown = 1
3288 return val
3289
3290#---------------------------------------------------------------------------
3291
3292IDM_WINDOWTILE = _windows_.IDM_WINDOWTILE
3293IDM_WINDOWTILEHOR = _windows_.IDM_WINDOWTILEHOR
3294IDM_WINDOWCASCADE = _windows_.IDM_WINDOWCASCADE
3295IDM_WINDOWICONS = _windows_.IDM_WINDOWICONS
3296IDM_WINDOWNEXT = _windows_.IDM_WINDOWNEXT
3297IDM_WINDOWTILEVERT = _windows_.IDM_WINDOWTILEVERT
3298FIRST_MDI_CHILD = _windows_.FIRST_MDI_CHILD
3299LAST_MDI_CHILD = _windows_.LAST_MDI_CHILD
3300class MDIParentFrame(Frame):
36ed4f51 3301 """Proxy of C++ MDIParentFrame class"""
d55e5bfc
RD
3302 def __repr__(self):
3303 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3304 def __init__(self, *args, **kwargs):
3305 """
bfddbb17
RD
3306 __init__(self, Window parent, int id=-1, String title=EmptyString,
3307 Point pos=DefaultPosition, Size size=DefaultSize,
3308 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
d55e5bfc
RD
3309 String name=FrameNameStr) -> MDIParentFrame
3310 """
3311 newobj = _windows_.new_MDIParentFrame(*args, **kwargs)
3312 self.this = newobj.this
3313 self.thisown = 1
3314 del newobj.thisown
3315 self._setOORInfo(self)
3316
3317 def Create(*args, **kwargs):
3318 """
bfddbb17
RD
3319 Create(self, Window parent, int id=-1, String title=EmptyString,
3320 Point pos=DefaultPosition, Size size=DefaultSize,
3321 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
d55e5bfc
RD
3322 String name=FrameNameStr) -> bool
3323 """
3324 return _windows_.MDIParentFrame_Create(*args, **kwargs)
3325
3326 def ActivateNext(*args, **kwargs):
3327 """ActivateNext(self)"""
3328 return _windows_.MDIParentFrame_ActivateNext(*args, **kwargs)
3329
3330 def ActivatePrevious(*args, **kwargs):
3331 """ActivatePrevious(self)"""
3332 return _windows_.MDIParentFrame_ActivatePrevious(*args, **kwargs)
3333
3334 def ArrangeIcons(*args, **kwargs):
3335 """ArrangeIcons(self)"""
3336 return _windows_.MDIParentFrame_ArrangeIcons(*args, **kwargs)
3337
3338 def Cascade(*args, **kwargs):
3339 """Cascade(self)"""
3340 return _windows_.MDIParentFrame_Cascade(*args, **kwargs)
3341
3342 def GetActiveChild(*args, **kwargs):
3343 """GetActiveChild(self) -> MDIChildFrame"""
3344 return _windows_.MDIParentFrame_GetActiveChild(*args, **kwargs)
3345
3346 def GetClientWindow(*args, **kwargs):
3347 """GetClientWindow(self) -> MDIClientWindow"""
3348 return _windows_.MDIParentFrame_GetClientWindow(*args, **kwargs)
3349
3350 def GetToolBar(*args, **kwargs):
3351 """GetToolBar(self) -> Window"""
3352 return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs)
3353
3354 def Tile(*args, **kwargs):
3355 """Tile(self)"""
3356 return _windows_.MDIParentFrame_Tile(*args, **kwargs)
3357
3358
3359class MDIParentFramePtr(MDIParentFrame):
3360 def __init__(self, this):
3361 self.this = this
3362 if not hasattr(self,"thisown"): self.thisown = 0
3363 self.__class__ = MDIParentFrame
3364_windows_.MDIParentFrame_swigregister(MDIParentFramePtr)
3365
3366def PreMDIParentFrame(*args, **kwargs):
3367 """PreMDIParentFrame() -> MDIParentFrame"""
3368 val = _windows_.new_PreMDIParentFrame(*args, **kwargs)
3369 val.thisown = 1
3370 return val
3371
3372class MDIChildFrame(Frame):
36ed4f51 3373 """Proxy of C++ MDIChildFrame class"""
d55e5bfc
RD
3374 def __repr__(self):
3375 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3376 def __init__(self, *args, **kwargs):
3377 """
bfddbb17
RD
3378 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3379 Point pos=DefaultPosition, Size size=DefaultSize,
3380 long style=DEFAULT_FRAME_STYLE,
d55e5bfc
RD
3381 String name=FrameNameStr) -> MDIChildFrame
3382 """
3383 newobj = _windows_.new_MDIChildFrame(*args, **kwargs)
3384 self.this = newobj.this
3385 self.thisown = 1
3386 del newobj.thisown
3387 self._setOORInfo(self)
3388
3389 def Create(*args, **kwargs):
3390 """
bfddbb17
RD
3391 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3392 Point pos=DefaultPosition, Size size=DefaultSize,
3393 long style=DEFAULT_FRAME_STYLE,
d55e5bfc
RD
3394 String name=FrameNameStr) -> bool
3395 """
3396 return _windows_.MDIChildFrame_Create(*args, **kwargs)
3397
3398 def Activate(*args, **kwargs):
3399 """Activate(self)"""
3400 return _windows_.MDIChildFrame_Activate(*args, **kwargs)
3401
3402 def Maximize(*args, **kwargs):
5cbf236d 3403 """Maximize(self, bool maximize=True)"""
d55e5bfc
RD
3404 return _windows_.MDIChildFrame_Maximize(*args, **kwargs)
3405
3406 def Restore(*args, **kwargs):
3407 """Restore(self)"""
3408 return _windows_.MDIChildFrame_Restore(*args, **kwargs)
3409
3410
3411class MDIChildFramePtr(MDIChildFrame):
3412 def __init__(self, this):
3413 self.this = this
3414 if not hasattr(self,"thisown"): self.thisown = 0
3415 self.__class__ = MDIChildFrame
3416_windows_.MDIChildFrame_swigregister(MDIChildFramePtr)
3417
3418def PreMDIChildFrame(*args, **kwargs):
3419 """PreMDIChildFrame() -> MDIChildFrame"""
3420 val = _windows_.new_PreMDIChildFrame(*args, **kwargs)
3421 val.thisown = 1
3422 return val
3423
3424class MDIClientWindow(_core.Window):
36ed4f51 3425 """Proxy of C++ MDIClientWindow class"""
d55e5bfc
RD
3426 def __repr__(self):
3427 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3428 def __init__(self, *args, **kwargs):
3429 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3430 newobj = _windows_.new_MDIClientWindow(*args, **kwargs)
3431 self.this = newobj.this
3432 self.thisown = 1
3433 del newobj.thisown
3434 self._setOORInfo(self)
3435
3436 def Create(*args, **kwargs):
3437 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3438 return _windows_.MDIClientWindow_Create(*args, **kwargs)
3439
3440
3441class MDIClientWindowPtr(MDIClientWindow):
3442 def __init__(self, this):
3443 self.this = this
3444 if not hasattr(self,"thisown"): self.thisown = 0
3445 self.__class__ = MDIClientWindow
3446_windows_.MDIClientWindow_swigregister(MDIClientWindowPtr)
3447
3448def PreMDIClientWindow(*args, **kwargs):
3449 """PreMDIClientWindow() -> MDIClientWindow"""
3450 val = _windows_.new_PreMDIClientWindow(*args, **kwargs)
3451 val.thisown = 1
3452 return val
3453
3454#---------------------------------------------------------------------------
3455
3456class PyWindow(_core.Window):
36ed4f51 3457 """Proxy of C++ PyWindow class"""
d55e5bfc
RD
3458 def __repr__(self):
3459 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3460 def __init__(self, *args, **kwargs):
3461 """
bfddbb17
RD
3462 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3463 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
d55e5bfc
RD
3464 """
3465 newobj = _windows_.new_PyWindow(*args, **kwargs)
3466 self.this = newobj.this
3467 self.thisown = 1
3468 del newobj.thisown
3469 self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)
3470
3471 def _setCallbackInfo(*args, **kwargs):
3472 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3473 return _windows_.PyWindow__setCallbackInfo(*args, **kwargs)
3474
a5ee0656
RD
3475 def SetBestSize(*args, **kwargs):
3476 """SetBestSize(self, Size size)"""
3477 return _windows_.PyWindow_SetBestSize(*args, **kwargs)
3478
d55e5bfc
RD
3479 def base_DoMoveWindow(*args, **kwargs):
3480 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3481 return _windows_.PyWindow_base_DoMoveWindow(*args, **kwargs)
3482
3483 def base_DoSetSize(*args, **kwargs):
3484 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3485 return _windows_.PyWindow_base_DoSetSize(*args, **kwargs)
3486
3487 def base_DoSetClientSize(*args, **kwargs):
3488 """base_DoSetClientSize(self, int width, int height)"""
3489 return _windows_.PyWindow_base_DoSetClientSize(*args, **kwargs)
3490
3491 def base_DoSetVirtualSize(*args, **kwargs):
3492 """base_DoSetVirtualSize(self, int x, int y)"""
3493 return _windows_.PyWindow_base_DoSetVirtualSize(*args, **kwargs)
3494
3495 def base_DoGetSize(*args, **kwargs):
3496 """base_DoGetSize() -> (width, height)"""
3497 return _windows_.PyWindow_base_DoGetSize(*args, **kwargs)
3498
3499 def base_DoGetClientSize(*args, **kwargs):
3500 """base_DoGetClientSize() -> (width, height)"""
3501 return _windows_.PyWindow_base_DoGetClientSize(*args, **kwargs)
3502
3503 def base_DoGetPosition(*args, **kwargs):
3504 """base_DoGetPosition() -> (x,y)"""
3505 return _windows_.PyWindow_base_DoGetPosition(*args, **kwargs)
3506
3507 def base_DoGetVirtualSize(*args, **kwargs):
3508 """base_DoGetVirtualSize(self) -> Size"""
3509 return _windows_.PyWindow_base_DoGetVirtualSize(*args, **kwargs)
3510
3511 def base_DoGetBestSize(*args, **kwargs):
3512 """base_DoGetBestSize(self) -> Size"""
3513 return _windows_.PyWindow_base_DoGetBestSize(*args, **kwargs)
3514
3515 def base_InitDialog(*args, **kwargs):
3516 """base_InitDialog(self)"""
3517 return _windows_.PyWindow_base_InitDialog(*args, **kwargs)
3518
3519 def base_TransferDataToWindow(*args, **kwargs):
3520 """base_TransferDataToWindow(self) -> bool"""
3521 return _windows_.PyWindow_base_TransferDataToWindow(*args, **kwargs)
3522
3523 def base_TransferDataFromWindow(*args, **kwargs):
3524 """base_TransferDataFromWindow(self) -> bool"""
3525 return _windows_.PyWindow_base_TransferDataFromWindow(*args, **kwargs)
3526
3527 def base_Validate(*args, **kwargs):
3528 """base_Validate(self) -> bool"""
3529 return _windows_.PyWindow_base_Validate(*args, **kwargs)
3530
3531 def base_AcceptsFocus(*args, **kwargs):
3532 """base_AcceptsFocus(self) -> bool"""
3533 return _windows_.PyWindow_base_AcceptsFocus(*args, **kwargs)
3534
3535 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
3536 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3537 return _windows_.PyWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs)
3538
3539 def base_GetMaxSize(*args, **kwargs):
3540 """base_GetMaxSize(self) -> Size"""
3541 return _windows_.PyWindow_base_GetMaxSize(*args, **kwargs)
3542
3543 def base_AddChild(*args, **kwargs):
3544 """base_AddChild(self, Window child)"""
3545 return _windows_.PyWindow_base_AddChild(*args, **kwargs)
3546
3547 def base_RemoveChild(*args, **kwargs):
3548 """base_RemoveChild(self, Window child)"""
3549 return _windows_.PyWindow_base_RemoveChild(*args, **kwargs)
3550
3551 def base_ShouldInheritColours(*args, **kwargs):
3552 """base_ShouldInheritColours(self) -> bool"""
3553 return _windows_.PyWindow_base_ShouldInheritColours(*args, **kwargs)
3554
3555 def base_ApplyParentThemeBackground(*args, **kwargs):
3556 """base_ApplyParentThemeBackground(self, Colour c)"""
3557 return _windows_.PyWindow_base_ApplyParentThemeBackground(*args, **kwargs)
3558
a5ee0656
RD
3559 def base_GetDefaultAttributes(*args, **kwargs):
3560 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3561 return _windows_.PyWindow_base_GetDefaultAttributes(*args, **kwargs)
3562
d55e5bfc
RD
3563
3564class PyWindowPtr(PyWindow):
3565 def __init__(self, this):
3566 self.this = this
3567 if not hasattr(self,"thisown"): self.thisown = 0
3568 self.__class__ = PyWindow
3569_windows_.PyWindow_swigregister(PyWindowPtr)
3570
3571def PrePyWindow(*args, **kwargs):
3572 """PrePyWindow() -> PyWindow"""
3573 val = _windows_.new_PrePyWindow(*args, **kwargs)
3574 val.thisown = 1
3575 return val
3576
3577class PyPanel(Panel):
36ed4f51 3578 """Proxy of C++ PyPanel class"""
d55e5bfc
RD
3579 def __repr__(self):
3580 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3581 def __init__(self, *args, **kwargs):
3582 """
bfddbb17
RD
3583 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3584 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
d55e5bfc
RD
3585 """
3586 newobj = _windows_.new_PyPanel(*args, **kwargs)
3587 self.this = newobj.this
3588 self.thisown = 1
3589 del newobj.thisown
3590 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
3591
3592 def _setCallbackInfo(*args, **kwargs):
3593 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3594 return _windows_.PyPanel__setCallbackInfo(*args, **kwargs)
3595
a5ee0656
RD
3596 def SetBestSize(*args, **kwargs):
3597 """SetBestSize(self, Size size)"""
3598 return _windows_.PyPanel_SetBestSize(*args, **kwargs)
3599
d55e5bfc
RD
3600 def base_DoMoveWindow(*args, **kwargs):
3601 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3602 return _windows_.PyPanel_base_DoMoveWindow(*args, **kwargs)
3603
3604 def base_DoSetSize(*args, **kwargs):
3605 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3606 return _windows_.PyPanel_base_DoSetSize(*args, **kwargs)
3607
3608 def base_DoSetClientSize(*args, **kwargs):
3609 """base_DoSetClientSize(self, int width, int height)"""
3610 return _windows_.PyPanel_base_DoSetClientSize(*args, **kwargs)
3611
3612 def base_DoSetVirtualSize(*args, **kwargs):
3613 """base_DoSetVirtualSize(self, int x, int y)"""
3614 return _windows_.PyPanel_base_DoSetVirtualSize(*args, **kwargs)
3615
3616 def base_DoGetSize(*args, **kwargs):
3617 """base_DoGetSize() -> (width, height)"""
3618 return _windows_.PyPanel_base_DoGetSize(*args, **kwargs)
3619
3620 def base_DoGetClientSize(*args, **kwargs):
3621 """base_DoGetClientSize() -> (width, height)"""
3622 return _windows_.PyPanel_base_DoGetClientSize(*args, **kwargs)
3623
3624 def base_DoGetPosition(*args, **kwargs):
3625 """base_DoGetPosition() -> (x,y)"""
3626 return _windows_.PyPanel_base_DoGetPosition(*args, **kwargs)
3627
3628 def base_DoGetVirtualSize(*args, **kwargs):
3629 """base_DoGetVirtualSize(self) -> Size"""
3630 return _windows_.PyPanel_base_DoGetVirtualSize(*args, **kwargs)
3631
3632 def base_DoGetBestSize(*args, **kwargs):
3633 """base_DoGetBestSize(self) -> Size"""
3634 return _windows_.PyPanel_base_DoGetBestSize(*args, **kwargs)
3635
3636 def base_InitDialog(*args, **kwargs):
3637 """base_InitDialog(self)"""
3638 return _windows_.PyPanel_base_InitDialog(*args, **kwargs)
3639
3640 def base_TransferDataToWindow(*args, **kwargs):
3641 """base_TransferDataToWindow(self) -> bool"""
3642 return _windows_.PyPanel_base_TransferDataToWindow(*args, **kwargs)
3643
3644 def base_TransferDataFromWindow(*args, **kwargs):
3645 """base_TransferDataFromWindow(self) -> bool"""
3646 return _windows_.PyPanel_base_TransferDataFromWindow(*args, **kwargs)
3647
3648 def base_Validate(*args, **kwargs):
3649 """base_Validate(self) -> bool"""
3650 return _windows_.PyPanel_base_Validate(*args, **kwargs)
3651
3652 def base_AcceptsFocus(*args, **kwargs):
3653 """base_AcceptsFocus(self) -> bool"""
3654 return _windows_.PyPanel_base_AcceptsFocus(*args, **kwargs)
3655
3656 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
3657 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3658 return _windows_.PyPanel_base_AcceptsFocusFromKeyboard(*args, **kwargs)
3659
3660 def base_GetMaxSize(*args, **kwargs):
3661 """base_GetMaxSize(self) -> Size"""
3662 return _windows_.PyPanel_base_GetMaxSize(*args, **kwargs)
3663
3664 def base_AddChild(*args, **kwargs):
3665 """base_AddChild(self, Window child)"""
3666 return _windows_.PyPanel_base_AddChild(*args, **kwargs)
3667
3668 def base_RemoveChild(*args, **kwargs):
3669 """base_RemoveChild(self, Window child)"""
3670 return _windows_.PyPanel_base_RemoveChild(*args, **kwargs)
3671
3672 def base_ShouldInheritColours(*args, **kwargs):
3673 """base_ShouldInheritColours(self) -> bool"""
3674 return _windows_.PyPanel_base_ShouldInheritColours(*args, **kwargs)
3675
3676 def base_ApplyParentThemeBackground(*args, **kwargs):
3677 """base_ApplyParentThemeBackground(self, Colour c)"""
3678 return _windows_.PyPanel_base_ApplyParentThemeBackground(*args, **kwargs)
3679
a5ee0656
RD
3680 def base_GetDefaultAttributes(*args, **kwargs):
3681 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3682 return _windows_.PyPanel_base_GetDefaultAttributes(*args, **kwargs)
3683
d55e5bfc
RD
3684
3685class PyPanelPtr(PyPanel):
3686 def __init__(self, this):
3687 self.this = this
3688 if not hasattr(self,"thisown"): self.thisown = 0
3689 self.__class__ = PyPanel
3690_windows_.PyPanel_swigregister(PyPanelPtr)
3691
3692def PrePyPanel(*args, **kwargs):
3693 """PrePyPanel() -> PyPanel"""
3694 val = _windows_.new_PrePyPanel(*args, **kwargs)
3695 val.thisown = 1
3696 return val
3697
3698class PyScrolledWindow(ScrolledWindow):
36ed4f51 3699 """Proxy of C++ PyScrolledWindow class"""
d55e5bfc
RD
3700 def __repr__(self):
3701 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
3702 def __init__(self, *args, **kwargs):
3703 """
bfddbb17
RD
3704 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3705 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
d55e5bfc
RD
3706 """
3707 newobj = _windows_.new_PyScrolledWindow(*args, **kwargs)
3708 self.this = newobj.this
3709 self.thisown = 1
3710 del newobj.thisown
3711 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
3712
3713 def _setCallbackInfo(*args, **kwargs):
3714 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3715 return _windows_.PyScrolledWindow__setCallbackInfo(*args, **kwargs)
3716
a5ee0656
RD
3717 def SetBestSize(*args, **kwargs):
3718 """SetBestSize(self, Size size)"""
3719 return _windows_.PyScrolledWindow_SetBestSize(*args, **kwargs)
3720
d55e5bfc
RD
3721 def base_DoMoveWindow(*args, **kwargs):
3722 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3723 return _windows_.PyScrolledWindow_base_DoMoveWindow(*args, **kwargs)
3724
3725 def base_DoSetSize(*args, **kwargs):
3726 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3727 return _windows_.PyScrolledWindow_base_DoSetSize(*args, **kwargs)
3728
3729 def base_DoSetClientSize(*args, **kwargs):
3730 """base_DoSetClientSize(self, int width, int height)"""
3731 return _windows_.PyScrolledWindow_base_DoSetClientSize(*args, **kwargs)
3732
3733 def base_DoSetVirtualSize(*args, **kwargs):
3734 """base_DoSetVirtualSize(self, int x, int y)"""
3735 return _windows_.PyScrolledWindow_base_DoSetVirtualSize(*args, **kwargs)
3736
3737 def base_DoGetSize(*args, **kwargs):
3738 """base_DoGetSize() -> (width, height)"""
3739 return _windows_.PyScrolledWindow_base_DoGetSize(*args, **kwargs)
3740
3741 def base_DoGetClientSize(*args, **kwargs):
3742 """base_DoGetClientSize() -> (width, height)"""
3743 return _windows_.PyScrolledWindow_base_DoGetClientSize(*args, **kwargs)
3744
3745 def base_DoGetPosition(*args, **kwargs):
3746 """base_DoGetPosition() -> (x,y)"""
3747 return _windows_.PyScrolledWindow_base_DoGetPosition(*args, **kwargs)
3748
3749 def base_DoGetVirtualSize(*args, **kwargs):
3750 """base_DoGetVirtualSize(self) -> Size"""
3751 return _windows_.PyScrolledWindow_base_DoGetVirtualSize(*args, **kwargs)
3752
3753 def base_DoGetBestSize(*args, **kwargs):
3754 """base_DoGetBestSize(self) -> Size"""
3755 return _windows_.PyScrolledWindow_base_DoGetBestSize(*args, **kwargs)
3756
3757 def base_InitDialog(*args, **kwargs):
3758 """base_InitDialog(self)"""
3759 return _windows_.PyScrolledWindow_base_InitDialog(*args, **kwargs)
3760
3761 def base_TransferDataToWindow(*args, **kwargs):
3762 """base_TransferDataToWindow(self) -> bool"""
3763 return _windows_.PyScrolledWindow_base_TransferDataToWindow(*args, **kwargs)
3764
3765 def base_TransferDataFromWindow(*args, **kwargs):
3766 """base_TransferDataFromWindow(self) -> bool"""
3767 return _windows_.PyScrolledWindow_base_TransferDataFromWindow(*args, **kwargs)
3768
3769 def base_Validate(*args, **kwargs):
3770 """base_Validate(self) -> bool"""
3771 return _windows_.PyScrolledWindow_base_Validate(*args, **kwargs)
3772
3773 def base_AcceptsFocus(*args, **kwargs):
3774 """base_AcceptsFocus(self) -> bool"""
3775 return _windows_.PyScrolledWindow_base_AcceptsFocus(*args, **kwargs)
3776
3777 def base_AcceptsFocusFromKeyboard(*args, **kwargs):
3778 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3779 return _windows_.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args, **kwargs)
3780
3781 def base_GetMaxSize(*args, **kwargs):
3782 """base_GetMaxSize(self) -> Size"""
3783 return _windows_.PyScrolledWindow_base_GetMaxSize(*args, **kwargs)
3784
3785 def base_AddChild(*args, **kwargs):
3786 """base_AddChild(self, Window child)"""
3787 return _windows_.PyScrolledWindow_base_AddChild(*args, **kwargs)
3788
3789 def base_RemoveChild(*args, **kwargs):
3790 """base_RemoveChild(self, Window child)"""
3791 return _windows_.PyScrolledWindow_base_RemoveChild(*args, **kwargs)
3792
3793 def base_ShouldInheritColours(*args, **kwargs):
3794 """base_ShouldInheritColours(self) -> bool"""
3795 return _windows_.PyScrolledWindow_base_ShouldInheritColours(*args, **kwargs)
3796
3797 def base_ApplyParentThemeBackground(*args, **kwargs):
3798 """base_ApplyParentThemeBackground(self, Colour c)"""
3799 return _windows_.PyScrolledWindow_base_ApplyParentThemeBackground(*args, **kwargs)
3800
a5ee0656
RD
3801 def base_GetDefaultAttributes(*args, **kwargs):
3802 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3803 return _windows_.PyScrolledWindow_base_GetDefaultAttributes(*args, **kwargs)
3804
d55e5bfc
RD
3805
3806class PyScrolledWindowPtr(PyScrolledWindow):
3807 def __init__(self, this):
3808 self.this = this
3809 if not hasattr(self,"thisown"): self.thisown = 0
3810 self.__class__ = PyScrolledWindow
3811_windows_.PyScrolledWindow_swigregister(PyScrolledWindowPtr)
3812
3813def PrePyScrolledWindow(*args, **kwargs):
3814 """PrePyScrolledWindow() -> PyScrolledWindow"""
3815 val = _windows_.new_PrePyScrolledWindow(*args, **kwargs)
3816 val.thisown = 1
3817 return val
3818
3819#---------------------------------------------------------------------------
3820
3821PRINT_MODE_NONE = _windows_.PRINT_MODE_NONE
3822PRINT_MODE_PREVIEW = _windows_.PRINT_MODE_PREVIEW
3823PRINT_MODE_FILE = _windows_.PRINT_MODE_FILE
3824PRINT_MODE_PRINTER = _windows_.PRINT_MODE_PRINTER
3825PRINT_MODE_STREAM = _windows_.PRINT_MODE_STREAM
b411df4a
RD
3826PRINTBIN_DEFAULT = _windows_.PRINTBIN_DEFAULT
3827PRINTBIN_ONLYONE = _windows_.PRINTBIN_ONLYONE
3828PRINTBIN_LOWER = _windows_.PRINTBIN_LOWER
3829PRINTBIN_MIDDLE = _windows_.PRINTBIN_MIDDLE
3830PRINTBIN_MANUAL = _windows_.PRINTBIN_MANUAL
3831PRINTBIN_ENVELOPE = _windows_.PRINTBIN_ENVELOPE
3832PRINTBIN_ENVMANUAL = _windows_.PRINTBIN_ENVMANUAL
3833PRINTBIN_AUTO = _windows_.PRINTBIN_AUTO
3834PRINTBIN_TRACTOR = _windows_.PRINTBIN_TRACTOR
3835PRINTBIN_SMALLFMT = _windows_.PRINTBIN_SMALLFMT
3836PRINTBIN_LARGEFMT = _windows_.PRINTBIN_LARGEFMT
3837PRINTBIN_LARGECAPACITY = _windows_.PRINTBIN_LARGECAPACITY
3838PRINTBIN_CASSETTE = _windows_.PRINTBIN_CASSETTE
3839PRINTBIN_FORMSOURCE = _windows_.PRINTBIN_FORMSOURCE
3840PRINTBIN_USER = _windows_.PRINTBIN_USER
d55e5bfc 3841class PrintData(_core.Object):
36ed4f51 3842 """Proxy of C++ PrintData class"""
d55e5bfc
RD
3843 def __repr__(self):
3844 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
09c21d3b
RD
3845 def __init__(self, *args):
3846 """
3847 __init__(self) -> PrintData
3848 __init__(self, PrintData data) -> PrintData
3849 """
3850 newobj = _windows_.new_PrintData(*args)
d55e5bfc
RD
3851 self.this = newobj.this
3852 self.thisown = 1
3853 del newobj.thisown
3854 def __del__(self, destroy=_windows_.delete_PrintData):
3855 """__del__(self)"""
3856 try:
3857 if self.thisown: destroy(self)
3858 except: pass
3859
3860 def GetNoCopies(*args, **kwargs):
3861 """GetNoCopies(self) -> int"""
3862 return _windows_.PrintData_GetNoCopies(*args, **kwargs)
3863
3864 def GetCollate(*args, **kwargs):
3865 """GetCollate(self) -> bool"""
3866 return _windows_.PrintData_GetCollate(*args, **kwargs)
3867
3868 def GetOrientation(*args, **kwargs):
3869 """GetOrientation(self) -> int"""
3870 return _windows_.PrintData_GetOrientation(*args, **kwargs)
3871
3872 def Ok(*args, **kwargs):
3873 """Ok(self) -> bool"""
3874 return _windows_.PrintData_Ok(*args, **kwargs)
3875
3876 def GetPrinterName(*args, **kwargs):
3877 """GetPrinterName(self) -> String"""
3878 return _windows_.PrintData_GetPrinterName(*args, **kwargs)
3879
3880 def GetColour(*args, **kwargs):
3881 """GetColour(self) -> bool"""
3882 return _windows_.PrintData_GetColour(*args, **kwargs)
3883
3884 def GetDuplex(*args, **kwargs):
3885 """GetDuplex(self) -> int"""
3886 return _windows_.PrintData_GetDuplex(*args, **kwargs)
3887
3888 def GetPaperId(*args, **kwargs):
3889 """GetPaperId(self) -> int"""
3890 return _windows_.PrintData_GetPaperId(*args, **kwargs)
3891
3892 def GetPaperSize(*args, **kwargs):
3893 """GetPaperSize(self) -> Size"""
3894 return _windows_.PrintData_GetPaperSize(*args, **kwargs)
3895
3896 def GetQuality(*args, **kwargs):
3897 """GetQuality(self) -> int"""
3898 return _windows_.PrintData_GetQuality(*args, **kwargs)
3899
b411df4a
RD
3900 def GetBin(*args, **kwargs):
3901 """GetBin(self) -> int"""
3902 return _windows_.PrintData_GetBin(*args, **kwargs)
3903
070c48b4
RD
3904 def GetPrintMode(*args, **kwargs):
3905 """GetPrintMode(self) -> int"""
3906 return _windows_.PrintData_GetPrintMode(*args, **kwargs)
3907
d55e5bfc
RD
3908 def SetNoCopies(*args, **kwargs):
3909 """SetNoCopies(self, int v)"""
3910 return _windows_.PrintData_SetNoCopies(*args, **kwargs)
3911
3912 def SetCollate(*args, **kwargs):
3913 """SetCollate(self, bool flag)"""
3914 return _windows_.PrintData_SetCollate(*args, **kwargs)
3915
3916 def SetOrientation(*args, **kwargs):
3917 """SetOrientation(self, int orient)"""
3918 return _windows_.PrintData_SetOrientation(*args, **kwargs)
3919
3920 def SetPrinterName(*args, **kwargs):
3921 """SetPrinterName(self, String name)"""
3922 return _windows_.PrintData_SetPrinterName(*args, **kwargs)
3923
3924 def SetColour(*args, **kwargs):
3925 """SetColour(self, bool colour)"""
3926 return _windows_.PrintData_SetColour(*args, **kwargs)
3927
3928 def SetDuplex(*args, **kwargs):
3929 """SetDuplex(self, int duplex)"""
3930 return _windows_.PrintData_SetDuplex(*args, **kwargs)
3931
3932 def SetPaperId(*args, **kwargs):
3933 """SetPaperId(self, int sizeId)"""
3934 return _windows_.PrintData_SetPaperId(*args, **kwargs)
3935
3936 def SetPaperSize(*args, **kwargs):
3937 """SetPaperSize(self, Size sz)"""
3938 return _windows_.PrintData_SetPaperSize(*args, **kwargs)
3939
3940 def SetQuality(*args, **kwargs):
3941 """SetQuality(self, int quality)"""
3942 return _windows_.PrintData_SetQuality(*args, **kwargs)
3943
b411df4a
RD
3944 def SetBin(*args, **kwargs):
3945 """SetBin(self, int bin)"""
3946 return _windows_.PrintData_SetBin(*args, **kwargs)
3947
070c48b4
RD
3948 def SetPrintMode(*args, **kwargs):
3949 """SetPrintMode(self, int printMode)"""
3950 return _windows_.PrintData_SetPrintMode(*args, **kwargs)
3951
3952 def GetFilename(*args, **kwargs):
3953 """GetFilename(self) -> String"""
3954 return _windows_.PrintData_GetFilename(*args, **kwargs)
3955
3956 def SetFilename(*args, **kwargs):
3957 """SetFilename(self, String filename)"""
3958 return _windows_.PrintData_SetFilename(*args, **kwargs)
3959
3960 def __nonzero__(self): return self.Ok()
d55e5bfc
RD
3961 def GetPrinterCommand(*args, **kwargs):
3962 """GetPrinterCommand(self) -> String"""
3963 return _windows_.PrintData_GetPrinterCommand(*args, **kwargs)
3964
3965 def GetPrinterOptions(*args, **kwargs):
3966 """GetPrinterOptions(self) -> String"""
3967 return _windows_.PrintData_GetPrinterOptions(*args, **kwargs)
3968
3969 def GetPreviewCommand(*args, **kwargs):
3970 """GetPreviewCommand(self) -> String"""
3971 return _windows_.PrintData_GetPreviewCommand(*args, **kwargs)
3972
d55e5bfc
RD
3973 def GetFontMetricPath(*args, **kwargs):
3974 """GetFontMetricPath(self) -> String"""
3975 return _windows_.PrintData_GetFontMetricPath(*args, **kwargs)
3976
3977 def GetPrinterScaleX(*args, **kwargs):
3978 """GetPrinterScaleX(self) -> double"""
3979 return _windows_.PrintData_GetPrinterScaleX(*args, **kwargs)
3980
3981 def GetPrinterScaleY(*args, **kwargs):
3982 """GetPrinterScaleY(self) -> double"""
3983 return _windows_.PrintData_GetPrinterScaleY(*args, **kwargs)
3984
3985 def GetPrinterTranslateX(*args, **kwargs):
3986 """GetPrinterTranslateX(self) -> long"""
3987 return _windows_.PrintData_GetPrinterTranslateX(*args, **kwargs)
3988
3989 def GetPrinterTranslateY(*args, **kwargs):
3990 """GetPrinterTranslateY(self) -> long"""
3991 return _windows_.PrintData_GetPrinterTranslateY(*args, **kwargs)
3992
d55e5bfc
RD
3993 def SetPrinterCommand(*args, **kwargs):
3994 """SetPrinterCommand(self, String command)"""
3995 return _windows_.PrintData_SetPrinterCommand(*args, **kwargs)
3996
3997 def SetPrinterOptions(*args, **kwargs):
3998 """SetPrinterOptions(self, String options)"""
3999 return _windows_.PrintData_SetPrinterOptions(*args, **kwargs)
4000
4001 def SetPreviewCommand(*args, **kwargs):
4002 """SetPreviewCommand(self, String command)"""
4003 return _windows_.PrintData_SetPreviewCommand(*args, **kwargs)
4004
d55e5bfc
RD
4005 def SetFontMetricPath(*args, **kwargs):
4006 """SetFontMetricPath(self, String path)"""
4007 return _windows_.PrintData_SetFontMetricPath(*args, **kwargs)
4008
4009 def SetPrinterScaleX(*args, **kwargs):
4010 """SetPrinterScaleX(self, double x)"""
4011 return _windows_.PrintData_SetPrinterScaleX(*args, **kwargs)
4012
4013 def SetPrinterScaleY(*args, **kwargs):
4014 """SetPrinterScaleY(self, double y)"""
4015 return _windows_.PrintData_SetPrinterScaleY(*args, **kwargs)
4016
4017 def SetPrinterScaling(*args, **kwargs):
4018 """SetPrinterScaling(self, double x, double y)"""
4019 return _windows_.PrintData_SetPrinterScaling(*args, **kwargs)
4020
4021 def SetPrinterTranslateX(*args, **kwargs):
4022 """SetPrinterTranslateX(self, long x)"""
4023 return _windows_.PrintData_SetPrinterTranslateX(*args, **kwargs)
4024
4025 def SetPrinterTranslateY(*args, **kwargs):
4026 """SetPrinterTranslateY(self, long y)"""
4027 return _windows_.PrintData_SetPrinterTranslateY(*args, **kwargs)
4028
4029 def SetPrinterTranslation(*args, **kwargs):
4030 """SetPrinterTranslation(self, long x, long y)"""
4031 return _windows_.PrintData_SetPrinterTranslation(*args, **kwargs)
4032
d55e5bfc
RD
4033
4034class PrintDataPtr(PrintData):
4035 def __init__(self, this):
4036 self.this = this
4037 if not hasattr(self,"thisown"): self.thisown = 0
4038 self.__class__ = PrintData
4039_windows_.PrintData_swigregister(PrintDataPtr)
4040PrintoutTitleStr = cvar.PrintoutTitleStr
4041PreviewCanvasNameStr = cvar.PreviewCanvasNameStr
4042
4043class PageSetupDialogData(_core.Object):
36ed4f51 4044 """Proxy of C++ PageSetupDialogData class"""
d55e5bfc
RD
4045 def __repr__(self):
4046 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
09c21d3b
RD
4047 def __init__(self, *args):
4048 """
4049 __init__(self) -> PageSetupDialogData
4050 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
4051 """
4052 newobj = _windows_.new_PageSetupDialogData(*args)
d55e5bfc
RD
4053 self.this = newobj.this
4054 self.thisown = 1
4055 del newobj.thisown
4056 def __del__(self, destroy=_windows_.delete_PageSetupDialogData):
4057 """__del__(self)"""
4058 try:
4059 if self.thisown: destroy(self)
4060 except: pass
4061
4062 def EnableHelp(*args, **kwargs):
4063 """EnableHelp(self, bool flag)"""
4064 return _windows_.PageSetupDialogData_EnableHelp(*args, **kwargs)
4065
4066 def EnableMargins(*args, **kwargs):
4067 """EnableMargins(self, bool flag)"""
4068 return _windows_.PageSetupDialogData_EnableMargins(*args, **kwargs)
4069
4070 def EnableOrientation(*args, **kwargs):
4071 """EnableOrientation(self, bool flag)"""
4072 return _windows_.PageSetupDialogData_EnableOrientation(*args, **kwargs)
4073
4074 def EnablePaper(*args, **kwargs):
4075 """EnablePaper(self, bool flag)"""
4076 return _windows_.PageSetupDialogData_EnablePaper(*args, **kwargs)
4077
4078 def EnablePrinter(*args, **kwargs):
4079 """EnablePrinter(self, bool flag)"""
4080 return _windows_.PageSetupDialogData_EnablePrinter(*args, **kwargs)
4081
4082 def GetDefaultMinMargins(*args, **kwargs):
4083 """GetDefaultMinMargins(self) -> bool"""
4084 return _windows_.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs)
4085
4086 def GetEnableMargins(*args, **kwargs):
4087 """GetEnableMargins(self) -> bool"""
4088 return _windows_.PageSetupDialogData_GetEnableMargins(*args, **kwargs)
4089
4090 def GetEnableOrientation(*args, **kwargs):
4091 """GetEnableOrientation(self) -> bool"""
4092 return _windows_.PageSetupDialogData_GetEnableOrientation(*args, **kwargs)
4093
4094 def GetEnablePaper(*args, **kwargs):
4095 """GetEnablePaper(self) -> bool"""
4096 return _windows_.PageSetupDialogData_GetEnablePaper(*args, **kwargs)
4097
4098 def GetEnablePrinter(*args, **kwargs):
4099 """GetEnablePrinter(self) -> bool"""
4100 return _windows_.PageSetupDialogData_GetEnablePrinter(*args, **kwargs)
4101
4102 def GetEnableHelp(*args, **kwargs):
4103 """GetEnableHelp(self) -> bool"""
4104 return _windows_.PageSetupDialogData_GetEnableHelp(*args, **kwargs)
4105
4106 def GetDefaultInfo(*args, **kwargs):
4107 """GetDefaultInfo(self) -> bool"""
4108 return _windows_.PageSetupDialogData_GetDefaultInfo(*args, **kwargs)
4109
4110 def GetMarginTopLeft(*args, **kwargs):
4111 """GetMarginTopLeft(self) -> Point"""
4112 return _windows_.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs)
4113
4114 def GetMarginBottomRight(*args, **kwargs):
4115 """GetMarginBottomRight(self) -> Point"""
4116 return _windows_.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs)
4117
4118 def GetMinMarginTopLeft(*args, **kwargs):
4119 """GetMinMarginTopLeft(self) -> Point"""
4120 return _windows_.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs)
4121
4122 def GetMinMarginBottomRight(*args, **kwargs):
4123 """GetMinMarginBottomRight(self) -> Point"""
4124 return _windows_.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs)
4125
4126 def GetPaperId(*args, **kwargs):
4127 """GetPaperId(self) -> int"""
4128 return _windows_.PageSetupDialogData_GetPaperId(*args, **kwargs)
4129
4130 def GetPaperSize(*args, **kwargs):
4131 """GetPaperSize(self) -> Size"""
4132 return _windows_.PageSetupDialogData_GetPaperSize(*args, **kwargs)
4133
4134 def GetPrintData(*args, **kwargs):
4135 """GetPrintData(self) -> PrintData"""
4136 return _windows_.PageSetupDialogData_GetPrintData(*args, **kwargs)
4137
4138 def Ok(*args, **kwargs):
4139 """Ok(self) -> bool"""
4140 return _windows_.PageSetupDialogData_Ok(*args, **kwargs)
4141
4142 def SetDefaultInfo(*args, **kwargs):
4143 """SetDefaultInfo(self, bool flag)"""
4144 return _windows_.PageSetupDialogData_SetDefaultInfo(*args, **kwargs)
4145
4146 def SetDefaultMinMargins(*args, **kwargs):
4147 """SetDefaultMinMargins(self, bool flag)"""
4148 return _windows_.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs)
4149
4150 def SetMarginTopLeft(*args, **kwargs):
4151 """SetMarginTopLeft(self, Point pt)"""
4152 return _windows_.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs)
4153
4154 def SetMarginBottomRight(*args, **kwargs):
4155 """SetMarginBottomRight(self, Point pt)"""
4156 return _windows_.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs)
4157
4158 def SetMinMarginTopLeft(*args, **kwargs):
4159 """SetMinMarginTopLeft(self, Point pt)"""
4160 return _windows_.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs)
4161
4162 def SetMinMarginBottomRight(*args, **kwargs):
4163 """SetMinMarginBottomRight(self, Point pt)"""
4164 return _windows_.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs)
4165
4166 def SetPaperId(*args, **kwargs):
4167 """SetPaperId(self, int id)"""
4168 return _windows_.PageSetupDialogData_SetPaperId(*args, **kwargs)
4169
4170 def SetPaperSize(*args, **kwargs):
4171 """SetPaperSize(self, Size size)"""
4172 return _windows_.PageSetupDialogData_SetPaperSize(*args, **kwargs)
4173
4174 def SetPrintData(*args, **kwargs):
4175 """SetPrintData(self, PrintData printData)"""
4176 return _windows_.PageSetupDialogData_SetPrintData(*args, **kwargs)
4177
4178 def __nonzero__(self): return self.Ok()
4179
4180class PageSetupDialogDataPtr(PageSetupDialogData):
4181 def __init__(self, this):
4182 self.this = this
4183 if not hasattr(self,"thisown"): self.thisown = 0
4184 self.__class__ = PageSetupDialogData
4185_windows_.PageSetupDialogData_swigregister(PageSetupDialogDataPtr)
4186
6e0de3df 4187class PageSetupDialog(_core.Object):
36ed4f51 4188 """Proxy of C++ PageSetupDialog class"""
d55e5bfc
RD
4189 def __repr__(self):
4190 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4191 def __init__(self, *args, **kwargs):
4192 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4193 newobj = _windows_.new_PageSetupDialog(*args, **kwargs)
4194 self.this = newobj.this
4195 self.thisown = 1
4196 del newobj.thisown
d55e5bfc
RD
4197 def GetPageSetupData(*args, **kwargs):
4198 """GetPageSetupData(self) -> PageSetupDialogData"""
4199 return _windows_.PageSetupDialog_GetPageSetupData(*args, **kwargs)
4200
6e0de3df
RD
4201 def GetPageSetupDialogData(*args, **kwargs):
4202 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4203 return _windows_.PageSetupDialog_GetPageSetupDialogData(*args, **kwargs)
4204
d55e5bfc
RD
4205 def ShowModal(*args, **kwargs):
4206 """ShowModal(self) -> int"""
4207 return _windows_.PageSetupDialog_ShowModal(*args, **kwargs)
4208
4209
4210class PageSetupDialogPtr(PageSetupDialog):
4211 def __init__(self, this):
4212 self.this = this
4213 if not hasattr(self,"thisown"): self.thisown = 0
4214 self.__class__ = PageSetupDialog
4215_windows_.PageSetupDialog_swigregister(PageSetupDialogPtr)
4216
4217class PrintDialogData(_core.Object):
36ed4f51 4218 """Proxy of C++ PrintDialogData class"""
d55e5bfc
RD
4219 def __repr__(self):
4220 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4221 def __init__(self, *args):
4222 """
4223 __init__(self) -> PrintDialogData
4224 __init__(self, PrintData printData) -> PrintDialogData
4225 """
4226 newobj = _windows_.new_PrintDialogData(*args)
4227 self.this = newobj.this
4228 self.thisown = 1
4229 del newobj.thisown
4230 def __del__(self, destroy=_windows_.delete_PrintDialogData):
4231 """__del__(self)"""
4232 try:
4233 if self.thisown: destroy(self)
4234 except: pass
4235
4236 def GetFromPage(*args, **kwargs):
4237 """GetFromPage(self) -> int"""
4238 return _windows_.PrintDialogData_GetFromPage(*args, **kwargs)
4239
4240 def GetToPage(*args, **kwargs):
4241 """GetToPage(self) -> int"""
4242 return _windows_.PrintDialogData_GetToPage(*args, **kwargs)
4243
4244 def GetMinPage(*args, **kwargs):
4245 """GetMinPage(self) -> int"""
4246 return _windows_.PrintDialogData_GetMinPage(*args, **kwargs)
4247
4248 def GetMaxPage(*args, **kwargs):
4249 """GetMaxPage(self) -> int"""
4250 return _windows_.PrintDialogData_GetMaxPage(*args, **kwargs)
4251
4252 def GetNoCopies(*args, **kwargs):
4253 """GetNoCopies(self) -> int"""
4254 return _windows_.PrintDialogData_GetNoCopies(*args, **kwargs)
4255
4256 def GetAllPages(*args, **kwargs):
4257 """GetAllPages(self) -> bool"""
4258 return _windows_.PrintDialogData_GetAllPages(*args, **kwargs)
4259
4260 def GetSelection(*args, **kwargs):
4261 """GetSelection(self) -> bool"""
4262 return _windows_.PrintDialogData_GetSelection(*args, **kwargs)
4263
4264 def GetCollate(*args, **kwargs):
4265 """GetCollate(self) -> bool"""
4266 return _windows_.PrintDialogData_GetCollate(*args, **kwargs)
4267
4268 def GetPrintToFile(*args, **kwargs):
4269 """GetPrintToFile(self) -> bool"""
4270 return _windows_.PrintDialogData_GetPrintToFile(*args, **kwargs)
4271
4272 def GetSetupDialog(*args, **kwargs):
4273 """GetSetupDialog(self) -> bool"""
4274 return _windows_.PrintDialogData_GetSetupDialog(*args, **kwargs)
4275
070c48b4
RD
4276 def SetSetupDialog(*args, **kwargs):
4277 """SetSetupDialog(self, bool flag)"""
4278 return _windows_.PrintDialogData_SetSetupDialog(*args, **kwargs)
4279
d55e5bfc
RD
4280 def SetFromPage(*args, **kwargs):
4281 """SetFromPage(self, int v)"""
4282 return _windows_.PrintDialogData_SetFromPage(*args, **kwargs)
4283
4284 def SetToPage(*args, **kwargs):
4285 """SetToPage(self, int v)"""
4286 return _windows_.PrintDialogData_SetToPage(*args, **kwargs)
4287
4288 def SetMinPage(*args, **kwargs):
4289 """SetMinPage(self, int v)"""
4290 return _windows_.PrintDialogData_SetMinPage(*args, **kwargs)
4291
4292 def SetMaxPage(*args, **kwargs):
4293 """SetMaxPage(self, int v)"""
4294 return _windows_.PrintDialogData_SetMaxPage(*args, **kwargs)
4295
4296 def SetNoCopies(*args, **kwargs):
4297 """SetNoCopies(self, int v)"""
4298 return _windows_.PrintDialogData_SetNoCopies(*args, **kwargs)
4299
4300 def SetAllPages(*args, **kwargs):
4301 """SetAllPages(self, bool flag)"""
4302 return _windows_.PrintDialogData_SetAllPages(*args, **kwargs)
4303
4304 def SetSelection(*args, **kwargs):
4305 """SetSelection(self, bool flag)"""
4306 return _windows_.PrintDialogData_SetSelection(*args, **kwargs)
4307
4308 def SetCollate(*args, **kwargs):
4309 """SetCollate(self, bool flag)"""
4310 return _windows_.PrintDialogData_SetCollate(*args, **kwargs)
4311
4312 def SetPrintToFile(*args, **kwargs):
4313 """SetPrintToFile(self, bool flag)"""
4314 return _windows_.PrintDialogData_SetPrintToFile(*args, **kwargs)
4315
d55e5bfc
RD
4316 def EnablePrintToFile(*args, **kwargs):
4317 """EnablePrintToFile(self, bool flag)"""
4318 return _windows_.PrintDialogData_EnablePrintToFile(*args, **kwargs)
4319
4320 def EnableSelection(*args, **kwargs):
4321 """EnableSelection(self, bool flag)"""
4322 return _windows_.PrintDialogData_EnableSelection(*args, **kwargs)
4323
4324 def EnablePageNumbers(*args, **kwargs):
4325 """EnablePageNumbers(self, bool flag)"""
4326 return _windows_.PrintDialogData_EnablePageNumbers(*args, **kwargs)
4327
4328 def EnableHelp(*args, **kwargs):
4329 """EnableHelp(self, bool flag)"""
4330 return _windows_.PrintDialogData_EnableHelp(*args, **kwargs)
4331
4332 def GetEnablePrintToFile(*args, **kwargs):
4333 """GetEnablePrintToFile(self) -> bool"""
4334 return _windows_.PrintDialogData_GetEnablePrintToFile(*args, **kwargs)
4335
4336 def GetEnableSelection(*args, **kwargs):
4337 """GetEnableSelection(self) -> bool"""
4338 return _windows_.PrintDialogData_GetEnableSelection(*args, **kwargs)
4339
4340 def GetEnablePageNumbers(*args, **kwargs):
4341 """GetEnablePageNumbers(self) -> bool"""
4342 return _windows_.PrintDialogData_GetEnablePageNumbers(*args, **kwargs)
4343
4344 def GetEnableHelp(*args, **kwargs):
4345 """GetEnableHelp(self) -> bool"""
4346 return _windows_.PrintDialogData_GetEnableHelp(*args, **kwargs)
4347
4348 def Ok(*args, **kwargs):
4349 """Ok(self) -> bool"""
4350 return _windows_.PrintDialogData_Ok(*args, **kwargs)
4351
4352 def GetPrintData(*args, **kwargs):
4353 """GetPrintData(self) -> PrintData"""
4354 return _windows_.PrintDialogData_GetPrintData(*args, **kwargs)
4355
4356 def SetPrintData(*args, **kwargs):
4357 """SetPrintData(self, PrintData printData)"""
4358 return _windows_.PrintDialogData_SetPrintData(*args, **kwargs)
4359
4360 def __nonzero__(self): return self.Ok()
4361
4362class PrintDialogDataPtr(PrintDialogData):
4363 def __init__(self, this):
4364 self.this = this
4365 if not hasattr(self,"thisown"): self.thisown = 0
4366 self.__class__ = PrintDialogData
4367_windows_.PrintDialogData_swigregister(PrintDialogDataPtr)
4368
070c48b4 4369class PrintDialog(_core.Object):
36ed4f51 4370 """Proxy of C++ PrintDialog class"""
d55e5bfc
RD
4371 def __repr__(self):
4372 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4373 def __init__(self, *args, **kwargs):
4374 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4375 newobj = _windows_.new_PrintDialog(*args, **kwargs)
4376 self.this = newobj.this
4377 self.thisown = 1
4378 del newobj.thisown
070c48b4
RD
4379 def ShowModal(*args, **kwargs):
4380 """ShowModal(self) -> int"""
4381 return _windows_.PrintDialog_ShowModal(*args, **kwargs)
d55e5bfc
RD
4382
4383 def GetPrintDialogData(*args, **kwargs):
4384 """GetPrintDialogData(self) -> PrintDialogData"""
4385 return _windows_.PrintDialog_GetPrintDialogData(*args, **kwargs)
4386
070c48b4
RD
4387 def GetPrintData(*args, **kwargs):
4388 """GetPrintData(self) -> PrintData"""
4389 return _windows_.PrintDialog_GetPrintData(*args, **kwargs)
4390
d55e5bfc
RD
4391 def GetPrintDC(*args, **kwargs):
4392 """GetPrintDC(self) -> DC"""
4393 return _windows_.PrintDialog_GetPrintDC(*args, **kwargs)
4394
d55e5bfc
RD
4395
4396class PrintDialogPtr(PrintDialog):
4397 def __init__(self, this):
4398 self.this = this
4399 if not hasattr(self,"thisown"): self.thisown = 0
4400 self.__class__ = PrintDialog
4401_windows_.PrintDialog_swigregister(PrintDialogPtr)
4402
4403PRINTER_NO_ERROR = _windows_.PRINTER_NO_ERROR
4404PRINTER_CANCELLED = _windows_.PRINTER_CANCELLED
4405PRINTER_ERROR = _windows_.PRINTER_ERROR
4406class Printer(_core.Object):
36ed4f51 4407 """Proxy of C++ Printer class"""
d55e5bfc
RD
4408 def __repr__(self):
4409 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4410 def __init__(self, *args, **kwargs):
4411 """__init__(self, PrintDialogData data=None) -> Printer"""
4412 newobj = _windows_.new_Printer(*args, **kwargs)
4413 self.this = newobj.this
4414 self.thisown = 1
4415 del newobj.thisown
4416 def __del__(self, destroy=_windows_.delete_Printer):
4417 """__del__(self)"""
4418 try:
4419 if self.thisown: destroy(self)
4420 except: pass
4421
4422 def CreateAbortWindow(*args, **kwargs):
070c48b4 4423 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
d55e5bfc
RD
4424 return _windows_.Printer_CreateAbortWindow(*args, **kwargs)
4425
070c48b4
RD
4426 def ReportError(*args, **kwargs):
4427 """ReportError(self, Window parent, Printout printout, String message)"""
4428 return _windows_.Printer_ReportError(*args, **kwargs)
4429
4430 def Setup(*args, **kwargs):
4431 """Setup(self, Window parent) -> bool"""
4432 return _windows_.Printer_Setup(*args, **kwargs)
d55e5bfc
RD
4433
4434 def Print(*args, **kwargs):
070c48b4 4435 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
d55e5bfc
RD
4436 return _windows_.Printer_Print(*args, **kwargs)
4437
4438 def PrintDialog(*args, **kwargs):
4439 """PrintDialog(self, Window parent) -> DC"""
4440 return _windows_.Printer_PrintDialog(*args, **kwargs)
4441
070c48b4
RD
4442 def GetPrintDialogData(*args, **kwargs):
4443 """GetPrintDialogData(self) -> PrintDialogData"""
4444 return _windows_.Printer_GetPrintDialogData(*args, **kwargs)
d55e5bfc
RD
4445
4446 def GetAbort(*args, **kwargs):
4447 """GetAbort(self) -> bool"""
4448 return _windows_.Printer_GetAbort(*args, **kwargs)
4449
4450 def GetLastError(*args, **kwargs):
d6c14a4c 4451 """GetLastError() -> int"""
d55e5bfc
RD
4452 return _windows_.Printer_GetLastError(*args, **kwargs)
4453
4454 GetLastError = staticmethod(GetLastError)
4455
4456class PrinterPtr(Printer):
4457 def __init__(self, this):
4458 self.this = this
4459 if not hasattr(self,"thisown"): self.thisown = 0
4460 self.__class__ = Printer
4461_windows_.Printer_swigregister(PrinterPtr)
4462
4463def Printer_GetLastError(*args, **kwargs):
4464 """Printer_GetLastError() -> int"""
4465 return _windows_.Printer_GetLastError(*args, **kwargs)
4466
4467class Printout(_core.Object):
36ed4f51 4468 """Proxy of C++ Printout class"""
d55e5bfc
RD
4469 def __repr__(self):
4470 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4471 def __init__(self, *args, **kwargs):
4472 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4473 newobj = _windows_.new_Printout(*args, **kwargs)
4474 self.this = newobj.this
4475 self.thisown = 1
4476 del newobj.thisown
4477 self._setCallbackInfo(self, Printout)
4478
4479 def _setCallbackInfo(*args, **kwargs):
4480 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4481 return _windows_.Printout__setCallbackInfo(*args, **kwargs)
4482
4483 def GetTitle(*args, **kwargs):
4484 """GetTitle(self) -> String"""
4485 return _windows_.Printout_GetTitle(*args, **kwargs)
4486
4487 def GetDC(*args, **kwargs):
4488 """GetDC(self) -> DC"""
4489 return _windows_.Printout_GetDC(*args, **kwargs)
4490
4491 def SetDC(*args, **kwargs):
4492 """SetDC(self, DC dc)"""
4493 return _windows_.Printout_SetDC(*args, **kwargs)
4494
4495 def SetPageSizePixels(*args, **kwargs):
4496 """SetPageSizePixels(self, int w, int h)"""
4497 return _windows_.Printout_SetPageSizePixels(*args, **kwargs)
4498
4499 def GetPageSizePixels(*args, **kwargs):
4500 """GetPageSizePixels() -> (w, h)"""
4501 return _windows_.Printout_GetPageSizePixels(*args, **kwargs)
4502
4503 def SetPageSizeMM(*args, **kwargs):
4504 """SetPageSizeMM(self, int w, int h)"""
4505 return _windows_.Printout_SetPageSizeMM(*args, **kwargs)
4506
4507 def GetPageSizeMM(*args, **kwargs):
4508 """GetPageSizeMM() -> (w, h)"""
4509 return _windows_.Printout_GetPageSizeMM(*args, **kwargs)
4510
4511 def SetPPIScreen(*args, **kwargs):
4512 """SetPPIScreen(self, int x, int y)"""
4513 return _windows_.Printout_SetPPIScreen(*args, **kwargs)
4514
4515 def GetPPIScreen(*args, **kwargs):
4516 """GetPPIScreen() -> (x,y)"""
4517 return _windows_.Printout_GetPPIScreen(*args, **kwargs)
4518
4519 def SetPPIPrinter(*args, **kwargs):
4520 """SetPPIPrinter(self, int x, int y)"""
4521 return _windows_.Printout_SetPPIPrinter(*args, **kwargs)
4522
4523 def GetPPIPrinter(*args, **kwargs):
4524 """GetPPIPrinter() -> (x,y)"""
4525 return _windows_.Printout_GetPPIPrinter(*args, **kwargs)
4526
4527 def IsPreview(*args, **kwargs):
4528 """IsPreview(self) -> bool"""
4529 return _windows_.Printout_IsPreview(*args, **kwargs)
4530
4531 def SetIsPreview(*args, **kwargs):
4532 """SetIsPreview(self, bool p)"""
4533 return _windows_.Printout_SetIsPreview(*args, **kwargs)
4534
4535 def base_OnBeginDocument(*args, **kwargs):
4536 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4537 return _windows_.Printout_base_OnBeginDocument(*args, **kwargs)
4538
4539 def base_OnEndDocument(*args, **kwargs):
4540 """base_OnEndDocument(self)"""
4541 return _windows_.Printout_base_OnEndDocument(*args, **kwargs)
4542
4543 def base_OnBeginPrinting(*args, **kwargs):
4544 """base_OnBeginPrinting(self)"""
4545 return _windows_.Printout_base_OnBeginPrinting(*args, **kwargs)
4546
4547 def base_OnEndPrinting(*args, **kwargs):
4548 """base_OnEndPrinting(self)"""
4549 return _windows_.Printout_base_OnEndPrinting(*args, **kwargs)
4550
4551 def base_OnPreparePrinting(*args, **kwargs):
4552 """base_OnPreparePrinting(self)"""
4553 return _windows_.Printout_base_OnPreparePrinting(*args, **kwargs)
4554
4555 def base_HasPage(*args, **kwargs):
4556 """base_HasPage(self, int page) -> bool"""
4557 return _windows_.Printout_base_HasPage(*args, **kwargs)
4558
4559 def base_GetPageInfo(*args, **kwargs):
4560 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4561 return _windows_.Printout_base_GetPageInfo(*args, **kwargs)
4562
4563
4564class PrintoutPtr(Printout):
4565 def __init__(self, this):
4566 self.this = this
4567 if not hasattr(self,"thisown"): self.thisown = 0
4568 self.__class__ = Printout
4569_windows_.Printout_swigregister(PrintoutPtr)
4570
4571class PreviewCanvas(ScrolledWindow):
36ed4f51 4572 """Proxy of C++ PreviewCanvas class"""
d55e5bfc
RD
4573 def __repr__(self):
4574 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4575 def __init__(self, *args, **kwargs):
4576 """
4577 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4578 Size size=DefaultSize, long style=0,
4579 String name=PreviewCanvasNameStr) -> PreviewCanvas
4580 """
4581 newobj = _windows_.new_PreviewCanvas(*args, **kwargs)
4582 self.this = newobj.this
4583 self.thisown = 1
4584 del newobj.thisown
4585 self._setOORInfo(self)
4586
4587
4588class PreviewCanvasPtr(PreviewCanvas):
4589 def __init__(self, this):
4590 self.this = this
4591 if not hasattr(self,"thisown"): self.thisown = 0
4592 self.__class__ = PreviewCanvas
4593_windows_.PreviewCanvas_swigregister(PreviewCanvasPtr)
4594
4595class PreviewFrame(Frame):
36ed4f51 4596 """Proxy of C++ PreviewFrame class"""
d55e5bfc
RD
4597 def __repr__(self):
4598 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4599 def __init__(self, *args, **kwargs):
4600 """
4601 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4602 Size size=DefaultSize,
4603 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4604 """
4605 newobj = _windows_.new_PreviewFrame(*args, **kwargs)
4606 self.this = newobj.this
4607 self.thisown = 1
4608 del newobj.thisown
4609 self._setOORInfo(self)
4610
4611 def Initialize(*args, **kwargs):
4612 """Initialize(self)"""
4613 return _windows_.PreviewFrame_Initialize(*args, **kwargs)
4614
4615 def CreateControlBar(*args, **kwargs):
4616 """CreateControlBar(self)"""
4617 return _windows_.PreviewFrame_CreateControlBar(*args, **kwargs)
4618
4619 def CreateCanvas(*args, **kwargs):
4620 """CreateCanvas(self)"""
4621 return _windows_.PreviewFrame_CreateCanvas(*args, **kwargs)
4622
4623 def GetControlBar(*args, **kwargs):
4624 """GetControlBar(self) -> PreviewControlBar"""
4625 return _windows_.PreviewFrame_GetControlBar(*args, **kwargs)
4626
4627
4628class PreviewFramePtr(PreviewFrame):
4629 def __init__(self, this):
4630 self.this = this
4631 if not hasattr(self,"thisown"): self.thisown = 0
4632 self.__class__ = PreviewFrame
4633_windows_.PreviewFrame_swigregister(PreviewFramePtr)
4634
4635PREVIEW_PRINT = _windows_.PREVIEW_PRINT
4636PREVIEW_PREVIOUS = _windows_.PREVIEW_PREVIOUS
4637PREVIEW_NEXT = _windows_.PREVIEW_NEXT
4638PREVIEW_ZOOM = _windows_.PREVIEW_ZOOM
4639PREVIEW_FIRST = _windows_.PREVIEW_FIRST
4640PREVIEW_LAST = _windows_.PREVIEW_LAST
4641PREVIEW_GOTO = _windows_.PREVIEW_GOTO
4642PREVIEW_DEFAULT = _windows_.PREVIEW_DEFAULT
4643ID_PREVIEW_CLOSE = _windows_.ID_PREVIEW_CLOSE
4644ID_PREVIEW_NEXT = _windows_.ID_PREVIEW_NEXT
4645ID_PREVIEW_PREVIOUS = _windows_.ID_PREVIEW_PREVIOUS
4646ID_PREVIEW_PRINT = _windows_.ID_PREVIEW_PRINT
4647ID_PREVIEW_ZOOM = _windows_.ID_PREVIEW_ZOOM
4648ID_PREVIEW_FIRST = _windows_.ID_PREVIEW_FIRST
4649ID_PREVIEW_LAST = _windows_.ID_PREVIEW_LAST
4650ID_PREVIEW_GOTO = _windows_.ID_PREVIEW_GOTO
4651class PreviewControlBar(Panel):
36ed4f51 4652 """Proxy of C++ PreviewControlBar class"""
d55e5bfc
RD
4653 def __repr__(self):
4654 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4655 def __init__(self, *args, **kwargs):
4656 """
4657 __init__(self, PrintPreview preview, long buttons, Window parent,
4658 Point pos=DefaultPosition, Size size=DefaultSize,
4659 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4660 """
4661 newobj = _windows_.new_PreviewControlBar(*args, **kwargs)
4662 self.this = newobj.this
4663 self.thisown = 1
4664 del newobj.thisown
4665 self._setOORInfo(self)
4666
4667 def GetZoomControl(*args, **kwargs):
4668 """GetZoomControl(self) -> int"""
4669 return _windows_.PreviewControlBar_GetZoomControl(*args, **kwargs)
4670
4671 def SetZoomControl(*args, **kwargs):
4672 """SetZoomControl(self, int zoom)"""
4673 return _windows_.PreviewControlBar_SetZoomControl(*args, **kwargs)
4674
4675 def GetPrintPreview(*args, **kwargs):
4676 """GetPrintPreview(self) -> PrintPreview"""
4677 return _windows_.PreviewControlBar_GetPrintPreview(*args, **kwargs)
4678
4679 def OnNext(*args, **kwargs):
4680 """OnNext(self)"""
4681 return _windows_.PreviewControlBar_OnNext(*args, **kwargs)
4682
4683 def OnPrevious(*args, **kwargs):
4684 """OnPrevious(self)"""
4685 return _windows_.PreviewControlBar_OnPrevious(*args, **kwargs)
4686
4687 def OnFirst(*args, **kwargs):
4688 """OnFirst(self)"""
4689 return _windows_.PreviewControlBar_OnFirst(*args, **kwargs)
4690
4691 def OnLast(*args, **kwargs):
4692 """OnLast(self)"""
4693 return _windows_.PreviewControlBar_OnLast(*args, **kwargs)
4694
4695 def OnGoto(*args, **kwargs):
4696 """OnGoto(self)"""
4697 return _windows_.PreviewControlBar_OnGoto(*args, **kwargs)
4698
4699
4700class PreviewControlBarPtr(PreviewControlBar):
4701 def __init__(self, this):
4702 self.this = this
4703 if not hasattr(self,"thisown"): self.thisown = 0
4704 self.__class__ = PreviewControlBar
4705_windows_.PreviewControlBar_swigregister(PreviewControlBarPtr)
4706
4707class PrintPreview(_core.Object):
36ed4f51 4708 """Proxy of C++ PrintPreview class"""
d55e5bfc
RD
4709 def __repr__(self):
4710 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4711 def __init__(self, *args):
4712 """
4713 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4714 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4715 """
4716 newobj = _windows_.new_PrintPreview(*args)
4717 self.this = newobj.this
4718 self.thisown = 1
4719 del newobj.thisown
4720 def SetCurrentPage(*args, **kwargs):
4721 """SetCurrentPage(self, int pageNum) -> bool"""
4722 return _windows_.PrintPreview_SetCurrentPage(*args, **kwargs)
4723
4724 def GetCurrentPage(*args, **kwargs):
4725 """GetCurrentPage(self) -> int"""
4726 return _windows_.PrintPreview_GetCurrentPage(*args, **kwargs)
4727
4728 def SetPrintout(*args, **kwargs):
4729 """SetPrintout(self, Printout printout)"""
4730 return _windows_.PrintPreview_SetPrintout(*args, **kwargs)
4731
4732 def GetPrintout(*args, **kwargs):
4733 """GetPrintout(self) -> Printout"""
4734 return _windows_.PrintPreview_GetPrintout(*args, **kwargs)
4735
4736 def GetPrintoutForPrinting(*args, **kwargs):
4737 """GetPrintoutForPrinting(self) -> Printout"""
4738 return _windows_.PrintPreview_GetPrintoutForPrinting(*args, **kwargs)
4739
4740 def SetFrame(*args, **kwargs):
4741 """SetFrame(self, Frame frame)"""
4742 return _windows_.PrintPreview_SetFrame(*args, **kwargs)
4743
4744 def SetCanvas(*args, **kwargs):
4745 """SetCanvas(self, PreviewCanvas canvas)"""
4746 return _windows_.PrintPreview_SetCanvas(*args, **kwargs)
4747
4748 def GetFrame(*args, **kwargs):
4749 """GetFrame(self) -> Frame"""
4750 return _windows_.PrintPreview_GetFrame(*args, **kwargs)
4751
4752 def GetCanvas(*args, **kwargs):
4753 """GetCanvas(self) -> PreviewCanvas"""
4754 return _windows_.PrintPreview_GetCanvas(*args, **kwargs)
4755
4756 def PaintPage(*args, **kwargs):
4757 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4758 return _windows_.PrintPreview_PaintPage(*args, **kwargs)
4759
4760 def DrawBlankPage(*args, **kwargs):
4761 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4762 return _windows_.PrintPreview_DrawBlankPage(*args, **kwargs)
4763
4764 def RenderPage(*args, **kwargs):
4765 """RenderPage(self, int pageNum) -> bool"""
4766 return _windows_.PrintPreview_RenderPage(*args, **kwargs)
4767
4768 def AdjustScrollbars(*args, **kwargs):
4769 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4770 return _windows_.PrintPreview_AdjustScrollbars(*args, **kwargs)
4771
4772 def GetPrintDialogData(*args, **kwargs):
4773 """GetPrintDialogData(self) -> PrintDialogData"""
4774 return _windows_.PrintPreview_GetPrintDialogData(*args, **kwargs)
4775
4776 def SetZoom(*args, **kwargs):
4777 """SetZoom(self, int percent)"""
4778 return _windows_.PrintPreview_SetZoom(*args, **kwargs)
4779
4780 def GetZoom(*args, **kwargs):
4781 """GetZoom(self) -> int"""
4782 return _windows_.PrintPreview_GetZoom(*args, **kwargs)
4783
4784 def GetMaxPage(*args, **kwargs):
4785 """GetMaxPage(self) -> int"""
4786 return _windows_.PrintPreview_GetMaxPage(*args, **kwargs)
4787
4788 def GetMinPage(*args, **kwargs):
4789 """GetMinPage(self) -> int"""
4790 return _windows_.PrintPreview_GetMinPage(*args, **kwargs)
4791
4792 def Ok(*args, **kwargs):
4793 """Ok(self) -> bool"""
4794 return _windows_.PrintPreview_Ok(*args, **kwargs)
4795
4796 def SetOk(*args, **kwargs):
4797 """SetOk(self, bool ok)"""
4798 return _windows_.PrintPreview_SetOk(*args, **kwargs)
4799
4800 def Print(*args, **kwargs):
4801 """Print(self, bool interactive) -> bool"""
4802 return _windows_.PrintPreview_Print(*args, **kwargs)
4803
4804 def DetermineScaling(*args, **kwargs):
4805 """DetermineScaling(self)"""
4806 return _windows_.PrintPreview_DetermineScaling(*args, **kwargs)
4807
4808 def __nonzero__(self): return self.Ok()
4809
4810class PrintPreviewPtr(PrintPreview):
4811 def __init__(self, this):
4812 self.this = this
4813 if not hasattr(self,"thisown"): self.thisown = 0
4814 self.__class__ = PrintPreview
4815_windows_.PrintPreview_swigregister(PrintPreviewPtr)
4816
4817class PyPrintPreview(PrintPreview):
36ed4f51 4818 """Proxy of C++ PyPrintPreview class"""
d55e5bfc
RD
4819 def __repr__(self):
4820 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4821 def __init__(self, *args):
4822 """
4823 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4824 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4825 """
4826 newobj = _windows_.new_PyPrintPreview(*args)
4827 self.this = newobj.this
4828 self.thisown = 1
4829 del newobj.thisown
4830 self._setCallbackInfo(self, PyPrintPreview)
4831
4832 def _setCallbackInfo(*args, **kwargs):
4833 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4834 return _windows_.PyPrintPreview__setCallbackInfo(*args, **kwargs)
4835
4836 def base_SetCurrentPage(*args, **kwargs):
4837 """base_SetCurrentPage(self, int pageNum) -> bool"""
4838 return _windows_.PyPrintPreview_base_SetCurrentPage(*args, **kwargs)
4839
4840 def base_PaintPage(*args, **kwargs):
4841 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4842 return _windows_.PyPrintPreview_base_PaintPage(*args, **kwargs)
4843
4844 def base_DrawBlankPage(*args, **kwargs):
4845 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4846 return _windows_.PyPrintPreview_base_DrawBlankPage(*args, **kwargs)
4847
4848 def base_RenderPage(*args, **kwargs):
4849 """base_RenderPage(self, int pageNum) -> bool"""
4850 return _windows_.PyPrintPreview_base_RenderPage(*args, **kwargs)
4851
4852 def base_SetZoom(*args, **kwargs):
4853 """base_SetZoom(self, int percent)"""
4854 return _windows_.PyPrintPreview_base_SetZoom(*args, **kwargs)
4855
4856 def base_Print(*args, **kwargs):
4857 """base_Print(self, bool interactive) -> bool"""
4858 return _windows_.PyPrintPreview_base_Print(*args, **kwargs)
4859
4860 def base_DetermineScaling(*args, **kwargs):
4861 """base_DetermineScaling(self)"""
4862 return _windows_.PyPrintPreview_base_DetermineScaling(*args, **kwargs)
4863
4864
4865class PyPrintPreviewPtr(PyPrintPreview):
4866 def __init__(self, this):
4867 self.this = this
4868 if not hasattr(self,"thisown"): self.thisown = 0
4869 self.__class__ = PyPrintPreview
4870_windows_.PyPrintPreview_swigregister(PyPrintPreviewPtr)
4871
4872class PyPreviewFrame(PreviewFrame):
36ed4f51 4873 """Proxy of C++ PyPreviewFrame class"""
d55e5bfc
RD
4874 def __repr__(self):
4875 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4876 def __init__(self, *args, **kwargs):
4877 """
4878 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4879 Size size=DefaultSize,
4880 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4881 """
4882 newobj = _windows_.new_PyPreviewFrame(*args, **kwargs)
4883 self.this = newobj.this
4884 self.thisown = 1
4885 del newobj.thisown
4886 self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self)
4887
4888 def _setCallbackInfo(*args, **kwargs):
4889 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4890 return _windows_.PyPreviewFrame__setCallbackInfo(*args, **kwargs)
4891
4892 def SetPreviewCanvas(*args, **kwargs):
4893 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4894 return _windows_.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs)
4895
4896 def SetControlBar(*args, **kwargs):
4897 """SetControlBar(self, PreviewControlBar bar)"""
4898 return _windows_.PyPreviewFrame_SetControlBar(*args, **kwargs)
4899
4900 def base_Initialize(*args, **kwargs):
4901 """base_Initialize(self)"""
4902 return _windows_.PyPreviewFrame_base_Initialize(*args, **kwargs)
4903
4904 def base_CreateCanvas(*args, **kwargs):
4905 """base_CreateCanvas(self)"""
4906 return _windows_.PyPreviewFrame_base_CreateCanvas(*args, **kwargs)
4907
4908 def base_CreateControlBar(*args, **kwargs):
4909 """base_CreateControlBar(self)"""
4910 return _windows_.PyPreviewFrame_base_CreateControlBar(*args, **kwargs)
4911
4912
4913class PyPreviewFramePtr(PyPreviewFrame):
4914 def __init__(self, this):
4915 self.this = this
4916 if not hasattr(self,"thisown"): self.thisown = 0
4917 self.__class__ = PyPreviewFrame
4918_windows_.PyPreviewFrame_swigregister(PyPreviewFramePtr)
4919
4920class PyPreviewControlBar(PreviewControlBar):
36ed4f51 4921 """Proxy of C++ PyPreviewControlBar class"""
d55e5bfc
RD
4922 def __repr__(self):
4923 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self.__class__.__module__, self.__class__.__name__, self.this,)
4924 def __init__(self, *args, **kwargs):
4925 """
4926 __init__(self, PrintPreview preview, long buttons, Window parent,
4927 Point pos=DefaultPosition, Size size=DefaultSize,
4928 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4929 """
4930 newobj = _windows_.new_PyPreviewControlBar(*args, **kwargs)
4931 self.this = newobj.this
4932 self.thisown = 1
4933 del newobj.thisown
4934 self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self)
4935
4936 def _setCallbackInfo(*args, **kwargs):
4937 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4938 return _windows_.PyPreviewControlBar__setCallbackInfo(*args, **kwargs)
4939
4940 def SetPrintPreview(*args, **kwargs):
4941 """SetPrintPreview(self, PrintPreview preview)"""
4942 return _windows_.PyPreviewControlBar_SetPrintPreview(*args, **kwargs)
4943
4944 def base_CreateButtons(*args, **kwargs):
4945 """base_CreateButtons(self)"""
4946 return _windows_.PyPreviewControlBar_base_CreateButtons(*args, **kwargs)
4947
4948 def base_SetZoomControl(*args, **kwargs):
4949 """base_SetZoomControl(self, int zoom)"""
4950 return _windows_.PyPreviewControlBar_base_SetZoomControl(*args, **kwargs)
4951
4952
4953class PyPreviewControlBarPtr(PyPreviewControlBar):
4954 def __init__(self, this):
4955 self.this = this
4956 if not hasattr(self,"thisown"): self.thisown = 0
4957 self.__class__ = PyPreviewControlBar
4958_windows_.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr)
4959
4960