1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
6 new_instancemethod
= new
.instancemethod
7 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if (name
== "thisown"): return self
.this
.own(value
)
10 if type(value
).__name
__ == 'PySwigObject':
11 self
.__dict
__[name
] = value
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
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
23 def _swig_getattr(self
,class_type
,name
):
24 if (name
== "thisown"): return self
.this
.own()
25 method
= class_type
.__swig
_getmethods
__.get(name
,None)
26 if method
: return method(self
)
27 raise AttributeError,name
30 try: strthis
= "proxy of " + self
.this
.__repr
__()
32 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
36 _object
= types
.ObjectType
38 except AttributeError:
44 def _swig_setattr_nondynamic_method(set):
45 def set_attr(self
,name
,value
):
46 if (name
== "thisown"): return self
.this
.own(value
)
47 if hasattr(self
,name
) or (name
== "this"):
50 raise AttributeError("You cannot add attributes to %s" % self
)
56 #---------------------------------------------------------------------------
58 class Panel(_core
.Window
):
59 """Proxy of C++ Panel class"""
60 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
62 def __init__(self
, *args
, **kwargs
):
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
68 _windows_
.Panel_swiginit(self
,_windows_
.new_Panel(*args
, **kwargs
))
69 self
._setOORInfo
(self
)
71 def Create(*args
, **kwargs
):
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
77 Create the GUI part of the Window for 2-phase creation mode.
79 return _windows_
.Panel_Create(*args
, **kwargs
)
81 def SetFocusIgnoringChildren(*args
, **kwargs
):
83 SetFocusIgnoringChildren(self)
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
89 return _windows_
.Panel_SetFocusIgnoringChildren(*args
, **kwargs
)
91 def GetClassDefaultAttributes(*args
, **kwargs
):
93 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
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.
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
106 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
108 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
109 _windows_
.Panel_swigregister(Panel
)
111 def PrePanel(*args
, **kwargs
):
112 """PrePanel() -> Panel"""
113 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
116 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
118 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
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.
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
131 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
133 #---------------------------------------------------------------------------
135 class ScrolledWindow(Panel
):
136 """Proxy of C++ ScrolledWindow class"""
137 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
138 __repr__
= _swig_repr
139 def __init__(self
, *args
, **kwargs
):
141 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
142 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
143 String name=PanelNameStr) -> ScrolledWindow
145 _windows_
.ScrolledWindow_swiginit(self
,_windows_
.new_ScrolledWindow(*args
, **kwargs
))
146 self
._setOORInfo
(self
)
148 def Create(*args
, **kwargs
):
150 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
151 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
152 String name=PanelNameStr) -> bool
154 Create the GUI part of the Window for 2-phase creation mode.
156 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
158 def SetScrollbars(*args
, **kwargs
):
160 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
161 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
163 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
165 def Scroll(*args
, **kwargs
):
166 """Scroll(self, int x, int y)"""
167 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
169 def GetScrollPageSize(*args
, **kwargs
):
170 """GetScrollPageSize(self, int orient) -> int"""
171 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
173 def SetScrollPageSize(*args
, **kwargs
):
174 """SetScrollPageSize(self, int orient, int pageSize)"""
175 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
177 def SetScrollRate(*args
, **kwargs
):
178 """SetScrollRate(self, int xstep, int ystep)"""
179 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
181 def GetScrollPixelsPerUnit(*args
, **kwargs
):
183 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
185 Get the size of one logical unit in physical units.
187 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
189 def EnableScrolling(*args
, **kwargs
):
190 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
191 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
193 def GetViewStart(*args
, **kwargs
):
195 GetViewStart() -> (x,y)
199 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
201 def SetScale(*args
, **kwargs
):
202 """SetScale(self, double xs, double ys)"""
203 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
205 def GetScaleX(*args
, **kwargs
):
206 """GetScaleX(self) -> double"""
207 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
209 def GetScaleY(*args
, **kwargs
):
210 """GetScaleY(self) -> double"""
211 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
213 def CalcScrolledPosition(*args
):
215 CalcScrolledPosition(self, Point pt) -> Point
216 CalcScrolledPosition(int x, int y) -> (sx, sy)
218 Translate between scrolled and unscrolled coordinates.
220 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
222 def CalcUnscrolledPosition(*args
):
224 CalcUnscrolledPosition(self, Point pt) -> Point
225 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
227 Translate between scrolled and unscrolled coordinates.
229 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
231 def AdjustScrollbars(*args
, **kwargs
):
232 """AdjustScrollbars(self)"""
233 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
235 def CalcScrollInc(*args
, **kwargs
):
236 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
237 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
239 def SetTargetWindow(*args
, **kwargs
):
240 """SetTargetWindow(self, Window target)"""
241 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
243 def GetTargetWindow(*args
, **kwargs
):
244 """GetTargetWindow(self) -> Window"""
245 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
247 def DoPrepareDC(*args
, **kwargs
):
249 DoPrepareDC(self, DC dc)
251 Normally what is called by `PrepareDC`.
253 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
255 def GetClassDefaultAttributes(*args
, **kwargs
):
257 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
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.
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
270 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
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
)
279 def PreScrolledWindow(*args
, **kwargs
):
280 """PreScrolledWindow() -> ScrolledWindow"""
281 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
284 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
286 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
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.
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
299 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
301 #---------------------------------------------------------------------------
303 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
304 ICONIZE
= _windows_
.ICONIZE
305 MINIMIZE
= _windows_
.MINIMIZE
306 MAXIMIZE
= _windows_
.MAXIMIZE
307 CLOSE_BOX
= _windows_
.CLOSE_BOX
308 THICK_FRAME
= _windows_
.THICK_FRAME
309 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
310 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
311 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
312 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
313 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
314 RESIZE_BOX
= _windows_
.RESIZE_BOX
315 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
316 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
317 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
318 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
319 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
320 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
321 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
322 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
323 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
324 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
325 FRAME_EX_METAL
= _windows_
.FRAME_EX_METAL
326 DIALOG_EX_METAL
= _windows_
.DIALOG_EX_METAL
327 WS_EX_CONTEXTHELP
= _windows_
.WS_EX_CONTEXTHELP
328 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
329 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
330 USER_COLOURS
= _windows_
.USER_COLOURS
331 NO_3D
= _windows_
.NO_3D
332 FRAME_EX_CONTEXTHELP
= _windows_
.FRAME_EX_CONTEXTHELP
333 DIALOG_EX_CONTEXTHELP
= _windows_
.DIALOG_EX_CONTEXTHELP
334 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
335 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
336 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
337 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
338 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
339 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
340 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
341 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
342 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
343 class TopLevelWindow(_core
.Window
):
344 """Proxy of C++ TopLevelWindow class"""
345 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
346 def __init__(self
): raise AttributeError, "No constructor defined"
347 __repr__
= _swig_repr
348 def Maximize(*args
, **kwargs
):
349 """Maximize(self, bool maximize=True)"""
350 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
352 def Restore(*args
, **kwargs
):
354 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
356 def Iconize(*args
, **kwargs
):
357 """Iconize(self, bool iconize=True)"""
358 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
360 def IsMaximized(*args
, **kwargs
):
361 """IsMaximized(self) -> bool"""
362 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
364 def IsAlwaysMaximized(*args
, **kwargs
):
365 """IsAlwaysMaximized(self) -> bool"""
366 return _windows_
.TopLevelWindow_IsAlwaysMaximized(*args
, **kwargs
)
368 def IsIconized(*args
, **kwargs
):
369 """IsIconized(self) -> bool"""
370 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
372 def GetIcon(*args
, **kwargs
):
373 """GetIcon(self) -> Icon"""
374 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
376 def SetIcon(*args
, **kwargs
):
377 """SetIcon(self, Icon icon)"""
378 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
380 def SetIcons(*args
, **kwargs
):
381 """SetIcons(self, wxIconBundle icons)"""
382 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
384 def ShowFullScreen(*args
, **kwargs
):
385 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
386 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
388 def IsFullScreen(*args
, **kwargs
):
389 """IsFullScreen(self) -> bool"""
390 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
392 def SetTitle(*args
, **kwargs
):
393 """SetTitle(self, String title)"""
394 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
396 def GetTitle(*args
, **kwargs
):
397 """GetTitle(self) -> String"""
398 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
400 def EnableCloseButton(*args
, **kwargs
):
401 """EnableCloseButton(self, bool enable) -> bool"""
402 return _windows_
.TopLevelWindow_EnableCloseButton(*args
, **kwargs
)
404 def SetShape(*args
, **kwargs
):
405 """SetShape(self, Region region) -> bool"""
406 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
408 def RequestUserAttention(*args
, **kwargs
):
409 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
410 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
412 def IsActive(*args
, **kwargs
):
413 """IsActive(self) -> bool"""
414 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
416 def MacSetMetalAppearance(*args
, **kwargs
):
417 """MacSetMetalAppearance(self, bool on)"""
418 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
420 def MacGetMetalAppearance(*args
, **kwargs
):
421 """MacGetMetalAppearance(self) -> bool"""
422 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
424 def CenterOnScreen(*args
, **kwargs
):
426 CenterOnScreen(self, int dir=BOTH)
428 Center the window on screen
430 return _windows_
.TopLevelWindow_CenterOnScreen(*args
, **kwargs
)
432 CentreOnScreen
= CenterOnScreen
433 def GetDefaultItem(*args
, **kwargs
):
435 GetDefaultItem(self) -> Window
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.
440 return _windows_
.TopLevelWindow_GetDefaultItem(*args
, **kwargs
)
442 def SetDefaultItem(*args
, **kwargs
):
444 SetDefaultItem(self, Window child) -> Window
446 Set this child as default, return the old default.
448 return _windows_
.TopLevelWindow_SetDefaultItem(*args
, **kwargs
)
450 def SetTmpDefaultItem(*args
, **kwargs
):
452 SetTmpDefaultItem(self, Window win)
454 Set this child as temporary default
456 return _windows_
.TopLevelWindow_SetTmpDefaultItem(*args
, **kwargs
)
458 def GetTmpDefaultItem(*args
, **kwargs
):
460 GetTmpDefaultItem(self) -> Window
462 Return the temporary default item, which can be None.
464 return _windows_
.TopLevelWindow_GetTmpDefaultItem(*args
, **kwargs
)
466 DefaultItem
= property(GetDefaultItem
,SetDefaultItem
,doc
="See `GetDefaultItem` and `SetDefaultItem`")
467 Icon
= property(GetIcon
,SetIcon
,doc
="See `GetIcon` and `SetIcon`")
468 Title
= property(GetTitle
,SetTitle
,doc
="See `GetTitle` and `SetTitle`")
469 TmpDefaultItem
= property(GetTmpDefaultItem
,SetTmpDefaultItem
,doc
="See `GetTmpDefaultItem` and `SetTmpDefaultItem`")
470 _windows_
.TopLevelWindow_swigregister(TopLevelWindow
)
471 cvar
= _windows_
.cvar
472 FrameNameStr
= cvar
.FrameNameStr
473 DialogNameStr
= cvar
.DialogNameStr
474 StatusLineNameStr
= cvar
.StatusLineNameStr
475 ToolBarNameStr
= cvar
.ToolBarNameStr
477 #---------------------------------------------------------------------------
479 class Frame(TopLevelWindow
):
480 """Proxy of C++ Frame class"""
481 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
482 __repr__
= _swig_repr
483 def __init__(self
, *args
, **kwargs
):
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
489 _windows_
.Frame_swiginit(self
,_windows_
.new_Frame(*args
, **kwargs
))
490 self
._setOORInfo
(self
)
492 def Create(*args
, **kwargs
):
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
498 return _windows_
.Frame_Create(*args
, **kwargs
)
500 def SendSizeEvent(*args
, **kwargs
):
501 """SendSizeEvent(self)"""
502 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
504 def SetMenuBar(*args
, **kwargs
):
505 """SetMenuBar(self, MenuBar menubar)"""
506 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
508 def GetMenuBar(*args
, **kwargs
):
509 """GetMenuBar(self) -> MenuBar"""
510 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
512 def ProcessCommand(*args
, **kwargs
):
513 """ProcessCommand(self, int winid) -> bool"""
514 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
516 Command
= ProcessCommand
517 def CreateStatusBar(*args
, **kwargs
):
519 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
520 String name=StatusLineNameStr) -> StatusBar
522 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
524 def GetStatusBar(*args
, **kwargs
):
525 """GetStatusBar(self) -> StatusBar"""
526 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
528 def SetStatusBar(*args
, **kwargs
):
529 """SetStatusBar(self, StatusBar statBar)"""
530 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
532 def SetStatusText(*args
, **kwargs
):
533 """SetStatusText(self, String text, int number=0)"""
534 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
536 def SetStatusWidths(*args
, **kwargs
):
537 """SetStatusWidths(self, int widths)"""
538 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
540 def PushStatusText(*args
, **kwargs
):
541 """PushStatusText(self, String text, int number=0)"""
542 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
544 def PopStatusText(*args
, **kwargs
):
545 """PopStatusText(self, int number=0)"""
546 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
548 def SetStatusBarPane(*args
, **kwargs
):
549 """SetStatusBarPane(self, int n)"""
550 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
552 def GetStatusBarPane(*args
, **kwargs
):
553 """GetStatusBarPane(self) -> int"""
554 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
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
)
560 def GetToolBar(*args
, **kwargs
):
561 """GetToolBar(self) -> wxToolBar"""
562 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
564 def SetToolBar(*args
, **kwargs
):
565 """SetToolBar(self, wxToolBar toolbar)"""
566 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
568 def DoGiveHelp(*args
, **kwargs
):
569 """DoGiveHelp(self, String text, bool show)"""
570 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
572 def DoMenuUpdates(*args
, **kwargs
):
573 """DoMenuUpdates(self, Menu menu=None)"""
574 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
576 def GetClassDefaultAttributes(*args
, **kwargs
):
578 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
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.
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
591 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
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
)
600 def PreFrame(*args
, **kwargs
):
601 """PreFrame() -> Frame"""
602 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
605 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
607 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
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.
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
620 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
622 #---------------------------------------------------------------------------
624 class Dialog(TopLevelWindow
):
625 """Proxy of C++ Dialog class"""
626 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
627 __repr__
= _swig_repr
628 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
629 def __init__(self
, *args
, **kwargs
):
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
635 _windows_
.Dialog_swiginit(self
,_windows_
.new_Dialog(*args
, **kwargs
))
636 self
._setOORInfo
(self
)
638 def Create(*args
, **kwargs
):
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
644 return _windows_
.Dialog_Create(*args
, **kwargs
)
646 def SetReturnCode(*args
, **kwargs
):
647 """SetReturnCode(self, int returnCode)"""
648 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
650 def GetReturnCode(*args
, **kwargs
):
651 """GetReturnCode(self) -> int"""
652 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
654 def SetAffirmativeId(*args
, **kwargs
):
655 """SetAffirmativeId(self, int affirmativeId)"""
656 return _windows_
.Dialog_SetAffirmativeId(*args
, **kwargs
)
658 def GetAffirmativeId(*args
, **kwargs
):
659 """GetAffirmativeId(self) -> int"""
660 return _windows_
.Dialog_GetAffirmativeId(*args
, **kwargs
)
662 def SetEscapeId(*args
, **kwargs
):
663 """SetEscapeId(self, int escapeId)"""
664 return _windows_
.Dialog_SetEscapeId(*args
, **kwargs
)
666 def GetEscapeId(*args
, **kwargs
):
667 """GetEscapeId(self) -> int"""
668 return _windows_
.Dialog_GetEscapeId(*args
, **kwargs
)
670 def CreateTextSizer(*args
, **kwargs
):
671 """CreateTextSizer(self, String message) -> Sizer"""
672 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
674 def _CreateButtonSizer(*args
, **kwargs
):
675 """_CreateButtonSizer(self, long flags) -> Sizer"""
676 return _windows_
.Dialog__CreateButtonSizer(*args
, **kwargs
)
678 def CreateButtonSizer(self
, flags
, *ignored
):
679 return self
._CreateButtonSizer
(flags
)
681 def CreateSeparatedButtonSizer(*args
, **kwargs
):
682 """CreateSeparatedButtonSizer(self, long flags) -> Sizer"""
683 return _windows_
.Dialog_CreateSeparatedButtonSizer(*args
, **kwargs
)
685 def CreateStdDialogButtonSizer(*args
, **kwargs
):
686 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
687 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
689 def IsModal(*args
, **kwargs
):
690 """IsModal(self) -> bool"""
691 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
693 def ShowModal(*args
, **kwargs
):
694 """ShowModal(self) -> int"""
695 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
697 def EndModal(*args
, **kwargs
):
698 """EndModal(self, int retCode)"""
699 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
701 def GetClassDefaultAttributes(*args
, **kwargs
):
703 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
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.
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
716 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
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
)
724 def PreDialog(*args
, **kwargs
):
725 """PreDialog() -> Dialog"""
726 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
729 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
731 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
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.
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
744 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
746 #---------------------------------------------------------------------------
748 class MiniFrame(Frame
):
749 """Proxy of C++ MiniFrame class"""
750 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
751 __repr__
= _swig_repr
752 def __init__(self
, *args
, **kwargs
):
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
758 _windows_
.MiniFrame_swiginit(self
,_windows_
.new_MiniFrame(*args
, **kwargs
))
759 self
._setOORInfo
(self
)
761 def Create(*args
, **kwargs
):
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
767 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
769 _windows_
.MiniFrame_swigregister(MiniFrame
)
771 def PreMiniFrame(*args
, **kwargs
):
772 """PreMiniFrame() -> MiniFrame"""
773 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
776 #---------------------------------------------------------------------------
778 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
779 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
780 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
781 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
782 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
783 class SplashScreenWindow(_core
.Window
):
784 """Proxy of C++ SplashScreenWindow class"""
785 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
786 __repr__
= _swig_repr
787 def __init__(self
, *args
, **kwargs
):
789 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
790 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
792 _windows_
.SplashScreenWindow_swiginit(self
,_windows_
.new_SplashScreenWindow(*args
, **kwargs
))
793 self
._setOORInfo
(self
)
795 def SetBitmap(*args
, **kwargs
):
796 """SetBitmap(self, Bitmap bitmap)"""
797 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
799 def GetBitmap(*args
, **kwargs
):
800 """GetBitmap(self) -> Bitmap"""
801 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
803 Bitmap
= property(GetBitmap
,SetBitmap
,doc
="See `GetBitmap` and `SetBitmap`")
804 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindow
)
806 class SplashScreen(Frame
):
807 """Proxy of C++ SplashScreen class"""
808 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
809 __repr__
= _swig_repr
810 def __init__(self
, *args
, **kwargs
):
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
816 _windows_
.SplashScreen_swiginit(self
,_windows_
.new_SplashScreen(*args
, **kwargs
))
817 self
._setOORInfo
(self
)
819 def GetSplashStyle(*args
, **kwargs
):
820 """GetSplashStyle(self) -> long"""
821 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
823 def GetSplashWindow(*args
, **kwargs
):
824 """GetSplashWindow(self) -> SplashScreenWindow"""
825 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
827 def GetTimeout(*args
, **kwargs
):
828 """GetTimeout(self) -> int"""
829 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
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
)
836 #---------------------------------------------------------------------------
838 SB_NORMAL
= _windows_
.SB_NORMAL
839 SB_FLAT
= _windows_
.SB_FLAT
840 SB_RAISED
= _windows_
.SB_RAISED
841 class StatusBar(_core
.Window
):
842 """Proxy of C++ StatusBar class"""
843 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
844 __repr__
= _swig_repr
845 def __init__(self
, *args
, **kwargs
):
847 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
848 String name=StatusLineNameStr) -> StatusBar
850 _windows_
.StatusBar_swiginit(self
,_windows_
.new_StatusBar(*args
, **kwargs
))
851 self
._setOORInfo
(self
)
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
)
857 def SetFieldsCount(*args
, **kwargs
):
858 """SetFieldsCount(self, int number=1)"""
859 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
861 def GetFieldsCount(*args
, **kwargs
):
862 """GetFieldsCount(self) -> int"""
863 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
865 def SetStatusText(*args
, **kwargs
):
866 """SetStatusText(self, String text, int number=0)"""
867 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
869 def GetStatusText(*args
, **kwargs
):
870 """GetStatusText(self, int number=0) -> String"""
871 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
873 def PushStatusText(*args
, **kwargs
):
874 """PushStatusText(self, String text, int number=0)"""
875 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
877 def PopStatusText(*args
, **kwargs
):
878 """PopStatusText(self, int number=0)"""
879 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
881 def SetStatusWidths(*args
, **kwargs
):
882 """SetStatusWidths(self, int widths)"""
883 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
885 def SetStatusStyles(*args
, **kwargs
):
886 """SetStatusStyles(self, int styles)"""
887 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
889 def GetFieldRect(*args
, **kwargs
):
890 """GetFieldRect(self, int i) -> Rect"""
891 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
893 def SetMinHeight(*args
, **kwargs
):
894 """SetMinHeight(self, int height)"""
895 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
897 def GetBorderX(*args
, **kwargs
):
898 """GetBorderX(self) -> int"""
899 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
901 def GetBorderY(*args
, **kwargs
):
902 """GetBorderY(self) -> int"""
903 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
905 def GetClassDefaultAttributes(*args
, **kwargs
):
907 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
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.
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
920 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
922 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
924 """Return a list of field values in the status bar. """
925 return [self
.GetStatusText(i
) for i
in range(self
.GetFieldsCount())]
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
)
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
)
941 def PreStatusBar(*args
, **kwargs
):
942 """PreStatusBar() -> StatusBar"""
943 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
946 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
948 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
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.
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
961 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
963 #---------------------------------------------------------------------------
965 SP_NOBORDER
= _windows_
.SP_NOBORDER
966 SP_NOSASH
= _windows_
.SP_NOSASH
967 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
968 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
969 SP_3DSASH
= _windows_
.SP_3DSASH
970 SP_3DBORDER
= _windows_
.SP_3DBORDER
971 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
972 SP_BORDER
= _windows_
.SP_BORDER
973 SP_3D
= _windows_
.SP_3D
974 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
975 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
976 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
977 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
978 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
979 class SplitterWindow(_core
.Window
):
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
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
):
989 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
990 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
992 Constructor. Creates and shows a SplitterWindow.
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
)
998 def Create(*args
, **kwargs
):
1000 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1001 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
1003 Create the GUI part of the SplitterWindow for the 2-phase create.
1005 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
1007 def GetWindow1(*args
, **kwargs
):
1009 GetWindow1(self) -> Window
1011 Gets the only or left/top pane.
1013 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
1015 def GetWindow2(*args
, **kwargs
):
1017 GetWindow2(self) -> Window
1019 Gets the right/bottom pane.
1021 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
1023 def SetSplitMode(*args
, **kwargs
):
1025 SetSplitMode(self, int mode)
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
1031 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
1033 def GetSplitMode(*args
, **kwargs
):
1035 GetSplitMode(self) -> int
1039 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
1041 def Initialize(*args
, **kwargs
):
1043 Initialize(self, Window window)
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.
1049 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1051 def SplitVertically(*args
, **kwargs
):
1053 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1055 Initializes the left and right panes of the splitter window. The
1056 child windows are shown if they are currently hidden.
1058 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1060 def SplitHorizontally(*args
, **kwargs
):
1062 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1064 Initializes the top and bottom panes of the splitter window. The
1065 child windows are shown if they are currently hidden.
1067 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1069 def Unsplit(*args
, **kwargs
):
1071 Unsplit(self, Window toRemove=None) -> bool
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).
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.
1082 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1084 def ReplaceWindow(*args
, **kwargs
):
1086 ReplaceWindow(self, Window winOld, Window winNew) -> bool
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.
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.
1100 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1102 def UpdateSize(*args
, **kwargs
):
1106 Causes any pending sizing of the sash and child panes to take place
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.
1116 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1118 def IsSplit(*args
, **kwargs
):
1120 IsSplit(self) -> bool
1122 Is the window split?
1124 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1126 def SetSashSize(*args
, **kwargs
):
1128 SetSashSize(self, int width)
1132 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1134 def SetBorderSize(*args
, **kwargs
):
1136 SetBorderSize(self, int width)
1138 Sets the border size. Currently a NOP.
1140 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1142 def GetSashSize(*args
, **kwargs
):
1144 GetSashSize(self) -> int
1148 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1150 def GetBorderSize(*args
, **kwargs
):
1152 GetBorderSize(self) -> int
1154 Gets the border size
1156 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1158 def SetSashPosition(*args
, **kwargs
):
1160 SetSashPosition(self, int position, bool redraw=True)
1162 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1163 are resized and the sash and border are redrawn.
1165 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1167 def GetSashPosition(*args
, **kwargs
):
1169 GetSashPosition(self) -> int
1171 Returns the surrent sash position.
1173 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1175 def SetSashGravity(*args
, **kwargs
):
1177 SetSashGravity(self, double gravity)
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.
1184 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1186 def GetSashGravity(*args
, **kwargs
):
1188 GetSashGravity(self) -> double
1190 Gets the sash gravity.
1192 :see: `SetSashGravity`
1195 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1197 def SetMinimumPaneSize(*args
, **kwargs
):
1199 SetMinimumPaneSize(self, int min)
1201 Sets the minimum pane size in pixels.
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.
1210 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1212 def GetMinimumPaneSize(*args
, **kwargs
):
1214 GetMinimumPaneSize(self) -> int
1216 Gets the minimum pane size in pixels.
1218 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1220 def SashHitTest(*args
, **kwargs
):
1222 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1224 Tests for x, y over the sash
1226 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1228 def SizeWindows(*args
, **kwargs
):
1234 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1236 def SetNeedUpdating(*args
, **kwargs
):
1237 """SetNeedUpdating(self, bool needUpdating)"""
1238 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1240 def GetNeedUpdating(*args
, **kwargs
):
1241 """GetNeedUpdating(self) -> bool"""
1242 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1244 def GetClassDefaultAttributes(*args
, **kwargs
):
1246 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
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.
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
1259 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1261 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1262 BorderSize
= property(GetBorderSize
,SetBorderSize
,doc
="See `GetBorderSize` and `SetBorderSize`")
1263 MinimumPaneSize
= property(GetMinimumPaneSize
,SetMinimumPaneSize
,doc
="See `GetMinimumPaneSize` and `SetMinimumPaneSize`")
1264 NeedUpdating
= property(GetNeedUpdating
,SetNeedUpdating
,doc
="See `GetNeedUpdating` and `SetNeedUpdating`")
1265 SashGravity
= property(GetSashGravity
,SetSashGravity
,doc
="See `GetSashGravity` and `SetSashGravity`")
1266 SashPosition
= property(GetSashPosition
,SetSashPosition
,doc
="See `GetSashPosition` and `SetSashPosition`")
1267 SashSize
= property(GetSashSize
,SetSashSize
,doc
="See `GetSashSize` and `SetSashSize`")
1268 SplitMode
= property(GetSplitMode
,SetSplitMode
,doc
="See `GetSplitMode` and `SetSplitMode`")
1269 Window1
= property(GetWindow1
,doc
="See `GetWindow1`")
1270 Window2
= property(GetWindow2
,doc
="See `GetWindow2`")
1271 _windows_
.SplitterWindow_swigregister(SplitterWindow
)
1272 SplitterNameStr
= cvar
.SplitterNameStr
1274 def PreSplitterWindow(*args
, **kwargs
):
1276 PreSplitterWindow() -> SplitterWindow
1278 Precreate a SplitterWindow for 2-phase creation.
1280 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1283 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1285 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
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.
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
1298 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1300 class SplitterEvent(_core
.NotifyEvent
):
1301 """This class represents the events generated by a splitter control."""
1302 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1303 __repr__
= _swig_repr
1304 def __init__(self
, *args
, **kwargs
):
1306 __init__(self, EventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1308 This class represents the events generated by a splitter control.
1310 _windows_
.SplitterEvent_swiginit(self
,_windows_
.new_SplitterEvent(*args
, **kwargs
))
1311 def SetSashPosition(*args
, **kwargs
):
1313 SetSashPosition(self, int pos)
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.
1322 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1324 def GetSashPosition(*args
, **kwargs
):
1326 GetSashPosition(self) -> int
1328 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1329 and EVT_SPLITTER_SASH_POS_CHANGED events.
1331 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1333 def GetWindowBeingRemoved(*args
, **kwargs
):
1335 GetWindowBeingRemoved(self) -> Window
1337 Returns a pointer to the window being removed when a splitter window
1340 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1342 def GetX(*args
, **kwargs
):
1346 Returns the x coordinate of the double-click point in a
1347 EVT_SPLITTER_DCLICK event.
1349 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1351 def GetY(*args
, **kwargs
):
1355 Returns the y coordinate of the double-click point in a
1356 EVT_SPLITTER_DCLICK event.
1358 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
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
)
1366 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1367 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1368 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1369 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1370 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1371 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1372 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1373 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1374 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1376 #---------------------------------------------------------------------------
1378 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1379 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1380 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1381 SW_NOBORDER
= _windows_
.SW_NOBORDER
1382 SW_BORDER
= _windows_
.SW_BORDER
1383 SW_3DSASH
= _windows_
.SW_3DSASH
1384 SW_3DBORDER
= _windows_
.SW_3DBORDER
1385 SW_3D
= _windows_
.SW_3D
1386 SASH_TOP
= _windows_
.SASH_TOP
1387 SASH_RIGHT
= _windows_
.SASH_RIGHT
1388 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1389 SASH_LEFT
= _windows_
.SASH_LEFT
1390 SASH_NONE
= _windows_
.SASH_NONE
1391 class SashWindow(_core
.Window
):
1392 """Proxy of C++ SashWindow class"""
1393 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1394 __repr__
= _swig_repr
1395 def __init__(self
, *args
, **kwargs
):
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
1401 _windows_
.SashWindow_swiginit(self
,_windows_
.new_SashWindow(*args
, **kwargs
))
1402 self
._setOORInfo
(self
)
1404 def Create(*args
, **kwargs
):
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
1410 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1412 def SetSashVisible(*args
, **kwargs
):
1413 """SetSashVisible(self, int edge, bool sash)"""
1414 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1416 def GetSashVisible(*args
, **kwargs
):
1417 """GetSashVisible(self, int edge) -> bool"""
1418 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1420 def SetSashBorder(*args
, **kwargs
):
1421 """SetSashBorder(self, int edge, bool border)"""
1422 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1424 def HasBorder(*args
, **kwargs
):
1425 """HasBorder(self, int edge) -> bool"""
1426 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1428 def GetEdgeMargin(*args
, **kwargs
):
1429 """GetEdgeMargin(self, int edge) -> int"""
1430 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1432 def SetDefaultBorderSize(*args
, **kwargs
):
1433 """SetDefaultBorderSize(self, int width)"""
1434 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1436 def GetDefaultBorderSize(*args
, **kwargs
):
1437 """GetDefaultBorderSize(self) -> int"""
1438 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1440 def SetExtraBorderSize(*args
, **kwargs
):
1441 """SetExtraBorderSize(self, int width)"""
1442 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1444 def GetExtraBorderSize(*args
, **kwargs
):
1445 """GetExtraBorderSize(self) -> int"""
1446 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1448 def SetMinimumSizeX(*args
, **kwargs
):
1449 """SetMinimumSizeX(self, int min)"""
1450 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1452 def SetMinimumSizeY(*args
, **kwargs
):
1453 """SetMinimumSizeY(self, int min)"""
1454 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1456 def GetMinimumSizeX(*args
, **kwargs
):
1457 """GetMinimumSizeX(self) -> int"""
1458 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1460 def GetMinimumSizeY(*args
, **kwargs
):
1461 """GetMinimumSizeY(self) -> int"""
1462 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1464 def SetMaximumSizeX(*args
, **kwargs
):
1465 """SetMaximumSizeX(self, int max)"""
1466 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1468 def SetMaximumSizeY(*args
, **kwargs
):
1469 """SetMaximumSizeY(self, int max)"""
1470 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1472 def GetMaximumSizeX(*args
, **kwargs
):
1473 """GetMaximumSizeX(self) -> int"""
1474 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1476 def GetMaximumSizeY(*args
, **kwargs
):
1477 """GetMaximumSizeY(self) -> int"""
1478 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1480 def SashHitTest(*args
, **kwargs
):
1481 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1482 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1484 def SizeWindows(*args
, **kwargs
):
1485 """SizeWindows(self)"""
1486 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1488 DefaultBorderSize
= property(GetDefaultBorderSize
,SetDefaultBorderSize
,doc
="See `GetDefaultBorderSize` and `SetDefaultBorderSize`")
1489 ExtraBorderSize
= property(GetExtraBorderSize
,SetExtraBorderSize
,doc
="See `GetExtraBorderSize` and `SetExtraBorderSize`")
1490 MaximumSizeX
= property(GetMaximumSizeX
,SetMaximumSizeX
,doc
="See `GetMaximumSizeX` and `SetMaximumSizeX`")
1491 MaximumSizeY
= property(GetMaximumSizeY
,SetMaximumSizeY
,doc
="See `GetMaximumSizeY` and `SetMaximumSizeY`")
1492 MinimumSizeX
= property(GetMinimumSizeX
,SetMinimumSizeX
,doc
="See `GetMinimumSizeX` and `SetMinimumSizeX`")
1493 MinimumSizeY
= property(GetMinimumSizeY
,SetMinimumSizeY
,doc
="See `GetMinimumSizeY` and `SetMinimumSizeY`")
1494 _windows_
.SashWindow_swigregister(SashWindow
)
1495 SashNameStr
= cvar
.SashNameStr
1496 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1498 def PreSashWindow(*args
, **kwargs
):
1499 """PreSashWindow() -> SashWindow"""
1500 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1503 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1504 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1505 class SashEvent(_core
.CommandEvent
):
1506 """Proxy of C++ SashEvent class"""
1507 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1508 __repr__
= _swig_repr
1509 def __init__(self
, *args
, **kwargs
):
1510 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1511 _windows_
.SashEvent_swiginit(self
,_windows_
.new_SashEvent(*args
, **kwargs
))
1512 def SetEdge(*args
, **kwargs
):
1513 """SetEdge(self, int edge)"""
1514 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1516 def GetEdge(*args
, **kwargs
):
1517 """GetEdge(self) -> int"""
1518 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1520 def SetDragRect(*args
, **kwargs
):
1521 """SetDragRect(self, Rect rect)"""
1522 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1524 def GetDragRect(*args
, **kwargs
):
1525 """GetDragRect(self) -> Rect"""
1526 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1528 def SetDragStatus(*args
, **kwargs
):
1529 """SetDragStatus(self, int status)"""
1530 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1532 def GetDragStatus(*args
, **kwargs
):
1533 """GetDragStatus(self) -> int"""
1534 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
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
)
1541 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1542 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1543 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1545 #---------------------------------------------------------------------------
1547 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1548 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1549 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1550 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1551 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1552 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1553 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1554 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1555 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1556 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1557 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1558 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1559 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1560 class QueryLayoutInfoEvent(_core
.Event
):
1561 """Proxy of C++ QueryLayoutInfoEvent class"""
1562 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1563 __repr__
= _swig_repr
1564 def __init__(self
, *args
, **kwargs
):
1565 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1566 _windows_
.QueryLayoutInfoEvent_swiginit(self
,_windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
))
1567 def SetRequestedLength(*args
, **kwargs
):
1568 """SetRequestedLength(self, int length)"""
1569 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1571 def GetRequestedLength(*args
, **kwargs
):
1572 """GetRequestedLength(self) -> int"""
1573 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1575 def SetFlags(*args
, **kwargs
):
1576 """SetFlags(self, int flags)"""
1577 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1579 def GetFlags(*args
, **kwargs
):
1580 """GetFlags(self) -> int"""
1581 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1583 def SetSize(*args
, **kwargs
):
1584 """SetSize(self, Size size)"""
1585 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1587 def GetSize(*args
, **kwargs
):
1588 """GetSize(self) -> Size"""
1589 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1591 def SetOrientation(*args
, **kwargs
):
1592 """SetOrientation(self, int orient)"""
1593 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1595 def GetOrientation(*args
, **kwargs
):
1596 """GetOrientation(self) -> int"""
1597 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1599 def SetAlignment(*args
, **kwargs
):
1600 """SetAlignment(self, int align)"""
1601 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1603 def GetAlignment(*args
, **kwargs
):
1604 """GetAlignment(self) -> int"""
1605 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
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
)
1614 class CalculateLayoutEvent(_core
.Event
):
1615 """Proxy of C++ CalculateLayoutEvent class"""
1616 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1617 __repr__
= _swig_repr
1618 def __init__(self
, *args
, **kwargs
):
1619 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1620 _windows_
.CalculateLayoutEvent_swiginit(self
,_windows_
.new_CalculateLayoutEvent(*args
, **kwargs
))
1621 def SetFlags(*args
, **kwargs
):
1622 """SetFlags(self, int flags)"""
1623 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1625 def GetFlags(*args
, **kwargs
):
1626 """GetFlags(self) -> int"""
1627 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1629 def SetRect(*args
, **kwargs
):
1630 """SetRect(self, Rect rect)"""
1631 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1633 def GetRect(*args
, **kwargs
):
1634 """GetRect(self) -> Rect"""
1635 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
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
)
1641 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1642 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1644 class SashLayoutWindow(SashWindow
):
1645 """Proxy of C++ SashLayoutWindow class"""
1646 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1647 __repr__
= _swig_repr
1648 def __init__(self
, *args
, **kwargs
):
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
1654 _windows_
.SashLayoutWindow_swiginit(self
,_windows_
.new_SashLayoutWindow(*args
, **kwargs
))
1655 self
._setOORInfo
(self
)
1657 def Create(*args
, **kwargs
):
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
1663 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1665 def GetAlignment(*args
, **kwargs
):
1666 """GetAlignment(self) -> int"""
1667 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1669 def GetOrientation(*args
, **kwargs
):
1670 """GetOrientation(self) -> int"""
1671 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1673 def SetAlignment(*args
, **kwargs
):
1674 """SetAlignment(self, int alignment)"""
1675 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1677 def SetDefaultSize(*args
, **kwargs
):
1678 """SetDefaultSize(self, Size size)"""
1679 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1681 def SetOrientation(*args
, **kwargs
):
1682 """SetOrientation(self, int orientation)"""
1683 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
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
)
1689 def PreSashLayoutWindow(*args
, **kwargs
):
1690 """PreSashLayoutWindow() -> SashLayoutWindow"""
1691 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1694 class LayoutAlgorithm(_core
.Object
):
1695 """Proxy of C++ LayoutAlgorithm class"""
1696 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1697 __repr__
= _swig_repr
1698 def __init__(self
, *args
, **kwargs
):
1699 """__init__(self) -> LayoutAlgorithm"""
1700 _windows_
.LayoutAlgorithm_swiginit(self
,_windows_
.new_LayoutAlgorithm(*args
, **kwargs
))
1701 __swig_destroy__
= _windows_
.delete_LayoutAlgorithm
1702 __del__
= lambda self
: None;
1703 def LayoutMDIFrame(*args
, **kwargs
):
1704 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1705 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1707 def LayoutFrame(*args
, **kwargs
):
1708 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1709 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1711 def LayoutWindow(*args
, **kwargs
):
1712 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1713 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1715 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithm
)
1717 #---------------------------------------------------------------------------
1719 class PopupWindow(_core
.Window
):
1720 """Proxy of C++ PopupWindow class"""
1721 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1722 __repr__
= _swig_repr
1723 def __init__(self
, *args
, **kwargs
):
1724 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1725 _windows_
.PopupWindow_swiginit(self
,_windows_
.new_PopupWindow(*args
, **kwargs
))
1726 self
._setOORInfo
(self
)
1728 def Create(*args
, **kwargs
):
1729 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1730 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1732 def Position(*args
, **kwargs
):
1733 """Position(self, Point ptOrigin, Size size)"""
1734 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1736 _windows_
.PopupWindow_swigregister(PopupWindow
)
1738 def PrePopupWindow(*args
, **kwargs
):
1739 """PrePopupWindow() -> PopupWindow"""
1740 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1743 #---------------------------------------------------------------------------
1745 class PopupTransientWindow(PopupWindow
):
1746 """Proxy of C++ PopupTransientWindow class"""
1747 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1748 __repr__
= _swig_repr
1749 def __init__(self
, *args
, **kwargs
):
1750 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1751 _windows_
.PopupTransientWindow_swiginit(self
,_windows_
.new_PopupTransientWindow(*args
, **kwargs
))
1752 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1754 def _setCallbackInfo(*args
, **kwargs
):
1755 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1756 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1758 def Popup(*args
, **kwargs
):
1759 """Popup(self, Window focus=None)"""
1760 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1762 def Dismiss(*args
, **kwargs
):
1764 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1766 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindow
)
1768 def PrePopupTransientWindow(*args
, **kwargs
):
1769 """PrePopupTransientWindow() -> PopupTransientWindow"""
1770 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1773 #---------------------------------------------------------------------------
1775 class TipWindow(PopupTransientWindow
):
1776 """Proxy of C++ TipWindow class"""
1777 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1778 __repr__
= _swig_repr
1779 def __init__(self
, *args
, **kwargs
):
1780 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1781 _windows_
.TipWindow_swiginit(self
,_windows_
.new_TipWindow(*args
, **kwargs
))
1782 self
._setOORInfo
(self
)
1784 def SetBoundingRect(*args
, **kwargs
):
1785 """SetBoundingRect(self, Rect rectBound)"""
1786 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1788 def Close(*args
, **kwargs
):
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.
1797 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1799 _windows_
.TipWindow_swigregister(TipWindow
)
1801 #---------------------------------------------------------------------------
1803 class VScrolledWindow(Panel
):
1804 """Proxy of C++ VScrolledWindow class"""
1805 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1806 __repr__
= _swig_repr
1807 def __init__(self
, *args
, **kwargs
):
1809 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1810 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1812 _windows_
.VScrolledWindow_swiginit(self
,_windows_
.new_VScrolledWindow(*args
, **kwargs
))
1813 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1815 def _setCallbackInfo(*args
, **kwargs
):
1816 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1817 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1819 def Create(*args
, **kwargs
):
1821 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1822 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1824 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1826 def SetLineCount(*args
, **kwargs
):
1827 """SetLineCount(self, size_t count)"""
1828 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1830 def ScrollToLine(*args
, **kwargs
):
1831 """ScrollToLine(self, size_t line) -> bool"""
1832 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1834 def RefreshLine(*args
, **kwargs
):
1835 """RefreshLine(self, size_t line)"""
1836 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1838 def RefreshLines(*args
, **kwargs
):
1839 """RefreshLines(self, size_t from, size_t to)"""
1840 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1842 def HitTestXY(*args
, **kwargs
):
1844 HitTestXY(self, int x, int y) -> int
1846 Test where the given (in client coords) point lies
1848 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1850 def HitTest(*args
, **kwargs
):
1852 HitTest(self, Point pt) -> int
1854 Test where the given (in client coords) point lies
1856 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1858 def RefreshAll(*args
, **kwargs
):
1859 """RefreshAll(self)"""
1860 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1862 def GetLineCount(*args
, **kwargs
):
1863 """GetLineCount(self) -> size_t"""
1864 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1866 def GetVisibleBegin(*args
, **kwargs
):
1867 """GetVisibleBegin(self) -> size_t"""
1868 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
1870 def GetVisibleEnd(*args
, **kwargs
):
1871 """GetVisibleEnd(self) -> size_t"""
1872 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
1874 def IsVisible(*args
, **kwargs
):
1875 """IsVisible(self, size_t line) -> bool"""
1876 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1878 def GetFirstVisibleLine(*args
, **kwargs
):
1879 """GetFirstVisibleLine(self) -> size_t"""
1880 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1882 def GetLastVisibleLine(*args
, **kwargs
):
1883 """GetLastVisibleLine(self) -> size_t"""
1884 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1886 def FindFirstFromBottom(*args
, **kwargs
):
1887 """FindFirstFromBottom(self, size_t lineLast, bool fullyVisible=False) -> size_t"""
1888 return _windows_
.VScrolledWindow_FindFirstFromBottom(*args
, **kwargs
)
1890 def GetLinesHeight(*args
, **kwargs
):
1891 """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int"""
1892 return _windows_
.VScrolledWindow_GetLinesHeight(*args
, **kwargs
)
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
)
1901 def PreVScrolledWindow(*args
, **kwargs
):
1902 """PreVScrolledWindow() -> VScrolledWindow"""
1903 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1906 class VListBox(VScrolledWindow
):
1907 """Proxy of C++ VListBox class"""
1908 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1909 __repr__
= _swig_repr
1910 def __init__(self
, *args
, **kwargs
):
1912 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1913 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1915 _windows_
.VListBox_swiginit(self
,_windows_
.new_VListBox(*args
, **kwargs
))
1916 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1918 def _setCallbackInfo(*args
, **kwargs
):
1919 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1920 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1922 def Create(*args
, **kwargs
):
1924 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1925 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1927 return _windows_
.VListBox_Create(*args
, **kwargs
)
1929 def GetItemCount(*args
, **kwargs
):
1930 """GetItemCount(self) -> size_t"""
1931 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1933 def HasMultipleSelection(*args
, **kwargs
):
1934 """HasMultipleSelection(self) -> bool"""
1935 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1937 def GetSelection(*args
, **kwargs
):
1938 """GetSelection(self) -> int"""
1939 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1941 def IsCurrent(*args
, **kwargs
):
1942 """IsCurrent(self, size_t item) -> bool"""
1943 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1945 def IsSelected(*args
, **kwargs
):
1946 """IsSelected(self, size_t item) -> bool"""
1947 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1949 def GetSelectedCount(*args
, **kwargs
):
1950 """GetSelectedCount(self) -> size_t"""
1951 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1953 def GetFirstSelected(*args
, **kwargs
):
1954 """GetFirstSelected(self) -> PyObject"""
1955 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1957 def GetNextSelected(*args
, **kwargs
):
1958 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1959 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1961 def GetMargins(*args
, **kwargs
):
1962 """GetMargins(self) -> Point"""
1963 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1965 def GetSelectionBackground(*args
, **kwargs
):
1966 """GetSelectionBackground(self) -> Colour"""
1967 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1969 def SetItemCount(*args
, **kwargs
):
1970 """SetItemCount(self, size_t count)"""
1971 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1973 def Clear(*args
, **kwargs
):
1975 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1977 def SetSelection(*args
, **kwargs
):
1978 """SetSelection(self, int selection)"""
1979 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1981 def Select(*args
, **kwargs
):
1982 """Select(self, size_t item, bool select=True) -> bool"""
1983 return _windows_
.VListBox_Select(*args
, **kwargs
)
1985 def SelectRange(*args
, **kwargs
):
1986 """SelectRange(self, size_t from, size_t to) -> bool"""
1987 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1989 def Toggle(*args
, **kwargs
):
1990 """Toggle(self, size_t item)"""
1991 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1993 def SelectAll(*args
, **kwargs
):
1994 """SelectAll(self) -> bool"""
1995 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1997 def DeselectAll(*args
, **kwargs
):
1998 """DeselectAll(self) -> bool"""
1999 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
2001 def SetMargins(*args
, **kwargs
):
2002 """SetMargins(self, Point pt)"""
2003 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
2005 def SetMarginsXY(*args
, **kwargs
):
2006 """SetMarginsXY(self, int x, int y)"""
2007 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
2009 def SetSelectionBackground(*args
, **kwargs
):
2010 """SetSelectionBackground(self, Colour col)"""
2011 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
2013 def OnDrawSeparator(*args
, **kwargs
):
2014 """OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
2015 return _windows_
.VListBox_OnDrawSeparator(*args
, **kwargs
)
2017 def OnDrawBackground(*args
, **kwargs
):
2018 """OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
2019 return _windows_
.VListBox_OnDrawBackground(*args
, **kwargs
)
2021 FirstSelected
= property(GetFirstSelected
,doc
="See `GetFirstSelected`")
2022 ItemCount
= property(GetItemCount
,SetItemCount
,doc
="See `GetItemCount` and `SetItemCount`")
2023 Margins
= property(GetMargins
,SetMargins
,doc
="See `GetMargins` and `SetMargins`")
2024 SelectedCount
= property(GetSelectedCount
,doc
="See `GetSelectedCount`")
2025 Selection
= property(GetSelection
,SetSelection
,doc
="See `GetSelection` and `SetSelection`")
2026 SelectionBackground
= property(GetSelectionBackground
,SetSelectionBackground
,doc
="See `GetSelectionBackground` and `SetSelectionBackground`")
2027 _windows_
.VListBox_swigregister(VListBox
)
2028 VListBoxNameStr
= cvar
.VListBoxNameStr
2030 def PreVListBox(*args
, **kwargs
):
2031 """PreVListBox() -> VListBox"""
2032 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2035 class HtmlListBox(VListBox
):
2036 """Proxy of C++ HtmlListBox class"""
2037 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2038 __repr__
= _swig_repr
2039 def __init__(self
, *args
, **kwargs
):
2041 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2042 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2044 _windows_
.HtmlListBox_swiginit(self
,_windows_
.new_HtmlListBox(*args
, **kwargs
))
2045 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2047 def _setCallbackInfo(*args
, **kwargs
):
2048 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2049 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2051 def Create(*args
, **kwargs
):
2053 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2054 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2056 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2058 def SetItemCount(*args
, **kwargs
):
2059 """SetItemCount(self, size_t count)"""
2060 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2062 def GetFileSystem(*args
, **kwargs
):
2063 """GetFileSystem(self) -> FileSystem"""
2064 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2066 def OnLinkClicked(*args
, **kwargs
):
2067 """OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)"""
2068 return _windows_
.HtmlListBox_OnLinkClicked(*args
, **kwargs
)
2070 FileSystem
= property(GetFileSystem
,doc
="See `GetFileSystem`")
2071 _windows_
.HtmlListBox_swigregister(HtmlListBox
)
2073 def PreHtmlListBox(*args
, **kwargs
):
2074 """PreHtmlListBox() -> HtmlListBox"""
2075 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2078 #---------------------------------------------------------------------------
2080 class TaskBarIcon(_core
.EvtHandler
):
2081 """Proxy of C++ TaskBarIcon class"""
2082 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2083 __repr__
= _swig_repr
2084 def __init__(self
, *args
, **kwargs
):
2085 """__init__(self) -> TaskBarIcon"""
2086 _windows_
.TaskBarIcon_swiginit(self
,_windows_
.new_TaskBarIcon(*args
, **kwargs
))
2087 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
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
)
2095 def Destroy(*args
, **kwargs
):
2099 Deletes the C++ object this Python object is a proxy for.
2101 args
[0].this
.own(False)
2102 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2104 def IsOk(*args
, **kwargs
):
2105 """IsOk(self) -> bool"""
2106 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2108 def __nonzero__(self
): return self
.IsOk()
2109 def IsIconInstalled(*args
, **kwargs
):
2110 """IsIconInstalled(self) -> bool"""
2111 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2113 def SetIcon(*args
, **kwargs
):
2114 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2115 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2117 def RemoveIcon(*args
, **kwargs
):
2118 """RemoveIcon(self) -> bool"""
2119 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2121 def PopupMenu(*args
, **kwargs
):
2122 """PopupMenu(self, Menu menu) -> bool"""
2123 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2125 _windows_
.TaskBarIcon_swigregister(TaskBarIcon
)
2127 class TaskBarIconEvent(_core
.Event
):
2128 """Proxy of C++ TaskBarIconEvent class"""
2129 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2130 __repr__
= _swig_repr
2131 def __init__(self
, *args
, **kwargs
):
2132 """__init__(self, EventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2133 _windows_
.TaskBarIconEvent_swiginit(self
,_windows_
.new_TaskBarIconEvent(*args
, **kwargs
))
2134 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEvent
)
2136 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2137 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2138 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2139 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2140 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2141 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2142 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2143 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2144 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2145 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2146 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2147 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2148 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2149 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2151 #---------------------------------------------------------------------------
2153 class ColourData(_core
.Object
):
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
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
):
2163 __init__(self) -> ColourData
2165 Constructor, sets default values.
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
):
2172 GetChooseFull(self) -> bool
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.
2178 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2180 def GetColour(*args
, **kwargs
):
2182 GetColour(self) -> Colour
2184 Gets the colour (pre)selected by the dialog.
2186 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2188 def GetCustomColour(*args
, **kwargs
):
2190 GetCustomColour(self, int i) -> Colour
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.
2196 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2198 def SetChooseFull(*args
, **kwargs
):
2200 SetChooseFull(self, int flag)
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.
2206 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2208 def SetColour(*args
, **kwargs
):
2210 SetColour(self, Colour colour)
2212 Sets the default colour for the colour dialog. The default colour is
2215 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2217 def SetCustomColour(*args
, **kwargs
):
2219 SetCustomColour(self, int i, Colour colour)
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.
2224 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2226 ChooseFull
= property(GetChooseFull
,SetChooseFull
,doc
="See `GetChooseFull` and `SetChooseFull`")
2227 Colour
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")
2228 CustomColour
= property(GetCustomColour
,SetCustomColour
,doc
="See `GetCustomColour` and `SetCustomColour`")
2229 _windows_
.ColourData_swigregister(ColourData
)
2230 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2231 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2232 DirDialogNameStr
= cvar
.DirDialogNameStr
2233 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2234 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2235 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2237 class ColourDialog(Dialog
):
2238 """This class represents the colour chooser dialog."""
2239 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2240 __repr__
= _swig_repr
2241 def __init__(self
, *args
, **kwargs
):
2243 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2245 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2246 which will be copied to the colour dialog's internal ColourData
2249 _windows_
.ColourDialog_swiginit(self
,_windows_
.new_ColourDialog(*args
, **kwargs
))
2250 self
._setOORInfo
(self
)
2252 def GetColourData(*args
, **kwargs
):
2254 GetColourData(self) -> ColourData
2256 Returns a reference to the `wx.ColourData` used by the dialog.
2258 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2260 ColourData
= property(GetColourData
,doc
="See `GetColourData`")
2261 _windows_
.ColourDialog_swigregister(ColourDialog
)
2264 def GetColourFromUser(*args
, **kwargs
):
2266 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2267 String caption=EmptyString) -> Colour
2269 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2270 DD_NEW_DIR_BUTTON
= _windows_
.DD_NEW_DIR_BUTTON
2271 DD_DEFAULT_STYLE
= _windows_
.DD_DEFAULT_STYLE
2272 DD_CHANGE_DIR
= _windows_
.DD_CHANGE_DIR
2273 class DirDialog(Dialog
):
2275 wx.DirDialog allows the user to select a directory by browising the
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
):
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
2287 Constructor. Use ShowModal method to show the dialog.
2289 _windows_
.DirDialog_swiginit(self
,_windows_
.new_DirDialog(*args
, **kwargs
))
2290 self
._setOORInfo
(self
)
2292 def GetPath(*args
, **kwargs
):
2294 GetPath(self) -> String
2296 Returns the default or user-selected path.
2298 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2300 def GetMessage(*args
, **kwargs
):
2302 GetMessage(self) -> String
2304 Returns the message that will be displayed on the dialog.
2306 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2308 def SetMessage(*args
, **kwargs
):
2310 SetMessage(self, String message)
2312 Sets the message that will be displayed on the dialog.
2314 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2316 def SetPath(*args
, **kwargs
):
2318 SetPath(self, String path)
2320 Sets the default path.
2322 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
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
)
2328 OPEN
= _windows_
.OPEN
2329 SAVE
= _windows_
.SAVE
2330 OVERWRITE_PROMPT
= _windows_
.OVERWRITE_PROMPT
2331 FILE_MUST_EXIST
= _windows_
.FILE_MUST_EXIST
2332 MULTIPLE
= _windows_
.MULTIPLE
2333 CHANGE_DIR
= _windows_
.CHANGE_DIR
2334 HIDE_READONLY
= _windows_
.HIDE_READONLY
2335 FD_OPEN
= _windows_
.FD_OPEN
2336 FD_SAVE
= _windows_
.FD_SAVE
2337 FD_OVERWRITE_PROMPT
= _windows_
.FD_OVERWRITE_PROMPT
2338 FD_FILE_MUST_EXIST
= _windows_
.FD_FILE_MUST_EXIST
2339 FD_MULTIPLE
= _windows_
.FD_MULTIPLE
2340 FD_CHANGE_DIR
= _windows_
.FD_CHANGE_DIR
2341 FD_PREVIEW
= _windows_
.FD_PREVIEW
2342 FD_DEFAULT_STYLE
= _windows_
.FD_DEFAULT_STYLE
2343 class FileDialog(Dialog
):
2345 wx.FileDialog allows the user to select one or more files from the
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
):
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
2358 Constructor. Use ShowModal method to show the dialog.
2360 _windows_
.FileDialog_swiginit(self
,_windows_
.new_FileDialog(*args
, **kwargs
))
2361 self
._setOORInfo
(self
)
2363 def SetMessage(*args
, **kwargs
):
2365 SetMessage(self, String message)
2367 Sets the message that will be displayed on the dialog.
2369 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2371 def SetPath(*args
, **kwargs
):
2373 SetPath(self, String path)
2375 Sets the path (the combined directory and filename that will be
2376 returned when the dialog is dismissed).
2378 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2380 def SetDirectory(*args
, **kwargs
):
2382 SetDirectory(self, String dir)
2384 Sets the default directory.
2386 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2388 def SetFilename(*args
, **kwargs
):
2390 SetFilename(self, String name)
2392 Sets the default filename.
2394 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2396 def SetWildcard(*args
, **kwargs
):
2398 SetWildcard(self, String wildCard)
2400 Sets the wildcard, which can contain multiple file types, for
2403 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2406 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2408 def SetFilterIndex(*args
, **kwargs
):
2410 SetFilterIndex(self, int filterIndex)
2412 Sets the default filter index, starting from zero.
2414 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2416 def GetMessage(*args
, **kwargs
):
2418 GetMessage(self) -> String
2420 Returns the message that will be displayed on the dialog.
2422 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2424 def GetPath(*args
, **kwargs
):
2426 GetPath(self) -> String
2428 Returns the full path (directory and filename) of the selected file.
2430 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2432 def GetDirectory(*args
, **kwargs
):
2434 GetDirectory(self) -> String
2436 Returns the default directory.
2438 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2440 def GetFilename(*args
, **kwargs
):
2442 GetFilename(self) -> String
2444 Returns the default filename.
2446 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2448 def GetWildcard(*args
, **kwargs
):
2450 GetWildcard(self) -> String
2452 Returns the file dialog wildcard.
2454 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2456 def GetFilterIndex(*args
, **kwargs
):
2458 GetFilterIndex(self) -> int
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.
2465 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2467 def GetFilenames(*args
, **kwargs
):
2469 GetFilenames(self) -> PyObject
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.
2475 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2477 def GetPaths(*args
, **kwargs
):
2479 GetPaths(self) -> PyObject
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.
2485 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
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
)
2497 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2498 class MultiChoiceDialog(Dialog
):
2499 """A simple dialog with a multi selection listbox."""
2500 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2501 __repr__
= _swig_repr
2502 def __init__(self
, *args
, **kwargs
):
2504 __init__(self, Window parent, String message, String caption,
2505 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2506 Point pos=DefaultPosition) -> MultiChoiceDialog
2508 Constructor. Use the `ShowModal` method to show the dialog.
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)
2521 _windows_
.MultiChoiceDialog_swiginit(self
,_windows_
.new_MultiChoiceDialog(*args
, **kwargs
))
2522 self
._setOORInfo
(self
)
2524 def SetSelections(*args
, **kwargs
):
2526 SetSelections(List selections)
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
2532 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2534 def GetSelections(*args
, **kwargs
):
2536 GetSelections() -> [selections]
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.
2541 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2543 Selections
= property(GetSelections
,SetSelections
,doc
="See `GetSelections` and `SetSelections`")
2544 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialog
)
2546 class SingleChoiceDialog(Dialog
):
2547 """A simple dialog with a single selection listbox."""
2548 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2549 __repr__
= _swig_repr
2550 def __init__(self
, *args
, **kwargs
):
2552 __init__(Window parent, String message, String caption,
2553 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2554 Point pos=DefaultPosition) -> SingleChoiceDialog
2556 Constructor. Use ShowModal method to show the dialog.
2558 _windows_
.SingleChoiceDialog_swiginit(self
,_windows_
.new_SingleChoiceDialog(*args
, **kwargs
))
2559 self
._setOORInfo
(self
)
2561 def GetSelection(*args
, **kwargs
):
2563 GetSelection(self) -> int
2565 Get the index of the currently selected item.
2567 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2569 def GetStringSelection(*args
, **kwargs
):
2571 GetStringSelection(self) -> String
2573 Returns the string value of the currently selected item
2575 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2577 def SetSelection(*args
, **kwargs
):
2579 SetSelection(self, int sel)
2581 Set the current selected item to sel
2583 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2585 Selection
= property(GetSelection
,SetSelection
,doc
="See `GetSelection` and `SetSelection`")
2586 StringSelection
= property(GetStringSelection
,doc
="See `GetStringSelection`")
2587 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialog
)
2589 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2590 class TextEntryDialog(Dialog
):
2591 """A dialog with text control, [ok] and [cancel] buttons"""
2592 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2593 __repr__
= _swig_repr
2594 def __init__(self
, *args
, **kwargs
):
2596 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2597 String defaultValue=EmptyString,
2598 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2600 Constructor. Use ShowModal method to show the dialog.
2602 _windows_
.TextEntryDialog_swiginit(self
,_windows_
.new_TextEntryDialog(*args
, **kwargs
))
2603 self
._setOORInfo
(self
)
2605 def GetValue(*args
, **kwargs
):
2607 GetValue(self) -> String
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.
2612 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2614 def SetValue(*args
, **kwargs
):
2616 SetValue(self, String value)
2618 Sets the default text value.
2620 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2622 Value
= property(GetValue
,SetValue
,doc
="See `GetValue` and `SetValue`")
2623 _windows_
.TextEntryDialog_swigregister(TextEntryDialog
)
2625 class PasswordEntryDialog(TextEntryDialog
):
2626 """Proxy of C++ PasswordEntryDialog class"""
2627 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2628 __repr__
= _swig_repr
2629 def __init__(self
, *args
, **kwargs
):
2631 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2632 String value=EmptyString,
2633 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2635 _windows_
.PasswordEntryDialog_swiginit(self
,_windows_
.new_PasswordEntryDialog(*args
, **kwargs
))
2636 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialog
)
2637 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2639 class NumberEntryDialog(Dialog
):
2640 """A dialog with spin control, ok and cancel buttons."""
2641 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2642 __repr__
= _swig_repr
2643 def __init__(self
, *args
, **kwargs
):
2645 __init__(self, Window parent, String message, String prompt, String caption,
2646 long value, long min, long max, Point pos=DefaultPosition) -> NumberEntryDialog
2648 Constructor. Use ShowModal method to show the dialog.
2650 _windows_
.NumberEntryDialog_swiginit(self
,_windows_
.new_NumberEntryDialog(*args
, **kwargs
))
2651 self
._setOORInfo
(self
)
2653 def GetValue(*args
, **kwargs
):
2654 """GetValue(self) -> long"""
2655 return _windows_
.NumberEntryDialog_GetValue(*args
, **kwargs
)
2657 Value
= property(GetValue
,doc
="See `GetValue`")
2658 _windows_
.NumberEntryDialog_swigregister(NumberEntryDialog
)
2660 class FontData(_core
.Object
):
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`.
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
):
2669 __init__(self) -> FontData
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`.
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
):
2679 EnableEffects(self, bool enable)
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.
2685 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2687 def GetAllowSymbols(*args
, **kwargs
):
2689 GetAllowSymbols(self) -> bool
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
2695 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2697 def GetColour(*args
, **kwargs
):
2699 GetColour(self) -> Colour
2701 Gets the colour associated with the font dialog. The default value is
2704 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2706 def GetChosenFont(*args
, **kwargs
):
2708 GetChosenFont(self) -> Font
2710 Gets the font chosen by the user.
2712 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2714 def GetEnableEffects(*args
, **kwargs
):
2716 GetEnableEffects(self) -> bool
2718 Determines whether 'effects' are enabled under Windows.
2720 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2722 def GetInitialFont(*args
, **kwargs
):
2724 GetInitialFont(self) -> Font
2726 Gets the font that will be initially used by the font dialog. This
2727 should have previously been set by the application.
2729 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2731 def GetShowHelp(*args
, **kwargs
):
2733 GetShowHelp(self) -> bool
2735 Returns true if the Help button will be shown (Windows only). The
2736 default value is false.
2738 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2740 def SetAllowSymbols(*args
, **kwargs
):
2742 SetAllowSymbols(self, bool allowSymbols)
2744 Under MS Windows, determines whether symbol fonts can be selected. Has
2745 no effect on other platforms. The default value is true.
2747 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2749 def SetChosenFont(*args
, **kwargs
):
2751 SetChosenFont(self, Font font)
2753 Sets the font that will be returned to the user (normally for internal
2756 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2758 def SetColour(*args
, **kwargs
):
2760 SetColour(self, Colour colour)
2762 Sets the colour that will be used for the font foreground colour. The
2763 default colour is black.
2765 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2767 def SetInitialFont(*args
, **kwargs
):
2769 SetInitialFont(self, Font font)
2771 Sets the font that will be initially used by the font dialog.
2773 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2775 def SetRange(*args
, **kwargs
):
2777 SetRange(self, int min, int max)
2779 Sets the valid range for the font point size (Windows only). The
2780 default is 0, 0 (unrestricted range).
2782 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2784 def SetShowHelp(*args
, **kwargs
):
2786 SetShowHelp(self, bool showHelp)
2788 Determines whether the Help button will be displayed in the font
2789 dialog (Windows only). The default value is false.
2791 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2793 AllowSymbols
= property(GetAllowSymbols
,SetAllowSymbols
,doc
="See `GetAllowSymbols` and `SetAllowSymbols`")
2794 ChosenFont
= property(GetChosenFont
,SetChosenFont
,doc
="See `GetChosenFont` and `SetChosenFont`")
2795 Colour
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")
2796 InitialFont
= property(GetInitialFont
,SetInitialFont
,doc
="See `GetInitialFont` and `SetInitialFont`")
2797 ShowHelp
= property(GetShowHelp
,SetShowHelp
,doc
="See `GetShowHelp` and `SetShowHelp`")
2798 _windows_
.FontData_swigregister(FontData
)
2800 class FontDialog(Dialog
):
2802 wx.FontDialog allows the user to select a system font and its attributes.
2807 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2808 __repr__
= _swig_repr
2809 def __init__(self
, *args
, **kwargs
):
2811 __init__(self, Window parent, FontData data) -> FontDialog
2813 Constructor. Pass a parent window and the `wx.FontData` object to be
2814 used to initialize the dialog controls. Call `ShowModal` to display
2815 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2816 results with via the `wx.FontData` returned by `GetFontData`.
2818 _windows_
.FontDialog_swiginit(self
,_windows_
.new_FontDialog(*args
, **kwargs
))
2819 self
._setOORInfo
(self
)
2821 def GetFontData(*args
, **kwargs
):
2823 GetFontData(self) -> FontData
2825 Returns a reference to the internal `wx.FontData` used by the
2828 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2830 FontData
= property(GetFontData
,doc
="See `GetFontData`")
2831 _windows_
.FontDialog_swigregister(FontDialog
)
2834 def GetFontFromUser(*args
, **kwargs
):
2835 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2836 return _windows_
.GetFontFromUser(*args
, **kwargs
)
2837 class MessageDialog(Dialog
):
2839 This class provides a simple dialog that shows a single or multi-line
2840 message, with a choice of OK, Yes, No and/or Cancel buttons.
2842 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2843 __repr__
= _swig_repr
2844 def __init__(self
, *args
, **kwargs
):
2846 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2847 long style=wxOK|wxCANCEL|wxCENTRE,
2848 Point pos=DefaultPosition) -> MessageDialog
2850 Constructor, use `ShowModal` to display the dialog.
2852 _windows_
.MessageDialog_swiginit(self
,_windows_
.new_MessageDialog(*args
, **kwargs
))
2853 self
._setOORInfo
(self
)
2855 _windows_
.MessageDialog_swigregister(MessageDialog
)
2857 PD_AUTO_HIDE
= _windows_
.PD_AUTO_HIDE
2858 PD_APP_MODAL
= _windows_
.PD_APP_MODAL
2859 PD_CAN_ABORT
= _windows_
.PD_CAN_ABORT
2860 PD_ELAPSED_TIME
= _windows_
.PD_ELAPSED_TIME
2861 PD_ESTIMATED_TIME
= _windows_
.PD_ESTIMATED_TIME
2862 PD_REMAINING_TIME
= _windows_
.PD_REMAINING_TIME
2863 PD_SMOOTH
= _windows_
.PD_SMOOTH
2864 PD_CAN_SKIP
= _windows_
.PD_CAN_SKIP
2865 class ProgressDialog(Frame
):
2867 A dialog that shows a short message and a progress bar. Optionally, it
2868 can display an ABORT button.
2870 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2871 __repr__
= _swig_repr
2872 def __init__(self
, *args
, **kwargs
):
2874 __init__(self, String title, String message, int maximum=100, Window parent=None,
2875 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2877 Constructor. Creates the dialog, displays it and disables user input
2878 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2881 _windows_
.ProgressDialog_swiginit(self
,_windows_
.new_ProgressDialog(*args
, **kwargs
))
2882 self
._setOORInfo
(self
)
2884 def Update(*args
, **kwargs
):
2886 Update(self, int value, String newmsg) --> (continue, skip)
2888 Updates the dialog, setting the progress bar to the new value and, if
2889 given changes the message above it. The value given should be less
2890 than or equal to the maximum value given to the constructor and the
2891 dialog is closed if it is equal to the maximum. Returns a tuple of
2892 boolean values, ``(continue, skip)`` where ``continue`` is ``True``
2893 unless the Cancel button has been pressed, and ``skip`` is ``False``
2894 unless the Skip button (if any) has been pressed.
2896 If the ``continue`` return value is ``False``, the application can either
2897 immediately destroy the dialog or ask the user for confirmation, and if the
2898 abort is not confirmed the dialog may be resumed with `Resume` function.
2901 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2903 def Pulse(*args
, **kwargs
):
2905 Pulse(self, String newmsg) --> (continue, skip)
2907 Just like `Update` but switches the dialog to use a gauge in
2908 interminante mode and calls `wx.Gauge.Pulse` to show the user a bit of
2911 return _windows_
.ProgressDialog_Pulse(*args
, **kwargs
)
2914 def Resume(*args
, **kwargs
):
2918 Can be used to continue with the dialog, after the user had chosen to
2921 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2923 _windows_
.ProgressDialog_swigregister(ProgressDialog
)
2925 FR_DOWN
= _windows_
.FR_DOWN
2926 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2927 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2928 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2929 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2930 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2931 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2932 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2933 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2934 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2935 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2936 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2937 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2938 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2939 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2940 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2941 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2943 # For backwards compatibility. Should they be removed?
2944 EVT_COMMAND_FIND
= EVT_FIND
2945 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2946 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2947 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2948 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2950 class 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
):
2956 __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2958 Events for the FindReplaceDialog
2960 _windows_
.FindDialogEvent_swiginit(self
,_windows_
.new_FindDialogEvent(*args
, **kwargs
))
2961 def GetFlags(*args
, **kwargs
):
2963 GetFlags(self) -> int
2965 Get the currently selected flags: this is the combination of
2966 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2968 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2970 def GetFindString(*args
, **kwargs
):
2972 GetFindString(self) -> String
2974 Return the string to find (never empty).
2976 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2978 def GetReplaceString(*args
, **kwargs
):
2980 GetReplaceString(self) -> String
2982 Return the string to replace the search string with (only for replace
2983 and replace all events).
2985 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2987 def GetDialog(*args
, **kwargs
):
2989 GetDialog(self) -> FindReplaceDialog
2991 Return the pointer to the dialog which generated this event.
2993 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2995 def SetFlags(*args
, **kwargs
):
2996 """SetFlags(self, int flags)"""
2997 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2999 def SetFindString(*args
, **kwargs
):
3000 """SetFindString(self, String str)"""
3001 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3003 def SetReplaceString(*args
, **kwargs
):
3004 """SetReplaceString(self, String str)"""
3005 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
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
)
3013 class FindReplaceData(_core
.Object
):
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.
3021 Note that all SetXXX() methods may only be called before showing the
3022 dialog and calling them has no effect later.
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
):
3028 __init__(self, int flags=0) -> FindReplaceData
3030 Constuctor initializes the flags to default value (0).
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
):
3037 GetFindString(self) -> String
3039 Get the string to find.
3041 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3043 def GetReplaceString(*args
, **kwargs
):
3045 GetReplaceString(self) -> String
3047 Get the replacement string.
3049 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3051 def GetFlags(*args
, **kwargs
):
3053 GetFlags(self) -> int
3055 Get the combination of flag values.
3057 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3059 def SetFlags(*args
, **kwargs
):
3061 SetFlags(self, int flags)
3063 Set the flags to use to initialize the controls of the dialog.
3065 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3067 def SetFindString(*args
, **kwargs
):
3069 SetFindString(self, String str)
3071 Set the string to find (used as initial value by the dialog).
3073 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3075 def SetReplaceString(*args
, **kwargs
):
3077 SetReplaceString(self, String str)
3079 Set the replacement string (used as initial value by the dialog).
3081 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
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
)
3088 class FindReplaceDialog(Dialog
):
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.
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
):
3102 __init__(self, Window parent, FindReplaceData data, String title,
3103 int style=0) -> FindReplaceDialog
3105 Create a FindReplaceDialog. The parent and data parameters must be
3106 non-None. Use Show to display the dialog.
3108 _windows_
.FindReplaceDialog_swiginit(self
,_windows_
.new_FindReplaceDialog(*args
, **kwargs
))
3109 self
._setOORInfo
(self
)
3111 def Create(*args
, **kwargs
):
3113 Create(self, Window parent, FindReplaceData data, String title,
3114 int style=0) -> bool
3116 Create the dialog, for 2-phase create.
3118 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3120 def GetData(*args
, **kwargs
):
3122 GetData(self) -> FindReplaceData
3124 Get the FindReplaceData object used by this dialog.
3126 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3128 def SetData(*args
, **kwargs
):
3130 SetData(self, FindReplaceData data)
3132 Set the FindReplaceData object used by this dialog.
3134 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3136 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
3137 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialog
)
3139 def PreFindReplaceDialog(*args
, **kwargs
):
3141 PreFindReplaceDialog() -> FindReplaceDialog
3143 Precreate a FindReplaceDialog for 2-phase creation
3145 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3148 #---------------------------------------------------------------------------
3150 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3151 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3152 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3153 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3154 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3155 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3156 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3157 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3158 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3159 class 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
):
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
3170 _windows_
.MDIParentFrame_swiginit(self
,_windows_
.new_MDIParentFrame(*args
, **kwargs
))
3171 self
._setOORInfo
(self
)
3173 def Create(*args
, **kwargs
):
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
3180 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3182 def ActivateNext(*args
, **kwargs
):
3183 """ActivateNext(self)"""
3184 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3186 def ActivatePrevious(*args
, **kwargs
):
3187 """ActivatePrevious(self)"""
3188 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3190 def ArrangeIcons(*args
, **kwargs
):
3191 """ArrangeIcons(self)"""
3192 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3194 def Cascade(*args
, **kwargs
):
3196 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3198 def GetActiveChild(*args
, **kwargs
):
3199 """GetActiveChild(self) -> MDIChildFrame"""
3200 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3202 def GetClientWindow(*args
, **kwargs
):
3203 """GetClientWindow(self) -> MDIClientWindow"""
3204 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3206 def Tile(*args
, **kwargs
):
3207 """Tile(self, int orient=HORIZONTAL)"""
3208 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3210 ActiveChild
= property(GetActiveChild
,doc
="See `GetActiveChild`")
3211 ClientWindow
= property(GetClientWindow
,doc
="See `GetClientWindow`")
3212 _windows_
.MDIParentFrame_swigregister(MDIParentFrame
)
3214 def PreMDIParentFrame(*args
, **kwargs
):
3215 """PreMDIParentFrame() -> MDIParentFrame"""
3216 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3219 class 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
):
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
3230 _windows_
.MDIChildFrame_swiginit(self
,_windows_
.new_MDIChildFrame(*args
, **kwargs
))
3231 self
._setOORInfo
(self
)
3233 def Create(*args
, **kwargs
):
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
3240 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3242 def Activate(*args
, **kwargs
):
3243 """Activate(self)"""
3244 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3246 _windows_
.MDIChildFrame_swigregister(MDIChildFrame
)
3248 def PreMDIChildFrame(*args
, **kwargs
):
3249 """PreMDIChildFrame() -> MDIChildFrame"""
3250 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3253 class 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
)
3262 def Create(*args
, **kwargs
):
3263 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3264 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3266 _windows_
.MDIClientWindow_swigregister(MDIClientWindow
)
3268 def PreMDIClientWindow(*args
, **kwargs
):
3269 """PreMDIClientWindow() -> MDIClientWindow"""
3270 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3273 #---------------------------------------------------------------------------
3275 class 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
):
3281 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3282 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3284 _windows_
.PyWindow_swiginit(self
,_windows_
.new_PyWindow(*args
, **kwargs
))
3285 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3287 def _setCallbackInfo(*args
, **kwargs
):
3288 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3289 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3291 def SetBestSize(*args
, **kwargs
):
3292 """SetBestSize(self, Size size)"""
3293 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3295 def DoEraseBackground(*args
, **kwargs
):
3296 """DoEraseBackground(self, DC dc) -> bool"""
3297 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3299 def DoMoveWindow(*args
, **kwargs
):
3300 """DoMoveWindow(self, int x, int y, int width, int height)"""
3301 return _windows_
.PyWindow_DoMoveWindow(*args
, **kwargs
)
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
)
3307 def DoSetClientSize(*args
, **kwargs
):
3308 """DoSetClientSize(self, int width, int height)"""
3309 return _windows_
.PyWindow_DoSetClientSize(*args
, **kwargs
)
3311 def DoSetVirtualSize(*args
, **kwargs
):
3312 """DoSetVirtualSize(self, int x, int y)"""
3313 return _windows_
.PyWindow_DoSetVirtualSize(*args
, **kwargs
)
3315 def DoGetSize(*args
, **kwargs
):
3316 """DoGetSize() -> (width, height)"""
3317 return _windows_
.PyWindow_DoGetSize(*args
, **kwargs
)
3319 def DoGetClientSize(*args
, **kwargs
):
3320 """DoGetClientSize() -> (width, height)"""
3321 return _windows_
.PyWindow_DoGetClientSize(*args
, **kwargs
)
3323 def DoGetPosition(*args
, **kwargs
):
3324 """DoGetPosition() -> (x,y)"""
3325 return _windows_
.PyWindow_DoGetPosition(*args
, **kwargs
)
3327 def DoGetVirtualSize(*args
, **kwargs
):
3328 """DoGetVirtualSize(self) -> Size"""
3329 return _windows_
.PyWindow_DoGetVirtualSize(*args
, **kwargs
)
3331 def DoGetBestSize(*args
, **kwargs
):
3332 """DoGetBestSize(self) -> Size"""
3333 return _windows_
.PyWindow_DoGetBestSize(*args
, **kwargs
)
3335 def GetDefaultAttributes(*args
, **kwargs
):
3336 """GetDefaultAttributes(self) -> VisualAttributes"""
3337 return _windows_
.PyWindow_GetDefaultAttributes(*args
, **kwargs
)
3339 def OnInternalIdle(*args
, **kwargs
):
3340 """OnInternalIdle(self)"""
3341 return _windows_
.PyWindow_OnInternalIdle(*args
, **kwargs
)
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
3448 _windows_
.PyWindow_swigregister(PyWindow
)
3450 def PrePyWindow(*args
, **kwargs
):
3451 """PrePyWindow() -> PyWindow"""
3452 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3455 class 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
):
3461 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3462 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3464 _windows_
.PyPanel_swiginit(self
,_windows_
.new_PyPanel(*args
, **kwargs
))
3465 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3467 def _setCallbackInfo(*args
, **kwargs
):
3468 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3469 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3471 def SetBestSize(*args
, **kwargs
):
3472 """SetBestSize(self, Size size)"""
3473 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3475 def DoEraseBackground(*args
, **kwargs
):
3476 """DoEraseBackground(self, DC dc) -> bool"""
3477 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3479 def DoMoveWindow(*args
, **kwargs
):
3480 """DoMoveWindow(self, int x, int y, int width, int height)"""
3481 return _windows_
.PyPanel_DoMoveWindow(*args
, **kwargs
)
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
)
3487 def DoSetClientSize(*args
, **kwargs
):
3488 """DoSetClientSize(self, int width, int height)"""
3489 return _windows_
.PyPanel_DoSetClientSize(*args
, **kwargs
)
3491 def DoSetVirtualSize(*args
, **kwargs
):
3492 """DoSetVirtualSize(self, int x, int y)"""
3493 return _windows_
.PyPanel_DoSetVirtualSize(*args
, **kwargs
)
3495 def DoGetSize(*args
, **kwargs
):
3496 """DoGetSize() -> (width, height)"""
3497 return _windows_
.PyPanel_DoGetSize(*args
, **kwargs
)
3499 def DoGetClientSize(*args
, **kwargs
):
3500 """DoGetClientSize() -> (width, height)"""
3501 return _windows_
.PyPanel_DoGetClientSize(*args
, **kwargs
)
3503 def DoGetPosition(*args
, **kwargs
):
3504 """DoGetPosition() -> (x,y)"""
3505 return _windows_
.PyPanel_DoGetPosition(*args
, **kwargs
)
3507 def DoGetVirtualSize(*args
, **kwargs
):
3508 """DoGetVirtualSize(self) -> Size"""
3509 return _windows_
.PyPanel_DoGetVirtualSize(*args
, **kwargs
)
3511 def DoGetBestSize(*args
, **kwargs
):
3512 """DoGetBestSize(self) -> Size"""
3513 return _windows_
.PyPanel_DoGetBestSize(*args
, **kwargs
)
3515 def GetDefaultAttributes(*args
, **kwargs
):
3516 """GetDefaultAttributes(self) -> VisualAttributes"""
3517 return _windows_
.PyPanel_GetDefaultAttributes(*args
, **kwargs
)
3519 def OnInternalIdle(*args
, **kwargs
):
3520 """OnInternalIdle(self)"""
3521 return _windows_
.PyPanel_OnInternalIdle(*args
, **kwargs
)
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
3628 _windows_
.PyPanel_swigregister(PyPanel
)
3630 def PrePyPanel(*args
, **kwargs
):
3631 """PrePyPanel() -> PyPanel"""
3632 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3635 class 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
):
3641 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3642 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3644 _windows_
.PyScrolledWindow_swiginit(self
,_windows_
.new_PyScrolledWindow(*args
, **kwargs
))
3645 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3647 def _setCallbackInfo(*args
, **kwargs
):
3648 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3649 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3651 def SetBestSize(*args
, **kwargs
):
3652 """SetBestSize(self, Size size)"""
3653 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3655 def DoEraseBackground(*args
, **kwargs
):
3656 """DoEraseBackground(self, DC dc) -> bool"""
3657 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3659 def DoMoveWindow(*args
, **kwargs
):
3660 """DoMoveWindow(self, int x, int y, int width, int height)"""
3661 return _windows_
.PyScrolledWindow_DoMoveWindow(*args
, **kwargs
)
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
)
3667 def DoSetClientSize(*args
, **kwargs
):
3668 """DoSetClientSize(self, int width, int height)"""
3669 return _windows_
.PyScrolledWindow_DoSetClientSize(*args
, **kwargs
)
3671 def DoSetVirtualSize(*args
, **kwargs
):
3672 """DoSetVirtualSize(self, int x, int y)"""
3673 return _windows_
.PyScrolledWindow_DoSetVirtualSize(*args
, **kwargs
)
3675 def DoGetSize(*args
, **kwargs
):
3676 """DoGetSize() -> (width, height)"""
3677 return _windows_
.PyScrolledWindow_DoGetSize(*args
, **kwargs
)
3679 def DoGetClientSize(*args
, **kwargs
):
3680 """DoGetClientSize() -> (width, height)"""
3681 return _windows_
.PyScrolledWindow_DoGetClientSize(*args
, **kwargs
)
3683 def DoGetPosition(*args
, **kwargs
):
3684 """DoGetPosition() -> (x,y)"""
3685 return _windows_
.PyScrolledWindow_DoGetPosition(*args
, **kwargs
)
3687 def DoGetVirtualSize(*args
, **kwargs
):
3688 """DoGetVirtualSize(self) -> Size"""
3689 return _windows_
.PyScrolledWindow_DoGetVirtualSize(*args
, **kwargs
)
3691 def DoGetBestSize(*args
, **kwargs
):
3692 """DoGetBestSize(self) -> Size"""
3693 return _windows_
.PyScrolledWindow_DoGetBestSize(*args
, **kwargs
)
3695 def GetDefaultAttributes(*args
, **kwargs
):
3696 """GetDefaultAttributes(self) -> VisualAttributes"""
3697 return _windows_
.PyScrolledWindow_GetDefaultAttributes(*args
, **kwargs
)
3699 def OnInternalIdle(*args
, **kwargs
):
3700 """OnInternalIdle(self)"""
3701 return _windows_
.PyScrolledWindow_OnInternalIdle(*args
, **kwargs
)
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
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.")
3808 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindow
)
3810 def PrePyScrolledWindow(*args
, **kwargs
):
3811 """PrePyScrolledWindow() -> PyScrolledWindow"""
3812 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3815 #---------------------------------------------------------------------------
3817 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3818 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3819 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3820 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3821 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3822 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3823 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3824 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3825 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3826 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3827 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3828 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3829 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3830 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3831 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3832 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3833 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3834 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3835 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3836 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3837 class 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
):
3843 __init__(self) -> PrintData
3844 __init__(self, PrintData data) -> PrintData
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
)
3853 def GetCollate(*args
, **kwargs
):
3854 """GetCollate(self) -> bool"""
3855 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3857 def GetOrientation(*args
, **kwargs
):
3858 """GetOrientation(self) -> int"""
3859 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3861 def IsOk(*args
, **kwargs
):
3862 """IsOk(self) -> bool"""
3863 return _windows_
.PrintData_IsOk(*args
, **kwargs
)
3866 def GetPrinterName(*args
, **kwargs
):
3867 """GetPrinterName(self) -> String"""
3868 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3870 def GetColour(*args
, **kwargs
):
3871 """GetColour(self) -> bool"""
3872 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3874 def GetDuplex(*args
, **kwargs
):
3875 """GetDuplex(self) -> int"""
3876 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3878 def GetPaperId(*args
, **kwargs
):
3879 """GetPaperId(self) -> int"""
3880 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3882 def GetPaperSize(*args
, **kwargs
):
3883 """GetPaperSize(self) -> Size"""
3884 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3886 def GetQuality(*args
, **kwargs
):
3887 """GetQuality(self) -> int"""
3888 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3890 def GetBin(*args
, **kwargs
):
3891 """GetBin(self) -> int"""
3892 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3894 def GetPrintMode(*args
, **kwargs
):
3895 """GetPrintMode(self) -> int"""
3896 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3898 def GetMedia(*args
, **kwargs
):
3899 """GetMedia(self) -> int"""
3900 return _windows_
.PrintData_GetMedia(*args
, **kwargs
)
3902 def SetNoCopies(*args
, **kwargs
):
3903 """SetNoCopies(self, int v)"""
3904 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3906 def SetCollate(*args
, **kwargs
):
3907 """SetCollate(self, bool flag)"""
3908 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3910 def SetOrientation(*args
, **kwargs
):
3911 """SetOrientation(self, int orient)"""
3912 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3914 def SetPrinterName(*args
, **kwargs
):
3915 """SetPrinterName(self, String name)"""
3916 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3918 def SetColour(*args
, **kwargs
):
3919 """SetColour(self, bool colour)"""
3920 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3922 def SetDuplex(*args
, **kwargs
):
3923 """SetDuplex(self, int duplex)"""
3924 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3926 def SetPaperId(*args
, **kwargs
):
3927 """SetPaperId(self, int sizeId)"""
3928 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3930 def SetPaperSize(*args
, **kwargs
):
3931 """SetPaperSize(self, Size sz)"""
3932 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3934 def SetQuality(*args
, **kwargs
):
3935 """SetQuality(self, int quality)"""
3936 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3938 def SetBin(*args
, **kwargs
):
3939 """SetBin(self, int bin)"""
3940 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3942 def SetPrintMode(*args
, **kwargs
):
3943 """SetPrintMode(self, int printMode)"""
3944 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3946 def SetMedia(*args
, **kwargs
):
3947 """SetMedia(self, int media)"""
3948 return _windows_
.PrintData_SetMedia(*args
, **kwargs
)
3950 def GetFilename(*args
, **kwargs
):
3951 """GetFilename(self) -> String"""
3952 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3954 def SetFilename(*args
, **kwargs
):
3955 """SetFilename(self, String filename)"""
3956 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3958 def __nonzero__(self
): return self
.IsOk()
3959 def GetPrivData(*args
, **kwargs
):
3960 """GetPrivData(self) -> PyObject"""
3961 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
3963 def SetPrivData(*args
, **kwargs
):
3964 """SetPrivData(self, PyObject data)"""
3965 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
3967 Bin
= property(GetBin
,SetBin
,doc
="See `GetBin` and `SetBin`")
3968 Collate
= property(GetCollate
,SetCollate
,doc
="See `GetCollate` and `SetCollate`")
3969 Colour
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")
3970 Duplex
= property(GetDuplex
,SetDuplex
,doc
="See `GetDuplex` and `SetDuplex`")
3971 Filename
= property(GetFilename
,SetFilename
,doc
="See `GetFilename` and `SetFilename`")
3972 NoCopies
= property(GetNoCopies
,SetNoCopies
,doc
="See `GetNoCopies` and `SetNoCopies`")
3973 Orientation
= property(GetOrientation
,SetOrientation
,doc
="See `GetOrientation` and `SetOrientation`")
3974 PaperId
= property(GetPaperId
,SetPaperId
,doc
="See `GetPaperId` and `SetPaperId`")
3975 PaperSize
= property(GetPaperSize
,SetPaperSize
,doc
="See `GetPaperSize` and `SetPaperSize`")
3976 PrintMode
= property(GetPrintMode
,SetPrintMode
,doc
="See `GetPrintMode` and `SetPrintMode`")
3977 PrinterName
= property(GetPrinterName
,SetPrinterName
,doc
="See `GetPrinterName` and `SetPrinterName`")
3978 PrivData
= property(GetPrivData
,SetPrivData
,doc
="See `GetPrivData` and `SetPrivData`")
3979 Quality
= property(GetQuality
,SetQuality
,doc
="See `GetQuality` and `SetQuality`")
3980 _windows_
.PrintData_swigregister(PrintData
)
3981 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3982 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3984 class PageSetupDialogData(_core
.Object
):
3985 """Proxy of C++ PageSetupDialogData class"""
3986 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3987 __repr__
= _swig_repr
3988 def __init__(self
, *args
):
3990 __init__(self) -> PageSetupDialogData
3991 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3992 __init__(self, PrintData data) -> PageSetupDialogData
3994 _windows_
.PageSetupDialogData_swiginit(self
,_windows_
.new_PageSetupDialogData(*args
))
3995 __swig_destroy__
= _windows_
.delete_PageSetupDialogData
3996 __del__
= lambda self
: None;
3997 def EnableHelp(*args
, **kwargs
):
3998 """EnableHelp(self, bool flag)"""
3999 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
4001 def EnableMargins(*args
, **kwargs
):
4002 """EnableMargins(self, bool flag)"""
4003 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
4005 def EnableOrientation(*args
, **kwargs
):
4006 """EnableOrientation(self, bool flag)"""
4007 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
4009 def EnablePaper(*args
, **kwargs
):
4010 """EnablePaper(self, bool flag)"""
4011 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
4013 def EnablePrinter(*args
, **kwargs
):
4014 """EnablePrinter(self, bool flag)"""
4015 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
4017 def GetDefaultMinMargins(*args
, **kwargs
):
4018 """GetDefaultMinMargins(self) -> bool"""
4019 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
4021 def GetEnableMargins(*args
, **kwargs
):
4022 """GetEnableMargins(self) -> bool"""
4023 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
4025 def GetEnableOrientation(*args
, **kwargs
):
4026 """GetEnableOrientation(self) -> bool"""
4027 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4029 def GetEnablePaper(*args
, **kwargs
):
4030 """GetEnablePaper(self) -> bool"""
4031 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4033 def GetEnablePrinter(*args
, **kwargs
):
4034 """GetEnablePrinter(self) -> bool"""
4035 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4037 def GetEnableHelp(*args
, **kwargs
):
4038 """GetEnableHelp(self) -> bool"""
4039 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4041 def GetDefaultInfo(*args
, **kwargs
):
4042 """GetDefaultInfo(self) -> bool"""
4043 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4045 def GetMarginTopLeft(*args
, **kwargs
):
4046 """GetMarginTopLeft(self) -> Point"""
4047 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4049 def GetMarginBottomRight(*args
, **kwargs
):
4050 """GetMarginBottomRight(self) -> Point"""
4051 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4053 def GetMinMarginTopLeft(*args
, **kwargs
):
4054 """GetMinMarginTopLeft(self) -> Point"""
4055 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4057 def GetMinMarginBottomRight(*args
, **kwargs
):
4058 """GetMinMarginBottomRight(self) -> Point"""
4059 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4061 def GetPaperId(*args
, **kwargs
):
4062 """GetPaperId(self) -> int"""
4063 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4065 def GetPaperSize(*args
, **kwargs
):
4066 """GetPaperSize(self) -> Size"""
4067 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4069 def GetPrintData(*args
, **kwargs
):
4070 """GetPrintData(self) -> PrintData"""
4071 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4073 def IsOk(*args
, **kwargs
):
4074 """IsOk(self) -> bool"""
4075 return _windows_
.PageSetupDialogData_IsOk(*args
, **kwargs
)
4078 def SetDefaultInfo(*args
, **kwargs
):
4079 """SetDefaultInfo(self, bool flag)"""
4080 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4082 def SetDefaultMinMargins(*args
, **kwargs
):
4083 """SetDefaultMinMargins(self, bool flag)"""
4084 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4086 def SetMarginTopLeft(*args
, **kwargs
):
4087 """SetMarginTopLeft(self, Point pt)"""
4088 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4090 def SetMarginBottomRight(*args
, **kwargs
):
4091 """SetMarginBottomRight(self, Point pt)"""
4092 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4094 def SetMinMarginTopLeft(*args
, **kwargs
):
4095 """SetMinMarginTopLeft(self, Point pt)"""
4096 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4098 def SetMinMarginBottomRight(*args
, **kwargs
):
4099 """SetMinMarginBottomRight(self, Point pt)"""
4100 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4102 def SetPaperId(*args
, **kwargs
):
4103 """SetPaperId(self, int id)"""
4104 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4106 def SetPaperSize(*args
, **kwargs
):
4107 """SetPaperSize(self, Size size)"""
4108 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4110 def SetPrintData(*args
, **kwargs
):
4111 """SetPrintData(self, PrintData printData)"""
4112 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4114 def CalculateIdFromPaperSize(*args
, **kwargs
):
4115 """CalculateIdFromPaperSize(self)"""
4116 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
4118 def CalculatePaperSizeFromId(*args
, **kwargs
):
4119 """CalculatePaperSizeFromId(self)"""
4120 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
4122 def __nonzero__(self
): return self
.IsOk()
4123 DefaultInfo
= property(GetDefaultInfo
,SetDefaultInfo
,doc
="See `GetDefaultInfo` and `SetDefaultInfo`")
4124 DefaultMinMargins
= property(GetDefaultMinMargins
,SetDefaultMinMargins
,doc
="See `GetDefaultMinMargins` and `SetDefaultMinMargins`")
4125 MarginBottomRight
= property(GetMarginBottomRight
,SetMarginBottomRight
,doc
="See `GetMarginBottomRight` and `SetMarginBottomRight`")
4126 MarginTopLeft
= property(GetMarginTopLeft
,SetMarginTopLeft
,doc
="See `GetMarginTopLeft` and `SetMarginTopLeft`")
4127 MinMarginBottomRight
= property(GetMinMarginBottomRight
,SetMinMarginBottomRight
,doc
="See `GetMinMarginBottomRight` and `SetMinMarginBottomRight`")
4128 MinMarginTopLeft
= property(GetMinMarginTopLeft
,SetMinMarginTopLeft
,doc
="See `GetMinMarginTopLeft` and `SetMinMarginTopLeft`")
4129 PaperId
= property(GetPaperId
,SetPaperId
,doc
="See `GetPaperId` and `SetPaperId`")
4130 PaperSize
= property(GetPaperSize
,SetPaperSize
,doc
="See `GetPaperSize` and `SetPaperSize`")
4131 PrintData
= property(GetPrintData
,SetPrintData
,doc
="See `GetPrintData` and `SetPrintData`")
4132 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogData
)
4134 class PageSetupDialog(_core
.Object
):
4135 """Proxy of C++ PageSetupDialog class"""
4136 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4137 __repr__
= _swig_repr
4138 def __init__(self
, *args
, **kwargs
):
4139 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4140 _windows_
.PageSetupDialog_swiginit(self
,_windows_
.new_PageSetupDialog(*args
, **kwargs
))
4141 __swig_destroy__
= _windows_
.delete_PageSetupDialog
4142 __del__
= lambda self
: None;
4143 def GetPageSetupData(*args
, **kwargs
):
4144 """GetPageSetupData(self) -> PageSetupDialogData"""
4145 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4147 def GetPageSetupDialogData(*args
, **kwargs
):
4148 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4149 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4151 def ShowModal(*args
, **kwargs
):
4152 """ShowModal(self) -> int"""
4153 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4155 def Destroy(self
): pass
4156 PageSetupData
= property(GetPageSetupData
,doc
="See `GetPageSetupData`")
4157 PageSetupDialogData
= property(GetPageSetupDialogData
,doc
="See `GetPageSetupDialogData`")
4158 _windows_
.PageSetupDialog_swigregister(PageSetupDialog
)
4160 class PrintDialogData(_core
.Object
):
4161 """Proxy of C++ PrintDialogData class"""
4162 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4163 __repr__
= _swig_repr
4164 def __init__(self
, *args
):
4166 __init__(self) -> PrintDialogData
4167 __init__(self, PrintData printData) -> PrintDialogData
4168 __init__(self, PrintDialogData printData) -> PrintDialogData
4170 _windows_
.PrintDialogData_swiginit(self
,_windows_
.new_PrintDialogData(*args
))
4171 __swig_destroy__
= _windows_
.delete_PrintDialogData
4172 __del__
= lambda self
: None;
4173 def GetFromPage(*args
, **kwargs
):
4174 """GetFromPage(self) -> int"""
4175 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4177 def GetToPage(*args
, **kwargs
):
4178 """GetToPage(self) -> int"""
4179 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4181 def GetMinPage(*args
, **kwargs
):
4182 """GetMinPage(self) -> int"""
4183 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4185 def GetMaxPage(*args
, **kwargs
):
4186 """GetMaxPage(self) -> int"""
4187 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4189 def GetNoCopies(*args
, **kwargs
):
4190 """GetNoCopies(self) -> int"""
4191 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4193 def GetAllPages(*args
, **kwargs
):
4194 """GetAllPages(self) -> bool"""
4195 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4197 def GetSelection(*args
, **kwargs
):
4198 """GetSelection(self) -> bool"""
4199 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4201 def GetCollate(*args
, **kwargs
):
4202 """GetCollate(self) -> bool"""
4203 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4205 def GetPrintToFile(*args
, **kwargs
):
4206 """GetPrintToFile(self) -> bool"""
4207 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4209 def SetFromPage(*args
, **kwargs
):
4210 """SetFromPage(self, int v)"""
4211 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4213 def SetToPage(*args
, **kwargs
):
4214 """SetToPage(self, int v)"""
4215 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4217 def SetMinPage(*args
, **kwargs
):
4218 """SetMinPage(self, int v)"""
4219 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4221 def SetMaxPage(*args
, **kwargs
):
4222 """SetMaxPage(self, int v)"""
4223 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4225 def SetNoCopies(*args
, **kwargs
):
4226 """SetNoCopies(self, int v)"""
4227 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4229 def SetAllPages(*args
, **kwargs
):
4230 """SetAllPages(self, bool flag)"""
4231 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4233 def SetSelection(*args
, **kwargs
):
4234 """SetSelection(self, bool flag)"""
4235 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4237 def SetCollate(*args
, **kwargs
):
4238 """SetCollate(self, bool flag)"""
4239 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4241 def SetPrintToFile(*args
, **kwargs
):
4242 """SetPrintToFile(self, bool flag)"""
4243 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4245 def EnablePrintToFile(*args
, **kwargs
):
4246 """EnablePrintToFile(self, bool flag)"""
4247 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4249 def EnableSelection(*args
, **kwargs
):
4250 """EnableSelection(self, bool flag)"""
4251 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4253 def EnablePageNumbers(*args
, **kwargs
):
4254 """EnablePageNumbers(self, bool flag)"""
4255 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4257 def EnableHelp(*args
, **kwargs
):
4258 """EnableHelp(self, bool flag)"""
4259 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4261 def GetEnablePrintToFile(*args
, **kwargs
):
4262 """GetEnablePrintToFile(self) -> bool"""
4263 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4265 def GetEnableSelection(*args
, **kwargs
):
4266 """GetEnableSelection(self) -> bool"""
4267 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4269 def GetEnablePageNumbers(*args
, **kwargs
):
4270 """GetEnablePageNumbers(self) -> bool"""
4271 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4273 def GetEnableHelp(*args
, **kwargs
):
4274 """GetEnableHelp(self) -> bool"""
4275 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4277 def IsOk(*args
, **kwargs
):
4278 """IsOk(self) -> bool"""
4279 return _windows_
.PrintDialogData_IsOk(*args
, **kwargs
)
4282 def GetPrintData(*args
, **kwargs
):
4283 """GetPrintData(self) -> PrintData"""
4284 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4286 def SetPrintData(*args
, **kwargs
):
4287 """SetPrintData(self, PrintData printData)"""
4288 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4290 def __nonzero__(self
): return self
.IsOk()
4291 AllPages
= property(GetAllPages
,SetAllPages
,doc
="See `GetAllPages` and `SetAllPages`")
4292 Collate
= property(GetCollate
,SetCollate
,doc
="See `GetCollate` and `SetCollate`")
4293 FromPage
= property(GetFromPage
,SetFromPage
,doc
="See `GetFromPage` and `SetFromPage`")
4294 MaxPage
= property(GetMaxPage
,SetMaxPage
,doc
="See `GetMaxPage` and `SetMaxPage`")
4295 MinPage
= property(GetMinPage
,SetMinPage
,doc
="See `GetMinPage` and `SetMinPage`")
4296 NoCopies
= property(GetNoCopies
,SetNoCopies
,doc
="See `GetNoCopies` and `SetNoCopies`")
4297 PrintData
= property(GetPrintData
,SetPrintData
,doc
="See `GetPrintData` and `SetPrintData`")
4298 PrintToFile
= property(GetPrintToFile
,SetPrintToFile
,doc
="See `GetPrintToFile` and `SetPrintToFile`")
4299 Selection
= property(GetSelection
,SetSelection
,doc
="See `GetSelection` and `SetSelection`")
4300 ToPage
= property(GetToPage
,SetToPage
,doc
="See `GetToPage` and `SetToPage`")
4301 _windows_
.PrintDialogData_swigregister(PrintDialogData
)
4303 class PrintDialog(_core
.Object
):
4304 """Proxy of C++ PrintDialog class"""
4305 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4306 __repr__
= _swig_repr
4307 def __init__(self
, *args
, **kwargs
):
4308 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4309 _windows_
.PrintDialog_swiginit(self
,_windows_
.new_PrintDialog(*args
, **kwargs
))
4310 __swig_destroy__
= _windows_
.delete_PrintDialog
4311 __del__
= lambda self
: None;
4312 def ShowModal(*args
, **kwargs
):
4313 """ShowModal(self) -> int"""
4314 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4316 def GetPrintDialogData(*args
, **kwargs
):
4317 """GetPrintDialogData(self) -> PrintDialogData"""
4318 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4320 def GetPrintData(*args
, **kwargs
):
4321 """GetPrintData(self) -> PrintData"""
4322 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4324 def GetPrintDC(*args
, **kwargs
):
4325 """GetPrintDC(self) -> DC"""
4326 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4328 def Destroy(self
): pass
4329 PrintDC
= property(GetPrintDC
,doc
="See `GetPrintDC`")
4330 PrintData
= property(GetPrintData
,doc
="See `GetPrintData`")
4331 PrintDialogData
= property(GetPrintDialogData
,doc
="See `GetPrintDialogData`")
4332 _windows_
.PrintDialog_swigregister(PrintDialog
)
4334 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4335 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4336 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4337 class Printer(_core
.Object
):
4338 """Proxy of C++ Printer class"""
4339 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4340 __repr__
= _swig_repr
4341 def __init__(self
, *args
, **kwargs
):
4342 """__init__(self, PrintDialogData data=None) -> Printer"""
4343 _windows_
.Printer_swiginit(self
,_windows_
.new_Printer(*args
, **kwargs
))
4344 __swig_destroy__
= _windows_
.delete_Printer
4345 __del__
= lambda self
: None;
4346 def CreateAbortWindow(*args
, **kwargs
):
4347 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4348 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4350 def ReportError(*args
, **kwargs
):
4351 """ReportError(self, Window parent, Printout printout, String message)"""
4352 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4354 def Setup(*args
, **kwargs
):
4355 """Setup(self, Window parent) -> bool"""
4356 return _windows_
.Printer_Setup(*args
, **kwargs
)
4358 def Print(*args
, **kwargs
):
4359 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4360 return _windows_
.Printer_Print(*args
, **kwargs
)
4362 def PrintDialog(*args
, **kwargs
):
4363 """PrintDialog(self, Window parent) -> DC"""
4364 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4366 def GetPrintDialogData(*args
, **kwargs
):
4367 """GetPrintDialogData(self) -> PrintDialogData"""
4368 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4370 def GetAbort(*args
, **kwargs
):
4371 """GetAbort(self) -> bool"""
4372 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4374 def GetLastError(*args
, **kwargs
):
4375 """GetLastError() -> int"""
4376 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4378 GetLastError
= staticmethod(GetLastError
)
4379 Abort
= property(GetAbort
,doc
="See `GetAbort`")
4380 PrintDialogData
= property(GetPrintDialogData
,doc
="See `GetPrintDialogData`")
4381 _windows_
.Printer_swigregister(Printer
)
4383 def Printer_GetLastError(*args
):
4384 """Printer_GetLastError() -> int"""
4385 return _windows_
.Printer_GetLastError(*args
)
4387 class Printout(_core
.Object
):
4388 """Proxy of C++ Printout class"""
4389 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4390 __repr__
= _swig_repr
4391 def __init__(self
, *args
, **kwargs
):
4392 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4393 _windows_
.Printout_swiginit(self
,_windows_
.new_Printout(*args
, **kwargs
))
4394 self
._setCallbackInfo
(self
, Printout
)
4396 __swig_destroy__
= _windows_
.delete_Printout
4397 __del__
= lambda self
: None;
4398 def _setCallbackInfo(*args
, **kwargs
):
4399 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4400 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4402 def GetTitle(*args
, **kwargs
):
4403 """GetTitle(self) -> String"""
4404 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4406 def GetDC(*args
, **kwargs
):
4407 """GetDC(self) -> DC"""
4408 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4410 def SetDC(*args
, **kwargs
):
4411 """SetDC(self, DC dc)"""
4412 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4414 def FitThisSizeToPaper(*args
, **kwargs
):
4415 """FitThisSizeToPaper(self, Size imageSize)"""
4416 return _windows_
.Printout_FitThisSizeToPaper(*args
, **kwargs
)
4418 def FitThisSizeToPage(*args
, **kwargs
):
4419 """FitThisSizeToPage(self, Size imageSize)"""
4420 return _windows_
.Printout_FitThisSizeToPage(*args
, **kwargs
)
4422 def FitThisSizeToPageMargins(*args
, **kwargs
):
4423 """FitThisSizeToPageMargins(self, Size imageSize, PageSetupDialogData pageSetupData)"""
4424 return _windows_
.Printout_FitThisSizeToPageMargins(*args
, **kwargs
)
4426 def MapScreenSizeToPaper(*args
, **kwargs
):
4427 """MapScreenSizeToPaper(self)"""
4428 return _windows_
.Printout_MapScreenSizeToPaper(*args
, **kwargs
)
4430 def MapScreenSizeToPage(*args
, **kwargs
):
4431 """MapScreenSizeToPage(self)"""
4432 return _windows_
.Printout_MapScreenSizeToPage(*args
, **kwargs
)
4434 def MapScreenSizeToPageMargins(*args
, **kwargs
):
4435 """MapScreenSizeToPageMargins(self, PageSetupDialogData pageSetupData)"""
4436 return _windows_
.Printout_MapScreenSizeToPageMargins(*args
, **kwargs
)
4438 def MapScreenSizeToDevice(*args
, **kwargs
):
4439 """MapScreenSizeToDevice(self)"""
4440 return _windows_
.Printout_MapScreenSizeToDevice(*args
, **kwargs
)
4442 def GetLogicalPaperRect(*args
, **kwargs
):
4443 """GetLogicalPaperRect(self) -> Rect"""
4444 return _windows_
.Printout_GetLogicalPaperRect(*args
, **kwargs
)
4446 def GetLogicalPageRect(*args
, **kwargs
):
4447 """GetLogicalPageRect(self) -> Rect"""
4448 return _windows_
.Printout_GetLogicalPageRect(*args
, **kwargs
)
4450 def GetLogicalPageMarginsRect(*args
, **kwargs
):
4451 """GetLogicalPageMarginsRect(self, PageSetupDialogData pageSetupData) -> Rect"""
4452 return _windows_
.Printout_GetLogicalPageMarginsRect(*args
, **kwargs
)
4454 def SetLogicalOrigin(*args
, **kwargs
):
4455 """SetLogicalOrigin(self, int x, int y)"""
4456 return _windows_
.Printout_SetLogicalOrigin(*args
, **kwargs
)
4458 def OffsetLogicalOrigin(*args
, **kwargs
):
4459 """OffsetLogicalOrigin(self, int xoff, int yoff)"""
4460 return _windows_
.Printout_OffsetLogicalOrigin(*args
, **kwargs
)
4462 def SetPageSizePixels(*args
, **kwargs
):
4463 """SetPageSizePixels(self, int w, int h)"""
4464 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4466 def GetPageSizePixels(*args
, **kwargs
):
4467 """GetPageSizePixels() -> (w, h)"""
4468 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4470 def SetPageSizeMM(*args
, **kwargs
):
4471 """SetPageSizeMM(self, int w, int h)"""
4472 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4474 def GetPageSizeMM(*args
, **kwargs
):
4475 """GetPageSizeMM() -> (w, h)"""
4476 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4478 def SetPPIScreen(*args
, **kwargs
):
4479 """SetPPIScreen(self, int x, int y)"""
4480 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4482 def GetPPIScreen(*args
, **kwargs
):
4483 """GetPPIScreen() -> (x,y)"""
4484 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4486 def SetPPIPrinter(*args
, **kwargs
):
4487 """SetPPIPrinter(self, int x, int y)"""
4488 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4490 def GetPPIPrinter(*args
, **kwargs
):
4491 """GetPPIPrinter() -> (x,y)"""
4492 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4494 def SetPaperRectPixels(*args
, **kwargs
):
4495 """SetPaperRectPixels(self, Rect paperRectPixels)"""
4496 return _windows_
.Printout_SetPaperRectPixels(*args
, **kwargs
)
4498 def GetPaperRectPixels(*args
, **kwargs
):
4499 """GetPaperRectPixels(self) -> Rect"""
4500 return _windows_
.Printout_GetPaperRectPixels(*args
, **kwargs
)
4502 def IsPreview(*args
, **kwargs
):
4503 """IsPreview(self) -> bool"""
4504 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4506 def SetIsPreview(*args
, **kwargs
):
4507 """SetIsPreview(self, bool p)"""
4508 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4510 def OnBeginDocument(*args
, **kwargs
):
4511 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4512 return _windows_
.Printout_OnBeginDocument(*args
, **kwargs
)
4514 def OnEndDocument(*args
, **kwargs
):
4515 """OnEndDocument(self)"""
4516 return _windows_
.Printout_OnEndDocument(*args
, **kwargs
)
4518 def OnBeginPrinting(*args
, **kwargs
):
4519 """OnBeginPrinting(self)"""
4520 return _windows_
.Printout_OnBeginPrinting(*args
, **kwargs
)
4522 def OnEndPrinting(*args
, **kwargs
):
4523 """OnEndPrinting(self)"""
4524 return _windows_
.Printout_OnEndPrinting(*args
, **kwargs
)
4526 def OnPreparePrinting(*args
, **kwargs
):
4527 """OnPreparePrinting(self)"""
4528 return _windows_
.Printout_OnPreparePrinting(*args
, **kwargs
)
4530 def HasPage(*args
, **kwargs
):
4531 """HasPage(self, int page) -> bool"""
4532 return _windows_
.Printout_HasPage(*args
, **kwargs
)
4534 def GetPageInfo(*args
, **kwargs
):
4535 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4536 return _windows_
.Printout_GetPageInfo(*args
, **kwargs
)
4538 def base_OnBeginDocument(*args
, **kw
):
4539 return Printout
.OnBeginDocument(*args
, **kw
)
4540 base_OnBeginDocument
= wx
._deprecated
(base_OnBeginDocument
,
4541 "Please use Printout.OnBeginDocument instead.")
4543 def base_OnEndDocument(*args
, **kw
):
4544 return Printout
.OnEndDocument(*args
, **kw
)
4545 base_OnEndDocument
= wx
._deprecated
(base_OnEndDocument
,
4546 "Please use Printout.OnEndDocument instead.")
4548 def base_OnBeginPrinting(*args
, **kw
):
4549 return Printout
.OnBeginPrinting(*args
, **kw
)
4550 base_OnBeginPrinting
= wx
._deprecated
(base_OnBeginPrinting
,
4551 "Please use Printout.OnBeginPrinting instead.")
4553 def base_OnEndPrinting(*args
, **kw
):
4554 return Printout
.OnEndPrinting(*args
, **kw
)
4555 base_OnEndPrinting
= wx
._deprecated
(base_OnEndPrinting
,
4556 "Please use Printout.OnEndPrinting instead.")
4558 def base_OnPreparePrinting(*args
, **kw
):
4559 return Printout
.OnPreparePrinting(*args
, **kw
)
4560 base_OnPreparePrinting
= wx
._deprecated
(base_OnPreparePrinting
,
4561 "Please use Printout.OnPreparePrinting instead.")
4563 def base_GetPageInfo(*args
, **kw
):
4564 return Printout
.GetPageInfo(*args
, **kw
)
4565 base_GetPageInfo
= wx
._deprecated
(base_GetPageInfo
,
4566 "Please use Printout.GetPageInfo instead.")
4568 DC
= property(GetDC
,SetDC
,doc
="See `GetDC` and `SetDC`")
4569 PPIPrinter
= property(GetPPIPrinter
,SetPPIPrinter
,doc
="See `GetPPIPrinter` and `SetPPIPrinter`")
4570 PPIScreen
= property(GetPPIScreen
,SetPPIScreen
,doc
="See `GetPPIScreen` and `SetPPIScreen`")
4571 PageSizeMM
= property(GetPageSizeMM
,SetPageSizeMM
,doc
="See `GetPageSizeMM` and `SetPageSizeMM`")
4572 PageSizePixels
= property(GetPageSizePixels
,SetPageSizePixels
,doc
="See `GetPageSizePixels` and `SetPageSizePixels`")
4573 Title
= property(GetTitle
,doc
="See `GetTitle`")
4574 _windows_
.Printout_swigregister(Printout
)
4576 class PreviewCanvas(ScrolledWindow
):
4577 """Proxy of C++ PreviewCanvas class"""
4578 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4579 __repr__
= _swig_repr
4580 def __init__(self
, *args
, **kwargs
):
4582 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4583 Size size=DefaultSize, long style=0,
4584 String name=PreviewCanvasNameStr) -> PreviewCanvas
4586 _windows_
.PreviewCanvas_swiginit(self
,_windows_
.new_PreviewCanvas(*args
, **kwargs
))
4587 self
._setOORInfo
(self
)
4589 _windows_
.PreviewCanvas_swigregister(PreviewCanvas
)
4591 class PreviewFrame(Frame
):
4592 """Proxy of C++ PreviewFrame class"""
4593 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4594 __repr__
= _swig_repr
4595 def __init__(self
, *args
, **kwargs
):
4597 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4598 Size size=DefaultSize,
4599 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4601 _windows_
.PreviewFrame_swiginit(self
,_windows_
.new_PreviewFrame(*args
, **kwargs
))
4602 self
._setOORInfo
(self
)
4604 def Initialize(*args
, **kwargs
):
4605 """Initialize(self)"""
4606 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4608 def CreateControlBar(*args
, **kwargs
):
4609 """CreateControlBar(self)"""
4610 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4612 def CreateCanvas(*args
, **kwargs
):
4613 """CreateCanvas(self)"""
4614 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4616 def GetControlBar(*args
, **kwargs
):
4617 """GetControlBar(self) -> PreviewControlBar"""
4618 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4620 ControlBar
= property(GetControlBar
,doc
="See `GetControlBar`")
4621 _windows_
.PreviewFrame_swigregister(PreviewFrame
)
4623 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4624 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4625 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4626 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4627 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4628 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4629 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4630 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4631 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4632 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4633 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4634 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4635 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4636 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4637 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4638 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4639 class PreviewControlBar(Panel
):
4640 """Proxy of C++ PreviewControlBar class"""
4641 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4642 __repr__
= _swig_repr
4643 def __init__(self
, *args
, **kwargs
):
4645 __init__(self, PrintPreview preview, long buttons, Window parent,
4646 Point pos=DefaultPosition, Size size=DefaultSize,
4647 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4649 _windows_
.PreviewControlBar_swiginit(self
,_windows_
.new_PreviewControlBar(*args
, **kwargs
))
4650 self
._setOORInfo
(self
)
4652 def GetZoomControl(*args
, **kwargs
):
4653 """GetZoomControl(self) -> int"""
4654 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4656 def SetZoomControl(*args
, **kwargs
):
4657 """SetZoomControl(self, int zoom)"""
4658 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4660 def GetPrintPreview(*args
, **kwargs
):
4661 """GetPrintPreview(self) -> PrintPreview"""
4662 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4664 def OnNext(*args
, **kwargs
):
4666 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4668 def OnPrevious(*args
, **kwargs
):
4669 """OnPrevious(self)"""
4670 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4672 def OnFirst(*args
, **kwargs
):
4674 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4676 def OnLast(*args
, **kwargs
):
4678 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4680 def OnGoto(*args
, **kwargs
):
4682 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4684 PrintPreview
= property(GetPrintPreview
,doc
="See `GetPrintPreview`")
4685 ZoomControl
= property(GetZoomControl
,SetZoomControl
,doc
="See `GetZoomControl` and `SetZoomControl`")
4686 _windows_
.PreviewControlBar_swigregister(PreviewControlBar
)
4688 class PrintPreview(_core
.Object
):
4689 """Proxy of C++ PrintPreview class"""
4690 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4691 __repr__
= _swig_repr
4692 def __init__(self
, *args
):
4694 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4695 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4697 _windows_
.PrintPreview_swiginit(self
,_windows_
.new_PrintPreview(*args
))
4698 __swig_destroy__
= _windows_
.delete_PrintPreview
4699 __del__
= lambda self
: None;
4700 def SetCurrentPage(*args
, **kwargs
):
4701 """SetCurrentPage(self, int pageNum) -> bool"""
4702 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4704 def GetCurrentPage(*args
, **kwargs
):
4705 """GetCurrentPage(self) -> int"""
4706 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4708 def SetPrintout(*args
, **kwargs
):
4709 """SetPrintout(self, Printout printout)"""
4710 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4712 def GetPrintout(*args
, **kwargs
):
4713 """GetPrintout(self) -> Printout"""
4714 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4716 def GetPrintoutForPrinting(*args
, **kwargs
):
4717 """GetPrintoutForPrinting(self) -> Printout"""
4718 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4720 def SetFrame(*args
, **kwargs
):
4721 """SetFrame(self, Frame frame)"""
4722 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4724 def SetCanvas(*args
, **kwargs
):
4725 """SetCanvas(self, PreviewCanvas canvas)"""
4726 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4728 def GetFrame(*args
, **kwargs
):
4729 """GetFrame(self) -> Frame"""
4730 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4732 def GetCanvas(*args
, **kwargs
):
4733 """GetCanvas(self) -> PreviewCanvas"""
4734 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4736 def PaintPage(*args
, **kwargs
):
4737 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4738 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4740 def DrawBlankPage(*args
, **kwargs
):
4741 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4742 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4744 def RenderPage(*args
, **kwargs
):
4745 """RenderPage(self, int pageNum) -> bool"""
4746 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4748 def AdjustScrollbars(*args
, **kwargs
):
4749 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4750 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4752 def GetPrintDialogData(*args
, **kwargs
):
4753 """GetPrintDialogData(self) -> PrintDialogData"""
4754 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4756 def SetZoom(*args
, **kwargs
):
4757 """SetZoom(self, int percent)"""
4758 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4760 def GetZoom(*args
, **kwargs
):
4761 """GetZoom(self) -> int"""
4762 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4764 def GetMaxPage(*args
, **kwargs
):
4765 """GetMaxPage(self) -> int"""
4766 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4768 def GetMinPage(*args
, **kwargs
):
4769 """GetMinPage(self) -> int"""
4770 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4772 def IsOk(*args
, **kwargs
):
4773 """IsOk(self) -> bool"""
4774 return _windows_
.PrintPreview_IsOk(*args
, **kwargs
)
4777 def SetOk(*args
, **kwargs
):
4778 """SetOk(self, bool ok)"""
4779 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4781 def Print(*args
, **kwargs
):
4782 """Print(self, bool interactive) -> bool"""
4783 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4785 def DetermineScaling(*args
, **kwargs
):
4786 """DetermineScaling(self)"""
4787 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4789 def __nonzero__(self
): return self
.IsOk()
4790 Canvas
= property(GetCanvas
,SetCanvas
,doc
="See `GetCanvas` and `SetCanvas`")
4791 CurrentPage
= property(GetCurrentPage
,SetCurrentPage
,doc
="See `GetCurrentPage` and `SetCurrentPage`")
4792 Frame
= property(GetFrame
,SetFrame
,doc
="See `GetFrame` and `SetFrame`")
4793 MaxPage
= property(GetMaxPage
,doc
="See `GetMaxPage`")
4794 MinPage
= property(GetMinPage
,doc
="See `GetMinPage`")
4795 PrintDialogData
= property(GetPrintDialogData
,doc
="See `GetPrintDialogData`")
4796 Printout
= property(GetPrintout
,SetPrintout
,doc
="See `GetPrintout` and `SetPrintout`")
4797 PrintoutForPrinting
= property(GetPrintoutForPrinting
,doc
="See `GetPrintoutForPrinting`")
4798 Zoom
= property(GetZoom
,SetZoom
,doc
="See `GetZoom` and `SetZoom`")
4799 _windows_
.PrintPreview_swigregister(PrintPreview
)
4801 class PyPrintPreview(PrintPreview
):
4802 """Proxy of C++ PyPrintPreview class"""
4803 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4804 __repr__
= _swig_repr
4805 def __init__(self
, *args
):
4807 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4808 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4810 _windows_
.PyPrintPreview_swiginit(self
,_windows_
.new_PyPrintPreview(*args
))
4811 self
._setCallbackInfo
(self
, PyPrintPreview
)
4813 def _setCallbackInfo(*args
, **kwargs
):
4814 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4815 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4817 def base_SetCurrentPage(*args
, **kw
):
4818 return PyPrintPreview
.SetCurrentPage(*args
, **kw
)
4819 base_SetCurrentPage
= wx
._deprecated
(base_SetCurrentPage
,
4820 "Please use PyPrintPreview.SetCurrentPage instead.")
4822 def base_PaintPage(*args
, **kw
):
4823 return PyPrintPreview
.PaintPage(*args
, **kw
)
4824 base_PaintPage
= wx
._deprecated
(base_PaintPage
,
4825 "Please use PyPrintPreview.PaintPage instead.")
4827 def base_DrawBlankPage(*args
, **kw
):
4828 return PyPrintPreview
.DrawBlankPage(*args
, **kw
)
4829 base_DrawBlankPage
= wx
._deprecated
(base_DrawBlankPage
,
4830 "Please use PyPrintPreview.DrawBlankPage instead.")
4832 def base_RenderPage(*args
, **kw
):
4833 return PyPrintPreview
.RenderPage(*args
, **kw
)
4834 base_RenderPage
= wx
._deprecated
(base_RenderPage
,
4835 "Please use PyPrintPreview.RenderPage instead.")
4837 def base_SetZoom(*args
, **kw
):
4838 return PyPrintPreview
.SetZoom(*args
, **kw
)
4839 base_SetZoom
= wx
._deprecated
(base_SetZoom
,
4840 "Please use PyPrintPreview.SetZoom instead.")
4842 def base_Print(*args
, **kw
):
4843 return PyPrintPreview
.Print(*args
, **kw
)
4844 base_Print
= wx
._deprecated
(base_Print
,
4845 "Please use PyPrintPreview.Print instead.")
4847 def base_DetermineScaling(*args
, **kw
):
4848 return PyPrintPreview
.DetermineScaling(*args
, **kw
)
4849 base_DetermineScaling
= wx
._deprecated
(base_DetermineScaling
,
4850 "Please use PyPrintPreview.DetermineScaling instead.")
4852 _windows_
.PyPrintPreview_swigregister(PyPrintPreview
)
4854 class PyPreviewFrame(PreviewFrame
):
4855 """Proxy of C++ PyPreviewFrame class"""
4856 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4857 __repr__
= _swig_repr
4858 def __init__(self
, *args
, **kwargs
):
4860 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4861 Size size=DefaultSize,
4862 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4864 _windows_
.PyPreviewFrame_swiginit(self
,_windows_
.new_PyPreviewFrame(*args
, **kwargs
))
4865 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4867 def _setCallbackInfo(*args
, **kwargs
):
4868 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4869 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4871 def SetPreviewCanvas(*args
, **kwargs
):
4872 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4873 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4875 def SetControlBar(*args
, **kwargs
):
4876 """SetControlBar(self, PreviewControlBar bar)"""
4877 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4879 def Initialize(*args
, **kwargs
):
4880 """Initialize(self)"""
4881 return _windows_
.PyPreviewFrame_Initialize(*args
, **kwargs
)
4883 def CreateCanvas(*args
, **kwargs
):
4884 """CreateCanvas(self)"""
4885 return _windows_
.PyPreviewFrame_CreateCanvas(*args
, **kwargs
)
4887 def CreateControlBar(*args
, **kwargs
):
4888 """CreateControlBar(self)"""
4889 return _windows_
.PyPreviewFrame_CreateControlBar(*args
, **kwargs
)
4891 def base_Initialize(*args
, **kw
):
4892 return PyPreviewFrame
.Initialize(*args
, **kw
)
4893 base_Initialize
= wx
._deprecated
(base_Initialize
,
4894 "Please use PyPreviewFrame.Initialize instead.")
4896 def base_CreateCanvas(*args
, **kw
):
4897 return PyPreviewFrame
.CreateCanvas(*args
, **kw
)
4898 base_CreateCanvas
= wx
._deprecated
(base_CreateCanvas
,
4899 "Please use PyPreviewFrame.CreateCanvas instead.")
4901 def base_CreateControlBar(*args
, **kw
):
4902 return PyPreviewFrame
.CreateControlBar(*args
, **kw
)
4903 base_CreateControlBar
= wx
._deprecated
(base_CreateControlBar
,
4904 "Please use PyPreviewFrame.CreateControlBar instead.")
4906 _windows_
.PyPreviewFrame_swigregister(PyPreviewFrame
)
4908 class PyPreviewControlBar(PreviewControlBar
):
4909 """Proxy of C++ PyPreviewControlBar class"""
4910 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4911 __repr__
= _swig_repr
4912 def __init__(self
, *args
, **kwargs
):
4914 __init__(self, PrintPreview preview, long buttons, Window parent,
4915 Point pos=DefaultPosition, Size size=DefaultSize,
4916 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4918 _windows_
.PyPreviewControlBar_swiginit(self
,_windows_
.new_PyPreviewControlBar(*args
, **kwargs
))
4919 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4921 def _setCallbackInfo(*args
, **kwargs
):
4922 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4923 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4925 def SetPrintPreview(*args
, **kwargs
):
4926 """SetPrintPreview(self, PrintPreview preview)"""
4927 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4929 def CreateButtons(*args
, **kwargs
):
4930 """CreateButtons(self)"""
4931 return _windows_
.PyPreviewControlBar_CreateButtons(*args
, **kwargs
)
4933 def SetZoomControl(*args
, **kwargs
):
4934 """SetZoomControl(self, int zoom)"""
4935 return _windows_
.PyPreviewControlBar_SetZoomControl(*args
, **kwargs
)
4937 def base_CreateButtons(*args
, **kw
):
4938 return PreviewControlBar
.CreateButtons(*args
, **kw
)
4939 base_CreateButtons
= wx
._deprecated
(base_CreateButtons
,
4940 "Please use PreviewControlBar.CreateButtons instead.")
4942 def base_SetZoomControl(*args
, **kw
):
4943 return PreviewControlBar
.SetZoomControl(*args
, **kw
)
4944 base_SetZoomControl
= wx
._deprecated
(base_SetZoomControl
,
4945 "Please use PreviewControlBar.SetZoomControl instead.")
4947 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBar
)