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