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