]> git.saurik.com Git - wxWidgets.git/blob - wxPython/src/msw/_windows.py
reSWIGged
[wxWidgets.git] / wxPython / src / msw / _windows.py
1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
3
4 import _windows_
5 import new
6 new_instancemethod = new.instancemethod
7 def _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
20 def _swig_setattr(self,class_type,name,value):
21 return _swig_setattr_nondynamic(self,class_type,name,value,0)
22
23 def _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
29 def _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
34 import types
35 try:
36 _object = types.ObjectType
37 _newclass = 1
38 except AttributeError:
39 class _object : pass
40 _newclass = 0
41 del types
42
43
44 def _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
54 import _core
55 wx = _core
56 #---------------------------------------------------------------------------
57
58 class 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
111 def PrePanel(*args, **kwargs):
112 """PrePanel() -> Panel"""
113 val = _windows_.new_PrePanel(*args, **kwargs)
114 return val
115
116 def 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
135 class 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
283 def PreScrolledWindow(*args, **kwargs):
284 """PreScrolledWindow() -> ScrolledWindow"""
285 val = _windows_.new_PreScrolledWindow(*args, **kwargs)
286 return val
287
288 def 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
307 STAY_ON_TOP = _windows_.STAY_ON_TOP
308 ICONIZE = _windows_.ICONIZE
309 MINIMIZE = _windows_.MINIMIZE
310 MAXIMIZE = _windows_.MAXIMIZE
311 CLOSE_BOX = _windows_.CLOSE_BOX
312 THICK_FRAME = _windows_.THICK_FRAME
313 SYSTEM_MENU = _windows_.SYSTEM_MENU
314 MINIMIZE_BOX = _windows_.MINIMIZE_BOX
315 MAXIMIZE_BOX = _windows_.MAXIMIZE_BOX
316 TINY_CAPTION_HORIZ = _windows_.TINY_CAPTION_HORIZ
317 TINY_CAPTION_VERT = _windows_.TINY_CAPTION_VERT
318 RESIZE_BOX = _windows_.RESIZE_BOX
319 RESIZE_BORDER = _windows_.RESIZE_BORDER
320 DIALOG_NO_PARENT = _windows_.DIALOG_NO_PARENT
321 DEFAULT_FRAME_STYLE = _windows_.DEFAULT_FRAME_STYLE
322 DEFAULT_DIALOG_STYLE = _windows_.DEFAULT_DIALOG_STYLE
323 FRAME_TOOL_WINDOW = _windows_.FRAME_TOOL_WINDOW
324 FRAME_FLOAT_ON_PARENT = _windows_.FRAME_FLOAT_ON_PARENT
325 FRAME_NO_WINDOW_MENU = _windows_.FRAME_NO_WINDOW_MENU
326 FRAME_NO_TASKBAR = _windows_.FRAME_NO_TASKBAR
327 FRAME_SHAPED = _windows_.FRAME_SHAPED
328 FRAME_DRAWER = _windows_.FRAME_DRAWER
329 FRAME_EX_METAL = _windows_.FRAME_EX_METAL
330 DIALOG_EX_METAL = _windows_.DIALOG_EX_METAL
331 WS_EX_CONTEXTHELP = _windows_.WS_EX_CONTEXTHELP
332 DIALOG_MODAL = _windows_.DIALOG_MODAL
333 DIALOG_MODELESS = _windows_.DIALOG_MODELESS
334 USER_COLOURS = _windows_.USER_COLOURS
335 NO_3D = _windows_.NO_3D
336 FRAME_EX_CONTEXTHELP = _windows_.FRAME_EX_CONTEXTHELP
337 DIALOG_EX_CONTEXTHELP = _windows_.DIALOG_EX_CONTEXTHELP
338 FULLSCREEN_NOMENUBAR = _windows_.FULLSCREEN_NOMENUBAR
339 FULLSCREEN_NOTOOLBAR = _windows_.FULLSCREEN_NOTOOLBAR
340 FULLSCREEN_NOSTATUSBAR = _windows_.FULLSCREEN_NOSTATUSBAR
341 FULLSCREEN_NOBORDER = _windows_.FULLSCREEN_NOBORDER
342 FULLSCREEN_NOCAPTION = _windows_.FULLSCREEN_NOCAPTION
343 FULLSCREEN_ALL = _windows_.FULLSCREEN_ALL
344 TOPLEVEL_EX_DIALOG = _windows_.TOPLEVEL_EX_DIALOG
345 USER_ATTENTION_INFO = _windows_.USER_ATTENTION_INFO
346 USER_ATTENTION_ERROR = _windows_.USER_ATTENTION_ERROR
347 class 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)
471 cvar = _windows_.cvar
472 FrameNameStr = cvar.FrameNameStr
473 DialogNameStr = cvar.DialogNameStr
474 StatusLineNameStr = cvar.StatusLineNameStr
475 ToolBarNameStr = cvar.ToolBarNameStr
476
477 #---------------------------------------------------------------------------
478
479 class 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
600 def PreFrame(*args, **kwargs):
601 """PreFrame() -> Frame"""
602 val = _windows_.new_PreFrame(*args, **kwargs)
603 return val
604
605 def 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
624 class 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
717 def PreDialog(*args, **kwargs):
718 """PreDialog() -> Dialog"""
719 val = _windows_.new_PreDialog(*args, **kwargs)
720 return val
721
722 def 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
741 class 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
764 def PreMiniFrame(*args, **kwargs):
765 """PreMiniFrame() -> MiniFrame"""
766 val = _windows_.new_PreMiniFrame(*args, **kwargs)
767 return val
768
769 #---------------------------------------------------------------------------
770
771 SPLASH_CENTRE_ON_PARENT = _windows_.SPLASH_CENTRE_ON_PARENT
772 SPLASH_CENTRE_ON_SCREEN = _windows_.SPLASH_CENTRE_ON_SCREEN
773 SPLASH_NO_CENTRE = _windows_.SPLASH_NO_CENTRE
774 SPLASH_TIMEOUT = _windows_.SPLASH_TIMEOUT
775 SPLASH_NO_TIMEOUT = _windows_.SPLASH_NO_TIMEOUT
776 class 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
798 class 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
827 SB_NORMAL = _windows_.SB_NORMAL
828 SB_FLAT = _windows_.SB_FLAT
829 SB_RAISED = _windows_.SB_RAISED
830 class 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
925 def PreStatusBar(*args, **kwargs):
926 """PreStatusBar() -> StatusBar"""
927 val = _windows_.new_PreStatusBar(*args, **kwargs)
928 return val
929
930 def 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
949 SP_NOBORDER = _windows_.SP_NOBORDER
950 SP_NOSASH = _windows_.SP_NOSASH
951 SP_PERMIT_UNSPLIT = _windows_.SP_PERMIT_UNSPLIT
952 SP_LIVE_UPDATE = _windows_.SP_LIVE_UPDATE
953 SP_3DSASH = _windows_.SP_3DSASH
954 SP_3DBORDER = _windows_.SP_3DBORDER
955 SP_NO_XP_THEME = _windows_.SP_NO_XP_THEME
956 SP_BORDER = _windows_.SP_BORDER
957 SP_3D = _windows_.SP_3D
958 SPLIT_HORIZONTAL = _windows_.SPLIT_HORIZONTAL
959 SPLIT_VERTICAL = _windows_.SPLIT_VERTICAL
960 SPLIT_DRAG_NONE = _windows_.SPLIT_DRAG_NONE
961 SPLIT_DRAG_DRAGGING = _windows_.SPLIT_DRAG_DRAGGING
962 SPLIT_DRAG_LEFT_DOWN = _windows_.SPLIT_DRAG_LEFT_DOWN
963 class 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)
1247 SplitterNameStr = cvar.SplitterNameStr
1248
1249 def 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
1258 def 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
1275 class 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
1337 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1338 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING = _windows_.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1339 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED = _windows_.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1340 wxEVT_COMMAND_SPLITTER_UNSPLIT = _windows_.wxEVT_COMMAND_SPLITTER_UNSPLIT
1341 EVT_SPLITTER_SASH_POS_CHANGED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED, 1 )
1342 EVT_SPLITTER_SASH_POS_CHANGING = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING, 1 )
1343 EVT_SPLITTER_DOUBLECLICKED = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED, 1 )
1344 EVT_SPLITTER_UNSPLIT = wx.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT, 1 )
1345 EVT_SPLITTER_DCLICK = EVT_SPLITTER_DOUBLECLICKED
1346
1347 #---------------------------------------------------------------------------
1348
1349 SASH_DRAG_NONE = _windows_.SASH_DRAG_NONE
1350 SASH_DRAG_DRAGGING = _windows_.SASH_DRAG_DRAGGING
1351 SASH_DRAG_LEFT_DOWN = _windows_.SASH_DRAG_LEFT_DOWN
1352 SW_NOBORDER = _windows_.SW_NOBORDER
1353 SW_BORDER = _windows_.SW_BORDER
1354 SW_3DSASH = _windows_.SW_3DSASH
1355 SW_3DBORDER = _windows_.SW_3DBORDER
1356 SW_3D = _windows_.SW_3D
1357 SASH_TOP = _windows_.SASH_TOP
1358 SASH_RIGHT = _windows_.SASH_RIGHT
1359 SASH_BOTTOM = _windows_.SASH_BOTTOM
1360 SASH_LEFT = _windows_.SASH_LEFT
1361 SASH_NONE = _windows_.SASH_NONE
1362 class 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)
1460 SashNameStr = cvar.SashNameStr
1461 SashLayoutNameStr = cvar.SashLayoutNameStr
1462
1463 def PreSashWindow(*args, **kwargs):
1464 """PreSashWindow() -> SashWindow"""
1465 val = _windows_.new_PreSashWindow(*args, **kwargs)
1466 return val
1467
1468 SASH_STATUS_OK = _windows_.SASH_STATUS_OK
1469 SASH_STATUS_OUT_OF_RANGE = _windows_.SASH_STATUS_OUT_OF_RANGE
1470 class 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
1503 wxEVT_SASH_DRAGGED = _windows_.wxEVT_SASH_DRAGGED
1504 EVT_SASH_DRAGGED = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 1 )
1505 EVT_SASH_DRAGGED_RANGE = wx.PyEventBinder( wxEVT_SASH_DRAGGED, 2 )
1506
1507 #---------------------------------------------------------------------------
1508
1509 LAYOUT_HORIZONTAL = _windows_.LAYOUT_HORIZONTAL
1510 LAYOUT_VERTICAL = _windows_.LAYOUT_VERTICAL
1511 LAYOUT_NONE = _windows_.LAYOUT_NONE
1512 LAYOUT_TOP = _windows_.LAYOUT_TOP
1513 LAYOUT_LEFT = _windows_.LAYOUT_LEFT
1514 LAYOUT_RIGHT = _windows_.LAYOUT_RIGHT
1515 LAYOUT_BOTTOM = _windows_.LAYOUT_BOTTOM
1516 LAYOUT_LENGTH_Y = _windows_.LAYOUT_LENGTH_Y
1517 LAYOUT_LENGTH_X = _windows_.LAYOUT_LENGTH_X
1518 LAYOUT_MRU_LENGTH = _windows_.LAYOUT_MRU_LENGTH
1519 LAYOUT_QUERY = _windows_.LAYOUT_QUERY
1520 wxEVT_QUERY_LAYOUT_INFO = _windows_.wxEVT_QUERY_LAYOUT_INFO
1521 wxEVT_CALCULATE_LAYOUT = _windows_.wxEVT_CALCULATE_LAYOUT
1522 class 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
1571 class 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
1598 EVT_QUERY_LAYOUT_INFO = wx.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO )
1599 EVT_CALCULATE_LAYOUT = wx.PyEventBinder( wxEVT_CALCULATE_LAYOUT )
1600
1601 class 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
1644 def PreSashLayoutWindow(*args, **kwargs):
1645 """PreSashLayoutWindow() -> SashLayoutWindow"""
1646 val = _windows_.new_PreSashLayoutWindow(*args, **kwargs)
1647 return val
1648
1649 class 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
1672 #---------------------------------------------------------------------------
1673
1674 class PopupWindow(_core.Window):
1675 """Proxy of C++ PopupWindow class"""
1676 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1677 __repr__ = _swig_repr
1678 def __init__(self, *args, **kwargs):
1679 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1680 _windows_.PopupWindow_swiginit(self,_windows_.new_PopupWindow(*args, **kwargs))
1681 self._setOORInfo(self)
1682
1683 def Create(*args, **kwargs):
1684 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1685 return _windows_.PopupWindow_Create(*args, **kwargs)
1686
1687 def Position(*args, **kwargs):
1688 """Position(self, Point ptOrigin, Size size)"""
1689 return _windows_.PopupWindow_Position(*args, **kwargs)
1690
1691 _windows_.PopupWindow_swigregister(PopupWindow)
1692
1693 def PrePopupWindow(*args, **kwargs):
1694 """PrePopupWindow() -> PopupWindow"""
1695 val = _windows_.new_PrePopupWindow(*args, **kwargs)
1696 return val
1697
1698 #---------------------------------------------------------------------------
1699
1700 class PopupTransientWindow(PopupWindow):
1701 """Proxy of C++ PopupTransientWindow class"""
1702 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1703 __repr__ = _swig_repr
1704 def __init__(self, *args, **kwargs):
1705 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1706 _windows_.PopupTransientWindow_swiginit(self,_windows_.new_PopupTransientWindow(*args, **kwargs))
1707 self._setOORInfo(self);self._setCallbackInfo(self, PopupTransientWindow)
1708
1709 def _setCallbackInfo(*args, **kwargs):
1710 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1711 return _windows_.PopupTransientWindow__setCallbackInfo(*args, **kwargs)
1712
1713 def Popup(*args, **kwargs):
1714 """Popup(self, Window focus=None)"""
1715 return _windows_.PopupTransientWindow_Popup(*args, **kwargs)
1716
1717 def Dismiss(*args, **kwargs):
1718 """Dismiss(self)"""
1719 return _windows_.PopupTransientWindow_Dismiss(*args, **kwargs)
1720
1721 _windows_.PopupTransientWindow_swigregister(PopupTransientWindow)
1722
1723 def PrePopupTransientWindow(*args, **kwargs):
1724 """PrePopupTransientWindow() -> PopupTransientWindow"""
1725 val = _windows_.new_PrePopupTransientWindow(*args, **kwargs)
1726 return val
1727
1728 #---------------------------------------------------------------------------
1729
1730 class TipWindow(PopupTransientWindow):
1731 """Proxy of C++ TipWindow 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 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1736 _windows_.TipWindow_swiginit(self,_windows_.new_TipWindow(*args, **kwargs))
1737 self._setOORInfo(self)
1738
1739 def SetBoundingRect(*args, **kwargs):
1740 """SetBoundingRect(self, Rect rectBound)"""
1741 return _windows_.TipWindow_SetBoundingRect(*args, **kwargs)
1742
1743 def Close(*args, **kwargs):
1744 """
1745 Close(self)
1746
1747 This function simply generates a EVT_CLOSE event whose handler usually
1748 tries to close the window. It doesn't close the window itself,
1749 however. If force is False (the default) then the window's close
1750 handler will be allowed to veto the destruction of the window.
1751 """
1752 return _windows_.TipWindow_Close(*args, **kwargs)
1753
1754 _windows_.TipWindow_swigregister(TipWindow)
1755
1756 #---------------------------------------------------------------------------
1757
1758 class VScrolledWindow(Panel):
1759 """Proxy of C++ VScrolledWindow class"""
1760 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1761 __repr__ = _swig_repr
1762 def __init__(self, *args, **kwargs):
1763 """
1764 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1765 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1766 """
1767 _windows_.VScrolledWindow_swiginit(self,_windows_.new_VScrolledWindow(*args, **kwargs))
1768 self._setOORInfo(self); self._setCallbackInfo(self, VScrolledWindow)
1769
1770 def _setCallbackInfo(*args, **kwargs):
1771 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1772 return _windows_.VScrolledWindow__setCallbackInfo(*args, **kwargs)
1773
1774 def Create(*args, **kwargs):
1775 """
1776 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1777 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1778 """
1779 return _windows_.VScrolledWindow_Create(*args, **kwargs)
1780
1781 def SetLineCount(*args, **kwargs):
1782 """SetLineCount(self, size_t count)"""
1783 return _windows_.VScrolledWindow_SetLineCount(*args, **kwargs)
1784
1785 def ScrollToLine(*args, **kwargs):
1786 """ScrollToLine(self, size_t line) -> bool"""
1787 return _windows_.VScrolledWindow_ScrollToLine(*args, **kwargs)
1788
1789 def RefreshLine(*args, **kwargs):
1790 """RefreshLine(self, size_t line)"""
1791 return _windows_.VScrolledWindow_RefreshLine(*args, **kwargs)
1792
1793 def RefreshLines(*args, **kwargs):
1794 """RefreshLines(self, size_t from, size_t to)"""
1795 return _windows_.VScrolledWindow_RefreshLines(*args, **kwargs)
1796
1797 def HitTestXY(*args, **kwargs):
1798 """
1799 HitTestXY(self, int x, int y) -> int
1800
1801 Test where the given (in client coords) point lies
1802 """
1803 return _windows_.VScrolledWindow_HitTestXY(*args, **kwargs)
1804
1805 def HitTest(*args, **kwargs):
1806 """
1807 HitTest(self, Point pt) -> int
1808
1809 Test where the given (in client coords) point lies
1810 """
1811 return _windows_.VScrolledWindow_HitTest(*args, **kwargs)
1812
1813 def RefreshAll(*args, **kwargs):
1814 """RefreshAll(self)"""
1815 return _windows_.VScrolledWindow_RefreshAll(*args, **kwargs)
1816
1817 def GetLineCount(*args, **kwargs):
1818 """GetLineCount(self) -> size_t"""
1819 return _windows_.VScrolledWindow_GetLineCount(*args, **kwargs)
1820
1821 def GetVisibleBegin(*args, **kwargs):
1822 """GetVisibleBegin(self) -> size_t"""
1823 return _windows_.VScrolledWindow_GetVisibleBegin(*args, **kwargs)
1824
1825 def GetVisibleEnd(*args, **kwargs):
1826 """GetVisibleEnd(self) -> size_t"""
1827 return _windows_.VScrolledWindow_GetVisibleEnd(*args, **kwargs)
1828
1829 def IsVisible(*args, **kwargs):
1830 """IsVisible(self, size_t line) -> bool"""
1831 return _windows_.VScrolledWindow_IsVisible(*args, **kwargs)
1832
1833 def GetFirstVisibleLine(*args, **kwargs):
1834 """GetFirstVisibleLine(self) -> size_t"""
1835 return _windows_.VScrolledWindow_GetFirstVisibleLine(*args, **kwargs)
1836
1837 def GetLastVisibleLine(*args, **kwargs):
1838 """GetLastVisibleLine(self) -> size_t"""
1839 return _windows_.VScrolledWindow_GetLastVisibleLine(*args, **kwargs)
1840
1841 def FindFirstFromBottom(*args, **kwargs):
1842 """FindFirstFromBottom(self, size_t lineLast, bool fullyVisible=False) -> size_t"""
1843 return _windows_.VScrolledWindow_FindFirstFromBottom(*args, **kwargs)
1844
1845 def GetLinesHeight(*args, **kwargs):
1846 """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int"""
1847 return _windows_.VScrolledWindow_GetLinesHeight(*args, **kwargs)
1848
1849 _windows_.VScrolledWindow_swigregister(VScrolledWindow)
1850
1851 def PreVScrolledWindow(*args, **kwargs):
1852 """PreVScrolledWindow() -> VScrolledWindow"""
1853 val = _windows_.new_PreVScrolledWindow(*args, **kwargs)
1854 return val
1855
1856 class VListBox(VScrolledWindow):
1857 """Proxy of C++ VListBox class"""
1858 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1859 __repr__ = _swig_repr
1860 def __init__(self, *args, **kwargs):
1861 """
1862 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1863 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1864 """
1865 _windows_.VListBox_swiginit(self,_windows_.new_VListBox(*args, **kwargs))
1866 self._setOORInfo(self);self._setCallbackInfo(self, VListBox)
1867
1868 def _setCallbackInfo(*args, **kwargs):
1869 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1870 return _windows_.VListBox__setCallbackInfo(*args, **kwargs)
1871
1872 def Create(*args, **kwargs):
1873 """
1874 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1875 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1876 """
1877 return _windows_.VListBox_Create(*args, **kwargs)
1878
1879 def GetItemCount(*args, **kwargs):
1880 """GetItemCount(self) -> size_t"""
1881 return _windows_.VListBox_GetItemCount(*args, **kwargs)
1882
1883 def HasMultipleSelection(*args, **kwargs):
1884 """HasMultipleSelection(self) -> bool"""
1885 return _windows_.VListBox_HasMultipleSelection(*args, **kwargs)
1886
1887 def GetSelection(*args, **kwargs):
1888 """GetSelection(self) -> int"""
1889 return _windows_.VListBox_GetSelection(*args, **kwargs)
1890
1891 def IsCurrent(*args, **kwargs):
1892 """IsCurrent(self, size_t item) -> bool"""
1893 return _windows_.VListBox_IsCurrent(*args, **kwargs)
1894
1895 def IsSelected(*args, **kwargs):
1896 """IsSelected(self, size_t item) -> bool"""
1897 return _windows_.VListBox_IsSelected(*args, **kwargs)
1898
1899 def GetSelectedCount(*args, **kwargs):
1900 """GetSelectedCount(self) -> size_t"""
1901 return _windows_.VListBox_GetSelectedCount(*args, **kwargs)
1902
1903 def GetFirstSelected(*args, **kwargs):
1904 """GetFirstSelected(self) -> PyObject"""
1905 return _windows_.VListBox_GetFirstSelected(*args, **kwargs)
1906
1907 def GetNextSelected(*args, **kwargs):
1908 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1909 return _windows_.VListBox_GetNextSelected(*args, **kwargs)
1910
1911 def GetMargins(*args, **kwargs):
1912 """GetMargins(self) -> Point"""
1913 return _windows_.VListBox_GetMargins(*args, **kwargs)
1914
1915 def GetSelectionBackground(*args, **kwargs):
1916 """GetSelectionBackground(self) -> Colour"""
1917 return _windows_.VListBox_GetSelectionBackground(*args, **kwargs)
1918
1919 def SetItemCount(*args, **kwargs):
1920 """SetItemCount(self, size_t count)"""
1921 return _windows_.VListBox_SetItemCount(*args, **kwargs)
1922
1923 def Clear(*args, **kwargs):
1924 """Clear(self)"""
1925 return _windows_.VListBox_Clear(*args, **kwargs)
1926
1927 def SetSelection(*args, **kwargs):
1928 """SetSelection(self, int selection)"""
1929 return _windows_.VListBox_SetSelection(*args, **kwargs)
1930
1931 def Select(*args, **kwargs):
1932 """Select(self, size_t item, bool select=True) -> bool"""
1933 return _windows_.VListBox_Select(*args, **kwargs)
1934
1935 def SelectRange(*args, **kwargs):
1936 """SelectRange(self, size_t from, size_t to) -> bool"""
1937 return _windows_.VListBox_SelectRange(*args, **kwargs)
1938
1939 def Toggle(*args, **kwargs):
1940 """Toggle(self, size_t item)"""
1941 return _windows_.VListBox_Toggle(*args, **kwargs)
1942
1943 def SelectAll(*args, **kwargs):
1944 """SelectAll(self) -> bool"""
1945 return _windows_.VListBox_SelectAll(*args, **kwargs)
1946
1947 def DeselectAll(*args, **kwargs):
1948 """DeselectAll(self) -> bool"""
1949 return _windows_.VListBox_DeselectAll(*args, **kwargs)
1950
1951 def SetMargins(*args, **kwargs):
1952 """SetMargins(self, Point pt)"""
1953 return _windows_.VListBox_SetMargins(*args, **kwargs)
1954
1955 def SetMarginsXY(*args, **kwargs):
1956 """SetMarginsXY(self, int x, int y)"""
1957 return _windows_.VListBox_SetMarginsXY(*args, **kwargs)
1958
1959 def SetSelectionBackground(*args, **kwargs):
1960 """SetSelectionBackground(self, Colour col)"""
1961 return _windows_.VListBox_SetSelectionBackground(*args, **kwargs)
1962
1963 def OnDrawSeparator(*args, **kwargs):
1964 """OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
1965 return _windows_.VListBox_OnDrawSeparator(*args, **kwargs)
1966
1967 def OnDrawBackground(*args, **kwargs):
1968 """OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
1969 return _windows_.VListBox_OnDrawBackground(*args, **kwargs)
1970
1971 _windows_.VListBox_swigregister(VListBox)
1972 VListBoxNameStr = cvar.VListBoxNameStr
1973
1974 def PreVListBox(*args, **kwargs):
1975 """PreVListBox() -> VListBox"""
1976 val = _windows_.new_PreVListBox(*args, **kwargs)
1977 return val
1978
1979 class HtmlListBox(VListBox):
1980 """Proxy of C++ HtmlListBox class"""
1981 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
1982 __repr__ = _swig_repr
1983 def __init__(self, *args, **kwargs):
1984 """
1985 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1986 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1987 """
1988 _windows_.HtmlListBox_swiginit(self,_windows_.new_HtmlListBox(*args, **kwargs))
1989 self._setOORInfo(self);self._setCallbackInfo(self, HtmlListBox)
1990
1991 def _setCallbackInfo(*args, **kwargs):
1992 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1993 return _windows_.HtmlListBox__setCallbackInfo(*args, **kwargs)
1994
1995 def Create(*args, **kwargs):
1996 """
1997 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1998 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1999 """
2000 return _windows_.HtmlListBox_Create(*args, **kwargs)
2001
2002 def SetItemCount(*args, **kwargs):
2003 """SetItemCount(self, size_t count)"""
2004 return _windows_.HtmlListBox_SetItemCount(*args, **kwargs)
2005
2006 def GetFileSystem(*args, **kwargs):
2007 """GetFileSystem(self) -> FileSystem"""
2008 return _windows_.HtmlListBox_GetFileSystem(*args, **kwargs)
2009
2010 def OnLinkClicked(*args, **kwargs):
2011 """OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)"""
2012 return _windows_.HtmlListBox_OnLinkClicked(*args, **kwargs)
2013
2014 FileSystem = property(GetFileSystem,doc="See `GetFileSystem`")
2015 _windows_.HtmlListBox_swigregister(HtmlListBox)
2016
2017 def PreHtmlListBox(*args, **kwargs):
2018 """PreHtmlListBox() -> HtmlListBox"""
2019 val = _windows_.new_PreHtmlListBox(*args, **kwargs)
2020 return val
2021
2022 #---------------------------------------------------------------------------
2023
2024 class TaskBarIcon(_core.EvtHandler):
2025 """Proxy of C++ TaskBarIcon class"""
2026 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2027 __repr__ = _swig_repr
2028 def __init__(self, *args, **kwargs):
2029 """__init__(self) -> TaskBarIcon"""
2030 _windows_.TaskBarIcon_swiginit(self,_windows_.new_TaskBarIcon(*args, **kwargs))
2031 self._setCallbackInfo(self, TaskBarIcon, 0)
2032
2033 __swig_destroy__ = _windows_.delete_TaskBarIcon
2034 __del__ = lambda self : None;
2035 def _setCallbackInfo(*args, **kwargs):
2036 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2037 return _windows_.TaskBarIcon__setCallbackInfo(*args, **kwargs)
2038
2039 def Destroy(*args, **kwargs):
2040 """
2041 Destroy(self)
2042
2043 Deletes the C++ object this Python object is a proxy for.
2044 """
2045 val = _windows_.TaskBarIcon_Destroy(*args, **kwargs)
2046 args[0].thisown = 0
2047 return val
2048
2049 def IsOk(*args, **kwargs):
2050 """IsOk(self) -> bool"""
2051 return _windows_.TaskBarIcon_IsOk(*args, **kwargs)
2052
2053 def __nonzero__(self): return self.IsOk()
2054 def IsIconInstalled(*args, **kwargs):
2055 """IsIconInstalled(self) -> bool"""
2056 return _windows_.TaskBarIcon_IsIconInstalled(*args, **kwargs)
2057
2058 def SetIcon(*args, **kwargs):
2059 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2060 return _windows_.TaskBarIcon_SetIcon(*args, **kwargs)
2061
2062 def RemoveIcon(*args, **kwargs):
2063 """RemoveIcon(self) -> bool"""
2064 return _windows_.TaskBarIcon_RemoveIcon(*args, **kwargs)
2065
2066 def PopupMenu(*args, **kwargs):
2067 """PopupMenu(self, Menu menu) -> bool"""
2068 return _windows_.TaskBarIcon_PopupMenu(*args, **kwargs)
2069
2070 _windows_.TaskBarIcon_swigregister(TaskBarIcon)
2071
2072 class TaskBarIconEvent(_core.Event):
2073 """Proxy of C++ TaskBarIconEvent class"""
2074 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2075 __repr__ = _swig_repr
2076 def __init__(self, *args, **kwargs):
2077 """__init__(self, EventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2078 _windows_.TaskBarIconEvent_swiginit(self,_windows_.new_TaskBarIconEvent(*args, **kwargs))
2079 _windows_.TaskBarIconEvent_swigregister(TaskBarIconEvent)
2080
2081 wxEVT_TASKBAR_MOVE = _windows_.wxEVT_TASKBAR_MOVE
2082 wxEVT_TASKBAR_LEFT_DOWN = _windows_.wxEVT_TASKBAR_LEFT_DOWN
2083 wxEVT_TASKBAR_LEFT_UP = _windows_.wxEVT_TASKBAR_LEFT_UP
2084 wxEVT_TASKBAR_RIGHT_DOWN = _windows_.wxEVT_TASKBAR_RIGHT_DOWN
2085 wxEVT_TASKBAR_RIGHT_UP = _windows_.wxEVT_TASKBAR_RIGHT_UP
2086 wxEVT_TASKBAR_LEFT_DCLICK = _windows_.wxEVT_TASKBAR_LEFT_DCLICK
2087 wxEVT_TASKBAR_RIGHT_DCLICK = _windows_.wxEVT_TASKBAR_RIGHT_DCLICK
2088 EVT_TASKBAR_MOVE = wx.PyEventBinder ( wxEVT_TASKBAR_MOVE )
2089 EVT_TASKBAR_LEFT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN )
2090 EVT_TASKBAR_LEFT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP )
2091 EVT_TASKBAR_RIGHT_DOWN = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN )
2092 EVT_TASKBAR_RIGHT_UP = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP )
2093 EVT_TASKBAR_LEFT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK )
2094 EVT_TASKBAR_RIGHT_DCLICK = wx.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK )
2095
2096 #---------------------------------------------------------------------------
2097
2098 class ColourData(_core.Object):
2099 """
2100 This class holds a variety of information related to the colour
2101 chooser dialog, used to transfer settings and results to and from the
2102 `wx.ColourDialog`.
2103 """
2104 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2105 __repr__ = _swig_repr
2106 def __init__(self, *args, **kwargs):
2107 """
2108 __init__(self) -> ColourData
2109
2110 Constructor, sets default values.
2111 """
2112 _windows_.ColourData_swiginit(self,_windows_.new_ColourData(*args, **kwargs))
2113 __swig_destroy__ = _windows_.delete_ColourData
2114 __del__ = lambda self : None;
2115 def GetChooseFull(*args, **kwargs):
2116 """
2117 GetChooseFull(self) -> bool
2118
2119 Under Windows, determines whether the Windows colour dialog will
2120 display the full dialog with custom colour selection controls. Has no
2121 meaning under other platforms. The default value is true.
2122 """
2123 return _windows_.ColourData_GetChooseFull(*args, **kwargs)
2124
2125 def GetColour(*args, **kwargs):
2126 """
2127 GetColour(self) -> Colour
2128
2129 Gets the colour (pre)selected by the dialog.
2130 """
2131 return _windows_.ColourData_GetColour(*args, **kwargs)
2132
2133 def GetCustomColour(*args, **kwargs):
2134 """
2135 GetCustomColour(self, int i) -> Colour
2136
2137 Gets the i'th custom colour associated with the colour dialog. i
2138 should be an integer between 0 and 15. The default custom colours are
2139 all invalid colours.
2140 """
2141 return _windows_.ColourData_GetCustomColour(*args, **kwargs)
2142
2143 def SetChooseFull(*args, **kwargs):
2144 """
2145 SetChooseFull(self, int flag)
2146
2147 Under Windows, tells the Windows colour dialog to display the full
2148 dialog with custom colour selection controls. Under other platforms,
2149 has no effect. The default value is true.
2150 """
2151 return _windows_.ColourData_SetChooseFull(*args, **kwargs)
2152
2153 def SetColour(*args, **kwargs):
2154 """
2155 SetColour(self, Colour colour)
2156
2157 Sets the default colour for the colour dialog. The default colour is
2158 black.
2159 """
2160 return _windows_.ColourData_SetColour(*args, **kwargs)
2161
2162 def SetCustomColour(*args, **kwargs):
2163 """
2164 SetCustomColour(self, int i, Colour colour)
2165
2166 Sets the i'th custom colour for the colour dialog. i should be an
2167 integer between 0 and 15. The default custom colours are all invalid colours.
2168 """
2169 return _windows_.ColourData_SetCustomColour(*args, **kwargs)
2170
2171 ChooseFull = property(GetChooseFull,SetChooseFull,doc="See `GetChooseFull` and `SetChooseFull`")
2172 Colour = property(GetColour,SetColour,doc="See `GetColour` and `SetColour`")
2173 CustomColour = property(GetCustomColour,SetCustomColour,doc="See `GetCustomColour` and `SetCustomColour`")
2174 _windows_.ColourData_swigregister(ColourData)
2175 FileSelectorPromptStr = cvar.FileSelectorPromptStr
2176 DirSelectorPromptStr = cvar.DirSelectorPromptStr
2177 DirDialogNameStr = cvar.DirDialogNameStr
2178 FileSelectorDefaultWildcardStr = cvar.FileSelectorDefaultWildcardStr
2179 GetTextFromUserPromptStr = cvar.GetTextFromUserPromptStr
2180 MessageBoxCaptionStr = cvar.MessageBoxCaptionStr
2181
2182 class ColourDialog(Dialog):
2183 """This class represents the colour chooser dialog."""
2184 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2185 __repr__ = _swig_repr
2186 def __init__(self, *args, **kwargs):
2187 """
2188 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2189
2190 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2191 which will be copied to the colour dialog's internal ColourData
2192 instance.
2193 """
2194 _windows_.ColourDialog_swiginit(self,_windows_.new_ColourDialog(*args, **kwargs))
2195 self._setOORInfo(self)
2196
2197 def GetColourData(*args, **kwargs):
2198 """
2199 GetColourData(self) -> ColourData
2200
2201 Returns a reference to the `wx.ColourData` used by the dialog.
2202 """
2203 return _windows_.ColourDialog_GetColourData(*args, **kwargs)
2204
2205 ColourData = property(GetColourData,doc="See `GetColourData`")
2206 _windows_.ColourDialog_swigregister(ColourDialog)
2207
2208
2209 def GetColourFromUser(*args, **kwargs):
2210 """
2211 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2212 String caption=EmptyString) -> Colour
2213 """
2214 return _windows_.GetColourFromUser(*args, **kwargs)
2215 DD_NEW_DIR_BUTTON = _windows_.DD_NEW_DIR_BUTTON
2216 DD_DEFAULT_STYLE = _windows_.DD_DEFAULT_STYLE
2217 DD_CHANGE_DIR = _windows_.DD_CHANGE_DIR
2218 class DirDialog(Dialog):
2219 """
2220 wx.DirDialog allows the user to select a directory by browising the
2221 file system.
2222 """
2223 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2224 __repr__ = _swig_repr
2225 def __init__(self, *args, **kwargs):
2226 """
2227 __init__(self, Window parent, String message=DirSelectorPromptStr,
2228 String defaultPath=EmptyString, long style=DD_DEFAULT_STYLE,
2229 Point pos=DefaultPosition, Size size=DefaultSize,
2230 String name=DirDialogNameStr) -> DirDialog
2231
2232 Constructor. Use ShowModal method to show the dialog.
2233 """
2234 _windows_.DirDialog_swiginit(self,_windows_.new_DirDialog(*args, **kwargs))
2235 self._setOORInfo(self)
2236
2237 def GetPath(*args, **kwargs):
2238 """
2239 GetPath(self) -> String
2240
2241 Returns the default or user-selected path.
2242 """
2243 return _windows_.DirDialog_GetPath(*args, **kwargs)
2244
2245 def GetMessage(*args, **kwargs):
2246 """
2247 GetMessage(self) -> String
2248
2249 Returns the message that will be displayed on the dialog.
2250 """
2251 return _windows_.DirDialog_GetMessage(*args, **kwargs)
2252
2253 def SetMessage(*args, **kwargs):
2254 """
2255 SetMessage(self, String message)
2256
2257 Sets the message that will be displayed on the dialog.
2258 """
2259 return _windows_.DirDialog_SetMessage(*args, **kwargs)
2260
2261 def SetPath(*args, **kwargs):
2262 """
2263 SetPath(self, String path)
2264
2265 Sets the default path.
2266 """
2267 return _windows_.DirDialog_SetPath(*args, **kwargs)
2268
2269 Message = property(GetMessage,SetMessage,doc="See `GetMessage` and `SetMessage`")
2270 Path = property(GetPath,SetPath,doc="See `GetPath` and `SetPath`")
2271 _windows_.DirDialog_swigregister(DirDialog)
2272
2273 OPEN = _windows_.OPEN
2274 SAVE = _windows_.SAVE
2275 OVERWRITE_PROMPT = _windows_.OVERWRITE_PROMPT
2276 FILE_MUST_EXIST = _windows_.FILE_MUST_EXIST
2277 MULTIPLE = _windows_.MULTIPLE
2278 CHANGE_DIR = _windows_.CHANGE_DIR
2279 HIDE_READONLY = _windows_.HIDE_READONLY
2280 FD_OPEN = _windows_.FD_OPEN
2281 FD_SAVE = _windows_.FD_SAVE
2282 FD_OVERWRITE_PROMPT = _windows_.FD_OVERWRITE_PROMPT
2283 FD_FILE_MUST_EXIST = _windows_.FD_FILE_MUST_EXIST
2284 FD_MULTIPLE = _windows_.FD_MULTIPLE
2285 FD_CHANGE_DIR = _windows_.FD_CHANGE_DIR
2286 FD_PREVIEW = _windows_.FD_PREVIEW
2287 FD_DEFAULT_STYLE = _windows_.FD_DEFAULT_STYLE
2288 class FileDialog(Dialog):
2289 """
2290 wx.FileDialog allows the user to select one or more files from the
2291 filesystem.
2292 """
2293 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2294 __repr__ = _swig_repr
2295 def __init__(self, *args, **kwargs):
2296 """
2297 __init__(self, Window parent, String message=FileSelectorPromptStr,
2298 String defaultDir=EmptyString, String defaultFile=EmptyString,
2299 String wildcard=FileSelectorDefaultWildcardStr,
2300 long style=FD_DEFAULT_STYLE,
2301 Point pos=DefaultPosition) -> FileDialog
2302
2303 Constructor. Use ShowModal method to show the dialog.
2304 """
2305 _windows_.FileDialog_swiginit(self,_windows_.new_FileDialog(*args, **kwargs))
2306 self._setOORInfo(self)
2307
2308 def SetMessage(*args, **kwargs):
2309 """
2310 SetMessage(self, String message)
2311
2312 Sets the message that will be displayed on the dialog.
2313 """
2314 return _windows_.FileDialog_SetMessage(*args, **kwargs)
2315
2316 def SetPath(*args, **kwargs):
2317 """
2318 SetPath(self, String path)
2319
2320 Sets the path (the combined directory and filename that will be
2321 returned when the dialog is dismissed).
2322 """
2323 return _windows_.FileDialog_SetPath(*args, **kwargs)
2324
2325 def SetDirectory(*args, **kwargs):
2326 """
2327 SetDirectory(self, String dir)
2328
2329 Sets the default directory.
2330 """
2331 return _windows_.FileDialog_SetDirectory(*args, **kwargs)
2332
2333 def SetFilename(*args, **kwargs):
2334 """
2335 SetFilename(self, String name)
2336
2337 Sets the default filename.
2338 """
2339 return _windows_.FileDialog_SetFilename(*args, **kwargs)
2340
2341 def SetWildcard(*args, **kwargs):
2342 """
2343 SetWildcard(self, String wildCard)
2344
2345 Sets the wildcard, which can contain multiple file types, for
2346 example::
2347
2348 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2349
2350 """
2351 return _windows_.FileDialog_SetWildcard(*args, **kwargs)
2352
2353 def SetFilterIndex(*args, **kwargs):
2354 """
2355 SetFilterIndex(self, int filterIndex)
2356
2357 Sets the default filter index, starting from zero.
2358 """
2359 return _windows_.FileDialog_SetFilterIndex(*args, **kwargs)
2360
2361 def GetMessage(*args, **kwargs):
2362 """
2363 GetMessage(self) -> String
2364
2365 Returns the message that will be displayed on the dialog.
2366 """
2367 return _windows_.FileDialog_GetMessage(*args, **kwargs)
2368
2369 def GetPath(*args, **kwargs):
2370 """
2371 GetPath(self) -> String
2372
2373 Returns the full path (directory and filename) of the selected file.
2374 """
2375 return _windows_.FileDialog_GetPath(*args, **kwargs)
2376
2377 def GetDirectory(*args, **kwargs):
2378 """
2379 GetDirectory(self) -> String
2380
2381 Returns the default directory.
2382 """
2383 return _windows_.FileDialog_GetDirectory(*args, **kwargs)
2384
2385 def GetFilename(*args, **kwargs):
2386 """
2387 GetFilename(self) -> String
2388
2389 Returns the default filename.
2390 """
2391 return _windows_.FileDialog_GetFilename(*args, **kwargs)
2392
2393 def GetWildcard(*args, **kwargs):
2394 """
2395 GetWildcard(self) -> String
2396
2397 Returns the file dialog wildcard.
2398 """
2399 return _windows_.FileDialog_GetWildcard(*args, **kwargs)
2400
2401 def GetFilterIndex(*args, **kwargs):
2402 """
2403 GetFilterIndex(self) -> int
2404
2405 Returns the index into the list of filters supplied, optionally, in
2406 the wildcard parameter. Before the dialog is shown, this is the index
2407 which will be used when the dialog is first displayed. After the
2408 dialog is shown, this is the index selected by the user.
2409 """
2410 return _windows_.FileDialog_GetFilterIndex(*args, **kwargs)
2411
2412 def GetFilenames(*args, **kwargs):
2413 """
2414 GetFilenames(self) -> PyObject
2415
2416 Returns a list of filenames chosen in the dialog. This function
2417 should only be used with the dialogs which have wx.MULTIPLE style, use
2418 GetFilename for the others.
2419 """
2420 return _windows_.FileDialog_GetFilenames(*args, **kwargs)
2421
2422 def GetPaths(*args, **kwargs):
2423 """
2424 GetPaths(self) -> PyObject
2425
2426 Fills the array paths with the full paths of the files chosen. This
2427 function should only be used with the dialogs which have wx.MULTIPLE
2428 style, use GetPath for the others.
2429 """
2430 return _windows_.FileDialog_GetPaths(*args, **kwargs)
2431
2432 Directory = property(GetDirectory,SetDirectory,doc="See `GetDirectory` and `SetDirectory`")
2433 Filename = property(GetFilename,SetFilename,doc="See `GetFilename` and `SetFilename`")
2434 Filenames = property(GetFilenames,doc="See `GetFilenames`")
2435 FilterIndex = property(GetFilterIndex,SetFilterIndex,doc="See `GetFilterIndex` and `SetFilterIndex`")
2436 Message = property(GetMessage,SetMessage,doc="See `GetMessage` and `SetMessage`")
2437 Path = property(GetPath,SetPath,doc="See `GetPath` and `SetPath`")
2438 Paths = property(GetPaths,doc="See `GetPaths`")
2439 Wildcard = property(GetWildcard,SetWildcard,doc="See `GetWildcard` and `SetWildcard`")
2440 _windows_.FileDialog_swigregister(FileDialog)
2441
2442 CHOICEDLG_STYLE = _windows_.CHOICEDLG_STYLE
2443 class MultiChoiceDialog(Dialog):
2444 """A simple dialog with a multi selection listbox."""
2445 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2446 __repr__ = _swig_repr
2447 def __init__(self, *args, **kwargs):
2448 """
2449 __init__(self, Window parent, String message, String caption,
2450 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2451 Point pos=DefaultPosition) -> MultiChoiceDialog
2452
2453 Constructor. Use the `ShowModal` method to show the dialog.
2454
2455 :param parent: The parent window.
2456 :param message: Text to display above the list of selections.
2457 :param caption: Text to use in the title bar of the dialog.
2458 :param choices: A list of strings or unicode objects that the
2459 user is allowed to choose from.
2460 :param style: Styles to apply to the dialog. The default value is
2461 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2462 :param pos: Where to position the dialog (not used on Windows)
2463
2464
2465 """
2466 _windows_.MultiChoiceDialog_swiginit(self,_windows_.new_MultiChoiceDialog(*args, **kwargs))
2467 self._setOORInfo(self)
2468
2469 def SetSelections(*args, **kwargs):
2470 """
2471 SetSelections(List selections)
2472
2473 Specify the items in the list that should be selected, using a list of
2474 integers. The list should specify the indexes of the items that
2475 should be selected.
2476 """
2477 return _windows_.MultiChoiceDialog_SetSelections(*args, **kwargs)
2478
2479 def GetSelections(*args, **kwargs):
2480 """
2481 GetSelections() -> [selections]
2482
2483 Returns a list of integers representing the items that are selected.
2484 If an item is selected then its index will appear in the list.
2485 """
2486 return _windows_.MultiChoiceDialog_GetSelections(*args, **kwargs)
2487
2488 _windows_.MultiChoiceDialog_swigregister(MultiChoiceDialog)
2489
2490 class SingleChoiceDialog(Dialog):
2491 """A simple dialog with a single selection listbox."""
2492 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2493 __repr__ = _swig_repr
2494 def __init__(self, *args, **kwargs):
2495 """
2496 __init__(Window parent, String message, String caption,
2497 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2498 Point pos=DefaultPosition) -> SingleChoiceDialog
2499
2500 Constructor. Use ShowModal method to show the dialog.
2501 """
2502 _windows_.SingleChoiceDialog_swiginit(self,_windows_.new_SingleChoiceDialog(*args, **kwargs))
2503 self._setOORInfo(self)
2504
2505 def GetSelection(*args, **kwargs):
2506 """
2507 GetSelection(self) -> int
2508
2509 Get the index of the currently selected item.
2510 """
2511 return _windows_.SingleChoiceDialog_GetSelection(*args, **kwargs)
2512
2513 def GetStringSelection(*args, **kwargs):
2514 """
2515 GetStringSelection(self) -> String
2516
2517 Returns the string value of the currently selected item
2518 """
2519 return _windows_.SingleChoiceDialog_GetStringSelection(*args, **kwargs)
2520
2521 def SetSelection(*args, **kwargs):
2522 """
2523 SetSelection(self, int sel)
2524
2525 Set the current selected item to sel
2526 """
2527 return _windows_.SingleChoiceDialog_SetSelection(*args, **kwargs)
2528
2529 _windows_.SingleChoiceDialog_swigregister(SingleChoiceDialog)
2530
2531 TextEntryDialogStyle = _windows_.TextEntryDialogStyle
2532 class TextEntryDialog(Dialog):
2533 """A dialog with text control, [ok] and [cancel] buttons"""
2534 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2535 __repr__ = _swig_repr
2536 def __init__(self, *args, **kwargs):
2537 """
2538 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2539 String defaultValue=EmptyString,
2540 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2541
2542 Constructor. Use ShowModal method to show the dialog.
2543 """
2544 _windows_.TextEntryDialog_swiginit(self,_windows_.new_TextEntryDialog(*args, **kwargs))
2545 self._setOORInfo(self)
2546
2547 def GetValue(*args, **kwargs):
2548 """
2549 GetValue(self) -> String
2550
2551 Returns the text that the user has entered if the user has pressed OK,
2552 or the original value if the user has pressed Cancel.
2553 """
2554 return _windows_.TextEntryDialog_GetValue(*args, **kwargs)
2555
2556 def SetValue(*args, **kwargs):
2557 """
2558 SetValue(self, String value)
2559
2560 Sets the default text value.
2561 """
2562 return _windows_.TextEntryDialog_SetValue(*args, **kwargs)
2563
2564 _windows_.TextEntryDialog_swigregister(TextEntryDialog)
2565
2566 class PasswordEntryDialog(TextEntryDialog):
2567 """Proxy of C++ PasswordEntryDialog class"""
2568 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2569 __repr__ = _swig_repr
2570 def __init__(self, *args, **kwargs):
2571 """
2572 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2573 String value=EmptyString,
2574 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2575 """
2576 _windows_.PasswordEntryDialog_swiginit(self,_windows_.new_PasswordEntryDialog(*args, **kwargs))
2577 _windows_.PasswordEntryDialog_swigregister(PasswordEntryDialog)
2578 GetPasswordFromUserPromptStr = cvar.GetPasswordFromUserPromptStr
2579
2580 class NumberEntryDialog(Dialog):
2581 """A dialog with spin control, ok and cancel buttons."""
2582 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2583 __repr__ = _swig_repr
2584 def __init__(self, *args, **kwargs):
2585 """
2586 __init__(self, Window parent, String message, String prompt, String caption,
2587 long value, long min, long max, Point pos=DefaultPosition) -> NumberEntryDialog
2588
2589 Constructor. Use ShowModal method to show the dialog.
2590 """
2591 _windows_.NumberEntryDialog_swiginit(self,_windows_.new_NumberEntryDialog(*args, **kwargs))
2592 self._setOORInfo(self)
2593
2594 def GetValue(*args, **kwargs):
2595 """GetValue(self) -> long"""
2596 return _windows_.NumberEntryDialog_GetValue(*args, **kwargs)
2597
2598 _windows_.NumberEntryDialog_swigregister(NumberEntryDialog)
2599
2600 class FontData(_core.Object):
2601 """
2602 This class holds a variety of information related to font dialogs and
2603 is used to transfer settings to and results from a `wx.FontDialog`.
2604 """
2605 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2606 __repr__ = _swig_repr
2607 def __init__(self, *args, **kwargs):
2608 """
2609 __init__(self) -> FontData
2610
2611 This class holds a variety of information related to font dialogs and
2612 is used to transfer settings to and results from a `wx.FontDialog`.
2613 """
2614 _windows_.FontData_swiginit(self,_windows_.new_FontData(*args, **kwargs))
2615 __swig_destroy__ = _windows_.delete_FontData
2616 __del__ = lambda self : None;
2617 def EnableEffects(*args, **kwargs):
2618 """
2619 EnableEffects(self, bool enable)
2620
2621 Enables or disables 'effects' under MS Windows only. This refers to
2622 the controls for manipulating colour, strikeout and underline
2623 properties. The default value is true.
2624 """
2625 return _windows_.FontData_EnableEffects(*args, **kwargs)
2626
2627 def GetAllowSymbols(*args, **kwargs):
2628 """
2629 GetAllowSymbols(self) -> bool
2630
2631 Under MS Windows, returns a flag determining whether symbol fonts can
2632 be selected. Has no effect on other platforms. The default value is
2633 true.
2634 """
2635 return _windows_.FontData_GetAllowSymbols(*args, **kwargs)
2636
2637 def GetColour(*args, **kwargs):
2638 """
2639 GetColour(self) -> Colour
2640
2641 Gets the colour associated with the font dialog. The default value is
2642 black.
2643 """
2644 return _windows_.FontData_GetColour(*args, **kwargs)
2645
2646 def GetChosenFont(*args, **kwargs):
2647 """
2648 GetChosenFont(self) -> Font
2649
2650 Gets the font chosen by the user.
2651 """
2652 return _windows_.FontData_GetChosenFont(*args, **kwargs)
2653
2654 def GetEnableEffects(*args, **kwargs):
2655 """
2656 GetEnableEffects(self) -> bool
2657
2658 Determines whether 'effects' are enabled under Windows.
2659 """
2660 return _windows_.FontData_GetEnableEffects(*args, **kwargs)
2661
2662 def GetInitialFont(*args, **kwargs):
2663 """
2664 GetInitialFont(self) -> Font
2665
2666 Gets the font that will be initially used by the font dialog. This
2667 should have previously been set by the application.
2668 """
2669 return _windows_.FontData_GetInitialFont(*args, **kwargs)
2670
2671 def GetShowHelp(*args, **kwargs):
2672 """
2673 GetShowHelp(self) -> bool
2674
2675 Returns true if the Help button will be shown (Windows only). The
2676 default value is false.
2677 """
2678 return _windows_.FontData_GetShowHelp(*args, **kwargs)
2679
2680 def SetAllowSymbols(*args, **kwargs):
2681 """
2682 SetAllowSymbols(self, bool allowSymbols)
2683
2684 Under MS Windows, determines whether symbol fonts can be selected. Has
2685 no effect on other platforms. The default value is true.
2686 """
2687 return _windows_.FontData_SetAllowSymbols(*args, **kwargs)
2688
2689 def SetChosenFont(*args, **kwargs):
2690 """
2691 SetChosenFont(self, Font font)
2692
2693 Sets the font that will be returned to the user (normally for internal
2694 use only).
2695 """
2696 return _windows_.FontData_SetChosenFont(*args, **kwargs)
2697
2698 def SetColour(*args, **kwargs):
2699 """
2700 SetColour(self, Colour colour)
2701
2702 Sets the colour that will be used for the font foreground colour. The
2703 default colour is black.
2704 """
2705 return _windows_.FontData_SetColour(*args, **kwargs)
2706
2707 def SetInitialFont(*args, **kwargs):
2708 """
2709 SetInitialFont(self, Font font)
2710
2711 Sets the font that will be initially used by the font dialog.
2712 """
2713 return _windows_.FontData_SetInitialFont(*args, **kwargs)
2714
2715 def SetRange(*args, **kwargs):
2716 """
2717 SetRange(self, int min, int max)
2718
2719 Sets the valid range for the font point size (Windows only). The
2720 default is 0, 0 (unrestricted range).
2721 """
2722 return _windows_.FontData_SetRange(*args, **kwargs)
2723
2724 def SetShowHelp(*args, **kwargs):
2725 """
2726 SetShowHelp(self, bool showHelp)
2727
2728 Determines whether the Help button will be displayed in the font
2729 dialog (Windows only). The default value is false.
2730 """
2731 return _windows_.FontData_SetShowHelp(*args, **kwargs)
2732
2733 AllowSymbols = property(GetAllowSymbols,SetAllowSymbols,doc="See `GetAllowSymbols` and `SetAllowSymbols`")
2734 ChosenFont = property(GetChosenFont,SetChosenFont,doc="See `GetChosenFont` and `SetChosenFont`")
2735 Colour = property(GetColour,SetColour,doc="See `GetColour` and `SetColour`")
2736 EnableEffects = property(GetEnableEffects,doc="See `GetEnableEffects`")
2737 InitialFont = property(GetInitialFont,SetInitialFont,doc="See `GetInitialFont` and `SetInitialFont`")
2738 ShowHelp = property(GetShowHelp,SetShowHelp,doc="See `GetShowHelp` and `SetShowHelp`")
2739 _windows_.FontData_swigregister(FontData)
2740
2741 class FontDialog(Dialog):
2742 """
2743 wx.FontDialog allows the user to select a system font and its attributes.
2744
2745 :see: `wx.FontData`
2746
2747 """
2748 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2749 __repr__ = _swig_repr
2750 def __init__(self, *args, **kwargs):
2751 """
2752 __init__(self, Window parent, FontData data) -> FontDialog
2753
2754 Constructor. Pass a parent window and the `wx.FontData` object to be
2755 used to initialize the dialog controls. Call `ShowModal` to display
2756 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2757 results with via the `wx.FontData` returned by `GetFontData`.
2758 """
2759 _windows_.FontDialog_swiginit(self,_windows_.new_FontDialog(*args, **kwargs))
2760 self._setOORInfo(self)
2761
2762 def GetFontData(*args, **kwargs):
2763 """
2764 GetFontData(self) -> FontData
2765
2766 Returns a reference to the internal `wx.FontData` used by the
2767 wx.FontDialog.
2768 """
2769 return _windows_.FontDialog_GetFontData(*args, **kwargs)
2770
2771 FontData = property(GetFontData,doc="See `GetFontData`")
2772 _windows_.FontDialog_swigregister(FontDialog)
2773
2774
2775 def GetFontFromUser(*args, **kwargs):
2776 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2777 return _windows_.GetFontFromUser(*args, **kwargs)
2778 class MessageDialog(Dialog):
2779 """
2780 This class provides a simple dialog that shows a single or multi-line
2781 message, with a choice of OK, Yes, No and/or Cancel buttons.
2782 """
2783 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2784 __repr__ = _swig_repr
2785 def __init__(self, *args, **kwargs):
2786 """
2787 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2788 long style=wxOK|wxCANCEL|wxCENTRE,
2789 Point pos=DefaultPosition) -> MessageDialog
2790
2791 Constructor, use `ShowModal` to display the dialog.
2792 """
2793 _windows_.MessageDialog_swiginit(self,_windows_.new_MessageDialog(*args, **kwargs))
2794 self._setOORInfo(self)
2795
2796 _windows_.MessageDialog_swigregister(MessageDialog)
2797
2798 PD_AUTO_HIDE = _windows_.PD_AUTO_HIDE
2799 PD_APP_MODAL = _windows_.PD_APP_MODAL
2800 PD_CAN_ABORT = _windows_.PD_CAN_ABORT
2801 PD_ELAPSED_TIME = _windows_.PD_ELAPSED_TIME
2802 PD_ESTIMATED_TIME = _windows_.PD_ESTIMATED_TIME
2803 PD_REMAINING_TIME = _windows_.PD_REMAINING_TIME
2804 PD_SMOOTH = _windows_.PD_SMOOTH
2805 PD_CAN_SKIP = _windows_.PD_CAN_SKIP
2806 class ProgressDialog(Frame):
2807 """
2808 A dialog that shows a short message and a progress bar. Optionally, it
2809 can display an ABORT button.
2810 """
2811 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2812 __repr__ = _swig_repr
2813 def __init__(self, *args, **kwargs):
2814 """
2815 __init__(self, String title, String message, int maximum=100, Window parent=None,
2816 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2817
2818 Constructor. Creates the dialog, displays it and disables user input
2819 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2820 parent window only.
2821 """
2822 _windows_.ProgressDialog_swiginit(self,_windows_.new_ProgressDialog(*args, **kwargs))
2823 self._setOORInfo(self)
2824
2825 def Update(*args, **kwargs):
2826 """
2827 Update(self, int value, String newmsg) --> (continue, skip)
2828
2829 Updates the dialog, setting the progress bar to the new value and, if
2830 given changes the message above it. The value given should be less
2831 than or equal to the maximum value given to the constructor and the
2832 dialog is closed if it is equal to the maximum. Returns a tuple of
2833 boolean values, ``(continue, skip)`` where ``continue`` is ``True``
2834 unless the Cancel button has been pressed, and ``skip`` is ``False``
2835 unless the Skip button (if any) has been pressed.
2836
2837 If the ``continue`` return value is ``false``, the application can either
2838 immediately destroy the dialog or ask the user for confirmation, and if the
2839 abort is not confirmed the dialog may be resumed with `Resume` function.
2840
2841 """
2842 return _windows_.ProgressDialog_Update(*args, **kwargs)
2843
2844 def UpdatePulse(*args, **kwargs):
2845 """
2846 UpdatePulse(self, String newmsg) --> (continue, skip)
2847
2848 Just like `Update` but switches the dialog to use a gauge in
2849 interminante mode and calls `wx.Gauge.Pulse` to show the user a bit of
2850 progress.
2851 """
2852 return _windows_.ProgressDialog_UpdatePulse(*args, **kwargs)
2853
2854 def Resume(*args, **kwargs):
2855 """
2856 Resume(self)
2857
2858 Can be used to continue with the dialog, after the user had chosen to
2859 abort.
2860 """
2861 return _windows_.ProgressDialog_Resume(*args, **kwargs)
2862
2863 _windows_.ProgressDialog_swigregister(ProgressDialog)
2864
2865 FR_DOWN = _windows_.FR_DOWN
2866 FR_WHOLEWORD = _windows_.FR_WHOLEWORD
2867 FR_MATCHCASE = _windows_.FR_MATCHCASE
2868 FR_REPLACEDIALOG = _windows_.FR_REPLACEDIALOG
2869 FR_NOUPDOWN = _windows_.FR_NOUPDOWN
2870 FR_NOMATCHCASE = _windows_.FR_NOMATCHCASE
2871 FR_NOWHOLEWORD = _windows_.FR_NOWHOLEWORD
2872 wxEVT_COMMAND_FIND = _windows_.wxEVT_COMMAND_FIND
2873 wxEVT_COMMAND_FIND_NEXT = _windows_.wxEVT_COMMAND_FIND_NEXT
2874 wxEVT_COMMAND_FIND_REPLACE = _windows_.wxEVT_COMMAND_FIND_REPLACE
2875 wxEVT_COMMAND_FIND_REPLACE_ALL = _windows_.wxEVT_COMMAND_FIND_REPLACE_ALL
2876 wxEVT_COMMAND_FIND_CLOSE = _windows_.wxEVT_COMMAND_FIND_CLOSE
2877 EVT_FIND = wx.PyEventBinder( wxEVT_COMMAND_FIND, 1 )
2878 EVT_FIND_NEXT = wx.PyEventBinder( wxEVT_COMMAND_FIND_NEXT, 1 )
2879 EVT_FIND_REPLACE = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE, 1 )
2880 EVT_FIND_REPLACE_ALL = wx.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL, 1 )
2881 EVT_FIND_CLOSE = wx.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE, 1 )
2882
2883 # For backwards compatibility. Should they be removed?
2884 EVT_COMMAND_FIND = EVT_FIND
2885 EVT_COMMAND_FIND_NEXT = EVT_FIND_NEXT
2886 EVT_COMMAND_FIND_REPLACE = EVT_FIND_REPLACE
2887 EVT_COMMAND_FIND_REPLACE_ALL = EVT_FIND_REPLACE_ALL
2888 EVT_COMMAND_FIND_CLOSE = EVT_FIND_CLOSE
2889
2890 class FindDialogEvent(_core.CommandEvent):
2891 """Events for the FindReplaceDialog"""
2892 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2893 __repr__ = _swig_repr
2894 def __init__(self, *args, **kwargs):
2895 """
2896 __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2897
2898 Events for the FindReplaceDialog
2899 """
2900 _windows_.FindDialogEvent_swiginit(self,_windows_.new_FindDialogEvent(*args, **kwargs))
2901 def GetFlags(*args, **kwargs):
2902 """
2903 GetFlags(self) -> int
2904
2905 Get the currently selected flags: this is the combination of
2906 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2907 """
2908 return _windows_.FindDialogEvent_GetFlags(*args, **kwargs)
2909
2910 def GetFindString(*args, **kwargs):
2911 """
2912 GetFindString(self) -> String
2913
2914 Return the string to find (never empty).
2915 """
2916 return _windows_.FindDialogEvent_GetFindString(*args, **kwargs)
2917
2918 def GetReplaceString(*args, **kwargs):
2919 """
2920 GetReplaceString(self) -> String
2921
2922 Return the string to replace the search string with (only for replace
2923 and replace all events).
2924 """
2925 return _windows_.FindDialogEvent_GetReplaceString(*args, **kwargs)
2926
2927 def GetDialog(*args, **kwargs):
2928 """
2929 GetDialog(self) -> FindReplaceDialog
2930
2931 Return the pointer to the dialog which generated this event.
2932 """
2933 return _windows_.FindDialogEvent_GetDialog(*args, **kwargs)
2934
2935 def SetFlags(*args, **kwargs):
2936 """SetFlags(self, int flags)"""
2937 return _windows_.FindDialogEvent_SetFlags(*args, **kwargs)
2938
2939 def SetFindString(*args, **kwargs):
2940 """SetFindString(self, String str)"""
2941 return _windows_.FindDialogEvent_SetFindString(*args, **kwargs)
2942
2943 def SetReplaceString(*args, **kwargs):
2944 """SetReplaceString(self, String str)"""
2945 return _windows_.FindDialogEvent_SetReplaceString(*args, **kwargs)
2946
2947 Dialog = property(GetDialog,doc="See `GetDialog`")
2948 FindString = property(GetFindString,SetFindString,doc="See `GetFindString` and `SetFindString`")
2949 Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`")
2950 ReplaceString = property(GetReplaceString,SetReplaceString,doc="See `GetReplaceString` and `SetReplaceString`")
2951 _windows_.FindDialogEvent_swigregister(FindDialogEvent)
2952
2953 class FindReplaceData(_core.Object):
2954 """
2955 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2956 to initialize the dialog with the default values and will keep the
2957 last values from the dialog when it is closed. It is also updated each
2958 time a `wx.FindDialogEvent` is generated so instead of using the
2959 `wx.FindDialogEvent` methods you can also directly query this object.
2960
2961 Note that all SetXXX() methods may only be called before showing the
2962 dialog and calling them has no effect later.
2963 """
2964 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2965 __repr__ = _swig_repr
2966 def __init__(self, *args, **kwargs):
2967 """
2968 __init__(self, int flags=0) -> FindReplaceData
2969
2970 Constuctor initializes the flags to default value (0).
2971 """
2972 _windows_.FindReplaceData_swiginit(self,_windows_.new_FindReplaceData(*args, **kwargs))
2973 __swig_destroy__ = _windows_.delete_FindReplaceData
2974 __del__ = lambda self : None;
2975 def GetFindString(*args, **kwargs):
2976 """
2977 GetFindString(self) -> String
2978
2979 Get the string to find.
2980 """
2981 return _windows_.FindReplaceData_GetFindString(*args, **kwargs)
2982
2983 def GetReplaceString(*args, **kwargs):
2984 """
2985 GetReplaceString(self) -> String
2986
2987 Get the replacement string.
2988 """
2989 return _windows_.FindReplaceData_GetReplaceString(*args, **kwargs)
2990
2991 def GetFlags(*args, **kwargs):
2992 """
2993 GetFlags(self) -> int
2994
2995 Get the combination of flag values.
2996 """
2997 return _windows_.FindReplaceData_GetFlags(*args, **kwargs)
2998
2999 def SetFlags(*args, **kwargs):
3000 """
3001 SetFlags(self, int flags)
3002
3003 Set the flags to use to initialize the controls of the dialog.
3004 """
3005 return _windows_.FindReplaceData_SetFlags(*args, **kwargs)
3006
3007 def SetFindString(*args, **kwargs):
3008 """
3009 SetFindString(self, String str)
3010
3011 Set the string to find (used as initial value by the dialog).
3012 """
3013 return _windows_.FindReplaceData_SetFindString(*args, **kwargs)
3014
3015 def SetReplaceString(*args, **kwargs):
3016 """
3017 SetReplaceString(self, String str)
3018
3019 Set the replacement string (used as initial value by the dialog).
3020 """
3021 return _windows_.FindReplaceData_SetReplaceString(*args, **kwargs)
3022
3023 FindString = property(GetFindString,SetFindString,doc="See `GetFindString` and `SetFindString`")
3024 Flags = property(GetFlags,SetFlags,doc="See `GetFlags` and `SetFlags`")
3025 ReplaceString = property(GetReplaceString,SetReplaceString,doc="See `GetReplaceString` and `SetReplaceString`")
3026 _windows_.FindReplaceData_swigregister(FindReplaceData)
3027
3028 class FindReplaceDialog(Dialog):
3029 """
3030 wx.FindReplaceDialog is a standard modeless dialog which is used to
3031 allow the user to search for some text (and possibly replace it with
3032 something else). The actual searching is supposed to be done in the
3033 owner window which is the parent of this dialog. Note that it means
3034 that unlike for the other standard dialogs this one must have a parent
3035 window. Also note that there is no way to use this dialog in a modal
3036 way; it is always, by design and implementation, modeless.
3037 """
3038 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3039 __repr__ = _swig_repr
3040 def __init__(self, *args, **kwargs):
3041 """
3042 __init__(self, Window parent, FindReplaceData data, String title,
3043 int style=0) -> FindReplaceDialog
3044
3045 Create a FindReplaceDialog. The parent and data parameters must be
3046 non-None. Use Show to display the dialog.
3047 """
3048 _windows_.FindReplaceDialog_swiginit(self,_windows_.new_FindReplaceDialog(*args, **kwargs))
3049 self._setOORInfo(self)
3050
3051 def Create(*args, **kwargs):
3052 """
3053 Create(self, Window parent, FindReplaceData data, String title,
3054 int style=0) -> bool
3055
3056 Create the dialog, for 2-phase create.
3057 """
3058 return _windows_.FindReplaceDialog_Create(*args, **kwargs)
3059
3060 def GetData(*args, **kwargs):
3061 """
3062 GetData(self) -> FindReplaceData
3063
3064 Get the FindReplaceData object used by this dialog.
3065 """
3066 return _windows_.FindReplaceDialog_GetData(*args, **kwargs)
3067
3068 def SetData(*args, **kwargs):
3069 """
3070 SetData(self, FindReplaceData data)
3071
3072 Set the FindReplaceData object used by this dialog.
3073 """
3074 return _windows_.FindReplaceDialog_SetData(*args, **kwargs)
3075
3076 Data = property(GetData,SetData,doc="See `GetData` and `SetData`")
3077 _windows_.FindReplaceDialog_swigregister(FindReplaceDialog)
3078
3079 def PreFindReplaceDialog(*args, **kwargs):
3080 """
3081 PreFindReplaceDialog() -> FindReplaceDialog
3082
3083 Precreate a FindReplaceDialog for 2-phase creation
3084 """
3085 val = _windows_.new_PreFindReplaceDialog(*args, **kwargs)
3086 return val
3087
3088 #---------------------------------------------------------------------------
3089
3090 IDM_WINDOWTILE = _windows_.IDM_WINDOWTILE
3091 IDM_WINDOWTILEHOR = _windows_.IDM_WINDOWTILEHOR
3092 IDM_WINDOWCASCADE = _windows_.IDM_WINDOWCASCADE
3093 IDM_WINDOWICONS = _windows_.IDM_WINDOWICONS
3094 IDM_WINDOWNEXT = _windows_.IDM_WINDOWNEXT
3095 IDM_WINDOWTILEVERT = _windows_.IDM_WINDOWTILEVERT
3096 IDM_WINDOWPREV = _windows_.IDM_WINDOWPREV
3097 FIRST_MDI_CHILD = _windows_.FIRST_MDI_CHILD
3098 LAST_MDI_CHILD = _windows_.LAST_MDI_CHILD
3099 class MDIParentFrame(Frame):
3100 """Proxy of C++ MDIParentFrame class"""
3101 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3102 __repr__ = _swig_repr
3103 def __init__(self, *args, **kwargs):
3104 """
3105 __init__(self, Window parent, int id=-1, String title=EmptyString,
3106 Point pos=DefaultPosition, Size size=DefaultSize,
3107 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3108 String name=FrameNameStr) -> MDIParentFrame
3109 """
3110 _windows_.MDIParentFrame_swiginit(self,_windows_.new_MDIParentFrame(*args, **kwargs))
3111 self._setOORInfo(self)
3112
3113 def Create(*args, **kwargs):
3114 """
3115 Create(self, Window parent, int id=-1, String title=EmptyString,
3116 Point pos=DefaultPosition, Size size=DefaultSize,
3117 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3118 String name=FrameNameStr) -> bool
3119 """
3120 return _windows_.MDIParentFrame_Create(*args, **kwargs)
3121
3122 def ActivateNext(*args, **kwargs):
3123 """ActivateNext(self)"""
3124 return _windows_.MDIParentFrame_ActivateNext(*args, **kwargs)
3125
3126 def ActivatePrevious(*args, **kwargs):
3127 """ActivatePrevious(self)"""
3128 return _windows_.MDIParentFrame_ActivatePrevious(*args, **kwargs)
3129
3130 def ArrangeIcons(*args, **kwargs):
3131 """ArrangeIcons(self)"""
3132 return _windows_.MDIParentFrame_ArrangeIcons(*args, **kwargs)
3133
3134 def Cascade(*args, **kwargs):
3135 """Cascade(self)"""
3136 return _windows_.MDIParentFrame_Cascade(*args, **kwargs)
3137
3138 def GetActiveChild(*args, **kwargs):
3139 """GetActiveChild(self) -> MDIChildFrame"""
3140 return _windows_.MDIParentFrame_GetActiveChild(*args, **kwargs)
3141
3142 def GetClientWindow(*args, **kwargs):
3143 """GetClientWindow(self) -> MDIClientWindow"""
3144 return _windows_.MDIParentFrame_GetClientWindow(*args, **kwargs)
3145
3146 def GetToolBar(*args, **kwargs):
3147 """GetToolBar(self) -> Window"""
3148 return _windows_.MDIParentFrame_GetToolBar(*args, **kwargs)
3149
3150 def GetWindowMenu(*args, **kwargs):
3151 """GetWindowMenu(self) -> Menu"""
3152 return _windows_.MDIParentFrame_GetWindowMenu(*args, **kwargs)
3153
3154 def SetWindowMenu(*args, **kwargs):
3155 """SetWindowMenu(self, Menu menu)"""
3156 return _windows_.MDIParentFrame_SetWindowMenu(*args, **kwargs)
3157
3158 def Tile(*args, **kwargs):
3159 """Tile(self, int orient=HORIZONTAL)"""
3160 return _windows_.MDIParentFrame_Tile(*args, **kwargs)
3161
3162 _windows_.MDIParentFrame_swigregister(MDIParentFrame)
3163
3164 def PreMDIParentFrame(*args, **kwargs):
3165 """PreMDIParentFrame() -> MDIParentFrame"""
3166 val = _windows_.new_PreMDIParentFrame(*args, **kwargs)
3167 return val
3168
3169 class MDIChildFrame(Frame):
3170 """Proxy of C++ MDIChildFrame class"""
3171 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3172 __repr__ = _swig_repr
3173 def __init__(self, *args, **kwargs):
3174 """
3175 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3176 Point pos=DefaultPosition, Size size=DefaultSize,
3177 long style=DEFAULT_FRAME_STYLE,
3178 String name=FrameNameStr) -> MDIChildFrame
3179 """
3180 _windows_.MDIChildFrame_swiginit(self,_windows_.new_MDIChildFrame(*args, **kwargs))
3181 self._setOORInfo(self)
3182
3183 def Create(*args, **kwargs):
3184 """
3185 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3186 Point pos=DefaultPosition, Size size=DefaultSize,
3187 long style=DEFAULT_FRAME_STYLE,
3188 String name=FrameNameStr) -> bool
3189 """
3190 return _windows_.MDIChildFrame_Create(*args, **kwargs)
3191
3192 def Activate(*args, **kwargs):
3193 """Activate(self)"""
3194 return _windows_.MDIChildFrame_Activate(*args, **kwargs)
3195
3196 _windows_.MDIChildFrame_swigregister(MDIChildFrame)
3197
3198 def PreMDIChildFrame(*args, **kwargs):
3199 """PreMDIChildFrame() -> MDIChildFrame"""
3200 val = _windows_.new_PreMDIChildFrame(*args, **kwargs)
3201 return val
3202
3203 class MDIClientWindow(_core.Window):
3204 """Proxy of C++ MDIClientWindow class"""
3205 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3206 __repr__ = _swig_repr
3207 def __init__(self, *args, **kwargs):
3208 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3209 _windows_.MDIClientWindow_swiginit(self,_windows_.new_MDIClientWindow(*args, **kwargs))
3210 self._setOORInfo(self)
3211
3212 def Create(*args, **kwargs):
3213 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3214 return _windows_.MDIClientWindow_Create(*args, **kwargs)
3215
3216 _windows_.MDIClientWindow_swigregister(MDIClientWindow)
3217
3218 def PreMDIClientWindow(*args, **kwargs):
3219 """PreMDIClientWindow() -> MDIClientWindow"""
3220 val = _windows_.new_PreMDIClientWindow(*args, **kwargs)
3221 return val
3222
3223 #---------------------------------------------------------------------------
3224
3225 class PyWindow(_core.Window):
3226 """Proxy of C++ PyWindow class"""
3227 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3228 __repr__ = _swig_repr
3229 def __init__(self, *args, **kwargs):
3230 """
3231 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3232 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3233 """
3234 _windows_.PyWindow_swiginit(self,_windows_.new_PyWindow(*args, **kwargs))
3235 self._setOORInfo(self); self._setCallbackInfo(self, PyWindow)
3236
3237 def _setCallbackInfo(*args, **kwargs):
3238 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3239 return _windows_.PyWindow__setCallbackInfo(*args, **kwargs)
3240
3241 def SetBestSize(*args, **kwargs):
3242 """SetBestSize(self, Size size)"""
3243 return _windows_.PyWindow_SetBestSize(*args, **kwargs)
3244
3245 def DoEraseBackground(*args, **kwargs):
3246 """DoEraseBackground(self, DC dc) -> bool"""
3247 return _windows_.PyWindow_DoEraseBackground(*args, **kwargs)
3248
3249 def DoMoveWindow(*args, **kwargs):
3250 """DoMoveWindow(self, int x, int y, int width, int height)"""
3251 return _windows_.PyWindow_DoMoveWindow(*args, **kwargs)
3252
3253 def DoSetSize(*args, **kwargs):
3254 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3255 return _windows_.PyWindow_DoSetSize(*args, **kwargs)
3256
3257 def DoSetClientSize(*args, **kwargs):
3258 """DoSetClientSize(self, int width, int height)"""
3259 return _windows_.PyWindow_DoSetClientSize(*args, **kwargs)
3260
3261 def DoSetVirtualSize(*args, **kwargs):
3262 """DoSetVirtualSize(self, int x, int y)"""
3263 return _windows_.PyWindow_DoSetVirtualSize(*args, **kwargs)
3264
3265 def DoGetSize(*args, **kwargs):
3266 """DoGetSize() -> (width, height)"""
3267 return _windows_.PyWindow_DoGetSize(*args, **kwargs)
3268
3269 def DoGetClientSize(*args, **kwargs):
3270 """DoGetClientSize() -> (width, height)"""
3271 return _windows_.PyWindow_DoGetClientSize(*args, **kwargs)
3272
3273 def DoGetPosition(*args, **kwargs):
3274 """DoGetPosition() -> (x,y)"""
3275 return _windows_.PyWindow_DoGetPosition(*args, **kwargs)
3276
3277 def DoGetVirtualSize(*args, **kwargs):
3278 """DoGetVirtualSize(self) -> Size"""
3279 return _windows_.PyWindow_DoGetVirtualSize(*args, **kwargs)
3280
3281 def DoGetBestSize(*args, **kwargs):
3282 """DoGetBestSize(self) -> Size"""
3283 return _windows_.PyWindow_DoGetBestSize(*args, **kwargs)
3284
3285 def GetDefaultAttributes(*args, **kwargs):
3286 """GetDefaultAttributes(self) -> VisualAttributes"""
3287 return _windows_.PyWindow_GetDefaultAttributes(*args, **kwargs)
3288
3289 def OnInternalIdle(*args, **kwargs):
3290 """OnInternalIdle(self)"""
3291 return _windows_.PyWindow_OnInternalIdle(*args, **kwargs)
3292
3293 def base_DoMoveWindow(*args, **kw):
3294 return PyWindow.DoMoveWindow(*args, **kw)
3295 base_DoMoveWindow = wx._deprecated(base_DoMoveWindow,
3296 "Please use PyWindow.DoMoveWindow instead.")
3297
3298 def base_DoSetSize(*args, **kw):
3299 return PyWindow.DoSetSize(*args, **kw)
3300 base_DoSetSize = wx._deprecated(base_DoSetSize,
3301 "Please use PyWindow.DoSetSize instead.")
3302
3303 def base_DoSetClientSize(*args, **kw):
3304 return PyWindow.DoSetClientSize(*args, **kw)
3305 base_DoSetClientSize = wx._deprecated(base_DoSetClientSize,
3306 "Please use PyWindow.DoSetClientSize instead.")
3307
3308 def base_DoSetVirtualSize(*args, **kw):
3309 return PyWindow.DoSetVirtualSize(*args, **kw)
3310 base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize,
3311 "Please use PyWindow.DoSetVirtualSize instead.")
3312
3313 def base_DoGetSize(*args, **kw):
3314 return PyWindow.DoGetSize(*args, **kw)
3315 base_DoGetSize = wx._deprecated(base_DoGetSize,
3316 "Please use PyWindow.DoGetSize instead.")
3317
3318 def base_DoGetClientSize(*args, **kw):
3319 return PyWindow.DoGetClientSize(*args, **kw)
3320 base_DoGetClientSize = wx._deprecated(base_DoGetClientSize,
3321 "Please use PyWindow.DoGetClientSize instead.")
3322
3323 def base_DoGetPosition(*args, **kw):
3324 return PyWindow.DoGetPosition(*args, **kw)
3325 base_DoGetPosition = wx._deprecated(base_DoGetPosition,
3326 "Please use PyWindow.DoGetPosition instead.")
3327
3328 def base_DoGetVirtualSize(*args, **kw):
3329 return PyWindow.DoGetVirtualSize(*args, **kw)
3330 base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize,
3331 "Please use PyWindow.DoGetVirtualSize instead.")
3332
3333 def base_DoGetBestSize(*args, **kw):
3334 return PyWindow.DoGetBestSize(*args, **kw)
3335 base_DoGetBestSize = wx._deprecated(base_DoGetBestSize,
3336 "Please use PyWindow.DoGetBestSize instead.")
3337
3338 def base_InitDialog(*args, **kw):
3339 return PyWindow.InitDialog(*args, **kw)
3340 base_InitDialog = wx._deprecated(base_InitDialog,
3341 "Please use PyWindow.InitDialog instead.")
3342
3343 def base_TransferDataToWindow(*args, **kw):
3344 return PyWindow.TransferDataToWindow(*args, **kw)
3345 base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow,
3346 "Please use PyWindow.TransferDataToWindow instead.")
3347
3348 def base_TransferDataFromWindow(*args, **kw):
3349 return PyWindow.TransferDataFromWindow(*args, **kw)
3350 base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow,
3351 "Please use PyWindow.TransferDataFromWindow instead.")
3352
3353 def base_Validate(*args, **kw):
3354 return PyWindow.Validate(*args, **kw)
3355 base_Validate = wx._deprecated(base_Validate,
3356 "Please use PyWindow.Validate instead.")
3357
3358 def base_AcceptsFocus(*args, **kw):
3359 return PyWindow.AcceptsFocus(*args, **kw)
3360 base_AcceptsFocus = wx._deprecated(base_AcceptsFocus,
3361 "Please use PyWindow.AcceptsFocus instead.")
3362
3363 def base_AcceptsFocusFromKeyboard(*args, **kw):
3364 return PyWindow.AcceptsFocusFromKeyboard(*args, **kw)
3365 base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard,
3366 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3367
3368 def base_GetMaxSize(*args, **kw):
3369 return PyWindow.GetMaxSize(*args, **kw)
3370 base_GetMaxSize = wx._deprecated(base_GetMaxSize,
3371 "Please use PyWindow.GetMaxSize instead.")
3372
3373 def base_AddChild(*args, **kw):
3374 return PyWindow.AddChild(*args, **kw)
3375 base_AddChild = wx._deprecated(base_AddChild,
3376 "Please use PyWindow.AddChild instead.")
3377
3378 def base_RemoveChild(*args, **kw):
3379 return PyWindow.RemoveChild(*args, **kw)
3380 base_RemoveChild = wx._deprecated(base_RemoveChild,
3381 "Please use PyWindow.RemoveChild instead.")
3382
3383 def base_ShouldInheritColours(*args, **kw):
3384 return PyWindow.ShouldInheritColours(*args, **kw)
3385 base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours,
3386 "Please use PyWindow.ShouldInheritColours instead.")
3387
3388 def base_GetDefaultAttributes(*args, **kw):
3389 return PyWindow.GetDefaultAttributes(*args, **kw)
3390 base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes,
3391 "Please use PyWindow.GetDefaultAttributes instead.")
3392
3393 def base_OnInternalIdle(*args, **kw):
3394 return PyWindow.OnInternalIdle(*args, **kw)
3395 base_OnInternalIdle = wx._deprecated(base_OnInternalIdle,
3396 "Please use PyWindow.OnInternalIdle instead.")
3397
3398 _windows_.PyWindow_swigregister(PyWindow)
3399
3400 def PrePyWindow(*args, **kwargs):
3401 """PrePyWindow() -> PyWindow"""
3402 val = _windows_.new_PrePyWindow(*args, **kwargs)
3403 return val
3404
3405 class PyPanel(Panel):
3406 """Proxy of C++ PyPanel class"""
3407 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3408 __repr__ = _swig_repr
3409 def __init__(self, *args, **kwargs):
3410 """
3411 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3412 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3413 """
3414 _windows_.PyPanel_swiginit(self,_windows_.new_PyPanel(*args, **kwargs))
3415 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
3416
3417 def _setCallbackInfo(*args, **kwargs):
3418 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3419 return _windows_.PyPanel__setCallbackInfo(*args, **kwargs)
3420
3421 def SetBestSize(*args, **kwargs):
3422 """SetBestSize(self, Size size)"""
3423 return _windows_.PyPanel_SetBestSize(*args, **kwargs)
3424
3425 def DoEraseBackground(*args, **kwargs):
3426 """DoEraseBackground(self, DC dc) -> bool"""
3427 return _windows_.PyPanel_DoEraseBackground(*args, **kwargs)
3428
3429 def DoMoveWindow(*args, **kwargs):
3430 """DoMoveWindow(self, int x, int y, int width, int height)"""
3431 return _windows_.PyPanel_DoMoveWindow(*args, **kwargs)
3432
3433 def DoSetSize(*args, **kwargs):
3434 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3435 return _windows_.PyPanel_DoSetSize(*args, **kwargs)
3436
3437 def DoSetClientSize(*args, **kwargs):
3438 """DoSetClientSize(self, int width, int height)"""
3439 return _windows_.PyPanel_DoSetClientSize(*args, **kwargs)
3440
3441 def DoSetVirtualSize(*args, **kwargs):
3442 """DoSetVirtualSize(self, int x, int y)"""
3443 return _windows_.PyPanel_DoSetVirtualSize(*args, **kwargs)
3444
3445 def DoGetSize(*args, **kwargs):
3446 """DoGetSize() -> (width, height)"""
3447 return _windows_.PyPanel_DoGetSize(*args, **kwargs)
3448
3449 def DoGetClientSize(*args, **kwargs):
3450 """DoGetClientSize() -> (width, height)"""
3451 return _windows_.PyPanel_DoGetClientSize(*args, **kwargs)
3452
3453 def DoGetPosition(*args, **kwargs):
3454 """DoGetPosition() -> (x,y)"""
3455 return _windows_.PyPanel_DoGetPosition(*args, **kwargs)
3456
3457 def DoGetVirtualSize(*args, **kwargs):
3458 """DoGetVirtualSize(self) -> Size"""
3459 return _windows_.PyPanel_DoGetVirtualSize(*args, **kwargs)
3460
3461 def DoGetBestSize(*args, **kwargs):
3462 """DoGetBestSize(self) -> Size"""
3463 return _windows_.PyPanel_DoGetBestSize(*args, **kwargs)
3464
3465 def GetDefaultAttributes(*args, **kwargs):
3466 """GetDefaultAttributes(self) -> VisualAttributes"""
3467 return _windows_.PyPanel_GetDefaultAttributes(*args, **kwargs)
3468
3469 def OnInternalIdle(*args, **kwargs):
3470 """OnInternalIdle(self)"""
3471 return _windows_.PyPanel_OnInternalIdle(*args, **kwargs)
3472
3473 def base_DoMoveWindow(*args, **kw):
3474 return PyPanel.DoMoveWindow(*args, **kw)
3475 base_DoMoveWindow = wx._deprecated(base_DoMoveWindow,
3476 "Please use PyPanel.DoMoveWindow instead.")
3477
3478 def base_DoSetSize(*args, **kw):
3479 return PyPanel.DoSetSize(*args, **kw)
3480 base_DoSetSize = wx._deprecated(base_DoSetSize,
3481 "Please use PyPanel.DoSetSize instead.")
3482
3483 def base_DoSetClientSize(*args, **kw):
3484 return PyPanel.DoSetClientSize(*args, **kw)
3485 base_DoSetClientSize = wx._deprecated(base_DoSetClientSize,
3486 "Please use PyPanel.DoSetClientSize instead.")
3487
3488 def base_DoSetVirtualSize(*args, **kw):
3489 return PyPanel.DoSetVirtualSize(*args, **kw)
3490 base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize,
3491 "Please use PyPanel.DoSetVirtualSize instead.")
3492
3493 def base_DoGetSize(*args, **kw):
3494 return PyPanel.DoGetSize(*args, **kw)
3495 base_DoGetSize = wx._deprecated(base_DoGetSize,
3496 "Please use PyPanel.DoGetSize instead.")
3497
3498 def base_DoGetClientSize(*args, **kw):
3499 return PyPanel.DoGetClientSize(*args, **kw)
3500 base_DoGetClientSize = wx._deprecated(base_DoGetClientSize,
3501 "Please use PyPanel.DoGetClientSize instead.")
3502
3503 def base_DoGetPosition(*args, **kw):
3504 return PyPanel.DoGetPosition(*args, **kw)
3505 base_DoGetPosition = wx._deprecated(base_DoGetPosition,
3506 "Please use PyPanel.DoGetPosition instead.")
3507
3508 def base_DoGetVirtualSize(*args, **kw):
3509 return PyPanel.DoGetVirtualSize(*args, **kw)
3510 base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize,
3511 "Please use PyPanel.DoGetVirtualSize instead.")
3512
3513 def base_DoGetBestSize(*args, **kw):
3514 return PyPanel.DoGetBestSize(*args, **kw)
3515 base_DoGetBestSize = wx._deprecated(base_DoGetBestSize,
3516 "Please use PyPanel.DoGetBestSize instead.")
3517
3518 def base_InitDialog(*args, **kw):
3519 return PyPanel.InitDialog(*args, **kw)
3520 base_InitDialog = wx._deprecated(base_InitDialog,
3521 "Please use PyPanel.InitDialog instead.")
3522
3523 def base_TransferDataToWindow(*args, **kw):
3524 return PyPanel.TransferDataToWindow(*args, **kw)
3525 base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow,
3526 "Please use PyPanel.TransferDataToWindow instead.")
3527
3528 def base_TransferDataFromWindow(*args, **kw):
3529 return PyPanel.TransferDataFromWindow(*args, **kw)
3530 base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow,
3531 "Please use PyPanel.TransferDataFromWindow instead.")
3532
3533 def base_Validate(*args, **kw):
3534 return PyPanel.Validate(*args, **kw)
3535 base_Validate = wx._deprecated(base_Validate,
3536 "Please use PyPanel.Validate instead.")
3537
3538 def base_AcceptsFocus(*args, **kw):
3539 return PyPanel.AcceptsFocus(*args, **kw)
3540 base_AcceptsFocus = wx._deprecated(base_AcceptsFocus,
3541 "Please use PyPanel.AcceptsFocus instead.")
3542
3543 def base_AcceptsFocusFromKeyboard(*args, **kw):
3544 return PyPanel.AcceptsFocusFromKeyboard(*args, **kw)
3545 base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard,
3546 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
3547
3548 def base_GetMaxSize(*args, **kw):
3549 return PyPanel.GetMaxSize(*args, **kw)
3550 base_GetMaxSize = wx._deprecated(base_GetMaxSize,
3551 "Please use PyPanel.GetMaxSize instead.")
3552
3553 def base_AddChild(*args, **kw):
3554 return PyPanel.AddChild(*args, **kw)
3555 base_AddChild = wx._deprecated(base_AddChild,
3556 "Please use PyPanel.AddChild instead.")
3557
3558 def base_RemoveChild(*args, **kw):
3559 return PyPanel.RemoveChild(*args, **kw)
3560 base_RemoveChild = wx._deprecated(base_RemoveChild,
3561 "Please use PyPanel.RemoveChild instead.")
3562
3563 def base_ShouldInheritColours(*args, **kw):
3564 return PyPanel.ShouldInheritColours(*args, **kw)
3565 base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours,
3566 "Please use PyPanel.ShouldInheritColours instead.")
3567
3568 def base_GetDefaultAttributes(*args, **kw):
3569 return PyPanel.GetDefaultAttributes(*args, **kw)
3570 base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes,
3571 "Please use PyPanel.GetDefaultAttributes instead.")
3572
3573 def base_OnInternalIdle(*args, **kw):
3574 return PyPanel.OnInternalIdle(*args, **kw)
3575 base_OnInternalIdle = wx._deprecated(base_OnInternalIdle,
3576 "Please use PyPanel.OnInternalIdle instead.")
3577
3578 _windows_.PyPanel_swigregister(PyPanel)
3579
3580 def PrePyPanel(*args, **kwargs):
3581 """PrePyPanel() -> PyPanel"""
3582 val = _windows_.new_PrePyPanel(*args, **kwargs)
3583 return val
3584
3585 class PyScrolledWindow(ScrolledWindow):
3586 """Proxy of C++ PyScrolledWindow class"""
3587 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3588 __repr__ = _swig_repr
3589 def __init__(self, *args, **kwargs):
3590 """
3591 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3592 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3593 """
3594 _windows_.PyScrolledWindow_swiginit(self,_windows_.new_PyScrolledWindow(*args, **kwargs))
3595 self._setOORInfo(self); self._setCallbackInfo(self, PyScrolledWindow)
3596
3597 def _setCallbackInfo(*args, **kwargs):
3598 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3599 return _windows_.PyScrolledWindow__setCallbackInfo(*args, **kwargs)
3600
3601 def SetBestSize(*args, **kwargs):
3602 """SetBestSize(self, Size size)"""
3603 return _windows_.PyScrolledWindow_SetBestSize(*args, **kwargs)
3604
3605 def DoEraseBackground(*args, **kwargs):
3606 """DoEraseBackground(self, DC dc) -> bool"""
3607 return _windows_.PyScrolledWindow_DoEraseBackground(*args, **kwargs)
3608
3609 def DoMoveWindow(*args, **kwargs):
3610 """DoMoveWindow(self, int x, int y, int width, int height)"""
3611 return _windows_.PyScrolledWindow_DoMoveWindow(*args, **kwargs)
3612
3613 def DoSetSize(*args, **kwargs):
3614 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3615 return _windows_.PyScrolledWindow_DoSetSize(*args, **kwargs)
3616
3617 def DoSetClientSize(*args, **kwargs):
3618 """DoSetClientSize(self, int width, int height)"""
3619 return _windows_.PyScrolledWindow_DoSetClientSize(*args, **kwargs)
3620
3621 def DoSetVirtualSize(*args, **kwargs):
3622 """DoSetVirtualSize(self, int x, int y)"""
3623 return _windows_.PyScrolledWindow_DoSetVirtualSize(*args, **kwargs)
3624
3625 def DoGetSize(*args, **kwargs):
3626 """DoGetSize() -> (width, height)"""
3627 return _windows_.PyScrolledWindow_DoGetSize(*args, **kwargs)
3628
3629 def DoGetClientSize(*args, **kwargs):
3630 """DoGetClientSize() -> (width, height)"""
3631 return _windows_.PyScrolledWindow_DoGetClientSize(*args, **kwargs)
3632
3633 def DoGetPosition(*args, **kwargs):
3634 """DoGetPosition() -> (x,y)"""
3635 return _windows_.PyScrolledWindow_DoGetPosition(*args, **kwargs)
3636
3637 def DoGetVirtualSize(*args, **kwargs):
3638 """DoGetVirtualSize(self) -> Size"""
3639 return _windows_.PyScrolledWindow_DoGetVirtualSize(*args, **kwargs)
3640
3641 def DoGetBestSize(*args, **kwargs):
3642 """DoGetBestSize(self) -> Size"""
3643 return _windows_.PyScrolledWindow_DoGetBestSize(*args, **kwargs)
3644
3645 def GetDefaultAttributes(*args, **kwargs):
3646 """GetDefaultAttributes(self) -> VisualAttributes"""
3647 return _windows_.PyScrolledWindow_GetDefaultAttributes(*args, **kwargs)
3648
3649 def OnInternalIdle(*args, **kwargs):
3650 """OnInternalIdle(self)"""
3651 return _windows_.PyScrolledWindow_OnInternalIdle(*args, **kwargs)
3652
3653 def base_DoMoveWindow(*args, **kw):
3654 return PyScrolledWindow.DoMoveWindow(*args, **kw)
3655 base_DoMoveWindow = wx._deprecated(base_DoMoveWindow,
3656 "Please use PyScrolledWindow.DoMoveWindow instead.")
3657
3658 def base_DoSetSize(*args, **kw):
3659 return PyScrolledWindow.DoSetSize(*args, **kw)
3660 base_DoSetSize = wx._deprecated(base_DoSetSize,
3661 "Please use PyScrolledWindow.DoSetSize instead.")
3662
3663 def base_DoSetClientSize(*args, **kw):
3664 return PyScrolledWindow.DoSetClientSize(*args, **kw)
3665 base_DoSetClientSize = wx._deprecated(base_DoSetClientSize,
3666 "Please use PyScrolledWindow.DoSetClientSize instead.")
3667
3668 def base_DoSetVirtualSize(*args, **kw):
3669 return PyScrolledWindow.DoSetVirtualSize(*args, **kw)
3670 base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize,
3671 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
3672
3673 def base_DoGetSize(*args, **kw):
3674 return PyScrolledWindow.DoGetSize(*args, **kw)
3675 base_DoGetSize = wx._deprecated(base_DoGetSize,
3676 "Please use PyScrolledWindow.DoGetSize instead.")
3677
3678 def base_DoGetClientSize(*args, **kw):
3679 return PyScrolledWindow.DoGetClientSize(*args, **kw)
3680 base_DoGetClientSize = wx._deprecated(base_DoGetClientSize,
3681 "Please use PyScrolledWindow.DoGetClientSize instead.")
3682
3683 def base_DoGetPosition(*args, **kw):
3684 return PyScrolledWindow.DoGetPosition(*args, **kw)
3685 base_DoGetPosition = wx._deprecated(base_DoGetPosition,
3686 "Please use PyScrolledWindow.DoGetPosition instead.")
3687
3688 def base_DoGetVirtualSize(*args, **kw):
3689 return PyScrolledWindow.DoGetVirtualSize(*args, **kw)
3690 base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize,
3691 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
3692
3693 def base_DoGetBestSize(*args, **kw):
3694 return PyScrolledWindow.DoGetBestSize(*args, **kw)
3695 base_DoGetBestSize = wx._deprecated(base_DoGetBestSize,
3696 "Please use PyScrolledWindow.DoGetBestSize instead.")
3697
3698 def base_InitDialog(*args, **kw):
3699 return PyScrolledWindow.InitDialog(*args, **kw)
3700 base_InitDialog = wx._deprecated(base_InitDialog,
3701 "Please use PyScrolledWindow.InitDialog instead.")
3702
3703 def base_TransferDataToWindow(*args, **kw):
3704 return PyScrolledWindow.TransferDataToWindow(*args, **kw)
3705 base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow,
3706 "Please use PyScrolledWindow.TransferDataToWindow instead.")
3707
3708 def base_TransferDataFromWindow(*args, **kw):
3709 return PyScrolledWindow.TransferDataFromWindow(*args, **kw)
3710 base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow,
3711 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
3712
3713 def base_Validate(*args, **kw):
3714 return PyScrolledWindow.Validate(*args, **kw)
3715 base_Validate = wx._deprecated(base_Validate,
3716 "Please use PyScrolledWindow.Validate instead.")
3717
3718 def base_AcceptsFocus(*args, **kw):
3719 return PyScrolledWindow.AcceptsFocus(*args, **kw)
3720 base_AcceptsFocus = wx._deprecated(base_AcceptsFocus,
3721 "Please use PyScrolledWindow.AcceptsFocus instead.")
3722
3723 def base_AcceptsFocusFromKeyboard(*args, **kw):
3724 return PyScrolledWindow.AcceptsFocusFromKeyboard(*args, **kw)
3725 base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard,
3726 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
3727
3728 def base_GetMaxSize(*args, **kw):
3729 return PyScrolledWindow.GetMaxSize(*args, **kw)
3730 base_GetMaxSize = wx._deprecated(base_GetMaxSize,
3731 "Please use PyScrolledWindow.GetMaxSize instead.")
3732
3733 def base_AddChild(*args, **kw):
3734 return PyScrolledWindow.AddChild(*args, **kw)
3735 base_AddChild = wx._deprecated(base_AddChild,
3736 "Please use PyScrolledWindow.AddChild instead.")
3737
3738 def base_RemoveChild(*args, **kw):
3739 return PyScrolledWindow.RemoveChild(*args, **kw)
3740 base_RemoveChild = wx._deprecated(base_RemoveChild,
3741 "Please use PyScrolledWindow.RemoveChild instead.")
3742
3743 def base_ShouldInheritColours(*args, **kw):
3744 return PyScrolledWindow.ShouldInheritColours(*args, **kw)
3745 base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours,
3746 "Please use PyScrolledWindow.ShouldInheritColours instead.")
3747
3748 def base_GetDefaultAttributes(*args, **kw):
3749 return PyScrolledWindow.GetDefaultAttributes(*args, **kw)
3750 base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes,
3751 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
3752
3753 def base_OnInternalIdle(*args, **kw):
3754 return PyScrolledWindow.OnInternalIdle(*args, **kw)
3755 base_OnInternalIdle = wx._deprecated(base_OnInternalIdle,
3756 "Please use PyScrolledWindow.OnInternalIdle instead.")
3757
3758 _windows_.PyScrolledWindow_swigregister(PyScrolledWindow)
3759
3760 def PrePyScrolledWindow(*args, **kwargs):
3761 """PrePyScrolledWindow() -> PyScrolledWindow"""
3762 val = _windows_.new_PrePyScrolledWindow(*args, **kwargs)
3763 return val
3764
3765 #---------------------------------------------------------------------------
3766
3767 PRINT_MODE_NONE = _windows_.PRINT_MODE_NONE
3768 PRINT_MODE_PREVIEW = _windows_.PRINT_MODE_PREVIEW
3769 PRINT_MODE_FILE = _windows_.PRINT_MODE_FILE
3770 PRINT_MODE_PRINTER = _windows_.PRINT_MODE_PRINTER
3771 PRINT_MODE_STREAM = _windows_.PRINT_MODE_STREAM
3772 PRINTBIN_DEFAULT = _windows_.PRINTBIN_DEFAULT
3773 PRINTBIN_ONLYONE = _windows_.PRINTBIN_ONLYONE
3774 PRINTBIN_LOWER = _windows_.PRINTBIN_LOWER
3775 PRINTBIN_MIDDLE = _windows_.PRINTBIN_MIDDLE
3776 PRINTBIN_MANUAL = _windows_.PRINTBIN_MANUAL
3777 PRINTBIN_ENVELOPE = _windows_.PRINTBIN_ENVELOPE
3778 PRINTBIN_ENVMANUAL = _windows_.PRINTBIN_ENVMANUAL
3779 PRINTBIN_AUTO = _windows_.PRINTBIN_AUTO
3780 PRINTBIN_TRACTOR = _windows_.PRINTBIN_TRACTOR
3781 PRINTBIN_SMALLFMT = _windows_.PRINTBIN_SMALLFMT
3782 PRINTBIN_LARGEFMT = _windows_.PRINTBIN_LARGEFMT
3783 PRINTBIN_LARGECAPACITY = _windows_.PRINTBIN_LARGECAPACITY
3784 PRINTBIN_CASSETTE = _windows_.PRINTBIN_CASSETTE
3785 PRINTBIN_FORMSOURCE = _windows_.PRINTBIN_FORMSOURCE
3786 PRINTBIN_USER = _windows_.PRINTBIN_USER
3787 class PrintData(_core.Object):
3788 """Proxy of C++ PrintData class"""
3789 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3790 __repr__ = _swig_repr
3791 def __init__(self, *args):
3792 """
3793 __init__(self) -> PrintData
3794 __init__(self, PrintData data) -> PrintData
3795 """
3796 _windows_.PrintData_swiginit(self,_windows_.new_PrintData(*args))
3797 __swig_destroy__ = _windows_.delete_PrintData
3798 __del__ = lambda self : None;
3799 def GetNoCopies(*args, **kwargs):
3800 """GetNoCopies(self) -> int"""
3801 return _windows_.PrintData_GetNoCopies(*args, **kwargs)
3802
3803 def GetCollate(*args, **kwargs):
3804 """GetCollate(self) -> bool"""
3805 return _windows_.PrintData_GetCollate(*args, **kwargs)
3806
3807 def GetOrientation(*args, **kwargs):
3808 """GetOrientation(self) -> int"""
3809 return _windows_.PrintData_GetOrientation(*args, **kwargs)
3810
3811 def Ok(*args, **kwargs):
3812 """Ok(self) -> bool"""
3813 return _windows_.PrintData_Ok(*args, **kwargs)
3814
3815 def GetPrinterName(*args, **kwargs):
3816 """GetPrinterName(self) -> String"""
3817 return _windows_.PrintData_GetPrinterName(*args, **kwargs)
3818
3819 def GetColour(*args, **kwargs):
3820 """GetColour(self) -> bool"""
3821 return _windows_.PrintData_GetColour(*args, **kwargs)
3822
3823 def GetDuplex(*args, **kwargs):
3824 """GetDuplex(self) -> int"""
3825 return _windows_.PrintData_GetDuplex(*args, **kwargs)
3826
3827 def GetPaperId(*args, **kwargs):
3828 """GetPaperId(self) -> int"""
3829 return _windows_.PrintData_GetPaperId(*args, **kwargs)
3830
3831 def GetPaperSize(*args, **kwargs):
3832 """GetPaperSize(self) -> Size"""
3833 return _windows_.PrintData_GetPaperSize(*args, **kwargs)
3834
3835 def GetQuality(*args, **kwargs):
3836 """GetQuality(self) -> int"""
3837 return _windows_.PrintData_GetQuality(*args, **kwargs)
3838
3839 def GetBin(*args, **kwargs):
3840 """GetBin(self) -> int"""
3841 return _windows_.PrintData_GetBin(*args, **kwargs)
3842
3843 def GetPrintMode(*args, **kwargs):
3844 """GetPrintMode(self) -> int"""
3845 return _windows_.PrintData_GetPrintMode(*args, **kwargs)
3846
3847 def SetNoCopies(*args, **kwargs):
3848 """SetNoCopies(self, int v)"""
3849 return _windows_.PrintData_SetNoCopies(*args, **kwargs)
3850
3851 def SetCollate(*args, **kwargs):
3852 """SetCollate(self, bool flag)"""
3853 return _windows_.PrintData_SetCollate(*args, **kwargs)
3854
3855 def SetOrientation(*args, **kwargs):
3856 """SetOrientation(self, int orient)"""
3857 return _windows_.PrintData_SetOrientation(*args, **kwargs)
3858
3859 def SetPrinterName(*args, **kwargs):
3860 """SetPrinterName(self, String name)"""
3861 return _windows_.PrintData_SetPrinterName(*args, **kwargs)
3862
3863 def SetColour(*args, **kwargs):
3864 """SetColour(self, bool colour)"""
3865 return _windows_.PrintData_SetColour(*args, **kwargs)
3866
3867 def SetDuplex(*args, **kwargs):
3868 """SetDuplex(self, int duplex)"""
3869 return _windows_.PrintData_SetDuplex(*args, **kwargs)
3870
3871 def SetPaperId(*args, **kwargs):
3872 """SetPaperId(self, int sizeId)"""
3873 return _windows_.PrintData_SetPaperId(*args, **kwargs)
3874
3875 def SetPaperSize(*args, **kwargs):
3876 """SetPaperSize(self, Size sz)"""
3877 return _windows_.PrintData_SetPaperSize(*args, **kwargs)
3878
3879 def SetQuality(*args, **kwargs):
3880 """SetQuality(self, int quality)"""
3881 return _windows_.PrintData_SetQuality(*args, **kwargs)
3882
3883 def SetBin(*args, **kwargs):
3884 """SetBin(self, int bin)"""
3885 return _windows_.PrintData_SetBin(*args, **kwargs)
3886
3887 def SetPrintMode(*args, **kwargs):
3888 """SetPrintMode(self, int printMode)"""
3889 return _windows_.PrintData_SetPrintMode(*args, **kwargs)
3890
3891 def GetFilename(*args, **kwargs):
3892 """GetFilename(self) -> String"""
3893 return _windows_.PrintData_GetFilename(*args, **kwargs)
3894
3895 def SetFilename(*args, **kwargs):
3896 """SetFilename(self, String filename)"""
3897 return _windows_.PrintData_SetFilename(*args, **kwargs)
3898
3899 def __nonzero__(self): return self.Ok()
3900 def GetPrivData(*args, **kwargs):
3901 """GetPrivData(self) -> PyObject"""
3902 return _windows_.PrintData_GetPrivData(*args, **kwargs)
3903
3904 def SetPrivData(*args, **kwargs):
3905 """SetPrivData(self, PyObject data)"""
3906 return _windows_.PrintData_SetPrivData(*args, **kwargs)
3907
3908 _windows_.PrintData_swigregister(PrintData)
3909 PrintoutTitleStr = cvar.PrintoutTitleStr
3910 PreviewCanvasNameStr = cvar.PreviewCanvasNameStr
3911
3912 class PageSetupDialogData(_core.Object):
3913 """Proxy of C++ PageSetupDialogData class"""
3914 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3915 __repr__ = _swig_repr
3916 def __init__(self, *args):
3917 """
3918 __init__(self) -> PageSetupDialogData
3919 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3920 __init__(self, PrintData data) -> PageSetupDialogData
3921 """
3922 _windows_.PageSetupDialogData_swiginit(self,_windows_.new_PageSetupDialogData(*args))
3923 __swig_destroy__ = _windows_.delete_PageSetupDialogData
3924 __del__ = lambda self : None;
3925 def EnableHelp(*args, **kwargs):
3926 """EnableHelp(self, bool flag)"""
3927 return _windows_.PageSetupDialogData_EnableHelp(*args, **kwargs)
3928
3929 def EnableMargins(*args, **kwargs):
3930 """EnableMargins(self, bool flag)"""
3931 return _windows_.PageSetupDialogData_EnableMargins(*args, **kwargs)
3932
3933 def EnableOrientation(*args, **kwargs):
3934 """EnableOrientation(self, bool flag)"""
3935 return _windows_.PageSetupDialogData_EnableOrientation(*args, **kwargs)
3936
3937 def EnablePaper(*args, **kwargs):
3938 """EnablePaper(self, bool flag)"""
3939 return _windows_.PageSetupDialogData_EnablePaper(*args, **kwargs)
3940
3941 def EnablePrinter(*args, **kwargs):
3942 """EnablePrinter(self, bool flag)"""
3943 return _windows_.PageSetupDialogData_EnablePrinter(*args, **kwargs)
3944
3945 def GetDefaultMinMargins(*args, **kwargs):
3946 """GetDefaultMinMargins(self) -> bool"""
3947 return _windows_.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs)
3948
3949 def GetEnableMargins(*args, **kwargs):
3950 """GetEnableMargins(self) -> bool"""
3951 return _windows_.PageSetupDialogData_GetEnableMargins(*args, **kwargs)
3952
3953 def GetEnableOrientation(*args, **kwargs):
3954 """GetEnableOrientation(self) -> bool"""
3955 return _windows_.PageSetupDialogData_GetEnableOrientation(*args, **kwargs)
3956
3957 def GetEnablePaper(*args, **kwargs):
3958 """GetEnablePaper(self) -> bool"""
3959 return _windows_.PageSetupDialogData_GetEnablePaper(*args, **kwargs)
3960
3961 def GetEnablePrinter(*args, **kwargs):
3962 """GetEnablePrinter(self) -> bool"""
3963 return _windows_.PageSetupDialogData_GetEnablePrinter(*args, **kwargs)
3964
3965 def GetEnableHelp(*args, **kwargs):
3966 """GetEnableHelp(self) -> bool"""
3967 return _windows_.PageSetupDialogData_GetEnableHelp(*args, **kwargs)
3968
3969 def GetDefaultInfo(*args, **kwargs):
3970 """GetDefaultInfo(self) -> bool"""
3971 return _windows_.PageSetupDialogData_GetDefaultInfo(*args, **kwargs)
3972
3973 def GetMarginTopLeft(*args, **kwargs):
3974 """GetMarginTopLeft(self) -> Point"""
3975 return _windows_.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs)
3976
3977 def GetMarginBottomRight(*args, **kwargs):
3978 """GetMarginBottomRight(self) -> Point"""
3979 return _windows_.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs)
3980
3981 def GetMinMarginTopLeft(*args, **kwargs):
3982 """GetMinMarginTopLeft(self) -> Point"""
3983 return _windows_.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs)
3984
3985 def GetMinMarginBottomRight(*args, **kwargs):
3986 """GetMinMarginBottomRight(self) -> Point"""
3987 return _windows_.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs)
3988
3989 def GetPaperId(*args, **kwargs):
3990 """GetPaperId(self) -> int"""
3991 return _windows_.PageSetupDialogData_GetPaperId(*args, **kwargs)
3992
3993 def GetPaperSize(*args, **kwargs):
3994 """GetPaperSize(self) -> Size"""
3995 return _windows_.PageSetupDialogData_GetPaperSize(*args, **kwargs)
3996
3997 def GetPrintData(*args, **kwargs):
3998 """GetPrintData(self) -> PrintData"""
3999 return _windows_.PageSetupDialogData_GetPrintData(*args, **kwargs)
4000
4001 def Ok(*args, **kwargs):
4002 """Ok(self) -> bool"""
4003 return _windows_.PageSetupDialogData_Ok(*args, **kwargs)
4004
4005 def SetDefaultInfo(*args, **kwargs):
4006 """SetDefaultInfo(self, bool flag)"""
4007 return _windows_.PageSetupDialogData_SetDefaultInfo(*args, **kwargs)
4008
4009 def SetDefaultMinMargins(*args, **kwargs):
4010 """SetDefaultMinMargins(self, bool flag)"""
4011 return _windows_.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs)
4012
4013 def SetMarginTopLeft(*args, **kwargs):
4014 """SetMarginTopLeft(self, Point pt)"""
4015 return _windows_.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs)
4016
4017 def SetMarginBottomRight(*args, **kwargs):
4018 """SetMarginBottomRight(self, Point pt)"""
4019 return _windows_.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs)
4020
4021 def SetMinMarginTopLeft(*args, **kwargs):
4022 """SetMinMarginTopLeft(self, Point pt)"""
4023 return _windows_.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs)
4024
4025 def SetMinMarginBottomRight(*args, **kwargs):
4026 """SetMinMarginBottomRight(self, Point pt)"""
4027 return _windows_.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs)
4028
4029 def SetPaperId(*args, **kwargs):
4030 """SetPaperId(self, int id)"""
4031 return _windows_.PageSetupDialogData_SetPaperId(*args, **kwargs)
4032
4033 def SetPaperSize(*args, **kwargs):
4034 """SetPaperSize(self, Size size)"""
4035 return _windows_.PageSetupDialogData_SetPaperSize(*args, **kwargs)
4036
4037 def SetPrintData(*args, **kwargs):
4038 """SetPrintData(self, PrintData printData)"""
4039 return _windows_.PageSetupDialogData_SetPrintData(*args, **kwargs)
4040
4041 def CalculateIdFromPaperSize(*args, **kwargs):
4042 """CalculateIdFromPaperSize(self)"""
4043 return _windows_.PageSetupDialogData_CalculateIdFromPaperSize(*args, **kwargs)
4044
4045 def CalculatePaperSizeFromId(*args, **kwargs):
4046 """CalculatePaperSizeFromId(self)"""
4047 return _windows_.PageSetupDialogData_CalculatePaperSizeFromId(*args, **kwargs)
4048
4049 def __nonzero__(self): return self.Ok()
4050 _windows_.PageSetupDialogData_swigregister(PageSetupDialogData)
4051
4052 class PageSetupDialog(_core.Object):
4053 """Proxy of C++ PageSetupDialog class"""
4054 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4055 __repr__ = _swig_repr
4056 def __init__(self, *args, **kwargs):
4057 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4058 _windows_.PageSetupDialog_swiginit(self,_windows_.new_PageSetupDialog(*args, **kwargs))
4059 __swig_destroy__ = _windows_.delete_PageSetupDialog
4060 __del__ = lambda self : None;
4061 def GetPageSetupData(*args, **kwargs):
4062 """GetPageSetupData(self) -> PageSetupDialogData"""
4063 return _windows_.PageSetupDialog_GetPageSetupData(*args, **kwargs)
4064
4065 def GetPageSetupDialogData(*args, **kwargs):
4066 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4067 return _windows_.PageSetupDialog_GetPageSetupDialogData(*args, **kwargs)
4068
4069 def ShowModal(*args, **kwargs):
4070 """ShowModal(self) -> int"""
4071 return _windows_.PageSetupDialog_ShowModal(*args, **kwargs)
4072
4073 def Destroy(self): pass
4074 _windows_.PageSetupDialog_swigregister(PageSetupDialog)
4075
4076 class PrintDialogData(_core.Object):
4077 """Proxy of C++ PrintDialogData class"""
4078 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4079 __repr__ = _swig_repr
4080 def __init__(self, *args):
4081 """
4082 __init__(self) -> PrintDialogData
4083 __init__(self, PrintData printData) -> PrintDialogData
4084 __init__(self, PrintDialogData printData) -> PrintDialogData
4085 """
4086 _windows_.PrintDialogData_swiginit(self,_windows_.new_PrintDialogData(*args))
4087 __swig_destroy__ = _windows_.delete_PrintDialogData
4088 __del__ = lambda self : None;
4089 def GetFromPage(*args, **kwargs):
4090 """GetFromPage(self) -> int"""
4091 return _windows_.PrintDialogData_GetFromPage(*args, **kwargs)
4092
4093 def GetToPage(*args, **kwargs):
4094 """GetToPage(self) -> int"""
4095 return _windows_.PrintDialogData_GetToPage(*args, **kwargs)
4096
4097 def GetMinPage(*args, **kwargs):
4098 """GetMinPage(self) -> int"""
4099 return _windows_.PrintDialogData_GetMinPage(*args, **kwargs)
4100
4101 def GetMaxPage(*args, **kwargs):
4102 """GetMaxPage(self) -> int"""
4103 return _windows_.PrintDialogData_GetMaxPage(*args, **kwargs)
4104
4105 def GetNoCopies(*args, **kwargs):
4106 """GetNoCopies(self) -> int"""
4107 return _windows_.PrintDialogData_GetNoCopies(*args, **kwargs)
4108
4109 def GetAllPages(*args, **kwargs):
4110 """GetAllPages(self) -> bool"""
4111 return _windows_.PrintDialogData_GetAllPages(*args, **kwargs)
4112
4113 def GetSelection(*args, **kwargs):
4114 """GetSelection(self) -> bool"""
4115 return _windows_.PrintDialogData_GetSelection(*args, **kwargs)
4116
4117 def GetCollate(*args, **kwargs):
4118 """GetCollate(self) -> bool"""
4119 return _windows_.PrintDialogData_GetCollate(*args, **kwargs)
4120
4121 def GetPrintToFile(*args, **kwargs):
4122 """GetPrintToFile(self) -> bool"""
4123 return _windows_.PrintDialogData_GetPrintToFile(*args, **kwargs)
4124
4125 def SetFromPage(*args, **kwargs):
4126 """SetFromPage(self, int v)"""
4127 return _windows_.PrintDialogData_SetFromPage(*args, **kwargs)
4128
4129 def SetToPage(*args, **kwargs):
4130 """SetToPage(self, int v)"""
4131 return _windows_.PrintDialogData_SetToPage(*args, **kwargs)
4132
4133 def SetMinPage(*args, **kwargs):
4134 """SetMinPage(self, int v)"""
4135 return _windows_.PrintDialogData_SetMinPage(*args, **kwargs)
4136
4137 def SetMaxPage(*args, **kwargs):
4138 """SetMaxPage(self, int v)"""
4139 return _windows_.PrintDialogData_SetMaxPage(*args, **kwargs)
4140
4141 def SetNoCopies(*args, **kwargs):
4142 """SetNoCopies(self, int v)"""
4143 return _windows_.PrintDialogData_SetNoCopies(*args, **kwargs)
4144
4145 def SetAllPages(*args, **kwargs):
4146 """SetAllPages(self, bool flag)"""
4147 return _windows_.PrintDialogData_SetAllPages(*args, **kwargs)
4148
4149 def SetSelection(*args, **kwargs):
4150 """SetSelection(self, bool flag)"""
4151 return _windows_.PrintDialogData_SetSelection(*args, **kwargs)
4152
4153 def SetCollate(*args, **kwargs):
4154 """SetCollate(self, bool flag)"""
4155 return _windows_.PrintDialogData_SetCollate(*args, **kwargs)
4156
4157 def SetPrintToFile(*args, **kwargs):
4158 """SetPrintToFile(self, bool flag)"""
4159 return _windows_.PrintDialogData_SetPrintToFile(*args, **kwargs)
4160
4161 def EnablePrintToFile(*args, **kwargs):
4162 """EnablePrintToFile(self, bool flag)"""
4163 return _windows_.PrintDialogData_EnablePrintToFile(*args, **kwargs)
4164
4165 def EnableSelection(*args, **kwargs):
4166 """EnableSelection(self, bool flag)"""
4167 return _windows_.PrintDialogData_EnableSelection(*args, **kwargs)
4168
4169 def EnablePageNumbers(*args, **kwargs):
4170 """EnablePageNumbers(self, bool flag)"""
4171 return _windows_.PrintDialogData_EnablePageNumbers(*args, **kwargs)
4172
4173 def EnableHelp(*args, **kwargs):
4174 """EnableHelp(self, bool flag)"""
4175 return _windows_.PrintDialogData_EnableHelp(*args, **kwargs)
4176
4177 def GetEnablePrintToFile(*args, **kwargs):
4178 """GetEnablePrintToFile(self) -> bool"""
4179 return _windows_.PrintDialogData_GetEnablePrintToFile(*args, **kwargs)
4180
4181 def GetEnableSelection(*args, **kwargs):
4182 """GetEnableSelection(self) -> bool"""
4183 return _windows_.PrintDialogData_GetEnableSelection(*args, **kwargs)
4184
4185 def GetEnablePageNumbers(*args, **kwargs):
4186 """GetEnablePageNumbers(self) -> bool"""
4187 return _windows_.PrintDialogData_GetEnablePageNumbers(*args, **kwargs)
4188
4189 def GetEnableHelp(*args, **kwargs):
4190 """GetEnableHelp(self) -> bool"""
4191 return _windows_.PrintDialogData_GetEnableHelp(*args, **kwargs)
4192
4193 def Ok(*args, **kwargs):
4194 """Ok(self) -> bool"""
4195 return _windows_.PrintDialogData_Ok(*args, **kwargs)
4196
4197 def GetPrintData(*args, **kwargs):
4198 """GetPrintData(self) -> PrintData"""
4199 return _windows_.PrintDialogData_GetPrintData(*args, **kwargs)
4200
4201 def SetPrintData(*args, **kwargs):
4202 """SetPrintData(self, PrintData printData)"""
4203 return _windows_.PrintDialogData_SetPrintData(*args, **kwargs)
4204
4205 def __nonzero__(self): return self.Ok()
4206 _windows_.PrintDialogData_swigregister(PrintDialogData)
4207
4208 class PrintDialog(_core.Object):
4209 """Proxy of C++ PrintDialog class"""
4210 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4211 __repr__ = _swig_repr
4212 def __init__(self, *args, **kwargs):
4213 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4214 _windows_.PrintDialog_swiginit(self,_windows_.new_PrintDialog(*args, **kwargs))
4215 __swig_destroy__ = _windows_.delete_PrintDialog
4216 __del__ = lambda self : None;
4217 def ShowModal(*args, **kwargs):
4218 """ShowModal(self) -> int"""
4219 return _windows_.PrintDialog_ShowModal(*args, **kwargs)
4220
4221 def GetPrintDialogData(*args, **kwargs):
4222 """GetPrintDialogData(self) -> PrintDialogData"""
4223 return _windows_.PrintDialog_GetPrintDialogData(*args, **kwargs)
4224
4225 def GetPrintData(*args, **kwargs):
4226 """GetPrintData(self) -> PrintData"""
4227 return _windows_.PrintDialog_GetPrintData(*args, **kwargs)
4228
4229 def GetPrintDC(*args, **kwargs):
4230 """GetPrintDC(self) -> DC"""
4231 return _windows_.PrintDialog_GetPrintDC(*args, **kwargs)
4232
4233 def Destroy(self): pass
4234 _windows_.PrintDialog_swigregister(PrintDialog)
4235
4236 PRINTER_NO_ERROR = _windows_.PRINTER_NO_ERROR
4237 PRINTER_CANCELLED = _windows_.PRINTER_CANCELLED
4238 PRINTER_ERROR = _windows_.PRINTER_ERROR
4239 class Printer(_core.Object):
4240 """Proxy of C++ Printer class"""
4241 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4242 __repr__ = _swig_repr
4243 def __init__(self, *args, **kwargs):
4244 """__init__(self, PrintDialogData data=None) -> Printer"""
4245 _windows_.Printer_swiginit(self,_windows_.new_Printer(*args, **kwargs))
4246 __swig_destroy__ = _windows_.delete_Printer
4247 __del__ = lambda self : None;
4248 def CreateAbortWindow(*args, **kwargs):
4249 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4250 return _windows_.Printer_CreateAbortWindow(*args, **kwargs)
4251
4252 def ReportError(*args, **kwargs):
4253 """ReportError(self, Window parent, Printout printout, String message)"""
4254 return _windows_.Printer_ReportError(*args, **kwargs)
4255
4256 def Setup(*args, **kwargs):
4257 """Setup(self, Window parent) -> bool"""
4258 return _windows_.Printer_Setup(*args, **kwargs)
4259
4260 def Print(*args, **kwargs):
4261 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4262 return _windows_.Printer_Print(*args, **kwargs)
4263
4264 def PrintDialog(*args, **kwargs):
4265 """PrintDialog(self, Window parent) -> DC"""
4266 return _windows_.Printer_PrintDialog(*args, **kwargs)
4267
4268 def GetPrintDialogData(*args, **kwargs):
4269 """GetPrintDialogData(self) -> PrintDialogData"""
4270 return _windows_.Printer_GetPrintDialogData(*args, **kwargs)
4271
4272 def GetAbort(*args, **kwargs):
4273 """GetAbort(self) -> bool"""
4274 return _windows_.Printer_GetAbort(*args, **kwargs)
4275
4276 def GetLastError(*args, **kwargs):
4277 """GetLastError() -> int"""
4278 return _windows_.Printer_GetLastError(*args, **kwargs)
4279
4280 GetLastError = staticmethod(GetLastError)
4281 _windows_.Printer_swigregister(Printer)
4282
4283 def Printer_GetLastError(*args):
4284 """Printer_GetLastError() -> int"""
4285 return _windows_.Printer_GetLastError(*args)
4286
4287 class Printout(_core.Object):
4288 """Proxy of C++ Printout class"""
4289 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4290 __repr__ = _swig_repr
4291 def __init__(self, *args, **kwargs):
4292 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4293 _windows_.Printout_swiginit(self,_windows_.new_Printout(*args, **kwargs))
4294 self._setCallbackInfo(self, Printout)
4295
4296 __swig_destroy__ = _windows_.delete_Printout
4297 __del__ = lambda self : None;
4298 def _setCallbackInfo(*args, **kwargs):
4299 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4300 return _windows_.Printout__setCallbackInfo(*args, **kwargs)
4301
4302 def GetTitle(*args, **kwargs):
4303 """GetTitle(self) -> String"""
4304 return _windows_.Printout_GetTitle(*args, **kwargs)
4305
4306 def GetDC(*args, **kwargs):
4307 """GetDC(self) -> DC"""
4308 return _windows_.Printout_GetDC(*args, **kwargs)
4309
4310 def SetDC(*args, **kwargs):
4311 """SetDC(self, DC dc)"""
4312 return _windows_.Printout_SetDC(*args, **kwargs)
4313
4314 def SetPageSizePixels(*args, **kwargs):
4315 """SetPageSizePixels(self, int w, int h)"""
4316 return _windows_.Printout_SetPageSizePixels(*args, **kwargs)
4317
4318 def GetPageSizePixels(*args, **kwargs):
4319 """GetPageSizePixels() -> (w, h)"""
4320 return _windows_.Printout_GetPageSizePixels(*args, **kwargs)
4321
4322 def SetPageSizeMM(*args, **kwargs):
4323 """SetPageSizeMM(self, int w, int h)"""
4324 return _windows_.Printout_SetPageSizeMM(*args, **kwargs)
4325
4326 def GetPageSizeMM(*args, **kwargs):
4327 """GetPageSizeMM() -> (w, h)"""
4328 return _windows_.Printout_GetPageSizeMM(*args, **kwargs)
4329
4330 def SetPPIScreen(*args, **kwargs):
4331 """SetPPIScreen(self, int x, int y)"""
4332 return _windows_.Printout_SetPPIScreen(*args, **kwargs)
4333
4334 def GetPPIScreen(*args, **kwargs):
4335 """GetPPIScreen() -> (x,y)"""
4336 return _windows_.Printout_GetPPIScreen(*args, **kwargs)
4337
4338 def SetPPIPrinter(*args, **kwargs):
4339 """SetPPIPrinter(self, int x, int y)"""
4340 return _windows_.Printout_SetPPIPrinter(*args, **kwargs)
4341
4342 def GetPPIPrinter(*args, **kwargs):
4343 """GetPPIPrinter() -> (x,y)"""
4344 return _windows_.Printout_GetPPIPrinter(*args, **kwargs)
4345
4346 def IsPreview(*args, **kwargs):
4347 """IsPreview(self) -> bool"""
4348 return _windows_.Printout_IsPreview(*args, **kwargs)
4349
4350 def SetIsPreview(*args, **kwargs):
4351 """SetIsPreview(self, bool p)"""
4352 return _windows_.Printout_SetIsPreview(*args, **kwargs)
4353
4354 def OnBeginDocument(*args, **kwargs):
4355 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4356 return _windows_.Printout_OnBeginDocument(*args, **kwargs)
4357
4358 def OnEndDocument(*args, **kwargs):
4359 """OnEndDocument(self)"""
4360 return _windows_.Printout_OnEndDocument(*args, **kwargs)
4361
4362 def OnBeginPrinting(*args, **kwargs):
4363 """OnBeginPrinting(self)"""
4364 return _windows_.Printout_OnBeginPrinting(*args, **kwargs)
4365
4366 def OnEndPrinting(*args, **kwargs):
4367 """OnEndPrinting(self)"""
4368 return _windows_.Printout_OnEndPrinting(*args, **kwargs)
4369
4370 def OnPreparePrinting(*args, **kwargs):
4371 """OnPreparePrinting(self)"""
4372 return _windows_.Printout_OnPreparePrinting(*args, **kwargs)
4373
4374 def HasPage(*args, **kwargs):
4375 """HasPage(self, int page) -> bool"""
4376 return _windows_.Printout_HasPage(*args, **kwargs)
4377
4378 def GetPageInfo(*args, **kwargs):
4379 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4380 return _windows_.Printout_GetPageInfo(*args, **kwargs)
4381
4382 def base_OnBeginDocument(*args, **kw):
4383 return Printout.OnBeginDocument(*args, **kw)
4384 base_OnBeginDocument = wx._deprecated(base_OnBeginDocument,
4385 "Please use Printout.OnBeginDocument instead.")
4386
4387 def base_OnEndDocument(*args, **kw):
4388 return Printout.OnEndDocument(*args, **kw)
4389 base_OnEndDocument = wx._deprecated(base_OnEndDocument,
4390 "Please use Printout.OnEndDocument instead.")
4391
4392 def base_OnBeginPrinting(*args, **kw):
4393 return Printout.OnBeginPrinting(*args, **kw)
4394 base_OnBeginPrinting = wx._deprecated(base_OnBeginPrinting,
4395 "Please use Printout.OnBeginPrinting instead.")
4396
4397 def base_OnEndPrinting(*args, **kw):
4398 return Printout.OnEndPrinting(*args, **kw)
4399 base_OnEndPrinting = wx._deprecated(base_OnEndPrinting,
4400 "Please use Printout.OnEndPrinting instead.")
4401
4402 def base_OnPreparePrinting(*args, **kw):
4403 return Printout.OnPreparePrinting(*args, **kw)
4404 base_OnPreparePrinting = wx._deprecated(base_OnPreparePrinting,
4405 "Please use Printout.OnPreparePrinting instead.")
4406
4407 def base_GetPageInfo(*args, **kw):
4408 return Printout.GetPageInfo(*args, **kw)
4409 base_GetPageInfo = wx._deprecated(base_GetPageInfo,
4410 "Please use Printout.GetPageInfo instead.")
4411
4412 _windows_.Printout_swigregister(Printout)
4413
4414 class PreviewCanvas(ScrolledWindow):
4415 """Proxy of C++ PreviewCanvas class"""
4416 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4417 __repr__ = _swig_repr
4418 def __init__(self, *args, **kwargs):
4419 """
4420 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4421 Size size=DefaultSize, long style=0,
4422 String name=PreviewCanvasNameStr) -> PreviewCanvas
4423 """
4424 _windows_.PreviewCanvas_swiginit(self,_windows_.new_PreviewCanvas(*args, **kwargs))
4425 self._setOORInfo(self)
4426
4427 _windows_.PreviewCanvas_swigregister(PreviewCanvas)
4428
4429 class PreviewFrame(Frame):
4430 """Proxy of C++ PreviewFrame class"""
4431 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4432 __repr__ = _swig_repr
4433 def __init__(self, *args, **kwargs):
4434 """
4435 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4436 Size size=DefaultSize,
4437 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4438 """
4439 _windows_.PreviewFrame_swiginit(self,_windows_.new_PreviewFrame(*args, **kwargs))
4440 self._setOORInfo(self)
4441
4442 def Initialize(*args, **kwargs):
4443 """Initialize(self)"""
4444 return _windows_.PreviewFrame_Initialize(*args, **kwargs)
4445
4446 def CreateControlBar(*args, **kwargs):
4447 """CreateControlBar(self)"""
4448 return _windows_.PreviewFrame_CreateControlBar(*args, **kwargs)
4449
4450 def CreateCanvas(*args, **kwargs):
4451 """CreateCanvas(self)"""
4452 return _windows_.PreviewFrame_CreateCanvas(*args, **kwargs)
4453
4454 def GetControlBar(*args, **kwargs):
4455 """GetControlBar(self) -> PreviewControlBar"""
4456 return _windows_.PreviewFrame_GetControlBar(*args, **kwargs)
4457
4458 _windows_.PreviewFrame_swigregister(PreviewFrame)
4459
4460 PREVIEW_PRINT = _windows_.PREVIEW_PRINT
4461 PREVIEW_PREVIOUS = _windows_.PREVIEW_PREVIOUS
4462 PREVIEW_NEXT = _windows_.PREVIEW_NEXT
4463 PREVIEW_ZOOM = _windows_.PREVIEW_ZOOM
4464 PREVIEW_FIRST = _windows_.PREVIEW_FIRST
4465 PREVIEW_LAST = _windows_.PREVIEW_LAST
4466 PREVIEW_GOTO = _windows_.PREVIEW_GOTO
4467 PREVIEW_DEFAULT = _windows_.PREVIEW_DEFAULT
4468 ID_PREVIEW_CLOSE = _windows_.ID_PREVIEW_CLOSE
4469 ID_PREVIEW_NEXT = _windows_.ID_PREVIEW_NEXT
4470 ID_PREVIEW_PREVIOUS = _windows_.ID_PREVIEW_PREVIOUS
4471 ID_PREVIEW_PRINT = _windows_.ID_PREVIEW_PRINT
4472 ID_PREVIEW_ZOOM = _windows_.ID_PREVIEW_ZOOM
4473 ID_PREVIEW_FIRST = _windows_.ID_PREVIEW_FIRST
4474 ID_PREVIEW_LAST = _windows_.ID_PREVIEW_LAST
4475 ID_PREVIEW_GOTO = _windows_.ID_PREVIEW_GOTO
4476 class PreviewControlBar(Panel):
4477 """Proxy of C++ PreviewControlBar class"""
4478 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4479 __repr__ = _swig_repr
4480 def __init__(self, *args, **kwargs):
4481 """
4482 __init__(self, PrintPreview preview, long buttons, Window parent,
4483 Point pos=DefaultPosition, Size size=DefaultSize,
4484 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4485 """
4486 _windows_.PreviewControlBar_swiginit(self,_windows_.new_PreviewControlBar(*args, **kwargs))
4487 self._setOORInfo(self)
4488
4489 def GetZoomControl(*args, **kwargs):
4490 """GetZoomControl(self) -> int"""
4491 return _windows_.PreviewControlBar_GetZoomControl(*args, **kwargs)
4492
4493 def SetZoomControl(*args, **kwargs):
4494 """SetZoomControl(self, int zoom)"""
4495 return _windows_.PreviewControlBar_SetZoomControl(*args, **kwargs)
4496
4497 def GetPrintPreview(*args, **kwargs):
4498 """GetPrintPreview(self) -> PrintPreview"""
4499 return _windows_.PreviewControlBar_GetPrintPreview(*args, **kwargs)
4500
4501 def OnNext(*args, **kwargs):
4502 """OnNext(self)"""
4503 return _windows_.PreviewControlBar_OnNext(*args, **kwargs)
4504
4505 def OnPrevious(*args, **kwargs):
4506 """OnPrevious(self)"""
4507 return _windows_.PreviewControlBar_OnPrevious(*args, **kwargs)
4508
4509 def OnFirst(*args, **kwargs):
4510 """OnFirst(self)"""
4511 return _windows_.PreviewControlBar_OnFirst(*args, **kwargs)
4512
4513 def OnLast(*args, **kwargs):
4514 """OnLast(self)"""
4515 return _windows_.PreviewControlBar_OnLast(*args, **kwargs)
4516
4517 def OnGoto(*args, **kwargs):
4518 """OnGoto(self)"""
4519 return _windows_.PreviewControlBar_OnGoto(*args, **kwargs)
4520
4521 _windows_.PreviewControlBar_swigregister(PreviewControlBar)
4522
4523 class PrintPreview(_core.Object):
4524 """Proxy of C++ PrintPreview class"""
4525 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4526 __repr__ = _swig_repr
4527 def __init__(self, *args):
4528 """
4529 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4530 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4531 """
4532 _windows_.PrintPreview_swiginit(self,_windows_.new_PrintPreview(*args))
4533 __swig_destroy__ = _windows_.delete_PrintPreview
4534 __del__ = lambda self : None;
4535 def SetCurrentPage(*args, **kwargs):
4536 """SetCurrentPage(self, int pageNum) -> bool"""
4537 return _windows_.PrintPreview_SetCurrentPage(*args, **kwargs)
4538
4539 def GetCurrentPage(*args, **kwargs):
4540 """GetCurrentPage(self) -> int"""
4541 return _windows_.PrintPreview_GetCurrentPage(*args, **kwargs)
4542
4543 def SetPrintout(*args, **kwargs):
4544 """SetPrintout(self, Printout printout)"""
4545 return _windows_.PrintPreview_SetPrintout(*args, **kwargs)
4546
4547 def GetPrintout(*args, **kwargs):
4548 """GetPrintout(self) -> Printout"""
4549 return _windows_.PrintPreview_GetPrintout(*args, **kwargs)
4550
4551 def GetPrintoutForPrinting(*args, **kwargs):
4552 """GetPrintoutForPrinting(self) -> Printout"""
4553 return _windows_.PrintPreview_GetPrintoutForPrinting(*args, **kwargs)
4554
4555 def SetFrame(*args, **kwargs):
4556 """SetFrame(self, Frame frame)"""
4557 return _windows_.PrintPreview_SetFrame(*args, **kwargs)
4558
4559 def SetCanvas(*args, **kwargs):
4560 """SetCanvas(self, PreviewCanvas canvas)"""
4561 return _windows_.PrintPreview_SetCanvas(*args, **kwargs)
4562
4563 def GetFrame(*args, **kwargs):
4564 """GetFrame(self) -> Frame"""
4565 return _windows_.PrintPreview_GetFrame(*args, **kwargs)
4566
4567 def GetCanvas(*args, **kwargs):
4568 """GetCanvas(self) -> PreviewCanvas"""
4569 return _windows_.PrintPreview_GetCanvas(*args, **kwargs)
4570
4571 def PaintPage(*args, **kwargs):
4572 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4573 return _windows_.PrintPreview_PaintPage(*args, **kwargs)
4574
4575 def DrawBlankPage(*args, **kwargs):
4576 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4577 return _windows_.PrintPreview_DrawBlankPage(*args, **kwargs)
4578
4579 def RenderPage(*args, **kwargs):
4580 """RenderPage(self, int pageNum) -> bool"""
4581 return _windows_.PrintPreview_RenderPage(*args, **kwargs)
4582
4583 def AdjustScrollbars(*args, **kwargs):
4584 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4585 return _windows_.PrintPreview_AdjustScrollbars(*args, **kwargs)
4586
4587 def GetPrintDialogData(*args, **kwargs):
4588 """GetPrintDialogData(self) -> PrintDialogData"""
4589 return _windows_.PrintPreview_GetPrintDialogData(*args, **kwargs)
4590
4591 def SetZoom(*args, **kwargs):
4592 """SetZoom(self, int percent)"""
4593 return _windows_.PrintPreview_SetZoom(*args, **kwargs)
4594
4595 def GetZoom(*args, **kwargs):
4596 """GetZoom(self) -> int"""
4597 return _windows_.PrintPreview_GetZoom(*args, **kwargs)
4598
4599 def GetMaxPage(*args, **kwargs):
4600 """GetMaxPage(self) -> int"""
4601 return _windows_.PrintPreview_GetMaxPage(*args, **kwargs)
4602
4603 def GetMinPage(*args, **kwargs):
4604 """GetMinPage(self) -> int"""
4605 return _windows_.PrintPreview_GetMinPage(*args, **kwargs)
4606
4607 def Ok(*args, **kwargs):
4608 """Ok(self) -> bool"""
4609 return _windows_.PrintPreview_Ok(*args, **kwargs)
4610
4611 def SetOk(*args, **kwargs):
4612 """SetOk(self, bool ok)"""
4613 return _windows_.PrintPreview_SetOk(*args, **kwargs)
4614
4615 def Print(*args, **kwargs):
4616 """Print(self, bool interactive) -> bool"""
4617 return _windows_.PrintPreview_Print(*args, **kwargs)
4618
4619 def DetermineScaling(*args, **kwargs):
4620 """DetermineScaling(self)"""
4621 return _windows_.PrintPreview_DetermineScaling(*args, **kwargs)
4622
4623 def __nonzero__(self): return self.Ok()
4624 _windows_.PrintPreview_swigregister(PrintPreview)
4625
4626 class PyPrintPreview(PrintPreview):
4627 """Proxy of C++ PyPrintPreview class"""
4628 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4629 __repr__ = _swig_repr
4630 def __init__(self, *args):
4631 """
4632 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4633 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4634 """
4635 _windows_.PyPrintPreview_swiginit(self,_windows_.new_PyPrintPreview(*args))
4636 self._setCallbackInfo(self, PyPrintPreview)
4637
4638 def _setCallbackInfo(*args, **kwargs):
4639 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4640 return _windows_.PyPrintPreview__setCallbackInfo(*args, **kwargs)
4641
4642 def base_SetCurrentPage(*args, **kw):
4643 return PyPrintPreview.SetCurrentPage(*args, **kw)
4644 base_SetCurrentPage = wx._deprecated(base_SetCurrentPage,
4645 "Please use PyPrintPreview.SetCurrentPage instead.")
4646
4647 def base_PaintPage(*args, **kw):
4648 return PyPrintPreview.PaintPage(*args, **kw)
4649 base_PaintPage = wx._deprecated(base_PaintPage,
4650 "Please use PyPrintPreview.PaintPage instead.")
4651
4652 def base_DrawBlankPage(*args, **kw):
4653 return PyPrintPreview.DrawBlankPage(*args, **kw)
4654 base_DrawBlankPage = wx._deprecated(base_DrawBlankPage,
4655 "Please use PyPrintPreview.DrawBlankPage instead.")
4656
4657 def base_RenderPage(*args, **kw):
4658 return PyPrintPreview.RenderPage(*args, **kw)
4659 base_RenderPage = wx._deprecated(base_RenderPage,
4660 "Please use PyPrintPreview.RenderPage instead.")
4661
4662 def base_SetZoom(*args, **kw):
4663 return PyPrintPreview.SetZoom(*args, **kw)
4664 base_SetZoom = wx._deprecated(base_SetZoom,
4665 "Please use PyPrintPreview.SetZoom instead.")
4666
4667 def base_Print(*args, **kw):
4668 return PyPrintPreview.Print(*args, **kw)
4669 base_Print = wx._deprecated(base_Print,
4670 "Please use PyPrintPreview.Print instead.")
4671
4672 def base_DetermineScaling(*args, **kw):
4673 return PyPrintPreview.DetermineScaling(*args, **kw)
4674 base_DetermineScaling = wx._deprecated(base_DetermineScaling,
4675 "Please use PyPrintPreview.DetermineScaling instead.")
4676
4677 _windows_.PyPrintPreview_swigregister(PyPrintPreview)
4678
4679 class PyPreviewFrame(PreviewFrame):
4680 """Proxy of C++ PyPreviewFrame class"""
4681 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4682 __repr__ = _swig_repr
4683 def __init__(self, *args, **kwargs):
4684 """
4685 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4686 Size size=DefaultSize,
4687 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4688 """
4689 _windows_.PyPreviewFrame_swiginit(self,_windows_.new_PyPreviewFrame(*args, **kwargs))
4690 self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self)
4691
4692 def _setCallbackInfo(*args, **kwargs):
4693 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4694 return _windows_.PyPreviewFrame__setCallbackInfo(*args, **kwargs)
4695
4696 def SetPreviewCanvas(*args, **kwargs):
4697 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4698 return _windows_.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs)
4699
4700 def SetControlBar(*args, **kwargs):
4701 """SetControlBar(self, PreviewControlBar bar)"""
4702 return _windows_.PyPreviewFrame_SetControlBar(*args, **kwargs)
4703
4704 def Initialize(*args, **kwargs):
4705 """Initialize(self)"""
4706 return _windows_.PyPreviewFrame_Initialize(*args, **kwargs)
4707
4708 def CreateCanvas(*args, **kwargs):
4709 """CreateCanvas(self)"""
4710 return _windows_.PyPreviewFrame_CreateCanvas(*args, **kwargs)
4711
4712 def CreateControlBar(*args, **kwargs):
4713 """CreateControlBar(self)"""
4714 return _windows_.PyPreviewFrame_CreateControlBar(*args, **kwargs)
4715
4716 def base_Initialize(*args, **kw):
4717 return PyPreviewFrame.Initialize(*args, **kw)
4718 base_Initialize = wx._deprecated(base_Initialize,
4719 "Please use PyPreviewFrame.Initialize instead.")
4720
4721 def base_CreateCanvas(*args, **kw):
4722 return PyPreviewFrame.CreateCanvas(*args, **kw)
4723 base_CreateCanvas = wx._deprecated(base_CreateCanvas,
4724 "Please use PyPreviewFrame.CreateCanvas instead.")
4725
4726 def base_CreateControlBar(*args, **kw):
4727 return PyPreviewFrame.CreateControlBar(*args, **kw)
4728 base_CreateControlBar = wx._deprecated(base_CreateControlBar,
4729 "Please use PyPreviewFrame.CreateControlBar instead.")
4730
4731 _windows_.PyPreviewFrame_swigregister(PyPreviewFrame)
4732
4733 class PyPreviewControlBar(PreviewControlBar):
4734 """Proxy of C++ PyPreviewControlBar class"""
4735 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4736 __repr__ = _swig_repr
4737 def __init__(self, *args, **kwargs):
4738 """
4739 __init__(self, PrintPreview preview, long buttons, Window parent,
4740 Point pos=DefaultPosition, Size size=DefaultSize,
4741 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4742 """
4743 _windows_.PyPreviewControlBar_swiginit(self,_windows_.new_PyPreviewControlBar(*args, **kwargs))
4744 self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self)
4745
4746 def _setCallbackInfo(*args, **kwargs):
4747 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4748 return _windows_.PyPreviewControlBar__setCallbackInfo(*args, **kwargs)
4749
4750 def SetPrintPreview(*args, **kwargs):
4751 """SetPrintPreview(self, PrintPreview preview)"""
4752 return _windows_.PyPreviewControlBar_SetPrintPreview(*args, **kwargs)
4753
4754 def CreateButtons(*args, **kwargs):
4755 """CreateButtons(self)"""
4756 return _windows_.PyPreviewControlBar_CreateButtons(*args, **kwargs)
4757
4758 def SetZoomControl(*args, **kwargs):
4759 """SetZoomControl(self, int zoom)"""
4760 return _windows_.PyPreviewControlBar_SetZoomControl(*args, **kwargs)
4761
4762 def base_CreateButtons(*args, **kw):
4763 return PreviewControlBar.CreateButtons(*args, **kw)
4764 base_CreateButtons = wx._deprecated(base_CreateButtons,
4765 "Please use PreviewControlBar.CreateButtons instead.")
4766
4767 def base_SetZoomControl(*args, **kw):
4768 return PreviewControlBar.SetZoomControl(*args, **kw)
4769 base_SetZoomControl = wx._deprecated(base_SetZoomControl,
4770 "Please use PreviewControlBar.SetZoomControl instead.")
4771
4772 _windows_.PyPreviewControlBar_swigregister(PyPreviewControlBar)
4773
4774
4775