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 MenuBar
= property(GetMenuBar
,SetMenuBar
,doc
="See `GetMenuBar` and `SetMenuBar`")
587 StatusBar
= property(GetStatusBar
,SetStatusBar
,doc
="See `GetStatusBar` and `SetStatusBar`")
588 StatusBarPane
= property(GetStatusBarPane
,SetStatusBarPane
,doc
="See `GetStatusBarPane` and `SetStatusBarPane`")
589 ToolBar
= property(GetToolBar
,SetToolBar
,doc
="See `GetToolBar` and `SetToolBar`")
590 _windows_
.Frame_swigregister(Frame
)
592 def PreFrame(*args
, **kwargs
):
593 """PreFrame() -> Frame"""
594 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
597 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
599 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
601 Get the default attributes for this class. This is useful if you want
602 to use the same font or colour in your own control as in a standard
603 control -- which is a much better idea than hard coding specific
604 colours or fonts which might look completely out of place on the
605 user's system, especially if it uses themes.
607 The variant parameter is only relevant under Mac currently and is
608 ignore under other platforms. Under Mac, it will change the size of
609 the returned font. See `wx.Window.SetWindowVariant` for more about
612 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
614 #---------------------------------------------------------------------------
616 class Dialog(TopLevelWindow
):
617 """Proxy of C++ Dialog class"""
618 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
619 __repr__
= _swig_repr
620 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
621 def __init__(self
, *args
, **kwargs
):
623 __init__(self, Window parent, int id=-1, String title=EmptyString,
624 Point pos=DefaultPosition, Size size=DefaultSize,
625 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
627 _windows_
.Dialog_swiginit(self
,_windows_
.new_Dialog(*args
, **kwargs
))
628 self
._setOORInfo
(self
)
630 def Create(*args
, **kwargs
):
632 Create(self, Window parent, int id=-1, String title=EmptyString,
633 Point pos=DefaultPosition, Size size=DefaultSize,
634 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
636 return _windows_
.Dialog_Create(*args
, **kwargs
)
638 def SetReturnCode(*args
, **kwargs
):
639 """SetReturnCode(self, int returnCode)"""
640 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
642 def GetReturnCode(*args
, **kwargs
):
643 """GetReturnCode(self) -> int"""
644 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
646 def SetAffirmativeId(*args
, **kwargs
):
647 """SetAffirmativeId(self, int affirmativeId)"""
648 return _windows_
.Dialog_SetAffirmativeId(*args
, **kwargs
)
650 def GetAffirmativeId(*args
, **kwargs
):
651 """GetAffirmativeId(self) -> int"""
652 return _windows_
.Dialog_GetAffirmativeId(*args
, **kwargs
)
654 def SetEscapeId(*args
, **kwargs
):
655 """SetEscapeId(self, int escapeId)"""
656 return _windows_
.Dialog_SetEscapeId(*args
, **kwargs
)
658 def GetEscapeId(*args
, **kwargs
):
659 """GetEscapeId(self) -> int"""
660 return _windows_
.Dialog_GetEscapeId(*args
, **kwargs
)
662 def CreateTextSizer(*args
, **kwargs
):
663 """CreateTextSizer(self, String message) -> Sizer"""
664 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
666 def CreateButtonSizer(*args
, **kwargs
):
667 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
668 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
670 def CreateStdDialogButtonSizer(*args
, **kwargs
):
671 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
672 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
674 def IsModal(*args
, **kwargs
):
675 """IsModal(self) -> bool"""
676 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
678 def ShowModal(*args
, **kwargs
):
679 """ShowModal(self) -> int"""
680 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
682 def EndModal(*args
, **kwargs
):
683 """EndModal(self, int retCode)"""
684 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
686 def GetClassDefaultAttributes(*args
, **kwargs
):
688 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
690 Get the default attributes for this class. This is useful if you want
691 to use the same font or colour in your own control as in a standard
692 control -- which is a much better idea than hard coding specific
693 colours or fonts which might look completely out of place on the
694 user's system, especially if it uses themes.
696 The variant parameter is only relevant under Mac currently and is
697 ignore under other platforms. Under Mac, it will change the size of
698 the returned font. See `wx.Window.SetWindowVariant` for more about
701 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
703 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
704 AffirmativeId
= property(GetAffirmativeId
,SetAffirmativeId
,doc
="See `GetAffirmativeId` and `SetAffirmativeId`")
705 EscapeId
= property(GetEscapeId
,SetEscapeId
,doc
="See `GetEscapeId` and `SetEscapeId`")
706 ReturnCode
= property(GetReturnCode
,SetReturnCode
,doc
="See `GetReturnCode` and `SetReturnCode`")
707 _windows_
.Dialog_swigregister(Dialog
)
709 def PreDialog(*args
, **kwargs
):
710 """PreDialog() -> Dialog"""
711 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
714 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
716 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
718 Get the default attributes for this class. This is useful if you want
719 to use the same font or colour in your own control as in a standard
720 control -- which is a much better idea than hard coding specific
721 colours or fonts which might look completely out of place on the
722 user's system, especially if it uses themes.
724 The variant parameter is only relevant under Mac currently and is
725 ignore under other platforms. Under Mac, it will change the size of
726 the returned font. See `wx.Window.SetWindowVariant` for more about
729 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
731 #---------------------------------------------------------------------------
733 class MiniFrame(Frame
):
734 """Proxy of C++ MiniFrame class"""
735 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
736 __repr__
= _swig_repr
737 def __init__(self
, *args
, **kwargs
):
739 __init__(self, Window parent, int id=-1, String title=EmptyString,
740 Point pos=DefaultPosition, Size size=DefaultSize,
741 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
743 _windows_
.MiniFrame_swiginit(self
,_windows_
.new_MiniFrame(*args
, **kwargs
))
744 self
._setOORInfo
(self
)
746 def Create(*args
, **kwargs
):
748 Create(self, Window parent, int id=-1, String title=EmptyString,
749 Point pos=DefaultPosition, Size size=DefaultSize,
750 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
752 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
754 _windows_
.MiniFrame_swigregister(MiniFrame
)
756 def PreMiniFrame(*args
, **kwargs
):
757 """PreMiniFrame() -> MiniFrame"""
758 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
761 #---------------------------------------------------------------------------
763 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
764 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
765 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
766 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
767 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
768 class SplashScreenWindow(_core
.Window
):
769 """Proxy of C++ SplashScreenWindow class"""
770 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
771 __repr__
= _swig_repr
772 def __init__(self
, *args
, **kwargs
):
774 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
775 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
777 _windows_
.SplashScreenWindow_swiginit(self
,_windows_
.new_SplashScreenWindow(*args
, **kwargs
))
778 self
._setOORInfo
(self
)
780 def SetBitmap(*args
, **kwargs
):
781 """SetBitmap(self, Bitmap bitmap)"""
782 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
784 def GetBitmap(*args
, **kwargs
):
785 """GetBitmap(self) -> Bitmap"""
786 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
788 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindow
)
790 class SplashScreen(Frame
):
791 """Proxy of C++ SplashScreen class"""
792 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
793 __repr__
= _swig_repr
794 def __init__(self
, *args
, **kwargs
):
796 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
797 Window parent, int id=-1, Point pos=DefaultPosition,
798 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
800 _windows_
.SplashScreen_swiginit(self
,_windows_
.new_SplashScreen(*args
, **kwargs
))
801 self
._setOORInfo
(self
)
803 def GetSplashStyle(*args
, **kwargs
):
804 """GetSplashStyle(self) -> long"""
805 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
807 def GetSplashWindow(*args
, **kwargs
):
808 """GetSplashWindow(self) -> SplashScreenWindow"""
809 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
811 def GetTimeout(*args
, **kwargs
):
812 """GetTimeout(self) -> int"""
813 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
815 _windows_
.SplashScreen_swigregister(SplashScreen
)
817 #---------------------------------------------------------------------------
819 SB_NORMAL
= _windows_
.SB_NORMAL
820 SB_FLAT
= _windows_
.SB_FLAT
821 SB_RAISED
= _windows_
.SB_RAISED
822 class StatusBar(_core
.Window
):
823 """Proxy of C++ StatusBar class"""
824 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
825 __repr__
= _swig_repr
826 def __init__(self
, *args
, **kwargs
):
828 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
829 String name=StatusLineNameStr) -> StatusBar
831 _windows_
.StatusBar_swiginit(self
,_windows_
.new_StatusBar(*args
, **kwargs
))
832 self
._setOORInfo
(self
)
834 def Create(*args
, **kwargs
):
835 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
836 return _windows_
.StatusBar_Create(*args
, **kwargs
)
838 def SetFieldsCount(*args
, **kwargs
):
839 """SetFieldsCount(self, int number=1)"""
840 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
842 def GetFieldsCount(*args
, **kwargs
):
843 """GetFieldsCount(self) -> int"""
844 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
846 def SetStatusText(*args
, **kwargs
):
847 """SetStatusText(self, String text, int number=0)"""
848 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
850 def GetStatusText(*args
, **kwargs
):
851 """GetStatusText(self, int number=0) -> String"""
852 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
854 def PushStatusText(*args
, **kwargs
):
855 """PushStatusText(self, String text, int number=0)"""
856 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
858 def PopStatusText(*args
, **kwargs
):
859 """PopStatusText(self, int number=0)"""
860 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
862 def SetStatusWidths(*args
, **kwargs
):
863 """SetStatusWidths(self, int widths)"""
864 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
866 def SetStatusStyles(*args
, **kwargs
):
867 """SetStatusStyles(self, int styles)"""
868 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
870 def GetFieldRect(*args
, **kwargs
):
871 """GetFieldRect(self, int i) -> Rect"""
872 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
874 def SetMinHeight(*args
, **kwargs
):
875 """SetMinHeight(self, int height)"""
876 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
878 def GetBorderX(*args
, **kwargs
):
879 """GetBorderX(self) -> int"""
880 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
882 def GetBorderY(*args
, **kwargs
):
883 """GetBorderY(self) -> int"""
884 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
886 def GetClassDefaultAttributes(*args
, **kwargs
):
888 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
890 Get the default attributes for this class. This is useful if you want
891 to use the same font or colour in your own control as in a standard
892 control -- which is a much better idea than hard coding specific
893 colours or fonts which might look completely out of place on the
894 user's system, especially if it uses themes.
896 The variant parameter is only relevant under Mac currently and is
897 ignore under other platforms. Under Mac, it will change the size of
898 the returned font. See `wx.Window.SetWindowVariant` for more about
901 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
903 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
905 """Return a list of field values in the status bar. """
906 return [self
.GetStatusText(i
) for i
in range(self
.GetFieldsCount())]
908 def SetFields(self
, items
):
909 """Set the values of the statusbar fields from a list of strings. """
910 self
.SetFieldsCount(len(items
))
911 for i
in range(len(items
)):
912 self
.SetStatusText(items
[i
], i
)
914 Fields
= property(GetFields
,SetFields
)
915 _windows_
.StatusBar_swigregister(StatusBar
)
917 def PreStatusBar(*args
, **kwargs
):
918 """PreStatusBar() -> StatusBar"""
919 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
922 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
924 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
926 Get the default attributes for this class. This is useful if you want
927 to use the same font or colour in your own control as in a standard
928 control -- which is a much better idea than hard coding specific
929 colours or fonts which might look completely out of place on the
930 user's system, especially if it uses themes.
932 The variant parameter is only relevant under Mac currently and is
933 ignore under other platforms. Under Mac, it will change the size of
934 the returned font. See `wx.Window.SetWindowVariant` for more about
937 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
939 #---------------------------------------------------------------------------
941 SP_NOBORDER
= _windows_
.SP_NOBORDER
942 SP_NOSASH
= _windows_
.SP_NOSASH
943 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
944 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
945 SP_3DSASH
= _windows_
.SP_3DSASH
946 SP_3DBORDER
= _windows_
.SP_3DBORDER
947 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
948 SP_BORDER
= _windows_
.SP_BORDER
949 SP_3D
= _windows_
.SP_3D
950 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
951 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
952 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
953 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
954 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
955 class SplitterWindow(_core
.Window
):
957 wx.SplitterWindow manages up to two subwindows or panes, with an
958 optional vertical or horizontal split which can be used with the mouse
961 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
962 __repr__
= _swig_repr
963 def __init__(self
, *args
, **kwargs
):
965 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
966 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
968 Constructor. Creates and shows a SplitterWindow.
970 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
971 _windows_
.SplitterWindow_swiginit(self
,_windows_
.new_SplitterWindow(*args
, **kwargs
))
972 self
._setOORInfo
(self
)
974 def Create(*args
, **kwargs
):
976 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
977 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
979 Create the GUI part of the SplitterWindow for the 2-phase create.
981 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
983 def GetWindow1(*args
, **kwargs
):
985 GetWindow1(self) -> Window
987 Gets the only or left/top pane.
989 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
991 def GetWindow2(*args
, **kwargs
):
993 GetWindow2(self) -> Window
995 Gets the right/bottom pane.
997 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
999 def SetSplitMode(*args
, **kwargs
):
1001 SetSplitMode(self, int mode)
1003 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
1004 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
1007 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
1009 def GetSplitMode(*args
, **kwargs
):
1011 GetSplitMode(self) -> int
1015 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
1017 def Initialize(*args
, **kwargs
):
1019 Initialize(self, Window window)
1021 Initializes the splitter window to have one pane. This should be
1022 called if you wish to initially view only a single pane in the
1023 splitter window. The child window is shown if it is currently hidden.
1025 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1027 def SplitVertically(*args
, **kwargs
):
1029 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1031 Initializes the left and right panes of the splitter window. The
1032 child windows are shown if they are currently hidden.
1034 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1036 def SplitHorizontally(*args
, **kwargs
):
1038 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1040 Initializes the top and bottom panes of the splitter window. The
1041 child windows are shown if they are currently hidden.
1043 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1045 def Unsplit(*args
, **kwargs
):
1047 Unsplit(self, Window toRemove=None) -> bool
1049 Unsplits the window. Pass the pane to remove, or None to remove the
1050 right or bottom pane. Returns True if successful, False otherwise (the
1051 window was not split).
1053 This function will not actually delete the pane being
1054 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1055 for the desired behaviour. By default, the pane being
1056 removed is only hidden.
1058 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1060 def ReplaceWindow(*args
, **kwargs
):
1062 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1064 This function replaces one of the windows managed by the
1065 SplitterWindow with another one. It is in general better to use it
1066 instead of calling Unsplit() and then resplitting the window back
1067 because it will provoke much less flicker. It is valid to call this
1068 function whether the splitter has two windows or only one.
1070 Both parameters should be non-None and winOld must specify one of the
1071 windows managed by the splitter. If the parameters are incorrect or
1072 the window couldn't be replaced, False is returned. Otherwise the
1073 function will return True, but please notice that it will not Destroy
1074 the replaced window and you may wish to do it yourself.
1076 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1078 def UpdateSize(*args
, **kwargs
):
1082 Causes any pending sizing of the sash and child panes to take place
1085 Such resizing normally takes place in idle time, in order to wait for
1086 layout to be completed. However, this can cause unacceptable flicker
1087 as the panes are resized after the window has been shown. To work
1088 around this, you can perform window layout (for example by sending a
1089 size event to the parent window), and then call this function, before
1090 showing the top-level window.
1092 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1094 def IsSplit(*args
, **kwargs
):
1096 IsSplit(self) -> bool
1098 Is the window split?
1100 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1102 def SetSashSize(*args
, **kwargs
):
1104 SetSashSize(self, int width)
1108 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1110 def SetBorderSize(*args
, **kwargs
):
1112 SetBorderSize(self, int width)
1114 Sets the border size. Currently a NOP.
1116 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1118 def GetSashSize(*args
, **kwargs
):
1120 GetSashSize(self) -> int
1124 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1126 def GetBorderSize(*args
, **kwargs
):
1128 GetBorderSize(self) -> int
1130 Gets the border size
1132 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1134 def SetSashPosition(*args
, **kwargs
):
1136 SetSashPosition(self, int position, bool redraw=True)
1138 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1139 are resized and the sash and border are redrawn.
1141 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1143 def GetSashPosition(*args
, **kwargs
):
1145 GetSashPosition(self) -> int
1147 Returns the surrent sash position.
1149 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1151 def SetSashGravity(*args
, **kwargs
):
1153 SetSashGravity(self, double gravity)
1155 Set the sash gravity. Gravity is a floating-point factor between 0.0
1156 and 1.0 which controls position of sash while resizing the
1157 `wx.SplitterWindow`. The gravity specifies how much the left/top
1158 window will grow while resizing.
1160 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1162 def GetSashGravity(*args
, **kwargs
):
1164 GetSashGravity(self) -> double
1166 Gets the sash gravity.
1168 :see: `SetSashGravity`
1171 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1173 def SetMinimumPaneSize(*args
, **kwargs
):
1175 SetMinimumPaneSize(self, int min)
1177 Sets the minimum pane size in pixels.
1179 The default minimum pane size is zero, which means that either pane
1180 can be reduced to zero by dragging the sash, thus removing one of the
1181 panes. To prevent this behaviour (and veto out-of-range sash
1182 dragging), set a minimum size, for example 20 pixels. If the
1183 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1184 the window may be unsplit even if minimum size is non-zero.
1186 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1188 def GetMinimumPaneSize(*args
, **kwargs
):
1190 GetMinimumPaneSize(self) -> int
1192 Gets the minimum pane size in pixels.
1194 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1196 def SashHitTest(*args
, **kwargs
):
1198 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1200 Tests for x, y over the sash
1202 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1204 def SizeWindows(*args
, **kwargs
):
1210 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1212 def SetNeedUpdating(*args
, **kwargs
):
1213 """SetNeedUpdating(self, bool needUpdating)"""
1214 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1216 def GetNeedUpdating(*args
, **kwargs
):
1217 """GetNeedUpdating(self) -> bool"""
1218 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1220 def GetClassDefaultAttributes(*args
, **kwargs
):
1222 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1224 Get the default attributes for this class. This is useful if you want
1225 to use the same font or colour in your own control as in a standard
1226 control -- which is a much better idea than hard coding specific
1227 colours or fonts which might look completely out of place on the
1228 user's system, especially if it uses themes.
1230 The variant parameter is only relevant under Mac currently and is
1231 ignore under other platforms. Under Mac, it will change the size of
1232 the returned font. See `wx.Window.SetWindowVariant` for more about
1235 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1237 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1238 _windows_
.SplitterWindow_swigregister(SplitterWindow
)
1239 SplitterNameStr
= cvar
.SplitterNameStr
1241 def PreSplitterWindow(*args
, **kwargs
):
1243 PreSplitterWindow() -> SplitterWindow
1245 Precreate a SplitterWindow for 2-phase creation.
1247 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1250 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1252 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1254 Get the default attributes for this class. This is useful if you want
1255 to use the same font or colour in your own control as in a standard
1256 control -- which is a much better idea than hard coding specific
1257 colours or fonts which might look completely out of place on the
1258 user's system, especially if it uses themes.
1260 The variant parameter is only relevant under Mac currently and is
1261 ignore under other platforms. Under Mac, it will change the size of
1262 the returned font. See `wx.Window.SetWindowVariant` for more about
1265 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1267 class SplitterEvent(_core
.NotifyEvent
):
1268 """This class represents the events generated by a splitter control."""
1269 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1270 __repr__
= _swig_repr
1271 def __init__(self
, *args
, **kwargs
):
1273 __init__(self, EventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1275 This class represents the events generated by a splitter control.
1277 _windows_
.SplitterEvent_swiginit(self
,_windows_
.new_SplitterEvent(*args
, **kwargs
))
1278 def SetSashPosition(*args
, **kwargs
):
1280 SetSashPosition(self, int pos)
1282 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1283 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1284 events, sets the the new sash position. In the case of _CHANGING
1285 events, sets the new tracking bar position so visual feedback during
1286 dragging will represent that change that will actually take place. Set
1287 to -1 from the event handler code to prevent repositioning.
1289 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1291 def GetSashPosition(*args
, **kwargs
):
1293 GetSashPosition(self) -> int
1295 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1296 and EVT_SPLITTER_SASH_POS_CHANGED events.
1298 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1300 def GetWindowBeingRemoved(*args
, **kwargs
):
1302 GetWindowBeingRemoved(self) -> Window
1304 Returns a pointer to the window being removed when a splitter window
1307 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1309 def GetX(*args
, **kwargs
):
1313 Returns the x coordinate of the double-click point in a
1314 EVT_SPLITTER_DCLICK event.
1316 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1318 def GetY(*args
, **kwargs
):
1322 Returns the y coordinate of the double-click point in a
1323 EVT_SPLITTER_DCLICK event.
1325 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1327 _windows_
.SplitterEvent_swigregister(SplitterEvent
)
1329 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1330 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1331 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1332 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1333 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1334 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1335 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1336 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1337 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1339 #---------------------------------------------------------------------------
1341 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1342 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1343 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1344 SW_NOBORDER
= _windows_
.SW_NOBORDER
1345 SW_BORDER
= _windows_
.SW_BORDER
1346 SW_3DSASH
= _windows_
.SW_3DSASH
1347 SW_3DBORDER
= _windows_
.SW_3DBORDER
1348 SW_3D
= _windows_
.SW_3D
1349 SASH_TOP
= _windows_
.SASH_TOP
1350 SASH_RIGHT
= _windows_
.SASH_RIGHT
1351 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1352 SASH_LEFT
= _windows_
.SASH_LEFT
1353 SASH_NONE
= _windows_
.SASH_NONE
1354 class SashWindow(_core
.Window
):
1355 """Proxy of C++ SashWindow class"""
1356 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1357 __repr__
= _swig_repr
1358 def __init__(self
, *args
, **kwargs
):
1360 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1361 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1362 String name=SashNameStr) -> SashWindow
1364 _windows_
.SashWindow_swiginit(self
,_windows_
.new_SashWindow(*args
, **kwargs
))
1365 self
._setOORInfo
(self
)
1367 def Create(*args
, **kwargs
):
1369 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1370 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1371 String name=SashNameStr) -> bool
1373 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1375 def SetSashVisible(*args
, **kwargs
):
1376 """SetSashVisible(self, int edge, bool sash)"""
1377 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1379 def GetSashVisible(*args
, **kwargs
):
1380 """GetSashVisible(self, int edge) -> bool"""
1381 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1383 def SetSashBorder(*args
, **kwargs
):
1384 """SetSashBorder(self, int edge, bool border)"""
1385 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1387 def HasBorder(*args
, **kwargs
):
1388 """HasBorder(self, int edge) -> bool"""
1389 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1391 def GetEdgeMargin(*args
, **kwargs
):
1392 """GetEdgeMargin(self, int edge) -> int"""
1393 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1395 def SetDefaultBorderSize(*args
, **kwargs
):
1396 """SetDefaultBorderSize(self, int width)"""
1397 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1399 def GetDefaultBorderSize(*args
, **kwargs
):
1400 """GetDefaultBorderSize(self) -> int"""
1401 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1403 def SetExtraBorderSize(*args
, **kwargs
):
1404 """SetExtraBorderSize(self, int width)"""
1405 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1407 def GetExtraBorderSize(*args
, **kwargs
):
1408 """GetExtraBorderSize(self) -> int"""
1409 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1411 def SetMinimumSizeX(*args
, **kwargs
):
1412 """SetMinimumSizeX(self, int min)"""
1413 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1415 def SetMinimumSizeY(*args
, **kwargs
):
1416 """SetMinimumSizeY(self, int min)"""
1417 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1419 def GetMinimumSizeX(*args
, **kwargs
):
1420 """GetMinimumSizeX(self) -> int"""
1421 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1423 def GetMinimumSizeY(*args
, **kwargs
):
1424 """GetMinimumSizeY(self) -> int"""
1425 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1427 def SetMaximumSizeX(*args
, **kwargs
):
1428 """SetMaximumSizeX(self, int max)"""
1429 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1431 def SetMaximumSizeY(*args
, **kwargs
):
1432 """SetMaximumSizeY(self, int max)"""
1433 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1435 def GetMaximumSizeX(*args
, **kwargs
):
1436 """GetMaximumSizeX(self) -> int"""
1437 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1439 def GetMaximumSizeY(*args
, **kwargs
):
1440 """GetMaximumSizeY(self) -> int"""
1441 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1443 def SashHitTest(*args
, **kwargs
):
1444 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1445 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1447 def SizeWindows(*args
, **kwargs
):
1448 """SizeWindows(self)"""
1449 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1451 _windows_
.SashWindow_swigregister(SashWindow
)
1452 SashNameStr
= cvar
.SashNameStr
1453 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1455 def PreSashWindow(*args
, **kwargs
):
1456 """PreSashWindow() -> SashWindow"""
1457 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1460 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1461 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1462 class SashEvent(_core
.CommandEvent
):
1463 """Proxy of C++ SashEvent class"""
1464 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1465 __repr__
= _swig_repr
1466 def __init__(self
, *args
, **kwargs
):
1467 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1468 _windows_
.SashEvent_swiginit(self
,_windows_
.new_SashEvent(*args
, **kwargs
))
1469 def SetEdge(*args
, **kwargs
):
1470 """SetEdge(self, int edge)"""
1471 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1473 def GetEdge(*args
, **kwargs
):
1474 """GetEdge(self) -> int"""
1475 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1477 def SetDragRect(*args
, **kwargs
):
1478 """SetDragRect(self, Rect rect)"""
1479 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1481 def GetDragRect(*args
, **kwargs
):
1482 """GetDragRect(self) -> Rect"""
1483 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1485 def SetDragStatus(*args
, **kwargs
):
1486 """SetDragStatus(self, int status)"""
1487 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1489 def GetDragStatus(*args
, **kwargs
):
1490 """GetDragStatus(self) -> int"""
1491 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1493 _windows_
.SashEvent_swigregister(SashEvent
)
1495 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1496 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1497 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1499 #---------------------------------------------------------------------------
1501 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1502 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1503 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1504 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1505 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1506 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1507 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1508 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1509 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1510 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1511 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1512 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1513 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1514 class QueryLayoutInfoEvent(_core
.Event
):
1515 """Proxy of C++ QueryLayoutInfoEvent class"""
1516 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1517 __repr__
= _swig_repr
1518 def __init__(self
, *args
, **kwargs
):
1519 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1520 _windows_
.QueryLayoutInfoEvent_swiginit(self
,_windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
))
1521 def SetRequestedLength(*args
, **kwargs
):
1522 """SetRequestedLength(self, int length)"""
1523 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1525 def GetRequestedLength(*args
, **kwargs
):
1526 """GetRequestedLength(self) -> int"""
1527 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1529 def SetFlags(*args
, **kwargs
):
1530 """SetFlags(self, int flags)"""
1531 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1533 def GetFlags(*args
, **kwargs
):
1534 """GetFlags(self) -> int"""
1535 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1537 def SetSize(*args
, **kwargs
):
1538 """SetSize(self, Size size)"""
1539 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1541 def GetSize(*args
, **kwargs
):
1542 """GetSize(self) -> Size"""
1543 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1545 def SetOrientation(*args
, **kwargs
):
1546 """SetOrientation(self, int orient)"""
1547 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1549 def GetOrientation(*args
, **kwargs
):
1550 """GetOrientation(self) -> int"""
1551 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1553 def SetAlignment(*args
, **kwargs
):
1554 """SetAlignment(self, int align)"""
1555 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1557 def GetAlignment(*args
, **kwargs
):
1558 """GetAlignment(self) -> int"""
1559 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1561 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent
)
1563 class CalculateLayoutEvent(_core
.Event
):
1564 """Proxy of C++ CalculateLayoutEvent class"""
1565 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1566 __repr__
= _swig_repr
1567 def __init__(self
, *args
, **kwargs
):
1568 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1569 _windows_
.CalculateLayoutEvent_swiginit(self
,_windows_
.new_CalculateLayoutEvent(*args
, **kwargs
))
1570 def SetFlags(*args
, **kwargs
):
1571 """SetFlags(self, int flags)"""
1572 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1574 def GetFlags(*args
, **kwargs
):
1575 """GetFlags(self) -> int"""
1576 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1578 def SetRect(*args
, **kwargs
):
1579 """SetRect(self, Rect rect)"""
1580 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1582 def GetRect(*args
, **kwargs
):
1583 """GetRect(self) -> Rect"""
1584 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1586 Flags
= property(GetFlags
,SetFlags
,doc
="See `GetFlags` and `SetFlags`")
1587 Rect
= property(GetRect
,SetRect
,doc
="See `GetRect` and `SetRect`")
1588 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEvent
)
1590 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1591 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1593 class SashLayoutWindow(SashWindow
):
1594 """Proxy of C++ SashLayoutWindow class"""
1595 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1596 __repr__
= _swig_repr
1597 def __init__(self
, *args
, **kwargs
):
1599 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1600 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1601 String name=SashLayoutNameStr) -> SashLayoutWindow
1603 _windows_
.SashLayoutWindow_swiginit(self
,_windows_
.new_SashLayoutWindow(*args
, **kwargs
))
1604 self
._setOORInfo
(self
)
1606 def Create(*args
, **kwargs
):
1608 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1609 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1610 String name=SashLayoutNameStr) -> bool
1612 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1614 def GetAlignment(*args
, **kwargs
):
1615 """GetAlignment(self) -> int"""
1616 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1618 def GetOrientation(*args
, **kwargs
):
1619 """GetOrientation(self) -> int"""
1620 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1622 def SetAlignment(*args
, **kwargs
):
1623 """SetAlignment(self, int alignment)"""
1624 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1626 def SetDefaultSize(*args
, **kwargs
):
1627 """SetDefaultSize(self, Size size)"""
1628 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1630 def SetOrientation(*args
, **kwargs
):
1631 """SetOrientation(self, int orientation)"""
1632 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1634 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindow
)
1636 def PreSashLayoutWindow(*args
, **kwargs
):
1637 """PreSashLayoutWindow() -> SashLayoutWindow"""
1638 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1641 class LayoutAlgorithm(_core
.Object
):
1642 """Proxy of C++ LayoutAlgorithm class"""
1643 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1644 __repr__
= _swig_repr
1645 def __init__(self
, *args
, **kwargs
):
1646 """__init__(self) -> LayoutAlgorithm"""
1647 _windows_
.LayoutAlgorithm_swiginit(self
,_windows_
.new_LayoutAlgorithm(*args
, **kwargs
))
1648 __swig_destroy__
= _windows_
.delete_LayoutAlgorithm
1649 __del__
= lambda self
: None;
1650 def LayoutMDIFrame(*args
, **kwargs
):
1651 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1652 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1654 def LayoutFrame(*args
, **kwargs
):
1655 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1656 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1658 def LayoutWindow(*args
, **kwargs
):
1659 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1660 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1662 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithm
)
1664 #---------------------------------------------------------------------------
1666 class PopupWindow(_core
.Window
):
1667 """Proxy of C++ PopupWindow class"""
1668 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1669 __repr__
= _swig_repr
1670 def __init__(self
, *args
, **kwargs
):
1671 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1672 _windows_
.PopupWindow_swiginit(self
,_windows_
.new_PopupWindow(*args
, **kwargs
))
1673 self
._setOORInfo
(self
)
1675 def Create(*args
, **kwargs
):
1676 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1677 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1679 def Position(*args
, **kwargs
):
1680 """Position(self, Point ptOrigin, Size size)"""
1681 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1683 _windows_
.PopupWindow_swigregister(PopupWindow
)
1685 def PrePopupWindow(*args
, **kwargs
):
1686 """PrePopupWindow() -> PopupWindow"""
1687 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1690 #---------------------------------------------------------------------------
1692 class PopupTransientWindow(PopupWindow
):
1693 """Proxy of C++ PopupTransientWindow class"""
1694 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1695 __repr__
= _swig_repr
1696 def __init__(self
, *args
, **kwargs
):
1697 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1698 _windows_
.PopupTransientWindow_swiginit(self
,_windows_
.new_PopupTransientWindow(*args
, **kwargs
))
1699 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1701 def _setCallbackInfo(*args
, **kwargs
):
1702 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1703 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1705 def Popup(*args
, **kwargs
):
1706 """Popup(self, Window focus=None)"""
1707 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1709 def Dismiss(*args
, **kwargs
):
1711 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1713 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindow
)
1715 def PrePopupTransientWindow(*args
, **kwargs
):
1716 """PrePopupTransientWindow() -> PopupTransientWindow"""
1717 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1720 #---------------------------------------------------------------------------
1722 class TipWindow(PopupTransientWindow
):
1723 """Proxy of C++ TipWindow class"""
1724 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1725 __repr__
= _swig_repr
1726 def __init__(self
, *args
, **kwargs
):
1727 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1728 _windows_
.TipWindow_swiginit(self
,_windows_
.new_TipWindow(*args
, **kwargs
))
1729 self
._setOORInfo
(self
)
1731 def SetBoundingRect(*args
, **kwargs
):
1732 """SetBoundingRect(self, Rect rectBound)"""
1733 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1735 def Close(*args
, **kwargs
):
1739 This function simply generates a EVT_CLOSE event whose handler usually
1740 tries to close the window. It doesn't close the window itself,
1741 however. If force is False (the default) then the window's close
1742 handler will be allowed to veto the destruction of the window.
1744 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1746 _windows_
.TipWindow_swigregister(TipWindow
)
1748 #---------------------------------------------------------------------------
1750 class VScrolledWindow(Panel
):
1751 """Proxy of C++ VScrolledWindow class"""
1752 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1753 __repr__
= _swig_repr
1754 def __init__(self
, *args
, **kwargs
):
1756 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1757 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1759 _windows_
.VScrolledWindow_swiginit(self
,_windows_
.new_VScrolledWindow(*args
, **kwargs
))
1760 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1762 def _setCallbackInfo(*args
, **kwargs
):
1763 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1764 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1766 def Create(*args
, **kwargs
):
1768 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1769 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1771 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1773 def SetLineCount(*args
, **kwargs
):
1774 """SetLineCount(self, size_t count)"""
1775 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1777 def ScrollToLine(*args
, **kwargs
):
1778 """ScrollToLine(self, size_t line) -> bool"""
1779 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1781 def RefreshLine(*args
, **kwargs
):
1782 """RefreshLine(self, size_t line)"""
1783 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1785 def RefreshLines(*args
, **kwargs
):
1786 """RefreshLines(self, size_t from, size_t to)"""
1787 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1789 def HitTestXY(*args
, **kwargs
):
1791 HitTestXY(self, int x, int y) -> int
1793 Test where the given (in client coords) point lies
1795 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1797 def HitTest(*args
, **kwargs
):
1799 HitTest(self, Point pt) -> int
1801 Test where the given (in client coords) point lies
1803 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1805 def RefreshAll(*args
, **kwargs
):
1806 """RefreshAll(self)"""
1807 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1809 def GetLineCount(*args
, **kwargs
):
1810 """GetLineCount(self) -> size_t"""
1811 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1813 def GetVisibleBegin(*args
, **kwargs
):
1814 """GetVisibleBegin(self) -> size_t"""
1815 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
1817 def GetVisibleEnd(*args
, **kwargs
):
1818 """GetVisibleEnd(self) -> size_t"""
1819 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
1821 def IsVisible(*args
, **kwargs
):
1822 """IsVisible(self, size_t line) -> bool"""
1823 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1825 def GetFirstVisibleLine(*args
, **kwargs
):
1826 """GetFirstVisibleLine(self) -> size_t"""
1827 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1829 def GetLastVisibleLine(*args
, **kwargs
):
1830 """GetLastVisibleLine(self) -> size_t"""
1831 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1833 def FindFirstFromBottom(*args
, **kwargs
):
1834 """FindFirstFromBottom(self, size_t lineLast, bool fullyVisible=False) -> size_t"""
1835 return _windows_
.VScrolledWindow_FindFirstFromBottom(*args
, **kwargs
)
1837 def GetLinesHeight(*args
, **kwargs
):
1838 """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int"""
1839 return _windows_
.VScrolledWindow_GetLinesHeight(*args
, **kwargs
)
1841 _windows_
.VScrolledWindow_swigregister(VScrolledWindow
)
1843 def PreVScrolledWindow(*args
, **kwargs
):
1844 """PreVScrolledWindow() -> VScrolledWindow"""
1845 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1848 class VListBox(VScrolledWindow
):
1849 """Proxy of C++ VListBox class"""
1850 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1851 __repr__
= _swig_repr
1852 def __init__(self
, *args
, **kwargs
):
1854 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1855 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1857 _windows_
.VListBox_swiginit(self
,_windows_
.new_VListBox(*args
, **kwargs
))
1858 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1860 def _setCallbackInfo(*args
, **kwargs
):
1861 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1862 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1864 def Create(*args
, **kwargs
):
1866 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1867 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1869 return _windows_
.VListBox_Create(*args
, **kwargs
)
1871 def GetItemCount(*args
, **kwargs
):
1872 """GetItemCount(self) -> size_t"""
1873 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1875 def HasMultipleSelection(*args
, **kwargs
):
1876 """HasMultipleSelection(self) -> bool"""
1877 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1879 def GetSelection(*args
, **kwargs
):
1880 """GetSelection(self) -> int"""
1881 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1883 def IsCurrent(*args
, **kwargs
):
1884 """IsCurrent(self, size_t item) -> bool"""
1885 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1887 def IsSelected(*args
, **kwargs
):
1888 """IsSelected(self, size_t item) -> bool"""
1889 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1891 def GetSelectedCount(*args
, **kwargs
):
1892 """GetSelectedCount(self) -> size_t"""
1893 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1895 def GetFirstSelected(*args
, **kwargs
):
1896 """GetFirstSelected(self) -> PyObject"""
1897 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1899 def GetNextSelected(*args
, **kwargs
):
1900 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1901 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1903 def GetMargins(*args
, **kwargs
):
1904 """GetMargins(self) -> Point"""
1905 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1907 def GetSelectionBackground(*args
, **kwargs
):
1908 """GetSelectionBackground(self) -> Colour"""
1909 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1911 def SetItemCount(*args
, **kwargs
):
1912 """SetItemCount(self, size_t count)"""
1913 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1915 def Clear(*args
, **kwargs
):
1917 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1919 def SetSelection(*args
, **kwargs
):
1920 """SetSelection(self, int selection)"""
1921 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1923 def Select(*args
, **kwargs
):
1924 """Select(self, size_t item, bool select=True) -> bool"""
1925 return _windows_
.VListBox_Select(*args
, **kwargs
)
1927 def SelectRange(*args
, **kwargs
):
1928 """SelectRange(self, size_t from, size_t to) -> bool"""
1929 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1931 def Toggle(*args
, **kwargs
):
1932 """Toggle(self, size_t item)"""
1933 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1935 def SelectAll(*args
, **kwargs
):
1936 """SelectAll(self) -> bool"""
1937 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1939 def DeselectAll(*args
, **kwargs
):
1940 """DeselectAll(self) -> bool"""
1941 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1943 def SetMargins(*args
, **kwargs
):
1944 """SetMargins(self, Point pt)"""
1945 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1947 def SetMarginsXY(*args
, **kwargs
):
1948 """SetMarginsXY(self, int x, int y)"""
1949 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1951 def SetSelectionBackground(*args
, **kwargs
):
1952 """SetSelectionBackground(self, Colour col)"""
1953 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1955 def OnDrawSeparator(*args
, **kwargs
):
1956 """OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
1957 return _windows_
.VListBox_OnDrawSeparator(*args
, **kwargs
)
1959 def OnDrawBackground(*args
, **kwargs
):
1960 """OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
1961 return _windows_
.VListBox_OnDrawBackground(*args
, **kwargs
)
1963 _windows_
.VListBox_swigregister(VListBox
)
1964 VListBoxNameStr
= cvar
.VListBoxNameStr
1966 def PreVListBox(*args
, **kwargs
):
1967 """PreVListBox() -> VListBox"""
1968 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1971 class HtmlListBox(VListBox
):
1972 """Proxy of C++ HtmlListBox class"""
1973 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1974 __repr__
= _swig_repr
1975 def __init__(self
, *args
, **kwargs
):
1977 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1978 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1980 _windows_
.HtmlListBox_swiginit(self
,_windows_
.new_HtmlListBox(*args
, **kwargs
))
1981 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1983 def _setCallbackInfo(*args
, **kwargs
):
1984 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1985 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1987 def Create(*args
, **kwargs
):
1989 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1990 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1992 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1994 def SetItemCount(*args
, **kwargs
):
1995 """SetItemCount(self, size_t count)"""
1996 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1998 def GetFileSystem(*args
, **kwargs
):
1999 """GetFileSystem(self) -> FileSystem"""
2000 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2002 def OnLinkClicked(*args
, **kwargs
):
2003 """OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)"""
2004 return _windows_
.HtmlListBox_OnLinkClicked(*args
, **kwargs
)
2006 FileSystem
= property(GetFileSystem
,doc
="See `GetFileSystem`")
2007 _windows_
.HtmlListBox_swigregister(HtmlListBox
)
2009 def PreHtmlListBox(*args
, **kwargs
):
2010 """PreHtmlListBox() -> HtmlListBox"""
2011 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2014 #---------------------------------------------------------------------------
2016 class TaskBarIcon(_core
.EvtHandler
):
2017 """Proxy of C++ TaskBarIcon class"""
2018 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2019 __repr__
= _swig_repr
2020 def __init__(self
, *args
, **kwargs
):
2021 """__init__(self) -> TaskBarIcon"""
2022 _windows_
.TaskBarIcon_swiginit(self
,_windows_
.new_TaskBarIcon(*args
, **kwargs
))
2023 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2025 __swig_destroy__
= _windows_
.delete_TaskBarIcon
2026 __del__
= lambda self
: None;
2027 def _setCallbackInfo(*args
, **kwargs
):
2028 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2029 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2031 def Destroy(*args
, **kwargs
):
2035 Deletes the C++ object this Python object is a proxy for.
2037 val
= _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2041 def IsOk(*args
, **kwargs
):
2042 """IsOk(self) -> bool"""
2043 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2045 def __nonzero__(self
): return self
.IsOk()
2046 def IsIconInstalled(*args
, **kwargs
):
2047 """IsIconInstalled(self) -> bool"""
2048 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2050 def SetIcon(*args
, **kwargs
):
2051 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2052 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2054 def RemoveIcon(*args
, **kwargs
):
2055 """RemoveIcon(self) -> bool"""
2056 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2058 def PopupMenu(*args
, **kwargs
):
2059 """PopupMenu(self, Menu menu) -> bool"""
2060 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2062 _windows_
.TaskBarIcon_swigregister(TaskBarIcon
)
2064 class TaskBarIconEvent(_core
.Event
):
2065 """Proxy of C++ TaskBarIconEvent class"""
2066 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2067 __repr__
= _swig_repr
2068 def __init__(self
, *args
, **kwargs
):
2069 """__init__(self, EventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2070 _windows_
.TaskBarIconEvent_swiginit(self
,_windows_
.new_TaskBarIconEvent(*args
, **kwargs
))
2071 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEvent
)
2073 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2074 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2075 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2076 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2077 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2078 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2079 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2080 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2081 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2082 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2083 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2084 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2085 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2086 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2088 #---------------------------------------------------------------------------
2090 class ColourData(_core
.Object
):
2092 This class holds a variety of information related to the colour
2093 chooser dialog, used to transfer settings and results to and from the
2096 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2097 __repr__
= _swig_repr
2098 def __init__(self
, *args
, **kwargs
):
2100 __init__(self) -> ColourData
2102 Constructor, sets default values.
2104 _windows_
.ColourData_swiginit(self
,_windows_
.new_ColourData(*args
, **kwargs
))
2105 __swig_destroy__
= _windows_
.delete_ColourData
2106 __del__
= lambda self
: None;
2107 def GetChooseFull(*args
, **kwargs
):
2109 GetChooseFull(self) -> bool
2111 Under Windows, determines whether the Windows colour dialog will
2112 display the full dialog with custom colour selection controls. Has no
2113 meaning under other platforms. The default value is true.
2115 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2117 def GetColour(*args
, **kwargs
):
2119 GetColour(self) -> Colour
2121 Gets the colour (pre)selected by the dialog.
2123 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2125 def GetCustomColour(*args
, **kwargs
):
2127 GetCustomColour(self, int i) -> Colour
2129 Gets the i'th custom colour associated with the colour dialog. i
2130 should be an integer between 0 and 15. The default custom colours are
2131 all invalid colours.
2133 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2135 def SetChooseFull(*args
, **kwargs
):
2137 SetChooseFull(self, int flag)
2139 Under Windows, tells the Windows colour dialog to display the full
2140 dialog with custom colour selection controls. Under other platforms,
2141 has no effect. The default value is true.
2143 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2145 def SetColour(*args
, **kwargs
):
2147 SetColour(self, Colour colour)
2149 Sets the default colour for the colour dialog. The default colour is
2152 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2154 def SetCustomColour(*args
, **kwargs
):
2156 SetCustomColour(self, int i, Colour colour)
2158 Sets the i'th custom colour for the colour dialog. i should be an
2159 integer between 0 and 15. The default custom colours are all invalid colours.
2161 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2163 ChooseFull
= property(GetChooseFull
,SetChooseFull
,doc
="See `GetChooseFull` and `SetChooseFull`")
2164 Colour
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")
2165 CustomColour
= property(GetCustomColour
,SetCustomColour
,doc
="See `GetCustomColour` and `SetCustomColour`")
2166 _windows_
.ColourData_swigregister(ColourData
)
2167 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2168 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2169 DirDialogNameStr
= cvar
.DirDialogNameStr
2170 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2171 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2172 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2174 class ColourDialog(Dialog
):
2175 """This class represents the colour chooser dialog."""
2176 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2177 __repr__
= _swig_repr
2178 def __init__(self
, *args
, **kwargs
):
2180 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2182 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2183 which will be copied to the colour dialog's internal ColourData
2186 _windows_
.ColourDialog_swiginit(self
,_windows_
.new_ColourDialog(*args
, **kwargs
))
2187 self
._setOORInfo
(self
)
2189 def GetColourData(*args
, **kwargs
):
2191 GetColourData(self) -> ColourData
2193 Returns a reference to the `wx.ColourData` used by the dialog.
2195 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2197 ColourData
= property(GetColourData
,doc
="See `GetColourData`")
2198 _windows_
.ColourDialog_swigregister(ColourDialog
)
2201 def GetColourFromUser(*args
, **kwargs
):
2203 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2204 String caption=EmptyString) -> Colour
2206 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2207 DD_NEW_DIR_BUTTON
= _windows_
.DD_NEW_DIR_BUTTON
2208 DD_DEFAULT_STYLE
= _windows_
.DD_DEFAULT_STYLE
2209 DD_CHANGE_DIR
= _windows_
.DD_CHANGE_DIR
2210 class DirDialog(Dialog
):
2212 wx.DirDialog allows the user to select a directory by browising the
2215 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2216 __repr__
= _swig_repr
2217 def __init__(self
, *args
, **kwargs
):
2219 __init__(self, Window parent, String message=DirSelectorPromptStr,
2220 String defaultPath=EmptyString, long style=DD_DEFAULT_STYLE,
2221 Point pos=DefaultPosition, Size size=DefaultSize,
2222 String name=DirDialogNameStr) -> DirDialog
2224 Constructor. Use ShowModal method to show the dialog.
2226 _windows_
.DirDialog_swiginit(self
,_windows_
.new_DirDialog(*args
, **kwargs
))
2227 self
._setOORInfo
(self
)
2229 def GetPath(*args
, **kwargs
):
2231 GetPath(self) -> String
2233 Returns the default or user-selected path.
2235 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2237 def GetMessage(*args
, **kwargs
):
2239 GetMessage(self) -> String
2241 Returns the message that will be displayed on the dialog.
2243 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2245 def SetMessage(*args
, **kwargs
):
2247 SetMessage(self, String message)
2249 Sets the message that will be displayed on the dialog.
2251 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2253 def SetPath(*args
, **kwargs
):
2255 SetPath(self, String path)
2257 Sets the default path.
2259 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2261 Message
= property(GetMessage
,SetMessage
,doc
="See `GetMessage` and `SetMessage`")
2262 Path
= property(GetPath
,SetPath
,doc
="See `GetPath` and `SetPath`")
2263 _windows_
.DirDialog_swigregister(DirDialog
)
2265 OPEN
= _windows_
.OPEN
2266 SAVE
= _windows_
.SAVE
2267 OVERWRITE_PROMPT
= _windows_
.OVERWRITE_PROMPT
2268 FILE_MUST_EXIST
= _windows_
.FILE_MUST_EXIST
2269 MULTIPLE
= _windows_
.MULTIPLE
2270 CHANGE_DIR
= _windows_
.CHANGE_DIR
2271 HIDE_READONLY
= _windows_
.HIDE_READONLY
2272 FD_OPEN
= _windows_
.FD_OPEN
2273 FD_SAVE
= _windows_
.FD_SAVE
2274 FD_OVERWRITE_PROMPT
= _windows_
.FD_OVERWRITE_PROMPT
2275 FD_FILE_MUST_EXIST
= _windows_
.FD_FILE_MUST_EXIST
2276 FD_MULTIPLE
= _windows_
.FD_MULTIPLE
2277 FD_CHANGE_DIR
= _windows_
.FD_CHANGE_DIR
2278 FD_PREVIEW
= _windows_
.FD_PREVIEW
2279 FD_DEFAULT_STYLE
= _windows_
.FD_DEFAULT_STYLE
2280 class FileDialog(Dialog
):
2282 wx.FileDialog allows the user to select one or more files from the
2285 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2286 __repr__
= _swig_repr
2287 def __init__(self
, *args
, **kwargs
):
2289 __init__(self, Window parent, String message=FileSelectorPromptStr,
2290 String defaultDir=EmptyString, String defaultFile=EmptyString,
2291 String wildcard=FileSelectorDefaultWildcardStr,
2292 long style=FD_DEFAULT_STYLE,
2293 Point pos=DefaultPosition) -> FileDialog
2295 Constructor. Use ShowModal method to show the dialog.
2297 _windows_
.FileDialog_swiginit(self
,_windows_
.new_FileDialog(*args
, **kwargs
))
2298 self
._setOORInfo
(self
)
2300 def SetMessage(*args
, **kwargs
):
2302 SetMessage(self, String message)
2304 Sets the message that will be displayed on the dialog.
2306 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2308 def SetPath(*args
, **kwargs
):
2310 SetPath(self, String path)
2312 Sets the path (the combined directory and filename that will be
2313 returned when the dialog is dismissed).
2315 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2317 def SetDirectory(*args
, **kwargs
):
2319 SetDirectory(self, String dir)
2321 Sets the default directory.
2323 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2325 def SetFilename(*args
, **kwargs
):
2327 SetFilename(self, String name)
2329 Sets the default filename.
2331 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2333 def SetWildcard(*args
, **kwargs
):
2335 SetWildcard(self, String wildCard)
2337 Sets the wildcard, which can contain multiple file types, for
2340 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2343 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2345 def SetFilterIndex(*args
, **kwargs
):
2347 SetFilterIndex(self, int filterIndex)
2349 Sets the default filter index, starting from zero.
2351 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2353 def GetMessage(*args
, **kwargs
):
2355 GetMessage(self) -> String
2357 Returns the message that will be displayed on the dialog.
2359 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2361 def GetPath(*args
, **kwargs
):
2363 GetPath(self) -> String
2365 Returns the full path (directory and filename) of the selected file.
2367 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2369 def GetDirectory(*args
, **kwargs
):
2371 GetDirectory(self) -> String
2373 Returns the default directory.
2375 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2377 def GetFilename(*args
, **kwargs
):
2379 GetFilename(self) -> String
2381 Returns the default filename.
2383 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2385 def GetWildcard(*args
, **kwargs
):
2387 GetWildcard(self) -> String
2389 Returns the file dialog wildcard.
2391 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2393 def GetFilterIndex(*args
, **kwargs
):
2395 GetFilterIndex(self) -> int
2397 Returns the index into the list of filters supplied, optionally, in
2398 the wildcard parameter. Before the dialog is shown, this is the index
2399 which will be used when the dialog is first displayed. After the
2400 dialog is shown, this is the index selected by the user.
2402 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2404 def GetFilenames(*args
, **kwargs
):
2406 GetFilenames(self) -> PyObject
2408 Returns a list of filenames chosen in the dialog. This function
2409 should only be used with the dialogs which have wx.MULTIPLE style, use
2410 GetFilename for the others.
2412 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2414 def GetPaths(*args
, **kwargs
):
2416 GetPaths(self) -> PyObject
2418 Fills the array paths with the full paths of the files chosen. This
2419 function should only be used with the dialogs which have wx.MULTIPLE
2420 style, use GetPath for the others.
2422 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2424 Directory
= property(GetDirectory
,SetDirectory
,doc
="See `GetDirectory` and `SetDirectory`")
2425 Filename
= property(GetFilename
,SetFilename
,doc
="See `GetFilename` and `SetFilename`")
2426 Filenames
= property(GetFilenames
,doc
="See `GetFilenames`")
2427 FilterIndex
= property(GetFilterIndex
,SetFilterIndex
,doc
="See `GetFilterIndex` and `SetFilterIndex`")
2428 Message
= property(GetMessage
,SetMessage
,doc
="See `GetMessage` and `SetMessage`")
2429 Path
= property(GetPath
,SetPath
,doc
="See `GetPath` and `SetPath`")
2430 Paths
= property(GetPaths
,doc
="See `GetPaths`")
2431 Wildcard
= property(GetWildcard
,SetWildcard
,doc
="See `GetWildcard` and `SetWildcard`")
2432 _windows_
.FileDialog_swigregister(FileDialog
)
2434 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2435 class MultiChoiceDialog(Dialog
):
2436 """A simple dialog with a multi selection listbox."""
2437 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2438 __repr__
= _swig_repr
2439 def __init__(self
, *args
, **kwargs
):
2441 __init__(self, Window parent, String message, String caption,
2442 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2443 Point pos=DefaultPosition) -> MultiChoiceDialog
2445 Constructor. Use the `ShowModal` method to show the dialog.
2447 :param parent: The parent window.
2448 :param message: Text to display above the list of selections.
2449 :param caption: Text to use in the title bar of the dialog.
2450 :param choices: A list of strings or unicode objects that the
2451 user is allowed to choose from.
2452 :param style: Styles to apply to the dialog. The default value is
2453 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2454 :param pos: Where to position the dialog (not used on Windows)
2458 _windows_
.MultiChoiceDialog_swiginit(self
,_windows_
.new_MultiChoiceDialog(*args
, **kwargs
))
2459 self
._setOORInfo
(self
)
2461 def SetSelections(*args
, **kwargs
):
2463 SetSelections(List selections)
2465 Specify the items in the list that should be selected, using a list of
2466 integers. The list should specify the indexes of the items that
2469 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2471 def GetSelections(*args
, **kwargs
):
2473 GetSelections() -> [selections]
2475 Returns a list of integers representing the items that are selected.
2476 If an item is selected then its index will appear in the list.
2478 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2480 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialog
)
2482 class SingleChoiceDialog(Dialog
):
2483 """A simple dialog with a single selection listbox."""
2484 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2485 __repr__
= _swig_repr
2486 def __init__(self
, *args
, **kwargs
):
2488 __init__(Window parent, String message, String caption,
2489 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2490 Point pos=DefaultPosition) -> SingleChoiceDialog
2492 Constructor. Use ShowModal method to show the dialog.
2494 _windows_
.SingleChoiceDialog_swiginit(self
,_windows_
.new_SingleChoiceDialog(*args
, **kwargs
))
2495 self
._setOORInfo
(self
)
2497 def GetSelection(*args
, **kwargs
):
2499 GetSelection(self) -> int
2501 Get the index of the currently selected item.
2503 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2505 def GetStringSelection(*args
, **kwargs
):
2507 GetStringSelection(self) -> String
2509 Returns the string value of the currently selected item
2511 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2513 def SetSelection(*args
, **kwargs
):
2515 SetSelection(self, int sel)
2517 Set the current selected item to sel
2519 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2521 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialog
)
2523 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2524 class TextEntryDialog(Dialog
):
2525 """A dialog with text control, [ok] and [cancel] buttons"""
2526 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2527 __repr__
= _swig_repr
2528 def __init__(self
, *args
, **kwargs
):
2530 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2531 String defaultValue=EmptyString,
2532 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2534 Constructor. Use ShowModal method to show the dialog.
2536 _windows_
.TextEntryDialog_swiginit(self
,_windows_
.new_TextEntryDialog(*args
, **kwargs
))
2537 self
._setOORInfo
(self
)
2539 def GetValue(*args
, **kwargs
):
2541 GetValue(self) -> String
2543 Returns the text that the user has entered if the user has pressed OK,
2544 or the original value if the user has pressed Cancel.
2546 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2548 def SetValue(*args
, **kwargs
):
2550 SetValue(self, String value)
2552 Sets the default text value.
2554 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2556 _windows_
.TextEntryDialog_swigregister(TextEntryDialog
)
2558 class PasswordEntryDialog(TextEntryDialog
):
2559 """Proxy of C++ PasswordEntryDialog class"""
2560 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2561 __repr__
= _swig_repr
2562 def __init__(self
, *args
, **kwargs
):
2564 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2565 String value=EmptyString,
2566 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2568 _windows_
.PasswordEntryDialog_swiginit(self
,_windows_
.new_PasswordEntryDialog(*args
, **kwargs
))
2569 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialog
)
2570 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2572 class NumberEntryDialog(Dialog
):
2573 """A dialog with spin control, ok and cancel buttons."""
2574 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2575 __repr__
= _swig_repr
2576 def __init__(self
, *args
, **kwargs
):
2578 __init__(self, Window parent, String message, String prompt, String caption,
2579 long value, long min, long max, Point pos=DefaultPosition) -> NumberEntryDialog
2581 Constructor. Use ShowModal method to show the dialog.
2583 _windows_
.NumberEntryDialog_swiginit(self
,_windows_
.new_NumberEntryDialog(*args
, **kwargs
))
2584 self
._setOORInfo
(self
)
2586 def GetValue(*args
, **kwargs
):
2587 """GetValue(self) -> long"""
2588 return _windows_
.NumberEntryDialog_GetValue(*args
, **kwargs
)
2590 _windows_
.NumberEntryDialog_swigregister(NumberEntryDialog
)
2592 class FontData(_core
.Object
):
2594 This class holds a variety of information related to font dialogs and
2595 is used to transfer settings to and results from a `wx.FontDialog`.
2597 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2598 __repr__
= _swig_repr
2599 def __init__(self
, *args
, **kwargs
):
2601 __init__(self) -> FontData
2603 This class holds a variety of information related to font dialogs and
2604 is used to transfer settings to and results from a `wx.FontDialog`.
2606 _windows_
.FontData_swiginit(self
,_windows_
.new_FontData(*args
, **kwargs
))
2607 __swig_destroy__
= _windows_
.delete_FontData
2608 __del__
= lambda self
: None;
2609 def EnableEffects(*args
, **kwargs
):
2611 EnableEffects(self, bool enable)
2613 Enables or disables 'effects' under MS Windows only. This refers to
2614 the controls for manipulating colour, strikeout and underline
2615 properties. The default value is true.
2617 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2619 def GetAllowSymbols(*args
, **kwargs
):
2621 GetAllowSymbols(self) -> bool
2623 Under MS Windows, returns a flag determining whether symbol fonts can
2624 be selected. Has no effect on other platforms. The default value is
2627 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2629 def GetColour(*args
, **kwargs
):
2631 GetColour(self) -> Colour
2633 Gets the colour associated with the font dialog. The default value is
2636 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2638 def GetChosenFont(*args
, **kwargs
):
2640 GetChosenFont(self) -> Font
2642 Gets the font chosen by the user.
2644 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2646 def GetEnableEffects(*args
, **kwargs
):
2648 GetEnableEffects(self) -> bool
2650 Determines whether 'effects' are enabled under Windows.
2652 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2654 def GetInitialFont(*args
, **kwargs
):
2656 GetInitialFont(self) -> Font
2658 Gets the font that will be initially used by the font dialog. This
2659 should have previously been set by the application.
2661 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2663 def GetShowHelp(*args
, **kwargs
):
2665 GetShowHelp(self) -> bool
2667 Returns true if the Help button will be shown (Windows only). The
2668 default value is false.
2670 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2672 def SetAllowSymbols(*args
, **kwargs
):
2674 SetAllowSymbols(self, bool allowSymbols)
2676 Under MS Windows, determines whether symbol fonts can be selected. Has
2677 no effect on other platforms. The default value is true.
2679 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2681 def SetChosenFont(*args
, **kwargs
):
2683 SetChosenFont(self, Font font)
2685 Sets the font that will be returned to the user (normally for internal
2688 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2690 def SetColour(*args
, **kwargs
):
2692 SetColour(self, Colour colour)
2694 Sets the colour that will be used for the font foreground colour. The
2695 default colour is black.
2697 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2699 def SetInitialFont(*args
, **kwargs
):
2701 SetInitialFont(self, Font font)
2703 Sets the font that will be initially used by the font dialog.
2705 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2707 def SetRange(*args
, **kwargs
):
2709 SetRange(self, int min, int max)
2711 Sets the valid range for the font point size (Windows only). The
2712 default is 0, 0 (unrestricted range).
2714 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2716 def SetShowHelp(*args
, **kwargs
):
2718 SetShowHelp(self, bool showHelp)
2720 Determines whether the Help button will be displayed in the font
2721 dialog (Windows only). The default value is false.
2723 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2725 AllowSymbols
= property(GetAllowSymbols
,SetAllowSymbols
,doc
="See `GetAllowSymbols` and `SetAllowSymbols`")
2726 ChosenFont
= property(GetChosenFont
,SetChosenFont
,doc
="See `GetChosenFont` and `SetChosenFont`")
2727 Colour
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")
2728 EnableEffects
= property(GetEnableEffects
,doc
="See `GetEnableEffects`")
2729 InitialFont
= property(GetInitialFont
,SetInitialFont
,doc
="See `GetInitialFont` and `SetInitialFont`")
2730 ShowHelp
= property(GetShowHelp
,SetShowHelp
,doc
="See `GetShowHelp` and `SetShowHelp`")
2731 _windows_
.FontData_swigregister(FontData
)
2733 class FontDialog(Dialog
):
2735 wx.FontDialog allows the user to select a system font and its attributes.
2740 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2741 __repr__
= _swig_repr
2742 def __init__(self
, *args
, **kwargs
):
2744 __init__(self, Window parent, FontData data) -> FontDialog
2746 Constructor. Pass a parent window and the `wx.FontData` object to be
2747 used to initialize the dialog controls. Call `ShowModal` to display
2748 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2749 results with via the `wx.FontData` returned by `GetFontData`.
2751 _windows_
.FontDialog_swiginit(self
,_windows_
.new_FontDialog(*args
, **kwargs
))
2752 self
._setOORInfo
(self
)
2754 def GetFontData(*args
, **kwargs
):
2756 GetFontData(self) -> FontData
2758 Returns a reference to the internal `wx.FontData` used by the
2761 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2763 FontData
= property(GetFontData
,doc
="See `GetFontData`")
2764 _windows_
.FontDialog_swigregister(FontDialog
)
2767 def GetFontFromUser(*args
, **kwargs
):
2768 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2769 return _windows_
.GetFontFromUser(*args
, **kwargs
)
2770 class MessageDialog(Dialog
):
2772 This class provides a simple dialog that shows a single or multi-line
2773 message, with a choice of OK, Yes, No and/or Cancel buttons.
2775 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2776 __repr__
= _swig_repr
2777 def __init__(self
, *args
, **kwargs
):
2779 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2780 long style=wxOK|wxCANCEL|wxCENTRE,
2781 Point pos=DefaultPosition) -> MessageDialog
2783 Constructor, use `ShowModal` to display the dialog.
2785 _windows_
.MessageDialog_swiginit(self
,_windows_
.new_MessageDialog(*args
, **kwargs
))
2786 self
._setOORInfo
(self
)
2788 _windows_
.MessageDialog_swigregister(MessageDialog
)
2790 PD_AUTO_HIDE
= _windows_
.PD_AUTO_HIDE
2791 PD_APP_MODAL
= _windows_
.PD_APP_MODAL
2792 PD_CAN_ABORT
= _windows_
.PD_CAN_ABORT
2793 PD_ELAPSED_TIME
= _windows_
.PD_ELAPSED_TIME
2794 PD_ESTIMATED_TIME
= _windows_
.PD_ESTIMATED_TIME
2795 PD_REMAINING_TIME
= _windows_
.PD_REMAINING_TIME
2796 PD_SMOOTH
= _windows_
.PD_SMOOTH
2797 PD_CAN_SKIP
= _windows_
.PD_CAN_SKIP
2798 class ProgressDialog(Frame
):
2800 A dialog that shows a short message and a progress bar. Optionally, it
2801 can display an ABORT button.
2803 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2804 __repr__
= _swig_repr
2805 def __init__(self
, *args
, **kwargs
):
2807 __init__(self, String title, String message, int maximum=100, Window parent=None,
2808 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2810 Constructor. Creates the dialog, displays it and disables user input
2811 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2814 _windows_
.ProgressDialog_swiginit(self
,_windows_
.new_ProgressDialog(*args
, **kwargs
))
2815 self
._setOORInfo
(self
)
2817 def Update(*args
, **kwargs
):
2819 Update(self, int value, String newmsg) --> (continue, skip)
2821 Updates the dialog, setting the progress bar to the new value and, if
2822 given changes the message above it. The value given should be less
2823 than or equal to the maximum value given to the constructor and the
2824 dialog is closed if it is equal to the maximum. Returns a tuple of
2825 boolean values, ``(continue, skip)`` where ``continue`` is ``True``
2826 unless the Cancel button has been pressed, and ``skip`` is ``False``
2827 unless the Skip button (if any) has been pressed.
2829 If the ``continue`` return value is ``false``, the application can either
2830 immediately destroy the dialog or ask the user for confirmation, and if the
2831 abort is not confirmed the dialog may be resumed with `Resume` function.
2834 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2836 def UpdatePulse(*args
, **kwargs
):
2838 UpdatePulse(self, String newmsg) --> (continue, skip)
2840 Just like `Update` but switches the dialog to use a gauge in
2841 interminante mode and calls `wx.Gauge.Pulse` to show the user a bit of
2844 return _windows_
.ProgressDialog_UpdatePulse(*args
, **kwargs
)
2846 def Resume(*args
, **kwargs
):
2850 Can be used to continue with the dialog, after the user had chosen to
2853 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2855 _windows_
.ProgressDialog_swigregister(ProgressDialog
)
2857 FR_DOWN
= _windows_
.FR_DOWN
2858 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2859 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2860 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2861 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2862 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2863 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2864 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2865 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2866 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2867 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2868 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2869 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2870 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2871 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2872 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2873 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2875 # For backwards compatibility. Should they be removed?
2876 EVT_COMMAND_FIND
= EVT_FIND
2877 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2878 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2879 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2880 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2882 class FindDialogEvent(_core
.CommandEvent
):
2883 """Events for the FindReplaceDialog"""
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, EventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2890 Events for the FindReplaceDialog
2892 _windows_
.FindDialogEvent_swiginit(self
,_windows_
.new_FindDialogEvent(*args
, **kwargs
))
2893 def GetFlags(*args
, **kwargs
):
2895 GetFlags(self) -> int
2897 Get the currently selected flags: this is the combination of
2898 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2900 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2902 def GetFindString(*args
, **kwargs
):
2904 GetFindString(self) -> String
2906 Return the string to find (never empty).
2908 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2910 def GetReplaceString(*args
, **kwargs
):
2912 GetReplaceString(self) -> String
2914 Return the string to replace the search string with (only for replace
2915 and replace all events).
2917 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2919 def GetDialog(*args
, **kwargs
):
2921 GetDialog(self) -> FindReplaceDialog
2923 Return the pointer to the dialog which generated this event.
2925 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2927 def SetFlags(*args
, **kwargs
):
2928 """SetFlags(self, int flags)"""
2929 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2931 def SetFindString(*args
, **kwargs
):
2932 """SetFindString(self, String str)"""
2933 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2935 def SetReplaceString(*args
, **kwargs
):
2936 """SetReplaceString(self, String str)"""
2937 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2939 Dialog
= property(GetDialog
,doc
="See `GetDialog`")
2940 FindString
= property(GetFindString
,SetFindString
,doc
="See `GetFindString` and `SetFindString`")
2941 Flags
= property(GetFlags
,SetFlags
,doc
="See `GetFlags` and `SetFlags`")
2942 ReplaceString
= property(GetReplaceString
,SetReplaceString
,doc
="See `GetReplaceString` and `SetReplaceString`")
2943 _windows_
.FindDialogEvent_swigregister(FindDialogEvent
)
2945 class FindReplaceData(_core
.Object
):
2947 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2948 to initialize the dialog with the default values and will keep the
2949 last values from the dialog when it is closed. It is also updated each
2950 time a `wx.FindDialogEvent` is generated so instead of using the
2951 `wx.FindDialogEvent` methods you can also directly query this object.
2953 Note that all SetXXX() methods may only be called before showing the
2954 dialog and calling them has no effect later.
2956 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2957 __repr__
= _swig_repr
2958 def __init__(self
, *args
, **kwargs
):
2960 __init__(self, int flags=0) -> FindReplaceData
2962 Constuctor initializes the flags to default value (0).
2964 _windows_
.FindReplaceData_swiginit(self
,_windows_
.new_FindReplaceData(*args
, **kwargs
))
2965 __swig_destroy__
= _windows_
.delete_FindReplaceData
2966 __del__
= lambda self
: None;
2967 def GetFindString(*args
, **kwargs
):
2969 GetFindString(self) -> String
2971 Get the string to find.
2973 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2975 def GetReplaceString(*args
, **kwargs
):
2977 GetReplaceString(self) -> String
2979 Get the replacement string.
2981 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2983 def GetFlags(*args
, **kwargs
):
2985 GetFlags(self) -> int
2987 Get the combination of flag values.
2989 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
2991 def SetFlags(*args
, **kwargs
):
2993 SetFlags(self, int flags)
2995 Set the flags to use to initialize the controls of the dialog.
2997 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
2999 def SetFindString(*args
, **kwargs
):
3001 SetFindString(self, String str)
3003 Set the string to find (used as initial value by the dialog).
3005 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3007 def SetReplaceString(*args
, **kwargs
):
3009 SetReplaceString(self, String str)
3011 Set the replacement string (used as initial value by the dialog).
3013 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3015 FindString
= property(GetFindString
,SetFindString
,doc
="See `GetFindString` and `SetFindString`")
3016 Flags
= property(GetFlags
,SetFlags
,doc
="See `GetFlags` and `SetFlags`")
3017 ReplaceString
= property(GetReplaceString
,SetReplaceString
,doc
="See `GetReplaceString` and `SetReplaceString`")
3018 _windows_
.FindReplaceData_swigregister(FindReplaceData
)
3020 class FindReplaceDialog(Dialog
):
3022 wx.FindReplaceDialog is a standard modeless dialog which is used to
3023 allow the user to search for some text (and possibly replace it with
3024 something else). The actual searching is supposed to be done in the
3025 owner window which is the parent of this dialog. Note that it means
3026 that unlike for the other standard dialogs this one must have a parent
3027 window. Also note that there is no way to use this dialog in a modal
3028 way; it is always, by design and implementation, modeless.
3030 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3031 __repr__
= _swig_repr
3032 def __init__(self
, *args
, **kwargs
):
3034 __init__(self, Window parent, FindReplaceData data, String title,
3035 int style=0) -> FindReplaceDialog
3037 Create a FindReplaceDialog. The parent and data parameters must be
3038 non-None. Use Show to display the dialog.
3040 _windows_
.FindReplaceDialog_swiginit(self
,_windows_
.new_FindReplaceDialog(*args
, **kwargs
))
3041 self
._setOORInfo
(self
)
3043 def Create(*args
, **kwargs
):
3045 Create(self, Window parent, FindReplaceData data, String title,
3046 int style=0) -> bool
3048 Create the dialog, for 2-phase create.
3050 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3052 def GetData(*args
, **kwargs
):
3054 GetData(self) -> FindReplaceData
3056 Get the FindReplaceData object used by this dialog.
3058 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3060 def SetData(*args
, **kwargs
):
3062 SetData(self, FindReplaceData data)
3064 Set the FindReplaceData object used by this dialog.
3066 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3068 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
3069 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialog
)
3071 def PreFindReplaceDialog(*args
, **kwargs
):
3073 PreFindReplaceDialog() -> FindReplaceDialog
3075 Precreate a FindReplaceDialog for 2-phase creation
3077 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3080 #---------------------------------------------------------------------------
3082 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3083 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3084 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3085 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3086 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3087 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3088 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3089 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3090 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3091 class MDIParentFrame(Frame
):
3092 """Proxy of C++ MDIParentFrame class"""
3093 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3094 __repr__
= _swig_repr
3095 def __init__(self
, *args
, **kwargs
):
3097 __init__(self, Window parent, int id=-1, String title=EmptyString,
3098 Point pos=DefaultPosition, Size size=DefaultSize,
3099 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3100 String name=FrameNameStr) -> MDIParentFrame
3102 _windows_
.MDIParentFrame_swiginit(self
,_windows_
.new_MDIParentFrame(*args
, **kwargs
))
3103 self
._setOORInfo
(self
)
3105 def Create(*args
, **kwargs
):
3107 Create(self, Window parent, int id=-1, String title=EmptyString,
3108 Point pos=DefaultPosition, Size size=DefaultSize,
3109 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3110 String name=FrameNameStr) -> bool
3112 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3114 def ActivateNext(*args
, **kwargs
):
3115 """ActivateNext(self)"""
3116 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3118 def ActivatePrevious(*args
, **kwargs
):
3119 """ActivatePrevious(self)"""
3120 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3122 def ArrangeIcons(*args
, **kwargs
):
3123 """ArrangeIcons(self)"""
3124 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3126 def Cascade(*args
, **kwargs
):
3128 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3130 def GetActiveChild(*args
, **kwargs
):
3131 """GetActiveChild(self) -> MDIChildFrame"""
3132 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3134 def GetClientWindow(*args
, **kwargs
):
3135 """GetClientWindow(self) -> MDIClientWindow"""
3136 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3138 def GetToolBar(*args
, **kwargs
):
3139 """GetToolBar(self) -> Window"""
3140 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3142 def Tile(*args
, **kwargs
):
3143 """Tile(self, int orient=HORIZONTAL)"""
3144 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3146 _windows_
.MDIParentFrame_swigregister(MDIParentFrame
)
3148 def PreMDIParentFrame(*args
, **kwargs
):
3149 """PreMDIParentFrame() -> MDIParentFrame"""
3150 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3153 class MDIChildFrame(Frame
):
3154 """Proxy of C++ MDIChildFrame class"""
3155 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3156 __repr__
= _swig_repr
3157 def __init__(self
, *args
, **kwargs
):
3159 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3160 Point pos=DefaultPosition, Size size=DefaultSize,
3161 long style=DEFAULT_FRAME_STYLE,
3162 String name=FrameNameStr) -> MDIChildFrame
3164 _windows_
.MDIChildFrame_swiginit(self
,_windows_
.new_MDIChildFrame(*args
, **kwargs
))
3165 self
._setOORInfo
(self
)
3167 def Create(*args
, **kwargs
):
3169 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3170 Point pos=DefaultPosition, Size size=DefaultSize,
3171 long style=DEFAULT_FRAME_STYLE,
3172 String name=FrameNameStr) -> bool
3174 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3176 def Activate(*args
, **kwargs
):
3177 """Activate(self)"""
3178 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3180 _windows_
.MDIChildFrame_swigregister(MDIChildFrame
)
3182 def PreMDIChildFrame(*args
, **kwargs
):
3183 """PreMDIChildFrame() -> MDIChildFrame"""
3184 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3187 class MDIClientWindow(_core
.Window
):
3188 """Proxy of C++ MDIClientWindow class"""
3189 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3190 __repr__
= _swig_repr
3191 def __init__(self
, *args
, **kwargs
):
3192 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3193 _windows_
.MDIClientWindow_swiginit(self
,_windows_
.new_MDIClientWindow(*args
, **kwargs
))
3194 self
._setOORInfo
(self
)
3196 def Create(*args
, **kwargs
):
3197 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3198 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3200 _windows_
.MDIClientWindow_swigregister(MDIClientWindow
)
3202 def PreMDIClientWindow(*args
, **kwargs
):
3203 """PreMDIClientWindow() -> MDIClientWindow"""
3204 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3207 #---------------------------------------------------------------------------
3209 class PyWindow(_core
.Window
):
3210 """Proxy of C++ PyWindow class"""
3211 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3212 __repr__
= _swig_repr
3213 def __init__(self
, *args
, **kwargs
):
3215 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3216 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3218 _windows_
.PyWindow_swiginit(self
,_windows_
.new_PyWindow(*args
, **kwargs
))
3219 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3221 def _setCallbackInfo(*args
, **kwargs
):
3222 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3223 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3225 def SetBestSize(*args
, **kwargs
):
3226 """SetBestSize(self, Size size)"""
3227 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3229 def DoEraseBackground(*args
, **kwargs
):
3230 """DoEraseBackground(self, DC dc) -> bool"""
3231 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3233 def DoMoveWindow(*args
, **kwargs
):
3234 """DoMoveWindow(self, int x, int y, int width, int height)"""
3235 return _windows_
.PyWindow_DoMoveWindow(*args
, **kwargs
)
3237 def DoSetSize(*args
, **kwargs
):
3238 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3239 return _windows_
.PyWindow_DoSetSize(*args
, **kwargs
)
3241 def DoSetClientSize(*args
, **kwargs
):
3242 """DoSetClientSize(self, int width, int height)"""
3243 return _windows_
.PyWindow_DoSetClientSize(*args
, **kwargs
)
3245 def DoSetVirtualSize(*args
, **kwargs
):
3246 """DoSetVirtualSize(self, int x, int y)"""
3247 return _windows_
.PyWindow_DoSetVirtualSize(*args
, **kwargs
)
3249 def DoGetSize(*args
, **kwargs
):
3250 """DoGetSize() -> (width, height)"""
3251 return _windows_
.PyWindow_DoGetSize(*args
, **kwargs
)
3253 def DoGetClientSize(*args
, **kwargs
):
3254 """DoGetClientSize() -> (width, height)"""
3255 return _windows_
.PyWindow_DoGetClientSize(*args
, **kwargs
)
3257 def DoGetPosition(*args
, **kwargs
):
3258 """DoGetPosition() -> (x,y)"""
3259 return _windows_
.PyWindow_DoGetPosition(*args
, **kwargs
)
3261 def DoGetVirtualSize(*args
, **kwargs
):
3262 """DoGetVirtualSize(self) -> Size"""
3263 return _windows_
.PyWindow_DoGetVirtualSize(*args
, **kwargs
)
3265 def DoGetBestSize(*args
, **kwargs
):
3266 """DoGetBestSize(self) -> Size"""
3267 return _windows_
.PyWindow_DoGetBestSize(*args
, **kwargs
)
3269 def GetDefaultAttributes(*args
, **kwargs
):
3270 """GetDefaultAttributes(self) -> VisualAttributes"""
3271 return _windows_
.PyWindow_GetDefaultAttributes(*args
, **kwargs
)
3273 def OnInternalIdle(*args
, **kwargs
):
3274 """OnInternalIdle(self)"""
3275 return _windows_
.PyWindow_OnInternalIdle(*args
, **kwargs
)
3277 def base_DoMoveWindow(*args
, **kw
):
3278 return PyWindow
.DoMoveWindow(*args
, **kw
)
3279 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3280 "Please use PyWindow.DoMoveWindow instead.")
3282 def base_DoSetSize(*args
, **kw
):
3283 return PyWindow
.DoSetSize(*args
, **kw
)
3284 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3285 "Please use PyWindow.DoSetSize instead.")
3287 def base_DoSetClientSize(*args
, **kw
):
3288 return PyWindow
.DoSetClientSize(*args
, **kw
)
3289 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3290 "Please use PyWindow.DoSetClientSize instead.")
3292 def base_DoSetVirtualSize(*args
, **kw
):
3293 return PyWindow
.DoSetVirtualSize(*args
, **kw
)
3294 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3295 "Please use PyWindow.DoSetVirtualSize instead.")
3297 def base_DoGetSize(*args
, **kw
):
3298 return PyWindow
.DoGetSize(*args
, **kw
)
3299 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3300 "Please use PyWindow.DoGetSize instead.")
3302 def base_DoGetClientSize(*args
, **kw
):
3303 return PyWindow
.DoGetClientSize(*args
, **kw
)
3304 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3305 "Please use PyWindow.DoGetClientSize instead.")
3307 def base_DoGetPosition(*args
, **kw
):
3308 return PyWindow
.DoGetPosition(*args
, **kw
)
3309 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3310 "Please use PyWindow.DoGetPosition instead.")
3312 def base_DoGetVirtualSize(*args
, **kw
):
3313 return PyWindow
.DoGetVirtualSize(*args
, **kw
)
3314 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3315 "Please use PyWindow.DoGetVirtualSize instead.")
3317 def base_DoGetBestSize(*args
, **kw
):
3318 return PyWindow
.DoGetBestSize(*args
, **kw
)
3319 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3320 "Please use PyWindow.DoGetBestSize instead.")
3322 def base_InitDialog(*args
, **kw
):
3323 return PyWindow
.InitDialog(*args
, **kw
)
3324 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3325 "Please use PyWindow.InitDialog instead.")
3327 def base_TransferDataToWindow(*args
, **kw
):
3328 return PyWindow
.TransferDataToWindow(*args
, **kw
)
3329 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3330 "Please use PyWindow.TransferDataToWindow instead.")
3332 def base_TransferDataFromWindow(*args
, **kw
):
3333 return PyWindow
.TransferDataFromWindow(*args
, **kw
)
3334 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3335 "Please use PyWindow.TransferDataFromWindow instead.")
3337 def base_Validate(*args
, **kw
):
3338 return PyWindow
.Validate(*args
, **kw
)
3339 base_Validate
= wx
._deprecated
(base_Validate
,
3340 "Please use PyWindow.Validate instead.")
3342 def base_AcceptsFocus(*args
, **kw
):
3343 return PyWindow
.AcceptsFocus(*args
, **kw
)
3344 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3345 "Please use PyWindow.AcceptsFocus instead.")
3347 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3348 return PyWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3349 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3350 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3352 def base_GetMaxSize(*args
, **kw
):
3353 return PyWindow
.GetMaxSize(*args
, **kw
)
3354 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3355 "Please use PyWindow.GetMaxSize instead.")
3357 def base_AddChild(*args
, **kw
):
3358 return PyWindow
.AddChild(*args
, **kw
)
3359 base_AddChild
= wx
._deprecated
(base_AddChild
,
3360 "Please use PyWindow.AddChild instead.")
3362 def base_RemoveChild(*args
, **kw
):
3363 return PyWindow
.RemoveChild(*args
, **kw
)
3364 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3365 "Please use PyWindow.RemoveChild instead.")
3367 def base_ShouldInheritColours(*args
, **kw
):
3368 return PyWindow
.ShouldInheritColours(*args
, **kw
)
3369 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3370 "Please use PyWindow.ShouldInheritColours instead.")
3372 def base_GetDefaultAttributes(*args
, **kw
):
3373 return PyWindow
.GetDefaultAttributes(*args
, **kw
)
3374 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3375 "Please use PyWindow.GetDefaultAttributes instead.")
3377 def base_OnInternalIdle(*args
, **kw
):
3378 return PyWindow
.OnInternalIdle(*args
, **kw
)
3379 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3380 "Please use PyWindow.OnInternalIdle instead.")
3382 _windows_
.PyWindow_swigregister(PyWindow
)
3384 def PrePyWindow(*args
, **kwargs
):
3385 """PrePyWindow() -> PyWindow"""
3386 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3389 class PyPanel(Panel
):
3390 """Proxy of C++ PyPanel class"""
3391 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3392 __repr__
= _swig_repr
3393 def __init__(self
, *args
, **kwargs
):
3395 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3396 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3398 _windows_
.PyPanel_swiginit(self
,_windows_
.new_PyPanel(*args
, **kwargs
))
3399 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3401 def _setCallbackInfo(*args
, **kwargs
):
3402 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3403 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3405 def SetBestSize(*args
, **kwargs
):
3406 """SetBestSize(self, Size size)"""
3407 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3409 def DoEraseBackground(*args
, **kwargs
):
3410 """DoEraseBackground(self, DC dc) -> bool"""
3411 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3413 def DoMoveWindow(*args
, **kwargs
):
3414 """DoMoveWindow(self, int x, int y, int width, int height)"""
3415 return _windows_
.PyPanel_DoMoveWindow(*args
, **kwargs
)
3417 def DoSetSize(*args
, **kwargs
):
3418 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3419 return _windows_
.PyPanel_DoSetSize(*args
, **kwargs
)
3421 def DoSetClientSize(*args
, **kwargs
):
3422 """DoSetClientSize(self, int width, int height)"""
3423 return _windows_
.PyPanel_DoSetClientSize(*args
, **kwargs
)
3425 def DoSetVirtualSize(*args
, **kwargs
):
3426 """DoSetVirtualSize(self, int x, int y)"""
3427 return _windows_
.PyPanel_DoSetVirtualSize(*args
, **kwargs
)
3429 def DoGetSize(*args
, **kwargs
):
3430 """DoGetSize() -> (width, height)"""
3431 return _windows_
.PyPanel_DoGetSize(*args
, **kwargs
)
3433 def DoGetClientSize(*args
, **kwargs
):
3434 """DoGetClientSize() -> (width, height)"""
3435 return _windows_
.PyPanel_DoGetClientSize(*args
, **kwargs
)
3437 def DoGetPosition(*args
, **kwargs
):
3438 """DoGetPosition() -> (x,y)"""
3439 return _windows_
.PyPanel_DoGetPosition(*args
, **kwargs
)
3441 def DoGetVirtualSize(*args
, **kwargs
):
3442 """DoGetVirtualSize(self) -> Size"""
3443 return _windows_
.PyPanel_DoGetVirtualSize(*args
, **kwargs
)
3445 def DoGetBestSize(*args
, **kwargs
):
3446 """DoGetBestSize(self) -> Size"""
3447 return _windows_
.PyPanel_DoGetBestSize(*args
, **kwargs
)
3449 def GetDefaultAttributes(*args
, **kwargs
):
3450 """GetDefaultAttributes(self) -> VisualAttributes"""
3451 return _windows_
.PyPanel_GetDefaultAttributes(*args
, **kwargs
)
3453 def OnInternalIdle(*args
, **kwargs
):
3454 """OnInternalIdle(self)"""
3455 return _windows_
.PyPanel_OnInternalIdle(*args
, **kwargs
)
3457 def base_DoMoveWindow(*args
, **kw
):
3458 return PyPanel
.DoMoveWindow(*args
, **kw
)
3459 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3460 "Please use PyPanel.DoMoveWindow instead.")
3462 def base_DoSetSize(*args
, **kw
):
3463 return PyPanel
.DoSetSize(*args
, **kw
)
3464 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3465 "Please use PyPanel.DoSetSize instead.")
3467 def base_DoSetClientSize(*args
, **kw
):
3468 return PyPanel
.DoSetClientSize(*args
, **kw
)
3469 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3470 "Please use PyPanel.DoSetClientSize instead.")
3472 def base_DoSetVirtualSize(*args
, **kw
):
3473 return PyPanel
.DoSetVirtualSize(*args
, **kw
)
3474 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3475 "Please use PyPanel.DoSetVirtualSize instead.")
3477 def base_DoGetSize(*args
, **kw
):
3478 return PyPanel
.DoGetSize(*args
, **kw
)
3479 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3480 "Please use PyPanel.DoGetSize instead.")
3482 def base_DoGetClientSize(*args
, **kw
):
3483 return PyPanel
.DoGetClientSize(*args
, **kw
)
3484 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3485 "Please use PyPanel.DoGetClientSize instead.")
3487 def base_DoGetPosition(*args
, **kw
):
3488 return PyPanel
.DoGetPosition(*args
, **kw
)
3489 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3490 "Please use PyPanel.DoGetPosition instead.")
3492 def base_DoGetVirtualSize(*args
, **kw
):
3493 return PyPanel
.DoGetVirtualSize(*args
, **kw
)
3494 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3495 "Please use PyPanel.DoGetVirtualSize instead.")
3497 def base_DoGetBestSize(*args
, **kw
):
3498 return PyPanel
.DoGetBestSize(*args
, **kw
)
3499 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3500 "Please use PyPanel.DoGetBestSize instead.")
3502 def base_InitDialog(*args
, **kw
):
3503 return PyPanel
.InitDialog(*args
, **kw
)
3504 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3505 "Please use PyPanel.InitDialog instead.")
3507 def base_TransferDataToWindow(*args
, **kw
):
3508 return PyPanel
.TransferDataToWindow(*args
, **kw
)
3509 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3510 "Please use PyPanel.TransferDataToWindow instead.")
3512 def base_TransferDataFromWindow(*args
, **kw
):
3513 return PyPanel
.TransferDataFromWindow(*args
, **kw
)
3514 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3515 "Please use PyPanel.TransferDataFromWindow instead.")
3517 def base_Validate(*args
, **kw
):
3518 return PyPanel
.Validate(*args
, **kw
)
3519 base_Validate
= wx
._deprecated
(base_Validate
,
3520 "Please use PyPanel.Validate instead.")
3522 def base_AcceptsFocus(*args
, **kw
):
3523 return PyPanel
.AcceptsFocus(*args
, **kw
)
3524 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3525 "Please use PyPanel.AcceptsFocus instead.")
3527 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3528 return PyPanel
.AcceptsFocusFromKeyboard(*args
, **kw
)
3529 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3530 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
3532 def base_GetMaxSize(*args
, **kw
):
3533 return PyPanel
.GetMaxSize(*args
, **kw
)
3534 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3535 "Please use PyPanel.GetMaxSize instead.")
3537 def base_AddChild(*args
, **kw
):
3538 return PyPanel
.AddChild(*args
, **kw
)
3539 base_AddChild
= wx
._deprecated
(base_AddChild
,
3540 "Please use PyPanel.AddChild instead.")
3542 def base_RemoveChild(*args
, **kw
):
3543 return PyPanel
.RemoveChild(*args
, **kw
)
3544 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3545 "Please use PyPanel.RemoveChild instead.")
3547 def base_ShouldInheritColours(*args
, **kw
):
3548 return PyPanel
.ShouldInheritColours(*args
, **kw
)
3549 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3550 "Please use PyPanel.ShouldInheritColours instead.")
3552 def base_GetDefaultAttributes(*args
, **kw
):
3553 return PyPanel
.GetDefaultAttributes(*args
, **kw
)
3554 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3555 "Please use PyPanel.GetDefaultAttributes instead.")
3557 def base_OnInternalIdle(*args
, **kw
):
3558 return PyPanel
.OnInternalIdle(*args
, **kw
)
3559 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3560 "Please use PyPanel.OnInternalIdle instead.")
3562 _windows_
.PyPanel_swigregister(PyPanel
)
3564 def PrePyPanel(*args
, **kwargs
):
3565 """PrePyPanel() -> PyPanel"""
3566 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3569 class PyScrolledWindow(ScrolledWindow
):
3570 """Proxy of C++ PyScrolledWindow class"""
3571 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3572 __repr__
= _swig_repr
3573 def __init__(self
, *args
, **kwargs
):
3575 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3576 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3578 _windows_
.PyScrolledWindow_swiginit(self
,_windows_
.new_PyScrolledWindow(*args
, **kwargs
))
3579 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3581 def _setCallbackInfo(*args
, **kwargs
):
3582 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3583 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3585 def SetBestSize(*args
, **kwargs
):
3586 """SetBestSize(self, Size size)"""
3587 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3589 def DoEraseBackground(*args
, **kwargs
):
3590 """DoEraseBackground(self, DC dc) -> bool"""
3591 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3593 def DoMoveWindow(*args
, **kwargs
):
3594 """DoMoveWindow(self, int x, int y, int width, int height)"""
3595 return _windows_
.PyScrolledWindow_DoMoveWindow(*args
, **kwargs
)
3597 def DoSetSize(*args
, **kwargs
):
3598 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3599 return _windows_
.PyScrolledWindow_DoSetSize(*args
, **kwargs
)
3601 def DoSetClientSize(*args
, **kwargs
):
3602 """DoSetClientSize(self, int width, int height)"""
3603 return _windows_
.PyScrolledWindow_DoSetClientSize(*args
, **kwargs
)
3605 def DoSetVirtualSize(*args
, **kwargs
):
3606 """DoSetVirtualSize(self, int x, int y)"""
3607 return _windows_
.PyScrolledWindow_DoSetVirtualSize(*args
, **kwargs
)
3609 def DoGetSize(*args
, **kwargs
):
3610 """DoGetSize() -> (width, height)"""
3611 return _windows_
.PyScrolledWindow_DoGetSize(*args
, **kwargs
)
3613 def DoGetClientSize(*args
, **kwargs
):
3614 """DoGetClientSize() -> (width, height)"""
3615 return _windows_
.PyScrolledWindow_DoGetClientSize(*args
, **kwargs
)
3617 def DoGetPosition(*args
, **kwargs
):
3618 """DoGetPosition() -> (x,y)"""
3619 return _windows_
.PyScrolledWindow_DoGetPosition(*args
, **kwargs
)
3621 def DoGetVirtualSize(*args
, **kwargs
):
3622 """DoGetVirtualSize(self) -> Size"""
3623 return _windows_
.PyScrolledWindow_DoGetVirtualSize(*args
, **kwargs
)
3625 def DoGetBestSize(*args
, **kwargs
):
3626 """DoGetBestSize(self) -> Size"""
3627 return _windows_
.PyScrolledWindow_DoGetBestSize(*args
, **kwargs
)
3629 def GetDefaultAttributes(*args
, **kwargs
):
3630 """GetDefaultAttributes(self) -> VisualAttributes"""
3631 return _windows_
.PyScrolledWindow_GetDefaultAttributes(*args
, **kwargs
)
3633 def OnInternalIdle(*args
, **kwargs
):
3634 """OnInternalIdle(self)"""
3635 return _windows_
.PyScrolledWindow_OnInternalIdle(*args
, **kwargs
)
3637 def base_DoMoveWindow(*args
, **kw
):
3638 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
3639 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3640 "Please use PyScrolledWindow.DoMoveWindow instead.")
3642 def base_DoSetSize(*args
, **kw
):
3643 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
3644 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3645 "Please use PyScrolledWindow.DoSetSize instead.")
3647 def base_DoSetClientSize(*args
, **kw
):
3648 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
3649 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3650 "Please use PyScrolledWindow.DoSetClientSize instead.")
3652 def base_DoSetVirtualSize(*args
, **kw
):
3653 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
3654 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3655 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
3657 def base_DoGetSize(*args
, **kw
):
3658 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
3659 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3660 "Please use PyScrolledWindow.DoGetSize instead.")
3662 def base_DoGetClientSize(*args
, **kw
):
3663 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
3664 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3665 "Please use PyScrolledWindow.DoGetClientSize instead.")
3667 def base_DoGetPosition(*args
, **kw
):
3668 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
3669 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3670 "Please use PyScrolledWindow.DoGetPosition instead.")
3672 def base_DoGetVirtualSize(*args
, **kw
):
3673 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
3674 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3675 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
3677 def base_DoGetBestSize(*args
, **kw
):
3678 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
3679 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3680 "Please use PyScrolledWindow.DoGetBestSize instead.")
3682 def base_InitDialog(*args
, **kw
):
3683 return PyScrolledWindow
.InitDialog(*args
, **kw
)
3684 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3685 "Please use PyScrolledWindow.InitDialog instead.")
3687 def base_TransferDataToWindow(*args
, **kw
):
3688 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
3689 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3690 "Please use PyScrolledWindow.TransferDataToWindow instead.")
3692 def base_TransferDataFromWindow(*args
, **kw
):
3693 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
3694 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3695 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
3697 def base_Validate(*args
, **kw
):
3698 return PyScrolledWindow
.Validate(*args
, **kw
)
3699 base_Validate
= wx
._deprecated
(base_Validate
,
3700 "Please use PyScrolledWindow.Validate instead.")
3702 def base_AcceptsFocus(*args
, **kw
):
3703 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
3704 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3705 "Please use PyScrolledWindow.AcceptsFocus instead.")
3707 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3708 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3709 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3710 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
3712 def base_GetMaxSize(*args
, **kw
):
3713 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
3714 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3715 "Please use PyScrolledWindow.GetMaxSize instead.")
3717 def base_AddChild(*args
, **kw
):
3718 return PyScrolledWindow
.AddChild(*args
, **kw
)
3719 base_AddChild
= wx
._deprecated
(base_AddChild
,
3720 "Please use PyScrolledWindow.AddChild instead.")
3722 def base_RemoveChild(*args
, **kw
):
3723 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
3724 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3725 "Please use PyScrolledWindow.RemoveChild instead.")
3727 def base_ShouldInheritColours(*args
, **kw
):
3728 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
3729 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3730 "Please use PyScrolledWindow.ShouldInheritColours instead.")
3732 def base_GetDefaultAttributes(*args
, **kw
):
3733 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
3734 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3735 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
3737 def base_OnInternalIdle(*args
, **kw
):
3738 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
3739 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3740 "Please use PyScrolledWindow.OnInternalIdle instead.")
3742 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindow
)
3744 def PrePyScrolledWindow(*args
, **kwargs
):
3745 """PrePyScrolledWindow() -> PyScrolledWindow"""
3746 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3749 #---------------------------------------------------------------------------
3751 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3752 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3753 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3754 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3755 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3756 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3757 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3758 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3759 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3760 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3761 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3762 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3763 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3764 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3765 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3766 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3767 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3768 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3769 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3770 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3771 class PrintData(_core
.Object
):
3772 """Proxy of C++ PrintData class"""
3773 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3774 __repr__
= _swig_repr
3775 def __init__(self
, *args
):
3777 __init__(self) -> PrintData
3778 __init__(self, PrintData data) -> PrintData
3780 _windows_
.PrintData_swiginit(self
,_windows_
.new_PrintData(*args
))
3781 __swig_destroy__
= _windows_
.delete_PrintData
3782 __del__
= lambda self
: None;
3783 def GetNoCopies(*args
, **kwargs
):
3784 """GetNoCopies(self) -> int"""
3785 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3787 def GetCollate(*args
, **kwargs
):
3788 """GetCollate(self) -> bool"""
3789 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3791 def GetOrientation(*args
, **kwargs
):
3792 """GetOrientation(self) -> int"""
3793 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3795 def Ok(*args
, **kwargs
):
3796 """Ok(self) -> bool"""
3797 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3799 def GetPrinterName(*args
, **kwargs
):
3800 """GetPrinterName(self) -> String"""
3801 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3803 def GetColour(*args
, **kwargs
):
3804 """GetColour(self) -> bool"""
3805 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3807 def GetDuplex(*args
, **kwargs
):
3808 """GetDuplex(self) -> int"""
3809 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3811 def GetPaperId(*args
, **kwargs
):
3812 """GetPaperId(self) -> int"""
3813 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3815 def GetPaperSize(*args
, **kwargs
):
3816 """GetPaperSize(self) -> Size"""
3817 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3819 def GetQuality(*args
, **kwargs
):
3820 """GetQuality(self) -> int"""
3821 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3823 def GetBin(*args
, **kwargs
):
3824 """GetBin(self) -> int"""
3825 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3827 def GetPrintMode(*args
, **kwargs
):
3828 """GetPrintMode(self) -> int"""
3829 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3831 def SetNoCopies(*args
, **kwargs
):
3832 """SetNoCopies(self, int v)"""
3833 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3835 def SetCollate(*args
, **kwargs
):
3836 """SetCollate(self, bool flag)"""
3837 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3839 def SetOrientation(*args
, **kwargs
):
3840 """SetOrientation(self, int orient)"""
3841 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3843 def SetPrinterName(*args
, **kwargs
):
3844 """SetPrinterName(self, String name)"""
3845 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3847 def SetColour(*args
, **kwargs
):
3848 """SetColour(self, bool colour)"""
3849 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3851 def SetDuplex(*args
, **kwargs
):
3852 """SetDuplex(self, int duplex)"""
3853 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3855 def SetPaperId(*args
, **kwargs
):
3856 """SetPaperId(self, int sizeId)"""
3857 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3859 def SetPaperSize(*args
, **kwargs
):
3860 """SetPaperSize(self, Size sz)"""
3861 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3863 def SetQuality(*args
, **kwargs
):
3864 """SetQuality(self, int quality)"""
3865 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3867 def SetBin(*args
, **kwargs
):
3868 """SetBin(self, int bin)"""
3869 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3871 def SetPrintMode(*args
, **kwargs
):
3872 """SetPrintMode(self, int printMode)"""
3873 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3875 def GetFilename(*args
, **kwargs
):
3876 """GetFilename(self) -> String"""
3877 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3879 def SetFilename(*args
, **kwargs
):
3880 """SetFilename(self, String filename)"""
3881 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3883 def __nonzero__(self
): return self
.Ok()
3884 def GetPrivData(*args
, **kwargs
):
3885 """GetPrivData(self) -> PyObject"""
3886 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
3888 def SetPrivData(*args
, **kwargs
):
3889 """SetPrivData(self, PyObject data)"""
3890 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
3892 _windows_
.PrintData_swigregister(PrintData
)
3893 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3894 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3896 class PageSetupDialogData(_core
.Object
):
3897 """Proxy of C++ PageSetupDialogData class"""
3898 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3899 __repr__
= _swig_repr
3900 def __init__(self
, *args
):
3902 __init__(self) -> PageSetupDialogData
3903 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3904 __init__(self, PrintData data) -> PageSetupDialogData
3906 _windows_
.PageSetupDialogData_swiginit(self
,_windows_
.new_PageSetupDialogData(*args
))
3907 __swig_destroy__
= _windows_
.delete_PageSetupDialogData
3908 __del__
= lambda self
: None;
3909 def EnableHelp(*args
, **kwargs
):
3910 """EnableHelp(self, bool flag)"""
3911 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3913 def EnableMargins(*args
, **kwargs
):
3914 """EnableMargins(self, bool flag)"""
3915 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3917 def EnableOrientation(*args
, **kwargs
):
3918 """EnableOrientation(self, bool flag)"""
3919 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3921 def EnablePaper(*args
, **kwargs
):
3922 """EnablePaper(self, bool flag)"""
3923 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3925 def EnablePrinter(*args
, **kwargs
):
3926 """EnablePrinter(self, bool flag)"""
3927 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3929 def GetDefaultMinMargins(*args
, **kwargs
):
3930 """GetDefaultMinMargins(self) -> bool"""
3931 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3933 def GetEnableMargins(*args
, **kwargs
):
3934 """GetEnableMargins(self) -> bool"""
3935 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3937 def GetEnableOrientation(*args
, **kwargs
):
3938 """GetEnableOrientation(self) -> bool"""
3939 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3941 def GetEnablePaper(*args
, **kwargs
):
3942 """GetEnablePaper(self) -> bool"""
3943 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3945 def GetEnablePrinter(*args
, **kwargs
):
3946 """GetEnablePrinter(self) -> bool"""
3947 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3949 def GetEnableHelp(*args
, **kwargs
):
3950 """GetEnableHelp(self) -> bool"""
3951 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3953 def GetDefaultInfo(*args
, **kwargs
):
3954 """GetDefaultInfo(self) -> bool"""
3955 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3957 def GetMarginTopLeft(*args
, **kwargs
):
3958 """GetMarginTopLeft(self) -> Point"""
3959 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3961 def GetMarginBottomRight(*args
, **kwargs
):
3962 """GetMarginBottomRight(self) -> Point"""
3963 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3965 def GetMinMarginTopLeft(*args
, **kwargs
):
3966 """GetMinMarginTopLeft(self) -> Point"""
3967 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3969 def GetMinMarginBottomRight(*args
, **kwargs
):
3970 """GetMinMarginBottomRight(self) -> Point"""
3971 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3973 def GetPaperId(*args
, **kwargs
):
3974 """GetPaperId(self) -> int"""
3975 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3977 def GetPaperSize(*args
, **kwargs
):
3978 """GetPaperSize(self) -> Size"""
3979 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3981 def GetPrintData(*args
, **kwargs
):
3982 """GetPrintData(self) -> PrintData"""
3983 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3985 def Ok(*args
, **kwargs
):
3986 """Ok(self) -> bool"""
3987 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3989 def SetDefaultInfo(*args
, **kwargs
):
3990 """SetDefaultInfo(self, bool flag)"""
3991 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3993 def SetDefaultMinMargins(*args
, **kwargs
):
3994 """SetDefaultMinMargins(self, bool flag)"""
3995 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3997 def SetMarginTopLeft(*args
, **kwargs
):
3998 """SetMarginTopLeft(self, Point pt)"""
3999 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4001 def SetMarginBottomRight(*args
, **kwargs
):
4002 """SetMarginBottomRight(self, Point pt)"""
4003 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4005 def SetMinMarginTopLeft(*args
, **kwargs
):
4006 """SetMinMarginTopLeft(self, Point pt)"""
4007 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4009 def SetMinMarginBottomRight(*args
, **kwargs
):
4010 """SetMinMarginBottomRight(self, Point pt)"""
4011 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4013 def SetPaperId(*args
, **kwargs
):
4014 """SetPaperId(self, int id)"""
4015 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4017 def SetPaperSize(*args
, **kwargs
):
4018 """SetPaperSize(self, Size size)"""
4019 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4021 def SetPrintData(*args
, **kwargs
):
4022 """SetPrintData(self, PrintData printData)"""
4023 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4025 def CalculateIdFromPaperSize(*args
, **kwargs
):
4026 """CalculateIdFromPaperSize(self)"""
4027 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
4029 def CalculatePaperSizeFromId(*args
, **kwargs
):
4030 """CalculatePaperSizeFromId(self)"""
4031 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
4033 def __nonzero__(self
): return self
.Ok()
4034 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogData
)
4036 class PageSetupDialog(_core
.Object
):
4037 """Proxy of C++ PageSetupDialog class"""
4038 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4039 __repr__
= _swig_repr
4040 def __init__(self
, *args
, **kwargs
):
4041 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4042 _windows_
.PageSetupDialog_swiginit(self
,_windows_
.new_PageSetupDialog(*args
, **kwargs
))
4043 __swig_destroy__
= _windows_
.delete_PageSetupDialog
4044 __del__
= lambda self
: None;
4045 def GetPageSetupData(*args
, **kwargs
):
4046 """GetPageSetupData(self) -> PageSetupDialogData"""
4047 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4049 def GetPageSetupDialogData(*args
, **kwargs
):
4050 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4051 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4053 def ShowModal(*args
, **kwargs
):
4054 """ShowModal(self) -> int"""
4055 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4057 def Destroy(self
): pass
4058 _windows_
.PageSetupDialog_swigregister(PageSetupDialog
)
4060 class PrintDialogData(_core
.Object
):
4061 """Proxy of C++ PrintDialogData class"""
4062 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4063 __repr__
= _swig_repr
4064 def __init__(self
, *args
):
4066 __init__(self) -> PrintDialogData
4067 __init__(self, PrintData printData) -> PrintDialogData
4068 __init__(self, PrintDialogData printData) -> PrintDialogData
4070 _windows_
.PrintDialogData_swiginit(self
,_windows_
.new_PrintDialogData(*args
))
4071 __swig_destroy__
= _windows_
.delete_PrintDialogData
4072 __del__
= lambda self
: None;
4073 def GetFromPage(*args
, **kwargs
):
4074 """GetFromPage(self) -> int"""
4075 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4077 def GetToPage(*args
, **kwargs
):
4078 """GetToPage(self) -> int"""
4079 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4081 def GetMinPage(*args
, **kwargs
):
4082 """GetMinPage(self) -> int"""
4083 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4085 def GetMaxPage(*args
, **kwargs
):
4086 """GetMaxPage(self) -> int"""
4087 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4089 def GetNoCopies(*args
, **kwargs
):
4090 """GetNoCopies(self) -> int"""
4091 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4093 def GetAllPages(*args
, **kwargs
):
4094 """GetAllPages(self) -> bool"""
4095 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4097 def GetSelection(*args
, **kwargs
):
4098 """GetSelection(self) -> bool"""
4099 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4101 def GetCollate(*args
, **kwargs
):
4102 """GetCollate(self) -> bool"""
4103 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4105 def GetPrintToFile(*args
, **kwargs
):
4106 """GetPrintToFile(self) -> bool"""
4107 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4109 def SetFromPage(*args
, **kwargs
):
4110 """SetFromPage(self, int v)"""
4111 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4113 def SetToPage(*args
, **kwargs
):
4114 """SetToPage(self, int v)"""
4115 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4117 def SetMinPage(*args
, **kwargs
):
4118 """SetMinPage(self, int v)"""
4119 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4121 def SetMaxPage(*args
, **kwargs
):
4122 """SetMaxPage(self, int v)"""
4123 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4125 def SetNoCopies(*args
, **kwargs
):
4126 """SetNoCopies(self, int v)"""
4127 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4129 def SetAllPages(*args
, **kwargs
):
4130 """SetAllPages(self, bool flag)"""
4131 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4133 def SetSelection(*args
, **kwargs
):
4134 """SetSelection(self, bool flag)"""
4135 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4137 def SetCollate(*args
, **kwargs
):
4138 """SetCollate(self, bool flag)"""
4139 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4141 def SetPrintToFile(*args
, **kwargs
):
4142 """SetPrintToFile(self, bool flag)"""
4143 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4145 def EnablePrintToFile(*args
, **kwargs
):
4146 """EnablePrintToFile(self, bool flag)"""
4147 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4149 def EnableSelection(*args
, **kwargs
):
4150 """EnableSelection(self, bool flag)"""
4151 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4153 def EnablePageNumbers(*args
, **kwargs
):
4154 """EnablePageNumbers(self, bool flag)"""
4155 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4157 def EnableHelp(*args
, **kwargs
):
4158 """EnableHelp(self, bool flag)"""
4159 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4161 def GetEnablePrintToFile(*args
, **kwargs
):
4162 """GetEnablePrintToFile(self) -> bool"""
4163 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4165 def GetEnableSelection(*args
, **kwargs
):
4166 """GetEnableSelection(self) -> bool"""
4167 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4169 def GetEnablePageNumbers(*args
, **kwargs
):
4170 """GetEnablePageNumbers(self) -> bool"""
4171 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4173 def GetEnableHelp(*args
, **kwargs
):
4174 """GetEnableHelp(self) -> bool"""
4175 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4177 def Ok(*args
, **kwargs
):
4178 """Ok(self) -> bool"""
4179 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4181 def GetPrintData(*args
, **kwargs
):
4182 """GetPrintData(self) -> PrintData"""
4183 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4185 def SetPrintData(*args
, **kwargs
):
4186 """SetPrintData(self, PrintData printData)"""
4187 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4189 def __nonzero__(self
): return self
.Ok()
4190 _windows_
.PrintDialogData_swigregister(PrintDialogData
)
4192 class PrintDialog(_core
.Object
):
4193 """Proxy of C++ PrintDialog class"""
4194 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4195 __repr__
= _swig_repr
4196 def __init__(self
, *args
, **kwargs
):
4197 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4198 _windows_
.PrintDialog_swiginit(self
,_windows_
.new_PrintDialog(*args
, **kwargs
))
4199 __swig_destroy__
= _windows_
.delete_PrintDialog
4200 __del__
= lambda self
: None;
4201 def ShowModal(*args
, **kwargs
):
4202 """ShowModal(self) -> int"""
4203 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4205 def GetPrintDialogData(*args
, **kwargs
):
4206 """GetPrintDialogData(self) -> PrintDialogData"""
4207 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4209 def GetPrintData(*args
, **kwargs
):
4210 """GetPrintData(self) -> PrintData"""
4211 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4213 def GetPrintDC(*args
, **kwargs
):
4214 """GetPrintDC(self) -> DC"""
4215 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4217 def Destroy(self
): pass
4218 _windows_
.PrintDialog_swigregister(PrintDialog
)
4220 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4221 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4222 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4223 class Printer(_core
.Object
):
4224 """Proxy of C++ Printer class"""
4225 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4226 __repr__
= _swig_repr
4227 def __init__(self
, *args
, **kwargs
):
4228 """__init__(self, PrintDialogData data=None) -> Printer"""
4229 _windows_
.Printer_swiginit(self
,_windows_
.new_Printer(*args
, **kwargs
))
4230 __swig_destroy__
= _windows_
.delete_Printer
4231 __del__
= lambda self
: None;
4232 def CreateAbortWindow(*args
, **kwargs
):
4233 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4234 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4236 def ReportError(*args
, **kwargs
):
4237 """ReportError(self, Window parent, Printout printout, String message)"""
4238 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4240 def Setup(*args
, **kwargs
):
4241 """Setup(self, Window parent) -> bool"""
4242 return _windows_
.Printer_Setup(*args
, **kwargs
)
4244 def Print(*args
, **kwargs
):
4245 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4246 return _windows_
.Printer_Print(*args
, **kwargs
)
4248 def PrintDialog(*args
, **kwargs
):
4249 """PrintDialog(self, Window parent) -> DC"""
4250 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4252 def GetPrintDialogData(*args
, **kwargs
):
4253 """GetPrintDialogData(self) -> PrintDialogData"""
4254 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4256 def GetAbort(*args
, **kwargs
):
4257 """GetAbort(self) -> bool"""
4258 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4260 def GetLastError(*args
, **kwargs
):
4261 """GetLastError() -> int"""
4262 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4264 GetLastError
= staticmethod(GetLastError
)
4265 _windows_
.Printer_swigregister(Printer
)
4267 def Printer_GetLastError(*args
):
4268 """Printer_GetLastError() -> int"""
4269 return _windows_
.Printer_GetLastError(*args
)
4271 class Printout(_core
.Object
):
4272 """Proxy of C++ Printout class"""
4273 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4274 __repr__
= _swig_repr
4275 def __init__(self
, *args
, **kwargs
):
4276 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4277 _windows_
.Printout_swiginit(self
,_windows_
.new_Printout(*args
, **kwargs
))
4278 self
._setCallbackInfo
(self
, Printout
)
4280 __swig_destroy__
= _windows_
.delete_Printout
4281 __del__
= lambda self
: None;
4282 def _setCallbackInfo(*args
, **kwargs
):
4283 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4284 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4286 def GetTitle(*args
, **kwargs
):
4287 """GetTitle(self) -> String"""
4288 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4290 def GetDC(*args
, **kwargs
):
4291 """GetDC(self) -> DC"""
4292 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4294 def SetDC(*args
, **kwargs
):
4295 """SetDC(self, DC dc)"""
4296 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4298 def SetPageSizePixels(*args
, **kwargs
):
4299 """SetPageSizePixels(self, int w, int h)"""
4300 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4302 def GetPageSizePixels(*args
, **kwargs
):
4303 """GetPageSizePixels() -> (w, h)"""
4304 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4306 def SetPageSizeMM(*args
, **kwargs
):
4307 """SetPageSizeMM(self, int w, int h)"""
4308 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4310 def GetPageSizeMM(*args
, **kwargs
):
4311 """GetPageSizeMM() -> (w, h)"""
4312 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4314 def SetPPIScreen(*args
, **kwargs
):
4315 """SetPPIScreen(self, int x, int y)"""
4316 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4318 def GetPPIScreen(*args
, **kwargs
):
4319 """GetPPIScreen() -> (x,y)"""
4320 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4322 def SetPPIPrinter(*args
, **kwargs
):
4323 """SetPPIPrinter(self, int x, int y)"""
4324 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4326 def GetPPIPrinter(*args
, **kwargs
):
4327 """GetPPIPrinter() -> (x,y)"""
4328 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4330 def IsPreview(*args
, **kwargs
):
4331 """IsPreview(self) -> bool"""
4332 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4334 def SetIsPreview(*args
, **kwargs
):
4335 """SetIsPreview(self, bool p)"""
4336 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4338 def OnBeginDocument(*args
, **kwargs
):
4339 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4340 return _windows_
.Printout_OnBeginDocument(*args
, **kwargs
)
4342 def OnEndDocument(*args
, **kwargs
):
4343 """OnEndDocument(self)"""
4344 return _windows_
.Printout_OnEndDocument(*args
, **kwargs
)
4346 def OnBeginPrinting(*args
, **kwargs
):
4347 """OnBeginPrinting(self)"""
4348 return _windows_
.Printout_OnBeginPrinting(*args
, **kwargs
)
4350 def OnEndPrinting(*args
, **kwargs
):
4351 """OnEndPrinting(self)"""
4352 return _windows_
.Printout_OnEndPrinting(*args
, **kwargs
)
4354 def OnPreparePrinting(*args
, **kwargs
):
4355 """OnPreparePrinting(self)"""
4356 return _windows_
.Printout_OnPreparePrinting(*args
, **kwargs
)
4358 def HasPage(*args
, **kwargs
):
4359 """HasPage(self, int page) -> bool"""
4360 return _windows_
.Printout_HasPage(*args
, **kwargs
)
4362 def GetPageInfo(*args
, **kwargs
):
4363 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4364 return _windows_
.Printout_GetPageInfo(*args
, **kwargs
)
4366 def base_OnBeginDocument(*args
, **kw
):
4367 return Printout
.OnBeginDocument(*args
, **kw
)
4368 base_OnBeginDocument
= wx
._deprecated
(base_OnBeginDocument
,
4369 "Please use Printout.OnBeginDocument instead.")
4371 def base_OnEndDocument(*args
, **kw
):
4372 return Printout
.OnEndDocument(*args
, **kw
)
4373 base_OnEndDocument
= wx
._deprecated
(base_OnEndDocument
,
4374 "Please use Printout.OnEndDocument instead.")
4376 def base_OnBeginPrinting(*args
, **kw
):
4377 return Printout
.OnBeginPrinting(*args
, **kw
)
4378 base_OnBeginPrinting
= wx
._deprecated
(base_OnBeginPrinting
,
4379 "Please use Printout.OnBeginPrinting instead.")
4381 def base_OnEndPrinting(*args
, **kw
):
4382 return Printout
.OnEndPrinting(*args
, **kw
)
4383 base_OnEndPrinting
= wx
._deprecated
(base_OnEndPrinting
,
4384 "Please use Printout.OnEndPrinting instead.")
4386 def base_OnPreparePrinting(*args
, **kw
):
4387 return Printout
.OnPreparePrinting(*args
, **kw
)
4388 base_OnPreparePrinting
= wx
._deprecated
(base_OnPreparePrinting
,
4389 "Please use Printout.OnPreparePrinting instead.")
4391 def base_GetPageInfo(*args
, **kw
):
4392 return Printout
.GetPageInfo(*args
, **kw
)
4393 base_GetPageInfo
= wx
._deprecated
(base_GetPageInfo
,
4394 "Please use Printout.GetPageInfo instead.")
4396 _windows_
.Printout_swigregister(Printout
)
4398 class PreviewCanvas(ScrolledWindow
):
4399 """Proxy of C++ PreviewCanvas class"""
4400 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4401 __repr__
= _swig_repr
4402 def __init__(self
, *args
, **kwargs
):
4404 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4405 Size size=DefaultSize, long style=0,
4406 String name=PreviewCanvasNameStr) -> PreviewCanvas
4408 _windows_
.PreviewCanvas_swiginit(self
,_windows_
.new_PreviewCanvas(*args
, **kwargs
))
4409 self
._setOORInfo
(self
)
4411 _windows_
.PreviewCanvas_swigregister(PreviewCanvas
)
4413 class PreviewFrame(Frame
):
4414 """Proxy of C++ PreviewFrame class"""
4415 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4416 __repr__
= _swig_repr
4417 def __init__(self
, *args
, **kwargs
):
4419 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4420 Size size=DefaultSize,
4421 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4423 _windows_
.PreviewFrame_swiginit(self
,_windows_
.new_PreviewFrame(*args
, **kwargs
))
4424 self
._setOORInfo
(self
)
4426 def Initialize(*args
, **kwargs
):
4427 """Initialize(self)"""
4428 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4430 def CreateControlBar(*args
, **kwargs
):
4431 """CreateControlBar(self)"""
4432 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4434 def CreateCanvas(*args
, **kwargs
):
4435 """CreateCanvas(self)"""
4436 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4438 def GetControlBar(*args
, **kwargs
):
4439 """GetControlBar(self) -> PreviewControlBar"""
4440 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4442 _windows_
.PreviewFrame_swigregister(PreviewFrame
)
4444 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4445 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4446 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4447 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4448 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4449 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4450 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4451 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4452 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4453 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4454 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4455 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4456 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4457 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4458 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4459 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4460 class PreviewControlBar(Panel
):
4461 """Proxy of C++ PreviewControlBar class"""
4462 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4463 __repr__
= _swig_repr
4464 def __init__(self
, *args
, **kwargs
):
4466 __init__(self, PrintPreview preview, long buttons, Window parent,
4467 Point pos=DefaultPosition, Size size=DefaultSize,
4468 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4470 _windows_
.PreviewControlBar_swiginit(self
,_windows_
.new_PreviewControlBar(*args
, **kwargs
))
4471 self
._setOORInfo
(self
)
4473 def GetZoomControl(*args
, **kwargs
):
4474 """GetZoomControl(self) -> int"""
4475 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4477 def SetZoomControl(*args
, **kwargs
):
4478 """SetZoomControl(self, int zoom)"""
4479 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4481 def GetPrintPreview(*args
, **kwargs
):
4482 """GetPrintPreview(self) -> PrintPreview"""
4483 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4485 def OnNext(*args
, **kwargs
):
4487 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4489 def OnPrevious(*args
, **kwargs
):
4490 """OnPrevious(self)"""
4491 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4493 def OnFirst(*args
, **kwargs
):
4495 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4497 def OnLast(*args
, **kwargs
):
4499 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4501 def OnGoto(*args
, **kwargs
):
4503 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4505 _windows_
.PreviewControlBar_swigregister(PreviewControlBar
)
4507 class PrintPreview(_core
.Object
):
4508 """Proxy of C++ PrintPreview class"""
4509 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4510 __repr__
= _swig_repr
4511 def __init__(self
, *args
):
4513 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4514 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4516 _windows_
.PrintPreview_swiginit(self
,_windows_
.new_PrintPreview(*args
))
4517 __swig_destroy__
= _windows_
.delete_PrintPreview
4518 __del__
= lambda self
: None;
4519 def SetCurrentPage(*args
, **kwargs
):
4520 """SetCurrentPage(self, int pageNum) -> bool"""
4521 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4523 def GetCurrentPage(*args
, **kwargs
):
4524 """GetCurrentPage(self) -> int"""
4525 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4527 def SetPrintout(*args
, **kwargs
):
4528 """SetPrintout(self, Printout printout)"""
4529 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4531 def GetPrintout(*args
, **kwargs
):
4532 """GetPrintout(self) -> Printout"""
4533 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4535 def GetPrintoutForPrinting(*args
, **kwargs
):
4536 """GetPrintoutForPrinting(self) -> Printout"""
4537 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4539 def SetFrame(*args
, **kwargs
):
4540 """SetFrame(self, Frame frame)"""
4541 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4543 def SetCanvas(*args
, **kwargs
):
4544 """SetCanvas(self, PreviewCanvas canvas)"""
4545 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4547 def GetFrame(*args
, **kwargs
):
4548 """GetFrame(self) -> Frame"""
4549 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4551 def GetCanvas(*args
, **kwargs
):
4552 """GetCanvas(self) -> PreviewCanvas"""
4553 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4555 def PaintPage(*args
, **kwargs
):
4556 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4557 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4559 def DrawBlankPage(*args
, **kwargs
):
4560 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4561 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4563 def RenderPage(*args
, **kwargs
):
4564 """RenderPage(self, int pageNum) -> bool"""
4565 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4567 def AdjustScrollbars(*args
, **kwargs
):
4568 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4569 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4571 def GetPrintDialogData(*args
, **kwargs
):
4572 """GetPrintDialogData(self) -> PrintDialogData"""
4573 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4575 def SetZoom(*args
, **kwargs
):
4576 """SetZoom(self, int percent)"""
4577 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4579 def GetZoom(*args
, **kwargs
):
4580 """GetZoom(self) -> int"""
4581 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4583 def GetMaxPage(*args
, **kwargs
):
4584 """GetMaxPage(self) -> int"""
4585 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4587 def GetMinPage(*args
, **kwargs
):
4588 """GetMinPage(self) -> int"""
4589 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4591 def Ok(*args
, **kwargs
):
4592 """Ok(self) -> bool"""
4593 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4595 def SetOk(*args
, **kwargs
):
4596 """SetOk(self, bool ok)"""
4597 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4599 def Print(*args
, **kwargs
):
4600 """Print(self, bool interactive) -> bool"""
4601 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4603 def DetermineScaling(*args
, **kwargs
):
4604 """DetermineScaling(self)"""
4605 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4607 def __nonzero__(self
): return self
.Ok()
4608 _windows_
.PrintPreview_swigregister(PrintPreview
)
4610 class PyPrintPreview(PrintPreview
):
4611 """Proxy of C++ PyPrintPreview class"""
4612 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4613 __repr__
= _swig_repr
4614 def __init__(self
, *args
):
4616 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4617 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4619 _windows_
.PyPrintPreview_swiginit(self
,_windows_
.new_PyPrintPreview(*args
))
4620 self
._setCallbackInfo
(self
, PyPrintPreview
)
4622 def _setCallbackInfo(*args
, **kwargs
):
4623 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4624 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4626 def base_SetCurrentPage(*args
, **kw
):
4627 return PyPrintPreview
.SetCurrentPage(*args
, **kw
)
4628 base_SetCurrentPage
= wx
._deprecated
(base_SetCurrentPage
,
4629 "Please use PyPrintPreview.SetCurrentPage instead.")
4631 def base_PaintPage(*args
, **kw
):
4632 return PyPrintPreview
.PaintPage(*args
, **kw
)
4633 base_PaintPage
= wx
._deprecated
(base_PaintPage
,
4634 "Please use PyPrintPreview.PaintPage instead.")
4636 def base_DrawBlankPage(*args
, **kw
):
4637 return PyPrintPreview
.DrawBlankPage(*args
, **kw
)
4638 base_DrawBlankPage
= wx
._deprecated
(base_DrawBlankPage
,
4639 "Please use PyPrintPreview.DrawBlankPage instead.")
4641 def base_RenderPage(*args
, **kw
):
4642 return PyPrintPreview
.RenderPage(*args
, **kw
)
4643 base_RenderPage
= wx
._deprecated
(base_RenderPage
,
4644 "Please use PyPrintPreview.RenderPage instead.")
4646 def base_SetZoom(*args
, **kw
):
4647 return PyPrintPreview
.SetZoom(*args
, **kw
)
4648 base_SetZoom
= wx
._deprecated
(base_SetZoom
,
4649 "Please use PyPrintPreview.SetZoom instead.")
4651 def base_Print(*args
, **kw
):
4652 return PyPrintPreview
.Print(*args
, **kw
)
4653 base_Print
= wx
._deprecated
(base_Print
,
4654 "Please use PyPrintPreview.Print instead.")
4656 def base_DetermineScaling(*args
, **kw
):
4657 return PyPrintPreview
.DetermineScaling(*args
, **kw
)
4658 base_DetermineScaling
= wx
._deprecated
(base_DetermineScaling
,
4659 "Please use PyPrintPreview.DetermineScaling instead.")
4661 _windows_
.PyPrintPreview_swigregister(PyPrintPreview
)
4663 class PyPreviewFrame(PreviewFrame
):
4664 """Proxy of C++ PyPreviewFrame class"""
4665 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4666 __repr__
= _swig_repr
4667 def __init__(self
, *args
, **kwargs
):
4669 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4670 Size size=DefaultSize,
4671 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4673 _windows_
.PyPreviewFrame_swiginit(self
,_windows_
.new_PyPreviewFrame(*args
, **kwargs
))
4674 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4676 def _setCallbackInfo(*args
, **kwargs
):
4677 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4678 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4680 def SetPreviewCanvas(*args
, **kwargs
):
4681 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4682 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4684 def SetControlBar(*args
, **kwargs
):
4685 """SetControlBar(self, PreviewControlBar bar)"""
4686 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4688 def Initialize(*args
, **kwargs
):
4689 """Initialize(self)"""
4690 return _windows_
.PyPreviewFrame_Initialize(*args
, **kwargs
)
4692 def CreateCanvas(*args
, **kwargs
):
4693 """CreateCanvas(self)"""
4694 return _windows_
.PyPreviewFrame_CreateCanvas(*args
, **kwargs
)
4696 def CreateControlBar(*args
, **kwargs
):
4697 """CreateControlBar(self)"""
4698 return _windows_
.PyPreviewFrame_CreateControlBar(*args
, **kwargs
)
4700 def base_Initialize(*args
, **kw
):
4701 return PyPreviewFrame
.Initialize(*args
, **kw
)
4702 base_Initialize
= wx
._deprecated
(base_Initialize
,
4703 "Please use PyPreviewFrame.Initialize instead.")
4705 def base_CreateCanvas(*args
, **kw
):
4706 return PyPreviewFrame
.CreateCanvas(*args
, **kw
)
4707 base_CreateCanvas
= wx
._deprecated
(base_CreateCanvas
,
4708 "Please use PyPreviewFrame.CreateCanvas instead.")
4710 def base_CreateControlBar(*args
, **kw
):
4711 return PyPreviewFrame
.CreateControlBar(*args
, **kw
)
4712 base_CreateControlBar
= wx
._deprecated
(base_CreateControlBar
,
4713 "Please use PyPreviewFrame.CreateControlBar instead.")
4715 _windows_
.PyPreviewFrame_swigregister(PyPreviewFrame
)
4717 class PyPreviewControlBar(PreviewControlBar
):
4718 """Proxy of C++ PyPreviewControlBar class"""
4719 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4720 __repr__
= _swig_repr
4721 def __init__(self
, *args
, **kwargs
):
4723 __init__(self, PrintPreview preview, long buttons, Window parent,
4724 Point pos=DefaultPosition, Size size=DefaultSize,
4725 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4727 _windows_
.PyPreviewControlBar_swiginit(self
,_windows_
.new_PyPreviewControlBar(*args
, **kwargs
))
4728 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4730 def _setCallbackInfo(*args
, **kwargs
):
4731 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4732 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4734 def SetPrintPreview(*args
, **kwargs
):
4735 """SetPrintPreview(self, PrintPreview preview)"""
4736 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4738 def CreateButtons(*args
, **kwargs
):
4739 """CreateButtons(self)"""
4740 return _windows_
.PyPreviewControlBar_CreateButtons(*args
, **kwargs
)
4742 def SetZoomControl(*args
, **kwargs
):
4743 """SetZoomControl(self, int zoom)"""
4744 return _windows_
.PyPreviewControlBar_SetZoomControl(*args
, **kwargs
)
4746 def base_CreateButtons(*args
, **kw
):
4747 return PreviewControlBar
.CreateButtons(*args
, **kw
)
4748 base_CreateButtons
= wx
._deprecated
(base_CreateButtons
,
4749 "Please use PreviewControlBar.CreateButtons instead.")
4751 def base_SetZoomControl(*args
, **kw
):
4752 return PreviewControlBar
.SetZoomControl(*args
, **kw
)
4753 base_SetZoomControl
= wx
._deprecated
(base_SetZoomControl
,
4754 "Please use PreviewControlBar.SetZoomControl instead.")
4756 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBar
)