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