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 SetTargetRect(*args
, **kwargs
):
248 """SetTargetRect(self, Rect rect)"""
249 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
251 def GetTargetRect(*args
, **kwargs
):
252 """GetTargetRect(self) -> Rect"""
253 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
255 def DoPrepareDC(*args
, **kwargs
):
257 DoPrepareDC(self, DC dc)
259 Normally what is called by `PrepareDC`.
261 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
263 def GetClassDefaultAttributes(*args
, **kwargs
):
265 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
267 Get the default attributes for this class. This is useful if you want
268 to use the same font or colour in your own control as in a standard
269 control -- which is a much better idea than hard coding specific
270 colours or fonts which might look completely out of place on the
271 user's system, especially if it uses themes.
273 The variant parameter is only relevant under Mac currently and is
274 ignore under other platforms. Under Mac, it will change the size of
275 the returned font. See `wx.Window.SetWindowVariant` for more about
278 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
280 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
281 _windows_
.ScrolledWindow_swigregister(ScrolledWindow
)
283 def PreScrolledWindow(*args
, **kwargs
):
284 """PreScrolledWindow() -> ScrolledWindow"""
285 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
288 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
290 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
292 Get the default attributes for this class. This is useful if you want
293 to use the same font or colour in your own control as in a standard
294 control -- which is a much better idea than hard coding specific
295 colours or fonts which might look completely out of place on the
296 user's system, especially if it uses themes.
298 The variant parameter is only relevant under Mac currently and is
299 ignore under other platforms. Under Mac, it will change the size of
300 the returned font. See `wx.Window.SetWindowVariant` for more about
303 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
305 #---------------------------------------------------------------------------
307 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
308 ICONIZE
= _windows_
.ICONIZE
309 MINIMIZE
= _windows_
.MINIMIZE
310 MAXIMIZE
= _windows_
.MAXIMIZE
311 CLOSE_BOX
= _windows_
.CLOSE_BOX
312 THICK_FRAME
= _windows_
.THICK_FRAME
313 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
314 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
315 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
316 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
317 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
318 RESIZE_BOX
= _windows_
.RESIZE_BOX
319 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
320 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
321 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
322 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
323 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
324 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
325 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
326 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
327 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
328 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
329 FRAME_EX_METAL
= _windows_
.FRAME_EX_METAL
330 DIALOG_EX_METAL
= _windows_
.DIALOG_EX_METAL
331 WS_EX_CONTEXTHELP
= _windows_
.WS_EX_CONTEXTHELP
332 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
333 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
334 USER_COLOURS
= _windows_
.USER_COLOURS
335 NO_3D
= _windows_
.NO_3D
336 FRAME_EX_CONTEXTHELP
= _windows_
.FRAME_EX_CONTEXTHELP
337 DIALOG_EX_CONTEXTHELP
= _windows_
.DIALOG_EX_CONTEXTHELP
338 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
339 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
340 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
341 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
342 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
343 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
344 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
345 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
346 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
347 class TopLevelWindow(_core
.Window
):
348 """Proxy of C++ TopLevelWindow class"""
349 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
350 def __init__(self
): raise AttributeError, "No constructor defined"
351 __repr__
= _swig_repr
352 def Maximize(*args
, **kwargs
):
353 """Maximize(self, bool maximize=True)"""
354 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
356 def Restore(*args
, **kwargs
):
358 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
360 def Iconize(*args
, **kwargs
):
361 """Iconize(self, bool iconize=True)"""
362 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
364 def IsMaximized(*args
, **kwargs
):
365 """IsMaximized(self) -> bool"""
366 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
368 def IsAlwaysMaximized(*args
, **kwargs
):
369 """IsAlwaysMaximized(self) -> bool"""
370 return _windows_
.TopLevelWindow_IsAlwaysMaximized(*args
, **kwargs
)
372 def IsIconized(*args
, **kwargs
):
373 """IsIconized(self) -> bool"""
374 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
376 def GetIcon(*args
, **kwargs
):
377 """GetIcon(self) -> Icon"""
378 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
380 def SetIcon(*args
, **kwargs
):
381 """SetIcon(self, Icon icon)"""
382 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
384 def SetIcons(*args
, **kwargs
):
385 """SetIcons(self, wxIconBundle icons)"""
386 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
388 def ShowFullScreen(*args
, **kwargs
):
389 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
390 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
392 def IsFullScreen(*args
, **kwargs
):
393 """IsFullScreen(self) -> bool"""
394 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
396 def SetTitle(*args
, **kwargs
):
397 """SetTitle(self, String title)"""
398 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
400 def GetTitle(*args
, **kwargs
):
401 """GetTitle(self) -> String"""
402 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
404 def SetShape(*args
, **kwargs
):
405 """SetShape(self, Region region) -> bool"""
406 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
408 def RequestUserAttention(*args
, **kwargs
):
409 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
410 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
412 def IsActive(*args
, **kwargs
):
413 """IsActive(self) -> bool"""
414 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
416 def MacSetMetalAppearance(*args
, **kwargs
):
417 """MacSetMetalAppearance(self, bool on)"""
418 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
420 def MacGetMetalAppearance(*args
, **kwargs
):
421 """MacGetMetalAppearance(self) -> bool"""
422 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
424 def CenterOnScreen(*args
, **kwargs
):
426 CenterOnScreen(self, int dir=BOTH)
428 Center the window on screen
430 return _windows_
.TopLevelWindow_CenterOnScreen(*args
, **kwargs
)
432 CentreOnScreen
= CenterOnScreen
433 def EnableCloseButton(*args
, **kwargs
):
434 """EnableCloseButton(self, bool enable=True) -> bool"""
435 return _windows_
.TopLevelWindow_EnableCloseButton(*args
, **kwargs
)
437 def GetDefaultItem(*args
, **kwargs
):
439 GetDefaultItem(self) -> Window
441 Get the default child of this parent, i.e. the one which is activated
442 by pressing <Enter> such as the OK button on a wx.Dialog.
444 return _windows_
.TopLevelWindow_GetDefaultItem(*args
, **kwargs
)
446 def SetDefaultItem(*args
, **kwargs
):
448 SetDefaultItem(self, Window child) -> Window
450 Set this child as default, return the old default.
452 return _windows_
.TopLevelWindow_SetDefaultItem(*args
, **kwargs
)
454 def SetTmpDefaultItem(*args
, **kwargs
):
456 SetTmpDefaultItem(self, Window win)
458 Set this child as temporary default
460 return _windows_
.TopLevelWindow_SetTmpDefaultItem(*args
, **kwargs
)
462 def GetTmpDefaultItem(*args
, **kwargs
):
464 GetTmpDefaultItem(self) -> Window
466 Return the temporary default item, which can be None.
468 return _windows_
.TopLevelWindow_GetTmpDefaultItem(*args
, **kwargs
)
470 _windows_
.TopLevelWindow_swigregister(TopLevelWindow
)
471 cvar
= _windows_
.cvar
472 FrameNameStr
= cvar
.FrameNameStr
473 DialogNameStr
= cvar
.DialogNameStr
474 StatusLineNameStr
= cvar
.StatusLineNameStr
475 ToolBarNameStr
= cvar
.ToolBarNameStr
477 #---------------------------------------------------------------------------
479 class Frame(TopLevelWindow
):
480 """Proxy of C++ Frame class"""
481 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
482 __repr__
= _swig_repr
483 def __init__(self
, *args
, **kwargs
):
485 __init__(self, Window parent, int id=-1, String title=EmptyString,
486 Point pos=DefaultPosition, Size size=DefaultSize,
487 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
489 _windows_
.Frame_swiginit(self
,_windows_
.new_Frame(*args
, **kwargs
))
490 self
._setOORInfo
(self
)
492 def Create(*args
, **kwargs
):
494 Create(self, Window parent, int id=-1, String title=EmptyString,
495 Point pos=DefaultPosition, Size size=DefaultSize,
496 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
498 return _windows_
.Frame_Create(*args
, **kwargs
)
500 def SendSizeEvent(*args
, **kwargs
):
501 """SendSizeEvent(self)"""
502 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
504 def SetMenuBar(*args
, **kwargs
):
505 """SetMenuBar(self, MenuBar menubar)"""
506 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
508 def GetMenuBar(*args
, **kwargs
):
509 """GetMenuBar(self) -> MenuBar"""
510 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
512 def ProcessCommand(*args
, **kwargs
):
513 """ProcessCommand(self, int winid) -> bool"""
514 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
516 Command
= ProcessCommand
517 def CreateStatusBar(*args
, **kwargs
):
519 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
520 String name=StatusLineNameStr) -> StatusBar
522 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
524 def GetStatusBar(*args
, **kwargs
):
525 """GetStatusBar(self) -> StatusBar"""
526 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
528 def SetStatusBar(*args
, **kwargs
):
529 """SetStatusBar(self, StatusBar statBar)"""
530 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
532 def SetStatusText(*args
, **kwargs
):
533 """SetStatusText(self, String text, int number=0)"""
534 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
536 def SetStatusWidths(*args
, **kwargs
):
537 """SetStatusWidths(self, int widths)"""
538 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
540 def PushStatusText(*args
, **kwargs
):
541 """PushStatusText(self, String text, int number=0)"""
542 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
544 def PopStatusText(*args
, **kwargs
):
545 """PopStatusText(self, int number=0)"""
546 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
548 def SetStatusBarPane(*args
, **kwargs
):
549 """SetStatusBarPane(self, int n)"""
550 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
552 def GetStatusBarPane(*args
, **kwargs
):
553 """GetStatusBarPane(self) -> int"""
554 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
556 def CreateToolBar(*args
, **kwargs
):
557 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
558 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
560 def GetToolBar(*args
, **kwargs
):
561 """GetToolBar(self) -> wxToolBar"""
562 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
564 def SetToolBar(*args
, **kwargs
):
565 """SetToolBar(self, wxToolBar toolbar)"""
566 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
568 def DoGiveHelp(*args
, **kwargs
):
569 """DoGiveHelp(self, String text, bool show)"""
570 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
572 def DoMenuUpdates(*args
, **kwargs
):
573 """DoMenuUpdates(self, Menu menu=None)"""
574 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
576 def GetClassDefaultAttributes(*args
, **kwargs
):
578 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
580 Get the default attributes for this class. This is useful if you want
581 to use the same font or colour in your own control as in a standard
582 control -- which is a much better idea than hard coding specific
583 colours or fonts which might look completely out of place on the
584 user's system, especially if it uses themes.
586 The variant parameter is only relevant under Mac currently and is
587 ignore under other platforms. Under Mac, it will change the size of
588 the returned font. See `wx.Window.SetWindowVariant` for more about
591 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
593 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
594 MenuBar
= property(GetMenuBar
,SetMenuBar
,doc
="See `GetMenuBar` and `SetMenuBar`")
595 StatusBar
= property(GetStatusBar
,SetStatusBar
,doc
="See `GetStatusBar` and `SetStatusBar`")
596 StatusBarPane
= property(GetStatusBarPane
,SetStatusBarPane
,doc
="See `GetStatusBarPane` and `SetStatusBarPane`")
597 ToolBar
= property(GetToolBar
,SetToolBar
,doc
="See `GetToolBar` and `SetToolBar`")
598 _windows_
.Frame_swigregister(Frame
)
600 def PreFrame(*args
, **kwargs
):
601 """PreFrame() -> Frame"""
602 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
605 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
607 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
609 Get the default attributes for this class. This is useful if you want
610 to use the same font or colour in your own control as in a standard
611 control -- which is a much better idea than hard coding specific
612 colours or fonts which might look completely out of place on the
613 user's system, especially if it uses themes.
615 The variant parameter is only relevant under Mac currently and is
616 ignore under other platforms. Under Mac, it will change the size of
617 the returned font. See `wx.Window.SetWindowVariant` for more about
620 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
622 #---------------------------------------------------------------------------
624 class Dialog(TopLevelWindow
):
625 """Proxy of C++ Dialog class"""
626 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
627 __repr__
= _swig_repr
628 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
629 def __init__(self
, *args
, **kwargs
):
631 __init__(self, Window parent, int id=-1, String title=EmptyString,
632 Point pos=DefaultPosition, Size size=DefaultSize,
633 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
635 _windows_
.Dialog_swiginit(self
,_windows_
.new_Dialog(*args
, **kwargs
))
636 self
._setOORInfo
(self
)
638 def Create(*args
, **kwargs
):
640 Create(self, Window parent, int id=-1, String title=EmptyString,
641 Point pos=DefaultPosition, Size size=DefaultSize,
642 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
644 return _windows_
.Dialog_Create(*args
, **kwargs
)
646 def SetReturnCode(*args
, **kwargs
):
647 """SetReturnCode(self, int returnCode)"""
648 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
650 def GetReturnCode(*args
, **kwargs
):
651 """GetReturnCode(self) -> int"""
652 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
654 def SetAffirmativeId(*args
, **kwargs
):
655 """SetAffirmativeId(self, int affirmativeId)"""
656 return _windows_
.Dialog_SetAffirmativeId(*args
, **kwargs
)
658 def GetAffirmativeId(*args
, **kwargs
):
659 """GetAffirmativeId(self) -> int"""
660 return _windows_
.Dialog_GetAffirmativeId(*args
, **kwargs
)
662 def SetEscapeId(*args
, **kwargs
):
663 """SetEscapeId(self, int escapeId)"""
664 return _windows_
.Dialog_SetEscapeId(*args
, **kwargs
)
666 def GetEscapeId(*args
, **kwargs
):
667 """GetEscapeId(self) -> int"""
668 return _windows_
.Dialog_GetEscapeId(*args
, **kwargs
)
670 def CreateTextSizer(*args
, **kwargs
):
671 """CreateTextSizer(self, String message) -> Sizer"""
672 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
674 def CreateButtonSizer(*args
, **kwargs
):
675 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
676 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
678 def CreateStdDialogButtonSizer(*args
, **kwargs
):
679 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
680 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
682 def IsModal(*args
, **kwargs
):
683 """IsModal(self) -> bool"""
684 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
686 def ShowModal(*args
, **kwargs
):
687 """ShowModal(self) -> int"""
688 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
690 def EndModal(*args
, **kwargs
):
691 """EndModal(self, int retCode)"""
692 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
694 def GetClassDefaultAttributes(*args
, **kwargs
):
696 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
698 Get the default attributes for this class. This is useful if you want
699 to use the same font or colour in your own control as in a standard
700 control -- which is a much better idea than hard coding specific
701 colours or fonts which might look completely out of place on the
702 user's system, especially if it uses themes.
704 The variant parameter is only relevant under Mac currently and is
705 ignore under other platforms. Under Mac, it will change the size of
706 the returned font. See `wx.Window.SetWindowVariant` for more about
709 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
711 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
712 AffirmativeId
= property(GetAffirmativeId
,SetAffirmativeId
,doc
="See `GetAffirmativeId` and `SetAffirmativeId`")
713 EscapeId
= property(GetEscapeId
,SetEscapeId
,doc
="See `GetEscapeId` and `SetEscapeId`")
714 ReturnCode
= property(GetReturnCode
,SetReturnCode
,doc
="See `GetReturnCode` and `SetReturnCode`")
715 _windows_
.Dialog_swigregister(Dialog
)
717 def PreDialog(*args
, **kwargs
):
718 """PreDialog() -> Dialog"""
719 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
722 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
724 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
726 Get the default attributes for this class. This is useful if you want
727 to use the same font or colour in your own control as in a standard
728 control -- which is a much better idea than hard coding specific
729 colours or fonts which might look completely out of place on the
730 user's system, especially if it uses themes.
732 The variant parameter is only relevant under Mac currently and is
733 ignore under other platforms. Under Mac, it will change the size of
734 the returned font. See `wx.Window.SetWindowVariant` for more about
737 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
739 #---------------------------------------------------------------------------
741 class MiniFrame(Frame
):
742 """Proxy of C++ MiniFrame class"""
743 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
744 __repr__
= _swig_repr
745 def __init__(self
, *args
, **kwargs
):
747 __init__(self, Window parent, int id=-1, String title=EmptyString,
748 Point pos=DefaultPosition, Size size=DefaultSize,
749 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
751 _windows_
.MiniFrame_swiginit(self
,_windows_
.new_MiniFrame(*args
, **kwargs
))
752 self
._setOORInfo
(self
)
754 def Create(*args
, **kwargs
):
756 Create(self, Window parent, int id=-1, String title=EmptyString,
757 Point pos=DefaultPosition, Size size=DefaultSize,
758 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
760 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
762 _windows_
.MiniFrame_swigregister(MiniFrame
)
764 def PreMiniFrame(*args
, **kwargs
):
765 """PreMiniFrame() -> MiniFrame"""
766 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
769 #---------------------------------------------------------------------------
771 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
772 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
773 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
774 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
775 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
776 class SplashScreenWindow(_core
.Window
):
777 """Proxy of C++ SplashScreenWindow class"""
778 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
779 __repr__
= _swig_repr
780 def __init__(self
, *args
, **kwargs
):
782 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
783 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
785 _windows_
.SplashScreenWindow_swiginit(self
,_windows_
.new_SplashScreenWindow(*args
, **kwargs
))
786 self
._setOORInfo
(self
)
788 def SetBitmap(*args
, **kwargs
):
789 """SetBitmap(self, Bitmap bitmap)"""
790 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
792 def GetBitmap(*args
, **kwargs
):
793 """GetBitmap(self) -> Bitmap"""
794 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
796 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindow
)
798 class SplashScreen(Frame
):
799 """Proxy of C++ SplashScreen class"""
800 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
801 __repr__
= _swig_repr
802 def __init__(self
, *args
, **kwargs
):
804 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
805 Window parent, int id=-1, Point pos=DefaultPosition,
806 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
808 _windows_
.SplashScreen_swiginit(self
,_windows_
.new_SplashScreen(*args
, **kwargs
))
809 self
._setOORInfo
(self
)
811 def GetSplashStyle(*args
, **kwargs
):
812 """GetSplashStyle(self) -> long"""
813 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
815 def GetSplashWindow(*args
, **kwargs
):
816 """GetSplashWindow(self) -> SplashScreenWindow"""
817 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
819 def GetTimeout(*args
, **kwargs
):
820 """GetTimeout(self) -> int"""
821 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
823 _windows_
.SplashScreen_swigregister(SplashScreen
)
825 #---------------------------------------------------------------------------
827 SB_NORMAL
= _windows_
.SB_NORMAL
828 SB_FLAT
= _windows_
.SB_FLAT
829 SB_RAISED
= _windows_
.SB_RAISED
830 class StatusBar(_core
.Window
):
831 """Proxy of C++ StatusBar class"""
832 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
833 __repr__
= _swig_repr
834 def __init__(self
, *args
, **kwargs
):
836 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
837 String name=StatusLineNameStr) -> StatusBar
839 _windows_
.StatusBar_swiginit(self
,_windows_
.new_StatusBar(*args
, **kwargs
))
840 self
._setOORInfo
(self
)
842 def Create(*args
, **kwargs
):
843 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
844 return _windows_
.StatusBar_Create(*args
, **kwargs
)
846 def SetFieldsCount(*args
, **kwargs
):
847 """SetFieldsCount(self, int number=1)"""
848 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
850 def GetFieldsCount(*args
, **kwargs
):
851 """GetFieldsCount(self) -> int"""
852 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
854 def SetStatusText(*args
, **kwargs
):
855 """SetStatusText(self, String text, int number=0)"""
856 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
858 def GetStatusText(*args
, **kwargs
):
859 """GetStatusText(self, int number=0) -> String"""
860 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
862 def PushStatusText(*args
, **kwargs
):
863 """PushStatusText(self, String text, int number=0)"""
864 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
866 def PopStatusText(*args
, **kwargs
):
867 """PopStatusText(self, int number=0)"""
868 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
870 def SetStatusWidths(*args
, **kwargs
):
871 """SetStatusWidths(self, int widths)"""
872 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
874 def SetStatusStyles(*args
, **kwargs
):
875 """SetStatusStyles(self, int styles)"""
876 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
878 def GetFieldRect(*args
, **kwargs
):
879 """GetFieldRect(self, int i) -> Rect"""
880 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
882 def SetMinHeight(*args
, **kwargs
):
883 """SetMinHeight(self, int height)"""
884 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
886 def GetBorderX(*args
, **kwargs
):
887 """GetBorderX(self) -> int"""
888 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
890 def GetBorderY(*args
, **kwargs
):
891 """GetBorderY(self) -> int"""
892 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
894 def GetClassDefaultAttributes(*args
, **kwargs
):
896 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
898 Get the default attributes for this class. This is useful if you want
899 to use the same font or colour in your own control as in a standard
900 control -- which is a much better idea than hard coding specific
901 colours or fonts which might look completely out of place on the
902 user's system, especially if it uses themes.
904 The variant parameter is only relevant under Mac currently and is
905 ignore under other platforms. Under Mac, it will change the size of
906 the returned font. See `wx.Window.SetWindowVariant` for more about
909 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
911 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
913 """Return a list of field values in the status bar. """
914 return [self
.GetStatusText(i
) for i
in range(self
.GetFieldsCount())]
916 def SetFields(self
, items
):
917 """Set the values of the statusbar fields from a list of strings. """
918 self
.SetFieldsCount(len(items
))
919 for i
in range(len(items
)):
920 self
.SetStatusText(items
[i
], i
)
922 Fields
= property(GetFields
,SetFields
)
923 _windows_
.StatusBar_swigregister(StatusBar
)
925 def PreStatusBar(*args
, **kwargs
):
926 """PreStatusBar() -> StatusBar"""
927 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
930 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
932 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
934 Get the default attributes for this class. This is useful if you want
935 to use the same font or colour in your own control as in a standard
936 control -- which is a much better idea than hard coding specific
937 colours or fonts which might look completely out of place on the
938 user's system, especially if it uses themes.
940 The variant parameter is only relevant under Mac currently and is
941 ignore under other platforms. Under Mac, it will change the size of
942 the returned font. See `wx.Window.SetWindowVariant` for more about
945 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
947 #---------------------------------------------------------------------------
949 SP_NOBORDER
= _windows_
.SP_NOBORDER
950 SP_NOSASH
= _windows_
.SP_NOSASH
951 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
952 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
953 SP_3DSASH
= _windows_
.SP_3DSASH
954 SP_3DBORDER
= _windows_
.SP_3DBORDER
955 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
956 SP_BORDER
= _windows_
.SP_BORDER
957 SP_3D
= _windows_
.SP_3D
958 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
959 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
960 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
961 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
962 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
963 class SplitterWindow(_core
.Window
):
965 wx.SplitterWindow manages up to two subwindows or panes, with an
966 optional vertical or horizontal split which can be used with the mouse
969 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
970 __repr__
= _swig_repr
971 def __init__(self
, *args
, **kwargs
):
973 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
974 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
976 Constructor. Creates and shows a SplitterWindow.
978 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
979 _windows_
.SplitterWindow_swiginit(self
,_windows_
.new_SplitterWindow(*args
, **kwargs
))
980 self
._setOORInfo
(self
)
982 def Create(*args
, **kwargs
):
984 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
985 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
987 Create the GUI part of the SplitterWindow for the 2-phase create.
989 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
991 def GetWindow1(*args
, **kwargs
):
993 GetWindow1(self) -> Window
995 Gets the only or left/top pane.
997 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
999 def GetWindow2(*args
, **kwargs
):
1001 GetWindow2(self) -> Window
1003 Gets the right/bottom pane.
1005 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
1007 def SetSplitMode(*args
, **kwargs
):
1009 SetSplitMode(self, int mode)
1011 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
1012 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
1015 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
1017 def GetSplitMode(*args
, **kwargs
):
1019 GetSplitMode(self) -> int
1023 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
1025 def Initialize(*args
, **kwargs
):
1027 Initialize(self, Window window)
1029 Initializes the splitter window to have one pane. This should be
1030 called if you wish to initially view only a single pane in the
1031 splitter window. The child window is shown if it is currently hidden.
1033 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1035 def SplitVertically(*args
, **kwargs
):
1037 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1039 Initializes the left and right panes of the splitter window. The
1040 child windows are shown if they are currently hidden.
1042 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1044 def SplitHorizontally(*args
, **kwargs
):
1046 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1048 Initializes the top and bottom panes of the splitter window. The
1049 child windows are shown if they are currently hidden.
1051 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1053 def Unsplit(*args
, **kwargs
):
1055 Unsplit(self, Window toRemove=None) -> bool
1057 Unsplits the window. Pass the pane to remove, or None to remove the
1058 right or bottom pane. Returns True if successful, False otherwise (the
1059 window was not split).
1061 This function will not actually delete the pane being
1062 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1063 for the desired behaviour. By default, the pane being
1064 removed is only hidden.
1066 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1068 def ReplaceWindow(*args
, **kwargs
):
1070 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1072 This function replaces one of the windows managed by the
1073 SplitterWindow with another one. It is in general better to use it
1074 instead of calling Unsplit() and then resplitting the window back
1075 because it will provoke much less flicker. It is valid to call this
1076 function whether the splitter has two windows or only one.
1078 Both parameters should be non-None and winOld must specify one of the
1079 windows managed by the splitter. If the parameters are incorrect or
1080 the window couldn't be replaced, False is returned. Otherwise the
1081 function will return True, but please notice that it will not Destroy
1082 the replaced window and you may wish to do it yourself.
1084 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1086 def UpdateSize(*args
, **kwargs
):
1090 Causes any pending sizing of the sash and child panes to take place
1093 Such resizing normally takes place in idle time, in order to wait for
1094 layout to be completed. However, this can cause unacceptable flicker
1095 as the panes are resized after the window has been shown. To work
1096 around this, you can perform window layout (for example by sending a
1097 size event to the parent window), and then call this function, before
1098 showing the top-level window.
1100 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1102 def IsSplit(*args
, **kwargs
):
1104 IsSplit(self) -> bool
1106 Is the window split?
1108 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1110 def SetSashSize(*args
, **kwargs
):
1112 SetSashSize(self, int width)
1116 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1118 def SetBorderSize(*args
, **kwargs
):
1120 SetBorderSize(self, int width)
1122 Sets the border size. Currently a NOP.
1124 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1126 def GetSashSize(*args
, **kwargs
):
1128 GetSashSize(self) -> int
1132 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1134 def GetBorderSize(*args
, **kwargs
):
1136 GetBorderSize(self) -> int
1138 Gets the border size
1140 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1142 def SetSashPosition(*args
, **kwargs
):
1144 SetSashPosition(self, int position, bool redraw=True)
1146 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1147 are resized and the sash and border are redrawn.
1149 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1151 def GetSashPosition(*args
, **kwargs
):
1153 GetSashPosition(self) -> int
1155 Returns the surrent sash position.
1157 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1159 def SetSashGravity(*args
, **kwargs
):
1161 SetSashGravity(self, double gravity)
1163 Set the sash gravity. Gravity is a floating-point factor between 0.0
1164 and 1.0 which controls position of sash while resizing the
1165 `wx.SplitterWindow`. The gravity specifies how much the left/top
1166 window will grow while resizing.
1168 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1170 def GetSashGravity(*args
, **kwargs
):
1172 GetSashGravity(self) -> double
1174 Gets the sash gravity.
1176 :see: `SetSashGravity`
1179 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1181 def SetMinimumPaneSize(*args
, **kwargs
):
1183 SetMinimumPaneSize(self, int min)
1185 Sets the minimum pane size in pixels.
1187 The default minimum pane size is zero, which means that either pane
1188 can be reduced to zero by dragging the sash, thus removing one of the
1189 panes. To prevent this behaviour (and veto out-of-range sash
1190 dragging), set a minimum size, for example 20 pixels. If the
1191 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1192 the window may be unsplit even if minimum size is non-zero.
1194 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1196 def GetMinimumPaneSize(*args
, **kwargs
):
1198 GetMinimumPaneSize(self) -> int
1200 Gets the minimum pane size in pixels.
1202 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1204 def SashHitTest(*args
, **kwargs
):
1206 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1208 Tests for x, y over the sash
1210 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1212 def SizeWindows(*args
, **kwargs
):
1218 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1220 def SetNeedUpdating(*args
, **kwargs
):
1221 """SetNeedUpdating(self, bool needUpdating)"""
1222 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1224 def GetNeedUpdating(*args
, **kwargs
):
1225 """GetNeedUpdating(self) -> bool"""
1226 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1228 def GetClassDefaultAttributes(*args
, **kwargs
):
1230 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1232 Get the default attributes for this class. This is useful if you want
1233 to use the same font or colour in your own control as in a standard
1234 control -- which is a much better idea than hard coding specific
1235 colours or fonts which might look completely out of place on the
1236 user's system, especially if it uses themes.
1238 The variant parameter is only relevant under Mac currently and is
1239 ignore under other platforms. Under Mac, it will change the size of
1240 the returned font. See `wx.Window.SetWindowVariant` for more about
1243 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1245 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1246 _windows_
.SplitterWindow_swigregister(SplitterWindow
)
1247 SplitterNameStr
= cvar
.SplitterNameStr
1249 def PreSplitterWindow(*args
, **kwargs
):
1251 PreSplitterWindow() -> SplitterWindow
1253 Precreate a SplitterWindow for 2-phase creation.
1255 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1258 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1260 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1262 Get the default attributes for this class. This is useful if you want
1263 to use the same font or colour in your own control as in a standard
1264 control -- which is a much better idea than hard coding specific
1265 colours or fonts which might look completely out of place on the
1266 user's system, especially if it uses themes.
1268 The variant parameter is only relevant under Mac currently and is
1269 ignore under other platforms. Under Mac, it will change the size of
1270 the returned font. See `wx.Window.SetWindowVariant` for more about
1273 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1275 class SplitterEvent(_core
.NotifyEvent
):
1276 """This class represents the events generated by a splitter control."""
1277 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1278 __repr__
= _swig_repr
1279 def __init__(self
, *args
, **kwargs
):
1281 __init__(self, EventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1283 This class represents the events generated by a splitter control.
1285 _windows_
.SplitterEvent_swiginit(self
,_windows_
.new_SplitterEvent(*args
, **kwargs
))
1286 def SetSashPosition(*args
, **kwargs
):
1288 SetSashPosition(self, int pos)
1290 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1291 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1292 events, sets the the new sash position. In the case of _CHANGING
1293 events, sets the new tracking bar position so visual feedback during
1294 dragging will represent that change that will actually take place. Set
1295 to -1 from the event handler code to prevent repositioning.
1297 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1299 def GetSashPosition(*args
, **kwargs
):
1301 GetSashPosition(self) -> int
1303 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1304 and EVT_SPLITTER_SASH_POS_CHANGED events.
1306 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1308 def GetWindowBeingRemoved(*args
, **kwargs
):
1310 GetWindowBeingRemoved(self) -> Window
1312 Returns a pointer to the window being removed when a splitter window
1315 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1317 def GetX(*args
, **kwargs
):
1321 Returns the x coordinate of the double-click point in a
1322 EVT_SPLITTER_DCLICK event.
1324 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1326 def GetY(*args
, **kwargs
):
1330 Returns the y coordinate of the double-click point in a
1331 EVT_SPLITTER_DCLICK event.
1333 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1335 _windows_
.SplitterEvent_swigregister(SplitterEvent
)
1337 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1338 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1339 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1340 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1341 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1342 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1343 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1344 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1345 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1347 #---------------------------------------------------------------------------
1349 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1350 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1351 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1352 SW_NOBORDER
= _windows_
.SW_NOBORDER
1353 SW_BORDER
= _windows_
.SW_BORDER
1354 SW_3DSASH
= _windows_
.SW_3DSASH
1355 SW_3DBORDER
= _windows_
.SW_3DBORDER
1356 SW_3D
= _windows_
.SW_3D
1357 SASH_TOP
= _windows_
.SASH_TOP
1358 SASH_RIGHT
= _windows_
.SASH_RIGHT
1359 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1360 SASH_LEFT
= _windows_
.SASH_LEFT
1361 SASH_NONE
= _windows_
.SASH_NONE
1362 class SashWindow(_core
.Window
):
1363 """Proxy of C++ SashWindow class"""
1364 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1365 __repr__
= _swig_repr
1366 def __init__(self
, *args
, **kwargs
):
1368 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1369 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1370 String name=SashNameStr) -> SashWindow
1372 _windows_
.SashWindow_swiginit(self
,_windows_
.new_SashWindow(*args
, **kwargs
))
1373 self
._setOORInfo
(self
)
1375 def Create(*args
, **kwargs
):
1377 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1378 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1379 String name=SashNameStr) -> bool
1381 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1383 def SetSashVisible(*args
, **kwargs
):
1384 """SetSashVisible(self, int edge, bool sash)"""
1385 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1387 def GetSashVisible(*args
, **kwargs
):
1388 """GetSashVisible(self, int edge) -> bool"""
1389 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1391 def SetSashBorder(*args
, **kwargs
):
1392 """SetSashBorder(self, int edge, bool border)"""
1393 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1395 def HasBorder(*args
, **kwargs
):
1396 """HasBorder(self, int edge) -> bool"""
1397 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1399 def GetEdgeMargin(*args
, **kwargs
):
1400 """GetEdgeMargin(self, int edge) -> int"""
1401 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1403 def SetDefaultBorderSize(*args
, **kwargs
):
1404 """SetDefaultBorderSize(self, int width)"""
1405 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1407 def GetDefaultBorderSize(*args
, **kwargs
):
1408 """GetDefaultBorderSize(self) -> int"""
1409 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1411 def SetExtraBorderSize(*args
, **kwargs
):
1412 """SetExtraBorderSize(self, int width)"""
1413 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1415 def GetExtraBorderSize(*args
, **kwargs
):
1416 """GetExtraBorderSize(self) -> int"""
1417 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1419 def SetMinimumSizeX(*args
, **kwargs
):
1420 """SetMinimumSizeX(self, int min)"""
1421 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1423 def SetMinimumSizeY(*args
, **kwargs
):
1424 """SetMinimumSizeY(self, int min)"""
1425 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1427 def GetMinimumSizeX(*args
, **kwargs
):
1428 """GetMinimumSizeX(self) -> int"""
1429 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1431 def GetMinimumSizeY(*args
, **kwargs
):
1432 """GetMinimumSizeY(self) -> int"""
1433 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1435 def SetMaximumSizeX(*args
, **kwargs
):
1436 """SetMaximumSizeX(self, int max)"""
1437 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1439 def SetMaximumSizeY(*args
, **kwargs
):
1440 """SetMaximumSizeY(self, int max)"""
1441 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1443 def GetMaximumSizeX(*args
, **kwargs
):
1444 """GetMaximumSizeX(self) -> int"""
1445 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1447 def GetMaximumSizeY(*args
, **kwargs
):
1448 """GetMaximumSizeY(self) -> int"""
1449 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1451 def SashHitTest(*args
, **kwargs
):
1452 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1453 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1455 def SizeWindows(*args
, **kwargs
):
1456 """SizeWindows(self)"""
1457 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1459 _windows_
.SashWindow_swigregister(SashWindow
)
1460 SashNameStr
= cvar
.SashNameStr
1461 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1463 def PreSashWindow(*args
, **kwargs
):
1464 """PreSashWindow() -> SashWindow"""
1465 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1468 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1469 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1470 class SashEvent(_core
.CommandEvent
):
1471 """Proxy of C++ SashEvent class"""
1472 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1473 __repr__
= _swig_repr
1474 def __init__(self
, *args
, **kwargs
):
1475 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1476 _windows_
.SashEvent_swiginit(self
,_windows_
.new_SashEvent(*args
, **kwargs
))
1477 def SetEdge(*args
, **kwargs
):
1478 """SetEdge(self, int edge)"""
1479 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1481 def GetEdge(*args
, **kwargs
):
1482 """GetEdge(self) -> int"""
1483 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1485 def SetDragRect(*args
, **kwargs
):
1486 """SetDragRect(self, Rect rect)"""
1487 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1489 def GetDragRect(*args
, **kwargs
):
1490 """GetDragRect(self) -> Rect"""
1491 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1493 def SetDragStatus(*args
, **kwargs
):
1494 """SetDragStatus(self, int status)"""
1495 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1497 def GetDragStatus(*args
, **kwargs
):
1498 """GetDragStatus(self) -> int"""
1499 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1501 _windows_
.SashEvent_swigregister(SashEvent
)
1503 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1504 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1505 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1507 #---------------------------------------------------------------------------
1509 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1510 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1511 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1512 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1513 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1514 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1515 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1516 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1517 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1518 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1519 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1520 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1521 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1522 class QueryLayoutInfoEvent(_core
.Event
):
1523 """Proxy of C++ QueryLayoutInfoEvent class"""
1524 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1525 __repr__
= _swig_repr
1526 def __init__(self
, *args
, **kwargs
):
1527 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1528 _windows_
.QueryLayoutInfoEvent_swiginit(self
,_windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
))
1529 def SetRequestedLength(*args
, **kwargs
):
1530 """SetRequestedLength(self, int length)"""
1531 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1533 def GetRequestedLength(*args
, **kwargs
):
1534 """GetRequestedLength(self) -> int"""
1535 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1537 def SetFlags(*args
, **kwargs
):
1538 """SetFlags(self, int flags)"""
1539 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1541 def GetFlags(*args
, **kwargs
):
1542 """GetFlags(self) -> int"""
1543 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1545 def SetSize(*args
, **kwargs
):
1546 """SetSize(self, Size size)"""
1547 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1549 def GetSize(*args
, **kwargs
):
1550 """GetSize(self) -> Size"""
1551 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1553 def SetOrientation(*args
, **kwargs
):
1554 """SetOrientation(self, int orient)"""
1555 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1557 def GetOrientation(*args
, **kwargs
):
1558 """GetOrientation(self) -> int"""
1559 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1561 def SetAlignment(*args
, **kwargs
):
1562 """SetAlignment(self, int align)"""
1563 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1565 def GetAlignment(*args
, **kwargs
):
1566 """GetAlignment(self) -> int"""
1567 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1569 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent
)
1571 class CalculateLayoutEvent(_core
.Event
):
1572 """Proxy of C++ CalculateLayoutEvent class"""
1573 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1574 __repr__
= _swig_repr
1575 def __init__(self
, *args
, **kwargs
):
1576 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1577 _windows_
.CalculateLayoutEvent_swiginit(self
,_windows_
.new_CalculateLayoutEvent(*args
, **kwargs
))
1578 def SetFlags(*args
, **kwargs
):
1579 """SetFlags(self, int flags)"""
1580 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1582 def GetFlags(*args
, **kwargs
):
1583 """GetFlags(self) -> int"""
1584 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1586 def SetRect(*args
, **kwargs
):
1587 """SetRect(self, Rect rect)"""
1588 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1590 def GetRect(*args
, **kwargs
):
1591 """GetRect(self) -> Rect"""
1592 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1594 Flags
= property(GetFlags
,SetFlags
,doc
="See `GetFlags` and `SetFlags`")
1595 Rect
= property(GetRect
,SetRect
,doc
="See `GetRect` and `SetRect`")
1596 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEvent
)
1598 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1599 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1601 class SashLayoutWindow(SashWindow
):
1602 """Proxy of C++ SashLayoutWindow class"""
1603 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1604 __repr__
= _swig_repr
1605 def __init__(self
, *args
, **kwargs
):
1607 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1608 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1609 String name=SashLayoutNameStr) -> SashLayoutWindow
1611 _windows_
.SashLayoutWindow_swiginit(self
,_windows_
.new_SashLayoutWindow(*args
, **kwargs
))
1612 self
._setOORInfo
(self
)
1614 def Create(*args
, **kwargs
):
1616 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1617 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1618 String name=SashLayoutNameStr) -> bool
1620 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1622 def GetAlignment(*args
, **kwargs
):
1623 """GetAlignment(self) -> int"""
1624 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1626 def GetOrientation(*args
, **kwargs
):
1627 """GetOrientation(self) -> int"""
1628 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1630 def SetAlignment(*args
, **kwargs
):
1631 """SetAlignment(self, int alignment)"""
1632 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1634 def SetDefaultSize(*args
, **kwargs
):
1635 """SetDefaultSize(self, Size size)"""
1636 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1638 def SetOrientation(*args
, **kwargs
):
1639 """SetOrientation(self, int orientation)"""
1640 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1642 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindow
)
1644 def PreSashLayoutWindow(*args
, **kwargs
):
1645 """PreSashLayoutWindow() -> SashLayoutWindow"""
1646 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1649 class LayoutAlgorithm(_core
.Object
):
1650 """Proxy of C++ LayoutAlgorithm class"""
1651 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1652 __repr__
= _swig_repr
1653 def __init__(self
, *args
, **kwargs
):
1654 """__init__(self) -> LayoutAlgorithm"""
1655 _windows_
.LayoutAlgorithm_swiginit(self
,_windows_
.new_LayoutAlgorithm(*args
, **kwargs
))
1656 __swig_destroy__
= _windows_
.delete_LayoutAlgorithm
1657 __del__
= lambda self
: None;
1658 def LayoutMDIFrame(*args
, **kwargs
):
1659 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1660 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1662 def LayoutFrame(*args
, **kwargs
):
1663 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1664 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1666 def LayoutWindow(*args
, **kwargs
):
1667 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1668 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1670 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithm
)
1672 #---------------------------------------------------------------------------
1674 class PopupWindow(_core
.Window
):
1675 """Proxy of C++ PopupWindow class"""
1676 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1677 __repr__
= _swig_repr
1678 def __init__(self
, *args
, **kwargs
):
1679 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1680 _windows_
.PopupWindow_swiginit(self
,_windows_
.new_PopupWindow(*args
, **kwargs
))
1681 self
._setOORInfo
(self
)
1683 def Create(*args
, **kwargs
):
1684 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1685 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1687 def Position(*args
, **kwargs
):
1688 """Position(self, Point ptOrigin, Size size)"""
1689 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1691 _windows_
.PopupWindow_swigregister(PopupWindow
)
1693 def PrePopupWindow(*args
, **kwargs
):
1694 """PrePopupWindow() -> PopupWindow"""
1695 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1698 #---------------------------------------------------------------------------
1700 class PopupTransientWindow(PopupWindow
):
1701 """Proxy of C++ PopupTransientWindow class"""
1702 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1703 __repr__
= _swig_repr
1704 def __init__(self
, *args
, **kwargs
):
1705 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1706 _windows_
.PopupTransientWindow_swiginit(self
,_windows_
.new_PopupTransientWindow(*args
, **kwargs
))
1707 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1709 def _setCallbackInfo(*args
, **kwargs
):
1710 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1711 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1713 def Popup(*args
, **kwargs
):
1714 """Popup(self, Window focus=None)"""
1715 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1717 def Dismiss(*args
, **kwargs
):
1719 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1721 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindow
)
1723 def PrePopupTransientWindow(*args
, **kwargs
):
1724 """PrePopupTransientWindow() -> PopupTransientWindow"""
1725 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1728 #---------------------------------------------------------------------------
1730 class TipWindow(PopupTransientWindow
):
1731 """Proxy of C++ TipWindow class"""
1732 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1733 __repr__
= _swig_repr
1734 def __init__(self
, *args
, **kwargs
):
1735 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1736 _windows_
.TipWindow_swiginit(self
,_windows_
.new_TipWindow(*args
, **kwargs
))
1737 self
._setOORInfo
(self
)
1739 def SetBoundingRect(*args
, **kwargs
):
1740 """SetBoundingRect(self, Rect rectBound)"""
1741 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1743 def Close(*args
, **kwargs
):
1747 This function simply generates a EVT_CLOSE event whose handler usually
1748 tries to close the window. It doesn't close the window itself,
1749 however. If force is False (the default) then the window's close
1750 handler will be allowed to veto the destruction of the window.
1752 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1754 _windows_
.TipWindow_swigregister(TipWindow
)
1756 #---------------------------------------------------------------------------
1758 class VScrolledWindow(Panel
):
1759 """Proxy of C++ VScrolledWindow class"""
1760 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1761 __repr__
= _swig_repr
1762 def __init__(self
, *args
, **kwargs
):
1764 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1765 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1767 _windows_
.VScrolledWindow_swiginit(self
,_windows_
.new_VScrolledWindow(*args
, **kwargs
))
1768 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1770 def _setCallbackInfo(*args
, **kwargs
):
1771 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1772 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1774 def Create(*args
, **kwargs
):
1776 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1777 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1779 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1781 def SetLineCount(*args
, **kwargs
):
1782 """SetLineCount(self, size_t count)"""
1783 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1785 def ScrollToLine(*args
, **kwargs
):
1786 """ScrollToLine(self, size_t line) -> bool"""
1787 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1789 def RefreshLine(*args
, **kwargs
):
1790 """RefreshLine(self, size_t line)"""
1791 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1793 def RefreshLines(*args
, **kwargs
):
1794 """RefreshLines(self, size_t from, size_t to)"""
1795 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1797 def HitTestXY(*args
, **kwargs
):
1799 HitTestXY(self, int x, int y) -> int
1801 Test where the given (in client coords) point lies
1803 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1805 def HitTest(*args
, **kwargs
):
1807 HitTest(self, Point pt) -> int
1809 Test where the given (in client coords) point lies
1811 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1813 def RefreshAll(*args
, **kwargs
):
1814 """RefreshAll(self)"""
1815 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1817 def GetLineCount(*args
, **kwargs
):
1818 """GetLineCount(self) -> size_t"""
1819 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1821 def GetVisibleBegin(*args
, **kwargs
):
1822 """GetVisibleBegin(self) -> size_t"""
1823 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
1825 def GetVisibleEnd(*args
, **kwargs
):
1826 """GetVisibleEnd(self) -> size_t"""
1827 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
1829 def IsVisible(*args
, **kwargs
):
1830 """IsVisible(self, size_t line) -> bool"""
1831 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1833 def GetFirstVisibleLine(*args
, **kwargs
):
1834 """GetFirstVisibleLine(self) -> size_t"""
1835 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1837 def GetLastVisibleLine(*args
, **kwargs
):
1838 """GetLastVisibleLine(self) -> size_t"""
1839 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1841 def FindFirstFromBottom(*args
, **kwargs
):
1842 """FindFirstFromBottom(self, size_t lineLast, bool fullyVisible=False) -> size_t"""
1843 return _windows_
.VScrolledWindow_FindFirstFromBottom(*args
, **kwargs
)
1845 def GetLinesHeight(*args
, **kwargs
):
1846 """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int"""
1847 return _windows_
.VScrolledWindow_GetLinesHeight(*args
, **kwargs
)
1849 _windows_
.VScrolledWindow_swigregister(VScrolledWindow
)
1851 def PreVScrolledWindow(*args
, **kwargs
):
1852 """PreVScrolledWindow() -> VScrolledWindow"""
1853 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1856 class VListBox(VScrolledWindow
):
1857 """Proxy of C++ VListBox class"""
1858 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1859 __repr__
= _swig_repr
1860 def __init__(self
, *args
, **kwargs
):
1862 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1863 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1865 _windows_
.VListBox_swiginit(self
,_windows_
.new_VListBox(*args
, **kwargs
))
1866 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1868 def _setCallbackInfo(*args
, **kwargs
):
1869 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1870 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1872 def Create(*args
, **kwargs
):
1874 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1875 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1877 return _windows_
.VListBox_Create(*args
, **kwargs
)
1879 def GetItemCount(*args
, **kwargs
):
1880 """GetItemCount(self) -> size_t"""
1881 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1883 def HasMultipleSelection(*args
, **kwargs
):
1884 """HasMultipleSelection(self) -> bool"""
1885 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1887 def GetSelection(*args
, **kwargs
):
1888 """GetSelection(self) -> int"""
1889 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1891 def IsCurrent(*args
, **kwargs
):
1892 """IsCurrent(self, size_t item) -> bool"""
1893 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1895 def IsSelected(*args
, **kwargs
):
1896 """IsSelected(self, size_t item) -> bool"""
1897 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1899 def GetSelectedCount(*args
, **kwargs
):
1900 """GetSelectedCount(self) -> size_t"""
1901 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1903 def GetFirstSelected(*args
, **kwargs
):
1904 """GetFirstSelected(self) -> PyObject"""
1905 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1907 def GetNextSelected(*args
, **kwargs
):
1908 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1909 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1911 def GetMargins(*args
, **kwargs
):
1912 """GetMargins(self) -> Point"""
1913 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1915 def GetSelectionBackground(*args
, **kwargs
):
1916 """GetSelectionBackground(self) -> Colour"""
1917 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1919 def SetItemCount(*args
, **kwargs
):
1920 """SetItemCount(self, size_t count)"""
1921 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1923 def Clear(*args
, **kwargs
):
1925 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1927 def SetSelection(*args
, **kwargs
):
1928 """SetSelection(self, int selection)"""
1929 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1931 def Select(*args
, **kwargs
):
1932 """Select(self, size_t item, bool select=True) -> bool"""
1933 return _windows_
.VListBox_Select(*args
, **kwargs
)
1935 def SelectRange(*args
, **kwargs
):
1936 """SelectRange(self, size_t from, size_t to) -> bool"""
1937 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1939 def Toggle(*args
, **kwargs
):
1940 """Toggle(self, size_t item)"""
1941 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1943 def SelectAll(*args
, **kwargs
):
1944 """SelectAll(self) -> bool"""
1945 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1947 def DeselectAll(*args
, **kwargs
):
1948 """DeselectAll(self) -> bool"""
1949 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1951 def SetMargins(*args
, **kwargs
):
1952 """SetMargins(self, Point pt)"""
1953 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1955 def SetMarginsXY(*args
, **kwargs
):
1956 """SetMarginsXY(self, int x, int y)"""
1957 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1959 def SetSelectionBackground(*args
, **kwargs
):
1960 """SetSelectionBackground(self, Colour col)"""
1961 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1963 def OnDrawSeparator(*args
, **kwargs
):
1964 """OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
1965 return _windows_
.VListBox_OnDrawSeparator(*args
, **kwargs
)
1967 def OnDrawBackground(*args
, **kwargs
):
1968 """OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
1969 return _windows_
.VListBox_OnDrawBackground(*args
, **kwargs
)
1971 _windows_
.VListBox_swigregister(VListBox
)
1972 VListBoxNameStr
= cvar
.VListBoxNameStr
1974 def PreVListBox(*args
, **kwargs
):
1975 """PreVListBox() -> VListBox"""
1976 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1979 class HtmlListBox(VListBox
):
1980 """Proxy of C++ HtmlListBox class"""
1981 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1982 __repr__
= _swig_repr
1983 def __init__(self
, *args
, **kwargs
):
1985 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1986 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1988 _windows_
.HtmlListBox_swiginit(self
,_windows_
.new_HtmlListBox(*args
, **kwargs
))
1989 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1991 def _setCallbackInfo(*args
, **kwargs
):
1992 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1993 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1995 def Create(*args
, **kwargs
):
1997 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1998 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2000 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2002 def SetItemCount(*args
, **kwargs
):
2003 """SetItemCount(self, size_t count)"""
2004 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2006 def GetFileSystem(*args
, **kwargs
):
2007 """GetFileSystem(self) -> FileSystem"""
2008 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2010 def OnLinkClicked(*args
, **kwargs
):
2011 """OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)"""
2012 return _windows_
.HtmlListBox_OnLinkClicked(*args
, **kwargs
)
2014 FileSystem
= property(GetFileSystem
,doc
="See `GetFileSystem`")
2015 _windows_
.HtmlListBox_swigregister(HtmlListBox
)
2017 def PreHtmlListBox(*args
, **kwargs
):
2018 """PreHtmlListBox() -> HtmlListBox"""
2019 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2022 #---------------------------------------------------------------------------
2024 class TaskBarIcon(_core
.EvtHandler
):
2025 """Proxy of C++ TaskBarIcon class"""
2026 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2027 __repr__
= _swig_repr
2028 def __init__(self
, *args
, **kwargs
):
2029 """__init__(self) -> TaskBarIcon"""
2030 _windows_
.TaskBarIcon_swiginit(self
,_windows_
.new_TaskBarIcon(*args
, **kwargs
))
2031 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2033 __swig_destroy__
= _windows_
.delete_TaskBarIcon
2034 __del__
= lambda self
: None;
2035 def _setCallbackInfo(*args
, **kwargs
):
2036 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2037 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2039 def Destroy(*args
, **kwargs
):
2043 Deletes the C++ object this Python object is a proxy for.
2045 val
= _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2049 def IsOk(*args
, **kwargs
):
2050 """IsOk(self) -> bool"""
2051 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2053 def __nonzero__(self
): return self
.IsOk()
2054 def IsIconInstalled(*args
, **kwargs
):
2055 """IsIconInstalled(self) -> bool"""
2056 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2058 def SetIcon(*args
, **kwargs
):
2059 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2060 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2062 def RemoveIcon(*args
, **kwargs
):
2063 """RemoveIcon(self) -> bool"""
2064 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2066 def PopupMenu(*args
, **kwargs
):
2067 """PopupMenu(self, Menu menu) -> bool"""
2068 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2070 _windows_
.TaskBarIcon_swigregister(TaskBarIcon
)
2072 class TaskBarIconEvent(_core
.Event
):
2073 """Proxy of C++ TaskBarIconEvent class"""
2074 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2075 __repr__
= _swig_repr
2076 def __init__(self
, *args
, **kwargs
):
2077 """__init__(self, EventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2078 _windows_
.TaskBarIconEvent_swiginit(self
,_windows_
.new_TaskBarIconEvent(*args
, **kwargs
))
2079 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEvent
)
2081 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2082 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2083 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2084 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2085 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2086 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2087 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2088 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2089 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2090 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2091 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2092 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2093 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2094 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2096 #---------------------------------------------------------------------------
2098 class ColourData(_core
.Object
):
2100 This class holds a variety of information related to the colour
2101 chooser dialog, used to transfer settings and results to and from the
2104 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2105 __repr__
= _swig_repr
2106 def __init__(self
, *args
, **kwargs
):
2108 __init__(self) -> ColourData
2110 Constructor, sets default values.
2112 _windows_
.ColourData_swiginit(self
,_windows_
.new_ColourData(*args
, **kwargs
))
2113 __swig_destroy__
= _windows_
.delete_ColourData
2114 __del__
= lambda self
: None;
2115 def GetChooseFull(*args
, **kwargs
):
2117 GetChooseFull(self) -> bool
2119 Under Windows, determines whether the Windows colour dialog will
2120 display the full dialog with custom colour selection controls. Has no
2121 meaning under other platforms. The default value is true.
2123 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2125 def GetColour(*args
, **kwargs
):
2127 GetColour(self) -> Colour
2129 Gets the colour (pre)selected by the dialog.
2131 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2133 def GetCustomColour(*args
, **kwargs
):
2135 GetCustomColour(self, int i) -> Colour
2137 Gets the i'th custom colour associated with the colour dialog. i
2138 should be an integer between 0 and 15. The default custom colours are
2139 all invalid colours.
2141 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2143 def SetChooseFull(*args
, **kwargs
):
2145 SetChooseFull(self, int flag)
2147 Under Windows, tells the Windows colour dialog to display the full
2148 dialog with custom colour selection controls. Under other platforms,
2149 has no effect. The default value is true.
2151 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2153 def SetColour(*args
, **kwargs
):
2155 SetColour(self, Colour colour)
2157 Sets the default colour for the colour dialog. The default colour is
2160 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2162 def SetCustomColour(*args
, **kwargs
):
2164 SetCustomColour(self, int i, Colour colour)
2166 Sets the i'th custom colour for the colour dialog. i should be an
2167 integer between 0 and 15. The default custom colours are all invalid colours.
2169 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2171 ChooseFull
= property(GetChooseFull
,SetChooseFull
,doc
="See `GetChooseFull` and `SetChooseFull`")
2172 Colour
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")
2173 CustomColour
= property(GetCustomColour
,SetCustomColour
,doc
="See `GetCustomColour` and `SetCustomColour`")
2174 _windows_
.ColourData_swigregister(ColourData
)
2175 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2176 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2177 DirDialogNameStr
= cvar
.DirDialogNameStr
2178 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2179 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2180 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2182 class ColourDialog(Dialog
):
2183 """This class represents the colour chooser dialog."""
2184 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2185 __repr__
= _swig_repr
2186 def __init__(self
, *args
, **kwargs
):
2188 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2190 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2191 which will be copied to the colour dialog's internal ColourData
2194 _windows_
.ColourDialog_swiginit(self
,_windows_
.new_ColourDialog(*args
, **kwargs
))
2195 self
._setOORInfo
(self
)
2197 def GetColourData(*args
, **kwargs
):
2199 GetColourData(self) -> ColourData
2201 Returns a reference to the `wx.ColourData` used by the dialog.
2203 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2205 ColourData
= property(GetColourData
,doc
="See `GetColourData`")
2206 _windows_
.ColourDialog_swigregister(ColourDialog
)
2209 def GetColourFromUser(*args
, **kwargs
):
2211 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2212 String caption=EmptyString) -> Colour
2214 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2215 DD_NEW_DIR_BUTTON
= _windows_
.DD_NEW_DIR_BUTTON
2216 DD_DEFAULT_STYLE
= _windows_
.DD_DEFAULT_STYLE
2217 DD_CHANGE_DIR
= _windows_
.DD_CHANGE_DIR
2218 class DirDialog(Dialog
):
2220 wx.DirDialog allows the user to select a directory by browising the
2223 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2224 __repr__
= _swig_repr
2225 def __init__(self
, *args
, **kwargs
):
2227 __init__(self, Window parent, String message=DirSelectorPromptStr,
2228 String defaultPath=EmptyString, long style=DD_DEFAULT_STYLE,
2229 Point pos=DefaultPosition, Size size=DefaultSize,
2230 String name=DirDialogNameStr) -> DirDialog
2232 Constructor. Use ShowModal method to show the dialog.
2234 _windows_
.DirDialog_swiginit(self
,_windows_
.new_DirDialog(*args
, **kwargs
))
2235 self
._setOORInfo
(self
)
2237 def GetPath(*args
, **kwargs
):
2239 GetPath(self) -> String
2241 Returns the default or user-selected path.
2243 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2245 def GetMessage(*args
, **kwargs
):
2247 GetMessage(self) -> String
2249 Returns the message that will be displayed on the dialog.
2251 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2253 def SetMessage(*args
, **kwargs
):
2255 SetMessage(self, String message)
2257 Sets the message that will be displayed on the dialog.
2259 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2261 def SetPath(*args
, **kwargs
):
2263 SetPath(self, String path)
2265 Sets the default path.
2267 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2269 Message
= property(GetMessage
,SetMessage
,doc
="See `GetMessage` and `SetMessage`")
2270 Path
= property(GetPath
,SetPath
,doc
="See `GetPath` and `SetPath`")
2271 _windows_
.DirDialog_swigregister(DirDialog
)
2273 OPEN
= _windows_
.OPEN
2274 SAVE
= _windows_
.SAVE
2275 OVERWRITE_PROMPT
= _windows_
.OVERWRITE_PROMPT
2276 FILE_MUST_EXIST
= _windows_
.FILE_MUST_EXIST
2277 MULTIPLE
= _windows_
.MULTIPLE
2278 CHANGE_DIR
= _windows_
.CHANGE_DIR
2279 HIDE_READONLY
= _windows_
.HIDE_READONLY
2280 FD_OPEN
= _windows_
.FD_OPEN
2281 FD_SAVE
= _windows_
.FD_SAVE
2282 FD_OVERWRITE_PROMPT
= _windows_
.FD_OVERWRITE_PROMPT
2283 FD_FILE_MUST_EXIST
= _windows_
.FD_FILE_MUST_EXIST
2284 FD_MULTIPLE
= _windows_
.FD_MULTIPLE
2285 FD_CHANGE_DIR
= _windows_
.FD_CHANGE_DIR
2286 FD_PREVIEW
= _windows_
.FD_PREVIEW
2287 FD_DEFAULT_STYLE
= _windows_
.FD_DEFAULT_STYLE
2288 class FileDialog(Dialog
):
2290 wx.FileDialog allows the user to select one or more files from the
2293 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2294 __repr__
= _swig_repr
2295 def __init__(self
, *args
, **kwargs
):
2297 __init__(self, Window parent, String message=FileSelectorPromptStr,
2298 String defaultDir=EmptyString, String defaultFile=EmptyString,
2299 String wildcard=FileSelectorDefaultWildcardStr,
2300 long style=FD_DEFAULT_STYLE,
2301 Point pos=DefaultPosition) -> FileDialog
2303 Constructor. Use ShowModal method to show the dialog.
2305 _windows_
.FileDialog_swiginit(self
,_windows_
.new_FileDialog(*args
, **kwargs
))
2306 self
._setOORInfo
(self
)
2308 def SetMessage(*args
, **kwargs
):
2310 SetMessage(self, String message)
2312 Sets the message that will be displayed on the dialog.
2314 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2316 def SetPath(*args
, **kwargs
):
2318 SetPath(self, String path)
2320 Sets the path (the combined directory and filename that will be
2321 returned when the dialog is dismissed).
2323 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2325 def SetDirectory(*args
, **kwargs
):
2327 SetDirectory(self, String dir)
2329 Sets the default directory.
2331 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2333 def SetFilename(*args
, **kwargs
):
2335 SetFilename(self, String name)
2337 Sets the default filename.
2339 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2341 def SetWildcard(*args
, **kwargs
):
2343 SetWildcard(self, String wildCard)
2345 Sets the wildcard, which can contain multiple file types, for
2348 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2351 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2353 def SetFilterIndex(*args
, **kwargs
):
2355 SetFilterIndex(self, int filterIndex)
2357 Sets the default filter index, starting from zero.
2359 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2361 def GetMessage(*args
, **kwargs
):
2363 GetMessage(self) -> String
2365 Returns the message that will be displayed on the dialog.
2367 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2369 def GetPath(*args
, **kwargs
):
2371 GetPath(self) -> String
2373 Returns the full path (directory and filename) of the selected file.
2375 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2377 def GetDirectory(*args
, **kwargs
):
2379 GetDirectory(self) -> String
2381 Returns the default directory.
2383 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2385 def GetFilename(*args
, **kwargs
):
2387 GetFilename(self) -> String
2389 Returns the default filename.
2391 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2393 def GetWildcard(*args
, **kwargs
):
2395 GetWildcard(self) -> String
2397 Returns the file dialog wildcard.
2399 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2401 def GetFilterIndex(*args
, **kwargs
):
2403 GetFilterIndex(self) -> int
2405 Returns the index into the list of filters supplied, optionally, in
2406 the wildcard parameter. Before the dialog is shown, this is the index
2407 which will be used when the dialog is first displayed. After the
2408 dialog is shown, this is the index selected by the user.
2410 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2412 def GetFilenames(*args
, **kwargs
):
2414 GetFilenames(self) -> PyObject
2416 Returns a list of filenames chosen in the dialog. This function
2417 should only be used with the dialogs which have wx.MULTIPLE style, use
2418 GetFilename for the others.
2420 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2422 def GetPaths(*args
, **kwargs
):
2424 GetPaths(self) -> PyObject
2426 Fills the array paths with the full paths of the files chosen. This
2427 function should only be used with the dialogs which have wx.MULTIPLE
2428 style, use GetPath for the others.
2430 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2432 Directory
= property(GetDirectory
,SetDirectory
,doc
="See `GetDirectory` and `SetDirectory`")
2433 Filename
= property(GetFilename
,SetFilename
,doc
="See `GetFilename` and `SetFilename`")
2434 Filenames
= property(GetFilenames
,doc
="See `GetFilenames`")
2435 FilterIndex
= property(GetFilterIndex
,SetFilterIndex
,doc
="See `GetFilterIndex` and `SetFilterIndex`")
2436 Message
= property(GetMessage
,SetMessage
,doc
="See `GetMessage` and `SetMessage`")
2437 Path
= property(GetPath
,SetPath
,doc
="See `GetPath` and `SetPath`")
2438 Paths
= property(GetPaths
,doc
="See `GetPaths`")
2439 Wildcard
= property(GetWildcard
,SetWildcard
,doc
="See `GetWildcard` and `SetWildcard`")
2440 _windows_
.FileDialog_swigregister(FileDialog
)
2442 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2443 class MultiChoiceDialog(Dialog
):
2444 """A simple dialog with a multi selection listbox."""
2445 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2446 __repr__
= _swig_repr
2447 def __init__(self
, *args
, **kwargs
):
2449 __init__(self, Window parent, String message, String caption,
2450 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2451 Point pos=DefaultPosition) -> MultiChoiceDialog
2453 Constructor. Use the `ShowModal` method to show the dialog.
2455 :param parent: The parent window.
2456 :param message: Text to display above the list of selections.
2457 :param caption: Text to use in the title bar of the dialog.
2458 :param choices: A list of strings or unicode objects that the
2459 user is allowed to choose from.
2460 :param style: Styles to apply to the dialog. The default value is
2461 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2462 :param pos: Where to position the dialog (not used on Windows)
2466 _windows_
.MultiChoiceDialog_swiginit(self
,_windows_
.new_MultiChoiceDialog(*args
, **kwargs
))
2467 self
._setOORInfo
(self
)
2469 def SetSelections(*args
, **kwargs
):
2471 SetSelections(List selections)
2473 Specify the items in the list that should be selected, using a list of
2474 integers. The list should specify the indexes of the items that
2477 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2479 def GetSelections(*args
, **kwargs
):
2481 GetSelections() -> [selections]
2483 Returns a list of integers representing the items that are selected.
2484 If an item is selected then its index will appear in the list.
2486 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2488 Selections
= property(GetSelections
,SetSelections
,doc
="See `GetSelections` and `SetSelections`")
2489 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialog
)
2491 class SingleChoiceDialog(Dialog
):
2492 """A simple dialog with a single selection listbox."""
2493 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2494 __repr__
= _swig_repr
2495 def __init__(self
, *args
, **kwargs
):
2497 __init__(Window parent, String message, String caption,
2498 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2499 Point pos=DefaultPosition) -> SingleChoiceDialog
2501 Constructor. Use ShowModal method to show the dialog.
2503 _windows_
.SingleChoiceDialog_swiginit(self
,_windows_
.new_SingleChoiceDialog(*args
, **kwargs
))
2504 self
._setOORInfo
(self
)
2506 def GetSelection(*args
, **kwargs
):
2508 GetSelection(self) -> int
2510 Get the index of the currently selected item.
2512 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2514 def GetStringSelection(*args
, **kwargs
):
2516 GetStringSelection(self) -> String
2518 Returns the string value of the currently selected item
2520 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2522 def SetSelection(*args
, **kwargs
):
2524 SetSelection(self, int sel)
2526 Set the current selected item to sel
2528 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2530 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialog
)
2532 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2533 class TextEntryDialog(Dialog
):
2534 """A dialog with text control, [ok] and [cancel] buttons"""
2535 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2536 __repr__
= _swig_repr
2537 def __init__(self
, *args
, **kwargs
):
2539 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2540 String defaultValue=EmptyString,
2541 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2543 Constructor. Use ShowModal method to show the dialog.
2545 _windows_
.TextEntryDialog_swiginit(self
,_windows_
.new_TextEntryDialog(*args
, **kwargs
))
2546 self
._setOORInfo
(self
)
2548 def GetValue(*args
, **kwargs
):
2550 GetValue(self) -> String
2552 Returns the text that the user has entered if the user has pressed OK,
2553 or the original value if the user has pressed Cancel.
2555 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2557 def SetValue(*args
, **kwargs
):
2559 SetValue(self, String value)
2561 Sets the default text value.
2563 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2565 _windows_
.TextEntryDialog_swigregister(TextEntryDialog
)
2567 class PasswordEntryDialog(TextEntryDialog
):
2568 """Proxy of C++ PasswordEntryDialog class"""
2569 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2570 __repr__
= _swig_repr
2571 def __init__(self
, *args
, **kwargs
):
2573 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2574 String value=EmptyString,
2575 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2577 _windows_
.PasswordEntryDialog_swiginit(self
,_windows_
.new_PasswordEntryDialog(*args
, **kwargs
))
2578 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialog
)
2579 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2581 class NumberEntryDialog(Dialog
):
2582 """A dialog with spin control, ok and cancel buttons."""
2583 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2584 __repr__
= _swig_repr
2585 def __init__(self
, *args
, **kwargs
):
2587 __init__(self, Window parent, String message, String prompt, String caption,
2588 long value, long min, long max, Point pos=DefaultPosition) -> NumberEntryDialog
2590 Constructor. Use ShowModal method to show the dialog.
2592 _windows_
.NumberEntryDialog_swiginit(self
,_windows_
.new_NumberEntryDialog(*args
, **kwargs
))
2593 self
._setOORInfo
(self
)
2595 def GetValue(*args
, **kwargs
):
2596 """GetValue(self) -> long"""
2597 return _windows_
.NumberEntryDialog_GetValue(*args
, **kwargs
)
2599 Value
= property(GetValue
,doc
="See `GetValue`")
2600 _windows_
.NumberEntryDialog_swigregister(NumberEntryDialog
)
2602 class FontData(_core
.Object
):
2604 This class holds a variety of information related to font dialogs and
2605 is used to transfer settings to and results from a `wx.FontDialog`.
2607 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2608 __repr__
= _swig_repr
2609 def __init__(self
, *args
, **kwargs
):
2611 __init__(self) -> FontData
2613 This class holds a variety of information related to font dialogs and
2614 is used to transfer settings to and results from a `wx.FontDialog`.
2616 _windows_
.FontData_swiginit(self
,_windows_
.new_FontData(*args
, **kwargs
))
2617 __swig_destroy__
= _windows_
.delete_FontData
2618 __del__
= lambda self
: None;
2619 def EnableEffects(*args
, **kwargs
):
2621 EnableEffects(self, bool enable)
2623 Enables or disables 'effects' under MS Windows only. This refers to
2624 the controls for manipulating colour, strikeout and underline
2625 properties. The default value is true.
2627 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2629 def GetAllowSymbols(*args
, **kwargs
):
2631 GetAllowSymbols(self) -> bool
2633 Under MS Windows, returns a flag determining whether symbol fonts can
2634 be selected. Has no effect on other platforms. The default value is
2637 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2639 def GetColour(*args
, **kwargs
):
2641 GetColour(self) -> Colour
2643 Gets the colour associated with the font dialog. The default value is
2646 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2648 def GetChosenFont(*args
, **kwargs
):
2650 GetChosenFont(self) -> Font
2652 Gets the font chosen by the user.
2654 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2656 def GetEnableEffects(*args
, **kwargs
):
2658 GetEnableEffects(self) -> bool
2660 Determines whether 'effects' are enabled under Windows.
2662 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2664 def GetInitialFont(*args
, **kwargs
):
2666 GetInitialFont(self) -> Font
2668 Gets the font that will be initially used by the font dialog. This
2669 should have previously been set by the application.
2671 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2673 def GetShowHelp(*args
, **kwargs
):
2675 GetShowHelp(self) -> bool
2677 Returns true if the Help button will be shown (Windows only). The
2678 default value is false.
2680 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2682 def SetAllowSymbols(*args
, **kwargs
):
2684 SetAllowSymbols(self, bool allowSymbols)
2686 Under MS Windows, determines whether symbol fonts can be selected. Has
2687 no effect on other platforms. The default value is true.
2689 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2691 def SetChosenFont(*args
, **kwargs
):
2693 SetChosenFont(self, Font font)
2695 Sets the font that will be returned to the user (normally for internal
2698 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2700 def SetColour(*args
, **kwargs
):
2702 SetColour(self, Colour colour)
2704 Sets the colour that will be used for the font foreground colour. The
2705 default colour is black.
2707 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2709 def SetInitialFont(*args
, **kwargs
):
2711 SetInitialFont(self, Font font)
2713 Sets the font that will be initially used by the font dialog.
2715 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2717 def SetRange(*args
, **kwargs
):
2719 SetRange(self, int min, int max)
2721 Sets the valid range for the font point size (Windows only). The
2722 default is 0, 0 (unrestricted range).
2724 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2726 def SetShowHelp(*args
, **kwargs
):
2728 SetShowHelp(self, bool showHelp)
2730 Determines whether the Help button will be displayed in the font
2731 dialog (Windows only). The default value is false.
2733 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2735 AllowSymbols
= property(GetAllowSymbols
,SetAllowSymbols
,doc
="See `GetAllowSymbols` and `SetAllowSymbols`")
2736 ChosenFont
= property(GetChosenFont
,SetChosenFont
,doc
="See `GetChosenFont` and `SetChosenFont`")
2737 Colour
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")
2738 EnableEffects
= property(GetEnableEffects
,doc
="See `GetEnableEffects`")
2739 InitialFont
= property(GetInitialFont
,SetInitialFont
,doc
="See `GetInitialFont` and `SetInitialFont`")
2740 ShowHelp
= property(GetShowHelp
,SetShowHelp
,doc
="See `GetShowHelp` and `SetShowHelp`")
2741 _windows_
.FontData_swigregister(FontData
)
2743 class FontDialog(Dialog
):
2745 wx.FontDialog allows the user to select a system font and its attributes.
2750 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2751 __repr__
= _swig_repr
2752 def __init__(self
, *args
, **kwargs
):
2754 __init__(self, Window parent, FontData data) -> FontDialog
2756 Constructor. Pass a parent window and the `wx.FontData` object to be
2757 used to initialize the dialog controls. Call `ShowModal` to display
2758 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2759 results with via the `wx.FontData` returned by `GetFontData`.
2761 _windows_
.FontDialog_swiginit(self
,_windows_
.new_FontDialog(*args
, **kwargs
))
2762 self
._setOORInfo
(self
)
2764 def GetFontData(*args
, **kwargs
):
2766 GetFontData(self) -> FontData
2768 Returns a reference to the internal `wx.FontData` used by the
2771 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2773 FontData
= property(GetFontData
,doc
="See `GetFontData`")
2774 _windows_
.FontDialog_swigregister(FontDialog
)
2777 def GetFontFromUser(*args
, **kwargs
):
2778 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2779 return _windows_
.GetFontFromUser(*args
, **kwargs
)
2780 class MessageDialog(Dialog
):
2782 This class provides a simple dialog that shows a single or multi-line
2783 message, with a choice of OK, Yes, No and/or Cancel buttons.
2785 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2786 __repr__
= _swig_repr
2787 def __init__(self
, *args
, **kwargs
):
2789 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2790 long style=wxOK|wxCANCEL|wxCENTRE,
2791 Point pos=DefaultPosition) -> MessageDialog
2793 Constructor, use `ShowModal` to display the dialog.
2795 _windows_
.MessageDialog_swiginit(self
,_windows_
.new_MessageDialog(*args
, **kwargs
))
2796 self
._setOORInfo
(self
)
2798 _windows_
.MessageDialog_swigregister(MessageDialog
)
2800 PD_AUTO_HIDE
= _windows_
.PD_AUTO_HIDE
2801 PD_APP_MODAL
= _windows_
.PD_APP_MODAL
2802 PD_CAN_ABORT
= _windows_
.PD_CAN_ABORT
2803 PD_ELAPSED_TIME
= _windows_
.PD_ELAPSED_TIME
2804 PD_ESTIMATED_TIME
= _windows_
.PD_ESTIMATED_TIME
2805 PD_REMAINING_TIME
= _windows_
.PD_REMAINING_TIME
2806 PD_SMOOTH
= _windows_
.PD_SMOOTH
2807 PD_CAN_SKIP
= _windows_
.PD_CAN_SKIP
2808 class ProgressDialog(Frame
):
2810 A dialog that shows a short message and a progress bar. Optionally, it
2811 can display an ABORT button.
2813 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2814 __repr__
= _swig_repr
2815 def __init__(self
, *args
, **kwargs
):
2817 __init__(self, String title, String message, int maximum=100, Window parent=None,
2818 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2820 Constructor. Creates the dialog, displays it and disables user input
2821 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2824 _windows_
.ProgressDialog_swiginit(self
,_windows_
.new_ProgressDialog(*args
, **kwargs
))
2825 self
._setOORInfo
(self
)
2827 def Update(*args
, **kwargs
):
2829 Update(self, int value, String newmsg) --> (continue, skip)
2831 Updates the dialog, setting the progress bar to the new value and, if
2832 given changes the message above it. The value given should be less
2833 than or equal to the maximum value given to the constructor and the
2834 dialog is closed if it is equal to the maximum. Returns a tuple of
2835 boolean values, ``(continue, skip)`` where ``continue`` is ``True``
2836 unless the Cancel button has been pressed, and ``skip`` is ``False``
2837 unless the Skip button (if any) has been pressed.
2839 If the ``continue`` return value is ``false``, the application can either
2840 immediately destroy the dialog or ask the user for confirmation, and if the
2841 abort is not confirmed the dialog may be resumed with `Resume` function.
2844 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2846 def UpdatePulse(*args
, **kwargs
):
2848 UpdatePulse(self, String newmsg) --> (continue, skip)
2850 Just like `Update` but switches the dialog to use a gauge in
2851 interminante mode and calls `wx.Gauge.Pulse` to show the user a bit of
2854 return _windows_
.ProgressDialog_UpdatePulse(*args
, **kwargs
)
2856 def Resume(*args
, **kwargs
):
2860 Can be used to continue with the dialog, after the user had chosen to
2863 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2865 _windows_
.ProgressDialog_swigregister(ProgressDialog
)
2867 FR_DOWN
= _windows_
.FR_DOWN
2868 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2869 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2870 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2871 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2872 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2873 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2874 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2875 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2876 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2877 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2878 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2879 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2880 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2881 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2882 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2883 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2885 # For backwards compatibility. Should they be removed?
2886 EVT_COMMAND_FIND
= EVT_FIND
2887 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2888 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2889 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2890 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2892 class FindDialogEvent(_core
.CommandEvent
):
2893 """Events for the FindReplaceDialog"""
2894 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2895 __repr__
= _swig_repr
2896 def __init__(self
, *args
, **kwargs
):
2898 __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2900 Events for the FindReplaceDialog
2902 _windows_
.FindDialogEvent_swiginit(self
,_windows_
.new_FindDialogEvent(*args
, **kwargs
))
2903 def GetFlags(*args
, **kwargs
):
2905 GetFlags(self) -> int
2907 Get the currently selected flags: this is the combination of
2908 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2910 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2912 def GetFindString(*args
, **kwargs
):
2914 GetFindString(self) -> String
2916 Return the string to find (never empty).
2918 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2920 def GetReplaceString(*args
, **kwargs
):
2922 GetReplaceString(self) -> String
2924 Return the string to replace the search string with (only for replace
2925 and replace all events).
2927 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2929 def GetDialog(*args
, **kwargs
):
2931 GetDialog(self) -> FindReplaceDialog
2933 Return the pointer to the dialog which generated this event.
2935 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2937 def SetFlags(*args
, **kwargs
):
2938 """SetFlags(self, int flags)"""
2939 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2941 def SetFindString(*args
, **kwargs
):
2942 """SetFindString(self, String str)"""
2943 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2945 def SetReplaceString(*args
, **kwargs
):
2946 """SetReplaceString(self, String str)"""
2947 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2949 Dialog
= property(GetDialog
,doc
="See `GetDialog`")
2950 FindString
= property(GetFindString
,SetFindString
,doc
="See `GetFindString` and `SetFindString`")
2951 Flags
= property(GetFlags
,SetFlags
,doc
="See `GetFlags` and `SetFlags`")
2952 ReplaceString
= property(GetReplaceString
,SetReplaceString
,doc
="See `GetReplaceString` and `SetReplaceString`")
2953 _windows_
.FindDialogEvent_swigregister(FindDialogEvent
)
2955 class FindReplaceData(_core
.Object
):
2957 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2958 to initialize the dialog with the default values and will keep the
2959 last values from the dialog when it is closed. It is also updated each
2960 time a `wx.FindDialogEvent` is generated so instead of using the
2961 `wx.FindDialogEvent` methods you can also directly query this object.
2963 Note that all SetXXX() methods may only be called before showing the
2964 dialog and calling them has no effect later.
2966 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2967 __repr__
= _swig_repr
2968 def __init__(self
, *args
, **kwargs
):
2970 __init__(self, int flags=0) -> FindReplaceData
2972 Constuctor initializes the flags to default value (0).
2974 _windows_
.FindReplaceData_swiginit(self
,_windows_
.new_FindReplaceData(*args
, **kwargs
))
2975 __swig_destroy__
= _windows_
.delete_FindReplaceData
2976 __del__
= lambda self
: None;
2977 def GetFindString(*args
, **kwargs
):
2979 GetFindString(self) -> String
2981 Get the string to find.
2983 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2985 def GetReplaceString(*args
, **kwargs
):
2987 GetReplaceString(self) -> String
2989 Get the replacement string.
2991 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2993 def GetFlags(*args
, **kwargs
):
2995 GetFlags(self) -> int
2997 Get the combination of flag values.
2999 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3001 def SetFlags(*args
, **kwargs
):
3003 SetFlags(self, int flags)
3005 Set the flags to use to initialize the controls of the dialog.
3007 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3009 def SetFindString(*args
, **kwargs
):
3011 SetFindString(self, String str)
3013 Set the string to find (used as initial value by the dialog).
3015 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3017 def SetReplaceString(*args
, **kwargs
):
3019 SetReplaceString(self, String str)
3021 Set the replacement string (used as initial value by the dialog).
3023 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3025 FindString
= property(GetFindString
,SetFindString
,doc
="See `GetFindString` and `SetFindString`")
3026 Flags
= property(GetFlags
,SetFlags
,doc
="See `GetFlags` and `SetFlags`")
3027 ReplaceString
= property(GetReplaceString
,SetReplaceString
,doc
="See `GetReplaceString` and `SetReplaceString`")
3028 _windows_
.FindReplaceData_swigregister(FindReplaceData
)
3030 class FindReplaceDialog(Dialog
):
3032 wx.FindReplaceDialog is a standard modeless dialog which is used to
3033 allow the user to search for some text (and possibly replace it with
3034 something else). The actual searching is supposed to be done in the
3035 owner window which is the parent of this dialog. Note that it means
3036 that unlike for the other standard dialogs this one must have a parent
3037 window. Also note that there is no way to use this dialog in a modal
3038 way; it is always, by design and implementation, modeless.
3040 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3041 __repr__
= _swig_repr
3042 def __init__(self
, *args
, **kwargs
):
3044 __init__(self, Window parent, FindReplaceData data, String title,
3045 int style=0) -> FindReplaceDialog
3047 Create a FindReplaceDialog. The parent and data parameters must be
3048 non-None. Use Show to display the dialog.
3050 _windows_
.FindReplaceDialog_swiginit(self
,_windows_
.new_FindReplaceDialog(*args
, **kwargs
))
3051 self
._setOORInfo
(self
)
3053 def Create(*args
, **kwargs
):
3055 Create(self, Window parent, FindReplaceData data, String title,
3056 int style=0) -> bool
3058 Create the dialog, for 2-phase create.
3060 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3062 def GetData(*args
, **kwargs
):
3064 GetData(self) -> FindReplaceData
3066 Get the FindReplaceData object used by this dialog.
3068 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3070 def SetData(*args
, **kwargs
):
3072 SetData(self, FindReplaceData data)
3074 Set the FindReplaceData object used by this dialog.
3076 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3078 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
3079 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialog
)
3081 def PreFindReplaceDialog(*args
, **kwargs
):
3083 PreFindReplaceDialog() -> FindReplaceDialog
3085 Precreate a FindReplaceDialog for 2-phase creation
3087 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3090 #---------------------------------------------------------------------------
3092 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3093 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3094 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3095 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3096 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3097 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3098 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3099 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3100 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3101 class MDIParentFrame(Frame
):
3102 """Proxy of C++ MDIParentFrame class"""
3103 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3104 __repr__
= _swig_repr
3105 def __init__(self
, *args
, **kwargs
):
3107 __init__(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) -> MDIParentFrame
3112 _windows_
.MDIParentFrame_swiginit(self
,_windows_
.new_MDIParentFrame(*args
, **kwargs
))
3113 self
._setOORInfo
(self
)
3115 def Create(*args
, **kwargs
):
3117 Create(self, Window parent, int id=-1, String title=EmptyString,
3118 Point pos=DefaultPosition, Size size=DefaultSize,
3119 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3120 String name=FrameNameStr) -> bool
3122 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3124 def ActivateNext(*args
, **kwargs
):
3125 """ActivateNext(self)"""
3126 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3128 def ActivatePrevious(*args
, **kwargs
):
3129 """ActivatePrevious(self)"""
3130 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3132 def ArrangeIcons(*args
, **kwargs
):
3133 """ArrangeIcons(self)"""
3134 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3136 def Cascade(*args
, **kwargs
):
3138 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3140 def GetActiveChild(*args
, **kwargs
):
3141 """GetActiveChild(self) -> MDIChildFrame"""
3142 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3144 def GetClientWindow(*args
, **kwargs
):
3145 """GetClientWindow(self) -> MDIClientWindow"""
3146 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3148 def GetWindowMenu(*args
, **kwargs
):
3149 """GetWindowMenu(self) -> Menu"""
3150 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3152 def SetWindowMenu(*args
, **kwargs
):
3153 """SetWindowMenu(self, Menu menu)"""
3154 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3156 def Tile(*args
, **kwargs
):
3157 """Tile(self, int orient=HORIZONTAL)"""
3158 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3160 ActiveChild
= property(GetActiveChild
,doc
="See `GetActiveChild`")
3161 ClientWindow
= property(GetClientWindow
,doc
="See `GetClientWindow`")
3162 _windows_
.MDIParentFrame_swigregister(MDIParentFrame
)
3164 def PreMDIParentFrame(*args
, **kwargs
):
3165 """PreMDIParentFrame() -> MDIParentFrame"""
3166 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3169 class MDIChildFrame(Frame
):
3170 """Proxy of C++ MDIChildFrame class"""
3171 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3172 __repr__
= _swig_repr
3173 def __init__(self
, *args
, **kwargs
):
3175 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3176 Point pos=DefaultPosition, Size size=DefaultSize,
3177 long style=DEFAULT_FRAME_STYLE,
3178 String name=FrameNameStr) -> MDIChildFrame
3180 _windows_
.MDIChildFrame_swiginit(self
,_windows_
.new_MDIChildFrame(*args
, **kwargs
))
3181 self
._setOORInfo
(self
)
3183 def Create(*args
, **kwargs
):
3185 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3186 Point pos=DefaultPosition, Size size=DefaultSize,
3187 long style=DEFAULT_FRAME_STYLE,
3188 String name=FrameNameStr) -> bool
3190 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3192 def Activate(*args
, **kwargs
):
3193 """Activate(self)"""
3194 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3196 _windows_
.MDIChildFrame_swigregister(MDIChildFrame
)
3198 def PreMDIChildFrame(*args
, **kwargs
):
3199 """PreMDIChildFrame() -> MDIChildFrame"""
3200 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3203 class MDIClientWindow(_core
.Window
):
3204 """Proxy of C++ MDIClientWindow class"""
3205 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3206 __repr__
= _swig_repr
3207 def __init__(self
, *args
, **kwargs
):
3208 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3209 _windows_
.MDIClientWindow_swiginit(self
,_windows_
.new_MDIClientWindow(*args
, **kwargs
))
3210 self
._setOORInfo
(self
)
3212 def Create(*args
, **kwargs
):
3213 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3214 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3216 _windows_
.MDIClientWindow_swigregister(MDIClientWindow
)
3218 def PreMDIClientWindow(*args
, **kwargs
):
3219 """PreMDIClientWindow() -> MDIClientWindow"""
3220 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3223 #---------------------------------------------------------------------------
3225 class PyWindow(_core
.Window
):
3226 """Proxy of C++ PyWindow class"""
3227 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3228 __repr__
= _swig_repr
3229 def __init__(self
, *args
, **kwargs
):
3231 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3232 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3234 _windows_
.PyWindow_swiginit(self
,_windows_
.new_PyWindow(*args
, **kwargs
))
3235 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3237 def _setCallbackInfo(*args
, **kwargs
):
3238 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3239 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3241 def SetBestSize(*args
, **kwargs
):
3242 """SetBestSize(self, Size size)"""
3243 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3245 def DoEraseBackground(*args
, **kwargs
):
3246 """DoEraseBackground(self, DC dc) -> bool"""
3247 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3249 def DoMoveWindow(*args
, **kwargs
):
3250 """DoMoveWindow(self, int x, int y, int width, int height)"""
3251 return _windows_
.PyWindow_DoMoveWindow(*args
, **kwargs
)
3253 def DoSetSize(*args
, **kwargs
):
3254 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3255 return _windows_
.PyWindow_DoSetSize(*args
, **kwargs
)
3257 def DoSetClientSize(*args
, **kwargs
):
3258 """DoSetClientSize(self, int width, int height)"""
3259 return _windows_
.PyWindow_DoSetClientSize(*args
, **kwargs
)
3261 def DoSetVirtualSize(*args
, **kwargs
):
3262 """DoSetVirtualSize(self, int x, int y)"""
3263 return _windows_
.PyWindow_DoSetVirtualSize(*args
, **kwargs
)
3265 def DoGetSize(*args
, **kwargs
):
3266 """DoGetSize() -> (width, height)"""
3267 return _windows_
.PyWindow_DoGetSize(*args
, **kwargs
)
3269 def DoGetClientSize(*args
, **kwargs
):
3270 """DoGetClientSize() -> (width, height)"""
3271 return _windows_
.PyWindow_DoGetClientSize(*args
, **kwargs
)
3273 def DoGetPosition(*args
, **kwargs
):
3274 """DoGetPosition() -> (x,y)"""
3275 return _windows_
.PyWindow_DoGetPosition(*args
, **kwargs
)
3277 def DoGetVirtualSize(*args
, **kwargs
):
3278 """DoGetVirtualSize(self) -> Size"""
3279 return _windows_
.PyWindow_DoGetVirtualSize(*args
, **kwargs
)
3281 def DoGetBestSize(*args
, **kwargs
):
3282 """DoGetBestSize(self) -> Size"""
3283 return _windows_
.PyWindow_DoGetBestSize(*args
, **kwargs
)
3285 def GetDefaultAttributes(*args
, **kwargs
):
3286 """GetDefaultAttributes(self) -> VisualAttributes"""
3287 return _windows_
.PyWindow_GetDefaultAttributes(*args
, **kwargs
)
3289 def OnInternalIdle(*args
, **kwargs
):
3290 """OnInternalIdle(self)"""
3291 return _windows_
.PyWindow_OnInternalIdle(*args
, **kwargs
)
3293 def base_DoMoveWindow(*args
, **kw
):
3294 return PyWindow
.DoMoveWindow(*args
, **kw
)
3295 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3296 "Please use PyWindow.DoMoveWindow instead.")
3298 def base_DoSetSize(*args
, **kw
):
3299 return PyWindow
.DoSetSize(*args
, **kw
)
3300 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3301 "Please use PyWindow.DoSetSize instead.")
3303 def base_DoSetClientSize(*args
, **kw
):
3304 return PyWindow
.DoSetClientSize(*args
, **kw
)
3305 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3306 "Please use PyWindow.DoSetClientSize instead.")
3308 def base_DoSetVirtualSize(*args
, **kw
):
3309 return PyWindow
.DoSetVirtualSize(*args
, **kw
)
3310 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3311 "Please use PyWindow.DoSetVirtualSize instead.")
3313 def base_DoGetSize(*args
, **kw
):
3314 return PyWindow
.DoGetSize(*args
, **kw
)
3315 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3316 "Please use PyWindow.DoGetSize instead.")
3318 def base_DoGetClientSize(*args
, **kw
):
3319 return PyWindow
.DoGetClientSize(*args
, **kw
)
3320 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3321 "Please use PyWindow.DoGetClientSize instead.")
3323 def base_DoGetPosition(*args
, **kw
):
3324 return PyWindow
.DoGetPosition(*args
, **kw
)
3325 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3326 "Please use PyWindow.DoGetPosition instead.")
3328 def base_DoGetVirtualSize(*args
, **kw
):
3329 return PyWindow
.DoGetVirtualSize(*args
, **kw
)
3330 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3331 "Please use PyWindow.DoGetVirtualSize instead.")
3333 def base_DoGetBestSize(*args
, **kw
):
3334 return PyWindow
.DoGetBestSize(*args
, **kw
)
3335 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3336 "Please use PyWindow.DoGetBestSize instead.")
3338 def base_InitDialog(*args
, **kw
):
3339 return PyWindow
.InitDialog(*args
, **kw
)
3340 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3341 "Please use PyWindow.InitDialog instead.")
3343 def base_TransferDataToWindow(*args
, **kw
):
3344 return PyWindow
.TransferDataToWindow(*args
, **kw
)
3345 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3346 "Please use PyWindow.TransferDataToWindow instead.")
3348 def base_TransferDataFromWindow(*args
, **kw
):
3349 return PyWindow
.TransferDataFromWindow(*args
, **kw
)
3350 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3351 "Please use PyWindow.TransferDataFromWindow instead.")
3353 def base_Validate(*args
, **kw
):
3354 return PyWindow
.Validate(*args
, **kw
)
3355 base_Validate
= wx
._deprecated
(base_Validate
,
3356 "Please use PyWindow.Validate instead.")
3358 def base_AcceptsFocus(*args
, **kw
):
3359 return PyWindow
.AcceptsFocus(*args
, **kw
)
3360 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3361 "Please use PyWindow.AcceptsFocus instead.")
3363 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3364 return PyWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3365 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3366 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3368 def base_GetMaxSize(*args
, **kw
):
3369 return PyWindow
.GetMaxSize(*args
, **kw
)
3370 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3371 "Please use PyWindow.GetMaxSize instead.")
3373 def base_AddChild(*args
, **kw
):
3374 return PyWindow
.AddChild(*args
, **kw
)
3375 base_AddChild
= wx
._deprecated
(base_AddChild
,
3376 "Please use PyWindow.AddChild instead.")
3378 def base_RemoveChild(*args
, **kw
):
3379 return PyWindow
.RemoveChild(*args
, **kw
)
3380 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3381 "Please use PyWindow.RemoveChild instead.")
3383 def base_ShouldInheritColours(*args
, **kw
):
3384 return PyWindow
.ShouldInheritColours(*args
, **kw
)
3385 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3386 "Please use PyWindow.ShouldInheritColours instead.")
3388 def base_GetDefaultAttributes(*args
, **kw
):
3389 return PyWindow
.GetDefaultAttributes(*args
, **kw
)
3390 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3391 "Please use PyWindow.GetDefaultAttributes instead.")
3393 def base_OnInternalIdle(*args
, **kw
):
3394 return PyWindow
.OnInternalIdle(*args
, **kw
)
3395 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3396 "Please use PyWindow.OnInternalIdle instead.")
3398 _windows_
.PyWindow_swigregister(PyWindow
)
3400 def PrePyWindow(*args
, **kwargs
):
3401 """PrePyWindow() -> PyWindow"""
3402 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3405 class PyPanel(Panel
):
3406 """Proxy of C++ PyPanel class"""
3407 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3408 __repr__
= _swig_repr
3409 def __init__(self
, *args
, **kwargs
):
3411 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3412 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3414 _windows_
.PyPanel_swiginit(self
,_windows_
.new_PyPanel(*args
, **kwargs
))
3415 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3417 def _setCallbackInfo(*args
, **kwargs
):
3418 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3419 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3421 def SetBestSize(*args
, **kwargs
):
3422 """SetBestSize(self, Size size)"""
3423 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3425 def DoEraseBackground(*args
, **kwargs
):
3426 """DoEraseBackground(self, DC dc) -> bool"""
3427 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3429 def DoMoveWindow(*args
, **kwargs
):
3430 """DoMoveWindow(self, int x, int y, int width, int height)"""
3431 return _windows_
.PyPanel_DoMoveWindow(*args
, **kwargs
)
3433 def DoSetSize(*args
, **kwargs
):
3434 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3435 return _windows_
.PyPanel_DoSetSize(*args
, **kwargs
)
3437 def DoSetClientSize(*args
, **kwargs
):
3438 """DoSetClientSize(self, int width, int height)"""
3439 return _windows_
.PyPanel_DoSetClientSize(*args
, **kwargs
)
3441 def DoSetVirtualSize(*args
, **kwargs
):
3442 """DoSetVirtualSize(self, int x, int y)"""
3443 return _windows_
.PyPanel_DoSetVirtualSize(*args
, **kwargs
)
3445 def DoGetSize(*args
, **kwargs
):
3446 """DoGetSize() -> (width, height)"""
3447 return _windows_
.PyPanel_DoGetSize(*args
, **kwargs
)
3449 def DoGetClientSize(*args
, **kwargs
):
3450 """DoGetClientSize() -> (width, height)"""
3451 return _windows_
.PyPanel_DoGetClientSize(*args
, **kwargs
)
3453 def DoGetPosition(*args
, **kwargs
):
3454 """DoGetPosition() -> (x,y)"""
3455 return _windows_
.PyPanel_DoGetPosition(*args
, **kwargs
)
3457 def DoGetVirtualSize(*args
, **kwargs
):
3458 """DoGetVirtualSize(self) -> Size"""
3459 return _windows_
.PyPanel_DoGetVirtualSize(*args
, **kwargs
)
3461 def DoGetBestSize(*args
, **kwargs
):
3462 """DoGetBestSize(self) -> Size"""
3463 return _windows_
.PyPanel_DoGetBestSize(*args
, **kwargs
)
3465 def GetDefaultAttributes(*args
, **kwargs
):
3466 """GetDefaultAttributes(self) -> VisualAttributes"""
3467 return _windows_
.PyPanel_GetDefaultAttributes(*args
, **kwargs
)
3469 def OnInternalIdle(*args
, **kwargs
):
3470 """OnInternalIdle(self)"""
3471 return _windows_
.PyPanel_OnInternalIdle(*args
, **kwargs
)
3473 def base_DoMoveWindow(*args
, **kw
):
3474 return PyPanel
.DoMoveWindow(*args
, **kw
)
3475 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3476 "Please use PyPanel.DoMoveWindow instead.")
3478 def base_DoSetSize(*args
, **kw
):
3479 return PyPanel
.DoSetSize(*args
, **kw
)
3480 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3481 "Please use PyPanel.DoSetSize instead.")
3483 def base_DoSetClientSize(*args
, **kw
):
3484 return PyPanel
.DoSetClientSize(*args
, **kw
)
3485 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3486 "Please use PyPanel.DoSetClientSize instead.")
3488 def base_DoSetVirtualSize(*args
, **kw
):
3489 return PyPanel
.DoSetVirtualSize(*args
, **kw
)
3490 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3491 "Please use PyPanel.DoSetVirtualSize instead.")
3493 def base_DoGetSize(*args
, **kw
):
3494 return PyPanel
.DoGetSize(*args
, **kw
)
3495 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3496 "Please use PyPanel.DoGetSize instead.")
3498 def base_DoGetClientSize(*args
, **kw
):
3499 return PyPanel
.DoGetClientSize(*args
, **kw
)
3500 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3501 "Please use PyPanel.DoGetClientSize instead.")
3503 def base_DoGetPosition(*args
, **kw
):
3504 return PyPanel
.DoGetPosition(*args
, **kw
)
3505 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3506 "Please use PyPanel.DoGetPosition instead.")
3508 def base_DoGetVirtualSize(*args
, **kw
):
3509 return PyPanel
.DoGetVirtualSize(*args
, **kw
)
3510 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3511 "Please use PyPanel.DoGetVirtualSize instead.")
3513 def base_DoGetBestSize(*args
, **kw
):
3514 return PyPanel
.DoGetBestSize(*args
, **kw
)
3515 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3516 "Please use PyPanel.DoGetBestSize instead.")
3518 def base_InitDialog(*args
, **kw
):
3519 return PyPanel
.InitDialog(*args
, **kw
)
3520 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3521 "Please use PyPanel.InitDialog instead.")
3523 def base_TransferDataToWindow(*args
, **kw
):
3524 return PyPanel
.TransferDataToWindow(*args
, **kw
)
3525 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3526 "Please use PyPanel.TransferDataToWindow instead.")
3528 def base_TransferDataFromWindow(*args
, **kw
):
3529 return PyPanel
.TransferDataFromWindow(*args
, **kw
)
3530 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3531 "Please use PyPanel.TransferDataFromWindow instead.")
3533 def base_Validate(*args
, **kw
):
3534 return PyPanel
.Validate(*args
, **kw
)
3535 base_Validate
= wx
._deprecated
(base_Validate
,
3536 "Please use PyPanel.Validate instead.")
3538 def base_AcceptsFocus(*args
, **kw
):
3539 return PyPanel
.AcceptsFocus(*args
, **kw
)
3540 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3541 "Please use PyPanel.AcceptsFocus instead.")
3543 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3544 return PyPanel
.AcceptsFocusFromKeyboard(*args
, **kw
)
3545 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3546 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
3548 def base_GetMaxSize(*args
, **kw
):
3549 return PyPanel
.GetMaxSize(*args
, **kw
)
3550 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3551 "Please use PyPanel.GetMaxSize instead.")
3553 def base_AddChild(*args
, **kw
):
3554 return PyPanel
.AddChild(*args
, **kw
)
3555 base_AddChild
= wx
._deprecated
(base_AddChild
,
3556 "Please use PyPanel.AddChild instead.")
3558 def base_RemoveChild(*args
, **kw
):
3559 return PyPanel
.RemoveChild(*args
, **kw
)
3560 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3561 "Please use PyPanel.RemoveChild instead.")
3563 def base_ShouldInheritColours(*args
, **kw
):
3564 return PyPanel
.ShouldInheritColours(*args
, **kw
)
3565 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3566 "Please use PyPanel.ShouldInheritColours instead.")
3568 def base_GetDefaultAttributes(*args
, **kw
):
3569 return PyPanel
.GetDefaultAttributes(*args
, **kw
)
3570 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3571 "Please use PyPanel.GetDefaultAttributes instead.")
3573 def base_OnInternalIdle(*args
, **kw
):
3574 return PyPanel
.OnInternalIdle(*args
, **kw
)
3575 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3576 "Please use PyPanel.OnInternalIdle instead.")
3578 _windows_
.PyPanel_swigregister(PyPanel
)
3580 def PrePyPanel(*args
, **kwargs
):
3581 """PrePyPanel() -> PyPanel"""
3582 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3585 class PyScrolledWindow(ScrolledWindow
):
3586 """Proxy of C++ PyScrolledWindow class"""
3587 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3588 __repr__
= _swig_repr
3589 def __init__(self
, *args
, **kwargs
):
3591 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3592 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3594 _windows_
.PyScrolledWindow_swiginit(self
,_windows_
.new_PyScrolledWindow(*args
, **kwargs
))
3595 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3597 def _setCallbackInfo(*args
, **kwargs
):
3598 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3599 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3601 def SetBestSize(*args
, **kwargs
):
3602 """SetBestSize(self, Size size)"""
3603 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3605 def DoEraseBackground(*args
, **kwargs
):
3606 """DoEraseBackground(self, DC dc) -> bool"""
3607 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3609 def DoMoveWindow(*args
, **kwargs
):
3610 """DoMoveWindow(self, int x, int y, int width, int height)"""
3611 return _windows_
.PyScrolledWindow_DoMoveWindow(*args
, **kwargs
)
3613 def DoSetSize(*args
, **kwargs
):
3614 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3615 return _windows_
.PyScrolledWindow_DoSetSize(*args
, **kwargs
)
3617 def DoSetClientSize(*args
, **kwargs
):
3618 """DoSetClientSize(self, int width, int height)"""
3619 return _windows_
.PyScrolledWindow_DoSetClientSize(*args
, **kwargs
)
3621 def DoSetVirtualSize(*args
, **kwargs
):
3622 """DoSetVirtualSize(self, int x, int y)"""
3623 return _windows_
.PyScrolledWindow_DoSetVirtualSize(*args
, **kwargs
)
3625 def DoGetSize(*args
, **kwargs
):
3626 """DoGetSize() -> (width, height)"""
3627 return _windows_
.PyScrolledWindow_DoGetSize(*args
, **kwargs
)
3629 def DoGetClientSize(*args
, **kwargs
):
3630 """DoGetClientSize() -> (width, height)"""
3631 return _windows_
.PyScrolledWindow_DoGetClientSize(*args
, **kwargs
)
3633 def DoGetPosition(*args
, **kwargs
):
3634 """DoGetPosition() -> (x,y)"""
3635 return _windows_
.PyScrolledWindow_DoGetPosition(*args
, **kwargs
)
3637 def DoGetVirtualSize(*args
, **kwargs
):
3638 """DoGetVirtualSize(self) -> Size"""
3639 return _windows_
.PyScrolledWindow_DoGetVirtualSize(*args
, **kwargs
)
3641 def DoGetBestSize(*args
, **kwargs
):
3642 """DoGetBestSize(self) -> Size"""
3643 return _windows_
.PyScrolledWindow_DoGetBestSize(*args
, **kwargs
)
3645 def GetDefaultAttributes(*args
, **kwargs
):
3646 """GetDefaultAttributes(self) -> VisualAttributes"""
3647 return _windows_
.PyScrolledWindow_GetDefaultAttributes(*args
, **kwargs
)
3649 def OnInternalIdle(*args
, **kwargs
):
3650 """OnInternalIdle(self)"""
3651 return _windows_
.PyScrolledWindow_OnInternalIdle(*args
, **kwargs
)
3653 def base_DoMoveWindow(*args
, **kw
):
3654 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
3655 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3656 "Please use PyScrolledWindow.DoMoveWindow instead.")
3658 def base_DoSetSize(*args
, **kw
):
3659 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
3660 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3661 "Please use PyScrolledWindow.DoSetSize instead.")
3663 def base_DoSetClientSize(*args
, **kw
):
3664 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
3665 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3666 "Please use PyScrolledWindow.DoSetClientSize instead.")
3668 def base_DoSetVirtualSize(*args
, **kw
):
3669 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
3670 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3671 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
3673 def base_DoGetSize(*args
, **kw
):
3674 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
3675 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3676 "Please use PyScrolledWindow.DoGetSize instead.")
3678 def base_DoGetClientSize(*args
, **kw
):
3679 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
3680 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3681 "Please use PyScrolledWindow.DoGetClientSize instead.")
3683 def base_DoGetPosition(*args
, **kw
):
3684 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
3685 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3686 "Please use PyScrolledWindow.DoGetPosition instead.")
3688 def base_DoGetVirtualSize(*args
, **kw
):
3689 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
3690 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3691 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
3693 def base_DoGetBestSize(*args
, **kw
):
3694 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
3695 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3696 "Please use PyScrolledWindow.DoGetBestSize instead.")
3698 def base_InitDialog(*args
, **kw
):
3699 return PyScrolledWindow
.InitDialog(*args
, **kw
)
3700 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3701 "Please use PyScrolledWindow.InitDialog instead.")
3703 def base_TransferDataToWindow(*args
, **kw
):
3704 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
3705 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3706 "Please use PyScrolledWindow.TransferDataToWindow instead.")
3708 def base_TransferDataFromWindow(*args
, **kw
):
3709 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
3710 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3711 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
3713 def base_Validate(*args
, **kw
):
3714 return PyScrolledWindow
.Validate(*args
, **kw
)
3715 base_Validate
= wx
._deprecated
(base_Validate
,
3716 "Please use PyScrolledWindow.Validate instead.")
3718 def base_AcceptsFocus(*args
, **kw
):
3719 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
3720 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3721 "Please use PyScrolledWindow.AcceptsFocus instead.")
3723 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3724 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3725 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3726 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
3728 def base_GetMaxSize(*args
, **kw
):
3729 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
3730 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3731 "Please use PyScrolledWindow.GetMaxSize instead.")
3733 def base_AddChild(*args
, **kw
):
3734 return PyScrolledWindow
.AddChild(*args
, **kw
)
3735 base_AddChild
= wx
._deprecated
(base_AddChild
,
3736 "Please use PyScrolledWindow.AddChild instead.")
3738 def base_RemoveChild(*args
, **kw
):
3739 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
3740 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3741 "Please use PyScrolledWindow.RemoveChild instead.")
3743 def base_ShouldInheritColours(*args
, **kw
):
3744 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
3745 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3746 "Please use PyScrolledWindow.ShouldInheritColours instead.")
3748 def base_GetDefaultAttributes(*args
, **kw
):
3749 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
3750 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3751 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
3753 def base_OnInternalIdle(*args
, **kw
):
3754 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
3755 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3756 "Please use PyScrolledWindow.OnInternalIdle instead.")
3758 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindow
)
3760 def PrePyScrolledWindow(*args
, **kwargs
):
3761 """PrePyScrolledWindow() -> PyScrolledWindow"""
3762 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3765 #---------------------------------------------------------------------------
3767 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3768 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3769 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3770 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3771 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3772 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3773 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3774 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3775 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3776 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3777 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3778 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3779 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3780 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3781 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3782 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3783 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3784 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3785 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3786 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3787 class PrintData(_core
.Object
):
3788 """Proxy of C++ PrintData class"""
3789 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3790 __repr__
= _swig_repr
3791 def __init__(self
, *args
):
3793 __init__(self) -> PrintData
3794 __init__(self, PrintData data) -> PrintData
3796 _windows_
.PrintData_swiginit(self
,_windows_
.new_PrintData(*args
))
3797 __swig_destroy__
= _windows_
.delete_PrintData
3798 __del__
= lambda self
: None;
3799 def GetNoCopies(*args
, **kwargs
):
3800 """GetNoCopies(self) -> int"""
3801 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3803 def GetCollate(*args
, **kwargs
):
3804 """GetCollate(self) -> bool"""
3805 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3807 def GetOrientation(*args
, **kwargs
):
3808 """GetOrientation(self) -> int"""
3809 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3811 def Ok(*args
, **kwargs
):
3812 """Ok(self) -> bool"""
3813 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3815 def GetPrinterName(*args
, **kwargs
):
3816 """GetPrinterName(self) -> String"""
3817 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3819 def GetColour(*args
, **kwargs
):
3820 """GetColour(self) -> bool"""
3821 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3823 def GetDuplex(*args
, **kwargs
):
3824 """GetDuplex(self) -> int"""
3825 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3827 def GetPaperId(*args
, **kwargs
):
3828 """GetPaperId(self) -> int"""
3829 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3831 def GetPaperSize(*args
, **kwargs
):
3832 """GetPaperSize(self) -> Size"""
3833 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3835 def GetQuality(*args
, **kwargs
):
3836 """GetQuality(self) -> int"""
3837 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3839 def GetBin(*args
, **kwargs
):
3840 """GetBin(self) -> int"""
3841 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3843 def GetPrintMode(*args
, **kwargs
):
3844 """GetPrintMode(self) -> int"""
3845 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3847 def SetNoCopies(*args
, **kwargs
):
3848 """SetNoCopies(self, int v)"""
3849 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3851 def SetCollate(*args
, **kwargs
):
3852 """SetCollate(self, bool flag)"""
3853 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3855 def SetOrientation(*args
, **kwargs
):
3856 """SetOrientation(self, int orient)"""
3857 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3859 def SetPrinterName(*args
, **kwargs
):
3860 """SetPrinterName(self, String name)"""
3861 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3863 def SetColour(*args
, **kwargs
):
3864 """SetColour(self, bool colour)"""
3865 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3867 def SetDuplex(*args
, **kwargs
):
3868 """SetDuplex(self, int duplex)"""
3869 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3871 def SetPaperId(*args
, **kwargs
):
3872 """SetPaperId(self, int sizeId)"""
3873 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3875 def SetPaperSize(*args
, **kwargs
):
3876 """SetPaperSize(self, Size sz)"""
3877 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3879 def SetQuality(*args
, **kwargs
):
3880 """SetQuality(self, int quality)"""
3881 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3883 def SetBin(*args
, **kwargs
):
3884 """SetBin(self, int bin)"""
3885 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3887 def SetPrintMode(*args
, **kwargs
):
3888 """SetPrintMode(self, int printMode)"""
3889 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3891 def GetFilename(*args
, **kwargs
):
3892 """GetFilename(self) -> String"""
3893 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3895 def SetFilename(*args
, **kwargs
):
3896 """SetFilename(self, String filename)"""
3897 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3899 def __nonzero__(self
): return self
.Ok()
3900 def GetPrivData(*args
, **kwargs
):
3901 """GetPrivData(self) -> PyObject"""
3902 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
3904 def SetPrivData(*args
, **kwargs
):
3905 """SetPrivData(self, PyObject data)"""
3906 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
3908 _windows_
.PrintData_swigregister(PrintData
)
3909 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3910 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3912 class PageSetupDialogData(_core
.Object
):
3913 """Proxy of C++ PageSetupDialogData class"""
3914 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3915 __repr__
= _swig_repr
3916 def __init__(self
, *args
):
3918 __init__(self) -> PageSetupDialogData
3919 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3920 __init__(self, PrintData data) -> PageSetupDialogData
3922 _windows_
.PageSetupDialogData_swiginit(self
,_windows_
.new_PageSetupDialogData(*args
))
3923 __swig_destroy__
= _windows_
.delete_PageSetupDialogData
3924 __del__
= lambda self
: None;
3925 def EnableHelp(*args
, **kwargs
):
3926 """EnableHelp(self, bool flag)"""
3927 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3929 def EnableMargins(*args
, **kwargs
):
3930 """EnableMargins(self, bool flag)"""
3931 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3933 def EnableOrientation(*args
, **kwargs
):
3934 """EnableOrientation(self, bool flag)"""
3935 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3937 def EnablePaper(*args
, **kwargs
):
3938 """EnablePaper(self, bool flag)"""
3939 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3941 def EnablePrinter(*args
, **kwargs
):
3942 """EnablePrinter(self, bool flag)"""
3943 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3945 def GetDefaultMinMargins(*args
, **kwargs
):
3946 """GetDefaultMinMargins(self) -> bool"""
3947 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3949 def GetEnableMargins(*args
, **kwargs
):
3950 """GetEnableMargins(self) -> bool"""
3951 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3953 def GetEnableOrientation(*args
, **kwargs
):
3954 """GetEnableOrientation(self) -> bool"""
3955 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3957 def GetEnablePaper(*args
, **kwargs
):
3958 """GetEnablePaper(self) -> bool"""
3959 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3961 def GetEnablePrinter(*args
, **kwargs
):
3962 """GetEnablePrinter(self) -> bool"""
3963 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3965 def GetEnableHelp(*args
, **kwargs
):
3966 """GetEnableHelp(self) -> bool"""
3967 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3969 def GetDefaultInfo(*args
, **kwargs
):
3970 """GetDefaultInfo(self) -> bool"""
3971 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3973 def GetMarginTopLeft(*args
, **kwargs
):
3974 """GetMarginTopLeft(self) -> Point"""
3975 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3977 def GetMarginBottomRight(*args
, **kwargs
):
3978 """GetMarginBottomRight(self) -> Point"""
3979 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3981 def GetMinMarginTopLeft(*args
, **kwargs
):
3982 """GetMinMarginTopLeft(self) -> Point"""
3983 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3985 def GetMinMarginBottomRight(*args
, **kwargs
):
3986 """GetMinMarginBottomRight(self) -> Point"""
3987 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3989 def GetPaperId(*args
, **kwargs
):
3990 """GetPaperId(self) -> int"""
3991 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3993 def GetPaperSize(*args
, **kwargs
):
3994 """GetPaperSize(self) -> Size"""
3995 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3997 def GetPrintData(*args
, **kwargs
):
3998 """GetPrintData(self) -> PrintData"""
3999 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4001 def Ok(*args
, **kwargs
):
4002 """Ok(self) -> bool"""
4003 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4005 def SetDefaultInfo(*args
, **kwargs
):
4006 """SetDefaultInfo(self, bool flag)"""
4007 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4009 def SetDefaultMinMargins(*args
, **kwargs
):
4010 """SetDefaultMinMargins(self, bool flag)"""
4011 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4013 def SetMarginTopLeft(*args
, **kwargs
):
4014 """SetMarginTopLeft(self, Point pt)"""
4015 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4017 def SetMarginBottomRight(*args
, **kwargs
):
4018 """SetMarginBottomRight(self, Point pt)"""
4019 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4021 def SetMinMarginTopLeft(*args
, **kwargs
):
4022 """SetMinMarginTopLeft(self, Point pt)"""
4023 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4025 def SetMinMarginBottomRight(*args
, **kwargs
):
4026 """SetMinMarginBottomRight(self, Point pt)"""
4027 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4029 def SetPaperId(*args
, **kwargs
):
4030 """SetPaperId(self, int id)"""
4031 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4033 def SetPaperSize(*args
, **kwargs
):
4034 """SetPaperSize(self, Size size)"""
4035 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4037 def SetPrintData(*args
, **kwargs
):
4038 """SetPrintData(self, PrintData printData)"""
4039 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4041 def CalculateIdFromPaperSize(*args
, **kwargs
):
4042 """CalculateIdFromPaperSize(self)"""
4043 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
4045 def CalculatePaperSizeFromId(*args
, **kwargs
):
4046 """CalculatePaperSizeFromId(self)"""
4047 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
4049 def __nonzero__(self
): return self
.Ok()
4050 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogData
)
4052 class PageSetupDialog(_core
.Object
):
4053 """Proxy of C++ PageSetupDialog class"""
4054 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4055 __repr__
= _swig_repr
4056 def __init__(self
, *args
, **kwargs
):
4057 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4058 _windows_
.PageSetupDialog_swiginit(self
,_windows_
.new_PageSetupDialog(*args
, **kwargs
))
4059 __swig_destroy__
= _windows_
.delete_PageSetupDialog
4060 __del__
= lambda self
: None;
4061 def GetPageSetupData(*args
, **kwargs
):
4062 """GetPageSetupData(self) -> PageSetupDialogData"""
4063 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4065 def GetPageSetupDialogData(*args
, **kwargs
):
4066 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4067 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4069 def ShowModal(*args
, **kwargs
):
4070 """ShowModal(self) -> int"""
4071 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4073 def Destroy(self
): pass
4074 _windows_
.PageSetupDialog_swigregister(PageSetupDialog
)
4076 class PrintDialogData(_core
.Object
):
4077 """Proxy of C++ PrintDialogData class"""
4078 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4079 __repr__
= _swig_repr
4080 def __init__(self
, *args
):
4082 __init__(self) -> PrintDialogData
4083 __init__(self, PrintData printData) -> PrintDialogData
4084 __init__(self, PrintDialogData printData) -> PrintDialogData
4086 _windows_
.PrintDialogData_swiginit(self
,_windows_
.new_PrintDialogData(*args
))
4087 __swig_destroy__
= _windows_
.delete_PrintDialogData
4088 __del__
= lambda self
: None;
4089 def GetFromPage(*args
, **kwargs
):
4090 """GetFromPage(self) -> int"""
4091 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4093 def GetToPage(*args
, **kwargs
):
4094 """GetToPage(self) -> int"""
4095 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4097 def GetMinPage(*args
, **kwargs
):
4098 """GetMinPage(self) -> int"""
4099 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4101 def GetMaxPage(*args
, **kwargs
):
4102 """GetMaxPage(self) -> int"""
4103 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4105 def GetNoCopies(*args
, **kwargs
):
4106 """GetNoCopies(self) -> int"""
4107 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4109 def GetAllPages(*args
, **kwargs
):
4110 """GetAllPages(self) -> bool"""
4111 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4113 def GetSelection(*args
, **kwargs
):
4114 """GetSelection(self) -> bool"""
4115 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4117 def GetCollate(*args
, **kwargs
):
4118 """GetCollate(self) -> bool"""
4119 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4121 def GetPrintToFile(*args
, **kwargs
):
4122 """GetPrintToFile(self) -> bool"""
4123 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4125 def SetFromPage(*args
, **kwargs
):
4126 """SetFromPage(self, int v)"""
4127 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4129 def SetToPage(*args
, **kwargs
):
4130 """SetToPage(self, int v)"""
4131 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4133 def SetMinPage(*args
, **kwargs
):
4134 """SetMinPage(self, int v)"""
4135 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4137 def SetMaxPage(*args
, **kwargs
):
4138 """SetMaxPage(self, int v)"""
4139 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4141 def SetNoCopies(*args
, **kwargs
):
4142 """SetNoCopies(self, int v)"""
4143 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4145 def SetAllPages(*args
, **kwargs
):
4146 """SetAllPages(self, bool flag)"""
4147 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4149 def SetSelection(*args
, **kwargs
):
4150 """SetSelection(self, bool flag)"""
4151 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4153 def SetCollate(*args
, **kwargs
):
4154 """SetCollate(self, bool flag)"""
4155 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4157 def SetPrintToFile(*args
, **kwargs
):
4158 """SetPrintToFile(self, bool flag)"""
4159 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4161 def EnablePrintToFile(*args
, **kwargs
):
4162 """EnablePrintToFile(self, bool flag)"""
4163 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4165 def EnableSelection(*args
, **kwargs
):
4166 """EnableSelection(self, bool flag)"""
4167 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4169 def EnablePageNumbers(*args
, **kwargs
):
4170 """EnablePageNumbers(self, bool flag)"""
4171 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4173 def EnableHelp(*args
, **kwargs
):
4174 """EnableHelp(self, bool flag)"""
4175 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4177 def GetEnablePrintToFile(*args
, **kwargs
):
4178 """GetEnablePrintToFile(self) -> bool"""
4179 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4181 def GetEnableSelection(*args
, **kwargs
):
4182 """GetEnableSelection(self) -> bool"""
4183 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4185 def GetEnablePageNumbers(*args
, **kwargs
):
4186 """GetEnablePageNumbers(self) -> bool"""
4187 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4189 def GetEnableHelp(*args
, **kwargs
):
4190 """GetEnableHelp(self) -> bool"""
4191 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4193 def Ok(*args
, **kwargs
):
4194 """Ok(self) -> bool"""
4195 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4197 def GetPrintData(*args
, **kwargs
):
4198 """GetPrintData(self) -> PrintData"""
4199 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4201 def SetPrintData(*args
, **kwargs
):
4202 """SetPrintData(self, PrintData printData)"""
4203 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4205 def __nonzero__(self
): return self
.Ok()
4206 _windows_
.PrintDialogData_swigregister(PrintDialogData
)
4208 class PrintDialog(_core
.Object
):
4209 """Proxy of C++ PrintDialog class"""
4210 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4211 __repr__
= _swig_repr
4212 def __init__(self
, *args
, **kwargs
):
4213 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4214 _windows_
.PrintDialog_swiginit(self
,_windows_
.new_PrintDialog(*args
, **kwargs
))
4215 __swig_destroy__
= _windows_
.delete_PrintDialog
4216 __del__
= lambda self
: None;
4217 def ShowModal(*args
, **kwargs
):
4218 """ShowModal(self) -> int"""
4219 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4221 def GetPrintDialogData(*args
, **kwargs
):
4222 """GetPrintDialogData(self) -> PrintDialogData"""
4223 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4225 def GetPrintData(*args
, **kwargs
):
4226 """GetPrintData(self) -> PrintData"""
4227 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4229 def GetPrintDC(*args
, **kwargs
):
4230 """GetPrintDC(self) -> DC"""
4231 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4233 def Destroy(self
): pass
4234 _windows_
.PrintDialog_swigregister(PrintDialog
)
4236 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4237 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4238 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4239 class Printer(_core
.Object
):
4240 """Proxy of C++ Printer class"""
4241 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4242 __repr__
= _swig_repr
4243 def __init__(self
, *args
, **kwargs
):
4244 """__init__(self, PrintDialogData data=None) -> Printer"""
4245 _windows_
.Printer_swiginit(self
,_windows_
.new_Printer(*args
, **kwargs
))
4246 __swig_destroy__
= _windows_
.delete_Printer
4247 __del__
= lambda self
: None;
4248 def CreateAbortWindow(*args
, **kwargs
):
4249 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4250 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4252 def ReportError(*args
, **kwargs
):
4253 """ReportError(self, Window parent, Printout printout, String message)"""
4254 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4256 def Setup(*args
, **kwargs
):
4257 """Setup(self, Window parent) -> bool"""
4258 return _windows_
.Printer_Setup(*args
, **kwargs
)
4260 def Print(*args
, **kwargs
):
4261 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4262 return _windows_
.Printer_Print(*args
, **kwargs
)
4264 def PrintDialog(*args
, **kwargs
):
4265 """PrintDialog(self, Window parent) -> DC"""
4266 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4268 def GetPrintDialogData(*args
, **kwargs
):
4269 """GetPrintDialogData(self) -> PrintDialogData"""
4270 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4272 def GetAbort(*args
, **kwargs
):
4273 """GetAbort(self) -> bool"""
4274 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4276 def GetLastError(*args
, **kwargs
):
4277 """GetLastError() -> int"""
4278 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4280 GetLastError
= staticmethod(GetLastError
)
4281 _windows_
.Printer_swigregister(Printer
)
4283 def Printer_GetLastError(*args
):
4284 """Printer_GetLastError() -> int"""
4285 return _windows_
.Printer_GetLastError(*args
)
4287 class Printout(_core
.Object
):
4288 """Proxy of C++ Printout class"""
4289 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4290 __repr__
= _swig_repr
4291 def __init__(self
, *args
, **kwargs
):
4292 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4293 _windows_
.Printout_swiginit(self
,_windows_
.new_Printout(*args
, **kwargs
))
4294 self
._setCallbackInfo
(self
, Printout
)
4296 __swig_destroy__
= _windows_
.delete_Printout
4297 __del__
= lambda self
: None;
4298 def _setCallbackInfo(*args
, **kwargs
):
4299 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4300 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4302 def GetTitle(*args
, **kwargs
):
4303 """GetTitle(self) -> String"""
4304 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4306 def GetDC(*args
, **kwargs
):
4307 """GetDC(self) -> DC"""
4308 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4310 def SetDC(*args
, **kwargs
):
4311 """SetDC(self, DC dc)"""
4312 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4314 def SetPageSizePixels(*args
, **kwargs
):
4315 """SetPageSizePixels(self, int w, int h)"""
4316 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4318 def GetPageSizePixels(*args
, **kwargs
):
4319 """GetPageSizePixels() -> (w, h)"""
4320 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4322 def SetPageSizeMM(*args
, **kwargs
):
4323 """SetPageSizeMM(self, int w, int h)"""
4324 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4326 def GetPageSizeMM(*args
, **kwargs
):
4327 """GetPageSizeMM() -> (w, h)"""
4328 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4330 def SetPPIScreen(*args
, **kwargs
):
4331 """SetPPIScreen(self, int x, int y)"""
4332 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4334 def GetPPIScreen(*args
, **kwargs
):
4335 """GetPPIScreen() -> (x,y)"""
4336 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4338 def SetPPIPrinter(*args
, **kwargs
):
4339 """SetPPIPrinter(self, int x, int y)"""
4340 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4342 def GetPPIPrinter(*args
, **kwargs
):
4343 """GetPPIPrinter() -> (x,y)"""
4344 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4346 def IsPreview(*args
, **kwargs
):
4347 """IsPreview(self) -> bool"""
4348 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4350 def SetIsPreview(*args
, **kwargs
):
4351 """SetIsPreview(self, bool p)"""
4352 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4354 def OnBeginDocument(*args
, **kwargs
):
4355 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4356 return _windows_
.Printout_OnBeginDocument(*args
, **kwargs
)
4358 def OnEndDocument(*args
, **kwargs
):
4359 """OnEndDocument(self)"""
4360 return _windows_
.Printout_OnEndDocument(*args
, **kwargs
)
4362 def OnBeginPrinting(*args
, **kwargs
):
4363 """OnBeginPrinting(self)"""
4364 return _windows_
.Printout_OnBeginPrinting(*args
, **kwargs
)
4366 def OnEndPrinting(*args
, **kwargs
):
4367 """OnEndPrinting(self)"""
4368 return _windows_
.Printout_OnEndPrinting(*args
, **kwargs
)
4370 def OnPreparePrinting(*args
, **kwargs
):
4371 """OnPreparePrinting(self)"""
4372 return _windows_
.Printout_OnPreparePrinting(*args
, **kwargs
)
4374 def HasPage(*args
, **kwargs
):
4375 """HasPage(self, int page) -> bool"""
4376 return _windows_
.Printout_HasPage(*args
, **kwargs
)
4378 def GetPageInfo(*args
, **kwargs
):
4379 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4380 return _windows_
.Printout_GetPageInfo(*args
, **kwargs
)
4382 def base_OnBeginDocument(*args
, **kw
):
4383 return Printout
.OnBeginDocument(*args
, **kw
)
4384 base_OnBeginDocument
= wx
._deprecated
(base_OnBeginDocument
,
4385 "Please use Printout.OnBeginDocument instead.")
4387 def base_OnEndDocument(*args
, **kw
):
4388 return Printout
.OnEndDocument(*args
, **kw
)
4389 base_OnEndDocument
= wx
._deprecated
(base_OnEndDocument
,
4390 "Please use Printout.OnEndDocument instead.")
4392 def base_OnBeginPrinting(*args
, **kw
):
4393 return Printout
.OnBeginPrinting(*args
, **kw
)
4394 base_OnBeginPrinting
= wx
._deprecated
(base_OnBeginPrinting
,
4395 "Please use Printout.OnBeginPrinting instead.")
4397 def base_OnEndPrinting(*args
, **kw
):
4398 return Printout
.OnEndPrinting(*args
, **kw
)
4399 base_OnEndPrinting
= wx
._deprecated
(base_OnEndPrinting
,
4400 "Please use Printout.OnEndPrinting instead.")
4402 def base_OnPreparePrinting(*args
, **kw
):
4403 return Printout
.OnPreparePrinting(*args
, **kw
)
4404 base_OnPreparePrinting
= wx
._deprecated
(base_OnPreparePrinting
,
4405 "Please use Printout.OnPreparePrinting instead.")
4407 def base_GetPageInfo(*args
, **kw
):
4408 return Printout
.GetPageInfo(*args
, **kw
)
4409 base_GetPageInfo
= wx
._deprecated
(base_GetPageInfo
,
4410 "Please use Printout.GetPageInfo instead.")
4412 _windows_
.Printout_swigregister(Printout
)
4414 class PreviewCanvas(ScrolledWindow
):
4415 """Proxy of C++ PreviewCanvas class"""
4416 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4417 __repr__
= _swig_repr
4418 def __init__(self
, *args
, **kwargs
):
4420 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4421 Size size=DefaultSize, long style=0,
4422 String name=PreviewCanvasNameStr) -> PreviewCanvas
4424 _windows_
.PreviewCanvas_swiginit(self
,_windows_
.new_PreviewCanvas(*args
, **kwargs
))
4425 self
._setOORInfo
(self
)
4427 _windows_
.PreviewCanvas_swigregister(PreviewCanvas
)
4429 class PreviewFrame(Frame
):
4430 """Proxy of C++ PreviewFrame class"""
4431 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4432 __repr__
= _swig_repr
4433 def __init__(self
, *args
, **kwargs
):
4435 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4436 Size size=DefaultSize,
4437 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4439 _windows_
.PreviewFrame_swiginit(self
,_windows_
.new_PreviewFrame(*args
, **kwargs
))
4440 self
._setOORInfo
(self
)
4442 def Initialize(*args
, **kwargs
):
4443 """Initialize(self)"""
4444 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4446 def CreateControlBar(*args
, **kwargs
):
4447 """CreateControlBar(self)"""
4448 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4450 def CreateCanvas(*args
, **kwargs
):
4451 """CreateCanvas(self)"""
4452 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4454 def GetControlBar(*args
, **kwargs
):
4455 """GetControlBar(self) -> PreviewControlBar"""
4456 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4458 _windows_
.PreviewFrame_swigregister(PreviewFrame
)
4460 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4461 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4462 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4463 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4464 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4465 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4466 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4467 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4468 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4469 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4470 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4471 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4472 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4473 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4474 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4475 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4476 class PreviewControlBar(Panel
):
4477 """Proxy of C++ PreviewControlBar class"""
4478 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4479 __repr__
= _swig_repr
4480 def __init__(self
, *args
, **kwargs
):
4482 __init__(self, PrintPreview preview, long buttons, Window parent,
4483 Point pos=DefaultPosition, Size size=DefaultSize,
4484 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4486 _windows_
.PreviewControlBar_swiginit(self
,_windows_
.new_PreviewControlBar(*args
, **kwargs
))
4487 self
._setOORInfo
(self
)
4489 def GetZoomControl(*args
, **kwargs
):
4490 """GetZoomControl(self) -> int"""
4491 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4493 def SetZoomControl(*args
, **kwargs
):
4494 """SetZoomControl(self, int zoom)"""
4495 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4497 def GetPrintPreview(*args
, **kwargs
):
4498 """GetPrintPreview(self) -> PrintPreview"""
4499 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4501 def OnNext(*args
, **kwargs
):
4503 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4505 def OnPrevious(*args
, **kwargs
):
4506 """OnPrevious(self)"""
4507 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4509 def OnFirst(*args
, **kwargs
):
4511 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4513 def OnLast(*args
, **kwargs
):
4515 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4517 def OnGoto(*args
, **kwargs
):
4519 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4521 _windows_
.PreviewControlBar_swigregister(PreviewControlBar
)
4523 class PrintPreview(_core
.Object
):
4524 """Proxy of C++ PrintPreview class"""
4525 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4526 __repr__
= _swig_repr
4527 def __init__(self
, *args
):
4529 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4530 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4532 _windows_
.PrintPreview_swiginit(self
,_windows_
.new_PrintPreview(*args
))
4533 __swig_destroy__
= _windows_
.delete_PrintPreview
4534 __del__
= lambda self
: None;
4535 def SetCurrentPage(*args
, **kwargs
):
4536 """SetCurrentPage(self, int pageNum) -> bool"""
4537 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4539 def GetCurrentPage(*args
, **kwargs
):
4540 """GetCurrentPage(self) -> int"""
4541 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4543 def SetPrintout(*args
, **kwargs
):
4544 """SetPrintout(self, Printout printout)"""
4545 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4547 def GetPrintout(*args
, **kwargs
):
4548 """GetPrintout(self) -> Printout"""
4549 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4551 def GetPrintoutForPrinting(*args
, **kwargs
):
4552 """GetPrintoutForPrinting(self) -> Printout"""
4553 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4555 def SetFrame(*args
, **kwargs
):
4556 """SetFrame(self, Frame frame)"""
4557 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4559 def SetCanvas(*args
, **kwargs
):
4560 """SetCanvas(self, PreviewCanvas canvas)"""
4561 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4563 def GetFrame(*args
, **kwargs
):
4564 """GetFrame(self) -> Frame"""
4565 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4567 def GetCanvas(*args
, **kwargs
):
4568 """GetCanvas(self) -> PreviewCanvas"""
4569 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4571 def PaintPage(*args
, **kwargs
):
4572 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4573 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4575 def DrawBlankPage(*args
, **kwargs
):
4576 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4577 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4579 def RenderPage(*args
, **kwargs
):
4580 """RenderPage(self, int pageNum) -> bool"""
4581 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4583 def AdjustScrollbars(*args
, **kwargs
):
4584 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4585 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4587 def GetPrintDialogData(*args
, **kwargs
):
4588 """GetPrintDialogData(self) -> PrintDialogData"""
4589 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4591 def SetZoom(*args
, **kwargs
):
4592 """SetZoom(self, int percent)"""
4593 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4595 def GetZoom(*args
, **kwargs
):
4596 """GetZoom(self) -> int"""
4597 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4599 def GetMaxPage(*args
, **kwargs
):
4600 """GetMaxPage(self) -> int"""
4601 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4603 def GetMinPage(*args
, **kwargs
):
4604 """GetMinPage(self) -> int"""
4605 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4607 def Ok(*args
, **kwargs
):
4608 """Ok(self) -> bool"""
4609 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4611 def SetOk(*args
, **kwargs
):
4612 """SetOk(self, bool ok)"""
4613 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4615 def Print(*args
, **kwargs
):
4616 """Print(self, bool interactive) -> bool"""
4617 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4619 def DetermineScaling(*args
, **kwargs
):
4620 """DetermineScaling(self)"""
4621 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4623 def __nonzero__(self
): return self
.Ok()
4624 _windows_
.PrintPreview_swigregister(PrintPreview
)
4626 class PyPrintPreview(PrintPreview
):
4627 """Proxy of C++ PyPrintPreview class"""
4628 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4629 __repr__
= _swig_repr
4630 def __init__(self
, *args
):
4632 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4633 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4635 _windows_
.PyPrintPreview_swiginit(self
,_windows_
.new_PyPrintPreview(*args
))
4636 self
._setCallbackInfo
(self
, PyPrintPreview
)
4638 def _setCallbackInfo(*args
, **kwargs
):
4639 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4640 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4642 def base_SetCurrentPage(*args
, **kw
):
4643 return PyPrintPreview
.SetCurrentPage(*args
, **kw
)
4644 base_SetCurrentPage
= wx
._deprecated
(base_SetCurrentPage
,
4645 "Please use PyPrintPreview.SetCurrentPage instead.")
4647 def base_PaintPage(*args
, **kw
):
4648 return PyPrintPreview
.PaintPage(*args
, **kw
)
4649 base_PaintPage
= wx
._deprecated
(base_PaintPage
,
4650 "Please use PyPrintPreview.PaintPage instead.")
4652 def base_DrawBlankPage(*args
, **kw
):
4653 return PyPrintPreview
.DrawBlankPage(*args
, **kw
)
4654 base_DrawBlankPage
= wx
._deprecated
(base_DrawBlankPage
,
4655 "Please use PyPrintPreview.DrawBlankPage instead.")
4657 def base_RenderPage(*args
, **kw
):
4658 return PyPrintPreview
.RenderPage(*args
, **kw
)
4659 base_RenderPage
= wx
._deprecated
(base_RenderPage
,
4660 "Please use PyPrintPreview.RenderPage instead.")
4662 def base_SetZoom(*args
, **kw
):
4663 return PyPrintPreview
.SetZoom(*args
, **kw
)
4664 base_SetZoom
= wx
._deprecated
(base_SetZoom
,
4665 "Please use PyPrintPreview.SetZoom instead.")
4667 def base_Print(*args
, **kw
):
4668 return PyPrintPreview
.Print(*args
, **kw
)
4669 base_Print
= wx
._deprecated
(base_Print
,
4670 "Please use PyPrintPreview.Print instead.")
4672 def base_DetermineScaling(*args
, **kw
):
4673 return PyPrintPreview
.DetermineScaling(*args
, **kw
)
4674 base_DetermineScaling
= wx
._deprecated
(base_DetermineScaling
,
4675 "Please use PyPrintPreview.DetermineScaling instead.")
4677 _windows_
.PyPrintPreview_swigregister(PyPrintPreview
)
4679 class PyPreviewFrame(PreviewFrame
):
4680 """Proxy of C++ PyPreviewFrame class"""
4681 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4682 __repr__
= _swig_repr
4683 def __init__(self
, *args
, **kwargs
):
4685 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4686 Size size=DefaultSize,
4687 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4689 _windows_
.PyPreviewFrame_swiginit(self
,_windows_
.new_PyPreviewFrame(*args
, **kwargs
))
4690 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4692 def _setCallbackInfo(*args
, **kwargs
):
4693 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4694 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4696 def SetPreviewCanvas(*args
, **kwargs
):
4697 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4698 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4700 def SetControlBar(*args
, **kwargs
):
4701 """SetControlBar(self, PreviewControlBar bar)"""
4702 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4704 def Initialize(*args
, **kwargs
):
4705 """Initialize(self)"""
4706 return _windows_
.PyPreviewFrame_Initialize(*args
, **kwargs
)
4708 def CreateCanvas(*args
, **kwargs
):
4709 """CreateCanvas(self)"""
4710 return _windows_
.PyPreviewFrame_CreateCanvas(*args
, **kwargs
)
4712 def CreateControlBar(*args
, **kwargs
):
4713 """CreateControlBar(self)"""
4714 return _windows_
.PyPreviewFrame_CreateControlBar(*args
, **kwargs
)
4716 def base_Initialize(*args
, **kw
):
4717 return PyPreviewFrame
.Initialize(*args
, **kw
)
4718 base_Initialize
= wx
._deprecated
(base_Initialize
,
4719 "Please use PyPreviewFrame.Initialize instead.")
4721 def base_CreateCanvas(*args
, **kw
):
4722 return PyPreviewFrame
.CreateCanvas(*args
, **kw
)
4723 base_CreateCanvas
= wx
._deprecated
(base_CreateCanvas
,
4724 "Please use PyPreviewFrame.CreateCanvas instead.")
4726 def base_CreateControlBar(*args
, **kw
):
4727 return PyPreviewFrame
.CreateControlBar(*args
, **kw
)
4728 base_CreateControlBar
= wx
._deprecated
(base_CreateControlBar
,
4729 "Please use PyPreviewFrame.CreateControlBar instead.")
4731 _windows_
.PyPreviewFrame_swigregister(PyPreviewFrame
)
4733 class PyPreviewControlBar(PreviewControlBar
):
4734 """Proxy of C++ PyPreviewControlBar class"""
4735 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4736 __repr__
= _swig_repr
4737 def __init__(self
, *args
, **kwargs
):
4739 __init__(self, PrintPreview preview, long buttons, Window parent,
4740 Point pos=DefaultPosition, Size size=DefaultSize,
4741 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4743 _windows_
.PyPreviewControlBar_swiginit(self
,_windows_
.new_PyPreviewControlBar(*args
, **kwargs
))
4744 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4746 def _setCallbackInfo(*args
, **kwargs
):
4747 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4748 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4750 def SetPrintPreview(*args
, **kwargs
):
4751 """SetPrintPreview(self, PrintPreview preview)"""
4752 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4754 def CreateButtons(*args
, **kwargs
):
4755 """CreateButtons(self)"""
4756 return _windows_
.PyPreviewControlBar_CreateButtons(*args
, **kwargs
)
4758 def SetZoomControl(*args
, **kwargs
):
4759 """SetZoomControl(self, int zoom)"""
4760 return _windows_
.PyPreviewControlBar_SetZoomControl(*args
, **kwargs
)
4762 def base_CreateButtons(*args
, **kw
):
4763 return PreviewControlBar
.CreateButtons(*args
, **kw
)
4764 base_CreateButtons
= wx
._deprecated
(base_CreateButtons
,
4765 "Please use PreviewControlBar.CreateButtons instead.")
4767 def base_SetZoomControl(*args
, **kw
):
4768 return PreviewControlBar
.SetZoomControl(*args
, **kw
)
4769 base_SetZoomControl
= wx
._deprecated
(base_SetZoomControl
,
4770 "Please use PreviewControlBar.SetZoomControl instead.")
4772 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBar
)