1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
6 new_instancemethod
= new
.instancemethod
7 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if (name
== "thisown"): return self
.this
.own(value
)
10 if type(value
).__name
__ == 'PySwigObject':
11 self
.__dict
__[name
] = value
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
):
16 self
.__dict
__[name
] = value
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
23 def _swig_getattr(self
,class_type
,name
):
24 if (name
== "thisown"): return self
.this
.own()
25 method
= class_type
.__swig
_getmethods
__.get(name
,None)
26 if method
: return method(self
)
27 raise AttributeError,name
30 try: strthis
= "proxy of " + self
.this
.__repr
__()
32 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
36 _object
= types
.ObjectType
38 except AttributeError:
44 def _swig_setattr_nondynamic_method(set):
45 def set_attr(self
,name
,value
):
46 if (name
== "thisown"): return self
.this
.own(value
)
47 if hasattr(self
,name
) or (name
== "this"):
50 raise AttributeError("You cannot add attributes to %s" % self
)
56 #---------------------------------------------------------------------------
58 class Panel(_core
.Window
):
59 """Proxy of C++ Panel class"""
60 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
62 def __init__(self
, *args
, **kwargs
):
64 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
65 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
66 String name=PanelNameStr) -> Panel
68 _windows_
.Panel_swiginit(self
,_windows_
.new_Panel(*args
, **kwargs
))
69 self
._setOORInfo
(self
)
71 def Create(*args
, **kwargs
):
73 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
74 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
75 String name=PanelNameStr) -> bool
77 Create the GUI part of the Window for 2-phase creation mode.
79 return _windows_
.Panel_Create(*args
, **kwargs
)
81 def SetFocusIgnoringChildren(*args
, **kwargs
):
83 SetFocusIgnoringChildren(self)
85 In contrast to `SetFocus` (see above) this will set the focus to the
86 panel even of there are child windows in the panel. This is only
89 return _windows_
.Panel_SetFocusIgnoringChildren(*args
, **kwargs
)
91 def GetClassDefaultAttributes(*args
, **kwargs
):
93 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
95 Get the default attributes for this class. This is useful if you want
96 to use the same font or colour in your own control as in a standard
97 control -- which is a much better idea than hard coding specific
98 colours or fonts which might look completely out of place on the
99 user's system, especially if it uses themes.
101 The variant parameter is only relevant under Mac currently and is
102 ignore under other platforms. Under Mac, it will change the size of
103 the returned font. See `wx.Window.SetWindowVariant` for more about
106 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
108 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
109 _windows_
.Panel_swigregister(Panel
)
111 def PrePanel(*args
, **kwargs
):
112 """PrePanel() -> Panel"""
113 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
116 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
118 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
120 Get the default attributes for this class. This is useful if you want
121 to use the same font or colour in your own control as in a standard
122 control -- which is a much better idea than hard coding specific
123 colours or fonts which might look completely out of place on the
124 user's system, especially if it uses themes.
126 The variant parameter is only relevant under Mac currently and is
127 ignore under other platforms. Under Mac, it will change the size of
128 the returned font. See `wx.Window.SetWindowVariant` for more about
131 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
133 #---------------------------------------------------------------------------
135 class ScrolledWindow(Panel
):
136 """Proxy of C++ ScrolledWindow class"""
137 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
138 __repr__
= _swig_repr
139 def __init__(self
, *args
, **kwargs
):
141 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
142 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
143 String name=PanelNameStr) -> ScrolledWindow
145 _windows_
.ScrolledWindow_swiginit(self
,_windows_
.new_ScrolledWindow(*args
, **kwargs
))
146 self
._setOORInfo
(self
)
148 def Create(*args
, **kwargs
):
150 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
151 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
152 String name=PanelNameStr) -> bool
154 Create the GUI part of the Window for 2-phase creation mode.
156 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
158 def SetScrollbars(*args
, **kwargs
):
160 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
161 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
163 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
165 def Scroll(*args
, **kwargs
):
166 """Scroll(self, int x, int y)"""
167 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
169 def GetScrollPageSize(*args
, **kwargs
):
170 """GetScrollPageSize(self, int orient) -> int"""
171 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
173 def SetScrollPageSize(*args
, **kwargs
):
174 """SetScrollPageSize(self, int orient, int pageSize)"""
175 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
177 def SetScrollRate(*args
, **kwargs
):
178 """SetScrollRate(self, int xstep, int ystep)"""
179 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
181 def GetScrollPixelsPerUnit(*args
, **kwargs
):
183 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
185 Get the size of one logical unit in physical units.
187 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
189 def EnableScrolling(*args
, **kwargs
):
190 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
191 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
193 def GetViewStart(*args
, **kwargs
):
195 GetViewStart() -> (x,y)
199 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
201 def SetScale(*args
, **kwargs
):
202 """SetScale(self, double xs, double ys)"""
203 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
205 def GetScaleX(*args
, **kwargs
):
206 """GetScaleX(self) -> double"""
207 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
209 def GetScaleY(*args
, **kwargs
):
210 """GetScaleY(self) -> double"""
211 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
213 def CalcScrolledPosition(*args
):
215 CalcScrolledPosition(self, Point pt) -> Point
216 CalcScrolledPosition(int x, int y) -> (sx, sy)
218 Translate between scrolled and unscrolled coordinates.
220 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
222 def CalcUnscrolledPosition(*args
):
224 CalcUnscrolledPosition(self, Point pt) -> Point
225 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
227 Translate between scrolled and unscrolled coordinates.
229 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
231 def AdjustScrollbars(*args
, **kwargs
):
232 """AdjustScrollbars(self)"""
233 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
235 def CalcScrollInc(*args
, **kwargs
):
236 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
237 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
239 def SetTargetWindow(*args
, **kwargs
):
240 """SetTargetWindow(self, Window target)"""
241 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
243 def GetTargetWindow(*args
, **kwargs
):
244 """GetTargetWindow(self) -> Window"""
245 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
247 def DoPrepareDC(*args
, **kwargs
):
249 DoPrepareDC(self, DC dc)
251 Normally what is called by `PrepareDC`.
253 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
255 def GetClassDefaultAttributes(*args
, **kwargs
):
257 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
259 Get the default attributes for this class. This is useful if you want
260 to use the same font or colour in your own control as in a standard
261 control -- which is a much better idea than hard coding specific
262 colours or fonts which might look completely out of place on the
263 user's system, especially if it uses themes.
265 The variant parameter is only relevant under Mac currently and is
266 ignore under other platforms. Under Mac, it will change the size of
267 the returned font. See `wx.Window.SetWindowVariant` for more about
270 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
272 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
273 _windows_
.ScrolledWindow_swigregister(ScrolledWindow
)
275 def PreScrolledWindow(*args
, **kwargs
):
276 """PreScrolledWindow() -> ScrolledWindow"""
277 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
280 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
282 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
284 Get the default attributes for this class. This is useful if you want
285 to use the same font or colour in your own control as in a standard
286 control -- which is a much better idea than hard coding specific
287 colours or fonts which might look completely out of place on the
288 user's system, especially if it uses themes.
290 The variant parameter is only relevant under Mac currently and is
291 ignore under other platforms. Under Mac, it will change the size of
292 the returned font. See `wx.Window.SetWindowVariant` for more about
295 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
297 #---------------------------------------------------------------------------
299 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
300 ICONIZE
= _windows_
.ICONIZE
301 MINIMIZE
= _windows_
.MINIMIZE
302 MAXIMIZE
= _windows_
.MAXIMIZE
303 CLOSE_BOX
= _windows_
.CLOSE_BOX
304 THICK_FRAME
= _windows_
.THICK_FRAME
305 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
306 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
307 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
308 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
309 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
310 RESIZE_BOX
= _windows_
.RESIZE_BOX
311 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
312 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
313 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
314 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
315 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
316 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
317 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
318 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
319 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
320 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
321 FRAME_EX_METAL
= _windows_
.FRAME_EX_METAL
322 DIALOG_EX_METAL
= _windows_
.DIALOG_EX_METAL
323 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
324 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
325 USER_COLOURS
= _windows_
.USER_COLOURS
326 NO_3D
= _windows_
.NO_3D
327 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
328 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
329 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
330 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
331 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
332 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
333 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
334 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
335 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
336 class TopLevelWindow(_core
.Window
):
337 """Proxy of C++ TopLevelWindow class"""
338 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
339 def __init__(self
): raise AttributeError, "No constructor defined"
340 __repr__
= _swig_repr
341 def Maximize(*args
, **kwargs
):
342 """Maximize(self, bool maximize=True)"""
343 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
345 def Restore(*args
, **kwargs
):
347 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
349 def Iconize(*args
, **kwargs
):
350 """Iconize(self, bool iconize=True)"""
351 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
353 def IsMaximized(*args
, **kwargs
):
354 """IsMaximized(self) -> bool"""
355 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
357 def IsAlwaysMaximized(*args
, **kwargs
):
358 """IsAlwaysMaximized(self) -> bool"""
359 return _windows_
.TopLevelWindow_IsAlwaysMaximized(*args
, **kwargs
)
361 def IsIconized(*args
, **kwargs
):
362 """IsIconized(self) -> bool"""
363 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
365 def GetIcon(*args
, **kwargs
):
366 """GetIcon(self) -> Icon"""
367 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
369 def SetIcon(*args
, **kwargs
):
370 """SetIcon(self, Icon icon)"""
371 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
373 def SetIcons(*args
, **kwargs
):
374 """SetIcons(self, wxIconBundle icons)"""
375 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
377 def ShowFullScreen(*args
, **kwargs
):
378 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
379 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
381 def IsFullScreen(*args
, **kwargs
):
382 """IsFullScreen(self) -> bool"""
383 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
385 def SetTitle(*args
, **kwargs
):
386 """SetTitle(self, String title)"""
387 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
389 def GetTitle(*args
, **kwargs
):
390 """GetTitle(self) -> String"""
391 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
393 def SetShape(*args
, **kwargs
):
394 """SetShape(self, Region region) -> bool"""
395 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
397 def RequestUserAttention(*args
, **kwargs
):
398 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
399 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
401 def IsActive(*args
, **kwargs
):
402 """IsActive(self) -> bool"""
403 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
405 def MacSetMetalAppearance(*args
, **kwargs
):
406 """MacSetMetalAppearance(self, bool on)"""
407 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
409 def MacGetMetalAppearance(*args
, **kwargs
):
410 """MacGetMetalAppearance(self) -> bool"""
411 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
413 def CenterOnScreen(*args
, **kwargs
):
415 CenterOnScreen(self, int dir=BOTH)
417 Center the window on screen
419 return _windows_
.TopLevelWindow_CenterOnScreen(*args
, **kwargs
)
421 CentreOnScreen
= CenterOnScreen
422 _windows_
.TopLevelWindow_swigregister(TopLevelWindow
)
423 cvar
= _windows_
.cvar
424 FrameNameStr
= cvar
.FrameNameStr
425 DialogNameStr
= cvar
.DialogNameStr
426 StatusLineNameStr
= cvar
.StatusLineNameStr
427 ToolBarNameStr
= cvar
.ToolBarNameStr
429 #---------------------------------------------------------------------------
431 class Frame(TopLevelWindow
):
432 """Proxy of C++ Frame class"""
433 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
434 __repr__
= _swig_repr
435 def __init__(self
, *args
, **kwargs
):
437 __init__(self, Window parent, int id=-1, String title=EmptyString,
438 Point pos=DefaultPosition, Size size=DefaultSize,
439 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
441 _windows_
.Frame_swiginit(self
,_windows_
.new_Frame(*args
, **kwargs
))
442 self
._setOORInfo
(self
)
444 def Create(*args
, **kwargs
):
446 Create(self, Window parent, int id=-1, String title=EmptyString,
447 Point pos=DefaultPosition, Size size=DefaultSize,
448 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
450 return _windows_
.Frame_Create(*args
, **kwargs
)
452 def SendSizeEvent(*args
, **kwargs
):
453 """SendSizeEvent(self)"""
454 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
456 def SetMenuBar(*args
, **kwargs
):
457 """SetMenuBar(self, MenuBar menubar)"""
458 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
460 def GetMenuBar(*args
, **kwargs
):
461 """GetMenuBar(self) -> MenuBar"""
462 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
464 def ProcessCommand(*args
, **kwargs
):
465 """ProcessCommand(self, int winid) -> bool"""
466 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
468 Command
= ProcessCommand
469 def CreateStatusBar(*args
, **kwargs
):
471 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
472 String name=StatusLineNameStr) -> StatusBar
474 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
476 def GetStatusBar(*args
, **kwargs
):
477 """GetStatusBar(self) -> StatusBar"""
478 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
480 def SetStatusBar(*args
, **kwargs
):
481 """SetStatusBar(self, StatusBar statBar)"""
482 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
484 def SetStatusText(*args
, **kwargs
):
485 """SetStatusText(self, String text, int number=0)"""
486 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
488 def SetStatusWidths(*args
, **kwargs
):
489 """SetStatusWidths(self, int widths)"""
490 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
492 def PushStatusText(*args
, **kwargs
):
493 """PushStatusText(self, String text, int number=0)"""
494 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
496 def PopStatusText(*args
, **kwargs
):
497 """PopStatusText(self, int number=0)"""
498 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
500 def SetStatusBarPane(*args
, **kwargs
):
501 """SetStatusBarPane(self, int n)"""
502 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
504 def GetStatusBarPane(*args
, **kwargs
):
505 """GetStatusBarPane(self) -> int"""
506 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
508 def CreateToolBar(*args
, **kwargs
):
509 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
510 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
512 def GetToolBar(*args
, **kwargs
):
513 """GetToolBar(self) -> wxToolBar"""
514 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
516 def SetToolBar(*args
, **kwargs
):
517 """SetToolBar(self, wxToolBar toolbar)"""
518 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
520 def DoGiveHelp(*args
, **kwargs
):
521 """DoGiveHelp(self, String text, bool show)"""
522 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
524 def DoMenuUpdates(*args
, **kwargs
):
525 """DoMenuUpdates(self, Menu menu=None)"""
526 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
528 def GetClassDefaultAttributes(*args
, **kwargs
):
530 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
532 Get the default attributes for this class. This is useful if you want
533 to use the same font or colour in your own control as in a standard
534 control -- which is a much better idea than hard coding specific
535 colours or fonts which might look completely out of place on the
536 user's system, especially if it uses themes.
538 The variant parameter is only relevant under Mac currently and is
539 ignore under other platforms. Under Mac, it will change the size of
540 the returned font. See `wx.Window.SetWindowVariant` for more about
543 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
545 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
546 _windows_
.Frame_swigregister(Frame
)
548 def PreFrame(*args
, **kwargs
):
549 """PreFrame() -> Frame"""
550 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
553 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
555 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
557 Get the default attributes for this class. This is useful if you want
558 to use the same font or colour in your own control as in a standard
559 control -- which is a much better idea than hard coding specific
560 colours or fonts which might look completely out of place on the
561 user's system, especially if it uses themes.
563 The variant parameter is only relevant under Mac currently and is
564 ignore under other platforms. Under Mac, it will change the size of
565 the returned font. See `wx.Window.SetWindowVariant` for more about
568 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
570 #---------------------------------------------------------------------------
572 class Dialog(TopLevelWindow
):
573 """Proxy of C++ Dialog class"""
574 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
575 __repr__
= _swig_repr
576 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
577 def __init__(self
, *args
, **kwargs
):
579 __init__(self, Window parent, int id=-1, String title=EmptyString,
580 Point pos=DefaultPosition, Size size=DefaultSize,
581 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
583 _windows_
.Dialog_swiginit(self
,_windows_
.new_Dialog(*args
, **kwargs
))
584 self
._setOORInfo
(self
)
586 def Create(*args
, **kwargs
):
588 Create(self, Window parent, int id=-1, String title=EmptyString,
589 Point pos=DefaultPosition, Size size=DefaultSize,
590 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
592 return _windows_
.Dialog_Create(*args
, **kwargs
)
594 def SetReturnCode(*args
, **kwargs
):
595 """SetReturnCode(self, int returnCode)"""
596 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
598 def GetReturnCode(*args
, **kwargs
):
599 """GetReturnCode(self) -> int"""
600 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
602 def SetAffirmativeId(*args
, **kwargs
):
603 """SetAffirmativeId(self, int affirmativeId)"""
604 return _windows_
.Dialog_SetAffirmativeId(*args
, **kwargs
)
606 def GetAffirmativeId(*args
, **kwargs
):
607 """GetAffirmativeId(self) -> int"""
608 return _windows_
.Dialog_GetAffirmativeId(*args
, **kwargs
)
610 def SetEscapeId(*args
, **kwargs
):
611 """SetEscapeId(self, int escapeId)"""
612 return _windows_
.Dialog_SetEscapeId(*args
, **kwargs
)
614 def GetEscapeId(*args
, **kwargs
):
615 """GetEscapeId(self) -> int"""
616 return _windows_
.Dialog_GetEscapeId(*args
, **kwargs
)
618 def CreateTextSizer(*args
, **kwargs
):
619 """CreateTextSizer(self, String message) -> Sizer"""
620 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
622 def CreateButtonSizer(*args
, **kwargs
):
623 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
624 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
626 def CreateStdDialogButtonSizer(*args
, **kwargs
):
627 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
628 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
630 def IsModal(*args
, **kwargs
):
631 """IsModal(self) -> bool"""
632 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
634 def ShowModal(*args
, **kwargs
):
635 """ShowModal(self) -> int"""
636 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
638 def EndModal(*args
, **kwargs
):
639 """EndModal(self, int retCode)"""
640 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
642 def GetClassDefaultAttributes(*args
, **kwargs
):
644 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
646 Get the default attributes for this class. This is useful if you want
647 to use the same font or colour in your own control as in a standard
648 control -- which is a much better idea than hard coding specific
649 colours or fonts which might look completely out of place on the
650 user's system, especially if it uses themes.
652 The variant parameter is only relevant under Mac currently and is
653 ignore under other platforms. Under Mac, it will change the size of
654 the returned font. See `wx.Window.SetWindowVariant` for more about
657 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
659 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
660 _windows_
.Dialog_swigregister(Dialog
)
662 def PreDialog(*args
, **kwargs
):
663 """PreDialog() -> Dialog"""
664 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
667 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
669 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
671 Get the default attributes for this class. This is useful if you want
672 to use the same font or colour in your own control as in a standard
673 control -- which is a much better idea than hard coding specific
674 colours or fonts which might look completely out of place on the
675 user's system, especially if it uses themes.
677 The variant parameter is only relevant under Mac currently and is
678 ignore under other platforms. Under Mac, it will change the size of
679 the returned font. See `wx.Window.SetWindowVariant` for more about
682 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
684 #---------------------------------------------------------------------------
686 class MiniFrame(Frame
):
687 """Proxy of C++ MiniFrame class"""
688 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
689 __repr__
= _swig_repr
690 def __init__(self
, *args
, **kwargs
):
692 __init__(self, Window parent, int id=-1, String title=EmptyString,
693 Point pos=DefaultPosition, Size size=DefaultSize,
694 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
696 _windows_
.MiniFrame_swiginit(self
,_windows_
.new_MiniFrame(*args
, **kwargs
))
697 self
._setOORInfo
(self
)
699 def Create(*args
, **kwargs
):
701 Create(self, Window parent, int id=-1, String title=EmptyString,
702 Point pos=DefaultPosition, Size size=DefaultSize,
703 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
705 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
707 _windows_
.MiniFrame_swigregister(MiniFrame
)
709 def PreMiniFrame(*args
, **kwargs
):
710 """PreMiniFrame() -> MiniFrame"""
711 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
714 #---------------------------------------------------------------------------
716 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
717 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
718 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
719 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
720 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
721 class SplashScreenWindow(_core
.Window
):
722 """Proxy of C++ SplashScreenWindow class"""
723 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
724 __repr__
= _swig_repr
725 def __init__(self
, *args
, **kwargs
):
727 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
728 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
730 _windows_
.SplashScreenWindow_swiginit(self
,_windows_
.new_SplashScreenWindow(*args
, **kwargs
))
731 self
._setOORInfo
(self
)
733 def SetBitmap(*args
, **kwargs
):
734 """SetBitmap(self, Bitmap bitmap)"""
735 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
737 def GetBitmap(*args
, **kwargs
):
738 """GetBitmap(self) -> Bitmap"""
739 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
741 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindow
)
743 class SplashScreen(Frame
):
744 """Proxy of C++ SplashScreen class"""
745 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
746 __repr__
= _swig_repr
747 def __init__(self
, *args
, **kwargs
):
749 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
750 Window parent, int id=-1, Point pos=DefaultPosition,
751 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
753 _windows_
.SplashScreen_swiginit(self
,_windows_
.new_SplashScreen(*args
, **kwargs
))
754 self
._setOORInfo
(self
)
756 def GetSplashStyle(*args
, **kwargs
):
757 """GetSplashStyle(self) -> long"""
758 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
760 def GetSplashWindow(*args
, **kwargs
):
761 """GetSplashWindow(self) -> SplashScreenWindow"""
762 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
764 def GetTimeout(*args
, **kwargs
):
765 """GetTimeout(self) -> int"""
766 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
768 _windows_
.SplashScreen_swigregister(SplashScreen
)
770 #---------------------------------------------------------------------------
772 SB_NORMAL
= _windows_
.SB_NORMAL
773 SB_FLAT
= _windows_
.SB_FLAT
774 SB_RAISED
= _windows_
.SB_RAISED
775 class StatusBar(_core
.Window
):
776 """Proxy of C++ StatusBar class"""
777 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
778 __repr__
= _swig_repr
779 def __init__(self
, *args
, **kwargs
):
781 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
782 String name=StatusLineNameStr) -> StatusBar
784 _windows_
.StatusBar_swiginit(self
,_windows_
.new_StatusBar(*args
, **kwargs
))
785 self
._setOORInfo
(self
)
787 def Create(*args
, **kwargs
):
788 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
789 return _windows_
.StatusBar_Create(*args
, **kwargs
)
791 def SetFieldsCount(*args
, **kwargs
):
792 """SetFieldsCount(self, int number=1)"""
793 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
795 def GetFieldsCount(*args
, **kwargs
):
796 """GetFieldsCount(self) -> int"""
797 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
799 def SetStatusText(*args
, **kwargs
):
800 """SetStatusText(self, String text, int number=0)"""
801 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
803 def GetStatusText(*args
, **kwargs
):
804 """GetStatusText(self, int number=0) -> String"""
805 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
807 def PushStatusText(*args
, **kwargs
):
808 """PushStatusText(self, String text, int number=0)"""
809 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
811 def PopStatusText(*args
, **kwargs
):
812 """PopStatusText(self, int number=0)"""
813 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
815 def SetStatusWidths(*args
, **kwargs
):
816 """SetStatusWidths(self, int widths)"""
817 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
819 def SetStatusStyles(*args
, **kwargs
):
820 """SetStatusStyles(self, int styles)"""
821 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
823 def GetFieldRect(*args
, **kwargs
):
824 """GetFieldRect(self, int i) -> Rect"""
825 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
827 def SetMinHeight(*args
, **kwargs
):
828 """SetMinHeight(self, int height)"""
829 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
831 def GetBorderX(*args
, **kwargs
):
832 """GetBorderX(self) -> int"""
833 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
835 def GetBorderY(*args
, **kwargs
):
836 """GetBorderY(self) -> int"""
837 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
839 def GetClassDefaultAttributes(*args
, **kwargs
):
841 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
843 Get the default attributes for this class. This is useful if you want
844 to use the same font or colour in your own control as in a standard
845 control -- which is a much better idea than hard coding specific
846 colours or fonts which might look completely out of place on the
847 user's system, especially if it uses themes.
849 The variant parameter is only relevant under Mac currently and is
850 ignore under other platforms. Under Mac, it will change the size of
851 the returned font. See `wx.Window.SetWindowVariant` for more about
854 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
856 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
857 _windows_
.StatusBar_swigregister(StatusBar
)
859 def PreStatusBar(*args
, **kwargs
):
860 """PreStatusBar() -> StatusBar"""
861 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
864 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
866 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
868 Get the default attributes for this class. This is useful if you want
869 to use the same font or colour in your own control as in a standard
870 control -- which is a much better idea than hard coding specific
871 colours or fonts which might look completely out of place on the
872 user's system, especially if it uses themes.
874 The variant parameter is only relevant under Mac currently and is
875 ignore under other platforms. Under Mac, it will change the size of
876 the returned font. See `wx.Window.SetWindowVariant` for more about
879 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
881 #---------------------------------------------------------------------------
883 SP_NOBORDER
= _windows_
.SP_NOBORDER
884 SP_NOSASH
= _windows_
.SP_NOSASH
885 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
886 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
887 SP_3DSASH
= _windows_
.SP_3DSASH
888 SP_3DBORDER
= _windows_
.SP_3DBORDER
889 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
890 SP_BORDER
= _windows_
.SP_BORDER
891 SP_3D
= _windows_
.SP_3D
892 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
893 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
894 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
895 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
896 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
897 class SplitterWindow(_core
.Window
):
899 wx.SplitterWindow manages up to two subwindows or panes, with an
900 optional vertical or horizontal split which can be used with the mouse
903 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
904 __repr__
= _swig_repr
905 def __init__(self
, *args
, **kwargs
):
907 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
908 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
910 Constructor. Creates and shows a SplitterWindow.
912 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
913 _windows_
.SplitterWindow_swiginit(self
,_windows_
.new_SplitterWindow(*args
, **kwargs
))
914 self
._setOORInfo
(self
)
916 def Create(*args
, **kwargs
):
918 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
919 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
921 Create the GUI part of the SplitterWindow for the 2-phase create.
923 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
925 def GetWindow1(*args
, **kwargs
):
927 GetWindow1(self) -> Window
929 Gets the only or left/top pane.
931 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
933 def GetWindow2(*args
, **kwargs
):
935 GetWindow2(self) -> Window
937 Gets the right/bottom pane.
939 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
941 def SetSplitMode(*args
, **kwargs
):
943 SetSplitMode(self, int mode)
945 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
946 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
949 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
951 def GetSplitMode(*args
, **kwargs
):
953 GetSplitMode(self) -> int
957 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
959 def Initialize(*args
, **kwargs
):
961 Initialize(self, Window window)
963 Initializes the splitter window to have one pane. This should be
964 called if you wish to initially view only a single pane in the
965 splitter window. The child window is shown if it is currently hidden.
967 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
969 def SplitVertically(*args
, **kwargs
):
971 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
973 Initializes the left and right panes of the splitter window. The
974 child windows are shown if they are currently hidden.
976 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
978 def SplitHorizontally(*args
, **kwargs
):
980 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
982 Initializes the top and bottom panes of the splitter window. The
983 child windows are shown if they are currently hidden.
985 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
987 def Unsplit(*args
, **kwargs
):
989 Unsplit(self, Window toRemove=None) -> bool
991 Unsplits the window. Pass the pane to remove, or None to remove the
992 right or bottom pane. Returns True if successful, False otherwise (the
993 window was not split).
995 This function will not actually delete the pane being
996 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
997 for the desired behaviour. By default, the pane being
998 removed is only hidden.
1000 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1002 def ReplaceWindow(*args
, **kwargs
):
1004 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1006 This function replaces one of the windows managed by the
1007 SplitterWindow with another one. It is in general better to use it
1008 instead of calling Unsplit() and then resplitting the window back
1009 because it will provoke much less flicker. It is valid to call this
1010 function whether the splitter has two windows or only one.
1012 Both parameters should be non-None and winOld must specify one of the
1013 windows managed by the splitter. If the parameters are incorrect or
1014 the window couldn't be replaced, False is returned. Otherwise the
1015 function will return True, but please notice that it will not Destroy
1016 the replaced window and you may wish to do it yourself.
1018 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1020 def UpdateSize(*args
, **kwargs
):
1024 Causes any pending sizing of the sash and child panes to take place
1027 Such resizing normally takes place in idle time, in order to wait for
1028 layout to be completed. However, this can cause unacceptable flicker
1029 as the panes are resized after the window has been shown. To work
1030 around this, you can perform window layout (for example by sending a
1031 size event to the parent window), and then call this function, before
1032 showing the top-level window.
1034 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1036 def IsSplit(*args
, **kwargs
):
1038 IsSplit(self) -> bool
1040 Is the window split?
1042 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1044 def SetSashSize(*args
, **kwargs
):
1046 SetSashSize(self, int width)
1050 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1052 def SetBorderSize(*args
, **kwargs
):
1054 SetBorderSize(self, int width)
1056 Sets the border size. Currently a NOP.
1058 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1060 def GetSashSize(*args
, **kwargs
):
1062 GetSashSize(self) -> int
1066 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1068 def GetBorderSize(*args
, **kwargs
):
1070 GetBorderSize(self) -> int
1072 Gets the border size
1074 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1076 def SetSashPosition(*args
, **kwargs
):
1078 SetSashPosition(self, int position, bool redraw=True)
1080 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1081 are resized and the sash and border are redrawn.
1083 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1085 def GetSashPosition(*args
, **kwargs
):
1087 GetSashPosition(self) -> int
1089 Returns the surrent sash position.
1091 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1093 def SetSashGravity(*args
, **kwargs
):
1095 SetSashGravity(self, double gravity)
1097 Set the sash gravity. Gravity is a floating-point factor between 0.0
1098 and 1.0 which controls position of sash while resizing the
1099 `wx.SplitterWindow`. The gravity specifies how much the left/top
1100 window will grow while resizing.
1102 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1104 def GetSashGravity(*args
, **kwargs
):
1106 GetSashGravity(self) -> double
1108 Gets the sash gravity.
1110 :see: `SetSashGravity`
1113 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1115 def SetMinimumPaneSize(*args
, **kwargs
):
1117 SetMinimumPaneSize(self, int min)
1119 Sets the minimum pane size in pixels.
1121 The default minimum pane size is zero, which means that either pane
1122 can be reduced to zero by dragging the sash, thus removing one of the
1123 panes. To prevent this behaviour (and veto out-of-range sash
1124 dragging), set a minimum size, for example 20 pixels. If the
1125 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1126 the window may be unsplit even if minimum size is non-zero.
1128 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1130 def GetMinimumPaneSize(*args
, **kwargs
):
1132 GetMinimumPaneSize(self) -> int
1134 Gets the minimum pane size in pixels.
1136 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1138 def SashHitTest(*args
, **kwargs
):
1140 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1142 Tests for x, y over the sash
1144 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1146 def SizeWindows(*args
, **kwargs
):
1152 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1154 def SetNeedUpdating(*args
, **kwargs
):
1155 """SetNeedUpdating(self, bool needUpdating)"""
1156 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1158 def GetNeedUpdating(*args
, **kwargs
):
1159 """GetNeedUpdating(self) -> bool"""
1160 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1162 def GetClassDefaultAttributes(*args
, **kwargs
):
1164 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1166 Get the default attributes for this class. This is useful if you want
1167 to use the same font or colour in your own control as in a standard
1168 control -- which is a much better idea than hard coding specific
1169 colours or fonts which might look completely out of place on the
1170 user's system, especially if it uses themes.
1172 The variant parameter is only relevant under Mac currently and is
1173 ignore under other platforms. Under Mac, it will change the size of
1174 the returned font. See `wx.Window.SetWindowVariant` for more about
1177 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1179 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1180 _windows_
.SplitterWindow_swigregister(SplitterWindow
)
1181 SplitterNameStr
= cvar
.SplitterNameStr
1183 def PreSplitterWindow(*args
, **kwargs
):
1185 PreSplitterWindow() -> SplitterWindow
1187 Precreate a SplitterWindow for 2-phase creation.
1189 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1192 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1194 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1196 Get the default attributes for this class. This is useful if you want
1197 to use the same font or colour in your own control as in a standard
1198 control -- which is a much better idea than hard coding specific
1199 colours or fonts which might look completely out of place on the
1200 user's system, especially if it uses themes.
1202 The variant parameter is only relevant under Mac currently and is
1203 ignore under other platforms. Under Mac, it will change the size of
1204 the returned font. See `wx.Window.SetWindowVariant` for more about
1207 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1209 class SplitterEvent(_core
.NotifyEvent
):
1210 """This class represents the events generated by a splitter control."""
1211 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1212 __repr__
= _swig_repr
1213 def __init__(self
, *args
, **kwargs
):
1215 __init__(self, EventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1217 This class represents the events generated by a splitter control.
1219 _windows_
.SplitterEvent_swiginit(self
,_windows_
.new_SplitterEvent(*args
, **kwargs
))
1220 def SetSashPosition(*args
, **kwargs
):
1222 SetSashPosition(self, int pos)
1224 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1225 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1226 events, sets the the new sash position. In the case of _CHANGING
1227 events, sets the new tracking bar position so visual feedback during
1228 dragging will represent that change that will actually take place. Set
1229 to -1 from the event handler code to prevent repositioning.
1231 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1233 def GetSashPosition(*args
, **kwargs
):
1235 GetSashPosition(self) -> int
1237 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1238 and EVT_SPLITTER_SASH_POS_CHANGED events.
1240 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1242 def GetWindowBeingRemoved(*args
, **kwargs
):
1244 GetWindowBeingRemoved(self) -> Window
1246 Returns a pointer to the window being removed when a splitter window
1249 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1251 def GetX(*args
, **kwargs
):
1255 Returns the x coordinate of the double-click point in a
1256 EVT_SPLITTER_DCLICK event.
1258 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1260 def GetY(*args
, **kwargs
):
1264 Returns the y coordinate of the double-click point in a
1265 EVT_SPLITTER_DCLICK event.
1267 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1269 _windows_
.SplitterEvent_swigregister(SplitterEvent
)
1271 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1272 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1273 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1274 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1275 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1276 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1277 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1278 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1279 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1281 #---------------------------------------------------------------------------
1283 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1284 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1285 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1286 SW_NOBORDER
= _windows_
.SW_NOBORDER
1287 SW_BORDER
= _windows_
.SW_BORDER
1288 SW_3DSASH
= _windows_
.SW_3DSASH
1289 SW_3DBORDER
= _windows_
.SW_3DBORDER
1290 SW_3D
= _windows_
.SW_3D
1291 SASH_TOP
= _windows_
.SASH_TOP
1292 SASH_RIGHT
= _windows_
.SASH_RIGHT
1293 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1294 SASH_LEFT
= _windows_
.SASH_LEFT
1295 SASH_NONE
= _windows_
.SASH_NONE
1296 class SashWindow(_core
.Window
):
1297 """Proxy of C++ SashWindow class"""
1298 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1299 __repr__
= _swig_repr
1300 def __init__(self
, *args
, **kwargs
):
1302 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1303 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1304 String name=SashNameStr) -> SashWindow
1306 _windows_
.SashWindow_swiginit(self
,_windows_
.new_SashWindow(*args
, **kwargs
))
1307 self
._setOORInfo
(self
)
1309 def Create(*args
, **kwargs
):
1311 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1312 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1313 String name=SashNameStr) -> bool
1315 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1317 def SetSashVisible(*args
, **kwargs
):
1318 """SetSashVisible(self, int edge, bool sash)"""
1319 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1321 def GetSashVisible(*args
, **kwargs
):
1322 """GetSashVisible(self, int edge) -> bool"""
1323 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1325 def SetSashBorder(*args
, **kwargs
):
1326 """SetSashBorder(self, int edge, bool border)"""
1327 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1329 def HasBorder(*args
, **kwargs
):
1330 """HasBorder(self, int edge) -> bool"""
1331 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1333 def GetEdgeMargin(*args
, **kwargs
):
1334 """GetEdgeMargin(self, int edge) -> int"""
1335 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1337 def SetDefaultBorderSize(*args
, **kwargs
):
1338 """SetDefaultBorderSize(self, int width)"""
1339 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1341 def GetDefaultBorderSize(*args
, **kwargs
):
1342 """GetDefaultBorderSize(self) -> int"""
1343 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1345 def SetExtraBorderSize(*args
, **kwargs
):
1346 """SetExtraBorderSize(self, int width)"""
1347 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1349 def GetExtraBorderSize(*args
, **kwargs
):
1350 """GetExtraBorderSize(self) -> int"""
1351 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1353 def SetMinimumSizeX(*args
, **kwargs
):
1354 """SetMinimumSizeX(self, int min)"""
1355 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1357 def SetMinimumSizeY(*args
, **kwargs
):
1358 """SetMinimumSizeY(self, int min)"""
1359 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1361 def GetMinimumSizeX(*args
, **kwargs
):
1362 """GetMinimumSizeX(self) -> int"""
1363 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1365 def GetMinimumSizeY(*args
, **kwargs
):
1366 """GetMinimumSizeY(self) -> int"""
1367 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1369 def SetMaximumSizeX(*args
, **kwargs
):
1370 """SetMaximumSizeX(self, int max)"""
1371 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1373 def SetMaximumSizeY(*args
, **kwargs
):
1374 """SetMaximumSizeY(self, int max)"""
1375 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1377 def GetMaximumSizeX(*args
, **kwargs
):
1378 """GetMaximumSizeX(self) -> int"""
1379 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1381 def GetMaximumSizeY(*args
, **kwargs
):
1382 """GetMaximumSizeY(self) -> int"""
1383 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1385 def SashHitTest(*args
, **kwargs
):
1386 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1387 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1389 def SizeWindows(*args
, **kwargs
):
1390 """SizeWindows(self)"""
1391 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1393 _windows_
.SashWindow_swigregister(SashWindow
)
1394 SashNameStr
= cvar
.SashNameStr
1395 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1397 def PreSashWindow(*args
, **kwargs
):
1398 """PreSashWindow() -> SashWindow"""
1399 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1402 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1403 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1404 class SashEvent(_core
.CommandEvent
):
1405 """Proxy of C++ SashEvent class"""
1406 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1407 __repr__
= _swig_repr
1408 def __init__(self
, *args
, **kwargs
):
1409 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1410 _windows_
.SashEvent_swiginit(self
,_windows_
.new_SashEvent(*args
, **kwargs
))
1411 def SetEdge(*args
, **kwargs
):
1412 """SetEdge(self, int edge)"""
1413 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1415 def GetEdge(*args
, **kwargs
):
1416 """GetEdge(self) -> int"""
1417 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1419 def SetDragRect(*args
, **kwargs
):
1420 """SetDragRect(self, Rect rect)"""
1421 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1423 def GetDragRect(*args
, **kwargs
):
1424 """GetDragRect(self) -> Rect"""
1425 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1427 def SetDragStatus(*args
, **kwargs
):
1428 """SetDragStatus(self, int status)"""
1429 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1431 def GetDragStatus(*args
, **kwargs
):
1432 """GetDragStatus(self) -> int"""
1433 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1435 _windows_
.SashEvent_swigregister(SashEvent
)
1437 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1438 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1439 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1441 #---------------------------------------------------------------------------
1443 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1444 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1445 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1446 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1447 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1448 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1449 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1450 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1451 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1452 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1453 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1454 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1455 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1456 class QueryLayoutInfoEvent(_core
.Event
):
1457 """Proxy of C++ QueryLayoutInfoEvent class"""
1458 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1459 __repr__
= _swig_repr
1460 def __init__(self
, *args
, **kwargs
):
1461 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1462 _windows_
.QueryLayoutInfoEvent_swiginit(self
,_windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
))
1463 def SetRequestedLength(*args
, **kwargs
):
1464 """SetRequestedLength(self, int length)"""
1465 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1467 def GetRequestedLength(*args
, **kwargs
):
1468 """GetRequestedLength(self) -> int"""
1469 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1471 def SetFlags(*args
, **kwargs
):
1472 """SetFlags(self, int flags)"""
1473 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1475 def GetFlags(*args
, **kwargs
):
1476 """GetFlags(self) -> int"""
1477 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1479 def SetSize(*args
, **kwargs
):
1480 """SetSize(self, Size size)"""
1481 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1483 def GetSize(*args
, **kwargs
):
1484 """GetSize(self) -> Size"""
1485 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1487 def SetOrientation(*args
, **kwargs
):
1488 """SetOrientation(self, int orient)"""
1489 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1491 def GetOrientation(*args
, **kwargs
):
1492 """GetOrientation(self) -> int"""
1493 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1495 def SetAlignment(*args
, **kwargs
):
1496 """SetAlignment(self, int align)"""
1497 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1499 def GetAlignment(*args
, **kwargs
):
1500 """GetAlignment(self) -> int"""
1501 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1503 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent
)
1505 class CalculateLayoutEvent(_core
.Event
):
1506 """Proxy of C++ CalculateLayoutEvent class"""
1507 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1508 __repr__
= _swig_repr
1509 def __init__(self
, *args
, **kwargs
):
1510 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1511 _windows_
.CalculateLayoutEvent_swiginit(self
,_windows_
.new_CalculateLayoutEvent(*args
, **kwargs
))
1512 def SetFlags(*args
, **kwargs
):
1513 """SetFlags(self, int flags)"""
1514 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1516 def GetFlags(*args
, **kwargs
):
1517 """GetFlags(self) -> int"""
1518 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1520 def SetRect(*args
, **kwargs
):
1521 """SetRect(self, Rect rect)"""
1522 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1524 def GetRect(*args
, **kwargs
):
1525 """GetRect(self) -> Rect"""
1526 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1528 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEvent
)
1530 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1531 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1533 class SashLayoutWindow(SashWindow
):
1534 """Proxy of C++ SashLayoutWindow class"""
1535 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1536 __repr__
= _swig_repr
1537 def __init__(self
, *args
, **kwargs
):
1539 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1540 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1541 String name=SashLayoutNameStr) -> SashLayoutWindow
1543 _windows_
.SashLayoutWindow_swiginit(self
,_windows_
.new_SashLayoutWindow(*args
, **kwargs
))
1544 self
._setOORInfo
(self
)
1546 def Create(*args
, **kwargs
):
1548 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1549 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1550 String name=SashLayoutNameStr) -> bool
1552 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1554 def GetAlignment(*args
, **kwargs
):
1555 """GetAlignment(self) -> int"""
1556 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1558 def GetOrientation(*args
, **kwargs
):
1559 """GetOrientation(self) -> int"""
1560 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1562 def SetAlignment(*args
, **kwargs
):
1563 """SetAlignment(self, int alignment)"""
1564 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1566 def SetDefaultSize(*args
, **kwargs
):
1567 """SetDefaultSize(self, Size size)"""
1568 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1570 def SetOrientation(*args
, **kwargs
):
1571 """SetOrientation(self, int orientation)"""
1572 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1574 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindow
)
1576 def PreSashLayoutWindow(*args
, **kwargs
):
1577 """PreSashLayoutWindow() -> SashLayoutWindow"""
1578 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1581 class LayoutAlgorithm(_core
.Object
):
1582 """Proxy of C++ LayoutAlgorithm class"""
1583 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1584 __repr__
= _swig_repr
1585 def __init__(self
, *args
, **kwargs
):
1586 """__init__(self) -> LayoutAlgorithm"""
1587 _windows_
.LayoutAlgorithm_swiginit(self
,_windows_
.new_LayoutAlgorithm(*args
, **kwargs
))
1588 __swig_destroy__
= _windows_
.delete_LayoutAlgorithm
1589 __del__
= lambda self
: None;
1590 def LayoutMDIFrame(*args
, **kwargs
):
1591 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1592 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1594 def LayoutFrame(*args
, **kwargs
):
1595 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1596 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1598 def LayoutWindow(*args
, **kwargs
):
1599 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1600 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1602 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithm
)
1604 #---------------------------------------------------------------------------
1606 class PopupWindow(_core
.Window
):
1607 """Proxy of C++ PopupWindow class"""
1608 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1609 __repr__
= _swig_repr
1610 def __init__(self
, *args
, **kwargs
):
1611 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1612 _windows_
.PopupWindow_swiginit(self
,_windows_
.new_PopupWindow(*args
, **kwargs
))
1613 self
._setOORInfo
(self
)
1615 def Create(*args
, **kwargs
):
1616 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1617 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1619 def Position(*args
, **kwargs
):
1620 """Position(self, Point ptOrigin, Size size)"""
1621 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1623 _windows_
.PopupWindow_swigregister(PopupWindow
)
1625 def PrePopupWindow(*args
, **kwargs
):
1626 """PrePopupWindow() -> PopupWindow"""
1627 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1630 #---------------------------------------------------------------------------
1632 class PopupTransientWindow(PopupWindow
):
1633 """Proxy of C++ PopupTransientWindow class"""
1634 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1635 __repr__
= _swig_repr
1636 def __init__(self
, *args
, **kwargs
):
1637 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1638 _windows_
.PopupTransientWindow_swiginit(self
,_windows_
.new_PopupTransientWindow(*args
, **kwargs
))
1639 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1641 def _setCallbackInfo(*args
, **kwargs
):
1642 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1643 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1645 def Popup(*args
, **kwargs
):
1646 """Popup(self, Window focus=None)"""
1647 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1649 def Dismiss(*args
, **kwargs
):
1651 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1653 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindow
)
1655 def PrePopupTransientWindow(*args
, **kwargs
):
1656 """PrePopupTransientWindow() -> PopupTransientWindow"""
1657 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1660 #---------------------------------------------------------------------------
1662 class TipWindow(PopupTransientWindow
):
1663 """Proxy of C++ TipWindow class"""
1664 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1665 __repr__
= _swig_repr
1666 def __init__(self
, *args
, **kwargs
):
1667 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1668 _windows_
.TipWindow_swiginit(self
,_windows_
.new_TipWindow(*args
, **kwargs
))
1669 self
._setOORInfo
(self
)
1671 def SetBoundingRect(*args
, **kwargs
):
1672 """SetBoundingRect(self, Rect rectBound)"""
1673 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1675 def Close(*args
, **kwargs
):
1679 This function simply generates a EVT_CLOSE event whose handler usually
1680 tries to close the window. It doesn't close the window itself,
1681 however. If force is False (the default) then the window's close
1682 handler will be allowed to veto the destruction of the window.
1684 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1686 _windows_
.TipWindow_swigregister(TipWindow
)
1688 #---------------------------------------------------------------------------
1690 class VScrolledWindow(Panel
):
1691 """Proxy of C++ VScrolledWindow class"""
1692 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1693 __repr__
= _swig_repr
1694 def __init__(self
, *args
, **kwargs
):
1696 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1697 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1699 _windows_
.VScrolledWindow_swiginit(self
,_windows_
.new_VScrolledWindow(*args
, **kwargs
))
1700 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1702 def _setCallbackInfo(*args
, **kwargs
):
1703 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1704 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1706 def Create(*args
, **kwargs
):
1708 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1709 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1711 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1713 def SetLineCount(*args
, **kwargs
):
1714 """SetLineCount(self, size_t count)"""
1715 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1717 def ScrollToLine(*args
, **kwargs
):
1718 """ScrollToLine(self, size_t line) -> bool"""
1719 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1721 def RefreshLine(*args
, **kwargs
):
1722 """RefreshLine(self, size_t line)"""
1723 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1725 def RefreshLines(*args
, **kwargs
):
1726 """RefreshLines(self, size_t from, size_t to)"""
1727 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1729 def HitTestXY(*args
, **kwargs
):
1731 HitTestXY(self, int x, int y) -> int
1733 Test where the given (in client coords) point lies
1735 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1737 def HitTest(*args
, **kwargs
):
1739 HitTest(self, Point pt) -> int
1741 Test where the given (in client coords) point lies
1743 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1745 def RefreshAll(*args
, **kwargs
):
1746 """RefreshAll(self)"""
1747 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1749 def GetLineCount(*args
, **kwargs
):
1750 """GetLineCount(self) -> size_t"""
1751 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1753 def GetVisibleBegin(*args
, **kwargs
):
1754 """GetVisibleBegin(self) -> size_t"""
1755 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
1757 def GetVisibleEnd(*args
, **kwargs
):
1758 """GetVisibleEnd(self) -> size_t"""
1759 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
1761 def IsVisible(*args
, **kwargs
):
1762 """IsVisible(self, size_t line) -> bool"""
1763 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1765 def GetFirstVisibleLine(*args
, **kwargs
):
1766 """GetFirstVisibleLine(self) -> size_t"""
1767 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1769 def GetLastVisibleLine(*args
, **kwargs
):
1770 """GetLastVisibleLine(self) -> size_t"""
1771 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1773 def FindFirstFromBottom(*args
, **kwargs
):
1774 """FindFirstFromBottom(self, size_t lineLast, bool fullyVisible=False) -> size_t"""
1775 return _windows_
.VScrolledWindow_FindFirstFromBottom(*args
, **kwargs
)
1777 def GetLinesHeight(*args
, **kwargs
):
1778 """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int"""
1779 return _windows_
.VScrolledWindow_GetLinesHeight(*args
, **kwargs
)
1781 _windows_
.VScrolledWindow_swigregister(VScrolledWindow
)
1783 def PreVScrolledWindow(*args
, **kwargs
):
1784 """PreVScrolledWindow() -> VScrolledWindow"""
1785 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1788 class VListBox(VScrolledWindow
):
1789 """Proxy of C++ VListBox class"""
1790 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1791 __repr__
= _swig_repr
1792 def __init__(self
, *args
, **kwargs
):
1794 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1795 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1797 _windows_
.VListBox_swiginit(self
,_windows_
.new_VListBox(*args
, **kwargs
))
1798 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1800 def _setCallbackInfo(*args
, **kwargs
):
1801 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1802 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1804 def Create(*args
, **kwargs
):
1806 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1807 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1809 return _windows_
.VListBox_Create(*args
, **kwargs
)
1811 def GetItemCount(*args
, **kwargs
):
1812 """GetItemCount(self) -> size_t"""
1813 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1815 def HasMultipleSelection(*args
, **kwargs
):
1816 """HasMultipleSelection(self) -> bool"""
1817 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1819 def GetSelection(*args
, **kwargs
):
1820 """GetSelection(self) -> int"""
1821 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1823 def IsCurrent(*args
, **kwargs
):
1824 """IsCurrent(self, size_t item) -> bool"""
1825 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1827 def IsSelected(*args
, **kwargs
):
1828 """IsSelected(self, size_t item) -> bool"""
1829 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1831 def GetSelectedCount(*args
, **kwargs
):
1832 """GetSelectedCount(self) -> size_t"""
1833 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1835 def GetFirstSelected(*args
, **kwargs
):
1836 """GetFirstSelected(self) -> PyObject"""
1837 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1839 def GetNextSelected(*args
, **kwargs
):
1840 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1841 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1843 def GetMargins(*args
, **kwargs
):
1844 """GetMargins(self) -> Point"""
1845 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1847 def GetSelectionBackground(*args
, **kwargs
):
1848 """GetSelectionBackground(self) -> Colour"""
1849 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1851 def SetItemCount(*args
, **kwargs
):
1852 """SetItemCount(self, size_t count)"""
1853 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1855 def Clear(*args
, **kwargs
):
1857 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1859 def SetSelection(*args
, **kwargs
):
1860 """SetSelection(self, int selection)"""
1861 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1863 def Select(*args
, **kwargs
):
1864 """Select(self, size_t item, bool select=True) -> bool"""
1865 return _windows_
.VListBox_Select(*args
, **kwargs
)
1867 def SelectRange(*args
, **kwargs
):
1868 """SelectRange(self, size_t from, size_t to) -> bool"""
1869 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1871 def Toggle(*args
, **kwargs
):
1872 """Toggle(self, size_t item)"""
1873 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1875 def SelectAll(*args
, **kwargs
):
1876 """SelectAll(self) -> bool"""
1877 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1879 def DeselectAll(*args
, **kwargs
):
1880 """DeselectAll(self) -> bool"""
1881 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1883 def SetMargins(*args
, **kwargs
):
1884 """SetMargins(self, Point pt)"""
1885 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1887 def SetMarginsXY(*args
, **kwargs
):
1888 """SetMarginsXY(self, int x, int y)"""
1889 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1891 def SetSelectionBackground(*args
, **kwargs
):
1892 """SetSelectionBackground(self, Colour col)"""
1893 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1895 def OnDrawSeparator(*args
, **kwargs
):
1896 """OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
1897 return _windows_
.VListBox_OnDrawSeparator(*args
, **kwargs
)
1899 def OnDrawBackground(*args
, **kwargs
):
1900 """OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
1901 return _windows_
.VListBox_OnDrawBackground(*args
, **kwargs
)
1903 _windows_
.VListBox_swigregister(VListBox
)
1904 VListBoxNameStr
= cvar
.VListBoxNameStr
1906 def PreVListBox(*args
, **kwargs
):
1907 """PreVListBox() -> VListBox"""
1908 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1911 class HtmlListBox(VListBox
):
1912 """Proxy of C++ HtmlListBox class"""
1913 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1914 __repr__
= _swig_repr
1915 def __init__(self
, *args
, **kwargs
):
1917 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1918 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1920 _windows_
.HtmlListBox_swiginit(self
,_windows_
.new_HtmlListBox(*args
, **kwargs
))
1921 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1923 def _setCallbackInfo(*args
, **kwargs
):
1924 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1925 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1927 def Create(*args
, **kwargs
):
1929 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1930 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1932 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1934 def SetItemCount(*args
, **kwargs
):
1935 """SetItemCount(self, size_t count)"""
1936 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1938 def GetFileSystem(*args
, **kwargs
):
1939 """GetFileSystem(self) -> FileSystem"""
1940 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
1942 def OnLinkClicked(*args
, **kwargs
):
1943 """OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)"""
1944 return _windows_
.HtmlListBox_OnLinkClicked(*args
, **kwargs
)
1946 _windows_
.HtmlListBox_swigregister(HtmlListBox
)
1948 def PreHtmlListBox(*args
, **kwargs
):
1949 """PreHtmlListBox() -> HtmlListBox"""
1950 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
1953 #---------------------------------------------------------------------------
1955 class TaskBarIcon(_core
.EvtHandler
):
1956 """Proxy of C++ TaskBarIcon class"""
1957 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1958 __repr__
= _swig_repr
1959 def __init__(self
, *args
, **kwargs
):
1960 """__init__(self) -> TaskBarIcon"""
1961 _windows_
.TaskBarIcon_swiginit(self
,_windows_
.new_TaskBarIcon(*args
, **kwargs
))
1962 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
1964 __swig_destroy__
= _windows_
.delete_TaskBarIcon
1965 __del__
= lambda self
: None;
1966 def _setCallbackInfo(*args
, **kwargs
):
1967 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
1968 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
1970 def Destroy(*args
, **kwargs
):
1974 Deletes the C++ object this Python object is a proxy for.
1976 val
= _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
1980 def IsOk(*args
, **kwargs
):
1981 """IsOk(self) -> bool"""
1982 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
1984 def __nonzero__(self
): return self
.IsOk()
1985 def IsIconInstalled(*args
, **kwargs
):
1986 """IsIconInstalled(self) -> bool"""
1987 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
1989 def SetIcon(*args
, **kwargs
):
1990 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
1991 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
1993 def RemoveIcon(*args
, **kwargs
):
1994 """RemoveIcon(self) -> bool"""
1995 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
1997 def PopupMenu(*args
, **kwargs
):
1998 """PopupMenu(self, Menu menu) -> bool"""
1999 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2001 _windows_
.TaskBarIcon_swigregister(TaskBarIcon
)
2003 class TaskBarIconEvent(_core
.Event
):
2004 """Proxy of C++ TaskBarIconEvent class"""
2005 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2006 __repr__
= _swig_repr
2007 def __init__(self
, *args
, **kwargs
):
2008 """__init__(self, EventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2009 _windows_
.TaskBarIconEvent_swiginit(self
,_windows_
.new_TaskBarIconEvent(*args
, **kwargs
))
2010 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEvent
)
2012 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2013 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2014 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2015 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2016 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2017 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2018 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2019 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2020 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2021 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2022 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2023 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2024 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2025 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2027 #---------------------------------------------------------------------------
2029 class ColourData(_core
.Object
):
2031 This class holds a variety of information related to the colour
2032 chooser dialog, used to transfer settings and results to and from the
2035 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2036 __repr__
= _swig_repr
2037 def __init__(self
, *args
, **kwargs
):
2039 __init__(self) -> ColourData
2041 Constructor, sets default values.
2043 _windows_
.ColourData_swiginit(self
,_windows_
.new_ColourData(*args
, **kwargs
))
2044 __swig_destroy__
= _windows_
.delete_ColourData
2045 __del__
= lambda self
: None;
2046 def GetChooseFull(*args
, **kwargs
):
2048 GetChooseFull(self) -> bool
2050 Under Windows, determines whether the Windows colour dialog will
2051 display the full dialog with custom colour selection controls. Has no
2052 meaning under other platforms. The default value is true.
2054 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2056 def GetColour(*args
, **kwargs
):
2058 GetColour(self) -> Colour
2060 Gets the colour (pre)selected by the dialog.
2062 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2064 def GetCustomColour(*args
, **kwargs
):
2066 GetCustomColour(self, int i) -> Colour
2068 Gets the i'th custom colour associated with the colour dialog. i
2069 should be an integer between 0 and 15. The default custom colours are
2070 all invalid colours.
2072 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2074 def SetChooseFull(*args
, **kwargs
):
2076 SetChooseFull(self, int flag)
2078 Under Windows, tells the Windows colour dialog to display the full
2079 dialog with custom colour selection controls. Under other platforms,
2080 has no effect. The default value is true.
2082 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2084 def SetColour(*args
, **kwargs
):
2086 SetColour(self, Colour colour)
2088 Sets the default colour for the colour dialog. The default colour is
2091 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2093 def SetCustomColour(*args
, **kwargs
):
2095 SetCustomColour(self, int i, Colour colour)
2097 Sets the i'th custom colour for the colour dialog. i should be an
2098 integer between 0 and 15. The default custom colours are all invalid colours.
2100 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2102 _windows_
.ColourData_swigregister(ColourData
)
2103 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2104 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2105 DirDialogNameStr
= cvar
.DirDialogNameStr
2106 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2107 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2108 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2110 class ColourDialog(Dialog
):
2111 """This class represents the colour chooser dialog."""
2112 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2113 __repr__
= _swig_repr
2114 def __init__(self
, *args
, **kwargs
):
2116 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2118 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2119 which will be copied to the colour dialog's internal ColourData
2122 _windows_
.ColourDialog_swiginit(self
,_windows_
.new_ColourDialog(*args
, **kwargs
))
2123 self
._setOORInfo
(self
)
2125 def GetColourData(*args
, **kwargs
):
2127 GetColourData(self) -> ColourData
2129 Returns a reference to the `wx.ColourData` used by the dialog.
2131 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2133 _windows_
.ColourDialog_swigregister(ColourDialog
)
2136 def GetColourFromUser(*args
, **kwargs
):
2138 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2139 String caption=EmptyString) -> Colour
2141 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2142 DD_NEW_DIR_BUTTON
= _windows_
.DD_NEW_DIR_BUTTON
2143 DD_DEFAULT_STYLE
= _windows_
.DD_DEFAULT_STYLE
2144 DD_CHANGE_DIR
= _windows_
.DD_CHANGE_DIR
2145 class DirDialog(Dialog
):
2147 wx.DirDialog allows the user to select a directory by browising the
2150 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2151 __repr__
= _swig_repr
2152 def __init__(self
, *args
, **kwargs
):
2154 __init__(self, Window parent, String message=DirSelectorPromptStr,
2155 String defaultPath=EmptyString, long style=DD_DEFAULT_STYLE,
2156 Point pos=DefaultPosition, Size size=DefaultSize,
2157 String name=DirDialogNameStr) -> DirDialog
2159 Constructor. Use ShowModal method to show the dialog.
2161 _windows_
.DirDialog_swiginit(self
,_windows_
.new_DirDialog(*args
, **kwargs
))
2162 self
._setOORInfo
(self
)
2164 def GetPath(*args
, **kwargs
):
2166 GetPath(self) -> String
2168 Returns the default or user-selected path.
2170 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2172 def GetMessage(*args
, **kwargs
):
2174 GetMessage(self) -> String
2176 Returns the message that will be displayed on the dialog.
2178 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2180 def SetMessage(*args
, **kwargs
):
2182 SetMessage(self, String message)
2184 Sets the message that will be displayed on the dialog.
2186 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2188 def SetPath(*args
, **kwargs
):
2190 SetPath(self, String path)
2192 Sets the default path.
2194 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2196 _windows_
.DirDialog_swigregister(DirDialog
)
2198 OPEN
= _windows_
.OPEN
2199 SAVE
= _windows_
.SAVE
2200 OVERWRITE_PROMPT
= _windows_
.OVERWRITE_PROMPT
2201 FILE_MUST_EXIST
= _windows_
.FILE_MUST_EXIST
2202 MULTIPLE
= _windows_
.MULTIPLE
2203 CHANGE_DIR
= _windows_
.CHANGE_DIR
2204 HIDE_READONLY
= _windows_
.HIDE_READONLY
2205 FD_OPEN
= _windows_
.FD_OPEN
2206 FD_SAVE
= _windows_
.FD_SAVE
2207 FD_OVERWRITE_PROMPT
= _windows_
.FD_OVERWRITE_PROMPT
2208 FD_FILE_MUST_EXIST
= _windows_
.FD_FILE_MUST_EXIST
2209 FD_MULTIPLE
= _windows_
.FD_MULTIPLE
2210 FD_CHANGE_DIR
= _windows_
.FD_CHANGE_DIR
2211 FD_DEFAULT_STYLE
= _windows_
.FD_DEFAULT_STYLE
2212 class FileDialog(Dialog
):
2214 wx.FileDialog allows the user to select one or more files from the
2217 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2218 __repr__
= _swig_repr
2219 def __init__(self
, *args
, **kwargs
):
2221 __init__(self, Window parent, String message=FileSelectorPromptStr,
2222 String defaultDir=EmptyString, String defaultFile=EmptyString,
2223 String wildcard=FileSelectorDefaultWildcardStr,
2224 long style=FD_DEFAULT_STYLE,
2225 Point pos=DefaultPosition) -> FileDialog
2227 Constructor. Use ShowModal method to show the dialog.
2229 _windows_
.FileDialog_swiginit(self
,_windows_
.new_FileDialog(*args
, **kwargs
))
2230 self
._setOORInfo
(self
)
2232 def SetMessage(*args
, **kwargs
):
2234 SetMessage(self, String message)
2236 Sets the message that will be displayed on the dialog.
2238 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2240 def SetPath(*args
, **kwargs
):
2242 SetPath(self, String path)
2244 Sets the path (the combined directory and filename that will be
2245 returned when the dialog is dismissed).
2247 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2249 def SetDirectory(*args
, **kwargs
):
2251 SetDirectory(self, String dir)
2253 Sets the default directory.
2255 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2257 def SetFilename(*args
, **kwargs
):
2259 SetFilename(self, String name)
2261 Sets the default filename.
2263 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2265 def SetWildcard(*args
, **kwargs
):
2267 SetWildcard(self, String wildCard)
2269 Sets the wildcard, which can contain multiple file types, for
2272 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2275 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2277 def SetFilterIndex(*args
, **kwargs
):
2279 SetFilterIndex(self, int filterIndex)
2281 Sets the default filter index, starting from zero.
2283 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2285 def GetMessage(*args
, **kwargs
):
2287 GetMessage(self) -> String
2289 Returns the message that will be displayed on the dialog.
2291 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2293 def GetPath(*args
, **kwargs
):
2295 GetPath(self) -> String
2297 Returns the full path (directory and filename) of the selected file.
2299 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2301 def GetDirectory(*args
, **kwargs
):
2303 GetDirectory(self) -> String
2305 Returns the default directory.
2307 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2309 def GetFilename(*args
, **kwargs
):
2311 GetFilename(self) -> String
2313 Returns the default filename.
2315 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2317 def GetWildcard(*args
, **kwargs
):
2319 GetWildcard(self) -> String
2321 Returns the file dialog wildcard.
2323 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2325 def GetFilterIndex(*args
, **kwargs
):
2327 GetFilterIndex(self) -> int
2329 Returns the index into the list of filters supplied, optionally, in
2330 the wildcard parameter. Before the dialog is shown, this is the index
2331 which will be used when the dialog is first displayed. After the
2332 dialog is shown, this is the index selected by the user.
2334 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2336 def GetFilenames(*args
, **kwargs
):
2338 GetFilenames(self) -> PyObject
2340 Returns a list of filenames chosen in the dialog. This function
2341 should only be used with the dialogs which have wx.MULTIPLE style, use
2342 GetFilename for the others.
2344 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2346 def GetPaths(*args
, **kwargs
):
2348 GetPaths(self) -> PyObject
2350 Fills the array paths with the full paths of the files chosen. This
2351 function should only be used with the dialogs which have wx.MULTIPLE
2352 style, use GetPath for the others.
2354 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2356 _windows_
.FileDialog_swigregister(FileDialog
)
2358 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2359 class MultiChoiceDialog(Dialog
):
2360 """A simple dialog with a multi selection listbox."""
2361 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2362 __repr__
= _swig_repr
2363 def __init__(self
, *args
, **kwargs
):
2365 __init__(self, Window parent, String message, String caption,
2366 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2367 Point pos=DefaultPosition) -> MultiChoiceDialog
2369 Constructor. Use the `ShowModal` method to show the dialog.
2371 :param parent: The parent window.
2372 :param message: Text to display above the list of selections.
2373 :param caption: Text to use in the title bar of the dialog.
2374 :param choices: A list of strings or unicode objects that the
2375 user is allowed to choose from.
2376 :param style: Styles to apply to the dialog. The default value is
2377 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2378 :param pos: Where to position the dialog (not used on Windows)
2382 _windows_
.MultiChoiceDialog_swiginit(self
,_windows_
.new_MultiChoiceDialog(*args
, **kwargs
))
2383 self
._setOORInfo
(self
)
2385 def SetSelections(*args
, **kwargs
):
2387 SetSelections(List selections)
2389 Specify the items in the list that should be selected, using a list of
2390 integers. The list should specify the indexes of the items that
2393 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2395 def GetSelections(*args
, **kwargs
):
2397 GetSelections() -> [selections]
2399 Returns a list of integers representing the items that are selected.
2400 If an item is selected then its index will appear in the list.
2402 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2404 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialog
)
2406 class SingleChoiceDialog(Dialog
):
2407 """A simple dialog with a single selection listbox."""
2408 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2409 __repr__
= _swig_repr
2410 def __init__(self
, *args
, **kwargs
):
2412 __init__(Window parent, String message, String caption,
2413 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2414 Point pos=DefaultPosition) -> SingleChoiceDialog
2416 Constructor. Use ShowModal method to show the dialog.
2418 _windows_
.SingleChoiceDialog_swiginit(self
,_windows_
.new_SingleChoiceDialog(*args
, **kwargs
))
2419 self
._setOORInfo
(self
)
2421 def GetSelection(*args
, **kwargs
):
2423 GetSelection(self) -> int
2425 Get the index of teh currently selected item.
2427 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2429 def GetStringSelection(*args
, **kwargs
):
2431 GetStringSelection(self) -> String
2433 Returns the string value of the currently selected item
2435 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2437 def SetSelection(*args
, **kwargs
):
2439 SetSelection(self, int sel)
2441 Set the current selected item to sel
2443 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2445 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialog
)
2447 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2448 class TextEntryDialog(Dialog
):
2449 """A dialog with text control, [ok] and [cancel] buttons"""
2450 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2451 __repr__
= _swig_repr
2452 def __init__(self
, *args
, **kwargs
):
2454 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2455 String defaultValue=EmptyString,
2456 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2458 Constructor. Use ShowModal method to show the dialog.
2460 _windows_
.TextEntryDialog_swiginit(self
,_windows_
.new_TextEntryDialog(*args
, **kwargs
))
2461 self
._setOORInfo
(self
)
2463 def GetValue(*args
, **kwargs
):
2465 GetValue(self) -> String
2467 Returns the text that the user has entered if the user has pressed OK,
2468 or the original value if the user has pressed Cancel.
2470 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2472 def SetValue(*args
, **kwargs
):
2474 SetValue(self, String value)
2476 Sets the default text value.
2478 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2480 _windows_
.TextEntryDialog_swigregister(TextEntryDialog
)
2482 class PasswordEntryDialog(TextEntryDialog
):
2483 """Proxy of C++ PasswordEntryDialog class"""
2484 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2485 __repr__
= _swig_repr
2486 def __init__(self
, *args
, **kwargs
):
2488 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2489 String value=EmptyString,
2490 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2492 _windows_
.PasswordEntryDialog_swiginit(self
,_windows_
.new_PasswordEntryDialog(*args
, **kwargs
))
2493 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialog
)
2494 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2496 class NumberEntryDialog(Dialog
):
2497 """A dialog with spin control, ok and cancel buttons."""
2498 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2499 __repr__
= _swig_repr
2500 def __init__(self
, *args
, **kwargs
):
2502 __init__(self, Window parent, String message, String prompt, String caption,
2503 long value, long min, long max, Point pos=DefaultPosition) -> NumberEntryDialog
2505 Constructor. Use ShowModal method to show the dialog.
2507 _windows_
.NumberEntryDialog_swiginit(self
,_windows_
.new_NumberEntryDialog(*args
, **kwargs
))
2508 self
._setOORInfo
(self
)
2510 def GetValue(*args
, **kwargs
):
2511 """GetValue(self) -> long"""
2512 return _windows_
.NumberEntryDialog_GetValue(*args
, **kwargs
)
2514 _windows_
.NumberEntryDialog_swigregister(NumberEntryDialog
)
2516 class FontData(_core
.Object
):
2518 This class holds a variety of information related to font dialogs and
2519 is used to transfer settings to and results from a `wx.FontDialog`.
2521 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2522 __repr__
= _swig_repr
2523 def __init__(self
, *args
, **kwargs
):
2525 __init__(self) -> FontData
2527 This class holds a variety of information related to font dialogs and
2528 is used to transfer settings to and results from a `wx.FontDialog`.
2530 _windows_
.FontData_swiginit(self
,_windows_
.new_FontData(*args
, **kwargs
))
2531 __swig_destroy__
= _windows_
.delete_FontData
2532 __del__
= lambda self
: None;
2533 def EnableEffects(*args
, **kwargs
):
2535 EnableEffects(self, bool enable)
2537 Enables or disables 'effects' under MS Windows only. This refers to
2538 the controls for manipulating colour, strikeout and underline
2539 properties. The default value is true.
2541 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2543 def GetAllowSymbols(*args
, **kwargs
):
2545 GetAllowSymbols(self) -> bool
2547 Under MS Windows, returns a flag determining whether symbol fonts can
2548 be selected. Has no effect on other platforms. The default value is
2551 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2553 def GetColour(*args
, **kwargs
):
2555 GetColour(self) -> Colour
2557 Gets the colour associated with the font dialog. The default value is
2560 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2562 def GetChosenFont(*args
, **kwargs
):
2564 GetChosenFont(self) -> Font
2566 Gets the font chosen by the user.
2568 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2570 def GetEnableEffects(*args
, **kwargs
):
2572 GetEnableEffects(self) -> bool
2574 Determines whether 'effects' are enabled under Windows.
2576 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2578 def GetInitialFont(*args
, **kwargs
):
2580 GetInitialFont(self) -> Font
2582 Gets the font that will be initially used by the font dialog. This
2583 should have previously been set by the application.
2585 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2587 def GetShowHelp(*args
, **kwargs
):
2589 GetShowHelp(self) -> bool
2591 Returns true if the Help button will be shown (Windows only). The
2592 default value is false.
2594 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2596 def SetAllowSymbols(*args
, **kwargs
):
2598 SetAllowSymbols(self, bool allowSymbols)
2600 Under MS Windows, determines whether symbol fonts can be selected. Has
2601 no effect on other platforms. The default value is true.
2603 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2605 def SetChosenFont(*args
, **kwargs
):
2607 SetChosenFont(self, Font font)
2609 Sets the font that will be returned to the user (normally for internal
2612 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2614 def SetColour(*args
, **kwargs
):
2616 SetColour(self, Colour colour)
2618 Sets the colour that will be used for the font foreground colour. The
2619 default colour is black.
2621 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2623 def SetInitialFont(*args
, **kwargs
):
2625 SetInitialFont(self, Font font)
2627 Sets the font that will be initially used by the font dialog.
2629 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2631 def SetRange(*args
, **kwargs
):
2633 SetRange(self, int min, int max)
2635 Sets the valid range for the font point size (Windows only). The
2636 default is 0, 0 (unrestricted range).
2638 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2640 def SetShowHelp(*args
, **kwargs
):
2642 SetShowHelp(self, bool showHelp)
2644 Determines whether the Help button will be displayed in the font
2645 dialog (Windows only). The default value is false.
2647 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2649 _windows_
.FontData_swigregister(FontData
)
2651 class FontDialog(Dialog
):
2653 wx.FontDialog allows the user to select a system font and its attributes.
2658 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2659 __repr__
= _swig_repr
2660 def __init__(self
, *args
, **kwargs
):
2662 __init__(self, Window parent, FontData data) -> FontDialog
2664 Constructor. Pass a parent window and the `wx.FontData` object to be
2665 used to initialize the dialog controls. Call `ShowModal` to display
2666 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2667 results with via the `wx.FontData` returned by `GetFontData`.
2669 _windows_
.FontDialog_swiginit(self
,_windows_
.new_FontDialog(*args
, **kwargs
))
2670 self
._setOORInfo
(self
)
2672 def GetFontData(*args
, **kwargs
):
2674 GetFontData(self) -> FontData
2676 Returns a reference to the internal `wx.FontData` used by the
2679 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2681 _windows_
.FontDialog_swigregister(FontDialog
)
2684 def GetFontFromUser(*args
, **kwargs
):
2685 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2686 return _windows_
.GetFontFromUser(*args
, **kwargs
)
2687 class MessageDialog(Dialog
):
2689 This class provides a simple dialog that shows a single or multi-line
2690 message, with a choice of OK, Yes, No and/or Cancel buttons.
2692 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2693 __repr__
= _swig_repr
2694 def __init__(self
, *args
, **kwargs
):
2696 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2697 long style=wxOK|wxCANCEL|wxCENTRE,
2698 Point pos=DefaultPosition) -> MessageDialog
2700 Constructor, use `ShowModal` to display the dialog.
2702 _windows_
.MessageDialog_swiginit(self
,_windows_
.new_MessageDialog(*args
, **kwargs
))
2703 self
._setOORInfo
(self
)
2705 _windows_
.MessageDialog_swigregister(MessageDialog
)
2707 class ProgressDialog(Frame
):
2709 A dialog that shows a short message and a progress bar. Optionally, it
2710 can display an ABORT button.
2712 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2713 __repr__
= _swig_repr
2714 def __init__(self
, *args
, **kwargs
):
2716 __init__(self, String title, String message, int maximum=100, Window parent=None,
2717 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2719 Constructor. Creates the dialog, displays it and disables user input
2720 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2723 _windows_
.ProgressDialog_swiginit(self
,_windows_
.new_ProgressDialog(*args
, **kwargs
))
2724 self
._setOORInfo
(self
)
2726 def Update(*args
, **kwargs
):
2728 Update(self, int value, String newmsg) --> (continue, skip)
2730 Updates the dialog, setting the progress bar to the new value and, if
2731 given changes the message above it. The value given should be less
2732 than or equal to the maximum value given to the constructor and the
2733 dialog is closed if it is equal to the maximum. Returns a tuple of
2734 boolean values, ``(continue, skip)`` where ``continue`` is ``True``
2735 unless the Cancel button has been pressed, and ``skip`` is ``False``
2736 unless the Skip button (if any) has been pressed.
2738 If the ``continue`` return value is ``false``, the application can either
2739 immediately destroy the dialog or ask the user for confirmation, and if the
2740 abort is not confirmed the dialog may be resumed with `Resume` function.
2743 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2745 def Resume(*args
, **kwargs
):
2749 Can be used to continue with the dialog, after the user had chosen to
2752 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2754 _windows_
.ProgressDialog_swigregister(ProgressDialog
)
2756 FR_DOWN
= _windows_
.FR_DOWN
2757 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2758 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2759 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2760 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2761 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2762 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2763 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2764 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2765 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2766 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2767 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2768 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2769 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2770 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2771 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2772 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2774 # For backwards compatibility. Should they be removed?
2775 EVT_COMMAND_FIND
= EVT_FIND
2776 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2777 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2778 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2779 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2781 class FindDialogEvent(_core
.CommandEvent
):
2782 """Events for the FindReplaceDialog"""
2783 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2784 __repr__
= _swig_repr
2785 def __init__(self
, *args
, **kwargs
):
2787 __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2789 Events for the FindReplaceDialog
2791 _windows_
.FindDialogEvent_swiginit(self
,_windows_
.new_FindDialogEvent(*args
, **kwargs
))
2792 def GetFlags(*args
, **kwargs
):
2794 GetFlags(self) -> int
2796 Get the currently selected flags: this is the combination of
2797 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2799 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2801 def GetFindString(*args
, **kwargs
):
2803 GetFindString(self) -> String
2805 Return the string to find (never empty).
2807 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2809 def GetReplaceString(*args
, **kwargs
):
2811 GetReplaceString(self) -> String
2813 Return the string to replace the search string with (only for replace
2814 and replace all events).
2816 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2818 def GetDialog(*args
, **kwargs
):
2820 GetDialog(self) -> FindReplaceDialog
2822 Return the pointer to the dialog which generated this event.
2824 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2826 def SetFlags(*args
, **kwargs
):
2827 """SetFlags(self, int flags)"""
2828 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2830 def SetFindString(*args
, **kwargs
):
2831 """SetFindString(self, String str)"""
2832 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2834 def SetReplaceString(*args
, **kwargs
):
2835 """SetReplaceString(self, String str)"""
2836 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2838 _windows_
.FindDialogEvent_swigregister(FindDialogEvent
)
2840 class FindReplaceData(_core
.Object
):
2842 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2843 to initialize the dialog with the default values and will keep the
2844 last values from the dialog when it is closed. It is also updated each
2845 time a `wx.FindDialogEvent` is generated so instead of using the
2846 `wx.FindDialogEvent` methods you can also directly query this object.
2848 Note that all SetXXX() methods may only be called before showing the
2849 dialog and calling them has no effect later.
2851 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2852 __repr__
= _swig_repr
2853 def __init__(self
, *args
, **kwargs
):
2855 __init__(self, int flags=0) -> FindReplaceData
2857 Constuctor initializes the flags to default value (0).
2859 _windows_
.FindReplaceData_swiginit(self
,_windows_
.new_FindReplaceData(*args
, **kwargs
))
2860 __swig_destroy__
= _windows_
.delete_FindReplaceData
2861 __del__
= lambda self
: None;
2862 def GetFindString(*args
, **kwargs
):
2864 GetFindString(self) -> String
2866 Get the string to find.
2868 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2870 def GetReplaceString(*args
, **kwargs
):
2872 GetReplaceString(self) -> String
2874 Get the replacement string.
2876 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2878 def GetFlags(*args
, **kwargs
):
2880 GetFlags(self) -> int
2882 Get the combination of flag values.
2884 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
2886 def SetFlags(*args
, **kwargs
):
2888 SetFlags(self, int flags)
2890 Set the flags to use to initialize the controls of the dialog.
2892 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
2894 def SetFindString(*args
, **kwargs
):
2896 SetFindString(self, String str)
2898 Set the string to find (used as initial value by the dialog).
2900 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
2902 def SetReplaceString(*args
, **kwargs
):
2904 SetReplaceString(self, String str)
2906 Set the replacement string (used as initial value by the dialog).
2908 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2910 _windows_
.FindReplaceData_swigregister(FindReplaceData
)
2912 class FindReplaceDialog(Dialog
):
2914 wx.FindReplaceDialog is a standard modeless dialog which is used to
2915 allow the user to search for some text (and possibly replace it with
2916 something else). The actual searching is supposed to be done in the
2917 owner window which is the parent of this dialog. Note that it means
2918 that unlike for the other standard dialogs this one must have a parent
2919 window. Also note that there is no way to use this dialog in a modal
2920 way; it is always, by design and implementation, modeless.
2922 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2923 __repr__
= _swig_repr
2924 def __init__(self
, *args
, **kwargs
):
2926 __init__(self, Window parent, FindReplaceData data, String title,
2927 int style=0) -> FindReplaceDialog
2929 Create a FindReplaceDialog. The parent and data parameters must be
2930 non-None. Use Show to display the dialog.
2932 _windows_
.FindReplaceDialog_swiginit(self
,_windows_
.new_FindReplaceDialog(*args
, **kwargs
))
2933 self
._setOORInfo
(self
)
2935 def Create(*args
, **kwargs
):
2937 Create(self, Window parent, FindReplaceData data, String title,
2938 int style=0) -> bool
2940 Create the dialog, for 2-phase create.
2942 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
2944 def GetData(*args
, **kwargs
):
2946 GetData(self) -> FindReplaceData
2948 Get the FindReplaceData object used by this dialog.
2950 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
2952 def SetData(*args
, **kwargs
):
2954 SetData(self, FindReplaceData data)
2956 Set the FindReplaceData object used by this dialog.
2958 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
2960 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialog
)
2962 def PreFindReplaceDialog(*args
, **kwargs
):
2964 PreFindReplaceDialog() -> FindReplaceDialog
2966 Precreate a FindReplaceDialog for 2-phase creation
2968 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
2971 #---------------------------------------------------------------------------
2973 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
2974 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
2975 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
2976 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
2977 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
2978 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
2979 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
2980 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
2981 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
2982 class MDIParentFrame(Frame
):
2983 """Proxy of C++ MDIParentFrame class"""
2984 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2985 __repr__
= _swig_repr
2986 def __init__(self
, *args
, **kwargs
):
2988 __init__(self, Window parent, int id=-1, String title=EmptyString,
2989 Point pos=DefaultPosition, Size size=DefaultSize,
2990 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2991 String name=FrameNameStr) -> MDIParentFrame
2993 _windows_
.MDIParentFrame_swiginit(self
,_windows_
.new_MDIParentFrame(*args
, **kwargs
))
2994 self
._setOORInfo
(self
)
2996 def Create(*args
, **kwargs
):
2998 Create(self, Window parent, int id=-1, String title=EmptyString,
2999 Point pos=DefaultPosition, Size size=DefaultSize,
3000 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3001 String name=FrameNameStr) -> bool
3003 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3005 def ActivateNext(*args
, **kwargs
):
3006 """ActivateNext(self)"""
3007 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3009 def ActivatePrevious(*args
, **kwargs
):
3010 """ActivatePrevious(self)"""
3011 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3013 def ArrangeIcons(*args
, **kwargs
):
3014 """ArrangeIcons(self)"""
3015 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3017 def Cascade(*args
, **kwargs
):
3019 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3021 def GetActiveChild(*args
, **kwargs
):
3022 """GetActiveChild(self) -> MDIChildFrame"""
3023 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3025 def GetClientWindow(*args
, **kwargs
):
3026 """GetClientWindow(self) -> MDIClientWindow"""
3027 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3029 def GetToolBar(*args
, **kwargs
):
3030 """GetToolBar(self) -> Window"""
3031 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3033 def Tile(*args
, **kwargs
):
3034 """Tile(self, int orient=HORIZONTAL)"""
3035 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3037 _windows_
.MDIParentFrame_swigregister(MDIParentFrame
)
3039 def PreMDIParentFrame(*args
, **kwargs
):
3040 """PreMDIParentFrame() -> MDIParentFrame"""
3041 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3044 class MDIChildFrame(Frame
):
3045 """Proxy of C++ MDIChildFrame class"""
3046 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3047 __repr__
= _swig_repr
3048 def __init__(self
, *args
, **kwargs
):
3050 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3051 Point pos=DefaultPosition, Size size=DefaultSize,
3052 long style=DEFAULT_FRAME_STYLE,
3053 String name=FrameNameStr) -> MDIChildFrame
3055 _windows_
.MDIChildFrame_swiginit(self
,_windows_
.new_MDIChildFrame(*args
, **kwargs
))
3056 self
._setOORInfo
(self
)
3058 def Create(*args
, **kwargs
):
3060 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3061 Point pos=DefaultPosition, Size size=DefaultSize,
3062 long style=DEFAULT_FRAME_STYLE,
3063 String name=FrameNameStr) -> bool
3065 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3067 def Activate(*args
, **kwargs
):
3068 """Activate(self)"""
3069 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3071 _windows_
.MDIChildFrame_swigregister(MDIChildFrame
)
3073 def PreMDIChildFrame(*args
, **kwargs
):
3074 """PreMDIChildFrame() -> MDIChildFrame"""
3075 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3078 class MDIClientWindow(_core
.Window
):
3079 """Proxy of C++ MDIClientWindow class"""
3080 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3081 __repr__
= _swig_repr
3082 def __init__(self
, *args
, **kwargs
):
3083 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3084 _windows_
.MDIClientWindow_swiginit(self
,_windows_
.new_MDIClientWindow(*args
, **kwargs
))
3085 self
._setOORInfo
(self
)
3087 def Create(*args
, **kwargs
):
3088 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3089 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3091 _windows_
.MDIClientWindow_swigregister(MDIClientWindow
)
3093 def PreMDIClientWindow(*args
, **kwargs
):
3094 """PreMDIClientWindow() -> MDIClientWindow"""
3095 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3098 #---------------------------------------------------------------------------
3100 class PyWindow(_core
.Window
):
3101 """Proxy of C++ PyWindow class"""
3102 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3103 __repr__
= _swig_repr
3104 def __init__(self
, *args
, **kwargs
):
3106 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3107 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3109 _windows_
.PyWindow_swiginit(self
,_windows_
.new_PyWindow(*args
, **kwargs
))
3110 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3112 def _setCallbackInfo(*args
, **kwargs
):
3113 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3114 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3116 def SetBestSize(*args
, **kwargs
):
3117 """SetBestSize(self, Size size)"""
3118 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3120 def DoEraseBackground(*args
, **kwargs
):
3121 """DoEraseBackground(self, DC dc) -> bool"""
3122 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3124 def DoMoveWindow(*args
, **kwargs
):
3125 """DoMoveWindow(self, int x, int y, int width, int height)"""
3126 return _windows_
.PyWindow_DoMoveWindow(*args
, **kwargs
)
3128 def DoSetSize(*args
, **kwargs
):
3129 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3130 return _windows_
.PyWindow_DoSetSize(*args
, **kwargs
)
3132 def DoSetClientSize(*args
, **kwargs
):
3133 """DoSetClientSize(self, int width, int height)"""
3134 return _windows_
.PyWindow_DoSetClientSize(*args
, **kwargs
)
3136 def DoSetVirtualSize(*args
, **kwargs
):
3137 """DoSetVirtualSize(self, int x, int y)"""
3138 return _windows_
.PyWindow_DoSetVirtualSize(*args
, **kwargs
)
3140 def DoGetSize(*args
, **kwargs
):
3141 """DoGetSize() -> (width, height)"""
3142 return _windows_
.PyWindow_DoGetSize(*args
, **kwargs
)
3144 def DoGetClientSize(*args
, **kwargs
):
3145 """DoGetClientSize() -> (width, height)"""
3146 return _windows_
.PyWindow_DoGetClientSize(*args
, **kwargs
)
3148 def DoGetPosition(*args
, **kwargs
):
3149 """DoGetPosition() -> (x,y)"""
3150 return _windows_
.PyWindow_DoGetPosition(*args
, **kwargs
)
3152 def DoGetVirtualSize(*args
, **kwargs
):
3153 """DoGetVirtualSize(self) -> Size"""
3154 return _windows_
.PyWindow_DoGetVirtualSize(*args
, **kwargs
)
3156 def DoGetBestSize(*args
, **kwargs
):
3157 """DoGetBestSize(self) -> Size"""
3158 return _windows_
.PyWindow_DoGetBestSize(*args
, **kwargs
)
3160 def GetDefaultAttributes(*args
, **kwargs
):
3161 """GetDefaultAttributes(self) -> VisualAttributes"""
3162 return _windows_
.PyWindow_GetDefaultAttributes(*args
, **kwargs
)
3164 def OnInternalIdle(*args
, **kwargs
):
3165 """OnInternalIdle(self)"""
3166 return _windows_
.PyWindow_OnInternalIdle(*args
, **kwargs
)
3168 def base_DoMoveWindow(*args
, **kw
):
3169 return PyWindow
.DoMoveWindow(*args
, **kw
)
3170 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3171 "Please use PyWindow.DoMoveWindow instead.")
3173 def base_DoSetSize(*args
, **kw
):
3174 return PyWindow
.DoSetSize(*args
, **kw
)
3175 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3176 "Please use PyWindow.DoSetSize instead.")
3178 def base_DoSetClientSize(*args
, **kw
):
3179 return PyWindow
.DoSetClientSize(*args
, **kw
)
3180 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3181 "Please use PyWindow.DoSetClientSize instead.")
3183 def base_DoSetVirtualSize(*args
, **kw
):
3184 return PyWindow
.DoSetVirtualSize(*args
, **kw
)
3185 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3186 "Please use PyWindow.DoSetVirtualSize instead.")
3188 def base_DoGetSize(*args
, **kw
):
3189 return PyWindow
.DoGetSize(*args
, **kw
)
3190 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3191 "Please use PyWindow.DoGetSize instead.")
3193 def base_DoGetClientSize(*args
, **kw
):
3194 return PyWindow
.DoGetClientSize(*args
, **kw
)
3195 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3196 "Please use PyWindow.DoGetClientSize instead.")
3198 def base_DoGetPosition(*args
, **kw
):
3199 return PyWindow
.DoGetPosition(*args
, **kw
)
3200 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3201 "Please use PyWindow.DoGetPosition instead.")
3203 def base_DoGetVirtualSize(*args
, **kw
):
3204 return PyWindow
.DoGetVirtualSize(*args
, **kw
)
3205 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3206 "Please use PyWindow.DoGetVirtualSize instead.")
3208 def base_DoGetBestSize(*args
, **kw
):
3209 return PyWindow
.DoGetBestSize(*args
, **kw
)
3210 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3211 "Please use PyWindow.DoGetBestSize instead.")
3213 def base_InitDialog(*args
, **kw
):
3214 return PyWindow
.InitDialog(*args
, **kw
)
3215 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3216 "Please use PyWindow.InitDialog instead.")
3218 def base_TransferDataToWindow(*args
, **kw
):
3219 return PyWindow
.TransferDataToWindow(*args
, **kw
)
3220 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3221 "Please use PyWindow.TransferDataToWindow instead.")
3223 def base_TransferDataFromWindow(*args
, **kw
):
3224 return PyWindow
.TransferDataFromWindow(*args
, **kw
)
3225 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3226 "Please use PyWindow.TransferDataFromWindow instead.")
3228 def base_Validate(*args
, **kw
):
3229 return PyWindow
.Validate(*args
, **kw
)
3230 base_Validate
= wx
._deprecated
(base_Validate
,
3231 "Please use PyWindow.Validate instead.")
3233 def base_AcceptsFocus(*args
, **kw
):
3234 return PyWindow
.AcceptsFocus(*args
, **kw
)
3235 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3236 "Please use PyWindow.AcceptsFocus instead.")
3238 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3239 return PyWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3240 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3241 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3243 def base_GetMaxSize(*args
, **kw
):
3244 return PyWindow
.GetMaxSize(*args
, **kw
)
3245 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3246 "Please use PyWindow.GetMaxSize instead.")
3248 def base_AddChild(*args
, **kw
):
3249 return PyWindow
.AddChild(*args
, **kw
)
3250 base_AddChild
= wx
._deprecated
(base_AddChild
,
3251 "Please use PyWindow.AddChild instead.")
3253 def base_RemoveChild(*args
, **kw
):
3254 return PyWindow
.RemoveChild(*args
, **kw
)
3255 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3256 "Please use PyWindow.RemoveChild instead.")
3258 def base_ShouldInheritColours(*args
, **kw
):
3259 return PyWindow
.ShouldInheritColours(*args
, **kw
)
3260 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3261 "Please use PyWindow.ShouldInheritColours instead.")
3263 def base_GetDefaultAttributes(*args
, **kw
):
3264 return PyWindow
.GetDefaultAttributes(*args
, **kw
)
3265 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3266 "Please use PyWindow.GetDefaultAttributes instead.")
3268 def base_OnInternalIdle(*args
, **kw
):
3269 return PyWindow
.OnInternalIdle(*args
, **kw
)
3270 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3271 "Please use PyWindow.OnInternalIdle instead.")
3273 _windows_
.PyWindow_swigregister(PyWindow
)
3275 def PrePyWindow(*args
, **kwargs
):
3276 """PrePyWindow() -> PyWindow"""
3277 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3280 class PyPanel(Panel
):
3281 """Proxy of C++ PyPanel class"""
3282 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3283 __repr__
= _swig_repr
3284 def __init__(self
, *args
, **kwargs
):
3286 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3287 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3289 _windows_
.PyPanel_swiginit(self
,_windows_
.new_PyPanel(*args
, **kwargs
))
3290 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3292 def _setCallbackInfo(*args
, **kwargs
):
3293 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3294 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3296 def SetBestSize(*args
, **kwargs
):
3297 """SetBestSize(self, Size size)"""
3298 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3300 def DoEraseBackground(*args
, **kwargs
):
3301 """DoEraseBackground(self, DC dc) -> bool"""
3302 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3304 def DoMoveWindow(*args
, **kwargs
):
3305 """DoMoveWindow(self, int x, int y, int width, int height)"""
3306 return _windows_
.PyPanel_DoMoveWindow(*args
, **kwargs
)
3308 def DoSetSize(*args
, **kwargs
):
3309 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3310 return _windows_
.PyPanel_DoSetSize(*args
, **kwargs
)
3312 def DoSetClientSize(*args
, **kwargs
):
3313 """DoSetClientSize(self, int width, int height)"""
3314 return _windows_
.PyPanel_DoSetClientSize(*args
, **kwargs
)
3316 def DoSetVirtualSize(*args
, **kwargs
):
3317 """DoSetVirtualSize(self, int x, int y)"""
3318 return _windows_
.PyPanel_DoSetVirtualSize(*args
, **kwargs
)
3320 def DoGetSize(*args
, **kwargs
):
3321 """DoGetSize() -> (width, height)"""
3322 return _windows_
.PyPanel_DoGetSize(*args
, **kwargs
)
3324 def DoGetClientSize(*args
, **kwargs
):
3325 """DoGetClientSize() -> (width, height)"""
3326 return _windows_
.PyPanel_DoGetClientSize(*args
, **kwargs
)
3328 def DoGetPosition(*args
, **kwargs
):
3329 """DoGetPosition() -> (x,y)"""
3330 return _windows_
.PyPanel_DoGetPosition(*args
, **kwargs
)
3332 def DoGetVirtualSize(*args
, **kwargs
):
3333 """DoGetVirtualSize(self) -> Size"""
3334 return _windows_
.PyPanel_DoGetVirtualSize(*args
, **kwargs
)
3336 def DoGetBestSize(*args
, **kwargs
):
3337 """DoGetBestSize(self) -> Size"""
3338 return _windows_
.PyPanel_DoGetBestSize(*args
, **kwargs
)
3340 def GetDefaultAttributes(*args
, **kwargs
):
3341 """GetDefaultAttributes(self) -> VisualAttributes"""
3342 return _windows_
.PyPanel_GetDefaultAttributes(*args
, **kwargs
)
3344 def OnInternalIdle(*args
, **kwargs
):
3345 """OnInternalIdle(self)"""
3346 return _windows_
.PyPanel_OnInternalIdle(*args
, **kwargs
)
3348 def base_DoMoveWindow(*args
, **kw
):
3349 return PyPanel
.DoMoveWindow(*args
, **kw
)
3350 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3351 "Please use PyPanel.DoMoveWindow instead.")
3353 def base_DoSetSize(*args
, **kw
):
3354 return PyPanel
.DoSetSize(*args
, **kw
)
3355 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3356 "Please use PyPanel.DoSetSize instead.")
3358 def base_DoSetClientSize(*args
, **kw
):
3359 return PyPanel
.DoSetClientSize(*args
, **kw
)
3360 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3361 "Please use PyPanel.DoSetClientSize instead.")
3363 def base_DoSetVirtualSize(*args
, **kw
):
3364 return PyPanel
.DoSetVirtualSize(*args
, **kw
)
3365 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3366 "Please use PyPanel.DoSetVirtualSize instead.")
3368 def base_DoGetSize(*args
, **kw
):
3369 return PyPanel
.DoGetSize(*args
, **kw
)
3370 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3371 "Please use PyPanel.DoGetSize instead.")
3373 def base_DoGetClientSize(*args
, **kw
):
3374 return PyPanel
.DoGetClientSize(*args
, **kw
)
3375 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3376 "Please use PyPanel.DoGetClientSize instead.")
3378 def base_DoGetPosition(*args
, **kw
):
3379 return PyPanel
.DoGetPosition(*args
, **kw
)
3380 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3381 "Please use PyPanel.DoGetPosition instead.")
3383 def base_DoGetVirtualSize(*args
, **kw
):
3384 return PyPanel
.DoGetVirtualSize(*args
, **kw
)
3385 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3386 "Please use PyPanel.DoGetVirtualSize instead.")
3388 def base_DoGetBestSize(*args
, **kw
):
3389 return PyPanel
.DoGetBestSize(*args
, **kw
)
3390 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3391 "Please use PyPanel.DoGetBestSize instead.")
3393 def base_InitDialog(*args
, **kw
):
3394 return PyPanel
.InitDialog(*args
, **kw
)
3395 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3396 "Please use PyPanel.InitDialog instead.")
3398 def base_TransferDataToWindow(*args
, **kw
):
3399 return PyPanel
.TransferDataToWindow(*args
, **kw
)
3400 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3401 "Please use PyPanel.TransferDataToWindow instead.")
3403 def base_TransferDataFromWindow(*args
, **kw
):
3404 return PyPanel
.TransferDataFromWindow(*args
, **kw
)
3405 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3406 "Please use PyPanel.TransferDataFromWindow instead.")
3408 def base_Validate(*args
, **kw
):
3409 return PyPanel
.Validate(*args
, **kw
)
3410 base_Validate
= wx
._deprecated
(base_Validate
,
3411 "Please use PyPanel.Validate instead.")
3413 def base_AcceptsFocus(*args
, **kw
):
3414 return PyPanel
.AcceptsFocus(*args
, **kw
)
3415 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3416 "Please use PyPanel.AcceptsFocus instead.")
3418 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3419 return PyPanel
.AcceptsFocusFromKeyboard(*args
, **kw
)
3420 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3421 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
3423 def base_GetMaxSize(*args
, **kw
):
3424 return PyPanel
.GetMaxSize(*args
, **kw
)
3425 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3426 "Please use PyPanel.GetMaxSize instead.")
3428 def base_AddChild(*args
, **kw
):
3429 return PyPanel
.AddChild(*args
, **kw
)
3430 base_AddChild
= wx
._deprecated
(base_AddChild
,
3431 "Please use PyPanel.AddChild instead.")
3433 def base_RemoveChild(*args
, **kw
):
3434 return PyPanel
.RemoveChild(*args
, **kw
)
3435 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3436 "Please use PyPanel.RemoveChild instead.")
3438 def base_ShouldInheritColours(*args
, **kw
):
3439 return PyPanel
.ShouldInheritColours(*args
, **kw
)
3440 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3441 "Please use PyPanel.ShouldInheritColours instead.")
3443 def base_GetDefaultAttributes(*args
, **kw
):
3444 return PyPanel
.GetDefaultAttributes(*args
, **kw
)
3445 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3446 "Please use PyPanel.GetDefaultAttributes instead.")
3448 def base_OnInternalIdle(*args
, **kw
):
3449 return PyPanel
.OnInternalIdle(*args
, **kw
)
3450 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3451 "Please use PyPanel.OnInternalIdle instead.")
3453 _windows_
.PyPanel_swigregister(PyPanel
)
3455 def PrePyPanel(*args
, **kwargs
):
3456 """PrePyPanel() -> PyPanel"""
3457 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3460 class PyScrolledWindow(ScrolledWindow
):
3461 """Proxy of C++ PyScrolledWindow class"""
3462 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3463 __repr__
= _swig_repr
3464 def __init__(self
, *args
, **kwargs
):
3466 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3467 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3469 _windows_
.PyScrolledWindow_swiginit(self
,_windows_
.new_PyScrolledWindow(*args
, **kwargs
))
3470 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3472 def _setCallbackInfo(*args
, **kwargs
):
3473 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3474 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3476 def SetBestSize(*args
, **kwargs
):
3477 """SetBestSize(self, Size size)"""
3478 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3480 def DoEraseBackground(*args
, **kwargs
):
3481 """DoEraseBackground(self, DC dc) -> bool"""
3482 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3484 def DoMoveWindow(*args
, **kwargs
):
3485 """DoMoveWindow(self, int x, int y, int width, int height)"""
3486 return _windows_
.PyScrolledWindow_DoMoveWindow(*args
, **kwargs
)
3488 def DoSetSize(*args
, **kwargs
):
3489 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3490 return _windows_
.PyScrolledWindow_DoSetSize(*args
, **kwargs
)
3492 def DoSetClientSize(*args
, **kwargs
):
3493 """DoSetClientSize(self, int width, int height)"""
3494 return _windows_
.PyScrolledWindow_DoSetClientSize(*args
, **kwargs
)
3496 def DoSetVirtualSize(*args
, **kwargs
):
3497 """DoSetVirtualSize(self, int x, int y)"""
3498 return _windows_
.PyScrolledWindow_DoSetVirtualSize(*args
, **kwargs
)
3500 def DoGetSize(*args
, **kwargs
):
3501 """DoGetSize() -> (width, height)"""
3502 return _windows_
.PyScrolledWindow_DoGetSize(*args
, **kwargs
)
3504 def DoGetClientSize(*args
, **kwargs
):
3505 """DoGetClientSize() -> (width, height)"""
3506 return _windows_
.PyScrolledWindow_DoGetClientSize(*args
, **kwargs
)
3508 def DoGetPosition(*args
, **kwargs
):
3509 """DoGetPosition() -> (x,y)"""
3510 return _windows_
.PyScrolledWindow_DoGetPosition(*args
, **kwargs
)
3512 def DoGetVirtualSize(*args
, **kwargs
):
3513 """DoGetVirtualSize(self) -> Size"""
3514 return _windows_
.PyScrolledWindow_DoGetVirtualSize(*args
, **kwargs
)
3516 def DoGetBestSize(*args
, **kwargs
):
3517 """DoGetBestSize(self) -> Size"""
3518 return _windows_
.PyScrolledWindow_DoGetBestSize(*args
, **kwargs
)
3520 def GetDefaultAttributes(*args
, **kwargs
):
3521 """GetDefaultAttributes(self) -> VisualAttributes"""
3522 return _windows_
.PyScrolledWindow_GetDefaultAttributes(*args
, **kwargs
)
3524 def OnInternalIdle(*args
, **kwargs
):
3525 """OnInternalIdle(self)"""
3526 return _windows_
.PyScrolledWindow_OnInternalIdle(*args
, **kwargs
)
3528 def base_DoMoveWindow(*args
, **kw
):
3529 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
3530 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3531 "Please use PyScrolledWindow.DoMoveWindow instead.")
3533 def base_DoSetSize(*args
, **kw
):
3534 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
3535 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3536 "Please use PyScrolledWindow.DoSetSize instead.")
3538 def base_DoSetClientSize(*args
, **kw
):
3539 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
3540 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3541 "Please use PyScrolledWindow.DoSetClientSize instead.")
3543 def base_DoSetVirtualSize(*args
, **kw
):
3544 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
3545 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3546 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
3548 def base_DoGetSize(*args
, **kw
):
3549 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
3550 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3551 "Please use PyScrolledWindow.DoGetSize instead.")
3553 def base_DoGetClientSize(*args
, **kw
):
3554 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
3555 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3556 "Please use PyScrolledWindow.DoGetClientSize instead.")
3558 def base_DoGetPosition(*args
, **kw
):
3559 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
3560 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3561 "Please use PyScrolledWindow.DoGetPosition instead.")
3563 def base_DoGetVirtualSize(*args
, **kw
):
3564 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
3565 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3566 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
3568 def base_DoGetBestSize(*args
, **kw
):
3569 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
3570 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3571 "Please use PyScrolledWindow.DoGetBestSize instead.")
3573 def base_InitDialog(*args
, **kw
):
3574 return PyScrolledWindow
.InitDialog(*args
, **kw
)
3575 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3576 "Please use PyScrolledWindow.InitDialog instead.")
3578 def base_TransferDataToWindow(*args
, **kw
):
3579 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
3580 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3581 "Please use PyScrolledWindow.TransferDataToWindow instead.")
3583 def base_TransferDataFromWindow(*args
, **kw
):
3584 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
3585 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3586 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
3588 def base_Validate(*args
, **kw
):
3589 return PyScrolledWindow
.Validate(*args
, **kw
)
3590 base_Validate
= wx
._deprecated
(base_Validate
,
3591 "Please use PyScrolledWindow.Validate instead.")
3593 def base_AcceptsFocus(*args
, **kw
):
3594 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
3595 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3596 "Please use PyScrolledWindow.AcceptsFocus instead.")
3598 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3599 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3600 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3601 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
3603 def base_GetMaxSize(*args
, **kw
):
3604 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
3605 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3606 "Please use PyScrolledWindow.GetMaxSize instead.")
3608 def base_AddChild(*args
, **kw
):
3609 return PyScrolledWindow
.AddChild(*args
, **kw
)
3610 base_AddChild
= wx
._deprecated
(base_AddChild
,
3611 "Please use PyScrolledWindow.AddChild instead.")
3613 def base_RemoveChild(*args
, **kw
):
3614 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
3615 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3616 "Please use PyScrolledWindow.RemoveChild instead.")
3618 def base_ShouldInheritColours(*args
, **kw
):
3619 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
3620 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3621 "Please use PyScrolledWindow.ShouldInheritColours instead.")
3623 def base_GetDefaultAttributes(*args
, **kw
):
3624 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
3625 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3626 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
3628 def base_OnInternalIdle(*args
, **kw
):
3629 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
3630 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3631 "Please use PyScrolledWindow.OnInternalIdle instead.")
3633 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindow
)
3635 def PrePyScrolledWindow(*args
, **kwargs
):
3636 """PrePyScrolledWindow() -> PyScrolledWindow"""
3637 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3640 #---------------------------------------------------------------------------
3642 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3643 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3644 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3645 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3646 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3647 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3648 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3649 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3650 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3651 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3652 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3653 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3654 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3655 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3656 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3657 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3658 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3659 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3660 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3661 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3662 class PrintData(_core
.Object
):
3663 """Proxy of C++ PrintData class"""
3664 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3665 __repr__
= _swig_repr
3666 def __init__(self
, *args
):
3668 __init__(self) -> PrintData
3669 __init__(self, PrintData data) -> PrintData
3671 _windows_
.PrintData_swiginit(self
,_windows_
.new_PrintData(*args
))
3672 __swig_destroy__
= _windows_
.delete_PrintData
3673 __del__
= lambda self
: None;
3674 def GetNoCopies(*args
, **kwargs
):
3675 """GetNoCopies(self) -> int"""
3676 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3678 def GetCollate(*args
, **kwargs
):
3679 """GetCollate(self) -> bool"""
3680 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3682 def GetOrientation(*args
, **kwargs
):
3683 """GetOrientation(self) -> int"""
3684 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3686 def Ok(*args
, **kwargs
):
3687 """Ok(self) -> bool"""
3688 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3690 def GetPrinterName(*args
, **kwargs
):
3691 """GetPrinterName(self) -> String"""
3692 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3694 def GetColour(*args
, **kwargs
):
3695 """GetColour(self) -> bool"""
3696 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3698 def GetDuplex(*args
, **kwargs
):
3699 """GetDuplex(self) -> int"""
3700 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3702 def GetPaperId(*args
, **kwargs
):
3703 """GetPaperId(self) -> int"""
3704 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3706 def GetPaperSize(*args
, **kwargs
):
3707 """GetPaperSize(self) -> Size"""
3708 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3710 def GetQuality(*args
, **kwargs
):
3711 """GetQuality(self) -> int"""
3712 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3714 def GetBin(*args
, **kwargs
):
3715 """GetBin(self) -> int"""
3716 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3718 def GetPrintMode(*args
, **kwargs
):
3719 """GetPrintMode(self) -> int"""
3720 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3722 def SetNoCopies(*args
, **kwargs
):
3723 """SetNoCopies(self, int v)"""
3724 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3726 def SetCollate(*args
, **kwargs
):
3727 """SetCollate(self, bool flag)"""
3728 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3730 def SetOrientation(*args
, **kwargs
):
3731 """SetOrientation(self, int orient)"""
3732 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3734 def SetPrinterName(*args
, **kwargs
):
3735 """SetPrinterName(self, String name)"""
3736 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3738 def SetColour(*args
, **kwargs
):
3739 """SetColour(self, bool colour)"""
3740 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3742 def SetDuplex(*args
, **kwargs
):
3743 """SetDuplex(self, int duplex)"""
3744 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3746 def SetPaperId(*args
, **kwargs
):
3747 """SetPaperId(self, int sizeId)"""
3748 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3750 def SetPaperSize(*args
, **kwargs
):
3751 """SetPaperSize(self, Size sz)"""
3752 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3754 def SetQuality(*args
, **kwargs
):
3755 """SetQuality(self, int quality)"""
3756 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3758 def SetBin(*args
, **kwargs
):
3759 """SetBin(self, int bin)"""
3760 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3762 def SetPrintMode(*args
, **kwargs
):
3763 """SetPrintMode(self, int printMode)"""
3764 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3766 def GetFilename(*args
, **kwargs
):
3767 """GetFilename(self) -> String"""
3768 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3770 def SetFilename(*args
, **kwargs
):
3771 """SetFilename(self, String filename)"""
3772 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3774 def __nonzero__(self
): return self
.Ok()
3775 def GetPrivData(*args
, **kwargs
):
3776 """GetPrivData(self) -> PyObject"""
3777 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
3779 def SetPrivData(*args
, **kwargs
):
3780 """SetPrivData(self, PyObject data)"""
3781 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
3783 _windows_
.PrintData_swigregister(PrintData
)
3784 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3785 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3787 class PageSetupDialogData(_core
.Object
):
3788 """Proxy of C++ PageSetupDialogData class"""
3789 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3790 __repr__
= _swig_repr
3791 def __init__(self
, *args
):
3793 __init__(self) -> PageSetupDialogData
3794 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3795 __init__(self, PrintData data) -> PageSetupDialogData
3797 _windows_
.PageSetupDialogData_swiginit(self
,_windows_
.new_PageSetupDialogData(*args
))
3798 __swig_destroy__
= _windows_
.delete_PageSetupDialogData
3799 __del__
= lambda self
: None;
3800 def EnableHelp(*args
, **kwargs
):
3801 """EnableHelp(self, bool flag)"""
3802 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3804 def EnableMargins(*args
, **kwargs
):
3805 """EnableMargins(self, bool flag)"""
3806 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3808 def EnableOrientation(*args
, **kwargs
):
3809 """EnableOrientation(self, bool flag)"""
3810 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3812 def EnablePaper(*args
, **kwargs
):
3813 """EnablePaper(self, bool flag)"""
3814 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3816 def EnablePrinter(*args
, **kwargs
):
3817 """EnablePrinter(self, bool flag)"""
3818 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3820 def GetDefaultMinMargins(*args
, **kwargs
):
3821 """GetDefaultMinMargins(self) -> bool"""
3822 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3824 def GetEnableMargins(*args
, **kwargs
):
3825 """GetEnableMargins(self) -> bool"""
3826 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3828 def GetEnableOrientation(*args
, **kwargs
):
3829 """GetEnableOrientation(self) -> bool"""
3830 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3832 def GetEnablePaper(*args
, **kwargs
):
3833 """GetEnablePaper(self) -> bool"""
3834 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3836 def GetEnablePrinter(*args
, **kwargs
):
3837 """GetEnablePrinter(self) -> bool"""
3838 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3840 def GetEnableHelp(*args
, **kwargs
):
3841 """GetEnableHelp(self) -> bool"""
3842 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3844 def GetDefaultInfo(*args
, **kwargs
):
3845 """GetDefaultInfo(self) -> bool"""
3846 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3848 def GetMarginTopLeft(*args
, **kwargs
):
3849 """GetMarginTopLeft(self) -> Point"""
3850 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3852 def GetMarginBottomRight(*args
, **kwargs
):
3853 """GetMarginBottomRight(self) -> Point"""
3854 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3856 def GetMinMarginTopLeft(*args
, **kwargs
):
3857 """GetMinMarginTopLeft(self) -> Point"""
3858 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3860 def GetMinMarginBottomRight(*args
, **kwargs
):
3861 """GetMinMarginBottomRight(self) -> Point"""
3862 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3864 def GetPaperId(*args
, **kwargs
):
3865 """GetPaperId(self) -> int"""
3866 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3868 def GetPaperSize(*args
, **kwargs
):
3869 """GetPaperSize(self) -> Size"""
3870 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3872 def GetPrintData(*args
, **kwargs
):
3873 """GetPrintData(self) -> PrintData"""
3874 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3876 def Ok(*args
, **kwargs
):
3877 """Ok(self) -> bool"""
3878 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3880 def SetDefaultInfo(*args
, **kwargs
):
3881 """SetDefaultInfo(self, bool flag)"""
3882 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3884 def SetDefaultMinMargins(*args
, **kwargs
):
3885 """SetDefaultMinMargins(self, bool flag)"""
3886 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3888 def SetMarginTopLeft(*args
, **kwargs
):
3889 """SetMarginTopLeft(self, Point pt)"""
3890 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3892 def SetMarginBottomRight(*args
, **kwargs
):
3893 """SetMarginBottomRight(self, Point pt)"""
3894 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3896 def SetMinMarginTopLeft(*args
, **kwargs
):
3897 """SetMinMarginTopLeft(self, Point pt)"""
3898 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3900 def SetMinMarginBottomRight(*args
, **kwargs
):
3901 """SetMinMarginBottomRight(self, Point pt)"""
3902 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3904 def SetPaperId(*args
, **kwargs
):
3905 """SetPaperId(self, int id)"""
3906 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3908 def SetPaperSize(*args
, **kwargs
):
3909 """SetPaperSize(self, Size size)"""
3910 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3912 def SetPrintData(*args
, **kwargs
):
3913 """SetPrintData(self, PrintData printData)"""
3914 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3916 def CalculateIdFromPaperSize(*args
, **kwargs
):
3917 """CalculateIdFromPaperSize(self)"""
3918 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
3920 def CalculatePaperSizeFromId(*args
, **kwargs
):
3921 """CalculatePaperSizeFromId(self)"""
3922 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
3924 def __nonzero__(self
): return self
.Ok()
3925 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogData
)
3927 class PageSetupDialog(_core
.Object
):
3928 """Proxy of C++ PageSetupDialog class"""
3929 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3930 __repr__
= _swig_repr
3931 def __init__(self
, *args
, **kwargs
):
3932 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3933 _windows_
.PageSetupDialog_swiginit(self
,_windows_
.new_PageSetupDialog(*args
, **kwargs
))
3934 __swig_destroy__
= _windows_
.delete_PageSetupDialog
3935 __del__
= lambda self
: None;
3936 def GetPageSetupData(*args
, **kwargs
):
3937 """GetPageSetupData(self) -> PageSetupDialogData"""
3938 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3940 def GetPageSetupDialogData(*args
, **kwargs
):
3941 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
3942 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
3944 def ShowModal(*args
, **kwargs
):
3945 """ShowModal(self) -> int"""
3946 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3948 def Destroy(self
): pass
3949 _windows_
.PageSetupDialog_swigregister(PageSetupDialog
)
3951 class PrintDialogData(_core
.Object
):
3952 """Proxy of C++ PrintDialogData class"""
3953 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3954 __repr__
= _swig_repr
3955 def __init__(self
, *args
):
3957 __init__(self) -> PrintDialogData
3958 __init__(self, PrintData printData) -> PrintDialogData
3959 __init__(self, PrintDialogData printData) -> PrintDialogData
3961 _windows_
.PrintDialogData_swiginit(self
,_windows_
.new_PrintDialogData(*args
))
3962 __swig_destroy__
= _windows_
.delete_PrintDialogData
3963 __del__
= lambda self
: None;
3964 def GetFromPage(*args
, **kwargs
):
3965 """GetFromPage(self) -> int"""
3966 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
3968 def GetToPage(*args
, **kwargs
):
3969 """GetToPage(self) -> int"""
3970 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
3972 def GetMinPage(*args
, **kwargs
):
3973 """GetMinPage(self) -> int"""
3974 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
3976 def GetMaxPage(*args
, **kwargs
):
3977 """GetMaxPage(self) -> int"""
3978 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
3980 def GetNoCopies(*args
, **kwargs
):
3981 """GetNoCopies(self) -> int"""
3982 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
3984 def GetAllPages(*args
, **kwargs
):
3985 """GetAllPages(self) -> bool"""
3986 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
3988 def GetSelection(*args
, **kwargs
):
3989 """GetSelection(self) -> bool"""
3990 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
3992 def GetCollate(*args
, **kwargs
):
3993 """GetCollate(self) -> bool"""
3994 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
3996 def GetPrintToFile(*args
, **kwargs
):
3997 """GetPrintToFile(self) -> bool"""
3998 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4000 def SetFromPage(*args
, **kwargs
):
4001 """SetFromPage(self, int v)"""
4002 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4004 def SetToPage(*args
, **kwargs
):
4005 """SetToPage(self, int v)"""
4006 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4008 def SetMinPage(*args
, **kwargs
):
4009 """SetMinPage(self, int v)"""
4010 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4012 def SetMaxPage(*args
, **kwargs
):
4013 """SetMaxPage(self, int v)"""
4014 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4016 def SetNoCopies(*args
, **kwargs
):
4017 """SetNoCopies(self, int v)"""
4018 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4020 def SetAllPages(*args
, **kwargs
):
4021 """SetAllPages(self, bool flag)"""
4022 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4024 def SetSelection(*args
, **kwargs
):
4025 """SetSelection(self, bool flag)"""
4026 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4028 def SetCollate(*args
, **kwargs
):
4029 """SetCollate(self, bool flag)"""
4030 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4032 def SetPrintToFile(*args
, **kwargs
):
4033 """SetPrintToFile(self, bool flag)"""
4034 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4036 def EnablePrintToFile(*args
, **kwargs
):
4037 """EnablePrintToFile(self, bool flag)"""
4038 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4040 def EnableSelection(*args
, **kwargs
):
4041 """EnableSelection(self, bool flag)"""
4042 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4044 def EnablePageNumbers(*args
, **kwargs
):
4045 """EnablePageNumbers(self, bool flag)"""
4046 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4048 def EnableHelp(*args
, **kwargs
):
4049 """EnableHelp(self, bool flag)"""
4050 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4052 def GetEnablePrintToFile(*args
, **kwargs
):
4053 """GetEnablePrintToFile(self) -> bool"""
4054 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4056 def GetEnableSelection(*args
, **kwargs
):
4057 """GetEnableSelection(self) -> bool"""
4058 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4060 def GetEnablePageNumbers(*args
, **kwargs
):
4061 """GetEnablePageNumbers(self) -> bool"""
4062 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4064 def GetEnableHelp(*args
, **kwargs
):
4065 """GetEnableHelp(self) -> bool"""
4066 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4068 def Ok(*args
, **kwargs
):
4069 """Ok(self) -> bool"""
4070 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4072 def GetPrintData(*args
, **kwargs
):
4073 """GetPrintData(self) -> PrintData"""
4074 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4076 def SetPrintData(*args
, **kwargs
):
4077 """SetPrintData(self, PrintData printData)"""
4078 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4080 def __nonzero__(self
): return self
.Ok()
4081 _windows_
.PrintDialogData_swigregister(PrintDialogData
)
4083 class PrintDialog(_core
.Object
):
4084 """Proxy of C++ PrintDialog class"""
4085 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4086 __repr__
= _swig_repr
4087 def __init__(self
, *args
, **kwargs
):
4088 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4089 _windows_
.PrintDialog_swiginit(self
,_windows_
.new_PrintDialog(*args
, **kwargs
))
4090 __swig_destroy__
= _windows_
.delete_PrintDialog
4091 __del__
= lambda self
: None;
4092 def ShowModal(*args
, **kwargs
):
4093 """ShowModal(self) -> int"""
4094 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4096 def GetPrintDialogData(*args
, **kwargs
):
4097 """GetPrintDialogData(self) -> PrintDialogData"""
4098 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4100 def GetPrintData(*args
, **kwargs
):
4101 """GetPrintData(self) -> PrintData"""
4102 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4104 def GetPrintDC(*args
, **kwargs
):
4105 """GetPrintDC(self) -> DC"""
4106 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4108 def Destroy(self
): pass
4109 _windows_
.PrintDialog_swigregister(PrintDialog
)
4111 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4112 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4113 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4114 class Printer(_core
.Object
):
4115 """Proxy of C++ Printer class"""
4116 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4117 __repr__
= _swig_repr
4118 def __init__(self
, *args
, **kwargs
):
4119 """__init__(self, PrintDialogData data=None) -> Printer"""
4120 _windows_
.Printer_swiginit(self
,_windows_
.new_Printer(*args
, **kwargs
))
4121 __swig_destroy__
= _windows_
.delete_Printer
4122 __del__
= lambda self
: None;
4123 def CreateAbortWindow(*args
, **kwargs
):
4124 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4125 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4127 def ReportError(*args
, **kwargs
):
4128 """ReportError(self, Window parent, Printout printout, String message)"""
4129 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4131 def Setup(*args
, **kwargs
):
4132 """Setup(self, Window parent) -> bool"""
4133 return _windows_
.Printer_Setup(*args
, **kwargs
)
4135 def Print(*args
, **kwargs
):
4136 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4137 return _windows_
.Printer_Print(*args
, **kwargs
)
4139 def PrintDialog(*args
, **kwargs
):
4140 """PrintDialog(self, Window parent) -> DC"""
4141 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4143 def GetPrintDialogData(*args
, **kwargs
):
4144 """GetPrintDialogData(self) -> PrintDialogData"""
4145 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4147 def GetAbort(*args
, **kwargs
):
4148 """GetAbort(self) -> bool"""
4149 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4151 def GetLastError(*args
, **kwargs
):
4152 """GetLastError() -> int"""
4153 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4155 GetLastError
= staticmethod(GetLastError
)
4156 _windows_
.Printer_swigregister(Printer
)
4158 def Printer_GetLastError(*args
):
4159 """Printer_GetLastError() -> int"""
4160 return _windows_
.Printer_GetLastError(*args
)
4162 class Printout(_core
.Object
):
4163 """Proxy of C++ Printout class"""
4164 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4165 __repr__
= _swig_repr
4166 def __init__(self
, *args
, **kwargs
):
4167 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4168 _windows_
.Printout_swiginit(self
,_windows_
.new_Printout(*args
, **kwargs
))
4169 self
._setCallbackInfo
(self
, Printout
)
4171 __swig_destroy__
= _windows_
.delete_Printout
4172 __del__
= lambda self
: None;
4173 def _setCallbackInfo(*args
, **kwargs
):
4174 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4175 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4177 def GetTitle(*args
, **kwargs
):
4178 """GetTitle(self) -> String"""
4179 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4181 def GetDC(*args
, **kwargs
):
4182 """GetDC(self) -> DC"""
4183 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4185 def SetDC(*args
, **kwargs
):
4186 """SetDC(self, DC dc)"""
4187 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4189 def SetPageSizePixels(*args
, **kwargs
):
4190 """SetPageSizePixels(self, int w, int h)"""
4191 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4193 def GetPageSizePixels(*args
, **kwargs
):
4194 """GetPageSizePixels() -> (w, h)"""
4195 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4197 def SetPageSizeMM(*args
, **kwargs
):
4198 """SetPageSizeMM(self, int w, int h)"""
4199 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4201 def GetPageSizeMM(*args
, **kwargs
):
4202 """GetPageSizeMM() -> (w, h)"""
4203 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4205 def SetPPIScreen(*args
, **kwargs
):
4206 """SetPPIScreen(self, int x, int y)"""
4207 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4209 def GetPPIScreen(*args
, **kwargs
):
4210 """GetPPIScreen() -> (x,y)"""
4211 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4213 def SetPPIPrinter(*args
, **kwargs
):
4214 """SetPPIPrinter(self, int x, int y)"""
4215 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4217 def GetPPIPrinter(*args
, **kwargs
):
4218 """GetPPIPrinter() -> (x,y)"""
4219 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4221 def IsPreview(*args
, **kwargs
):
4222 """IsPreview(self) -> bool"""
4223 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4225 def SetIsPreview(*args
, **kwargs
):
4226 """SetIsPreview(self, bool p)"""
4227 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4229 def OnBeginDocument(*args
, **kwargs
):
4230 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4231 return _windows_
.Printout_OnBeginDocument(*args
, **kwargs
)
4233 def OnEndDocument(*args
, **kwargs
):
4234 """OnEndDocument(self)"""
4235 return _windows_
.Printout_OnEndDocument(*args
, **kwargs
)
4237 def OnBeginPrinting(*args
, **kwargs
):
4238 """OnBeginPrinting(self)"""
4239 return _windows_
.Printout_OnBeginPrinting(*args
, **kwargs
)
4241 def OnEndPrinting(*args
, **kwargs
):
4242 """OnEndPrinting(self)"""
4243 return _windows_
.Printout_OnEndPrinting(*args
, **kwargs
)
4245 def OnPreparePrinting(*args
, **kwargs
):
4246 """OnPreparePrinting(self)"""
4247 return _windows_
.Printout_OnPreparePrinting(*args
, **kwargs
)
4249 def HasPage(*args
, **kwargs
):
4250 """HasPage(self, int page) -> bool"""
4251 return _windows_
.Printout_HasPage(*args
, **kwargs
)
4253 def GetPageInfo(*args
, **kwargs
):
4254 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4255 return _windows_
.Printout_GetPageInfo(*args
, **kwargs
)
4257 def base_OnBeginDocument(*args
, **kw
):
4258 return Printout
.OnBeginDocument(*args
, **kw
)
4259 base_OnBeginDocument
= wx
._deprecated
(base_OnBeginDocument
,
4260 "Please use Printout.OnBeginDocument instead.")
4262 def base_OnEndDocument(*args
, **kw
):
4263 return Printout
.OnEndDocument(*args
, **kw
)
4264 base_OnEndDocument
= wx
._deprecated
(base_OnEndDocument
,
4265 "Please use Printout.OnEndDocument instead.")
4267 def base_OnBeginPrinting(*args
, **kw
):
4268 return Printout
.OnBeginPrinting(*args
, **kw
)
4269 base_OnBeginPrinting
= wx
._deprecated
(base_OnBeginPrinting
,
4270 "Please use Printout.OnBeginPrinting instead.")
4272 def base_OnEndPrinting(*args
, **kw
):
4273 return Printout
.OnEndPrinting(*args
, **kw
)
4274 base_OnEndPrinting
= wx
._deprecated
(base_OnEndPrinting
,
4275 "Please use Printout.OnEndPrinting instead.")
4277 def base_OnPreparePrinting(*args
, **kw
):
4278 return Printout
.OnPreparePrinting(*args
, **kw
)
4279 base_OnPreparePrinting
= wx
._deprecated
(base_OnPreparePrinting
,
4280 "Please use Printout.OnPreparePrinting instead.")
4282 def base_GetPageInfo(*args
, **kw
):
4283 return Printout
.GetPageInfo(*args
, **kw
)
4284 base_GetPageInfo
= wx
._deprecated
(base_GetPageInfo
,
4285 "Please use Printout.GetPageInfo instead.")
4287 _windows_
.Printout_swigregister(Printout
)
4289 class PreviewCanvas(ScrolledWindow
):
4290 """Proxy of C++ PreviewCanvas class"""
4291 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4292 __repr__
= _swig_repr
4293 def __init__(self
, *args
, **kwargs
):
4295 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4296 Size size=DefaultSize, long style=0,
4297 String name=PreviewCanvasNameStr) -> PreviewCanvas
4299 _windows_
.PreviewCanvas_swiginit(self
,_windows_
.new_PreviewCanvas(*args
, **kwargs
))
4300 self
._setOORInfo
(self
)
4302 _windows_
.PreviewCanvas_swigregister(PreviewCanvas
)
4304 class PreviewFrame(Frame
):
4305 """Proxy of C++ PreviewFrame class"""
4306 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4307 __repr__
= _swig_repr
4308 def __init__(self
, *args
, **kwargs
):
4310 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4311 Size size=DefaultSize,
4312 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4314 _windows_
.PreviewFrame_swiginit(self
,_windows_
.new_PreviewFrame(*args
, **kwargs
))
4315 self
._setOORInfo
(self
)
4317 def Initialize(*args
, **kwargs
):
4318 """Initialize(self)"""
4319 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4321 def CreateControlBar(*args
, **kwargs
):
4322 """CreateControlBar(self)"""
4323 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4325 def CreateCanvas(*args
, **kwargs
):
4326 """CreateCanvas(self)"""
4327 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4329 def GetControlBar(*args
, **kwargs
):
4330 """GetControlBar(self) -> PreviewControlBar"""
4331 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4333 _windows_
.PreviewFrame_swigregister(PreviewFrame
)
4335 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4336 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4337 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4338 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4339 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4340 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4341 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4342 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4343 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4344 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4345 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4346 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4347 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4348 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4349 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4350 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4351 class PreviewControlBar(Panel
):
4352 """Proxy of C++ PreviewControlBar class"""
4353 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4354 __repr__
= _swig_repr
4355 def __init__(self
, *args
, **kwargs
):
4357 __init__(self, PrintPreview preview, long buttons, Window parent,
4358 Point pos=DefaultPosition, Size size=DefaultSize,
4359 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4361 _windows_
.PreviewControlBar_swiginit(self
,_windows_
.new_PreviewControlBar(*args
, **kwargs
))
4362 self
._setOORInfo
(self
)
4364 def GetZoomControl(*args
, **kwargs
):
4365 """GetZoomControl(self) -> int"""
4366 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4368 def SetZoomControl(*args
, **kwargs
):
4369 """SetZoomControl(self, int zoom)"""
4370 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4372 def GetPrintPreview(*args
, **kwargs
):
4373 """GetPrintPreview(self) -> PrintPreview"""
4374 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4376 def OnNext(*args
, **kwargs
):
4378 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4380 def OnPrevious(*args
, **kwargs
):
4381 """OnPrevious(self)"""
4382 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4384 def OnFirst(*args
, **kwargs
):
4386 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4388 def OnLast(*args
, **kwargs
):
4390 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4392 def OnGoto(*args
, **kwargs
):
4394 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4396 _windows_
.PreviewControlBar_swigregister(PreviewControlBar
)
4398 class PrintPreview(_core
.Object
):
4399 """Proxy of C++ PrintPreview class"""
4400 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4401 __repr__
= _swig_repr
4402 def __init__(self
, *args
):
4404 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4405 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4407 _windows_
.PrintPreview_swiginit(self
,_windows_
.new_PrintPreview(*args
))
4408 __swig_destroy__
= _windows_
.delete_PrintPreview
4409 __del__
= lambda self
: None;
4410 def SetCurrentPage(*args
, **kwargs
):
4411 """SetCurrentPage(self, int pageNum) -> bool"""
4412 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4414 def GetCurrentPage(*args
, **kwargs
):
4415 """GetCurrentPage(self) -> int"""
4416 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4418 def SetPrintout(*args
, **kwargs
):
4419 """SetPrintout(self, Printout printout)"""
4420 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4422 def GetPrintout(*args
, **kwargs
):
4423 """GetPrintout(self) -> Printout"""
4424 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4426 def GetPrintoutForPrinting(*args
, **kwargs
):
4427 """GetPrintoutForPrinting(self) -> Printout"""
4428 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4430 def SetFrame(*args
, **kwargs
):
4431 """SetFrame(self, Frame frame)"""
4432 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4434 def SetCanvas(*args
, **kwargs
):
4435 """SetCanvas(self, PreviewCanvas canvas)"""
4436 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4438 def GetFrame(*args
, **kwargs
):
4439 """GetFrame(self) -> Frame"""
4440 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4442 def GetCanvas(*args
, **kwargs
):
4443 """GetCanvas(self) -> PreviewCanvas"""
4444 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4446 def PaintPage(*args
, **kwargs
):
4447 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4448 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4450 def DrawBlankPage(*args
, **kwargs
):
4451 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4452 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4454 def RenderPage(*args
, **kwargs
):
4455 """RenderPage(self, int pageNum) -> bool"""
4456 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4458 def AdjustScrollbars(*args
, **kwargs
):
4459 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4460 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4462 def GetPrintDialogData(*args
, **kwargs
):
4463 """GetPrintDialogData(self) -> PrintDialogData"""
4464 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4466 def SetZoom(*args
, **kwargs
):
4467 """SetZoom(self, int percent)"""
4468 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4470 def GetZoom(*args
, **kwargs
):
4471 """GetZoom(self) -> int"""
4472 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4474 def GetMaxPage(*args
, **kwargs
):
4475 """GetMaxPage(self) -> int"""
4476 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4478 def GetMinPage(*args
, **kwargs
):
4479 """GetMinPage(self) -> int"""
4480 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4482 def Ok(*args
, **kwargs
):
4483 """Ok(self) -> bool"""
4484 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4486 def SetOk(*args
, **kwargs
):
4487 """SetOk(self, bool ok)"""
4488 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4490 def Print(*args
, **kwargs
):
4491 """Print(self, bool interactive) -> bool"""
4492 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4494 def DetermineScaling(*args
, **kwargs
):
4495 """DetermineScaling(self)"""
4496 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4498 def __nonzero__(self
): return self
.Ok()
4499 _windows_
.PrintPreview_swigregister(PrintPreview
)
4501 class PyPrintPreview(PrintPreview
):
4502 """Proxy of C++ PyPrintPreview class"""
4503 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4504 __repr__
= _swig_repr
4505 def __init__(self
, *args
):
4507 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4508 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4510 _windows_
.PyPrintPreview_swiginit(self
,_windows_
.new_PyPrintPreview(*args
))
4511 self
._setCallbackInfo
(self
, PyPrintPreview
)
4513 def _setCallbackInfo(*args
, **kwargs
):
4514 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4515 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4517 def base_SetCurrentPage(*args
, **kw
):
4518 return PyPrintPreview
.SetCurrentPage(*args
, **kw
)
4519 base_SetCurrentPage
= wx
._deprecated
(base_SetCurrentPage
,
4520 "Please use PyPrintPreview.SetCurrentPage instead.")
4522 def base_PaintPage(*args
, **kw
):
4523 return PyPrintPreview
.PaintPage(*args
, **kw
)
4524 base_PaintPage
= wx
._deprecated
(base_PaintPage
,
4525 "Please use PyPrintPreview.PaintPage instead.")
4527 def base_DrawBlankPage(*args
, **kw
):
4528 return PyPrintPreview
.DrawBlankPage(*args
, **kw
)
4529 base_DrawBlankPage
= wx
._deprecated
(base_DrawBlankPage
,
4530 "Please use PyPrintPreview.DrawBlankPage instead.")
4532 def base_RenderPage(*args
, **kw
):
4533 return PyPrintPreview
.RenderPage(*args
, **kw
)
4534 base_RenderPage
= wx
._deprecated
(base_RenderPage
,
4535 "Please use PyPrintPreview.RenderPage instead.")
4537 def base_SetZoom(*args
, **kw
):
4538 return PyPrintPreview
.SetZoom(*args
, **kw
)
4539 base_SetZoom
= wx
._deprecated
(base_SetZoom
,
4540 "Please use PyPrintPreview.SetZoom instead.")
4542 def base_Print(*args
, **kw
):
4543 return PyPrintPreview
.Print(*args
, **kw
)
4544 base_Print
= wx
._deprecated
(base_Print
,
4545 "Please use PyPrintPreview.Print instead.")
4547 def base_DetermineScaling(*args
, **kw
):
4548 return PyPrintPreview
.DetermineScaling(*args
, **kw
)
4549 base_DetermineScaling
= wx
._deprecated
(base_DetermineScaling
,
4550 "Please use PyPrintPreview.DetermineScaling instead.")
4552 _windows_
.PyPrintPreview_swigregister(PyPrintPreview
)
4554 class PyPreviewFrame(PreviewFrame
):
4555 """Proxy of C++ PyPreviewFrame class"""
4556 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4557 __repr__
= _swig_repr
4558 def __init__(self
, *args
, **kwargs
):
4560 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4561 Size size=DefaultSize,
4562 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4564 _windows_
.PyPreviewFrame_swiginit(self
,_windows_
.new_PyPreviewFrame(*args
, **kwargs
))
4565 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4567 def _setCallbackInfo(*args
, **kwargs
):
4568 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4569 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4571 def SetPreviewCanvas(*args
, **kwargs
):
4572 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4573 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4575 def SetControlBar(*args
, **kwargs
):
4576 """SetControlBar(self, PreviewControlBar bar)"""
4577 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4579 def Initialize(*args
, **kwargs
):
4580 """Initialize(self)"""
4581 return _windows_
.PyPreviewFrame_Initialize(*args
, **kwargs
)
4583 def CreateCanvas(*args
, **kwargs
):
4584 """CreateCanvas(self)"""
4585 return _windows_
.PyPreviewFrame_CreateCanvas(*args
, **kwargs
)
4587 def CreateControlBar(*args
, **kwargs
):
4588 """CreateControlBar(self)"""
4589 return _windows_
.PyPreviewFrame_CreateControlBar(*args
, **kwargs
)
4591 def base_Initialize(*args
, **kw
):
4592 return PyPreviewFrame
.Initialize(*args
, **kw
)
4593 base_Initialize
= wx
._deprecated
(base_Initialize
,
4594 "Please use PyPreviewFrame.Initialize instead.")
4596 def base_CreateCanvas(*args
, **kw
):
4597 return PyPreviewFrame
.CreateCanvas(*args
, **kw
)
4598 base_CreateCanvas
= wx
._deprecated
(base_CreateCanvas
,
4599 "Please use PyPreviewFrame.CreateCanvas instead.")
4601 def base_CreateControlBar(*args
, **kw
):
4602 return PyPreviewFrame
.CreateControlBar(*args
, **kw
)
4603 base_CreateControlBar
= wx
._deprecated
(base_CreateControlBar
,
4604 "Please use PyPreviewFrame.CreateControlBar instead.")
4606 _windows_
.PyPreviewFrame_swigregister(PyPreviewFrame
)
4608 class PyPreviewControlBar(PreviewControlBar
):
4609 """Proxy of C++ PyPreviewControlBar class"""
4610 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4611 __repr__
= _swig_repr
4612 def __init__(self
, *args
, **kwargs
):
4614 __init__(self, PrintPreview preview, long buttons, Window parent,
4615 Point pos=DefaultPosition, Size size=DefaultSize,
4616 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4618 _windows_
.PyPreviewControlBar_swiginit(self
,_windows_
.new_PyPreviewControlBar(*args
, **kwargs
))
4619 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4621 def _setCallbackInfo(*args
, **kwargs
):
4622 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4623 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4625 def SetPrintPreview(*args
, **kwargs
):
4626 """SetPrintPreview(self, PrintPreview preview)"""
4627 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4629 def CreateButtons(*args
, **kwargs
):
4630 """CreateButtons(self)"""
4631 return _windows_
.PyPreviewControlBar_CreateButtons(*args
, **kwargs
)
4633 def SetZoomControl(*args
, **kwargs
):
4634 """SetZoomControl(self, int zoom)"""
4635 return _windows_
.PyPreviewControlBar_SetZoomControl(*args
, **kwargs
)
4637 def base_CreateButtons(*args
, **kw
):
4638 return PreviewControlBar
.CreateButtons(*args
, **kw
)
4639 base_CreateButtons
= wx
._deprecated
(base_CreateButtons
,
4640 "Please use PreviewControlBar.CreateButtons instead.")
4642 def base_SetZoomControl(*args
, **kw
):
4643 return PreviewControlBar
.SetZoomControl(*args
, **kw
)
4644 base_SetZoomControl
= wx
._deprecated
(base_SetZoomControl
,
4645 "Please use PreviewControlBar.SetZoomControl instead.")
4647 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBar
)