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