1 # This file was created automatically by SWIG 1.3.27.
2 # Don't modify this file, modify the SWIG interface instead.
6 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if isinstance(value
, class_type
):
9 self
.__dict
__[name
] = value
.this
10 if hasattr(value
,"thisown"): self
.__dict
__["thisown"] = value
.thisown
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
) or (name
== "thisown"):
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 method
= class_type
.__swig
_getmethods
__.get(name
,None)
25 if method
: return method(self
)
26 raise AttributeError,name
30 _object
= types
.ObjectType
32 except AttributeError:
38 def _swig_setattr_nondynamic_method(set):
39 def set_attr(self
,name
,value
):
40 if hasattr(self
,name
) or (name
in ("this", "thisown")):
43 raise AttributeError("You cannot add attributes to %s" % self
)
49 #---------------------------------------------------------------------------
51 class Panel(_core
.Window
):
52 """Proxy of C++ Panel class"""
54 return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
55 def __init__(self
, *args
, **kwargs
):
57 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
58 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
59 String name=PanelNameStr) -> Panel
61 newobj
= _windows_
.new_Panel(*args
, **kwargs
)
62 self
.this
= newobj
.this
65 self
._setOORInfo
(self
)
67 def Create(*args
, **kwargs
):
69 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
70 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
71 String name=PanelNameStr) -> bool
73 Create the GUI part of the Window for 2-phase creation mode.
75 return _windows_
.Panel_Create(*args
, **kwargs
)
77 def InitDialog(*args
, **kwargs
):
81 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
82 to the dialog via validators.
84 return _windows_
.Panel_InitDialog(*args
, **kwargs
)
86 def SetFocus(*args
, **kwargs
):
90 Overrides `wx.Window.SetFocus`. This method uses the (undocumented)
91 mix-in class wxControlContainer which manages the focus and TAB logic
92 for controls which usually have child controls. In practice, if you
93 call this method and the panel has at least one child window, then the
94 focus will be given to the child window.
96 return _windows_
.Panel_SetFocus(*args
, **kwargs
)
98 def SetFocusIgnoringChildren(*args
, **kwargs
):
100 SetFocusIgnoringChildren(self)
102 In contrast to `SetFocus` (see above) this will set the focus to the
103 panel even of there are child windows in the panel. This is only
106 return _windows_
.Panel_SetFocusIgnoringChildren(*args
, **kwargs
)
108 def GetClassDefaultAttributes(*args
, **kwargs
):
110 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
112 Get the default attributes for this class. This is useful if you want
113 to use the same font or colour in your own control as in a standard
114 control -- which is a much better idea than hard coding specific
115 colours or fonts which might look completely out of place on the
116 user's system, especially if it uses themes.
118 The variant parameter is only relevant under Mac currently and is
119 ignore under other platforms. Under Mac, it will change the size of
120 the returned font. See `wx.Window.SetWindowVariant` for more about
123 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
125 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
127 class PanelPtr(Panel
):
128 def __init__(self
, this
):
130 if not hasattr(self
,"thisown"): self
.thisown
= 0
131 self
.__class
__ = Panel
132 _windows_
.Panel_swigregister(PanelPtr
)
134 def PrePanel(*args
, **kwargs
):
135 """PrePanel() -> Panel"""
136 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
140 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
142 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
144 Get the default attributes for this class. This is useful if you want
145 to use the same font or colour in your own control as in a standard
146 control -- which is a much better idea than hard coding specific
147 colours or fonts which might look completely out of place on the
148 user's system, especially if it uses themes.
150 The variant parameter is only relevant under Mac currently and is
151 ignore under other platforms. Under Mac, it will change the size of
152 the returned font. See `wx.Window.SetWindowVariant` for more about
155 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
157 #---------------------------------------------------------------------------
159 class ScrolledWindow(Panel
):
160 """Proxy of C++ ScrolledWindow class"""
162 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
163 def __init__(self
, *args
, **kwargs
):
165 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
166 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
167 String name=PanelNameStr) -> ScrolledWindow
169 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
170 self
.this
= newobj
.this
173 self
._setOORInfo
(self
)
175 def Create(*args
, **kwargs
):
177 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
178 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
179 String name=PanelNameStr) -> bool
181 Create the GUI part of the Window for 2-phase creation mode.
183 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
185 def SetScrollbars(*args
, **kwargs
):
187 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
188 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
190 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
192 def Scroll(*args
, **kwargs
):
193 """Scroll(self, int x, int y)"""
194 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
196 def GetScrollPageSize(*args
, **kwargs
):
197 """GetScrollPageSize(self, int orient) -> int"""
198 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
200 def SetScrollPageSize(*args
, **kwargs
):
201 """SetScrollPageSize(self, int orient, int pageSize)"""
202 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
204 def SetScrollRate(*args
, **kwargs
):
205 """SetScrollRate(self, int xstep, int ystep)"""
206 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
208 def GetScrollPixelsPerUnit(*args
, **kwargs
):
210 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
212 Get the size of one logical unit in physical units.
214 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
216 def EnableScrolling(*args
, **kwargs
):
217 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
218 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
220 def GetViewStart(*args
, **kwargs
):
222 GetViewStart() -> (x,y)
226 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
228 def SetScale(*args
, **kwargs
):
229 """SetScale(self, double xs, double ys)"""
230 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
232 def GetScaleX(*args
, **kwargs
):
233 """GetScaleX(self) -> double"""
234 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
236 def GetScaleY(*args
, **kwargs
):
237 """GetScaleY(self) -> double"""
238 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
240 def CalcScrolledPosition(*args
):
242 CalcScrolledPosition(self, Point pt) -> Point
243 CalcScrolledPosition(int x, int y) -> (sx, sy)
245 Translate between scrolled and unscrolled coordinates.
247 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
249 def CalcUnscrolledPosition(*args
):
251 CalcUnscrolledPosition(self, Point pt) -> Point
252 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
254 Translate between scrolled and unscrolled coordinates.
256 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
258 def AdjustScrollbars(*args
, **kwargs
):
259 """AdjustScrollbars(self)"""
260 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
262 def CalcScrollInc(*args
, **kwargs
):
263 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
264 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
266 def SetTargetWindow(*args
, **kwargs
):
267 """SetTargetWindow(self, Window target)"""
268 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
270 def GetTargetWindow(*args
, **kwargs
):
271 """GetTargetWindow(self) -> Window"""
272 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
274 def SetTargetRect(*args
, **kwargs
):
275 """SetTargetRect(self, Rect rect)"""
276 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
278 def GetTargetRect(*args
, **kwargs
):
279 """GetTargetRect(self) -> Rect"""
280 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
282 def DoPrepareDC(*args
, **kwargs
):
284 DoPrepareDC(self, DC dc)
286 Normally what is called by `PrepareDC`.
288 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
290 def GetClassDefaultAttributes(*args
, **kwargs
):
292 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 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
309 class ScrolledWindowPtr(ScrolledWindow
):
310 def __init__(self
, this
):
312 if not hasattr(self
,"thisown"): self
.thisown
= 0
313 self
.__class
__ = ScrolledWindow
314 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
316 def PreScrolledWindow(*args
, **kwargs
):
317 """PreScrolledWindow() -> ScrolledWindow"""
318 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
322 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
324 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
326 Get the default attributes for this class. This is useful if you want
327 to use the same font or colour in your own control as in a standard
328 control -- which is a much better idea than hard coding specific
329 colours or fonts which might look completely out of place on the
330 user's system, especially if it uses themes.
332 The variant parameter is only relevant under Mac currently and is
333 ignore under other platforms. Under Mac, it will change the size of
334 the returned font. See `wx.Window.SetWindowVariant` for more about
337 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
339 #---------------------------------------------------------------------------
341 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
342 ICONIZE
= _windows_
.ICONIZE
343 MINIMIZE
= _windows_
.MINIMIZE
344 MAXIMIZE
= _windows_
.MAXIMIZE
345 CLOSE_BOX
= _windows_
.CLOSE_BOX
346 THICK_FRAME
= _windows_
.THICK_FRAME
347 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
348 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
349 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
350 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
351 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
352 RESIZE_BOX
= _windows_
.RESIZE_BOX
353 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
354 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
355 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
356 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
357 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
358 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
359 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
360 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
361 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
362 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
363 FRAME_EX_METAL
= _windows_
.FRAME_EX_METAL
364 DIALOG_EX_METAL
= _windows_
.DIALOG_EX_METAL
365 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
366 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
367 USER_COLOURS
= _windows_
.USER_COLOURS
368 NO_3D
= _windows_
.NO_3D
369 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
370 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
371 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
372 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
373 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
374 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
375 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
376 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
377 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
378 class TopLevelWindow(_core
.Window
):
379 """Proxy of C++ TopLevelWindow class"""
380 def __init__(self
): raise RuntimeError, "No constructor defined"
382 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
383 def Maximize(*args
, **kwargs
):
384 """Maximize(self, bool maximize=True)"""
385 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
387 def Restore(*args
, **kwargs
):
389 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
391 def Iconize(*args
, **kwargs
):
392 """Iconize(self, bool iconize=True)"""
393 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
395 def IsMaximized(*args
, **kwargs
):
396 """IsMaximized(self) -> bool"""
397 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
399 def IsIconized(*args
, **kwargs
):
400 """IsIconized(self) -> bool"""
401 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
403 def GetIcon(*args
, **kwargs
):
404 """GetIcon(self) -> Icon"""
405 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
407 def SetIcon(*args
, **kwargs
):
408 """SetIcon(self, Icon icon)"""
409 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
411 def SetIcons(*args
, **kwargs
):
412 """SetIcons(self, wxIconBundle icons)"""
413 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
415 def ShowFullScreen(*args
, **kwargs
):
416 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
417 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
419 def IsFullScreen(*args
, **kwargs
):
420 """IsFullScreen(self) -> bool"""
421 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
423 def SetTitle(*args
, **kwargs
):
424 """SetTitle(self, String title)"""
425 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
427 def GetTitle(*args
, **kwargs
):
428 """GetTitle(self) -> String"""
429 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
431 def SetShape(*args
, **kwargs
):
432 """SetShape(self, Region region) -> bool"""
433 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
435 def RequestUserAttention(*args
, **kwargs
):
436 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
437 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
439 def IsActive(*args
, **kwargs
):
440 """IsActive(self) -> bool"""
441 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
443 def MacSetMetalAppearance(*args
, **kwargs
):
444 """MacSetMetalAppearance(self, bool on)"""
445 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
447 def MacGetMetalAppearance(*args
, **kwargs
):
448 """MacGetMetalAppearance(self) -> bool"""
449 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
451 def CenterOnScreen(*args
, **kwargs
):
453 CenterOnScreen(self, int dir=BOTH)
455 Center the window on screen
457 return _windows_
.TopLevelWindow_CenterOnScreen(*args
, **kwargs
)
459 CentreOnScreen
= CenterOnScreen
461 class TopLevelWindowPtr(TopLevelWindow
):
462 def __init__(self
, this
):
464 if not hasattr(self
,"thisown"): self
.thisown
= 0
465 self
.__class
__ = TopLevelWindow
466 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
467 cvar
= _windows_
.cvar
468 FrameNameStr
= cvar
.FrameNameStr
469 DialogNameStr
= cvar
.DialogNameStr
470 StatusLineNameStr
= cvar
.StatusLineNameStr
471 ToolBarNameStr
= cvar
.ToolBarNameStr
473 #---------------------------------------------------------------------------
475 class Frame(TopLevelWindow
):
476 """Proxy of C++ Frame class"""
478 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
479 def __init__(self
, *args
, **kwargs
):
481 __init__(self, Window parent, int id=-1, String title=EmptyString,
482 Point pos=DefaultPosition, Size size=DefaultSize,
483 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
485 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
486 self
.this
= newobj
.this
489 self
._setOORInfo
(self
)
491 def Create(*args
, **kwargs
):
493 Create(self, Window parent, int id=-1, String title=EmptyString,
494 Point pos=DefaultPosition, Size size=DefaultSize,
495 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
497 return _windows_
.Frame_Create(*args
, **kwargs
)
499 def GetClientAreaOrigin(*args
, **kwargs
):
501 GetClientAreaOrigin(self) -> Point
503 Get the origin of the client area of the window relative to the
504 window's top left corner (the client area may be shifted because of
505 the borders, scrollbars, other decorations...)
507 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
509 def SendSizeEvent(*args
, **kwargs
):
510 """SendSizeEvent(self)"""
511 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
513 def SetMenuBar(*args
, **kwargs
):
514 """SetMenuBar(self, MenuBar menubar)"""
515 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
517 def GetMenuBar(*args
, **kwargs
):
518 """GetMenuBar(self) -> MenuBar"""
519 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
521 def ProcessCommand(*args
, **kwargs
):
522 """ProcessCommand(self, int winid) -> bool"""
523 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
525 Command
= ProcessCommand
526 def CreateStatusBar(*args
, **kwargs
):
528 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
529 String name=StatusLineNameStr) -> StatusBar
531 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
533 def GetStatusBar(*args
, **kwargs
):
534 """GetStatusBar(self) -> StatusBar"""
535 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
537 def SetStatusBar(*args
, **kwargs
):
538 """SetStatusBar(self, StatusBar statBar)"""
539 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
541 def SetStatusText(*args
, **kwargs
):
542 """SetStatusText(self, String text, int number=0)"""
543 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
545 def SetStatusWidths(*args
, **kwargs
):
546 """SetStatusWidths(self, int widths)"""
547 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
549 def PushStatusText(*args
, **kwargs
):
550 """PushStatusText(self, String text, int number=0)"""
551 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
553 def PopStatusText(*args
, **kwargs
):
554 """PopStatusText(self, int number=0)"""
555 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
557 def SetStatusBarPane(*args
, **kwargs
):
558 """SetStatusBarPane(self, int n)"""
559 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
561 def GetStatusBarPane(*args
, **kwargs
):
562 """GetStatusBarPane(self) -> int"""
563 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
565 def CreateToolBar(*args
, **kwargs
):
566 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
567 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
569 def GetToolBar(*args
, **kwargs
):
570 """GetToolBar(self) -> wxToolBar"""
571 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
573 def SetToolBar(*args
, **kwargs
):
574 """SetToolBar(self, wxToolBar toolbar)"""
575 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
577 def DoGiveHelp(*args
, **kwargs
):
578 """DoGiveHelp(self, String text, bool show)"""
579 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
581 def DoMenuUpdates(*args
, **kwargs
):
582 """DoMenuUpdates(self, Menu menu=None)"""
583 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
585 def GetClassDefaultAttributes(*args
, **kwargs
):
587 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
589 Get the default attributes for this class. This is useful if you want
590 to use the same font or colour in your own control as in a standard
591 control -- which is a much better idea than hard coding specific
592 colours or fonts which might look completely out of place on the
593 user's system, especially if it uses themes.
595 The variant parameter is only relevant under Mac currently and is
596 ignore under other platforms. Under Mac, it will change the size of
597 the returned font. See `wx.Window.SetWindowVariant` for more about
600 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
602 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
604 class FramePtr(Frame
):
605 def __init__(self
, this
):
607 if not hasattr(self
,"thisown"): self
.thisown
= 0
608 self
.__class
__ = Frame
609 _windows_
.Frame_swigregister(FramePtr
)
611 def PreFrame(*args
, **kwargs
):
612 """PreFrame() -> Frame"""
613 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
617 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
619 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
621 Get the default attributes for this class. This is useful if you want
622 to use the same font or colour in your own control as in a standard
623 control -- which is a much better idea than hard coding specific
624 colours or fonts which might look completely out of place on the
625 user's system, especially if it uses themes.
627 The variant parameter is only relevant under Mac currently and is
628 ignore under other platforms. Under Mac, it will change the size of
629 the returned font. See `wx.Window.SetWindowVariant` for more about
632 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
634 #---------------------------------------------------------------------------
636 class Dialog(TopLevelWindow
):
637 """Proxy of C++ Dialog class"""
639 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
640 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
641 def __init__(self
, *args
, **kwargs
):
643 __init__(self, Window parent, int id=-1, String title=EmptyString,
644 Point pos=DefaultPosition, Size size=DefaultSize,
645 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
647 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
648 self
.this
= newobj
.this
651 self
._setOORInfo
(self
)
653 def Create(*args
, **kwargs
):
655 Create(self, Window parent, int id=-1, String title=EmptyString,
656 Point pos=DefaultPosition, Size size=DefaultSize,
657 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
659 return _windows_
.Dialog_Create(*args
, **kwargs
)
661 def SetReturnCode(*args
, **kwargs
):
662 """SetReturnCode(self, int returnCode)"""
663 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
665 def GetReturnCode(*args
, **kwargs
):
666 """GetReturnCode(self) -> int"""
667 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
669 def SetAffirmativeId(*args
, **kwargs
):
670 """SetAffirmativeId(self, int affirmativeId)"""
671 return _windows_
.Dialog_SetAffirmativeId(*args
, **kwargs
)
673 def GetAffirmativeId(*args
, **kwargs
):
674 """GetAffirmativeId(self) -> int"""
675 return _windows_
.Dialog_GetAffirmativeId(*args
, **kwargs
)
677 def SetEscapeId(*args
, **kwargs
):
678 """SetEscapeId(self, int escapeId)"""
679 return _windows_
.Dialog_SetEscapeId(*args
, **kwargs
)
681 def GetEscapeId(*args
, **kwargs
):
682 """GetEscapeId(self) -> int"""
683 return _windows_
.Dialog_GetEscapeId(*args
, **kwargs
)
685 def CreateTextSizer(*args
, **kwargs
):
686 """CreateTextSizer(self, String message) -> Sizer"""
687 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
689 def CreateButtonSizer(*args
, **kwargs
):
690 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
691 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
693 def CreateStdDialogButtonSizer(*args
, **kwargs
):
694 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
695 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
697 def IsModal(*args
, **kwargs
):
698 """IsModal(self) -> bool"""
699 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
701 def ShowModal(*args
, **kwargs
):
702 """ShowModal(self) -> int"""
703 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
705 def EndModal(*args
, **kwargs
):
706 """EndModal(self, int retCode)"""
707 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
709 def GetClassDefaultAttributes(*args
, **kwargs
):
711 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
713 Get the default attributes for this class. This is useful if you want
714 to use the same font or colour in your own control as in a standard
715 control -- which is a much better idea than hard coding specific
716 colours or fonts which might look completely out of place on the
717 user's system, especially if it uses themes.
719 The variant parameter is only relevant under Mac currently and is
720 ignore under other platforms. Under Mac, it will change the size of
721 the returned font. See `wx.Window.SetWindowVariant` for more about
724 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
726 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
728 class DialogPtr(Dialog
):
729 def __init__(self
, this
):
731 if not hasattr(self
,"thisown"): self
.thisown
= 0
732 self
.__class
__ = Dialog
733 _windows_
.Dialog_swigregister(DialogPtr
)
735 def PreDialog(*args
, **kwargs
):
736 """PreDialog() -> Dialog"""
737 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
741 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
743 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
745 Get the default attributes for this class. This is useful if you want
746 to use the same font or colour in your own control as in a standard
747 control -- which is a much better idea than hard coding specific
748 colours or fonts which might look completely out of place on the
749 user's system, especially if it uses themes.
751 The variant parameter is only relevant under Mac currently and is
752 ignore under other platforms. Under Mac, it will change the size of
753 the returned font. See `wx.Window.SetWindowVariant` for more about
756 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
758 #---------------------------------------------------------------------------
760 class MiniFrame(Frame
):
761 """Proxy of C++ MiniFrame class"""
763 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
764 def __init__(self
, *args
, **kwargs
):
766 __init__(self, Window parent, int id=-1, String title=EmptyString,
767 Point pos=DefaultPosition, Size size=DefaultSize,
768 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
770 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
771 self
.this
= newobj
.this
774 self
._setOORInfo
(self
)
776 def Create(*args
, **kwargs
):
778 Create(self, Window parent, int id=-1, String title=EmptyString,
779 Point pos=DefaultPosition, Size size=DefaultSize,
780 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
782 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
785 class MiniFramePtr(MiniFrame
):
786 def __init__(self
, this
):
788 if not hasattr(self
,"thisown"): self
.thisown
= 0
789 self
.__class
__ = MiniFrame
790 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
792 def PreMiniFrame(*args
, **kwargs
):
793 """PreMiniFrame() -> MiniFrame"""
794 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
798 #---------------------------------------------------------------------------
800 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
801 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
802 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
803 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
804 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
805 class SplashScreenWindow(_core
.Window
):
806 """Proxy of C++ SplashScreenWindow class"""
808 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
809 def __init__(self
, *args
, **kwargs
):
811 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
812 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
814 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
815 self
.this
= newobj
.this
818 self
._setOORInfo
(self
)
820 def SetBitmap(*args
, **kwargs
):
821 """SetBitmap(self, Bitmap bitmap)"""
822 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
824 def GetBitmap(*args
, **kwargs
):
825 """GetBitmap(self) -> Bitmap"""
826 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
829 class SplashScreenWindowPtr(SplashScreenWindow
):
830 def __init__(self
, this
):
832 if not hasattr(self
,"thisown"): self
.thisown
= 0
833 self
.__class
__ = SplashScreenWindow
834 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
836 class SplashScreen(Frame
):
837 """Proxy of C++ SplashScreen class"""
839 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
840 def __init__(self
, *args
, **kwargs
):
842 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
843 Window parent, int id=-1, Point pos=DefaultPosition,
844 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
846 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
847 self
.this
= newobj
.this
850 self
._setOORInfo
(self
)
852 def GetSplashStyle(*args
, **kwargs
):
853 """GetSplashStyle(self) -> long"""
854 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
856 def GetSplashWindow(*args
, **kwargs
):
857 """GetSplashWindow(self) -> SplashScreenWindow"""
858 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
860 def GetTimeout(*args
, **kwargs
):
861 """GetTimeout(self) -> int"""
862 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
865 class SplashScreenPtr(SplashScreen
):
866 def __init__(self
, this
):
868 if not hasattr(self
,"thisown"): self
.thisown
= 0
869 self
.__class
__ = SplashScreen
870 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
872 #---------------------------------------------------------------------------
874 SB_NORMAL
= _windows_
.SB_NORMAL
875 SB_FLAT
= _windows_
.SB_FLAT
876 SB_RAISED
= _windows_
.SB_RAISED
877 class StatusBar(_core
.Window
):
878 """Proxy of C++ StatusBar class"""
880 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
881 def __init__(self
, *args
, **kwargs
):
883 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
884 String name=StatusLineNameStr) -> StatusBar
886 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
887 self
.this
= newobj
.this
890 self
._setOORInfo
(self
)
892 def Create(*args
, **kwargs
):
893 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
894 return _windows_
.StatusBar_Create(*args
, **kwargs
)
896 def SetFieldsCount(*args
, **kwargs
):
897 """SetFieldsCount(self, int number=1)"""
898 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
900 def GetFieldsCount(*args
, **kwargs
):
901 """GetFieldsCount(self) -> int"""
902 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
904 def SetStatusText(*args
, **kwargs
):
905 """SetStatusText(self, String text, int number=0)"""
906 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
908 def GetStatusText(*args
, **kwargs
):
909 """GetStatusText(self, int number=0) -> String"""
910 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
912 def PushStatusText(*args
, **kwargs
):
913 """PushStatusText(self, String text, int number=0)"""
914 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
916 def PopStatusText(*args
, **kwargs
):
917 """PopStatusText(self, int number=0)"""
918 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
920 def SetStatusWidths(*args
, **kwargs
):
921 """SetStatusWidths(self, int widths)"""
922 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
924 def SetStatusStyles(*args
, **kwargs
):
925 """SetStatusStyles(self, int styles)"""
926 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
928 def GetFieldRect(*args
, **kwargs
):
929 """GetFieldRect(self, int i) -> Rect"""
930 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
932 def SetMinHeight(*args
, **kwargs
):
933 """SetMinHeight(self, int height)"""
934 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
936 def GetBorderX(*args
, **kwargs
):
937 """GetBorderX(self) -> int"""
938 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
940 def GetBorderY(*args
, **kwargs
):
941 """GetBorderY(self) -> int"""
942 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
944 def GetClassDefaultAttributes(*args
, **kwargs
):
946 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
948 Get the default attributes for this class. This is useful if you want
949 to use the same font or colour in your own control as in a standard
950 control -- which is a much better idea than hard coding specific
951 colours or fonts which might look completely out of place on the
952 user's system, especially if it uses themes.
954 The variant parameter is only relevant under Mac currently and is
955 ignore under other platforms. Under Mac, it will change the size of
956 the returned font. See `wx.Window.SetWindowVariant` for more about
959 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
961 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
963 class StatusBarPtr(StatusBar
):
964 def __init__(self
, this
):
966 if not hasattr(self
,"thisown"): self
.thisown
= 0
967 self
.__class
__ = StatusBar
968 _windows_
.StatusBar_swigregister(StatusBarPtr
)
970 def PreStatusBar(*args
, **kwargs
):
971 """PreStatusBar() -> StatusBar"""
972 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
976 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
978 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
980 Get the default attributes for this class. This is useful if you want
981 to use the same font or colour in your own control as in a standard
982 control -- which is a much better idea than hard coding specific
983 colours or fonts which might look completely out of place on the
984 user's system, especially if it uses themes.
986 The variant parameter is only relevant under Mac currently and is
987 ignore under other platforms. Under Mac, it will change the size of
988 the returned font. See `wx.Window.SetWindowVariant` for more about
991 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
993 #---------------------------------------------------------------------------
995 SP_NOBORDER
= _windows_
.SP_NOBORDER
996 SP_NOSASH
= _windows_
.SP_NOSASH
997 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
998 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
999 SP_3DSASH
= _windows_
.SP_3DSASH
1000 SP_3DBORDER
= _windows_
.SP_3DBORDER
1001 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
1002 SP_BORDER
= _windows_
.SP_BORDER
1003 SP_3D
= _windows_
.SP_3D
1004 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
1005 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
1006 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
1007 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
1008 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
1009 class SplitterWindow(_core
.Window
):
1011 wx.SplitterWindow manages up to two subwindows or panes, with an
1012 optional vertical or horizontal split which can be used with the mouse
1013 or programmatically.
1016 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1017 def __init__(self
, *args
, **kwargs
):
1019 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1020 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
1022 Constructor. Creates and shows a SplitterWindow.
1024 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1025 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
1026 self
.this
= newobj
.this
1029 self
._setOORInfo
(self
)
1031 def Create(*args
, **kwargs
):
1033 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1034 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
1036 Create the GUI part of the SplitterWindow for the 2-phase create.
1038 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
1040 def GetWindow1(*args
, **kwargs
):
1042 GetWindow1(self) -> Window
1044 Gets the only or left/top pane.
1046 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
1048 def GetWindow2(*args
, **kwargs
):
1050 GetWindow2(self) -> Window
1052 Gets the right/bottom pane.
1054 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
1056 def SetSplitMode(*args
, **kwargs
):
1058 SetSplitMode(self, int mode)
1060 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
1061 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
1064 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
1066 def GetSplitMode(*args
, **kwargs
):
1068 GetSplitMode(self) -> int
1072 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
1074 def Initialize(*args
, **kwargs
):
1076 Initialize(self, Window window)
1078 Initializes the splitter window to have one pane. This should be
1079 called if you wish to initially view only a single pane in the
1080 splitter window. The child window is shown if it is currently hidden.
1082 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1084 def SplitVertically(*args
, **kwargs
):
1086 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1088 Initializes the left and right panes of the splitter window. The
1089 child windows are shown if they are currently hidden.
1091 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1093 def SplitHorizontally(*args
, **kwargs
):
1095 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1097 Initializes the top and bottom panes of the splitter window. The
1098 child windows are shown if they are currently hidden.
1100 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1102 def Unsplit(*args
, **kwargs
):
1104 Unsplit(self, Window toRemove=None) -> bool
1106 Unsplits the window. Pass the pane to remove, or None to remove the
1107 right or bottom pane. Returns True if successful, False otherwise (the
1108 window was not split).
1110 This function will not actually delete the pane being
1111 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1112 for the desired behaviour. By default, the pane being
1113 removed is only hidden.
1115 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1117 def ReplaceWindow(*args
, **kwargs
):
1119 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1121 This function replaces one of the windows managed by the
1122 SplitterWindow with another one. It is in general better to use it
1123 instead of calling Unsplit() and then resplitting the window back
1124 because it will provoke much less flicker. It is valid to call this
1125 function whether the splitter has two windows or only one.
1127 Both parameters should be non-None and winOld must specify one of the
1128 windows managed by the splitter. If the parameters are incorrect or
1129 the window couldn't be replaced, False is returned. Otherwise the
1130 function will return True, but please notice that it will not Destroy
1131 the replaced window and you may wish to do it yourself.
1133 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1135 def UpdateSize(*args
, **kwargs
):
1139 Causes any pending sizing of the sash and child panes to take place
1142 Such resizing normally takes place in idle time, in order to wait for
1143 layout to be completed. However, this can cause unacceptable flicker
1144 as the panes are resized after the window has been shown. To work
1145 around this, you can perform window layout (for example by sending a
1146 size event to the parent window), and then call this function, before
1147 showing the top-level window.
1149 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1151 def IsSplit(*args
, **kwargs
):
1153 IsSplit(self) -> bool
1155 Is the window split?
1157 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1159 def SetSashSize(*args
, **kwargs
):
1161 SetSashSize(self, int width)
1165 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1167 def SetBorderSize(*args
, **kwargs
):
1169 SetBorderSize(self, int width)
1171 Sets the border size. Currently a NOP.
1173 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1175 def GetSashSize(*args
, **kwargs
):
1177 GetSashSize(self) -> int
1181 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1183 def GetBorderSize(*args
, **kwargs
):
1185 GetBorderSize(self) -> int
1187 Gets the border size
1189 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1191 def SetSashPosition(*args
, **kwargs
):
1193 SetSashPosition(self, int position, bool redraw=True)
1195 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1196 are resized and the sash and border are redrawn.
1198 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1200 def GetSashPosition(*args
, **kwargs
):
1202 GetSashPosition(self) -> int
1204 Returns the surrent sash position.
1206 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1208 def SetSashGravity(*args
, **kwargs
):
1210 SetSashGravity(self, double gravity)
1212 Set the sash gravity. Gravity is a floating-point factor between 0.0
1213 and 1.0 which controls position of sash while resizing the
1214 `wx.SplitterWindow`. The gravity specifies how much the left/top
1215 window will grow while resizing.
1217 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1219 def GetSashGravity(*args
, **kwargs
):
1221 GetSashGravity(self) -> double
1223 Gets the sash gravity.
1225 :see: `SetSashGravity`
1228 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1230 def SetMinimumPaneSize(*args
, **kwargs
):
1232 SetMinimumPaneSize(self, int min)
1234 Sets the minimum pane size in pixels.
1236 The default minimum pane size is zero, which means that either pane
1237 can be reduced to zero by dragging the sash, thus removing one of the
1238 panes. To prevent this behaviour (and veto out-of-range sash
1239 dragging), set a minimum size, for example 20 pixels. If the
1240 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1241 the window may be unsplit even if minimum size is non-zero.
1243 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1245 def GetMinimumPaneSize(*args
, **kwargs
):
1247 GetMinimumPaneSize(self) -> int
1249 Gets the minimum pane size in pixels.
1251 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1253 def SashHitTest(*args
, **kwargs
):
1255 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1257 Tests for x, y over the sash
1259 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1261 def SizeWindows(*args
, **kwargs
):
1267 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1269 def SetNeedUpdating(*args
, **kwargs
):
1270 """SetNeedUpdating(self, bool needUpdating)"""
1271 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1273 def GetNeedUpdating(*args
, **kwargs
):
1274 """GetNeedUpdating(self) -> bool"""
1275 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1277 def GetClassDefaultAttributes(*args
, **kwargs
):
1279 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1281 Get the default attributes for this class. This is useful if you want
1282 to use the same font or colour in your own control as in a standard
1283 control -- which is a much better idea than hard coding specific
1284 colours or fonts which might look completely out of place on the
1285 user's system, especially if it uses themes.
1287 The variant parameter is only relevant under Mac currently and is
1288 ignore under other platforms. Under Mac, it will change the size of
1289 the returned font. See `wx.Window.SetWindowVariant` for more about
1292 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1294 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1296 class SplitterWindowPtr(SplitterWindow
):
1297 def __init__(self
, this
):
1299 if not hasattr(self
,"thisown"): self
.thisown
= 0
1300 self
.__class
__ = SplitterWindow
1301 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1302 SplitterNameStr
= cvar
.SplitterNameStr
1304 def PreSplitterWindow(*args
, **kwargs
):
1306 PreSplitterWindow() -> SplitterWindow
1308 Precreate a SplitterWindow for 2-phase creation.
1310 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1314 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1316 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1318 Get the default attributes for this class. This is useful if you want
1319 to use the same font or colour in your own control as in a standard
1320 control -- which is a much better idea than hard coding specific
1321 colours or fonts which might look completely out of place on the
1322 user's system, especially if it uses themes.
1324 The variant parameter is only relevant under Mac currently and is
1325 ignore under other platforms. Under Mac, it will change the size of
1326 the returned font. See `wx.Window.SetWindowVariant` for more about
1329 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1331 class SplitterEvent(_core
.NotifyEvent
):
1332 """This class represents the events generated by a splitter control."""
1334 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1335 def __init__(self
, *args
, **kwargs
):
1337 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1339 This class represents the events generated by a splitter control.
1341 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1342 self
.this
= newobj
.this
1345 def SetSashPosition(*args
, **kwargs
):
1347 SetSashPosition(self, int pos)
1349 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1350 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1351 events, sets the the new sash position. In the case of _CHANGING
1352 events, sets the new tracking bar position so visual feedback during
1353 dragging will represent that change that will actually take place. Set
1354 to -1 from the event handler code to prevent repositioning.
1356 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1358 def GetSashPosition(*args
, **kwargs
):
1360 GetSashPosition(self) -> int
1362 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1363 and EVT_SPLITTER_SASH_POS_CHANGED events.
1365 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1367 def GetWindowBeingRemoved(*args
, **kwargs
):
1369 GetWindowBeingRemoved(self) -> Window
1371 Returns a pointer to the window being removed when a splitter window
1374 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1376 def GetX(*args
, **kwargs
):
1380 Returns the x coordinate of the double-click point in a
1381 EVT_SPLITTER_DCLICK event.
1383 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1385 def GetY(*args
, **kwargs
):
1389 Returns the y coordinate of the double-click point in a
1390 EVT_SPLITTER_DCLICK event.
1392 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1395 class SplitterEventPtr(SplitterEvent
):
1396 def __init__(self
, this
):
1398 if not hasattr(self
,"thisown"): self
.thisown
= 0
1399 self
.__class
__ = SplitterEvent
1400 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1402 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1403 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1404 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1405 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1406 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1407 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1408 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1409 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1410 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1412 #---------------------------------------------------------------------------
1414 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1415 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1416 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1417 SW_NOBORDER
= _windows_
.SW_NOBORDER
1418 SW_BORDER
= _windows_
.SW_BORDER
1419 SW_3DSASH
= _windows_
.SW_3DSASH
1420 SW_3DBORDER
= _windows_
.SW_3DBORDER
1421 SW_3D
= _windows_
.SW_3D
1422 SASH_TOP
= _windows_
.SASH_TOP
1423 SASH_RIGHT
= _windows_
.SASH_RIGHT
1424 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1425 SASH_LEFT
= _windows_
.SASH_LEFT
1426 SASH_NONE
= _windows_
.SASH_NONE
1427 class SashWindow(_core
.Window
):
1428 """Proxy of C++ SashWindow class"""
1430 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1431 def __init__(self
, *args
, **kwargs
):
1433 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1434 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1435 String name=SashNameStr) -> SashWindow
1437 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1438 self
.this
= newobj
.this
1441 self
._setOORInfo
(self
)
1443 def Create(*args
, **kwargs
):
1445 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1446 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1447 String name=SashNameStr) -> bool
1449 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1451 def SetSashVisible(*args
, **kwargs
):
1452 """SetSashVisible(self, int edge, bool sash)"""
1453 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1455 def GetSashVisible(*args
, **kwargs
):
1456 """GetSashVisible(self, int edge) -> bool"""
1457 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1459 def SetSashBorder(*args
, **kwargs
):
1460 """SetSashBorder(self, int edge, bool border)"""
1461 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1463 def HasBorder(*args
, **kwargs
):
1464 """HasBorder(self, int edge) -> bool"""
1465 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1467 def GetEdgeMargin(*args
, **kwargs
):
1468 """GetEdgeMargin(self, int edge) -> int"""
1469 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1471 def SetDefaultBorderSize(*args
, **kwargs
):
1472 """SetDefaultBorderSize(self, int width)"""
1473 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1475 def GetDefaultBorderSize(*args
, **kwargs
):
1476 """GetDefaultBorderSize(self) -> int"""
1477 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1479 def SetExtraBorderSize(*args
, **kwargs
):
1480 """SetExtraBorderSize(self, int width)"""
1481 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1483 def GetExtraBorderSize(*args
, **kwargs
):
1484 """GetExtraBorderSize(self) -> int"""
1485 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1487 def SetMinimumSizeX(*args
, **kwargs
):
1488 """SetMinimumSizeX(self, int min)"""
1489 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1491 def SetMinimumSizeY(*args
, **kwargs
):
1492 """SetMinimumSizeY(self, int min)"""
1493 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1495 def GetMinimumSizeX(*args
, **kwargs
):
1496 """GetMinimumSizeX(self) -> int"""
1497 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1499 def GetMinimumSizeY(*args
, **kwargs
):
1500 """GetMinimumSizeY(self) -> int"""
1501 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1503 def SetMaximumSizeX(*args
, **kwargs
):
1504 """SetMaximumSizeX(self, int max)"""
1505 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1507 def SetMaximumSizeY(*args
, **kwargs
):
1508 """SetMaximumSizeY(self, int max)"""
1509 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1511 def GetMaximumSizeX(*args
, **kwargs
):
1512 """GetMaximumSizeX(self) -> int"""
1513 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1515 def GetMaximumSizeY(*args
, **kwargs
):
1516 """GetMaximumSizeY(self) -> int"""
1517 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1519 def SashHitTest(*args
, **kwargs
):
1520 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1521 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1523 def SizeWindows(*args
, **kwargs
):
1524 """SizeWindows(self)"""
1525 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1528 class SashWindowPtr(SashWindow
):
1529 def __init__(self
, this
):
1531 if not hasattr(self
,"thisown"): self
.thisown
= 0
1532 self
.__class
__ = SashWindow
1533 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1534 SashNameStr
= cvar
.SashNameStr
1535 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1537 def PreSashWindow(*args
, **kwargs
):
1538 """PreSashWindow() -> SashWindow"""
1539 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1543 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1544 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1545 class SashEvent(_core
.CommandEvent
):
1546 """Proxy of C++ SashEvent class"""
1548 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1549 def __init__(self
, *args
, **kwargs
):
1550 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1551 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1552 self
.this
= newobj
.this
1555 def SetEdge(*args
, **kwargs
):
1556 """SetEdge(self, int edge)"""
1557 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1559 def GetEdge(*args
, **kwargs
):
1560 """GetEdge(self) -> int"""
1561 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1563 def SetDragRect(*args
, **kwargs
):
1564 """SetDragRect(self, Rect rect)"""
1565 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1567 def GetDragRect(*args
, **kwargs
):
1568 """GetDragRect(self) -> Rect"""
1569 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1571 def SetDragStatus(*args
, **kwargs
):
1572 """SetDragStatus(self, int status)"""
1573 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1575 def GetDragStatus(*args
, **kwargs
):
1576 """GetDragStatus(self) -> int"""
1577 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1580 class SashEventPtr(SashEvent
):
1581 def __init__(self
, this
):
1583 if not hasattr(self
,"thisown"): self
.thisown
= 0
1584 self
.__class
__ = SashEvent
1585 _windows_
.SashEvent_swigregister(SashEventPtr
)
1587 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1588 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1589 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1591 #---------------------------------------------------------------------------
1593 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1594 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1595 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1596 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1597 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1598 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1599 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1600 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1601 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1602 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1603 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1604 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1605 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1606 class QueryLayoutInfoEvent(_core
.Event
):
1607 """Proxy of C++ QueryLayoutInfoEvent class"""
1609 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1610 def __init__(self
, *args
, **kwargs
):
1611 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1612 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1613 self
.this
= newobj
.this
1616 def SetRequestedLength(*args
, **kwargs
):
1617 """SetRequestedLength(self, int length)"""
1618 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1620 def GetRequestedLength(*args
, **kwargs
):
1621 """GetRequestedLength(self) -> int"""
1622 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1624 def SetFlags(*args
, **kwargs
):
1625 """SetFlags(self, int flags)"""
1626 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1628 def GetFlags(*args
, **kwargs
):
1629 """GetFlags(self) -> int"""
1630 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1632 def SetSize(*args
, **kwargs
):
1633 """SetSize(self, Size size)"""
1634 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1636 def GetSize(*args
, **kwargs
):
1637 """GetSize(self) -> Size"""
1638 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1640 def SetOrientation(*args
, **kwargs
):
1641 """SetOrientation(self, int orient)"""
1642 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1644 def GetOrientation(*args
, **kwargs
):
1645 """GetOrientation(self) -> int"""
1646 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1648 def SetAlignment(*args
, **kwargs
):
1649 """SetAlignment(self, int align)"""
1650 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1652 def GetAlignment(*args
, **kwargs
):
1653 """GetAlignment(self) -> int"""
1654 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1657 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1658 def __init__(self
, this
):
1660 if not hasattr(self
,"thisown"): self
.thisown
= 0
1661 self
.__class
__ = QueryLayoutInfoEvent
1662 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1664 class CalculateLayoutEvent(_core
.Event
):
1665 """Proxy of C++ CalculateLayoutEvent class"""
1667 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1668 def __init__(self
, *args
, **kwargs
):
1669 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1670 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1671 self
.this
= newobj
.this
1674 def SetFlags(*args
, **kwargs
):
1675 """SetFlags(self, int flags)"""
1676 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1678 def GetFlags(*args
, **kwargs
):
1679 """GetFlags(self) -> int"""
1680 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1682 def SetRect(*args
, **kwargs
):
1683 """SetRect(self, Rect rect)"""
1684 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1686 def GetRect(*args
, **kwargs
):
1687 """GetRect(self) -> Rect"""
1688 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1691 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1692 def __init__(self
, this
):
1694 if not hasattr(self
,"thisown"): self
.thisown
= 0
1695 self
.__class
__ = CalculateLayoutEvent
1696 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1698 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1699 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1701 class SashLayoutWindow(SashWindow
):
1702 """Proxy of C++ SashLayoutWindow class"""
1704 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1705 def __init__(self
, *args
, **kwargs
):
1707 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1708 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1709 String name=SashLayoutNameStr) -> SashLayoutWindow
1711 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1712 self
.this
= newobj
.this
1715 self
._setOORInfo
(self
)
1717 def Create(*args
, **kwargs
):
1719 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1720 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1721 String name=SashLayoutNameStr) -> bool
1723 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1725 def GetAlignment(*args
, **kwargs
):
1726 """GetAlignment(self) -> int"""
1727 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1729 def GetOrientation(*args
, **kwargs
):
1730 """GetOrientation(self) -> int"""
1731 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1733 def SetAlignment(*args
, **kwargs
):
1734 """SetAlignment(self, int alignment)"""
1735 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1737 def SetDefaultSize(*args
, **kwargs
):
1738 """SetDefaultSize(self, Size size)"""
1739 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1741 def SetOrientation(*args
, **kwargs
):
1742 """SetOrientation(self, int orientation)"""
1743 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1746 class SashLayoutWindowPtr(SashLayoutWindow
):
1747 def __init__(self
, this
):
1749 if not hasattr(self
,"thisown"): self
.thisown
= 0
1750 self
.__class
__ = SashLayoutWindow
1751 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1753 def PreSashLayoutWindow(*args
, **kwargs
):
1754 """PreSashLayoutWindow() -> SashLayoutWindow"""
1755 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1759 class LayoutAlgorithm(_core
.Object
):
1760 """Proxy of C++ LayoutAlgorithm class"""
1762 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1763 def __init__(self
, *args
, **kwargs
):
1764 """__init__(self) -> LayoutAlgorithm"""
1765 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1766 self
.this
= newobj
.this
1769 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1772 if self
.thisown
: destroy(self
)
1775 def LayoutMDIFrame(*args
, **kwargs
):
1776 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1777 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1779 def LayoutFrame(*args
, **kwargs
):
1780 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1781 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1783 def LayoutWindow(*args
, **kwargs
):
1784 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1785 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1788 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1789 def __init__(self
, this
):
1791 if not hasattr(self
,"thisown"): self
.thisown
= 0
1792 self
.__class
__ = LayoutAlgorithm
1793 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1795 #---------------------------------------------------------------------------
1797 class PopupWindow(_core
.Window
):
1798 """Proxy of C++ PopupWindow class"""
1800 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1801 def __init__(self
, *args
, **kwargs
):
1802 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1803 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1804 self
.this
= newobj
.this
1807 self
._setOORInfo
(self
)
1809 def Create(*args
, **kwargs
):
1810 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1811 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1813 def Position(*args
, **kwargs
):
1814 """Position(self, Point ptOrigin, Size size)"""
1815 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1818 class PopupWindowPtr(PopupWindow
):
1819 def __init__(self
, this
):
1821 if not hasattr(self
,"thisown"): self
.thisown
= 0
1822 self
.__class
__ = PopupWindow
1823 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1825 def PrePopupWindow(*args
, **kwargs
):
1826 """PrePopupWindow() -> PopupWindow"""
1827 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1831 #---------------------------------------------------------------------------
1833 class PopupTransientWindow(PopupWindow
):
1834 """Proxy of C++ PopupTransientWindow class"""
1836 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1837 def __init__(self
, *args
, **kwargs
):
1838 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1839 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1840 self
.this
= newobj
.this
1843 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1845 def _setCallbackInfo(*args
, **kwargs
):
1846 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1847 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1849 def Popup(*args
, **kwargs
):
1850 """Popup(self, Window focus=None)"""
1851 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1853 def Dismiss(*args
, **kwargs
):
1855 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1858 class PopupTransientWindowPtr(PopupTransientWindow
):
1859 def __init__(self
, this
):
1861 if not hasattr(self
,"thisown"): self
.thisown
= 0
1862 self
.__class
__ = PopupTransientWindow
1863 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1865 def PrePopupTransientWindow(*args
, **kwargs
):
1866 """PrePopupTransientWindow() -> PopupTransientWindow"""
1867 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1871 #---------------------------------------------------------------------------
1873 class TipWindow(PopupTransientWindow
):
1874 """Proxy of C++ TipWindow class"""
1876 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1877 def __init__(self
, *args
, **kwargs
):
1878 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1879 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1880 self
.this
= newobj
.this
1883 self
._setOORInfo
(self
)
1885 def SetBoundingRect(*args
, **kwargs
):
1886 """SetBoundingRect(self, Rect rectBound)"""
1887 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1889 def Close(*args
, **kwargs
):
1893 This function simply generates a EVT_CLOSE event whose handler usually
1894 tries to close the window. It doesn't close the window itself,
1895 however. If force is False (the default) then the window's close
1896 handler will be allowed to veto the destruction of the window.
1898 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1901 class TipWindowPtr(TipWindow
):
1902 def __init__(self
, this
):
1904 if not hasattr(self
,"thisown"): self
.thisown
= 0
1905 self
.__class
__ = TipWindow
1906 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1908 #---------------------------------------------------------------------------
1910 class VScrolledWindow(Panel
):
1911 """Proxy of C++ VScrolledWindow class"""
1913 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1914 def __init__(self
, *args
, **kwargs
):
1916 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1917 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1919 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1920 self
.this
= newobj
.this
1923 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1925 def _setCallbackInfo(*args
, **kwargs
):
1926 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1927 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1929 def Create(*args
, **kwargs
):
1931 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1932 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1934 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1936 def SetLineCount(*args
, **kwargs
):
1937 """SetLineCount(self, size_t count)"""
1938 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1940 def ScrollToLine(*args
, **kwargs
):
1941 """ScrollToLine(self, size_t line) -> bool"""
1942 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1944 def ScrollLines(*args
, **kwargs
):
1946 ScrollLines(self, int lines) -> bool
1948 If the platform and window class supports it, scrolls the window by
1949 the given number of lines down, if lines is positive, or up if lines
1950 is negative. Returns True if the window was scrolled, False if it was
1951 already on top/bottom and nothing was done.
1953 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1955 def ScrollPages(*args
, **kwargs
):
1957 ScrollPages(self, int pages) -> bool
1959 If the platform and window class supports it, scrolls the window by
1960 the given number of pages down, if pages is positive, or up if pages
1961 is negative. Returns True if the window was scrolled, False if it was
1962 already on top/bottom and nothing was done.
1964 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1966 def RefreshLine(*args
, **kwargs
):
1967 """RefreshLine(self, size_t line)"""
1968 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1970 def RefreshLines(*args
, **kwargs
):
1971 """RefreshLines(self, size_t from, size_t to)"""
1972 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1974 def HitTestXY(*args
, **kwargs
):
1976 HitTestXY(self, int x, int y) -> int
1978 Test where the given (in client coords) point lies
1980 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1982 def HitTest(*args
, **kwargs
):
1984 HitTest(self, Point pt) -> int
1986 Test where the given (in client coords) point lies
1988 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1990 def RefreshAll(*args
, **kwargs
):
1991 """RefreshAll(self)"""
1992 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1994 def GetLineCount(*args
, **kwargs
):
1995 """GetLineCount(self) -> size_t"""
1996 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1998 def GetVisibleBegin(*args
, **kwargs
):
1999 """GetVisibleBegin(self) -> size_t"""
2000 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
2002 def GetVisibleEnd(*args
, **kwargs
):
2003 """GetVisibleEnd(self) -> size_t"""
2004 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
2006 def IsVisible(*args
, **kwargs
):
2007 """IsVisible(self, size_t line) -> bool"""
2008 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
2010 def GetFirstVisibleLine(*args
, **kwargs
):
2011 """GetFirstVisibleLine(self) -> size_t"""
2012 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
2014 def GetLastVisibleLine(*args
, **kwargs
):
2015 """GetLastVisibleLine(self) -> size_t"""
2016 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
2019 class VScrolledWindowPtr(VScrolledWindow
):
2020 def __init__(self
, this
):
2022 if not hasattr(self
,"thisown"): self
.thisown
= 0
2023 self
.__class
__ = VScrolledWindow
2024 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
2026 def PreVScrolledWindow(*args
, **kwargs
):
2027 """PreVScrolledWindow() -> VScrolledWindow"""
2028 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
2032 class VListBox(VScrolledWindow
):
2033 """Proxy of C++ VListBox class"""
2035 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2036 def __init__(self
, *args
, **kwargs
):
2038 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2039 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
2041 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
2042 self
.this
= newobj
.this
2045 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
2047 def _setCallbackInfo(*args
, **kwargs
):
2048 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2049 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
2051 def Create(*args
, **kwargs
):
2053 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2054 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2056 return _windows_
.VListBox_Create(*args
, **kwargs
)
2058 def GetItemCount(*args
, **kwargs
):
2059 """GetItemCount(self) -> size_t"""
2060 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
2062 def HasMultipleSelection(*args
, **kwargs
):
2063 """HasMultipleSelection(self) -> bool"""
2064 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
2066 def GetSelection(*args
, **kwargs
):
2067 """GetSelection(self) -> int"""
2068 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
2070 def IsCurrent(*args
, **kwargs
):
2071 """IsCurrent(self, size_t item) -> bool"""
2072 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
2074 def IsSelected(*args
, **kwargs
):
2075 """IsSelected(self, size_t item) -> bool"""
2076 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
2078 def GetSelectedCount(*args
, **kwargs
):
2079 """GetSelectedCount(self) -> size_t"""
2080 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
2082 def GetFirstSelected(*args
, **kwargs
):
2083 """GetFirstSelected(self) -> PyObject"""
2084 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
2086 def GetNextSelected(*args
, **kwargs
):
2087 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
2088 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
2090 def GetMargins(*args
, **kwargs
):
2091 """GetMargins(self) -> Point"""
2092 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
2094 def GetSelectionBackground(*args
, **kwargs
):
2095 """GetSelectionBackground(self) -> Colour"""
2096 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
2098 def SetItemCount(*args
, **kwargs
):
2099 """SetItemCount(self, size_t count)"""
2100 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
2102 def Clear(*args
, **kwargs
):
2104 return _windows_
.VListBox_Clear(*args
, **kwargs
)
2106 def SetSelection(*args
, **kwargs
):
2107 """SetSelection(self, int selection)"""
2108 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
2110 def Select(*args
, **kwargs
):
2111 """Select(self, size_t item, bool select=True) -> bool"""
2112 return _windows_
.VListBox_Select(*args
, **kwargs
)
2114 def SelectRange(*args
, **kwargs
):
2115 """SelectRange(self, size_t from, size_t to) -> bool"""
2116 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
2118 def Toggle(*args
, **kwargs
):
2119 """Toggle(self, size_t item)"""
2120 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
2122 def SelectAll(*args
, **kwargs
):
2123 """SelectAll(self) -> bool"""
2124 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
2126 def DeselectAll(*args
, **kwargs
):
2127 """DeselectAll(self) -> bool"""
2128 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
2130 def SetMargins(*args
, **kwargs
):
2131 """SetMargins(self, Point pt)"""
2132 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
2134 def SetMarginsXY(*args
, **kwargs
):
2135 """SetMarginsXY(self, int x, int y)"""
2136 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
2138 def SetSelectionBackground(*args
, **kwargs
):
2139 """SetSelectionBackground(self, Colour col)"""
2140 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
2143 class VListBoxPtr(VListBox
):
2144 def __init__(self
, this
):
2146 if not hasattr(self
,"thisown"): self
.thisown
= 0
2147 self
.__class
__ = VListBox
2148 _windows_
.VListBox_swigregister(VListBoxPtr
)
2149 VListBoxNameStr
= cvar
.VListBoxNameStr
2151 def PreVListBox(*args
, **kwargs
):
2152 """PreVListBox() -> VListBox"""
2153 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2157 class HtmlListBox(VListBox
):
2158 """Proxy of C++ HtmlListBox class"""
2160 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2161 def __init__(self
, *args
, **kwargs
):
2163 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2164 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2166 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2167 self
.this
= newobj
.this
2170 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2172 def _setCallbackInfo(*args
, **kwargs
):
2173 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2174 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2176 def Create(*args
, **kwargs
):
2178 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2179 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2181 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2183 def RefreshAll(*args
, **kwargs
):
2184 """RefreshAll(self)"""
2185 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2187 def SetItemCount(*args
, **kwargs
):
2188 """SetItemCount(self, size_t count)"""
2189 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2191 def GetFileSystem(*args
, **kwargs
):
2192 """GetFileSystem(self) -> FileSystem"""
2193 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2196 class HtmlListBoxPtr(HtmlListBox
):
2197 def __init__(self
, this
):
2199 if not hasattr(self
,"thisown"): self
.thisown
= 0
2200 self
.__class
__ = HtmlListBox
2201 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2203 def PreHtmlListBox(*args
, **kwargs
):
2204 """PreHtmlListBox() -> HtmlListBox"""
2205 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2209 #---------------------------------------------------------------------------
2211 class TaskBarIcon(_core
.EvtHandler
):
2212 """Proxy of C++ TaskBarIcon class"""
2214 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2215 def __init__(self
, *args
, **kwargs
):
2216 """__init__(self) -> TaskBarIcon"""
2217 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2218 self
.this
= newobj
.this
2221 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2223 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2226 if self
.thisown
: destroy(self
)
2229 def _setCallbackInfo(*args
, **kwargs
):
2230 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2231 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2233 def Destroy(*args
, **kwargs
):
2237 Deletes the C++ object this Python object is a proxy for.
2239 val
= _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2243 def IsOk(*args
, **kwargs
):
2244 """IsOk(self) -> bool"""
2245 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2247 def __nonzero__(self
): return self
.IsOk()
2248 def IsIconInstalled(*args
, **kwargs
):
2249 """IsIconInstalled(self) -> bool"""
2250 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2252 def SetIcon(*args
, **kwargs
):
2253 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2254 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2256 def RemoveIcon(*args
, **kwargs
):
2257 """RemoveIcon(self) -> bool"""
2258 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2260 def PopupMenu(*args
, **kwargs
):
2261 """PopupMenu(self, Menu menu) -> bool"""
2262 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2265 class TaskBarIconPtr(TaskBarIcon
):
2266 def __init__(self
, this
):
2268 if not hasattr(self
,"thisown"): self
.thisown
= 0
2269 self
.__class
__ = TaskBarIcon
2270 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2272 class TaskBarIconEvent(_core
.Event
):
2273 """Proxy of C++ TaskBarIconEvent class"""
2275 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2276 def __init__(self
, *args
, **kwargs
):
2277 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2278 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2279 self
.this
= newobj
.this
2283 class TaskBarIconEventPtr(TaskBarIconEvent
):
2284 def __init__(self
, this
):
2286 if not hasattr(self
,"thisown"): self
.thisown
= 0
2287 self
.__class
__ = TaskBarIconEvent
2288 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2290 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2291 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2292 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2293 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2294 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2295 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2296 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2297 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2298 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2299 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2300 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2301 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2302 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2303 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2305 #---------------------------------------------------------------------------
2307 class ColourData(_core
.Object
):
2309 This class holds a variety of information related to the colour
2310 chooser dialog, used to transfer settings and results to and from the
2314 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2315 def __init__(self
, *args
, **kwargs
):
2317 __init__(self) -> ColourData
2319 Constructor, sets default values.
2321 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2322 self
.this
= newobj
.this
2325 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2328 if self
.thisown
: destroy(self
)
2331 def GetChooseFull(*args
, **kwargs
):
2333 GetChooseFull(self) -> bool
2335 Under Windows, determines whether the Windows colour dialog will
2336 display the full dialog with custom colour selection controls. Has no
2337 meaning under other platforms. The default value is true.
2339 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2341 def GetColour(*args
, **kwargs
):
2343 GetColour(self) -> Colour
2345 Gets the colour (pre)selected by the dialog.
2347 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2349 def GetCustomColour(*args
, **kwargs
):
2351 GetCustomColour(self, int i) -> Colour
2353 Gets the i'th custom colour associated with the colour dialog. i
2354 should be an integer between 0 and 15. The default custom colours are
2355 all invalid colours.
2357 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2359 def SetChooseFull(*args
, **kwargs
):
2361 SetChooseFull(self, int flag)
2363 Under Windows, tells the Windows colour dialog to display the full
2364 dialog with custom colour selection controls. Under other platforms,
2365 has no effect. The default value is true.
2367 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2369 def SetColour(*args
, **kwargs
):
2371 SetColour(self, Colour colour)
2373 Sets the default colour for the colour dialog. The default colour is
2376 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2378 def SetCustomColour(*args
, **kwargs
):
2380 SetCustomColour(self, int i, Colour colour)
2382 Sets the i'th custom colour for the colour dialog. i should be an
2383 integer between 0 and 15. The default custom colours are all invalid colours.
2385 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2388 class ColourDataPtr(ColourData
):
2389 def __init__(self
, this
):
2391 if not hasattr(self
,"thisown"): self
.thisown
= 0
2392 self
.__class
__ = ColourData
2393 _windows_
.ColourData_swigregister(ColourDataPtr
)
2394 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2395 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2396 DirDialogNameStr
= cvar
.DirDialogNameStr
2397 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2398 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2399 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2401 class ColourDialog(Dialog
):
2402 """This class represents the colour chooser dialog."""
2404 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2405 def __init__(self
, *args
, **kwargs
):
2407 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2409 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2410 which will be copied to the colour dialog's internal ColourData
2413 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2414 self
.this
= newobj
.this
2417 self
._setOORInfo
(self
)
2419 def GetColourData(*args
, **kwargs
):
2421 GetColourData(self) -> ColourData
2423 Returns a reference to the `wx.ColourData` used by the dialog.
2425 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2428 class ColourDialogPtr(ColourDialog
):
2429 def __init__(self
, this
):
2431 if not hasattr(self
,"thisown"): self
.thisown
= 0
2432 self
.__class
__ = ColourDialog
2433 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2436 def GetColourFromUser(*args
, **kwargs
):
2438 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2439 String caption=EmptyString) -> Colour
2441 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2442 class DirDialog(Dialog
):
2444 wx.DirDialog allows the user to select a directory by browising the
2448 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2449 def __init__(self
, *args
, **kwargs
):
2451 __init__(self, Window parent, String message=DirSelectorPromptStr,
2452 String defaultPath=EmptyString, long style=0,
2453 Point pos=DefaultPosition, Size size=DefaultSize,
2454 String name=DirDialogNameStr) -> DirDialog
2456 Constructor. Use ShowModal method to show the dialog.
2458 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2459 self
.this
= newobj
.this
2462 self
._setOORInfo
(self
)
2464 def GetPath(*args
, **kwargs
):
2466 GetPath(self) -> String
2468 Returns the default or user-selected path.
2470 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2472 def GetMessage(*args
, **kwargs
):
2474 GetMessage(self) -> String
2476 Returns the message that will be displayed on the dialog.
2478 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2480 def GetStyle(*args
, **kwargs
):
2482 GetStyle(self) -> long
2484 Returns the dialog style.
2486 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2488 def SetMessage(*args
, **kwargs
):
2490 SetMessage(self, String message)
2492 Sets the message that will be displayed on the dialog.
2494 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2496 def SetPath(*args
, **kwargs
):
2498 SetPath(self, String path)
2500 Sets the default path.
2502 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2505 class DirDialogPtr(DirDialog
):
2506 def __init__(self
, this
):
2508 if not hasattr(self
,"thisown"): self
.thisown
= 0
2509 self
.__class
__ = DirDialog
2510 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2512 class FileDialog(Dialog
):
2514 wx.FileDialog allows the user to select one or more files from the
2518 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2519 def __init__(self
, *args
, **kwargs
):
2521 __init__(self, Window parent, String message=FileSelectorPromptStr,
2522 String defaultDir=EmptyString, String defaultFile=EmptyString,
2523 String wildcard=FileSelectorDefaultWildcardStr,
2524 long style=0, Point pos=DefaultPosition) -> FileDialog
2526 Constructor. Use ShowModal method to show the dialog.
2528 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2529 self
.this
= newobj
.this
2532 self
._setOORInfo
(self
)
2534 def SetMessage(*args
, **kwargs
):
2536 SetMessage(self, String message)
2538 Sets the message that will be displayed on the dialog.
2540 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2542 def SetPath(*args
, **kwargs
):
2544 SetPath(self, String path)
2546 Sets the path (the combined directory and filename that will be
2547 returned when the dialog is dismissed).
2549 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2551 def SetDirectory(*args
, **kwargs
):
2553 SetDirectory(self, String dir)
2555 Sets the default directory.
2557 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2559 def SetFilename(*args
, **kwargs
):
2561 SetFilename(self, String name)
2563 Sets the default filename.
2565 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2567 def SetWildcard(*args
, **kwargs
):
2569 SetWildcard(self, String wildCard)
2571 Sets the wildcard, which can contain multiple file types, for
2574 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2577 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2579 def SetStyle(*args
, **kwargs
):
2581 SetStyle(self, long style)
2583 Sets the dialog style.
2585 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2587 def SetFilterIndex(*args
, **kwargs
):
2589 SetFilterIndex(self, int filterIndex)
2591 Sets the default filter index, starting from zero.
2593 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2595 def GetMessage(*args
, **kwargs
):
2597 GetMessage(self) -> String
2599 Returns the message that will be displayed on the dialog.
2601 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2603 def GetPath(*args
, **kwargs
):
2605 GetPath(self) -> String
2607 Returns the full path (directory and filename) of the selected file.
2609 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2611 def GetDirectory(*args
, **kwargs
):
2613 GetDirectory(self) -> String
2615 Returns the default directory.
2617 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2619 def GetFilename(*args
, **kwargs
):
2621 GetFilename(self) -> String
2623 Returns the default filename.
2625 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2627 def GetWildcard(*args
, **kwargs
):
2629 GetWildcard(self) -> String
2631 Returns the file dialog wildcard.
2633 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2635 def GetStyle(*args
, **kwargs
):
2637 GetStyle(self) -> long
2639 Returns the dialog style.
2641 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2643 def GetFilterIndex(*args
, **kwargs
):
2645 GetFilterIndex(self) -> int
2647 Returns the index into the list of filters supplied, optionally, in
2648 the wildcard parameter. Before the dialog is shown, this is the index
2649 which will be used when the dialog is first displayed. After the
2650 dialog is shown, this is the index selected by the user.
2652 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2654 def GetFilenames(*args
, **kwargs
):
2656 GetFilenames(self) -> PyObject
2658 Returns a list of filenames chosen in the dialog. This function
2659 should only be used with the dialogs which have wx.MULTIPLE style, use
2660 GetFilename for the others.
2662 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2664 def GetPaths(*args
, **kwargs
):
2666 GetPaths(self) -> PyObject
2668 Fills the array paths with the full paths of the files chosen. This
2669 function should only be used with the dialogs which have wx.MULTIPLE
2670 style, use GetPath for the others.
2672 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2675 class FileDialogPtr(FileDialog
):
2676 def __init__(self
, this
):
2678 if not hasattr(self
,"thisown"): self
.thisown
= 0
2679 self
.__class
__ = FileDialog
2680 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2682 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2683 class MultiChoiceDialog(Dialog
):
2684 """A simple dialog with a multi selection listbox."""
2686 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2687 def __init__(self
, *args
, **kwargs
):
2689 __init__(self, Window parent, String message, String caption,
2690 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2691 Point pos=DefaultPosition) -> MultiChoiceDialog
2693 Constructor. Use the `ShowModal` method to show the dialog.
2695 :param parent: The parent window.
2696 :param message: Text to display above the list of selections.
2697 :param caption: Text to use in the title bar of the dialog.
2698 :param choices: A list of strings or unicode objects that the
2699 user is allowed to choose from.
2700 :param style: Styles to apply to the dialog. The default value is
2701 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2702 :param pos: Where to position the dialog (not used on Windows)
2706 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2707 self
.this
= newobj
.this
2710 self
._setOORInfo
(self
)
2712 def SetSelections(*args
, **kwargs
):
2714 SetSelections(List selections)
2716 Specify the items in the list that should be selected, using a list of
2717 integers. The list should specify the indexes of the items that
2720 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2722 def GetSelections(*args
, **kwargs
):
2724 GetSelections() -> [selections]
2726 Returns a list of integers representing the items that are selected.
2727 If an item is selected then its index will appear in the list.
2729 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2732 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2733 def __init__(self
, this
):
2735 if not hasattr(self
,"thisown"): self
.thisown
= 0
2736 self
.__class
__ = MultiChoiceDialog
2737 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2739 class SingleChoiceDialog(Dialog
):
2740 """A simple dialog with a single selection listbox."""
2742 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2743 def __init__(self
, *args
, **kwargs
):
2745 __init__(Window parent, String message, String caption,
2746 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2747 Point pos=DefaultPosition) -> SingleChoiceDialog
2749 Constructor. Use ShowModal method to show the dialog.
2751 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2752 self
.this
= newobj
.this
2755 self
._setOORInfo
(self
)
2757 def GetSelection(*args
, **kwargs
):
2759 GetSelection(self) -> int
2761 Get the index of teh currently selected item.
2763 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2765 def GetStringSelection(*args
, **kwargs
):
2767 GetStringSelection(self) -> String
2769 Returns the string value of the currently selected item
2771 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2773 def SetSelection(*args
, **kwargs
):
2775 SetSelection(self, int sel)
2777 Set the current selected item to sel
2779 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2782 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2783 def __init__(self
, this
):
2785 if not hasattr(self
,"thisown"): self
.thisown
= 0
2786 self
.__class
__ = SingleChoiceDialog
2787 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2789 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2790 class TextEntryDialog(Dialog
):
2791 """A dialog with text control, [ok] and [cancel] buttons"""
2793 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2794 def __init__(self
, *args
, **kwargs
):
2796 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2797 String defaultValue=EmptyString,
2798 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2800 Constructor. Use ShowModal method to show the dialog.
2802 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2803 self
.this
= newobj
.this
2806 self
._setOORInfo
(self
)
2808 def GetValue(*args
, **kwargs
):
2810 GetValue(self) -> String
2812 Returns the text that the user has entered if the user has pressed OK,
2813 or the original value if the user has pressed Cancel.
2815 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2817 def SetValue(*args
, **kwargs
):
2819 SetValue(self, String value)
2821 Sets the default text value.
2823 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2826 class TextEntryDialogPtr(TextEntryDialog
):
2827 def __init__(self
, this
):
2829 if not hasattr(self
,"thisown"): self
.thisown
= 0
2830 self
.__class
__ = TextEntryDialog
2831 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2833 class PasswordEntryDialog(TextEntryDialog
):
2834 """Proxy of C++ PasswordEntryDialog class"""
2836 return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2837 def __init__(self
, *args
, **kwargs
):
2839 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2840 String value=EmptyString,
2841 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2843 newobj
= _windows_
.new_PasswordEntryDialog(*args
, **kwargs
)
2844 self
.this
= newobj
.this
2848 class PasswordEntryDialogPtr(PasswordEntryDialog
):
2849 def __init__(self
, this
):
2851 if not hasattr(self
,"thisown"): self
.thisown
= 0
2852 self
.__class
__ = PasswordEntryDialog
2853 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr
)
2854 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2856 class FontData(_core
.Object
):
2858 This class holds a variety of information related to font dialogs and
2859 is used to transfer settings to and results from a `wx.FontDialog`.
2862 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2863 def __init__(self
, *args
, **kwargs
):
2865 __init__(self) -> FontData
2867 This class holds a variety of information related to font dialogs and
2868 is used to transfer settings to and results from a `wx.FontDialog`.
2870 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2871 self
.this
= newobj
.this
2874 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2877 if self
.thisown
: destroy(self
)
2880 def EnableEffects(*args
, **kwargs
):
2882 EnableEffects(self, bool enable)
2884 Enables or disables 'effects' under MS Windows only. This refers to
2885 the controls for manipulating colour, strikeout and underline
2886 properties. The default value is true.
2888 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2890 def GetAllowSymbols(*args
, **kwargs
):
2892 GetAllowSymbols(self) -> bool
2894 Under MS Windows, returns a flag determining whether symbol fonts can
2895 be selected. Has no effect on other platforms. The default value is
2898 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2900 def GetColour(*args
, **kwargs
):
2902 GetColour(self) -> Colour
2904 Gets the colour associated with the font dialog. The default value is
2907 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2909 def GetChosenFont(*args
, **kwargs
):
2911 GetChosenFont(self) -> Font
2913 Gets the font chosen by the user.
2915 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2917 def GetEnableEffects(*args
, **kwargs
):
2919 GetEnableEffects(self) -> bool
2921 Determines whether 'effects' are enabled under Windows.
2923 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2925 def GetInitialFont(*args
, **kwargs
):
2927 GetInitialFont(self) -> Font
2929 Gets the font that will be initially used by the font dialog. This
2930 should have previously been set by the application.
2932 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2934 def GetShowHelp(*args
, **kwargs
):
2936 GetShowHelp(self) -> bool
2938 Returns true if the Help button will be shown (Windows only). The
2939 default value is false.
2941 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2943 def SetAllowSymbols(*args
, **kwargs
):
2945 SetAllowSymbols(self, bool allowSymbols)
2947 Under MS Windows, determines whether symbol fonts can be selected. Has
2948 no effect on other platforms. The default value is true.
2950 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2952 def SetChosenFont(*args
, **kwargs
):
2954 SetChosenFont(self, Font font)
2956 Sets the font that will be returned to the user (normally for internal
2959 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2961 def SetColour(*args
, **kwargs
):
2963 SetColour(self, Colour colour)
2965 Sets the colour that will be used for the font foreground colour. The
2966 default colour is black.
2968 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2970 def SetInitialFont(*args
, **kwargs
):
2972 SetInitialFont(self, Font font)
2974 Sets the font that will be initially used by the font dialog.
2976 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2978 def SetRange(*args
, **kwargs
):
2980 SetRange(self, int min, int max)
2982 Sets the valid range for the font point size (Windows only). The
2983 default is 0, 0 (unrestricted range).
2985 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2987 def SetShowHelp(*args
, **kwargs
):
2989 SetShowHelp(self, bool showHelp)
2991 Determines whether the Help button will be displayed in the font
2992 dialog (Windows only). The default value is false.
2994 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2997 class FontDataPtr(FontData
):
2998 def __init__(self
, this
):
3000 if not hasattr(self
,"thisown"): self
.thisown
= 0
3001 self
.__class
__ = FontData
3002 _windows_
.FontData_swigregister(FontDataPtr
)
3004 class FontDialog(Dialog
):
3006 wx.FontDialog allows the user to select a system font and its attributes.
3012 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3013 def __init__(self
, *args
, **kwargs
):
3015 __init__(self, Window parent, FontData data) -> FontDialog
3017 Constructor. Pass a parent window and the `wx.FontData` object to be
3018 used to initialize the dialog controls. Call `ShowModal` to display
3019 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
3020 results with via the `wx.FontData` returned by `GetFontData`.
3022 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
3023 self
.this
= newobj
.this
3026 self
._setOORInfo
(self
)
3028 def GetFontData(*args
, **kwargs
):
3030 GetFontData(self) -> FontData
3032 Returns a reference to the internal `wx.FontData` used by the
3035 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
3038 class FontDialogPtr(FontDialog
):
3039 def __init__(self
, this
):
3041 if not hasattr(self
,"thisown"): self
.thisown
= 0
3042 self
.__class
__ = FontDialog
3043 _windows_
.FontDialog_swigregister(FontDialogPtr
)
3046 def GetFontFromUser(*args
, **kwargs
):
3047 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
3048 return _windows_
.GetFontFromUser(*args
, **kwargs
)
3049 class MessageDialog(Dialog
):
3051 This class provides a simple dialog that shows a single or multi-line
3052 message, with a choice of OK, Yes, No and/or Cancel buttons.
3055 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3056 def __init__(self
, *args
, **kwargs
):
3058 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
3059 long style=wxOK|wxCANCEL|wxCENTRE,
3060 Point pos=DefaultPosition) -> MessageDialog
3062 Constructor, use `ShowModal` to display the dialog.
3064 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
3065 self
.this
= newobj
.this
3068 self
._setOORInfo
(self
)
3071 class MessageDialogPtr(MessageDialog
):
3072 def __init__(self
, this
):
3074 if not hasattr(self
,"thisown"): self
.thisown
= 0
3075 self
.__class
__ = MessageDialog
3076 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
3078 class ProgressDialog(Frame
):
3080 A dialog that shows a short message and a progress bar. Optionally, it
3081 can display an ABORT button.
3084 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3085 def __init__(self
, *args
, **kwargs
):
3087 __init__(self, String title, String message, int maximum=100, Window parent=None,
3088 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
3090 Constructor. Creates the dialog, displays it and disables user input
3091 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
3094 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
3095 self
.this
= newobj
.this
3098 self
._setOORInfo
(self
)
3100 def Update(*args
, **kwargs
):
3102 Update(self, int value, String newmsg=EmptyString) -> bool
3104 Updates the dialog, setting the progress bar to the new value and, if
3105 given changes the message above it. The value given should be less
3106 than or equal to the maximum value given to the constructor and the
3107 dialog is closed if it is equal to the maximum. Returns True unless
3108 the Cancel button has been pressed.
3110 If false is returned, the application can either immediately destroy
3111 the dialog or ask the user for the confirmation and if the abort is
3112 not confirmed the dialog may be resumed with Resume function.
3114 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
3116 def Resume(*args
, **kwargs
):
3120 Can be used to continue with the dialog, after the user had chosen to
3123 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
3126 class ProgressDialogPtr(ProgressDialog
):
3127 def __init__(self
, this
):
3129 if not hasattr(self
,"thisown"): self
.thisown
= 0
3130 self
.__class
__ = ProgressDialog
3131 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
3133 FR_DOWN
= _windows_
.FR_DOWN
3134 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
3135 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
3136 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
3137 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
3138 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
3139 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
3140 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
3141 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
3142 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
3143 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
3144 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
3145 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
3146 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
3147 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
3148 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
3149 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
3151 # For backwards compatibility. Should they be removed?
3152 EVT_COMMAND_FIND
= EVT_FIND
3153 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
3154 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
3155 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
3156 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
3158 class FindDialogEvent(_core
.CommandEvent
):
3159 """Events for the FindReplaceDialog"""
3161 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3162 def __init__(self
, *args
, **kwargs
):
3164 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3166 Events for the FindReplaceDialog
3168 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
3169 self
.this
= newobj
.this
3172 def GetFlags(*args
, **kwargs
):
3174 GetFlags(self) -> int
3176 Get the currently selected flags: this is the combination of
3177 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3179 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
3181 def GetFindString(*args
, **kwargs
):
3183 GetFindString(self) -> String
3185 Return the string to find (never empty).
3187 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
3189 def GetReplaceString(*args
, **kwargs
):
3191 GetReplaceString(self) -> String
3193 Return the string to replace the search string with (only for replace
3194 and replace all events).
3196 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
3198 def GetDialog(*args
, **kwargs
):
3200 GetDialog(self) -> FindReplaceDialog
3202 Return the pointer to the dialog which generated this event.
3204 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
3206 def SetFlags(*args
, **kwargs
):
3207 """SetFlags(self, int flags)"""
3208 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3210 def SetFindString(*args
, **kwargs
):
3211 """SetFindString(self, String str)"""
3212 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3214 def SetReplaceString(*args
, **kwargs
):
3215 """SetReplaceString(self, String str)"""
3216 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3219 class FindDialogEventPtr(FindDialogEvent
):
3220 def __init__(self
, this
):
3222 if not hasattr(self
,"thisown"): self
.thisown
= 0
3223 self
.__class
__ = FindDialogEvent
3224 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3226 class FindReplaceData(_core
.Object
):
3228 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3229 to initialize the dialog with the default values and will keep the
3230 last values from the dialog when it is closed. It is also updated each
3231 time a `wx.FindDialogEvent` is generated so instead of using the
3232 `wx.FindDialogEvent` methods you can also directly query this object.
3234 Note that all SetXXX() methods may only be called before showing the
3235 dialog and calling them has no effect later.
3238 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3239 def __init__(self
, *args
, **kwargs
):
3241 __init__(self, int flags=0) -> FindReplaceData
3243 Constuctor initializes the flags to default value (0).
3245 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3246 self
.this
= newobj
.this
3249 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3252 if self
.thisown
: destroy(self
)
3255 def GetFindString(*args
, **kwargs
):
3257 GetFindString(self) -> String
3259 Get the string to find.
3261 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3263 def GetReplaceString(*args
, **kwargs
):
3265 GetReplaceString(self) -> String
3267 Get the replacement string.
3269 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3271 def GetFlags(*args
, **kwargs
):
3273 GetFlags(self) -> int
3275 Get the combination of flag values.
3277 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3279 def SetFlags(*args
, **kwargs
):
3281 SetFlags(self, int flags)
3283 Set the flags to use to initialize the controls of the dialog.
3285 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3287 def SetFindString(*args
, **kwargs
):
3289 SetFindString(self, String str)
3291 Set the string to find (used as initial value by the dialog).
3293 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3295 def SetReplaceString(*args
, **kwargs
):
3297 SetReplaceString(self, String str)
3299 Set the replacement string (used as initial value by the dialog).
3301 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3304 class FindReplaceDataPtr(FindReplaceData
):
3305 def __init__(self
, this
):
3307 if not hasattr(self
,"thisown"): self
.thisown
= 0
3308 self
.__class
__ = FindReplaceData
3309 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3311 class FindReplaceDialog(Dialog
):
3313 wx.FindReplaceDialog is a standard modeless dialog which is used to
3314 allow the user to search for some text (and possibly replace it with
3315 something else). The actual searching is supposed to be done in the
3316 owner window which is the parent of this dialog. Note that it means
3317 that unlike for the other standard dialogs this one must have a parent
3318 window. Also note that there is no way to use this dialog in a modal
3319 way; it is always, by design and implementation, modeless.
3322 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3323 def __init__(self
, *args
, **kwargs
):
3325 __init__(self, Window parent, FindReplaceData data, String title,
3326 int style=0) -> FindReplaceDialog
3328 Create a FindReplaceDialog. The parent and data parameters must be
3329 non-None. Use Show to display the dialog.
3331 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3332 self
.this
= newobj
.this
3335 self
._setOORInfo
(self
)
3337 def Create(*args
, **kwargs
):
3339 Create(self, Window parent, FindReplaceData data, String title,
3340 int style=0) -> bool
3342 Create the dialog, for 2-phase create.
3344 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3346 def GetData(*args
, **kwargs
):
3348 GetData(self) -> FindReplaceData
3350 Get the FindReplaceData object used by this dialog.
3352 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3354 def SetData(*args
, **kwargs
):
3356 SetData(self, FindReplaceData data)
3358 Set the FindReplaceData object used by this dialog.
3360 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3363 class FindReplaceDialogPtr(FindReplaceDialog
):
3364 def __init__(self
, this
):
3366 if not hasattr(self
,"thisown"): self
.thisown
= 0
3367 self
.__class
__ = FindReplaceDialog
3368 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3370 def PreFindReplaceDialog(*args
, **kwargs
):
3372 PreFindReplaceDialog() -> FindReplaceDialog
3374 Precreate a FindReplaceDialog for 2-phase creation
3376 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3380 #---------------------------------------------------------------------------
3382 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3383 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3384 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3385 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3386 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3387 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3388 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3389 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3390 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3391 class MDIParentFrame(Frame
):
3392 """Proxy of C++ MDIParentFrame class"""
3394 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3395 def __init__(self
, *args
, **kwargs
):
3397 __init__(self, Window parent, int id=-1, String title=EmptyString,
3398 Point pos=DefaultPosition, Size size=DefaultSize,
3399 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3400 String name=FrameNameStr) -> MDIParentFrame
3402 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3403 self
.this
= newobj
.this
3406 self
._setOORInfo
(self
)
3408 def Create(*args
, **kwargs
):
3410 Create(self, Window parent, int id=-1, String title=EmptyString,
3411 Point pos=DefaultPosition, Size size=DefaultSize,
3412 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3413 String name=FrameNameStr) -> bool
3415 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3417 def ActivateNext(*args
, **kwargs
):
3418 """ActivateNext(self)"""
3419 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3421 def ActivatePrevious(*args
, **kwargs
):
3422 """ActivatePrevious(self)"""
3423 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3425 def ArrangeIcons(*args
, **kwargs
):
3426 """ArrangeIcons(self)"""
3427 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3429 def Cascade(*args
, **kwargs
):
3431 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3433 def GetActiveChild(*args
, **kwargs
):
3434 """GetActiveChild(self) -> MDIChildFrame"""
3435 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3437 def GetClientWindow(*args
, **kwargs
):
3438 """GetClientWindow(self) -> MDIClientWindow"""
3439 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3441 def GetToolBar(*args
, **kwargs
):
3442 """GetToolBar(self) -> Window"""
3443 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3445 def GetWindowMenu(*args
, **kwargs
):
3446 """GetWindowMenu(self) -> Menu"""
3447 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3449 def SetWindowMenu(*args
, **kwargs
):
3450 """SetWindowMenu(self, Menu menu)"""
3451 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3453 def SetToolBar(*args
, **kwargs
):
3454 """SetToolBar(self, wxToolBar toolbar)"""
3455 return _windows_
.MDIParentFrame_SetToolBar(*args
, **kwargs
)
3457 def Tile(*args
, **kwargs
):
3458 """Tile(self, int orient=HORIZONTAL)"""
3459 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3462 class MDIParentFramePtr(MDIParentFrame
):
3463 def __init__(self
, this
):
3465 if not hasattr(self
,"thisown"): self
.thisown
= 0
3466 self
.__class
__ = MDIParentFrame
3467 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3469 def PreMDIParentFrame(*args
, **kwargs
):
3470 """PreMDIParentFrame() -> MDIParentFrame"""
3471 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3475 class MDIChildFrame(Frame
):
3476 """Proxy of C++ MDIChildFrame class"""
3478 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3479 def __init__(self
, *args
, **kwargs
):
3481 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3482 Point pos=DefaultPosition, Size size=DefaultSize,
3483 long style=DEFAULT_FRAME_STYLE,
3484 String name=FrameNameStr) -> MDIChildFrame
3486 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3487 self
.this
= newobj
.this
3490 self
._setOORInfo
(self
)
3492 def Create(*args
, **kwargs
):
3494 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3495 Point pos=DefaultPosition, Size size=DefaultSize,
3496 long style=DEFAULT_FRAME_STYLE,
3497 String name=FrameNameStr) -> bool
3499 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3501 def Activate(*args
, **kwargs
):
3502 """Activate(self)"""
3503 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3505 def Maximize(*args
, **kwargs
):
3506 """Maximize(self, bool maximize=True)"""
3507 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3509 def Restore(*args
, **kwargs
):
3511 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3514 class MDIChildFramePtr(MDIChildFrame
):
3515 def __init__(self
, this
):
3517 if not hasattr(self
,"thisown"): self
.thisown
= 0
3518 self
.__class
__ = MDIChildFrame
3519 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3521 def PreMDIChildFrame(*args
, **kwargs
):
3522 """PreMDIChildFrame() -> MDIChildFrame"""
3523 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3527 class MDIClientWindow(_core
.Window
):
3528 """Proxy of C++ MDIClientWindow class"""
3530 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3531 def __init__(self
, *args
, **kwargs
):
3532 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3533 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3534 self
.this
= newobj
.this
3537 self
._setOORInfo
(self
)
3539 def Create(*args
, **kwargs
):
3540 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3541 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3544 class MDIClientWindowPtr(MDIClientWindow
):
3545 def __init__(self
, this
):
3547 if not hasattr(self
,"thisown"): self
.thisown
= 0
3548 self
.__class
__ = MDIClientWindow
3549 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3551 def PreMDIClientWindow(*args
, **kwargs
):
3552 """PreMDIClientWindow() -> MDIClientWindow"""
3553 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3557 #---------------------------------------------------------------------------
3559 class PyWindow(_core
.Window
):
3560 """Proxy of C++ PyWindow class"""
3562 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3563 def __init__(self
, *args
, **kwargs
):
3565 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3566 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3568 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3569 self
.this
= newobj
.this
3572 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3574 def _setCallbackInfo(*args
, **kwargs
):
3575 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3576 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3578 def SetBestSize(*args
, **kwargs
):
3579 """SetBestSize(self, Size size)"""
3580 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3582 def DoEraseBackground(*args
, **kwargs
):
3583 """DoEraseBackground(self, DC dc) -> bool"""
3584 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3586 def DoMoveWindow(*args
, **kwargs
):
3587 """DoMoveWindow(self, int x, int y, int width, int height)"""
3588 return _windows_
.PyWindow_DoMoveWindow(*args
, **kwargs
)
3590 def DoSetSize(*args
, **kwargs
):
3591 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3592 return _windows_
.PyWindow_DoSetSize(*args
, **kwargs
)
3594 def DoSetClientSize(*args
, **kwargs
):
3595 """DoSetClientSize(self, int width, int height)"""
3596 return _windows_
.PyWindow_DoSetClientSize(*args
, **kwargs
)
3598 def DoSetVirtualSize(*args
, **kwargs
):
3599 """DoSetVirtualSize(self, int x, int y)"""
3600 return _windows_
.PyWindow_DoSetVirtualSize(*args
, **kwargs
)
3602 def DoGetSize(*args
, **kwargs
):
3603 """DoGetSize() -> (width, height)"""
3604 return _windows_
.PyWindow_DoGetSize(*args
, **kwargs
)
3606 def DoGetClientSize(*args
, **kwargs
):
3607 """DoGetClientSize() -> (width, height)"""
3608 return _windows_
.PyWindow_DoGetClientSize(*args
, **kwargs
)
3610 def DoGetPosition(*args
, **kwargs
):
3611 """DoGetPosition() -> (x,y)"""
3612 return _windows_
.PyWindow_DoGetPosition(*args
, **kwargs
)
3614 def DoGetVirtualSize(*args
, **kwargs
):
3615 """DoGetVirtualSize(self) -> Size"""
3616 return _windows_
.PyWindow_DoGetVirtualSize(*args
, **kwargs
)
3618 def DoGetBestSize(*args
, **kwargs
):
3619 """DoGetBestSize(self) -> Size"""
3620 return _windows_
.PyWindow_DoGetBestSize(*args
, **kwargs
)
3622 def InitDialog(*args
, **kwargs
):
3626 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
3627 to the dialog via validators.
3629 return _windows_
.PyWindow_InitDialog(*args
, **kwargs
)
3631 def TransferDataToWindow(*args
, **kwargs
):
3633 TransferDataToWindow(self) -> bool
3635 Transfers values to child controls from data areas specified by their
3636 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
3637 style flag set, the method will also call TransferDataToWindow() of
3640 return _windows_
.PyWindow_TransferDataToWindow(*args
, **kwargs
)
3642 def TransferDataFromWindow(*args
, **kwargs
):
3644 TransferDataFromWindow(self) -> bool
3646 Transfers values from child controls to data areas specified by their
3647 validators. Returns false if a transfer failed. If the window has
3648 wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will
3649 also call TransferDataFromWindow() of all child windows.
3651 return _windows_
.PyWindow_TransferDataFromWindow(*args
, **kwargs
)
3653 def Validate(*args
, **kwargs
):
3655 Validate(self) -> bool
3657 Validates the current values of the child controls using their
3658 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
3659 style flag set, the method will also call Validate() of all child
3660 windows. Returns false if any of the validations failed.
3662 return _windows_
.PyWindow_Validate(*args
, **kwargs
)
3664 def AcceptsFocus(*args
, **kwargs
):
3666 AcceptsFocus(self) -> bool
3668 Can this window have focus?
3670 return _windows_
.PyWindow_AcceptsFocus(*args
, **kwargs
)
3672 def AcceptsFocusFromKeyboard(*args
, **kwargs
):
3674 AcceptsFocusFromKeyboard(self) -> bool
3676 Can this window be given focus by keyboard navigation? if not, the
3677 only way to give it focus (provided it accepts it at all) is to click
3680 return _windows_
.PyWindow_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3682 def GetMaxSize(*args
, **kwargs
):
3683 """GetMaxSize(self) -> Size"""
3684 return _windows_
.PyWindow_GetMaxSize(*args
, **kwargs
)
3686 def AddChild(*args
, **kwargs
):
3688 AddChild(self, Window child)
3690 Adds a child window. This is called automatically by window creation
3691 functions so should not be required by the application programmer.
3693 return _windows_
.PyWindow_AddChild(*args
, **kwargs
)
3695 def RemoveChild(*args
, **kwargs
):
3697 RemoveChild(self, Window child)
3699 Removes a child window. This is called automatically by window
3700 deletion functions so should not be required by the application
3703 return _windows_
.PyWindow_RemoveChild(*args
, **kwargs
)
3705 def ShouldInheritColours(*args
, **kwargs
):
3707 ShouldInheritColours(self) -> bool
3709 Return true from here to allow the colours of this window to be
3710 changed by InheritAttributes, returning false forbids inheriting them
3711 from the parent window.
3713 The base class version returns false, but this method is overridden in
3714 wxControl where it returns true.
3716 return _windows_
.PyWindow_ShouldInheritColours(*args
, **kwargs
)
3718 def GetDefaultAttributes(*args
, **kwargs
):
3719 """GetDefaultAttributes(self) -> VisualAttributes"""
3720 return _windows_
.PyWindow_GetDefaultAttributes(*args
, **kwargs
)
3722 def OnInternalIdle(*args
, **kwargs
):
3723 """OnInternalIdle(self)"""
3724 return _windows_
.PyWindow_OnInternalIdle(*args
, **kwargs
)
3726 def base_DoMoveWindow(*args
, **kw
):
3727 return PyWindow
.DoMoveWindow(*args
, **kw
)
3728 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3729 "Please use PyWindow.DoMoveWindow instead.")
3731 def base_DoSetSize(*args
, **kw
):
3732 return PyWindow
.DoSetSize(*args
, **kw
)
3733 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3734 "Please use PyWindow.DoSetSize instead.")
3736 def base_DoSetClientSize(*args
, **kw
):
3737 return PyWindow
.DoSetClientSize(*args
, **kw
)
3738 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3739 "Please use PyWindow.DoSetClientSize instead.")
3741 def base_DoSetVirtualSize(*args
, **kw
):
3742 return PyWindow
.DoSetVirtualSize(*args
, **kw
)
3743 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3744 "Please use PyWindow.DoSetVirtualSize instead.")
3746 def base_DoGetSize(*args
, **kw
):
3747 return PyWindow
.DoGetSize(*args
, **kw
)
3748 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3749 "Please use PyWindow.DoGetSize instead.")
3751 def base_DoGetClientSize(*args
, **kw
):
3752 return PyWindow
.DoGetClientSize(*args
, **kw
)
3753 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3754 "Please use PyWindow.DoGetClientSize instead.")
3756 def base_DoGetPosition(*args
, **kw
):
3757 return PyWindow
.DoGetPosition(*args
, **kw
)
3758 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3759 "Please use PyWindow.DoGetPosition instead.")
3761 def base_DoGetVirtualSize(*args
, **kw
):
3762 return PyWindow
.DoGetVirtualSize(*args
, **kw
)
3763 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3764 "Please use PyWindow.DoGetVirtualSize instead.")
3766 def base_DoGetBestSize(*args
, **kw
):
3767 return PyWindow
.DoGetBestSize(*args
, **kw
)
3768 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3769 "Please use PyWindow.DoGetBestSize instead.")
3771 def base_InitDialog(*args
, **kw
):
3772 return PyWindow
.InitDialog(*args
, **kw
)
3773 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3774 "Please use PyWindow.InitDialog instead.")
3776 def base_TransferDataToWindow(*args
, **kw
):
3777 return PyWindow
.TransferDataToWindow(*args
, **kw
)
3778 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3779 "Please use PyWindow.TransferDataToWindow instead.")
3781 def base_TransferDataFromWindow(*args
, **kw
):
3782 return PyWindow
.TransferDataFromWindow(*args
, **kw
)
3783 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3784 "Please use PyWindow.TransferDataFromWindow instead.")
3786 def base_Validate(*args
, **kw
):
3787 return PyWindow
.Validate(*args
, **kw
)
3788 base_Validate
= wx
._deprecated
(base_Validate
,
3789 "Please use PyWindow.Validate instead.")
3791 def base_AcceptsFocus(*args
, **kw
):
3792 return PyWindow
.AcceptsFocus(*args
, **kw
)
3793 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3794 "Please use PyWindow.AcceptsFocus instead.")
3796 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3797 return PyWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3798 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3799 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3801 def base_GetMaxSize(*args
, **kw
):
3802 return PyWindow
.GetMaxSize(*args
, **kw
)
3803 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3804 "Please use PyWindow.GetMaxSize instead.")
3806 def base_AddChild(*args
, **kw
):
3807 return PyWindow
.AddChild(*args
, **kw
)
3808 base_AddChild
= wx
._deprecated
(base_AddChild
,
3809 "Please use PyWindow.AddChild instead.")
3811 def base_RemoveChild(*args
, **kw
):
3812 return PyWindow
.RemoveChild(*args
, **kw
)
3813 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3814 "Please use PyWindow.RemoveChild instead.")
3816 def base_ShouldInheritColours(*args
, **kw
):
3817 return PyWindow
.ShouldInheritColours(*args
, **kw
)
3818 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3819 "Please use PyWindow.ShouldInheritColours instead.")
3821 def base_GetDefaultAttributes(*args
, **kw
):
3822 return PyWindow
.GetDefaultAttributes(*args
, **kw
)
3823 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3824 "Please use PyWindow.GetDefaultAttributes instead.")
3826 def base_OnInternalIdle(*args
, **kw
):
3827 return PyWindow
.OnInternalIdle(*args
, **kw
)
3828 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3829 "Please use PyWindow.OnInternalIdle instead.")
3832 class PyWindowPtr(PyWindow
):
3833 def __init__(self
, this
):
3835 if not hasattr(self
,"thisown"): self
.thisown
= 0
3836 self
.__class
__ = PyWindow
3837 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3839 def PrePyWindow(*args
, **kwargs
):
3840 """PrePyWindow() -> PyWindow"""
3841 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3845 class PyPanel(Panel
):
3846 """Proxy of C++ PyPanel class"""
3848 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3849 def __init__(self
, *args
, **kwargs
):
3851 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3852 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3854 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3855 self
.this
= newobj
.this
3858 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3860 def _setCallbackInfo(*args
, **kwargs
):
3861 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3862 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3864 def SetBestSize(*args
, **kwargs
):
3865 """SetBestSize(self, Size size)"""
3866 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3868 def DoEraseBackground(*args
, **kwargs
):
3869 """DoEraseBackground(self, DC dc) -> bool"""
3870 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3872 def DoMoveWindow(*args
, **kwargs
):
3873 """DoMoveWindow(self, int x, int y, int width, int height)"""
3874 return _windows_
.PyPanel_DoMoveWindow(*args
, **kwargs
)
3876 def DoSetSize(*args
, **kwargs
):
3877 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3878 return _windows_
.PyPanel_DoSetSize(*args
, **kwargs
)
3880 def DoSetClientSize(*args
, **kwargs
):
3881 """DoSetClientSize(self, int width, int height)"""
3882 return _windows_
.PyPanel_DoSetClientSize(*args
, **kwargs
)
3884 def DoSetVirtualSize(*args
, **kwargs
):
3885 """DoSetVirtualSize(self, int x, int y)"""
3886 return _windows_
.PyPanel_DoSetVirtualSize(*args
, **kwargs
)
3888 def DoGetSize(*args
, **kwargs
):
3889 """DoGetSize() -> (width, height)"""
3890 return _windows_
.PyPanel_DoGetSize(*args
, **kwargs
)
3892 def DoGetClientSize(*args
, **kwargs
):
3893 """DoGetClientSize() -> (width, height)"""
3894 return _windows_
.PyPanel_DoGetClientSize(*args
, **kwargs
)
3896 def DoGetPosition(*args
, **kwargs
):
3897 """DoGetPosition() -> (x,y)"""
3898 return _windows_
.PyPanel_DoGetPosition(*args
, **kwargs
)
3900 def DoGetVirtualSize(*args
, **kwargs
):
3901 """DoGetVirtualSize(self) -> Size"""
3902 return _windows_
.PyPanel_DoGetVirtualSize(*args
, **kwargs
)
3904 def DoGetBestSize(*args
, **kwargs
):
3905 """DoGetBestSize(self) -> Size"""
3906 return _windows_
.PyPanel_DoGetBestSize(*args
, **kwargs
)
3908 def InitDialog(*args
, **kwargs
):
3912 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
3913 to the dialog via validators.
3915 return _windows_
.PyPanel_InitDialog(*args
, **kwargs
)
3917 def TransferDataToWindow(*args
, **kwargs
):
3919 TransferDataToWindow(self) -> bool
3921 Transfers values to child controls from data areas specified by their
3922 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
3923 style flag set, the method will also call TransferDataToWindow() of
3926 return _windows_
.PyPanel_TransferDataToWindow(*args
, **kwargs
)
3928 def TransferDataFromWindow(*args
, **kwargs
):
3930 TransferDataFromWindow(self) -> bool
3932 Transfers values from child controls to data areas specified by their
3933 validators. Returns false if a transfer failed. If the window has
3934 wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will
3935 also call TransferDataFromWindow() of all child windows.
3937 return _windows_
.PyPanel_TransferDataFromWindow(*args
, **kwargs
)
3939 def Validate(*args
, **kwargs
):
3941 Validate(self) -> bool
3943 Validates the current values of the child controls using their
3944 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
3945 style flag set, the method will also call Validate() of all child
3946 windows. Returns false if any of the validations failed.
3948 return _windows_
.PyPanel_Validate(*args
, **kwargs
)
3950 def AcceptsFocus(*args
, **kwargs
):
3952 AcceptsFocus(self) -> bool
3954 Can this window have focus?
3956 return _windows_
.PyPanel_AcceptsFocus(*args
, **kwargs
)
3958 def AcceptsFocusFromKeyboard(*args
, **kwargs
):
3960 AcceptsFocusFromKeyboard(self) -> bool
3962 Can this window be given focus by keyboard navigation? if not, the
3963 only way to give it focus (provided it accepts it at all) is to click
3966 return _windows_
.PyPanel_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3968 def GetMaxSize(*args
, **kwargs
):
3969 """GetMaxSize(self) -> Size"""
3970 return _windows_
.PyPanel_GetMaxSize(*args
, **kwargs
)
3972 def AddChild(*args
, **kwargs
):
3974 AddChild(self, Window child)
3976 Adds a child window. This is called automatically by window creation
3977 functions so should not be required by the application programmer.
3979 return _windows_
.PyPanel_AddChild(*args
, **kwargs
)
3981 def RemoveChild(*args
, **kwargs
):
3983 RemoveChild(self, Window child)
3985 Removes a child window. This is called automatically by window
3986 deletion functions so should not be required by the application
3989 return _windows_
.PyPanel_RemoveChild(*args
, **kwargs
)
3991 def ShouldInheritColours(*args
, **kwargs
):
3993 ShouldInheritColours(self) -> bool
3995 Return true from here to allow the colours of this window to be
3996 changed by InheritAttributes, returning false forbids inheriting them
3997 from the parent window.
3999 The base class version returns false, but this method is overridden in
4000 wxControl where it returns true.
4002 return _windows_
.PyPanel_ShouldInheritColours(*args
, **kwargs
)
4004 def GetDefaultAttributes(*args
, **kwargs
):
4005 """GetDefaultAttributes(self) -> VisualAttributes"""
4006 return _windows_
.PyPanel_GetDefaultAttributes(*args
, **kwargs
)
4008 def OnInternalIdle(*args
, **kwargs
):
4009 """OnInternalIdle(self)"""
4010 return _windows_
.PyPanel_OnInternalIdle(*args
, **kwargs
)
4012 def base_DoMoveWindow(*args
, **kw
):
4013 return PyPanel
.DoMoveWindow(*args
, **kw
)
4014 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
4015 "Please use PyPanel.DoMoveWindow instead.")
4017 def base_DoSetSize(*args
, **kw
):
4018 return PyPanel
.DoSetSize(*args
, **kw
)
4019 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
4020 "Please use PyPanel.DoSetSize instead.")
4022 def base_DoSetClientSize(*args
, **kw
):
4023 return PyPanel
.DoSetClientSize(*args
, **kw
)
4024 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
4025 "Please use PyPanel.DoSetClientSize instead.")
4027 def base_DoSetVirtualSize(*args
, **kw
):
4028 return PyPanel
.DoSetVirtualSize(*args
, **kw
)
4029 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
4030 "Please use PyPanel.DoSetVirtualSize instead.")
4032 def base_DoGetSize(*args
, **kw
):
4033 return PyPanel
.DoGetSize(*args
, **kw
)
4034 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
4035 "Please use PyPanel.DoGetSize instead.")
4037 def base_DoGetClientSize(*args
, **kw
):
4038 return PyPanel
.DoGetClientSize(*args
, **kw
)
4039 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
4040 "Please use PyPanel.DoGetClientSize instead.")
4042 def base_DoGetPosition(*args
, **kw
):
4043 return PyPanel
.DoGetPosition(*args
, **kw
)
4044 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
4045 "Please use PyPanel.DoGetPosition instead.")
4047 def base_DoGetVirtualSize(*args
, **kw
):
4048 return PyPanel
.DoGetVirtualSize(*args
, **kw
)
4049 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
4050 "Please use PyPanel.DoGetVirtualSize instead.")
4052 def base_DoGetBestSize(*args
, **kw
):
4053 return PyPanel
.DoGetBestSize(*args
, **kw
)
4054 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
4055 "Please use PyPanel.DoGetBestSize instead.")
4057 def base_InitDialog(*args
, **kw
):
4058 return PyPanel
.InitDialog(*args
, **kw
)
4059 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
4060 "Please use PyPanel.InitDialog instead.")
4062 def base_TransferDataToWindow(*args
, **kw
):
4063 return PyPanel
.TransferDataToWindow(*args
, **kw
)
4064 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
4065 "Please use PyPanel.TransferDataToWindow instead.")
4067 def base_TransferDataFromWindow(*args
, **kw
):
4068 return PyPanel
.TransferDataFromWindow(*args
, **kw
)
4069 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
4070 "Please use PyPanel.TransferDataFromWindow instead.")
4072 def base_Validate(*args
, **kw
):
4073 return PyPanel
.Validate(*args
, **kw
)
4074 base_Validate
= wx
._deprecated
(base_Validate
,
4075 "Please use PyPanel.Validate instead.")
4077 def base_AcceptsFocus(*args
, **kw
):
4078 return PyPanel
.AcceptsFocus(*args
, **kw
)
4079 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
4080 "Please use PyPanel.AcceptsFocus instead.")
4082 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
4083 return PyPanel
.AcceptsFocusFromKeyboard(*args
, **kw
)
4084 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
4085 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
4087 def base_GetMaxSize(*args
, **kw
):
4088 return PyPanel
.GetMaxSize(*args
, **kw
)
4089 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
4090 "Please use PyPanel.GetMaxSize instead.")
4092 def base_AddChild(*args
, **kw
):
4093 return PyPanel
.AddChild(*args
, **kw
)
4094 base_AddChild
= wx
._deprecated
(base_AddChild
,
4095 "Please use PyPanel.AddChild instead.")
4097 def base_RemoveChild(*args
, **kw
):
4098 return PyPanel
.RemoveChild(*args
, **kw
)
4099 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
4100 "Please use PyPanel.RemoveChild instead.")
4102 def base_ShouldInheritColours(*args
, **kw
):
4103 return PyPanel
.ShouldInheritColours(*args
, **kw
)
4104 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
4105 "Please use PyPanel.ShouldInheritColours instead.")
4107 def base_GetDefaultAttributes(*args
, **kw
):
4108 return PyPanel
.GetDefaultAttributes(*args
, **kw
)
4109 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
4110 "Please use PyPanel.GetDefaultAttributes instead.")
4112 def base_OnInternalIdle(*args
, **kw
):
4113 return PyPanel
.OnInternalIdle(*args
, **kw
)
4114 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
4115 "Please use PyPanel.OnInternalIdle instead.")
4118 class PyPanelPtr(PyPanel
):
4119 def __init__(self
, this
):
4121 if not hasattr(self
,"thisown"): self
.thisown
= 0
4122 self
.__class
__ = PyPanel
4123 _windows_
.PyPanel_swigregister(PyPanelPtr
)
4125 def PrePyPanel(*args
, **kwargs
):
4126 """PrePyPanel() -> PyPanel"""
4127 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
4131 class PyScrolledWindow(ScrolledWindow
):
4132 """Proxy of C++ PyScrolledWindow class"""
4134 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4135 def __init__(self
, *args
, **kwargs
):
4137 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
4138 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
4140 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
4141 self
.this
= newobj
.this
4144 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
4146 def _setCallbackInfo(*args
, **kwargs
):
4147 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4148 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
4150 def SetBestSize(*args
, **kwargs
):
4151 """SetBestSize(self, Size size)"""
4152 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
4154 def DoEraseBackground(*args
, **kwargs
):
4155 """DoEraseBackground(self, DC dc) -> bool"""
4156 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
4158 def DoMoveWindow(*args
, **kwargs
):
4159 """DoMoveWindow(self, int x, int y, int width, int height)"""
4160 return _windows_
.PyScrolledWindow_DoMoveWindow(*args
, **kwargs
)
4162 def DoSetSize(*args
, **kwargs
):
4163 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4164 return _windows_
.PyScrolledWindow_DoSetSize(*args
, **kwargs
)
4166 def DoSetClientSize(*args
, **kwargs
):
4167 """DoSetClientSize(self, int width, int height)"""
4168 return _windows_
.PyScrolledWindow_DoSetClientSize(*args
, **kwargs
)
4170 def DoSetVirtualSize(*args
, **kwargs
):
4171 """DoSetVirtualSize(self, int x, int y)"""
4172 return _windows_
.PyScrolledWindow_DoSetVirtualSize(*args
, **kwargs
)
4174 def DoGetSize(*args
, **kwargs
):
4175 """DoGetSize() -> (width, height)"""
4176 return _windows_
.PyScrolledWindow_DoGetSize(*args
, **kwargs
)
4178 def DoGetClientSize(*args
, **kwargs
):
4179 """DoGetClientSize() -> (width, height)"""
4180 return _windows_
.PyScrolledWindow_DoGetClientSize(*args
, **kwargs
)
4182 def DoGetPosition(*args
, **kwargs
):
4183 """DoGetPosition() -> (x,y)"""
4184 return _windows_
.PyScrolledWindow_DoGetPosition(*args
, **kwargs
)
4186 def DoGetVirtualSize(*args
, **kwargs
):
4187 """DoGetVirtualSize(self) -> Size"""
4188 return _windows_
.PyScrolledWindow_DoGetVirtualSize(*args
, **kwargs
)
4190 def DoGetBestSize(*args
, **kwargs
):
4191 """DoGetBestSize(self) -> Size"""
4192 return _windows_
.PyScrolledWindow_DoGetBestSize(*args
, **kwargs
)
4194 def InitDialog(*args
, **kwargs
):
4198 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
4199 to the dialog via validators.
4201 return _windows_
.PyScrolledWindow_InitDialog(*args
, **kwargs
)
4203 def TransferDataToWindow(*args
, **kwargs
):
4205 TransferDataToWindow(self) -> bool
4207 Transfers values to child controls from data areas specified by their
4208 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
4209 style flag set, the method will also call TransferDataToWindow() of
4212 return _windows_
.PyScrolledWindow_TransferDataToWindow(*args
, **kwargs
)
4214 def TransferDataFromWindow(*args
, **kwargs
):
4216 TransferDataFromWindow(self) -> bool
4218 Transfers values from child controls to data areas specified by their
4219 validators. Returns false if a transfer failed. If the window has
4220 wx.WS_EX_VALIDATE_RECURSIVELY extra style flag set, the method will
4221 also call TransferDataFromWindow() of all child windows.
4223 return _windows_
.PyScrolledWindow_TransferDataFromWindow(*args
, **kwargs
)
4225 def Validate(*args
, **kwargs
):
4227 Validate(self) -> bool
4229 Validates the current values of the child controls using their
4230 validators. If the window has wx.WS_EX_VALIDATE_RECURSIVELY extra
4231 style flag set, the method will also call Validate() of all child
4232 windows. Returns false if any of the validations failed.
4234 return _windows_
.PyScrolledWindow_Validate(*args
, **kwargs
)
4236 def AcceptsFocus(*args
, **kwargs
):
4238 AcceptsFocus(self) -> bool
4240 Can this window have focus?
4242 return _windows_
.PyScrolledWindow_AcceptsFocus(*args
, **kwargs
)
4244 def AcceptsFocusFromKeyboard(*args
, **kwargs
):
4246 AcceptsFocusFromKeyboard(self) -> bool
4248 Can this window be given focus by keyboard navigation? if not, the
4249 only way to give it focus (provided it accepts it at all) is to click
4252 return _windows_
.PyScrolledWindow_AcceptsFocusFromKeyboard(*args
, **kwargs
)
4254 def GetMaxSize(*args
, **kwargs
):
4255 """GetMaxSize(self) -> Size"""
4256 return _windows_
.PyScrolledWindow_GetMaxSize(*args
, **kwargs
)
4258 def AddChild(*args
, **kwargs
):
4260 AddChild(self, Window child)
4262 Adds a child window. This is called automatically by window creation
4263 functions so should not be required by the application programmer.
4265 return _windows_
.PyScrolledWindow_AddChild(*args
, **kwargs
)
4267 def RemoveChild(*args
, **kwargs
):
4269 RemoveChild(self, Window child)
4271 Removes a child window. This is called automatically by window
4272 deletion functions so should not be required by the application
4275 return _windows_
.PyScrolledWindow_RemoveChild(*args
, **kwargs
)
4277 def ShouldInheritColours(*args
, **kwargs
):
4279 ShouldInheritColours(self) -> bool
4281 Return true from here to allow the colours of this window to be
4282 changed by InheritAttributes, returning false forbids inheriting them
4283 from the parent window.
4285 The base class version returns false, but this method is overridden in
4286 wxControl where it returns true.
4288 return _windows_
.PyScrolledWindow_ShouldInheritColours(*args
, **kwargs
)
4290 def GetDefaultAttributes(*args
, **kwargs
):
4291 """GetDefaultAttributes(self) -> VisualAttributes"""
4292 return _windows_
.PyScrolledWindow_GetDefaultAttributes(*args
, **kwargs
)
4294 def OnInternalIdle(*args
, **kwargs
):
4295 """OnInternalIdle(self)"""
4296 return _windows_
.PyScrolledWindow_OnInternalIdle(*args
, **kwargs
)
4298 def base_DoMoveWindow(*args
, **kw
):
4299 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
4300 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
4301 "Please use PyScrolledWindow.DoMoveWindow instead.")
4303 def base_DoSetSize(*args
, **kw
):
4304 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
4305 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
4306 "Please use PyScrolledWindow.DoSetSize instead.")
4308 def base_DoSetClientSize(*args
, **kw
):
4309 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
4310 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
4311 "Please use PyScrolledWindow.DoSetClientSize instead.")
4313 def base_DoSetVirtualSize(*args
, **kw
):
4314 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
4315 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
4316 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
4318 def base_DoGetSize(*args
, **kw
):
4319 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
4320 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
4321 "Please use PyScrolledWindow.DoGetSize instead.")
4323 def base_DoGetClientSize(*args
, **kw
):
4324 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
4325 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
4326 "Please use PyScrolledWindow.DoGetClientSize instead.")
4328 def base_DoGetPosition(*args
, **kw
):
4329 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
4330 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
4331 "Please use PyScrolledWindow.DoGetPosition instead.")
4333 def base_DoGetVirtualSize(*args
, **kw
):
4334 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
4335 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
4336 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
4338 def base_DoGetBestSize(*args
, **kw
):
4339 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
4340 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
4341 "Please use PyScrolledWindow.DoGetBestSize instead.")
4343 def base_InitDialog(*args
, **kw
):
4344 return PyScrolledWindow
.InitDialog(*args
, **kw
)
4345 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
4346 "Please use PyScrolledWindow.InitDialog instead.")
4348 def base_TransferDataToWindow(*args
, **kw
):
4349 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
4350 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
4351 "Please use PyScrolledWindow.TransferDataToWindow instead.")
4353 def base_TransferDataFromWindow(*args
, **kw
):
4354 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
4355 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
4356 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
4358 def base_Validate(*args
, **kw
):
4359 return PyScrolledWindow
.Validate(*args
, **kw
)
4360 base_Validate
= wx
._deprecated
(base_Validate
,
4361 "Please use PyScrolledWindow.Validate instead.")
4363 def base_AcceptsFocus(*args
, **kw
):
4364 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
4365 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
4366 "Please use PyScrolledWindow.AcceptsFocus instead.")
4368 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
4369 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
4370 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
4371 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
4373 def base_GetMaxSize(*args
, **kw
):
4374 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
4375 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
4376 "Please use PyScrolledWindow.GetMaxSize instead.")
4378 def base_AddChild(*args
, **kw
):
4379 return PyScrolledWindow
.AddChild(*args
, **kw
)
4380 base_AddChild
= wx
._deprecated
(base_AddChild
,
4381 "Please use PyScrolledWindow.AddChild instead.")
4383 def base_RemoveChild(*args
, **kw
):
4384 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
4385 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
4386 "Please use PyScrolledWindow.RemoveChild instead.")
4388 def base_ShouldInheritColours(*args
, **kw
):
4389 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
4390 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
4391 "Please use PyScrolledWindow.ShouldInheritColours instead.")
4393 def base_GetDefaultAttributes(*args
, **kw
):
4394 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
4395 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
4396 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
4398 def base_OnInternalIdle(*args
, **kw
):
4399 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
4400 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
4401 "Please use PyScrolledWindow.OnInternalIdle instead.")
4404 class PyScrolledWindowPtr(PyScrolledWindow
):
4405 def __init__(self
, this
):
4407 if not hasattr(self
,"thisown"): self
.thisown
= 0
4408 self
.__class
__ = PyScrolledWindow
4409 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
4411 def PrePyScrolledWindow(*args
, **kwargs
):
4412 """PrePyScrolledWindow() -> PyScrolledWindow"""
4413 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
4417 #---------------------------------------------------------------------------
4419 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
4420 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
4421 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
4422 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
4423 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
4424 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
4425 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
4426 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
4427 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
4428 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
4429 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
4430 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
4431 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
4432 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
4433 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
4434 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
4435 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
4436 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
4437 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
4438 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
4439 class PrintData(_core
.Object
):
4440 """Proxy of C++ PrintData class"""
4442 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4443 def __init__(self
, *args
):
4445 __init__(self) -> PrintData
4446 __init__(self, PrintData data) -> PrintData
4448 newobj
= _windows_
.new_PrintData(*args
)
4449 self
.this
= newobj
.this
4452 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
4455 if self
.thisown
: destroy(self
)
4458 def GetNoCopies(*args
, **kwargs
):
4459 """GetNoCopies(self) -> int"""
4460 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
4462 def GetCollate(*args
, **kwargs
):
4463 """GetCollate(self) -> bool"""
4464 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
4466 def GetOrientation(*args
, **kwargs
):
4467 """GetOrientation(self) -> int"""
4468 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
4470 def Ok(*args
, **kwargs
):
4471 """Ok(self) -> bool"""
4472 return _windows_
.PrintData_Ok(*args
, **kwargs
)
4474 def GetPrinterName(*args
, **kwargs
):
4475 """GetPrinterName(self) -> String"""
4476 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
4478 def GetColour(*args
, **kwargs
):
4479 """GetColour(self) -> bool"""
4480 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
4482 def GetDuplex(*args
, **kwargs
):
4483 """GetDuplex(self) -> int"""
4484 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
4486 def GetPaperId(*args
, **kwargs
):
4487 """GetPaperId(self) -> int"""
4488 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
4490 def GetPaperSize(*args
, **kwargs
):
4491 """GetPaperSize(self) -> Size"""
4492 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
4494 def GetQuality(*args
, **kwargs
):
4495 """GetQuality(self) -> int"""
4496 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
4498 def GetBin(*args
, **kwargs
):
4499 """GetBin(self) -> int"""
4500 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
4502 def GetPrintMode(*args
, **kwargs
):
4503 """GetPrintMode(self) -> int"""
4504 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
4506 def SetNoCopies(*args
, **kwargs
):
4507 """SetNoCopies(self, int v)"""
4508 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
4510 def SetCollate(*args
, **kwargs
):
4511 """SetCollate(self, bool flag)"""
4512 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
4514 def SetOrientation(*args
, **kwargs
):
4515 """SetOrientation(self, int orient)"""
4516 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
4518 def SetPrinterName(*args
, **kwargs
):
4519 """SetPrinterName(self, String name)"""
4520 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
4522 def SetColour(*args
, **kwargs
):
4523 """SetColour(self, bool colour)"""
4524 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
4526 def SetDuplex(*args
, **kwargs
):
4527 """SetDuplex(self, int duplex)"""
4528 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
4530 def SetPaperId(*args
, **kwargs
):
4531 """SetPaperId(self, int sizeId)"""
4532 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
4534 def SetPaperSize(*args
, **kwargs
):
4535 """SetPaperSize(self, Size sz)"""
4536 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
4538 def SetQuality(*args
, **kwargs
):
4539 """SetQuality(self, int quality)"""
4540 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
4542 def SetBin(*args
, **kwargs
):
4543 """SetBin(self, int bin)"""
4544 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
4546 def SetPrintMode(*args
, **kwargs
):
4547 """SetPrintMode(self, int printMode)"""
4548 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
4550 def GetFilename(*args
, **kwargs
):
4551 """GetFilename(self) -> String"""
4552 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
4554 def SetFilename(*args
, **kwargs
):
4555 """SetFilename(self, String filename)"""
4556 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
4558 def __nonzero__(self
): return self
.Ok()
4559 def GetPrivData(*args
, **kwargs
):
4560 """GetPrivData(self) -> PyObject"""
4561 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
4563 def SetPrivData(*args
, **kwargs
):
4564 """SetPrivData(self, PyObject data)"""
4565 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
4568 class PrintDataPtr(PrintData
):
4569 def __init__(self
, this
):
4571 if not hasattr(self
,"thisown"): self
.thisown
= 0
4572 self
.__class
__ = PrintData
4573 _windows_
.PrintData_swigregister(PrintDataPtr
)
4574 PrintoutTitleStr
= cvar
.PrintoutTitleStr
4575 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
4577 class PageSetupDialogData(_core
.Object
):
4578 """Proxy of C++ PageSetupDialogData class"""
4580 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4581 def __init__(self
, *args
):
4583 __init__(self) -> PageSetupDialogData
4584 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
4585 __init__(self, PrintData data) -> PageSetupDialogData
4587 newobj
= _windows_
.new_PageSetupDialogData(*args
)
4588 self
.this
= newobj
.this
4591 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
4594 if self
.thisown
: destroy(self
)
4597 def EnableHelp(*args
, **kwargs
):
4598 """EnableHelp(self, bool flag)"""
4599 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
4601 def EnableMargins(*args
, **kwargs
):
4602 """EnableMargins(self, bool flag)"""
4603 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
4605 def EnableOrientation(*args
, **kwargs
):
4606 """EnableOrientation(self, bool flag)"""
4607 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
4609 def EnablePaper(*args
, **kwargs
):
4610 """EnablePaper(self, bool flag)"""
4611 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
4613 def EnablePrinter(*args
, **kwargs
):
4614 """EnablePrinter(self, bool flag)"""
4615 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
4617 def GetDefaultMinMargins(*args
, **kwargs
):
4618 """GetDefaultMinMargins(self) -> bool"""
4619 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
4621 def GetEnableMargins(*args
, **kwargs
):
4622 """GetEnableMargins(self) -> bool"""
4623 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
4625 def GetEnableOrientation(*args
, **kwargs
):
4626 """GetEnableOrientation(self) -> bool"""
4627 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4629 def GetEnablePaper(*args
, **kwargs
):
4630 """GetEnablePaper(self) -> bool"""
4631 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4633 def GetEnablePrinter(*args
, **kwargs
):
4634 """GetEnablePrinter(self) -> bool"""
4635 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4637 def GetEnableHelp(*args
, **kwargs
):
4638 """GetEnableHelp(self) -> bool"""
4639 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4641 def GetDefaultInfo(*args
, **kwargs
):
4642 """GetDefaultInfo(self) -> bool"""
4643 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4645 def GetMarginTopLeft(*args
, **kwargs
):
4646 """GetMarginTopLeft(self) -> Point"""
4647 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4649 def GetMarginBottomRight(*args
, **kwargs
):
4650 """GetMarginBottomRight(self) -> Point"""
4651 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4653 def GetMinMarginTopLeft(*args
, **kwargs
):
4654 """GetMinMarginTopLeft(self) -> Point"""
4655 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4657 def GetMinMarginBottomRight(*args
, **kwargs
):
4658 """GetMinMarginBottomRight(self) -> Point"""
4659 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4661 def GetPaperId(*args
, **kwargs
):
4662 """GetPaperId(self) -> int"""
4663 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4665 def GetPaperSize(*args
, **kwargs
):
4666 """GetPaperSize(self) -> Size"""
4667 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4669 def GetPrintData(*args
, **kwargs
):
4670 """GetPrintData(self) -> PrintData"""
4671 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4673 def Ok(*args
, **kwargs
):
4674 """Ok(self) -> bool"""
4675 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4677 def SetDefaultInfo(*args
, **kwargs
):
4678 """SetDefaultInfo(self, bool flag)"""
4679 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4681 def SetDefaultMinMargins(*args
, **kwargs
):
4682 """SetDefaultMinMargins(self, bool flag)"""
4683 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4685 def SetMarginTopLeft(*args
, **kwargs
):
4686 """SetMarginTopLeft(self, Point pt)"""
4687 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4689 def SetMarginBottomRight(*args
, **kwargs
):
4690 """SetMarginBottomRight(self, Point pt)"""
4691 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4693 def SetMinMarginTopLeft(*args
, **kwargs
):
4694 """SetMinMarginTopLeft(self, Point pt)"""
4695 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4697 def SetMinMarginBottomRight(*args
, **kwargs
):
4698 """SetMinMarginBottomRight(self, Point pt)"""
4699 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4701 def SetPaperId(*args
, **kwargs
):
4702 """SetPaperId(self, int id)"""
4703 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4705 def SetPaperSize(*args
, **kwargs
):
4706 """SetPaperSize(self, Size size)"""
4707 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4709 def SetPrintData(*args
, **kwargs
):
4710 """SetPrintData(self, PrintData printData)"""
4711 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4713 def CalculateIdFromPaperSize(*args
, **kwargs
):
4714 """CalculateIdFromPaperSize(self)"""
4715 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
4717 def CalculatePaperSizeFromId(*args
, **kwargs
):
4718 """CalculatePaperSizeFromId(self)"""
4719 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
4721 def __nonzero__(self
): return self
.Ok()
4723 class PageSetupDialogDataPtr(PageSetupDialogData
):
4724 def __init__(self
, this
):
4726 if not hasattr(self
,"thisown"): self
.thisown
= 0
4727 self
.__class
__ = PageSetupDialogData
4728 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4730 class PageSetupDialog(_core
.Object
):
4731 """Proxy of C++ PageSetupDialog class"""
4733 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4734 def __init__(self
, *args
, **kwargs
):
4735 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4736 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4737 self
.this
= newobj
.this
4740 def GetPageSetupData(*args
, **kwargs
):
4741 """GetPageSetupData(self) -> PageSetupDialogData"""
4742 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4744 def GetPageSetupDialogData(*args
, **kwargs
):
4745 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4746 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4748 def ShowModal(*args
, **kwargs
):
4749 """ShowModal(self) -> int"""
4750 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4753 class PageSetupDialogPtr(PageSetupDialog
):
4754 def __init__(self
, this
):
4756 if not hasattr(self
,"thisown"): self
.thisown
= 0
4757 self
.__class
__ = PageSetupDialog
4758 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4760 class PrintDialogData(_core
.Object
):
4761 """Proxy of C++ PrintDialogData class"""
4763 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4764 def __init__(self
, *args
):
4766 __init__(self) -> PrintDialogData
4767 __init__(self, PrintData printData) -> PrintDialogData
4768 __init__(self, PrintDialogData printData) -> PrintDialogData
4770 newobj
= _windows_
.new_PrintDialogData(*args
)
4771 self
.this
= newobj
.this
4774 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4777 if self
.thisown
: destroy(self
)
4780 def GetFromPage(*args
, **kwargs
):
4781 """GetFromPage(self) -> int"""
4782 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4784 def GetToPage(*args
, **kwargs
):
4785 """GetToPage(self) -> int"""
4786 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4788 def GetMinPage(*args
, **kwargs
):
4789 """GetMinPage(self) -> int"""
4790 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4792 def GetMaxPage(*args
, **kwargs
):
4793 """GetMaxPage(self) -> int"""
4794 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4796 def GetNoCopies(*args
, **kwargs
):
4797 """GetNoCopies(self) -> int"""
4798 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4800 def GetAllPages(*args
, **kwargs
):
4801 """GetAllPages(self) -> bool"""
4802 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4804 def GetSelection(*args
, **kwargs
):
4805 """GetSelection(self) -> bool"""
4806 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4808 def GetCollate(*args
, **kwargs
):
4809 """GetCollate(self) -> bool"""
4810 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4812 def GetPrintToFile(*args
, **kwargs
):
4813 """GetPrintToFile(self) -> bool"""
4814 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4816 def SetFromPage(*args
, **kwargs
):
4817 """SetFromPage(self, int v)"""
4818 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4820 def SetToPage(*args
, **kwargs
):
4821 """SetToPage(self, int v)"""
4822 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4824 def SetMinPage(*args
, **kwargs
):
4825 """SetMinPage(self, int v)"""
4826 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4828 def SetMaxPage(*args
, **kwargs
):
4829 """SetMaxPage(self, int v)"""
4830 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4832 def SetNoCopies(*args
, **kwargs
):
4833 """SetNoCopies(self, int v)"""
4834 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4836 def SetAllPages(*args
, **kwargs
):
4837 """SetAllPages(self, bool flag)"""
4838 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4840 def SetSelection(*args
, **kwargs
):
4841 """SetSelection(self, bool flag)"""
4842 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4844 def SetCollate(*args
, **kwargs
):
4845 """SetCollate(self, bool flag)"""
4846 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4848 def SetPrintToFile(*args
, **kwargs
):
4849 """SetPrintToFile(self, bool flag)"""
4850 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4852 def EnablePrintToFile(*args
, **kwargs
):
4853 """EnablePrintToFile(self, bool flag)"""
4854 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4856 def EnableSelection(*args
, **kwargs
):
4857 """EnableSelection(self, bool flag)"""
4858 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4860 def EnablePageNumbers(*args
, **kwargs
):
4861 """EnablePageNumbers(self, bool flag)"""
4862 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4864 def EnableHelp(*args
, **kwargs
):
4865 """EnableHelp(self, bool flag)"""
4866 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4868 def GetEnablePrintToFile(*args
, **kwargs
):
4869 """GetEnablePrintToFile(self) -> bool"""
4870 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4872 def GetEnableSelection(*args
, **kwargs
):
4873 """GetEnableSelection(self) -> bool"""
4874 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4876 def GetEnablePageNumbers(*args
, **kwargs
):
4877 """GetEnablePageNumbers(self) -> bool"""
4878 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4880 def GetEnableHelp(*args
, **kwargs
):
4881 """GetEnableHelp(self) -> bool"""
4882 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4884 def Ok(*args
, **kwargs
):
4885 """Ok(self) -> bool"""
4886 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4888 def GetPrintData(*args
, **kwargs
):
4889 """GetPrintData(self) -> PrintData"""
4890 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4892 def SetPrintData(*args
, **kwargs
):
4893 """SetPrintData(self, PrintData printData)"""
4894 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4896 def __nonzero__(self
): return self
.Ok()
4898 class PrintDialogDataPtr(PrintDialogData
):
4899 def __init__(self
, this
):
4901 if not hasattr(self
,"thisown"): self
.thisown
= 0
4902 self
.__class
__ = PrintDialogData
4903 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4905 class PrintDialog(_core
.Object
):
4906 """Proxy of C++ PrintDialog class"""
4908 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4909 def __init__(self
, *args
, **kwargs
):
4910 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4911 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4912 self
.this
= newobj
.this
4915 def ShowModal(*args
, **kwargs
):
4916 """ShowModal(self) -> int"""
4917 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4919 def GetPrintDialogData(*args
, **kwargs
):
4920 """GetPrintDialogData(self) -> PrintDialogData"""
4921 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4923 def GetPrintData(*args
, **kwargs
):
4924 """GetPrintData(self) -> PrintData"""
4925 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4927 def GetPrintDC(*args
, **kwargs
):
4928 """GetPrintDC(self) -> DC"""
4929 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4932 class PrintDialogPtr(PrintDialog
):
4933 def __init__(self
, this
):
4935 if not hasattr(self
,"thisown"): self
.thisown
= 0
4936 self
.__class
__ = PrintDialog
4937 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4939 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4940 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4941 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4942 class Printer(_core
.Object
):
4943 """Proxy of C++ Printer class"""
4945 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4946 def __init__(self
, *args
, **kwargs
):
4947 """__init__(self, PrintDialogData data=None) -> Printer"""
4948 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4949 self
.this
= newobj
.this
4952 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4955 if self
.thisown
: destroy(self
)
4958 def CreateAbortWindow(*args
, **kwargs
):
4959 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4960 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4962 def ReportError(*args
, **kwargs
):
4963 """ReportError(self, Window parent, Printout printout, String message)"""
4964 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4966 def Setup(*args
, **kwargs
):
4967 """Setup(self, Window parent) -> bool"""
4968 return _windows_
.Printer_Setup(*args
, **kwargs
)
4970 def Print(*args
, **kwargs
):
4971 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4972 return _windows_
.Printer_Print(*args
, **kwargs
)
4974 def PrintDialog(*args
, **kwargs
):
4975 """PrintDialog(self, Window parent) -> DC"""
4976 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4978 def GetPrintDialogData(*args
, **kwargs
):
4979 """GetPrintDialogData(self) -> PrintDialogData"""
4980 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4982 def GetAbort(*args
, **kwargs
):
4983 """GetAbort(self) -> bool"""
4984 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4986 def GetLastError(*args
, **kwargs
):
4987 """GetLastError() -> int"""
4988 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4990 GetLastError
= staticmethod(GetLastError
)
4992 class PrinterPtr(Printer
):
4993 def __init__(self
, this
):
4995 if not hasattr(self
,"thisown"): self
.thisown
= 0
4996 self
.__class
__ = Printer
4997 _windows_
.Printer_swigregister(PrinterPtr
)
4999 def Printer_GetLastError(*args
, **kwargs
):
5000 """Printer_GetLastError() -> int"""
5001 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
5003 class Printout(_core
.Object
):
5004 """Proxy of C++ Printout class"""
5006 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5007 def __init__(self
, *args
, **kwargs
):
5008 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
5009 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
5010 self
.this
= newobj
.this
5013 self
._setCallbackInfo
(self
, Printout
)
5015 def _setCallbackInfo(*args
, **kwargs
):
5016 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5017 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
5019 def GetTitle(*args
, **kwargs
):
5020 """GetTitle(self) -> String"""
5021 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
5023 def GetDC(*args
, **kwargs
):
5024 """GetDC(self) -> DC"""
5025 return _windows_
.Printout_GetDC(*args
, **kwargs
)
5027 def SetDC(*args
, **kwargs
):
5028 """SetDC(self, DC dc)"""
5029 return _windows_
.Printout_SetDC(*args
, **kwargs
)
5031 def SetPageSizePixels(*args
, **kwargs
):
5032 """SetPageSizePixels(self, int w, int h)"""
5033 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
5035 def GetPageSizePixels(*args
, **kwargs
):
5036 """GetPageSizePixels() -> (w, h)"""
5037 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
5039 def SetPageSizeMM(*args
, **kwargs
):
5040 """SetPageSizeMM(self, int w, int h)"""
5041 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
5043 def GetPageSizeMM(*args
, **kwargs
):
5044 """GetPageSizeMM() -> (w, h)"""
5045 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
5047 def SetPPIScreen(*args
, **kwargs
):
5048 """SetPPIScreen(self, int x, int y)"""
5049 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
5051 def GetPPIScreen(*args
, **kwargs
):
5052 """GetPPIScreen() -> (x,y)"""
5053 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
5055 def SetPPIPrinter(*args
, **kwargs
):
5056 """SetPPIPrinter(self, int x, int y)"""
5057 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
5059 def GetPPIPrinter(*args
, **kwargs
):
5060 """GetPPIPrinter() -> (x,y)"""
5061 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
5063 def IsPreview(*args
, **kwargs
):
5064 """IsPreview(self) -> bool"""
5065 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
5067 def SetIsPreview(*args
, **kwargs
):
5068 """SetIsPreview(self, bool p)"""
5069 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
5071 def OnBeginDocument(*args
, **kwargs
):
5072 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
5073 return _windows_
.Printout_OnBeginDocument(*args
, **kwargs
)
5075 def OnEndDocument(*args
, **kwargs
):
5076 """OnEndDocument(self)"""
5077 return _windows_
.Printout_OnEndDocument(*args
, **kwargs
)
5079 def OnBeginPrinting(*args
, **kwargs
):
5080 """OnBeginPrinting(self)"""
5081 return _windows_
.Printout_OnBeginPrinting(*args
, **kwargs
)
5083 def OnEndPrinting(*args
, **kwargs
):
5084 """OnEndPrinting(self)"""
5085 return _windows_
.Printout_OnEndPrinting(*args
, **kwargs
)
5087 def OnPreparePrinting(*args
, **kwargs
):
5088 """OnPreparePrinting(self)"""
5089 return _windows_
.Printout_OnPreparePrinting(*args
, **kwargs
)
5091 def HasPage(*args
, **kwargs
):
5092 """HasPage(self, int page) -> bool"""
5093 return _windows_
.Printout_HasPage(*args
, **kwargs
)
5095 def GetPageInfo(*args
, **kwargs
):
5096 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
5097 return _windows_
.Printout_GetPageInfo(*args
, **kwargs
)
5099 def base_OnBeginDocument(*args
, **kw
):
5100 return Printout
.OnBeginDocument(*args
, **kw
)
5101 base_OnBeginDocument
= wx
._deprecated
(base_OnBeginDocument
,
5102 "Please use Printout.OnBeginDocument instead.")
5104 def base_OnEndDocument(*args
, **kw
):
5105 return Printout
.OnEndDocument(*args
, **kw
)
5106 base_OnEndDocument
= wx
._deprecated
(base_OnEndDocument
,
5107 "Please use Printout.OnEndDocument instead.")
5109 def base_OnBeginPrinting(*args
, **kw
):
5110 return Printout
.OnBeginPrinting(*args
, **kw
)
5111 base_OnBeginPrinting
= wx
._deprecated
(base_OnBeginPrinting
,
5112 "Please use Printout.OnBeginPrinting instead.")
5114 def base_OnEndPrinting(*args
, **kw
):
5115 return Printout
.OnEndPrinting(*args
, **kw
)
5116 base_OnEndPrinting
= wx
._deprecated
(base_OnEndPrinting
,
5117 "Please use Printout.OnEndPrinting instead.")
5119 def base_OnPreparePrinting(*args
, **kw
):
5120 return Printout
.OnPreparePrinting(*args
, **kw
)
5121 base_OnPreparePrinting
= wx
._deprecated
(base_OnPreparePrinting
,
5122 "Please use Printout.OnPreparePrinting instead.")
5124 def base_GetPageInfo(*args
, **kw
):
5125 return Printout
.GetPageInfo(*args
, **kw
)
5126 base_GetPageInfo
= wx
._deprecated
(base_GetPageInfo
,
5127 "Please use Printout.GetPageInfo instead.")
5130 class PrintoutPtr(Printout
):
5131 def __init__(self
, this
):
5133 if not hasattr(self
,"thisown"): self
.thisown
= 0
5134 self
.__class
__ = Printout
5135 _windows_
.Printout_swigregister(PrintoutPtr
)
5137 class PreviewCanvas(ScrolledWindow
):
5138 """Proxy of C++ PreviewCanvas class"""
5140 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5141 def __init__(self
, *args
, **kwargs
):
5143 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
5144 Size size=DefaultSize, long style=0,
5145 String name=PreviewCanvasNameStr) -> PreviewCanvas
5147 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
5148 self
.this
= newobj
.this
5151 self
._setOORInfo
(self
)
5154 class PreviewCanvasPtr(PreviewCanvas
):
5155 def __init__(self
, this
):
5157 if not hasattr(self
,"thisown"): self
.thisown
= 0
5158 self
.__class
__ = PreviewCanvas
5159 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
5161 class PreviewFrame(Frame
):
5162 """Proxy of C++ PreviewFrame class"""
5164 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5165 def __init__(self
, *args
, **kwargs
):
5167 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
5168 Size size=DefaultSize,
5169 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
5171 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
5172 self
.this
= newobj
.this
5175 self
._setOORInfo
(self
)
5177 def Initialize(*args
, **kwargs
):
5178 """Initialize(self)"""
5179 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
5181 def CreateControlBar(*args
, **kwargs
):
5182 """CreateControlBar(self)"""
5183 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
5185 def CreateCanvas(*args
, **kwargs
):
5186 """CreateCanvas(self)"""
5187 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
5189 def GetControlBar(*args
, **kwargs
):
5190 """GetControlBar(self) -> PreviewControlBar"""
5191 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
5194 class PreviewFramePtr(PreviewFrame
):
5195 def __init__(self
, this
):
5197 if not hasattr(self
,"thisown"): self
.thisown
= 0
5198 self
.__class
__ = PreviewFrame
5199 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
5201 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
5202 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
5203 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
5204 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
5205 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
5206 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
5207 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
5208 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
5209 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
5210 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
5211 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
5212 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
5213 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
5214 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
5215 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
5216 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
5217 class PreviewControlBar(Panel
):
5218 """Proxy of C++ PreviewControlBar class"""
5220 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5221 def __init__(self
, *args
, **kwargs
):
5223 __init__(self, PrintPreview preview, long buttons, Window parent,
5224 Point pos=DefaultPosition, Size size=DefaultSize,
5225 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
5227 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
5228 self
.this
= newobj
.this
5231 self
._setOORInfo
(self
)
5233 def GetZoomControl(*args
, **kwargs
):
5234 """GetZoomControl(self) -> int"""
5235 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
5237 def SetZoomControl(*args
, **kwargs
):
5238 """SetZoomControl(self, int zoom)"""
5239 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
5241 def GetPrintPreview(*args
, **kwargs
):
5242 """GetPrintPreview(self) -> PrintPreview"""
5243 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
5245 def OnNext(*args
, **kwargs
):
5247 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
5249 def OnPrevious(*args
, **kwargs
):
5250 """OnPrevious(self)"""
5251 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
5253 def OnFirst(*args
, **kwargs
):
5255 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
5257 def OnLast(*args
, **kwargs
):
5259 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
5261 def OnGoto(*args
, **kwargs
):
5263 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
5266 class PreviewControlBarPtr(PreviewControlBar
):
5267 def __init__(self
, this
):
5269 if not hasattr(self
,"thisown"): self
.thisown
= 0
5270 self
.__class
__ = PreviewControlBar
5271 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
5273 class PrintPreview(_core
.Object
):
5274 """Proxy of C++ PrintPreview class"""
5276 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5277 def __init__(self
, *args
):
5279 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
5280 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
5282 newobj
= _windows_
.new_PrintPreview(*args
)
5283 self
.this
= newobj
.this
5286 def SetCurrentPage(*args
, **kwargs
):
5287 """SetCurrentPage(self, int pageNum) -> bool"""
5288 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
5290 def GetCurrentPage(*args
, **kwargs
):
5291 """GetCurrentPage(self) -> int"""
5292 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
5294 def SetPrintout(*args
, **kwargs
):
5295 """SetPrintout(self, Printout printout)"""
5296 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
5298 def GetPrintout(*args
, **kwargs
):
5299 """GetPrintout(self) -> Printout"""
5300 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
5302 def GetPrintoutForPrinting(*args
, **kwargs
):
5303 """GetPrintoutForPrinting(self) -> Printout"""
5304 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
5306 def SetFrame(*args
, **kwargs
):
5307 """SetFrame(self, Frame frame)"""
5308 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
5310 def SetCanvas(*args
, **kwargs
):
5311 """SetCanvas(self, PreviewCanvas canvas)"""
5312 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
5314 def GetFrame(*args
, **kwargs
):
5315 """GetFrame(self) -> Frame"""
5316 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
5318 def GetCanvas(*args
, **kwargs
):
5319 """GetCanvas(self) -> PreviewCanvas"""
5320 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
5322 def PaintPage(*args
, **kwargs
):
5323 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
5324 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
5326 def DrawBlankPage(*args
, **kwargs
):
5327 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
5328 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
5330 def RenderPage(*args
, **kwargs
):
5331 """RenderPage(self, int pageNum) -> bool"""
5332 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
5334 def AdjustScrollbars(*args
, **kwargs
):
5335 """AdjustScrollbars(self, PreviewCanvas canvas)"""
5336 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
5338 def GetPrintDialogData(*args
, **kwargs
):
5339 """GetPrintDialogData(self) -> PrintDialogData"""
5340 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
5342 def SetZoom(*args
, **kwargs
):
5343 """SetZoom(self, int percent)"""
5344 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
5346 def GetZoom(*args
, **kwargs
):
5347 """GetZoom(self) -> int"""
5348 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
5350 def GetMaxPage(*args
, **kwargs
):
5351 """GetMaxPage(self) -> int"""
5352 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
5354 def GetMinPage(*args
, **kwargs
):
5355 """GetMinPage(self) -> int"""
5356 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
5358 def Ok(*args
, **kwargs
):
5359 """Ok(self) -> bool"""
5360 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
5362 def SetOk(*args
, **kwargs
):
5363 """SetOk(self, bool ok)"""
5364 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
5366 def Print(*args
, **kwargs
):
5367 """Print(self, bool interactive) -> bool"""
5368 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
5370 def DetermineScaling(*args
, **kwargs
):
5371 """DetermineScaling(self)"""
5372 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
5374 def __nonzero__(self
): return self
.Ok()
5376 class PrintPreviewPtr(PrintPreview
):
5377 def __init__(self
, this
):
5379 if not hasattr(self
,"thisown"): self
.thisown
= 0
5380 self
.__class
__ = PrintPreview
5381 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
5383 class PyPrintPreview(PrintPreview
):
5384 """Proxy of C++ PyPrintPreview class"""
5386 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5387 def __init__(self
, *args
):
5389 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
5390 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
5392 newobj
= _windows_
.new_PyPrintPreview(*args
)
5393 self
.this
= newobj
.this
5396 self
._setCallbackInfo
(self
, PyPrintPreview
)
5398 def _setCallbackInfo(*args
, **kwargs
):
5399 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5400 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
5402 def SetCurrentPage(*args
, **kwargs
):
5403 """SetCurrentPage(self, int pageNum) -> bool"""
5404 return _windows_
.PyPrintPreview_SetCurrentPage(*args
, **kwargs
)
5406 def PaintPage(*args
, **kwargs
):
5407 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
5408 return _windows_
.PyPrintPreview_PaintPage(*args
, **kwargs
)
5410 def DrawBlankPage(*args
, **kwargs
):
5411 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
5412 return _windows_
.PyPrintPreview_DrawBlankPage(*args
, **kwargs
)
5414 def RenderPage(*args
, **kwargs
):
5415 """RenderPage(self, int pageNum) -> bool"""
5416 return _windows_
.PyPrintPreview_RenderPage(*args
, **kwargs
)
5418 def SetZoom(*args
, **kwargs
):
5419 """SetZoom(self, int percent)"""
5420 return _windows_
.PyPrintPreview_SetZoom(*args
, **kwargs
)
5422 def Print(*args
, **kwargs
):
5423 """Print(self, bool interactive) -> bool"""
5424 return _windows_
.PyPrintPreview_Print(*args
, **kwargs
)
5426 def DetermineScaling(*args
, **kwargs
):
5427 """DetermineScaling(self)"""
5428 return _windows_
.PyPrintPreview_DetermineScaling(*args
, **kwargs
)
5430 def base_SetCurrentPage(*args
, **kw
):
5431 return PyPrintPreview
.SetCurrentPage(*args
, **kw
)
5432 base_SetCurrentPage
= wx
._deprecated
(base_SetCurrentPage
,
5433 "Please use PyPrintPreview.SetCurrentPage instead.")
5435 def base_PaintPage(*args
, **kw
):
5436 return PyPrintPreview
.PaintPage(*args
, **kw
)
5437 base_PaintPage
= wx
._deprecated
(base_PaintPage
,
5438 "Please use PyPrintPreview.PaintPage instead.")
5440 def base_DrawBlankPage(*args
, **kw
):
5441 return PyPrintPreview
.DrawBlankPage(*args
, **kw
)
5442 base_DrawBlankPage
= wx
._deprecated
(base_DrawBlankPage
,
5443 "Please use PyPrintPreview.DrawBlankPage instead.")
5445 def base_RenderPage(*args
, **kw
):
5446 return PyPrintPreview
.RenderPage(*args
, **kw
)
5447 base_RenderPage
= wx
._deprecated
(base_RenderPage
,
5448 "Please use PyPrintPreview.RenderPage instead.")
5450 def base_SetZoom(*args
, **kw
):
5451 return PyPrintPreview
.SetZoom(*args
, **kw
)
5452 base_SetZoom
= wx
._deprecated
(base_SetZoom
,
5453 "Please use PyPrintPreview.SetZoom instead.")
5455 def base_Print(*args
, **kw
):
5456 return PyPrintPreview
.Print(*args
, **kw
)
5457 base_Print
= wx
._deprecated
(base_Print
,
5458 "Please use PyPrintPreview.Print instead.")
5460 def base_DetermineScaling(*args
, **kw
):
5461 return PyPrintPreview
.DetermineScaling(*args
, **kw
)
5462 base_DetermineScaling
= wx
._deprecated
(base_DetermineScaling
,
5463 "Please use PyPrintPreview.DetermineScaling instead.")
5466 class PyPrintPreviewPtr(PyPrintPreview
):
5467 def __init__(self
, this
):
5469 if not hasattr(self
,"thisown"): self
.thisown
= 0
5470 self
.__class
__ = PyPrintPreview
5471 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
5473 class PyPreviewFrame(PreviewFrame
):
5474 """Proxy of C++ PyPreviewFrame class"""
5476 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5477 def __init__(self
, *args
, **kwargs
):
5479 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
5480 Size size=DefaultSize,
5481 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
5483 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
5484 self
.this
= newobj
.this
5487 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
5489 def _setCallbackInfo(*args
, **kwargs
):
5490 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5491 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
5493 def SetPreviewCanvas(*args
, **kwargs
):
5494 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
5495 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
5497 def SetControlBar(*args
, **kwargs
):
5498 """SetControlBar(self, PreviewControlBar bar)"""
5499 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
5501 def Initialize(*args
, **kwargs
):
5502 """Initialize(self)"""
5503 return _windows_
.PyPreviewFrame_Initialize(*args
, **kwargs
)
5505 def CreateCanvas(*args
, **kwargs
):
5506 """CreateCanvas(self)"""
5507 return _windows_
.PyPreviewFrame_CreateCanvas(*args
, **kwargs
)
5509 def CreateControlBar(*args
, **kwargs
):
5510 """CreateControlBar(self)"""
5511 return _windows_
.PyPreviewFrame_CreateControlBar(*args
, **kwargs
)
5513 def base_Initialize(*args
, **kw
):
5514 return PyPreviewFrame
.Initialize(*args
, **kw
)
5515 base_Initialize
= wx
._deprecated
(base_Initialize
,
5516 "Please use PyPreviewFrame.Initialize instead.")
5518 def base_CreateCanvas(*args
, **kw
):
5519 return PyPreviewFrame
.CreateCanvas(*args
, **kw
)
5520 base_CreateCanvas
= wx
._deprecated
(base_CreateCanvas
,
5521 "Please use PyPreviewFrame.CreateCanvas instead.")
5523 def base_CreateControlBar(*args
, **kw
):
5524 return PyPreviewFrame
.CreateControlBar(*args
, **kw
)
5525 base_CreateControlBar
= wx
._deprecated
(base_CreateControlBar
,
5526 "Please use PyPreviewFrame.CreateControlBar instead.")
5529 class PyPreviewFramePtr(PyPreviewFrame
):
5530 def __init__(self
, this
):
5532 if not hasattr(self
,"thisown"): self
.thisown
= 0
5533 self
.__class
__ = PyPreviewFrame
5534 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
5536 class PyPreviewControlBar(PreviewControlBar
):
5537 """Proxy of C++ PyPreviewControlBar class"""
5539 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
5540 def __init__(self
, *args
, **kwargs
):
5542 __init__(self, PrintPreview preview, long buttons, Window parent,
5543 Point pos=DefaultPosition, Size size=DefaultSize,
5544 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
5546 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
5547 self
.this
= newobj
.this
5550 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
5552 def _setCallbackInfo(*args
, **kwargs
):
5553 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5554 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
5556 def SetPrintPreview(*args
, **kwargs
):
5557 """SetPrintPreview(self, PrintPreview preview)"""
5558 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
5560 def CreateButtons(*args
, **kwargs
):
5561 """CreateButtons(self)"""
5562 return _windows_
.PyPreviewControlBar_CreateButtons(*args
, **kwargs
)
5564 def SetZoomControl(*args
, **kwargs
):
5565 """SetZoomControl(self, int zoom)"""
5566 return _windows_
.PyPreviewControlBar_SetZoomControl(*args
, **kwargs
)
5568 def base_CreateButtons(*args
, **kw
):
5569 return PreviewControlBar
.CreateButtons(*args
, **kw
)
5570 base_CreateButtons
= wx
._deprecated
(base_CreateButtons
,
5571 "Please use PreviewControlBar.CreateButtons instead.")
5573 def base_SetZoomControl(*args
, **kw
):
5574 return PreviewControlBar
.SetZoomControl(*args
, **kw
)
5575 base_SetZoomControl
= wx
._deprecated
(base_SetZoomControl
,
5576 "Please use PreviewControlBar.SetZoomControl instead.")
5579 class PyPreviewControlBarPtr(PyPreviewControlBar
):
5580 def __init__(self
, this
):
5582 if not hasattr(self
,"thisown"): self
.thisown
= 0
5583 self
.__class
__ = PyPreviewControlBar
5584 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)