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 Panel_swigregister
= _windows_
.Panel_swigregister
110 Panel_swigregister(Panel
)
112 def PrePanel(*args
, **kwargs
):
113 """PrePanel() -> Panel"""
114 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
117 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
119 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
121 Get the default attributes for this class. This is useful if you want
122 to use the same font or colour in your own control as in a standard
123 control -- which is a much better idea than hard coding specific
124 colours or fonts which might look completely out of place on the
125 user's system, especially if it uses themes.
127 The variant parameter is only relevant under Mac currently and is
128 ignore under other platforms. Under Mac, it will change the size of
129 the returned font. See `wx.Window.SetWindowVariant` for more about
132 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
134 #---------------------------------------------------------------------------
136 class ScrolledWindow(Panel
):
137 """Proxy of C++ ScrolledWindow class"""
138 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
139 __repr__
= _swig_repr
140 def __init__(self
, *args
, **kwargs
):
142 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
143 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
144 String name=PanelNameStr) -> ScrolledWindow
146 _windows_
.ScrolledWindow_swiginit(self
,_windows_
.new_ScrolledWindow(*args
, **kwargs
))
147 self
._setOORInfo
(self
)
149 def Create(*args
, **kwargs
):
151 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
152 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
153 String name=PanelNameStr) -> bool
155 Create the GUI part of the Window for 2-phase creation mode.
157 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
159 def SetScrollbars(*args
, **kwargs
):
161 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
162 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
164 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
166 def Scroll(*args
, **kwargs
):
167 """Scroll(self, int x, int y)"""
168 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
170 def GetScrollPageSize(*args
, **kwargs
):
171 """GetScrollPageSize(self, int orient) -> int"""
172 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
174 def SetScrollPageSize(*args
, **kwargs
):
175 """SetScrollPageSize(self, int orient, int pageSize)"""
176 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
178 def SetScrollRate(*args
, **kwargs
):
179 """SetScrollRate(self, int xstep, int ystep)"""
180 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
182 def GetScrollPixelsPerUnit(*args
, **kwargs
):
184 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
186 Get the size of one logical unit in physical units.
188 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
190 def EnableScrolling(*args
, **kwargs
):
191 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
192 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
194 def GetViewStart(*args
, **kwargs
):
196 GetViewStart() -> (x,y)
200 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
202 def SetScale(*args
, **kwargs
):
203 """SetScale(self, double xs, double ys)"""
204 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
206 def GetScaleX(*args
, **kwargs
):
207 """GetScaleX(self) -> double"""
208 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
210 def GetScaleY(*args
, **kwargs
):
211 """GetScaleY(self) -> double"""
212 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
214 def CalcScrolledPosition(*args
):
216 CalcScrolledPosition(self, Point pt) -> Point
217 CalcScrolledPosition(int x, int y) -> (sx, sy)
219 Translate between scrolled and unscrolled coordinates.
221 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
223 def CalcUnscrolledPosition(*args
):
225 CalcUnscrolledPosition(self, Point pt) -> Point
226 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
228 Translate between scrolled and unscrolled coordinates.
230 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
232 def AdjustScrollbars(*args
, **kwargs
):
233 """AdjustScrollbars(self)"""
234 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
236 def CalcScrollInc(*args
, **kwargs
):
237 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
238 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
240 def SetTargetWindow(*args
, **kwargs
):
241 """SetTargetWindow(self, Window target)"""
242 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
244 def GetTargetWindow(*args
, **kwargs
):
245 """GetTargetWindow(self) -> Window"""
246 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
248 def SetTargetRect(*args
, **kwargs
):
249 """SetTargetRect(self, Rect rect)"""
250 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
252 def GetTargetRect(*args
, **kwargs
):
253 """GetTargetRect(self) -> Rect"""
254 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
256 def DoPrepareDC(*args
, **kwargs
):
258 DoPrepareDC(self, DC dc)
260 Normally what is called by `PrepareDC`.
262 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
264 def GetClassDefaultAttributes(*args
, **kwargs
):
266 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
268 Get the default attributes for this class. This is useful if you want
269 to use the same font or colour in your own control as in a standard
270 control -- which is a much better idea than hard coding specific
271 colours or fonts which might look completely out of place on the
272 user's system, especially if it uses themes.
274 The variant parameter is only relevant under Mac currently and is
275 ignore under other platforms. Under Mac, it will change the size of
276 the returned font. See `wx.Window.SetWindowVariant` for more about
279 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
281 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
282 ScrolledWindow_swigregister
= _windows_
.ScrolledWindow_swigregister
283 ScrolledWindow_swigregister(ScrolledWindow
)
285 def PreScrolledWindow(*args
, **kwargs
):
286 """PreScrolledWindow() -> ScrolledWindow"""
287 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
290 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
292 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
294 Get the default attributes for this class. This is useful if you want
295 to use the same font or colour in your own control as in a standard
296 control -- which is a much better idea than hard coding specific
297 colours or fonts which might look completely out of place on the
298 user's system, especially if it uses themes.
300 The variant parameter is only relevant under Mac currently and is
301 ignore under other platforms. Under Mac, it will change the size of
302 the returned font. See `wx.Window.SetWindowVariant` for more about
305 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
307 #---------------------------------------------------------------------------
309 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
310 ICONIZE
= _windows_
.ICONIZE
311 MINIMIZE
= _windows_
.MINIMIZE
312 MAXIMIZE
= _windows_
.MAXIMIZE
313 CLOSE_BOX
= _windows_
.CLOSE_BOX
314 THICK_FRAME
= _windows_
.THICK_FRAME
315 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
316 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
317 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
318 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
319 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
320 RESIZE_BOX
= _windows_
.RESIZE_BOX
321 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
322 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
323 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
324 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
325 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
326 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
327 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
328 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
329 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
330 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
331 FRAME_EX_METAL
= _windows_
.FRAME_EX_METAL
332 DIALOG_EX_METAL
= _windows_
.DIALOG_EX_METAL
333 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
334 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
335 USER_COLOURS
= _windows_
.USER_COLOURS
336 NO_3D
= _windows_
.NO_3D
337 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
338 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
339 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
340 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
341 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
342 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
343 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
344 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
345 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
346 class TopLevelWindow(_core
.Window
):
347 """Proxy of C++ TopLevelWindow class"""
348 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
349 def __init__(self
): raise AttributeError, "No constructor defined"
350 __repr__
= _swig_repr
351 def Maximize(*args
, **kwargs
):
352 """Maximize(self, bool maximize=True)"""
353 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
355 def Restore(*args
, **kwargs
):
357 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
359 def Iconize(*args
, **kwargs
):
360 """Iconize(self, bool iconize=True)"""
361 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
363 def IsMaximized(*args
, **kwargs
):
364 """IsMaximized(self) -> bool"""
365 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
367 def IsIconized(*args
, **kwargs
):
368 """IsIconized(self) -> bool"""
369 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
371 def GetIcon(*args
, **kwargs
):
372 """GetIcon(self) -> Icon"""
373 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
375 def SetIcon(*args
, **kwargs
):
376 """SetIcon(self, Icon icon)"""
377 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
379 def SetIcons(*args
, **kwargs
):
380 """SetIcons(self, wxIconBundle icons)"""
381 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
383 def ShowFullScreen(*args
, **kwargs
):
384 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
385 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
387 def IsFullScreen(*args
, **kwargs
):
388 """IsFullScreen(self) -> bool"""
389 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
391 def SetTitle(*args
, **kwargs
):
392 """SetTitle(self, String title)"""
393 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
395 def GetTitle(*args
, **kwargs
):
396 """GetTitle(self) -> String"""
397 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
399 def SetShape(*args
, **kwargs
):
400 """SetShape(self, Region region) -> bool"""
401 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
403 def RequestUserAttention(*args
, **kwargs
):
404 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
405 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
407 def IsActive(*args
, **kwargs
):
408 """IsActive(self) -> bool"""
409 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
411 def MacSetMetalAppearance(*args
, **kwargs
):
412 """MacSetMetalAppearance(self, bool on)"""
413 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
415 def MacGetMetalAppearance(*args
, **kwargs
):
416 """MacGetMetalAppearance(self) -> bool"""
417 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
419 def CenterOnScreen(*args
, **kwargs
):
421 CenterOnScreen(self, int dir=BOTH)
423 Center the window on screen
425 return _windows_
.TopLevelWindow_CenterOnScreen(*args
, **kwargs
)
427 CentreOnScreen
= CenterOnScreen
428 TopLevelWindow_swigregister
= _windows_
.TopLevelWindow_swigregister
429 TopLevelWindow_swigregister(TopLevelWindow
)
430 cvar
= _windows_
.cvar
431 FrameNameStr
= cvar
.FrameNameStr
432 DialogNameStr
= cvar
.DialogNameStr
433 StatusLineNameStr
= cvar
.StatusLineNameStr
434 ToolBarNameStr
= cvar
.ToolBarNameStr
436 #---------------------------------------------------------------------------
438 class Frame(TopLevelWindow
):
439 """Proxy of C++ Frame class"""
440 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
441 __repr__
= _swig_repr
442 def __init__(self
, *args
, **kwargs
):
444 __init__(self, Window parent, int id=-1, String title=EmptyString,
445 Point pos=DefaultPosition, Size size=DefaultSize,
446 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
448 _windows_
.Frame_swiginit(self
,_windows_
.new_Frame(*args
, **kwargs
))
449 self
._setOORInfo
(self
)
451 def Create(*args
, **kwargs
):
453 Create(self, Window parent, int id=-1, String title=EmptyString,
454 Point pos=DefaultPosition, Size size=DefaultSize,
455 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
457 return _windows_
.Frame_Create(*args
, **kwargs
)
459 def SendSizeEvent(*args
, **kwargs
):
460 """SendSizeEvent(self)"""
461 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
463 def SetMenuBar(*args
, **kwargs
):
464 """SetMenuBar(self, MenuBar menubar)"""
465 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
467 def GetMenuBar(*args
, **kwargs
):
468 """GetMenuBar(self) -> MenuBar"""
469 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
471 def ProcessCommand(*args
, **kwargs
):
472 """ProcessCommand(self, int winid) -> bool"""
473 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
475 Command
= ProcessCommand
476 def CreateStatusBar(*args
, **kwargs
):
478 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
479 String name=StatusLineNameStr) -> StatusBar
481 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
483 def GetStatusBar(*args
, **kwargs
):
484 """GetStatusBar(self) -> StatusBar"""
485 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
487 def SetStatusBar(*args
, **kwargs
):
488 """SetStatusBar(self, StatusBar statBar)"""
489 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
491 def SetStatusText(*args
, **kwargs
):
492 """SetStatusText(self, String text, int number=0)"""
493 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
495 def SetStatusWidths(*args
, **kwargs
):
496 """SetStatusWidths(self, int widths)"""
497 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
499 def PushStatusText(*args
, **kwargs
):
500 """PushStatusText(self, String text, int number=0)"""
501 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
503 def PopStatusText(*args
, **kwargs
):
504 """PopStatusText(self, int number=0)"""
505 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
507 def SetStatusBarPane(*args
, **kwargs
):
508 """SetStatusBarPane(self, int n)"""
509 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
511 def GetStatusBarPane(*args
, **kwargs
):
512 """GetStatusBarPane(self) -> int"""
513 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
515 def CreateToolBar(*args
, **kwargs
):
516 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
517 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
519 def GetToolBar(*args
, **kwargs
):
520 """GetToolBar(self) -> wxToolBar"""
521 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
523 def SetToolBar(*args
, **kwargs
):
524 """SetToolBar(self, wxToolBar toolbar)"""
525 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
527 def DoGiveHelp(*args
, **kwargs
):
528 """DoGiveHelp(self, String text, bool show)"""
529 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
531 def DoMenuUpdates(*args
, **kwargs
):
532 """DoMenuUpdates(self, Menu menu=None)"""
533 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
535 def GetClassDefaultAttributes(*args
, **kwargs
):
537 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
539 Get the default attributes for this class. This is useful if you want
540 to use the same font or colour in your own control as in a standard
541 control -- which is a much better idea than hard coding specific
542 colours or fonts which might look completely out of place on the
543 user's system, especially if it uses themes.
545 The variant parameter is only relevant under Mac currently and is
546 ignore under other platforms. Under Mac, it will change the size of
547 the returned font. See `wx.Window.SetWindowVariant` for more about
550 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
552 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
553 Frame_swigregister
= _windows_
.Frame_swigregister
554 Frame_swigregister(Frame
)
556 def PreFrame(*args
, **kwargs
):
557 """PreFrame() -> Frame"""
558 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
561 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
563 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
565 Get the default attributes for this class. This is useful if you want
566 to use the same font or colour in your own control as in a standard
567 control -- which is a much better idea than hard coding specific
568 colours or fonts which might look completely out of place on the
569 user's system, especially if it uses themes.
571 The variant parameter is only relevant under Mac currently and is
572 ignore under other platforms. Under Mac, it will change the size of
573 the returned font. See `wx.Window.SetWindowVariant` for more about
576 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
578 #---------------------------------------------------------------------------
580 class Dialog(TopLevelWindow
):
581 """Proxy of C++ Dialog class"""
582 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
583 __repr__
= _swig_repr
584 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
585 def __init__(self
, *args
, **kwargs
):
587 __init__(self, Window parent, int id=-1, String title=EmptyString,
588 Point pos=DefaultPosition, Size size=DefaultSize,
589 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
591 _windows_
.Dialog_swiginit(self
,_windows_
.new_Dialog(*args
, **kwargs
))
592 self
._setOORInfo
(self
)
594 def Create(*args
, **kwargs
):
596 Create(self, Window parent, int id=-1, String title=EmptyString,
597 Point pos=DefaultPosition, Size size=DefaultSize,
598 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
600 return _windows_
.Dialog_Create(*args
, **kwargs
)
602 def SetReturnCode(*args
, **kwargs
):
603 """SetReturnCode(self, int returnCode)"""
604 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
606 def GetReturnCode(*args
, **kwargs
):
607 """GetReturnCode(self) -> int"""
608 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
610 def SetAffirmativeId(*args
, **kwargs
):
611 """SetAffirmativeId(self, int affirmativeId)"""
612 return _windows_
.Dialog_SetAffirmativeId(*args
, **kwargs
)
614 def GetAffirmativeId(*args
, **kwargs
):
615 """GetAffirmativeId(self) -> int"""
616 return _windows_
.Dialog_GetAffirmativeId(*args
, **kwargs
)
618 def SetEscapeId(*args
, **kwargs
):
619 """SetEscapeId(self, int escapeId)"""
620 return _windows_
.Dialog_SetEscapeId(*args
, **kwargs
)
622 def GetEscapeId(*args
, **kwargs
):
623 """GetEscapeId(self) -> int"""
624 return _windows_
.Dialog_GetEscapeId(*args
, **kwargs
)
626 def CreateTextSizer(*args
, **kwargs
):
627 """CreateTextSizer(self, String message) -> Sizer"""
628 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
630 def CreateButtonSizer(*args
, **kwargs
):
631 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
632 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
634 def CreateStdDialogButtonSizer(*args
, **kwargs
):
635 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
636 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
638 def IsModal(*args
, **kwargs
):
639 """IsModal(self) -> bool"""
640 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
642 def ShowModal(*args
, **kwargs
):
643 """ShowModal(self) -> int"""
644 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
646 def EndModal(*args
, **kwargs
):
647 """EndModal(self, int retCode)"""
648 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
650 def GetClassDefaultAttributes(*args
, **kwargs
):
652 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
654 Get the default attributes for this class. This is useful if you want
655 to use the same font or colour in your own control as in a standard
656 control -- which is a much better idea than hard coding specific
657 colours or fonts which might look completely out of place on the
658 user's system, especially if it uses themes.
660 The variant parameter is only relevant under Mac currently and is
661 ignore under other platforms. Under Mac, it will change the size of
662 the returned font. See `wx.Window.SetWindowVariant` for more about
665 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
667 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
668 Dialog_swigregister
= _windows_
.Dialog_swigregister
669 Dialog_swigregister(Dialog
)
671 def PreDialog(*args
, **kwargs
):
672 """PreDialog() -> Dialog"""
673 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
676 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
678 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
680 Get the default attributes for this class. This is useful if you want
681 to use the same font or colour in your own control as in a standard
682 control -- which is a much better idea than hard coding specific
683 colours or fonts which might look completely out of place on the
684 user's system, especially if it uses themes.
686 The variant parameter is only relevant under Mac currently and is
687 ignore under other platforms. Under Mac, it will change the size of
688 the returned font. See `wx.Window.SetWindowVariant` for more about
691 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
693 #---------------------------------------------------------------------------
695 class MiniFrame(Frame
):
696 """Proxy of C++ MiniFrame class"""
697 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
698 __repr__
= _swig_repr
699 def __init__(self
, *args
, **kwargs
):
701 __init__(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) -> MiniFrame
705 _windows_
.MiniFrame_swiginit(self
,_windows_
.new_MiniFrame(*args
, **kwargs
))
706 self
._setOORInfo
(self
)
708 def Create(*args
, **kwargs
):
710 Create(self, Window parent, int id=-1, String title=EmptyString,
711 Point pos=DefaultPosition, Size size=DefaultSize,
712 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
714 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
716 MiniFrame_swigregister
= _windows_
.MiniFrame_swigregister
717 MiniFrame_swigregister(MiniFrame
)
719 def PreMiniFrame(*args
, **kwargs
):
720 """PreMiniFrame() -> MiniFrame"""
721 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
724 #---------------------------------------------------------------------------
726 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
727 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
728 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
729 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
730 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
731 class SplashScreenWindow(_core
.Window
):
732 """Proxy of C++ SplashScreenWindow class"""
733 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
734 __repr__
= _swig_repr
735 def __init__(self
, *args
, **kwargs
):
737 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
738 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
740 _windows_
.SplashScreenWindow_swiginit(self
,_windows_
.new_SplashScreenWindow(*args
, **kwargs
))
741 self
._setOORInfo
(self
)
743 def SetBitmap(*args
, **kwargs
):
744 """SetBitmap(self, Bitmap bitmap)"""
745 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
747 def GetBitmap(*args
, **kwargs
):
748 """GetBitmap(self) -> Bitmap"""
749 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
751 SplashScreenWindow_swigregister
= _windows_
.SplashScreenWindow_swigregister
752 SplashScreenWindow_swigregister(SplashScreenWindow
)
754 class SplashScreen(Frame
):
755 """Proxy of C++ SplashScreen class"""
756 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
757 __repr__
= _swig_repr
758 def __init__(self
, *args
, **kwargs
):
760 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
761 Window parent, int id=-1, Point pos=DefaultPosition,
762 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
764 _windows_
.SplashScreen_swiginit(self
,_windows_
.new_SplashScreen(*args
, **kwargs
))
765 self
._setOORInfo
(self
)
767 def GetSplashStyle(*args
, **kwargs
):
768 """GetSplashStyle(self) -> long"""
769 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
771 def GetSplashWindow(*args
, **kwargs
):
772 """GetSplashWindow(self) -> SplashScreenWindow"""
773 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
775 def GetTimeout(*args
, **kwargs
):
776 """GetTimeout(self) -> int"""
777 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
779 SplashScreen_swigregister
= _windows_
.SplashScreen_swigregister
780 SplashScreen_swigregister(SplashScreen
)
782 #---------------------------------------------------------------------------
784 SB_NORMAL
= _windows_
.SB_NORMAL
785 SB_FLAT
= _windows_
.SB_FLAT
786 SB_RAISED
= _windows_
.SB_RAISED
787 class StatusBar(_core
.Window
):
788 """Proxy of C++ StatusBar class"""
789 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
790 __repr__
= _swig_repr
791 def __init__(self
, *args
, **kwargs
):
793 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
794 String name=StatusLineNameStr) -> StatusBar
796 _windows_
.StatusBar_swiginit(self
,_windows_
.new_StatusBar(*args
, **kwargs
))
797 self
._setOORInfo
(self
)
799 def Create(*args
, **kwargs
):
800 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
801 return _windows_
.StatusBar_Create(*args
, **kwargs
)
803 def SetFieldsCount(*args
, **kwargs
):
804 """SetFieldsCount(self, int number=1)"""
805 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
807 def GetFieldsCount(*args
, **kwargs
):
808 """GetFieldsCount(self) -> int"""
809 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
811 def SetStatusText(*args
, **kwargs
):
812 """SetStatusText(self, String text, int number=0)"""
813 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
815 def GetStatusText(*args
, **kwargs
):
816 """GetStatusText(self, int number=0) -> String"""
817 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
819 def PushStatusText(*args
, **kwargs
):
820 """PushStatusText(self, String text, int number=0)"""
821 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
823 def PopStatusText(*args
, **kwargs
):
824 """PopStatusText(self, int number=0)"""
825 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
827 def SetStatusWidths(*args
, **kwargs
):
828 """SetStatusWidths(self, int widths)"""
829 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
831 def SetStatusStyles(*args
, **kwargs
):
832 """SetStatusStyles(self, int styles)"""
833 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
835 def GetFieldRect(*args
, **kwargs
):
836 """GetFieldRect(self, int i) -> Rect"""
837 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
839 def SetMinHeight(*args
, **kwargs
):
840 """SetMinHeight(self, int height)"""
841 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
843 def GetBorderX(*args
, **kwargs
):
844 """GetBorderX(self) -> int"""
845 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
847 def GetBorderY(*args
, **kwargs
):
848 """GetBorderY(self) -> int"""
849 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
851 def GetClassDefaultAttributes(*args
, **kwargs
):
853 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
855 Get the default attributes for this class. This is useful if you want
856 to use the same font or colour in your own control as in a standard
857 control -- which is a much better idea than hard coding specific
858 colours or fonts which might look completely out of place on the
859 user's system, especially if it uses themes.
861 The variant parameter is only relevant under Mac currently and is
862 ignore under other platforms. Under Mac, it will change the size of
863 the returned font. See `wx.Window.SetWindowVariant` for more about
866 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
868 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
869 StatusBar_swigregister
= _windows_
.StatusBar_swigregister
870 StatusBar_swigregister(StatusBar
)
872 def PreStatusBar(*args
, **kwargs
):
873 """PreStatusBar() -> StatusBar"""
874 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
877 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
879 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
881 Get the default attributes for this class. This is useful if you want
882 to use the same font or colour in your own control as in a standard
883 control -- which is a much better idea than hard coding specific
884 colours or fonts which might look completely out of place on the
885 user's system, especially if it uses themes.
887 The variant parameter is only relevant under Mac currently and is
888 ignore under other platforms. Under Mac, it will change the size of
889 the returned font. See `wx.Window.SetWindowVariant` for more about
892 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
894 #---------------------------------------------------------------------------
896 SP_NOBORDER
= _windows_
.SP_NOBORDER
897 SP_NOSASH
= _windows_
.SP_NOSASH
898 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
899 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
900 SP_3DSASH
= _windows_
.SP_3DSASH
901 SP_3DBORDER
= _windows_
.SP_3DBORDER
902 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
903 SP_BORDER
= _windows_
.SP_BORDER
904 SP_3D
= _windows_
.SP_3D
905 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
906 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
907 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
908 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
909 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
910 class SplitterWindow(_core
.Window
):
912 wx.SplitterWindow manages up to two subwindows or panes, with an
913 optional vertical or horizontal split which can be used with the mouse
916 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
917 __repr__
= _swig_repr
918 def __init__(self
, *args
, **kwargs
):
920 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
921 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
923 Constructor. Creates and shows a SplitterWindow.
925 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
926 _windows_
.SplitterWindow_swiginit(self
,_windows_
.new_SplitterWindow(*args
, **kwargs
))
927 self
._setOORInfo
(self
)
929 def Create(*args
, **kwargs
):
931 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
932 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
934 Create the GUI part of the SplitterWindow for the 2-phase create.
936 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
938 def GetWindow1(*args
, **kwargs
):
940 GetWindow1(self) -> Window
942 Gets the only or left/top pane.
944 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
946 def GetWindow2(*args
, **kwargs
):
948 GetWindow2(self) -> Window
950 Gets the right/bottom pane.
952 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
954 def SetSplitMode(*args
, **kwargs
):
956 SetSplitMode(self, int mode)
958 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
959 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
962 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
964 def GetSplitMode(*args
, **kwargs
):
966 GetSplitMode(self) -> int
970 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
972 def Initialize(*args
, **kwargs
):
974 Initialize(self, Window window)
976 Initializes the splitter window to have one pane. This should be
977 called if you wish to initially view only a single pane in the
978 splitter window. The child window is shown if it is currently hidden.
980 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
982 def SplitVertically(*args
, **kwargs
):
984 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
986 Initializes the left and right panes of the splitter window. The
987 child windows are shown if they are currently hidden.
989 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
991 def SplitHorizontally(*args
, **kwargs
):
993 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
995 Initializes the top and bottom panes of the splitter window. The
996 child windows are shown if they are currently hidden.
998 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1000 def Unsplit(*args
, **kwargs
):
1002 Unsplit(self, Window toRemove=None) -> bool
1004 Unsplits the window. Pass the pane to remove, or None to remove the
1005 right or bottom pane. Returns True if successful, False otherwise (the
1006 window was not split).
1008 This function will not actually delete the pane being
1009 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1010 for the desired behaviour. By default, the pane being
1011 removed is only hidden.
1013 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1015 def ReplaceWindow(*args
, **kwargs
):
1017 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1019 This function replaces one of the windows managed by the
1020 SplitterWindow with another one. It is in general better to use it
1021 instead of calling Unsplit() and then resplitting the window back
1022 because it will provoke much less flicker. It is valid to call this
1023 function whether the splitter has two windows or only one.
1025 Both parameters should be non-None and winOld must specify one of the
1026 windows managed by the splitter. If the parameters are incorrect or
1027 the window couldn't be replaced, False is returned. Otherwise the
1028 function will return True, but please notice that it will not Destroy
1029 the replaced window and you may wish to do it yourself.
1031 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1033 def UpdateSize(*args
, **kwargs
):
1037 Causes any pending sizing of the sash and child panes to take place
1040 Such resizing normally takes place in idle time, in order to wait for
1041 layout to be completed. However, this can cause unacceptable flicker
1042 as the panes are resized after the window has been shown. To work
1043 around this, you can perform window layout (for example by sending a
1044 size event to the parent window), and then call this function, before
1045 showing the top-level window.
1047 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1049 def IsSplit(*args
, **kwargs
):
1051 IsSplit(self) -> bool
1053 Is the window split?
1055 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1057 def SetSashSize(*args
, **kwargs
):
1059 SetSashSize(self, int width)
1063 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1065 def SetBorderSize(*args
, **kwargs
):
1067 SetBorderSize(self, int width)
1069 Sets the border size. Currently a NOP.
1071 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1073 def GetSashSize(*args
, **kwargs
):
1075 GetSashSize(self) -> int
1079 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1081 def GetBorderSize(*args
, **kwargs
):
1083 GetBorderSize(self) -> int
1085 Gets the border size
1087 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1089 def SetSashPosition(*args
, **kwargs
):
1091 SetSashPosition(self, int position, bool redraw=True)
1093 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1094 are resized and the sash and border are redrawn.
1096 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1098 def GetSashPosition(*args
, **kwargs
):
1100 GetSashPosition(self) -> int
1102 Returns the surrent sash position.
1104 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1106 def SetSashGravity(*args
, **kwargs
):
1108 SetSashGravity(self, double gravity)
1110 Set the sash gravity. Gravity is a floating-point factor between 0.0
1111 and 1.0 which controls position of sash while resizing the
1112 `wx.SplitterWindow`. The gravity specifies how much the left/top
1113 window will grow while resizing.
1115 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1117 def GetSashGravity(*args
, **kwargs
):
1119 GetSashGravity(self) -> double
1121 Gets the sash gravity.
1123 :see: `SetSashGravity`
1126 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1128 def SetMinimumPaneSize(*args
, **kwargs
):
1130 SetMinimumPaneSize(self, int min)
1132 Sets the minimum pane size in pixels.
1134 The default minimum pane size is zero, which means that either pane
1135 can be reduced to zero by dragging the sash, thus removing one of the
1136 panes. To prevent this behaviour (and veto out-of-range sash
1137 dragging), set a minimum size, for example 20 pixels. If the
1138 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1139 the window may be unsplit even if minimum size is non-zero.
1141 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1143 def GetMinimumPaneSize(*args
, **kwargs
):
1145 GetMinimumPaneSize(self) -> int
1147 Gets the minimum pane size in pixels.
1149 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1151 def SashHitTest(*args
, **kwargs
):
1153 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1155 Tests for x, y over the sash
1157 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1159 def SizeWindows(*args
, **kwargs
):
1165 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1167 def SetNeedUpdating(*args
, **kwargs
):
1168 """SetNeedUpdating(self, bool needUpdating)"""
1169 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1171 def GetNeedUpdating(*args
, **kwargs
):
1172 """GetNeedUpdating(self) -> bool"""
1173 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1175 def GetClassDefaultAttributes(*args
, **kwargs
):
1177 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1179 Get the default attributes for this class. This is useful if you want
1180 to use the same font or colour in your own control as in a standard
1181 control -- which is a much better idea than hard coding specific
1182 colours or fonts which might look completely out of place on the
1183 user's system, especially if it uses themes.
1185 The variant parameter is only relevant under Mac currently and is
1186 ignore under other platforms. Under Mac, it will change the size of
1187 the returned font. See `wx.Window.SetWindowVariant` for more about
1190 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1192 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1193 SplitterWindow_swigregister
= _windows_
.SplitterWindow_swigregister
1194 SplitterWindow_swigregister(SplitterWindow
)
1195 SplitterNameStr
= cvar
.SplitterNameStr
1197 def PreSplitterWindow(*args
, **kwargs
):
1199 PreSplitterWindow() -> SplitterWindow
1201 Precreate a SplitterWindow for 2-phase creation.
1203 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1206 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1208 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1210 Get the default attributes for this class. This is useful if you want
1211 to use the same font or colour in your own control as in a standard
1212 control -- which is a much better idea than hard coding specific
1213 colours or fonts which might look completely out of place on the
1214 user's system, especially if it uses themes.
1216 The variant parameter is only relevant under Mac currently and is
1217 ignore under other platforms. Under Mac, it will change the size of
1218 the returned font. See `wx.Window.SetWindowVariant` for more about
1221 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1223 class SplitterEvent(_core
.NotifyEvent
):
1224 """This class represents the events generated by a splitter control."""
1225 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1226 __repr__
= _swig_repr
1227 def __init__(self
, *args
, **kwargs
):
1229 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1231 This class represents the events generated by a splitter control.
1233 _windows_
.SplitterEvent_swiginit(self
,_windows_
.new_SplitterEvent(*args
, **kwargs
))
1234 def SetSashPosition(*args
, **kwargs
):
1236 SetSashPosition(self, int pos)
1238 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1239 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1240 events, sets the the new sash position. In the case of _CHANGING
1241 events, sets the new tracking bar position so visual feedback during
1242 dragging will represent that change that will actually take place. Set
1243 to -1 from the event handler code to prevent repositioning.
1245 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1247 def GetSashPosition(*args
, **kwargs
):
1249 GetSashPosition(self) -> int
1251 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1252 and EVT_SPLITTER_SASH_POS_CHANGED events.
1254 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1256 def GetWindowBeingRemoved(*args
, **kwargs
):
1258 GetWindowBeingRemoved(self) -> Window
1260 Returns a pointer to the window being removed when a splitter window
1263 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1265 def GetX(*args
, **kwargs
):
1269 Returns the x coordinate of the double-click point in a
1270 EVT_SPLITTER_DCLICK event.
1272 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1274 def GetY(*args
, **kwargs
):
1278 Returns the y coordinate of the double-click point in a
1279 EVT_SPLITTER_DCLICK event.
1281 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1283 SplitterEvent_swigregister
= _windows_
.SplitterEvent_swigregister
1284 SplitterEvent_swigregister(SplitterEvent
)
1286 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1287 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1288 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1289 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1290 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1291 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1292 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1293 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1294 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1296 #---------------------------------------------------------------------------
1298 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1299 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1300 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1301 SW_NOBORDER
= _windows_
.SW_NOBORDER
1302 SW_BORDER
= _windows_
.SW_BORDER
1303 SW_3DSASH
= _windows_
.SW_3DSASH
1304 SW_3DBORDER
= _windows_
.SW_3DBORDER
1305 SW_3D
= _windows_
.SW_3D
1306 SASH_TOP
= _windows_
.SASH_TOP
1307 SASH_RIGHT
= _windows_
.SASH_RIGHT
1308 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1309 SASH_LEFT
= _windows_
.SASH_LEFT
1310 SASH_NONE
= _windows_
.SASH_NONE
1311 class SashWindow(_core
.Window
):
1312 """Proxy of C++ SashWindow class"""
1313 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1314 __repr__
= _swig_repr
1315 def __init__(self
, *args
, **kwargs
):
1317 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1318 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1319 String name=SashNameStr) -> SashWindow
1321 _windows_
.SashWindow_swiginit(self
,_windows_
.new_SashWindow(*args
, **kwargs
))
1322 self
._setOORInfo
(self
)
1324 def Create(*args
, **kwargs
):
1326 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1327 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1328 String name=SashNameStr) -> bool
1330 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1332 def SetSashVisible(*args
, **kwargs
):
1333 """SetSashVisible(self, int edge, bool sash)"""
1334 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1336 def GetSashVisible(*args
, **kwargs
):
1337 """GetSashVisible(self, int edge) -> bool"""
1338 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1340 def SetSashBorder(*args
, **kwargs
):
1341 """SetSashBorder(self, int edge, bool border)"""
1342 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1344 def HasBorder(*args
, **kwargs
):
1345 """HasBorder(self, int edge) -> bool"""
1346 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1348 def GetEdgeMargin(*args
, **kwargs
):
1349 """GetEdgeMargin(self, int edge) -> int"""
1350 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1352 def SetDefaultBorderSize(*args
, **kwargs
):
1353 """SetDefaultBorderSize(self, int width)"""
1354 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1356 def GetDefaultBorderSize(*args
, **kwargs
):
1357 """GetDefaultBorderSize(self) -> int"""
1358 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1360 def SetExtraBorderSize(*args
, **kwargs
):
1361 """SetExtraBorderSize(self, int width)"""
1362 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1364 def GetExtraBorderSize(*args
, **kwargs
):
1365 """GetExtraBorderSize(self) -> int"""
1366 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1368 def SetMinimumSizeX(*args
, **kwargs
):
1369 """SetMinimumSizeX(self, int min)"""
1370 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1372 def SetMinimumSizeY(*args
, **kwargs
):
1373 """SetMinimumSizeY(self, int min)"""
1374 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1376 def GetMinimumSizeX(*args
, **kwargs
):
1377 """GetMinimumSizeX(self) -> int"""
1378 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1380 def GetMinimumSizeY(*args
, **kwargs
):
1381 """GetMinimumSizeY(self) -> int"""
1382 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1384 def SetMaximumSizeX(*args
, **kwargs
):
1385 """SetMaximumSizeX(self, int max)"""
1386 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1388 def SetMaximumSizeY(*args
, **kwargs
):
1389 """SetMaximumSizeY(self, int max)"""
1390 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1392 def GetMaximumSizeX(*args
, **kwargs
):
1393 """GetMaximumSizeX(self) -> int"""
1394 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1396 def GetMaximumSizeY(*args
, **kwargs
):
1397 """GetMaximumSizeY(self) -> int"""
1398 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1400 def SashHitTest(*args
, **kwargs
):
1401 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1402 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1404 def SizeWindows(*args
, **kwargs
):
1405 """SizeWindows(self)"""
1406 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1408 SashWindow_swigregister
= _windows_
.SashWindow_swigregister
1409 SashWindow_swigregister(SashWindow
)
1410 SashNameStr
= cvar
.SashNameStr
1411 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1413 def PreSashWindow(*args
, **kwargs
):
1414 """PreSashWindow() -> SashWindow"""
1415 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1418 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1419 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1420 class SashEvent(_core
.CommandEvent
):
1421 """Proxy of C++ SashEvent class"""
1422 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1423 __repr__
= _swig_repr
1424 def __init__(self
, *args
, **kwargs
):
1425 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1426 _windows_
.SashEvent_swiginit(self
,_windows_
.new_SashEvent(*args
, **kwargs
))
1427 def SetEdge(*args
, **kwargs
):
1428 """SetEdge(self, int edge)"""
1429 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1431 def GetEdge(*args
, **kwargs
):
1432 """GetEdge(self) -> int"""
1433 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1435 def SetDragRect(*args
, **kwargs
):
1436 """SetDragRect(self, Rect rect)"""
1437 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1439 def GetDragRect(*args
, **kwargs
):
1440 """GetDragRect(self) -> Rect"""
1441 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1443 def SetDragStatus(*args
, **kwargs
):
1444 """SetDragStatus(self, int status)"""
1445 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1447 def GetDragStatus(*args
, **kwargs
):
1448 """GetDragStatus(self) -> int"""
1449 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1451 SashEvent_swigregister
= _windows_
.SashEvent_swigregister
1452 SashEvent_swigregister(SashEvent
)
1454 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1455 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1456 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1458 #---------------------------------------------------------------------------
1460 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1461 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1462 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1463 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1464 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1465 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1466 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1467 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1468 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1469 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1470 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1471 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1472 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1473 class QueryLayoutInfoEvent(_core
.Event
):
1474 """Proxy of C++ QueryLayoutInfoEvent class"""
1475 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1476 __repr__
= _swig_repr
1477 def __init__(self
, *args
, **kwargs
):
1478 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1479 _windows_
.QueryLayoutInfoEvent_swiginit(self
,_windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
))
1480 def SetRequestedLength(*args
, **kwargs
):
1481 """SetRequestedLength(self, int length)"""
1482 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1484 def GetRequestedLength(*args
, **kwargs
):
1485 """GetRequestedLength(self) -> int"""
1486 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1488 def SetFlags(*args
, **kwargs
):
1489 """SetFlags(self, int flags)"""
1490 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1492 def GetFlags(*args
, **kwargs
):
1493 """GetFlags(self) -> int"""
1494 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1496 def SetSize(*args
, **kwargs
):
1497 """SetSize(self, Size size)"""
1498 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1500 def GetSize(*args
, **kwargs
):
1501 """GetSize(self) -> Size"""
1502 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1504 def SetOrientation(*args
, **kwargs
):
1505 """SetOrientation(self, int orient)"""
1506 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1508 def GetOrientation(*args
, **kwargs
):
1509 """GetOrientation(self) -> int"""
1510 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1512 def SetAlignment(*args
, **kwargs
):
1513 """SetAlignment(self, int align)"""
1514 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1516 def GetAlignment(*args
, **kwargs
):
1517 """GetAlignment(self) -> int"""
1518 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1520 QueryLayoutInfoEvent_swigregister
= _windows_
.QueryLayoutInfoEvent_swigregister
1521 QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent
)
1523 class CalculateLayoutEvent(_core
.Event
):
1524 """Proxy of C++ CalculateLayoutEvent class"""
1525 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1526 __repr__
= _swig_repr
1527 def __init__(self
, *args
, **kwargs
):
1528 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1529 _windows_
.CalculateLayoutEvent_swiginit(self
,_windows_
.new_CalculateLayoutEvent(*args
, **kwargs
))
1530 def SetFlags(*args
, **kwargs
):
1531 """SetFlags(self, int flags)"""
1532 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1534 def GetFlags(*args
, **kwargs
):
1535 """GetFlags(self) -> int"""
1536 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1538 def SetRect(*args
, **kwargs
):
1539 """SetRect(self, Rect rect)"""
1540 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1542 def GetRect(*args
, **kwargs
):
1543 """GetRect(self) -> Rect"""
1544 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1546 CalculateLayoutEvent_swigregister
= _windows_
.CalculateLayoutEvent_swigregister
1547 CalculateLayoutEvent_swigregister(CalculateLayoutEvent
)
1549 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1550 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1552 class SashLayoutWindow(SashWindow
):
1553 """Proxy of C++ SashLayoutWindow class"""
1554 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1555 __repr__
= _swig_repr
1556 def __init__(self
, *args
, **kwargs
):
1558 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1559 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1560 String name=SashLayoutNameStr) -> SashLayoutWindow
1562 _windows_
.SashLayoutWindow_swiginit(self
,_windows_
.new_SashLayoutWindow(*args
, **kwargs
))
1563 self
._setOORInfo
(self
)
1565 def Create(*args
, **kwargs
):
1567 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1568 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1569 String name=SashLayoutNameStr) -> bool
1571 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1573 def GetAlignment(*args
, **kwargs
):
1574 """GetAlignment(self) -> int"""
1575 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1577 def GetOrientation(*args
, **kwargs
):
1578 """GetOrientation(self) -> int"""
1579 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1581 def SetAlignment(*args
, **kwargs
):
1582 """SetAlignment(self, int alignment)"""
1583 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1585 def SetDefaultSize(*args
, **kwargs
):
1586 """SetDefaultSize(self, Size size)"""
1587 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1589 def SetOrientation(*args
, **kwargs
):
1590 """SetOrientation(self, int orientation)"""
1591 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1593 SashLayoutWindow_swigregister
= _windows_
.SashLayoutWindow_swigregister
1594 SashLayoutWindow_swigregister(SashLayoutWindow
)
1596 def PreSashLayoutWindow(*args
, **kwargs
):
1597 """PreSashLayoutWindow() -> SashLayoutWindow"""
1598 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1601 class LayoutAlgorithm(_core
.Object
):
1602 """Proxy of C++ LayoutAlgorithm class"""
1603 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1604 __repr__
= _swig_repr
1605 def __init__(self
, *args
, **kwargs
):
1606 """__init__(self) -> LayoutAlgorithm"""
1607 _windows_
.LayoutAlgorithm_swiginit(self
,_windows_
.new_LayoutAlgorithm(*args
, **kwargs
))
1608 __swig_destroy__
= _windows_
.delete_LayoutAlgorithm
1609 __del__
= lambda self
: None;
1610 def LayoutMDIFrame(*args
, **kwargs
):
1611 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1612 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1614 def LayoutFrame(*args
, **kwargs
):
1615 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1616 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1618 def LayoutWindow(*args
, **kwargs
):
1619 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1620 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1622 LayoutAlgorithm_swigregister
= _windows_
.LayoutAlgorithm_swigregister
1623 LayoutAlgorithm_swigregister(LayoutAlgorithm
)
1625 #---------------------------------------------------------------------------
1627 class PopupWindow(_core
.Window
):
1628 """Proxy of C++ PopupWindow class"""
1629 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1630 __repr__
= _swig_repr
1631 def __init__(self
, *args
, **kwargs
):
1632 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1633 _windows_
.PopupWindow_swiginit(self
,_windows_
.new_PopupWindow(*args
, **kwargs
))
1634 self
._setOORInfo
(self
)
1636 def Create(*args
, **kwargs
):
1637 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1638 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1640 def Position(*args
, **kwargs
):
1641 """Position(self, Point ptOrigin, Size size)"""
1642 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1644 PopupWindow_swigregister
= _windows_
.PopupWindow_swigregister
1645 PopupWindow_swigregister(PopupWindow
)
1647 def PrePopupWindow(*args
, **kwargs
):
1648 """PrePopupWindow() -> PopupWindow"""
1649 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1652 #---------------------------------------------------------------------------
1654 class PopupTransientWindow(PopupWindow
):
1655 """Proxy of C++ PopupTransientWindow class"""
1656 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1657 __repr__
= _swig_repr
1658 def __init__(self
, *args
, **kwargs
):
1659 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1660 _windows_
.PopupTransientWindow_swiginit(self
,_windows_
.new_PopupTransientWindow(*args
, **kwargs
))
1661 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1663 def _setCallbackInfo(*args
, **kwargs
):
1664 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1665 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1667 def Popup(*args
, **kwargs
):
1668 """Popup(self, Window focus=None)"""
1669 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1671 def Dismiss(*args
, **kwargs
):
1673 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1675 PopupTransientWindow_swigregister
= _windows_
.PopupTransientWindow_swigregister
1676 PopupTransientWindow_swigregister(PopupTransientWindow
)
1678 def PrePopupTransientWindow(*args
, **kwargs
):
1679 """PrePopupTransientWindow() -> PopupTransientWindow"""
1680 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1683 #---------------------------------------------------------------------------
1685 class TipWindow(PopupTransientWindow
):
1686 """Proxy of C++ TipWindow class"""
1687 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1688 __repr__
= _swig_repr
1689 def __init__(self
, *args
, **kwargs
):
1690 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1691 _windows_
.TipWindow_swiginit(self
,_windows_
.new_TipWindow(*args
, **kwargs
))
1692 self
._setOORInfo
(self
)
1694 def SetBoundingRect(*args
, **kwargs
):
1695 """SetBoundingRect(self, Rect rectBound)"""
1696 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1698 def Close(*args
, **kwargs
):
1702 This function simply generates a EVT_CLOSE event whose handler usually
1703 tries to close the window. It doesn't close the window itself,
1704 however. If force is False (the default) then the window's close
1705 handler will be allowed to veto the destruction of the window.
1707 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1709 TipWindow_swigregister
= _windows_
.TipWindow_swigregister
1710 TipWindow_swigregister(TipWindow
)
1712 #---------------------------------------------------------------------------
1714 class VScrolledWindow(Panel
):
1715 """Proxy of C++ VScrolledWindow class"""
1716 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1717 __repr__
= _swig_repr
1718 def __init__(self
, *args
, **kwargs
):
1720 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1721 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1723 _windows_
.VScrolledWindow_swiginit(self
,_windows_
.new_VScrolledWindow(*args
, **kwargs
))
1724 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1726 def _setCallbackInfo(*args
, **kwargs
):
1727 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1728 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1730 def Create(*args
, **kwargs
):
1732 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1733 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1735 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1737 def SetLineCount(*args
, **kwargs
):
1738 """SetLineCount(self, size_t count)"""
1739 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1741 def ScrollToLine(*args
, **kwargs
):
1742 """ScrollToLine(self, size_t line) -> bool"""
1743 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1745 def RefreshLine(*args
, **kwargs
):
1746 """RefreshLine(self, size_t line)"""
1747 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1749 def RefreshLines(*args
, **kwargs
):
1750 """RefreshLines(self, size_t from, size_t to)"""
1751 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1753 def HitTestXY(*args
, **kwargs
):
1755 HitTestXY(self, int x, int y) -> int
1757 Test where the given (in client coords) point lies
1759 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1761 def HitTest(*args
, **kwargs
):
1763 HitTest(self, Point pt) -> int
1765 Test where the given (in client coords) point lies
1767 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1769 def RefreshAll(*args
, **kwargs
):
1770 """RefreshAll(self)"""
1771 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1773 def GetLineCount(*args
, **kwargs
):
1774 """GetLineCount(self) -> size_t"""
1775 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1777 def GetVisibleBegin(*args
, **kwargs
):
1778 """GetVisibleBegin(self) -> size_t"""
1779 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
1781 def GetVisibleEnd(*args
, **kwargs
):
1782 """GetVisibleEnd(self) -> size_t"""
1783 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
1785 def IsVisible(*args
, **kwargs
):
1786 """IsVisible(self, size_t line) -> bool"""
1787 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1789 def GetFirstVisibleLine(*args
, **kwargs
):
1790 """GetFirstVisibleLine(self) -> size_t"""
1791 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1793 def GetLastVisibleLine(*args
, **kwargs
):
1794 """GetLastVisibleLine(self) -> size_t"""
1795 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1797 def FindFirstFromBottom(*args
, **kwargs
):
1798 """FindFirstFromBottom(self, size_t lineLast, bool fullyVisible=False) -> size_t"""
1799 return _windows_
.VScrolledWindow_FindFirstFromBottom(*args
, **kwargs
)
1801 def GetLinesHeight(*args
, **kwargs
):
1802 """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int"""
1803 return _windows_
.VScrolledWindow_GetLinesHeight(*args
, **kwargs
)
1805 VScrolledWindow_swigregister
= _windows_
.VScrolledWindow_swigregister
1806 VScrolledWindow_swigregister(VScrolledWindow
)
1808 def PreVScrolledWindow(*args
, **kwargs
):
1809 """PreVScrolledWindow() -> VScrolledWindow"""
1810 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1813 class VListBox(VScrolledWindow
):
1814 """Proxy of C++ VListBox class"""
1815 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1816 __repr__
= _swig_repr
1817 def __init__(self
, *args
, **kwargs
):
1819 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1820 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1822 _windows_
.VListBox_swiginit(self
,_windows_
.new_VListBox(*args
, **kwargs
))
1823 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1825 def _setCallbackInfo(*args
, **kwargs
):
1826 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1827 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1829 def Create(*args
, **kwargs
):
1831 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1832 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1834 return _windows_
.VListBox_Create(*args
, **kwargs
)
1836 def GetItemCount(*args
, **kwargs
):
1837 """GetItemCount(self) -> size_t"""
1838 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1840 def HasMultipleSelection(*args
, **kwargs
):
1841 """HasMultipleSelection(self) -> bool"""
1842 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1844 def GetSelection(*args
, **kwargs
):
1845 """GetSelection(self) -> int"""
1846 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1848 def IsCurrent(*args
, **kwargs
):
1849 """IsCurrent(self, size_t item) -> bool"""
1850 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1852 def IsSelected(*args
, **kwargs
):
1853 """IsSelected(self, size_t item) -> bool"""
1854 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1856 def GetSelectedCount(*args
, **kwargs
):
1857 """GetSelectedCount(self) -> size_t"""
1858 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1860 def GetFirstSelected(*args
, **kwargs
):
1861 """GetFirstSelected(self) -> PyObject"""
1862 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1864 def GetNextSelected(*args
, **kwargs
):
1865 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1866 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1868 def GetMargins(*args
, **kwargs
):
1869 """GetMargins(self) -> Point"""
1870 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1872 def GetSelectionBackground(*args
, **kwargs
):
1873 """GetSelectionBackground(self) -> Colour"""
1874 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1876 def SetItemCount(*args
, **kwargs
):
1877 """SetItemCount(self, size_t count)"""
1878 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1880 def Clear(*args
, **kwargs
):
1882 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1884 def SetSelection(*args
, **kwargs
):
1885 """SetSelection(self, int selection)"""
1886 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1888 def Select(*args
, **kwargs
):
1889 """Select(self, size_t item, bool select=True) -> bool"""
1890 return _windows_
.VListBox_Select(*args
, **kwargs
)
1892 def SelectRange(*args
, **kwargs
):
1893 """SelectRange(self, size_t from, size_t to) -> bool"""
1894 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1896 def Toggle(*args
, **kwargs
):
1897 """Toggle(self, size_t item)"""
1898 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1900 def SelectAll(*args
, **kwargs
):
1901 """SelectAll(self) -> bool"""
1902 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1904 def DeselectAll(*args
, **kwargs
):
1905 """DeselectAll(self) -> bool"""
1906 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1908 def SetMargins(*args
, **kwargs
):
1909 """SetMargins(self, Point pt)"""
1910 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1912 def SetMarginsXY(*args
, **kwargs
):
1913 """SetMarginsXY(self, int x, int y)"""
1914 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1916 def SetSelectionBackground(*args
, **kwargs
):
1917 """SetSelectionBackground(self, Colour col)"""
1918 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1920 def OnDrawSeparator(*args
, **kwargs
):
1921 """OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
1922 return _windows_
.VListBox_OnDrawSeparator(*args
, **kwargs
)
1924 def OnDrawBackground(*args
, **kwargs
):
1925 """OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
1926 return _windows_
.VListBox_OnDrawBackground(*args
, **kwargs
)
1928 VListBox_swigregister
= _windows_
.VListBox_swigregister
1929 VListBox_swigregister(VListBox
)
1930 VListBoxNameStr
= cvar
.VListBoxNameStr
1932 def PreVListBox(*args
, **kwargs
):
1933 """PreVListBox() -> VListBox"""
1934 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1937 class HtmlListBox(VListBox
):
1938 """Proxy of C++ HtmlListBox class"""
1939 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1940 __repr__
= _swig_repr
1941 def __init__(self
, *args
, **kwargs
):
1943 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1944 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1946 _windows_
.HtmlListBox_swiginit(self
,_windows_
.new_HtmlListBox(*args
, **kwargs
))
1947 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1949 def _setCallbackInfo(*args
, **kwargs
):
1950 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1951 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1953 def Create(*args
, **kwargs
):
1955 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1956 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1958 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1960 def SetItemCount(*args
, **kwargs
):
1961 """SetItemCount(self, size_t count)"""
1962 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1964 def GetFileSystem(*args
, **kwargs
):
1965 """GetFileSystem(self) -> FileSystem"""
1966 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
1968 HtmlListBox_swigregister
= _windows_
.HtmlListBox_swigregister
1969 HtmlListBox_swigregister(HtmlListBox
)
1971 def PreHtmlListBox(*args
, **kwargs
):
1972 """PreHtmlListBox() -> HtmlListBox"""
1973 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
1976 #---------------------------------------------------------------------------
1978 class TaskBarIcon(_core
.EvtHandler
):
1979 """Proxy of C++ TaskBarIcon class"""
1980 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1981 __repr__
= _swig_repr
1982 def __init__(self
, *args
, **kwargs
):
1983 """__init__(self) -> TaskBarIcon"""
1984 _windows_
.TaskBarIcon_swiginit(self
,_windows_
.new_TaskBarIcon(*args
, **kwargs
))
1985 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
1987 __swig_destroy__
= _windows_
.delete_TaskBarIcon
1988 __del__
= lambda self
: None;
1989 def _setCallbackInfo(*args
, **kwargs
):
1990 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
1991 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
1993 def Destroy(*args
, **kwargs
):
1997 Deletes the C++ object this Python object is a proxy for.
1999 val
= _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2003 def IsOk(*args
, **kwargs
):
2004 """IsOk(self) -> bool"""
2005 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2007 def __nonzero__(self
): return self
.IsOk()
2008 def IsIconInstalled(*args
, **kwargs
):
2009 """IsIconInstalled(self) -> bool"""
2010 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2012 def SetIcon(*args
, **kwargs
):
2013 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2014 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2016 def RemoveIcon(*args
, **kwargs
):
2017 """RemoveIcon(self) -> bool"""
2018 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2020 def PopupMenu(*args
, **kwargs
):
2021 """PopupMenu(self, Menu menu) -> bool"""
2022 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2024 TaskBarIcon_swigregister
= _windows_
.TaskBarIcon_swigregister
2025 TaskBarIcon_swigregister(TaskBarIcon
)
2027 class TaskBarIconEvent(_core
.Event
):
2028 """Proxy of C++ TaskBarIconEvent class"""
2029 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2030 __repr__
= _swig_repr
2031 def __init__(self
, *args
, **kwargs
):
2032 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2033 _windows_
.TaskBarIconEvent_swiginit(self
,_windows_
.new_TaskBarIconEvent(*args
, **kwargs
))
2034 TaskBarIconEvent_swigregister
= _windows_
.TaskBarIconEvent_swigregister
2035 TaskBarIconEvent_swigregister(TaskBarIconEvent
)
2037 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2038 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2039 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2040 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2041 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2042 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2043 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2044 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2045 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2046 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2047 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2048 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2049 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2050 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2052 #---------------------------------------------------------------------------
2054 class ColourData(_core
.Object
):
2056 This class holds a variety of information related to the colour
2057 chooser dialog, used to transfer settings and results to and from the
2060 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2061 __repr__
= _swig_repr
2062 def __init__(self
, *args
, **kwargs
):
2064 __init__(self) -> ColourData
2066 Constructor, sets default values.
2068 _windows_
.ColourData_swiginit(self
,_windows_
.new_ColourData(*args
, **kwargs
))
2069 __swig_destroy__
= _windows_
.delete_ColourData
2070 __del__
= lambda self
: None;
2071 def GetChooseFull(*args
, **kwargs
):
2073 GetChooseFull(self) -> bool
2075 Under Windows, determines whether the Windows colour dialog will
2076 display the full dialog with custom colour selection controls. Has no
2077 meaning under other platforms. The default value is true.
2079 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2081 def GetColour(*args
, **kwargs
):
2083 GetColour(self) -> Colour
2085 Gets the colour (pre)selected by the dialog.
2087 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2089 def GetCustomColour(*args
, **kwargs
):
2091 GetCustomColour(self, int i) -> Colour
2093 Gets the i'th custom colour associated with the colour dialog. i
2094 should be an integer between 0 and 15. The default custom colours are
2095 all invalid colours.
2097 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2099 def SetChooseFull(*args
, **kwargs
):
2101 SetChooseFull(self, int flag)
2103 Under Windows, tells the Windows colour dialog to display the full
2104 dialog with custom colour selection controls. Under other platforms,
2105 has no effect. The default value is true.
2107 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2109 def SetColour(*args
, **kwargs
):
2111 SetColour(self, Colour colour)
2113 Sets the default colour for the colour dialog. The default colour is
2116 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2118 def SetCustomColour(*args
, **kwargs
):
2120 SetCustomColour(self, int i, Colour colour)
2122 Sets the i'th custom colour for the colour dialog. i should be an
2123 integer between 0 and 15. The default custom colours are all invalid colours.
2125 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2127 ColourData_swigregister
= _windows_
.ColourData_swigregister
2128 ColourData_swigregister(ColourData
)
2129 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2130 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2131 DirDialogNameStr
= cvar
.DirDialogNameStr
2132 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2133 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2134 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2136 class ColourDialog(Dialog
):
2137 """This class represents the colour chooser dialog."""
2138 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2139 __repr__
= _swig_repr
2140 def __init__(self
, *args
, **kwargs
):
2142 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2144 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2145 which will be copied to the colour dialog's internal ColourData
2148 _windows_
.ColourDialog_swiginit(self
,_windows_
.new_ColourDialog(*args
, **kwargs
))
2149 self
._setOORInfo
(self
)
2151 def GetColourData(*args
, **kwargs
):
2153 GetColourData(self) -> ColourData
2155 Returns a reference to the `wx.ColourData` used by the dialog.
2157 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2159 ColourDialog_swigregister
= _windows_
.ColourDialog_swigregister
2160 ColourDialog_swigregister(ColourDialog
)
2163 def GetColourFromUser(*args
, **kwargs
):
2165 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2166 String caption=EmptyString) -> Colour
2168 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2169 class DirDialog(Dialog
):
2171 wx.DirDialog allows the user to select a directory by browising the
2174 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2175 __repr__
= _swig_repr
2176 def __init__(self
, *args
, **kwargs
):
2178 __init__(self, Window parent, String message=DirSelectorPromptStr,
2179 String defaultPath=EmptyString, long style=0,
2180 Point pos=DefaultPosition, Size size=DefaultSize,
2181 String name=DirDialogNameStr) -> DirDialog
2183 Constructor. Use ShowModal method to show the dialog.
2185 _windows_
.DirDialog_swiginit(self
,_windows_
.new_DirDialog(*args
, **kwargs
))
2186 self
._setOORInfo
(self
)
2188 def GetPath(*args
, **kwargs
):
2190 GetPath(self) -> String
2192 Returns the default or user-selected path.
2194 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2196 def GetMessage(*args
, **kwargs
):
2198 GetMessage(self) -> String
2200 Returns the message that will be displayed on the dialog.
2202 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2204 def GetStyle(*args
, **kwargs
):
2206 GetStyle(self) -> long
2208 Returns the dialog style.
2210 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2212 def SetMessage(*args
, **kwargs
):
2214 SetMessage(self, String message)
2216 Sets the message that will be displayed on the dialog.
2218 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2220 def SetPath(*args
, **kwargs
):
2222 SetPath(self, String path)
2224 Sets the default path.
2226 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2228 DirDialog_swigregister
= _windows_
.DirDialog_swigregister
2229 DirDialog_swigregister(DirDialog
)
2231 class FileDialog(Dialog
):
2233 wx.FileDialog allows the user to select one or more files from the
2236 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2237 __repr__
= _swig_repr
2238 def __init__(self
, *args
, **kwargs
):
2240 __init__(self, Window parent, String message=FileSelectorPromptStr,
2241 String defaultDir=EmptyString, String defaultFile=EmptyString,
2242 String wildcard=FileSelectorDefaultWildcardStr,
2243 long style=0, Point pos=DefaultPosition) -> FileDialog
2245 Constructor. Use ShowModal method to show the dialog.
2247 _windows_
.FileDialog_swiginit(self
,_windows_
.new_FileDialog(*args
, **kwargs
))
2248 self
._setOORInfo
(self
)
2250 def SetMessage(*args
, **kwargs
):
2252 SetMessage(self, String message)
2254 Sets the message that will be displayed on the dialog.
2256 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2258 def SetPath(*args
, **kwargs
):
2260 SetPath(self, String path)
2262 Sets the path (the combined directory and filename that will be
2263 returned when the dialog is dismissed).
2265 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2267 def SetDirectory(*args
, **kwargs
):
2269 SetDirectory(self, String dir)
2271 Sets the default directory.
2273 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2275 def SetFilename(*args
, **kwargs
):
2277 SetFilename(self, String name)
2279 Sets the default filename.
2281 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2283 def SetWildcard(*args
, **kwargs
):
2285 SetWildcard(self, String wildCard)
2287 Sets the wildcard, which can contain multiple file types, for
2290 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2293 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2295 def SetStyle(*args
, **kwargs
):
2297 SetStyle(self, long style)
2299 Sets the dialog style.
2301 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2303 def SetFilterIndex(*args
, **kwargs
):
2305 SetFilterIndex(self, int filterIndex)
2307 Sets the default filter index, starting from zero.
2309 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2311 def GetMessage(*args
, **kwargs
):
2313 GetMessage(self) -> String
2315 Returns the message that will be displayed on the dialog.
2317 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2319 def GetPath(*args
, **kwargs
):
2321 GetPath(self) -> String
2323 Returns the full path (directory and filename) of the selected file.
2325 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2327 def GetDirectory(*args
, **kwargs
):
2329 GetDirectory(self) -> String
2331 Returns the default directory.
2333 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2335 def GetFilename(*args
, **kwargs
):
2337 GetFilename(self) -> String
2339 Returns the default filename.
2341 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2343 def GetWildcard(*args
, **kwargs
):
2345 GetWildcard(self) -> String
2347 Returns the file dialog wildcard.
2349 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2351 def GetStyle(*args
, **kwargs
):
2353 GetStyle(self) -> long
2355 Returns the dialog style.
2357 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2359 def GetFilterIndex(*args
, **kwargs
):
2361 GetFilterIndex(self) -> int
2363 Returns the index into the list of filters supplied, optionally, in
2364 the wildcard parameter. Before the dialog is shown, this is the index
2365 which will be used when the dialog is first displayed. After the
2366 dialog is shown, this is the index selected by the user.
2368 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2370 def GetFilenames(*args
, **kwargs
):
2372 GetFilenames(self) -> PyObject
2374 Returns a list of filenames chosen in the dialog. This function
2375 should only be used with the dialogs which have wx.MULTIPLE style, use
2376 GetFilename for the others.
2378 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2380 def GetPaths(*args
, **kwargs
):
2382 GetPaths(self) -> PyObject
2384 Fills the array paths with the full paths of the files chosen. This
2385 function should only be used with the dialogs which have wx.MULTIPLE
2386 style, use GetPath for the others.
2388 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2390 FileDialog_swigregister
= _windows_
.FileDialog_swigregister
2391 FileDialog_swigregister(FileDialog
)
2393 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2394 class MultiChoiceDialog(Dialog
):
2395 """A simple dialog with a multi selection listbox."""
2396 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2397 __repr__
= _swig_repr
2398 def __init__(self
, *args
, **kwargs
):
2400 __init__(self, Window parent, String message, String caption,
2401 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2402 Point pos=DefaultPosition) -> MultiChoiceDialog
2404 Constructor. Use the `ShowModal` method to show the dialog.
2406 :param parent: The parent window.
2407 :param message: Text to display above the list of selections.
2408 :param caption: Text to use in the title bar of the dialog.
2409 :param choices: A list of strings or unicode objects that the
2410 user is allowed to choose from.
2411 :param style: Styles to apply to the dialog. The default value is
2412 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2413 :param pos: Where to position the dialog (not used on Windows)
2417 _windows_
.MultiChoiceDialog_swiginit(self
,_windows_
.new_MultiChoiceDialog(*args
, **kwargs
))
2418 self
._setOORInfo
(self
)
2420 def SetSelections(*args
, **kwargs
):
2422 SetSelections(List selections)
2424 Specify the items in the list that should be selected, using a list of
2425 integers. The list should specify the indexes of the items that
2428 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2430 def GetSelections(*args
, **kwargs
):
2432 GetSelections() -> [selections]
2434 Returns a list of integers representing the items that are selected.
2435 If an item is selected then its index will appear in the list.
2437 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2439 MultiChoiceDialog_swigregister
= _windows_
.MultiChoiceDialog_swigregister
2440 MultiChoiceDialog_swigregister(MultiChoiceDialog
)
2442 class SingleChoiceDialog(Dialog
):
2443 """A simple dialog with a single selection listbox."""
2444 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2445 __repr__
= _swig_repr
2446 def __init__(self
, *args
, **kwargs
):
2448 __init__(Window parent, String message, String caption,
2449 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2450 Point pos=DefaultPosition) -> SingleChoiceDialog
2452 Constructor. Use ShowModal method to show the dialog.
2454 _windows_
.SingleChoiceDialog_swiginit(self
,_windows_
.new_SingleChoiceDialog(*args
, **kwargs
))
2455 self
._setOORInfo
(self
)
2457 def GetSelection(*args
, **kwargs
):
2459 GetSelection(self) -> int
2461 Get the index of teh currently selected item.
2463 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2465 def GetStringSelection(*args
, **kwargs
):
2467 GetStringSelection(self) -> String
2469 Returns the string value of the currently selected item
2471 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2473 def SetSelection(*args
, **kwargs
):
2475 SetSelection(self, int sel)
2477 Set the current selected item to sel
2479 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2481 SingleChoiceDialog_swigregister
= _windows_
.SingleChoiceDialog_swigregister
2482 SingleChoiceDialog_swigregister(SingleChoiceDialog
)
2484 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2485 class TextEntryDialog(Dialog
):
2486 """A dialog with text control, [ok] and [cancel] buttons"""
2487 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2488 __repr__
= _swig_repr
2489 def __init__(self
, *args
, **kwargs
):
2491 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2492 String defaultValue=EmptyString,
2493 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2495 Constructor. Use ShowModal method to show the dialog.
2497 _windows_
.TextEntryDialog_swiginit(self
,_windows_
.new_TextEntryDialog(*args
, **kwargs
))
2498 self
._setOORInfo
(self
)
2500 def GetValue(*args
, **kwargs
):
2502 GetValue(self) -> String
2504 Returns the text that the user has entered if the user has pressed OK,
2505 or the original value if the user has pressed Cancel.
2507 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2509 def SetValue(*args
, **kwargs
):
2511 SetValue(self, String value)
2513 Sets the default text value.
2515 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2517 TextEntryDialog_swigregister
= _windows_
.TextEntryDialog_swigregister
2518 TextEntryDialog_swigregister(TextEntryDialog
)
2520 class PasswordEntryDialog(TextEntryDialog
):
2521 """Proxy of C++ PasswordEntryDialog class"""
2522 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2523 __repr__
= _swig_repr
2524 def __init__(self
, *args
, **kwargs
):
2526 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2527 String value=EmptyString,
2528 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2530 _windows_
.PasswordEntryDialog_swiginit(self
,_windows_
.new_PasswordEntryDialog(*args
, **kwargs
))
2531 PasswordEntryDialog_swigregister
= _windows_
.PasswordEntryDialog_swigregister
2532 PasswordEntryDialog_swigregister(PasswordEntryDialog
)
2533 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2535 class FontData(_core
.Object
):
2537 This class holds a variety of information related to font dialogs and
2538 is used to transfer settings to and results from a `wx.FontDialog`.
2540 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2541 __repr__
= _swig_repr
2542 def __init__(self
, *args
, **kwargs
):
2544 __init__(self) -> FontData
2546 This class holds a variety of information related to font dialogs and
2547 is used to transfer settings to and results from a `wx.FontDialog`.
2549 _windows_
.FontData_swiginit(self
,_windows_
.new_FontData(*args
, **kwargs
))
2550 __swig_destroy__
= _windows_
.delete_FontData
2551 __del__
= lambda self
: None;
2552 def EnableEffects(*args
, **kwargs
):
2554 EnableEffects(self, bool enable)
2556 Enables or disables 'effects' under MS Windows only. This refers to
2557 the controls for manipulating colour, strikeout and underline
2558 properties. The default value is true.
2560 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2562 def GetAllowSymbols(*args
, **kwargs
):
2564 GetAllowSymbols(self) -> bool
2566 Under MS Windows, returns a flag determining whether symbol fonts can
2567 be selected. Has no effect on other platforms. The default value is
2570 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2572 def GetColour(*args
, **kwargs
):
2574 GetColour(self) -> Colour
2576 Gets the colour associated with the font dialog. The default value is
2579 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2581 def GetChosenFont(*args
, **kwargs
):
2583 GetChosenFont(self) -> Font
2585 Gets the font chosen by the user.
2587 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2589 def GetEnableEffects(*args
, **kwargs
):
2591 GetEnableEffects(self) -> bool
2593 Determines whether 'effects' are enabled under Windows.
2595 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2597 def GetInitialFont(*args
, **kwargs
):
2599 GetInitialFont(self) -> Font
2601 Gets the font that will be initially used by the font dialog. This
2602 should have previously been set by the application.
2604 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2606 def GetShowHelp(*args
, **kwargs
):
2608 GetShowHelp(self) -> bool
2610 Returns true if the Help button will be shown (Windows only). The
2611 default value is false.
2613 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2615 def SetAllowSymbols(*args
, **kwargs
):
2617 SetAllowSymbols(self, bool allowSymbols)
2619 Under MS Windows, determines whether symbol fonts can be selected. Has
2620 no effect on other platforms. The default value is true.
2622 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2624 def SetChosenFont(*args
, **kwargs
):
2626 SetChosenFont(self, Font font)
2628 Sets the font that will be returned to the user (normally for internal
2631 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2633 def SetColour(*args
, **kwargs
):
2635 SetColour(self, Colour colour)
2637 Sets the colour that will be used for the font foreground colour. The
2638 default colour is black.
2640 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2642 def SetInitialFont(*args
, **kwargs
):
2644 SetInitialFont(self, Font font)
2646 Sets the font that will be initially used by the font dialog.
2648 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2650 def SetRange(*args
, **kwargs
):
2652 SetRange(self, int min, int max)
2654 Sets the valid range for the font point size (Windows only). The
2655 default is 0, 0 (unrestricted range).
2657 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2659 def SetShowHelp(*args
, **kwargs
):
2661 SetShowHelp(self, bool showHelp)
2663 Determines whether the Help button will be displayed in the font
2664 dialog (Windows only). The default value is false.
2666 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2668 FontData_swigregister
= _windows_
.FontData_swigregister
2669 FontData_swigregister(FontData
)
2671 class FontDialog(Dialog
):
2673 wx.FontDialog allows the user to select a system font and its attributes.
2678 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2679 __repr__
= _swig_repr
2680 def __init__(self
, *args
, **kwargs
):
2682 __init__(self, Window parent, FontData data) -> FontDialog
2684 Constructor. Pass a parent window and the `wx.FontData` object to be
2685 used to initialize the dialog controls. Call `ShowModal` to display
2686 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2687 results with via the `wx.FontData` returned by `GetFontData`.
2689 _windows_
.FontDialog_swiginit(self
,_windows_
.new_FontDialog(*args
, **kwargs
))
2690 self
._setOORInfo
(self
)
2692 def GetFontData(*args
, **kwargs
):
2694 GetFontData(self) -> FontData
2696 Returns a reference to the internal `wx.FontData` used by the
2699 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2701 FontDialog_swigregister
= _windows_
.FontDialog_swigregister
2702 FontDialog_swigregister(FontDialog
)
2705 def GetFontFromUser(*args
, **kwargs
):
2706 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2707 return _windows_
.GetFontFromUser(*args
, **kwargs
)
2708 class MessageDialog(Dialog
):
2710 This class provides a simple dialog that shows a single or multi-line
2711 message, with a choice of OK, Yes, No and/or Cancel buttons.
2713 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2714 __repr__
= _swig_repr
2715 def __init__(self
, *args
, **kwargs
):
2717 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2718 long style=wxOK|wxCANCEL|wxCENTRE,
2719 Point pos=DefaultPosition) -> MessageDialog
2721 Constructor, use `ShowModal` to display the dialog.
2723 _windows_
.MessageDialog_swiginit(self
,_windows_
.new_MessageDialog(*args
, **kwargs
))
2724 self
._setOORInfo
(self
)
2726 MessageDialog_swigregister
= _windows_
.MessageDialog_swigregister
2727 MessageDialog_swigregister(MessageDialog
)
2729 class ProgressDialog(Frame
):
2731 A dialog that shows a short message and a progress bar. Optionally, it
2732 can display an ABORT button.
2734 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2735 __repr__
= _swig_repr
2736 def __init__(self
, *args
, **kwargs
):
2738 __init__(self, String title, String message, int maximum=100, Window parent=None,
2739 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2741 Constructor. Creates the dialog, displays it and disables user input
2742 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2745 _windows_
.ProgressDialog_swiginit(self
,_windows_
.new_ProgressDialog(*args
, **kwargs
))
2746 self
._setOORInfo
(self
)
2748 def Update(*args
, **kwargs
):
2750 Update(self, int value, String newmsg=EmptyString) -> bool
2752 Updates the dialog, setting the progress bar to the new value and, if
2753 given changes the message above it. The value given should be less
2754 than or equal to the maximum value given to the constructor and the
2755 dialog is closed if it is equal to the maximum. Returns True unless
2756 the Cancel button has been pressed.
2758 If false is returned, the application can either immediately destroy
2759 the dialog or ask the user for the confirmation and if the abort is
2760 not confirmed the dialog may be resumed with Resume function.
2762 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2764 def Resume(*args
, **kwargs
):
2768 Can be used to continue with the dialog, after the user had chosen to
2771 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2773 ProgressDialog_swigregister
= _windows_
.ProgressDialog_swigregister
2774 ProgressDialog_swigregister(ProgressDialog
)
2776 FR_DOWN
= _windows_
.FR_DOWN
2777 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2778 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2779 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2780 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2781 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2782 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2783 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2784 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2785 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2786 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2787 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2788 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2789 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2790 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2791 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2792 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2794 # For backwards compatibility. Should they be removed?
2795 EVT_COMMAND_FIND
= EVT_FIND
2796 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2797 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2798 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2799 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2801 class FindDialogEvent(_core
.CommandEvent
):
2802 """Events for the FindReplaceDialog"""
2803 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2804 __repr__
= _swig_repr
2805 def __init__(self
, *args
, **kwargs
):
2807 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2809 Events for the FindReplaceDialog
2811 _windows_
.FindDialogEvent_swiginit(self
,_windows_
.new_FindDialogEvent(*args
, **kwargs
))
2812 def GetFlags(*args
, **kwargs
):
2814 GetFlags(self) -> int
2816 Get the currently selected flags: this is the combination of
2817 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2819 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2821 def GetFindString(*args
, **kwargs
):
2823 GetFindString(self) -> String
2825 Return the string to find (never empty).
2827 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2829 def GetReplaceString(*args
, **kwargs
):
2831 GetReplaceString(self) -> String
2833 Return the string to replace the search string with (only for replace
2834 and replace all events).
2836 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2838 def GetDialog(*args
, **kwargs
):
2840 GetDialog(self) -> FindReplaceDialog
2842 Return the pointer to the dialog which generated this event.
2844 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2846 def SetFlags(*args
, **kwargs
):
2847 """SetFlags(self, int flags)"""
2848 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2850 def SetFindString(*args
, **kwargs
):
2851 """SetFindString(self, String str)"""
2852 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2854 def SetReplaceString(*args
, **kwargs
):
2855 """SetReplaceString(self, String str)"""
2856 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2858 FindDialogEvent_swigregister
= _windows_
.FindDialogEvent_swigregister
2859 FindDialogEvent_swigregister(FindDialogEvent
)
2861 class FindReplaceData(_core
.Object
):
2863 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2864 to initialize the dialog with the default values and will keep the
2865 last values from the dialog when it is closed. It is also updated each
2866 time a `wx.FindDialogEvent` is generated so instead of using the
2867 `wx.FindDialogEvent` methods you can also directly query this object.
2869 Note that all SetXXX() methods may only be called before showing the
2870 dialog and calling them has no effect later.
2872 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2873 __repr__
= _swig_repr
2874 def __init__(self
, *args
, **kwargs
):
2876 __init__(self, int flags=0) -> FindReplaceData
2878 Constuctor initializes the flags to default value (0).
2880 _windows_
.FindReplaceData_swiginit(self
,_windows_
.new_FindReplaceData(*args
, **kwargs
))
2881 __swig_destroy__
= _windows_
.delete_FindReplaceData
2882 __del__
= lambda self
: None;
2883 def GetFindString(*args
, **kwargs
):
2885 GetFindString(self) -> String
2887 Get the string to find.
2889 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2891 def GetReplaceString(*args
, **kwargs
):
2893 GetReplaceString(self) -> String
2895 Get the replacement string.
2897 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2899 def GetFlags(*args
, **kwargs
):
2901 GetFlags(self) -> int
2903 Get the combination of flag values.
2905 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
2907 def SetFlags(*args
, **kwargs
):
2909 SetFlags(self, int flags)
2911 Set the flags to use to initialize the controls of the dialog.
2913 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
2915 def SetFindString(*args
, **kwargs
):
2917 SetFindString(self, String str)
2919 Set the string to find (used as initial value by the dialog).
2921 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
2923 def SetReplaceString(*args
, **kwargs
):
2925 SetReplaceString(self, String str)
2927 Set the replacement string (used as initial value by the dialog).
2929 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2931 FindReplaceData_swigregister
= _windows_
.FindReplaceData_swigregister
2932 FindReplaceData_swigregister(FindReplaceData
)
2934 class FindReplaceDialog(Dialog
):
2936 wx.FindReplaceDialog is a standard modeless dialog which is used to
2937 allow the user to search for some text (and possibly replace it with
2938 something else). The actual searching is supposed to be done in the
2939 owner window which is the parent of this dialog. Note that it means
2940 that unlike for the other standard dialogs this one must have a parent
2941 window. Also note that there is no way to use this dialog in a modal
2942 way; it is always, by design and implementation, modeless.
2944 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2945 __repr__
= _swig_repr
2946 def __init__(self
, *args
, **kwargs
):
2948 __init__(self, Window parent, FindReplaceData data, String title,
2949 int style=0) -> FindReplaceDialog
2951 Create a FindReplaceDialog. The parent and data parameters must be
2952 non-None. Use Show to display the dialog.
2954 _windows_
.FindReplaceDialog_swiginit(self
,_windows_
.new_FindReplaceDialog(*args
, **kwargs
))
2955 self
._setOORInfo
(self
)
2957 def Create(*args
, **kwargs
):
2959 Create(self, Window parent, FindReplaceData data, String title,
2960 int style=0) -> bool
2962 Create the dialog, for 2-phase create.
2964 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
2966 def GetData(*args
, **kwargs
):
2968 GetData(self) -> FindReplaceData
2970 Get the FindReplaceData object used by this dialog.
2972 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
2974 def SetData(*args
, **kwargs
):
2976 SetData(self, FindReplaceData data)
2978 Set the FindReplaceData object used by this dialog.
2980 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
2982 FindReplaceDialog_swigregister
= _windows_
.FindReplaceDialog_swigregister
2983 FindReplaceDialog_swigregister(FindReplaceDialog
)
2985 def PreFindReplaceDialog(*args
, **kwargs
):
2987 PreFindReplaceDialog() -> FindReplaceDialog
2989 Precreate a FindReplaceDialog for 2-phase creation
2991 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
2994 #---------------------------------------------------------------------------
2996 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
2997 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
2998 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
2999 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3000 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3001 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3002 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3003 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3004 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3005 class MDIParentFrame(Frame
):
3006 """Proxy of C++ MDIParentFrame class"""
3007 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3008 __repr__
= _swig_repr
3009 def __init__(self
, *args
, **kwargs
):
3011 __init__(self, Window parent, int id=-1, String title=EmptyString,
3012 Point pos=DefaultPosition, Size size=DefaultSize,
3013 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3014 String name=FrameNameStr) -> MDIParentFrame
3016 _windows_
.MDIParentFrame_swiginit(self
,_windows_
.new_MDIParentFrame(*args
, **kwargs
))
3017 self
._setOORInfo
(self
)
3019 def Create(*args
, **kwargs
):
3021 Create(self, Window parent, int id=-1, String title=EmptyString,
3022 Point pos=DefaultPosition, Size size=DefaultSize,
3023 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3024 String name=FrameNameStr) -> bool
3026 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3028 def ActivateNext(*args
, **kwargs
):
3029 """ActivateNext(self)"""
3030 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3032 def ActivatePrevious(*args
, **kwargs
):
3033 """ActivatePrevious(self)"""
3034 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3036 def ArrangeIcons(*args
, **kwargs
):
3037 """ArrangeIcons(self)"""
3038 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3040 def Cascade(*args
, **kwargs
):
3042 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3044 def GetActiveChild(*args
, **kwargs
):
3045 """GetActiveChild(self) -> MDIChildFrame"""
3046 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3048 def GetClientWindow(*args
, **kwargs
):
3049 """GetClientWindow(self) -> MDIClientWindow"""
3050 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3052 def GetToolBar(*args
, **kwargs
):
3053 """GetToolBar(self) -> Window"""
3054 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3056 def GetWindowMenu(*args
, **kwargs
):
3057 """GetWindowMenu(self) -> Menu"""
3058 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3060 def SetWindowMenu(*args
, **kwargs
):
3061 """SetWindowMenu(self, Menu menu)"""
3062 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3064 def Tile(*args
, **kwargs
):
3065 """Tile(self, int orient=HORIZONTAL)"""
3066 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3068 MDIParentFrame_swigregister
= _windows_
.MDIParentFrame_swigregister
3069 MDIParentFrame_swigregister(MDIParentFrame
)
3071 def PreMDIParentFrame(*args
, **kwargs
):
3072 """PreMDIParentFrame() -> MDIParentFrame"""
3073 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3076 class MDIChildFrame(Frame
):
3077 """Proxy of C++ MDIChildFrame class"""
3078 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3079 __repr__
= _swig_repr
3080 def __init__(self
, *args
, **kwargs
):
3082 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3083 Point pos=DefaultPosition, Size size=DefaultSize,
3084 long style=DEFAULT_FRAME_STYLE,
3085 String name=FrameNameStr) -> MDIChildFrame
3087 _windows_
.MDIChildFrame_swiginit(self
,_windows_
.new_MDIChildFrame(*args
, **kwargs
))
3088 self
._setOORInfo
(self
)
3090 def Create(*args
, **kwargs
):
3092 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3093 Point pos=DefaultPosition, Size size=DefaultSize,
3094 long style=DEFAULT_FRAME_STYLE,
3095 String name=FrameNameStr) -> bool
3097 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3099 def Activate(*args
, **kwargs
):
3100 """Activate(self)"""
3101 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3103 MDIChildFrame_swigregister
= _windows_
.MDIChildFrame_swigregister
3104 MDIChildFrame_swigregister(MDIChildFrame
)
3106 def PreMDIChildFrame(*args
, **kwargs
):
3107 """PreMDIChildFrame() -> MDIChildFrame"""
3108 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3111 class MDIClientWindow(_core
.Window
):
3112 """Proxy of C++ MDIClientWindow class"""
3113 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3114 __repr__
= _swig_repr
3115 def __init__(self
, *args
, **kwargs
):
3116 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3117 _windows_
.MDIClientWindow_swiginit(self
,_windows_
.new_MDIClientWindow(*args
, **kwargs
))
3118 self
._setOORInfo
(self
)
3120 def Create(*args
, **kwargs
):
3121 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3122 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3124 MDIClientWindow_swigregister
= _windows_
.MDIClientWindow_swigregister
3125 MDIClientWindow_swigregister(MDIClientWindow
)
3127 def PreMDIClientWindow(*args
, **kwargs
):
3128 """PreMDIClientWindow() -> MDIClientWindow"""
3129 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3132 #---------------------------------------------------------------------------
3134 class PyWindow(_core
.Window
):
3135 """Proxy of C++ PyWindow class"""
3136 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3137 __repr__
= _swig_repr
3138 def __init__(self
, *args
, **kwargs
):
3140 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3141 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3143 _windows_
.PyWindow_swiginit(self
,_windows_
.new_PyWindow(*args
, **kwargs
))
3144 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3146 def _setCallbackInfo(*args
, **kwargs
):
3147 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3148 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3150 def SetBestSize(*args
, **kwargs
):
3151 """SetBestSize(self, Size size)"""
3152 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3154 def DoEraseBackground(*args
, **kwargs
):
3155 """DoEraseBackground(self, DC dc) -> bool"""
3156 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3158 def DoMoveWindow(*args
, **kwargs
):
3159 """DoMoveWindow(self, int x, int y, int width, int height)"""
3160 return _windows_
.PyWindow_DoMoveWindow(*args
, **kwargs
)
3162 def DoSetSize(*args
, **kwargs
):
3163 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3164 return _windows_
.PyWindow_DoSetSize(*args
, **kwargs
)
3166 def DoSetClientSize(*args
, **kwargs
):
3167 """DoSetClientSize(self, int width, int height)"""
3168 return _windows_
.PyWindow_DoSetClientSize(*args
, **kwargs
)
3170 def DoSetVirtualSize(*args
, **kwargs
):
3171 """DoSetVirtualSize(self, int x, int y)"""
3172 return _windows_
.PyWindow_DoSetVirtualSize(*args
, **kwargs
)
3174 def DoGetSize(*args
, **kwargs
):
3175 """DoGetSize() -> (width, height)"""
3176 return _windows_
.PyWindow_DoGetSize(*args
, **kwargs
)
3178 def DoGetClientSize(*args
, **kwargs
):
3179 """DoGetClientSize() -> (width, height)"""
3180 return _windows_
.PyWindow_DoGetClientSize(*args
, **kwargs
)
3182 def DoGetPosition(*args
, **kwargs
):
3183 """DoGetPosition() -> (x,y)"""
3184 return _windows_
.PyWindow_DoGetPosition(*args
, **kwargs
)
3186 def DoGetVirtualSize(*args
, **kwargs
):
3187 """DoGetVirtualSize(self) -> Size"""
3188 return _windows_
.PyWindow_DoGetVirtualSize(*args
, **kwargs
)
3190 def DoGetBestSize(*args
, **kwargs
):
3191 """DoGetBestSize(self) -> Size"""
3192 return _windows_
.PyWindow_DoGetBestSize(*args
, **kwargs
)
3194 def GetDefaultAttributes(*args
, **kwargs
):
3195 """GetDefaultAttributes(self) -> VisualAttributes"""
3196 return _windows_
.PyWindow_GetDefaultAttributes(*args
, **kwargs
)
3198 def OnInternalIdle(*args
, **kwargs
):
3199 """OnInternalIdle(self)"""
3200 return _windows_
.PyWindow_OnInternalIdle(*args
, **kwargs
)
3202 def base_DoMoveWindow(*args
, **kw
):
3203 return PyWindow
.DoMoveWindow(*args
, **kw
)
3204 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3205 "Please use PyWindow.DoMoveWindow instead.")
3207 def base_DoSetSize(*args
, **kw
):
3208 return PyWindow
.DoSetSize(*args
, **kw
)
3209 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3210 "Please use PyWindow.DoSetSize instead.")
3212 def base_DoSetClientSize(*args
, **kw
):
3213 return PyWindow
.DoSetClientSize(*args
, **kw
)
3214 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3215 "Please use PyWindow.DoSetClientSize instead.")
3217 def base_DoSetVirtualSize(*args
, **kw
):
3218 return PyWindow
.DoSetVirtualSize(*args
, **kw
)
3219 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3220 "Please use PyWindow.DoSetVirtualSize instead.")
3222 def base_DoGetSize(*args
, **kw
):
3223 return PyWindow
.DoGetSize(*args
, **kw
)
3224 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3225 "Please use PyWindow.DoGetSize instead.")
3227 def base_DoGetClientSize(*args
, **kw
):
3228 return PyWindow
.DoGetClientSize(*args
, **kw
)
3229 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3230 "Please use PyWindow.DoGetClientSize instead.")
3232 def base_DoGetPosition(*args
, **kw
):
3233 return PyWindow
.DoGetPosition(*args
, **kw
)
3234 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3235 "Please use PyWindow.DoGetPosition instead.")
3237 def base_DoGetVirtualSize(*args
, **kw
):
3238 return PyWindow
.DoGetVirtualSize(*args
, **kw
)
3239 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3240 "Please use PyWindow.DoGetVirtualSize instead.")
3242 def base_DoGetBestSize(*args
, **kw
):
3243 return PyWindow
.DoGetBestSize(*args
, **kw
)
3244 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3245 "Please use PyWindow.DoGetBestSize instead.")
3247 def base_InitDialog(*args
, **kw
):
3248 return PyWindow
.InitDialog(*args
, **kw
)
3249 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3250 "Please use PyWindow.InitDialog instead.")
3252 def base_TransferDataToWindow(*args
, **kw
):
3253 return PyWindow
.TransferDataToWindow(*args
, **kw
)
3254 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3255 "Please use PyWindow.TransferDataToWindow instead.")
3257 def base_TransferDataFromWindow(*args
, **kw
):
3258 return PyWindow
.TransferDataFromWindow(*args
, **kw
)
3259 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3260 "Please use PyWindow.TransferDataFromWindow instead.")
3262 def base_Validate(*args
, **kw
):
3263 return PyWindow
.Validate(*args
, **kw
)
3264 base_Validate
= wx
._deprecated
(base_Validate
,
3265 "Please use PyWindow.Validate instead.")
3267 def base_AcceptsFocus(*args
, **kw
):
3268 return PyWindow
.AcceptsFocus(*args
, **kw
)
3269 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3270 "Please use PyWindow.AcceptsFocus instead.")
3272 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3273 return PyWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3274 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3275 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3277 def base_GetMaxSize(*args
, **kw
):
3278 return PyWindow
.GetMaxSize(*args
, **kw
)
3279 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3280 "Please use PyWindow.GetMaxSize instead.")
3282 def base_AddChild(*args
, **kw
):
3283 return PyWindow
.AddChild(*args
, **kw
)
3284 base_AddChild
= wx
._deprecated
(base_AddChild
,
3285 "Please use PyWindow.AddChild instead.")
3287 def base_RemoveChild(*args
, **kw
):
3288 return PyWindow
.RemoveChild(*args
, **kw
)
3289 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3290 "Please use PyWindow.RemoveChild instead.")
3292 def base_ShouldInheritColours(*args
, **kw
):
3293 return PyWindow
.ShouldInheritColours(*args
, **kw
)
3294 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3295 "Please use PyWindow.ShouldInheritColours instead.")
3297 def base_GetDefaultAttributes(*args
, **kw
):
3298 return PyWindow
.GetDefaultAttributes(*args
, **kw
)
3299 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3300 "Please use PyWindow.GetDefaultAttributes instead.")
3302 def base_OnInternalIdle(*args
, **kw
):
3303 return PyWindow
.OnInternalIdle(*args
, **kw
)
3304 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3305 "Please use PyWindow.OnInternalIdle instead.")
3307 PyWindow_swigregister
= _windows_
.PyWindow_swigregister
3308 PyWindow_swigregister(PyWindow
)
3310 def PrePyWindow(*args
, **kwargs
):
3311 """PrePyWindow() -> PyWindow"""
3312 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3315 class PyPanel(Panel
):
3316 """Proxy of C++ PyPanel class"""
3317 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3318 __repr__
= _swig_repr
3319 def __init__(self
, *args
, **kwargs
):
3321 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3322 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3324 _windows_
.PyPanel_swiginit(self
,_windows_
.new_PyPanel(*args
, **kwargs
))
3325 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3327 def _setCallbackInfo(*args
, **kwargs
):
3328 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3329 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3331 def SetBestSize(*args
, **kwargs
):
3332 """SetBestSize(self, Size size)"""
3333 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3335 def DoEraseBackground(*args
, **kwargs
):
3336 """DoEraseBackground(self, DC dc) -> bool"""
3337 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3339 def DoMoveWindow(*args
, **kwargs
):
3340 """DoMoveWindow(self, int x, int y, int width, int height)"""
3341 return _windows_
.PyPanel_DoMoveWindow(*args
, **kwargs
)
3343 def DoSetSize(*args
, **kwargs
):
3344 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3345 return _windows_
.PyPanel_DoSetSize(*args
, **kwargs
)
3347 def DoSetClientSize(*args
, **kwargs
):
3348 """DoSetClientSize(self, int width, int height)"""
3349 return _windows_
.PyPanel_DoSetClientSize(*args
, **kwargs
)
3351 def DoSetVirtualSize(*args
, **kwargs
):
3352 """DoSetVirtualSize(self, int x, int y)"""
3353 return _windows_
.PyPanel_DoSetVirtualSize(*args
, **kwargs
)
3355 def DoGetSize(*args
, **kwargs
):
3356 """DoGetSize() -> (width, height)"""
3357 return _windows_
.PyPanel_DoGetSize(*args
, **kwargs
)
3359 def DoGetClientSize(*args
, **kwargs
):
3360 """DoGetClientSize() -> (width, height)"""
3361 return _windows_
.PyPanel_DoGetClientSize(*args
, **kwargs
)
3363 def DoGetPosition(*args
, **kwargs
):
3364 """DoGetPosition() -> (x,y)"""
3365 return _windows_
.PyPanel_DoGetPosition(*args
, **kwargs
)
3367 def DoGetVirtualSize(*args
, **kwargs
):
3368 """DoGetVirtualSize(self) -> Size"""
3369 return _windows_
.PyPanel_DoGetVirtualSize(*args
, **kwargs
)
3371 def DoGetBestSize(*args
, **kwargs
):
3372 """DoGetBestSize(self) -> Size"""
3373 return _windows_
.PyPanel_DoGetBestSize(*args
, **kwargs
)
3375 def GetDefaultAttributes(*args
, **kwargs
):
3376 """GetDefaultAttributes(self) -> VisualAttributes"""
3377 return _windows_
.PyPanel_GetDefaultAttributes(*args
, **kwargs
)
3379 def OnInternalIdle(*args
, **kwargs
):
3380 """OnInternalIdle(self)"""
3381 return _windows_
.PyPanel_OnInternalIdle(*args
, **kwargs
)
3383 def base_DoMoveWindow(*args
, **kw
):
3384 return PyPanel
.DoMoveWindow(*args
, **kw
)
3385 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3386 "Please use PyPanel.DoMoveWindow instead.")
3388 def base_DoSetSize(*args
, **kw
):
3389 return PyPanel
.DoSetSize(*args
, **kw
)
3390 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3391 "Please use PyPanel.DoSetSize instead.")
3393 def base_DoSetClientSize(*args
, **kw
):
3394 return PyPanel
.DoSetClientSize(*args
, **kw
)
3395 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3396 "Please use PyPanel.DoSetClientSize instead.")
3398 def base_DoSetVirtualSize(*args
, **kw
):
3399 return PyPanel
.DoSetVirtualSize(*args
, **kw
)
3400 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3401 "Please use PyPanel.DoSetVirtualSize instead.")
3403 def base_DoGetSize(*args
, **kw
):
3404 return PyPanel
.DoGetSize(*args
, **kw
)
3405 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3406 "Please use PyPanel.DoGetSize instead.")
3408 def base_DoGetClientSize(*args
, **kw
):
3409 return PyPanel
.DoGetClientSize(*args
, **kw
)
3410 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3411 "Please use PyPanel.DoGetClientSize instead.")
3413 def base_DoGetPosition(*args
, **kw
):
3414 return PyPanel
.DoGetPosition(*args
, **kw
)
3415 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3416 "Please use PyPanel.DoGetPosition instead.")
3418 def base_DoGetVirtualSize(*args
, **kw
):
3419 return PyPanel
.DoGetVirtualSize(*args
, **kw
)
3420 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3421 "Please use PyPanel.DoGetVirtualSize instead.")
3423 def base_DoGetBestSize(*args
, **kw
):
3424 return PyPanel
.DoGetBestSize(*args
, **kw
)
3425 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3426 "Please use PyPanel.DoGetBestSize instead.")
3428 def base_InitDialog(*args
, **kw
):
3429 return PyPanel
.InitDialog(*args
, **kw
)
3430 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3431 "Please use PyPanel.InitDialog instead.")
3433 def base_TransferDataToWindow(*args
, **kw
):
3434 return PyPanel
.TransferDataToWindow(*args
, **kw
)
3435 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3436 "Please use PyPanel.TransferDataToWindow instead.")
3438 def base_TransferDataFromWindow(*args
, **kw
):
3439 return PyPanel
.TransferDataFromWindow(*args
, **kw
)
3440 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3441 "Please use PyPanel.TransferDataFromWindow instead.")
3443 def base_Validate(*args
, **kw
):
3444 return PyPanel
.Validate(*args
, **kw
)
3445 base_Validate
= wx
._deprecated
(base_Validate
,
3446 "Please use PyPanel.Validate instead.")
3448 def base_AcceptsFocus(*args
, **kw
):
3449 return PyPanel
.AcceptsFocus(*args
, **kw
)
3450 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3451 "Please use PyPanel.AcceptsFocus instead.")
3453 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3454 return PyPanel
.AcceptsFocusFromKeyboard(*args
, **kw
)
3455 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3456 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
3458 def base_GetMaxSize(*args
, **kw
):
3459 return PyPanel
.GetMaxSize(*args
, **kw
)
3460 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3461 "Please use PyPanel.GetMaxSize instead.")
3463 def base_AddChild(*args
, **kw
):
3464 return PyPanel
.AddChild(*args
, **kw
)
3465 base_AddChild
= wx
._deprecated
(base_AddChild
,
3466 "Please use PyPanel.AddChild instead.")
3468 def base_RemoveChild(*args
, **kw
):
3469 return PyPanel
.RemoveChild(*args
, **kw
)
3470 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3471 "Please use PyPanel.RemoveChild instead.")
3473 def base_ShouldInheritColours(*args
, **kw
):
3474 return PyPanel
.ShouldInheritColours(*args
, **kw
)
3475 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3476 "Please use PyPanel.ShouldInheritColours instead.")
3478 def base_GetDefaultAttributes(*args
, **kw
):
3479 return PyPanel
.GetDefaultAttributes(*args
, **kw
)
3480 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3481 "Please use PyPanel.GetDefaultAttributes instead.")
3483 def base_OnInternalIdle(*args
, **kw
):
3484 return PyPanel
.OnInternalIdle(*args
, **kw
)
3485 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3486 "Please use PyPanel.OnInternalIdle instead.")
3488 PyPanel_swigregister
= _windows_
.PyPanel_swigregister
3489 PyPanel_swigregister(PyPanel
)
3491 def PrePyPanel(*args
, **kwargs
):
3492 """PrePyPanel() -> PyPanel"""
3493 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3496 class PyScrolledWindow(ScrolledWindow
):
3497 """Proxy of C++ PyScrolledWindow class"""
3498 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3499 __repr__
= _swig_repr
3500 def __init__(self
, *args
, **kwargs
):
3502 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3503 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3505 _windows_
.PyScrolledWindow_swiginit(self
,_windows_
.new_PyScrolledWindow(*args
, **kwargs
))
3506 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3508 def _setCallbackInfo(*args
, **kwargs
):
3509 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3510 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3512 def SetBestSize(*args
, **kwargs
):
3513 """SetBestSize(self, Size size)"""
3514 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3516 def DoEraseBackground(*args
, **kwargs
):
3517 """DoEraseBackground(self, DC dc) -> bool"""
3518 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3520 def DoMoveWindow(*args
, **kwargs
):
3521 """DoMoveWindow(self, int x, int y, int width, int height)"""
3522 return _windows_
.PyScrolledWindow_DoMoveWindow(*args
, **kwargs
)
3524 def DoSetSize(*args
, **kwargs
):
3525 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3526 return _windows_
.PyScrolledWindow_DoSetSize(*args
, **kwargs
)
3528 def DoSetClientSize(*args
, **kwargs
):
3529 """DoSetClientSize(self, int width, int height)"""
3530 return _windows_
.PyScrolledWindow_DoSetClientSize(*args
, **kwargs
)
3532 def DoSetVirtualSize(*args
, **kwargs
):
3533 """DoSetVirtualSize(self, int x, int y)"""
3534 return _windows_
.PyScrolledWindow_DoSetVirtualSize(*args
, **kwargs
)
3536 def DoGetSize(*args
, **kwargs
):
3537 """DoGetSize() -> (width, height)"""
3538 return _windows_
.PyScrolledWindow_DoGetSize(*args
, **kwargs
)
3540 def DoGetClientSize(*args
, **kwargs
):
3541 """DoGetClientSize() -> (width, height)"""
3542 return _windows_
.PyScrolledWindow_DoGetClientSize(*args
, **kwargs
)
3544 def DoGetPosition(*args
, **kwargs
):
3545 """DoGetPosition() -> (x,y)"""
3546 return _windows_
.PyScrolledWindow_DoGetPosition(*args
, **kwargs
)
3548 def DoGetVirtualSize(*args
, **kwargs
):
3549 """DoGetVirtualSize(self) -> Size"""
3550 return _windows_
.PyScrolledWindow_DoGetVirtualSize(*args
, **kwargs
)
3552 def DoGetBestSize(*args
, **kwargs
):
3553 """DoGetBestSize(self) -> Size"""
3554 return _windows_
.PyScrolledWindow_DoGetBestSize(*args
, **kwargs
)
3556 def GetDefaultAttributes(*args
, **kwargs
):
3557 """GetDefaultAttributes(self) -> VisualAttributes"""
3558 return _windows_
.PyScrolledWindow_GetDefaultAttributes(*args
, **kwargs
)
3560 def OnInternalIdle(*args
, **kwargs
):
3561 """OnInternalIdle(self)"""
3562 return _windows_
.PyScrolledWindow_OnInternalIdle(*args
, **kwargs
)
3564 def base_DoMoveWindow(*args
, **kw
):
3565 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
3566 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3567 "Please use PyScrolledWindow.DoMoveWindow instead.")
3569 def base_DoSetSize(*args
, **kw
):
3570 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
3571 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3572 "Please use PyScrolledWindow.DoSetSize instead.")
3574 def base_DoSetClientSize(*args
, **kw
):
3575 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
3576 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3577 "Please use PyScrolledWindow.DoSetClientSize instead.")
3579 def base_DoSetVirtualSize(*args
, **kw
):
3580 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
3581 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3582 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
3584 def base_DoGetSize(*args
, **kw
):
3585 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
3586 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3587 "Please use PyScrolledWindow.DoGetSize instead.")
3589 def base_DoGetClientSize(*args
, **kw
):
3590 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
3591 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3592 "Please use PyScrolledWindow.DoGetClientSize instead.")
3594 def base_DoGetPosition(*args
, **kw
):
3595 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
3596 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3597 "Please use PyScrolledWindow.DoGetPosition instead.")
3599 def base_DoGetVirtualSize(*args
, **kw
):
3600 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
3601 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3602 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
3604 def base_DoGetBestSize(*args
, **kw
):
3605 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
3606 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3607 "Please use PyScrolledWindow.DoGetBestSize instead.")
3609 def base_InitDialog(*args
, **kw
):
3610 return PyScrolledWindow
.InitDialog(*args
, **kw
)
3611 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3612 "Please use PyScrolledWindow.InitDialog instead.")
3614 def base_TransferDataToWindow(*args
, **kw
):
3615 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
3616 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3617 "Please use PyScrolledWindow.TransferDataToWindow instead.")
3619 def base_TransferDataFromWindow(*args
, **kw
):
3620 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
3621 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3622 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
3624 def base_Validate(*args
, **kw
):
3625 return PyScrolledWindow
.Validate(*args
, **kw
)
3626 base_Validate
= wx
._deprecated
(base_Validate
,
3627 "Please use PyScrolledWindow.Validate instead.")
3629 def base_AcceptsFocus(*args
, **kw
):
3630 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
3631 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3632 "Please use PyScrolledWindow.AcceptsFocus instead.")
3634 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3635 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3636 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3637 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
3639 def base_GetMaxSize(*args
, **kw
):
3640 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
3641 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3642 "Please use PyScrolledWindow.GetMaxSize instead.")
3644 def base_AddChild(*args
, **kw
):
3645 return PyScrolledWindow
.AddChild(*args
, **kw
)
3646 base_AddChild
= wx
._deprecated
(base_AddChild
,
3647 "Please use PyScrolledWindow.AddChild instead.")
3649 def base_RemoveChild(*args
, **kw
):
3650 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
3651 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3652 "Please use PyScrolledWindow.RemoveChild instead.")
3654 def base_ShouldInheritColours(*args
, **kw
):
3655 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
3656 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3657 "Please use PyScrolledWindow.ShouldInheritColours instead.")
3659 def base_GetDefaultAttributes(*args
, **kw
):
3660 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
3661 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3662 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
3664 def base_OnInternalIdle(*args
, **kw
):
3665 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
3666 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3667 "Please use PyScrolledWindow.OnInternalIdle instead.")
3669 PyScrolledWindow_swigregister
= _windows_
.PyScrolledWindow_swigregister
3670 PyScrolledWindow_swigregister(PyScrolledWindow
)
3672 def PrePyScrolledWindow(*args
, **kwargs
):
3673 """PrePyScrolledWindow() -> PyScrolledWindow"""
3674 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3677 #---------------------------------------------------------------------------
3679 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3680 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3681 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3682 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3683 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3684 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3685 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3686 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3687 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3688 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3689 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3690 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3691 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3692 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3693 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3694 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3695 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3696 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3697 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3698 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3699 class PrintData(_core
.Object
):
3700 """Proxy of C++ PrintData class"""
3701 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3702 __repr__
= _swig_repr
3703 def __init__(self
, *args
):
3705 __init__(self) -> PrintData
3706 __init__(self, PrintData data) -> PrintData
3708 _windows_
.PrintData_swiginit(self
,_windows_
.new_PrintData(*args
))
3709 __swig_destroy__
= _windows_
.delete_PrintData
3710 __del__
= lambda self
: None;
3711 def GetNoCopies(*args
, **kwargs
):
3712 """GetNoCopies(self) -> int"""
3713 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3715 def GetCollate(*args
, **kwargs
):
3716 """GetCollate(self) -> bool"""
3717 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3719 def GetOrientation(*args
, **kwargs
):
3720 """GetOrientation(self) -> int"""
3721 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3723 def Ok(*args
, **kwargs
):
3724 """Ok(self) -> bool"""
3725 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3727 def GetPrinterName(*args
, **kwargs
):
3728 """GetPrinterName(self) -> String"""
3729 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3731 def GetColour(*args
, **kwargs
):
3732 """GetColour(self) -> bool"""
3733 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3735 def GetDuplex(*args
, **kwargs
):
3736 """GetDuplex(self) -> int"""
3737 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3739 def GetPaperId(*args
, **kwargs
):
3740 """GetPaperId(self) -> int"""
3741 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3743 def GetPaperSize(*args
, **kwargs
):
3744 """GetPaperSize(self) -> Size"""
3745 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3747 def GetQuality(*args
, **kwargs
):
3748 """GetQuality(self) -> int"""
3749 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3751 def GetBin(*args
, **kwargs
):
3752 """GetBin(self) -> int"""
3753 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3755 def GetPrintMode(*args
, **kwargs
):
3756 """GetPrintMode(self) -> int"""
3757 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3759 def SetNoCopies(*args
, **kwargs
):
3760 """SetNoCopies(self, int v)"""
3761 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3763 def SetCollate(*args
, **kwargs
):
3764 """SetCollate(self, bool flag)"""
3765 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3767 def SetOrientation(*args
, **kwargs
):
3768 """SetOrientation(self, int orient)"""
3769 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3771 def SetPrinterName(*args
, **kwargs
):
3772 """SetPrinterName(self, String name)"""
3773 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3775 def SetColour(*args
, **kwargs
):
3776 """SetColour(self, bool colour)"""
3777 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3779 def SetDuplex(*args
, **kwargs
):
3780 """SetDuplex(self, int duplex)"""
3781 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3783 def SetPaperId(*args
, **kwargs
):
3784 """SetPaperId(self, int sizeId)"""
3785 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3787 def SetPaperSize(*args
, **kwargs
):
3788 """SetPaperSize(self, Size sz)"""
3789 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3791 def SetQuality(*args
, **kwargs
):
3792 """SetQuality(self, int quality)"""
3793 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3795 def SetBin(*args
, **kwargs
):
3796 """SetBin(self, int bin)"""
3797 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3799 def SetPrintMode(*args
, **kwargs
):
3800 """SetPrintMode(self, int printMode)"""
3801 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3803 def GetFilename(*args
, **kwargs
):
3804 """GetFilename(self) -> String"""
3805 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3807 def SetFilename(*args
, **kwargs
):
3808 """SetFilename(self, String filename)"""
3809 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3811 def __nonzero__(self
): return self
.Ok()
3812 def GetPrivData(*args
, **kwargs
):
3813 """GetPrivData(self) -> PyObject"""
3814 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
3816 def SetPrivData(*args
, **kwargs
):
3817 """SetPrivData(self, PyObject data)"""
3818 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
3820 PrintData_swigregister
= _windows_
.PrintData_swigregister
3821 PrintData_swigregister(PrintData
)
3822 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3823 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3825 class PageSetupDialogData(_core
.Object
):
3826 """Proxy of C++ PageSetupDialogData class"""
3827 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3828 __repr__
= _swig_repr
3829 def __init__(self
, *args
):
3831 __init__(self) -> PageSetupDialogData
3832 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3833 __init__(self, PrintData data) -> PageSetupDialogData
3835 _windows_
.PageSetupDialogData_swiginit(self
,_windows_
.new_PageSetupDialogData(*args
))
3836 __swig_destroy__
= _windows_
.delete_PageSetupDialogData
3837 __del__
= lambda self
: None;
3838 def EnableHelp(*args
, **kwargs
):
3839 """EnableHelp(self, bool flag)"""
3840 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3842 def EnableMargins(*args
, **kwargs
):
3843 """EnableMargins(self, bool flag)"""
3844 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3846 def EnableOrientation(*args
, **kwargs
):
3847 """EnableOrientation(self, bool flag)"""
3848 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3850 def EnablePaper(*args
, **kwargs
):
3851 """EnablePaper(self, bool flag)"""
3852 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3854 def EnablePrinter(*args
, **kwargs
):
3855 """EnablePrinter(self, bool flag)"""
3856 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3858 def GetDefaultMinMargins(*args
, **kwargs
):
3859 """GetDefaultMinMargins(self) -> bool"""
3860 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3862 def GetEnableMargins(*args
, **kwargs
):
3863 """GetEnableMargins(self) -> bool"""
3864 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3866 def GetEnableOrientation(*args
, **kwargs
):
3867 """GetEnableOrientation(self) -> bool"""
3868 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3870 def GetEnablePaper(*args
, **kwargs
):
3871 """GetEnablePaper(self) -> bool"""
3872 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3874 def GetEnablePrinter(*args
, **kwargs
):
3875 """GetEnablePrinter(self) -> bool"""
3876 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3878 def GetEnableHelp(*args
, **kwargs
):
3879 """GetEnableHelp(self) -> bool"""
3880 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3882 def GetDefaultInfo(*args
, **kwargs
):
3883 """GetDefaultInfo(self) -> bool"""
3884 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3886 def GetMarginTopLeft(*args
, **kwargs
):
3887 """GetMarginTopLeft(self) -> Point"""
3888 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3890 def GetMarginBottomRight(*args
, **kwargs
):
3891 """GetMarginBottomRight(self) -> Point"""
3892 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3894 def GetMinMarginTopLeft(*args
, **kwargs
):
3895 """GetMinMarginTopLeft(self) -> Point"""
3896 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3898 def GetMinMarginBottomRight(*args
, **kwargs
):
3899 """GetMinMarginBottomRight(self) -> Point"""
3900 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3902 def GetPaperId(*args
, **kwargs
):
3903 """GetPaperId(self) -> int"""
3904 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3906 def GetPaperSize(*args
, **kwargs
):
3907 """GetPaperSize(self) -> Size"""
3908 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3910 def GetPrintData(*args
, **kwargs
):
3911 """GetPrintData(self) -> PrintData"""
3912 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3914 def Ok(*args
, **kwargs
):
3915 """Ok(self) -> bool"""
3916 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3918 def SetDefaultInfo(*args
, **kwargs
):
3919 """SetDefaultInfo(self, bool flag)"""
3920 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3922 def SetDefaultMinMargins(*args
, **kwargs
):
3923 """SetDefaultMinMargins(self, bool flag)"""
3924 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3926 def SetMarginTopLeft(*args
, **kwargs
):
3927 """SetMarginTopLeft(self, Point pt)"""
3928 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3930 def SetMarginBottomRight(*args
, **kwargs
):
3931 """SetMarginBottomRight(self, Point pt)"""
3932 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3934 def SetMinMarginTopLeft(*args
, **kwargs
):
3935 """SetMinMarginTopLeft(self, Point pt)"""
3936 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3938 def SetMinMarginBottomRight(*args
, **kwargs
):
3939 """SetMinMarginBottomRight(self, Point pt)"""
3940 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3942 def SetPaperId(*args
, **kwargs
):
3943 """SetPaperId(self, int id)"""
3944 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3946 def SetPaperSize(*args
, **kwargs
):
3947 """SetPaperSize(self, Size size)"""
3948 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3950 def SetPrintData(*args
, **kwargs
):
3951 """SetPrintData(self, PrintData printData)"""
3952 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3954 def CalculateIdFromPaperSize(*args
, **kwargs
):
3955 """CalculateIdFromPaperSize(self)"""
3956 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
3958 def CalculatePaperSizeFromId(*args
, **kwargs
):
3959 """CalculatePaperSizeFromId(self)"""
3960 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
3962 def __nonzero__(self
): return self
.Ok()
3963 PageSetupDialogData_swigregister
= _windows_
.PageSetupDialogData_swigregister
3964 PageSetupDialogData_swigregister(PageSetupDialogData
)
3966 class PageSetupDialog(_core
.Object
):
3967 """Proxy of C++ PageSetupDialog class"""
3968 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3969 __repr__
= _swig_repr
3970 def __init__(self
, *args
, **kwargs
):
3971 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3972 _windows_
.PageSetupDialog_swiginit(self
,_windows_
.new_PageSetupDialog(*args
, **kwargs
))
3973 def GetPageSetupData(*args
, **kwargs
):
3974 """GetPageSetupData(self) -> PageSetupDialogData"""
3975 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3977 def GetPageSetupDialogData(*args
, **kwargs
):
3978 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
3979 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
3981 def ShowModal(*args
, **kwargs
):
3982 """ShowModal(self) -> int"""
3983 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3985 PageSetupDialog_swigregister
= _windows_
.PageSetupDialog_swigregister
3986 PageSetupDialog_swigregister(PageSetupDialog
)
3988 class PrintDialogData(_core
.Object
):
3989 """Proxy of C++ PrintDialogData class"""
3990 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3991 __repr__
= _swig_repr
3992 def __init__(self
, *args
):
3994 __init__(self) -> PrintDialogData
3995 __init__(self, PrintData printData) -> PrintDialogData
3996 __init__(self, PrintDialogData printData) -> PrintDialogData
3998 _windows_
.PrintDialogData_swiginit(self
,_windows_
.new_PrintDialogData(*args
))
3999 __swig_destroy__
= _windows_
.delete_PrintDialogData
4000 __del__
= lambda self
: None;
4001 def GetFromPage(*args
, **kwargs
):
4002 """GetFromPage(self) -> int"""
4003 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4005 def GetToPage(*args
, **kwargs
):
4006 """GetToPage(self) -> int"""
4007 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4009 def GetMinPage(*args
, **kwargs
):
4010 """GetMinPage(self) -> int"""
4011 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4013 def GetMaxPage(*args
, **kwargs
):
4014 """GetMaxPage(self) -> int"""
4015 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4017 def GetNoCopies(*args
, **kwargs
):
4018 """GetNoCopies(self) -> int"""
4019 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4021 def GetAllPages(*args
, **kwargs
):
4022 """GetAllPages(self) -> bool"""
4023 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4025 def GetSelection(*args
, **kwargs
):
4026 """GetSelection(self) -> bool"""
4027 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4029 def GetCollate(*args
, **kwargs
):
4030 """GetCollate(self) -> bool"""
4031 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4033 def GetPrintToFile(*args
, **kwargs
):
4034 """GetPrintToFile(self) -> bool"""
4035 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4037 def SetFromPage(*args
, **kwargs
):
4038 """SetFromPage(self, int v)"""
4039 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4041 def SetToPage(*args
, **kwargs
):
4042 """SetToPage(self, int v)"""
4043 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4045 def SetMinPage(*args
, **kwargs
):
4046 """SetMinPage(self, int v)"""
4047 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4049 def SetMaxPage(*args
, **kwargs
):
4050 """SetMaxPage(self, int v)"""
4051 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4053 def SetNoCopies(*args
, **kwargs
):
4054 """SetNoCopies(self, int v)"""
4055 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4057 def SetAllPages(*args
, **kwargs
):
4058 """SetAllPages(self, bool flag)"""
4059 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4061 def SetSelection(*args
, **kwargs
):
4062 """SetSelection(self, bool flag)"""
4063 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4065 def SetCollate(*args
, **kwargs
):
4066 """SetCollate(self, bool flag)"""
4067 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4069 def SetPrintToFile(*args
, **kwargs
):
4070 """SetPrintToFile(self, bool flag)"""
4071 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4073 def EnablePrintToFile(*args
, **kwargs
):
4074 """EnablePrintToFile(self, bool flag)"""
4075 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4077 def EnableSelection(*args
, **kwargs
):
4078 """EnableSelection(self, bool flag)"""
4079 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4081 def EnablePageNumbers(*args
, **kwargs
):
4082 """EnablePageNumbers(self, bool flag)"""
4083 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4085 def EnableHelp(*args
, **kwargs
):
4086 """EnableHelp(self, bool flag)"""
4087 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4089 def GetEnablePrintToFile(*args
, **kwargs
):
4090 """GetEnablePrintToFile(self) -> bool"""
4091 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4093 def GetEnableSelection(*args
, **kwargs
):
4094 """GetEnableSelection(self) -> bool"""
4095 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4097 def GetEnablePageNumbers(*args
, **kwargs
):
4098 """GetEnablePageNumbers(self) -> bool"""
4099 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4101 def GetEnableHelp(*args
, **kwargs
):
4102 """GetEnableHelp(self) -> bool"""
4103 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4105 def Ok(*args
, **kwargs
):
4106 """Ok(self) -> bool"""
4107 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4109 def GetPrintData(*args
, **kwargs
):
4110 """GetPrintData(self) -> PrintData"""
4111 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4113 def SetPrintData(*args
, **kwargs
):
4114 """SetPrintData(self, PrintData printData)"""
4115 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4117 def __nonzero__(self
): return self
.Ok()
4118 PrintDialogData_swigregister
= _windows_
.PrintDialogData_swigregister
4119 PrintDialogData_swigregister(PrintDialogData
)
4121 class PrintDialog(_core
.Object
):
4122 """Proxy of C++ PrintDialog class"""
4123 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4124 __repr__
= _swig_repr
4125 def __init__(self
, *args
, **kwargs
):
4126 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4127 _windows_
.PrintDialog_swiginit(self
,_windows_
.new_PrintDialog(*args
, **kwargs
))
4128 def ShowModal(*args
, **kwargs
):
4129 """ShowModal(self) -> int"""
4130 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4132 def GetPrintDialogData(*args
, **kwargs
):
4133 """GetPrintDialogData(self) -> PrintDialogData"""
4134 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4136 def GetPrintData(*args
, **kwargs
):
4137 """GetPrintData(self) -> PrintData"""
4138 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4140 def GetPrintDC(*args
, **kwargs
):
4141 """GetPrintDC(self) -> DC"""
4142 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4144 PrintDialog_swigregister
= _windows_
.PrintDialog_swigregister
4145 PrintDialog_swigregister(PrintDialog
)
4147 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4148 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4149 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4150 class Printer(_core
.Object
):
4151 """Proxy of C++ Printer class"""
4152 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4153 __repr__
= _swig_repr
4154 def __init__(self
, *args
, **kwargs
):
4155 """__init__(self, PrintDialogData data=None) -> Printer"""
4156 _windows_
.Printer_swiginit(self
,_windows_
.new_Printer(*args
, **kwargs
))
4157 __swig_destroy__
= _windows_
.delete_Printer
4158 __del__
= lambda self
: None;
4159 def CreateAbortWindow(*args
, **kwargs
):
4160 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4161 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4163 def ReportError(*args
, **kwargs
):
4164 """ReportError(self, Window parent, Printout printout, String message)"""
4165 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4167 def Setup(*args
, **kwargs
):
4168 """Setup(self, Window parent) -> bool"""
4169 return _windows_
.Printer_Setup(*args
, **kwargs
)
4171 def Print(*args
, **kwargs
):
4172 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4173 return _windows_
.Printer_Print(*args
, **kwargs
)
4175 def PrintDialog(*args
, **kwargs
):
4176 """PrintDialog(self, Window parent) -> DC"""
4177 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4179 def GetPrintDialogData(*args
, **kwargs
):
4180 """GetPrintDialogData(self) -> PrintDialogData"""
4181 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4183 def GetAbort(*args
, **kwargs
):
4184 """GetAbort(self) -> bool"""
4185 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4187 def GetLastError(*args
, **kwargs
):
4188 """GetLastError() -> int"""
4189 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4191 GetLastError
= staticmethod(GetLastError
)
4192 Printer_swigregister
= _windows_
.Printer_swigregister
4193 Printer_swigregister(Printer
)
4195 def Printer_GetLastError(*args
):
4196 """Printer_GetLastError() -> int"""
4197 return _windows_
.Printer_GetLastError(*args
)
4199 class Printout(_core
.Object
):
4200 """Proxy of C++ Printout class"""
4201 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4202 __repr__
= _swig_repr
4203 def __init__(self
, *args
, **kwargs
):
4204 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4205 _windows_
.Printout_swiginit(self
,_windows_
.new_Printout(*args
, **kwargs
))
4206 self
._setCallbackInfo
(self
, Printout
)
4208 __swig_destroy__
= _windows_
.delete_Printout
4209 __del__
= lambda self
: None;
4210 def _setCallbackInfo(*args
, **kwargs
):
4211 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4212 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4214 def GetTitle(*args
, **kwargs
):
4215 """GetTitle(self) -> String"""
4216 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4218 def GetDC(*args
, **kwargs
):
4219 """GetDC(self) -> DC"""
4220 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4222 def SetDC(*args
, **kwargs
):
4223 """SetDC(self, DC dc)"""
4224 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4226 def SetPageSizePixels(*args
, **kwargs
):
4227 """SetPageSizePixels(self, int w, int h)"""
4228 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4230 def GetPageSizePixels(*args
, **kwargs
):
4231 """GetPageSizePixels() -> (w, h)"""
4232 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4234 def SetPageSizeMM(*args
, **kwargs
):
4235 """SetPageSizeMM(self, int w, int h)"""
4236 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4238 def GetPageSizeMM(*args
, **kwargs
):
4239 """GetPageSizeMM() -> (w, h)"""
4240 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4242 def SetPPIScreen(*args
, **kwargs
):
4243 """SetPPIScreen(self, int x, int y)"""
4244 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4246 def GetPPIScreen(*args
, **kwargs
):
4247 """GetPPIScreen() -> (x,y)"""
4248 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4250 def SetPPIPrinter(*args
, **kwargs
):
4251 """SetPPIPrinter(self, int x, int y)"""
4252 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4254 def GetPPIPrinter(*args
, **kwargs
):
4255 """GetPPIPrinter() -> (x,y)"""
4256 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4258 def IsPreview(*args
, **kwargs
):
4259 """IsPreview(self) -> bool"""
4260 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4262 def SetIsPreview(*args
, **kwargs
):
4263 """SetIsPreview(self, bool p)"""
4264 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4266 def OnBeginDocument(*args
, **kwargs
):
4267 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4268 return _windows_
.Printout_OnBeginDocument(*args
, **kwargs
)
4270 def OnEndDocument(*args
, **kwargs
):
4271 """OnEndDocument(self)"""
4272 return _windows_
.Printout_OnEndDocument(*args
, **kwargs
)
4274 def OnBeginPrinting(*args
, **kwargs
):
4275 """OnBeginPrinting(self)"""
4276 return _windows_
.Printout_OnBeginPrinting(*args
, **kwargs
)
4278 def OnEndPrinting(*args
, **kwargs
):
4279 """OnEndPrinting(self)"""
4280 return _windows_
.Printout_OnEndPrinting(*args
, **kwargs
)
4282 def OnPreparePrinting(*args
, **kwargs
):
4283 """OnPreparePrinting(self)"""
4284 return _windows_
.Printout_OnPreparePrinting(*args
, **kwargs
)
4286 def HasPage(*args
, **kwargs
):
4287 """HasPage(self, int page) -> bool"""
4288 return _windows_
.Printout_HasPage(*args
, **kwargs
)
4290 def GetPageInfo(*args
, **kwargs
):
4291 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4292 return _windows_
.Printout_GetPageInfo(*args
, **kwargs
)
4294 def base_OnBeginDocument(*args
, **kw
):
4295 return Printout
.OnBeginDocument(*args
, **kw
)
4296 base_OnBeginDocument
= wx
._deprecated
(base_OnBeginDocument
,
4297 "Please use Printout.OnBeginDocument instead.")
4299 def base_OnEndDocument(*args
, **kw
):
4300 return Printout
.OnEndDocument(*args
, **kw
)
4301 base_OnEndDocument
= wx
._deprecated
(base_OnEndDocument
,
4302 "Please use Printout.OnEndDocument instead.")
4304 def base_OnBeginPrinting(*args
, **kw
):
4305 return Printout
.OnBeginPrinting(*args
, **kw
)
4306 base_OnBeginPrinting
= wx
._deprecated
(base_OnBeginPrinting
,
4307 "Please use Printout.OnBeginPrinting instead.")
4309 def base_OnEndPrinting(*args
, **kw
):
4310 return Printout
.OnEndPrinting(*args
, **kw
)
4311 base_OnEndPrinting
= wx
._deprecated
(base_OnEndPrinting
,
4312 "Please use Printout.OnEndPrinting instead.")
4314 def base_OnPreparePrinting(*args
, **kw
):
4315 return Printout
.OnPreparePrinting(*args
, **kw
)
4316 base_OnPreparePrinting
= wx
._deprecated
(base_OnPreparePrinting
,
4317 "Please use Printout.OnPreparePrinting instead.")
4319 def base_GetPageInfo(*args
, **kw
):
4320 return Printout
.GetPageInfo(*args
, **kw
)
4321 base_GetPageInfo
= wx
._deprecated
(base_GetPageInfo
,
4322 "Please use Printout.GetPageInfo instead.")
4324 Printout_swigregister
= _windows_
.Printout_swigregister
4325 Printout_swigregister(Printout
)
4327 class PreviewCanvas(ScrolledWindow
):
4328 """Proxy of C++ PreviewCanvas class"""
4329 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4330 __repr__
= _swig_repr
4331 def __init__(self
, *args
, **kwargs
):
4333 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4334 Size size=DefaultSize, long style=0,
4335 String name=PreviewCanvasNameStr) -> PreviewCanvas
4337 _windows_
.PreviewCanvas_swiginit(self
,_windows_
.new_PreviewCanvas(*args
, **kwargs
))
4338 self
._setOORInfo
(self
)
4340 PreviewCanvas_swigregister
= _windows_
.PreviewCanvas_swigregister
4341 PreviewCanvas_swigregister(PreviewCanvas
)
4343 class PreviewFrame(Frame
):
4344 """Proxy of C++ PreviewFrame class"""
4345 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4346 __repr__
= _swig_repr
4347 def __init__(self
, *args
, **kwargs
):
4349 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4350 Size size=DefaultSize,
4351 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4353 _windows_
.PreviewFrame_swiginit(self
,_windows_
.new_PreviewFrame(*args
, **kwargs
))
4354 self
._setOORInfo
(self
)
4356 def Initialize(*args
, **kwargs
):
4357 """Initialize(self)"""
4358 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4360 def CreateControlBar(*args
, **kwargs
):
4361 """CreateControlBar(self)"""
4362 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4364 def CreateCanvas(*args
, **kwargs
):
4365 """CreateCanvas(self)"""
4366 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4368 def GetControlBar(*args
, **kwargs
):
4369 """GetControlBar(self) -> PreviewControlBar"""
4370 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4372 PreviewFrame_swigregister
= _windows_
.PreviewFrame_swigregister
4373 PreviewFrame_swigregister(PreviewFrame
)
4375 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4376 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4377 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4378 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4379 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4380 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4381 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4382 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4383 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4384 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4385 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4386 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4387 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4388 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4389 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4390 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4391 class PreviewControlBar(Panel
):
4392 """Proxy of C++ PreviewControlBar class"""
4393 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4394 __repr__
= _swig_repr
4395 def __init__(self
, *args
, **kwargs
):
4397 __init__(self, PrintPreview preview, long buttons, Window parent,
4398 Point pos=DefaultPosition, Size size=DefaultSize,
4399 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4401 _windows_
.PreviewControlBar_swiginit(self
,_windows_
.new_PreviewControlBar(*args
, **kwargs
))
4402 self
._setOORInfo
(self
)
4404 def GetZoomControl(*args
, **kwargs
):
4405 """GetZoomControl(self) -> int"""
4406 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4408 def SetZoomControl(*args
, **kwargs
):
4409 """SetZoomControl(self, int zoom)"""
4410 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4412 def GetPrintPreview(*args
, **kwargs
):
4413 """GetPrintPreview(self) -> PrintPreview"""
4414 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4416 def OnNext(*args
, **kwargs
):
4418 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4420 def OnPrevious(*args
, **kwargs
):
4421 """OnPrevious(self)"""
4422 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4424 def OnFirst(*args
, **kwargs
):
4426 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4428 def OnLast(*args
, **kwargs
):
4430 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4432 def OnGoto(*args
, **kwargs
):
4434 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4436 PreviewControlBar_swigregister
= _windows_
.PreviewControlBar_swigregister
4437 PreviewControlBar_swigregister(PreviewControlBar
)
4439 class PrintPreview(_core
.Object
):
4440 """Proxy of C++ PrintPreview class"""
4441 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4442 __repr__
= _swig_repr
4443 def __init__(self
, *args
):
4445 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4446 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4448 _windows_
.PrintPreview_swiginit(self
,_windows_
.new_PrintPreview(*args
))
4449 __swig_destroy__
= _windows_
.delete_PrintPreview
4450 __del__
= lambda self
: None;
4451 def SetCurrentPage(*args
, **kwargs
):
4452 """SetCurrentPage(self, int pageNum) -> bool"""
4453 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4455 def GetCurrentPage(*args
, **kwargs
):
4456 """GetCurrentPage(self) -> int"""
4457 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4459 def SetPrintout(*args
, **kwargs
):
4460 """SetPrintout(self, Printout printout)"""
4461 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4463 def GetPrintout(*args
, **kwargs
):
4464 """GetPrintout(self) -> Printout"""
4465 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4467 def GetPrintoutForPrinting(*args
, **kwargs
):
4468 """GetPrintoutForPrinting(self) -> Printout"""
4469 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4471 def SetFrame(*args
, **kwargs
):
4472 """SetFrame(self, Frame frame)"""
4473 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4475 def SetCanvas(*args
, **kwargs
):
4476 """SetCanvas(self, PreviewCanvas canvas)"""
4477 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4479 def GetFrame(*args
, **kwargs
):
4480 """GetFrame(self) -> Frame"""
4481 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4483 def GetCanvas(*args
, **kwargs
):
4484 """GetCanvas(self) -> PreviewCanvas"""
4485 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4487 def PaintPage(*args
, **kwargs
):
4488 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4489 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4491 def DrawBlankPage(*args
, **kwargs
):
4492 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4493 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4495 def RenderPage(*args
, **kwargs
):
4496 """RenderPage(self, int pageNum) -> bool"""
4497 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4499 def AdjustScrollbars(*args
, **kwargs
):
4500 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4501 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4503 def GetPrintDialogData(*args
, **kwargs
):
4504 """GetPrintDialogData(self) -> PrintDialogData"""
4505 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4507 def SetZoom(*args
, **kwargs
):
4508 """SetZoom(self, int percent)"""
4509 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4511 def GetZoom(*args
, **kwargs
):
4512 """GetZoom(self) -> int"""
4513 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4515 def GetMaxPage(*args
, **kwargs
):
4516 """GetMaxPage(self) -> int"""
4517 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4519 def GetMinPage(*args
, **kwargs
):
4520 """GetMinPage(self) -> int"""
4521 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4523 def Ok(*args
, **kwargs
):
4524 """Ok(self) -> bool"""
4525 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4527 def SetOk(*args
, **kwargs
):
4528 """SetOk(self, bool ok)"""
4529 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4531 def Print(*args
, **kwargs
):
4532 """Print(self, bool interactive) -> bool"""
4533 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4535 def DetermineScaling(*args
, **kwargs
):
4536 """DetermineScaling(self)"""
4537 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4539 def __nonzero__(self
): return self
.Ok()
4540 PrintPreview_swigregister
= _windows_
.PrintPreview_swigregister
4541 PrintPreview_swigregister(PrintPreview
)
4543 class PyPrintPreview(PrintPreview
):
4544 """Proxy of C++ PyPrintPreview class"""
4545 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4546 __repr__
= _swig_repr
4547 def __init__(self
, *args
):
4549 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4550 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4552 _windows_
.PyPrintPreview_swiginit(self
,_windows_
.new_PyPrintPreview(*args
))
4553 self
._setCallbackInfo
(self
, PyPrintPreview
)
4555 def _setCallbackInfo(*args
, **kwargs
):
4556 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4557 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4559 def base_SetCurrentPage(*args
, **kw
):
4560 return PyPrintPreview
.SetCurrentPage(*args
, **kw
)
4561 base_SetCurrentPage
= wx
._deprecated
(base_SetCurrentPage
,
4562 "Please use PyPrintPreview.SetCurrentPage instead.")
4564 def base_PaintPage(*args
, **kw
):
4565 return PyPrintPreview
.PaintPage(*args
, **kw
)
4566 base_PaintPage
= wx
._deprecated
(base_PaintPage
,
4567 "Please use PyPrintPreview.PaintPage instead.")
4569 def base_DrawBlankPage(*args
, **kw
):
4570 return PyPrintPreview
.DrawBlankPage(*args
, **kw
)
4571 base_DrawBlankPage
= wx
._deprecated
(base_DrawBlankPage
,
4572 "Please use PyPrintPreview.DrawBlankPage instead.")
4574 def base_RenderPage(*args
, **kw
):
4575 return PyPrintPreview
.RenderPage(*args
, **kw
)
4576 base_RenderPage
= wx
._deprecated
(base_RenderPage
,
4577 "Please use PyPrintPreview.RenderPage instead.")
4579 def base_SetZoom(*args
, **kw
):
4580 return PyPrintPreview
.SetZoom(*args
, **kw
)
4581 base_SetZoom
= wx
._deprecated
(base_SetZoom
,
4582 "Please use PyPrintPreview.SetZoom instead.")
4584 def base_Print(*args
, **kw
):
4585 return PyPrintPreview
.Print(*args
, **kw
)
4586 base_Print
= wx
._deprecated
(base_Print
,
4587 "Please use PyPrintPreview.Print instead.")
4589 def base_DetermineScaling(*args
, **kw
):
4590 return PyPrintPreview
.DetermineScaling(*args
, **kw
)
4591 base_DetermineScaling
= wx
._deprecated
(base_DetermineScaling
,
4592 "Please use PyPrintPreview.DetermineScaling instead.")
4594 PyPrintPreview_swigregister
= _windows_
.PyPrintPreview_swigregister
4595 PyPrintPreview_swigregister(PyPrintPreview
)
4597 class PyPreviewFrame(PreviewFrame
):
4598 """Proxy of C++ PyPreviewFrame class"""
4599 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4600 __repr__
= _swig_repr
4601 def __init__(self
, *args
, **kwargs
):
4603 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4604 Size size=DefaultSize,
4605 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4607 _windows_
.PyPreviewFrame_swiginit(self
,_windows_
.new_PyPreviewFrame(*args
, **kwargs
))
4608 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4610 def _setCallbackInfo(*args
, **kwargs
):
4611 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4612 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4614 def SetPreviewCanvas(*args
, **kwargs
):
4615 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4616 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4618 def SetControlBar(*args
, **kwargs
):
4619 """SetControlBar(self, PreviewControlBar bar)"""
4620 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4622 def Initialize(*args
, **kwargs
):
4623 """Initialize(self)"""
4624 return _windows_
.PyPreviewFrame_Initialize(*args
, **kwargs
)
4626 def CreateCanvas(*args
, **kwargs
):
4627 """CreateCanvas(self)"""
4628 return _windows_
.PyPreviewFrame_CreateCanvas(*args
, **kwargs
)
4630 def CreateControlBar(*args
, **kwargs
):
4631 """CreateControlBar(self)"""
4632 return _windows_
.PyPreviewFrame_CreateControlBar(*args
, **kwargs
)
4634 def base_Initialize(*args
, **kw
):
4635 return PyPreviewFrame
.Initialize(*args
, **kw
)
4636 base_Initialize
= wx
._deprecated
(base_Initialize
,
4637 "Please use PyPreviewFrame.Initialize instead.")
4639 def base_CreateCanvas(*args
, **kw
):
4640 return PyPreviewFrame
.CreateCanvas(*args
, **kw
)
4641 base_CreateCanvas
= wx
._deprecated
(base_CreateCanvas
,
4642 "Please use PyPreviewFrame.CreateCanvas instead.")
4644 def base_CreateControlBar(*args
, **kw
):
4645 return PyPreviewFrame
.CreateControlBar(*args
, **kw
)
4646 base_CreateControlBar
= wx
._deprecated
(base_CreateControlBar
,
4647 "Please use PyPreviewFrame.CreateControlBar instead.")
4649 PyPreviewFrame_swigregister
= _windows_
.PyPreviewFrame_swigregister
4650 PyPreviewFrame_swigregister(PyPreviewFrame
)
4652 class PyPreviewControlBar(PreviewControlBar
):
4653 """Proxy of C++ PyPreviewControlBar class"""
4654 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4655 __repr__
= _swig_repr
4656 def __init__(self
, *args
, **kwargs
):
4658 __init__(self, PrintPreview preview, long buttons, Window parent,
4659 Point pos=DefaultPosition, Size size=DefaultSize,
4660 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4662 _windows_
.PyPreviewControlBar_swiginit(self
,_windows_
.new_PyPreviewControlBar(*args
, **kwargs
))
4663 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4665 def _setCallbackInfo(*args
, **kwargs
):
4666 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4667 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4669 def SetPrintPreview(*args
, **kwargs
):
4670 """SetPrintPreview(self, PrintPreview preview)"""
4671 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4673 def CreateButtons(*args
, **kwargs
):
4674 """CreateButtons(self)"""
4675 return _windows_
.PyPreviewControlBar_CreateButtons(*args
, **kwargs
)
4677 def SetZoomControl(*args
, **kwargs
):
4678 """SetZoomControl(self, int zoom)"""
4679 return _windows_
.PyPreviewControlBar_SetZoomControl(*args
, **kwargs
)
4681 def base_CreateButtons(*args
, **kw
):
4682 return PreviewControlBar
.CreateButtons(*args
, **kw
)
4683 base_CreateButtons
= wx
._deprecated
(base_CreateButtons
,
4684 "Please use PreviewControlBar.CreateButtons instead.")
4686 def base_SetZoomControl(*args
, **kw
):
4687 return PreviewControlBar
.SetZoomControl(*args
, **kw
)
4688 base_SetZoomControl
= wx
._deprecated
(base_SetZoomControl
,
4689 "Please use PreviewControlBar.SetZoomControl instead.")
4691 PyPreviewControlBar_swigregister
= _windows_
.PyPreviewControlBar_swigregister
4692 PyPreviewControlBar_swigregister(PyPreviewControlBar
)