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 _windows_
.ScrolledWindow_swigregister(ScrolledWindow
)
275 def PreScrolledWindow(*args
, **kwargs
):
276 """PreScrolledWindow() -> ScrolledWindow"""
277 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
280 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
282 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
284 Get the default attributes for this class. This is useful if you want
285 to use the same font or colour in your own control as in a standard
286 control -- which is a much better idea than hard coding specific
287 colours or fonts which might look completely out of place on the
288 user's system, especially if it uses themes.
290 The variant parameter is only relevant under Mac currently and is
291 ignore under other platforms. Under Mac, it will change the size of
292 the returned font. See `wx.Window.SetWindowVariant` for more about
295 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
297 #---------------------------------------------------------------------------
299 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
300 ICONIZE
= _windows_
.ICONIZE
301 MINIMIZE
= _windows_
.MINIMIZE
302 MAXIMIZE
= _windows_
.MAXIMIZE
303 CLOSE_BOX
= _windows_
.CLOSE_BOX
304 THICK_FRAME
= _windows_
.THICK_FRAME
305 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
306 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
307 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
308 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
309 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
310 RESIZE_BOX
= _windows_
.RESIZE_BOX
311 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
312 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
313 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
314 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
315 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
316 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
317 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
318 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
319 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
320 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
321 FRAME_EX_METAL
= _windows_
.FRAME_EX_METAL
322 DIALOG_EX_METAL
= _windows_
.DIALOG_EX_METAL
323 WS_EX_CONTEXTHELP
= _windows_
.WS_EX_CONTEXTHELP
324 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
325 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
326 USER_COLOURS
= _windows_
.USER_COLOURS
327 NO_3D
= _windows_
.NO_3D
328 FRAME_EX_CONTEXTHELP
= _windows_
.FRAME_EX_CONTEXTHELP
329 DIALOG_EX_CONTEXTHELP
= _windows_
.DIALOG_EX_CONTEXTHELP
330 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
331 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
332 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
333 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
334 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
335 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
336 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
337 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
338 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
339 class TopLevelWindow(_core
.Window
):
340 """Proxy of C++ TopLevelWindow class"""
341 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
342 def __init__(self
): raise AttributeError, "No constructor defined"
343 __repr__
= _swig_repr
344 def Maximize(*args
, **kwargs
):
345 """Maximize(self, bool maximize=True)"""
346 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
348 def Restore(*args
, **kwargs
):
350 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
352 def Iconize(*args
, **kwargs
):
353 """Iconize(self, bool iconize=True)"""
354 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
356 def IsMaximized(*args
, **kwargs
):
357 """IsMaximized(self) -> bool"""
358 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
360 def IsAlwaysMaximized(*args
, **kwargs
):
361 """IsAlwaysMaximized(self) -> bool"""
362 return _windows_
.TopLevelWindow_IsAlwaysMaximized(*args
, **kwargs
)
364 def IsIconized(*args
, **kwargs
):
365 """IsIconized(self) -> bool"""
366 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
368 def GetIcon(*args
, **kwargs
):
369 """GetIcon(self) -> Icon"""
370 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
372 def SetIcon(*args
, **kwargs
):
373 """SetIcon(self, Icon icon)"""
374 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
376 def SetIcons(*args
, **kwargs
):
377 """SetIcons(self, wxIconBundle icons)"""
378 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
380 def ShowFullScreen(*args
, **kwargs
):
381 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
382 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
384 def IsFullScreen(*args
, **kwargs
):
385 """IsFullScreen(self) -> bool"""
386 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
388 def SetTitle(*args
, **kwargs
):
389 """SetTitle(self, String title)"""
390 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
392 def GetTitle(*args
, **kwargs
):
393 """GetTitle(self) -> String"""
394 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
396 def SetShape(*args
, **kwargs
):
397 """SetShape(self, Region region) -> bool"""
398 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
400 def RequestUserAttention(*args
, **kwargs
):
401 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
402 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
404 def IsActive(*args
, **kwargs
):
405 """IsActive(self) -> bool"""
406 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
408 def MacSetMetalAppearance(*args
, **kwargs
):
409 """MacSetMetalAppearance(self, bool on)"""
410 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
412 def MacGetMetalAppearance(*args
, **kwargs
):
413 """MacGetMetalAppearance(self) -> bool"""
414 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
416 def CenterOnScreen(*args
, **kwargs
):
418 CenterOnScreen(self, int dir=BOTH)
420 Center the window on screen
422 return _windows_
.TopLevelWindow_CenterOnScreen(*args
, **kwargs
)
424 CentreOnScreen
= CenterOnScreen
425 def EnableCloseButton(*args
, **kwargs
):
426 """EnableCloseButton(self, bool enable=True) -> bool"""
427 return _windows_
.TopLevelWindow_EnableCloseButton(*args
, **kwargs
)
429 def GetDefaultItem(*args
, **kwargs
):
431 GetDefaultItem(self) -> Window
433 Get the default child of this parent, i.e. the one which is activated
434 by pressing <Enter> such as the OK button on a wx.Dialog.
436 return _windows_
.TopLevelWindow_GetDefaultItem(*args
, **kwargs
)
438 def SetDefaultItem(*args
, **kwargs
):
440 SetDefaultItem(self, Window child) -> Window
442 Set this child as default, return the old default.
444 return _windows_
.TopLevelWindow_SetDefaultItem(*args
, **kwargs
)
446 def SetTmpDefaultItem(*args
, **kwargs
):
448 SetTmpDefaultItem(self, Window win)
450 Set this child as temporary default
452 return _windows_
.TopLevelWindow_SetTmpDefaultItem(*args
, **kwargs
)
454 def GetTmpDefaultItem(*args
, **kwargs
):
456 GetTmpDefaultItem(self) -> Window
458 Return the temporary default item, which can be None.
460 return _windows_
.TopLevelWindow_GetTmpDefaultItem(*args
, **kwargs
)
462 _windows_
.TopLevelWindow_swigregister(TopLevelWindow
)
463 cvar
= _windows_
.cvar
464 FrameNameStr
= cvar
.FrameNameStr
465 DialogNameStr
= cvar
.DialogNameStr
466 StatusLineNameStr
= cvar
.StatusLineNameStr
467 ToolBarNameStr
= cvar
.ToolBarNameStr
469 #---------------------------------------------------------------------------
471 class Frame(TopLevelWindow
):
472 """Proxy of C++ Frame class"""
473 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
474 __repr__
= _swig_repr
475 def __init__(self
, *args
, **kwargs
):
477 __init__(self, Window parent, int id=-1, String title=EmptyString,
478 Point pos=DefaultPosition, Size size=DefaultSize,
479 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
481 _windows_
.Frame_swiginit(self
,_windows_
.new_Frame(*args
, **kwargs
))
482 self
._setOORInfo
(self
)
484 def Create(*args
, **kwargs
):
486 Create(self, Window parent, int id=-1, String title=EmptyString,
487 Point pos=DefaultPosition, Size size=DefaultSize,
488 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
490 return _windows_
.Frame_Create(*args
, **kwargs
)
492 def SendSizeEvent(*args
, **kwargs
):
493 """SendSizeEvent(self)"""
494 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
496 def SetMenuBar(*args
, **kwargs
):
497 """SetMenuBar(self, MenuBar menubar)"""
498 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
500 def GetMenuBar(*args
, **kwargs
):
501 """GetMenuBar(self) -> MenuBar"""
502 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
504 def ProcessCommand(*args
, **kwargs
):
505 """ProcessCommand(self, int winid) -> bool"""
506 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
508 Command
= ProcessCommand
509 def CreateStatusBar(*args
, **kwargs
):
511 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
512 String name=StatusLineNameStr) -> StatusBar
514 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
516 def GetStatusBar(*args
, **kwargs
):
517 """GetStatusBar(self) -> StatusBar"""
518 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
520 def SetStatusBar(*args
, **kwargs
):
521 """SetStatusBar(self, StatusBar statBar)"""
522 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
524 def SetStatusText(*args
, **kwargs
):
525 """SetStatusText(self, String text, int number=0)"""
526 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
528 def SetStatusWidths(*args
, **kwargs
):
529 """SetStatusWidths(self, int widths)"""
530 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
532 def PushStatusText(*args
, **kwargs
):
533 """PushStatusText(self, String text, int number=0)"""
534 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
536 def PopStatusText(*args
, **kwargs
):
537 """PopStatusText(self, int number=0)"""
538 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
540 def SetStatusBarPane(*args
, **kwargs
):
541 """SetStatusBarPane(self, int n)"""
542 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
544 def GetStatusBarPane(*args
, **kwargs
):
545 """GetStatusBarPane(self) -> int"""
546 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
548 def CreateToolBar(*args
, **kwargs
):
549 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
550 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
552 def GetToolBar(*args
, **kwargs
):
553 """GetToolBar(self) -> wxToolBar"""
554 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
556 def SetToolBar(*args
, **kwargs
):
557 """SetToolBar(self, wxToolBar toolbar)"""
558 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
560 def DoGiveHelp(*args
, **kwargs
):
561 """DoGiveHelp(self, String text, bool show)"""
562 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
564 def DoMenuUpdates(*args
, **kwargs
):
565 """DoMenuUpdates(self, Menu menu=None)"""
566 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
568 def GetClassDefaultAttributes(*args
, **kwargs
):
570 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
572 Get the default attributes for this class. This is useful if you want
573 to use the same font or colour in your own control as in a standard
574 control -- which is a much better idea than hard coding specific
575 colours or fonts which might look completely out of place on the
576 user's system, especially if it uses themes.
578 The variant parameter is only relevant under Mac currently and is
579 ignore under other platforms. Under Mac, it will change the size of
580 the returned font. See `wx.Window.SetWindowVariant` for more about
583 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
585 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
586 _windows_
.Frame_swigregister(Frame
)
588 def PreFrame(*args
, **kwargs
):
589 """PreFrame() -> Frame"""
590 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
593 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
595 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
597 Get the default attributes for this class. This is useful if you want
598 to use the same font or colour in your own control as in a standard
599 control -- which is a much better idea than hard coding specific
600 colours or fonts which might look completely out of place on the
601 user's system, especially if it uses themes.
603 The variant parameter is only relevant under Mac currently and is
604 ignore under other platforms. Under Mac, it will change the size of
605 the returned font. See `wx.Window.SetWindowVariant` for more about
608 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
610 #---------------------------------------------------------------------------
612 class Dialog(TopLevelWindow
):
613 """Proxy of C++ Dialog class"""
614 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
615 __repr__
= _swig_repr
616 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
617 def __init__(self
, *args
, **kwargs
):
619 __init__(self, Window parent, int id=-1, String title=EmptyString,
620 Point pos=DefaultPosition, Size size=DefaultSize,
621 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
623 _windows_
.Dialog_swiginit(self
,_windows_
.new_Dialog(*args
, **kwargs
))
624 self
._setOORInfo
(self
)
626 def Create(*args
, **kwargs
):
628 Create(self, Window parent, int id=-1, String title=EmptyString,
629 Point pos=DefaultPosition, Size size=DefaultSize,
630 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
632 return _windows_
.Dialog_Create(*args
, **kwargs
)
634 def SetReturnCode(*args
, **kwargs
):
635 """SetReturnCode(self, int returnCode)"""
636 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
638 def GetReturnCode(*args
, **kwargs
):
639 """GetReturnCode(self) -> int"""
640 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
642 def SetAffirmativeId(*args
, **kwargs
):
643 """SetAffirmativeId(self, int affirmativeId)"""
644 return _windows_
.Dialog_SetAffirmativeId(*args
, **kwargs
)
646 def GetAffirmativeId(*args
, **kwargs
):
647 """GetAffirmativeId(self) -> int"""
648 return _windows_
.Dialog_GetAffirmativeId(*args
, **kwargs
)
650 def SetEscapeId(*args
, **kwargs
):
651 """SetEscapeId(self, int escapeId)"""
652 return _windows_
.Dialog_SetEscapeId(*args
, **kwargs
)
654 def GetEscapeId(*args
, **kwargs
):
655 """GetEscapeId(self) -> int"""
656 return _windows_
.Dialog_GetEscapeId(*args
, **kwargs
)
658 def CreateTextSizer(*args
, **kwargs
):
659 """CreateTextSizer(self, String message) -> Sizer"""
660 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
662 def CreateButtonSizer(*args
, **kwargs
):
663 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
664 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
666 def CreateStdDialogButtonSizer(*args
, **kwargs
):
667 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
668 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
670 def IsModal(*args
, **kwargs
):
671 """IsModal(self) -> bool"""
672 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
674 def ShowModal(*args
, **kwargs
):
675 """ShowModal(self) -> int"""
676 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
678 def EndModal(*args
, **kwargs
):
679 """EndModal(self, int retCode)"""
680 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
682 def GetClassDefaultAttributes(*args
, **kwargs
):
684 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
686 Get the default attributes for this class. This is useful if you want
687 to use the same font or colour in your own control as in a standard
688 control -- which is a much better idea than hard coding specific
689 colours or fonts which might look completely out of place on the
690 user's system, especially if it uses themes.
692 The variant parameter is only relevant under Mac currently and is
693 ignore under other platforms. Under Mac, it will change the size of
694 the returned font. See `wx.Window.SetWindowVariant` for more about
697 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
699 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
700 _windows_
.Dialog_swigregister(Dialog
)
702 def PreDialog(*args
, **kwargs
):
703 """PreDialog() -> Dialog"""
704 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
707 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
709 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
711 Get the default attributes for this class. This is useful if you want
712 to use the same font or colour in your own control as in a standard
713 control -- which is a much better idea than hard coding specific
714 colours or fonts which might look completely out of place on the
715 user's system, especially if it uses themes.
717 The variant parameter is only relevant under Mac currently and is
718 ignore under other platforms. Under Mac, it will change the size of
719 the returned font. See `wx.Window.SetWindowVariant` for more about
722 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
724 #---------------------------------------------------------------------------
726 class MiniFrame(Frame
):
727 """Proxy of C++ MiniFrame class"""
728 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
729 __repr__
= _swig_repr
730 def __init__(self
, *args
, **kwargs
):
732 __init__(self, Window parent, int id=-1, String title=EmptyString,
733 Point pos=DefaultPosition, Size size=DefaultSize,
734 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
736 _windows_
.MiniFrame_swiginit(self
,_windows_
.new_MiniFrame(*args
, **kwargs
))
737 self
._setOORInfo
(self
)
739 def Create(*args
, **kwargs
):
741 Create(self, Window parent, int id=-1, String title=EmptyString,
742 Point pos=DefaultPosition, Size size=DefaultSize,
743 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
745 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
747 _windows_
.MiniFrame_swigregister(MiniFrame
)
749 def PreMiniFrame(*args
, **kwargs
):
750 """PreMiniFrame() -> MiniFrame"""
751 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
754 #---------------------------------------------------------------------------
756 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
757 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
758 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
759 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
760 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
761 class SplashScreenWindow(_core
.Window
):
762 """Proxy of C++ SplashScreenWindow class"""
763 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
764 __repr__
= _swig_repr
765 def __init__(self
, *args
, **kwargs
):
767 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
768 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
770 _windows_
.SplashScreenWindow_swiginit(self
,_windows_
.new_SplashScreenWindow(*args
, **kwargs
))
771 self
._setOORInfo
(self
)
773 def SetBitmap(*args
, **kwargs
):
774 """SetBitmap(self, Bitmap bitmap)"""
775 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
777 def GetBitmap(*args
, **kwargs
):
778 """GetBitmap(self) -> Bitmap"""
779 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
781 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindow
)
783 class SplashScreen(Frame
):
784 """Proxy of C++ SplashScreen 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, long splashStyle, int milliseconds,
790 Window parent, int id=-1, Point pos=DefaultPosition,
791 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
793 _windows_
.SplashScreen_swiginit(self
,_windows_
.new_SplashScreen(*args
, **kwargs
))
794 self
._setOORInfo
(self
)
796 def GetSplashStyle(*args
, **kwargs
):
797 """GetSplashStyle(self) -> long"""
798 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
800 def GetSplashWindow(*args
, **kwargs
):
801 """GetSplashWindow(self) -> SplashScreenWindow"""
802 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
804 def GetTimeout(*args
, **kwargs
):
805 """GetTimeout(self) -> int"""
806 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
808 _windows_
.SplashScreen_swigregister(SplashScreen
)
810 #---------------------------------------------------------------------------
812 SB_NORMAL
= _windows_
.SB_NORMAL
813 SB_FLAT
= _windows_
.SB_FLAT
814 SB_RAISED
= _windows_
.SB_RAISED
815 class StatusBar(_core
.Window
):
816 """Proxy of C++ StatusBar class"""
817 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
818 __repr__
= _swig_repr
819 def __init__(self
, *args
, **kwargs
):
821 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
822 String name=StatusLineNameStr) -> StatusBar
824 _windows_
.StatusBar_swiginit(self
,_windows_
.new_StatusBar(*args
, **kwargs
))
825 self
._setOORInfo
(self
)
827 def Create(*args
, **kwargs
):
828 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
829 return _windows_
.StatusBar_Create(*args
, **kwargs
)
831 def SetFieldsCount(*args
, **kwargs
):
832 """SetFieldsCount(self, int number=1)"""
833 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
835 def GetFieldsCount(*args
, **kwargs
):
836 """GetFieldsCount(self) -> int"""
837 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
839 def SetStatusText(*args
, **kwargs
):
840 """SetStatusText(self, String text, int number=0)"""
841 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
843 def GetStatusText(*args
, **kwargs
):
844 """GetStatusText(self, int number=0) -> String"""
845 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
847 def PushStatusText(*args
, **kwargs
):
848 """PushStatusText(self, String text, int number=0)"""
849 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
851 def PopStatusText(*args
, **kwargs
):
852 """PopStatusText(self, int number=0)"""
853 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
855 def SetStatusWidths(*args
, **kwargs
):
856 """SetStatusWidths(self, int widths)"""
857 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
859 def SetStatusStyles(*args
, **kwargs
):
860 """SetStatusStyles(self, int styles)"""
861 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
863 def GetFieldRect(*args
, **kwargs
):
864 """GetFieldRect(self, int i) -> Rect"""
865 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
867 def SetMinHeight(*args
, **kwargs
):
868 """SetMinHeight(self, int height)"""
869 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
871 def GetBorderX(*args
, **kwargs
):
872 """GetBorderX(self) -> int"""
873 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
875 def GetBorderY(*args
, **kwargs
):
876 """GetBorderY(self) -> int"""
877 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
879 def GetClassDefaultAttributes(*args
, **kwargs
):
881 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
883 Get the default attributes for this class. This is useful if you want
884 to use the same font or colour in your own control as in a standard
885 control -- which is a much better idea than hard coding specific
886 colours or fonts which might look completely out of place on the
887 user's system, especially if it uses themes.
889 The variant parameter is only relevant under Mac currently and is
890 ignore under other platforms. Under Mac, it will change the size of
891 the returned font. See `wx.Window.SetWindowVariant` for more about
894 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
896 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
897 _windows_
.StatusBar_swigregister(StatusBar
)
899 def PreStatusBar(*args
, **kwargs
):
900 """PreStatusBar() -> StatusBar"""
901 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
904 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
906 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
908 Get the default attributes for this class. This is useful if you want
909 to use the same font or colour in your own control as in a standard
910 control -- which is a much better idea than hard coding specific
911 colours or fonts which might look completely out of place on the
912 user's system, especially if it uses themes.
914 The variant parameter is only relevant under Mac currently and is
915 ignore under other platforms. Under Mac, it will change the size of
916 the returned font. See `wx.Window.SetWindowVariant` for more about
919 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
921 #---------------------------------------------------------------------------
923 SP_NOBORDER
= _windows_
.SP_NOBORDER
924 SP_NOSASH
= _windows_
.SP_NOSASH
925 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
926 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
927 SP_3DSASH
= _windows_
.SP_3DSASH
928 SP_3DBORDER
= _windows_
.SP_3DBORDER
929 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
930 SP_BORDER
= _windows_
.SP_BORDER
931 SP_3D
= _windows_
.SP_3D
932 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
933 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
934 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
935 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
936 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
937 class SplitterWindow(_core
.Window
):
939 wx.SplitterWindow manages up to two subwindows or panes, with an
940 optional vertical or horizontal split which can be used with the mouse
943 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
944 __repr__
= _swig_repr
945 def __init__(self
, *args
, **kwargs
):
947 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
948 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
950 Constructor. Creates and shows a SplitterWindow.
952 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
953 _windows_
.SplitterWindow_swiginit(self
,_windows_
.new_SplitterWindow(*args
, **kwargs
))
954 self
._setOORInfo
(self
)
956 def Create(*args
, **kwargs
):
958 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
959 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
961 Create the GUI part of the SplitterWindow for the 2-phase create.
963 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
965 def GetWindow1(*args
, **kwargs
):
967 GetWindow1(self) -> Window
969 Gets the only or left/top pane.
971 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
973 def GetWindow2(*args
, **kwargs
):
975 GetWindow2(self) -> Window
977 Gets the right/bottom pane.
979 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
981 def SetSplitMode(*args
, **kwargs
):
983 SetSplitMode(self, int mode)
985 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
986 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
989 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
991 def GetSplitMode(*args
, **kwargs
):
993 GetSplitMode(self) -> int
997 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
999 def Initialize(*args
, **kwargs
):
1001 Initialize(self, Window window)
1003 Initializes the splitter window to have one pane. This should be
1004 called if you wish to initially view only a single pane in the
1005 splitter window. The child window is shown if it is currently hidden.
1007 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1009 def SplitVertically(*args
, **kwargs
):
1011 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1013 Initializes the left and right panes of the splitter window. The
1014 child windows are shown if they are currently hidden.
1016 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1018 def SplitHorizontally(*args
, **kwargs
):
1020 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1022 Initializes the top and bottom panes of the splitter window. The
1023 child windows are shown if they are currently hidden.
1025 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1027 def Unsplit(*args
, **kwargs
):
1029 Unsplit(self, Window toRemove=None) -> bool
1031 Unsplits the window. Pass the pane to remove, or None to remove the
1032 right or bottom pane. Returns True if successful, False otherwise (the
1033 window was not split).
1035 This function will not actually delete the pane being
1036 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1037 for the desired behaviour. By default, the pane being
1038 removed is only hidden.
1040 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1042 def ReplaceWindow(*args
, **kwargs
):
1044 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1046 This function replaces one of the windows managed by the
1047 SplitterWindow with another one. It is in general better to use it
1048 instead of calling Unsplit() and then resplitting the window back
1049 because it will provoke much less flicker. It is valid to call this
1050 function whether the splitter has two windows or only one.
1052 Both parameters should be non-None and winOld must specify one of the
1053 windows managed by the splitter. If the parameters are incorrect or
1054 the window couldn't be replaced, False is returned. Otherwise the
1055 function will return True, but please notice that it will not Destroy
1056 the replaced window and you may wish to do it yourself.
1058 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1060 def UpdateSize(*args
, **kwargs
):
1064 Causes any pending sizing of the sash and child panes to take place
1067 Such resizing normally takes place in idle time, in order to wait for
1068 layout to be completed. However, this can cause unacceptable flicker
1069 as the panes are resized after the window has been shown. To work
1070 around this, you can perform window layout (for example by sending a
1071 size event to the parent window), and then call this function, before
1072 showing the top-level window.
1074 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1076 def IsSplit(*args
, **kwargs
):
1078 IsSplit(self) -> bool
1080 Is the window split?
1082 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1084 def SetSashSize(*args
, **kwargs
):
1086 SetSashSize(self, int width)
1090 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1092 def SetBorderSize(*args
, **kwargs
):
1094 SetBorderSize(self, int width)
1096 Sets the border size. Currently a NOP.
1098 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1100 def GetSashSize(*args
, **kwargs
):
1102 GetSashSize(self) -> int
1106 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1108 def GetBorderSize(*args
, **kwargs
):
1110 GetBorderSize(self) -> int
1112 Gets the border size
1114 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1116 def SetSashPosition(*args
, **kwargs
):
1118 SetSashPosition(self, int position, bool redraw=True)
1120 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1121 are resized and the sash and border are redrawn.
1123 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1125 def GetSashPosition(*args
, **kwargs
):
1127 GetSashPosition(self) -> int
1129 Returns the surrent sash position.
1131 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1133 def SetSashGravity(*args
, **kwargs
):
1135 SetSashGravity(self, double gravity)
1137 Set the sash gravity. Gravity is a floating-point factor between 0.0
1138 and 1.0 which controls position of sash while resizing the
1139 `wx.SplitterWindow`. The gravity specifies how much the left/top
1140 window will grow while resizing.
1142 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1144 def GetSashGravity(*args
, **kwargs
):
1146 GetSashGravity(self) -> double
1148 Gets the sash gravity.
1150 :see: `SetSashGravity`
1153 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1155 def SetMinimumPaneSize(*args
, **kwargs
):
1157 SetMinimumPaneSize(self, int min)
1159 Sets the minimum pane size in pixels.
1161 The default minimum pane size is zero, which means that either pane
1162 can be reduced to zero by dragging the sash, thus removing one of the
1163 panes. To prevent this behaviour (and veto out-of-range sash
1164 dragging), set a minimum size, for example 20 pixels. If the
1165 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1166 the window may be unsplit even if minimum size is non-zero.
1168 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1170 def GetMinimumPaneSize(*args
, **kwargs
):
1172 GetMinimumPaneSize(self) -> int
1174 Gets the minimum pane size in pixels.
1176 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1178 def SashHitTest(*args
, **kwargs
):
1180 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1182 Tests for x, y over the sash
1184 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1186 def SizeWindows(*args
, **kwargs
):
1192 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1194 def SetNeedUpdating(*args
, **kwargs
):
1195 """SetNeedUpdating(self, bool needUpdating)"""
1196 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1198 def GetNeedUpdating(*args
, **kwargs
):
1199 """GetNeedUpdating(self) -> bool"""
1200 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1202 def GetClassDefaultAttributes(*args
, **kwargs
):
1204 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1206 Get the default attributes for this class. This is useful if you want
1207 to use the same font or colour in your own control as in a standard
1208 control -- which is a much better idea than hard coding specific
1209 colours or fonts which might look completely out of place on the
1210 user's system, especially if it uses themes.
1212 The variant parameter is only relevant under Mac currently and is
1213 ignore under other platforms. Under Mac, it will change the size of
1214 the returned font. See `wx.Window.SetWindowVariant` for more about
1217 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1219 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1220 _windows_
.SplitterWindow_swigregister(SplitterWindow
)
1221 SplitterNameStr
= cvar
.SplitterNameStr
1223 def PreSplitterWindow(*args
, **kwargs
):
1225 PreSplitterWindow() -> SplitterWindow
1227 Precreate a SplitterWindow for 2-phase creation.
1229 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1232 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1234 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1236 Get the default attributes for this class. This is useful if you want
1237 to use the same font or colour in your own control as in a standard
1238 control -- which is a much better idea than hard coding specific
1239 colours or fonts which might look completely out of place on the
1240 user's system, especially if it uses themes.
1242 The variant parameter is only relevant under Mac currently and is
1243 ignore under other platforms. Under Mac, it will change the size of
1244 the returned font. See `wx.Window.SetWindowVariant` for more about
1247 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1249 class SplitterEvent(_core
.NotifyEvent
):
1250 """This class represents the events generated by a splitter control."""
1251 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1252 __repr__
= _swig_repr
1253 def __init__(self
, *args
, **kwargs
):
1255 __init__(self, EventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1257 This class represents the events generated by a splitter control.
1259 _windows_
.SplitterEvent_swiginit(self
,_windows_
.new_SplitterEvent(*args
, **kwargs
))
1260 def SetSashPosition(*args
, **kwargs
):
1262 SetSashPosition(self, int pos)
1264 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1265 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1266 events, sets the the new sash position. In the case of _CHANGING
1267 events, sets the new tracking bar position so visual feedback during
1268 dragging will represent that change that will actually take place. Set
1269 to -1 from the event handler code to prevent repositioning.
1271 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1273 def GetSashPosition(*args
, **kwargs
):
1275 GetSashPosition(self) -> int
1277 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1278 and EVT_SPLITTER_SASH_POS_CHANGED events.
1280 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1282 def GetWindowBeingRemoved(*args
, **kwargs
):
1284 GetWindowBeingRemoved(self) -> Window
1286 Returns a pointer to the window being removed when a splitter window
1289 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1291 def GetX(*args
, **kwargs
):
1295 Returns the x coordinate of the double-click point in a
1296 EVT_SPLITTER_DCLICK event.
1298 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1300 def GetY(*args
, **kwargs
):
1304 Returns the y coordinate of the double-click point in a
1305 EVT_SPLITTER_DCLICK event.
1307 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1309 _windows_
.SplitterEvent_swigregister(SplitterEvent
)
1311 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1312 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1313 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1314 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1315 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1316 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1317 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1318 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1319 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1321 #---------------------------------------------------------------------------
1323 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1324 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1325 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1326 SW_NOBORDER
= _windows_
.SW_NOBORDER
1327 SW_BORDER
= _windows_
.SW_BORDER
1328 SW_3DSASH
= _windows_
.SW_3DSASH
1329 SW_3DBORDER
= _windows_
.SW_3DBORDER
1330 SW_3D
= _windows_
.SW_3D
1331 SASH_TOP
= _windows_
.SASH_TOP
1332 SASH_RIGHT
= _windows_
.SASH_RIGHT
1333 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1334 SASH_LEFT
= _windows_
.SASH_LEFT
1335 SASH_NONE
= _windows_
.SASH_NONE
1336 class SashWindow(_core
.Window
):
1337 """Proxy of C++ SashWindow class"""
1338 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1339 __repr__
= _swig_repr
1340 def __init__(self
, *args
, **kwargs
):
1342 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1343 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1344 String name=SashNameStr) -> SashWindow
1346 _windows_
.SashWindow_swiginit(self
,_windows_
.new_SashWindow(*args
, **kwargs
))
1347 self
._setOORInfo
(self
)
1349 def Create(*args
, **kwargs
):
1351 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1352 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1353 String name=SashNameStr) -> bool
1355 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1357 def SetSashVisible(*args
, **kwargs
):
1358 """SetSashVisible(self, int edge, bool sash)"""
1359 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1361 def GetSashVisible(*args
, **kwargs
):
1362 """GetSashVisible(self, int edge) -> bool"""
1363 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1365 def SetSashBorder(*args
, **kwargs
):
1366 """SetSashBorder(self, int edge, bool border)"""
1367 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1369 def HasBorder(*args
, **kwargs
):
1370 """HasBorder(self, int edge) -> bool"""
1371 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1373 def GetEdgeMargin(*args
, **kwargs
):
1374 """GetEdgeMargin(self, int edge) -> int"""
1375 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1377 def SetDefaultBorderSize(*args
, **kwargs
):
1378 """SetDefaultBorderSize(self, int width)"""
1379 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1381 def GetDefaultBorderSize(*args
, **kwargs
):
1382 """GetDefaultBorderSize(self) -> int"""
1383 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1385 def SetExtraBorderSize(*args
, **kwargs
):
1386 """SetExtraBorderSize(self, int width)"""
1387 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1389 def GetExtraBorderSize(*args
, **kwargs
):
1390 """GetExtraBorderSize(self) -> int"""
1391 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1393 def SetMinimumSizeX(*args
, **kwargs
):
1394 """SetMinimumSizeX(self, int min)"""
1395 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1397 def SetMinimumSizeY(*args
, **kwargs
):
1398 """SetMinimumSizeY(self, int min)"""
1399 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1401 def GetMinimumSizeX(*args
, **kwargs
):
1402 """GetMinimumSizeX(self) -> int"""
1403 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1405 def GetMinimumSizeY(*args
, **kwargs
):
1406 """GetMinimumSizeY(self) -> int"""
1407 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1409 def SetMaximumSizeX(*args
, **kwargs
):
1410 """SetMaximumSizeX(self, int max)"""
1411 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1413 def SetMaximumSizeY(*args
, **kwargs
):
1414 """SetMaximumSizeY(self, int max)"""
1415 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1417 def GetMaximumSizeX(*args
, **kwargs
):
1418 """GetMaximumSizeX(self) -> int"""
1419 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1421 def GetMaximumSizeY(*args
, **kwargs
):
1422 """GetMaximumSizeY(self) -> int"""
1423 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1425 def SashHitTest(*args
, **kwargs
):
1426 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1427 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1429 def SizeWindows(*args
, **kwargs
):
1430 """SizeWindows(self)"""
1431 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1433 _windows_
.SashWindow_swigregister(SashWindow
)
1434 SashNameStr
= cvar
.SashNameStr
1435 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1437 def PreSashWindow(*args
, **kwargs
):
1438 """PreSashWindow() -> SashWindow"""
1439 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1442 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1443 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1444 class SashEvent(_core
.CommandEvent
):
1445 """Proxy of C++ SashEvent class"""
1446 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1447 __repr__
= _swig_repr
1448 def __init__(self
, *args
, **kwargs
):
1449 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1450 _windows_
.SashEvent_swiginit(self
,_windows_
.new_SashEvent(*args
, **kwargs
))
1451 def SetEdge(*args
, **kwargs
):
1452 """SetEdge(self, int edge)"""
1453 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1455 def GetEdge(*args
, **kwargs
):
1456 """GetEdge(self) -> int"""
1457 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1459 def SetDragRect(*args
, **kwargs
):
1460 """SetDragRect(self, Rect rect)"""
1461 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1463 def GetDragRect(*args
, **kwargs
):
1464 """GetDragRect(self) -> Rect"""
1465 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1467 def SetDragStatus(*args
, **kwargs
):
1468 """SetDragStatus(self, int status)"""
1469 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1471 def GetDragStatus(*args
, **kwargs
):
1472 """GetDragStatus(self) -> int"""
1473 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1475 _windows_
.SashEvent_swigregister(SashEvent
)
1477 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1478 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1479 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1481 #---------------------------------------------------------------------------
1483 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1484 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1485 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1486 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1487 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1488 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1489 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1490 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1491 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1492 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1493 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1494 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1495 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1496 class QueryLayoutInfoEvent(_core
.Event
):
1497 """Proxy of C++ QueryLayoutInfoEvent class"""
1498 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1499 __repr__
= _swig_repr
1500 def __init__(self
, *args
, **kwargs
):
1501 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1502 _windows_
.QueryLayoutInfoEvent_swiginit(self
,_windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
))
1503 def SetRequestedLength(*args
, **kwargs
):
1504 """SetRequestedLength(self, int length)"""
1505 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1507 def GetRequestedLength(*args
, **kwargs
):
1508 """GetRequestedLength(self) -> int"""
1509 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1511 def SetFlags(*args
, **kwargs
):
1512 """SetFlags(self, int flags)"""
1513 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1515 def GetFlags(*args
, **kwargs
):
1516 """GetFlags(self) -> int"""
1517 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1519 def SetSize(*args
, **kwargs
):
1520 """SetSize(self, Size size)"""
1521 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1523 def GetSize(*args
, **kwargs
):
1524 """GetSize(self) -> Size"""
1525 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1527 def SetOrientation(*args
, **kwargs
):
1528 """SetOrientation(self, int orient)"""
1529 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1531 def GetOrientation(*args
, **kwargs
):
1532 """GetOrientation(self) -> int"""
1533 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1535 def SetAlignment(*args
, **kwargs
):
1536 """SetAlignment(self, int align)"""
1537 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1539 def GetAlignment(*args
, **kwargs
):
1540 """GetAlignment(self) -> int"""
1541 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1543 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent
)
1545 class CalculateLayoutEvent(_core
.Event
):
1546 """Proxy of C++ CalculateLayoutEvent class"""
1547 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1548 __repr__
= _swig_repr
1549 def __init__(self
, *args
, **kwargs
):
1550 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1551 _windows_
.CalculateLayoutEvent_swiginit(self
,_windows_
.new_CalculateLayoutEvent(*args
, **kwargs
))
1552 def SetFlags(*args
, **kwargs
):
1553 """SetFlags(self, int flags)"""
1554 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1556 def GetFlags(*args
, **kwargs
):
1557 """GetFlags(self) -> int"""
1558 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1560 def SetRect(*args
, **kwargs
):
1561 """SetRect(self, Rect rect)"""
1562 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1564 def GetRect(*args
, **kwargs
):
1565 """GetRect(self) -> Rect"""
1566 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1568 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEvent
)
1570 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1571 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1573 class SashLayoutWindow(SashWindow
):
1574 """Proxy of C++ SashLayoutWindow class"""
1575 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1576 __repr__
= _swig_repr
1577 def __init__(self
, *args
, **kwargs
):
1579 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1580 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1581 String name=SashLayoutNameStr) -> SashLayoutWindow
1583 _windows_
.SashLayoutWindow_swiginit(self
,_windows_
.new_SashLayoutWindow(*args
, **kwargs
))
1584 self
._setOORInfo
(self
)
1586 def Create(*args
, **kwargs
):
1588 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1589 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1590 String name=SashLayoutNameStr) -> bool
1592 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1594 def GetAlignment(*args
, **kwargs
):
1595 """GetAlignment(self) -> int"""
1596 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1598 def GetOrientation(*args
, **kwargs
):
1599 """GetOrientation(self) -> int"""
1600 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1602 def SetAlignment(*args
, **kwargs
):
1603 """SetAlignment(self, int alignment)"""
1604 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1606 def SetDefaultSize(*args
, **kwargs
):
1607 """SetDefaultSize(self, Size size)"""
1608 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1610 def SetOrientation(*args
, **kwargs
):
1611 """SetOrientation(self, int orientation)"""
1612 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1614 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindow
)
1616 def PreSashLayoutWindow(*args
, **kwargs
):
1617 """PreSashLayoutWindow() -> SashLayoutWindow"""
1618 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1621 class LayoutAlgorithm(_core
.Object
):
1622 """Proxy of C++ LayoutAlgorithm class"""
1623 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1624 __repr__
= _swig_repr
1625 def __init__(self
, *args
, **kwargs
):
1626 """__init__(self) -> LayoutAlgorithm"""
1627 _windows_
.LayoutAlgorithm_swiginit(self
,_windows_
.new_LayoutAlgorithm(*args
, **kwargs
))
1628 __swig_destroy__
= _windows_
.delete_LayoutAlgorithm
1629 __del__
= lambda self
: None;
1630 def LayoutMDIFrame(*args
, **kwargs
):
1631 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1632 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1634 def LayoutFrame(*args
, **kwargs
):
1635 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1636 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1638 def LayoutWindow(*args
, **kwargs
):
1639 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1640 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1642 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithm
)
1644 #---------------------------------------------------------------------------
1646 class PopupWindow(_core
.Window
):
1647 """Proxy of C++ PopupWindow class"""
1648 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1649 __repr__
= _swig_repr
1650 def __init__(self
, *args
, **kwargs
):
1651 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1652 _windows_
.PopupWindow_swiginit(self
,_windows_
.new_PopupWindow(*args
, **kwargs
))
1653 self
._setOORInfo
(self
)
1655 def Create(*args
, **kwargs
):
1656 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1657 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1659 def Position(*args
, **kwargs
):
1660 """Position(self, Point ptOrigin, Size size)"""
1661 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1663 _windows_
.PopupWindow_swigregister(PopupWindow
)
1665 def PrePopupWindow(*args
, **kwargs
):
1666 """PrePopupWindow() -> PopupWindow"""
1667 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1670 #---------------------------------------------------------------------------
1672 class PopupTransientWindow(PopupWindow
):
1673 """Proxy of C++ PopupTransientWindow class"""
1674 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1675 __repr__
= _swig_repr
1676 def __init__(self
, *args
, **kwargs
):
1677 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1678 _windows_
.PopupTransientWindow_swiginit(self
,_windows_
.new_PopupTransientWindow(*args
, **kwargs
))
1679 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1681 def _setCallbackInfo(*args
, **kwargs
):
1682 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1683 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1685 def Popup(*args
, **kwargs
):
1686 """Popup(self, Window focus=None)"""
1687 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1689 def Dismiss(*args
, **kwargs
):
1691 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1693 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindow
)
1695 def PrePopupTransientWindow(*args
, **kwargs
):
1696 """PrePopupTransientWindow() -> PopupTransientWindow"""
1697 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1700 #---------------------------------------------------------------------------
1702 class TipWindow(PopupTransientWindow
):
1703 """Proxy of C++ TipWindow class"""
1704 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1705 __repr__
= _swig_repr
1706 def __init__(self
, *args
, **kwargs
):
1707 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1708 _windows_
.TipWindow_swiginit(self
,_windows_
.new_TipWindow(*args
, **kwargs
))
1709 self
._setOORInfo
(self
)
1711 def SetBoundingRect(*args
, **kwargs
):
1712 """SetBoundingRect(self, Rect rectBound)"""
1713 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1715 def Close(*args
, **kwargs
):
1719 This function simply generates a EVT_CLOSE event whose handler usually
1720 tries to close the window. It doesn't close the window itself,
1721 however. If force is False (the default) then the window's close
1722 handler will be allowed to veto the destruction of the window.
1724 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1726 _windows_
.TipWindow_swigregister(TipWindow
)
1728 #---------------------------------------------------------------------------
1730 class VScrolledWindow(Panel
):
1731 """Proxy of C++ VScrolledWindow class"""
1732 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1733 __repr__
= _swig_repr
1734 def __init__(self
, *args
, **kwargs
):
1736 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1737 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1739 _windows_
.VScrolledWindow_swiginit(self
,_windows_
.new_VScrolledWindow(*args
, **kwargs
))
1740 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1742 def _setCallbackInfo(*args
, **kwargs
):
1743 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1744 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1746 def Create(*args
, **kwargs
):
1748 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1749 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1751 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1753 def SetLineCount(*args
, **kwargs
):
1754 """SetLineCount(self, size_t count)"""
1755 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1757 def ScrollToLine(*args
, **kwargs
):
1758 """ScrollToLine(self, size_t line) -> bool"""
1759 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1761 def RefreshLine(*args
, **kwargs
):
1762 """RefreshLine(self, size_t line)"""
1763 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1765 def RefreshLines(*args
, **kwargs
):
1766 """RefreshLines(self, size_t from, size_t to)"""
1767 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1769 def HitTestXY(*args
, **kwargs
):
1770 """HitTestXY(self, int x, int y) -> int"""
1771 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1773 def HitTest(*args
, **kwargs
):
1774 """HitTest(self, Point pt) -> int"""
1775 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1777 def RefreshAll(*args
, **kwargs
):
1778 """RefreshAll(self)"""
1779 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1781 def GetLineCount(*args
, **kwargs
):
1782 """GetLineCount(self) -> size_t"""
1783 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1785 def GetVisibleBegin(*args
, **kwargs
):
1786 """GetVisibleBegin(self) -> size_t"""
1787 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
1789 def GetVisibleEnd(*args
, **kwargs
):
1790 """GetVisibleEnd(self) -> size_t"""
1791 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
1793 def IsVisible(*args
, **kwargs
):
1794 """IsVisible(self, size_t line) -> bool"""
1795 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1797 def GetFirstVisibleLine(*args
, **kwargs
):
1798 """GetFirstVisibleLine(self) -> size_t"""
1799 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1801 def GetLastVisibleLine(*args
, **kwargs
):
1802 """GetLastVisibleLine(self) -> size_t"""
1803 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1805 def FindFirstFromBottom(*args
, **kwargs
):
1806 """FindFirstFromBottom(self, size_t lineLast, bool fullyVisible=False) -> size_t"""
1807 return _windows_
.VScrolledWindow_FindFirstFromBottom(*args
, **kwargs
)
1809 def GetLinesHeight(*args
, **kwargs
):
1810 """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int"""
1811 return _windows_
.VScrolledWindow_GetLinesHeight(*args
, **kwargs
)
1813 _windows_
.VScrolledWindow_swigregister(VScrolledWindow
)
1815 def PreVScrolledWindow(*args
, **kwargs
):
1816 """PreVScrolledWindow() -> VScrolledWindow"""
1817 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1820 class VListBox(VScrolledWindow
):
1821 """Proxy of C++ VListBox class"""
1822 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1823 __repr__
= _swig_repr
1824 def __init__(self
, *args
, **kwargs
):
1826 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1827 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1829 _windows_
.VListBox_swiginit(self
,_windows_
.new_VListBox(*args
, **kwargs
))
1830 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1832 def _setCallbackInfo(*args
, **kwargs
):
1833 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1834 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1836 def Create(*args
, **kwargs
):
1838 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1839 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1841 return _windows_
.VListBox_Create(*args
, **kwargs
)
1843 def GetItemCount(*args
, **kwargs
):
1844 """GetItemCount(self) -> size_t"""
1845 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1847 def HasMultipleSelection(*args
, **kwargs
):
1848 """HasMultipleSelection(self) -> bool"""
1849 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1851 def GetSelection(*args
, **kwargs
):
1852 """GetSelection(self) -> int"""
1853 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1855 def IsCurrent(*args
, **kwargs
):
1856 """IsCurrent(self, size_t item) -> bool"""
1857 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1859 def IsSelected(*args
, **kwargs
):
1860 """IsSelected(self, size_t item) -> bool"""
1861 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1863 def GetSelectedCount(*args
, **kwargs
):
1864 """GetSelectedCount(self) -> size_t"""
1865 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1867 def GetFirstSelected(*args
, **kwargs
):
1868 """GetFirstSelected(self) -> PyObject"""
1869 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1871 def GetNextSelected(*args
, **kwargs
):
1872 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1873 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1875 def GetMargins(*args
, **kwargs
):
1876 """GetMargins(self) -> Point"""
1877 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1879 def GetSelectionBackground(*args
, **kwargs
):
1880 """GetSelectionBackground(self) -> Colour"""
1881 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1883 def SetItemCount(*args
, **kwargs
):
1884 """SetItemCount(self, size_t count)"""
1885 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1887 def Clear(*args
, **kwargs
):
1889 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1891 def SetSelection(*args
, **kwargs
):
1892 """SetSelection(self, int selection)"""
1893 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1895 def Select(*args
, **kwargs
):
1896 """Select(self, size_t item, bool select=True) -> bool"""
1897 return _windows_
.VListBox_Select(*args
, **kwargs
)
1899 def SelectRange(*args
, **kwargs
):
1900 """SelectRange(self, size_t from, size_t to) -> bool"""
1901 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1903 def Toggle(*args
, **kwargs
):
1904 """Toggle(self, size_t item)"""
1905 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1907 def SelectAll(*args
, **kwargs
):
1908 """SelectAll(self) -> bool"""
1909 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1911 def DeselectAll(*args
, **kwargs
):
1912 """DeselectAll(self) -> bool"""
1913 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1915 def SetMargins(*args
, **kwargs
):
1916 """SetMargins(self, Point pt)"""
1917 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1919 def SetMarginsXY(*args
, **kwargs
):
1920 """SetMarginsXY(self, int x, int y)"""
1921 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1923 def SetSelectionBackground(*args
, **kwargs
):
1924 """SetSelectionBackground(self, Colour col)"""
1925 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1927 def OnDrawSeparator(*args
, **kwargs
):
1928 """OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
1929 return _windows_
.VListBox_OnDrawSeparator(*args
, **kwargs
)
1931 def OnDrawBackground(*args
, **kwargs
):
1932 """OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
1933 return _windows_
.VListBox_OnDrawBackground(*args
, **kwargs
)
1935 _windows_
.VListBox_swigregister(VListBox
)
1936 VListBoxNameStr
= cvar
.VListBoxNameStr
1938 def PreVListBox(*args
, **kwargs
):
1939 """PreVListBox() -> VListBox"""
1940 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1943 class HtmlListBox(VListBox
):
1944 """Proxy of C++ HtmlListBox class"""
1945 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1946 __repr__
= _swig_repr
1947 def __init__(self
, *args
, **kwargs
):
1949 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1950 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1952 _windows_
.HtmlListBox_swiginit(self
,_windows_
.new_HtmlListBox(*args
, **kwargs
))
1953 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1955 def _setCallbackInfo(*args
, **kwargs
):
1956 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1957 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1959 def Create(*args
, **kwargs
):
1961 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1962 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1964 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1966 def SetItemCount(*args
, **kwargs
):
1967 """SetItemCount(self, size_t count)"""
1968 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1970 def GetFileSystem(*args
, **kwargs
):
1971 """GetFileSystem(self) -> FileSystem"""
1972 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
1974 def OnLinkClicked(*args
, **kwargs
):
1975 """OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)"""
1976 return _windows_
.HtmlListBox_OnLinkClicked(*args
, **kwargs
)
1978 _windows_
.HtmlListBox_swigregister(HtmlListBox
)
1980 def PreHtmlListBox(*args
, **kwargs
):
1981 """PreHtmlListBox() -> HtmlListBox"""
1982 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
1985 #---------------------------------------------------------------------------
1987 class TaskBarIcon(_core
.EvtHandler
):
1988 """Proxy of C++ TaskBarIcon class"""
1989 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1990 __repr__
= _swig_repr
1991 def __init__(self
, *args
, **kwargs
):
1992 """__init__(self) -> TaskBarIcon"""
1993 _windows_
.TaskBarIcon_swiginit(self
,_windows_
.new_TaskBarIcon(*args
, **kwargs
))
1994 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
1996 __swig_destroy__
= _windows_
.delete_TaskBarIcon
1997 __del__
= lambda self
: None;
1998 def _setCallbackInfo(*args
, **kwargs
):
1999 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2000 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2002 def Destroy(*args
, **kwargs
):
2006 Deletes the C++ object this Python object is a proxy for.
2008 val
= _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2012 def IsOk(*args
, **kwargs
):
2013 """IsOk(self) -> bool"""
2014 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2016 def __nonzero__(self
): return self
.IsOk()
2017 def IsIconInstalled(*args
, **kwargs
):
2018 """IsIconInstalled(self) -> bool"""
2019 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2021 def SetIcon(*args
, **kwargs
):
2022 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2023 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2025 def RemoveIcon(*args
, **kwargs
):
2026 """RemoveIcon(self) -> bool"""
2027 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2029 def PopupMenu(*args
, **kwargs
):
2030 """PopupMenu(self, Menu menu) -> bool"""
2031 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2033 _windows_
.TaskBarIcon_swigregister(TaskBarIcon
)
2035 class TaskBarIconEvent(_core
.Event
):
2036 """Proxy of C++ TaskBarIconEvent class"""
2037 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2038 __repr__
= _swig_repr
2039 def __init__(self
, *args
, **kwargs
):
2040 """__init__(self, EventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2041 _windows_
.TaskBarIconEvent_swiginit(self
,_windows_
.new_TaskBarIconEvent(*args
, **kwargs
))
2042 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEvent
)
2044 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2045 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2046 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2047 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2048 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2049 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2050 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2051 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2052 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2053 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2054 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2055 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2056 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2057 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2059 #---------------------------------------------------------------------------
2061 class ColourData(_core
.Object
):
2063 This class holds a variety of information related to the colour
2064 chooser dialog, used to transfer settings and results to and from the
2067 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2068 __repr__
= _swig_repr
2069 def __init__(self
, *args
, **kwargs
):
2071 __init__(self) -> ColourData
2073 Constructor, sets default values.
2075 _windows_
.ColourData_swiginit(self
,_windows_
.new_ColourData(*args
, **kwargs
))
2076 __swig_destroy__
= _windows_
.delete_ColourData
2077 __del__
= lambda self
: None;
2078 def GetChooseFull(*args
, **kwargs
):
2080 GetChooseFull(self) -> bool
2082 Under Windows, determines whether the Windows colour dialog will
2083 display the full dialog with custom colour selection controls. Has no
2084 meaning under other platforms. The default value is true.
2086 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2088 def GetColour(*args
, **kwargs
):
2090 GetColour(self) -> Colour
2092 Gets the colour (pre)selected by the dialog.
2094 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2096 def GetCustomColour(*args
, **kwargs
):
2098 GetCustomColour(self, int i) -> Colour
2100 Gets the i'th custom colour associated with the colour dialog. i
2101 should be an integer between 0 and 15. The default custom colours are
2102 all invalid colours.
2104 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2106 def SetChooseFull(*args
, **kwargs
):
2108 SetChooseFull(self, int flag)
2110 Under Windows, tells the Windows colour dialog to display the full
2111 dialog with custom colour selection controls. Under other platforms,
2112 has no effect. The default value is true.
2114 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2116 def SetColour(*args
, **kwargs
):
2118 SetColour(self, Colour colour)
2120 Sets the default colour for the colour dialog. The default colour is
2123 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2125 def SetCustomColour(*args
, **kwargs
):
2127 SetCustomColour(self, int i, Colour colour)
2129 Sets the i'th custom colour for the colour dialog. i should be an
2130 integer between 0 and 15. The default custom colours are all invalid colours.
2132 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2134 _windows_
.ColourData_swigregister(ColourData
)
2135 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2136 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2137 DirDialogNameStr
= cvar
.DirDialogNameStr
2138 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2139 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2140 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2142 class ColourDialog(Dialog
):
2143 """This class represents the colour chooser dialog."""
2144 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2145 __repr__
= _swig_repr
2146 def __init__(self
, *args
, **kwargs
):
2148 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2150 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2151 which will be copied to the colour dialog's internal ColourData
2154 _windows_
.ColourDialog_swiginit(self
,_windows_
.new_ColourDialog(*args
, **kwargs
))
2155 self
._setOORInfo
(self
)
2157 def GetColourData(*args
, **kwargs
):
2159 GetColourData(self) -> ColourData
2161 Returns a reference to the `wx.ColourData` used by the dialog.
2163 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2165 _windows_
.ColourDialog_swigregister(ColourDialog
)
2168 def GetColourFromUser(*args
, **kwargs
):
2170 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2171 String caption=EmptyString) -> Colour
2173 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2174 DD_NEW_DIR_BUTTON
= _windows_
.DD_NEW_DIR_BUTTON
2175 DD_DEFAULT_STYLE
= _windows_
.DD_DEFAULT_STYLE
2176 DD_CHANGE_DIR
= _windows_
.DD_CHANGE_DIR
2177 class DirDialog(Dialog
):
2179 wx.DirDialog allows the user to select a directory by browising the
2182 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2183 __repr__
= _swig_repr
2184 def __init__(self
, *args
, **kwargs
):
2186 __init__(self, Window parent, String message=DirSelectorPromptStr,
2187 String defaultPath=EmptyString, long style=DD_DEFAULT_STYLE,
2188 Point pos=DefaultPosition, Size size=DefaultSize,
2189 String name=DirDialogNameStr) -> DirDialog
2191 Constructor. Use ShowModal method to show the dialog.
2193 _windows_
.DirDialog_swiginit(self
,_windows_
.new_DirDialog(*args
, **kwargs
))
2194 self
._setOORInfo
(self
)
2196 def GetPath(*args
, **kwargs
):
2198 GetPath(self) -> String
2200 Returns the default or user-selected path.
2202 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2204 def GetMessage(*args
, **kwargs
):
2206 GetMessage(self) -> String
2208 Returns the message that will be displayed on the dialog.
2210 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2212 def SetMessage(*args
, **kwargs
):
2214 SetMessage(self, String message)
2216 Sets the message that will be displayed on the dialog.
2218 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2220 def SetPath(*args
, **kwargs
):
2222 SetPath(self, String path)
2224 Sets the default path.
2226 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2228 _windows_
.DirDialog_swigregister(DirDialog
)
2230 OPEN
= _windows_
.OPEN
2231 SAVE
= _windows_
.SAVE
2232 OVERWRITE_PROMPT
= _windows_
.OVERWRITE_PROMPT
2233 FILE_MUST_EXIST
= _windows_
.FILE_MUST_EXIST
2234 MULTIPLE
= _windows_
.MULTIPLE
2235 CHANGE_DIR
= _windows_
.CHANGE_DIR
2236 HIDE_READONLY
= _windows_
.HIDE_READONLY
2237 FD_OPEN
= _windows_
.FD_OPEN
2238 FD_SAVE
= _windows_
.FD_SAVE
2239 FD_OVERWRITE_PROMPT
= _windows_
.FD_OVERWRITE_PROMPT
2240 FD_FILE_MUST_EXIST
= _windows_
.FD_FILE_MUST_EXIST
2241 FD_MULTIPLE
= _windows_
.FD_MULTIPLE
2242 FD_CHANGE_DIR
= _windows_
.FD_CHANGE_DIR
2243 FD_PREVIEW
= _windows_
.FD_PREVIEW
2244 FD_DEFAULT_STYLE
= _windows_
.FD_DEFAULT_STYLE
2245 class FileDialog(Dialog
):
2247 wx.FileDialog allows the user to select one or more files from the
2250 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2251 __repr__
= _swig_repr
2252 def __init__(self
, *args
, **kwargs
):
2254 __init__(self, Window parent, String message=FileSelectorPromptStr,
2255 String defaultDir=EmptyString, String defaultFile=EmptyString,
2256 String wildcard=FileSelectorDefaultWildcardStr,
2257 long style=FD_DEFAULT_STYLE,
2258 Point pos=DefaultPosition) -> FileDialog
2260 Constructor. Use ShowModal method to show the dialog.
2262 _windows_
.FileDialog_swiginit(self
,_windows_
.new_FileDialog(*args
, **kwargs
))
2263 self
._setOORInfo
(self
)
2265 def SetMessage(*args
, **kwargs
):
2267 SetMessage(self, String message)
2269 Sets the message that will be displayed on the dialog.
2271 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2273 def SetPath(*args
, **kwargs
):
2275 SetPath(self, String path)
2277 Sets the path (the combined directory and filename that will be
2278 returned when the dialog is dismissed).
2280 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2282 def SetDirectory(*args
, **kwargs
):
2284 SetDirectory(self, String dir)
2286 Sets the default directory.
2288 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2290 def SetFilename(*args
, **kwargs
):
2292 SetFilename(self, String name)
2294 Sets the default filename.
2296 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2298 def SetWildcard(*args
, **kwargs
):
2300 SetWildcard(self, String wildCard)
2302 Sets the wildcard, which can contain multiple file types, for
2305 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2308 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2310 def SetFilterIndex(*args
, **kwargs
):
2312 SetFilterIndex(self, int filterIndex)
2314 Sets the default filter index, starting from zero.
2316 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2318 def GetMessage(*args
, **kwargs
):
2320 GetMessage(self) -> String
2322 Returns the message that will be displayed on the dialog.
2324 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2326 def GetPath(*args
, **kwargs
):
2328 GetPath(self) -> String
2330 Returns the full path (directory and filename) of the selected file.
2332 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2334 def GetDirectory(*args
, **kwargs
):
2336 GetDirectory(self) -> String
2338 Returns the default directory.
2340 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2342 def GetFilename(*args
, **kwargs
):
2344 GetFilename(self) -> String
2346 Returns the default filename.
2348 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2350 def GetWildcard(*args
, **kwargs
):
2352 GetWildcard(self) -> String
2354 Returns the file dialog wildcard.
2356 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2358 def GetFilterIndex(*args
, **kwargs
):
2360 GetFilterIndex(self) -> int
2362 Returns the index into the list of filters supplied, optionally, in
2363 the wildcard parameter. Before the dialog is shown, this is the index
2364 which will be used when the dialog is first displayed. After the
2365 dialog is shown, this is the index selected by the user.
2367 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2369 def GetFilenames(*args
, **kwargs
):
2371 GetFilenames(self) -> PyObject
2373 Returns a list of filenames chosen in the dialog. This function
2374 should only be used with the dialogs which have wx.MULTIPLE style, use
2375 GetFilename for the others.
2377 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2379 def GetPaths(*args
, **kwargs
):
2381 GetPaths(self) -> PyObject
2383 Fills the array paths with the full paths of the files chosen. This
2384 function should only be used with the dialogs which have wx.MULTIPLE
2385 style, use GetPath for the others.
2387 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2389 _windows_
.FileDialog_swigregister(FileDialog
)
2391 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2392 class MultiChoiceDialog(Dialog
):
2393 """A simple dialog with a multi selection listbox."""
2394 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2395 __repr__
= _swig_repr
2396 def __init__(self
, *args
, **kwargs
):
2398 __init__(self, Window parent, String message, String caption,
2399 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2400 Point pos=DefaultPosition) -> MultiChoiceDialog
2402 Constructor. Use the `ShowModal` method to show the dialog.
2404 :param parent: The parent window.
2405 :param message: Text to display above the list of selections.
2406 :param caption: Text to use in the title bar of the dialog.
2407 :param choices: A list of strings or unicode objects that the
2408 user is allowed to choose from.
2409 :param style: Styles to apply to the dialog. The default value is
2410 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2411 :param pos: Where to position the dialog (not used on Windows)
2415 _windows_
.MultiChoiceDialog_swiginit(self
,_windows_
.new_MultiChoiceDialog(*args
, **kwargs
))
2416 self
._setOORInfo
(self
)
2418 def SetSelections(*args
, **kwargs
):
2420 SetSelections(List selections)
2422 Specify the items in the list that should be selected, using a list of
2423 integers. The list should specify the indexes of the items that
2426 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2428 def GetSelections(*args
, **kwargs
):
2430 GetSelections() -> [selections]
2432 Returns a list of integers representing the items that are selected.
2433 If an item is selected then its index will appear in the list.
2435 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2437 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialog
)
2439 class SingleChoiceDialog(Dialog
):
2440 """A simple dialog with a single selection listbox."""
2441 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2442 __repr__
= _swig_repr
2443 def __init__(self
, *args
, **kwargs
):
2445 __init__(Window parent, String message, String caption,
2446 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2447 Point pos=DefaultPosition) -> SingleChoiceDialog
2449 Constructor. Use ShowModal method to show the dialog.
2451 _windows_
.SingleChoiceDialog_swiginit(self
,_windows_
.new_SingleChoiceDialog(*args
, **kwargs
))
2452 self
._setOORInfo
(self
)
2454 def GetSelection(*args
, **kwargs
):
2456 GetSelection(self) -> int
2458 Get the index of the currently selected item.
2460 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2462 def GetStringSelection(*args
, **kwargs
):
2464 GetStringSelection(self) -> String
2466 Returns the string value of the currently selected item
2468 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2470 def SetSelection(*args
, **kwargs
):
2472 SetSelection(self, int sel)
2474 Set the current selected item to sel
2476 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2478 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialog
)
2480 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2481 class TextEntryDialog(Dialog
):
2482 """A dialog with text control, [ok] and [cancel] buttons"""
2483 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2484 __repr__
= _swig_repr
2485 def __init__(self
, *args
, **kwargs
):
2487 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2488 String defaultValue=EmptyString,
2489 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2491 Constructor. Use ShowModal method to show the dialog.
2493 _windows_
.TextEntryDialog_swiginit(self
,_windows_
.new_TextEntryDialog(*args
, **kwargs
))
2494 self
._setOORInfo
(self
)
2496 def GetValue(*args
, **kwargs
):
2498 GetValue(self) -> String
2500 Returns the text that the user has entered if the user has pressed OK,
2501 or the original value if the user has pressed Cancel.
2503 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2505 def SetValue(*args
, **kwargs
):
2507 SetValue(self, String value)
2509 Sets the default text value.
2511 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2513 _windows_
.TextEntryDialog_swigregister(TextEntryDialog
)
2515 class PasswordEntryDialog(TextEntryDialog
):
2516 """Proxy of C++ PasswordEntryDialog class"""
2517 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2518 __repr__
= _swig_repr
2519 def __init__(self
, *args
, **kwargs
):
2521 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2522 String value=EmptyString,
2523 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2525 _windows_
.PasswordEntryDialog_swiginit(self
,_windows_
.new_PasswordEntryDialog(*args
, **kwargs
))
2526 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialog
)
2527 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2529 class NumberEntryDialog(Dialog
):
2530 """A dialog with spin control, ok and cancel buttons."""
2531 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2532 __repr__
= _swig_repr
2533 def __init__(self
, *args
, **kwargs
):
2535 __init__(self, Window parent, String message, String prompt, String caption,
2536 long value, long min, long max, Point pos=DefaultPosition) -> NumberEntryDialog
2538 Constructor. Use ShowModal method to show the dialog.
2540 _windows_
.NumberEntryDialog_swiginit(self
,_windows_
.new_NumberEntryDialog(*args
, **kwargs
))
2541 self
._setOORInfo
(self
)
2543 def GetValue(*args
, **kwargs
):
2544 """GetValue(self) -> long"""
2545 return _windows_
.NumberEntryDialog_GetValue(*args
, **kwargs
)
2547 _windows_
.NumberEntryDialog_swigregister(NumberEntryDialog
)
2549 class FontData(_core
.Object
):
2551 This class holds a variety of information related to font dialogs and
2552 is used to transfer settings to and results from a `wx.FontDialog`.
2554 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2555 __repr__
= _swig_repr
2556 def __init__(self
, *args
, **kwargs
):
2558 __init__(self) -> FontData
2560 This class holds a variety of information related to font dialogs and
2561 is used to transfer settings to and results from a `wx.FontDialog`.
2563 _windows_
.FontData_swiginit(self
,_windows_
.new_FontData(*args
, **kwargs
))
2564 __swig_destroy__
= _windows_
.delete_FontData
2565 __del__
= lambda self
: None;
2566 def EnableEffects(*args
, **kwargs
):
2568 EnableEffects(self, bool enable)
2570 Enables or disables 'effects' under MS Windows only. This refers to
2571 the controls for manipulating colour, strikeout and underline
2572 properties. The default value is true.
2574 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2576 def GetAllowSymbols(*args
, **kwargs
):
2578 GetAllowSymbols(self) -> bool
2580 Under MS Windows, returns a flag determining whether symbol fonts can
2581 be selected. Has no effect on other platforms. The default value is
2584 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2586 def GetColour(*args
, **kwargs
):
2588 GetColour(self) -> Colour
2590 Gets the colour associated with the font dialog. The default value is
2593 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2595 def GetChosenFont(*args
, **kwargs
):
2597 GetChosenFont(self) -> Font
2599 Gets the font chosen by the user.
2601 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2603 def GetEnableEffects(*args
, **kwargs
):
2605 GetEnableEffects(self) -> bool
2607 Determines whether 'effects' are enabled under Windows.
2609 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2611 def GetInitialFont(*args
, **kwargs
):
2613 GetInitialFont(self) -> Font
2615 Gets the font that will be initially used by the font dialog. This
2616 should have previously been set by the application.
2618 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2620 def GetShowHelp(*args
, **kwargs
):
2622 GetShowHelp(self) -> bool
2624 Returns true if the Help button will be shown (Windows only). The
2625 default value is false.
2627 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2629 def SetAllowSymbols(*args
, **kwargs
):
2631 SetAllowSymbols(self, bool allowSymbols)
2633 Under MS Windows, determines whether symbol fonts can be selected. Has
2634 no effect on other platforms. The default value is true.
2636 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2638 def SetChosenFont(*args
, **kwargs
):
2640 SetChosenFont(self, Font font)
2642 Sets the font that will be returned to the user (normally for internal
2645 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2647 def SetColour(*args
, **kwargs
):
2649 SetColour(self, Colour colour)
2651 Sets the colour that will be used for the font foreground colour. The
2652 default colour is black.
2654 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2656 def SetInitialFont(*args
, **kwargs
):
2658 SetInitialFont(self, Font font)
2660 Sets the font that will be initially used by the font dialog.
2662 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2664 def SetRange(*args
, **kwargs
):
2666 SetRange(self, int min, int max)
2668 Sets the valid range for the font point size (Windows only). The
2669 default is 0, 0 (unrestricted range).
2671 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2673 def SetShowHelp(*args
, **kwargs
):
2675 SetShowHelp(self, bool showHelp)
2677 Determines whether the Help button will be displayed in the font
2678 dialog (Windows only). The default value is false.
2680 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2682 _windows_
.FontData_swigregister(FontData
)
2684 class FontDialog(Dialog
):
2686 wx.FontDialog allows the user to select a system font and its attributes.
2691 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2692 __repr__
= _swig_repr
2693 def __init__(self
, *args
, **kwargs
):
2695 __init__(self, Window parent, FontData data) -> FontDialog
2697 Constructor. Pass a parent window and the `wx.FontData` object to be
2698 used to initialize the dialog controls. Call `ShowModal` to display
2699 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2700 results with via the `wx.FontData` returned by `GetFontData`.
2702 _windows_
.FontDialog_swiginit(self
,_windows_
.new_FontDialog(*args
, **kwargs
))
2703 self
._setOORInfo
(self
)
2705 def GetFontData(*args
, **kwargs
):
2707 GetFontData(self) -> FontData
2709 Returns a reference to the internal `wx.FontData` used by the
2712 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2714 _windows_
.FontDialog_swigregister(FontDialog
)
2717 def GetFontFromUser(*args
, **kwargs
):
2718 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2719 return _windows_
.GetFontFromUser(*args
, **kwargs
)
2720 class MessageDialog(Dialog
):
2722 This class provides a simple dialog that shows a single or multi-line
2723 message, with a choice of OK, Yes, No and/or Cancel buttons.
2725 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2726 __repr__
= _swig_repr
2727 def __init__(self
, *args
, **kwargs
):
2729 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2730 long style=wxOK|wxCANCEL|wxCENTRE,
2731 Point pos=DefaultPosition) -> MessageDialog
2733 Constructor, use `ShowModal` to display the dialog.
2735 _windows_
.MessageDialog_swiginit(self
,_windows_
.new_MessageDialog(*args
, **kwargs
))
2736 self
._setOORInfo
(self
)
2738 _windows_
.MessageDialog_swigregister(MessageDialog
)
2740 class ProgressDialog(Frame
):
2742 A dialog that shows a short message and a progress bar. Optionally, it
2743 can display an ABORT button.
2745 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2746 __repr__
= _swig_repr
2747 def __init__(self
, *args
, **kwargs
):
2749 __init__(self, String title, String message, int maximum=100, Window parent=None,
2750 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2752 Constructor. Creates the dialog, displays it and disables user input
2753 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2756 _windows_
.ProgressDialog_swiginit(self
,_windows_
.new_ProgressDialog(*args
, **kwargs
))
2757 self
._setOORInfo
(self
)
2759 def Update(*args
, **kwargs
):
2761 Update(self, int value, String newmsg) --> (continue, skip)
2763 Updates the dialog, setting the progress bar to the new value and, if
2764 given changes the message above it. The value given should be less
2765 than or equal to the maximum value given to the constructor and the
2766 dialog is closed if it is equal to the maximum. Returns a tuple of
2767 boolean values, ``(continue, skip)`` where ``continue`` is ``True``
2768 unless the Cancel button has been pressed, and ``skip`` is ``False``
2769 unless the Skip button (if any) has been pressed.
2771 If the ``continue`` return value is ``false``, the application can either
2772 immediately destroy the dialog or ask the user for confirmation, and if the
2773 abort is not confirmed the dialog may be resumed with `Resume` function.
2776 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2778 def Resume(*args
, **kwargs
):
2782 Can be used to continue with the dialog, after the user had chosen to
2785 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2787 _windows_
.ProgressDialog_swigregister(ProgressDialog
)
2789 FR_DOWN
= _windows_
.FR_DOWN
2790 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2791 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2792 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2793 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2794 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2795 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2796 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2797 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2798 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2799 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2800 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2801 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2802 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2803 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2804 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2805 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2807 # For backwards compatibility. Should they be removed?
2808 EVT_COMMAND_FIND
= EVT_FIND
2809 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2810 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2811 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2812 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2814 class FindDialogEvent(_core
.CommandEvent
):
2815 """Events for the FindReplaceDialog"""
2816 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2817 __repr__
= _swig_repr
2818 def __init__(self
, *args
, **kwargs
):
2820 __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2822 Events for the FindReplaceDialog
2824 _windows_
.FindDialogEvent_swiginit(self
,_windows_
.new_FindDialogEvent(*args
, **kwargs
))
2825 def GetFlags(*args
, **kwargs
):
2827 GetFlags(self) -> int
2829 Get the currently selected flags: this is the combination of
2830 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2832 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2834 def GetFindString(*args
, **kwargs
):
2836 GetFindString(self) -> String
2838 Return the string to find (never empty).
2840 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2842 def GetReplaceString(*args
, **kwargs
):
2844 GetReplaceString(self) -> String
2846 Return the string to replace the search string with (only for replace
2847 and replace all events).
2849 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2851 def GetDialog(*args
, **kwargs
):
2853 GetDialog(self) -> FindReplaceDialog
2855 Return the pointer to the dialog which generated this event.
2857 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2859 def SetFlags(*args
, **kwargs
):
2860 """SetFlags(self, int flags)"""
2861 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2863 def SetFindString(*args
, **kwargs
):
2864 """SetFindString(self, String str)"""
2865 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2867 def SetReplaceString(*args
, **kwargs
):
2868 """SetReplaceString(self, String str)"""
2869 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2871 _windows_
.FindDialogEvent_swigregister(FindDialogEvent
)
2873 class FindReplaceData(_core
.Object
):
2875 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2876 to initialize the dialog with the default values and will keep the
2877 last values from the dialog when it is closed. It is also updated each
2878 time a `wx.FindDialogEvent` is generated so instead of using the
2879 `wx.FindDialogEvent` methods you can also directly query this object.
2881 Note that all SetXXX() methods may only be called before showing the
2882 dialog and calling them has no effect later.
2884 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2885 __repr__
= _swig_repr
2886 def __init__(self
, *args
, **kwargs
):
2888 __init__(self, int flags=0) -> FindReplaceData
2890 Constuctor initializes the flags to default value (0).
2892 _windows_
.FindReplaceData_swiginit(self
,_windows_
.new_FindReplaceData(*args
, **kwargs
))
2893 __swig_destroy__
= _windows_
.delete_FindReplaceData
2894 __del__
= lambda self
: None;
2895 def GetFindString(*args
, **kwargs
):
2897 GetFindString(self) -> String
2899 Get the string to find.
2901 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2903 def GetReplaceString(*args
, **kwargs
):
2905 GetReplaceString(self) -> String
2907 Get the replacement string.
2909 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2911 def GetFlags(*args
, **kwargs
):
2913 GetFlags(self) -> int
2915 Get the combination of flag values.
2917 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
2919 def SetFlags(*args
, **kwargs
):
2921 SetFlags(self, int flags)
2923 Set the flags to use to initialize the controls of the dialog.
2925 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
2927 def SetFindString(*args
, **kwargs
):
2929 SetFindString(self, String str)
2931 Set the string to find (used as initial value by the dialog).
2933 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
2935 def SetReplaceString(*args
, **kwargs
):
2937 SetReplaceString(self, String str)
2939 Set the replacement string (used as initial value by the dialog).
2941 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2943 _windows_
.FindReplaceData_swigregister(FindReplaceData
)
2945 class FindReplaceDialog(Dialog
):
2947 wx.FindReplaceDialog is a standard modeless dialog which is used to
2948 allow the user to search for some text (and possibly replace it with
2949 something else). The actual searching is supposed to be done in the
2950 owner window which is the parent of this dialog. Note that it means
2951 that unlike for the other standard dialogs this one must have a parent
2952 window. Also note that there is no way to use this dialog in a modal
2953 way; it is always, by design and implementation, modeless.
2955 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2956 __repr__
= _swig_repr
2957 def __init__(self
, *args
, **kwargs
):
2959 __init__(self, Window parent, FindReplaceData data, String title,
2960 int style=0) -> FindReplaceDialog
2962 Create a FindReplaceDialog. The parent and data parameters must be
2963 non-None. Use Show to display the dialog.
2965 _windows_
.FindReplaceDialog_swiginit(self
,_windows_
.new_FindReplaceDialog(*args
, **kwargs
))
2966 self
._setOORInfo
(self
)
2968 def Create(*args
, **kwargs
):
2970 Create(self, Window parent, FindReplaceData data, String title,
2971 int style=0) -> bool
2973 Create the dialog, for 2-phase create.
2975 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
2977 def GetData(*args
, **kwargs
):
2979 GetData(self) -> FindReplaceData
2981 Get the FindReplaceData object used by this dialog.
2983 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
2985 def SetData(*args
, **kwargs
):
2987 SetData(self, FindReplaceData data)
2989 Set the FindReplaceData object used by this dialog.
2991 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
2993 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialog
)
2995 def PreFindReplaceDialog(*args
, **kwargs
):
2997 PreFindReplaceDialog() -> FindReplaceDialog
2999 Precreate a FindReplaceDialog for 2-phase creation
3001 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3004 #---------------------------------------------------------------------------
3006 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3007 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3008 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3009 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3010 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3011 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3012 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3013 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3014 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3015 class MDIParentFrame(Frame
):
3016 """Proxy of C++ MDIParentFrame class"""
3017 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3018 __repr__
= _swig_repr
3019 def __init__(self
, *args
, **kwargs
):
3021 __init__(self, Window parent, int id=-1, String title=EmptyString,
3022 Point pos=DefaultPosition, Size size=DefaultSize,
3023 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3024 String name=FrameNameStr) -> MDIParentFrame
3026 _windows_
.MDIParentFrame_swiginit(self
,_windows_
.new_MDIParentFrame(*args
, **kwargs
))
3027 self
._setOORInfo
(self
)
3029 def Create(*args
, **kwargs
):
3031 Create(self, Window parent, int id=-1, String title=EmptyString,
3032 Point pos=DefaultPosition, Size size=DefaultSize,
3033 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3034 String name=FrameNameStr) -> bool
3036 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3038 def ActivateNext(*args
, **kwargs
):
3039 """ActivateNext(self)"""
3040 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3042 def ActivatePrevious(*args
, **kwargs
):
3043 """ActivatePrevious(self)"""
3044 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3046 def ArrangeIcons(*args
, **kwargs
):
3047 """ArrangeIcons(self)"""
3048 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3050 def Cascade(*args
, **kwargs
):
3052 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3054 def GetActiveChild(*args
, **kwargs
):
3055 """GetActiveChild(self) -> MDIChildFrame"""
3056 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3058 def GetClientWindow(*args
, **kwargs
):
3059 """GetClientWindow(self) -> MDIClientWindow"""
3060 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3062 def GetToolBar(*args
, **kwargs
):
3063 """GetToolBar(self) -> Window"""
3064 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3066 def Tile(*args
, **kwargs
):
3067 """Tile(self, int orient=HORIZONTAL)"""
3068 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3070 _windows_
.MDIParentFrame_swigregister(MDIParentFrame
)
3072 def PreMDIParentFrame(*args
, **kwargs
):
3073 """PreMDIParentFrame() -> MDIParentFrame"""
3074 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3077 class MDIChildFrame(Frame
):
3078 """Proxy of C++ MDIChildFrame class"""
3079 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3080 __repr__
= _swig_repr
3081 def __init__(self
, *args
, **kwargs
):
3083 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3084 Point pos=DefaultPosition, Size size=DefaultSize,
3085 long style=DEFAULT_FRAME_STYLE,
3086 String name=FrameNameStr) -> MDIChildFrame
3088 _windows_
.MDIChildFrame_swiginit(self
,_windows_
.new_MDIChildFrame(*args
, **kwargs
))
3089 self
._setOORInfo
(self
)
3091 def Create(*args
, **kwargs
):
3093 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3094 Point pos=DefaultPosition, Size size=DefaultSize,
3095 long style=DEFAULT_FRAME_STYLE,
3096 String name=FrameNameStr) -> bool
3098 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3100 def Activate(*args
, **kwargs
):
3101 """Activate(self)"""
3102 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3104 _windows_
.MDIChildFrame_swigregister(MDIChildFrame
)
3106 def PreMDIChildFrame(*args
, **kwargs
):
3107 """PreMDIChildFrame() -> MDIChildFrame"""
3108 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3111 class MDIClientWindow(_core
.Window
):
3112 """Proxy of C++ MDIClientWindow class"""
3113 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3114 __repr__
= _swig_repr
3115 def __init__(self
, *args
, **kwargs
):
3116 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3117 _windows_
.MDIClientWindow_swiginit(self
,_windows_
.new_MDIClientWindow(*args
, **kwargs
))
3118 self
._setOORInfo
(self
)
3120 def Create(*args
, **kwargs
):
3121 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3122 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3124 _windows_
.MDIClientWindow_swigregister(MDIClientWindow
)
3126 def PreMDIClientWindow(*args
, **kwargs
):
3127 """PreMDIClientWindow() -> MDIClientWindow"""
3128 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3131 #---------------------------------------------------------------------------
3133 class PyWindow(_core
.Window
):
3134 """Proxy of C++ PyWindow class"""
3135 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3136 __repr__
= _swig_repr
3137 def __init__(self
, *args
, **kwargs
):
3139 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3140 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3142 _windows_
.PyWindow_swiginit(self
,_windows_
.new_PyWindow(*args
, **kwargs
))
3143 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3145 def _setCallbackInfo(*args
, **kwargs
):
3146 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3147 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3149 def SetBestSize(*args
, **kwargs
):
3150 """SetBestSize(self, Size size)"""
3151 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3153 def DoEraseBackground(*args
, **kwargs
):
3154 """DoEraseBackground(self, DC dc) -> bool"""
3155 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3157 def DoMoveWindow(*args
, **kwargs
):
3158 """DoMoveWindow(self, int x, int y, int width, int height)"""
3159 return _windows_
.PyWindow_DoMoveWindow(*args
, **kwargs
)
3161 def DoSetSize(*args
, **kwargs
):
3162 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3163 return _windows_
.PyWindow_DoSetSize(*args
, **kwargs
)
3165 def DoSetClientSize(*args
, **kwargs
):
3166 """DoSetClientSize(self, int width, int height)"""
3167 return _windows_
.PyWindow_DoSetClientSize(*args
, **kwargs
)
3169 def DoSetVirtualSize(*args
, **kwargs
):
3170 """DoSetVirtualSize(self, int x, int y)"""
3171 return _windows_
.PyWindow_DoSetVirtualSize(*args
, **kwargs
)
3173 def DoGetSize(*args
, **kwargs
):
3174 """DoGetSize() -> (width, height)"""
3175 return _windows_
.PyWindow_DoGetSize(*args
, **kwargs
)
3177 def DoGetClientSize(*args
, **kwargs
):
3178 """DoGetClientSize() -> (width, height)"""
3179 return _windows_
.PyWindow_DoGetClientSize(*args
, **kwargs
)
3181 def DoGetPosition(*args
, **kwargs
):
3182 """DoGetPosition() -> (x,y)"""
3183 return _windows_
.PyWindow_DoGetPosition(*args
, **kwargs
)
3185 def DoGetVirtualSize(*args
, **kwargs
):
3186 """DoGetVirtualSize(self) -> Size"""
3187 return _windows_
.PyWindow_DoGetVirtualSize(*args
, **kwargs
)
3189 def DoGetBestSize(*args
, **kwargs
):
3190 """DoGetBestSize(self) -> Size"""
3191 return _windows_
.PyWindow_DoGetBestSize(*args
, **kwargs
)
3193 def GetDefaultAttributes(*args
, **kwargs
):
3194 """GetDefaultAttributes(self) -> VisualAttributes"""
3195 return _windows_
.PyWindow_GetDefaultAttributes(*args
, **kwargs
)
3197 def OnInternalIdle(*args
, **kwargs
):
3198 """OnInternalIdle(self)"""
3199 return _windows_
.PyWindow_OnInternalIdle(*args
, **kwargs
)
3201 def base_DoMoveWindow(*args
, **kw
):
3202 return PyWindow
.DoMoveWindow(*args
, **kw
)
3203 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3204 "Please use PyWindow.DoMoveWindow instead.")
3206 def base_DoSetSize(*args
, **kw
):
3207 return PyWindow
.DoSetSize(*args
, **kw
)
3208 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3209 "Please use PyWindow.DoSetSize instead.")
3211 def base_DoSetClientSize(*args
, **kw
):
3212 return PyWindow
.DoSetClientSize(*args
, **kw
)
3213 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3214 "Please use PyWindow.DoSetClientSize instead.")
3216 def base_DoSetVirtualSize(*args
, **kw
):
3217 return PyWindow
.DoSetVirtualSize(*args
, **kw
)
3218 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3219 "Please use PyWindow.DoSetVirtualSize instead.")
3221 def base_DoGetSize(*args
, **kw
):
3222 return PyWindow
.DoGetSize(*args
, **kw
)
3223 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3224 "Please use PyWindow.DoGetSize instead.")
3226 def base_DoGetClientSize(*args
, **kw
):
3227 return PyWindow
.DoGetClientSize(*args
, **kw
)
3228 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3229 "Please use PyWindow.DoGetClientSize instead.")
3231 def base_DoGetPosition(*args
, **kw
):
3232 return PyWindow
.DoGetPosition(*args
, **kw
)
3233 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3234 "Please use PyWindow.DoGetPosition instead.")
3236 def base_DoGetVirtualSize(*args
, **kw
):
3237 return PyWindow
.DoGetVirtualSize(*args
, **kw
)
3238 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3239 "Please use PyWindow.DoGetVirtualSize instead.")
3241 def base_DoGetBestSize(*args
, **kw
):
3242 return PyWindow
.DoGetBestSize(*args
, **kw
)
3243 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3244 "Please use PyWindow.DoGetBestSize instead.")
3246 def base_InitDialog(*args
, **kw
):
3247 return PyWindow
.InitDialog(*args
, **kw
)
3248 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3249 "Please use PyWindow.InitDialog instead.")
3251 def base_TransferDataToWindow(*args
, **kw
):
3252 return PyWindow
.TransferDataToWindow(*args
, **kw
)
3253 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3254 "Please use PyWindow.TransferDataToWindow instead.")
3256 def base_TransferDataFromWindow(*args
, **kw
):
3257 return PyWindow
.TransferDataFromWindow(*args
, **kw
)
3258 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3259 "Please use PyWindow.TransferDataFromWindow instead.")
3261 def base_Validate(*args
, **kw
):
3262 return PyWindow
.Validate(*args
, **kw
)
3263 base_Validate
= wx
._deprecated
(base_Validate
,
3264 "Please use PyWindow.Validate instead.")
3266 def base_AcceptsFocus(*args
, **kw
):
3267 return PyWindow
.AcceptsFocus(*args
, **kw
)
3268 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3269 "Please use PyWindow.AcceptsFocus instead.")
3271 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3272 return PyWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3273 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3274 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3276 def base_GetMaxSize(*args
, **kw
):
3277 return PyWindow
.GetMaxSize(*args
, **kw
)
3278 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3279 "Please use PyWindow.GetMaxSize instead.")
3281 def base_AddChild(*args
, **kw
):
3282 return PyWindow
.AddChild(*args
, **kw
)
3283 base_AddChild
= wx
._deprecated
(base_AddChild
,
3284 "Please use PyWindow.AddChild instead.")
3286 def base_RemoveChild(*args
, **kw
):
3287 return PyWindow
.RemoveChild(*args
, **kw
)
3288 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3289 "Please use PyWindow.RemoveChild instead.")
3291 def base_ShouldInheritColours(*args
, **kw
):
3292 return PyWindow
.ShouldInheritColours(*args
, **kw
)
3293 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3294 "Please use PyWindow.ShouldInheritColours instead.")
3296 def base_GetDefaultAttributes(*args
, **kw
):
3297 return PyWindow
.GetDefaultAttributes(*args
, **kw
)
3298 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3299 "Please use PyWindow.GetDefaultAttributes instead.")
3301 def base_OnInternalIdle(*args
, **kw
):
3302 return PyWindow
.OnInternalIdle(*args
, **kw
)
3303 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3304 "Please use PyWindow.OnInternalIdle instead.")
3306 _windows_
.PyWindow_swigregister(PyWindow
)
3308 def PrePyWindow(*args
, **kwargs
):
3309 """PrePyWindow() -> PyWindow"""
3310 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3313 class PyPanel(Panel
):
3314 """Proxy of C++ PyPanel class"""
3315 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3316 __repr__
= _swig_repr
3317 def __init__(self
, *args
, **kwargs
):
3319 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3320 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3322 _windows_
.PyPanel_swiginit(self
,_windows_
.new_PyPanel(*args
, **kwargs
))
3323 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3325 def _setCallbackInfo(*args
, **kwargs
):
3326 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3327 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3329 def SetBestSize(*args
, **kwargs
):
3330 """SetBestSize(self, Size size)"""
3331 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3333 def DoEraseBackground(*args
, **kwargs
):
3334 """DoEraseBackground(self, DC dc) -> bool"""
3335 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3337 def DoMoveWindow(*args
, **kwargs
):
3338 """DoMoveWindow(self, int x, int y, int width, int height)"""
3339 return _windows_
.PyPanel_DoMoveWindow(*args
, **kwargs
)
3341 def DoSetSize(*args
, **kwargs
):
3342 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3343 return _windows_
.PyPanel_DoSetSize(*args
, **kwargs
)
3345 def DoSetClientSize(*args
, **kwargs
):
3346 """DoSetClientSize(self, int width, int height)"""
3347 return _windows_
.PyPanel_DoSetClientSize(*args
, **kwargs
)
3349 def DoSetVirtualSize(*args
, **kwargs
):
3350 """DoSetVirtualSize(self, int x, int y)"""
3351 return _windows_
.PyPanel_DoSetVirtualSize(*args
, **kwargs
)
3353 def DoGetSize(*args
, **kwargs
):
3354 """DoGetSize() -> (width, height)"""
3355 return _windows_
.PyPanel_DoGetSize(*args
, **kwargs
)
3357 def DoGetClientSize(*args
, **kwargs
):
3358 """DoGetClientSize() -> (width, height)"""
3359 return _windows_
.PyPanel_DoGetClientSize(*args
, **kwargs
)
3361 def DoGetPosition(*args
, **kwargs
):
3362 """DoGetPosition() -> (x,y)"""
3363 return _windows_
.PyPanel_DoGetPosition(*args
, **kwargs
)
3365 def DoGetVirtualSize(*args
, **kwargs
):
3366 """DoGetVirtualSize(self) -> Size"""
3367 return _windows_
.PyPanel_DoGetVirtualSize(*args
, **kwargs
)
3369 def DoGetBestSize(*args
, **kwargs
):
3370 """DoGetBestSize(self) -> Size"""
3371 return _windows_
.PyPanel_DoGetBestSize(*args
, **kwargs
)
3373 def GetDefaultAttributes(*args
, **kwargs
):
3374 """GetDefaultAttributes(self) -> VisualAttributes"""
3375 return _windows_
.PyPanel_GetDefaultAttributes(*args
, **kwargs
)
3377 def OnInternalIdle(*args
, **kwargs
):
3378 """OnInternalIdle(self)"""
3379 return _windows_
.PyPanel_OnInternalIdle(*args
, **kwargs
)
3381 def base_DoMoveWindow(*args
, **kw
):
3382 return PyPanel
.DoMoveWindow(*args
, **kw
)
3383 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3384 "Please use PyPanel.DoMoveWindow instead.")
3386 def base_DoSetSize(*args
, **kw
):
3387 return PyPanel
.DoSetSize(*args
, **kw
)
3388 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3389 "Please use PyPanel.DoSetSize instead.")
3391 def base_DoSetClientSize(*args
, **kw
):
3392 return PyPanel
.DoSetClientSize(*args
, **kw
)
3393 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3394 "Please use PyPanel.DoSetClientSize instead.")
3396 def base_DoSetVirtualSize(*args
, **kw
):
3397 return PyPanel
.DoSetVirtualSize(*args
, **kw
)
3398 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3399 "Please use PyPanel.DoSetVirtualSize instead.")
3401 def base_DoGetSize(*args
, **kw
):
3402 return PyPanel
.DoGetSize(*args
, **kw
)
3403 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3404 "Please use PyPanel.DoGetSize instead.")
3406 def base_DoGetClientSize(*args
, **kw
):
3407 return PyPanel
.DoGetClientSize(*args
, **kw
)
3408 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3409 "Please use PyPanel.DoGetClientSize instead.")
3411 def base_DoGetPosition(*args
, **kw
):
3412 return PyPanel
.DoGetPosition(*args
, **kw
)
3413 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3414 "Please use PyPanel.DoGetPosition instead.")
3416 def base_DoGetVirtualSize(*args
, **kw
):
3417 return PyPanel
.DoGetVirtualSize(*args
, **kw
)
3418 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3419 "Please use PyPanel.DoGetVirtualSize instead.")
3421 def base_DoGetBestSize(*args
, **kw
):
3422 return PyPanel
.DoGetBestSize(*args
, **kw
)
3423 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3424 "Please use PyPanel.DoGetBestSize instead.")
3426 def base_InitDialog(*args
, **kw
):
3427 return PyPanel
.InitDialog(*args
, **kw
)
3428 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3429 "Please use PyPanel.InitDialog instead.")
3431 def base_TransferDataToWindow(*args
, **kw
):
3432 return PyPanel
.TransferDataToWindow(*args
, **kw
)
3433 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3434 "Please use PyPanel.TransferDataToWindow instead.")
3436 def base_TransferDataFromWindow(*args
, **kw
):
3437 return PyPanel
.TransferDataFromWindow(*args
, **kw
)
3438 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3439 "Please use PyPanel.TransferDataFromWindow instead.")
3441 def base_Validate(*args
, **kw
):
3442 return PyPanel
.Validate(*args
, **kw
)
3443 base_Validate
= wx
._deprecated
(base_Validate
,
3444 "Please use PyPanel.Validate instead.")
3446 def base_AcceptsFocus(*args
, **kw
):
3447 return PyPanel
.AcceptsFocus(*args
, **kw
)
3448 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3449 "Please use PyPanel.AcceptsFocus instead.")
3451 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3452 return PyPanel
.AcceptsFocusFromKeyboard(*args
, **kw
)
3453 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3454 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
3456 def base_GetMaxSize(*args
, **kw
):
3457 return PyPanel
.GetMaxSize(*args
, **kw
)
3458 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3459 "Please use PyPanel.GetMaxSize instead.")
3461 def base_AddChild(*args
, **kw
):
3462 return PyPanel
.AddChild(*args
, **kw
)
3463 base_AddChild
= wx
._deprecated
(base_AddChild
,
3464 "Please use PyPanel.AddChild instead.")
3466 def base_RemoveChild(*args
, **kw
):
3467 return PyPanel
.RemoveChild(*args
, **kw
)
3468 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3469 "Please use PyPanel.RemoveChild instead.")
3471 def base_ShouldInheritColours(*args
, **kw
):
3472 return PyPanel
.ShouldInheritColours(*args
, **kw
)
3473 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3474 "Please use PyPanel.ShouldInheritColours instead.")
3476 def base_GetDefaultAttributes(*args
, **kw
):
3477 return PyPanel
.GetDefaultAttributes(*args
, **kw
)
3478 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3479 "Please use PyPanel.GetDefaultAttributes instead.")
3481 def base_OnInternalIdle(*args
, **kw
):
3482 return PyPanel
.OnInternalIdle(*args
, **kw
)
3483 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3484 "Please use PyPanel.OnInternalIdle instead.")
3486 _windows_
.PyPanel_swigregister(PyPanel
)
3488 def PrePyPanel(*args
, **kwargs
):
3489 """PrePyPanel() -> PyPanel"""
3490 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3493 class PyScrolledWindow(ScrolledWindow
):
3494 """Proxy of C++ PyScrolledWindow class"""
3495 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3496 __repr__
= _swig_repr
3497 def __init__(self
, *args
, **kwargs
):
3499 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3500 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3502 _windows_
.PyScrolledWindow_swiginit(self
,_windows_
.new_PyScrolledWindow(*args
, **kwargs
))
3503 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3505 def _setCallbackInfo(*args
, **kwargs
):
3506 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3507 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3509 def SetBestSize(*args
, **kwargs
):
3510 """SetBestSize(self, Size size)"""
3511 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3513 def DoEraseBackground(*args
, **kwargs
):
3514 """DoEraseBackground(self, DC dc) -> bool"""
3515 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3517 def DoMoveWindow(*args
, **kwargs
):
3518 """DoMoveWindow(self, int x, int y, int width, int height)"""
3519 return _windows_
.PyScrolledWindow_DoMoveWindow(*args
, **kwargs
)
3521 def DoSetSize(*args
, **kwargs
):
3522 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3523 return _windows_
.PyScrolledWindow_DoSetSize(*args
, **kwargs
)
3525 def DoSetClientSize(*args
, **kwargs
):
3526 """DoSetClientSize(self, int width, int height)"""
3527 return _windows_
.PyScrolledWindow_DoSetClientSize(*args
, **kwargs
)
3529 def DoSetVirtualSize(*args
, **kwargs
):
3530 """DoSetVirtualSize(self, int x, int y)"""
3531 return _windows_
.PyScrolledWindow_DoSetVirtualSize(*args
, **kwargs
)
3533 def DoGetSize(*args
, **kwargs
):
3534 """DoGetSize() -> (width, height)"""
3535 return _windows_
.PyScrolledWindow_DoGetSize(*args
, **kwargs
)
3537 def DoGetClientSize(*args
, **kwargs
):
3538 """DoGetClientSize() -> (width, height)"""
3539 return _windows_
.PyScrolledWindow_DoGetClientSize(*args
, **kwargs
)
3541 def DoGetPosition(*args
, **kwargs
):
3542 """DoGetPosition() -> (x,y)"""
3543 return _windows_
.PyScrolledWindow_DoGetPosition(*args
, **kwargs
)
3545 def DoGetVirtualSize(*args
, **kwargs
):
3546 """DoGetVirtualSize(self) -> Size"""
3547 return _windows_
.PyScrolledWindow_DoGetVirtualSize(*args
, **kwargs
)
3549 def DoGetBestSize(*args
, **kwargs
):
3550 """DoGetBestSize(self) -> Size"""
3551 return _windows_
.PyScrolledWindow_DoGetBestSize(*args
, **kwargs
)
3553 def GetDefaultAttributes(*args
, **kwargs
):
3554 """GetDefaultAttributes(self) -> VisualAttributes"""
3555 return _windows_
.PyScrolledWindow_GetDefaultAttributes(*args
, **kwargs
)
3557 def OnInternalIdle(*args
, **kwargs
):
3558 """OnInternalIdle(self)"""
3559 return _windows_
.PyScrolledWindow_OnInternalIdle(*args
, **kwargs
)
3561 def base_DoMoveWindow(*args
, **kw
):
3562 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
3563 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3564 "Please use PyScrolledWindow.DoMoveWindow instead.")
3566 def base_DoSetSize(*args
, **kw
):
3567 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
3568 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3569 "Please use PyScrolledWindow.DoSetSize instead.")
3571 def base_DoSetClientSize(*args
, **kw
):
3572 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
3573 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3574 "Please use PyScrolledWindow.DoSetClientSize instead.")
3576 def base_DoSetVirtualSize(*args
, **kw
):
3577 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
3578 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3579 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
3581 def base_DoGetSize(*args
, **kw
):
3582 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
3583 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3584 "Please use PyScrolledWindow.DoGetSize instead.")
3586 def base_DoGetClientSize(*args
, **kw
):
3587 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
3588 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3589 "Please use PyScrolledWindow.DoGetClientSize instead.")
3591 def base_DoGetPosition(*args
, **kw
):
3592 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
3593 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3594 "Please use PyScrolledWindow.DoGetPosition instead.")
3596 def base_DoGetVirtualSize(*args
, **kw
):
3597 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
3598 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3599 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
3601 def base_DoGetBestSize(*args
, **kw
):
3602 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
3603 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3604 "Please use PyScrolledWindow.DoGetBestSize instead.")
3606 def base_InitDialog(*args
, **kw
):
3607 return PyScrolledWindow
.InitDialog(*args
, **kw
)
3608 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3609 "Please use PyScrolledWindow.InitDialog instead.")
3611 def base_TransferDataToWindow(*args
, **kw
):
3612 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
3613 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3614 "Please use PyScrolledWindow.TransferDataToWindow instead.")
3616 def base_TransferDataFromWindow(*args
, **kw
):
3617 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
3618 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3619 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
3621 def base_Validate(*args
, **kw
):
3622 return PyScrolledWindow
.Validate(*args
, **kw
)
3623 base_Validate
= wx
._deprecated
(base_Validate
,
3624 "Please use PyScrolledWindow.Validate instead.")
3626 def base_AcceptsFocus(*args
, **kw
):
3627 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
3628 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3629 "Please use PyScrolledWindow.AcceptsFocus instead.")
3631 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3632 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3633 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3634 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
3636 def base_GetMaxSize(*args
, **kw
):
3637 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
3638 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3639 "Please use PyScrolledWindow.GetMaxSize instead.")
3641 def base_AddChild(*args
, **kw
):
3642 return PyScrolledWindow
.AddChild(*args
, **kw
)
3643 base_AddChild
= wx
._deprecated
(base_AddChild
,
3644 "Please use PyScrolledWindow.AddChild instead.")
3646 def base_RemoveChild(*args
, **kw
):
3647 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
3648 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3649 "Please use PyScrolledWindow.RemoveChild instead.")
3651 def base_ShouldInheritColours(*args
, **kw
):
3652 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
3653 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3654 "Please use PyScrolledWindow.ShouldInheritColours instead.")
3656 def base_GetDefaultAttributes(*args
, **kw
):
3657 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
3658 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3659 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
3661 def base_OnInternalIdle(*args
, **kw
):
3662 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
3663 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3664 "Please use PyScrolledWindow.OnInternalIdle instead.")
3666 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindow
)
3668 def PrePyScrolledWindow(*args
, **kwargs
):
3669 """PrePyScrolledWindow() -> PyScrolledWindow"""
3670 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3673 #---------------------------------------------------------------------------
3675 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3676 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3677 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3678 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3679 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3680 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3681 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3682 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3683 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3684 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3685 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3686 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3687 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3688 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3689 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3690 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3691 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3692 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3693 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3694 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3695 class PrintData(_core
.Object
):
3696 """Proxy of C++ PrintData class"""
3697 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3698 __repr__
= _swig_repr
3699 def __init__(self
, *args
):
3701 __init__(self) -> PrintData
3702 __init__(self, PrintData data) -> PrintData
3704 _windows_
.PrintData_swiginit(self
,_windows_
.new_PrintData(*args
))
3705 __swig_destroy__
= _windows_
.delete_PrintData
3706 __del__
= lambda self
: None;
3707 def GetNoCopies(*args
, **kwargs
):
3708 """GetNoCopies(self) -> int"""
3709 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3711 def GetCollate(*args
, **kwargs
):
3712 """GetCollate(self) -> bool"""
3713 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3715 def GetOrientation(*args
, **kwargs
):
3716 """GetOrientation(self) -> int"""
3717 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3719 def Ok(*args
, **kwargs
):
3720 """Ok(self) -> bool"""
3721 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3723 def GetPrinterName(*args
, **kwargs
):
3724 """GetPrinterName(self) -> String"""
3725 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3727 def GetColour(*args
, **kwargs
):
3728 """GetColour(self) -> bool"""
3729 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3731 def GetDuplex(*args
, **kwargs
):
3732 """GetDuplex(self) -> int"""
3733 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3735 def GetPaperId(*args
, **kwargs
):
3736 """GetPaperId(self) -> int"""
3737 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3739 def GetPaperSize(*args
, **kwargs
):
3740 """GetPaperSize(self) -> Size"""
3741 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3743 def GetQuality(*args
, **kwargs
):
3744 """GetQuality(self) -> int"""
3745 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3747 def GetBin(*args
, **kwargs
):
3748 """GetBin(self) -> int"""
3749 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3751 def GetPrintMode(*args
, **kwargs
):
3752 """GetPrintMode(self) -> int"""
3753 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3755 def SetNoCopies(*args
, **kwargs
):
3756 """SetNoCopies(self, int v)"""
3757 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3759 def SetCollate(*args
, **kwargs
):
3760 """SetCollate(self, bool flag)"""
3761 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3763 def SetOrientation(*args
, **kwargs
):
3764 """SetOrientation(self, int orient)"""
3765 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3767 def SetPrinterName(*args
, **kwargs
):
3768 """SetPrinterName(self, String name)"""
3769 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3771 def SetColour(*args
, **kwargs
):
3772 """SetColour(self, bool colour)"""
3773 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3775 def SetDuplex(*args
, **kwargs
):
3776 """SetDuplex(self, int duplex)"""
3777 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3779 def SetPaperId(*args
, **kwargs
):
3780 """SetPaperId(self, int sizeId)"""
3781 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3783 def SetPaperSize(*args
, **kwargs
):
3784 """SetPaperSize(self, Size sz)"""
3785 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3787 def SetQuality(*args
, **kwargs
):
3788 """SetQuality(self, int quality)"""
3789 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3791 def SetBin(*args
, **kwargs
):
3792 """SetBin(self, int bin)"""
3793 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3795 def SetPrintMode(*args
, **kwargs
):
3796 """SetPrintMode(self, int printMode)"""
3797 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3799 def GetFilename(*args
, **kwargs
):
3800 """GetFilename(self) -> String"""
3801 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3803 def SetFilename(*args
, **kwargs
):
3804 """SetFilename(self, String filename)"""
3805 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3807 def __nonzero__(self
): return self
.Ok()
3808 def GetPrivData(*args
, **kwargs
):
3809 """GetPrivData(self) -> PyObject"""
3810 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
3812 def SetPrivData(*args
, **kwargs
):
3813 """SetPrivData(self, PyObject data)"""
3814 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
3816 _windows_
.PrintData_swigregister(PrintData
)
3817 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3818 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3820 class PageSetupDialogData(_core
.Object
):
3821 """Proxy of C++ PageSetupDialogData class"""
3822 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3823 __repr__
= _swig_repr
3824 def __init__(self
, *args
):
3826 __init__(self) -> PageSetupDialogData
3827 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3828 __init__(self, PrintData data) -> PageSetupDialogData
3830 _windows_
.PageSetupDialogData_swiginit(self
,_windows_
.new_PageSetupDialogData(*args
))
3831 __swig_destroy__
= _windows_
.delete_PageSetupDialogData
3832 __del__
= lambda self
: None;
3833 def EnableHelp(*args
, **kwargs
):
3834 """EnableHelp(self, bool flag)"""
3835 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3837 def EnableMargins(*args
, **kwargs
):
3838 """EnableMargins(self, bool flag)"""
3839 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3841 def EnableOrientation(*args
, **kwargs
):
3842 """EnableOrientation(self, bool flag)"""
3843 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3845 def EnablePaper(*args
, **kwargs
):
3846 """EnablePaper(self, bool flag)"""
3847 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3849 def EnablePrinter(*args
, **kwargs
):
3850 """EnablePrinter(self, bool flag)"""
3851 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3853 def GetDefaultMinMargins(*args
, **kwargs
):
3854 """GetDefaultMinMargins(self) -> bool"""
3855 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3857 def GetEnableMargins(*args
, **kwargs
):
3858 """GetEnableMargins(self) -> bool"""
3859 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3861 def GetEnableOrientation(*args
, **kwargs
):
3862 """GetEnableOrientation(self) -> bool"""
3863 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3865 def GetEnablePaper(*args
, **kwargs
):
3866 """GetEnablePaper(self) -> bool"""
3867 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3869 def GetEnablePrinter(*args
, **kwargs
):
3870 """GetEnablePrinter(self) -> bool"""
3871 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3873 def GetEnableHelp(*args
, **kwargs
):
3874 """GetEnableHelp(self) -> bool"""
3875 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3877 def GetDefaultInfo(*args
, **kwargs
):
3878 """GetDefaultInfo(self) -> bool"""
3879 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3881 def GetMarginTopLeft(*args
, **kwargs
):
3882 """GetMarginTopLeft(self) -> Point"""
3883 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3885 def GetMarginBottomRight(*args
, **kwargs
):
3886 """GetMarginBottomRight(self) -> Point"""
3887 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3889 def GetMinMarginTopLeft(*args
, **kwargs
):
3890 """GetMinMarginTopLeft(self) -> Point"""
3891 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3893 def GetMinMarginBottomRight(*args
, **kwargs
):
3894 """GetMinMarginBottomRight(self) -> Point"""
3895 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3897 def GetPaperId(*args
, **kwargs
):
3898 """GetPaperId(self) -> int"""
3899 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3901 def GetPaperSize(*args
, **kwargs
):
3902 """GetPaperSize(self) -> Size"""
3903 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3905 def GetPrintData(*args
, **kwargs
):
3906 """GetPrintData(self) -> PrintData"""
3907 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3909 def Ok(*args
, **kwargs
):
3910 """Ok(self) -> bool"""
3911 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3913 def SetDefaultInfo(*args
, **kwargs
):
3914 """SetDefaultInfo(self, bool flag)"""
3915 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3917 def SetDefaultMinMargins(*args
, **kwargs
):
3918 """SetDefaultMinMargins(self, bool flag)"""
3919 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3921 def SetMarginTopLeft(*args
, **kwargs
):
3922 """SetMarginTopLeft(self, Point pt)"""
3923 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3925 def SetMarginBottomRight(*args
, **kwargs
):
3926 """SetMarginBottomRight(self, Point pt)"""
3927 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3929 def SetMinMarginTopLeft(*args
, **kwargs
):
3930 """SetMinMarginTopLeft(self, Point pt)"""
3931 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3933 def SetMinMarginBottomRight(*args
, **kwargs
):
3934 """SetMinMarginBottomRight(self, Point pt)"""
3935 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3937 def SetPaperId(*args
, **kwargs
):
3938 """SetPaperId(self, int id)"""
3939 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3941 def SetPaperSize(*args
, **kwargs
):
3942 """SetPaperSize(self, Size size)"""
3943 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3945 def SetPrintData(*args
, **kwargs
):
3946 """SetPrintData(self, PrintData printData)"""
3947 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3949 def CalculateIdFromPaperSize(*args
, **kwargs
):
3950 """CalculateIdFromPaperSize(self)"""
3951 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
3953 def CalculatePaperSizeFromId(*args
, **kwargs
):
3954 """CalculatePaperSizeFromId(self)"""
3955 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
3957 def __nonzero__(self
): return self
.Ok()
3958 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogData
)
3960 class PageSetupDialog(_core
.Object
):
3961 """Proxy of C++ PageSetupDialog class"""
3962 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3963 __repr__
= _swig_repr
3964 def __init__(self
, *args
, **kwargs
):
3965 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3966 _windows_
.PageSetupDialog_swiginit(self
,_windows_
.new_PageSetupDialog(*args
, **kwargs
))
3967 __swig_destroy__
= _windows_
.delete_PageSetupDialog
3968 __del__
= lambda self
: None;
3969 def GetPageSetupData(*args
, **kwargs
):
3970 """GetPageSetupData(self) -> PageSetupDialogData"""
3971 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3973 def GetPageSetupDialogData(*args
, **kwargs
):
3974 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
3975 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
3977 def ShowModal(*args
, **kwargs
):
3978 """ShowModal(self) -> int"""
3979 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3981 def Destroy(self
): pass
3982 _windows_
.PageSetupDialog_swigregister(PageSetupDialog
)
3984 class PrintDialogData(_core
.Object
):
3985 """Proxy of C++ PrintDialogData 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) -> PrintDialogData
3991 __init__(self, PrintData printData) -> PrintDialogData
3992 __init__(self, PrintDialogData printData) -> PrintDialogData
3994 _windows_
.PrintDialogData_swiginit(self
,_windows_
.new_PrintDialogData(*args
))
3995 __swig_destroy__
= _windows_
.delete_PrintDialogData
3996 __del__
= lambda self
: None;
3997 def GetFromPage(*args
, **kwargs
):
3998 """GetFromPage(self) -> int"""
3999 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4001 def GetToPage(*args
, **kwargs
):
4002 """GetToPage(self) -> int"""
4003 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4005 def GetMinPage(*args
, **kwargs
):
4006 """GetMinPage(self) -> int"""
4007 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4009 def GetMaxPage(*args
, **kwargs
):
4010 """GetMaxPage(self) -> int"""
4011 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4013 def GetNoCopies(*args
, **kwargs
):
4014 """GetNoCopies(self) -> int"""
4015 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4017 def GetAllPages(*args
, **kwargs
):
4018 """GetAllPages(self) -> bool"""
4019 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4021 def GetSelection(*args
, **kwargs
):
4022 """GetSelection(self) -> bool"""
4023 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4025 def GetCollate(*args
, **kwargs
):
4026 """GetCollate(self) -> bool"""
4027 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4029 def GetPrintToFile(*args
, **kwargs
):
4030 """GetPrintToFile(self) -> bool"""
4031 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4033 def SetFromPage(*args
, **kwargs
):
4034 """SetFromPage(self, int v)"""
4035 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4037 def SetToPage(*args
, **kwargs
):
4038 """SetToPage(self, int v)"""
4039 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4041 def SetMinPage(*args
, **kwargs
):
4042 """SetMinPage(self, int v)"""
4043 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4045 def SetMaxPage(*args
, **kwargs
):
4046 """SetMaxPage(self, int v)"""
4047 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4049 def SetNoCopies(*args
, **kwargs
):
4050 """SetNoCopies(self, int v)"""
4051 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4053 def SetAllPages(*args
, **kwargs
):
4054 """SetAllPages(self, bool flag)"""
4055 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4057 def SetSelection(*args
, **kwargs
):
4058 """SetSelection(self, bool flag)"""
4059 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4061 def SetCollate(*args
, **kwargs
):
4062 """SetCollate(self, bool flag)"""
4063 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4065 def SetPrintToFile(*args
, **kwargs
):
4066 """SetPrintToFile(self, bool flag)"""
4067 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4069 def EnablePrintToFile(*args
, **kwargs
):
4070 """EnablePrintToFile(self, bool flag)"""
4071 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4073 def EnableSelection(*args
, **kwargs
):
4074 """EnableSelection(self, bool flag)"""
4075 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4077 def EnablePageNumbers(*args
, **kwargs
):
4078 """EnablePageNumbers(self, bool flag)"""
4079 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4081 def EnableHelp(*args
, **kwargs
):
4082 """EnableHelp(self, bool flag)"""
4083 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4085 def GetEnablePrintToFile(*args
, **kwargs
):
4086 """GetEnablePrintToFile(self) -> bool"""
4087 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4089 def GetEnableSelection(*args
, **kwargs
):
4090 """GetEnableSelection(self) -> bool"""
4091 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4093 def GetEnablePageNumbers(*args
, **kwargs
):
4094 """GetEnablePageNumbers(self) -> bool"""
4095 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4097 def GetEnableHelp(*args
, **kwargs
):
4098 """GetEnableHelp(self) -> bool"""
4099 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4101 def Ok(*args
, **kwargs
):
4102 """Ok(self) -> bool"""
4103 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4105 def GetPrintData(*args
, **kwargs
):
4106 """GetPrintData(self) -> PrintData"""
4107 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4109 def SetPrintData(*args
, **kwargs
):
4110 """SetPrintData(self, PrintData printData)"""
4111 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4113 def __nonzero__(self
): return self
.Ok()
4114 _windows_
.PrintDialogData_swigregister(PrintDialogData
)
4116 class PrintDialog(_core
.Object
):
4117 """Proxy of C++ PrintDialog class"""
4118 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4119 __repr__
= _swig_repr
4120 def __init__(self
, *args
, **kwargs
):
4121 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4122 _windows_
.PrintDialog_swiginit(self
,_windows_
.new_PrintDialog(*args
, **kwargs
))
4123 __swig_destroy__
= _windows_
.delete_PrintDialog
4124 __del__
= lambda self
: None;
4125 def ShowModal(*args
, **kwargs
):
4126 """ShowModal(self) -> int"""
4127 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4129 def GetPrintDialogData(*args
, **kwargs
):
4130 """GetPrintDialogData(self) -> PrintDialogData"""
4131 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4133 def GetPrintData(*args
, **kwargs
):
4134 """GetPrintData(self) -> PrintData"""
4135 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4137 def GetPrintDC(*args
, **kwargs
):
4138 """GetPrintDC(self) -> DC"""
4139 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4141 def Destroy(self
): pass
4142 _windows_
.PrintDialog_swigregister(PrintDialog
)
4144 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4145 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4146 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4147 class Printer(_core
.Object
):
4148 """Proxy of C++ Printer class"""
4149 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4150 __repr__
= _swig_repr
4151 def __init__(self
, *args
, **kwargs
):
4152 """__init__(self, PrintDialogData data=None) -> Printer"""
4153 _windows_
.Printer_swiginit(self
,_windows_
.new_Printer(*args
, **kwargs
))
4154 __swig_destroy__
= _windows_
.delete_Printer
4155 __del__
= lambda self
: None;
4156 def CreateAbortWindow(*args
, **kwargs
):
4157 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4158 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4160 def ReportError(*args
, **kwargs
):
4161 """ReportError(self, Window parent, Printout printout, String message)"""
4162 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4164 def Setup(*args
, **kwargs
):
4165 """Setup(self, Window parent) -> bool"""
4166 return _windows_
.Printer_Setup(*args
, **kwargs
)
4168 def Print(*args
, **kwargs
):
4169 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4170 return _windows_
.Printer_Print(*args
, **kwargs
)
4172 def PrintDialog(*args
, **kwargs
):
4173 """PrintDialog(self, Window parent) -> DC"""
4174 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4176 def GetPrintDialogData(*args
, **kwargs
):
4177 """GetPrintDialogData(self) -> PrintDialogData"""
4178 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4180 def GetAbort(*args
, **kwargs
):
4181 """GetAbort(self) -> bool"""
4182 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4184 def GetLastError(*args
, **kwargs
):
4185 """GetLastError() -> int"""
4186 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4188 GetLastError
= staticmethod(GetLastError
)
4189 _windows_
.Printer_swigregister(Printer
)
4191 def Printer_GetLastError(*args
):
4192 """Printer_GetLastError() -> int"""
4193 return _windows_
.Printer_GetLastError(*args
)
4195 class Printout(_core
.Object
):
4196 """Proxy of C++ Printout class"""
4197 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4198 __repr__
= _swig_repr
4199 def __init__(self
, *args
, **kwargs
):
4200 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4201 _windows_
.Printout_swiginit(self
,_windows_
.new_Printout(*args
, **kwargs
))
4202 self
._setCallbackInfo
(self
, Printout
)
4204 __swig_destroy__
= _windows_
.delete_Printout
4205 __del__
= lambda self
: None;
4206 def _setCallbackInfo(*args
, **kwargs
):
4207 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4208 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4210 def GetTitle(*args
, **kwargs
):
4211 """GetTitle(self) -> String"""
4212 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4214 def GetDC(*args
, **kwargs
):
4215 """GetDC(self) -> DC"""
4216 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4218 def SetDC(*args
, **kwargs
):
4219 """SetDC(self, DC dc)"""
4220 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4222 def SetPageSizePixels(*args
, **kwargs
):
4223 """SetPageSizePixels(self, int w, int h)"""
4224 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4226 def GetPageSizePixels(*args
, **kwargs
):
4227 """GetPageSizePixels() -> (w, h)"""
4228 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4230 def SetPageSizeMM(*args
, **kwargs
):
4231 """SetPageSizeMM(self, int w, int h)"""
4232 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4234 def GetPageSizeMM(*args
, **kwargs
):
4235 """GetPageSizeMM() -> (w, h)"""
4236 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4238 def SetPPIScreen(*args
, **kwargs
):
4239 """SetPPIScreen(self, int x, int y)"""
4240 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4242 def GetPPIScreen(*args
, **kwargs
):
4243 """GetPPIScreen() -> (x,y)"""
4244 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4246 def SetPPIPrinter(*args
, **kwargs
):
4247 """SetPPIPrinter(self, int x, int y)"""
4248 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4250 def GetPPIPrinter(*args
, **kwargs
):
4251 """GetPPIPrinter() -> (x,y)"""
4252 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4254 def IsPreview(*args
, **kwargs
):
4255 """IsPreview(self) -> bool"""
4256 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4258 def SetIsPreview(*args
, **kwargs
):
4259 """SetIsPreview(self, bool p)"""
4260 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4262 def OnBeginDocument(*args
, **kwargs
):
4263 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4264 return _windows_
.Printout_OnBeginDocument(*args
, **kwargs
)
4266 def OnEndDocument(*args
, **kwargs
):
4267 """OnEndDocument(self)"""
4268 return _windows_
.Printout_OnEndDocument(*args
, **kwargs
)
4270 def OnBeginPrinting(*args
, **kwargs
):
4271 """OnBeginPrinting(self)"""
4272 return _windows_
.Printout_OnBeginPrinting(*args
, **kwargs
)
4274 def OnEndPrinting(*args
, **kwargs
):
4275 """OnEndPrinting(self)"""
4276 return _windows_
.Printout_OnEndPrinting(*args
, **kwargs
)
4278 def OnPreparePrinting(*args
, **kwargs
):
4279 """OnPreparePrinting(self)"""
4280 return _windows_
.Printout_OnPreparePrinting(*args
, **kwargs
)
4282 def HasPage(*args
, **kwargs
):
4283 """HasPage(self, int page) -> bool"""
4284 return _windows_
.Printout_HasPage(*args
, **kwargs
)
4286 def GetPageInfo(*args
, **kwargs
):
4287 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4288 return _windows_
.Printout_GetPageInfo(*args
, **kwargs
)
4290 def base_OnBeginDocument(*args
, **kw
):
4291 return Printout
.OnBeginDocument(*args
, **kw
)
4292 base_OnBeginDocument
= wx
._deprecated
(base_OnBeginDocument
,
4293 "Please use Printout.OnBeginDocument instead.")
4295 def base_OnEndDocument(*args
, **kw
):
4296 return Printout
.OnEndDocument(*args
, **kw
)
4297 base_OnEndDocument
= wx
._deprecated
(base_OnEndDocument
,
4298 "Please use Printout.OnEndDocument instead.")
4300 def base_OnBeginPrinting(*args
, **kw
):
4301 return Printout
.OnBeginPrinting(*args
, **kw
)
4302 base_OnBeginPrinting
= wx
._deprecated
(base_OnBeginPrinting
,
4303 "Please use Printout.OnBeginPrinting instead.")
4305 def base_OnEndPrinting(*args
, **kw
):
4306 return Printout
.OnEndPrinting(*args
, **kw
)
4307 base_OnEndPrinting
= wx
._deprecated
(base_OnEndPrinting
,
4308 "Please use Printout.OnEndPrinting instead.")
4310 def base_OnPreparePrinting(*args
, **kw
):
4311 return Printout
.OnPreparePrinting(*args
, **kw
)
4312 base_OnPreparePrinting
= wx
._deprecated
(base_OnPreparePrinting
,
4313 "Please use Printout.OnPreparePrinting instead.")
4315 def base_GetPageInfo(*args
, **kw
):
4316 return Printout
.GetPageInfo(*args
, **kw
)
4317 base_GetPageInfo
= wx
._deprecated
(base_GetPageInfo
,
4318 "Please use Printout.GetPageInfo instead.")
4320 _windows_
.Printout_swigregister(Printout
)
4322 class PreviewCanvas(ScrolledWindow
):
4323 """Proxy of C++ PreviewCanvas class"""
4324 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4325 __repr__
= _swig_repr
4326 def __init__(self
, *args
, **kwargs
):
4328 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4329 Size size=DefaultSize, long style=0,
4330 String name=PreviewCanvasNameStr) -> PreviewCanvas
4332 _windows_
.PreviewCanvas_swiginit(self
,_windows_
.new_PreviewCanvas(*args
, **kwargs
))
4333 self
._setOORInfo
(self
)
4335 _windows_
.PreviewCanvas_swigregister(PreviewCanvas
)
4337 class PreviewFrame(Frame
):
4338 """Proxy of C++ PreviewFrame 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
):
4343 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4344 Size size=DefaultSize,
4345 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4347 _windows_
.PreviewFrame_swiginit(self
,_windows_
.new_PreviewFrame(*args
, **kwargs
))
4348 self
._setOORInfo
(self
)
4350 def Initialize(*args
, **kwargs
):
4351 """Initialize(self)"""
4352 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4354 def CreateControlBar(*args
, **kwargs
):
4355 """CreateControlBar(self)"""
4356 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4358 def CreateCanvas(*args
, **kwargs
):
4359 """CreateCanvas(self)"""
4360 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4362 def GetControlBar(*args
, **kwargs
):
4363 """GetControlBar(self) -> PreviewControlBar"""
4364 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4366 _windows_
.PreviewFrame_swigregister(PreviewFrame
)
4368 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4369 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4370 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4371 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4372 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4373 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4374 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4375 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4376 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4377 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4378 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4379 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4380 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4381 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4382 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4383 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4384 class PreviewControlBar(Panel
):
4385 """Proxy of C++ PreviewControlBar class"""
4386 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4387 __repr__
= _swig_repr
4388 def __init__(self
, *args
, **kwargs
):
4390 __init__(self, PrintPreview preview, long buttons, Window parent,
4391 Point pos=DefaultPosition, Size size=DefaultSize,
4392 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4394 _windows_
.PreviewControlBar_swiginit(self
,_windows_
.new_PreviewControlBar(*args
, **kwargs
))
4395 self
._setOORInfo
(self
)
4397 def GetZoomControl(*args
, **kwargs
):
4398 """GetZoomControl(self) -> int"""
4399 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4401 def SetZoomControl(*args
, **kwargs
):
4402 """SetZoomControl(self, int zoom)"""
4403 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4405 def GetPrintPreview(*args
, **kwargs
):
4406 """GetPrintPreview(self) -> PrintPreview"""
4407 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4409 def OnNext(*args
, **kwargs
):
4411 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4413 def OnPrevious(*args
, **kwargs
):
4414 """OnPrevious(self)"""
4415 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4417 def OnFirst(*args
, **kwargs
):
4419 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4421 def OnLast(*args
, **kwargs
):
4423 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4425 def OnGoto(*args
, **kwargs
):
4427 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4429 _windows_
.PreviewControlBar_swigregister(PreviewControlBar
)
4431 class PrintPreview(_core
.Object
):
4432 """Proxy of C++ PrintPreview class"""
4433 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4434 __repr__
= _swig_repr
4435 def __init__(self
, *args
):
4437 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4438 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4440 _windows_
.PrintPreview_swiginit(self
,_windows_
.new_PrintPreview(*args
))
4441 __swig_destroy__
= _windows_
.delete_PrintPreview
4442 __del__
= lambda self
: None;
4443 def SetCurrentPage(*args
, **kwargs
):
4444 """SetCurrentPage(self, int pageNum) -> bool"""
4445 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4447 def GetCurrentPage(*args
, **kwargs
):
4448 """GetCurrentPage(self) -> int"""
4449 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4451 def SetPrintout(*args
, **kwargs
):
4452 """SetPrintout(self, Printout printout)"""
4453 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4455 def GetPrintout(*args
, **kwargs
):
4456 """GetPrintout(self) -> Printout"""
4457 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4459 def GetPrintoutForPrinting(*args
, **kwargs
):
4460 """GetPrintoutForPrinting(self) -> Printout"""
4461 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4463 def SetFrame(*args
, **kwargs
):
4464 """SetFrame(self, Frame frame)"""
4465 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4467 def SetCanvas(*args
, **kwargs
):
4468 """SetCanvas(self, PreviewCanvas canvas)"""
4469 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4471 def GetFrame(*args
, **kwargs
):
4472 """GetFrame(self) -> Frame"""
4473 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4475 def GetCanvas(*args
, **kwargs
):
4476 """GetCanvas(self) -> PreviewCanvas"""
4477 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4479 def PaintPage(*args
, **kwargs
):
4480 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4481 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4483 def DrawBlankPage(*args
, **kwargs
):
4484 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4485 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4487 def RenderPage(*args
, **kwargs
):
4488 """RenderPage(self, int pageNum) -> bool"""
4489 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4491 def AdjustScrollbars(*args
, **kwargs
):
4492 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4493 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4495 def GetPrintDialogData(*args
, **kwargs
):
4496 """GetPrintDialogData(self) -> PrintDialogData"""
4497 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4499 def SetZoom(*args
, **kwargs
):
4500 """SetZoom(self, int percent)"""
4501 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4503 def GetZoom(*args
, **kwargs
):
4504 """GetZoom(self) -> int"""
4505 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4507 def GetMaxPage(*args
, **kwargs
):
4508 """GetMaxPage(self) -> int"""
4509 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4511 def GetMinPage(*args
, **kwargs
):
4512 """GetMinPage(self) -> int"""
4513 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4515 def Ok(*args
, **kwargs
):
4516 """Ok(self) -> bool"""
4517 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4519 def SetOk(*args
, **kwargs
):
4520 """SetOk(self, bool ok)"""
4521 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4523 def Print(*args
, **kwargs
):
4524 """Print(self, bool interactive) -> bool"""
4525 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4527 def DetermineScaling(*args
, **kwargs
):
4528 """DetermineScaling(self)"""
4529 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4531 def __nonzero__(self
): return self
.Ok()
4532 _windows_
.PrintPreview_swigregister(PrintPreview
)
4534 class PyPrintPreview(PrintPreview
):
4535 """Proxy of C++ PyPrintPreview class"""
4536 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4537 __repr__
= _swig_repr
4538 def __init__(self
, *args
):
4540 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4541 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4543 _windows_
.PyPrintPreview_swiginit(self
,_windows_
.new_PyPrintPreview(*args
))
4544 self
._setCallbackInfo
(self
, PyPrintPreview
)
4546 def _setCallbackInfo(*args
, **kwargs
):
4547 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4548 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4550 def base_SetCurrentPage(*args
, **kw
):
4551 return PyPrintPreview
.SetCurrentPage(*args
, **kw
)
4552 base_SetCurrentPage
= wx
._deprecated
(base_SetCurrentPage
,
4553 "Please use PyPrintPreview.SetCurrentPage instead.")
4555 def base_PaintPage(*args
, **kw
):
4556 return PyPrintPreview
.PaintPage(*args
, **kw
)
4557 base_PaintPage
= wx
._deprecated
(base_PaintPage
,
4558 "Please use PyPrintPreview.PaintPage instead.")
4560 def base_DrawBlankPage(*args
, **kw
):
4561 return PyPrintPreview
.DrawBlankPage(*args
, **kw
)
4562 base_DrawBlankPage
= wx
._deprecated
(base_DrawBlankPage
,
4563 "Please use PyPrintPreview.DrawBlankPage instead.")
4565 def base_RenderPage(*args
, **kw
):
4566 return PyPrintPreview
.RenderPage(*args
, **kw
)
4567 base_RenderPage
= wx
._deprecated
(base_RenderPage
,
4568 "Please use PyPrintPreview.RenderPage instead.")
4570 def base_SetZoom(*args
, **kw
):
4571 return PyPrintPreview
.SetZoom(*args
, **kw
)
4572 base_SetZoom
= wx
._deprecated
(base_SetZoom
,
4573 "Please use PyPrintPreview.SetZoom instead.")
4575 def base_Print(*args
, **kw
):
4576 return PyPrintPreview
.Print(*args
, **kw
)
4577 base_Print
= wx
._deprecated
(base_Print
,
4578 "Please use PyPrintPreview.Print instead.")
4580 def base_DetermineScaling(*args
, **kw
):
4581 return PyPrintPreview
.DetermineScaling(*args
, **kw
)
4582 base_DetermineScaling
= wx
._deprecated
(base_DetermineScaling
,
4583 "Please use PyPrintPreview.DetermineScaling instead.")
4585 _windows_
.PyPrintPreview_swigregister(PyPrintPreview
)
4587 class PyPreviewFrame(PreviewFrame
):
4588 """Proxy of C++ PyPreviewFrame class"""
4589 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4590 __repr__
= _swig_repr
4591 def __init__(self
, *args
, **kwargs
):
4593 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4594 Size size=DefaultSize,
4595 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4597 _windows_
.PyPreviewFrame_swiginit(self
,_windows_
.new_PyPreviewFrame(*args
, **kwargs
))
4598 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4600 def _setCallbackInfo(*args
, **kwargs
):
4601 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4602 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4604 def SetPreviewCanvas(*args
, **kwargs
):
4605 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4606 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4608 def SetControlBar(*args
, **kwargs
):
4609 """SetControlBar(self, PreviewControlBar bar)"""
4610 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4612 def Initialize(*args
, **kwargs
):
4613 """Initialize(self)"""
4614 return _windows_
.PyPreviewFrame_Initialize(*args
, **kwargs
)
4616 def CreateCanvas(*args
, **kwargs
):
4617 """CreateCanvas(self)"""
4618 return _windows_
.PyPreviewFrame_CreateCanvas(*args
, **kwargs
)
4620 def CreateControlBar(*args
, **kwargs
):
4621 """CreateControlBar(self)"""
4622 return _windows_
.PyPreviewFrame_CreateControlBar(*args
, **kwargs
)
4624 def base_Initialize(*args
, **kw
):
4625 return PyPreviewFrame
.Initialize(*args
, **kw
)
4626 base_Initialize
= wx
._deprecated
(base_Initialize
,
4627 "Please use PyPreviewFrame.Initialize instead.")
4629 def base_CreateCanvas(*args
, **kw
):
4630 return PyPreviewFrame
.CreateCanvas(*args
, **kw
)
4631 base_CreateCanvas
= wx
._deprecated
(base_CreateCanvas
,
4632 "Please use PyPreviewFrame.CreateCanvas instead.")
4634 def base_CreateControlBar(*args
, **kw
):
4635 return PyPreviewFrame
.CreateControlBar(*args
, **kw
)
4636 base_CreateControlBar
= wx
._deprecated
(base_CreateControlBar
,
4637 "Please use PyPreviewFrame.CreateControlBar instead.")
4639 _windows_
.PyPreviewFrame_swigregister(PyPreviewFrame
)
4641 class PyPreviewControlBar(PreviewControlBar
):
4642 """Proxy of C++ PyPreviewControlBar class"""
4643 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4644 __repr__
= _swig_repr
4645 def __init__(self
, *args
, **kwargs
):
4647 __init__(self, PrintPreview preview, long buttons, Window parent,
4648 Point pos=DefaultPosition, Size size=DefaultSize,
4649 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4651 _windows_
.PyPreviewControlBar_swiginit(self
,_windows_
.new_PyPreviewControlBar(*args
, **kwargs
))
4652 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4654 def _setCallbackInfo(*args
, **kwargs
):
4655 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4656 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4658 def SetPrintPreview(*args
, **kwargs
):
4659 """SetPrintPreview(self, PrintPreview preview)"""
4660 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4662 def CreateButtons(*args
, **kwargs
):
4663 """CreateButtons(self)"""
4664 return _windows_
.PyPreviewControlBar_CreateButtons(*args
, **kwargs
)
4666 def SetZoomControl(*args
, **kwargs
):
4667 """SetZoomControl(self, int zoom)"""
4668 return _windows_
.PyPreviewControlBar_SetZoomControl(*args
, **kwargs
)
4670 def base_CreateButtons(*args
, **kw
):
4671 return PreviewControlBar
.CreateButtons(*args
, **kw
)
4672 base_CreateButtons
= wx
._deprecated
(base_CreateButtons
,
4673 "Please use PreviewControlBar.CreateButtons instead.")
4675 def base_SetZoomControl(*args
, **kw
):
4676 return PreviewControlBar
.SetZoomControl(*args
, **kw
)
4677 base_SetZoomControl
= wx
._deprecated
(base_SetZoomControl
,
4678 "Please use PreviewControlBar.SetZoomControl instead.")
4680 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBar
)