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