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