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