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 IsAlwaysMaximized(*args
, **kwargs
):
368 """IsAlwaysMaximized(self) -> bool"""
369 return _windows_
.TopLevelWindow_IsAlwaysMaximized(*args
, **kwargs
)
371 def IsIconized(*args
, **kwargs
):
372 """IsIconized(self) -> bool"""
373 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
375 def GetIcon(*args
, **kwargs
):
376 """GetIcon(self) -> Icon"""
377 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
379 def SetIcon(*args
, **kwargs
):
380 """SetIcon(self, Icon icon)"""
381 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
383 def SetIcons(*args
, **kwargs
):
384 """SetIcons(self, wxIconBundle icons)"""
385 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
387 def ShowFullScreen(*args
, **kwargs
):
388 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
389 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
391 def IsFullScreen(*args
, **kwargs
):
392 """IsFullScreen(self) -> bool"""
393 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
395 def SetTitle(*args
, **kwargs
):
396 """SetTitle(self, String title)"""
397 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
399 def GetTitle(*args
, **kwargs
):
400 """GetTitle(self) -> String"""
401 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
403 def SetShape(*args
, **kwargs
):
404 """SetShape(self, Region region) -> bool"""
405 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
407 def RequestUserAttention(*args
, **kwargs
):
408 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
409 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
411 def IsActive(*args
, **kwargs
):
412 """IsActive(self) -> bool"""
413 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
415 def MacSetMetalAppearance(*args
, **kwargs
):
416 """MacSetMetalAppearance(self, bool on)"""
417 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
419 def MacGetMetalAppearance(*args
, **kwargs
):
420 """MacGetMetalAppearance(self) -> bool"""
421 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
423 def CenterOnScreen(*args
, **kwargs
):
425 CenterOnScreen(self, int dir=BOTH)
427 Center the window on screen
429 return _windows_
.TopLevelWindow_CenterOnScreen(*args
, **kwargs
)
431 CentreOnScreen
= CenterOnScreen
432 TopLevelWindow_swigregister
= _windows_
.TopLevelWindow_swigregister
433 TopLevelWindow_swigregister(TopLevelWindow
)
434 cvar
= _windows_
.cvar
435 FrameNameStr
= cvar
.FrameNameStr
436 DialogNameStr
= cvar
.DialogNameStr
437 StatusLineNameStr
= cvar
.StatusLineNameStr
438 ToolBarNameStr
= cvar
.ToolBarNameStr
440 #---------------------------------------------------------------------------
442 class Frame(TopLevelWindow
):
443 """Proxy of C++ Frame class"""
444 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
445 __repr__
= _swig_repr
446 def __init__(self
, *args
, **kwargs
):
448 __init__(self, Window parent, int id=-1, String title=EmptyString,
449 Point pos=DefaultPosition, Size size=DefaultSize,
450 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
452 _windows_
.Frame_swiginit(self
,_windows_
.new_Frame(*args
, **kwargs
))
453 self
._setOORInfo
(self
)
455 def Create(*args
, **kwargs
):
457 Create(self, Window parent, int id=-1, String title=EmptyString,
458 Point pos=DefaultPosition, Size size=DefaultSize,
459 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
461 return _windows_
.Frame_Create(*args
, **kwargs
)
463 def SendSizeEvent(*args
, **kwargs
):
464 """SendSizeEvent(self)"""
465 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
467 def SetMenuBar(*args
, **kwargs
):
468 """SetMenuBar(self, MenuBar menubar)"""
469 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
471 def GetMenuBar(*args
, **kwargs
):
472 """GetMenuBar(self) -> MenuBar"""
473 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
475 def ProcessCommand(*args
, **kwargs
):
476 """ProcessCommand(self, int winid) -> bool"""
477 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
479 Command
= ProcessCommand
480 def CreateStatusBar(*args
, **kwargs
):
482 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
483 String name=StatusLineNameStr) -> StatusBar
485 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
487 def GetStatusBar(*args
, **kwargs
):
488 """GetStatusBar(self) -> StatusBar"""
489 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
491 def SetStatusBar(*args
, **kwargs
):
492 """SetStatusBar(self, StatusBar statBar)"""
493 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
495 def SetStatusText(*args
, **kwargs
):
496 """SetStatusText(self, String text, int number=0)"""
497 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
499 def SetStatusWidths(*args
, **kwargs
):
500 """SetStatusWidths(self, int widths)"""
501 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
503 def PushStatusText(*args
, **kwargs
):
504 """PushStatusText(self, String text, int number=0)"""
505 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
507 def PopStatusText(*args
, **kwargs
):
508 """PopStatusText(self, int number=0)"""
509 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
511 def SetStatusBarPane(*args
, **kwargs
):
512 """SetStatusBarPane(self, int n)"""
513 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
515 def GetStatusBarPane(*args
, **kwargs
):
516 """GetStatusBarPane(self) -> int"""
517 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
519 def CreateToolBar(*args
, **kwargs
):
520 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
521 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
523 def GetToolBar(*args
, **kwargs
):
524 """GetToolBar(self) -> wxToolBar"""
525 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
527 def SetToolBar(*args
, **kwargs
):
528 """SetToolBar(self, wxToolBar toolbar)"""
529 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
531 def DoGiveHelp(*args
, **kwargs
):
532 """DoGiveHelp(self, String text, bool show)"""
533 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
535 def DoMenuUpdates(*args
, **kwargs
):
536 """DoMenuUpdates(self, Menu menu=None)"""
537 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
539 def GetClassDefaultAttributes(*args
, **kwargs
):
541 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
543 Get the default attributes for this class. This is useful if you want
544 to use the same font or colour in your own control as in a standard
545 control -- which is a much better idea than hard coding specific
546 colours or fonts which might look completely out of place on the
547 user's system, especially if it uses themes.
549 The variant parameter is only relevant under Mac currently and is
550 ignore under other platforms. Under Mac, it will change the size of
551 the returned font. See `wx.Window.SetWindowVariant` for more about
554 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
556 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
557 Frame_swigregister
= _windows_
.Frame_swigregister
558 Frame_swigregister(Frame
)
560 def PreFrame(*args
, **kwargs
):
561 """PreFrame() -> Frame"""
562 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
565 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
567 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
569 Get the default attributes for this class. This is useful if you want
570 to use the same font or colour in your own control as in a standard
571 control -- which is a much better idea than hard coding specific
572 colours or fonts which might look completely out of place on the
573 user's system, especially if it uses themes.
575 The variant parameter is only relevant under Mac currently and is
576 ignore under other platforms. Under Mac, it will change the size of
577 the returned font. See `wx.Window.SetWindowVariant` for more about
580 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
582 #---------------------------------------------------------------------------
584 class Dialog(TopLevelWindow
):
585 """Proxy of C++ Dialog class"""
586 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
587 __repr__
= _swig_repr
588 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
589 def __init__(self
, *args
, **kwargs
):
591 __init__(self, Window parent, int id=-1, String title=EmptyString,
592 Point pos=DefaultPosition, Size size=DefaultSize,
593 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
595 _windows_
.Dialog_swiginit(self
,_windows_
.new_Dialog(*args
, **kwargs
))
596 self
._setOORInfo
(self
)
598 def Create(*args
, **kwargs
):
600 Create(self, Window parent, int id=-1, String title=EmptyString,
601 Point pos=DefaultPosition, Size size=DefaultSize,
602 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
604 return _windows_
.Dialog_Create(*args
, **kwargs
)
606 def SetReturnCode(*args
, **kwargs
):
607 """SetReturnCode(self, int returnCode)"""
608 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
610 def GetReturnCode(*args
, **kwargs
):
611 """GetReturnCode(self) -> int"""
612 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
614 def SetAffirmativeId(*args
, **kwargs
):
615 """SetAffirmativeId(self, int affirmativeId)"""
616 return _windows_
.Dialog_SetAffirmativeId(*args
, **kwargs
)
618 def GetAffirmativeId(*args
, **kwargs
):
619 """GetAffirmativeId(self) -> int"""
620 return _windows_
.Dialog_GetAffirmativeId(*args
, **kwargs
)
622 def SetEscapeId(*args
, **kwargs
):
623 """SetEscapeId(self, int escapeId)"""
624 return _windows_
.Dialog_SetEscapeId(*args
, **kwargs
)
626 def GetEscapeId(*args
, **kwargs
):
627 """GetEscapeId(self) -> int"""
628 return _windows_
.Dialog_GetEscapeId(*args
, **kwargs
)
630 def CreateTextSizer(*args
, **kwargs
):
631 """CreateTextSizer(self, String message) -> Sizer"""
632 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
634 def CreateButtonSizer(*args
, **kwargs
):
635 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
636 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
638 def CreateStdDialogButtonSizer(*args
, **kwargs
):
639 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
640 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
642 def IsModal(*args
, **kwargs
):
643 """IsModal(self) -> bool"""
644 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
646 def ShowModal(*args
, **kwargs
):
647 """ShowModal(self) -> int"""
648 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
650 def EndModal(*args
, **kwargs
):
651 """EndModal(self, int retCode)"""
652 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
654 def GetClassDefaultAttributes(*args
, **kwargs
):
656 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
658 Get the default attributes for this class. This is useful if you want
659 to use the same font or colour in your own control as in a standard
660 control -- which is a much better idea than hard coding specific
661 colours or fonts which might look completely out of place on the
662 user's system, especially if it uses themes.
664 The variant parameter is only relevant under Mac currently and is
665 ignore under other platforms. Under Mac, it will change the size of
666 the returned font. See `wx.Window.SetWindowVariant` for more about
669 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
671 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
672 Dialog_swigregister
= _windows_
.Dialog_swigregister
673 Dialog_swigregister(Dialog
)
675 def PreDialog(*args
, **kwargs
):
676 """PreDialog() -> Dialog"""
677 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
680 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
682 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
684 Get the default attributes for this class. This is useful if you want
685 to use the same font or colour in your own control as in a standard
686 control -- which is a much better idea than hard coding specific
687 colours or fonts which might look completely out of place on the
688 user's system, especially if it uses themes.
690 The variant parameter is only relevant under Mac currently and is
691 ignore under other platforms. Under Mac, it will change the size of
692 the returned font. See `wx.Window.SetWindowVariant` for more about
695 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
697 #---------------------------------------------------------------------------
699 class MiniFrame(Frame
):
700 """Proxy of C++ MiniFrame class"""
701 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
702 __repr__
= _swig_repr
703 def __init__(self
, *args
, **kwargs
):
705 __init__(self, Window parent, int id=-1, String title=EmptyString,
706 Point pos=DefaultPosition, Size size=DefaultSize,
707 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
709 _windows_
.MiniFrame_swiginit(self
,_windows_
.new_MiniFrame(*args
, **kwargs
))
710 self
._setOORInfo
(self
)
712 def Create(*args
, **kwargs
):
714 Create(self, Window parent, int id=-1, String title=EmptyString,
715 Point pos=DefaultPosition, Size size=DefaultSize,
716 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
718 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
720 MiniFrame_swigregister
= _windows_
.MiniFrame_swigregister
721 MiniFrame_swigregister(MiniFrame
)
723 def PreMiniFrame(*args
, **kwargs
):
724 """PreMiniFrame() -> MiniFrame"""
725 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
728 #---------------------------------------------------------------------------
730 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
731 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
732 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
733 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
734 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
735 class SplashScreenWindow(_core
.Window
):
736 """Proxy of C++ SplashScreenWindow class"""
737 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
738 __repr__
= _swig_repr
739 def __init__(self
, *args
, **kwargs
):
741 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
742 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
744 _windows_
.SplashScreenWindow_swiginit(self
,_windows_
.new_SplashScreenWindow(*args
, **kwargs
))
745 self
._setOORInfo
(self
)
747 def SetBitmap(*args
, **kwargs
):
748 """SetBitmap(self, Bitmap bitmap)"""
749 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
751 def GetBitmap(*args
, **kwargs
):
752 """GetBitmap(self) -> Bitmap"""
753 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
755 SplashScreenWindow_swigregister
= _windows_
.SplashScreenWindow_swigregister
756 SplashScreenWindow_swigregister(SplashScreenWindow
)
758 class SplashScreen(Frame
):
759 """Proxy of C++ SplashScreen class"""
760 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
761 __repr__
= _swig_repr
762 def __init__(self
, *args
, **kwargs
):
764 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
765 Window parent, int id=-1, Point pos=DefaultPosition,
766 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
768 _windows_
.SplashScreen_swiginit(self
,_windows_
.new_SplashScreen(*args
, **kwargs
))
769 self
._setOORInfo
(self
)
771 def GetSplashStyle(*args
, **kwargs
):
772 """GetSplashStyle(self) -> long"""
773 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
775 def GetSplashWindow(*args
, **kwargs
):
776 """GetSplashWindow(self) -> SplashScreenWindow"""
777 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
779 def GetTimeout(*args
, **kwargs
):
780 """GetTimeout(self) -> int"""
781 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
783 SplashScreen_swigregister
= _windows_
.SplashScreen_swigregister
784 SplashScreen_swigregister(SplashScreen
)
786 #---------------------------------------------------------------------------
788 SB_NORMAL
= _windows_
.SB_NORMAL
789 SB_FLAT
= _windows_
.SB_FLAT
790 SB_RAISED
= _windows_
.SB_RAISED
791 class StatusBar(_core
.Window
):
792 """Proxy of C++ StatusBar class"""
793 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
794 __repr__
= _swig_repr
795 def __init__(self
, *args
, **kwargs
):
797 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
798 String name=StatusLineNameStr) -> StatusBar
800 _windows_
.StatusBar_swiginit(self
,_windows_
.new_StatusBar(*args
, **kwargs
))
801 self
._setOORInfo
(self
)
803 def Create(*args
, **kwargs
):
804 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
805 return _windows_
.StatusBar_Create(*args
, **kwargs
)
807 def SetFieldsCount(*args
, **kwargs
):
808 """SetFieldsCount(self, int number=1)"""
809 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
811 def GetFieldsCount(*args
, **kwargs
):
812 """GetFieldsCount(self) -> int"""
813 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
815 def SetStatusText(*args
, **kwargs
):
816 """SetStatusText(self, String text, int number=0)"""
817 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
819 def GetStatusText(*args
, **kwargs
):
820 """GetStatusText(self, int number=0) -> String"""
821 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
823 def PushStatusText(*args
, **kwargs
):
824 """PushStatusText(self, String text, int number=0)"""
825 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
827 def PopStatusText(*args
, **kwargs
):
828 """PopStatusText(self, int number=0)"""
829 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
831 def SetStatusWidths(*args
, **kwargs
):
832 """SetStatusWidths(self, int widths)"""
833 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
835 def SetStatusStyles(*args
, **kwargs
):
836 """SetStatusStyles(self, int styles)"""
837 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
839 def GetFieldRect(*args
, **kwargs
):
840 """GetFieldRect(self, int i) -> Rect"""
841 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
843 def SetMinHeight(*args
, **kwargs
):
844 """SetMinHeight(self, int height)"""
845 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
847 def GetBorderX(*args
, **kwargs
):
848 """GetBorderX(self) -> int"""
849 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
851 def GetBorderY(*args
, **kwargs
):
852 """GetBorderY(self) -> int"""
853 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
855 def GetClassDefaultAttributes(*args
, **kwargs
):
857 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
859 Get the default attributes for this class. This is useful if you want
860 to use the same font or colour in your own control as in a standard
861 control -- which is a much better idea than hard coding specific
862 colours or fonts which might look completely out of place on the
863 user's system, especially if it uses themes.
865 The variant parameter is only relevant under Mac currently and is
866 ignore under other platforms. Under Mac, it will change the size of
867 the returned font. See `wx.Window.SetWindowVariant` for more about
870 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
872 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
873 StatusBar_swigregister
= _windows_
.StatusBar_swigregister
874 StatusBar_swigregister(StatusBar
)
876 def PreStatusBar(*args
, **kwargs
):
877 """PreStatusBar() -> StatusBar"""
878 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
881 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
883 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
885 Get the default attributes for this class. This is useful if you want
886 to use the same font or colour in your own control as in a standard
887 control -- which is a much better idea than hard coding specific
888 colours or fonts which might look completely out of place on the
889 user's system, especially if it uses themes.
891 The variant parameter is only relevant under Mac currently and is
892 ignore under other platforms. Under Mac, it will change the size of
893 the returned font. See `wx.Window.SetWindowVariant` for more about
896 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
898 #---------------------------------------------------------------------------
900 SP_NOBORDER
= _windows_
.SP_NOBORDER
901 SP_NOSASH
= _windows_
.SP_NOSASH
902 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
903 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
904 SP_3DSASH
= _windows_
.SP_3DSASH
905 SP_3DBORDER
= _windows_
.SP_3DBORDER
906 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
907 SP_BORDER
= _windows_
.SP_BORDER
908 SP_3D
= _windows_
.SP_3D
909 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
910 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
911 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
912 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
913 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
914 class SplitterWindow(_core
.Window
):
916 wx.SplitterWindow manages up to two subwindows or panes, with an
917 optional vertical or horizontal split which can be used with the mouse
920 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
921 __repr__
= _swig_repr
922 def __init__(self
, *args
, **kwargs
):
924 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
925 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
927 Constructor. Creates and shows a SplitterWindow.
929 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
930 _windows_
.SplitterWindow_swiginit(self
,_windows_
.new_SplitterWindow(*args
, **kwargs
))
931 self
._setOORInfo
(self
)
933 def Create(*args
, **kwargs
):
935 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
936 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
938 Create the GUI part of the SplitterWindow for the 2-phase create.
940 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
942 def GetWindow1(*args
, **kwargs
):
944 GetWindow1(self) -> Window
946 Gets the only or left/top pane.
948 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
950 def GetWindow2(*args
, **kwargs
):
952 GetWindow2(self) -> Window
954 Gets the right/bottom pane.
956 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
958 def SetSplitMode(*args
, **kwargs
):
960 SetSplitMode(self, int mode)
962 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
963 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
966 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
968 def GetSplitMode(*args
, **kwargs
):
970 GetSplitMode(self) -> int
974 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
976 def Initialize(*args
, **kwargs
):
978 Initialize(self, Window window)
980 Initializes the splitter window to have one pane. This should be
981 called if you wish to initially view only a single pane in the
982 splitter window. The child window is shown if it is currently hidden.
984 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
986 def SplitVertically(*args
, **kwargs
):
988 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
990 Initializes the left and right panes of the splitter window. The
991 child windows are shown if they are currently hidden.
993 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
995 def SplitHorizontally(*args
, **kwargs
):
997 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
999 Initializes the top and bottom panes of the splitter window. The
1000 child windows are shown if they are currently hidden.
1002 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1004 def Unsplit(*args
, **kwargs
):
1006 Unsplit(self, Window toRemove=None) -> bool
1008 Unsplits the window. Pass the pane to remove, or None to remove the
1009 right or bottom pane. Returns True if successful, False otherwise (the
1010 window was not split).
1012 This function will not actually delete the pane being
1013 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1014 for the desired behaviour. By default, the pane being
1015 removed is only hidden.
1017 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1019 def ReplaceWindow(*args
, **kwargs
):
1021 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1023 This function replaces one of the windows managed by the
1024 SplitterWindow with another one. It is in general better to use it
1025 instead of calling Unsplit() and then resplitting the window back
1026 because it will provoke much less flicker. It is valid to call this
1027 function whether the splitter has two windows or only one.
1029 Both parameters should be non-None and winOld must specify one of the
1030 windows managed by the splitter. If the parameters are incorrect or
1031 the window couldn't be replaced, False is returned. Otherwise the
1032 function will return True, but please notice that it will not Destroy
1033 the replaced window and you may wish to do it yourself.
1035 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1037 def UpdateSize(*args
, **kwargs
):
1041 Causes any pending sizing of the sash and child panes to take place
1044 Such resizing normally takes place in idle time, in order to wait for
1045 layout to be completed. However, this can cause unacceptable flicker
1046 as the panes are resized after the window has been shown. To work
1047 around this, you can perform window layout (for example by sending a
1048 size event to the parent window), and then call this function, before
1049 showing the top-level window.
1051 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1053 def IsSplit(*args
, **kwargs
):
1055 IsSplit(self) -> bool
1057 Is the window split?
1059 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1061 def SetSashSize(*args
, **kwargs
):
1063 SetSashSize(self, int width)
1067 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1069 def SetBorderSize(*args
, **kwargs
):
1071 SetBorderSize(self, int width)
1073 Sets the border size. Currently a NOP.
1075 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1077 def GetSashSize(*args
, **kwargs
):
1079 GetSashSize(self) -> int
1083 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1085 def GetBorderSize(*args
, **kwargs
):
1087 GetBorderSize(self) -> int
1089 Gets the border size
1091 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1093 def SetSashPosition(*args
, **kwargs
):
1095 SetSashPosition(self, int position, bool redraw=True)
1097 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1098 are resized and the sash and border are redrawn.
1100 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1102 def GetSashPosition(*args
, **kwargs
):
1104 GetSashPosition(self) -> int
1106 Returns the surrent sash position.
1108 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1110 def SetSashGravity(*args
, **kwargs
):
1112 SetSashGravity(self, double gravity)
1114 Set the sash gravity. Gravity is a floating-point factor between 0.0
1115 and 1.0 which controls position of sash while resizing the
1116 `wx.SplitterWindow`. The gravity specifies how much the left/top
1117 window will grow while resizing.
1119 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1121 def GetSashGravity(*args
, **kwargs
):
1123 GetSashGravity(self) -> double
1125 Gets the sash gravity.
1127 :see: `SetSashGravity`
1130 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1132 def SetMinimumPaneSize(*args
, **kwargs
):
1134 SetMinimumPaneSize(self, int min)
1136 Sets the minimum pane size in pixels.
1138 The default minimum pane size is zero, which means that either pane
1139 can be reduced to zero by dragging the sash, thus removing one of the
1140 panes. To prevent this behaviour (and veto out-of-range sash
1141 dragging), set a minimum size, for example 20 pixels. If the
1142 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1143 the window may be unsplit even if minimum size is non-zero.
1145 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1147 def GetMinimumPaneSize(*args
, **kwargs
):
1149 GetMinimumPaneSize(self) -> int
1151 Gets the minimum pane size in pixels.
1153 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1155 def SashHitTest(*args
, **kwargs
):
1157 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1159 Tests for x, y over the sash
1161 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1163 def SizeWindows(*args
, **kwargs
):
1169 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1171 def SetNeedUpdating(*args
, **kwargs
):
1172 """SetNeedUpdating(self, bool needUpdating)"""
1173 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1175 def GetNeedUpdating(*args
, **kwargs
):
1176 """GetNeedUpdating(self) -> bool"""
1177 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1179 def GetClassDefaultAttributes(*args
, **kwargs
):
1181 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1183 Get the default attributes for this class. This is useful if you want
1184 to use the same font or colour in your own control as in a standard
1185 control -- which is a much better idea than hard coding specific
1186 colours or fonts which might look completely out of place on the
1187 user's system, especially if it uses themes.
1189 The variant parameter is only relevant under Mac currently and is
1190 ignore under other platforms. Under Mac, it will change the size of
1191 the returned font. See `wx.Window.SetWindowVariant` for more about
1194 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1196 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1197 SplitterWindow_swigregister
= _windows_
.SplitterWindow_swigregister
1198 SplitterWindow_swigregister(SplitterWindow
)
1199 SplitterNameStr
= cvar
.SplitterNameStr
1201 def PreSplitterWindow(*args
, **kwargs
):
1203 PreSplitterWindow() -> SplitterWindow
1205 Precreate a SplitterWindow for 2-phase creation.
1207 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1210 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1212 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1214 Get the default attributes for this class. This is useful if you want
1215 to use the same font or colour in your own control as in a standard
1216 control -- which is a much better idea than hard coding specific
1217 colours or fonts which might look completely out of place on the
1218 user's system, especially if it uses themes.
1220 The variant parameter is only relevant under Mac currently and is
1221 ignore under other platforms. Under Mac, it will change the size of
1222 the returned font. See `wx.Window.SetWindowVariant` for more about
1225 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1227 class SplitterEvent(_core
.NotifyEvent
):
1228 """This class represents the events generated by a splitter control."""
1229 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1230 __repr__
= _swig_repr
1231 def __init__(self
, *args
, **kwargs
):
1233 __init__(self, EventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1235 This class represents the events generated by a splitter control.
1237 _windows_
.SplitterEvent_swiginit(self
,_windows_
.new_SplitterEvent(*args
, **kwargs
))
1238 def SetSashPosition(*args
, **kwargs
):
1240 SetSashPosition(self, int pos)
1242 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1243 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1244 events, sets the the new sash position. In the case of _CHANGING
1245 events, sets the new tracking bar position so visual feedback during
1246 dragging will represent that change that will actually take place. Set
1247 to -1 from the event handler code to prevent repositioning.
1249 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1251 def GetSashPosition(*args
, **kwargs
):
1253 GetSashPosition(self) -> int
1255 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1256 and EVT_SPLITTER_SASH_POS_CHANGED events.
1258 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1260 def GetWindowBeingRemoved(*args
, **kwargs
):
1262 GetWindowBeingRemoved(self) -> Window
1264 Returns a pointer to the window being removed when a splitter window
1267 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1269 def GetX(*args
, **kwargs
):
1273 Returns the x coordinate of the double-click point in a
1274 EVT_SPLITTER_DCLICK event.
1276 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1278 def GetY(*args
, **kwargs
):
1282 Returns the y coordinate of the double-click point in a
1283 EVT_SPLITTER_DCLICK event.
1285 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1287 SplitterEvent_swigregister
= _windows_
.SplitterEvent_swigregister
1288 SplitterEvent_swigregister(SplitterEvent
)
1290 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1291 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1292 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1293 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1294 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1295 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1296 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1297 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1298 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1300 #---------------------------------------------------------------------------
1302 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1303 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1304 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1305 SW_NOBORDER
= _windows_
.SW_NOBORDER
1306 SW_BORDER
= _windows_
.SW_BORDER
1307 SW_3DSASH
= _windows_
.SW_3DSASH
1308 SW_3DBORDER
= _windows_
.SW_3DBORDER
1309 SW_3D
= _windows_
.SW_3D
1310 SASH_TOP
= _windows_
.SASH_TOP
1311 SASH_RIGHT
= _windows_
.SASH_RIGHT
1312 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1313 SASH_LEFT
= _windows_
.SASH_LEFT
1314 SASH_NONE
= _windows_
.SASH_NONE
1315 class SashWindow(_core
.Window
):
1316 """Proxy of C++ SashWindow class"""
1317 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1318 __repr__
= _swig_repr
1319 def __init__(self
, *args
, **kwargs
):
1321 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1322 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1323 String name=SashNameStr) -> SashWindow
1325 _windows_
.SashWindow_swiginit(self
,_windows_
.new_SashWindow(*args
, **kwargs
))
1326 self
._setOORInfo
(self
)
1328 def Create(*args
, **kwargs
):
1330 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1331 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1332 String name=SashNameStr) -> bool
1334 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1336 def SetSashVisible(*args
, **kwargs
):
1337 """SetSashVisible(self, int edge, bool sash)"""
1338 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1340 def GetSashVisible(*args
, **kwargs
):
1341 """GetSashVisible(self, int edge) -> bool"""
1342 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1344 def SetSashBorder(*args
, **kwargs
):
1345 """SetSashBorder(self, int edge, bool border)"""
1346 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1348 def HasBorder(*args
, **kwargs
):
1349 """HasBorder(self, int edge) -> bool"""
1350 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1352 def GetEdgeMargin(*args
, **kwargs
):
1353 """GetEdgeMargin(self, int edge) -> int"""
1354 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1356 def SetDefaultBorderSize(*args
, **kwargs
):
1357 """SetDefaultBorderSize(self, int width)"""
1358 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1360 def GetDefaultBorderSize(*args
, **kwargs
):
1361 """GetDefaultBorderSize(self) -> int"""
1362 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1364 def SetExtraBorderSize(*args
, **kwargs
):
1365 """SetExtraBorderSize(self, int width)"""
1366 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1368 def GetExtraBorderSize(*args
, **kwargs
):
1369 """GetExtraBorderSize(self) -> int"""
1370 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1372 def SetMinimumSizeX(*args
, **kwargs
):
1373 """SetMinimumSizeX(self, int min)"""
1374 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1376 def SetMinimumSizeY(*args
, **kwargs
):
1377 """SetMinimumSizeY(self, int min)"""
1378 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1380 def GetMinimumSizeX(*args
, **kwargs
):
1381 """GetMinimumSizeX(self) -> int"""
1382 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1384 def GetMinimumSizeY(*args
, **kwargs
):
1385 """GetMinimumSizeY(self) -> int"""
1386 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1388 def SetMaximumSizeX(*args
, **kwargs
):
1389 """SetMaximumSizeX(self, int max)"""
1390 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1392 def SetMaximumSizeY(*args
, **kwargs
):
1393 """SetMaximumSizeY(self, int max)"""
1394 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1396 def GetMaximumSizeX(*args
, **kwargs
):
1397 """GetMaximumSizeX(self) -> int"""
1398 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1400 def GetMaximumSizeY(*args
, **kwargs
):
1401 """GetMaximumSizeY(self) -> int"""
1402 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1404 def SashHitTest(*args
, **kwargs
):
1405 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1406 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1408 def SizeWindows(*args
, **kwargs
):
1409 """SizeWindows(self)"""
1410 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1412 SashWindow_swigregister
= _windows_
.SashWindow_swigregister
1413 SashWindow_swigregister(SashWindow
)
1414 SashNameStr
= cvar
.SashNameStr
1415 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1417 def PreSashWindow(*args
, **kwargs
):
1418 """PreSashWindow() -> SashWindow"""
1419 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1422 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1423 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1424 class SashEvent(_core
.CommandEvent
):
1425 """Proxy of C++ SashEvent class"""
1426 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1427 __repr__
= _swig_repr
1428 def __init__(self
, *args
, **kwargs
):
1429 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1430 _windows_
.SashEvent_swiginit(self
,_windows_
.new_SashEvent(*args
, **kwargs
))
1431 def SetEdge(*args
, **kwargs
):
1432 """SetEdge(self, int edge)"""
1433 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1435 def GetEdge(*args
, **kwargs
):
1436 """GetEdge(self) -> int"""
1437 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1439 def SetDragRect(*args
, **kwargs
):
1440 """SetDragRect(self, Rect rect)"""
1441 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1443 def GetDragRect(*args
, **kwargs
):
1444 """GetDragRect(self) -> Rect"""
1445 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1447 def SetDragStatus(*args
, **kwargs
):
1448 """SetDragStatus(self, int status)"""
1449 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1451 def GetDragStatus(*args
, **kwargs
):
1452 """GetDragStatus(self) -> int"""
1453 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1455 SashEvent_swigregister
= _windows_
.SashEvent_swigregister
1456 SashEvent_swigregister(SashEvent
)
1458 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1459 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1460 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1462 #---------------------------------------------------------------------------
1464 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1465 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1466 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1467 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1468 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1469 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1470 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1471 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1472 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1473 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1474 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1475 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1476 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1477 class QueryLayoutInfoEvent(_core
.Event
):
1478 """Proxy of C++ QueryLayoutInfoEvent class"""
1479 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1480 __repr__
= _swig_repr
1481 def __init__(self
, *args
, **kwargs
):
1482 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1483 _windows_
.QueryLayoutInfoEvent_swiginit(self
,_windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
))
1484 def SetRequestedLength(*args
, **kwargs
):
1485 """SetRequestedLength(self, int length)"""
1486 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1488 def GetRequestedLength(*args
, **kwargs
):
1489 """GetRequestedLength(self) -> int"""
1490 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1492 def SetFlags(*args
, **kwargs
):
1493 """SetFlags(self, int flags)"""
1494 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1496 def GetFlags(*args
, **kwargs
):
1497 """GetFlags(self) -> int"""
1498 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1500 def SetSize(*args
, **kwargs
):
1501 """SetSize(self, Size size)"""
1502 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1504 def GetSize(*args
, **kwargs
):
1505 """GetSize(self) -> Size"""
1506 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1508 def SetOrientation(*args
, **kwargs
):
1509 """SetOrientation(self, int orient)"""
1510 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1512 def GetOrientation(*args
, **kwargs
):
1513 """GetOrientation(self) -> int"""
1514 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1516 def SetAlignment(*args
, **kwargs
):
1517 """SetAlignment(self, int align)"""
1518 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1520 def GetAlignment(*args
, **kwargs
):
1521 """GetAlignment(self) -> int"""
1522 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1524 QueryLayoutInfoEvent_swigregister
= _windows_
.QueryLayoutInfoEvent_swigregister
1525 QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent
)
1527 class CalculateLayoutEvent(_core
.Event
):
1528 """Proxy of C++ CalculateLayoutEvent class"""
1529 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1530 __repr__
= _swig_repr
1531 def __init__(self
, *args
, **kwargs
):
1532 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1533 _windows_
.CalculateLayoutEvent_swiginit(self
,_windows_
.new_CalculateLayoutEvent(*args
, **kwargs
))
1534 def SetFlags(*args
, **kwargs
):
1535 """SetFlags(self, int flags)"""
1536 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1538 def GetFlags(*args
, **kwargs
):
1539 """GetFlags(self) -> int"""
1540 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1542 def SetRect(*args
, **kwargs
):
1543 """SetRect(self, Rect rect)"""
1544 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1546 def GetRect(*args
, **kwargs
):
1547 """GetRect(self) -> Rect"""
1548 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1550 CalculateLayoutEvent_swigregister
= _windows_
.CalculateLayoutEvent_swigregister
1551 CalculateLayoutEvent_swigregister(CalculateLayoutEvent
)
1553 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1554 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1556 class SashLayoutWindow(SashWindow
):
1557 """Proxy of C++ SashLayoutWindow class"""
1558 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1559 __repr__
= _swig_repr
1560 def __init__(self
, *args
, **kwargs
):
1562 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1563 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1564 String name=SashLayoutNameStr) -> SashLayoutWindow
1566 _windows_
.SashLayoutWindow_swiginit(self
,_windows_
.new_SashLayoutWindow(*args
, **kwargs
))
1567 self
._setOORInfo
(self
)
1569 def Create(*args
, **kwargs
):
1571 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1572 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1573 String name=SashLayoutNameStr) -> bool
1575 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1577 def GetAlignment(*args
, **kwargs
):
1578 """GetAlignment(self) -> int"""
1579 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1581 def GetOrientation(*args
, **kwargs
):
1582 """GetOrientation(self) -> int"""
1583 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1585 def SetAlignment(*args
, **kwargs
):
1586 """SetAlignment(self, int alignment)"""
1587 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1589 def SetDefaultSize(*args
, **kwargs
):
1590 """SetDefaultSize(self, Size size)"""
1591 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1593 def SetOrientation(*args
, **kwargs
):
1594 """SetOrientation(self, int orientation)"""
1595 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1597 SashLayoutWindow_swigregister
= _windows_
.SashLayoutWindow_swigregister
1598 SashLayoutWindow_swigregister(SashLayoutWindow
)
1600 def PreSashLayoutWindow(*args
, **kwargs
):
1601 """PreSashLayoutWindow() -> SashLayoutWindow"""
1602 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1605 class LayoutAlgorithm(_core
.Object
):
1606 """Proxy of C++ LayoutAlgorithm class"""
1607 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1608 __repr__
= _swig_repr
1609 def __init__(self
, *args
, **kwargs
):
1610 """__init__(self) -> LayoutAlgorithm"""
1611 _windows_
.LayoutAlgorithm_swiginit(self
,_windows_
.new_LayoutAlgorithm(*args
, **kwargs
))
1612 __swig_destroy__
= _windows_
.delete_LayoutAlgorithm
1613 __del__
= lambda self
: None;
1614 def LayoutMDIFrame(*args
, **kwargs
):
1615 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1616 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1618 def LayoutFrame(*args
, **kwargs
):
1619 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1620 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1622 def LayoutWindow(*args
, **kwargs
):
1623 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1624 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1626 LayoutAlgorithm_swigregister
= _windows_
.LayoutAlgorithm_swigregister
1627 LayoutAlgorithm_swigregister(LayoutAlgorithm
)
1629 #---------------------------------------------------------------------------
1631 class PopupWindow(_core
.Window
):
1632 """Proxy of C++ PopupWindow class"""
1633 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1634 __repr__
= _swig_repr
1635 def __init__(self
, *args
, **kwargs
):
1636 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1637 _windows_
.PopupWindow_swiginit(self
,_windows_
.new_PopupWindow(*args
, **kwargs
))
1638 self
._setOORInfo
(self
)
1640 def Create(*args
, **kwargs
):
1641 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1642 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1644 def Position(*args
, **kwargs
):
1645 """Position(self, Point ptOrigin, Size size)"""
1646 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1648 PopupWindow_swigregister
= _windows_
.PopupWindow_swigregister
1649 PopupWindow_swigregister(PopupWindow
)
1651 def PrePopupWindow(*args
, **kwargs
):
1652 """PrePopupWindow() -> PopupWindow"""
1653 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1656 #---------------------------------------------------------------------------
1658 class PopupTransientWindow(PopupWindow
):
1659 """Proxy of C++ PopupTransientWindow class"""
1660 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1661 __repr__
= _swig_repr
1662 def __init__(self
, *args
, **kwargs
):
1663 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1664 _windows_
.PopupTransientWindow_swiginit(self
,_windows_
.new_PopupTransientWindow(*args
, **kwargs
))
1665 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1667 def _setCallbackInfo(*args
, **kwargs
):
1668 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1669 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1671 def Popup(*args
, **kwargs
):
1672 """Popup(self, Window focus=None)"""
1673 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1675 def Dismiss(*args
, **kwargs
):
1677 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1679 PopupTransientWindow_swigregister
= _windows_
.PopupTransientWindow_swigregister
1680 PopupTransientWindow_swigregister(PopupTransientWindow
)
1682 def PrePopupTransientWindow(*args
, **kwargs
):
1683 """PrePopupTransientWindow() -> PopupTransientWindow"""
1684 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1687 #---------------------------------------------------------------------------
1689 class TipWindow(PopupTransientWindow
):
1690 """Proxy of C++ TipWindow class"""
1691 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1692 __repr__
= _swig_repr
1693 def __init__(self
, *args
, **kwargs
):
1694 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1695 _windows_
.TipWindow_swiginit(self
,_windows_
.new_TipWindow(*args
, **kwargs
))
1696 self
._setOORInfo
(self
)
1698 def SetBoundingRect(*args
, **kwargs
):
1699 """SetBoundingRect(self, Rect rectBound)"""
1700 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1702 def Close(*args
, **kwargs
):
1706 This function simply generates a EVT_CLOSE event whose handler usually
1707 tries to close the window. It doesn't close the window itself,
1708 however. If force is False (the default) then the window's close
1709 handler will be allowed to veto the destruction of the window.
1711 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1713 TipWindow_swigregister
= _windows_
.TipWindow_swigregister
1714 TipWindow_swigregister(TipWindow
)
1716 #---------------------------------------------------------------------------
1718 class VScrolledWindow(Panel
):
1719 """Proxy of C++ VScrolledWindow class"""
1720 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1721 __repr__
= _swig_repr
1722 def __init__(self
, *args
, **kwargs
):
1724 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1725 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1727 _windows_
.VScrolledWindow_swiginit(self
,_windows_
.new_VScrolledWindow(*args
, **kwargs
))
1728 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1730 def _setCallbackInfo(*args
, **kwargs
):
1731 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1732 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1734 def Create(*args
, **kwargs
):
1736 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1737 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1739 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1741 def SetLineCount(*args
, **kwargs
):
1742 """SetLineCount(self, size_t count)"""
1743 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1745 def ScrollToLine(*args
, **kwargs
):
1746 """ScrollToLine(self, size_t line) -> bool"""
1747 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1749 def RefreshLine(*args
, **kwargs
):
1750 """RefreshLine(self, size_t line)"""
1751 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1753 def RefreshLines(*args
, **kwargs
):
1754 """RefreshLines(self, size_t from, size_t to)"""
1755 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1757 def HitTestXY(*args
, **kwargs
):
1759 HitTestXY(self, int x, int y) -> int
1761 Test where the given (in client coords) point lies
1763 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1765 def HitTest(*args
, **kwargs
):
1767 HitTest(self, Point pt) -> int
1769 Test where the given (in client coords) point lies
1771 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1773 def RefreshAll(*args
, **kwargs
):
1774 """RefreshAll(self)"""
1775 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1777 def GetLineCount(*args
, **kwargs
):
1778 """GetLineCount(self) -> size_t"""
1779 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1781 def GetVisibleBegin(*args
, **kwargs
):
1782 """GetVisibleBegin(self) -> size_t"""
1783 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
1785 def GetVisibleEnd(*args
, **kwargs
):
1786 """GetVisibleEnd(self) -> size_t"""
1787 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
1789 def IsVisible(*args
, **kwargs
):
1790 """IsVisible(self, size_t line) -> bool"""
1791 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1793 def GetFirstVisibleLine(*args
, **kwargs
):
1794 """GetFirstVisibleLine(self) -> size_t"""
1795 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1797 def GetLastVisibleLine(*args
, **kwargs
):
1798 """GetLastVisibleLine(self) -> size_t"""
1799 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1801 def FindFirstFromBottom(*args
, **kwargs
):
1802 """FindFirstFromBottom(self, size_t lineLast, bool fullyVisible=False) -> size_t"""
1803 return _windows_
.VScrolledWindow_FindFirstFromBottom(*args
, **kwargs
)
1805 def GetLinesHeight(*args
, **kwargs
):
1806 """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int"""
1807 return _windows_
.VScrolledWindow_GetLinesHeight(*args
, **kwargs
)
1809 VScrolledWindow_swigregister
= _windows_
.VScrolledWindow_swigregister
1810 VScrolledWindow_swigregister(VScrolledWindow
)
1812 def PreVScrolledWindow(*args
, **kwargs
):
1813 """PreVScrolledWindow() -> VScrolledWindow"""
1814 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1817 class VListBox(VScrolledWindow
):
1818 """Proxy of C++ VListBox class"""
1819 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1820 __repr__
= _swig_repr
1821 def __init__(self
, *args
, **kwargs
):
1823 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1824 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1826 _windows_
.VListBox_swiginit(self
,_windows_
.new_VListBox(*args
, **kwargs
))
1827 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1829 def _setCallbackInfo(*args
, **kwargs
):
1830 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1831 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1833 def Create(*args
, **kwargs
):
1835 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1836 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1838 return _windows_
.VListBox_Create(*args
, **kwargs
)
1840 def GetItemCount(*args
, **kwargs
):
1841 """GetItemCount(self) -> size_t"""
1842 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1844 def HasMultipleSelection(*args
, **kwargs
):
1845 """HasMultipleSelection(self) -> bool"""
1846 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1848 def GetSelection(*args
, **kwargs
):
1849 """GetSelection(self) -> int"""
1850 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1852 def IsCurrent(*args
, **kwargs
):
1853 """IsCurrent(self, size_t item) -> bool"""
1854 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1856 def IsSelected(*args
, **kwargs
):
1857 """IsSelected(self, size_t item) -> bool"""
1858 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1860 def GetSelectedCount(*args
, **kwargs
):
1861 """GetSelectedCount(self) -> size_t"""
1862 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1864 def GetFirstSelected(*args
, **kwargs
):
1865 """GetFirstSelected(self) -> PyObject"""
1866 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1868 def GetNextSelected(*args
, **kwargs
):
1869 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1870 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1872 def GetMargins(*args
, **kwargs
):
1873 """GetMargins(self) -> Point"""
1874 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1876 def GetSelectionBackground(*args
, **kwargs
):
1877 """GetSelectionBackground(self) -> Colour"""
1878 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1880 def SetItemCount(*args
, **kwargs
):
1881 """SetItemCount(self, size_t count)"""
1882 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1884 def Clear(*args
, **kwargs
):
1886 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1888 def SetSelection(*args
, **kwargs
):
1889 """SetSelection(self, int selection)"""
1890 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1892 def Select(*args
, **kwargs
):
1893 """Select(self, size_t item, bool select=True) -> bool"""
1894 return _windows_
.VListBox_Select(*args
, **kwargs
)
1896 def SelectRange(*args
, **kwargs
):
1897 """SelectRange(self, size_t from, size_t to) -> bool"""
1898 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1900 def Toggle(*args
, **kwargs
):
1901 """Toggle(self, size_t item)"""
1902 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1904 def SelectAll(*args
, **kwargs
):
1905 """SelectAll(self) -> bool"""
1906 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1908 def DeselectAll(*args
, **kwargs
):
1909 """DeselectAll(self) -> bool"""
1910 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1912 def SetMargins(*args
, **kwargs
):
1913 """SetMargins(self, Point pt)"""
1914 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1916 def SetMarginsXY(*args
, **kwargs
):
1917 """SetMarginsXY(self, int x, int y)"""
1918 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1920 def SetSelectionBackground(*args
, **kwargs
):
1921 """SetSelectionBackground(self, Colour col)"""
1922 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1924 def OnDrawSeparator(*args
, **kwargs
):
1925 """OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
1926 return _windows_
.VListBox_OnDrawSeparator(*args
, **kwargs
)
1928 def OnDrawBackground(*args
, **kwargs
):
1929 """OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
1930 return _windows_
.VListBox_OnDrawBackground(*args
, **kwargs
)
1932 VListBox_swigregister
= _windows_
.VListBox_swigregister
1933 VListBox_swigregister(VListBox
)
1934 VListBoxNameStr
= cvar
.VListBoxNameStr
1936 def PreVListBox(*args
, **kwargs
):
1937 """PreVListBox() -> VListBox"""
1938 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1941 class HtmlListBox(VListBox
):
1942 """Proxy of C++ HtmlListBox class"""
1943 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1944 __repr__
= _swig_repr
1945 def __init__(self
, *args
, **kwargs
):
1947 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1948 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1950 _windows_
.HtmlListBox_swiginit(self
,_windows_
.new_HtmlListBox(*args
, **kwargs
))
1951 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1953 def _setCallbackInfo(*args
, **kwargs
):
1954 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1955 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1957 def Create(*args
, **kwargs
):
1959 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1960 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1962 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1964 def SetItemCount(*args
, **kwargs
):
1965 """SetItemCount(self, size_t count)"""
1966 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1968 def GetFileSystem(*args
, **kwargs
):
1969 """GetFileSystem(self) -> FileSystem"""
1970 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
1972 def OnLinkClicked(*args
, **kwargs
):
1973 """OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)"""
1974 return _windows_
.HtmlListBox_OnLinkClicked(*args
, **kwargs
)
1976 HtmlListBox_swigregister
= _windows_
.HtmlListBox_swigregister
1977 HtmlListBox_swigregister(HtmlListBox
)
1979 def PreHtmlListBox(*args
, **kwargs
):
1980 """PreHtmlListBox() -> HtmlListBox"""
1981 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
1984 #---------------------------------------------------------------------------
1986 class TaskBarIcon(_core
.EvtHandler
):
1987 """Proxy of C++ TaskBarIcon class"""
1988 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1989 __repr__
= _swig_repr
1990 def __init__(self
, *args
, **kwargs
):
1991 """__init__(self) -> TaskBarIcon"""
1992 _windows_
.TaskBarIcon_swiginit(self
,_windows_
.new_TaskBarIcon(*args
, **kwargs
))
1993 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
1995 __swig_destroy__
= _windows_
.delete_TaskBarIcon
1996 __del__
= lambda self
: None;
1997 def _setCallbackInfo(*args
, **kwargs
):
1998 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
1999 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2001 def Destroy(*args
, **kwargs
):
2005 Deletes the C++ object this Python object is a proxy for.
2007 val
= _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2011 def IsOk(*args
, **kwargs
):
2012 """IsOk(self) -> bool"""
2013 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2015 def __nonzero__(self
): return self
.IsOk()
2016 def IsIconInstalled(*args
, **kwargs
):
2017 """IsIconInstalled(self) -> bool"""
2018 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2020 def SetIcon(*args
, **kwargs
):
2021 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2022 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2024 def RemoveIcon(*args
, **kwargs
):
2025 """RemoveIcon(self) -> bool"""
2026 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2028 def PopupMenu(*args
, **kwargs
):
2029 """PopupMenu(self, Menu menu) -> bool"""
2030 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2032 def GetHandle(*args
, **kwargs
):
2033 """GetHandle(self) -> long"""
2034 return _windows_
.TaskBarIcon_GetHandle(*args
, **kwargs
)
2036 TaskBarIcon_swigregister
= _windows_
.TaskBarIcon_swigregister
2037 TaskBarIcon_swigregister(TaskBarIcon
)
2039 class TaskBarIconEvent(_core
.Event
):
2040 """Proxy of C++ TaskBarIconEvent class"""
2041 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2042 __repr__
= _swig_repr
2043 def __init__(self
, *args
, **kwargs
):
2044 """__init__(self, EventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2045 _windows_
.TaskBarIconEvent_swiginit(self
,_windows_
.new_TaskBarIconEvent(*args
, **kwargs
))
2046 TaskBarIconEvent_swigregister
= _windows_
.TaskBarIconEvent_swigregister
2047 TaskBarIconEvent_swigregister(TaskBarIconEvent
)
2049 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2050 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2051 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2052 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2053 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2054 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2055 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2056 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2057 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2058 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2059 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2060 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2061 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2062 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2064 #---------------------------------------------------------------------------
2066 class ColourData(_core
.Object
):
2068 This class holds a variety of information related to the colour
2069 chooser dialog, used to transfer settings and results to and from the
2072 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2073 __repr__
= _swig_repr
2074 def __init__(self
, *args
, **kwargs
):
2076 __init__(self) -> ColourData
2078 Constructor, sets default values.
2080 _windows_
.ColourData_swiginit(self
,_windows_
.new_ColourData(*args
, **kwargs
))
2081 __swig_destroy__
= _windows_
.delete_ColourData
2082 __del__
= lambda self
: None;
2083 def GetChooseFull(*args
, **kwargs
):
2085 GetChooseFull(self) -> bool
2087 Under Windows, determines whether the Windows colour dialog will
2088 display the full dialog with custom colour selection controls. Has no
2089 meaning under other platforms. The default value is true.
2091 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2093 def GetColour(*args
, **kwargs
):
2095 GetColour(self) -> Colour
2097 Gets the colour (pre)selected by the dialog.
2099 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2101 def GetCustomColour(*args
, **kwargs
):
2103 GetCustomColour(self, int i) -> Colour
2105 Gets the i'th custom colour associated with the colour dialog. i
2106 should be an integer between 0 and 15. The default custom colours are
2107 all invalid colours.
2109 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2111 def SetChooseFull(*args
, **kwargs
):
2113 SetChooseFull(self, int flag)
2115 Under Windows, tells the Windows colour dialog to display the full
2116 dialog with custom colour selection controls. Under other platforms,
2117 has no effect. The default value is true.
2119 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2121 def SetColour(*args
, **kwargs
):
2123 SetColour(self, Colour colour)
2125 Sets the default colour for the colour dialog. The default colour is
2128 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2130 def SetCustomColour(*args
, **kwargs
):
2132 SetCustomColour(self, int i, Colour colour)
2134 Sets the i'th custom colour for the colour dialog. i should be an
2135 integer between 0 and 15. The default custom colours are all invalid colours.
2137 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2139 ColourData_swigregister
= _windows_
.ColourData_swigregister
2140 ColourData_swigregister(ColourData
)
2141 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2142 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2143 DirDialogNameStr
= cvar
.DirDialogNameStr
2144 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2145 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2146 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2148 class ColourDialog(Dialog
):
2149 """This class represents the colour chooser dialog."""
2150 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2151 __repr__
= _swig_repr
2152 def __init__(self
, *args
, **kwargs
):
2154 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2156 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2157 which will be copied to the colour dialog's internal ColourData
2160 _windows_
.ColourDialog_swiginit(self
,_windows_
.new_ColourDialog(*args
, **kwargs
))
2161 self
._setOORInfo
(self
)
2163 def GetColourData(*args
, **kwargs
):
2165 GetColourData(self) -> ColourData
2167 Returns a reference to the `wx.ColourData` used by the dialog.
2169 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2171 ColourDialog_swigregister
= _windows_
.ColourDialog_swigregister
2172 ColourDialog_swigregister(ColourDialog
)
2175 def GetColourFromUser(*args
, **kwargs
):
2177 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2178 String caption=EmptyString) -> Colour
2180 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2181 class DirDialog(Dialog
):
2183 wx.DirDialog allows the user to select a directory by browising the
2186 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2187 __repr__
= _swig_repr
2188 def __init__(self
, *args
, **kwargs
):
2190 __init__(self, Window parent, String message=DirSelectorPromptStr,
2191 String defaultPath=EmptyString, long style=0,
2192 Point pos=DefaultPosition, Size size=DefaultSize,
2193 String name=DirDialogNameStr) -> DirDialog
2195 Constructor. Use ShowModal method to show the dialog.
2197 _windows_
.DirDialog_swiginit(self
,_windows_
.new_DirDialog(*args
, **kwargs
))
2198 self
._setOORInfo
(self
)
2200 def GetPath(*args
, **kwargs
):
2202 GetPath(self) -> String
2204 Returns the default or user-selected path.
2206 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2208 def GetMessage(*args
, **kwargs
):
2210 GetMessage(self) -> String
2212 Returns the message that will be displayed on the dialog.
2214 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2216 def SetMessage(*args
, **kwargs
):
2218 SetMessage(self, String message)
2220 Sets the message that will be displayed on the dialog.
2222 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2224 def SetPath(*args
, **kwargs
):
2226 SetPath(self, String path)
2228 Sets the default path.
2230 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2232 DirDialog_swigregister
= _windows_
.DirDialog_swigregister
2233 DirDialog_swigregister(DirDialog
)
2235 class FileDialog(Dialog
):
2237 wx.FileDialog allows the user to select one or more files from the
2240 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2241 __repr__
= _swig_repr
2242 def __init__(self
, *args
, **kwargs
):
2244 __init__(self, Window parent, String message=FileSelectorPromptStr,
2245 String defaultDir=EmptyString, String defaultFile=EmptyString,
2246 String wildcard=FileSelectorDefaultWildcardStr,
2247 long style=0, Point pos=DefaultPosition) -> FileDialog
2249 Constructor. Use ShowModal method to show the dialog.
2251 _windows_
.FileDialog_swiginit(self
,_windows_
.new_FileDialog(*args
, **kwargs
))
2252 self
._setOORInfo
(self
)
2254 def SetMessage(*args
, **kwargs
):
2256 SetMessage(self, String message)
2258 Sets the message that will be displayed on the dialog.
2260 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2262 def SetPath(*args
, **kwargs
):
2264 SetPath(self, String path)
2266 Sets the path (the combined directory and filename that will be
2267 returned when the dialog is dismissed).
2269 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2271 def SetDirectory(*args
, **kwargs
):
2273 SetDirectory(self, String dir)
2275 Sets the default directory.
2277 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2279 def SetFilename(*args
, **kwargs
):
2281 SetFilename(self, String name)
2283 Sets the default filename.
2285 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2287 def SetWildcard(*args
, **kwargs
):
2289 SetWildcard(self, String wildCard)
2291 Sets the wildcard, which can contain multiple file types, for
2294 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2297 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2299 def SetStyle(*args
, **kwargs
):
2301 SetStyle(self, long style)
2303 Sets the dialog style.
2305 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2307 def SetFilterIndex(*args
, **kwargs
):
2309 SetFilterIndex(self, int filterIndex)
2311 Sets the default filter index, starting from zero.
2313 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2315 def GetMessage(*args
, **kwargs
):
2317 GetMessage(self) -> String
2319 Returns the message that will be displayed on the dialog.
2321 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2323 def GetPath(*args
, **kwargs
):
2325 GetPath(self) -> String
2327 Returns the full path (directory and filename) of the selected file.
2329 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2331 def GetDirectory(*args
, **kwargs
):
2333 GetDirectory(self) -> String
2335 Returns the default directory.
2337 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2339 def GetFilename(*args
, **kwargs
):
2341 GetFilename(self) -> String
2343 Returns the default filename.
2345 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2347 def GetWildcard(*args
, **kwargs
):
2349 GetWildcard(self) -> String
2351 Returns the file dialog wildcard.
2353 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2355 def GetStyle(*args
, **kwargs
):
2357 GetStyle(self) -> long
2359 Returns the dialog style.
2361 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2363 def GetFilterIndex(*args
, **kwargs
):
2365 GetFilterIndex(self) -> int
2367 Returns the index into the list of filters supplied, optionally, in
2368 the wildcard parameter. Before the dialog is shown, this is the index
2369 which will be used when the dialog is first displayed. After the
2370 dialog is shown, this is the index selected by the user.
2372 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2374 def GetFilenames(*args
, **kwargs
):
2376 GetFilenames(self) -> PyObject
2378 Returns a list of filenames chosen in the dialog. This function
2379 should only be used with the dialogs which have wx.MULTIPLE style, use
2380 GetFilename for the others.
2382 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2384 def GetPaths(*args
, **kwargs
):
2386 GetPaths(self) -> PyObject
2388 Fills the array paths with the full paths of the files chosen. This
2389 function should only be used with the dialogs which have wx.MULTIPLE
2390 style, use GetPath for the others.
2392 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2394 FileDialog_swigregister
= _windows_
.FileDialog_swigregister
2395 FileDialog_swigregister(FileDialog
)
2397 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2398 class MultiChoiceDialog(Dialog
):
2399 """A simple dialog with a multi selection listbox."""
2400 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2401 __repr__
= _swig_repr
2402 def __init__(self
, *args
, **kwargs
):
2404 __init__(self, Window parent, String message, String caption,
2405 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2406 Point pos=DefaultPosition) -> MultiChoiceDialog
2408 Constructor. Use the `ShowModal` method to show the dialog.
2410 :param parent: The parent window.
2411 :param message: Text to display above the list of selections.
2412 :param caption: Text to use in the title bar of the dialog.
2413 :param choices: A list of strings or unicode objects that the
2414 user is allowed to choose from.
2415 :param style: Styles to apply to the dialog. The default value is
2416 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2417 :param pos: Where to position the dialog (not used on Windows)
2421 _windows_
.MultiChoiceDialog_swiginit(self
,_windows_
.new_MultiChoiceDialog(*args
, **kwargs
))
2422 self
._setOORInfo
(self
)
2424 def SetSelections(*args
, **kwargs
):
2426 SetSelections(List selections)
2428 Specify the items in the list that should be selected, using a list of
2429 integers. The list should specify the indexes of the items that
2432 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2434 def GetSelections(*args
, **kwargs
):
2436 GetSelections() -> [selections]
2438 Returns a list of integers representing the items that are selected.
2439 If an item is selected then its index will appear in the list.
2441 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2443 MultiChoiceDialog_swigregister
= _windows_
.MultiChoiceDialog_swigregister
2444 MultiChoiceDialog_swigregister(MultiChoiceDialog
)
2446 class SingleChoiceDialog(Dialog
):
2447 """A simple dialog with a single selection listbox."""
2448 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2449 __repr__
= _swig_repr
2450 def __init__(self
, *args
, **kwargs
):
2452 __init__(Window parent, String message, String caption,
2453 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2454 Point pos=DefaultPosition) -> SingleChoiceDialog
2456 Constructor. Use ShowModal method to show the dialog.
2458 _windows_
.SingleChoiceDialog_swiginit(self
,_windows_
.new_SingleChoiceDialog(*args
, **kwargs
))
2459 self
._setOORInfo
(self
)
2461 def GetSelection(*args
, **kwargs
):
2463 GetSelection(self) -> int
2465 Get the index of teh currently selected item.
2467 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2469 def GetStringSelection(*args
, **kwargs
):
2471 GetStringSelection(self) -> String
2473 Returns the string value of the currently selected item
2475 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2477 def SetSelection(*args
, **kwargs
):
2479 SetSelection(self, int sel)
2481 Set the current selected item to sel
2483 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2485 SingleChoiceDialog_swigregister
= _windows_
.SingleChoiceDialog_swigregister
2486 SingleChoiceDialog_swigregister(SingleChoiceDialog
)
2488 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2489 class TextEntryDialog(Dialog
):
2490 """A dialog with text control, [ok] and [cancel] buttons"""
2491 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2492 __repr__
= _swig_repr
2493 def __init__(self
, *args
, **kwargs
):
2495 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2496 String defaultValue=EmptyString,
2497 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2499 Constructor. Use ShowModal method to show the dialog.
2501 _windows_
.TextEntryDialog_swiginit(self
,_windows_
.new_TextEntryDialog(*args
, **kwargs
))
2502 self
._setOORInfo
(self
)
2504 def GetValue(*args
, **kwargs
):
2506 GetValue(self) -> String
2508 Returns the text that the user has entered if the user has pressed OK,
2509 or the original value if the user has pressed Cancel.
2511 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2513 def SetValue(*args
, **kwargs
):
2515 SetValue(self, String value)
2517 Sets the default text value.
2519 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2521 TextEntryDialog_swigregister
= _windows_
.TextEntryDialog_swigregister
2522 TextEntryDialog_swigregister(TextEntryDialog
)
2524 class PasswordEntryDialog(TextEntryDialog
):
2525 """Proxy of C++ PasswordEntryDialog class"""
2526 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2527 __repr__
= _swig_repr
2528 def __init__(self
, *args
, **kwargs
):
2530 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2531 String value=EmptyString,
2532 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2534 _windows_
.PasswordEntryDialog_swiginit(self
,_windows_
.new_PasswordEntryDialog(*args
, **kwargs
))
2535 PasswordEntryDialog_swigregister
= _windows_
.PasswordEntryDialog_swigregister
2536 PasswordEntryDialog_swigregister(PasswordEntryDialog
)
2537 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2539 class FontData(_core
.Object
):
2541 This class holds a variety of information related to font dialogs and
2542 is used to transfer settings to and results from a `wx.FontDialog`.
2544 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2545 __repr__
= _swig_repr
2546 def __init__(self
, *args
, **kwargs
):
2548 __init__(self) -> FontData
2550 This class holds a variety of information related to font dialogs and
2551 is used to transfer settings to and results from a `wx.FontDialog`.
2553 _windows_
.FontData_swiginit(self
,_windows_
.new_FontData(*args
, **kwargs
))
2554 __swig_destroy__
= _windows_
.delete_FontData
2555 __del__
= lambda self
: None;
2556 def EnableEffects(*args
, **kwargs
):
2558 EnableEffects(self, bool enable)
2560 Enables or disables 'effects' under MS Windows only. This refers to
2561 the controls for manipulating colour, strikeout and underline
2562 properties. The default value is true.
2564 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2566 def GetAllowSymbols(*args
, **kwargs
):
2568 GetAllowSymbols(self) -> bool
2570 Under MS Windows, returns a flag determining whether symbol fonts can
2571 be selected. Has no effect on other platforms. The default value is
2574 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2576 def GetColour(*args
, **kwargs
):
2578 GetColour(self) -> Colour
2580 Gets the colour associated with the font dialog. The default value is
2583 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2585 def GetChosenFont(*args
, **kwargs
):
2587 GetChosenFont(self) -> Font
2589 Gets the font chosen by the user.
2591 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2593 def GetEnableEffects(*args
, **kwargs
):
2595 GetEnableEffects(self) -> bool
2597 Determines whether 'effects' are enabled under Windows.
2599 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2601 def GetInitialFont(*args
, **kwargs
):
2603 GetInitialFont(self) -> Font
2605 Gets the font that will be initially used by the font dialog. This
2606 should have previously been set by the application.
2608 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2610 def GetShowHelp(*args
, **kwargs
):
2612 GetShowHelp(self) -> bool
2614 Returns true if the Help button will be shown (Windows only). The
2615 default value is false.
2617 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2619 def SetAllowSymbols(*args
, **kwargs
):
2621 SetAllowSymbols(self, bool allowSymbols)
2623 Under MS Windows, determines whether symbol fonts can be selected. Has
2624 no effect on other platforms. The default value is true.
2626 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2628 def SetChosenFont(*args
, **kwargs
):
2630 SetChosenFont(self, Font font)
2632 Sets the font that will be returned to the user (normally for internal
2635 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2637 def SetColour(*args
, **kwargs
):
2639 SetColour(self, Colour colour)
2641 Sets the colour that will be used for the font foreground colour. The
2642 default colour is black.
2644 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2646 def SetInitialFont(*args
, **kwargs
):
2648 SetInitialFont(self, Font font)
2650 Sets the font that will be initially used by the font dialog.
2652 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2654 def SetRange(*args
, **kwargs
):
2656 SetRange(self, int min, int max)
2658 Sets the valid range for the font point size (Windows only). The
2659 default is 0, 0 (unrestricted range).
2661 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2663 def SetShowHelp(*args
, **kwargs
):
2665 SetShowHelp(self, bool showHelp)
2667 Determines whether the Help button will be displayed in the font
2668 dialog (Windows only). The default value is false.
2670 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2672 FontData_swigregister
= _windows_
.FontData_swigregister
2673 FontData_swigregister(FontData
)
2675 class FontDialog(Dialog
):
2677 wx.FontDialog allows the user to select a system font and its attributes.
2682 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2683 __repr__
= _swig_repr
2684 def __init__(self
, *args
, **kwargs
):
2686 __init__(self, Window parent, FontData data) -> FontDialog
2688 Constructor. Pass a parent window and the `wx.FontData` object to be
2689 used to initialize the dialog controls. Call `ShowModal` to display
2690 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2691 results with via the `wx.FontData` returned by `GetFontData`.
2693 _windows_
.FontDialog_swiginit(self
,_windows_
.new_FontDialog(*args
, **kwargs
))
2694 self
._setOORInfo
(self
)
2696 def GetFontData(*args
, **kwargs
):
2698 GetFontData(self) -> FontData
2700 Returns a reference to the internal `wx.FontData` used by the
2703 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2705 FontDialog_swigregister
= _windows_
.FontDialog_swigregister
2706 FontDialog_swigregister(FontDialog
)
2709 def GetFontFromUser(*args
, **kwargs
):
2710 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2711 return _windows_
.GetFontFromUser(*args
, **kwargs
)
2712 class MessageDialog(Dialog
):
2714 This class provides a simple dialog that shows a single or multi-line
2715 message, with a choice of OK, Yes, No and/or Cancel buttons.
2717 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2718 __repr__
= _swig_repr
2719 def __init__(self
, *args
, **kwargs
):
2721 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2722 long style=wxOK|wxCANCEL|wxCENTRE,
2723 Point pos=DefaultPosition) -> MessageDialog
2725 Constructor, use `ShowModal` to display the dialog.
2727 _windows_
.MessageDialog_swiginit(self
,_windows_
.new_MessageDialog(*args
, **kwargs
))
2728 self
._setOORInfo
(self
)
2730 MessageDialog_swigregister
= _windows_
.MessageDialog_swigregister
2731 MessageDialog_swigregister(MessageDialog
)
2733 class ProgressDialog(Frame
):
2735 A dialog that shows a short message and a progress bar. Optionally, it
2736 can display an ABORT button.
2738 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2739 __repr__
= _swig_repr
2740 def __init__(self
, *args
, **kwargs
):
2742 __init__(self, String title, String message, int maximum=100, Window parent=None,
2743 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2745 Constructor. Creates the dialog, displays it and disables user input
2746 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2749 _windows_
.ProgressDialog_swiginit(self
,_windows_
.new_ProgressDialog(*args
, **kwargs
))
2750 self
._setOORInfo
(self
)
2752 def Update(*args
, **kwargs
):
2754 Update(self, int value, String newmsg) --> (continue, skip)
2756 Updates the dialog, setting the progress bar to the new value and, if
2757 given changes the message above it. The value given should be less
2758 than or equal to the maximum value given to the constructor and the
2759 dialog is closed if it is equal to the maximum. Returns a tuple of
2760 boolean values, ``(continue, skip)`` where ``continue`` is ``True``
2761 unless the Cancel button has been pressed, and ``skip`` is ``False``
2762 unless the Skip button (if any) has been pressed.
2764 If the ``continue`` return value is ``false``, the application can either
2765 immediately destroy the dialog or ask the user for confirmation, and if the
2766 abort is not confirmed the dialog may be resumed with `Resume` function.
2769 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2771 def Resume(*args
, **kwargs
):
2775 Can be used to continue with the dialog, after the user had chosen to
2778 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2780 ProgressDialog_swigregister
= _windows_
.ProgressDialog_swigregister
2781 ProgressDialog_swigregister(ProgressDialog
)
2783 FR_DOWN
= _windows_
.FR_DOWN
2784 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2785 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2786 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2787 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2788 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2789 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2790 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2791 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2792 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2793 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2794 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2795 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2796 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2797 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2798 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2799 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2801 # For backwards compatibility. Should they be removed?
2802 EVT_COMMAND_FIND
= EVT_FIND
2803 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2804 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2805 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2806 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2808 class FindDialogEvent(_core
.CommandEvent
):
2809 """Events for the FindReplaceDialog"""
2810 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2811 __repr__
= _swig_repr
2812 def __init__(self
, *args
, **kwargs
):
2814 __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2816 Events for the FindReplaceDialog
2818 _windows_
.FindDialogEvent_swiginit(self
,_windows_
.new_FindDialogEvent(*args
, **kwargs
))
2819 def GetFlags(*args
, **kwargs
):
2821 GetFlags(self) -> int
2823 Get the currently selected flags: this is the combination of
2824 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2826 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2828 def GetFindString(*args
, **kwargs
):
2830 GetFindString(self) -> String
2832 Return the string to find (never empty).
2834 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2836 def GetReplaceString(*args
, **kwargs
):
2838 GetReplaceString(self) -> String
2840 Return the string to replace the search string with (only for replace
2841 and replace all events).
2843 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2845 def GetDialog(*args
, **kwargs
):
2847 GetDialog(self) -> FindReplaceDialog
2849 Return the pointer to the dialog which generated this event.
2851 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2853 def SetFlags(*args
, **kwargs
):
2854 """SetFlags(self, int flags)"""
2855 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2857 def SetFindString(*args
, **kwargs
):
2858 """SetFindString(self, String str)"""
2859 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2861 def SetReplaceString(*args
, **kwargs
):
2862 """SetReplaceString(self, String str)"""
2863 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2865 FindDialogEvent_swigregister
= _windows_
.FindDialogEvent_swigregister
2866 FindDialogEvent_swigregister(FindDialogEvent
)
2868 class FindReplaceData(_core
.Object
):
2870 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2871 to initialize the dialog with the default values and will keep the
2872 last values from the dialog when it is closed. It is also updated each
2873 time a `wx.FindDialogEvent` is generated so instead of using the
2874 `wx.FindDialogEvent` methods you can also directly query this object.
2876 Note that all SetXXX() methods may only be called before showing the
2877 dialog and calling them has no effect later.
2879 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2880 __repr__
= _swig_repr
2881 def __init__(self
, *args
, **kwargs
):
2883 __init__(self, int flags=0) -> FindReplaceData
2885 Constuctor initializes the flags to default value (0).
2887 _windows_
.FindReplaceData_swiginit(self
,_windows_
.new_FindReplaceData(*args
, **kwargs
))
2888 __swig_destroy__
= _windows_
.delete_FindReplaceData
2889 __del__
= lambda self
: None;
2890 def GetFindString(*args
, **kwargs
):
2892 GetFindString(self) -> String
2894 Get the string to find.
2896 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2898 def GetReplaceString(*args
, **kwargs
):
2900 GetReplaceString(self) -> String
2902 Get the replacement string.
2904 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2906 def GetFlags(*args
, **kwargs
):
2908 GetFlags(self) -> int
2910 Get the combination of flag values.
2912 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
2914 def SetFlags(*args
, **kwargs
):
2916 SetFlags(self, int flags)
2918 Set the flags to use to initialize the controls of the dialog.
2920 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
2922 def SetFindString(*args
, **kwargs
):
2924 SetFindString(self, String str)
2926 Set the string to find (used as initial value by the dialog).
2928 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
2930 def SetReplaceString(*args
, **kwargs
):
2932 SetReplaceString(self, String str)
2934 Set the replacement string (used as initial value by the dialog).
2936 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2938 FindReplaceData_swigregister
= _windows_
.FindReplaceData_swigregister
2939 FindReplaceData_swigregister(FindReplaceData
)
2941 class FindReplaceDialog(Dialog
):
2943 wx.FindReplaceDialog is a standard modeless dialog which is used to
2944 allow the user to search for some text (and possibly replace it with
2945 something else). The actual searching is supposed to be done in the
2946 owner window which is the parent of this dialog. Note that it means
2947 that unlike for the other standard dialogs this one must have a parent
2948 window. Also note that there is no way to use this dialog in a modal
2949 way; it is always, by design and implementation, modeless.
2951 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2952 __repr__
= _swig_repr
2953 def __init__(self
, *args
, **kwargs
):
2955 __init__(self, Window parent, FindReplaceData data, String title,
2956 int style=0) -> FindReplaceDialog
2958 Create a FindReplaceDialog. The parent and data parameters must be
2959 non-None. Use Show to display the dialog.
2961 _windows_
.FindReplaceDialog_swiginit(self
,_windows_
.new_FindReplaceDialog(*args
, **kwargs
))
2962 self
._setOORInfo
(self
)
2964 def Create(*args
, **kwargs
):
2966 Create(self, Window parent, FindReplaceData data, String title,
2967 int style=0) -> bool
2969 Create the dialog, for 2-phase create.
2971 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
2973 def GetData(*args
, **kwargs
):
2975 GetData(self) -> FindReplaceData
2977 Get the FindReplaceData object used by this dialog.
2979 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
2981 def SetData(*args
, **kwargs
):
2983 SetData(self, FindReplaceData data)
2985 Set the FindReplaceData object used by this dialog.
2987 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
2989 FindReplaceDialog_swigregister
= _windows_
.FindReplaceDialog_swigregister
2990 FindReplaceDialog_swigregister(FindReplaceDialog
)
2992 def PreFindReplaceDialog(*args
, **kwargs
):
2994 PreFindReplaceDialog() -> FindReplaceDialog
2996 Precreate a FindReplaceDialog for 2-phase creation
2998 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3001 #---------------------------------------------------------------------------
3003 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3004 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3005 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3006 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3007 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3008 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3009 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3010 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3011 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3012 class MDIParentFrame(Frame
):
3013 """Proxy of C++ MDIParentFrame class"""
3014 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3015 __repr__
= _swig_repr
3016 def __init__(self
, *args
, **kwargs
):
3018 __init__(self, Window parent, int id=-1, String title=EmptyString,
3019 Point pos=DefaultPosition, Size size=DefaultSize,
3020 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3021 String name=FrameNameStr) -> MDIParentFrame
3023 _windows_
.MDIParentFrame_swiginit(self
,_windows_
.new_MDIParentFrame(*args
, **kwargs
))
3024 self
._setOORInfo
(self
)
3026 def Create(*args
, **kwargs
):
3028 Create(self, Window parent, int id=-1, String title=EmptyString,
3029 Point pos=DefaultPosition, Size size=DefaultSize,
3030 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3031 String name=FrameNameStr) -> bool
3033 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3035 def ActivateNext(*args
, **kwargs
):
3036 """ActivateNext(self)"""
3037 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3039 def ActivatePrevious(*args
, **kwargs
):
3040 """ActivatePrevious(self)"""
3041 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3043 def ArrangeIcons(*args
, **kwargs
):
3044 """ArrangeIcons(self)"""
3045 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3047 def Cascade(*args
, **kwargs
):
3049 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3051 def GetActiveChild(*args
, **kwargs
):
3052 """GetActiveChild(self) -> MDIChildFrame"""
3053 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3055 def GetClientWindow(*args
, **kwargs
):
3056 """GetClientWindow(self) -> MDIClientWindow"""
3057 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3059 def GetToolBar(*args
, **kwargs
):
3060 """GetToolBar(self) -> Window"""
3061 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3063 def GetWindowMenu(*args
, **kwargs
):
3064 """GetWindowMenu(self) -> Menu"""
3065 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3067 def SetWindowMenu(*args
, **kwargs
):
3068 """SetWindowMenu(self, Menu menu)"""
3069 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3071 def Tile(*args
, **kwargs
):
3072 """Tile(self, int orient=HORIZONTAL)"""
3073 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3075 MDIParentFrame_swigregister
= _windows_
.MDIParentFrame_swigregister
3076 MDIParentFrame_swigregister(MDIParentFrame
)
3078 def PreMDIParentFrame(*args
, **kwargs
):
3079 """PreMDIParentFrame() -> MDIParentFrame"""
3080 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3083 class MDIChildFrame(Frame
):
3084 """Proxy of C++ MDIChildFrame class"""
3085 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3086 __repr__
= _swig_repr
3087 def __init__(self
, *args
, **kwargs
):
3089 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3090 Point pos=DefaultPosition, Size size=DefaultSize,
3091 long style=DEFAULT_FRAME_STYLE,
3092 String name=FrameNameStr) -> MDIChildFrame
3094 _windows_
.MDIChildFrame_swiginit(self
,_windows_
.new_MDIChildFrame(*args
, **kwargs
))
3095 self
._setOORInfo
(self
)
3097 def Create(*args
, **kwargs
):
3099 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3100 Point pos=DefaultPosition, Size size=DefaultSize,
3101 long style=DEFAULT_FRAME_STYLE,
3102 String name=FrameNameStr) -> bool
3104 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3106 def Activate(*args
, **kwargs
):
3107 """Activate(self)"""
3108 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3110 MDIChildFrame_swigregister
= _windows_
.MDIChildFrame_swigregister
3111 MDIChildFrame_swigregister(MDIChildFrame
)
3113 def PreMDIChildFrame(*args
, **kwargs
):
3114 """PreMDIChildFrame() -> MDIChildFrame"""
3115 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3118 class MDIClientWindow(_core
.Window
):
3119 """Proxy of C++ MDIClientWindow class"""
3120 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3121 __repr__
= _swig_repr
3122 def __init__(self
, *args
, **kwargs
):
3123 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3124 _windows_
.MDIClientWindow_swiginit(self
,_windows_
.new_MDIClientWindow(*args
, **kwargs
))
3125 self
._setOORInfo
(self
)
3127 def Create(*args
, **kwargs
):
3128 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3129 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3131 MDIClientWindow_swigregister
= _windows_
.MDIClientWindow_swigregister
3132 MDIClientWindow_swigregister(MDIClientWindow
)
3134 def PreMDIClientWindow(*args
, **kwargs
):
3135 """PreMDIClientWindow() -> MDIClientWindow"""
3136 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3139 #---------------------------------------------------------------------------
3141 class PyWindow(_core
.Window
):
3142 """Proxy of C++ PyWindow class"""
3143 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3144 __repr__
= _swig_repr
3145 def __init__(self
, *args
, **kwargs
):
3147 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3148 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3150 _windows_
.PyWindow_swiginit(self
,_windows_
.new_PyWindow(*args
, **kwargs
))
3151 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3153 def _setCallbackInfo(*args
, **kwargs
):
3154 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3155 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3157 def SetBestSize(*args
, **kwargs
):
3158 """SetBestSize(self, Size size)"""
3159 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3161 def DoEraseBackground(*args
, **kwargs
):
3162 """DoEraseBackground(self, DC dc) -> bool"""
3163 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3165 def DoMoveWindow(*args
, **kwargs
):
3166 """DoMoveWindow(self, int x, int y, int width, int height)"""
3167 return _windows_
.PyWindow_DoMoveWindow(*args
, **kwargs
)
3169 def DoSetSize(*args
, **kwargs
):
3170 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3171 return _windows_
.PyWindow_DoSetSize(*args
, **kwargs
)
3173 def DoSetClientSize(*args
, **kwargs
):
3174 """DoSetClientSize(self, int width, int height)"""
3175 return _windows_
.PyWindow_DoSetClientSize(*args
, **kwargs
)
3177 def DoSetVirtualSize(*args
, **kwargs
):
3178 """DoSetVirtualSize(self, int x, int y)"""
3179 return _windows_
.PyWindow_DoSetVirtualSize(*args
, **kwargs
)
3181 def DoGetSize(*args
, **kwargs
):
3182 """DoGetSize() -> (width, height)"""
3183 return _windows_
.PyWindow_DoGetSize(*args
, **kwargs
)
3185 def DoGetClientSize(*args
, **kwargs
):
3186 """DoGetClientSize() -> (width, height)"""
3187 return _windows_
.PyWindow_DoGetClientSize(*args
, **kwargs
)
3189 def DoGetPosition(*args
, **kwargs
):
3190 """DoGetPosition() -> (x,y)"""
3191 return _windows_
.PyWindow_DoGetPosition(*args
, **kwargs
)
3193 def DoGetVirtualSize(*args
, **kwargs
):
3194 """DoGetVirtualSize(self) -> Size"""
3195 return _windows_
.PyWindow_DoGetVirtualSize(*args
, **kwargs
)
3197 def DoGetBestSize(*args
, **kwargs
):
3198 """DoGetBestSize(self) -> Size"""
3199 return _windows_
.PyWindow_DoGetBestSize(*args
, **kwargs
)
3201 def GetDefaultAttributes(*args
, **kwargs
):
3202 """GetDefaultAttributes(self) -> VisualAttributes"""
3203 return _windows_
.PyWindow_GetDefaultAttributes(*args
, **kwargs
)
3205 def OnInternalIdle(*args
, **kwargs
):
3206 """OnInternalIdle(self)"""
3207 return _windows_
.PyWindow_OnInternalIdle(*args
, **kwargs
)
3209 def base_DoMoveWindow(*args
, **kw
):
3210 return PyWindow
.DoMoveWindow(*args
, **kw
)
3211 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3212 "Please use PyWindow.DoMoveWindow instead.")
3214 def base_DoSetSize(*args
, **kw
):
3215 return PyWindow
.DoSetSize(*args
, **kw
)
3216 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3217 "Please use PyWindow.DoSetSize instead.")
3219 def base_DoSetClientSize(*args
, **kw
):
3220 return PyWindow
.DoSetClientSize(*args
, **kw
)
3221 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3222 "Please use PyWindow.DoSetClientSize instead.")
3224 def base_DoSetVirtualSize(*args
, **kw
):
3225 return PyWindow
.DoSetVirtualSize(*args
, **kw
)
3226 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3227 "Please use PyWindow.DoSetVirtualSize instead.")
3229 def base_DoGetSize(*args
, **kw
):
3230 return PyWindow
.DoGetSize(*args
, **kw
)
3231 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3232 "Please use PyWindow.DoGetSize instead.")
3234 def base_DoGetClientSize(*args
, **kw
):
3235 return PyWindow
.DoGetClientSize(*args
, **kw
)
3236 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3237 "Please use PyWindow.DoGetClientSize instead.")
3239 def base_DoGetPosition(*args
, **kw
):
3240 return PyWindow
.DoGetPosition(*args
, **kw
)
3241 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3242 "Please use PyWindow.DoGetPosition instead.")
3244 def base_DoGetVirtualSize(*args
, **kw
):
3245 return PyWindow
.DoGetVirtualSize(*args
, **kw
)
3246 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3247 "Please use PyWindow.DoGetVirtualSize instead.")
3249 def base_DoGetBestSize(*args
, **kw
):
3250 return PyWindow
.DoGetBestSize(*args
, **kw
)
3251 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3252 "Please use PyWindow.DoGetBestSize instead.")
3254 def base_InitDialog(*args
, **kw
):
3255 return PyWindow
.InitDialog(*args
, **kw
)
3256 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3257 "Please use PyWindow.InitDialog instead.")
3259 def base_TransferDataToWindow(*args
, **kw
):
3260 return PyWindow
.TransferDataToWindow(*args
, **kw
)
3261 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3262 "Please use PyWindow.TransferDataToWindow instead.")
3264 def base_TransferDataFromWindow(*args
, **kw
):
3265 return PyWindow
.TransferDataFromWindow(*args
, **kw
)
3266 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3267 "Please use PyWindow.TransferDataFromWindow instead.")
3269 def base_Validate(*args
, **kw
):
3270 return PyWindow
.Validate(*args
, **kw
)
3271 base_Validate
= wx
._deprecated
(base_Validate
,
3272 "Please use PyWindow.Validate instead.")
3274 def base_AcceptsFocus(*args
, **kw
):
3275 return PyWindow
.AcceptsFocus(*args
, **kw
)
3276 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3277 "Please use PyWindow.AcceptsFocus instead.")
3279 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3280 return PyWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3281 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3282 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3284 def base_GetMaxSize(*args
, **kw
):
3285 return PyWindow
.GetMaxSize(*args
, **kw
)
3286 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3287 "Please use PyWindow.GetMaxSize instead.")
3289 def base_AddChild(*args
, **kw
):
3290 return PyWindow
.AddChild(*args
, **kw
)
3291 base_AddChild
= wx
._deprecated
(base_AddChild
,
3292 "Please use PyWindow.AddChild instead.")
3294 def base_RemoveChild(*args
, **kw
):
3295 return PyWindow
.RemoveChild(*args
, **kw
)
3296 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3297 "Please use PyWindow.RemoveChild instead.")
3299 def base_ShouldInheritColours(*args
, **kw
):
3300 return PyWindow
.ShouldInheritColours(*args
, **kw
)
3301 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3302 "Please use PyWindow.ShouldInheritColours instead.")
3304 def base_GetDefaultAttributes(*args
, **kw
):
3305 return PyWindow
.GetDefaultAttributes(*args
, **kw
)
3306 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3307 "Please use PyWindow.GetDefaultAttributes instead.")
3309 def base_OnInternalIdle(*args
, **kw
):
3310 return PyWindow
.OnInternalIdle(*args
, **kw
)
3311 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3312 "Please use PyWindow.OnInternalIdle instead.")
3314 PyWindow_swigregister
= _windows_
.PyWindow_swigregister
3315 PyWindow_swigregister(PyWindow
)
3317 def PrePyWindow(*args
, **kwargs
):
3318 """PrePyWindow() -> PyWindow"""
3319 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3322 class PyPanel(Panel
):
3323 """Proxy of C++ PyPanel class"""
3324 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3325 __repr__
= _swig_repr
3326 def __init__(self
, *args
, **kwargs
):
3328 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3329 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3331 _windows_
.PyPanel_swiginit(self
,_windows_
.new_PyPanel(*args
, **kwargs
))
3332 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3334 def _setCallbackInfo(*args
, **kwargs
):
3335 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3336 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3338 def SetBestSize(*args
, **kwargs
):
3339 """SetBestSize(self, Size size)"""
3340 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3342 def DoEraseBackground(*args
, **kwargs
):
3343 """DoEraseBackground(self, DC dc) -> bool"""
3344 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3346 def DoMoveWindow(*args
, **kwargs
):
3347 """DoMoveWindow(self, int x, int y, int width, int height)"""
3348 return _windows_
.PyPanel_DoMoveWindow(*args
, **kwargs
)
3350 def DoSetSize(*args
, **kwargs
):
3351 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3352 return _windows_
.PyPanel_DoSetSize(*args
, **kwargs
)
3354 def DoSetClientSize(*args
, **kwargs
):
3355 """DoSetClientSize(self, int width, int height)"""
3356 return _windows_
.PyPanel_DoSetClientSize(*args
, **kwargs
)
3358 def DoSetVirtualSize(*args
, **kwargs
):
3359 """DoSetVirtualSize(self, int x, int y)"""
3360 return _windows_
.PyPanel_DoSetVirtualSize(*args
, **kwargs
)
3362 def DoGetSize(*args
, **kwargs
):
3363 """DoGetSize() -> (width, height)"""
3364 return _windows_
.PyPanel_DoGetSize(*args
, **kwargs
)
3366 def DoGetClientSize(*args
, **kwargs
):
3367 """DoGetClientSize() -> (width, height)"""
3368 return _windows_
.PyPanel_DoGetClientSize(*args
, **kwargs
)
3370 def DoGetPosition(*args
, **kwargs
):
3371 """DoGetPosition() -> (x,y)"""
3372 return _windows_
.PyPanel_DoGetPosition(*args
, **kwargs
)
3374 def DoGetVirtualSize(*args
, **kwargs
):
3375 """DoGetVirtualSize(self) -> Size"""
3376 return _windows_
.PyPanel_DoGetVirtualSize(*args
, **kwargs
)
3378 def DoGetBestSize(*args
, **kwargs
):
3379 """DoGetBestSize(self) -> Size"""
3380 return _windows_
.PyPanel_DoGetBestSize(*args
, **kwargs
)
3382 def GetDefaultAttributes(*args
, **kwargs
):
3383 """GetDefaultAttributes(self) -> VisualAttributes"""
3384 return _windows_
.PyPanel_GetDefaultAttributes(*args
, **kwargs
)
3386 def OnInternalIdle(*args
, **kwargs
):
3387 """OnInternalIdle(self)"""
3388 return _windows_
.PyPanel_OnInternalIdle(*args
, **kwargs
)
3390 def base_DoMoveWindow(*args
, **kw
):
3391 return PyPanel
.DoMoveWindow(*args
, **kw
)
3392 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3393 "Please use PyPanel.DoMoveWindow instead.")
3395 def base_DoSetSize(*args
, **kw
):
3396 return PyPanel
.DoSetSize(*args
, **kw
)
3397 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3398 "Please use PyPanel.DoSetSize instead.")
3400 def base_DoSetClientSize(*args
, **kw
):
3401 return PyPanel
.DoSetClientSize(*args
, **kw
)
3402 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3403 "Please use PyPanel.DoSetClientSize instead.")
3405 def base_DoSetVirtualSize(*args
, **kw
):
3406 return PyPanel
.DoSetVirtualSize(*args
, **kw
)
3407 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3408 "Please use PyPanel.DoSetVirtualSize instead.")
3410 def base_DoGetSize(*args
, **kw
):
3411 return PyPanel
.DoGetSize(*args
, **kw
)
3412 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3413 "Please use PyPanel.DoGetSize instead.")
3415 def base_DoGetClientSize(*args
, **kw
):
3416 return PyPanel
.DoGetClientSize(*args
, **kw
)
3417 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3418 "Please use PyPanel.DoGetClientSize instead.")
3420 def base_DoGetPosition(*args
, **kw
):
3421 return PyPanel
.DoGetPosition(*args
, **kw
)
3422 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3423 "Please use PyPanel.DoGetPosition instead.")
3425 def base_DoGetVirtualSize(*args
, **kw
):
3426 return PyPanel
.DoGetVirtualSize(*args
, **kw
)
3427 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3428 "Please use PyPanel.DoGetVirtualSize instead.")
3430 def base_DoGetBestSize(*args
, **kw
):
3431 return PyPanel
.DoGetBestSize(*args
, **kw
)
3432 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3433 "Please use PyPanel.DoGetBestSize instead.")
3435 def base_InitDialog(*args
, **kw
):
3436 return PyPanel
.InitDialog(*args
, **kw
)
3437 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3438 "Please use PyPanel.InitDialog instead.")
3440 def base_TransferDataToWindow(*args
, **kw
):
3441 return PyPanel
.TransferDataToWindow(*args
, **kw
)
3442 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3443 "Please use PyPanel.TransferDataToWindow instead.")
3445 def base_TransferDataFromWindow(*args
, **kw
):
3446 return PyPanel
.TransferDataFromWindow(*args
, **kw
)
3447 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3448 "Please use PyPanel.TransferDataFromWindow instead.")
3450 def base_Validate(*args
, **kw
):
3451 return PyPanel
.Validate(*args
, **kw
)
3452 base_Validate
= wx
._deprecated
(base_Validate
,
3453 "Please use PyPanel.Validate instead.")
3455 def base_AcceptsFocus(*args
, **kw
):
3456 return PyPanel
.AcceptsFocus(*args
, **kw
)
3457 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3458 "Please use PyPanel.AcceptsFocus instead.")
3460 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3461 return PyPanel
.AcceptsFocusFromKeyboard(*args
, **kw
)
3462 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3463 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
3465 def base_GetMaxSize(*args
, **kw
):
3466 return PyPanel
.GetMaxSize(*args
, **kw
)
3467 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3468 "Please use PyPanel.GetMaxSize instead.")
3470 def base_AddChild(*args
, **kw
):
3471 return PyPanel
.AddChild(*args
, **kw
)
3472 base_AddChild
= wx
._deprecated
(base_AddChild
,
3473 "Please use PyPanel.AddChild instead.")
3475 def base_RemoveChild(*args
, **kw
):
3476 return PyPanel
.RemoveChild(*args
, **kw
)
3477 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3478 "Please use PyPanel.RemoveChild instead.")
3480 def base_ShouldInheritColours(*args
, **kw
):
3481 return PyPanel
.ShouldInheritColours(*args
, **kw
)
3482 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3483 "Please use PyPanel.ShouldInheritColours instead.")
3485 def base_GetDefaultAttributes(*args
, **kw
):
3486 return PyPanel
.GetDefaultAttributes(*args
, **kw
)
3487 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3488 "Please use PyPanel.GetDefaultAttributes instead.")
3490 def base_OnInternalIdle(*args
, **kw
):
3491 return PyPanel
.OnInternalIdle(*args
, **kw
)
3492 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3493 "Please use PyPanel.OnInternalIdle instead.")
3495 PyPanel_swigregister
= _windows_
.PyPanel_swigregister
3496 PyPanel_swigregister(PyPanel
)
3498 def PrePyPanel(*args
, **kwargs
):
3499 """PrePyPanel() -> PyPanel"""
3500 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3503 class PyScrolledWindow(ScrolledWindow
):
3504 """Proxy of C++ PyScrolledWindow class"""
3505 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3506 __repr__
= _swig_repr
3507 def __init__(self
, *args
, **kwargs
):
3509 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3510 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3512 _windows_
.PyScrolledWindow_swiginit(self
,_windows_
.new_PyScrolledWindow(*args
, **kwargs
))
3513 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3515 def _setCallbackInfo(*args
, **kwargs
):
3516 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3517 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3519 def SetBestSize(*args
, **kwargs
):
3520 """SetBestSize(self, Size size)"""
3521 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3523 def DoEraseBackground(*args
, **kwargs
):
3524 """DoEraseBackground(self, DC dc) -> bool"""
3525 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3527 def DoMoveWindow(*args
, **kwargs
):
3528 """DoMoveWindow(self, int x, int y, int width, int height)"""
3529 return _windows_
.PyScrolledWindow_DoMoveWindow(*args
, **kwargs
)
3531 def DoSetSize(*args
, **kwargs
):
3532 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3533 return _windows_
.PyScrolledWindow_DoSetSize(*args
, **kwargs
)
3535 def DoSetClientSize(*args
, **kwargs
):
3536 """DoSetClientSize(self, int width, int height)"""
3537 return _windows_
.PyScrolledWindow_DoSetClientSize(*args
, **kwargs
)
3539 def DoSetVirtualSize(*args
, **kwargs
):
3540 """DoSetVirtualSize(self, int x, int y)"""
3541 return _windows_
.PyScrolledWindow_DoSetVirtualSize(*args
, **kwargs
)
3543 def DoGetSize(*args
, **kwargs
):
3544 """DoGetSize() -> (width, height)"""
3545 return _windows_
.PyScrolledWindow_DoGetSize(*args
, **kwargs
)
3547 def DoGetClientSize(*args
, **kwargs
):
3548 """DoGetClientSize() -> (width, height)"""
3549 return _windows_
.PyScrolledWindow_DoGetClientSize(*args
, **kwargs
)
3551 def DoGetPosition(*args
, **kwargs
):
3552 """DoGetPosition() -> (x,y)"""
3553 return _windows_
.PyScrolledWindow_DoGetPosition(*args
, **kwargs
)
3555 def DoGetVirtualSize(*args
, **kwargs
):
3556 """DoGetVirtualSize(self) -> Size"""
3557 return _windows_
.PyScrolledWindow_DoGetVirtualSize(*args
, **kwargs
)
3559 def DoGetBestSize(*args
, **kwargs
):
3560 """DoGetBestSize(self) -> Size"""
3561 return _windows_
.PyScrolledWindow_DoGetBestSize(*args
, **kwargs
)
3563 def GetDefaultAttributes(*args
, **kwargs
):
3564 """GetDefaultAttributes(self) -> VisualAttributes"""
3565 return _windows_
.PyScrolledWindow_GetDefaultAttributes(*args
, **kwargs
)
3567 def OnInternalIdle(*args
, **kwargs
):
3568 """OnInternalIdle(self)"""
3569 return _windows_
.PyScrolledWindow_OnInternalIdle(*args
, **kwargs
)
3571 def base_DoMoveWindow(*args
, **kw
):
3572 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
3573 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3574 "Please use PyScrolledWindow.DoMoveWindow instead.")
3576 def base_DoSetSize(*args
, **kw
):
3577 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
3578 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3579 "Please use PyScrolledWindow.DoSetSize instead.")
3581 def base_DoSetClientSize(*args
, **kw
):
3582 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
3583 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3584 "Please use PyScrolledWindow.DoSetClientSize instead.")
3586 def base_DoSetVirtualSize(*args
, **kw
):
3587 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
3588 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3589 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
3591 def base_DoGetSize(*args
, **kw
):
3592 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
3593 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3594 "Please use PyScrolledWindow.DoGetSize instead.")
3596 def base_DoGetClientSize(*args
, **kw
):
3597 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
3598 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3599 "Please use PyScrolledWindow.DoGetClientSize instead.")
3601 def base_DoGetPosition(*args
, **kw
):
3602 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
3603 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3604 "Please use PyScrolledWindow.DoGetPosition instead.")
3606 def base_DoGetVirtualSize(*args
, **kw
):
3607 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
3608 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3609 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
3611 def base_DoGetBestSize(*args
, **kw
):
3612 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
3613 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3614 "Please use PyScrolledWindow.DoGetBestSize instead.")
3616 def base_InitDialog(*args
, **kw
):
3617 return PyScrolledWindow
.InitDialog(*args
, **kw
)
3618 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3619 "Please use PyScrolledWindow.InitDialog instead.")
3621 def base_TransferDataToWindow(*args
, **kw
):
3622 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
3623 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3624 "Please use PyScrolledWindow.TransferDataToWindow instead.")
3626 def base_TransferDataFromWindow(*args
, **kw
):
3627 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
3628 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3629 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
3631 def base_Validate(*args
, **kw
):
3632 return PyScrolledWindow
.Validate(*args
, **kw
)
3633 base_Validate
= wx
._deprecated
(base_Validate
,
3634 "Please use PyScrolledWindow.Validate instead.")
3636 def base_AcceptsFocus(*args
, **kw
):
3637 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
3638 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3639 "Please use PyScrolledWindow.AcceptsFocus instead.")
3641 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3642 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3643 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3644 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
3646 def base_GetMaxSize(*args
, **kw
):
3647 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
3648 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3649 "Please use PyScrolledWindow.GetMaxSize instead.")
3651 def base_AddChild(*args
, **kw
):
3652 return PyScrolledWindow
.AddChild(*args
, **kw
)
3653 base_AddChild
= wx
._deprecated
(base_AddChild
,
3654 "Please use PyScrolledWindow.AddChild instead.")
3656 def base_RemoveChild(*args
, **kw
):
3657 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
3658 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3659 "Please use PyScrolledWindow.RemoveChild instead.")
3661 def base_ShouldInheritColours(*args
, **kw
):
3662 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
3663 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3664 "Please use PyScrolledWindow.ShouldInheritColours instead.")
3666 def base_GetDefaultAttributes(*args
, **kw
):
3667 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
3668 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3669 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
3671 def base_OnInternalIdle(*args
, **kw
):
3672 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
3673 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3674 "Please use PyScrolledWindow.OnInternalIdle instead.")
3676 PyScrolledWindow_swigregister
= _windows_
.PyScrolledWindow_swigregister
3677 PyScrolledWindow_swigregister(PyScrolledWindow
)
3679 def PrePyScrolledWindow(*args
, **kwargs
):
3680 """PrePyScrolledWindow() -> PyScrolledWindow"""
3681 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3684 #---------------------------------------------------------------------------
3686 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3687 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3688 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3689 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3690 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3691 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3692 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3693 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3694 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3695 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3696 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3697 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3698 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3699 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3700 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3701 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3702 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3703 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3704 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3705 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3706 class PrintData(_core
.Object
):
3707 """Proxy of C++ PrintData class"""
3708 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3709 __repr__
= _swig_repr
3710 def __init__(self
, *args
):
3712 __init__(self) -> PrintData
3713 __init__(self, PrintData data) -> PrintData
3715 _windows_
.PrintData_swiginit(self
,_windows_
.new_PrintData(*args
))
3716 __swig_destroy__
= _windows_
.delete_PrintData
3717 __del__
= lambda self
: None;
3718 def GetNoCopies(*args
, **kwargs
):
3719 """GetNoCopies(self) -> int"""
3720 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3722 def GetCollate(*args
, **kwargs
):
3723 """GetCollate(self) -> bool"""
3724 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3726 def GetOrientation(*args
, **kwargs
):
3727 """GetOrientation(self) -> int"""
3728 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3730 def Ok(*args
, **kwargs
):
3731 """Ok(self) -> bool"""
3732 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3734 def GetPrinterName(*args
, **kwargs
):
3735 """GetPrinterName(self) -> String"""
3736 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3738 def GetColour(*args
, **kwargs
):
3739 """GetColour(self) -> bool"""
3740 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3742 def GetDuplex(*args
, **kwargs
):
3743 """GetDuplex(self) -> int"""
3744 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3746 def GetPaperId(*args
, **kwargs
):
3747 """GetPaperId(self) -> int"""
3748 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3750 def GetPaperSize(*args
, **kwargs
):
3751 """GetPaperSize(self) -> Size"""
3752 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3754 def GetQuality(*args
, **kwargs
):
3755 """GetQuality(self) -> int"""
3756 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3758 def GetBin(*args
, **kwargs
):
3759 """GetBin(self) -> int"""
3760 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3762 def GetPrintMode(*args
, **kwargs
):
3763 """GetPrintMode(self) -> int"""
3764 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3766 def SetNoCopies(*args
, **kwargs
):
3767 """SetNoCopies(self, int v)"""
3768 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3770 def SetCollate(*args
, **kwargs
):
3771 """SetCollate(self, bool flag)"""
3772 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3774 def SetOrientation(*args
, **kwargs
):
3775 """SetOrientation(self, int orient)"""
3776 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3778 def SetPrinterName(*args
, **kwargs
):
3779 """SetPrinterName(self, String name)"""
3780 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3782 def SetColour(*args
, **kwargs
):
3783 """SetColour(self, bool colour)"""
3784 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3786 def SetDuplex(*args
, **kwargs
):
3787 """SetDuplex(self, int duplex)"""
3788 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3790 def SetPaperId(*args
, **kwargs
):
3791 """SetPaperId(self, int sizeId)"""
3792 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3794 def SetPaperSize(*args
, **kwargs
):
3795 """SetPaperSize(self, Size sz)"""
3796 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3798 def SetQuality(*args
, **kwargs
):
3799 """SetQuality(self, int quality)"""
3800 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3802 def SetBin(*args
, **kwargs
):
3803 """SetBin(self, int bin)"""
3804 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3806 def SetPrintMode(*args
, **kwargs
):
3807 """SetPrintMode(self, int printMode)"""
3808 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3810 def GetFilename(*args
, **kwargs
):
3811 """GetFilename(self) -> String"""
3812 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3814 def SetFilename(*args
, **kwargs
):
3815 """SetFilename(self, String filename)"""
3816 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3818 def __nonzero__(self
): return self
.Ok()
3819 def GetPrivData(*args
, **kwargs
):
3820 """GetPrivData(self) -> PyObject"""
3821 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
3823 def SetPrivData(*args
, **kwargs
):
3824 """SetPrivData(self, PyObject data)"""
3825 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
3827 PrintData_swigregister
= _windows_
.PrintData_swigregister
3828 PrintData_swigregister(PrintData
)
3829 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3830 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3832 class PageSetupDialogData(_core
.Object
):
3833 """Proxy of C++ PageSetupDialogData class"""
3834 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3835 __repr__
= _swig_repr
3836 def __init__(self
, *args
):
3838 __init__(self) -> PageSetupDialogData
3839 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3840 __init__(self, PrintData data) -> PageSetupDialogData
3842 _windows_
.PageSetupDialogData_swiginit(self
,_windows_
.new_PageSetupDialogData(*args
))
3843 __swig_destroy__
= _windows_
.delete_PageSetupDialogData
3844 __del__
= lambda self
: None;
3845 def EnableHelp(*args
, **kwargs
):
3846 """EnableHelp(self, bool flag)"""
3847 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3849 def EnableMargins(*args
, **kwargs
):
3850 """EnableMargins(self, bool flag)"""
3851 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3853 def EnableOrientation(*args
, **kwargs
):
3854 """EnableOrientation(self, bool flag)"""
3855 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3857 def EnablePaper(*args
, **kwargs
):
3858 """EnablePaper(self, bool flag)"""
3859 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3861 def EnablePrinter(*args
, **kwargs
):
3862 """EnablePrinter(self, bool flag)"""
3863 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3865 def GetDefaultMinMargins(*args
, **kwargs
):
3866 """GetDefaultMinMargins(self) -> bool"""
3867 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3869 def GetEnableMargins(*args
, **kwargs
):
3870 """GetEnableMargins(self) -> bool"""
3871 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3873 def GetEnableOrientation(*args
, **kwargs
):
3874 """GetEnableOrientation(self) -> bool"""
3875 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3877 def GetEnablePaper(*args
, **kwargs
):
3878 """GetEnablePaper(self) -> bool"""
3879 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3881 def GetEnablePrinter(*args
, **kwargs
):
3882 """GetEnablePrinter(self) -> bool"""
3883 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3885 def GetEnableHelp(*args
, **kwargs
):
3886 """GetEnableHelp(self) -> bool"""
3887 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3889 def GetDefaultInfo(*args
, **kwargs
):
3890 """GetDefaultInfo(self) -> bool"""
3891 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3893 def GetMarginTopLeft(*args
, **kwargs
):
3894 """GetMarginTopLeft(self) -> Point"""
3895 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3897 def GetMarginBottomRight(*args
, **kwargs
):
3898 """GetMarginBottomRight(self) -> Point"""
3899 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3901 def GetMinMarginTopLeft(*args
, **kwargs
):
3902 """GetMinMarginTopLeft(self) -> Point"""
3903 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3905 def GetMinMarginBottomRight(*args
, **kwargs
):
3906 """GetMinMarginBottomRight(self) -> Point"""
3907 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3909 def GetPaperId(*args
, **kwargs
):
3910 """GetPaperId(self) -> int"""
3911 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3913 def GetPaperSize(*args
, **kwargs
):
3914 """GetPaperSize(self) -> Size"""
3915 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3917 def GetPrintData(*args
, **kwargs
):
3918 """GetPrintData(self) -> PrintData"""
3919 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3921 def Ok(*args
, **kwargs
):
3922 """Ok(self) -> bool"""
3923 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3925 def SetDefaultInfo(*args
, **kwargs
):
3926 """SetDefaultInfo(self, bool flag)"""
3927 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3929 def SetDefaultMinMargins(*args
, **kwargs
):
3930 """SetDefaultMinMargins(self, bool flag)"""
3931 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3933 def SetMarginTopLeft(*args
, **kwargs
):
3934 """SetMarginTopLeft(self, Point pt)"""
3935 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3937 def SetMarginBottomRight(*args
, **kwargs
):
3938 """SetMarginBottomRight(self, Point pt)"""
3939 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3941 def SetMinMarginTopLeft(*args
, **kwargs
):
3942 """SetMinMarginTopLeft(self, Point pt)"""
3943 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3945 def SetMinMarginBottomRight(*args
, **kwargs
):
3946 """SetMinMarginBottomRight(self, Point pt)"""
3947 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3949 def SetPaperId(*args
, **kwargs
):
3950 """SetPaperId(self, int id)"""
3951 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3953 def SetPaperSize(*args
, **kwargs
):
3954 """SetPaperSize(self, Size size)"""
3955 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3957 def SetPrintData(*args
, **kwargs
):
3958 """SetPrintData(self, PrintData printData)"""
3959 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3961 def CalculateIdFromPaperSize(*args
, **kwargs
):
3962 """CalculateIdFromPaperSize(self)"""
3963 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
3965 def CalculatePaperSizeFromId(*args
, **kwargs
):
3966 """CalculatePaperSizeFromId(self)"""
3967 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
3969 def __nonzero__(self
): return self
.Ok()
3970 PageSetupDialogData_swigregister
= _windows_
.PageSetupDialogData_swigregister
3971 PageSetupDialogData_swigregister(PageSetupDialogData
)
3973 class PageSetupDialog(_core
.Object
):
3974 """Proxy of C++ PageSetupDialog class"""
3975 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3976 __repr__
= _swig_repr
3977 def __init__(self
, *args
, **kwargs
):
3978 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3979 _windows_
.PageSetupDialog_swiginit(self
,_windows_
.new_PageSetupDialog(*args
, **kwargs
))
3980 def GetPageSetupData(*args
, **kwargs
):
3981 """GetPageSetupData(self) -> PageSetupDialogData"""
3982 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3984 def GetPageSetupDialogData(*args
, **kwargs
):
3985 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
3986 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
3988 def ShowModal(*args
, **kwargs
):
3989 """ShowModal(self) -> int"""
3990 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3992 PageSetupDialog_swigregister
= _windows_
.PageSetupDialog_swigregister
3993 PageSetupDialog_swigregister(PageSetupDialog
)
3995 class PrintDialogData(_core
.Object
):
3996 """Proxy of C++ PrintDialogData class"""
3997 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3998 __repr__
= _swig_repr
3999 def __init__(self
, *args
):
4001 __init__(self) -> PrintDialogData
4002 __init__(self, PrintData printData) -> PrintDialogData
4003 __init__(self, PrintDialogData printData) -> PrintDialogData
4005 _windows_
.PrintDialogData_swiginit(self
,_windows_
.new_PrintDialogData(*args
))
4006 __swig_destroy__
= _windows_
.delete_PrintDialogData
4007 __del__
= lambda self
: None;
4008 def GetFromPage(*args
, **kwargs
):
4009 """GetFromPage(self) -> int"""
4010 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4012 def GetToPage(*args
, **kwargs
):
4013 """GetToPage(self) -> int"""
4014 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4016 def GetMinPage(*args
, **kwargs
):
4017 """GetMinPage(self) -> int"""
4018 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4020 def GetMaxPage(*args
, **kwargs
):
4021 """GetMaxPage(self) -> int"""
4022 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4024 def GetNoCopies(*args
, **kwargs
):
4025 """GetNoCopies(self) -> int"""
4026 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4028 def GetAllPages(*args
, **kwargs
):
4029 """GetAllPages(self) -> bool"""
4030 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4032 def GetSelection(*args
, **kwargs
):
4033 """GetSelection(self) -> bool"""
4034 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4036 def GetCollate(*args
, **kwargs
):
4037 """GetCollate(self) -> bool"""
4038 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4040 def GetPrintToFile(*args
, **kwargs
):
4041 """GetPrintToFile(self) -> bool"""
4042 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4044 def SetFromPage(*args
, **kwargs
):
4045 """SetFromPage(self, int v)"""
4046 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4048 def SetToPage(*args
, **kwargs
):
4049 """SetToPage(self, int v)"""
4050 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4052 def SetMinPage(*args
, **kwargs
):
4053 """SetMinPage(self, int v)"""
4054 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4056 def SetMaxPage(*args
, **kwargs
):
4057 """SetMaxPage(self, int v)"""
4058 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4060 def SetNoCopies(*args
, **kwargs
):
4061 """SetNoCopies(self, int v)"""
4062 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4064 def SetAllPages(*args
, **kwargs
):
4065 """SetAllPages(self, bool flag)"""
4066 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4068 def SetSelection(*args
, **kwargs
):
4069 """SetSelection(self, bool flag)"""
4070 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4072 def SetCollate(*args
, **kwargs
):
4073 """SetCollate(self, bool flag)"""
4074 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4076 def SetPrintToFile(*args
, **kwargs
):
4077 """SetPrintToFile(self, bool flag)"""
4078 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4080 def EnablePrintToFile(*args
, **kwargs
):
4081 """EnablePrintToFile(self, bool flag)"""
4082 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4084 def EnableSelection(*args
, **kwargs
):
4085 """EnableSelection(self, bool flag)"""
4086 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4088 def EnablePageNumbers(*args
, **kwargs
):
4089 """EnablePageNumbers(self, bool flag)"""
4090 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4092 def EnableHelp(*args
, **kwargs
):
4093 """EnableHelp(self, bool flag)"""
4094 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4096 def GetEnablePrintToFile(*args
, **kwargs
):
4097 """GetEnablePrintToFile(self) -> bool"""
4098 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4100 def GetEnableSelection(*args
, **kwargs
):
4101 """GetEnableSelection(self) -> bool"""
4102 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4104 def GetEnablePageNumbers(*args
, **kwargs
):
4105 """GetEnablePageNumbers(self) -> bool"""
4106 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4108 def GetEnableHelp(*args
, **kwargs
):
4109 """GetEnableHelp(self) -> bool"""
4110 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4112 def Ok(*args
, **kwargs
):
4113 """Ok(self) -> bool"""
4114 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4116 def GetPrintData(*args
, **kwargs
):
4117 """GetPrintData(self) -> PrintData"""
4118 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4120 def SetPrintData(*args
, **kwargs
):
4121 """SetPrintData(self, PrintData printData)"""
4122 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4124 def __nonzero__(self
): return self
.Ok()
4125 PrintDialogData_swigregister
= _windows_
.PrintDialogData_swigregister
4126 PrintDialogData_swigregister(PrintDialogData
)
4128 class PrintDialog(_core
.Object
):
4129 """Proxy of C++ PrintDialog class"""
4130 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4131 __repr__
= _swig_repr
4132 def __init__(self
, *args
, **kwargs
):
4133 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4134 _windows_
.PrintDialog_swiginit(self
,_windows_
.new_PrintDialog(*args
, **kwargs
))
4135 def ShowModal(*args
, **kwargs
):
4136 """ShowModal(self) -> int"""
4137 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4139 def GetPrintDialogData(*args
, **kwargs
):
4140 """GetPrintDialogData(self) -> PrintDialogData"""
4141 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4143 def GetPrintData(*args
, **kwargs
):
4144 """GetPrintData(self) -> PrintData"""
4145 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4147 def GetPrintDC(*args
, **kwargs
):
4148 """GetPrintDC(self) -> DC"""
4149 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4151 PrintDialog_swigregister
= _windows_
.PrintDialog_swigregister
4152 PrintDialog_swigregister(PrintDialog
)
4154 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4155 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4156 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4157 class Printer(_core
.Object
):
4158 """Proxy of C++ Printer class"""
4159 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4160 __repr__
= _swig_repr
4161 def __init__(self
, *args
, **kwargs
):
4162 """__init__(self, PrintDialogData data=None) -> Printer"""
4163 _windows_
.Printer_swiginit(self
,_windows_
.new_Printer(*args
, **kwargs
))
4164 __swig_destroy__
= _windows_
.delete_Printer
4165 __del__
= lambda self
: None;
4166 def CreateAbortWindow(*args
, **kwargs
):
4167 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4168 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4170 def ReportError(*args
, **kwargs
):
4171 """ReportError(self, Window parent, Printout printout, String message)"""
4172 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4174 def Setup(*args
, **kwargs
):
4175 """Setup(self, Window parent) -> bool"""
4176 return _windows_
.Printer_Setup(*args
, **kwargs
)
4178 def Print(*args
, **kwargs
):
4179 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4180 return _windows_
.Printer_Print(*args
, **kwargs
)
4182 def PrintDialog(*args
, **kwargs
):
4183 """PrintDialog(self, Window parent) -> DC"""
4184 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4186 def GetPrintDialogData(*args
, **kwargs
):
4187 """GetPrintDialogData(self) -> PrintDialogData"""
4188 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4190 def GetAbort(*args
, **kwargs
):
4191 """GetAbort(self) -> bool"""
4192 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4194 def GetLastError(*args
, **kwargs
):
4195 """GetLastError() -> int"""
4196 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4198 GetLastError
= staticmethod(GetLastError
)
4199 Printer_swigregister
= _windows_
.Printer_swigregister
4200 Printer_swigregister(Printer
)
4202 def Printer_GetLastError(*args
):
4203 """Printer_GetLastError() -> int"""
4204 return _windows_
.Printer_GetLastError(*args
)
4206 class Printout(_core
.Object
):
4207 """Proxy of C++ Printout class"""
4208 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4209 __repr__
= _swig_repr
4210 def __init__(self
, *args
, **kwargs
):
4211 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4212 _windows_
.Printout_swiginit(self
,_windows_
.new_Printout(*args
, **kwargs
))
4213 self
._setCallbackInfo
(self
, Printout
)
4215 __swig_destroy__
= _windows_
.delete_Printout
4216 __del__
= lambda self
: None;
4217 def _setCallbackInfo(*args
, **kwargs
):
4218 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4219 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4221 def GetTitle(*args
, **kwargs
):
4222 """GetTitle(self) -> String"""
4223 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4225 def GetDC(*args
, **kwargs
):
4226 """GetDC(self) -> DC"""
4227 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4229 def SetDC(*args
, **kwargs
):
4230 """SetDC(self, DC dc)"""
4231 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4233 def SetPageSizePixels(*args
, **kwargs
):
4234 """SetPageSizePixels(self, int w, int h)"""
4235 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4237 def GetPageSizePixels(*args
, **kwargs
):
4238 """GetPageSizePixels() -> (w, h)"""
4239 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4241 def SetPageSizeMM(*args
, **kwargs
):
4242 """SetPageSizeMM(self, int w, int h)"""
4243 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4245 def GetPageSizeMM(*args
, **kwargs
):
4246 """GetPageSizeMM() -> (w, h)"""
4247 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4249 def SetPPIScreen(*args
, **kwargs
):
4250 """SetPPIScreen(self, int x, int y)"""
4251 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4253 def GetPPIScreen(*args
, **kwargs
):
4254 """GetPPIScreen() -> (x,y)"""
4255 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4257 def SetPPIPrinter(*args
, **kwargs
):
4258 """SetPPIPrinter(self, int x, int y)"""
4259 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4261 def GetPPIPrinter(*args
, **kwargs
):
4262 """GetPPIPrinter() -> (x,y)"""
4263 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4265 def IsPreview(*args
, **kwargs
):
4266 """IsPreview(self) -> bool"""
4267 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4269 def SetIsPreview(*args
, **kwargs
):
4270 """SetIsPreview(self, bool p)"""
4271 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4273 def OnBeginDocument(*args
, **kwargs
):
4274 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4275 return _windows_
.Printout_OnBeginDocument(*args
, **kwargs
)
4277 def OnEndDocument(*args
, **kwargs
):
4278 """OnEndDocument(self)"""
4279 return _windows_
.Printout_OnEndDocument(*args
, **kwargs
)
4281 def OnBeginPrinting(*args
, **kwargs
):
4282 """OnBeginPrinting(self)"""
4283 return _windows_
.Printout_OnBeginPrinting(*args
, **kwargs
)
4285 def OnEndPrinting(*args
, **kwargs
):
4286 """OnEndPrinting(self)"""
4287 return _windows_
.Printout_OnEndPrinting(*args
, **kwargs
)
4289 def OnPreparePrinting(*args
, **kwargs
):
4290 """OnPreparePrinting(self)"""
4291 return _windows_
.Printout_OnPreparePrinting(*args
, **kwargs
)
4293 def HasPage(*args
, **kwargs
):
4294 """HasPage(self, int page) -> bool"""
4295 return _windows_
.Printout_HasPage(*args
, **kwargs
)
4297 def GetPageInfo(*args
, **kwargs
):
4298 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4299 return _windows_
.Printout_GetPageInfo(*args
, **kwargs
)
4301 def base_OnBeginDocument(*args
, **kw
):
4302 return Printout
.OnBeginDocument(*args
, **kw
)
4303 base_OnBeginDocument
= wx
._deprecated
(base_OnBeginDocument
,
4304 "Please use Printout.OnBeginDocument instead.")
4306 def base_OnEndDocument(*args
, **kw
):
4307 return Printout
.OnEndDocument(*args
, **kw
)
4308 base_OnEndDocument
= wx
._deprecated
(base_OnEndDocument
,
4309 "Please use Printout.OnEndDocument instead.")
4311 def base_OnBeginPrinting(*args
, **kw
):
4312 return Printout
.OnBeginPrinting(*args
, **kw
)
4313 base_OnBeginPrinting
= wx
._deprecated
(base_OnBeginPrinting
,
4314 "Please use Printout.OnBeginPrinting instead.")
4316 def base_OnEndPrinting(*args
, **kw
):
4317 return Printout
.OnEndPrinting(*args
, **kw
)
4318 base_OnEndPrinting
= wx
._deprecated
(base_OnEndPrinting
,
4319 "Please use Printout.OnEndPrinting instead.")
4321 def base_OnPreparePrinting(*args
, **kw
):
4322 return Printout
.OnPreparePrinting(*args
, **kw
)
4323 base_OnPreparePrinting
= wx
._deprecated
(base_OnPreparePrinting
,
4324 "Please use Printout.OnPreparePrinting instead.")
4326 def base_GetPageInfo(*args
, **kw
):
4327 return Printout
.GetPageInfo(*args
, **kw
)
4328 base_GetPageInfo
= wx
._deprecated
(base_GetPageInfo
,
4329 "Please use Printout.GetPageInfo instead.")
4331 Printout_swigregister
= _windows_
.Printout_swigregister
4332 Printout_swigregister(Printout
)
4334 class PreviewCanvas(ScrolledWindow
):
4335 """Proxy of C++ PreviewCanvas class"""
4336 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4337 __repr__
= _swig_repr
4338 def __init__(self
, *args
, **kwargs
):
4340 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4341 Size size=DefaultSize, long style=0,
4342 String name=PreviewCanvasNameStr) -> PreviewCanvas
4344 _windows_
.PreviewCanvas_swiginit(self
,_windows_
.new_PreviewCanvas(*args
, **kwargs
))
4345 self
._setOORInfo
(self
)
4347 PreviewCanvas_swigregister
= _windows_
.PreviewCanvas_swigregister
4348 PreviewCanvas_swigregister(PreviewCanvas
)
4350 class PreviewFrame(Frame
):
4351 """Proxy of C++ PreviewFrame class"""
4352 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4353 __repr__
= _swig_repr
4354 def __init__(self
, *args
, **kwargs
):
4356 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4357 Size size=DefaultSize,
4358 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4360 _windows_
.PreviewFrame_swiginit(self
,_windows_
.new_PreviewFrame(*args
, **kwargs
))
4361 self
._setOORInfo
(self
)
4363 def Initialize(*args
, **kwargs
):
4364 """Initialize(self)"""
4365 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4367 def CreateControlBar(*args
, **kwargs
):
4368 """CreateControlBar(self)"""
4369 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4371 def CreateCanvas(*args
, **kwargs
):
4372 """CreateCanvas(self)"""
4373 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4375 def GetControlBar(*args
, **kwargs
):
4376 """GetControlBar(self) -> PreviewControlBar"""
4377 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4379 PreviewFrame_swigregister
= _windows_
.PreviewFrame_swigregister
4380 PreviewFrame_swigregister(PreviewFrame
)
4382 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4383 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4384 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4385 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4386 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4387 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4388 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4389 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4390 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4391 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4392 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4393 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4394 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4395 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4396 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4397 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4398 class PreviewControlBar(Panel
):
4399 """Proxy of C++ PreviewControlBar class"""
4400 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4401 __repr__
= _swig_repr
4402 def __init__(self
, *args
, **kwargs
):
4404 __init__(self, PrintPreview preview, long buttons, Window parent,
4405 Point pos=DefaultPosition, Size size=DefaultSize,
4406 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4408 _windows_
.PreviewControlBar_swiginit(self
,_windows_
.new_PreviewControlBar(*args
, **kwargs
))
4409 self
._setOORInfo
(self
)
4411 def GetZoomControl(*args
, **kwargs
):
4412 """GetZoomControl(self) -> int"""
4413 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4415 def SetZoomControl(*args
, **kwargs
):
4416 """SetZoomControl(self, int zoom)"""
4417 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4419 def GetPrintPreview(*args
, **kwargs
):
4420 """GetPrintPreview(self) -> PrintPreview"""
4421 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4423 def OnNext(*args
, **kwargs
):
4425 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4427 def OnPrevious(*args
, **kwargs
):
4428 """OnPrevious(self)"""
4429 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4431 def OnFirst(*args
, **kwargs
):
4433 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4435 def OnLast(*args
, **kwargs
):
4437 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4439 def OnGoto(*args
, **kwargs
):
4441 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4443 PreviewControlBar_swigregister
= _windows_
.PreviewControlBar_swigregister
4444 PreviewControlBar_swigregister(PreviewControlBar
)
4446 class PrintPreview(_core
.Object
):
4447 """Proxy of C++ PrintPreview class"""
4448 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4449 __repr__
= _swig_repr
4450 def __init__(self
, *args
):
4452 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4453 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4455 _windows_
.PrintPreview_swiginit(self
,_windows_
.new_PrintPreview(*args
))
4456 __swig_destroy__
= _windows_
.delete_PrintPreview
4457 __del__
= lambda self
: None;
4458 def SetCurrentPage(*args
, **kwargs
):
4459 """SetCurrentPage(self, int pageNum) -> bool"""
4460 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4462 def GetCurrentPage(*args
, **kwargs
):
4463 """GetCurrentPage(self) -> int"""
4464 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4466 def SetPrintout(*args
, **kwargs
):
4467 """SetPrintout(self, Printout printout)"""
4468 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4470 def GetPrintout(*args
, **kwargs
):
4471 """GetPrintout(self) -> Printout"""
4472 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4474 def GetPrintoutForPrinting(*args
, **kwargs
):
4475 """GetPrintoutForPrinting(self) -> Printout"""
4476 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4478 def SetFrame(*args
, **kwargs
):
4479 """SetFrame(self, Frame frame)"""
4480 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4482 def SetCanvas(*args
, **kwargs
):
4483 """SetCanvas(self, PreviewCanvas canvas)"""
4484 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4486 def GetFrame(*args
, **kwargs
):
4487 """GetFrame(self) -> Frame"""
4488 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4490 def GetCanvas(*args
, **kwargs
):
4491 """GetCanvas(self) -> PreviewCanvas"""
4492 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4494 def PaintPage(*args
, **kwargs
):
4495 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4496 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4498 def DrawBlankPage(*args
, **kwargs
):
4499 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4500 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4502 def RenderPage(*args
, **kwargs
):
4503 """RenderPage(self, int pageNum) -> bool"""
4504 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4506 def AdjustScrollbars(*args
, **kwargs
):
4507 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4508 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4510 def GetPrintDialogData(*args
, **kwargs
):
4511 """GetPrintDialogData(self) -> PrintDialogData"""
4512 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4514 def SetZoom(*args
, **kwargs
):
4515 """SetZoom(self, int percent)"""
4516 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4518 def GetZoom(*args
, **kwargs
):
4519 """GetZoom(self) -> int"""
4520 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4522 def GetMaxPage(*args
, **kwargs
):
4523 """GetMaxPage(self) -> int"""
4524 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4526 def GetMinPage(*args
, **kwargs
):
4527 """GetMinPage(self) -> int"""
4528 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4530 def Ok(*args
, **kwargs
):
4531 """Ok(self) -> bool"""
4532 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4534 def SetOk(*args
, **kwargs
):
4535 """SetOk(self, bool ok)"""
4536 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4538 def Print(*args
, **kwargs
):
4539 """Print(self, bool interactive) -> bool"""
4540 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4542 def DetermineScaling(*args
, **kwargs
):
4543 """DetermineScaling(self)"""
4544 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4546 def __nonzero__(self
): return self
.Ok()
4547 PrintPreview_swigregister
= _windows_
.PrintPreview_swigregister
4548 PrintPreview_swigregister(PrintPreview
)
4550 class PyPrintPreview(PrintPreview
):
4551 """Proxy of C++ PyPrintPreview class"""
4552 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4553 __repr__
= _swig_repr
4554 def __init__(self
, *args
):
4556 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4557 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4559 _windows_
.PyPrintPreview_swiginit(self
,_windows_
.new_PyPrintPreview(*args
))
4560 self
._setCallbackInfo
(self
, PyPrintPreview
)
4562 def _setCallbackInfo(*args
, **kwargs
):
4563 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4564 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4566 def base_SetCurrentPage(*args
, **kw
):
4567 return PyPrintPreview
.SetCurrentPage(*args
, **kw
)
4568 base_SetCurrentPage
= wx
._deprecated
(base_SetCurrentPage
,
4569 "Please use PyPrintPreview.SetCurrentPage instead.")
4571 def base_PaintPage(*args
, **kw
):
4572 return PyPrintPreview
.PaintPage(*args
, **kw
)
4573 base_PaintPage
= wx
._deprecated
(base_PaintPage
,
4574 "Please use PyPrintPreview.PaintPage instead.")
4576 def base_DrawBlankPage(*args
, **kw
):
4577 return PyPrintPreview
.DrawBlankPage(*args
, **kw
)
4578 base_DrawBlankPage
= wx
._deprecated
(base_DrawBlankPage
,
4579 "Please use PyPrintPreview.DrawBlankPage instead.")
4581 def base_RenderPage(*args
, **kw
):
4582 return PyPrintPreview
.RenderPage(*args
, **kw
)
4583 base_RenderPage
= wx
._deprecated
(base_RenderPage
,
4584 "Please use PyPrintPreview.RenderPage instead.")
4586 def base_SetZoom(*args
, **kw
):
4587 return PyPrintPreview
.SetZoom(*args
, **kw
)
4588 base_SetZoom
= wx
._deprecated
(base_SetZoom
,
4589 "Please use PyPrintPreview.SetZoom instead.")
4591 def base_Print(*args
, **kw
):
4592 return PyPrintPreview
.Print(*args
, **kw
)
4593 base_Print
= wx
._deprecated
(base_Print
,
4594 "Please use PyPrintPreview.Print instead.")
4596 def base_DetermineScaling(*args
, **kw
):
4597 return PyPrintPreview
.DetermineScaling(*args
, **kw
)
4598 base_DetermineScaling
= wx
._deprecated
(base_DetermineScaling
,
4599 "Please use PyPrintPreview.DetermineScaling instead.")
4601 PyPrintPreview_swigregister
= _windows_
.PyPrintPreview_swigregister
4602 PyPrintPreview_swigregister(PyPrintPreview
)
4604 class PyPreviewFrame(PreviewFrame
):
4605 """Proxy of C++ PyPreviewFrame class"""
4606 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4607 __repr__
= _swig_repr
4608 def __init__(self
, *args
, **kwargs
):
4610 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4611 Size size=DefaultSize,
4612 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4614 _windows_
.PyPreviewFrame_swiginit(self
,_windows_
.new_PyPreviewFrame(*args
, **kwargs
))
4615 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4617 def _setCallbackInfo(*args
, **kwargs
):
4618 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4619 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4621 def SetPreviewCanvas(*args
, **kwargs
):
4622 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4623 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4625 def SetControlBar(*args
, **kwargs
):
4626 """SetControlBar(self, PreviewControlBar bar)"""
4627 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4629 def Initialize(*args
, **kwargs
):
4630 """Initialize(self)"""
4631 return _windows_
.PyPreviewFrame_Initialize(*args
, **kwargs
)
4633 def CreateCanvas(*args
, **kwargs
):
4634 """CreateCanvas(self)"""
4635 return _windows_
.PyPreviewFrame_CreateCanvas(*args
, **kwargs
)
4637 def CreateControlBar(*args
, **kwargs
):
4638 """CreateControlBar(self)"""
4639 return _windows_
.PyPreviewFrame_CreateControlBar(*args
, **kwargs
)
4641 def base_Initialize(*args
, **kw
):
4642 return PyPreviewFrame
.Initialize(*args
, **kw
)
4643 base_Initialize
= wx
._deprecated
(base_Initialize
,
4644 "Please use PyPreviewFrame.Initialize instead.")
4646 def base_CreateCanvas(*args
, **kw
):
4647 return PyPreviewFrame
.CreateCanvas(*args
, **kw
)
4648 base_CreateCanvas
= wx
._deprecated
(base_CreateCanvas
,
4649 "Please use PyPreviewFrame.CreateCanvas instead.")
4651 def base_CreateControlBar(*args
, **kw
):
4652 return PyPreviewFrame
.CreateControlBar(*args
, **kw
)
4653 base_CreateControlBar
= wx
._deprecated
(base_CreateControlBar
,
4654 "Please use PyPreviewFrame.CreateControlBar instead.")
4656 PyPreviewFrame_swigregister
= _windows_
.PyPreviewFrame_swigregister
4657 PyPreviewFrame_swigregister(PyPreviewFrame
)
4659 class PyPreviewControlBar(PreviewControlBar
):
4660 """Proxy of C++ PyPreviewControlBar class"""
4661 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4662 __repr__
= _swig_repr
4663 def __init__(self
, *args
, **kwargs
):
4665 __init__(self, PrintPreview preview, long buttons, Window parent,
4666 Point pos=DefaultPosition, Size size=DefaultSize,
4667 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4669 _windows_
.PyPreviewControlBar_swiginit(self
,_windows_
.new_PyPreviewControlBar(*args
, **kwargs
))
4670 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4672 def _setCallbackInfo(*args
, **kwargs
):
4673 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4674 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4676 def SetPrintPreview(*args
, **kwargs
):
4677 """SetPrintPreview(self, PrintPreview preview)"""
4678 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4680 def CreateButtons(*args
, **kwargs
):
4681 """CreateButtons(self)"""
4682 return _windows_
.PyPreviewControlBar_CreateButtons(*args
, **kwargs
)
4684 def SetZoomControl(*args
, **kwargs
):
4685 """SetZoomControl(self, int zoom)"""
4686 return _windows_
.PyPreviewControlBar_SetZoomControl(*args
, **kwargs
)
4688 def base_CreateButtons(*args
, **kw
):
4689 return PreviewControlBar
.CreateButtons(*args
, **kw
)
4690 base_CreateButtons
= wx
._deprecated
(base_CreateButtons
,
4691 "Please use PreviewControlBar.CreateButtons instead.")
4693 def base_SetZoomControl(*args
, **kw
):
4694 return PreviewControlBar
.SetZoomControl(*args
, **kw
)
4695 base_SetZoomControl
= wx
._deprecated
(base_SetZoomControl
,
4696 "Please use PreviewControlBar.SetZoomControl instead.")
4698 PyPreviewControlBar_swigregister
= _windows_
.PyPreviewControlBar_swigregister
4699 PyPreviewControlBar_swigregister(PyPreviewControlBar
)