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