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