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