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