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