]> git.saurik.com Git - wxWidgets.git/blame_incremental - wxPython/src/gtk/_windows.py
use the right number in the tarball filename
[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 SetShape(*args, **kwargs):
401 """SetShape(self, Region region) -> bool"""
402 return _windows_.TopLevelWindow_SetShape(*args, **kwargs)
403
404 def RequestUserAttention(*args, **kwargs):
405 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
406 return _windows_.TopLevelWindow_RequestUserAttention(*args, **kwargs)
407
408 def IsActive(*args, **kwargs):
409 """IsActive(self) -> bool"""
410 return _windows_.TopLevelWindow_IsActive(*args, **kwargs)
411
412 def MacSetMetalAppearance(*args, **kwargs):
413 """MacSetMetalAppearance(self, bool on)"""
414 return _windows_.TopLevelWindow_MacSetMetalAppearance(*args, **kwargs)
415
416 def MacGetMetalAppearance(*args, **kwargs):
417 """MacGetMetalAppearance(self) -> bool"""
418 return _windows_.TopLevelWindow_MacGetMetalAppearance(*args, **kwargs)
419
420 def CenterOnScreen(*args, **kwargs):
421 """
422 CenterOnScreen(self, int dir=BOTH)
423
424 Center the window on screen
425 """
426 return _windows_.TopLevelWindow_CenterOnScreen(*args, **kwargs)
427
428 CentreOnScreen = CenterOnScreen
429 def EnableCloseButton(*args, **kwargs):
430 """EnableCloseButton(self, bool enable=True) -> bool"""
431 return _windows_.TopLevelWindow_EnableCloseButton(*args, **kwargs)
432
433 def GetDefaultItem(*args, **kwargs):
434 """
435 GetDefaultItem(self) -> Window
436
437 Get the default child of this parent, i.e. the one which is activated
438 by pressing <Enter> such as the OK button on a wx.Dialog.
439 """
440 return _windows_.TopLevelWindow_GetDefaultItem(*args, **kwargs)
441
442 def SetDefaultItem(*args, **kwargs):
443 """
444 SetDefaultItem(self, Window child) -> Window
445
446 Set this child as default, return the old default.
447 """
448 return _windows_.TopLevelWindow_SetDefaultItem(*args, **kwargs)
449
450 def SetTmpDefaultItem(*args, **kwargs):
451 """
452 SetTmpDefaultItem(self, Window win)
453
454 Set this child as temporary default
455 """
456 return _windows_.TopLevelWindow_SetTmpDefaultItem(*args, **kwargs)
457
458 def GetTmpDefaultItem(*args, **kwargs):
459 """
460 GetTmpDefaultItem(self) -> Window
461
462 Return the temporary default item, which can be None.
463 """
464 return _windows_.TopLevelWindow_GetTmpDefaultItem(*args, **kwargs)
465
466 DefaultItem = property(GetDefaultItem,SetDefaultItem,doc="See `GetDefaultItem` and `SetDefaultItem`")
467 Icon = property(GetIcon,SetIcon,doc="See `GetIcon` and `SetIcon`")
468 Title = property(GetTitle,SetTitle,doc="See `GetTitle` and `SetTitle`")
469 TmpDefaultItem = property(GetTmpDefaultItem,SetTmpDefaultItem,doc="See `GetTmpDefaultItem` and `SetTmpDefaultItem`")
470_windows_.TopLevelWindow_swigregister(TopLevelWindow)
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 EnableEffects = property(GetEnableEffects,doc="See `GetEnableEffects`")
2797 InitialFont = property(GetInitialFont,SetInitialFont,doc="See `GetInitialFont` and `SetInitialFont`")
2798 ShowHelp = property(GetShowHelp,SetShowHelp,doc="See `GetShowHelp` and `SetShowHelp`")
2799_windows_.FontData_swigregister(FontData)
2800
2801class FontDialog(Dialog):
2802 """
2803 wx.FontDialog allows the user to select a system font and its attributes.
2804
2805 :see: `wx.FontData`
2806
2807 """
2808 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2809 __repr__ = _swig_repr
2810 def __init__(self, *args, **kwargs):
2811 """
2812 __init__(self, Window parent, FontData data) -> FontDialog
2813
2814 Constructor. Pass a parent window and the `wx.FontData` object to be
2815 used to initialize the dialog controls. Call `ShowModal` to display
2816 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2817 results with via the `wx.FontData` returned by `GetFontData`.
2818 """
2819 _windows_.FontDialog_swiginit(self,_windows_.new_FontDialog(*args, **kwargs))
2820 self._setOORInfo(self)
2821
2822 def GetFontData(*args, **kwargs):
2823 """
2824 GetFontData(self) -> FontData
2825
2826 Returns a reference to the internal `wx.FontData` used by the
2827 wx.FontDialog.
2828 """
2829 return _windows_.FontDialog_GetFontData(*args, **kwargs)
2830
2831 FontData = property(GetFontData,doc="See `GetFontData`")
2832_windows_.FontDialog_swigregister(FontDialog)
2833
2834
2835def GetFontFromUser(*args, **kwargs):
2836 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2837 return _windows_.GetFontFromUser(*args, **kwargs)
2838class MessageDialog(Dialog):
2839 """
2840 This class provides a simple dialog that shows a single or multi-line
2841 message, with a choice of OK, Yes, No and/or Cancel buttons.
2842 """
2843 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2844 __repr__ = _swig_repr
2845 def __init__(self, *args, **kwargs):
2846 """
2847 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2848 long style=wxOK|wxCANCEL|wxCENTRE,
2849 Point pos=DefaultPosition) -> MessageDialog
2850
2851 Constructor, use `ShowModal` to display the dialog.
2852 """
2853 _windows_.MessageDialog_swiginit(self,_windows_.new_MessageDialog(*args, **kwargs))
2854 self._setOORInfo(self)
2855
2856_windows_.MessageDialog_swigregister(MessageDialog)
2857
2858PD_AUTO_HIDE = _windows_.PD_AUTO_HIDE
2859PD_APP_MODAL = _windows_.PD_APP_MODAL
2860PD_CAN_ABORT = _windows_.PD_CAN_ABORT
2861PD_ELAPSED_TIME = _windows_.PD_ELAPSED_TIME
2862PD_ESTIMATED_TIME = _windows_.PD_ESTIMATED_TIME
2863PD_REMAINING_TIME = _windows_.PD_REMAINING_TIME
2864PD_SMOOTH = _windows_.PD_SMOOTH
2865PD_CAN_SKIP = _windows_.PD_CAN_SKIP
2866class ProgressDialog(Frame):
2867 """
2868 A dialog that shows a short message and a progress bar. Optionally, it
2869 can display an ABORT button.
2870 """
2871 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
2872 __repr__ = _swig_repr
2873 def __init__(self, *args, **kwargs):
2874 """
2875 __init__(self, String title, String message, int maximum=100, Window parent=None,
2876 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2877
2878 Constructor. Creates the dialog, displays it and disables user input
2879 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2880 parent window only.
2881 """
2882 _windows_.ProgressDialog_swiginit(self,_windows_.new_ProgressDialog(*args, **kwargs))
2883 self._setOORInfo(self)
2884
2885 def Update(*args, **kwargs):
2886 """
2887 Update(self, int value, String newmsg) --> (continue, skip)
2888
2889 Updates the dialog, setting the progress bar to the new value and, if
2890 given changes the message above it. The value given should be less
2891 than or equal to the maximum value given to the constructor and the
2892 dialog is closed if it is equal to the maximum. Returns a tuple of
2893 boolean values, ``(continue, skip)`` where ``continue`` is ``True``
2894 unless the Cancel button has been pressed, and ``skip`` is ``False``
2895 unless the Skip button (if any) has been pressed.
2896
2897 If the ``continue`` return value is ``False``, the application can either
2898 immediately destroy the dialog or ask the user for confirmation, and if the
2899 abort is not confirmed the dialog may be resumed with `Resume` function.
2900
2901 """
2902 return _windows_.ProgressDialog_Update(*args, **kwargs)
2903
2904 def UpdatePulse(*args, **kwargs):
2905 """
2906 UpdatePulse(self, String newmsg) --> (continue, skip)
2907
2908 Just like `Update` but switches the dialog to use a gauge in
2909 interminante mode and calls `wx.Gauge.Pulse` to show the user a bit of
2910 progress.
2911 """
2912 return _windows_.ProgressDialog_UpdatePulse(*args, **kwargs)
2913
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 SetBestSize(*args, **kwargs):
3292 """SetBestSize(self, Size size)"""
3293 return _windows_.PyWindow_SetBestSize(*args, **kwargs)
3294
3295 def DoEraseBackground(*args, **kwargs):
3296 """DoEraseBackground(self, DC dc) -> bool"""
3297 return _windows_.PyWindow_DoEraseBackground(*args, **kwargs)
3298
3299 def DoMoveWindow(*args, **kwargs):
3300 """DoMoveWindow(self, int x, int y, int width, int height)"""
3301 return _windows_.PyWindow_DoMoveWindow(*args, **kwargs)
3302
3303 def DoSetSize(*args, **kwargs):
3304 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3305 return _windows_.PyWindow_DoSetSize(*args, **kwargs)
3306
3307 def DoSetClientSize(*args, **kwargs):
3308 """DoSetClientSize(self, int width, int height)"""
3309 return _windows_.PyWindow_DoSetClientSize(*args, **kwargs)
3310
3311 def DoSetVirtualSize(*args, **kwargs):
3312 """DoSetVirtualSize(self, int x, int y)"""
3313 return _windows_.PyWindow_DoSetVirtualSize(*args, **kwargs)
3314
3315 def DoGetSize(*args, **kwargs):
3316 """DoGetSize() -> (width, height)"""
3317 return _windows_.PyWindow_DoGetSize(*args, **kwargs)
3318
3319 def DoGetClientSize(*args, **kwargs):
3320 """DoGetClientSize() -> (width, height)"""
3321 return _windows_.PyWindow_DoGetClientSize(*args, **kwargs)
3322
3323 def DoGetPosition(*args, **kwargs):
3324 """DoGetPosition() -> (x,y)"""
3325 return _windows_.PyWindow_DoGetPosition(*args, **kwargs)
3326
3327 def DoGetVirtualSize(*args, **kwargs):
3328 """DoGetVirtualSize(self) -> Size"""
3329 return _windows_.PyWindow_DoGetVirtualSize(*args, **kwargs)
3330
3331 def DoGetBestSize(*args, **kwargs):
3332 """DoGetBestSize(self) -> Size"""
3333 return _windows_.PyWindow_DoGetBestSize(*args, **kwargs)
3334
3335 def GetDefaultAttributes(*args, **kwargs):
3336 """GetDefaultAttributes(self) -> VisualAttributes"""
3337 return _windows_.PyWindow_GetDefaultAttributes(*args, **kwargs)
3338
3339 def OnInternalIdle(*args, **kwargs):
3340 """OnInternalIdle(self)"""
3341 return _windows_.PyWindow_OnInternalIdle(*args, **kwargs)
3342
3343 def base_DoMoveWindow(*args, **kw):
3344 return PyWindow.DoMoveWindow(*args, **kw)
3345 base_DoMoveWindow = wx._deprecated(base_DoMoveWindow,
3346 "Please use PyWindow.DoMoveWindow instead.")
3347
3348 def base_DoSetSize(*args, **kw):
3349 return PyWindow.DoSetSize(*args, **kw)
3350 base_DoSetSize = wx._deprecated(base_DoSetSize,
3351 "Please use PyWindow.DoSetSize instead.")
3352
3353 def base_DoSetClientSize(*args, **kw):
3354 return PyWindow.DoSetClientSize(*args, **kw)
3355 base_DoSetClientSize = wx._deprecated(base_DoSetClientSize,
3356 "Please use PyWindow.DoSetClientSize instead.")
3357
3358 def base_DoSetVirtualSize(*args, **kw):
3359 return PyWindow.DoSetVirtualSize(*args, **kw)
3360 base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize,
3361 "Please use PyWindow.DoSetVirtualSize instead.")
3362
3363 def base_DoGetSize(*args, **kw):
3364 return PyWindow.DoGetSize(*args, **kw)
3365 base_DoGetSize = wx._deprecated(base_DoGetSize,
3366 "Please use PyWindow.DoGetSize instead.")
3367
3368 def base_DoGetClientSize(*args, **kw):
3369 return PyWindow.DoGetClientSize(*args, **kw)
3370 base_DoGetClientSize = wx._deprecated(base_DoGetClientSize,
3371 "Please use PyWindow.DoGetClientSize instead.")
3372
3373 def base_DoGetPosition(*args, **kw):
3374 return PyWindow.DoGetPosition(*args, **kw)
3375 base_DoGetPosition = wx._deprecated(base_DoGetPosition,
3376 "Please use PyWindow.DoGetPosition instead.")
3377
3378 def base_DoGetVirtualSize(*args, **kw):
3379 return PyWindow.DoGetVirtualSize(*args, **kw)
3380 base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize,
3381 "Please use PyWindow.DoGetVirtualSize instead.")
3382
3383 def base_DoGetBestSize(*args, **kw):
3384 return PyWindow.DoGetBestSize(*args, **kw)
3385 base_DoGetBestSize = wx._deprecated(base_DoGetBestSize,
3386 "Please use PyWindow.DoGetBestSize instead.")
3387
3388 def base_InitDialog(*args, **kw):
3389 return PyWindow.InitDialog(*args, **kw)
3390 base_InitDialog = wx._deprecated(base_InitDialog,
3391 "Please use PyWindow.InitDialog instead.")
3392
3393 def base_TransferDataToWindow(*args, **kw):
3394 return PyWindow.TransferDataToWindow(*args, **kw)
3395 base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow,
3396 "Please use PyWindow.TransferDataToWindow instead.")
3397
3398 def base_TransferDataFromWindow(*args, **kw):
3399 return PyWindow.TransferDataFromWindow(*args, **kw)
3400 base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow,
3401 "Please use PyWindow.TransferDataFromWindow instead.")
3402
3403 def base_Validate(*args, **kw):
3404 return PyWindow.Validate(*args, **kw)
3405 base_Validate = wx._deprecated(base_Validate,
3406 "Please use PyWindow.Validate instead.")
3407
3408 def base_AcceptsFocus(*args, **kw):
3409 return PyWindow.AcceptsFocus(*args, **kw)
3410 base_AcceptsFocus = wx._deprecated(base_AcceptsFocus,
3411 "Please use PyWindow.AcceptsFocus instead.")
3412
3413 def base_AcceptsFocusFromKeyboard(*args, **kw):
3414 return PyWindow.AcceptsFocusFromKeyboard(*args, **kw)
3415 base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard,
3416 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3417
3418 def base_GetMaxSize(*args, **kw):
3419 return PyWindow.GetMaxSize(*args, **kw)
3420 base_GetMaxSize = wx._deprecated(base_GetMaxSize,
3421 "Please use PyWindow.GetMaxSize instead.")
3422
3423 def base_AddChild(*args, **kw):
3424 return PyWindow.AddChild(*args, **kw)
3425 base_AddChild = wx._deprecated(base_AddChild,
3426 "Please use PyWindow.AddChild instead.")
3427
3428 def base_RemoveChild(*args, **kw):
3429 return PyWindow.RemoveChild(*args, **kw)
3430 base_RemoveChild = wx._deprecated(base_RemoveChild,
3431 "Please use PyWindow.RemoveChild instead.")
3432
3433 def base_ShouldInheritColours(*args, **kw):
3434 return PyWindow.ShouldInheritColours(*args, **kw)
3435 base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours,
3436 "Please use PyWindow.ShouldInheritColours instead.")
3437
3438 def base_GetDefaultAttributes(*args, **kw):
3439 return PyWindow.GetDefaultAttributes(*args, **kw)
3440 base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes,
3441 "Please use PyWindow.GetDefaultAttributes instead.")
3442
3443 def base_OnInternalIdle(*args, **kw):
3444 return PyWindow.OnInternalIdle(*args, **kw)
3445 base_OnInternalIdle = wx._deprecated(base_OnInternalIdle,
3446 "Please use PyWindow.OnInternalIdle instead.")
3447
3448_windows_.PyWindow_swigregister(PyWindow)
3449
3450def PrePyWindow(*args, **kwargs):
3451 """PrePyWindow() -> PyWindow"""
3452 val = _windows_.new_PrePyWindow(*args, **kwargs)
3453 return val
3454
3455class PyPanel(Panel):
3456 """Proxy of C++ PyPanel class"""
3457 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3458 __repr__ = _swig_repr
3459 def __init__(self, *args, **kwargs):
3460 """
3461 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3462 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3463 """
3464 _windows_.PyPanel_swiginit(self,_windows_.new_PyPanel(*args, **kwargs))
3465 self._setOORInfo(self); self._setCallbackInfo(self, PyPanel)
3466
3467 def _setCallbackInfo(*args, **kwargs):
3468 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3469 return _windows_.PyPanel__setCallbackInfo(*args, **kwargs)
3470
3471 def SetBestSize(*args, **kwargs):
3472 """SetBestSize(self, Size size)"""
3473 return _windows_.PyPanel_SetBestSize(*args, **kwargs)
3474
3475 def DoEraseBackground(*args, **kwargs):
3476 """DoEraseBackground(self, DC dc) -> bool"""
3477 return _windows_.PyPanel_DoEraseBackground(*args, **kwargs)
3478
3479 def DoMoveWindow(*args, **kwargs):
3480 """DoMoveWindow(self, int x, int y, int width, int height)"""
3481 return _windows_.PyPanel_DoMoveWindow(*args, **kwargs)
3482
3483 def DoSetSize(*args, **kwargs):
3484 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3485 return _windows_.PyPanel_DoSetSize(*args, **kwargs)
3486
3487 def DoSetClientSize(*args, **kwargs):
3488 """DoSetClientSize(self, int width, int height)"""
3489 return _windows_.PyPanel_DoSetClientSize(*args, **kwargs)
3490
3491 def DoSetVirtualSize(*args, **kwargs):
3492 """DoSetVirtualSize(self, int x, int y)"""
3493 return _windows_.PyPanel_DoSetVirtualSize(*args, **kwargs)
3494
3495 def DoGetSize(*args, **kwargs):
3496 """DoGetSize() -> (width, height)"""
3497 return _windows_.PyPanel_DoGetSize(*args, **kwargs)
3498
3499 def DoGetClientSize(*args, **kwargs):
3500 """DoGetClientSize() -> (width, height)"""
3501 return _windows_.PyPanel_DoGetClientSize(*args, **kwargs)
3502
3503 def DoGetPosition(*args, **kwargs):
3504 """DoGetPosition() -> (x,y)"""
3505 return _windows_.PyPanel_DoGetPosition(*args, **kwargs)
3506
3507 def DoGetVirtualSize(*args, **kwargs):
3508 """DoGetVirtualSize(self) -> Size"""
3509 return _windows_.PyPanel_DoGetVirtualSize(*args, **kwargs)
3510
3511 def DoGetBestSize(*args, **kwargs):
3512 """DoGetBestSize(self) -> Size"""
3513 return _windows_.PyPanel_DoGetBestSize(*args, **kwargs)
3514
3515 def GetDefaultAttributes(*args, **kwargs):
3516 """GetDefaultAttributes(self) -> VisualAttributes"""
3517 return _windows_.PyPanel_GetDefaultAttributes(*args, **kwargs)
3518
3519 def OnInternalIdle(*args, **kwargs):
3520 """OnInternalIdle(self)"""
3521 return _windows_.PyPanel_OnInternalIdle(*args, **kwargs)
3522
3523 def base_DoMoveWindow(*args, **kw):
3524 return PyPanel.DoMoveWindow(*args, **kw)
3525 base_DoMoveWindow = wx._deprecated(base_DoMoveWindow,
3526 "Please use PyPanel.DoMoveWindow instead.")
3527
3528 def base_DoSetSize(*args, **kw):
3529 return PyPanel.DoSetSize(*args, **kw)
3530 base_DoSetSize = wx._deprecated(base_DoSetSize,
3531 "Please use PyPanel.DoSetSize instead.")
3532
3533 def base_DoSetClientSize(*args, **kw):
3534 return PyPanel.DoSetClientSize(*args, **kw)
3535 base_DoSetClientSize = wx._deprecated(base_DoSetClientSize,
3536 "Please use PyPanel.DoSetClientSize instead.")
3537
3538 def base_DoSetVirtualSize(*args, **kw):
3539 return PyPanel.DoSetVirtualSize(*args, **kw)
3540 base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize,
3541 "Please use PyPanel.DoSetVirtualSize instead.")
3542
3543 def base_DoGetSize(*args, **kw):
3544 return PyPanel.DoGetSize(*args, **kw)
3545 base_DoGetSize = wx._deprecated(base_DoGetSize,
3546 "Please use PyPanel.DoGetSize instead.")
3547
3548 def base_DoGetClientSize(*args, **kw):
3549 return PyPanel.DoGetClientSize(*args, **kw)
3550 base_DoGetClientSize = wx._deprecated(base_DoGetClientSize,
3551 "Please use PyPanel.DoGetClientSize instead.")
3552
3553 def base_DoGetPosition(*args, **kw):
3554 return PyPanel.DoGetPosition(*args, **kw)
3555 base_DoGetPosition = wx._deprecated(base_DoGetPosition,
3556 "Please use PyPanel.DoGetPosition instead.")
3557
3558 def base_DoGetVirtualSize(*args, **kw):
3559 return PyPanel.DoGetVirtualSize(*args, **kw)
3560 base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize,
3561 "Please use PyPanel.DoGetVirtualSize instead.")
3562
3563 def base_DoGetBestSize(*args, **kw):
3564 return PyPanel.DoGetBestSize(*args, **kw)
3565 base_DoGetBestSize = wx._deprecated(base_DoGetBestSize,
3566 "Please use PyPanel.DoGetBestSize instead.")
3567
3568 def base_InitDialog(*args, **kw):
3569 return PyPanel.InitDialog(*args, **kw)
3570 base_InitDialog = wx._deprecated(base_InitDialog,
3571 "Please use PyPanel.InitDialog instead.")
3572
3573 def base_TransferDataToWindow(*args, **kw):
3574 return PyPanel.TransferDataToWindow(*args, **kw)
3575 base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow,
3576 "Please use PyPanel.TransferDataToWindow instead.")
3577
3578 def base_TransferDataFromWindow(*args, **kw):
3579 return PyPanel.TransferDataFromWindow(*args, **kw)
3580 base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow,
3581 "Please use PyPanel.TransferDataFromWindow instead.")
3582
3583 def base_Validate(*args, **kw):
3584 return PyPanel.Validate(*args, **kw)
3585 base_Validate = wx._deprecated(base_Validate,
3586 "Please use PyPanel.Validate instead.")
3587
3588 def base_AcceptsFocus(*args, **kw):
3589 return PyPanel.AcceptsFocus(*args, **kw)
3590 base_AcceptsFocus = wx._deprecated(base_AcceptsFocus,
3591 "Please use PyPanel.AcceptsFocus instead.")
3592
3593 def base_AcceptsFocusFromKeyboard(*args, **kw):
3594 return PyPanel.AcceptsFocusFromKeyboard(*args, **kw)
3595 base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard,
3596 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
3597
3598 def base_GetMaxSize(*args, **kw):
3599 return PyPanel.GetMaxSize(*args, **kw)
3600 base_GetMaxSize = wx._deprecated(base_GetMaxSize,
3601 "Please use PyPanel.GetMaxSize instead.")
3602
3603 def base_AddChild(*args, **kw):
3604 return PyPanel.AddChild(*args, **kw)
3605 base_AddChild = wx._deprecated(base_AddChild,
3606 "Please use PyPanel.AddChild instead.")
3607
3608 def base_RemoveChild(*args, **kw):
3609 return PyPanel.RemoveChild(*args, **kw)
3610 base_RemoveChild = wx._deprecated(base_RemoveChild,
3611 "Please use PyPanel.RemoveChild instead.")
3612
3613 def base_ShouldInheritColours(*args, **kw):
3614 return PyPanel.ShouldInheritColours(*args, **kw)
3615 base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours,
3616 "Please use PyPanel.ShouldInheritColours instead.")
3617
3618 def base_GetDefaultAttributes(*args, **kw):
3619 return PyPanel.GetDefaultAttributes(*args, **kw)
3620 base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes,
3621 "Please use PyPanel.GetDefaultAttributes instead.")
3622
3623 def base_OnInternalIdle(*args, **kw):
3624 return PyPanel.OnInternalIdle(*args, **kw)
3625 base_OnInternalIdle = wx._deprecated(base_OnInternalIdle,
3626 "Please use PyPanel.OnInternalIdle instead.")
3627
3628_windows_.PyPanel_swigregister(PyPanel)
3629
3630def PrePyPanel(*args, **kwargs):
3631 """PrePyPanel() -> PyPanel"""
3632 val = _windows_.new_PrePyPanel(*args, **kwargs)
3633 return val
3634
3635class PyScrolledWindow(ScrolledWindow):
3636 """Proxy of C++ PyScrolledWindow class"""
3637 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3638 __repr__ = _swig_repr
3639 def __init__(self, *args, **kwargs):
3640 """
3641 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3642 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3643 """
3644 _windows_.PyScrolledWindow_swiginit(self,_windows_.new_PyScrolledWindow(*args, **kwargs))
3645 self._setOORInfo(self); self._setCallbackInfo(self, PyScrolledWindow)
3646
3647 def _setCallbackInfo(*args, **kwargs):
3648 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3649 return _windows_.PyScrolledWindow__setCallbackInfo(*args, **kwargs)
3650
3651 def SetBestSize(*args, **kwargs):
3652 """SetBestSize(self, Size size)"""
3653 return _windows_.PyScrolledWindow_SetBestSize(*args, **kwargs)
3654
3655 def DoEraseBackground(*args, **kwargs):
3656 """DoEraseBackground(self, DC dc) -> bool"""
3657 return _windows_.PyScrolledWindow_DoEraseBackground(*args, **kwargs)
3658
3659 def DoMoveWindow(*args, **kwargs):
3660 """DoMoveWindow(self, int x, int y, int width, int height)"""
3661 return _windows_.PyScrolledWindow_DoMoveWindow(*args, **kwargs)
3662
3663 def DoSetSize(*args, **kwargs):
3664 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3665 return _windows_.PyScrolledWindow_DoSetSize(*args, **kwargs)
3666
3667 def DoSetClientSize(*args, **kwargs):
3668 """DoSetClientSize(self, int width, int height)"""
3669 return _windows_.PyScrolledWindow_DoSetClientSize(*args, **kwargs)
3670
3671 def DoSetVirtualSize(*args, **kwargs):
3672 """DoSetVirtualSize(self, int x, int y)"""
3673 return _windows_.PyScrolledWindow_DoSetVirtualSize(*args, **kwargs)
3674
3675 def DoGetSize(*args, **kwargs):
3676 """DoGetSize() -> (width, height)"""
3677 return _windows_.PyScrolledWindow_DoGetSize(*args, **kwargs)
3678
3679 def DoGetClientSize(*args, **kwargs):
3680 """DoGetClientSize() -> (width, height)"""
3681 return _windows_.PyScrolledWindow_DoGetClientSize(*args, **kwargs)
3682
3683 def DoGetPosition(*args, **kwargs):
3684 """DoGetPosition() -> (x,y)"""
3685 return _windows_.PyScrolledWindow_DoGetPosition(*args, **kwargs)
3686
3687 def DoGetVirtualSize(*args, **kwargs):
3688 """DoGetVirtualSize(self) -> Size"""
3689 return _windows_.PyScrolledWindow_DoGetVirtualSize(*args, **kwargs)
3690
3691 def DoGetBestSize(*args, **kwargs):
3692 """DoGetBestSize(self) -> Size"""
3693 return _windows_.PyScrolledWindow_DoGetBestSize(*args, **kwargs)
3694
3695 def GetDefaultAttributes(*args, **kwargs):
3696 """GetDefaultAttributes(self) -> VisualAttributes"""
3697 return _windows_.PyScrolledWindow_GetDefaultAttributes(*args, **kwargs)
3698
3699 def OnInternalIdle(*args, **kwargs):
3700 """OnInternalIdle(self)"""
3701 return _windows_.PyScrolledWindow_OnInternalIdle(*args, **kwargs)
3702
3703 def base_DoMoveWindow(*args, **kw):
3704 return PyScrolledWindow.DoMoveWindow(*args, **kw)
3705 base_DoMoveWindow = wx._deprecated(base_DoMoveWindow,
3706 "Please use PyScrolledWindow.DoMoveWindow instead.")
3707
3708 def base_DoSetSize(*args, **kw):
3709 return PyScrolledWindow.DoSetSize(*args, **kw)
3710 base_DoSetSize = wx._deprecated(base_DoSetSize,
3711 "Please use PyScrolledWindow.DoSetSize instead.")
3712
3713 def base_DoSetClientSize(*args, **kw):
3714 return PyScrolledWindow.DoSetClientSize(*args, **kw)
3715 base_DoSetClientSize = wx._deprecated(base_DoSetClientSize,
3716 "Please use PyScrolledWindow.DoSetClientSize instead.")
3717
3718 def base_DoSetVirtualSize(*args, **kw):
3719 return PyScrolledWindow.DoSetVirtualSize(*args, **kw)
3720 base_DoSetVirtualSize = wx._deprecated(base_DoSetVirtualSize,
3721 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
3722
3723 def base_DoGetSize(*args, **kw):
3724 return PyScrolledWindow.DoGetSize(*args, **kw)
3725 base_DoGetSize = wx._deprecated(base_DoGetSize,
3726 "Please use PyScrolledWindow.DoGetSize instead.")
3727
3728 def base_DoGetClientSize(*args, **kw):
3729 return PyScrolledWindow.DoGetClientSize(*args, **kw)
3730 base_DoGetClientSize = wx._deprecated(base_DoGetClientSize,
3731 "Please use PyScrolledWindow.DoGetClientSize instead.")
3732
3733 def base_DoGetPosition(*args, **kw):
3734 return PyScrolledWindow.DoGetPosition(*args, **kw)
3735 base_DoGetPosition = wx._deprecated(base_DoGetPosition,
3736 "Please use PyScrolledWindow.DoGetPosition instead.")
3737
3738 def base_DoGetVirtualSize(*args, **kw):
3739 return PyScrolledWindow.DoGetVirtualSize(*args, **kw)
3740 base_DoGetVirtualSize = wx._deprecated(base_DoGetVirtualSize,
3741 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
3742
3743 def base_DoGetBestSize(*args, **kw):
3744 return PyScrolledWindow.DoGetBestSize(*args, **kw)
3745 base_DoGetBestSize = wx._deprecated(base_DoGetBestSize,
3746 "Please use PyScrolledWindow.DoGetBestSize instead.")
3747
3748 def base_InitDialog(*args, **kw):
3749 return PyScrolledWindow.InitDialog(*args, **kw)
3750 base_InitDialog = wx._deprecated(base_InitDialog,
3751 "Please use PyScrolledWindow.InitDialog instead.")
3752
3753 def base_TransferDataToWindow(*args, **kw):
3754 return PyScrolledWindow.TransferDataToWindow(*args, **kw)
3755 base_TransferDataToWindow = wx._deprecated(base_TransferDataToWindow,
3756 "Please use PyScrolledWindow.TransferDataToWindow instead.")
3757
3758 def base_TransferDataFromWindow(*args, **kw):
3759 return PyScrolledWindow.TransferDataFromWindow(*args, **kw)
3760 base_TransferDataFromWindow = wx._deprecated(base_TransferDataFromWindow,
3761 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
3762
3763 def base_Validate(*args, **kw):
3764 return PyScrolledWindow.Validate(*args, **kw)
3765 base_Validate = wx._deprecated(base_Validate,
3766 "Please use PyScrolledWindow.Validate instead.")
3767
3768 def base_AcceptsFocus(*args, **kw):
3769 return PyScrolledWindow.AcceptsFocus(*args, **kw)
3770 base_AcceptsFocus = wx._deprecated(base_AcceptsFocus,
3771 "Please use PyScrolledWindow.AcceptsFocus instead.")
3772
3773 def base_AcceptsFocusFromKeyboard(*args, **kw):
3774 return PyScrolledWindow.AcceptsFocusFromKeyboard(*args, **kw)
3775 base_AcceptsFocusFromKeyboard = wx._deprecated(base_AcceptsFocusFromKeyboard,
3776 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
3777
3778 def base_GetMaxSize(*args, **kw):
3779 return PyScrolledWindow.GetMaxSize(*args, **kw)
3780 base_GetMaxSize = wx._deprecated(base_GetMaxSize,
3781 "Please use PyScrolledWindow.GetMaxSize instead.")
3782
3783 def base_AddChild(*args, **kw):
3784 return PyScrolledWindow.AddChild(*args, **kw)
3785 base_AddChild = wx._deprecated(base_AddChild,
3786 "Please use PyScrolledWindow.AddChild instead.")
3787
3788 def base_RemoveChild(*args, **kw):
3789 return PyScrolledWindow.RemoveChild(*args, **kw)
3790 base_RemoveChild = wx._deprecated(base_RemoveChild,
3791 "Please use PyScrolledWindow.RemoveChild instead.")
3792
3793 def base_ShouldInheritColours(*args, **kw):
3794 return PyScrolledWindow.ShouldInheritColours(*args, **kw)
3795 base_ShouldInheritColours = wx._deprecated(base_ShouldInheritColours,
3796 "Please use PyScrolledWindow.ShouldInheritColours instead.")
3797
3798 def base_GetDefaultAttributes(*args, **kw):
3799 return PyScrolledWindow.GetDefaultAttributes(*args, **kw)
3800 base_GetDefaultAttributes = wx._deprecated(base_GetDefaultAttributes,
3801 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
3802
3803 def base_OnInternalIdle(*args, **kw):
3804 return PyScrolledWindow.OnInternalIdle(*args, **kw)
3805 base_OnInternalIdle = wx._deprecated(base_OnInternalIdle,
3806 "Please use PyScrolledWindow.OnInternalIdle instead.")
3807
3808_windows_.PyScrolledWindow_swigregister(PyScrolledWindow)
3809
3810def PrePyScrolledWindow(*args, **kwargs):
3811 """PrePyScrolledWindow() -> PyScrolledWindow"""
3812 val = _windows_.new_PrePyScrolledWindow(*args, **kwargs)
3813 return val
3814
3815#---------------------------------------------------------------------------
3816
3817PRINT_MODE_NONE = _windows_.PRINT_MODE_NONE
3818PRINT_MODE_PREVIEW = _windows_.PRINT_MODE_PREVIEW
3819PRINT_MODE_FILE = _windows_.PRINT_MODE_FILE
3820PRINT_MODE_PRINTER = _windows_.PRINT_MODE_PRINTER
3821PRINT_MODE_STREAM = _windows_.PRINT_MODE_STREAM
3822PRINTBIN_DEFAULT = _windows_.PRINTBIN_DEFAULT
3823PRINTBIN_ONLYONE = _windows_.PRINTBIN_ONLYONE
3824PRINTBIN_LOWER = _windows_.PRINTBIN_LOWER
3825PRINTBIN_MIDDLE = _windows_.PRINTBIN_MIDDLE
3826PRINTBIN_MANUAL = _windows_.PRINTBIN_MANUAL
3827PRINTBIN_ENVELOPE = _windows_.PRINTBIN_ENVELOPE
3828PRINTBIN_ENVMANUAL = _windows_.PRINTBIN_ENVMANUAL
3829PRINTBIN_AUTO = _windows_.PRINTBIN_AUTO
3830PRINTBIN_TRACTOR = _windows_.PRINTBIN_TRACTOR
3831PRINTBIN_SMALLFMT = _windows_.PRINTBIN_SMALLFMT
3832PRINTBIN_LARGEFMT = _windows_.PRINTBIN_LARGEFMT
3833PRINTBIN_LARGECAPACITY = _windows_.PRINTBIN_LARGECAPACITY
3834PRINTBIN_CASSETTE = _windows_.PRINTBIN_CASSETTE
3835PRINTBIN_FORMSOURCE = _windows_.PRINTBIN_FORMSOURCE
3836PRINTBIN_USER = _windows_.PRINTBIN_USER
3837class PrintData(_core.Object):
3838 """Proxy of C++ PrintData class"""
3839 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3840 __repr__ = _swig_repr
3841 def __init__(self, *args):
3842 """
3843 __init__(self) -> PrintData
3844 __init__(self, PrintData data) -> PrintData
3845 """
3846 _windows_.PrintData_swiginit(self,_windows_.new_PrintData(*args))
3847 __swig_destroy__ = _windows_.delete_PrintData
3848 __del__ = lambda self : None;
3849 def GetNoCopies(*args, **kwargs):
3850 """GetNoCopies(self) -> int"""
3851 return _windows_.PrintData_GetNoCopies(*args, **kwargs)
3852
3853 def GetCollate(*args, **kwargs):
3854 """GetCollate(self) -> bool"""
3855 return _windows_.PrintData_GetCollate(*args, **kwargs)
3856
3857 def GetOrientation(*args, **kwargs):
3858 """GetOrientation(self) -> int"""
3859 return _windows_.PrintData_GetOrientation(*args, **kwargs)
3860
3861 def IsOk(*args, **kwargs):
3862 """IsOk(self) -> bool"""
3863 return _windows_.PrintData_IsOk(*args, **kwargs)
3864
3865 Ok = IsOk
3866 def GetPrinterName(*args, **kwargs):
3867 """GetPrinterName(self) -> String"""
3868 return _windows_.PrintData_GetPrinterName(*args, **kwargs)
3869
3870 def GetColour(*args, **kwargs):
3871 """GetColour(self) -> bool"""
3872 return _windows_.PrintData_GetColour(*args, **kwargs)
3873
3874 def GetDuplex(*args, **kwargs):
3875 """GetDuplex(self) -> int"""
3876 return _windows_.PrintData_GetDuplex(*args, **kwargs)
3877
3878 def GetPaperId(*args, **kwargs):
3879 """GetPaperId(self) -> int"""
3880 return _windows_.PrintData_GetPaperId(*args, **kwargs)
3881
3882 def GetPaperSize(*args, **kwargs):
3883 """GetPaperSize(self) -> Size"""
3884 return _windows_.PrintData_GetPaperSize(*args, **kwargs)
3885
3886 def GetQuality(*args, **kwargs):
3887 """GetQuality(self) -> int"""
3888 return _windows_.PrintData_GetQuality(*args, **kwargs)
3889
3890 def GetBin(*args, **kwargs):
3891 """GetBin(self) -> int"""
3892 return _windows_.PrintData_GetBin(*args, **kwargs)
3893
3894 def GetPrintMode(*args, **kwargs):
3895 """GetPrintMode(self) -> int"""
3896 return _windows_.PrintData_GetPrintMode(*args, **kwargs)
3897
3898 def SetNoCopies(*args, **kwargs):
3899 """SetNoCopies(self, int v)"""
3900 return _windows_.PrintData_SetNoCopies(*args, **kwargs)
3901
3902 def SetCollate(*args, **kwargs):
3903 """SetCollate(self, bool flag)"""
3904 return _windows_.PrintData_SetCollate(*args, **kwargs)
3905
3906 def SetOrientation(*args, **kwargs):
3907 """SetOrientation(self, int orient)"""
3908 return _windows_.PrintData_SetOrientation(*args, **kwargs)
3909
3910 def SetPrinterName(*args, **kwargs):
3911 """SetPrinterName(self, String name)"""
3912 return _windows_.PrintData_SetPrinterName(*args, **kwargs)
3913
3914 def SetColour(*args, **kwargs):
3915 """SetColour(self, bool colour)"""
3916 return _windows_.PrintData_SetColour(*args, **kwargs)
3917
3918 def SetDuplex(*args, **kwargs):
3919 """SetDuplex(self, int duplex)"""
3920 return _windows_.PrintData_SetDuplex(*args, **kwargs)
3921
3922 def SetPaperId(*args, **kwargs):
3923 """SetPaperId(self, int sizeId)"""
3924 return _windows_.PrintData_SetPaperId(*args, **kwargs)
3925
3926 def SetPaperSize(*args, **kwargs):
3927 """SetPaperSize(self, Size sz)"""
3928 return _windows_.PrintData_SetPaperSize(*args, **kwargs)
3929
3930 def SetQuality(*args, **kwargs):
3931 """SetQuality(self, int quality)"""
3932 return _windows_.PrintData_SetQuality(*args, **kwargs)
3933
3934 def SetBin(*args, **kwargs):
3935 """SetBin(self, int bin)"""
3936 return _windows_.PrintData_SetBin(*args, **kwargs)
3937
3938 def SetPrintMode(*args, **kwargs):
3939 """SetPrintMode(self, int printMode)"""
3940 return _windows_.PrintData_SetPrintMode(*args, **kwargs)
3941
3942 def GetFilename(*args, **kwargs):
3943 """GetFilename(self) -> String"""
3944 return _windows_.PrintData_GetFilename(*args, **kwargs)
3945
3946 def SetFilename(*args, **kwargs):
3947 """SetFilename(self, String filename)"""
3948 return _windows_.PrintData_SetFilename(*args, **kwargs)
3949
3950 def __nonzero__(self): return self.IsOk()
3951 def GetPrivData(*args, **kwargs):
3952 """GetPrivData(self) -> PyObject"""
3953 return _windows_.PrintData_GetPrivData(*args, **kwargs)
3954
3955 def SetPrivData(*args, **kwargs):
3956 """SetPrivData(self, PyObject data)"""
3957 return _windows_.PrintData_SetPrivData(*args, **kwargs)
3958
3959 Bin = property(GetBin,SetBin,doc="See `GetBin` and `SetBin`")
3960 Collate = property(GetCollate,SetCollate,doc="See `GetCollate` and `SetCollate`")
3961 Colour = property(GetColour,SetColour,doc="See `GetColour` and `SetColour`")
3962 Duplex = property(GetDuplex,SetDuplex,doc="See `GetDuplex` and `SetDuplex`")
3963 Filename = property(GetFilename,SetFilename,doc="See `GetFilename` and `SetFilename`")
3964 NoCopies = property(GetNoCopies,SetNoCopies,doc="See `GetNoCopies` and `SetNoCopies`")
3965 Orientation = property(GetOrientation,SetOrientation,doc="See `GetOrientation` and `SetOrientation`")
3966 PaperId = property(GetPaperId,SetPaperId,doc="See `GetPaperId` and `SetPaperId`")
3967 PaperSize = property(GetPaperSize,SetPaperSize,doc="See `GetPaperSize` and `SetPaperSize`")
3968 PrintMode = property(GetPrintMode,SetPrintMode,doc="See `GetPrintMode` and `SetPrintMode`")
3969 PrinterName = property(GetPrinterName,SetPrinterName,doc="See `GetPrinterName` and `SetPrinterName`")
3970 PrivData = property(GetPrivData,SetPrivData,doc="See `GetPrivData` and `SetPrivData`")
3971 Quality = property(GetQuality,SetQuality,doc="See `GetQuality` and `SetQuality`")
3972_windows_.PrintData_swigregister(PrintData)
3973PrintoutTitleStr = cvar.PrintoutTitleStr
3974PreviewCanvasNameStr = cvar.PreviewCanvasNameStr
3975
3976class PageSetupDialogData(_core.Object):
3977 """Proxy of C++ PageSetupDialogData class"""
3978 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
3979 __repr__ = _swig_repr
3980 def __init__(self, *args):
3981 """
3982 __init__(self) -> PageSetupDialogData
3983 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3984 __init__(self, PrintData data) -> PageSetupDialogData
3985 """
3986 _windows_.PageSetupDialogData_swiginit(self,_windows_.new_PageSetupDialogData(*args))
3987 __swig_destroy__ = _windows_.delete_PageSetupDialogData
3988 __del__ = lambda self : None;
3989 def EnableHelp(*args, **kwargs):
3990 """EnableHelp(self, bool flag)"""
3991 return _windows_.PageSetupDialogData_EnableHelp(*args, **kwargs)
3992
3993 def EnableMargins(*args, **kwargs):
3994 """EnableMargins(self, bool flag)"""
3995 return _windows_.PageSetupDialogData_EnableMargins(*args, **kwargs)
3996
3997 def EnableOrientation(*args, **kwargs):
3998 """EnableOrientation(self, bool flag)"""
3999 return _windows_.PageSetupDialogData_EnableOrientation(*args, **kwargs)
4000
4001 def EnablePaper(*args, **kwargs):
4002 """EnablePaper(self, bool flag)"""
4003 return _windows_.PageSetupDialogData_EnablePaper(*args, **kwargs)
4004
4005 def EnablePrinter(*args, **kwargs):
4006 """EnablePrinter(self, bool flag)"""
4007 return _windows_.PageSetupDialogData_EnablePrinter(*args, **kwargs)
4008
4009 def GetDefaultMinMargins(*args, **kwargs):
4010 """GetDefaultMinMargins(self) -> bool"""
4011 return _windows_.PageSetupDialogData_GetDefaultMinMargins(*args, **kwargs)
4012
4013 def GetEnableMargins(*args, **kwargs):
4014 """GetEnableMargins(self) -> bool"""
4015 return _windows_.PageSetupDialogData_GetEnableMargins(*args, **kwargs)
4016
4017 def GetEnableOrientation(*args, **kwargs):
4018 """GetEnableOrientation(self) -> bool"""
4019 return _windows_.PageSetupDialogData_GetEnableOrientation(*args, **kwargs)
4020
4021 def GetEnablePaper(*args, **kwargs):
4022 """GetEnablePaper(self) -> bool"""
4023 return _windows_.PageSetupDialogData_GetEnablePaper(*args, **kwargs)
4024
4025 def GetEnablePrinter(*args, **kwargs):
4026 """GetEnablePrinter(self) -> bool"""
4027 return _windows_.PageSetupDialogData_GetEnablePrinter(*args, **kwargs)
4028
4029 def GetEnableHelp(*args, **kwargs):
4030 """GetEnableHelp(self) -> bool"""
4031 return _windows_.PageSetupDialogData_GetEnableHelp(*args, **kwargs)
4032
4033 def GetDefaultInfo(*args, **kwargs):
4034 """GetDefaultInfo(self) -> bool"""
4035 return _windows_.PageSetupDialogData_GetDefaultInfo(*args, **kwargs)
4036
4037 def GetMarginTopLeft(*args, **kwargs):
4038 """GetMarginTopLeft(self) -> Point"""
4039 return _windows_.PageSetupDialogData_GetMarginTopLeft(*args, **kwargs)
4040
4041 def GetMarginBottomRight(*args, **kwargs):
4042 """GetMarginBottomRight(self) -> Point"""
4043 return _windows_.PageSetupDialogData_GetMarginBottomRight(*args, **kwargs)
4044
4045 def GetMinMarginTopLeft(*args, **kwargs):
4046 """GetMinMarginTopLeft(self) -> Point"""
4047 return _windows_.PageSetupDialogData_GetMinMarginTopLeft(*args, **kwargs)
4048
4049 def GetMinMarginBottomRight(*args, **kwargs):
4050 """GetMinMarginBottomRight(self) -> Point"""
4051 return _windows_.PageSetupDialogData_GetMinMarginBottomRight(*args, **kwargs)
4052
4053 def GetPaperId(*args, **kwargs):
4054 """GetPaperId(self) -> int"""
4055 return _windows_.PageSetupDialogData_GetPaperId(*args, **kwargs)
4056
4057 def GetPaperSize(*args, **kwargs):
4058 """GetPaperSize(self) -> Size"""
4059 return _windows_.PageSetupDialogData_GetPaperSize(*args, **kwargs)
4060
4061 def GetPrintData(*args, **kwargs):
4062 """GetPrintData(self) -> PrintData"""
4063 return _windows_.PageSetupDialogData_GetPrintData(*args, **kwargs)
4064
4065 def IsOk(*args, **kwargs):
4066 """IsOk(self) -> bool"""
4067 return _windows_.PageSetupDialogData_IsOk(*args, **kwargs)
4068
4069 Ok = IsOk
4070 def SetDefaultInfo(*args, **kwargs):
4071 """SetDefaultInfo(self, bool flag)"""
4072 return _windows_.PageSetupDialogData_SetDefaultInfo(*args, **kwargs)
4073
4074 def SetDefaultMinMargins(*args, **kwargs):
4075 """SetDefaultMinMargins(self, bool flag)"""
4076 return _windows_.PageSetupDialogData_SetDefaultMinMargins(*args, **kwargs)
4077
4078 def SetMarginTopLeft(*args, **kwargs):
4079 """SetMarginTopLeft(self, Point pt)"""
4080 return _windows_.PageSetupDialogData_SetMarginTopLeft(*args, **kwargs)
4081
4082 def SetMarginBottomRight(*args, **kwargs):
4083 """SetMarginBottomRight(self, Point pt)"""
4084 return _windows_.PageSetupDialogData_SetMarginBottomRight(*args, **kwargs)
4085
4086 def SetMinMarginTopLeft(*args, **kwargs):
4087 """SetMinMarginTopLeft(self, Point pt)"""
4088 return _windows_.PageSetupDialogData_SetMinMarginTopLeft(*args, **kwargs)
4089
4090 def SetMinMarginBottomRight(*args, **kwargs):
4091 """SetMinMarginBottomRight(self, Point pt)"""
4092 return _windows_.PageSetupDialogData_SetMinMarginBottomRight(*args, **kwargs)
4093
4094 def SetPaperId(*args, **kwargs):
4095 """SetPaperId(self, int id)"""
4096 return _windows_.PageSetupDialogData_SetPaperId(*args, **kwargs)
4097
4098 def SetPaperSize(*args, **kwargs):
4099 """SetPaperSize(self, Size size)"""
4100 return _windows_.PageSetupDialogData_SetPaperSize(*args, **kwargs)
4101
4102 def SetPrintData(*args, **kwargs):
4103 """SetPrintData(self, PrintData printData)"""
4104 return _windows_.PageSetupDialogData_SetPrintData(*args, **kwargs)
4105
4106 def CalculateIdFromPaperSize(*args, **kwargs):
4107 """CalculateIdFromPaperSize(self)"""
4108 return _windows_.PageSetupDialogData_CalculateIdFromPaperSize(*args, **kwargs)
4109
4110 def CalculatePaperSizeFromId(*args, **kwargs):
4111 """CalculatePaperSizeFromId(self)"""
4112 return _windows_.PageSetupDialogData_CalculatePaperSizeFromId(*args, **kwargs)
4113
4114 def __nonzero__(self): return self.IsOk()
4115 DefaultInfo = property(GetDefaultInfo,SetDefaultInfo,doc="See `GetDefaultInfo` and `SetDefaultInfo`")
4116 DefaultMinMargins = property(GetDefaultMinMargins,SetDefaultMinMargins,doc="See `GetDefaultMinMargins` and `SetDefaultMinMargins`")
4117 MarginBottomRight = property(GetMarginBottomRight,SetMarginBottomRight,doc="See `GetMarginBottomRight` and `SetMarginBottomRight`")
4118 MarginTopLeft = property(GetMarginTopLeft,SetMarginTopLeft,doc="See `GetMarginTopLeft` and `SetMarginTopLeft`")
4119 MinMarginBottomRight = property(GetMinMarginBottomRight,SetMinMarginBottomRight,doc="See `GetMinMarginBottomRight` and `SetMinMarginBottomRight`")
4120 MinMarginTopLeft = property(GetMinMarginTopLeft,SetMinMarginTopLeft,doc="See `GetMinMarginTopLeft` and `SetMinMarginTopLeft`")
4121 PaperId = property(GetPaperId,SetPaperId,doc="See `GetPaperId` and `SetPaperId`")
4122 PaperSize = property(GetPaperSize,SetPaperSize,doc="See `GetPaperSize` and `SetPaperSize`")
4123 PrintData = property(GetPrintData,SetPrintData,doc="See `GetPrintData` and `SetPrintData`")
4124_windows_.PageSetupDialogData_swigregister(PageSetupDialogData)
4125
4126class PageSetupDialog(_core.Object):
4127 """Proxy of C++ PageSetupDialog class"""
4128 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4129 __repr__ = _swig_repr
4130 def __init__(self, *args, **kwargs):
4131 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4132 _windows_.PageSetupDialog_swiginit(self,_windows_.new_PageSetupDialog(*args, **kwargs))
4133 __swig_destroy__ = _windows_.delete_PageSetupDialog
4134 __del__ = lambda self : None;
4135 def GetPageSetupData(*args, **kwargs):
4136 """GetPageSetupData(self) -> PageSetupDialogData"""
4137 return _windows_.PageSetupDialog_GetPageSetupData(*args, **kwargs)
4138
4139 def GetPageSetupDialogData(*args, **kwargs):
4140 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4141 return _windows_.PageSetupDialog_GetPageSetupDialogData(*args, **kwargs)
4142
4143 def ShowModal(*args, **kwargs):
4144 """ShowModal(self) -> int"""
4145 return _windows_.PageSetupDialog_ShowModal(*args, **kwargs)
4146
4147 def Destroy(self): pass
4148 PageSetupData = property(GetPageSetupData,doc="See `GetPageSetupData`")
4149 PageSetupDialogData = property(GetPageSetupDialogData,doc="See `GetPageSetupDialogData`")
4150_windows_.PageSetupDialog_swigregister(PageSetupDialog)
4151
4152class PrintDialogData(_core.Object):
4153 """Proxy of C++ PrintDialogData class"""
4154 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4155 __repr__ = _swig_repr
4156 def __init__(self, *args):
4157 """
4158 __init__(self) -> PrintDialogData
4159 __init__(self, PrintData printData) -> PrintDialogData
4160 __init__(self, PrintDialogData printData) -> PrintDialogData
4161 """
4162 _windows_.PrintDialogData_swiginit(self,_windows_.new_PrintDialogData(*args))
4163 __swig_destroy__ = _windows_.delete_PrintDialogData
4164 __del__ = lambda self : None;
4165 def GetFromPage(*args, **kwargs):
4166 """GetFromPage(self) -> int"""
4167 return _windows_.PrintDialogData_GetFromPage(*args, **kwargs)
4168
4169 def GetToPage(*args, **kwargs):
4170 """GetToPage(self) -> int"""
4171 return _windows_.PrintDialogData_GetToPage(*args, **kwargs)
4172
4173 def GetMinPage(*args, **kwargs):
4174 """GetMinPage(self) -> int"""
4175 return _windows_.PrintDialogData_GetMinPage(*args, **kwargs)
4176
4177 def GetMaxPage(*args, **kwargs):
4178 """GetMaxPage(self) -> int"""
4179 return _windows_.PrintDialogData_GetMaxPage(*args, **kwargs)
4180
4181 def GetNoCopies(*args, **kwargs):
4182 """GetNoCopies(self) -> int"""
4183 return _windows_.PrintDialogData_GetNoCopies(*args, **kwargs)
4184
4185 def GetAllPages(*args, **kwargs):
4186 """GetAllPages(self) -> bool"""
4187 return _windows_.PrintDialogData_GetAllPages(*args, **kwargs)
4188
4189 def GetSelection(*args, **kwargs):
4190 """GetSelection(self) -> bool"""
4191 return _windows_.PrintDialogData_GetSelection(*args, **kwargs)
4192
4193 def GetCollate(*args, **kwargs):
4194 """GetCollate(self) -> bool"""
4195 return _windows_.PrintDialogData_GetCollate(*args, **kwargs)
4196
4197 def GetPrintToFile(*args, **kwargs):
4198 """GetPrintToFile(self) -> bool"""
4199 return _windows_.PrintDialogData_GetPrintToFile(*args, **kwargs)
4200
4201 def SetFromPage(*args, **kwargs):
4202 """SetFromPage(self, int v)"""
4203 return _windows_.PrintDialogData_SetFromPage(*args, **kwargs)
4204
4205 def SetToPage(*args, **kwargs):
4206 """SetToPage(self, int v)"""
4207 return _windows_.PrintDialogData_SetToPage(*args, **kwargs)
4208
4209 def SetMinPage(*args, **kwargs):
4210 """SetMinPage(self, int v)"""
4211 return _windows_.PrintDialogData_SetMinPage(*args, **kwargs)
4212
4213 def SetMaxPage(*args, **kwargs):
4214 """SetMaxPage(self, int v)"""
4215 return _windows_.PrintDialogData_SetMaxPage(*args, **kwargs)
4216
4217 def SetNoCopies(*args, **kwargs):
4218 """SetNoCopies(self, int v)"""
4219 return _windows_.PrintDialogData_SetNoCopies(*args, **kwargs)
4220
4221 def SetAllPages(*args, **kwargs):
4222 """SetAllPages(self, bool flag)"""
4223 return _windows_.PrintDialogData_SetAllPages(*args, **kwargs)
4224
4225 def SetSelection(*args, **kwargs):
4226 """SetSelection(self, bool flag)"""
4227 return _windows_.PrintDialogData_SetSelection(*args, **kwargs)
4228
4229 def SetCollate(*args, **kwargs):
4230 """SetCollate(self, bool flag)"""
4231 return _windows_.PrintDialogData_SetCollate(*args, **kwargs)
4232
4233 def SetPrintToFile(*args, **kwargs):
4234 """SetPrintToFile(self, bool flag)"""
4235 return _windows_.PrintDialogData_SetPrintToFile(*args, **kwargs)
4236
4237 def EnablePrintToFile(*args, **kwargs):
4238 """EnablePrintToFile(self, bool flag)"""
4239 return _windows_.PrintDialogData_EnablePrintToFile(*args, **kwargs)
4240
4241 def EnableSelection(*args, **kwargs):
4242 """EnableSelection(self, bool flag)"""
4243 return _windows_.PrintDialogData_EnableSelection(*args, **kwargs)
4244
4245 def EnablePageNumbers(*args, **kwargs):
4246 """EnablePageNumbers(self, bool flag)"""
4247 return _windows_.PrintDialogData_EnablePageNumbers(*args, **kwargs)
4248
4249 def EnableHelp(*args, **kwargs):
4250 """EnableHelp(self, bool flag)"""
4251 return _windows_.PrintDialogData_EnableHelp(*args, **kwargs)
4252
4253 def GetEnablePrintToFile(*args, **kwargs):
4254 """GetEnablePrintToFile(self) -> bool"""
4255 return _windows_.PrintDialogData_GetEnablePrintToFile(*args, **kwargs)
4256
4257 def GetEnableSelection(*args, **kwargs):
4258 """GetEnableSelection(self) -> bool"""
4259 return _windows_.PrintDialogData_GetEnableSelection(*args, **kwargs)
4260
4261 def GetEnablePageNumbers(*args, **kwargs):
4262 """GetEnablePageNumbers(self) -> bool"""
4263 return _windows_.PrintDialogData_GetEnablePageNumbers(*args, **kwargs)
4264
4265 def GetEnableHelp(*args, **kwargs):
4266 """GetEnableHelp(self) -> bool"""
4267 return _windows_.PrintDialogData_GetEnableHelp(*args, **kwargs)
4268
4269 def IsOk(*args, **kwargs):
4270 """IsOk(self) -> bool"""
4271 return _windows_.PrintDialogData_IsOk(*args, **kwargs)
4272
4273 Ok = IsOk
4274 def GetPrintData(*args, **kwargs):
4275 """GetPrintData(self) -> PrintData"""
4276 return _windows_.PrintDialogData_GetPrintData(*args, **kwargs)
4277
4278 def SetPrintData(*args, **kwargs):
4279 """SetPrintData(self, PrintData printData)"""
4280 return _windows_.PrintDialogData_SetPrintData(*args, **kwargs)
4281
4282 def __nonzero__(self): return self.IsOk()
4283 AllPages = property(GetAllPages,SetAllPages,doc="See `GetAllPages` and `SetAllPages`")
4284 Collate = property(GetCollate,SetCollate,doc="See `GetCollate` and `SetCollate`")
4285 FromPage = property(GetFromPage,SetFromPage,doc="See `GetFromPage` and `SetFromPage`")
4286 MaxPage = property(GetMaxPage,SetMaxPage,doc="See `GetMaxPage` and `SetMaxPage`")
4287 MinPage = property(GetMinPage,SetMinPage,doc="See `GetMinPage` and `SetMinPage`")
4288 NoCopies = property(GetNoCopies,SetNoCopies,doc="See `GetNoCopies` and `SetNoCopies`")
4289 PrintData = property(GetPrintData,SetPrintData,doc="See `GetPrintData` and `SetPrintData`")
4290 PrintToFile = property(GetPrintToFile,SetPrintToFile,doc="See `GetPrintToFile` and `SetPrintToFile`")
4291 Selection = property(GetSelection,SetSelection,doc="See `GetSelection` and `SetSelection`")
4292 ToPage = property(GetToPage,SetToPage,doc="See `GetToPage` and `SetToPage`")
4293_windows_.PrintDialogData_swigregister(PrintDialogData)
4294
4295class PrintDialog(_core.Object):
4296 """Proxy of C++ PrintDialog class"""
4297 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4298 __repr__ = _swig_repr
4299 def __init__(self, *args, **kwargs):
4300 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4301 _windows_.PrintDialog_swiginit(self,_windows_.new_PrintDialog(*args, **kwargs))
4302 __swig_destroy__ = _windows_.delete_PrintDialog
4303 __del__ = lambda self : None;
4304 def ShowModal(*args, **kwargs):
4305 """ShowModal(self) -> int"""
4306 return _windows_.PrintDialog_ShowModal(*args, **kwargs)
4307
4308 def GetPrintDialogData(*args, **kwargs):
4309 """GetPrintDialogData(self) -> PrintDialogData"""
4310 return _windows_.PrintDialog_GetPrintDialogData(*args, **kwargs)
4311
4312 def GetPrintData(*args, **kwargs):
4313 """GetPrintData(self) -> PrintData"""
4314 return _windows_.PrintDialog_GetPrintData(*args, **kwargs)
4315
4316 def GetPrintDC(*args, **kwargs):
4317 """GetPrintDC(self) -> DC"""
4318 return _windows_.PrintDialog_GetPrintDC(*args, **kwargs)
4319
4320 def Destroy(self): pass
4321 PrintDC = property(GetPrintDC,doc="See `GetPrintDC`")
4322 PrintData = property(GetPrintData,doc="See `GetPrintData`")
4323 PrintDialogData = property(GetPrintDialogData,doc="See `GetPrintDialogData`")
4324_windows_.PrintDialog_swigregister(PrintDialog)
4325
4326PRINTER_NO_ERROR = _windows_.PRINTER_NO_ERROR
4327PRINTER_CANCELLED = _windows_.PRINTER_CANCELLED
4328PRINTER_ERROR = _windows_.PRINTER_ERROR
4329class Printer(_core.Object):
4330 """Proxy of C++ Printer class"""
4331 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4332 __repr__ = _swig_repr
4333 def __init__(self, *args, **kwargs):
4334 """__init__(self, PrintDialogData data=None) -> Printer"""
4335 _windows_.Printer_swiginit(self,_windows_.new_Printer(*args, **kwargs))
4336 __swig_destroy__ = _windows_.delete_Printer
4337 __del__ = lambda self : None;
4338 def CreateAbortWindow(*args, **kwargs):
4339 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4340 return _windows_.Printer_CreateAbortWindow(*args, **kwargs)
4341
4342 def ReportError(*args, **kwargs):
4343 """ReportError(self, Window parent, Printout printout, String message)"""
4344 return _windows_.Printer_ReportError(*args, **kwargs)
4345
4346 def Setup(*args, **kwargs):
4347 """Setup(self, Window parent) -> bool"""
4348 return _windows_.Printer_Setup(*args, **kwargs)
4349
4350 def Print(*args, **kwargs):
4351 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4352 return _windows_.Printer_Print(*args, **kwargs)
4353
4354 def PrintDialog(*args, **kwargs):
4355 """PrintDialog(self, Window parent) -> DC"""
4356 return _windows_.Printer_PrintDialog(*args, **kwargs)
4357
4358 def GetPrintDialogData(*args, **kwargs):
4359 """GetPrintDialogData(self) -> PrintDialogData"""
4360 return _windows_.Printer_GetPrintDialogData(*args, **kwargs)
4361
4362 def GetAbort(*args, **kwargs):
4363 """GetAbort(self) -> bool"""
4364 return _windows_.Printer_GetAbort(*args, **kwargs)
4365
4366 def GetLastError(*args, **kwargs):
4367 """GetLastError() -> int"""
4368 return _windows_.Printer_GetLastError(*args, **kwargs)
4369
4370 GetLastError = staticmethod(GetLastError)
4371 Abort = property(GetAbort,doc="See `GetAbort`")
4372 PrintDialogData = property(GetPrintDialogData,doc="See `GetPrintDialogData`")
4373_windows_.Printer_swigregister(Printer)
4374
4375def Printer_GetLastError(*args):
4376 """Printer_GetLastError() -> int"""
4377 return _windows_.Printer_GetLastError(*args)
4378
4379class Printout(_core.Object):
4380 """Proxy of C++ Printout class"""
4381 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4382 __repr__ = _swig_repr
4383 def __init__(self, *args, **kwargs):
4384 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4385 _windows_.Printout_swiginit(self,_windows_.new_Printout(*args, **kwargs))
4386 self._setCallbackInfo(self, Printout)
4387
4388 __swig_destroy__ = _windows_.delete_Printout
4389 __del__ = lambda self : None;
4390 def _setCallbackInfo(*args, **kwargs):
4391 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4392 return _windows_.Printout__setCallbackInfo(*args, **kwargs)
4393
4394 def GetTitle(*args, **kwargs):
4395 """GetTitle(self) -> String"""
4396 return _windows_.Printout_GetTitle(*args, **kwargs)
4397
4398 def GetDC(*args, **kwargs):
4399 """GetDC(self) -> DC"""
4400 return _windows_.Printout_GetDC(*args, **kwargs)
4401
4402 def SetDC(*args, **kwargs):
4403 """SetDC(self, DC dc)"""
4404 return _windows_.Printout_SetDC(*args, **kwargs)
4405
4406 def SetPageSizePixels(*args, **kwargs):
4407 """SetPageSizePixels(self, int w, int h)"""
4408 return _windows_.Printout_SetPageSizePixels(*args, **kwargs)
4409
4410 def GetPageSizePixels(*args, **kwargs):
4411 """GetPageSizePixels() -> (w, h)"""
4412 return _windows_.Printout_GetPageSizePixels(*args, **kwargs)
4413
4414 def SetPageSizeMM(*args, **kwargs):
4415 """SetPageSizeMM(self, int w, int h)"""
4416 return _windows_.Printout_SetPageSizeMM(*args, **kwargs)
4417
4418 def GetPageSizeMM(*args, **kwargs):
4419 """GetPageSizeMM() -> (w, h)"""
4420 return _windows_.Printout_GetPageSizeMM(*args, **kwargs)
4421
4422 def SetPPIScreen(*args, **kwargs):
4423 """SetPPIScreen(self, int x, int y)"""
4424 return _windows_.Printout_SetPPIScreen(*args, **kwargs)
4425
4426 def GetPPIScreen(*args, **kwargs):
4427 """GetPPIScreen() -> (x,y)"""
4428 return _windows_.Printout_GetPPIScreen(*args, **kwargs)
4429
4430 def SetPPIPrinter(*args, **kwargs):
4431 """SetPPIPrinter(self, int x, int y)"""
4432 return _windows_.Printout_SetPPIPrinter(*args, **kwargs)
4433
4434 def GetPPIPrinter(*args, **kwargs):
4435 """GetPPIPrinter() -> (x,y)"""
4436 return _windows_.Printout_GetPPIPrinter(*args, **kwargs)
4437
4438 def IsPreview(*args, **kwargs):
4439 """IsPreview(self) -> bool"""
4440 return _windows_.Printout_IsPreview(*args, **kwargs)
4441
4442 def SetIsPreview(*args, **kwargs):
4443 """SetIsPreview(self, bool p)"""
4444 return _windows_.Printout_SetIsPreview(*args, **kwargs)
4445
4446 def OnBeginDocument(*args, **kwargs):
4447 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4448 return _windows_.Printout_OnBeginDocument(*args, **kwargs)
4449
4450 def OnEndDocument(*args, **kwargs):
4451 """OnEndDocument(self)"""
4452 return _windows_.Printout_OnEndDocument(*args, **kwargs)
4453
4454 def OnBeginPrinting(*args, **kwargs):
4455 """OnBeginPrinting(self)"""
4456 return _windows_.Printout_OnBeginPrinting(*args, **kwargs)
4457
4458 def OnEndPrinting(*args, **kwargs):
4459 """OnEndPrinting(self)"""
4460 return _windows_.Printout_OnEndPrinting(*args, **kwargs)
4461
4462 def OnPreparePrinting(*args, **kwargs):
4463 """OnPreparePrinting(self)"""
4464 return _windows_.Printout_OnPreparePrinting(*args, **kwargs)
4465
4466 def HasPage(*args, **kwargs):
4467 """HasPage(self, int page) -> bool"""
4468 return _windows_.Printout_HasPage(*args, **kwargs)
4469
4470 def GetPageInfo(*args, **kwargs):
4471 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4472 return _windows_.Printout_GetPageInfo(*args, **kwargs)
4473
4474 def base_OnBeginDocument(*args, **kw):
4475 return Printout.OnBeginDocument(*args, **kw)
4476 base_OnBeginDocument = wx._deprecated(base_OnBeginDocument,
4477 "Please use Printout.OnBeginDocument instead.")
4478
4479 def base_OnEndDocument(*args, **kw):
4480 return Printout.OnEndDocument(*args, **kw)
4481 base_OnEndDocument = wx._deprecated(base_OnEndDocument,
4482 "Please use Printout.OnEndDocument instead.")
4483
4484 def base_OnBeginPrinting(*args, **kw):
4485 return Printout.OnBeginPrinting(*args, **kw)
4486 base_OnBeginPrinting = wx._deprecated(base_OnBeginPrinting,
4487 "Please use Printout.OnBeginPrinting instead.")
4488
4489 def base_OnEndPrinting(*args, **kw):
4490 return Printout.OnEndPrinting(*args, **kw)
4491 base_OnEndPrinting = wx._deprecated(base_OnEndPrinting,
4492 "Please use Printout.OnEndPrinting instead.")
4493
4494 def base_OnPreparePrinting(*args, **kw):
4495 return Printout.OnPreparePrinting(*args, **kw)
4496 base_OnPreparePrinting = wx._deprecated(base_OnPreparePrinting,
4497 "Please use Printout.OnPreparePrinting instead.")
4498
4499 def base_GetPageInfo(*args, **kw):
4500 return Printout.GetPageInfo(*args, **kw)
4501 base_GetPageInfo = wx._deprecated(base_GetPageInfo,
4502 "Please use Printout.GetPageInfo instead.")
4503
4504 DC = property(GetDC,SetDC,doc="See `GetDC` and `SetDC`")
4505 PPIPrinter = property(GetPPIPrinter,SetPPIPrinter,doc="See `GetPPIPrinter` and `SetPPIPrinter`")
4506 PPIScreen = property(GetPPIScreen,SetPPIScreen,doc="See `GetPPIScreen` and `SetPPIScreen`")
4507 PageSizeMM = property(GetPageSizeMM,SetPageSizeMM,doc="See `GetPageSizeMM` and `SetPageSizeMM`")
4508 PageSizePixels = property(GetPageSizePixels,SetPageSizePixels,doc="See `GetPageSizePixels` and `SetPageSizePixels`")
4509 Title = property(GetTitle,doc="See `GetTitle`")
4510_windows_.Printout_swigregister(Printout)
4511
4512class PreviewCanvas(ScrolledWindow):
4513 """Proxy of C++ PreviewCanvas class"""
4514 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4515 __repr__ = _swig_repr
4516 def __init__(self, *args, **kwargs):
4517 """
4518 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4519 Size size=DefaultSize, long style=0,
4520 String name=PreviewCanvasNameStr) -> PreviewCanvas
4521 """
4522 _windows_.PreviewCanvas_swiginit(self,_windows_.new_PreviewCanvas(*args, **kwargs))
4523 self._setOORInfo(self)
4524
4525_windows_.PreviewCanvas_swigregister(PreviewCanvas)
4526
4527class PreviewFrame(Frame):
4528 """Proxy of C++ PreviewFrame class"""
4529 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4530 __repr__ = _swig_repr
4531 def __init__(self, *args, **kwargs):
4532 """
4533 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4534 Size size=DefaultSize,
4535 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4536 """
4537 _windows_.PreviewFrame_swiginit(self,_windows_.new_PreviewFrame(*args, **kwargs))
4538 self._setOORInfo(self)
4539
4540 def Initialize(*args, **kwargs):
4541 """Initialize(self)"""
4542 return _windows_.PreviewFrame_Initialize(*args, **kwargs)
4543
4544 def CreateControlBar(*args, **kwargs):
4545 """CreateControlBar(self)"""
4546 return _windows_.PreviewFrame_CreateControlBar(*args, **kwargs)
4547
4548 def CreateCanvas(*args, **kwargs):
4549 """CreateCanvas(self)"""
4550 return _windows_.PreviewFrame_CreateCanvas(*args, **kwargs)
4551
4552 def GetControlBar(*args, **kwargs):
4553 """GetControlBar(self) -> PreviewControlBar"""
4554 return _windows_.PreviewFrame_GetControlBar(*args, **kwargs)
4555
4556 ControlBar = property(GetControlBar,doc="See `GetControlBar`")
4557_windows_.PreviewFrame_swigregister(PreviewFrame)
4558
4559PREVIEW_PRINT = _windows_.PREVIEW_PRINT
4560PREVIEW_PREVIOUS = _windows_.PREVIEW_PREVIOUS
4561PREVIEW_NEXT = _windows_.PREVIEW_NEXT
4562PREVIEW_ZOOM = _windows_.PREVIEW_ZOOM
4563PREVIEW_FIRST = _windows_.PREVIEW_FIRST
4564PREVIEW_LAST = _windows_.PREVIEW_LAST
4565PREVIEW_GOTO = _windows_.PREVIEW_GOTO
4566PREVIEW_DEFAULT = _windows_.PREVIEW_DEFAULT
4567ID_PREVIEW_CLOSE = _windows_.ID_PREVIEW_CLOSE
4568ID_PREVIEW_NEXT = _windows_.ID_PREVIEW_NEXT
4569ID_PREVIEW_PREVIOUS = _windows_.ID_PREVIEW_PREVIOUS
4570ID_PREVIEW_PRINT = _windows_.ID_PREVIEW_PRINT
4571ID_PREVIEW_ZOOM = _windows_.ID_PREVIEW_ZOOM
4572ID_PREVIEW_FIRST = _windows_.ID_PREVIEW_FIRST
4573ID_PREVIEW_LAST = _windows_.ID_PREVIEW_LAST
4574ID_PREVIEW_GOTO = _windows_.ID_PREVIEW_GOTO
4575class PreviewControlBar(Panel):
4576 """Proxy of C++ PreviewControlBar class"""
4577 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4578 __repr__ = _swig_repr
4579 def __init__(self, *args, **kwargs):
4580 """
4581 __init__(self, PrintPreview preview, long buttons, Window parent,
4582 Point pos=DefaultPosition, Size size=DefaultSize,
4583 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4584 """
4585 _windows_.PreviewControlBar_swiginit(self,_windows_.new_PreviewControlBar(*args, **kwargs))
4586 self._setOORInfo(self)
4587
4588 def GetZoomControl(*args, **kwargs):
4589 """GetZoomControl(self) -> int"""
4590 return _windows_.PreviewControlBar_GetZoomControl(*args, **kwargs)
4591
4592 def SetZoomControl(*args, **kwargs):
4593 """SetZoomControl(self, int zoom)"""
4594 return _windows_.PreviewControlBar_SetZoomControl(*args, **kwargs)
4595
4596 def GetPrintPreview(*args, **kwargs):
4597 """GetPrintPreview(self) -> PrintPreview"""
4598 return _windows_.PreviewControlBar_GetPrintPreview(*args, **kwargs)
4599
4600 def OnNext(*args, **kwargs):
4601 """OnNext(self)"""
4602 return _windows_.PreviewControlBar_OnNext(*args, **kwargs)
4603
4604 def OnPrevious(*args, **kwargs):
4605 """OnPrevious(self)"""
4606 return _windows_.PreviewControlBar_OnPrevious(*args, **kwargs)
4607
4608 def OnFirst(*args, **kwargs):
4609 """OnFirst(self)"""
4610 return _windows_.PreviewControlBar_OnFirst(*args, **kwargs)
4611
4612 def OnLast(*args, **kwargs):
4613 """OnLast(self)"""
4614 return _windows_.PreviewControlBar_OnLast(*args, **kwargs)
4615
4616 def OnGoto(*args, **kwargs):
4617 """OnGoto(self)"""
4618 return _windows_.PreviewControlBar_OnGoto(*args, **kwargs)
4619
4620 PrintPreview = property(GetPrintPreview,doc="See `GetPrintPreview`")
4621 ZoomControl = property(GetZoomControl,SetZoomControl,doc="See `GetZoomControl` and `SetZoomControl`")
4622_windows_.PreviewControlBar_swigregister(PreviewControlBar)
4623
4624class PrintPreview(_core.Object):
4625 """Proxy of C++ PrintPreview class"""
4626 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4627 __repr__ = _swig_repr
4628 def __init__(self, *args):
4629 """
4630 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4631 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4632 """
4633 _windows_.PrintPreview_swiginit(self,_windows_.new_PrintPreview(*args))
4634 __swig_destroy__ = _windows_.delete_PrintPreview
4635 __del__ = lambda self : None;
4636 def SetCurrentPage(*args, **kwargs):
4637 """SetCurrentPage(self, int pageNum) -> bool"""
4638 return _windows_.PrintPreview_SetCurrentPage(*args, **kwargs)
4639
4640 def GetCurrentPage(*args, **kwargs):
4641 """GetCurrentPage(self) -> int"""
4642 return _windows_.PrintPreview_GetCurrentPage(*args, **kwargs)
4643
4644 def SetPrintout(*args, **kwargs):
4645 """SetPrintout(self, Printout printout)"""
4646 return _windows_.PrintPreview_SetPrintout(*args, **kwargs)
4647
4648 def GetPrintout(*args, **kwargs):
4649 """GetPrintout(self) -> Printout"""
4650 return _windows_.PrintPreview_GetPrintout(*args, **kwargs)
4651
4652 def GetPrintoutForPrinting(*args, **kwargs):
4653 """GetPrintoutForPrinting(self) -> Printout"""
4654 return _windows_.PrintPreview_GetPrintoutForPrinting(*args, **kwargs)
4655
4656 def SetFrame(*args, **kwargs):
4657 """SetFrame(self, Frame frame)"""
4658 return _windows_.PrintPreview_SetFrame(*args, **kwargs)
4659
4660 def SetCanvas(*args, **kwargs):
4661 """SetCanvas(self, PreviewCanvas canvas)"""
4662 return _windows_.PrintPreview_SetCanvas(*args, **kwargs)
4663
4664 def GetFrame(*args, **kwargs):
4665 """GetFrame(self) -> Frame"""
4666 return _windows_.PrintPreview_GetFrame(*args, **kwargs)
4667
4668 def GetCanvas(*args, **kwargs):
4669 """GetCanvas(self) -> PreviewCanvas"""
4670 return _windows_.PrintPreview_GetCanvas(*args, **kwargs)
4671
4672 def PaintPage(*args, **kwargs):
4673 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4674 return _windows_.PrintPreview_PaintPage(*args, **kwargs)
4675
4676 def DrawBlankPage(*args, **kwargs):
4677 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4678 return _windows_.PrintPreview_DrawBlankPage(*args, **kwargs)
4679
4680 def RenderPage(*args, **kwargs):
4681 """RenderPage(self, int pageNum) -> bool"""
4682 return _windows_.PrintPreview_RenderPage(*args, **kwargs)
4683
4684 def AdjustScrollbars(*args, **kwargs):
4685 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4686 return _windows_.PrintPreview_AdjustScrollbars(*args, **kwargs)
4687
4688 def GetPrintDialogData(*args, **kwargs):
4689 """GetPrintDialogData(self) -> PrintDialogData"""
4690 return _windows_.PrintPreview_GetPrintDialogData(*args, **kwargs)
4691
4692 def SetZoom(*args, **kwargs):
4693 """SetZoom(self, int percent)"""
4694 return _windows_.PrintPreview_SetZoom(*args, **kwargs)
4695
4696 def GetZoom(*args, **kwargs):
4697 """GetZoom(self) -> int"""
4698 return _windows_.PrintPreview_GetZoom(*args, **kwargs)
4699
4700 def GetMaxPage(*args, **kwargs):
4701 """GetMaxPage(self) -> int"""
4702 return _windows_.PrintPreview_GetMaxPage(*args, **kwargs)
4703
4704 def GetMinPage(*args, **kwargs):
4705 """GetMinPage(self) -> int"""
4706 return _windows_.PrintPreview_GetMinPage(*args, **kwargs)
4707
4708 def IsOk(*args, **kwargs):
4709 """IsOk(self) -> bool"""
4710 return _windows_.PrintPreview_IsOk(*args, **kwargs)
4711
4712 Ok = IsOk
4713 def SetOk(*args, **kwargs):
4714 """SetOk(self, bool ok)"""
4715 return _windows_.PrintPreview_SetOk(*args, **kwargs)
4716
4717 def Print(*args, **kwargs):
4718 """Print(self, bool interactive) -> bool"""
4719 return _windows_.PrintPreview_Print(*args, **kwargs)
4720
4721 def DetermineScaling(*args, **kwargs):
4722 """DetermineScaling(self)"""
4723 return _windows_.PrintPreview_DetermineScaling(*args, **kwargs)
4724
4725 def __nonzero__(self): return self.IsOk()
4726 Canvas = property(GetCanvas,SetCanvas,doc="See `GetCanvas` and `SetCanvas`")
4727 CurrentPage = property(GetCurrentPage,SetCurrentPage,doc="See `GetCurrentPage` and `SetCurrentPage`")
4728 Frame = property(GetFrame,SetFrame,doc="See `GetFrame` and `SetFrame`")
4729 MaxPage = property(GetMaxPage,doc="See `GetMaxPage`")
4730 MinPage = property(GetMinPage,doc="See `GetMinPage`")
4731 PrintDialogData = property(GetPrintDialogData,doc="See `GetPrintDialogData`")
4732 Printout = property(GetPrintout,SetPrintout,doc="See `GetPrintout` and `SetPrintout`")
4733 PrintoutForPrinting = property(GetPrintoutForPrinting,doc="See `GetPrintoutForPrinting`")
4734 Zoom = property(GetZoom,SetZoom,doc="See `GetZoom` and `SetZoom`")
4735_windows_.PrintPreview_swigregister(PrintPreview)
4736
4737class PyPrintPreview(PrintPreview):
4738 """Proxy of C++ PyPrintPreview class"""
4739 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4740 __repr__ = _swig_repr
4741 def __init__(self, *args):
4742 """
4743 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4744 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4745 """
4746 _windows_.PyPrintPreview_swiginit(self,_windows_.new_PyPrintPreview(*args))
4747 self._setCallbackInfo(self, PyPrintPreview)
4748
4749 def _setCallbackInfo(*args, **kwargs):
4750 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4751 return _windows_.PyPrintPreview__setCallbackInfo(*args, **kwargs)
4752
4753 def base_SetCurrentPage(*args, **kw):
4754 return PyPrintPreview.SetCurrentPage(*args, **kw)
4755 base_SetCurrentPage = wx._deprecated(base_SetCurrentPage,
4756 "Please use PyPrintPreview.SetCurrentPage instead.")
4757
4758 def base_PaintPage(*args, **kw):
4759 return PyPrintPreview.PaintPage(*args, **kw)
4760 base_PaintPage = wx._deprecated(base_PaintPage,
4761 "Please use PyPrintPreview.PaintPage instead.")
4762
4763 def base_DrawBlankPage(*args, **kw):
4764 return PyPrintPreview.DrawBlankPage(*args, **kw)
4765 base_DrawBlankPage = wx._deprecated(base_DrawBlankPage,
4766 "Please use PyPrintPreview.DrawBlankPage instead.")
4767
4768 def base_RenderPage(*args, **kw):
4769 return PyPrintPreview.RenderPage(*args, **kw)
4770 base_RenderPage = wx._deprecated(base_RenderPage,
4771 "Please use PyPrintPreview.RenderPage instead.")
4772
4773 def base_SetZoom(*args, **kw):
4774 return PyPrintPreview.SetZoom(*args, **kw)
4775 base_SetZoom = wx._deprecated(base_SetZoom,
4776 "Please use PyPrintPreview.SetZoom instead.")
4777
4778 def base_Print(*args, **kw):
4779 return PyPrintPreview.Print(*args, **kw)
4780 base_Print = wx._deprecated(base_Print,
4781 "Please use PyPrintPreview.Print instead.")
4782
4783 def base_DetermineScaling(*args, **kw):
4784 return PyPrintPreview.DetermineScaling(*args, **kw)
4785 base_DetermineScaling = wx._deprecated(base_DetermineScaling,
4786 "Please use PyPrintPreview.DetermineScaling instead.")
4787
4788_windows_.PyPrintPreview_swigregister(PyPrintPreview)
4789
4790class PyPreviewFrame(PreviewFrame):
4791 """Proxy of C++ PyPreviewFrame class"""
4792 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4793 __repr__ = _swig_repr
4794 def __init__(self, *args, **kwargs):
4795 """
4796 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4797 Size size=DefaultSize,
4798 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4799 """
4800 _windows_.PyPreviewFrame_swiginit(self,_windows_.new_PyPreviewFrame(*args, **kwargs))
4801 self._setCallbackInfo(self, PyPreviewFrame); self._setOORInfo(self)
4802
4803 def _setCallbackInfo(*args, **kwargs):
4804 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4805 return _windows_.PyPreviewFrame__setCallbackInfo(*args, **kwargs)
4806
4807 def SetPreviewCanvas(*args, **kwargs):
4808 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4809 return _windows_.PyPreviewFrame_SetPreviewCanvas(*args, **kwargs)
4810
4811 def SetControlBar(*args, **kwargs):
4812 """SetControlBar(self, PreviewControlBar bar)"""
4813 return _windows_.PyPreviewFrame_SetControlBar(*args, **kwargs)
4814
4815 def Initialize(*args, **kwargs):
4816 """Initialize(self)"""
4817 return _windows_.PyPreviewFrame_Initialize(*args, **kwargs)
4818
4819 def CreateCanvas(*args, **kwargs):
4820 """CreateCanvas(self)"""
4821 return _windows_.PyPreviewFrame_CreateCanvas(*args, **kwargs)
4822
4823 def CreateControlBar(*args, **kwargs):
4824 """CreateControlBar(self)"""
4825 return _windows_.PyPreviewFrame_CreateControlBar(*args, **kwargs)
4826
4827 def base_Initialize(*args, **kw):
4828 return PyPreviewFrame.Initialize(*args, **kw)
4829 base_Initialize = wx._deprecated(base_Initialize,
4830 "Please use PyPreviewFrame.Initialize instead.")
4831
4832 def base_CreateCanvas(*args, **kw):
4833 return PyPreviewFrame.CreateCanvas(*args, **kw)
4834 base_CreateCanvas = wx._deprecated(base_CreateCanvas,
4835 "Please use PyPreviewFrame.CreateCanvas instead.")
4836
4837 def base_CreateControlBar(*args, **kw):
4838 return PyPreviewFrame.CreateControlBar(*args, **kw)
4839 base_CreateControlBar = wx._deprecated(base_CreateControlBar,
4840 "Please use PyPreviewFrame.CreateControlBar instead.")
4841
4842_windows_.PyPreviewFrame_swigregister(PyPreviewFrame)
4843
4844class PyPreviewControlBar(PreviewControlBar):
4845 """Proxy of C++ PyPreviewControlBar class"""
4846 thisown = property(lambda x: x.this.own(), lambda x, v: x.this.own(v), doc='The membership flag')
4847 __repr__ = _swig_repr
4848 def __init__(self, *args, **kwargs):
4849 """
4850 __init__(self, PrintPreview preview, long buttons, Window parent,
4851 Point pos=DefaultPosition, Size size=DefaultSize,
4852 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4853 """
4854 _windows_.PyPreviewControlBar_swiginit(self,_windows_.new_PyPreviewControlBar(*args, **kwargs))
4855 self._setCallbackInfo(self, PyPreviewControlBar); self._setOORInfo(self)
4856
4857 def _setCallbackInfo(*args, **kwargs):
4858 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4859 return _windows_.PyPreviewControlBar__setCallbackInfo(*args, **kwargs)
4860
4861 def SetPrintPreview(*args, **kwargs):
4862 """SetPrintPreview(self, PrintPreview preview)"""
4863 return _windows_.PyPreviewControlBar_SetPrintPreview(*args, **kwargs)
4864
4865 def CreateButtons(*args, **kwargs):
4866 """CreateButtons(self)"""
4867 return _windows_.PyPreviewControlBar_CreateButtons(*args, **kwargs)
4868
4869 def SetZoomControl(*args, **kwargs):
4870 """SetZoomControl(self, int zoom)"""
4871 return _windows_.PyPreviewControlBar_SetZoomControl(*args, **kwargs)
4872
4873 def base_CreateButtons(*args, **kw):
4874 return PreviewControlBar.CreateButtons(*args, **kw)
4875 base_CreateButtons = wx._deprecated(base_CreateButtons,
4876 "Please use PreviewControlBar.CreateButtons instead.")
4877
4878 def base_SetZoomControl(*args, **kw):
4879 return PreviewControlBar.SetZoomControl(*args, **kw)
4880 base_SetZoomControl = wx._deprecated(base_SetZoomControl,
4881 "Please use PreviewControlBar.SetZoomControl instead.")
4882
4883_windows_.PyPreviewControlBar_swigregister(PyPreviewControlBar)
4884
4885
4886