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 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
332 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
333 USER_COLOURS
= _windows_
.USER_COLOURS
334 NO_3D
= _windows_
.NO_3D
335 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
336 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
337 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
338 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
339 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
340 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
341 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
342 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
343 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
344 class TopLevelWindow(_core
.Window
):
345 """Proxy of C++ TopLevelWindow class"""
346 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
347 def __init__(self
): raise AttributeError, "No constructor defined"
348 __repr__
= _swig_repr
349 def Maximize(*args
, **kwargs
):
350 """Maximize(self, bool maximize=True)"""
351 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
353 def Restore(*args
, **kwargs
):
355 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
357 def Iconize(*args
, **kwargs
):
358 """Iconize(self, bool iconize=True)"""
359 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
361 def IsMaximized(*args
, **kwargs
):
362 """IsMaximized(self) -> bool"""
363 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
365 def IsAlwaysMaximized(*args
, **kwargs
):
366 """IsAlwaysMaximized(self) -> bool"""
367 return _windows_
.TopLevelWindow_IsAlwaysMaximized(*args
, **kwargs
)
369 def IsIconized(*args
, **kwargs
):
370 """IsIconized(self) -> bool"""
371 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
373 def GetIcon(*args
, **kwargs
):
374 """GetIcon(self) -> Icon"""
375 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
377 def SetIcon(*args
, **kwargs
):
378 """SetIcon(self, Icon icon)"""
379 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
381 def SetIcons(*args
, **kwargs
):
382 """SetIcons(self, wxIconBundle icons)"""
383 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
385 def ShowFullScreen(*args
, **kwargs
):
386 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
387 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
389 def IsFullScreen(*args
, **kwargs
):
390 """IsFullScreen(self) -> bool"""
391 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
393 def SetTitle(*args
, **kwargs
):
394 """SetTitle(self, String title)"""
395 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
397 def GetTitle(*args
, **kwargs
):
398 """GetTitle(self) -> String"""
399 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
401 def SetShape(*args
, **kwargs
):
402 """SetShape(self, Region region) -> bool"""
403 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
405 def RequestUserAttention(*args
, **kwargs
):
406 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
407 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
409 def IsActive(*args
, **kwargs
):
410 """IsActive(self) -> bool"""
411 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
413 def MacSetMetalAppearance(*args
, **kwargs
):
414 """MacSetMetalAppearance(self, bool on)"""
415 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
417 def MacGetMetalAppearance(*args
, **kwargs
):
418 """MacGetMetalAppearance(self) -> bool"""
419 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
421 def CenterOnScreen(*args
, **kwargs
):
423 CenterOnScreen(self, int dir=BOTH)
425 Center the window on screen
427 return _windows_
.TopLevelWindow_CenterOnScreen(*args
, **kwargs
)
429 CentreOnScreen
= CenterOnScreen
430 _windows_
.TopLevelWindow_swigregister(TopLevelWindow
)
431 cvar
= _windows_
.cvar
432 FrameNameStr
= cvar
.FrameNameStr
433 DialogNameStr
= cvar
.DialogNameStr
434 StatusLineNameStr
= cvar
.StatusLineNameStr
435 ToolBarNameStr
= cvar
.ToolBarNameStr
437 #---------------------------------------------------------------------------
439 class Frame(TopLevelWindow
):
440 """Proxy of C++ Frame class"""
441 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
442 __repr__
= _swig_repr
443 def __init__(self
, *args
, **kwargs
):
445 __init__(self, Window parent, int id=-1, String title=EmptyString,
446 Point pos=DefaultPosition, Size size=DefaultSize,
447 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
449 _windows_
.Frame_swiginit(self
,_windows_
.new_Frame(*args
, **kwargs
))
450 self
._setOORInfo
(self
)
452 def Create(*args
, **kwargs
):
454 Create(self, Window parent, int id=-1, String title=EmptyString,
455 Point pos=DefaultPosition, Size size=DefaultSize,
456 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
458 return _windows_
.Frame_Create(*args
, **kwargs
)
460 def SendSizeEvent(*args
, **kwargs
):
461 """SendSizeEvent(self)"""
462 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
464 def SetMenuBar(*args
, **kwargs
):
465 """SetMenuBar(self, MenuBar menubar)"""
466 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
468 def GetMenuBar(*args
, **kwargs
):
469 """GetMenuBar(self) -> MenuBar"""
470 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
472 def ProcessCommand(*args
, **kwargs
):
473 """ProcessCommand(self, int winid) -> bool"""
474 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
476 Command
= ProcessCommand
477 def CreateStatusBar(*args
, **kwargs
):
479 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
480 String name=StatusLineNameStr) -> StatusBar
482 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
484 def GetStatusBar(*args
, **kwargs
):
485 """GetStatusBar(self) -> StatusBar"""
486 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
488 def SetStatusBar(*args
, **kwargs
):
489 """SetStatusBar(self, StatusBar statBar)"""
490 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
492 def SetStatusText(*args
, **kwargs
):
493 """SetStatusText(self, String text, int number=0)"""
494 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
496 def SetStatusWidths(*args
, **kwargs
):
497 """SetStatusWidths(self, int widths)"""
498 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
500 def PushStatusText(*args
, **kwargs
):
501 """PushStatusText(self, String text, int number=0)"""
502 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
504 def PopStatusText(*args
, **kwargs
):
505 """PopStatusText(self, int number=0)"""
506 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
508 def SetStatusBarPane(*args
, **kwargs
):
509 """SetStatusBarPane(self, int n)"""
510 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
512 def GetStatusBarPane(*args
, **kwargs
):
513 """GetStatusBarPane(self) -> int"""
514 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
516 def CreateToolBar(*args
, **kwargs
):
517 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
518 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
520 def GetToolBar(*args
, **kwargs
):
521 """GetToolBar(self) -> wxToolBar"""
522 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
524 def SetToolBar(*args
, **kwargs
):
525 """SetToolBar(self, wxToolBar toolbar)"""
526 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
528 def DoGiveHelp(*args
, **kwargs
):
529 """DoGiveHelp(self, String text, bool show)"""
530 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
532 def DoMenuUpdates(*args
, **kwargs
):
533 """DoMenuUpdates(self, Menu menu=None)"""
534 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
536 def GetClassDefaultAttributes(*args
, **kwargs
):
538 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
540 Get the default attributes for this class. This is useful if you want
541 to use the same font or colour in your own control as in a standard
542 control -- which is a much better idea than hard coding specific
543 colours or fonts which might look completely out of place on the
544 user's system, especially if it uses themes.
546 The variant parameter is only relevant under Mac currently and is
547 ignore under other platforms. Under Mac, it will change the size of
548 the returned font. See `wx.Window.SetWindowVariant` for more about
551 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
553 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
554 _windows_
.Frame_swigregister(Frame
)
556 def PreFrame(*args
, **kwargs
):
557 """PreFrame() -> Frame"""
558 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
561 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
563 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
565 Get the default attributes for this class. This is useful if you want
566 to use the same font or colour in your own control as in a standard
567 control -- which is a much better idea than hard coding specific
568 colours or fonts which might look completely out of place on the
569 user's system, especially if it uses themes.
571 The variant parameter is only relevant under Mac currently and is
572 ignore under other platforms. Under Mac, it will change the size of
573 the returned font. See `wx.Window.SetWindowVariant` for more about
576 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
578 #---------------------------------------------------------------------------
580 class Dialog(TopLevelWindow
):
581 """Proxy of C++ Dialog class"""
582 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
583 __repr__
= _swig_repr
584 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
585 def __init__(self
, *args
, **kwargs
):
587 __init__(self, Window parent, int id=-1, String title=EmptyString,
588 Point pos=DefaultPosition, Size size=DefaultSize,
589 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
591 _windows_
.Dialog_swiginit(self
,_windows_
.new_Dialog(*args
, **kwargs
))
592 self
._setOORInfo
(self
)
594 def Create(*args
, **kwargs
):
596 Create(self, Window parent, int id=-1, String title=EmptyString,
597 Point pos=DefaultPosition, Size size=DefaultSize,
598 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
600 return _windows_
.Dialog_Create(*args
, **kwargs
)
602 def SetReturnCode(*args
, **kwargs
):
603 """SetReturnCode(self, int returnCode)"""
604 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
606 def GetReturnCode(*args
, **kwargs
):
607 """GetReturnCode(self) -> int"""
608 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
610 def SetAffirmativeId(*args
, **kwargs
):
611 """SetAffirmativeId(self, int affirmativeId)"""
612 return _windows_
.Dialog_SetAffirmativeId(*args
, **kwargs
)
614 def GetAffirmativeId(*args
, **kwargs
):
615 """GetAffirmativeId(self) -> int"""
616 return _windows_
.Dialog_GetAffirmativeId(*args
, **kwargs
)
618 def SetEscapeId(*args
, **kwargs
):
619 """SetEscapeId(self, int escapeId)"""
620 return _windows_
.Dialog_SetEscapeId(*args
, **kwargs
)
622 def GetEscapeId(*args
, **kwargs
):
623 """GetEscapeId(self) -> int"""
624 return _windows_
.Dialog_GetEscapeId(*args
, **kwargs
)
626 def CreateTextSizer(*args
, **kwargs
):
627 """CreateTextSizer(self, String message) -> Sizer"""
628 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
630 def CreateButtonSizer(*args
, **kwargs
):
631 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
632 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
634 def CreateStdDialogButtonSizer(*args
, **kwargs
):
635 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
636 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
638 def IsModal(*args
, **kwargs
):
639 """IsModal(self) -> bool"""
640 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
642 def ShowModal(*args
, **kwargs
):
643 """ShowModal(self) -> int"""
644 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
646 def EndModal(*args
, **kwargs
):
647 """EndModal(self, int retCode)"""
648 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
650 def GetClassDefaultAttributes(*args
, **kwargs
):
652 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
654 Get the default attributes for this class. This is useful if you want
655 to use the same font or colour in your own control as in a standard
656 control -- which is a much better idea than hard coding specific
657 colours or fonts which might look completely out of place on the
658 user's system, especially if it uses themes.
660 The variant parameter is only relevant under Mac currently and is
661 ignore under other platforms. Under Mac, it will change the size of
662 the returned font. See `wx.Window.SetWindowVariant` for more about
665 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
667 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
668 _windows_
.Dialog_swigregister(Dialog
)
670 def PreDialog(*args
, **kwargs
):
671 """PreDialog() -> Dialog"""
672 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
675 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
677 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
679 Get the default attributes for this class. This is useful if you want
680 to use the same font or colour in your own control as in a standard
681 control -- which is a much better idea than hard coding specific
682 colours or fonts which might look completely out of place on the
683 user's system, especially if it uses themes.
685 The variant parameter is only relevant under Mac currently and is
686 ignore under other platforms. Under Mac, it will change the size of
687 the returned font. See `wx.Window.SetWindowVariant` for more about
690 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
692 #---------------------------------------------------------------------------
694 class MiniFrame(Frame
):
695 """Proxy of C++ MiniFrame class"""
696 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
697 __repr__
= _swig_repr
698 def __init__(self
, *args
, **kwargs
):
700 __init__(self, Window parent, int id=-1, String title=EmptyString,
701 Point pos=DefaultPosition, Size size=DefaultSize,
702 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
704 _windows_
.MiniFrame_swiginit(self
,_windows_
.new_MiniFrame(*args
, **kwargs
))
705 self
._setOORInfo
(self
)
707 def Create(*args
, **kwargs
):
709 Create(self, Window parent, int id=-1, String title=EmptyString,
710 Point pos=DefaultPosition, Size size=DefaultSize,
711 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
713 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
715 _windows_
.MiniFrame_swigregister(MiniFrame
)
717 def PreMiniFrame(*args
, **kwargs
):
718 """PreMiniFrame() -> MiniFrame"""
719 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
722 #---------------------------------------------------------------------------
724 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
725 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
726 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
727 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
728 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
729 class SplashScreenWindow(_core
.Window
):
730 """Proxy of C++ SplashScreenWindow class"""
731 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
732 __repr__
= _swig_repr
733 def __init__(self
, *args
, **kwargs
):
735 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
736 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
738 _windows_
.SplashScreenWindow_swiginit(self
,_windows_
.new_SplashScreenWindow(*args
, **kwargs
))
739 self
._setOORInfo
(self
)
741 def SetBitmap(*args
, **kwargs
):
742 """SetBitmap(self, Bitmap bitmap)"""
743 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
745 def GetBitmap(*args
, **kwargs
):
746 """GetBitmap(self) -> Bitmap"""
747 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
749 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindow
)
751 class SplashScreen(Frame
):
752 """Proxy of C++ SplashScreen class"""
753 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
754 __repr__
= _swig_repr
755 def __init__(self
, *args
, **kwargs
):
757 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
758 Window parent, int id=-1, Point pos=DefaultPosition,
759 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
761 _windows_
.SplashScreen_swiginit(self
,_windows_
.new_SplashScreen(*args
, **kwargs
))
762 self
._setOORInfo
(self
)
764 def GetSplashStyle(*args
, **kwargs
):
765 """GetSplashStyle(self) -> long"""
766 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
768 def GetSplashWindow(*args
, **kwargs
):
769 """GetSplashWindow(self) -> SplashScreenWindow"""
770 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
772 def GetTimeout(*args
, **kwargs
):
773 """GetTimeout(self) -> int"""
774 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
776 _windows_
.SplashScreen_swigregister(SplashScreen
)
778 #---------------------------------------------------------------------------
780 SB_NORMAL
= _windows_
.SB_NORMAL
781 SB_FLAT
= _windows_
.SB_FLAT
782 SB_RAISED
= _windows_
.SB_RAISED
783 class StatusBar(_core
.Window
):
784 """Proxy of C++ StatusBar class"""
785 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
786 __repr__
= _swig_repr
787 def __init__(self
, *args
, **kwargs
):
789 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
790 String name=StatusLineNameStr) -> StatusBar
792 _windows_
.StatusBar_swiginit(self
,_windows_
.new_StatusBar(*args
, **kwargs
))
793 self
._setOORInfo
(self
)
795 def Create(*args
, **kwargs
):
796 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
797 return _windows_
.StatusBar_Create(*args
, **kwargs
)
799 def SetFieldsCount(*args
, **kwargs
):
800 """SetFieldsCount(self, int number=1)"""
801 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
803 def GetFieldsCount(*args
, **kwargs
):
804 """GetFieldsCount(self) -> int"""
805 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
807 def SetStatusText(*args
, **kwargs
):
808 """SetStatusText(self, String text, int number=0)"""
809 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
811 def GetStatusText(*args
, **kwargs
):
812 """GetStatusText(self, int number=0) -> String"""
813 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
815 def PushStatusText(*args
, **kwargs
):
816 """PushStatusText(self, String text, int number=0)"""
817 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
819 def PopStatusText(*args
, **kwargs
):
820 """PopStatusText(self, int number=0)"""
821 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
823 def SetStatusWidths(*args
, **kwargs
):
824 """SetStatusWidths(self, int widths)"""
825 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
827 def SetStatusStyles(*args
, **kwargs
):
828 """SetStatusStyles(self, int styles)"""
829 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
831 def GetFieldRect(*args
, **kwargs
):
832 """GetFieldRect(self, int i) -> Rect"""
833 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
835 def SetMinHeight(*args
, **kwargs
):
836 """SetMinHeight(self, int height)"""
837 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
839 def GetBorderX(*args
, **kwargs
):
840 """GetBorderX(self) -> int"""
841 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
843 def GetBorderY(*args
, **kwargs
):
844 """GetBorderY(self) -> int"""
845 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
847 def GetClassDefaultAttributes(*args
, **kwargs
):
849 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
851 Get the default attributes for this class. This is useful if you want
852 to use the same font or colour in your own control as in a standard
853 control -- which is a much better idea than hard coding specific
854 colours or fonts which might look completely out of place on the
855 user's system, especially if it uses themes.
857 The variant parameter is only relevant under Mac currently and is
858 ignore under other platforms. Under Mac, it will change the size of
859 the returned font. See `wx.Window.SetWindowVariant` for more about
862 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
864 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
865 _windows_
.StatusBar_swigregister(StatusBar
)
867 def PreStatusBar(*args
, **kwargs
):
868 """PreStatusBar() -> StatusBar"""
869 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
872 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
874 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
876 Get the default attributes for this class. This is useful if you want
877 to use the same font or colour in your own control as in a standard
878 control -- which is a much better idea than hard coding specific
879 colours or fonts which might look completely out of place on the
880 user's system, especially if it uses themes.
882 The variant parameter is only relevant under Mac currently and is
883 ignore under other platforms. Under Mac, it will change the size of
884 the returned font. See `wx.Window.SetWindowVariant` for more about
887 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
889 #---------------------------------------------------------------------------
891 SP_NOBORDER
= _windows_
.SP_NOBORDER
892 SP_NOSASH
= _windows_
.SP_NOSASH
893 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
894 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
895 SP_3DSASH
= _windows_
.SP_3DSASH
896 SP_3DBORDER
= _windows_
.SP_3DBORDER
897 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
898 SP_BORDER
= _windows_
.SP_BORDER
899 SP_3D
= _windows_
.SP_3D
900 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
901 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
902 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
903 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
904 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
905 class SplitterWindow(_core
.Window
):
907 wx.SplitterWindow manages up to two subwindows or panes, with an
908 optional vertical or horizontal split which can be used with the mouse
911 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
912 __repr__
= _swig_repr
913 def __init__(self
, *args
, **kwargs
):
915 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
916 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
918 Constructor. Creates and shows a SplitterWindow.
920 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
921 _windows_
.SplitterWindow_swiginit(self
,_windows_
.new_SplitterWindow(*args
, **kwargs
))
922 self
._setOORInfo
(self
)
924 def Create(*args
, **kwargs
):
926 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
927 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
929 Create the GUI part of the SplitterWindow for the 2-phase create.
931 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
933 def GetWindow1(*args
, **kwargs
):
935 GetWindow1(self) -> Window
937 Gets the only or left/top pane.
939 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
941 def GetWindow2(*args
, **kwargs
):
943 GetWindow2(self) -> Window
945 Gets the right/bottom pane.
947 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
949 def SetSplitMode(*args
, **kwargs
):
951 SetSplitMode(self, int mode)
953 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
954 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
957 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
959 def GetSplitMode(*args
, **kwargs
):
961 GetSplitMode(self) -> int
965 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
967 def Initialize(*args
, **kwargs
):
969 Initialize(self, Window window)
971 Initializes the splitter window to have one pane. This should be
972 called if you wish to initially view only a single pane in the
973 splitter window. The child window is shown if it is currently hidden.
975 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
977 def SplitVertically(*args
, **kwargs
):
979 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
981 Initializes the left and right panes of the splitter window. The
982 child windows are shown if they are currently hidden.
984 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
986 def SplitHorizontally(*args
, **kwargs
):
988 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
990 Initializes the top and bottom panes of the splitter window. The
991 child windows are shown if they are currently hidden.
993 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
995 def Unsplit(*args
, **kwargs
):
997 Unsplit(self, Window toRemove=None) -> bool
999 Unsplits the window. Pass the pane to remove, or None to remove the
1000 right or bottom pane. Returns True if successful, False otherwise (the
1001 window was not split).
1003 This function will not actually delete the pane being
1004 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1005 for the desired behaviour. By default, the pane being
1006 removed is only hidden.
1008 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1010 def ReplaceWindow(*args
, **kwargs
):
1012 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1014 This function replaces one of the windows managed by the
1015 SplitterWindow with another one. It is in general better to use it
1016 instead of calling Unsplit() and then resplitting the window back
1017 because it will provoke much less flicker. It is valid to call this
1018 function whether the splitter has two windows or only one.
1020 Both parameters should be non-None and winOld must specify one of the
1021 windows managed by the splitter. If the parameters are incorrect or
1022 the window couldn't be replaced, False is returned. Otherwise the
1023 function will return True, but please notice that it will not Destroy
1024 the replaced window and you may wish to do it yourself.
1026 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1028 def UpdateSize(*args
, **kwargs
):
1032 Causes any pending sizing of the sash and child panes to take place
1035 Such resizing normally takes place in idle time, in order to wait for
1036 layout to be completed. However, this can cause unacceptable flicker
1037 as the panes are resized after the window has been shown. To work
1038 around this, you can perform window layout (for example by sending a
1039 size event to the parent window), and then call this function, before
1040 showing the top-level window.
1042 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1044 def IsSplit(*args
, **kwargs
):
1046 IsSplit(self) -> bool
1048 Is the window split?
1050 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1052 def SetSashSize(*args
, **kwargs
):
1054 SetSashSize(self, int width)
1058 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1060 def SetBorderSize(*args
, **kwargs
):
1062 SetBorderSize(self, int width)
1064 Sets the border size. Currently a NOP.
1066 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1068 def GetSashSize(*args
, **kwargs
):
1070 GetSashSize(self) -> int
1074 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1076 def GetBorderSize(*args
, **kwargs
):
1078 GetBorderSize(self) -> int
1080 Gets the border size
1082 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1084 def SetSashPosition(*args
, **kwargs
):
1086 SetSashPosition(self, int position, bool redraw=True)
1088 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1089 are resized and the sash and border are redrawn.
1091 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1093 def GetSashPosition(*args
, **kwargs
):
1095 GetSashPosition(self) -> int
1097 Returns the surrent sash position.
1099 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1101 def SetSashGravity(*args
, **kwargs
):
1103 SetSashGravity(self, double gravity)
1105 Set the sash gravity. Gravity is a floating-point factor between 0.0
1106 and 1.0 which controls position of sash while resizing the
1107 `wx.SplitterWindow`. The gravity specifies how much the left/top
1108 window will grow while resizing.
1110 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1112 def GetSashGravity(*args
, **kwargs
):
1114 GetSashGravity(self) -> double
1116 Gets the sash gravity.
1118 :see: `SetSashGravity`
1121 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1123 def SetMinimumPaneSize(*args
, **kwargs
):
1125 SetMinimumPaneSize(self, int min)
1127 Sets the minimum pane size in pixels.
1129 The default minimum pane size is zero, which means that either pane
1130 can be reduced to zero by dragging the sash, thus removing one of the
1131 panes. To prevent this behaviour (and veto out-of-range sash
1132 dragging), set a minimum size, for example 20 pixels. If the
1133 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1134 the window may be unsplit even if minimum size is non-zero.
1136 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1138 def GetMinimumPaneSize(*args
, **kwargs
):
1140 GetMinimumPaneSize(self) -> int
1142 Gets the minimum pane size in pixels.
1144 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1146 def SashHitTest(*args
, **kwargs
):
1148 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1150 Tests for x, y over the sash
1152 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1154 def SizeWindows(*args
, **kwargs
):
1160 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1162 def SetNeedUpdating(*args
, **kwargs
):
1163 """SetNeedUpdating(self, bool needUpdating)"""
1164 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1166 def GetNeedUpdating(*args
, **kwargs
):
1167 """GetNeedUpdating(self) -> bool"""
1168 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1170 def GetClassDefaultAttributes(*args
, **kwargs
):
1172 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1174 Get the default attributes for this class. This is useful if you want
1175 to use the same font or colour in your own control as in a standard
1176 control -- which is a much better idea than hard coding specific
1177 colours or fonts which might look completely out of place on the
1178 user's system, especially if it uses themes.
1180 The variant parameter is only relevant under Mac currently and is
1181 ignore under other platforms. Under Mac, it will change the size of
1182 the returned font. See `wx.Window.SetWindowVariant` for more about
1185 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1187 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1188 _windows_
.SplitterWindow_swigregister(SplitterWindow
)
1189 SplitterNameStr
= cvar
.SplitterNameStr
1191 def PreSplitterWindow(*args
, **kwargs
):
1193 PreSplitterWindow() -> SplitterWindow
1195 Precreate a SplitterWindow for 2-phase creation.
1197 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1200 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1202 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1204 Get the default attributes for this class. This is useful if you want
1205 to use the same font or colour in your own control as in a standard
1206 control -- which is a much better idea than hard coding specific
1207 colours or fonts which might look completely out of place on the
1208 user's system, especially if it uses themes.
1210 The variant parameter is only relevant under Mac currently and is
1211 ignore under other platforms. Under Mac, it will change the size of
1212 the returned font. See `wx.Window.SetWindowVariant` for more about
1215 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1217 class SplitterEvent(_core
.NotifyEvent
):
1218 """This class represents the events generated by a splitter control."""
1219 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1220 __repr__
= _swig_repr
1221 def __init__(self
, *args
, **kwargs
):
1223 __init__(self, EventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1225 This class represents the events generated by a splitter control.
1227 _windows_
.SplitterEvent_swiginit(self
,_windows_
.new_SplitterEvent(*args
, **kwargs
))
1228 def SetSashPosition(*args
, **kwargs
):
1230 SetSashPosition(self, int pos)
1232 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1233 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1234 events, sets the the new sash position. In the case of _CHANGING
1235 events, sets the new tracking bar position so visual feedback during
1236 dragging will represent that change that will actually take place. Set
1237 to -1 from the event handler code to prevent repositioning.
1239 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1241 def GetSashPosition(*args
, **kwargs
):
1243 GetSashPosition(self) -> int
1245 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1246 and EVT_SPLITTER_SASH_POS_CHANGED events.
1248 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1250 def GetWindowBeingRemoved(*args
, **kwargs
):
1252 GetWindowBeingRemoved(self) -> Window
1254 Returns a pointer to the window being removed when a splitter window
1257 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1259 def GetX(*args
, **kwargs
):
1263 Returns the x coordinate of the double-click point in a
1264 EVT_SPLITTER_DCLICK event.
1266 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1268 def GetY(*args
, **kwargs
):
1272 Returns the y coordinate of the double-click point in a
1273 EVT_SPLITTER_DCLICK event.
1275 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1277 _windows_
.SplitterEvent_swigregister(SplitterEvent
)
1279 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1280 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1281 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1282 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1283 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1284 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1285 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1286 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1287 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1289 #---------------------------------------------------------------------------
1291 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1292 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1293 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1294 SW_NOBORDER
= _windows_
.SW_NOBORDER
1295 SW_BORDER
= _windows_
.SW_BORDER
1296 SW_3DSASH
= _windows_
.SW_3DSASH
1297 SW_3DBORDER
= _windows_
.SW_3DBORDER
1298 SW_3D
= _windows_
.SW_3D
1299 SASH_TOP
= _windows_
.SASH_TOP
1300 SASH_RIGHT
= _windows_
.SASH_RIGHT
1301 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1302 SASH_LEFT
= _windows_
.SASH_LEFT
1303 SASH_NONE
= _windows_
.SASH_NONE
1304 class SashWindow(_core
.Window
):
1305 """Proxy of C++ SashWindow class"""
1306 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1307 __repr__
= _swig_repr
1308 def __init__(self
, *args
, **kwargs
):
1310 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1311 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1312 String name=SashNameStr) -> SashWindow
1314 _windows_
.SashWindow_swiginit(self
,_windows_
.new_SashWindow(*args
, **kwargs
))
1315 self
._setOORInfo
(self
)
1317 def Create(*args
, **kwargs
):
1319 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1320 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1321 String name=SashNameStr) -> bool
1323 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1325 def SetSashVisible(*args
, **kwargs
):
1326 """SetSashVisible(self, int edge, bool sash)"""
1327 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1329 def GetSashVisible(*args
, **kwargs
):
1330 """GetSashVisible(self, int edge) -> bool"""
1331 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1333 def SetSashBorder(*args
, **kwargs
):
1334 """SetSashBorder(self, int edge, bool border)"""
1335 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1337 def HasBorder(*args
, **kwargs
):
1338 """HasBorder(self, int edge) -> bool"""
1339 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1341 def GetEdgeMargin(*args
, **kwargs
):
1342 """GetEdgeMargin(self, int edge) -> int"""
1343 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1345 def SetDefaultBorderSize(*args
, **kwargs
):
1346 """SetDefaultBorderSize(self, int width)"""
1347 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1349 def GetDefaultBorderSize(*args
, **kwargs
):
1350 """GetDefaultBorderSize(self) -> int"""
1351 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1353 def SetExtraBorderSize(*args
, **kwargs
):
1354 """SetExtraBorderSize(self, int width)"""
1355 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1357 def GetExtraBorderSize(*args
, **kwargs
):
1358 """GetExtraBorderSize(self) -> int"""
1359 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1361 def SetMinimumSizeX(*args
, **kwargs
):
1362 """SetMinimumSizeX(self, int min)"""
1363 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1365 def SetMinimumSizeY(*args
, **kwargs
):
1366 """SetMinimumSizeY(self, int min)"""
1367 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1369 def GetMinimumSizeX(*args
, **kwargs
):
1370 """GetMinimumSizeX(self) -> int"""
1371 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1373 def GetMinimumSizeY(*args
, **kwargs
):
1374 """GetMinimumSizeY(self) -> int"""
1375 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1377 def SetMaximumSizeX(*args
, **kwargs
):
1378 """SetMaximumSizeX(self, int max)"""
1379 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1381 def SetMaximumSizeY(*args
, **kwargs
):
1382 """SetMaximumSizeY(self, int max)"""
1383 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1385 def GetMaximumSizeX(*args
, **kwargs
):
1386 """GetMaximumSizeX(self) -> int"""
1387 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1389 def GetMaximumSizeY(*args
, **kwargs
):
1390 """GetMaximumSizeY(self) -> int"""
1391 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1393 def SashHitTest(*args
, **kwargs
):
1394 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1395 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1397 def SizeWindows(*args
, **kwargs
):
1398 """SizeWindows(self)"""
1399 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1401 _windows_
.SashWindow_swigregister(SashWindow
)
1402 SashNameStr
= cvar
.SashNameStr
1403 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1405 def PreSashWindow(*args
, **kwargs
):
1406 """PreSashWindow() -> SashWindow"""
1407 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1410 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1411 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1412 class SashEvent(_core
.CommandEvent
):
1413 """Proxy of C++ SashEvent class"""
1414 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1415 __repr__
= _swig_repr
1416 def __init__(self
, *args
, **kwargs
):
1417 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1418 _windows_
.SashEvent_swiginit(self
,_windows_
.new_SashEvent(*args
, **kwargs
))
1419 def SetEdge(*args
, **kwargs
):
1420 """SetEdge(self, int edge)"""
1421 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1423 def GetEdge(*args
, **kwargs
):
1424 """GetEdge(self) -> int"""
1425 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1427 def SetDragRect(*args
, **kwargs
):
1428 """SetDragRect(self, Rect rect)"""
1429 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1431 def GetDragRect(*args
, **kwargs
):
1432 """GetDragRect(self) -> Rect"""
1433 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1435 def SetDragStatus(*args
, **kwargs
):
1436 """SetDragStatus(self, int status)"""
1437 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1439 def GetDragStatus(*args
, **kwargs
):
1440 """GetDragStatus(self) -> int"""
1441 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1443 _windows_
.SashEvent_swigregister(SashEvent
)
1445 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1446 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1447 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1449 #---------------------------------------------------------------------------
1451 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1452 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1453 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1454 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1455 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1456 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1457 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1458 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1459 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1460 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1461 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1462 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1463 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1464 class QueryLayoutInfoEvent(_core
.Event
):
1465 """Proxy of C++ QueryLayoutInfoEvent class"""
1466 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1467 __repr__
= _swig_repr
1468 def __init__(self
, *args
, **kwargs
):
1469 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1470 _windows_
.QueryLayoutInfoEvent_swiginit(self
,_windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
))
1471 def SetRequestedLength(*args
, **kwargs
):
1472 """SetRequestedLength(self, int length)"""
1473 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1475 def GetRequestedLength(*args
, **kwargs
):
1476 """GetRequestedLength(self) -> int"""
1477 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1479 def SetFlags(*args
, **kwargs
):
1480 """SetFlags(self, int flags)"""
1481 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1483 def GetFlags(*args
, **kwargs
):
1484 """GetFlags(self) -> int"""
1485 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1487 def SetSize(*args
, **kwargs
):
1488 """SetSize(self, Size size)"""
1489 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1491 def GetSize(*args
, **kwargs
):
1492 """GetSize(self) -> Size"""
1493 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1495 def SetOrientation(*args
, **kwargs
):
1496 """SetOrientation(self, int orient)"""
1497 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1499 def GetOrientation(*args
, **kwargs
):
1500 """GetOrientation(self) -> int"""
1501 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1503 def SetAlignment(*args
, **kwargs
):
1504 """SetAlignment(self, int align)"""
1505 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1507 def GetAlignment(*args
, **kwargs
):
1508 """GetAlignment(self) -> int"""
1509 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1511 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent
)
1513 class CalculateLayoutEvent(_core
.Event
):
1514 """Proxy of C++ CalculateLayoutEvent class"""
1515 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1516 __repr__
= _swig_repr
1517 def __init__(self
, *args
, **kwargs
):
1518 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1519 _windows_
.CalculateLayoutEvent_swiginit(self
,_windows_
.new_CalculateLayoutEvent(*args
, **kwargs
))
1520 def SetFlags(*args
, **kwargs
):
1521 """SetFlags(self, int flags)"""
1522 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1524 def GetFlags(*args
, **kwargs
):
1525 """GetFlags(self) -> int"""
1526 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1528 def SetRect(*args
, **kwargs
):
1529 """SetRect(self, Rect rect)"""
1530 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1532 def GetRect(*args
, **kwargs
):
1533 """GetRect(self) -> Rect"""
1534 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1536 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEvent
)
1538 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1539 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1541 class SashLayoutWindow(SashWindow
):
1542 """Proxy of C++ SashLayoutWindow class"""
1543 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1544 __repr__
= _swig_repr
1545 def __init__(self
, *args
, **kwargs
):
1547 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1548 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1549 String name=SashLayoutNameStr) -> SashLayoutWindow
1551 _windows_
.SashLayoutWindow_swiginit(self
,_windows_
.new_SashLayoutWindow(*args
, **kwargs
))
1552 self
._setOORInfo
(self
)
1554 def Create(*args
, **kwargs
):
1556 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1557 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1558 String name=SashLayoutNameStr) -> bool
1560 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1562 def GetAlignment(*args
, **kwargs
):
1563 """GetAlignment(self) -> int"""
1564 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1566 def GetOrientation(*args
, **kwargs
):
1567 """GetOrientation(self) -> int"""
1568 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1570 def SetAlignment(*args
, **kwargs
):
1571 """SetAlignment(self, int alignment)"""
1572 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1574 def SetDefaultSize(*args
, **kwargs
):
1575 """SetDefaultSize(self, Size size)"""
1576 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1578 def SetOrientation(*args
, **kwargs
):
1579 """SetOrientation(self, int orientation)"""
1580 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1582 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindow
)
1584 def PreSashLayoutWindow(*args
, **kwargs
):
1585 """PreSashLayoutWindow() -> SashLayoutWindow"""
1586 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1589 class LayoutAlgorithm(_core
.Object
):
1590 """Proxy of C++ LayoutAlgorithm class"""
1591 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1592 __repr__
= _swig_repr
1593 def __init__(self
, *args
, **kwargs
):
1594 """__init__(self) -> LayoutAlgorithm"""
1595 _windows_
.LayoutAlgorithm_swiginit(self
,_windows_
.new_LayoutAlgorithm(*args
, **kwargs
))
1596 __swig_destroy__
= _windows_
.delete_LayoutAlgorithm
1597 __del__
= lambda self
: None;
1598 def LayoutMDIFrame(*args
, **kwargs
):
1599 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1600 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1602 def LayoutFrame(*args
, **kwargs
):
1603 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1604 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1606 def LayoutWindow(*args
, **kwargs
):
1607 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1608 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1610 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithm
)
1612 #---------------------------------------------------------------------------
1614 class PopupWindow(_core
.Window
):
1615 """Proxy of C++ PopupWindow class"""
1616 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1617 __repr__
= _swig_repr
1618 def __init__(self
, *args
, **kwargs
):
1619 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1620 _windows_
.PopupWindow_swiginit(self
,_windows_
.new_PopupWindow(*args
, **kwargs
))
1621 self
._setOORInfo
(self
)
1623 def Create(*args
, **kwargs
):
1624 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1625 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1627 def Position(*args
, **kwargs
):
1628 """Position(self, Point ptOrigin, Size size)"""
1629 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1631 _windows_
.PopupWindow_swigregister(PopupWindow
)
1633 def PrePopupWindow(*args
, **kwargs
):
1634 """PrePopupWindow() -> PopupWindow"""
1635 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1638 #---------------------------------------------------------------------------
1640 class PopupTransientWindow(PopupWindow
):
1641 """Proxy of C++ PopupTransientWindow class"""
1642 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1643 __repr__
= _swig_repr
1644 def __init__(self
, *args
, **kwargs
):
1645 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1646 _windows_
.PopupTransientWindow_swiginit(self
,_windows_
.new_PopupTransientWindow(*args
, **kwargs
))
1647 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1649 def _setCallbackInfo(*args
, **kwargs
):
1650 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1651 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1653 def Popup(*args
, **kwargs
):
1654 """Popup(self, Window focus=None)"""
1655 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1657 def Dismiss(*args
, **kwargs
):
1659 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1661 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindow
)
1663 def PrePopupTransientWindow(*args
, **kwargs
):
1664 """PrePopupTransientWindow() -> PopupTransientWindow"""
1665 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1668 #---------------------------------------------------------------------------
1670 class TipWindow(PopupTransientWindow
):
1671 """Proxy of C++ TipWindow class"""
1672 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1673 __repr__
= _swig_repr
1674 def __init__(self
, *args
, **kwargs
):
1675 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1676 _windows_
.TipWindow_swiginit(self
,_windows_
.new_TipWindow(*args
, **kwargs
))
1677 self
._setOORInfo
(self
)
1679 def SetBoundingRect(*args
, **kwargs
):
1680 """SetBoundingRect(self, Rect rectBound)"""
1681 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1683 def Close(*args
, **kwargs
):
1687 This function simply generates a EVT_CLOSE event whose handler usually
1688 tries to close the window. It doesn't close the window itself,
1689 however. If force is False (the default) then the window's close
1690 handler will be allowed to veto the destruction of the window.
1692 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1694 _windows_
.TipWindow_swigregister(TipWindow
)
1696 #---------------------------------------------------------------------------
1698 class VScrolledWindow(Panel
):
1699 """Proxy of C++ VScrolledWindow class"""
1700 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1701 __repr__
= _swig_repr
1702 def __init__(self
, *args
, **kwargs
):
1704 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1705 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1707 _windows_
.VScrolledWindow_swiginit(self
,_windows_
.new_VScrolledWindow(*args
, **kwargs
))
1708 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1710 def _setCallbackInfo(*args
, **kwargs
):
1711 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1712 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1714 def Create(*args
, **kwargs
):
1716 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1717 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1719 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1721 def SetLineCount(*args
, **kwargs
):
1722 """SetLineCount(self, size_t count)"""
1723 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1725 def ScrollToLine(*args
, **kwargs
):
1726 """ScrollToLine(self, size_t line) -> bool"""
1727 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1729 def RefreshLine(*args
, **kwargs
):
1730 """RefreshLine(self, size_t line)"""
1731 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1733 def RefreshLines(*args
, **kwargs
):
1734 """RefreshLines(self, size_t from, size_t to)"""
1735 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1737 def HitTestXY(*args
, **kwargs
):
1739 HitTestXY(self, int x, int y) -> int
1741 Test where the given (in client coords) point lies
1743 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1745 def HitTest(*args
, **kwargs
):
1747 HitTest(self, Point pt) -> int
1749 Test where the given (in client coords) point lies
1751 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1753 def RefreshAll(*args
, **kwargs
):
1754 """RefreshAll(self)"""
1755 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1757 def GetLineCount(*args
, **kwargs
):
1758 """GetLineCount(self) -> size_t"""
1759 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1761 def GetVisibleBegin(*args
, **kwargs
):
1762 """GetVisibleBegin(self) -> size_t"""
1763 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
1765 def GetVisibleEnd(*args
, **kwargs
):
1766 """GetVisibleEnd(self) -> size_t"""
1767 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
1769 def IsVisible(*args
, **kwargs
):
1770 """IsVisible(self, size_t line) -> bool"""
1771 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1773 def GetFirstVisibleLine(*args
, **kwargs
):
1774 """GetFirstVisibleLine(self) -> size_t"""
1775 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1777 def GetLastVisibleLine(*args
, **kwargs
):
1778 """GetLastVisibleLine(self) -> size_t"""
1779 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1781 def FindFirstFromBottom(*args
, **kwargs
):
1782 """FindFirstFromBottom(self, size_t lineLast, bool fullyVisible=False) -> size_t"""
1783 return _windows_
.VScrolledWindow_FindFirstFromBottom(*args
, **kwargs
)
1785 def GetLinesHeight(*args
, **kwargs
):
1786 """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int"""
1787 return _windows_
.VScrolledWindow_GetLinesHeight(*args
, **kwargs
)
1789 _windows_
.VScrolledWindow_swigregister(VScrolledWindow
)
1791 def PreVScrolledWindow(*args
, **kwargs
):
1792 """PreVScrolledWindow() -> VScrolledWindow"""
1793 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1796 class VListBox(VScrolledWindow
):
1797 """Proxy of C++ VListBox class"""
1798 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1799 __repr__
= _swig_repr
1800 def __init__(self
, *args
, **kwargs
):
1802 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1803 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1805 _windows_
.VListBox_swiginit(self
,_windows_
.new_VListBox(*args
, **kwargs
))
1806 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1808 def _setCallbackInfo(*args
, **kwargs
):
1809 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1810 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1812 def Create(*args
, **kwargs
):
1814 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1815 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1817 return _windows_
.VListBox_Create(*args
, **kwargs
)
1819 def GetItemCount(*args
, **kwargs
):
1820 """GetItemCount(self) -> size_t"""
1821 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1823 def HasMultipleSelection(*args
, **kwargs
):
1824 """HasMultipleSelection(self) -> bool"""
1825 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1827 def GetSelection(*args
, **kwargs
):
1828 """GetSelection(self) -> int"""
1829 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1831 def IsCurrent(*args
, **kwargs
):
1832 """IsCurrent(self, size_t item) -> bool"""
1833 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1835 def IsSelected(*args
, **kwargs
):
1836 """IsSelected(self, size_t item) -> bool"""
1837 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1839 def GetSelectedCount(*args
, **kwargs
):
1840 """GetSelectedCount(self) -> size_t"""
1841 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1843 def GetFirstSelected(*args
, **kwargs
):
1844 """GetFirstSelected(self) -> PyObject"""
1845 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1847 def GetNextSelected(*args
, **kwargs
):
1848 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1849 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1851 def GetMargins(*args
, **kwargs
):
1852 """GetMargins(self) -> Point"""
1853 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1855 def GetSelectionBackground(*args
, **kwargs
):
1856 """GetSelectionBackground(self) -> Colour"""
1857 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1859 def SetItemCount(*args
, **kwargs
):
1860 """SetItemCount(self, size_t count)"""
1861 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1863 def Clear(*args
, **kwargs
):
1865 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1867 def SetSelection(*args
, **kwargs
):
1868 """SetSelection(self, int selection)"""
1869 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1871 def Select(*args
, **kwargs
):
1872 """Select(self, size_t item, bool select=True) -> bool"""
1873 return _windows_
.VListBox_Select(*args
, **kwargs
)
1875 def SelectRange(*args
, **kwargs
):
1876 """SelectRange(self, size_t from, size_t to) -> bool"""
1877 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1879 def Toggle(*args
, **kwargs
):
1880 """Toggle(self, size_t item)"""
1881 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1883 def SelectAll(*args
, **kwargs
):
1884 """SelectAll(self) -> bool"""
1885 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1887 def DeselectAll(*args
, **kwargs
):
1888 """DeselectAll(self) -> bool"""
1889 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1891 def SetMargins(*args
, **kwargs
):
1892 """SetMargins(self, Point pt)"""
1893 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1895 def SetMarginsXY(*args
, **kwargs
):
1896 """SetMarginsXY(self, int x, int y)"""
1897 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1899 def SetSelectionBackground(*args
, **kwargs
):
1900 """SetSelectionBackground(self, Colour col)"""
1901 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1903 def OnDrawSeparator(*args
, **kwargs
):
1904 """OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
1905 return _windows_
.VListBox_OnDrawSeparator(*args
, **kwargs
)
1907 def OnDrawBackground(*args
, **kwargs
):
1908 """OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
1909 return _windows_
.VListBox_OnDrawBackground(*args
, **kwargs
)
1911 _windows_
.VListBox_swigregister(VListBox
)
1912 VListBoxNameStr
= cvar
.VListBoxNameStr
1914 def PreVListBox(*args
, **kwargs
):
1915 """PreVListBox() -> VListBox"""
1916 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1919 class HtmlListBox(VListBox
):
1920 """Proxy of C++ HtmlListBox class"""
1921 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1922 __repr__
= _swig_repr
1923 def __init__(self
, *args
, **kwargs
):
1925 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1926 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1928 _windows_
.HtmlListBox_swiginit(self
,_windows_
.new_HtmlListBox(*args
, **kwargs
))
1929 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1931 def _setCallbackInfo(*args
, **kwargs
):
1932 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1933 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1935 def Create(*args
, **kwargs
):
1937 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1938 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1940 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1942 def SetItemCount(*args
, **kwargs
):
1943 """SetItemCount(self, size_t count)"""
1944 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1946 def GetFileSystem(*args
, **kwargs
):
1947 """GetFileSystem(self) -> FileSystem"""
1948 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
1950 def OnLinkClicked(*args
, **kwargs
):
1951 """OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)"""
1952 return _windows_
.HtmlListBox_OnLinkClicked(*args
, **kwargs
)
1954 _windows_
.HtmlListBox_swigregister(HtmlListBox
)
1956 def PreHtmlListBox(*args
, **kwargs
):
1957 """PreHtmlListBox() -> HtmlListBox"""
1958 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
1961 #---------------------------------------------------------------------------
1963 class TaskBarIcon(_core
.EvtHandler
):
1964 """Proxy of C++ TaskBarIcon class"""
1965 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1966 __repr__
= _swig_repr
1967 def __init__(self
, *args
, **kwargs
):
1968 """__init__(self) -> TaskBarIcon"""
1969 _windows_
.TaskBarIcon_swiginit(self
,_windows_
.new_TaskBarIcon(*args
, **kwargs
))
1970 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
1972 __swig_destroy__
= _windows_
.delete_TaskBarIcon
1973 __del__
= lambda self
: None;
1974 def _setCallbackInfo(*args
, **kwargs
):
1975 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
1976 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
1978 def Destroy(*args
, **kwargs
):
1982 Deletes the C++ object this Python object is a proxy for.
1984 val
= _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
1988 def IsOk(*args
, **kwargs
):
1989 """IsOk(self) -> bool"""
1990 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
1992 def __nonzero__(self
): return self
.IsOk()
1993 def IsIconInstalled(*args
, **kwargs
):
1994 """IsIconInstalled(self) -> bool"""
1995 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
1997 def SetIcon(*args
, **kwargs
):
1998 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
1999 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2001 def RemoveIcon(*args
, **kwargs
):
2002 """RemoveIcon(self) -> bool"""
2003 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2005 def PopupMenu(*args
, **kwargs
):
2006 """PopupMenu(self, Menu menu) -> bool"""
2007 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2009 _windows_
.TaskBarIcon_swigregister(TaskBarIcon
)
2011 class TaskBarIconEvent(_core
.Event
):
2012 """Proxy of C++ TaskBarIconEvent class"""
2013 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2014 __repr__
= _swig_repr
2015 def __init__(self
, *args
, **kwargs
):
2016 """__init__(self, EventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2017 _windows_
.TaskBarIconEvent_swiginit(self
,_windows_
.new_TaskBarIconEvent(*args
, **kwargs
))
2018 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEvent
)
2020 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2021 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2022 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2023 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2024 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2025 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2026 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2027 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2028 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2029 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2030 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2031 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2032 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2033 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2035 #---------------------------------------------------------------------------
2037 class ColourData(_core
.Object
):
2039 This class holds a variety of information related to the colour
2040 chooser dialog, used to transfer settings and results to and from the
2043 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2044 __repr__
= _swig_repr
2045 def __init__(self
, *args
, **kwargs
):
2047 __init__(self) -> ColourData
2049 Constructor, sets default values.
2051 _windows_
.ColourData_swiginit(self
,_windows_
.new_ColourData(*args
, **kwargs
))
2052 __swig_destroy__
= _windows_
.delete_ColourData
2053 __del__
= lambda self
: None;
2054 def GetChooseFull(*args
, **kwargs
):
2056 GetChooseFull(self) -> bool
2058 Under Windows, determines whether the Windows colour dialog will
2059 display the full dialog with custom colour selection controls. Has no
2060 meaning under other platforms. The default value is true.
2062 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2064 def GetColour(*args
, **kwargs
):
2066 GetColour(self) -> Colour
2068 Gets the colour (pre)selected by the dialog.
2070 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2072 def GetCustomColour(*args
, **kwargs
):
2074 GetCustomColour(self, int i) -> Colour
2076 Gets the i'th custom colour associated with the colour dialog. i
2077 should be an integer between 0 and 15. The default custom colours are
2078 all invalid colours.
2080 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2082 def SetChooseFull(*args
, **kwargs
):
2084 SetChooseFull(self, int flag)
2086 Under Windows, tells the Windows colour dialog to display the full
2087 dialog with custom colour selection controls. Under other platforms,
2088 has no effect. The default value is true.
2090 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2092 def SetColour(*args
, **kwargs
):
2094 SetColour(self, Colour colour)
2096 Sets the default colour for the colour dialog. The default colour is
2099 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2101 def SetCustomColour(*args
, **kwargs
):
2103 SetCustomColour(self, int i, Colour colour)
2105 Sets the i'th custom colour for the colour dialog. i should be an
2106 integer between 0 and 15. The default custom colours are all invalid colours.
2108 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2110 _windows_
.ColourData_swigregister(ColourData
)
2111 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2112 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2113 DirDialogNameStr
= cvar
.DirDialogNameStr
2114 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2115 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2116 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2118 class ColourDialog(Dialog
):
2119 """This class represents the colour chooser dialog."""
2120 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2121 __repr__
= _swig_repr
2122 def __init__(self
, *args
, **kwargs
):
2124 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2126 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2127 which will be copied to the colour dialog's internal ColourData
2130 _windows_
.ColourDialog_swiginit(self
,_windows_
.new_ColourDialog(*args
, **kwargs
))
2131 self
._setOORInfo
(self
)
2133 def GetColourData(*args
, **kwargs
):
2135 GetColourData(self) -> ColourData
2137 Returns a reference to the `wx.ColourData` used by the dialog.
2139 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2141 _windows_
.ColourDialog_swigregister(ColourDialog
)
2144 def GetColourFromUser(*args
, **kwargs
):
2146 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2147 String caption=EmptyString) -> Colour
2149 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2150 class DirDialog(Dialog
):
2152 wx.DirDialog allows the user to select a directory by browising the
2155 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2156 __repr__
= _swig_repr
2157 def __init__(self
, *args
, **kwargs
):
2159 __init__(self, Window parent, String message=DirSelectorPromptStr,
2160 String defaultPath=EmptyString, long style=0,
2161 Point pos=DefaultPosition, Size size=DefaultSize,
2162 String name=DirDialogNameStr) -> DirDialog
2164 Constructor. Use ShowModal method to show the dialog.
2166 _windows_
.DirDialog_swiginit(self
,_windows_
.new_DirDialog(*args
, **kwargs
))
2167 self
._setOORInfo
(self
)
2169 def GetPath(*args
, **kwargs
):
2171 GetPath(self) -> String
2173 Returns the default or user-selected path.
2175 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2177 def GetMessage(*args
, **kwargs
):
2179 GetMessage(self) -> String
2181 Returns the message that will be displayed on the dialog.
2183 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2185 def SetMessage(*args
, **kwargs
):
2187 SetMessage(self, String message)
2189 Sets the message that will be displayed on the dialog.
2191 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2193 def SetPath(*args
, **kwargs
):
2195 SetPath(self, String path)
2197 Sets the default path.
2199 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2201 _windows_
.DirDialog_swigregister(DirDialog
)
2203 class FileDialog(Dialog
):
2205 wx.FileDialog allows the user to select one or more files from the
2208 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2209 __repr__
= _swig_repr
2210 def __init__(self
, *args
, **kwargs
):
2212 __init__(self, Window parent, String message=FileSelectorPromptStr,
2213 String defaultDir=EmptyString, String defaultFile=EmptyString,
2214 String wildcard=FileSelectorDefaultWildcardStr,
2215 long style=0, Point pos=DefaultPosition) -> FileDialog
2217 Constructor. Use ShowModal method to show the dialog.
2219 _windows_
.FileDialog_swiginit(self
,_windows_
.new_FileDialog(*args
, **kwargs
))
2220 self
._setOORInfo
(self
)
2222 def SetMessage(*args
, **kwargs
):
2224 SetMessage(self, String message)
2226 Sets the message that will be displayed on the dialog.
2228 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2230 def SetPath(*args
, **kwargs
):
2232 SetPath(self, String path)
2234 Sets the path (the combined directory and filename that will be
2235 returned when the dialog is dismissed).
2237 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2239 def SetDirectory(*args
, **kwargs
):
2241 SetDirectory(self, String dir)
2243 Sets the default directory.
2245 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2247 def SetFilename(*args
, **kwargs
):
2249 SetFilename(self, String name)
2251 Sets the default filename.
2253 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2255 def SetWildcard(*args
, **kwargs
):
2257 SetWildcard(self, String wildCard)
2259 Sets the wildcard, which can contain multiple file types, for
2262 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2265 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2267 def SetStyle(*args
, **kwargs
):
2269 SetStyle(self, long style)
2271 Sets the dialog style.
2273 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2275 def SetFilterIndex(*args
, **kwargs
):
2277 SetFilterIndex(self, int filterIndex)
2279 Sets the default filter index, starting from zero.
2281 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2283 def GetMessage(*args
, **kwargs
):
2285 GetMessage(self) -> String
2287 Returns the message that will be displayed on the dialog.
2289 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2291 def GetPath(*args
, **kwargs
):
2293 GetPath(self) -> String
2295 Returns the full path (directory and filename) of the selected file.
2297 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2299 def GetDirectory(*args
, **kwargs
):
2301 GetDirectory(self) -> String
2303 Returns the default directory.
2305 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2307 def GetFilename(*args
, **kwargs
):
2309 GetFilename(self) -> String
2311 Returns the default filename.
2313 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2315 def GetWildcard(*args
, **kwargs
):
2317 GetWildcard(self) -> String
2319 Returns the file dialog wildcard.
2321 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2323 def GetStyle(*args
, **kwargs
):
2325 GetStyle(self) -> long
2327 Returns the dialog style.
2329 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2331 def GetFilterIndex(*args
, **kwargs
):
2333 GetFilterIndex(self) -> int
2335 Returns the index into the list of filters supplied, optionally, in
2336 the wildcard parameter. Before the dialog is shown, this is the index
2337 which will be used when the dialog is first displayed. After the
2338 dialog is shown, this is the index selected by the user.
2340 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2342 def GetFilenames(*args
, **kwargs
):
2344 GetFilenames(self) -> PyObject
2346 Returns a list of filenames chosen in the dialog. This function
2347 should only be used with the dialogs which have wx.MULTIPLE style, use
2348 GetFilename for the others.
2350 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2352 def GetPaths(*args
, **kwargs
):
2354 GetPaths(self) -> PyObject
2356 Fills the array paths with the full paths of the files chosen. This
2357 function should only be used with the dialogs which have wx.MULTIPLE
2358 style, use GetPath for the others.
2360 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2362 _windows_
.FileDialog_swigregister(FileDialog
)
2364 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2365 class MultiChoiceDialog(Dialog
):
2366 """A simple dialog with a multi selection listbox."""
2367 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2368 __repr__
= _swig_repr
2369 def __init__(self
, *args
, **kwargs
):
2371 __init__(self, Window parent, String message, String caption,
2372 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2373 Point pos=DefaultPosition) -> MultiChoiceDialog
2375 Constructor. Use the `ShowModal` method to show the dialog.
2377 :param parent: The parent window.
2378 :param message: Text to display above the list of selections.
2379 :param caption: Text to use in the title bar of the dialog.
2380 :param choices: A list of strings or unicode objects that the
2381 user is allowed to choose from.
2382 :param style: Styles to apply to the dialog. The default value is
2383 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2384 :param pos: Where to position the dialog (not used on Windows)
2388 _windows_
.MultiChoiceDialog_swiginit(self
,_windows_
.new_MultiChoiceDialog(*args
, **kwargs
))
2389 self
._setOORInfo
(self
)
2391 def SetSelections(*args
, **kwargs
):
2393 SetSelections(List selections)
2395 Specify the items in the list that should be selected, using a list of
2396 integers. The list should specify the indexes of the items that
2399 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2401 def GetSelections(*args
, **kwargs
):
2403 GetSelections() -> [selections]
2405 Returns a list of integers representing the items that are selected.
2406 If an item is selected then its index will appear in the list.
2408 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2410 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialog
)
2412 class SingleChoiceDialog(Dialog
):
2413 """A simple dialog with a single selection listbox."""
2414 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2415 __repr__
= _swig_repr
2416 def __init__(self
, *args
, **kwargs
):
2418 __init__(Window parent, String message, String caption,
2419 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2420 Point pos=DefaultPosition) -> SingleChoiceDialog
2422 Constructor. Use ShowModal method to show the dialog.
2424 _windows_
.SingleChoiceDialog_swiginit(self
,_windows_
.new_SingleChoiceDialog(*args
, **kwargs
))
2425 self
._setOORInfo
(self
)
2427 def GetSelection(*args
, **kwargs
):
2429 GetSelection(self) -> int
2431 Get the index of teh currently selected item.
2433 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2435 def GetStringSelection(*args
, **kwargs
):
2437 GetStringSelection(self) -> String
2439 Returns the string value of the currently selected item
2441 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2443 def SetSelection(*args
, **kwargs
):
2445 SetSelection(self, int sel)
2447 Set the current selected item to sel
2449 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2451 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialog
)
2453 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2454 class TextEntryDialog(Dialog
):
2455 """A dialog with text control, [ok] and [cancel] buttons"""
2456 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2457 __repr__
= _swig_repr
2458 def __init__(self
, *args
, **kwargs
):
2460 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2461 String defaultValue=EmptyString,
2462 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2464 Constructor. Use ShowModal method to show the dialog.
2466 _windows_
.TextEntryDialog_swiginit(self
,_windows_
.new_TextEntryDialog(*args
, **kwargs
))
2467 self
._setOORInfo
(self
)
2469 def GetValue(*args
, **kwargs
):
2471 GetValue(self) -> String
2473 Returns the text that the user has entered if the user has pressed OK,
2474 or the original value if the user has pressed Cancel.
2476 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2478 def SetValue(*args
, **kwargs
):
2480 SetValue(self, String value)
2482 Sets the default text value.
2484 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2486 _windows_
.TextEntryDialog_swigregister(TextEntryDialog
)
2488 class PasswordEntryDialog(TextEntryDialog
):
2489 """Proxy of C++ PasswordEntryDialog class"""
2490 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2491 __repr__
= _swig_repr
2492 def __init__(self
, *args
, **kwargs
):
2494 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2495 String value=EmptyString,
2496 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2498 _windows_
.PasswordEntryDialog_swiginit(self
,_windows_
.new_PasswordEntryDialog(*args
, **kwargs
))
2499 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialog
)
2500 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2502 class FontData(_core
.Object
):
2504 This class holds a variety of information related to font dialogs and
2505 is used to transfer settings to and results from a `wx.FontDialog`.
2507 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2508 __repr__
= _swig_repr
2509 def __init__(self
, *args
, **kwargs
):
2511 __init__(self) -> FontData
2513 This class holds a variety of information related to font dialogs and
2514 is used to transfer settings to and results from a `wx.FontDialog`.
2516 _windows_
.FontData_swiginit(self
,_windows_
.new_FontData(*args
, **kwargs
))
2517 __swig_destroy__
= _windows_
.delete_FontData
2518 __del__
= lambda self
: None;
2519 def EnableEffects(*args
, **kwargs
):
2521 EnableEffects(self, bool enable)
2523 Enables or disables 'effects' under MS Windows only. This refers to
2524 the controls for manipulating colour, strikeout and underline
2525 properties. The default value is true.
2527 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2529 def GetAllowSymbols(*args
, **kwargs
):
2531 GetAllowSymbols(self) -> bool
2533 Under MS Windows, returns a flag determining whether symbol fonts can
2534 be selected. Has no effect on other platforms. The default value is
2537 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2539 def GetColour(*args
, **kwargs
):
2541 GetColour(self) -> Colour
2543 Gets the colour associated with the font dialog. The default value is
2546 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2548 def GetChosenFont(*args
, **kwargs
):
2550 GetChosenFont(self) -> Font
2552 Gets the font chosen by the user.
2554 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2556 def GetEnableEffects(*args
, **kwargs
):
2558 GetEnableEffects(self) -> bool
2560 Determines whether 'effects' are enabled under Windows.
2562 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2564 def GetInitialFont(*args
, **kwargs
):
2566 GetInitialFont(self) -> Font
2568 Gets the font that will be initially used by the font dialog. This
2569 should have previously been set by the application.
2571 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2573 def GetShowHelp(*args
, **kwargs
):
2575 GetShowHelp(self) -> bool
2577 Returns true if the Help button will be shown (Windows only). The
2578 default value is false.
2580 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2582 def SetAllowSymbols(*args
, **kwargs
):
2584 SetAllowSymbols(self, bool allowSymbols)
2586 Under MS Windows, determines whether symbol fonts can be selected. Has
2587 no effect on other platforms. The default value is true.
2589 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2591 def SetChosenFont(*args
, **kwargs
):
2593 SetChosenFont(self, Font font)
2595 Sets the font that will be returned to the user (normally for internal
2598 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2600 def SetColour(*args
, **kwargs
):
2602 SetColour(self, Colour colour)
2604 Sets the colour that will be used for the font foreground colour. The
2605 default colour is black.
2607 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2609 def SetInitialFont(*args
, **kwargs
):
2611 SetInitialFont(self, Font font)
2613 Sets the font that will be initially used by the font dialog.
2615 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2617 def SetRange(*args
, **kwargs
):
2619 SetRange(self, int min, int max)
2621 Sets the valid range for the font point size (Windows only). The
2622 default is 0, 0 (unrestricted range).
2624 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2626 def SetShowHelp(*args
, **kwargs
):
2628 SetShowHelp(self, bool showHelp)
2630 Determines whether the Help button will be displayed in the font
2631 dialog (Windows only). The default value is false.
2633 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2635 _windows_
.FontData_swigregister(FontData
)
2637 class FontDialog(Dialog
):
2639 wx.FontDialog allows the user to select a system font and its attributes.
2644 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2645 __repr__
= _swig_repr
2646 def __init__(self
, *args
, **kwargs
):
2648 __init__(self, Window parent, FontData data) -> FontDialog
2650 Constructor. Pass a parent window and the `wx.FontData` object to be
2651 used to initialize the dialog controls. Call `ShowModal` to display
2652 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2653 results with via the `wx.FontData` returned by `GetFontData`.
2655 _windows_
.FontDialog_swiginit(self
,_windows_
.new_FontDialog(*args
, **kwargs
))
2656 self
._setOORInfo
(self
)
2658 def GetFontData(*args
, **kwargs
):
2660 GetFontData(self) -> FontData
2662 Returns a reference to the internal `wx.FontData` used by the
2665 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2667 _windows_
.FontDialog_swigregister(FontDialog
)
2670 def GetFontFromUser(*args
, **kwargs
):
2671 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2672 return _windows_
.GetFontFromUser(*args
, **kwargs
)
2673 class MessageDialog(Dialog
):
2675 This class provides a simple dialog that shows a single or multi-line
2676 message, with a choice of OK, Yes, No and/or Cancel buttons.
2678 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2679 __repr__
= _swig_repr
2680 def __init__(self
, *args
, **kwargs
):
2682 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2683 long style=wxOK|wxCANCEL|wxCENTRE,
2684 Point pos=DefaultPosition) -> MessageDialog
2686 Constructor, use `ShowModal` to display the dialog.
2688 _windows_
.MessageDialog_swiginit(self
,_windows_
.new_MessageDialog(*args
, **kwargs
))
2689 self
._setOORInfo
(self
)
2691 _windows_
.MessageDialog_swigregister(MessageDialog
)
2693 class ProgressDialog(Frame
):
2695 A dialog that shows a short message and a progress bar. Optionally, it
2696 can display an ABORT button.
2698 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2699 __repr__
= _swig_repr
2700 def __init__(self
, *args
, **kwargs
):
2702 __init__(self, String title, String message, int maximum=100, Window parent=None,
2703 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2705 Constructor. Creates the dialog, displays it and disables user input
2706 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2709 _windows_
.ProgressDialog_swiginit(self
,_windows_
.new_ProgressDialog(*args
, **kwargs
))
2710 self
._setOORInfo
(self
)
2712 def Update(*args
, **kwargs
):
2714 Update(self, int value, String newmsg) --> (continue, skip)
2716 Updates the dialog, setting the progress bar to the new value and, if
2717 given changes the message above it. The value given should be less
2718 than or equal to the maximum value given to the constructor and the
2719 dialog is closed if it is equal to the maximum. Returns a tuple of
2720 boolean values, ``(continue, skip)`` where ``continue`` is ``True``
2721 unless the Cancel button has been pressed, and ``skip`` is ``False``
2722 unless the Skip button (if any) has been pressed.
2724 If the ``continue`` return value is ``false``, the application can either
2725 immediately destroy the dialog or ask the user for confirmation, and if the
2726 abort is not confirmed the dialog may be resumed with `Resume` function.
2729 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2731 def Resume(*args
, **kwargs
):
2735 Can be used to continue with the dialog, after the user had chosen to
2738 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2740 _windows_
.ProgressDialog_swigregister(ProgressDialog
)
2742 FR_DOWN
= _windows_
.FR_DOWN
2743 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2744 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2745 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2746 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2747 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2748 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2749 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2750 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2751 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2752 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2753 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2754 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2755 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2756 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2757 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2758 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2760 # For backwards compatibility. Should they be removed?
2761 EVT_COMMAND_FIND
= EVT_FIND
2762 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2763 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2764 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2765 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2767 class FindDialogEvent(_core
.CommandEvent
):
2768 """Events for the FindReplaceDialog"""
2769 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2770 __repr__
= _swig_repr
2771 def __init__(self
, *args
, **kwargs
):
2773 __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2775 Events for the FindReplaceDialog
2777 _windows_
.FindDialogEvent_swiginit(self
,_windows_
.new_FindDialogEvent(*args
, **kwargs
))
2778 def GetFlags(*args
, **kwargs
):
2780 GetFlags(self) -> int
2782 Get the currently selected flags: this is the combination of
2783 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2785 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2787 def GetFindString(*args
, **kwargs
):
2789 GetFindString(self) -> String
2791 Return the string to find (never empty).
2793 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2795 def GetReplaceString(*args
, **kwargs
):
2797 GetReplaceString(self) -> String
2799 Return the string to replace the search string with (only for replace
2800 and replace all events).
2802 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2804 def GetDialog(*args
, **kwargs
):
2806 GetDialog(self) -> FindReplaceDialog
2808 Return the pointer to the dialog which generated this event.
2810 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2812 def SetFlags(*args
, **kwargs
):
2813 """SetFlags(self, int flags)"""
2814 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2816 def SetFindString(*args
, **kwargs
):
2817 """SetFindString(self, String str)"""
2818 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2820 def SetReplaceString(*args
, **kwargs
):
2821 """SetReplaceString(self, String str)"""
2822 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2824 _windows_
.FindDialogEvent_swigregister(FindDialogEvent
)
2826 class FindReplaceData(_core
.Object
):
2828 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2829 to initialize the dialog with the default values and will keep the
2830 last values from the dialog when it is closed. It is also updated each
2831 time a `wx.FindDialogEvent` is generated so instead of using the
2832 `wx.FindDialogEvent` methods you can also directly query this object.
2834 Note that all SetXXX() methods may only be called before showing the
2835 dialog and calling them has no effect later.
2837 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2838 __repr__
= _swig_repr
2839 def __init__(self
, *args
, **kwargs
):
2841 __init__(self, int flags=0) -> FindReplaceData
2843 Constuctor initializes the flags to default value (0).
2845 _windows_
.FindReplaceData_swiginit(self
,_windows_
.new_FindReplaceData(*args
, **kwargs
))
2846 __swig_destroy__
= _windows_
.delete_FindReplaceData
2847 __del__
= lambda self
: None;
2848 def GetFindString(*args
, **kwargs
):
2850 GetFindString(self) -> String
2852 Get the string to find.
2854 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2856 def GetReplaceString(*args
, **kwargs
):
2858 GetReplaceString(self) -> String
2860 Get the replacement string.
2862 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2864 def GetFlags(*args
, **kwargs
):
2866 GetFlags(self) -> int
2868 Get the combination of flag values.
2870 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
2872 def SetFlags(*args
, **kwargs
):
2874 SetFlags(self, int flags)
2876 Set the flags to use to initialize the controls of the dialog.
2878 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
2880 def SetFindString(*args
, **kwargs
):
2882 SetFindString(self, String str)
2884 Set the string to find (used as initial value by the dialog).
2886 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
2888 def SetReplaceString(*args
, **kwargs
):
2890 SetReplaceString(self, String str)
2892 Set the replacement string (used as initial value by the dialog).
2894 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2896 _windows_
.FindReplaceData_swigregister(FindReplaceData
)
2898 class FindReplaceDialog(Dialog
):
2900 wx.FindReplaceDialog is a standard modeless dialog which is used to
2901 allow the user to search for some text (and possibly replace it with
2902 something else). The actual searching is supposed to be done in the
2903 owner window which is the parent of this dialog. Note that it means
2904 that unlike for the other standard dialogs this one must have a parent
2905 window. Also note that there is no way to use this dialog in a modal
2906 way; it is always, by design and implementation, modeless.
2908 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2909 __repr__
= _swig_repr
2910 def __init__(self
, *args
, **kwargs
):
2912 __init__(self, Window parent, FindReplaceData data, String title,
2913 int style=0) -> FindReplaceDialog
2915 Create a FindReplaceDialog. The parent and data parameters must be
2916 non-None. Use Show to display the dialog.
2918 _windows_
.FindReplaceDialog_swiginit(self
,_windows_
.new_FindReplaceDialog(*args
, **kwargs
))
2919 self
._setOORInfo
(self
)
2921 def Create(*args
, **kwargs
):
2923 Create(self, Window parent, FindReplaceData data, String title,
2924 int style=0) -> bool
2926 Create the dialog, for 2-phase create.
2928 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
2930 def GetData(*args
, **kwargs
):
2932 GetData(self) -> FindReplaceData
2934 Get the FindReplaceData object used by this dialog.
2936 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
2938 def SetData(*args
, **kwargs
):
2940 SetData(self, FindReplaceData data)
2942 Set the FindReplaceData object used by this dialog.
2944 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
2946 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialog
)
2948 def PreFindReplaceDialog(*args
, **kwargs
):
2950 PreFindReplaceDialog() -> FindReplaceDialog
2952 Precreate a FindReplaceDialog for 2-phase creation
2954 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
2957 #---------------------------------------------------------------------------
2959 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
2960 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
2961 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
2962 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
2963 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
2964 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
2965 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
2966 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
2967 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
2968 class MDIParentFrame(Frame
):
2969 """Proxy of C++ MDIParentFrame class"""
2970 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2971 __repr__
= _swig_repr
2972 def __init__(self
, *args
, **kwargs
):
2974 __init__(self, Window parent, int id=-1, String title=EmptyString,
2975 Point pos=DefaultPosition, Size size=DefaultSize,
2976 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2977 String name=FrameNameStr) -> MDIParentFrame
2979 _windows_
.MDIParentFrame_swiginit(self
,_windows_
.new_MDIParentFrame(*args
, **kwargs
))
2980 self
._setOORInfo
(self
)
2982 def Create(*args
, **kwargs
):
2984 Create(self, Window parent, int id=-1, String title=EmptyString,
2985 Point pos=DefaultPosition, Size size=DefaultSize,
2986 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2987 String name=FrameNameStr) -> bool
2989 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
2991 def ActivateNext(*args
, **kwargs
):
2992 """ActivateNext(self)"""
2993 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
2995 def ActivatePrevious(*args
, **kwargs
):
2996 """ActivatePrevious(self)"""
2997 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
2999 def ArrangeIcons(*args
, **kwargs
):
3000 """ArrangeIcons(self)"""
3001 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3003 def Cascade(*args
, **kwargs
):
3005 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3007 def GetActiveChild(*args
, **kwargs
):
3008 """GetActiveChild(self) -> MDIChildFrame"""
3009 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3011 def GetClientWindow(*args
, **kwargs
):
3012 """GetClientWindow(self) -> MDIClientWindow"""
3013 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3015 def GetToolBar(*args
, **kwargs
):
3016 """GetToolBar(self) -> Window"""
3017 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3019 def GetWindowMenu(*args
, **kwargs
):
3020 """GetWindowMenu(self) -> Menu"""
3021 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3023 def SetWindowMenu(*args
, **kwargs
):
3024 """SetWindowMenu(self, Menu menu)"""
3025 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3027 def Tile(*args
, **kwargs
):
3028 """Tile(self, int orient=HORIZONTAL)"""
3029 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3031 _windows_
.MDIParentFrame_swigregister(MDIParentFrame
)
3033 def PreMDIParentFrame(*args
, **kwargs
):
3034 """PreMDIParentFrame() -> MDIParentFrame"""
3035 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3038 class MDIChildFrame(Frame
):
3039 """Proxy of C++ MDIChildFrame class"""
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, MDIParentFrame parent, int id=-1, String title=EmptyString,
3045 Point pos=DefaultPosition, Size size=DefaultSize,
3046 long style=DEFAULT_FRAME_STYLE,
3047 String name=FrameNameStr) -> MDIChildFrame
3049 _windows_
.MDIChildFrame_swiginit(self
,_windows_
.new_MDIChildFrame(*args
, **kwargs
))
3050 self
._setOORInfo
(self
)
3052 def Create(*args
, **kwargs
):
3054 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3055 Point pos=DefaultPosition, Size size=DefaultSize,
3056 long style=DEFAULT_FRAME_STYLE,
3057 String name=FrameNameStr) -> bool
3059 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3061 def Activate(*args
, **kwargs
):
3062 """Activate(self)"""
3063 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3065 _windows_
.MDIChildFrame_swigregister(MDIChildFrame
)
3067 def PreMDIChildFrame(*args
, **kwargs
):
3068 """PreMDIChildFrame() -> MDIChildFrame"""
3069 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3072 class MDIClientWindow(_core
.Window
):
3073 """Proxy of C++ MDIClientWindow class"""
3074 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3075 __repr__
= _swig_repr
3076 def __init__(self
, *args
, **kwargs
):
3077 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3078 _windows_
.MDIClientWindow_swiginit(self
,_windows_
.new_MDIClientWindow(*args
, **kwargs
))
3079 self
._setOORInfo
(self
)
3081 def Create(*args
, **kwargs
):
3082 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3083 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3085 _windows_
.MDIClientWindow_swigregister(MDIClientWindow
)
3087 def PreMDIClientWindow(*args
, **kwargs
):
3088 """PreMDIClientWindow() -> MDIClientWindow"""
3089 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3092 #---------------------------------------------------------------------------
3094 class PyWindow(_core
.Window
):
3095 """Proxy of C++ PyWindow class"""
3096 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3097 __repr__
= _swig_repr
3098 def __init__(self
, *args
, **kwargs
):
3100 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3101 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3103 _windows_
.PyWindow_swiginit(self
,_windows_
.new_PyWindow(*args
, **kwargs
))
3104 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3106 def _setCallbackInfo(*args
, **kwargs
):
3107 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3108 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3110 def SetBestSize(*args
, **kwargs
):
3111 """SetBestSize(self, Size size)"""
3112 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3114 def DoEraseBackground(*args
, **kwargs
):
3115 """DoEraseBackground(self, DC dc) -> bool"""
3116 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3118 def DoMoveWindow(*args
, **kwargs
):
3119 """DoMoveWindow(self, int x, int y, int width, int height)"""
3120 return _windows_
.PyWindow_DoMoveWindow(*args
, **kwargs
)
3122 def DoSetSize(*args
, **kwargs
):
3123 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3124 return _windows_
.PyWindow_DoSetSize(*args
, **kwargs
)
3126 def DoSetClientSize(*args
, **kwargs
):
3127 """DoSetClientSize(self, int width, int height)"""
3128 return _windows_
.PyWindow_DoSetClientSize(*args
, **kwargs
)
3130 def DoSetVirtualSize(*args
, **kwargs
):
3131 """DoSetVirtualSize(self, int x, int y)"""
3132 return _windows_
.PyWindow_DoSetVirtualSize(*args
, **kwargs
)
3134 def DoGetSize(*args
, **kwargs
):
3135 """DoGetSize() -> (width, height)"""
3136 return _windows_
.PyWindow_DoGetSize(*args
, **kwargs
)
3138 def DoGetClientSize(*args
, **kwargs
):
3139 """DoGetClientSize() -> (width, height)"""
3140 return _windows_
.PyWindow_DoGetClientSize(*args
, **kwargs
)
3142 def DoGetPosition(*args
, **kwargs
):
3143 """DoGetPosition() -> (x,y)"""
3144 return _windows_
.PyWindow_DoGetPosition(*args
, **kwargs
)
3146 def DoGetVirtualSize(*args
, **kwargs
):
3147 """DoGetVirtualSize(self) -> Size"""
3148 return _windows_
.PyWindow_DoGetVirtualSize(*args
, **kwargs
)
3150 def DoGetBestSize(*args
, **kwargs
):
3151 """DoGetBestSize(self) -> Size"""
3152 return _windows_
.PyWindow_DoGetBestSize(*args
, **kwargs
)
3154 def GetDefaultAttributes(*args
, **kwargs
):
3155 """GetDefaultAttributes(self) -> VisualAttributes"""
3156 return _windows_
.PyWindow_GetDefaultAttributes(*args
, **kwargs
)
3158 def OnInternalIdle(*args
, **kwargs
):
3159 """OnInternalIdle(self)"""
3160 return _windows_
.PyWindow_OnInternalIdle(*args
, **kwargs
)
3162 def base_DoMoveWindow(*args
, **kw
):
3163 return PyWindow
.DoMoveWindow(*args
, **kw
)
3164 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3165 "Please use PyWindow.DoMoveWindow instead.")
3167 def base_DoSetSize(*args
, **kw
):
3168 return PyWindow
.DoSetSize(*args
, **kw
)
3169 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3170 "Please use PyWindow.DoSetSize instead.")
3172 def base_DoSetClientSize(*args
, **kw
):
3173 return PyWindow
.DoSetClientSize(*args
, **kw
)
3174 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3175 "Please use PyWindow.DoSetClientSize instead.")
3177 def base_DoSetVirtualSize(*args
, **kw
):
3178 return PyWindow
.DoSetVirtualSize(*args
, **kw
)
3179 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3180 "Please use PyWindow.DoSetVirtualSize instead.")
3182 def base_DoGetSize(*args
, **kw
):
3183 return PyWindow
.DoGetSize(*args
, **kw
)
3184 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3185 "Please use PyWindow.DoGetSize instead.")
3187 def base_DoGetClientSize(*args
, **kw
):
3188 return PyWindow
.DoGetClientSize(*args
, **kw
)
3189 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3190 "Please use PyWindow.DoGetClientSize instead.")
3192 def base_DoGetPosition(*args
, **kw
):
3193 return PyWindow
.DoGetPosition(*args
, **kw
)
3194 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3195 "Please use PyWindow.DoGetPosition instead.")
3197 def base_DoGetVirtualSize(*args
, **kw
):
3198 return PyWindow
.DoGetVirtualSize(*args
, **kw
)
3199 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3200 "Please use PyWindow.DoGetVirtualSize instead.")
3202 def base_DoGetBestSize(*args
, **kw
):
3203 return PyWindow
.DoGetBestSize(*args
, **kw
)
3204 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3205 "Please use PyWindow.DoGetBestSize instead.")
3207 def base_InitDialog(*args
, **kw
):
3208 return PyWindow
.InitDialog(*args
, **kw
)
3209 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3210 "Please use PyWindow.InitDialog instead.")
3212 def base_TransferDataToWindow(*args
, **kw
):
3213 return PyWindow
.TransferDataToWindow(*args
, **kw
)
3214 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3215 "Please use PyWindow.TransferDataToWindow instead.")
3217 def base_TransferDataFromWindow(*args
, **kw
):
3218 return PyWindow
.TransferDataFromWindow(*args
, **kw
)
3219 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3220 "Please use PyWindow.TransferDataFromWindow instead.")
3222 def base_Validate(*args
, **kw
):
3223 return PyWindow
.Validate(*args
, **kw
)
3224 base_Validate
= wx
._deprecated
(base_Validate
,
3225 "Please use PyWindow.Validate instead.")
3227 def base_AcceptsFocus(*args
, **kw
):
3228 return PyWindow
.AcceptsFocus(*args
, **kw
)
3229 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3230 "Please use PyWindow.AcceptsFocus instead.")
3232 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3233 return PyWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3234 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3235 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3237 def base_GetMaxSize(*args
, **kw
):
3238 return PyWindow
.GetMaxSize(*args
, **kw
)
3239 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3240 "Please use PyWindow.GetMaxSize instead.")
3242 def base_AddChild(*args
, **kw
):
3243 return PyWindow
.AddChild(*args
, **kw
)
3244 base_AddChild
= wx
._deprecated
(base_AddChild
,
3245 "Please use PyWindow.AddChild instead.")
3247 def base_RemoveChild(*args
, **kw
):
3248 return PyWindow
.RemoveChild(*args
, **kw
)
3249 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3250 "Please use PyWindow.RemoveChild instead.")
3252 def base_ShouldInheritColours(*args
, **kw
):
3253 return PyWindow
.ShouldInheritColours(*args
, **kw
)
3254 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3255 "Please use PyWindow.ShouldInheritColours instead.")
3257 def base_GetDefaultAttributes(*args
, **kw
):
3258 return PyWindow
.GetDefaultAttributes(*args
, **kw
)
3259 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3260 "Please use PyWindow.GetDefaultAttributes instead.")
3262 def base_OnInternalIdle(*args
, **kw
):
3263 return PyWindow
.OnInternalIdle(*args
, **kw
)
3264 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3265 "Please use PyWindow.OnInternalIdle instead.")
3267 _windows_
.PyWindow_swigregister(PyWindow
)
3269 def PrePyWindow(*args
, **kwargs
):
3270 """PrePyWindow() -> PyWindow"""
3271 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3274 class PyPanel(Panel
):
3275 """Proxy of C++ PyPanel class"""
3276 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3277 __repr__
= _swig_repr
3278 def __init__(self
, *args
, **kwargs
):
3280 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3281 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3283 _windows_
.PyPanel_swiginit(self
,_windows_
.new_PyPanel(*args
, **kwargs
))
3284 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3286 def _setCallbackInfo(*args
, **kwargs
):
3287 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3288 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3290 def SetBestSize(*args
, **kwargs
):
3291 """SetBestSize(self, Size size)"""
3292 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3294 def DoEraseBackground(*args
, **kwargs
):
3295 """DoEraseBackground(self, DC dc) -> bool"""
3296 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3298 def DoMoveWindow(*args
, **kwargs
):
3299 """DoMoveWindow(self, int x, int y, int width, int height)"""
3300 return _windows_
.PyPanel_DoMoveWindow(*args
, **kwargs
)
3302 def DoSetSize(*args
, **kwargs
):
3303 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3304 return _windows_
.PyPanel_DoSetSize(*args
, **kwargs
)
3306 def DoSetClientSize(*args
, **kwargs
):
3307 """DoSetClientSize(self, int width, int height)"""
3308 return _windows_
.PyPanel_DoSetClientSize(*args
, **kwargs
)
3310 def DoSetVirtualSize(*args
, **kwargs
):
3311 """DoSetVirtualSize(self, int x, int y)"""
3312 return _windows_
.PyPanel_DoSetVirtualSize(*args
, **kwargs
)
3314 def DoGetSize(*args
, **kwargs
):
3315 """DoGetSize() -> (width, height)"""
3316 return _windows_
.PyPanel_DoGetSize(*args
, **kwargs
)
3318 def DoGetClientSize(*args
, **kwargs
):
3319 """DoGetClientSize() -> (width, height)"""
3320 return _windows_
.PyPanel_DoGetClientSize(*args
, **kwargs
)
3322 def DoGetPosition(*args
, **kwargs
):
3323 """DoGetPosition() -> (x,y)"""
3324 return _windows_
.PyPanel_DoGetPosition(*args
, **kwargs
)
3326 def DoGetVirtualSize(*args
, **kwargs
):
3327 """DoGetVirtualSize(self) -> Size"""
3328 return _windows_
.PyPanel_DoGetVirtualSize(*args
, **kwargs
)
3330 def DoGetBestSize(*args
, **kwargs
):
3331 """DoGetBestSize(self) -> Size"""
3332 return _windows_
.PyPanel_DoGetBestSize(*args
, **kwargs
)
3334 def GetDefaultAttributes(*args
, **kwargs
):
3335 """GetDefaultAttributes(self) -> VisualAttributes"""
3336 return _windows_
.PyPanel_GetDefaultAttributes(*args
, **kwargs
)
3338 def OnInternalIdle(*args
, **kwargs
):
3339 """OnInternalIdle(self)"""
3340 return _windows_
.PyPanel_OnInternalIdle(*args
, **kwargs
)
3342 def base_DoMoveWindow(*args
, **kw
):
3343 return PyPanel
.DoMoveWindow(*args
, **kw
)
3344 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3345 "Please use PyPanel.DoMoveWindow instead.")
3347 def base_DoSetSize(*args
, **kw
):
3348 return PyPanel
.DoSetSize(*args
, **kw
)
3349 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3350 "Please use PyPanel.DoSetSize instead.")
3352 def base_DoSetClientSize(*args
, **kw
):
3353 return PyPanel
.DoSetClientSize(*args
, **kw
)
3354 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3355 "Please use PyPanel.DoSetClientSize instead.")
3357 def base_DoSetVirtualSize(*args
, **kw
):
3358 return PyPanel
.DoSetVirtualSize(*args
, **kw
)
3359 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3360 "Please use PyPanel.DoSetVirtualSize instead.")
3362 def base_DoGetSize(*args
, **kw
):
3363 return PyPanel
.DoGetSize(*args
, **kw
)
3364 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3365 "Please use PyPanel.DoGetSize instead.")
3367 def base_DoGetClientSize(*args
, **kw
):
3368 return PyPanel
.DoGetClientSize(*args
, **kw
)
3369 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3370 "Please use PyPanel.DoGetClientSize instead.")
3372 def base_DoGetPosition(*args
, **kw
):
3373 return PyPanel
.DoGetPosition(*args
, **kw
)
3374 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3375 "Please use PyPanel.DoGetPosition instead.")
3377 def base_DoGetVirtualSize(*args
, **kw
):
3378 return PyPanel
.DoGetVirtualSize(*args
, **kw
)
3379 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3380 "Please use PyPanel.DoGetVirtualSize instead.")
3382 def base_DoGetBestSize(*args
, **kw
):
3383 return PyPanel
.DoGetBestSize(*args
, **kw
)
3384 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3385 "Please use PyPanel.DoGetBestSize instead.")
3387 def base_InitDialog(*args
, **kw
):
3388 return PyPanel
.InitDialog(*args
, **kw
)
3389 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3390 "Please use PyPanel.InitDialog instead.")
3392 def base_TransferDataToWindow(*args
, **kw
):
3393 return PyPanel
.TransferDataToWindow(*args
, **kw
)
3394 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3395 "Please use PyPanel.TransferDataToWindow instead.")
3397 def base_TransferDataFromWindow(*args
, **kw
):
3398 return PyPanel
.TransferDataFromWindow(*args
, **kw
)
3399 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3400 "Please use PyPanel.TransferDataFromWindow instead.")
3402 def base_Validate(*args
, **kw
):
3403 return PyPanel
.Validate(*args
, **kw
)
3404 base_Validate
= wx
._deprecated
(base_Validate
,
3405 "Please use PyPanel.Validate instead.")
3407 def base_AcceptsFocus(*args
, **kw
):
3408 return PyPanel
.AcceptsFocus(*args
, **kw
)
3409 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3410 "Please use PyPanel.AcceptsFocus instead.")
3412 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3413 return PyPanel
.AcceptsFocusFromKeyboard(*args
, **kw
)
3414 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3415 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
3417 def base_GetMaxSize(*args
, **kw
):
3418 return PyPanel
.GetMaxSize(*args
, **kw
)
3419 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3420 "Please use PyPanel.GetMaxSize instead.")
3422 def base_AddChild(*args
, **kw
):
3423 return PyPanel
.AddChild(*args
, **kw
)
3424 base_AddChild
= wx
._deprecated
(base_AddChild
,
3425 "Please use PyPanel.AddChild instead.")
3427 def base_RemoveChild(*args
, **kw
):
3428 return PyPanel
.RemoveChild(*args
, **kw
)
3429 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3430 "Please use PyPanel.RemoveChild instead.")
3432 def base_ShouldInheritColours(*args
, **kw
):
3433 return PyPanel
.ShouldInheritColours(*args
, **kw
)
3434 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3435 "Please use PyPanel.ShouldInheritColours instead.")
3437 def base_GetDefaultAttributes(*args
, **kw
):
3438 return PyPanel
.GetDefaultAttributes(*args
, **kw
)
3439 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3440 "Please use PyPanel.GetDefaultAttributes instead.")
3442 def base_OnInternalIdle(*args
, **kw
):
3443 return PyPanel
.OnInternalIdle(*args
, **kw
)
3444 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3445 "Please use PyPanel.OnInternalIdle instead.")
3447 _windows_
.PyPanel_swigregister(PyPanel
)
3449 def PrePyPanel(*args
, **kwargs
):
3450 """PrePyPanel() -> PyPanel"""
3451 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3454 class PyScrolledWindow(ScrolledWindow
):
3455 """Proxy of C++ PyScrolledWindow class"""
3456 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3457 __repr__
= _swig_repr
3458 def __init__(self
, *args
, **kwargs
):
3460 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3461 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3463 _windows_
.PyScrolledWindow_swiginit(self
,_windows_
.new_PyScrolledWindow(*args
, **kwargs
))
3464 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3466 def _setCallbackInfo(*args
, **kwargs
):
3467 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3468 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3470 def SetBestSize(*args
, **kwargs
):
3471 """SetBestSize(self, Size size)"""
3472 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3474 def DoEraseBackground(*args
, **kwargs
):
3475 """DoEraseBackground(self, DC dc) -> bool"""
3476 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3478 def DoMoveWindow(*args
, **kwargs
):
3479 """DoMoveWindow(self, int x, int y, int width, int height)"""
3480 return _windows_
.PyScrolledWindow_DoMoveWindow(*args
, **kwargs
)
3482 def DoSetSize(*args
, **kwargs
):
3483 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3484 return _windows_
.PyScrolledWindow_DoSetSize(*args
, **kwargs
)
3486 def DoSetClientSize(*args
, **kwargs
):
3487 """DoSetClientSize(self, int width, int height)"""
3488 return _windows_
.PyScrolledWindow_DoSetClientSize(*args
, **kwargs
)
3490 def DoSetVirtualSize(*args
, **kwargs
):
3491 """DoSetVirtualSize(self, int x, int y)"""
3492 return _windows_
.PyScrolledWindow_DoSetVirtualSize(*args
, **kwargs
)
3494 def DoGetSize(*args
, **kwargs
):
3495 """DoGetSize() -> (width, height)"""
3496 return _windows_
.PyScrolledWindow_DoGetSize(*args
, **kwargs
)
3498 def DoGetClientSize(*args
, **kwargs
):
3499 """DoGetClientSize() -> (width, height)"""
3500 return _windows_
.PyScrolledWindow_DoGetClientSize(*args
, **kwargs
)
3502 def DoGetPosition(*args
, **kwargs
):
3503 """DoGetPosition() -> (x,y)"""
3504 return _windows_
.PyScrolledWindow_DoGetPosition(*args
, **kwargs
)
3506 def DoGetVirtualSize(*args
, **kwargs
):
3507 """DoGetVirtualSize(self) -> Size"""
3508 return _windows_
.PyScrolledWindow_DoGetVirtualSize(*args
, **kwargs
)
3510 def DoGetBestSize(*args
, **kwargs
):
3511 """DoGetBestSize(self) -> Size"""
3512 return _windows_
.PyScrolledWindow_DoGetBestSize(*args
, **kwargs
)
3514 def GetDefaultAttributes(*args
, **kwargs
):
3515 """GetDefaultAttributes(self) -> VisualAttributes"""
3516 return _windows_
.PyScrolledWindow_GetDefaultAttributes(*args
, **kwargs
)
3518 def OnInternalIdle(*args
, **kwargs
):
3519 """OnInternalIdle(self)"""
3520 return _windows_
.PyScrolledWindow_OnInternalIdle(*args
, **kwargs
)
3522 def base_DoMoveWindow(*args
, **kw
):
3523 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
3524 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3525 "Please use PyScrolledWindow.DoMoveWindow instead.")
3527 def base_DoSetSize(*args
, **kw
):
3528 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
3529 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3530 "Please use PyScrolledWindow.DoSetSize instead.")
3532 def base_DoSetClientSize(*args
, **kw
):
3533 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
3534 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3535 "Please use PyScrolledWindow.DoSetClientSize instead.")
3537 def base_DoSetVirtualSize(*args
, **kw
):
3538 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
3539 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3540 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
3542 def base_DoGetSize(*args
, **kw
):
3543 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
3544 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3545 "Please use PyScrolledWindow.DoGetSize instead.")
3547 def base_DoGetClientSize(*args
, **kw
):
3548 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
3549 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3550 "Please use PyScrolledWindow.DoGetClientSize instead.")
3552 def base_DoGetPosition(*args
, **kw
):
3553 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
3554 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3555 "Please use PyScrolledWindow.DoGetPosition instead.")
3557 def base_DoGetVirtualSize(*args
, **kw
):
3558 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
3559 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3560 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
3562 def base_DoGetBestSize(*args
, **kw
):
3563 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
3564 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3565 "Please use PyScrolledWindow.DoGetBestSize instead.")
3567 def base_InitDialog(*args
, **kw
):
3568 return PyScrolledWindow
.InitDialog(*args
, **kw
)
3569 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3570 "Please use PyScrolledWindow.InitDialog instead.")
3572 def base_TransferDataToWindow(*args
, **kw
):
3573 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
3574 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3575 "Please use PyScrolledWindow.TransferDataToWindow instead.")
3577 def base_TransferDataFromWindow(*args
, **kw
):
3578 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
3579 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3580 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
3582 def base_Validate(*args
, **kw
):
3583 return PyScrolledWindow
.Validate(*args
, **kw
)
3584 base_Validate
= wx
._deprecated
(base_Validate
,
3585 "Please use PyScrolledWindow.Validate instead.")
3587 def base_AcceptsFocus(*args
, **kw
):
3588 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
3589 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3590 "Please use PyScrolledWindow.AcceptsFocus instead.")
3592 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3593 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3594 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3595 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
3597 def base_GetMaxSize(*args
, **kw
):
3598 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
3599 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3600 "Please use PyScrolledWindow.GetMaxSize instead.")
3602 def base_AddChild(*args
, **kw
):
3603 return PyScrolledWindow
.AddChild(*args
, **kw
)
3604 base_AddChild
= wx
._deprecated
(base_AddChild
,
3605 "Please use PyScrolledWindow.AddChild instead.")
3607 def base_RemoveChild(*args
, **kw
):
3608 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
3609 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3610 "Please use PyScrolledWindow.RemoveChild instead.")
3612 def base_ShouldInheritColours(*args
, **kw
):
3613 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
3614 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3615 "Please use PyScrolledWindow.ShouldInheritColours instead.")
3617 def base_GetDefaultAttributes(*args
, **kw
):
3618 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
3619 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3620 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
3622 def base_OnInternalIdle(*args
, **kw
):
3623 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
3624 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3625 "Please use PyScrolledWindow.OnInternalIdle instead.")
3627 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindow
)
3629 def PrePyScrolledWindow(*args
, **kwargs
):
3630 """PrePyScrolledWindow() -> PyScrolledWindow"""
3631 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3634 #---------------------------------------------------------------------------
3636 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3637 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3638 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3639 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3640 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3641 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3642 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3643 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3644 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3645 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3646 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3647 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3648 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3649 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3650 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3651 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3652 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3653 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3654 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3655 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3656 class PrintData(_core
.Object
):
3657 """Proxy of C++ PrintData class"""
3658 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3659 __repr__
= _swig_repr
3660 def __init__(self
, *args
):
3662 __init__(self) -> PrintData
3663 __init__(self, PrintData data) -> PrintData
3665 _windows_
.PrintData_swiginit(self
,_windows_
.new_PrintData(*args
))
3666 __swig_destroy__
= _windows_
.delete_PrintData
3667 __del__
= lambda self
: None;
3668 def GetNoCopies(*args
, **kwargs
):
3669 """GetNoCopies(self) -> int"""
3670 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3672 def GetCollate(*args
, **kwargs
):
3673 """GetCollate(self) -> bool"""
3674 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3676 def GetOrientation(*args
, **kwargs
):
3677 """GetOrientation(self) -> int"""
3678 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3680 def Ok(*args
, **kwargs
):
3681 """Ok(self) -> bool"""
3682 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3684 def GetPrinterName(*args
, **kwargs
):
3685 """GetPrinterName(self) -> String"""
3686 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3688 def GetColour(*args
, **kwargs
):
3689 """GetColour(self) -> bool"""
3690 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3692 def GetDuplex(*args
, **kwargs
):
3693 """GetDuplex(self) -> int"""
3694 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3696 def GetPaperId(*args
, **kwargs
):
3697 """GetPaperId(self) -> int"""
3698 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3700 def GetPaperSize(*args
, **kwargs
):
3701 """GetPaperSize(self) -> Size"""
3702 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3704 def GetQuality(*args
, **kwargs
):
3705 """GetQuality(self) -> int"""
3706 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3708 def GetBin(*args
, **kwargs
):
3709 """GetBin(self) -> int"""
3710 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3712 def GetPrintMode(*args
, **kwargs
):
3713 """GetPrintMode(self) -> int"""
3714 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3716 def SetNoCopies(*args
, **kwargs
):
3717 """SetNoCopies(self, int v)"""
3718 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3720 def SetCollate(*args
, **kwargs
):
3721 """SetCollate(self, bool flag)"""
3722 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3724 def SetOrientation(*args
, **kwargs
):
3725 """SetOrientation(self, int orient)"""
3726 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3728 def SetPrinterName(*args
, **kwargs
):
3729 """SetPrinterName(self, String name)"""
3730 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3732 def SetColour(*args
, **kwargs
):
3733 """SetColour(self, bool colour)"""
3734 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3736 def SetDuplex(*args
, **kwargs
):
3737 """SetDuplex(self, int duplex)"""
3738 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3740 def SetPaperId(*args
, **kwargs
):
3741 """SetPaperId(self, int sizeId)"""
3742 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3744 def SetPaperSize(*args
, **kwargs
):
3745 """SetPaperSize(self, Size sz)"""
3746 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3748 def SetQuality(*args
, **kwargs
):
3749 """SetQuality(self, int quality)"""
3750 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3752 def SetBin(*args
, **kwargs
):
3753 """SetBin(self, int bin)"""
3754 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3756 def SetPrintMode(*args
, **kwargs
):
3757 """SetPrintMode(self, int printMode)"""
3758 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3760 def GetFilename(*args
, **kwargs
):
3761 """GetFilename(self) -> String"""
3762 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3764 def SetFilename(*args
, **kwargs
):
3765 """SetFilename(self, String filename)"""
3766 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3768 def __nonzero__(self
): return self
.Ok()
3769 def GetPrivData(*args
, **kwargs
):
3770 """GetPrivData(self) -> PyObject"""
3771 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
3773 def SetPrivData(*args
, **kwargs
):
3774 """SetPrivData(self, PyObject data)"""
3775 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
3777 _windows_
.PrintData_swigregister(PrintData
)
3778 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3779 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3781 class PageSetupDialogData(_core
.Object
):
3782 """Proxy of C++ PageSetupDialogData class"""
3783 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3784 __repr__
= _swig_repr
3785 def __init__(self
, *args
):
3787 __init__(self) -> PageSetupDialogData
3788 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3789 __init__(self, PrintData data) -> PageSetupDialogData
3791 _windows_
.PageSetupDialogData_swiginit(self
,_windows_
.new_PageSetupDialogData(*args
))
3792 __swig_destroy__
= _windows_
.delete_PageSetupDialogData
3793 __del__
= lambda self
: None;
3794 def EnableHelp(*args
, **kwargs
):
3795 """EnableHelp(self, bool flag)"""
3796 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3798 def EnableMargins(*args
, **kwargs
):
3799 """EnableMargins(self, bool flag)"""
3800 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3802 def EnableOrientation(*args
, **kwargs
):
3803 """EnableOrientation(self, bool flag)"""
3804 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3806 def EnablePaper(*args
, **kwargs
):
3807 """EnablePaper(self, bool flag)"""
3808 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3810 def EnablePrinter(*args
, **kwargs
):
3811 """EnablePrinter(self, bool flag)"""
3812 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3814 def GetDefaultMinMargins(*args
, **kwargs
):
3815 """GetDefaultMinMargins(self) -> bool"""
3816 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3818 def GetEnableMargins(*args
, **kwargs
):
3819 """GetEnableMargins(self) -> bool"""
3820 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3822 def GetEnableOrientation(*args
, **kwargs
):
3823 """GetEnableOrientation(self) -> bool"""
3824 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3826 def GetEnablePaper(*args
, **kwargs
):
3827 """GetEnablePaper(self) -> bool"""
3828 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3830 def GetEnablePrinter(*args
, **kwargs
):
3831 """GetEnablePrinter(self) -> bool"""
3832 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3834 def GetEnableHelp(*args
, **kwargs
):
3835 """GetEnableHelp(self) -> bool"""
3836 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3838 def GetDefaultInfo(*args
, **kwargs
):
3839 """GetDefaultInfo(self) -> bool"""
3840 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3842 def GetMarginTopLeft(*args
, **kwargs
):
3843 """GetMarginTopLeft(self) -> Point"""
3844 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3846 def GetMarginBottomRight(*args
, **kwargs
):
3847 """GetMarginBottomRight(self) -> Point"""
3848 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3850 def GetMinMarginTopLeft(*args
, **kwargs
):
3851 """GetMinMarginTopLeft(self) -> Point"""
3852 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3854 def GetMinMarginBottomRight(*args
, **kwargs
):
3855 """GetMinMarginBottomRight(self) -> Point"""
3856 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3858 def GetPaperId(*args
, **kwargs
):
3859 """GetPaperId(self) -> int"""
3860 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3862 def GetPaperSize(*args
, **kwargs
):
3863 """GetPaperSize(self) -> Size"""
3864 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3866 def GetPrintData(*args
, **kwargs
):
3867 """GetPrintData(self) -> PrintData"""
3868 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3870 def Ok(*args
, **kwargs
):
3871 """Ok(self) -> bool"""
3872 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3874 def SetDefaultInfo(*args
, **kwargs
):
3875 """SetDefaultInfo(self, bool flag)"""
3876 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3878 def SetDefaultMinMargins(*args
, **kwargs
):
3879 """SetDefaultMinMargins(self, bool flag)"""
3880 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3882 def SetMarginTopLeft(*args
, **kwargs
):
3883 """SetMarginTopLeft(self, Point pt)"""
3884 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3886 def SetMarginBottomRight(*args
, **kwargs
):
3887 """SetMarginBottomRight(self, Point pt)"""
3888 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3890 def SetMinMarginTopLeft(*args
, **kwargs
):
3891 """SetMinMarginTopLeft(self, Point pt)"""
3892 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3894 def SetMinMarginBottomRight(*args
, **kwargs
):
3895 """SetMinMarginBottomRight(self, Point pt)"""
3896 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3898 def SetPaperId(*args
, **kwargs
):
3899 """SetPaperId(self, int id)"""
3900 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3902 def SetPaperSize(*args
, **kwargs
):
3903 """SetPaperSize(self, Size size)"""
3904 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3906 def SetPrintData(*args
, **kwargs
):
3907 """SetPrintData(self, PrintData printData)"""
3908 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3910 def CalculateIdFromPaperSize(*args
, **kwargs
):
3911 """CalculateIdFromPaperSize(self)"""
3912 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
3914 def CalculatePaperSizeFromId(*args
, **kwargs
):
3915 """CalculatePaperSizeFromId(self)"""
3916 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
3918 def __nonzero__(self
): return self
.Ok()
3919 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogData
)
3921 class PageSetupDialog(_core
.Object
):
3922 """Proxy of C++ PageSetupDialog class"""
3923 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3924 __repr__
= _swig_repr
3925 def __init__(self
, *args
, **kwargs
):
3926 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3927 _windows_
.PageSetupDialog_swiginit(self
,_windows_
.new_PageSetupDialog(*args
, **kwargs
))
3928 def GetPageSetupData(*args
, **kwargs
):
3929 """GetPageSetupData(self) -> PageSetupDialogData"""
3930 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3932 def GetPageSetupDialogData(*args
, **kwargs
):
3933 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
3934 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
3936 def ShowModal(*args
, **kwargs
):
3937 """ShowModal(self) -> int"""
3938 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3940 _windows_
.PageSetupDialog_swigregister(PageSetupDialog
)
3942 class PrintDialogData(_core
.Object
):
3943 """Proxy of C++ PrintDialogData class"""
3944 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3945 __repr__
= _swig_repr
3946 def __init__(self
, *args
):
3948 __init__(self) -> PrintDialogData
3949 __init__(self, PrintData printData) -> PrintDialogData
3950 __init__(self, PrintDialogData printData) -> PrintDialogData
3952 _windows_
.PrintDialogData_swiginit(self
,_windows_
.new_PrintDialogData(*args
))
3953 __swig_destroy__
= _windows_
.delete_PrintDialogData
3954 __del__
= lambda self
: None;
3955 def GetFromPage(*args
, **kwargs
):
3956 """GetFromPage(self) -> int"""
3957 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
3959 def GetToPage(*args
, **kwargs
):
3960 """GetToPage(self) -> int"""
3961 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
3963 def GetMinPage(*args
, **kwargs
):
3964 """GetMinPage(self) -> int"""
3965 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
3967 def GetMaxPage(*args
, **kwargs
):
3968 """GetMaxPage(self) -> int"""
3969 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
3971 def GetNoCopies(*args
, **kwargs
):
3972 """GetNoCopies(self) -> int"""
3973 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
3975 def GetAllPages(*args
, **kwargs
):
3976 """GetAllPages(self) -> bool"""
3977 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
3979 def GetSelection(*args
, **kwargs
):
3980 """GetSelection(self) -> bool"""
3981 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
3983 def GetCollate(*args
, **kwargs
):
3984 """GetCollate(self) -> bool"""
3985 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
3987 def GetPrintToFile(*args
, **kwargs
):
3988 """GetPrintToFile(self) -> bool"""
3989 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
3991 def SetFromPage(*args
, **kwargs
):
3992 """SetFromPage(self, int v)"""
3993 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
3995 def SetToPage(*args
, **kwargs
):
3996 """SetToPage(self, int v)"""
3997 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
3999 def SetMinPage(*args
, **kwargs
):
4000 """SetMinPage(self, int v)"""
4001 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4003 def SetMaxPage(*args
, **kwargs
):
4004 """SetMaxPage(self, int v)"""
4005 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4007 def SetNoCopies(*args
, **kwargs
):
4008 """SetNoCopies(self, int v)"""
4009 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4011 def SetAllPages(*args
, **kwargs
):
4012 """SetAllPages(self, bool flag)"""
4013 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4015 def SetSelection(*args
, **kwargs
):
4016 """SetSelection(self, bool flag)"""
4017 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4019 def SetCollate(*args
, **kwargs
):
4020 """SetCollate(self, bool flag)"""
4021 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4023 def SetPrintToFile(*args
, **kwargs
):
4024 """SetPrintToFile(self, bool flag)"""
4025 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4027 def EnablePrintToFile(*args
, **kwargs
):
4028 """EnablePrintToFile(self, bool flag)"""
4029 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4031 def EnableSelection(*args
, **kwargs
):
4032 """EnableSelection(self, bool flag)"""
4033 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4035 def EnablePageNumbers(*args
, **kwargs
):
4036 """EnablePageNumbers(self, bool flag)"""
4037 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4039 def EnableHelp(*args
, **kwargs
):
4040 """EnableHelp(self, bool flag)"""
4041 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4043 def GetEnablePrintToFile(*args
, **kwargs
):
4044 """GetEnablePrintToFile(self) -> bool"""
4045 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4047 def GetEnableSelection(*args
, **kwargs
):
4048 """GetEnableSelection(self) -> bool"""
4049 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4051 def GetEnablePageNumbers(*args
, **kwargs
):
4052 """GetEnablePageNumbers(self) -> bool"""
4053 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4055 def GetEnableHelp(*args
, **kwargs
):
4056 """GetEnableHelp(self) -> bool"""
4057 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4059 def Ok(*args
, **kwargs
):
4060 """Ok(self) -> bool"""
4061 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4063 def GetPrintData(*args
, **kwargs
):
4064 """GetPrintData(self) -> PrintData"""
4065 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4067 def SetPrintData(*args
, **kwargs
):
4068 """SetPrintData(self, PrintData printData)"""
4069 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4071 def __nonzero__(self
): return self
.Ok()
4072 _windows_
.PrintDialogData_swigregister(PrintDialogData
)
4074 class PrintDialog(_core
.Object
):
4075 """Proxy of C++ PrintDialog class"""
4076 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4077 __repr__
= _swig_repr
4078 def __init__(self
, *args
, **kwargs
):
4079 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4080 _windows_
.PrintDialog_swiginit(self
,_windows_
.new_PrintDialog(*args
, **kwargs
))
4081 def ShowModal(*args
, **kwargs
):
4082 """ShowModal(self) -> int"""
4083 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4085 def GetPrintDialogData(*args
, **kwargs
):
4086 """GetPrintDialogData(self) -> PrintDialogData"""
4087 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4089 def GetPrintData(*args
, **kwargs
):
4090 """GetPrintData(self) -> PrintData"""
4091 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4093 def GetPrintDC(*args
, **kwargs
):
4094 """GetPrintDC(self) -> DC"""
4095 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4097 _windows_
.PrintDialog_swigregister(PrintDialog
)
4099 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4100 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4101 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4102 class Printer(_core
.Object
):
4103 """Proxy of C++ Printer class"""
4104 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4105 __repr__
= _swig_repr
4106 def __init__(self
, *args
, **kwargs
):
4107 """__init__(self, PrintDialogData data=None) -> Printer"""
4108 _windows_
.Printer_swiginit(self
,_windows_
.new_Printer(*args
, **kwargs
))
4109 __swig_destroy__
= _windows_
.delete_Printer
4110 __del__
= lambda self
: None;
4111 def CreateAbortWindow(*args
, **kwargs
):
4112 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4113 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4115 def ReportError(*args
, **kwargs
):
4116 """ReportError(self, Window parent, Printout printout, String message)"""
4117 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4119 def Setup(*args
, **kwargs
):
4120 """Setup(self, Window parent) -> bool"""
4121 return _windows_
.Printer_Setup(*args
, **kwargs
)
4123 def Print(*args
, **kwargs
):
4124 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4125 return _windows_
.Printer_Print(*args
, **kwargs
)
4127 def PrintDialog(*args
, **kwargs
):
4128 """PrintDialog(self, Window parent) -> DC"""
4129 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4131 def GetPrintDialogData(*args
, **kwargs
):
4132 """GetPrintDialogData(self) -> PrintDialogData"""
4133 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4135 def GetAbort(*args
, **kwargs
):
4136 """GetAbort(self) -> bool"""
4137 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4139 def GetLastError(*args
, **kwargs
):
4140 """GetLastError() -> int"""
4141 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4143 GetLastError
= staticmethod(GetLastError
)
4144 _windows_
.Printer_swigregister(Printer
)
4146 def Printer_GetLastError(*args
):
4147 """Printer_GetLastError() -> int"""
4148 return _windows_
.Printer_GetLastError(*args
)
4150 class Printout(_core
.Object
):
4151 """Proxy of C++ Printout class"""
4152 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4153 __repr__
= _swig_repr
4154 def __init__(self
, *args
, **kwargs
):
4155 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4156 _windows_
.Printout_swiginit(self
,_windows_
.new_Printout(*args
, **kwargs
))
4157 self
._setCallbackInfo
(self
, Printout
)
4159 __swig_destroy__
= _windows_
.delete_Printout
4160 __del__
= lambda self
: None;
4161 def _setCallbackInfo(*args
, **kwargs
):
4162 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4163 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4165 def GetTitle(*args
, **kwargs
):
4166 """GetTitle(self) -> String"""
4167 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4169 def GetDC(*args
, **kwargs
):
4170 """GetDC(self) -> DC"""
4171 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4173 def SetDC(*args
, **kwargs
):
4174 """SetDC(self, DC dc)"""
4175 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4177 def SetPageSizePixels(*args
, **kwargs
):
4178 """SetPageSizePixels(self, int w, int h)"""
4179 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4181 def GetPageSizePixels(*args
, **kwargs
):
4182 """GetPageSizePixels() -> (w, h)"""
4183 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4185 def SetPageSizeMM(*args
, **kwargs
):
4186 """SetPageSizeMM(self, int w, int h)"""
4187 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4189 def GetPageSizeMM(*args
, **kwargs
):
4190 """GetPageSizeMM() -> (w, h)"""
4191 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4193 def SetPPIScreen(*args
, **kwargs
):
4194 """SetPPIScreen(self, int x, int y)"""
4195 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4197 def GetPPIScreen(*args
, **kwargs
):
4198 """GetPPIScreen() -> (x,y)"""
4199 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4201 def SetPPIPrinter(*args
, **kwargs
):
4202 """SetPPIPrinter(self, int x, int y)"""
4203 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4205 def GetPPIPrinter(*args
, **kwargs
):
4206 """GetPPIPrinter() -> (x,y)"""
4207 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4209 def IsPreview(*args
, **kwargs
):
4210 """IsPreview(self) -> bool"""
4211 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4213 def SetIsPreview(*args
, **kwargs
):
4214 """SetIsPreview(self, bool p)"""
4215 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4217 def OnBeginDocument(*args
, **kwargs
):
4218 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4219 return _windows_
.Printout_OnBeginDocument(*args
, **kwargs
)
4221 def OnEndDocument(*args
, **kwargs
):
4222 """OnEndDocument(self)"""
4223 return _windows_
.Printout_OnEndDocument(*args
, **kwargs
)
4225 def OnBeginPrinting(*args
, **kwargs
):
4226 """OnBeginPrinting(self)"""
4227 return _windows_
.Printout_OnBeginPrinting(*args
, **kwargs
)
4229 def OnEndPrinting(*args
, **kwargs
):
4230 """OnEndPrinting(self)"""
4231 return _windows_
.Printout_OnEndPrinting(*args
, **kwargs
)
4233 def OnPreparePrinting(*args
, **kwargs
):
4234 """OnPreparePrinting(self)"""
4235 return _windows_
.Printout_OnPreparePrinting(*args
, **kwargs
)
4237 def HasPage(*args
, **kwargs
):
4238 """HasPage(self, int page) -> bool"""
4239 return _windows_
.Printout_HasPage(*args
, **kwargs
)
4241 def GetPageInfo(*args
, **kwargs
):
4242 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4243 return _windows_
.Printout_GetPageInfo(*args
, **kwargs
)
4245 def base_OnBeginDocument(*args
, **kw
):
4246 return Printout
.OnBeginDocument(*args
, **kw
)
4247 base_OnBeginDocument
= wx
._deprecated
(base_OnBeginDocument
,
4248 "Please use Printout.OnBeginDocument instead.")
4250 def base_OnEndDocument(*args
, **kw
):
4251 return Printout
.OnEndDocument(*args
, **kw
)
4252 base_OnEndDocument
= wx
._deprecated
(base_OnEndDocument
,
4253 "Please use Printout.OnEndDocument instead.")
4255 def base_OnBeginPrinting(*args
, **kw
):
4256 return Printout
.OnBeginPrinting(*args
, **kw
)
4257 base_OnBeginPrinting
= wx
._deprecated
(base_OnBeginPrinting
,
4258 "Please use Printout.OnBeginPrinting instead.")
4260 def base_OnEndPrinting(*args
, **kw
):
4261 return Printout
.OnEndPrinting(*args
, **kw
)
4262 base_OnEndPrinting
= wx
._deprecated
(base_OnEndPrinting
,
4263 "Please use Printout.OnEndPrinting instead.")
4265 def base_OnPreparePrinting(*args
, **kw
):
4266 return Printout
.OnPreparePrinting(*args
, **kw
)
4267 base_OnPreparePrinting
= wx
._deprecated
(base_OnPreparePrinting
,
4268 "Please use Printout.OnPreparePrinting instead.")
4270 def base_GetPageInfo(*args
, **kw
):
4271 return Printout
.GetPageInfo(*args
, **kw
)
4272 base_GetPageInfo
= wx
._deprecated
(base_GetPageInfo
,
4273 "Please use Printout.GetPageInfo instead.")
4275 _windows_
.Printout_swigregister(Printout
)
4277 class PreviewCanvas(ScrolledWindow
):
4278 """Proxy of C++ PreviewCanvas class"""
4279 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4280 __repr__
= _swig_repr
4281 def __init__(self
, *args
, **kwargs
):
4283 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4284 Size size=DefaultSize, long style=0,
4285 String name=PreviewCanvasNameStr) -> PreviewCanvas
4287 _windows_
.PreviewCanvas_swiginit(self
,_windows_
.new_PreviewCanvas(*args
, **kwargs
))
4288 self
._setOORInfo
(self
)
4290 _windows_
.PreviewCanvas_swigregister(PreviewCanvas
)
4292 class PreviewFrame(Frame
):
4293 """Proxy of C++ PreviewFrame class"""
4294 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4295 __repr__
= _swig_repr
4296 def __init__(self
, *args
, **kwargs
):
4298 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4299 Size size=DefaultSize,
4300 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4302 _windows_
.PreviewFrame_swiginit(self
,_windows_
.new_PreviewFrame(*args
, **kwargs
))
4303 self
._setOORInfo
(self
)
4305 def Initialize(*args
, **kwargs
):
4306 """Initialize(self)"""
4307 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4309 def CreateControlBar(*args
, **kwargs
):
4310 """CreateControlBar(self)"""
4311 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4313 def CreateCanvas(*args
, **kwargs
):
4314 """CreateCanvas(self)"""
4315 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4317 def GetControlBar(*args
, **kwargs
):
4318 """GetControlBar(self) -> PreviewControlBar"""
4319 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4321 _windows_
.PreviewFrame_swigregister(PreviewFrame
)
4323 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4324 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4325 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4326 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4327 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4328 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4329 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4330 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4331 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4332 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4333 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4334 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4335 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4336 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4337 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4338 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4339 class PreviewControlBar(Panel
):
4340 """Proxy of C++ PreviewControlBar class"""
4341 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4342 __repr__
= _swig_repr
4343 def __init__(self
, *args
, **kwargs
):
4345 __init__(self, PrintPreview preview, long buttons, Window parent,
4346 Point pos=DefaultPosition, Size size=DefaultSize,
4347 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4349 _windows_
.PreviewControlBar_swiginit(self
,_windows_
.new_PreviewControlBar(*args
, **kwargs
))
4350 self
._setOORInfo
(self
)
4352 def GetZoomControl(*args
, **kwargs
):
4353 """GetZoomControl(self) -> int"""
4354 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4356 def SetZoomControl(*args
, **kwargs
):
4357 """SetZoomControl(self, int zoom)"""
4358 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4360 def GetPrintPreview(*args
, **kwargs
):
4361 """GetPrintPreview(self) -> PrintPreview"""
4362 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4364 def OnNext(*args
, **kwargs
):
4366 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4368 def OnPrevious(*args
, **kwargs
):
4369 """OnPrevious(self)"""
4370 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4372 def OnFirst(*args
, **kwargs
):
4374 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4376 def OnLast(*args
, **kwargs
):
4378 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4380 def OnGoto(*args
, **kwargs
):
4382 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4384 _windows_
.PreviewControlBar_swigregister(PreviewControlBar
)
4386 class PrintPreview(_core
.Object
):
4387 """Proxy of C++ PrintPreview class"""
4388 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4389 __repr__
= _swig_repr
4390 def __init__(self
, *args
):
4392 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4393 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4395 _windows_
.PrintPreview_swiginit(self
,_windows_
.new_PrintPreview(*args
))
4396 __swig_destroy__
= _windows_
.delete_PrintPreview
4397 __del__
= lambda self
: None;
4398 def SetCurrentPage(*args
, **kwargs
):
4399 """SetCurrentPage(self, int pageNum) -> bool"""
4400 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4402 def GetCurrentPage(*args
, **kwargs
):
4403 """GetCurrentPage(self) -> int"""
4404 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4406 def SetPrintout(*args
, **kwargs
):
4407 """SetPrintout(self, Printout printout)"""
4408 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4410 def GetPrintout(*args
, **kwargs
):
4411 """GetPrintout(self) -> Printout"""
4412 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4414 def GetPrintoutForPrinting(*args
, **kwargs
):
4415 """GetPrintoutForPrinting(self) -> Printout"""
4416 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4418 def SetFrame(*args
, **kwargs
):
4419 """SetFrame(self, Frame frame)"""
4420 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4422 def SetCanvas(*args
, **kwargs
):
4423 """SetCanvas(self, PreviewCanvas canvas)"""
4424 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4426 def GetFrame(*args
, **kwargs
):
4427 """GetFrame(self) -> Frame"""
4428 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4430 def GetCanvas(*args
, **kwargs
):
4431 """GetCanvas(self) -> PreviewCanvas"""
4432 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4434 def PaintPage(*args
, **kwargs
):
4435 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4436 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4438 def DrawBlankPage(*args
, **kwargs
):
4439 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4440 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4442 def RenderPage(*args
, **kwargs
):
4443 """RenderPage(self, int pageNum) -> bool"""
4444 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4446 def AdjustScrollbars(*args
, **kwargs
):
4447 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4448 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4450 def GetPrintDialogData(*args
, **kwargs
):
4451 """GetPrintDialogData(self) -> PrintDialogData"""
4452 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4454 def SetZoom(*args
, **kwargs
):
4455 """SetZoom(self, int percent)"""
4456 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4458 def GetZoom(*args
, **kwargs
):
4459 """GetZoom(self) -> int"""
4460 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4462 def GetMaxPage(*args
, **kwargs
):
4463 """GetMaxPage(self) -> int"""
4464 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4466 def GetMinPage(*args
, **kwargs
):
4467 """GetMinPage(self) -> int"""
4468 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4470 def Ok(*args
, **kwargs
):
4471 """Ok(self) -> bool"""
4472 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4474 def SetOk(*args
, **kwargs
):
4475 """SetOk(self, bool ok)"""
4476 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4478 def Print(*args
, **kwargs
):
4479 """Print(self, bool interactive) -> bool"""
4480 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4482 def DetermineScaling(*args
, **kwargs
):
4483 """DetermineScaling(self)"""
4484 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4486 def __nonzero__(self
): return self
.Ok()
4487 _windows_
.PrintPreview_swigregister(PrintPreview
)
4489 class PyPrintPreview(PrintPreview
):
4490 """Proxy of C++ PyPrintPreview class"""
4491 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4492 __repr__
= _swig_repr
4493 def __init__(self
, *args
):
4495 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4496 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4498 _windows_
.PyPrintPreview_swiginit(self
,_windows_
.new_PyPrintPreview(*args
))
4499 self
._setCallbackInfo
(self
, PyPrintPreview
)
4501 def _setCallbackInfo(*args
, **kwargs
):
4502 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4503 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4505 def base_SetCurrentPage(*args
, **kw
):
4506 return PyPrintPreview
.SetCurrentPage(*args
, **kw
)
4507 base_SetCurrentPage
= wx
._deprecated
(base_SetCurrentPage
,
4508 "Please use PyPrintPreview.SetCurrentPage instead.")
4510 def base_PaintPage(*args
, **kw
):
4511 return PyPrintPreview
.PaintPage(*args
, **kw
)
4512 base_PaintPage
= wx
._deprecated
(base_PaintPage
,
4513 "Please use PyPrintPreview.PaintPage instead.")
4515 def base_DrawBlankPage(*args
, **kw
):
4516 return PyPrintPreview
.DrawBlankPage(*args
, **kw
)
4517 base_DrawBlankPage
= wx
._deprecated
(base_DrawBlankPage
,
4518 "Please use PyPrintPreview.DrawBlankPage instead.")
4520 def base_RenderPage(*args
, **kw
):
4521 return PyPrintPreview
.RenderPage(*args
, **kw
)
4522 base_RenderPage
= wx
._deprecated
(base_RenderPage
,
4523 "Please use PyPrintPreview.RenderPage instead.")
4525 def base_SetZoom(*args
, **kw
):
4526 return PyPrintPreview
.SetZoom(*args
, **kw
)
4527 base_SetZoom
= wx
._deprecated
(base_SetZoom
,
4528 "Please use PyPrintPreview.SetZoom instead.")
4530 def base_Print(*args
, **kw
):
4531 return PyPrintPreview
.Print(*args
, **kw
)
4532 base_Print
= wx
._deprecated
(base_Print
,
4533 "Please use PyPrintPreview.Print instead.")
4535 def base_DetermineScaling(*args
, **kw
):
4536 return PyPrintPreview
.DetermineScaling(*args
, **kw
)
4537 base_DetermineScaling
= wx
._deprecated
(base_DetermineScaling
,
4538 "Please use PyPrintPreview.DetermineScaling instead.")
4540 _windows_
.PyPrintPreview_swigregister(PyPrintPreview
)
4542 class PyPreviewFrame(PreviewFrame
):
4543 """Proxy of C++ PyPreviewFrame class"""
4544 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4545 __repr__
= _swig_repr
4546 def __init__(self
, *args
, **kwargs
):
4548 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4549 Size size=DefaultSize,
4550 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4552 _windows_
.PyPreviewFrame_swiginit(self
,_windows_
.new_PyPreviewFrame(*args
, **kwargs
))
4553 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4555 def _setCallbackInfo(*args
, **kwargs
):
4556 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4557 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4559 def SetPreviewCanvas(*args
, **kwargs
):
4560 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4561 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4563 def SetControlBar(*args
, **kwargs
):
4564 """SetControlBar(self, PreviewControlBar bar)"""
4565 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4567 def Initialize(*args
, **kwargs
):
4568 """Initialize(self)"""
4569 return _windows_
.PyPreviewFrame_Initialize(*args
, **kwargs
)
4571 def CreateCanvas(*args
, **kwargs
):
4572 """CreateCanvas(self)"""
4573 return _windows_
.PyPreviewFrame_CreateCanvas(*args
, **kwargs
)
4575 def CreateControlBar(*args
, **kwargs
):
4576 """CreateControlBar(self)"""
4577 return _windows_
.PyPreviewFrame_CreateControlBar(*args
, **kwargs
)
4579 def base_Initialize(*args
, **kw
):
4580 return PyPreviewFrame
.Initialize(*args
, **kw
)
4581 base_Initialize
= wx
._deprecated
(base_Initialize
,
4582 "Please use PyPreviewFrame.Initialize instead.")
4584 def base_CreateCanvas(*args
, **kw
):
4585 return PyPreviewFrame
.CreateCanvas(*args
, **kw
)
4586 base_CreateCanvas
= wx
._deprecated
(base_CreateCanvas
,
4587 "Please use PyPreviewFrame.CreateCanvas instead.")
4589 def base_CreateControlBar(*args
, **kw
):
4590 return PyPreviewFrame
.CreateControlBar(*args
, **kw
)
4591 base_CreateControlBar
= wx
._deprecated
(base_CreateControlBar
,
4592 "Please use PyPreviewFrame.CreateControlBar instead.")
4594 _windows_
.PyPreviewFrame_swigregister(PyPreviewFrame
)
4596 class PyPreviewControlBar(PreviewControlBar
):
4597 """Proxy of C++ PyPreviewControlBar class"""
4598 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4599 __repr__
= _swig_repr
4600 def __init__(self
, *args
, **kwargs
):
4602 __init__(self, PrintPreview preview, long buttons, Window parent,
4603 Point pos=DefaultPosition, Size size=DefaultSize,
4604 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4606 _windows_
.PyPreviewControlBar_swiginit(self
,_windows_
.new_PyPreviewControlBar(*args
, **kwargs
))
4607 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4609 def _setCallbackInfo(*args
, **kwargs
):
4610 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4611 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4613 def SetPrintPreview(*args
, **kwargs
):
4614 """SetPrintPreview(self, PrintPreview preview)"""
4615 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4617 def CreateButtons(*args
, **kwargs
):
4618 """CreateButtons(self)"""
4619 return _windows_
.PyPreviewControlBar_CreateButtons(*args
, **kwargs
)
4621 def SetZoomControl(*args
, **kwargs
):
4622 """SetZoomControl(self, int zoom)"""
4623 return _windows_
.PyPreviewControlBar_SetZoomControl(*args
, **kwargs
)
4625 def base_CreateButtons(*args
, **kw
):
4626 return PreviewControlBar
.CreateButtons(*args
, **kw
)
4627 base_CreateButtons
= wx
._deprecated
(base_CreateButtons
,
4628 "Please use PreviewControlBar.CreateButtons instead.")
4630 def base_SetZoomControl(*args
, **kw
):
4631 return PreviewControlBar
.SetZoomControl(*args
, **kw
)
4632 base_SetZoomControl
= wx
._deprecated
(base_SetZoomControl
,
4633 "Please use PreviewControlBar.SetZoomControl instead.")
4635 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBar
)