1 # This file was created automatically by SWIG.
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
)
452 class TopLevelWindowPtr(TopLevelWindow
):
453 def __init__(self
, this
):
455 if not hasattr(self
,"thisown"): self
.thisown
= 0
456 self
.__class
__ = TopLevelWindow
457 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
458 cvar
= _windows_
.cvar
459 FrameNameStr
= cvar
.FrameNameStr
460 DialogNameStr
= cvar
.DialogNameStr
461 StatusLineNameStr
= cvar
.StatusLineNameStr
462 ToolBarNameStr
= cvar
.ToolBarNameStr
464 #---------------------------------------------------------------------------
466 class Frame(TopLevelWindow
):
467 """Proxy of C++ Frame class"""
469 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
470 def __init__(self
, *args
, **kwargs
):
472 __init__(self, Window parent, int id=-1, String title=EmptyString,
473 Point pos=DefaultPosition, Size size=DefaultSize,
474 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
476 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
477 self
.this
= newobj
.this
480 self
._setOORInfo
(self
)
482 def Create(*args
, **kwargs
):
484 Create(self, Window parent, int id=-1, String title=EmptyString,
485 Point pos=DefaultPosition, Size size=DefaultSize,
486 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
488 return _windows_
.Frame_Create(*args
, **kwargs
)
490 def GetClientAreaOrigin(*args
, **kwargs
):
492 GetClientAreaOrigin(self) -> Point
494 Get the origin of the client area of the window relative to the
495 window's top left corner (the client area may be shifted because of
496 the borders, scrollbars, other decorations...)
498 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
500 def SendSizeEvent(*args
, **kwargs
):
501 """SendSizeEvent(self)"""
502 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
504 def SetMenuBar(*args
, **kwargs
):
505 """SetMenuBar(self, MenuBar menubar)"""
506 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
508 def GetMenuBar(*args
, **kwargs
):
509 """GetMenuBar(self) -> MenuBar"""
510 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
512 def ProcessCommand(*args
, **kwargs
):
513 """ProcessCommand(self, int winid) -> bool"""
514 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
516 Command
= ProcessCommand
517 def CreateStatusBar(*args
, **kwargs
):
519 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
520 String name=StatusLineNameStr) -> StatusBar
522 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
524 def GetStatusBar(*args
, **kwargs
):
525 """GetStatusBar(self) -> StatusBar"""
526 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
528 def SetStatusBar(*args
, **kwargs
):
529 """SetStatusBar(self, StatusBar statBar)"""
530 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
532 def SetStatusText(*args
, **kwargs
):
533 """SetStatusText(self, String text, int number=0)"""
534 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
536 def SetStatusWidths(*args
, **kwargs
):
537 """SetStatusWidths(self, int widths)"""
538 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
540 def PushStatusText(*args
, **kwargs
):
541 """PushStatusText(self, String text, int number=0)"""
542 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
544 def PopStatusText(*args
, **kwargs
):
545 """PopStatusText(self, int number=0)"""
546 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
548 def SetStatusBarPane(*args
, **kwargs
):
549 """SetStatusBarPane(self, int n)"""
550 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
552 def GetStatusBarPane(*args
, **kwargs
):
553 """GetStatusBarPane(self) -> int"""
554 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
556 def CreateToolBar(*args
, **kwargs
):
557 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
558 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
560 def GetToolBar(*args
, **kwargs
):
561 """GetToolBar(self) -> wxToolBar"""
562 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
564 def SetToolBar(*args
, **kwargs
):
565 """SetToolBar(self, wxToolBar toolbar)"""
566 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
568 def DoGiveHelp(*args
, **kwargs
):
569 """DoGiveHelp(self, String text, bool show)"""
570 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
572 def DoMenuUpdates(*args
, **kwargs
):
573 """DoMenuUpdates(self, Menu menu=None)"""
574 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
576 def GetClassDefaultAttributes(*args
, **kwargs
):
578 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
580 Get the default attributes for this class. This is useful if you want
581 to use the same font or colour in your own control as in a standard
582 control -- which is a much better idea than hard coding specific
583 colours or fonts which might look completely out of place on the
584 user's system, especially if it uses themes.
586 The variant parameter is only relevant under Mac currently and is
587 ignore under other platforms. Under Mac, it will change the size of
588 the returned font. See `wx.Window.SetWindowVariant` for more about
591 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
593 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
595 class FramePtr(Frame
):
596 def __init__(self
, this
):
598 if not hasattr(self
,"thisown"): self
.thisown
= 0
599 self
.__class
__ = Frame
600 _windows_
.Frame_swigregister(FramePtr
)
602 def PreFrame(*args
, **kwargs
):
603 """PreFrame() -> Frame"""
604 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
608 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
610 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
612 Get the default attributes for this class. This is useful if you want
613 to use the same font or colour in your own control as in a standard
614 control -- which is a much better idea than hard coding specific
615 colours or fonts which might look completely out of place on the
616 user's system, especially if it uses themes.
618 The variant parameter is only relevant under Mac currently and is
619 ignore under other platforms. Under Mac, it will change the size of
620 the returned font. See `wx.Window.SetWindowVariant` for more about
623 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
625 #---------------------------------------------------------------------------
627 class Dialog(TopLevelWindow
):
628 """Proxy of C++ Dialog class"""
630 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
631 def __init__(self
, *args
, **kwargs
):
633 __init__(self, Window parent, int id=-1, String title=EmptyString,
634 Point pos=DefaultPosition, Size size=DefaultSize,
635 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
637 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
638 self
.this
= newobj
.this
641 self
._setOORInfo
(self
)
643 def Create(*args
, **kwargs
):
645 Create(self, Window parent, int id=-1, String title=EmptyString,
646 Point pos=DefaultPosition, Size size=DefaultSize,
647 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
649 return _windows_
.Dialog_Create(*args
, **kwargs
)
651 def SetReturnCode(*args
, **kwargs
):
652 """SetReturnCode(self, int returnCode)"""
653 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
655 def GetReturnCode(*args
, **kwargs
):
656 """GetReturnCode(self) -> int"""
657 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
659 def CreateTextSizer(*args
, **kwargs
):
660 """CreateTextSizer(self, String message) -> Sizer"""
661 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
663 def CreateButtonSizer(*args
, **kwargs
):
664 """CreateButtonSizer(self, long flags) -> Sizer"""
665 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
667 def CreateStdDialogButtonSizer(*args
, **kwargs
):
668 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
669 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
671 def IsModal(*args
, **kwargs
):
672 """IsModal(self) -> bool"""
673 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
675 def ShowModal(*args
, **kwargs
):
676 """ShowModal(self) -> int"""
677 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
679 def EndModal(*args
, **kwargs
):
680 """EndModal(self, int retCode)"""
681 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
683 def GetClassDefaultAttributes(*args
, **kwargs
):
685 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
687 Get the default attributes for this class. This is useful if you want
688 to use the same font or colour in your own control as in a standard
689 control -- which is a much better idea than hard coding specific
690 colours or fonts which might look completely out of place on the
691 user's system, especially if it uses themes.
693 The variant parameter is only relevant under Mac currently and is
694 ignore under other platforms. Under Mac, it will change the size of
695 the returned font. See `wx.Window.SetWindowVariant` for more about
698 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
700 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
701 def SendSizeEvent(self
):
702 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
705 class DialogPtr(Dialog
):
706 def __init__(self
, this
):
708 if not hasattr(self
,"thisown"): self
.thisown
= 0
709 self
.__class
__ = Dialog
710 _windows_
.Dialog_swigregister(DialogPtr
)
712 def PreDialog(*args
, **kwargs
):
713 """PreDialog() -> Dialog"""
714 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
718 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
720 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
722 Get the default attributes for this class. This is useful if you want
723 to use the same font or colour in your own control as in a standard
724 control -- which is a much better idea than hard coding specific
725 colours or fonts which might look completely out of place on the
726 user's system, especially if it uses themes.
728 The variant parameter is only relevant under Mac currently and is
729 ignore under other platforms. Under Mac, it will change the size of
730 the returned font. See `wx.Window.SetWindowVariant` for more about
733 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
735 #---------------------------------------------------------------------------
737 class MiniFrame(Frame
):
738 """Proxy of C++ MiniFrame class"""
740 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
741 def __init__(self
, *args
, **kwargs
):
743 __init__(self, Window parent, int id=-1, String title=EmptyString,
744 Point pos=DefaultPosition, Size size=DefaultSize,
745 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
747 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
748 self
.this
= newobj
.this
751 self
._setOORInfo
(self
)
753 def Create(*args
, **kwargs
):
755 Create(self, Window parent, int id=-1, String title=EmptyString,
756 Point pos=DefaultPosition, Size size=DefaultSize,
757 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
759 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
762 class MiniFramePtr(MiniFrame
):
763 def __init__(self
, this
):
765 if not hasattr(self
,"thisown"): self
.thisown
= 0
766 self
.__class
__ = MiniFrame
767 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
769 def PreMiniFrame(*args
, **kwargs
):
770 """PreMiniFrame() -> MiniFrame"""
771 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
775 #---------------------------------------------------------------------------
777 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
778 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
779 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
780 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
781 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
782 class SplashScreenWindow(_core
.Window
):
783 """Proxy of C++ SplashScreenWindow class"""
785 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
786 def __init__(self
, *args
, **kwargs
):
788 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
789 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
791 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
792 self
.this
= newobj
.this
795 self
._setOORInfo
(self
)
797 def SetBitmap(*args
, **kwargs
):
798 """SetBitmap(self, Bitmap bitmap)"""
799 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
801 def GetBitmap(*args
, **kwargs
):
802 """GetBitmap(self) -> Bitmap"""
803 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
806 class SplashScreenWindowPtr(SplashScreenWindow
):
807 def __init__(self
, this
):
809 if not hasattr(self
,"thisown"): self
.thisown
= 0
810 self
.__class
__ = SplashScreenWindow
811 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
813 class SplashScreen(Frame
):
814 """Proxy of C++ SplashScreen class"""
816 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
817 def __init__(self
, *args
, **kwargs
):
819 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
820 Window parent, int id=-1, Point pos=DefaultPosition,
821 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
823 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
824 self
.this
= newobj
.this
827 self
._setOORInfo
(self
)
829 def GetSplashStyle(*args
, **kwargs
):
830 """GetSplashStyle(self) -> long"""
831 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
833 def GetSplashWindow(*args
, **kwargs
):
834 """GetSplashWindow(self) -> SplashScreenWindow"""
835 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
837 def GetTimeout(*args
, **kwargs
):
838 """GetTimeout(self) -> int"""
839 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
842 class SplashScreenPtr(SplashScreen
):
843 def __init__(self
, this
):
845 if not hasattr(self
,"thisown"): self
.thisown
= 0
846 self
.__class
__ = SplashScreen
847 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
849 #---------------------------------------------------------------------------
851 SB_NORMAL
= _windows_
.SB_NORMAL
852 SB_FLAT
= _windows_
.SB_FLAT
853 SB_RAISED
= _windows_
.SB_RAISED
854 class StatusBar(_core
.Window
):
855 """Proxy of C++ StatusBar class"""
857 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
858 def __init__(self
, *args
, **kwargs
):
860 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
861 String name=StatusLineNameStr) -> StatusBar
863 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
864 self
.this
= newobj
.this
867 self
._setOORInfo
(self
)
869 def Create(*args
, **kwargs
):
870 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
871 return _windows_
.StatusBar_Create(*args
, **kwargs
)
873 def SetFieldsCount(*args
, **kwargs
):
874 """SetFieldsCount(self, int number=1)"""
875 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
877 def GetFieldsCount(*args
, **kwargs
):
878 """GetFieldsCount(self) -> int"""
879 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
881 def SetStatusText(*args
, **kwargs
):
882 """SetStatusText(self, String text, int number=0)"""
883 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
885 def GetStatusText(*args
, **kwargs
):
886 """GetStatusText(self, int number=0) -> String"""
887 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
889 def PushStatusText(*args
, **kwargs
):
890 """PushStatusText(self, String text, int number=0)"""
891 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
893 def PopStatusText(*args
, **kwargs
):
894 """PopStatusText(self, int number=0)"""
895 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
897 def SetStatusWidths(*args
, **kwargs
):
898 """SetStatusWidths(self, int widths)"""
899 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
901 def SetStatusStyles(*args
, **kwargs
):
902 """SetStatusStyles(self, int styles)"""
903 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
905 def GetFieldRect(*args
, **kwargs
):
906 """GetFieldRect(self, int i) -> Rect"""
907 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
909 def SetMinHeight(*args
, **kwargs
):
910 """SetMinHeight(self, int height)"""
911 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
913 def GetBorderX(*args
, **kwargs
):
914 """GetBorderX(self) -> int"""
915 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
917 def GetBorderY(*args
, **kwargs
):
918 """GetBorderY(self) -> int"""
919 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
921 def GetClassDefaultAttributes(*args
, **kwargs
):
923 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
925 Get the default attributes for this class. This is useful if you want
926 to use the same font or colour in your own control as in a standard
927 control -- which is a much better idea than hard coding specific
928 colours or fonts which might look completely out of place on the
929 user's system, especially if it uses themes.
931 The variant parameter is only relevant under Mac currently and is
932 ignore under other platforms. Under Mac, it will change the size of
933 the returned font. See `wx.Window.SetWindowVariant` for more about
936 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
938 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
940 class StatusBarPtr(StatusBar
):
941 def __init__(self
, this
):
943 if not hasattr(self
,"thisown"): self
.thisown
= 0
944 self
.__class
__ = StatusBar
945 _windows_
.StatusBar_swigregister(StatusBarPtr
)
947 def PreStatusBar(*args
, **kwargs
):
948 """PreStatusBar() -> StatusBar"""
949 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
953 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
955 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
957 Get the default attributes for this class. This is useful if you want
958 to use the same font or colour in your own control as in a standard
959 control -- which is a much better idea than hard coding specific
960 colours or fonts which might look completely out of place on the
961 user's system, especially if it uses themes.
963 The variant parameter is only relevant under Mac currently and is
964 ignore under other platforms. Under Mac, it will change the size of
965 the returned font. See `wx.Window.SetWindowVariant` for more about
968 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
970 #---------------------------------------------------------------------------
972 SP_NOBORDER
= _windows_
.SP_NOBORDER
973 SP_NOSASH
= _windows_
.SP_NOSASH
974 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
975 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
976 SP_3DSASH
= _windows_
.SP_3DSASH
977 SP_3DBORDER
= _windows_
.SP_3DBORDER
978 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
979 SP_BORDER
= _windows_
.SP_BORDER
980 SP_3D
= _windows_
.SP_3D
981 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
982 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
983 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
984 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
985 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
986 class SplitterWindow(_core
.Window
):
988 wx.SplitterWindow manages up to two subwindows or panes, with an
989 optional vertical or horizontal split which can be used with the mouse
993 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
994 def __init__(self
, *args
, **kwargs
):
996 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
997 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
999 Constructor. Creates and shows a SplitterWindow.
1001 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1002 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
1003 self
.this
= newobj
.this
1006 self
._setOORInfo
(self
)
1008 def Create(*args
, **kwargs
):
1010 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1011 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
1013 Create the GUI part of the SplitterWindow for the 2-phase create.
1015 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
1017 def GetWindow1(*args
, **kwargs
):
1019 GetWindow1(self) -> Window
1021 Gets the only or left/top pane.
1023 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
1025 def GetWindow2(*args
, **kwargs
):
1027 GetWindow2(self) -> Window
1029 Gets the right/bottom pane.
1031 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
1033 def SetSplitMode(*args
, **kwargs
):
1035 SetSplitMode(self, int mode)
1037 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
1038 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
1041 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
1043 def GetSplitMode(*args
, **kwargs
):
1045 GetSplitMode(self) -> int
1049 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
1051 def Initialize(*args
, **kwargs
):
1053 Initialize(self, Window window)
1055 Initializes the splitter window to have one pane. This should be
1056 called if you wish to initially view only a single pane in the
1057 splitter window. The child window is shown if it is currently hidden.
1059 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1061 def SplitVertically(*args
, **kwargs
):
1063 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1065 Initializes the left and right panes of the splitter window. The
1066 child windows are shown if they are currently hidden.
1068 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1070 def SplitHorizontally(*args
, **kwargs
):
1072 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1074 Initializes the top and bottom panes of the splitter window. The
1075 child windows are shown if they are currently hidden.
1077 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1079 def Unsplit(*args
, **kwargs
):
1081 Unsplit(self, Window toRemove=None) -> bool
1083 Unsplits the window. Pass the pane to remove, or None to remove the
1084 right or bottom pane. Returns True if successful, False otherwise (the
1085 window was not split).
1087 This function will not actually delete the pane being
1088 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1089 for the desired behaviour. By default, the pane being
1090 removed is only hidden.
1092 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1094 def ReplaceWindow(*args
, **kwargs
):
1096 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1098 This function replaces one of the windows managed by the
1099 SplitterWindow with another one. It is in general better to use it
1100 instead of calling Unsplit() and then resplitting the window back
1101 because it will provoke much less flicker. It is valid to call this
1102 function whether the splitter has two windows or only one.
1104 Both parameters should be non-None and winOld must specify one of the
1105 windows managed by the splitter. If the parameters are incorrect or
1106 the window couldn't be replaced, False is returned. Otherwise the
1107 function will return True, but please notice that it will not Destroy
1108 the replaced window and you may wish to do it yourself.
1110 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1112 def UpdateSize(*args
, **kwargs
):
1116 Causes any pending sizing of the sash and child panes to take place
1119 Such resizing normally takes place in idle time, in order to wait for
1120 layout to be completed. However, this can cause unacceptable flicker
1121 as the panes are resized after the window has been shown. To work
1122 around this, you can perform window layout (for example by sending a
1123 size event to the parent window), and then call this function, before
1124 showing the top-level window.
1126 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1128 def IsSplit(*args
, **kwargs
):
1130 IsSplit(self) -> bool
1132 Is the window split?
1134 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1136 def SetSashSize(*args
, **kwargs
):
1138 SetSashSize(self, int width)
1142 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1144 def SetBorderSize(*args
, **kwargs
):
1146 SetBorderSize(self, int width)
1148 Sets the border size. Currently a NOP.
1150 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1152 def GetSashSize(*args
, **kwargs
):
1154 GetSashSize(self) -> int
1158 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1160 def GetBorderSize(*args
, **kwargs
):
1162 GetBorderSize(self) -> int
1164 Gets the border size
1166 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1168 def SetSashPosition(*args
, **kwargs
):
1170 SetSashPosition(self, int position, bool redraw=True)
1172 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1173 are resized and the sash and border are redrawn.
1175 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1177 def GetSashPosition(*args
, **kwargs
):
1179 GetSashPosition(self) -> int
1181 Returns the surrent sash position.
1183 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1185 def SetSashGravity(*args
, **kwargs
):
1187 SetSashGravity(self, double gravity)
1189 Set the sash gravity. Gravity is a floating-point factor between 0.0
1190 and 1.0 which controls position of sash while resizing the
1191 `wx.SplitterWindow`. The gravity specifies how much the left/top
1192 window will grow while resizing.
1194 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1196 def GetSashGravity(*args
, **kwargs
):
1198 GetSashGravity(self) -> double
1200 Gets the sash gravity.
1202 :see: `SetSashGravity`
1205 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1207 def SetMinimumPaneSize(*args
, **kwargs
):
1209 SetMinimumPaneSize(self, int min)
1211 Sets the minimum pane size in pixels.
1213 The default minimum pane size is zero, which means that either pane
1214 can be reduced to zero by dragging the sash, thus removing one of the
1215 panes. To prevent this behaviour (and veto out-of-range sash
1216 dragging), set a minimum size, for example 20 pixels. If the
1217 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1218 the window may be unsplit even if minimum size is non-zero.
1220 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1222 def GetMinimumPaneSize(*args
, **kwargs
):
1224 GetMinimumPaneSize(self) -> int
1226 Gets the minimum pane size in pixels.
1228 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1230 def SashHitTest(*args
, **kwargs
):
1232 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1234 Tests for x, y over the sash
1236 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1238 def SizeWindows(*args
, **kwargs
):
1244 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1246 def SetNeedUpdating(*args
, **kwargs
):
1247 """SetNeedUpdating(self, bool needUpdating)"""
1248 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1250 def GetNeedUpdating(*args
, **kwargs
):
1251 """GetNeedUpdating(self) -> bool"""
1252 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1254 def GetClassDefaultAttributes(*args
, **kwargs
):
1256 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1258 Get the default attributes for this class. This is useful if you want
1259 to use the same font or colour in your own control as in a standard
1260 control -- which is a much better idea than hard coding specific
1261 colours or fonts which might look completely out of place on the
1262 user's system, especially if it uses themes.
1264 The variant parameter is only relevant under Mac currently and is
1265 ignore under other platforms. Under Mac, it will change the size of
1266 the returned font. See `wx.Window.SetWindowVariant` for more about
1269 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1271 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1273 class SplitterWindowPtr(SplitterWindow
):
1274 def __init__(self
, this
):
1276 if not hasattr(self
,"thisown"): self
.thisown
= 0
1277 self
.__class
__ = SplitterWindow
1278 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1279 SplitterNameStr
= cvar
.SplitterNameStr
1281 def PreSplitterWindow(*args
, **kwargs
):
1283 PreSplitterWindow() -> SplitterWindow
1285 Precreate a SplitterWindow for 2-phase creation.
1287 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1291 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1293 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1295 Get the default attributes for this class. This is useful if you want
1296 to use the same font or colour in your own control as in a standard
1297 control -- which is a much better idea than hard coding specific
1298 colours or fonts which might look completely out of place on the
1299 user's system, especially if it uses themes.
1301 The variant parameter is only relevant under Mac currently and is
1302 ignore under other platforms. Under Mac, it will change the size of
1303 the returned font. See `wx.Window.SetWindowVariant` for more about
1306 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1308 class SplitterEvent(_core
.NotifyEvent
):
1309 """This class represents the events generated by a splitter control."""
1311 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1312 def __init__(self
, *args
, **kwargs
):
1314 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1316 This class represents the events generated by a splitter control.
1318 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1319 self
.this
= newobj
.this
1322 def SetSashPosition(*args
, **kwargs
):
1324 SetSashPosition(self, int pos)
1326 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1327 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1328 events, sets the the new sash position. In the case of _CHANGING
1329 events, sets the new tracking bar position so visual feedback during
1330 dragging will represent that change that will actually take place. Set
1331 to -1 from the event handler code to prevent repositioning.
1333 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1335 def GetSashPosition(*args
, **kwargs
):
1337 GetSashPosition(self) -> int
1339 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1340 and EVT_SPLITTER_SASH_POS_CHANGED events.
1342 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1344 def GetWindowBeingRemoved(*args
, **kwargs
):
1346 GetWindowBeingRemoved(self) -> Window
1348 Returns a pointer to the window being removed when a splitter window
1351 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1353 def GetX(*args
, **kwargs
):
1357 Returns the x coordinate of the double-click point in a
1358 EVT_SPLITTER_DCLICK event.
1360 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1362 def GetY(*args
, **kwargs
):
1366 Returns the y coordinate of the double-click point in a
1367 EVT_SPLITTER_DCLICK event.
1369 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1372 class SplitterEventPtr(SplitterEvent
):
1373 def __init__(self
, this
):
1375 if not hasattr(self
,"thisown"): self
.thisown
= 0
1376 self
.__class
__ = SplitterEvent
1377 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1379 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1380 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1381 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1382 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1383 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1384 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1385 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1386 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1387 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1389 #---------------------------------------------------------------------------
1391 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1392 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1393 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1394 SW_NOBORDER
= _windows_
.SW_NOBORDER
1395 SW_BORDER
= _windows_
.SW_BORDER
1396 SW_3DSASH
= _windows_
.SW_3DSASH
1397 SW_3DBORDER
= _windows_
.SW_3DBORDER
1398 SW_3D
= _windows_
.SW_3D
1399 SASH_TOP
= _windows_
.SASH_TOP
1400 SASH_RIGHT
= _windows_
.SASH_RIGHT
1401 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1402 SASH_LEFT
= _windows_
.SASH_LEFT
1403 SASH_NONE
= _windows_
.SASH_NONE
1404 class SashWindow(_core
.Window
):
1405 """Proxy of C++ SashWindow class"""
1407 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1408 def __init__(self
, *args
, **kwargs
):
1410 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1411 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1412 String name=SashNameStr) -> SashWindow
1414 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1415 self
.this
= newobj
.this
1418 self
._setOORInfo
(self
)
1420 def Create(*args
, **kwargs
):
1422 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1423 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1424 String name=SashNameStr) -> bool
1426 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1428 def SetSashVisible(*args
, **kwargs
):
1429 """SetSashVisible(self, int edge, bool sash)"""
1430 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1432 def GetSashVisible(*args
, **kwargs
):
1433 """GetSashVisible(self, int edge) -> bool"""
1434 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1436 def SetSashBorder(*args
, **kwargs
):
1437 """SetSashBorder(self, int edge, bool border)"""
1438 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1440 def HasBorder(*args
, **kwargs
):
1441 """HasBorder(self, int edge) -> bool"""
1442 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1444 def GetEdgeMargin(*args
, **kwargs
):
1445 """GetEdgeMargin(self, int edge) -> int"""
1446 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1448 def SetDefaultBorderSize(*args
, **kwargs
):
1449 """SetDefaultBorderSize(self, int width)"""
1450 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1452 def GetDefaultBorderSize(*args
, **kwargs
):
1453 """GetDefaultBorderSize(self) -> int"""
1454 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1456 def SetExtraBorderSize(*args
, **kwargs
):
1457 """SetExtraBorderSize(self, int width)"""
1458 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1460 def GetExtraBorderSize(*args
, **kwargs
):
1461 """GetExtraBorderSize(self) -> int"""
1462 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1464 def SetMinimumSizeX(*args
, **kwargs
):
1465 """SetMinimumSizeX(self, int min)"""
1466 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1468 def SetMinimumSizeY(*args
, **kwargs
):
1469 """SetMinimumSizeY(self, int min)"""
1470 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1472 def GetMinimumSizeX(*args
, **kwargs
):
1473 """GetMinimumSizeX(self) -> int"""
1474 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1476 def GetMinimumSizeY(*args
, **kwargs
):
1477 """GetMinimumSizeY(self) -> int"""
1478 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1480 def SetMaximumSizeX(*args
, **kwargs
):
1481 """SetMaximumSizeX(self, int max)"""
1482 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1484 def SetMaximumSizeY(*args
, **kwargs
):
1485 """SetMaximumSizeY(self, int max)"""
1486 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1488 def GetMaximumSizeX(*args
, **kwargs
):
1489 """GetMaximumSizeX(self) -> int"""
1490 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1492 def GetMaximumSizeY(*args
, **kwargs
):
1493 """GetMaximumSizeY(self) -> int"""
1494 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1496 def SashHitTest(*args
, **kwargs
):
1497 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1498 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1500 def SizeWindows(*args
, **kwargs
):
1501 """SizeWindows(self)"""
1502 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1505 class SashWindowPtr(SashWindow
):
1506 def __init__(self
, this
):
1508 if not hasattr(self
,"thisown"): self
.thisown
= 0
1509 self
.__class
__ = SashWindow
1510 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1511 SashNameStr
= cvar
.SashNameStr
1512 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1514 def PreSashWindow(*args
, **kwargs
):
1515 """PreSashWindow() -> SashWindow"""
1516 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1520 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1521 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1522 class SashEvent(_core
.CommandEvent
):
1523 """Proxy of C++ SashEvent class"""
1525 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1526 def __init__(self
, *args
, **kwargs
):
1527 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1528 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1529 self
.this
= newobj
.this
1532 def SetEdge(*args
, **kwargs
):
1533 """SetEdge(self, int edge)"""
1534 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1536 def GetEdge(*args
, **kwargs
):
1537 """GetEdge(self) -> int"""
1538 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1540 def SetDragRect(*args
, **kwargs
):
1541 """SetDragRect(self, Rect rect)"""
1542 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1544 def GetDragRect(*args
, **kwargs
):
1545 """GetDragRect(self) -> Rect"""
1546 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1548 def SetDragStatus(*args
, **kwargs
):
1549 """SetDragStatus(self, int status)"""
1550 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1552 def GetDragStatus(*args
, **kwargs
):
1553 """GetDragStatus(self) -> int"""
1554 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1557 class SashEventPtr(SashEvent
):
1558 def __init__(self
, this
):
1560 if not hasattr(self
,"thisown"): self
.thisown
= 0
1561 self
.__class
__ = SashEvent
1562 _windows_
.SashEvent_swigregister(SashEventPtr
)
1564 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1565 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1566 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1568 #---------------------------------------------------------------------------
1570 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1571 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1572 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1573 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1574 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1575 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1576 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1577 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1578 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1579 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1580 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1581 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1582 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1583 class QueryLayoutInfoEvent(_core
.Event
):
1584 """Proxy of C++ QueryLayoutInfoEvent class"""
1586 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1587 def __init__(self
, *args
, **kwargs
):
1588 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1589 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1590 self
.this
= newobj
.this
1593 def SetRequestedLength(*args
, **kwargs
):
1594 """SetRequestedLength(self, int length)"""
1595 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1597 def GetRequestedLength(*args
, **kwargs
):
1598 """GetRequestedLength(self) -> int"""
1599 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1601 def SetFlags(*args
, **kwargs
):
1602 """SetFlags(self, int flags)"""
1603 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1605 def GetFlags(*args
, **kwargs
):
1606 """GetFlags(self) -> int"""
1607 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1609 def SetSize(*args
, **kwargs
):
1610 """SetSize(self, Size size)"""
1611 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1613 def GetSize(*args
, **kwargs
):
1614 """GetSize(self) -> Size"""
1615 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1617 def SetOrientation(*args
, **kwargs
):
1618 """SetOrientation(self, int orient)"""
1619 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1621 def GetOrientation(*args
, **kwargs
):
1622 """GetOrientation(self) -> int"""
1623 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1625 def SetAlignment(*args
, **kwargs
):
1626 """SetAlignment(self, int align)"""
1627 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1629 def GetAlignment(*args
, **kwargs
):
1630 """GetAlignment(self) -> int"""
1631 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1634 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1635 def __init__(self
, this
):
1637 if not hasattr(self
,"thisown"): self
.thisown
= 0
1638 self
.__class
__ = QueryLayoutInfoEvent
1639 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1641 class CalculateLayoutEvent(_core
.Event
):
1642 """Proxy of C++ CalculateLayoutEvent class"""
1644 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1645 def __init__(self
, *args
, **kwargs
):
1646 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1647 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1648 self
.this
= newobj
.this
1651 def SetFlags(*args
, **kwargs
):
1652 """SetFlags(self, int flags)"""
1653 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1655 def GetFlags(*args
, **kwargs
):
1656 """GetFlags(self) -> int"""
1657 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1659 def SetRect(*args
, **kwargs
):
1660 """SetRect(self, Rect rect)"""
1661 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1663 def GetRect(*args
, **kwargs
):
1664 """GetRect(self) -> Rect"""
1665 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1668 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1669 def __init__(self
, this
):
1671 if not hasattr(self
,"thisown"): self
.thisown
= 0
1672 self
.__class
__ = CalculateLayoutEvent
1673 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1675 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1676 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1678 class SashLayoutWindow(SashWindow
):
1679 """Proxy of C++ SashLayoutWindow class"""
1681 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1682 def __init__(self
, *args
, **kwargs
):
1684 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1685 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1686 String name=SashLayoutNameStr) -> SashLayoutWindow
1688 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1689 self
.this
= newobj
.this
1692 self
._setOORInfo
(self
)
1694 def Create(*args
, **kwargs
):
1696 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1697 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1698 String name=SashLayoutNameStr) -> bool
1700 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1702 def GetAlignment(*args
, **kwargs
):
1703 """GetAlignment(self) -> int"""
1704 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1706 def GetOrientation(*args
, **kwargs
):
1707 """GetOrientation(self) -> int"""
1708 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1710 def SetAlignment(*args
, **kwargs
):
1711 """SetAlignment(self, int alignment)"""
1712 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1714 def SetDefaultSize(*args
, **kwargs
):
1715 """SetDefaultSize(self, Size size)"""
1716 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1718 def SetOrientation(*args
, **kwargs
):
1719 """SetOrientation(self, int orientation)"""
1720 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1723 class SashLayoutWindowPtr(SashLayoutWindow
):
1724 def __init__(self
, this
):
1726 if not hasattr(self
,"thisown"): self
.thisown
= 0
1727 self
.__class
__ = SashLayoutWindow
1728 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1730 def PreSashLayoutWindow(*args
, **kwargs
):
1731 """PreSashLayoutWindow() -> SashLayoutWindow"""
1732 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1736 class LayoutAlgorithm(_core
.Object
):
1737 """Proxy of C++ LayoutAlgorithm class"""
1739 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1740 def __init__(self
, *args
, **kwargs
):
1741 """__init__(self) -> LayoutAlgorithm"""
1742 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1743 self
.this
= newobj
.this
1746 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1749 if self
.thisown
: destroy(self
)
1752 def LayoutMDIFrame(*args
, **kwargs
):
1753 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1754 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1756 def LayoutFrame(*args
, **kwargs
):
1757 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1758 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1760 def LayoutWindow(*args
, **kwargs
):
1761 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1762 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1765 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1766 def __init__(self
, this
):
1768 if not hasattr(self
,"thisown"): self
.thisown
= 0
1769 self
.__class
__ = LayoutAlgorithm
1770 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1772 class PopupWindow(_core
.Window
):
1773 """Proxy of C++ PopupWindow class"""
1775 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1776 def __init__(self
, *args
, **kwargs
):
1777 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1778 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1779 self
.this
= newobj
.this
1783 class PopupWindowPtr(PopupWindow
):
1784 def __init__(self
, this
):
1786 if not hasattr(self
,"thisown"): self
.thisown
= 0
1787 self
.__class
__ = PopupWindow
1788 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1790 def PrePopupWindow(*args
, **kwargs
):
1791 """PrePopupWindow() -> PopupWindow"""
1792 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1796 class PopupTransientWindow(PopupWindow
):
1797 """Proxy of C++ PopupTransientWindow class"""
1799 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1800 def __init__(self
, *args
, **kwargs
):
1801 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1802 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1803 self
.this
= newobj
.this
1807 class PopupTransientWindowPtr(PopupTransientWindow
):
1808 def __init__(self
, this
):
1810 if not hasattr(self
,"thisown"): self
.thisown
= 0
1811 self
.__class
__ = PopupTransientWindow
1812 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1814 def PrePopupTransientWindow(*args
, **kwargs
):
1815 """PrePopupTransientWindow() -> PopupTransientWindow"""
1816 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1820 #---------------------------------------------------------------------------
1822 class TipWindow(Frame
):
1823 """Proxy of C++ TipWindow class"""
1825 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1826 def __init__(self
, *args
, **kwargs
):
1827 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1828 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1829 self
.this
= newobj
.this
1832 self
._setOORInfo
(self
)
1834 def SetBoundingRect(*args
, **kwargs
):
1835 """SetBoundingRect(self, Rect rectBound)"""
1836 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1838 def Close(*args
, **kwargs
):
1842 This function simply generates a EVT_CLOSE event whose handler usually
1843 tries to close the window. It doesn't close the window itself,
1844 however. If force is False (the default) then the window's close
1845 handler will be allowed to veto the destruction of the window.
1847 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1850 class TipWindowPtr(TipWindow
):
1851 def __init__(self
, this
):
1853 if not hasattr(self
,"thisown"): self
.thisown
= 0
1854 self
.__class
__ = TipWindow
1855 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1857 #---------------------------------------------------------------------------
1859 class VScrolledWindow(Panel
):
1860 """Proxy of C++ VScrolledWindow class"""
1862 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1863 def __init__(self
, *args
, **kwargs
):
1865 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1866 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1868 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1869 self
.this
= newobj
.this
1872 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1874 def _setCallbackInfo(*args
, **kwargs
):
1875 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1876 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1878 def Create(*args
, **kwargs
):
1880 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1881 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1883 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1885 def SetLineCount(*args
, **kwargs
):
1886 """SetLineCount(self, size_t count)"""
1887 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1889 def ScrollToLine(*args
, **kwargs
):
1890 """ScrollToLine(self, size_t line) -> bool"""
1891 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1893 def ScrollLines(*args
, **kwargs
):
1895 ScrollLines(self, int lines) -> bool
1897 If the platform and window class supports it, scrolls the window by
1898 the given number of lines down, if lines is positive, or up if lines
1899 is negative. Returns True if the window was scrolled, False if it was
1900 already on top/bottom and nothing was done.
1902 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1904 def ScrollPages(*args
, **kwargs
):
1906 ScrollPages(self, int pages) -> bool
1908 If the platform and window class supports it, scrolls the window by
1909 the given number of pages down, if pages is positive, or up if pages
1910 is negative. Returns True if the window was scrolled, False if it was
1911 already on top/bottom and nothing was done.
1913 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1915 def RefreshLine(*args
, **kwargs
):
1916 """RefreshLine(self, size_t line)"""
1917 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1919 def RefreshLines(*args
, **kwargs
):
1920 """RefreshLines(self, size_t from, size_t to)"""
1921 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1923 def HitTestXY(*args
, **kwargs
):
1925 HitTestXY(self, int x, int y) -> int
1927 Test where the given (in client coords) point lies
1929 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1931 def HitTest(*args
, **kwargs
):
1933 HitTest(self, Point pt) -> int
1935 Test where the given (in client coords) point lies
1937 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1939 def RefreshAll(*args
, **kwargs
):
1940 """RefreshAll(self)"""
1941 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1943 def GetLineCount(*args
, **kwargs
):
1944 """GetLineCount(self) -> size_t"""
1945 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1947 def GetVisibleBegin(*args
, **kwargs
):
1948 """GetVisibleBegin(self) -> size_t"""
1949 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
1951 def GetVisibleEnd(*args
, **kwargs
):
1952 """GetVisibleEnd(self) -> size_t"""
1953 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
1955 def IsVisible(*args
, **kwargs
):
1956 """IsVisible(self, size_t line) -> bool"""
1957 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1959 def GetFirstVisibleLine(*args
, **kwargs
):
1960 """GetFirstVisibleLine(self) -> size_t"""
1961 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1963 def GetLastVisibleLine(*args
, **kwargs
):
1964 """GetLastVisibleLine(self) -> size_t"""
1965 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1968 class VScrolledWindowPtr(VScrolledWindow
):
1969 def __init__(self
, this
):
1971 if not hasattr(self
,"thisown"): self
.thisown
= 0
1972 self
.__class
__ = VScrolledWindow
1973 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1975 def PreVScrolledWindow(*args
, **kwargs
):
1976 """PreVScrolledWindow() -> VScrolledWindow"""
1977 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1981 class VListBox(VScrolledWindow
):
1982 """Proxy of C++ VListBox class"""
1984 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1985 def __init__(self
, *args
, **kwargs
):
1987 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1988 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1990 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1991 self
.this
= newobj
.this
1994 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1996 def _setCallbackInfo(*args
, **kwargs
):
1997 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1998 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
2000 def Create(*args
, **kwargs
):
2002 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2003 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2005 return _windows_
.VListBox_Create(*args
, **kwargs
)
2007 def GetItemCount(*args
, **kwargs
):
2008 """GetItemCount(self) -> size_t"""
2009 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
2011 def HasMultipleSelection(*args
, **kwargs
):
2012 """HasMultipleSelection(self) -> bool"""
2013 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
2015 def GetSelection(*args
, **kwargs
):
2016 """GetSelection(self) -> int"""
2017 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
2019 def IsCurrent(*args
, **kwargs
):
2020 """IsCurrent(self, size_t item) -> bool"""
2021 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
2023 def IsSelected(*args
, **kwargs
):
2024 """IsSelected(self, size_t item) -> bool"""
2025 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
2027 def GetSelectedCount(*args
, **kwargs
):
2028 """GetSelectedCount(self) -> size_t"""
2029 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
2031 def GetFirstSelected(*args
, **kwargs
):
2032 """GetFirstSelected(self) -> PyObject"""
2033 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
2035 def GetNextSelected(*args
, **kwargs
):
2036 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
2037 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
2039 def GetMargins(*args
, **kwargs
):
2040 """GetMargins(self) -> Point"""
2041 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
2043 def GetSelectionBackground(*args
, **kwargs
):
2044 """GetSelectionBackground(self) -> Colour"""
2045 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
2047 def SetItemCount(*args
, **kwargs
):
2048 """SetItemCount(self, size_t count)"""
2049 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
2051 def Clear(*args
, **kwargs
):
2053 return _windows_
.VListBox_Clear(*args
, **kwargs
)
2055 def SetSelection(*args
, **kwargs
):
2056 """SetSelection(self, int selection)"""
2057 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
2059 def Select(*args
, **kwargs
):
2060 """Select(self, size_t item, bool select=True) -> bool"""
2061 return _windows_
.VListBox_Select(*args
, **kwargs
)
2063 def SelectRange(*args
, **kwargs
):
2064 """SelectRange(self, size_t from, size_t to) -> bool"""
2065 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
2067 def Toggle(*args
, **kwargs
):
2068 """Toggle(self, size_t item)"""
2069 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
2071 def SelectAll(*args
, **kwargs
):
2072 """SelectAll(self) -> bool"""
2073 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
2075 def DeselectAll(*args
, **kwargs
):
2076 """DeselectAll(self) -> bool"""
2077 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
2079 def SetMargins(*args
, **kwargs
):
2080 """SetMargins(self, Point pt)"""
2081 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
2083 def SetMarginsXY(*args
, **kwargs
):
2084 """SetMarginsXY(self, int x, int y)"""
2085 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
2087 def SetSelectionBackground(*args
, **kwargs
):
2088 """SetSelectionBackground(self, Colour col)"""
2089 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
2092 class VListBoxPtr(VListBox
):
2093 def __init__(self
, this
):
2095 if not hasattr(self
,"thisown"): self
.thisown
= 0
2096 self
.__class
__ = VListBox
2097 _windows_
.VListBox_swigregister(VListBoxPtr
)
2098 VListBoxNameStr
= cvar
.VListBoxNameStr
2100 def PreVListBox(*args
, **kwargs
):
2101 """PreVListBox() -> VListBox"""
2102 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2106 class HtmlListBox(VListBox
):
2107 """Proxy of C++ HtmlListBox class"""
2109 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2110 def __init__(self
, *args
, **kwargs
):
2112 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2113 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2115 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2116 self
.this
= newobj
.this
2119 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2121 def _setCallbackInfo(*args
, **kwargs
):
2122 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2123 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2125 def Create(*args
, **kwargs
):
2127 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2128 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2130 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2132 def RefreshAll(*args
, **kwargs
):
2133 """RefreshAll(self)"""
2134 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2136 def SetItemCount(*args
, **kwargs
):
2137 """SetItemCount(self, size_t count)"""
2138 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2140 def GetFileSystem(*args
, **kwargs
):
2141 """GetFileSystem(self) -> FileSystem"""
2142 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2145 class HtmlListBoxPtr(HtmlListBox
):
2146 def __init__(self
, this
):
2148 if not hasattr(self
,"thisown"): self
.thisown
= 0
2149 self
.__class
__ = HtmlListBox
2150 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2152 def PreHtmlListBox(*args
, **kwargs
):
2153 """PreHtmlListBox() -> HtmlListBox"""
2154 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2158 #---------------------------------------------------------------------------
2160 class TaskBarIcon(_core
.EvtHandler
):
2161 """Proxy of C++ TaskBarIcon class"""
2163 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2164 def __init__(self
, *args
, **kwargs
):
2165 """__init__(self) -> TaskBarIcon"""
2166 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2167 self
.this
= newobj
.this
2170 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2172 def _setCallbackInfo(*args
, **kwargs
):
2173 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2174 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2176 def Destroy(*args
, **kwargs
):
2180 Deletes the C++ object this Python object is a proxy for.
2182 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2184 def IsOk(*args
, **kwargs
):
2185 """IsOk(self) -> bool"""
2186 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2188 def __nonzero__(self
): return self
.IsOk()
2189 def IsIconInstalled(*args
, **kwargs
):
2190 """IsIconInstalled(self) -> bool"""
2191 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2193 def SetIcon(*args
, **kwargs
):
2194 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2195 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2197 def RemoveIcon(*args
, **kwargs
):
2198 """RemoveIcon(self) -> bool"""
2199 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2201 def PopupMenu(*args
, **kwargs
):
2202 """PopupMenu(self, Menu menu) -> bool"""
2203 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2206 class TaskBarIconPtr(TaskBarIcon
):
2207 def __init__(self
, this
):
2209 if not hasattr(self
,"thisown"): self
.thisown
= 0
2210 self
.__class
__ = TaskBarIcon
2211 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2213 class TaskBarIconEvent(_core
.Event
):
2214 """Proxy of C++ TaskBarIconEvent class"""
2216 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2217 def __init__(self
, *args
, **kwargs
):
2218 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2219 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2220 self
.this
= newobj
.this
2224 class TaskBarIconEventPtr(TaskBarIconEvent
):
2225 def __init__(self
, this
):
2227 if not hasattr(self
,"thisown"): self
.thisown
= 0
2228 self
.__class
__ = TaskBarIconEvent
2229 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2231 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2232 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2233 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2234 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2235 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2236 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2237 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2238 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2239 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2240 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2241 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2242 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2243 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2244 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2246 #---------------------------------------------------------------------------
2248 class ColourData(_core
.Object
):
2250 This class holds a variety of information related to the colour
2251 chooser dialog, used to transfer settings and results to and from the
2255 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2256 def __init__(self
, *args
, **kwargs
):
2258 __init__(self) -> ColourData
2260 Constructor, sets default values.
2262 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2263 self
.this
= newobj
.this
2266 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2269 if self
.thisown
: destroy(self
)
2272 def GetChooseFull(*args
, **kwargs
):
2274 GetChooseFull(self) -> bool
2276 Under Windows, determines whether the Windows colour dialog will
2277 display the full dialog with custom colour selection controls. Has no
2278 meaning under other platforms. The default value is true.
2280 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2282 def GetColour(*args
, **kwargs
):
2284 GetColour(self) -> Colour
2286 Gets the colour (pre)selected by the dialog.
2288 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2290 def GetCustomColour(*args
, **kwargs
):
2292 GetCustomColour(self, int i) -> Colour
2294 Gets the i'th custom colour associated with the colour dialog. i
2295 should be an integer between 0 and 15. The default custom colours are
2296 all invalid colours.
2298 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2300 def SetChooseFull(*args
, **kwargs
):
2302 SetChooseFull(self, int flag)
2304 Under Windows, tells the Windows colour dialog to display the full
2305 dialog with custom colour selection controls. Under other platforms,
2306 has no effect. The default value is true.
2308 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2310 def SetColour(*args
, **kwargs
):
2312 SetColour(self, Colour colour)
2314 Sets the default colour for the colour dialog. The default colour is
2317 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2319 def SetCustomColour(*args
, **kwargs
):
2321 SetCustomColour(self, int i, Colour colour)
2323 Sets the i'th custom colour for the colour dialog. i should be an
2324 integer between 0 and 15. The default custom colours are all invalid colours.
2326 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2329 class ColourDataPtr(ColourData
):
2330 def __init__(self
, this
):
2332 if not hasattr(self
,"thisown"): self
.thisown
= 0
2333 self
.__class
__ = ColourData
2334 _windows_
.ColourData_swigregister(ColourDataPtr
)
2335 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2336 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2337 DirDialogNameStr
= cvar
.DirDialogNameStr
2338 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2339 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2340 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2342 class ColourDialog(Dialog
):
2343 """This class represents the colour chooser dialog."""
2345 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2346 def __init__(self
, *args
, **kwargs
):
2348 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2350 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2351 which will be copied to the colour dialog's internal ColourData
2354 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2355 self
.this
= newobj
.this
2358 self
._setOORInfo
(self
)
2360 def GetColourData(*args
, **kwargs
):
2362 GetColourData(self) -> ColourData
2364 Returns a reference to the `wx.ColourData` used by the dialog.
2366 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2369 class ColourDialogPtr(ColourDialog
):
2370 def __init__(self
, this
):
2372 if not hasattr(self
,"thisown"): self
.thisown
= 0
2373 self
.__class
__ = ColourDialog
2374 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2376 class DirDialog(Dialog
):
2378 wx.DirDialog allows the user to select a directory by browising the
2382 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2383 def __init__(self
, *args
, **kwargs
):
2385 __init__(self, Window parent, String message=DirSelectorPromptStr,
2386 String defaultPath=EmptyString, long style=0,
2387 Point pos=DefaultPosition, Size size=DefaultSize,
2388 String name=DirDialogNameStr) -> DirDialog
2390 Constructor. Use ShowModal method to show the dialog.
2392 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2393 self
.this
= newobj
.this
2396 self
._setOORInfo
(self
)
2398 def GetPath(*args
, **kwargs
):
2400 GetPath(self) -> String
2402 Returns the default or user-selected path.
2404 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2406 def GetMessage(*args
, **kwargs
):
2408 GetMessage(self) -> String
2410 Returns the message that will be displayed on the dialog.
2412 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2414 def GetStyle(*args
, **kwargs
):
2416 GetStyle(self) -> long
2418 Returns the dialog style.
2420 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2422 def SetMessage(*args
, **kwargs
):
2424 SetMessage(self, String message)
2426 Sets the message that will be displayed on the dialog.
2428 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2430 def SetPath(*args
, **kwargs
):
2432 SetPath(self, String path)
2434 Sets the default path.
2436 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2439 class DirDialogPtr(DirDialog
):
2440 def __init__(self
, this
):
2442 if not hasattr(self
,"thisown"): self
.thisown
= 0
2443 self
.__class
__ = DirDialog
2444 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2446 class FileDialog(Dialog
):
2448 wx.FileDialog allows the user to select one or more files from the
2452 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2453 def __init__(self
, *args
, **kwargs
):
2455 __init__(self, Window parent, String message=FileSelectorPromptStr,
2456 String defaultDir=EmptyString, String defaultFile=EmptyString,
2457 String wildcard=FileSelectorDefaultWildcardStr,
2458 long style=0, Point pos=DefaultPosition) -> FileDialog
2460 Constructor. Use ShowModal method to show the dialog.
2462 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2463 self
.this
= newobj
.this
2466 self
._setOORInfo
(self
)
2468 def SetMessage(*args
, **kwargs
):
2470 SetMessage(self, String message)
2472 Sets the message that will be displayed on the dialog.
2474 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2476 def SetPath(*args
, **kwargs
):
2478 SetPath(self, String path)
2480 Sets the path (the combined directory and filename that will be
2481 returned when the dialog is dismissed).
2483 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2485 def SetDirectory(*args
, **kwargs
):
2487 SetDirectory(self, String dir)
2489 Sets the default directory.
2491 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2493 def SetFilename(*args
, **kwargs
):
2495 SetFilename(self, String name)
2497 Sets the default filename.
2499 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2501 def SetWildcard(*args
, **kwargs
):
2503 SetWildcard(self, String wildCard)
2505 Sets the wildcard, which can contain multiple file types, for
2508 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2511 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2513 def SetStyle(*args
, **kwargs
):
2515 SetStyle(self, long style)
2517 Sets the dialog style.
2519 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2521 def SetFilterIndex(*args
, **kwargs
):
2523 SetFilterIndex(self, int filterIndex)
2525 Sets the default filter index, starting from zero.
2527 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2529 def GetMessage(*args
, **kwargs
):
2531 GetMessage(self) -> String
2533 Returns the message that will be displayed on the dialog.
2535 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2537 def GetPath(*args
, **kwargs
):
2539 GetPath(self) -> String
2541 Returns the full path (directory and filename) of the selected file.
2543 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2545 def GetDirectory(*args
, **kwargs
):
2547 GetDirectory(self) -> String
2549 Returns the default directory.
2551 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2553 def GetFilename(*args
, **kwargs
):
2555 GetFilename(self) -> String
2557 Returns the default filename.
2559 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2561 def GetWildcard(*args
, **kwargs
):
2563 GetWildcard(self) -> String
2565 Returns the file dialog wildcard.
2567 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2569 def GetStyle(*args
, **kwargs
):
2571 GetStyle(self) -> long
2573 Returns the dialog style.
2575 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2577 def GetFilterIndex(*args
, **kwargs
):
2579 GetFilterIndex(self) -> int
2581 Returns the index into the list of filters supplied, optionally, in
2582 the wildcard parameter. Before the dialog is shown, this is the index
2583 which will be used when the dialog is first displayed. After the
2584 dialog is shown, this is the index selected by the user.
2586 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2588 def GetFilenames(*args
, **kwargs
):
2590 GetFilenames(self) -> PyObject
2592 Returns a list of filenames chosen in the dialog. This function
2593 should only be used with the dialogs which have wx.MULTIPLE style, use
2594 GetFilename for the others.
2596 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2598 def GetPaths(*args
, **kwargs
):
2600 GetPaths(self) -> PyObject
2602 Fills the array paths with the full paths of the files chosen. This
2603 function should only be used with the dialogs which have wx.MULTIPLE
2604 style, use GetPath for the others.
2606 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2609 class FileDialogPtr(FileDialog
):
2610 def __init__(self
, this
):
2612 if not hasattr(self
,"thisown"): self
.thisown
= 0
2613 self
.__class
__ = FileDialog
2614 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2616 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2617 class MultiChoiceDialog(Dialog
):
2618 """A simple dialog with a multi selection listbox."""
2620 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2621 def __init__(self
, *args
, **kwargs
):
2623 __init__(self, Window parent, String message, String caption,
2624 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2625 Point pos=DefaultPosition) -> MultiChoiceDialog
2627 Constructor. Use the `ShowModal` method to show the dialog.
2629 :param parent: The parent window.
2630 :param message: Text to display above the list of selections.
2631 :param caption: Text to use in the title bar of the dialog.
2632 :param choices: A list of strings or unicode objects that the
2633 user is allowed to choose from.
2634 :param style: Styles to apply to the dialog. The default value is
2635 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2636 :param pos: Where to position the dialog (not used on Windows)
2640 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2641 self
.this
= newobj
.this
2644 self
._setOORInfo
(self
)
2646 def SetSelections(*args
, **kwargs
):
2648 SetSelections(List selections)
2650 Specify the items in the list that should be selected, using a list of
2651 integers. The list should specify the indexes of the items that
2654 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2656 def GetSelections(*args
, **kwargs
):
2658 GetSelections() -> [selections]
2660 Returns a list of integers representing the items that are selected.
2661 If an item is selected then its index will appear in the list.
2663 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2666 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2667 def __init__(self
, this
):
2669 if not hasattr(self
,"thisown"): self
.thisown
= 0
2670 self
.__class
__ = MultiChoiceDialog
2671 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2673 class SingleChoiceDialog(Dialog
):
2674 """A simple dialog with a single selection listbox."""
2676 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2677 def __init__(self
, *args
, **kwargs
):
2679 __init__(Window parent, String message, String caption,
2680 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2681 Point pos=DefaultPosition) -> SingleChoiceDialog
2683 Constructor. Use ShowModal method to show the dialog.
2685 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2686 self
.this
= newobj
.this
2689 self
._setOORInfo
(self
)
2691 def GetSelection(*args
, **kwargs
):
2693 GetSelection(self) -> int
2695 Get the index of teh currently selected item.
2697 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2699 def GetStringSelection(*args
, **kwargs
):
2701 GetStringSelection(self) -> String
2703 Returns the string value of the currently selected item
2705 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2707 def SetSelection(*args
, **kwargs
):
2709 SetSelection(self, int sel)
2711 Set the current selected item to sel
2713 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2716 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2717 def __init__(self
, this
):
2719 if not hasattr(self
,"thisown"): self
.thisown
= 0
2720 self
.__class
__ = SingleChoiceDialog
2721 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2723 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2724 class TextEntryDialog(Dialog
):
2725 """A dialog with text control, [ok] and [cancel] buttons"""
2727 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2728 def __init__(self
, *args
, **kwargs
):
2730 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2731 String defaultValue=EmptyString,
2732 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2734 Constructor. Use ShowModal method to show the dialog.
2736 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2737 self
.this
= newobj
.this
2740 self
._setOORInfo
(self
)
2742 def GetValue(*args
, **kwargs
):
2744 GetValue(self) -> String
2746 Returns the text that the user has entered if the user has pressed OK,
2747 or the original value if the user has pressed Cancel.
2749 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2751 def SetValue(*args
, **kwargs
):
2753 SetValue(self, String value)
2755 Sets the default text value.
2757 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2760 class TextEntryDialogPtr(TextEntryDialog
):
2761 def __init__(self
, this
):
2763 if not hasattr(self
,"thisown"): self
.thisown
= 0
2764 self
.__class
__ = TextEntryDialog
2765 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2767 class PasswordEntryDialog(TextEntryDialog
):
2768 """Proxy of C++ PasswordEntryDialog class"""
2770 return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2771 def __init__(self
, *args
, **kwargs
):
2773 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2774 String value=EmptyString,
2775 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2777 newobj
= _windows_
.new_PasswordEntryDialog(*args
, **kwargs
)
2778 self
.this
= newobj
.this
2782 class PasswordEntryDialogPtr(PasswordEntryDialog
):
2783 def __init__(self
, this
):
2785 if not hasattr(self
,"thisown"): self
.thisown
= 0
2786 self
.__class
__ = PasswordEntryDialog
2787 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr
)
2788 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2790 class FontData(_core
.Object
):
2792 This class holds a variety of information related to font dialogs and
2793 is used to transfer settings to and results from a `wx.FontDialog`.
2796 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2797 def __init__(self
, *args
, **kwargs
):
2799 __init__(self) -> FontData
2801 This class holds a variety of information related to font dialogs and
2802 is used to transfer settings to and results from a `wx.FontDialog`.
2804 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2805 self
.this
= newobj
.this
2808 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2811 if self
.thisown
: destroy(self
)
2814 def EnableEffects(*args
, **kwargs
):
2816 EnableEffects(self, bool enable)
2818 Enables or disables 'effects' under MS Windows only. This refers to
2819 the controls for manipulating colour, strikeout and underline
2820 properties. The default value is true.
2822 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2824 def GetAllowSymbols(*args
, **kwargs
):
2826 GetAllowSymbols(self) -> bool
2828 Under MS Windows, returns a flag determining whether symbol fonts can
2829 be selected. Has no effect on other platforms. The default value is
2832 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2834 def GetColour(*args
, **kwargs
):
2836 GetColour(self) -> Colour
2838 Gets the colour associated with the font dialog. The default value is
2841 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2843 def GetChosenFont(*args
, **kwargs
):
2845 GetChosenFont(self) -> Font
2847 Gets the font chosen by the user.
2849 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2851 def GetEnableEffects(*args
, **kwargs
):
2853 GetEnableEffects(self) -> bool
2855 Determines whether 'effects' are enabled under Windows.
2857 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2859 def GetInitialFont(*args
, **kwargs
):
2861 GetInitialFont(self) -> Font
2863 Gets the font that will be initially used by the font dialog. This
2864 should have previously been set by the application.
2866 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2868 def GetShowHelp(*args
, **kwargs
):
2870 GetShowHelp(self) -> bool
2872 Returns true if the Help button will be shown (Windows only). The
2873 default value is false.
2875 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2877 def SetAllowSymbols(*args
, **kwargs
):
2879 SetAllowSymbols(self, bool allowSymbols)
2881 Under MS Windows, determines whether symbol fonts can be selected. Has
2882 no effect on other platforms. The default value is true.
2884 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2886 def SetChosenFont(*args
, **kwargs
):
2888 SetChosenFont(self, Font font)
2890 Sets the font that will be returned to the user (normally for internal
2893 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2895 def SetColour(*args
, **kwargs
):
2897 SetColour(self, Colour colour)
2899 Sets the colour that will be used for the font foreground colour. The
2900 default colour is black.
2902 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2904 def SetInitialFont(*args
, **kwargs
):
2906 SetInitialFont(self, Font font)
2908 Sets the font that will be initially used by the font dialog.
2910 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2912 def SetRange(*args
, **kwargs
):
2914 SetRange(self, int min, int max)
2916 Sets the valid range for the font point size (Windows only). The
2917 default is 0, 0 (unrestricted range).
2919 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2921 def SetShowHelp(*args
, **kwargs
):
2923 SetShowHelp(self, bool showHelp)
2925 Determines whether the Help button will be displayed in the font
2926 dialog (Windows only). The default value is false.
2928 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2931 class FontDataPtr(FontData
):
2932 def __init__(self
, this
):
2934 if not hasattr(self
,"thisown"): self
.thisown
= 0
2935 self
.__class
__ = FontData
2936 _windows_
.FontData_swigregister(FontDataPtr
)
2938 class FontDialog(Dialog
):
2940 wx.FontDialog allows the user to select a system font and its attributes.
2946 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2947 def __init__(self
, *args
, **kwargs
):
2949 __init__(self, Window parent, FontData data) -> FontDialog
2951 Constructor. Pass a parent window and the `wx.FontData` object to be
2952 used to initialize the dialog controls. Call `ShowModal` to display
2953 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2954 results with via the `wx.FontData` returned by `GetFontData`.
2956 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2957 self
.this
= newobj
.this
2960 self
._setOORInfo
(self
)
2962 def GetFontData(*args
, **kwargs
):
2964 GetFontData(self) -> FontData
2966 Returns a reference to the internal `wx.FontData` used by the
2969 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2972 class FontDialogPtr(FontDialog
):
2973 def __init__(self
, this
):
2975 if not hasattr(self
,"thisown"): self
.thisown
= 0
2976 self
.__class
__ = FontDialog
2977 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2979 class MessageDialog(Dialog
):
2981 This class provides a simple dialog that shows a single or multi-line
2982 message, with a choice of OK, Yes, No and/or Cancel buttons.
2985 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2986 def __init__(self
, *args
, **kwargs
):
2988 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2989 long style=wxOK|wxCANCEL|wxCENTRE,
2990 Point pos=DefaultPosition) -> MessageDialog
2992 Constructor, use `ShowModal` to display the dialog.
2994 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2995 self
.this
= newobj
.this
2998 self
._setOORInfo
(self
)
3001 class MessageDialogPtr(MessageDialog
):
3002 def __init__(self
, this
):
3004 if not hasattr(self
,"thisown"): self
.thisown
= 0
3005 self
.__class
__ = MessageDialog
3006 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
3008 class ProgressDialog(Frame
):
3010 A dialog that shows a short message and a progress bar. Optionally, it
3011 can display an ABORT button.
3014 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3015 def __init__(self
, *args
, **kwargs
):
3017 __init__(self, String title, String message, int maximum=100, Window parent=None,
3018 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
3020 Constructor. Creates the dialog, displays it and disables user input
3021 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
3024 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
3025 self
.this
= newobj
.this
3028 self
._setOORInfo
(self
)
3030 def Update(*args
, **kwargs
):
3032 Update(self, int value, String newmsg=EmptyString) -> bool
3034 Updates the dialog, setting the progress bar to the new value and, if
3035 given changes the message above it. The value given should be less
3036 than or equal to the maximum value given to the constructor and the
3037 dialog is closed if it is equal to the maximum. Returns True unless
3038 the Cancel button has been pressed.
3040 If false is returned, the application can either immediately destroy
3041 the dialog or ask the user for the confirmation and if the abort is
3042 not confirmed the dialog may be resumed with Resume function.
3044 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
3046 def Resume(*args
, **kwargs
):
3050 Can be used to continue with the dialog, after the user had chosen to
3053 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
3056 class ProgressDialogPtr(ProgressDialog
):
3057 def __init__(self
, this
):
3059 if not hasattr(self
,"thisown"): self
.thisown
= 0
3060 self
.__class
__ = ProgressDialog
3061 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
3063 FR_DOWN
= _windows_
.FR_DOWN
3064 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
3065 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
3066 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
3067 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
3068 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
3069 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
3070 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
3071 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
3072 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
3073 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
3074 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
3075 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
3076 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
3077 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
3078 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
3079 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
3081 # For backwards compatibility. Should they be removed?
3082 EVT_COMMAND_FIND
= EVT_FIND
3083 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
3084 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
3085 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
3086 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
3088 class FindDialogEvent(_core
.CommandEvent
):
3089 """Events for the FindReplaceDialog"""
3091 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3092 def __init__(self
, *args
, **kwargs
):
3094 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3096 Events for the FindReplaceDialog
3098 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
3099 self
.this
= newobj
.this
3102 def GetFlags(*args
, **kwargs
):
3104 GetFlags(self) -> int
3106 Get the currently selected flags: this is the combination of
3107 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3109 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
3111 def GetFindString(*args
, **kwargs
):
3113 GetFindString(self) -> String
3115 Return the string to find (never empty).
3117 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
3119 def GetReplaceString(*args
, **kwargs
):
3121 GetReplaceString(self) -> String
3123 Return the string to replace the search string with (only for replace
3124 and replace all events).
3126 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
3128 def GetDialog(*args
, **kwargs
):
3130 GetDialog(self) -> FindReplaceDialog
3132 Return the pointer to the dialog which generated this event.
3134 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
3136 def SetFlags(*args
, **kwargs
):
3137 """SetFlags(self, int flags)"""
3138 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3140 def SetFindString(*args
, **kwargs
):
3141 """SetFindString(self, String str)"""
3142 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3144 def SetReplaceString(*args
, **kwargs
):
3145 """SetReplaceString(self, String str)"""
3146 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3149 class FindDialogEventPtr(FindDialogEvent
):
3150 def __init__(self
, this
):
3152 if not hasattr(self
,"thisown"): self
.thisown
= 0
3153 self
.__class
__ = FindDialogEvent
3154 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3156 class FindReplaceData(_core
.Object
):
3158 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3159 to initialize the dialog with the default values and will keep the
3160 last values from the dialog when it is closed. It is also updated each
3161 time a `wx.FindDialogEvent` is generated so instead of using the
3162 `wx.FindDialogEvent` methods you can also directly query this object.
3164 Note that all SetXXX() methods may only be called before showing the
3165 dialog and calling them has no effect later.
3168 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3169 def __init__(self
, *args
, **kwargs
):
3171 __init__(self, int flags=0) -> FindReplaceData
3173 Constuctor initializes the flags to default value (0).
3175 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3176 self
.this
= newobj
.this
3179 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3182 if self
.thisown
: destroy(self
)
3185 def GetFindString(*args
, **kwargs
):
3187 GetFindString(self) -> String
3189 Get the string to find.
3191 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3193 def GetReplaceString(*args
, **kwargs
):
3195 GetReplaceString(self) -> String
3197 Get the replacement string.
3199 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3201 def GetFlags(*args
, **kwargs
):
3203 GetFlags(self) -> int
3205 Get the combination of flag values.
3207 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3209 def SetFlags(*args
, **kwargs
):
3211 SetFlags(self, int flags)
3213 Set the flags to use to initialize the controls of the dialog.
3215 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3217 def SetFindString(*args
, **kwargs
):
3219 SetFindString(self, String str)
3221 Set the string to find (used as initial value by the dialog).
3223 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3225 def SetReplaceString(*args
, **kwargs
):
3227 SetReplaceString(self, String str)
3229 Set the replacement string (used as initial value by the dialog).
3231 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3234 class FindReplaceDataPtr(FindReplaceData
):
3235 def __init__(self
, this
):
3237 if not hasattr(self
,"thisown"): self
.thisown
= 0
3238 self
.__class
__ = FindReplaceData
3239 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3241 class FindReplaceDialog(Dialog
):
3243 wx.FindReplaceDialog is a standard modeless dialog which is used to
3244 allow the user to search for some text (and possibly replace it with
3245 something else). The actual searching is supposed to be done in the
3246 owner window which is the parent of this dialog. Note that it means
3247 that unlike for the other standard dialogs this one must have a parent
3248 window. Also note that there is no way to use this dialog in a modal
3249 way; it is always, by design and implementation, modeless.
3252 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3253 def __init__(self
, *args
, **kwargs
):
3255 __init__(self, Window parent, FindReplaceData data, String title,
3256 int style=0) -> FindReplaceDialog
3258 Create a FindReplaceDialog. The parent and data parameters must be
3259 non-None. Use Show to display the dialog.
3261 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3262 self
.this
= newobj
.this
3265 self
._setOORInfo
(self
)
3267 def Create(*args
, **kwargs
):
3269 Create(self, Window parent, FindReplaceData data, String title,
3270 int style=0) -> bool
3272 Create the dialog, for 2-phase create.
3274 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3276 def GetData(*args
, **kwargs
):
3278 GetData(self) -> FindReplaceData
3280 Get the FindReplaceData object used by this dialog.
3282 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3284 def SetData(*args
, **kwargs
):
3286 SetData(self, FindReplaceData data)
3288 Set the FindReplaceData object used by this dialog.
3290 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3293 class FindReplaceDialogPtr(FindReplaceDialog
):
3294 def __init__(self
, this
):
3296 if not hasattr(self
,"thisown"): self
.thisown
= 0
3297 self
.__class
__ = FindReplaceDialog
3298 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3300 def PreFindReplaceDialog(*args
, **kwargs
):
3302 PreFindReplaceDialog() -> FindReplaceDialog
3304 Precreate a FindReplaceDialog for 2-phase creation
3306 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3310 #---------------------------------------------------------------------------
3312 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3313 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3314 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3315 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3316 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3317 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3318 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3319 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3320 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3321 class MDIParentFrame(Frame
):
3322 """Proxy of C++ MDIParentFrame class"""
3324 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3325 def __init__(self
, *args
, **kwargs
):
3327 __init__(self, Window parent, int id=-1, String title=EmptyString,
3328 Point pos=DefaultPosition, Size size=DefaultSize,
3329 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3330 String name=FrameNameStr) -> MDIParentFrame
3332 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3333 self
.this
= newobj
.this
3336 self
._setOORInfo
(self
)
3338 def Create(*args
, **kwargs
):
3340 Create(self, Window parent, int id=-1, String title=EmptyString,
3341 Point pos=DefaultPosition, Size size=DefaultSize,
3342 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3343 String name=FrameNameStr) -> bool
3345 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3347 def ActivateNext(*args
, **kwargs
):
3348 """ActivateNext(self)"""
3349 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3351 def ActivatePrevious(*args
, **kwargs
):
3352 """ActivatePrevious(self)"""
3353 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3355 def ArrangeIcons(*args
, **kwargs
):
3356 """ArrangeIcons(self)"""
3357 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3359 def Cascade(*args
, **kwargs
):
3361 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3363 def GetActiveChild(*args
, **kwargs
):
3364 """GetActiveChild(self) -> MDIChildFrame"""
3365 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3367 def GetClientWindow(*args
, **kwargs
):
3368 """GetClientWindow(self) -> MDIClientWindow"""
3369 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3371 def GetToolBar(*args
, **kwargs
):
3372 """GetToolBar(self) -> Window"""
3373 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3375 def Tile(*args
, **kwargs
):
3376 """Tile(self, int orient=HORIZONTAL)"""
3377 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3380 class MDIParentFramePtr(MDIParentFrame
):
3381 def __init__(self
, this
):
3383 if not hasattr(self
,"thisown"): self
.thisown
= 0
3384 self
.__class
__ = MDIParentFrame
3385 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3387 def PreMDIParentFrame(*args
, **kwargs
):
3388 """PreMDIParentFrame() -> MDIParentFrame"""
3389 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3393 class MDIChildFrame(Frame
):
3394 """Proxy of C++ MDIChildFrame class"""
3396 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3397 def __init__(self
, *args
, **kwargs
):
3399 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3400 Point pos=DefaultPosition, Size size=DefaultSize,
3401 long style=DEFAULT_FRAME_STYLE,
3402 String name=FrameNameStr) -> MDIChildFrame
3404 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3405 self
.this
= newobj
.this
3408 self
._setOORInfo
(self
)
3410 def Create(*args
, **kwargs
):
3412 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3413 Point pos=DefaultPosition, Size size=DefaultSize,
3414 long style=DEFAULT_FRAME_STYLE,
3415 String name=FrameNameStr) -> bool
3417 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3419 def Activate(*args
, **kwargs
):
3420 """Activate(self)"""
3421 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3423 def Maximize(*args
, **kwargs
):
3424 """Maximize(self, bool maximize=True)"""
3425 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3427 def Restore(*args
, **kwargs
):
3429 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3432 class MDIChildFramePtr(MDIChildFrame
):
3433 def __init__(self
, this
):
3435 if not hasattr(self
,"thisown"): self
.thisown
= 0
3436 self
.__class
__ = MDIChildFrame
3437 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3439 def PreMDIChildFrame(*args
, **kwargs
):
3440 """PreMDIChildFrame() -> MDIChildFrame"""
3441 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3445 class MDIClientWindow(_core
.Window
):
3446 """Proxy of C++ MDIClientWindow class"""
3448 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3449 def __init__(self
, *args
, **kwargs
):
3450 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3451 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3452 self
.this
= newobj
.this
3455 self
._setOORInfo
(self
)
3457 def Create(*args
, **kwargs
):
3458 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3459 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3462 class MDIClientWindowPtr(MDIClientWindow
):
3463 def __init__(self
, this
):
3465 if not hasattr(self
,"thisown"): self
.thisown
= 0
3466 self
.__class
__ = MDIClientWindow
3467 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3469 def PreMDIClientWindow(*args
, **kwargs
):
3470 """PreMDIClientWindow() -> MDIClientWindow"""
3471 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3475 #---------------------------------------------------------------------------
3477 class PyWindow(_core
.Window
):
3478 """Proxy of C++ PyWindow class"""
3480 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3481 def __init__(self
, *args
, **kwargs
):
3483 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3484 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3486 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3487 self
.this
= newobj
.this
3490 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3492 def _setCallbackInfo(*args
, **kwargs
):
3493 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3494 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3496 def SetBestSize(*args
, **kwargs
):
3497 """SetBestSize(self, Size size)"""
3498 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3500 def DoEraseBackground(*args
, **kwargs
):
3501 """DoEraseBackground(self, DC dc) -> bool"""
3502 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3504 def base_DoMoveWindow(*args
, **kwargs
):
3505 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3506 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3508 def base_DoSetSize(*args
, **kwargs
):
3509 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3510 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3512 def base_DoSetClientSize(*args
, **kwargs
):
3513 """base_DoSetClientSize(self, int width, int height)"""
3514 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3516 def base_DoSetVirtualSize(*args
, **kwargs
):
3517 """base_DoSetVirtualSize(self, int x, int y)"""
3518 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3520 def base_DoGetSize(*args
, **kwargs
):
3521 """base_DoGetSize() -> (width, height)"""
3522 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3524 def base_DoGetClientSize(*args
, **kwargs
):
3525 """base_DoGetClientSize() -> (width, height)"""
3526 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3528 def base_DoGetPosition(*args
, **kwargs
):
3529 """base_DoGetPosition() -> (x,y)"""
3530 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3532 def base_DoGetVirtualSize(*args
, **kwargs
):
3533 """base_DoGetVirtualSize(self) -> Size"""
3534 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3536 def base_DoGetBestSize(*args
, **kwargs
):
3537 """base_DoGetBestSize(self) -> Size"""
3538 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3540 def base_InitDialog(*args
, **kwargs
):
3541 """base_InitDialog(self)"""
3542 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3544 def base_TransferDataToWindow(*args
, **kwargs
):
3545 """base_TransferDataToWindow(self) -> bool"""
3546 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3548 def base_TransferDataFromWindow(*args
, **kwargs
):
3549 """base_TransferDataFromWindow(self) -> bool"""
3550 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3552 def base_Validate(*args
, **kwargs
):
3553 """base_Validate(self) -> bool"""
3554 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3556 def base_AcceptsFocus(*args
, **kwargs
):
3557 """base_AcceptsFocus(self) -> bool"""
3558 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3560 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3561 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3562 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3564 def base_GetMaxSize(*args
, **kwargs
):
3565 """base_GetMaxSize(self) -> Size"""
3566 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3568 def base_AddChild(*args
, **kwargs
):
3569 """base_AddChild(self, Window child)"""
3570 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3572 def base_RemoveChild(*args
, **kwargs
):
3573 """base_RemoveChild(self, Window child)"""
3574 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3576 def base_ShouldInheritColours(*args
, **kwargs
):
3577 """base_ShouldInheritColours(self) -> bool"""
3578 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3580 def base_GetDefaultAttributes(*args
, **kwargs
):
3581 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3582 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3584 def base_OnInternalIdle(*args
, **kwargs
):
3585 """base_OnInternalIdle(self)"""
3586 return _windows_
.PyWindow_base_OnInternalIdle(*args
, **kwargs
)
3589 class PyWindowPtr(PyWindow
):
3590 def __init__(self
, this
):
3592 if not hasattr(self
,"thisown"): self
.thisown
= 0
3593 self
.__class
__ = PyWindow
3594 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3596 def PrePyWindow(*args
, **kwargs
):
3597 """PrePyWindow() -> PyWindow"""
3598 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3602 class PyPanel(Panel
):
3603 """Proxy of C++ PyPanel class"""
3605 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3606 def __init__(self
, *args
, **kwargs
):
3608 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3609 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3611 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3612 self
.this
= newobj
.this
3615 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3617 def _setCallbackInfo(*args
, **kwargs
):
3618 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3619 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3621 def SetBestSize(*args
, **kwargs
):
3622 """SetBestSize(self, Size size)"""
3623 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3625 def DoEraseBackground(*args
, **kwargs
):
3626 """DoEraseBackground(self, DC dc) -> bool"""
3627 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3629 def base_DoMoveWindow(*args
, **kwargs
):
3630 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3631 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3633 def base_DoSetSize(*args
, **kwargs
):
3634 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3635 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3637 def base_DoSetClientSize(*args
, **kwargs
):
3638 """base_DoSetClientSize(self, int width, int height)"""
3639 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3641 def base_DoSetVirtualSize(*args
, **kwargs
):
3642 """base_DoSetVirtualSize(self, int x, int y)"""
3643 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3645 def base_DoGetSize(*args
, **kwargs
):
3646 """base_DoGetSize() -> (width, height)"""
3647 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3649 def base_DoGetClientSize(*args
, **kwargs
):
3650 """base_DoGetClientSize() -> (width, height)"""
3651 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3653 def base_DoGetPosition(*args
, **kwargs
):
3654 """base_DoGetPosition() -> (x,y)"""
3655 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3657 def base_DoGetVirtualSize(*args
, **kwargs
):
3658 """base_DoGetVirtualSize(self) -> Size"""
3659 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3661 def base_DoGetBestSize(*args
, **kwargs
):
3662 """base_DoGetBestSize(self) -> Size"""
3663 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3665 def base_InitDialog(*args
, **kwargs
):
3666 """base_InitDialog(self)"""
3667 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3669 def base_TransferDataToWindow(*args
, **kwargs
):
3670 """base_TransferDataToWindow(self) -> bool"""
3671 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3673 def base_TransferDataFromWindow(*args
, **kwargs
):
3674 """base_TransferDataFromWindow(self) -> bool"""
3675 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3677 def base_Validate(*args
, **kwargs
):
3678 """base_Validate(self) -> bool"""
3679 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3681 def base_AcceptsFocus(*args
, **kwargs
):
3682 """base_AcceptsFocus(self) -> bool"""
3683 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3685 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3686 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3687 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3689 def base_GetMaxSize(*args
, **kwargs
):
3690 """base_GetMaxSize(self) -> Size"""
3691 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3693 def base_AddChild(*args
, **kwargs
):
3694 """base_AddChild(self, Window child)"""
3695 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3697 def base_RemoveChild(*args
, **kwargs
):
3698 """base_RemoveChild(self, Window child)"""
3699 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3701 def base_ShouldInheritColours(*args
, **kwargs
):
3702 """base_ShouldInheritColours(self) -> bool"""
3703 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3705 def base_GetDefaultAttributes(*args
, **kwargs
):
3706 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3707 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3709 def base_OnInternalIdle(*args
, **kwargs
):
3710 """base_OnInternalIdle(self)"""
3711 return _windows_
.PyPanel_base_OnInternalIdle(*args
, **kwargs
)
3714 class PyPanelPtr(PyPanel
):
3715 def __init__(self
, this
):
3717 if not hasattr(self
,"thisown"): self
.thisown
= 0
3718 self
.__class
__ = PyPanel
3719 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3721 def PrePyPanel(*args
, **kwargs
):
3722 """PrePyPanel() -> PyPanel"""
3723 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3727 class PyScrolledWindow(ScrolledWindow
):
3728 """Proxy of C++ PyScrolledWindow class"""
3730 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3731 def __init__(self
, *args
, **kwargs
):
3733 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3734 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3736 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3737 self
.this
= newobj
.this
3740 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3742 def _setCallbackInfo(*args
, **kwargs
):
3743 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3744 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3746 def SetBestSize(*args
, **kwargs
):
3747 """SetBestSize(self, Size size)"""
3748 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3750 def DoEraseBackground(*args
, **kwargs
):
3751 """DoEraseBackground(self, DC dc) -> bool"""
3752 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3754 def base_DoMoveWindow(*args
, **kwargs
):
3755 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3756 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3758 def base_DoSetSize(*args
, **kwargs
):
3759 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3760 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3762 def base_DoSetClientSize(*args
, **kwargs
):
3763 """base_DoSetClientSize(self, int width, int height)"""
3764 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3766 def base_DoSetVirtualSize(*args
, **kwargs
):
3767 """base_DoSetVirtualSize(self, int x, int y)"""
3768 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3770 def base_DoGetSize(*args
, **kwargs
):
3771 """base_DoGetSize() -> (width, height)"""
3772 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3774 def base_DoGetClientSize(*args
, **kwargs
):
3775 """base_DoGetClientSize() -> (width, height)"""
3776 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3778 def base_DoGetPosition(*args
, **kwargs
):
3779 """base_DoGetPosition() -> (x,y)"""
3780 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3782 def base_DoGetVirtualSize(*args
, **kwargs
):
3783 """base_DoGetVirtualSize(self) -> Size"""
3784 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3786 def base_DoGetBestSize(*args
, **kwargs
):
3787 """base_DoGetBestSize(self) -> Size"""
3788 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3790 def base_InitDialog(*args
, **kwargs
):
3791 """base_InitDialog(self)"""
3792 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3794 def base_TransferDataToWindow(*args
, **kwargs
):
3795 """base_TransferDataToWindow(self) -> bool"""
3796 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3798 def base_TransferDataFromWindow(*args
, **kwargs
):
3799 """base_TransferDataFromWindow(self) -> bool"""
3800 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3802 def base_Validate(*args
, **kwargs
):
3803 """base_Validate(self) -> bool"""
3804 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3806 def base_AcceptsFocus(*args
, **kwargs
):
3807 """base_AcceptsFocus(self) -> bool"""
3808 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3810 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3811 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3812 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3814 def base_GetMaxSize(*args
, **kwargs
):
3815 """base_GetMaxSize(self) -> Size"""
3816 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3818 def base_AddChild(*args
, **kwargs
):
3819 """base_AddChild(self, Window child)"""
3820 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3822 def base_RemoveChild(*args
, **kwargs
):
3823 """base_RemoveChild(self, Window child)"""
3824 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3826 def base_ShouldInheritColours(*args
, **kwargs
):
3827 """base_ShouldInheritColours(self) -> bool"""
3828 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3830 def base_GetDefaultAttributes(*args
, **kwargs
):
3831 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3832 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3834 def base_OnInternalIdle(*args
, **kwargs
):
3835 """base_OnInternalIdle(self)"""
3836 return _windows_
.PyScrolledWindow_base_OnInternalIdle(*args
, **kwargs
)
3839 class PyScrolledWindowPtr(PyScrolledWindow
):
3840 def __init__(self
, this
):
3842 if not hasattr(self
,"thisown"): self
.thisown
= 0
3843 self
.__class
__ = PyScrolledWindow
3844 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3846 def PrePyScrolledWindow(*args
, **kwargs
):
3847 """PrePyScrolledWindow() -> PyScrolledWindow"""
3848 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3852 #---------------------------------------------------------------------------
3854 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3855 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3856 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3857 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3858 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3859 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3860 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3861 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3862 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3863 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3864 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3865 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3866 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3867 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3868 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3869 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3870 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3871 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3872 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3873 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3874 class PrintData(_core
.Object
):
3875 """Proxy of C++ PrintData class"""
3877 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3878 def __init__(self
, *args
):
3880 __init__(self) -> PrintData
3881 __init__(self, PrintData data) -> PrintData
3883 newobj
= _windows_
.new_PrintData(*args
)
3884 self
.this
= newobj
.this
3887 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3890 if self
.thisown
: destroy(self
)
3893 def GetNoCopies(*args
, **kwargs
):
3894 """GetNoCopies(self) -> int"""
3895 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3897 def GetCollate(*args
, **kwargs
):
3898 """GetCollate(self) -> bool"""
3899 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3901 def GetOrientation(*args
, **kwargs
):
3902 """GetOrientation(self) -> int"""
3903 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3905 def Ok(*args
, **kwargs
):
3906 """Ok(self) -> bool"""
3907 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3909 def GetPrinterName(*args
, **kwargs
):
3910 """GetPrinterName(self) -> String"""
3911 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3913 def GetColour(*args
, **kwargs
):
3914 """GetColour(self) -> bool"""
3915 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3917 def GetDuplex(*args
, **kwargs
):
3918 """GetDuplex(self) -> int"""
3919 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3921 def GetPaperId(*args
, **kwargs
):
3922 """GetPaperId(self) -> int"""
3923 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3925 def GetPaperSize(*args
, **kwargs
):
3926 """GetPaperSize(self) -> Size"""
3927 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3929 def GetQuality(*args
, **kwargs
):
3930 """GetQuality(self) -> int"""
3931 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3933 def GetBin(*args
, **kwargs
):
3934 """GetBin(self) -> int"""
3935 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3937 def GetPrintMode(*args
, **kwargs
):
3938 """GetPrintMode(self) -> int"""
3939 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3941 def SetNoCopies(*args
, **kwargs
):
3942 """SetNoCopies(self, int v)"""
3943 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3945 def SetCollate(*args
, **kwargs
):
3946 """SetCollate(self, bool flag)"""
3947 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3949 def SetOrientation(*args
, **kwargs
):
3950 """SetOrientation(self, int orient)"""
3951 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3953 def SetPrinterName(*args
, **kwargs
):
3954 """SetPrinterName(self, String name)"""
3955 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3957 def SetColour(*args
, **kwargs
):
3958 """SetColour(self, bool colour)"""
3959 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3961 def SetDuplex(*args
, **kwargs
):
3962 """SetDuplex(self, int duplex)"""
3963 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3965 def SetPaperId(*args
, **kwargs
):
3966 """SetPaperId(self, int sizeId)"""
3967 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3969 def SetPaperSize(*args
, **kwargs
):
3970 """SetPaperSize(self, Size sz)"""
3971 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3973 def SetQuality(*args
, **kwargs
):
3974 """SetQuality(self, int quality)"""
3975 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3977 def SetBin(*args
, **kwargs
):
3978 """SetBin(self, int bin)"""
3979 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3981 def SetPrintMode(*args
, **kwargs
):
3982 """SetPrintMode(self, int printMode)"""
3983 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3985 def GetFilename(*args
, **kwargs
):
3986 """GetFilename(self) -> String"""
3987 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3989 def SetFilename(*args
, **kwargs
):
3990 """SetFilename(self, String filename)"""
3991 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3993 def __nonzero__(self
): return self
.Ok()
3994 def GetPrivData(*args
, **kwargs
):
3995 """GetPrivData(self) -> PyObject"""
3996 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
3998 def SetPrivData(*args
, **kwargs
):
3999 """SetPrivData(self, PyObject data)"""
4000 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
4003 class PrintDataPtr(PrintData
):
4004 def __init__(self
, this
):
4006 if not hasattr(self
,"thisown"): self
.thisown
= 0
4007 self
.__class
__ = PrintData
4008 _windows_
.PrintData_swigregister(PrintDataPtr
)
4009 PrintoutTitleStr
= cvar
.PrintoutTitleStr
4010 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
4012 class PageSetupDialogData(_core
.Object
):
4013 """Proxy of C++ PageSetupDialogData class"""
4015 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4016 def __init__(self
, *args
):
4018 __init__(self) -> PageSetupDialogData
4019 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
4020 __init__(self, PrintData data) -> PageSetupDialogData
4022 newobj
= _windows_
.new_PageSetupDialogData(*args
)
4023 self
.this
= newobj
.this
4026 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
4029 if self
.thisown
: destroy(self
)
4032 def EnableHelp(*args
, **kwargs
):
4033 """EnableHelp(self, bool flag)"""
4034 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
4036 def EnableMargins(*args
, **kwargs
):
4037 """EnableMargins(self, bool flag)"""
4038 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
4040 def EnableOrientation(*args
, **kwargs
):
4041 """EnableOrientation(self, bool flag)"""
4042 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
4044 def EnablePaper(*args
, **kwargs
):
4045 """EnablePaper(self, bool flag)"""
4046 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
4048 def EnablePrinter(*args
, **kwargs
):
4049 """EnablePrinter(self, bool flag)"""
4050 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
4052 def GetDefaultMinMargins(*args
, **kwargs
):
4053 """GetDefaultMinMargins(self) -> bool"""
4054 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
4056 def GetEnableMargins(*args
, **kwargs
):
4057 """GetEnableMargins(self) -> bool"""
4058 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
4060 def GetEnableOrientation(*args
, **kwargs
):
4061 """GetEnableOrientation(self) -> bool"""
4062 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4064 def GetEnablePaper(*args
, **kwargs
):
4065 """GetEnablePaper(self) -> bool"""
4066 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4068 def GetEnablePrinter(*args
, **kwargs
):
4069 """GetEnablePrinter(self) -> bool"""
4070 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4072 def GetEnableHelp(*args
, **kwargs
):
4073 """GetEnableHelp(self) -> bool"""
4074 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4076 def GetDefaultInfo(*args
, **kwargs
):
4077 """GetDefaultInfo(self) -> bool"""
4078 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4080 def GetMarginTopLeft(*args
, **kwargs
):
4081 """GetMarginTopLeft(self) -> Point"""
4082 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4084 def GetMarginBottomRight(*args
, **kwargs
):
4085 """GetMarginBottomRight(self) -> Point"""
4086 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4088 def GetMinMarginTopLeft(*args
, **kwargs
):
4089 """GetMinMarginTopLeft(self) -> Point"""
4090 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4092 def GetMinMarginBottomRight(*args
, **kwargs
):
4093 """GetMinMarginBottomRight(self) -> Point"""
4094 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4096 def GetPaperId(*args
, **kwargs
):
4097 """GetPaperId(self) -> int"""
4098 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4100 def GetPaperSize(*args
, **kwargs
):
4101 """GetPaperSize(self) -> Size"""
4102 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4104 def GetPrintData(*args
, **kwargs
):
4105 """GetPrintData(self) -> PrintData"""
4106 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4108 def Ok(*args
, **kwargs
):
4109 """Ok(self) -> bool"""
4110 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4112 def SetDefaultInfo(*args
, **kwargs
):
4113 """SetDefaultInfo(self, bool flag)"""
4114 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4116 def SetDefaultMinMargins(*args
, **kwargs
):
4117 """SetDefaultMinMargins(self, bool flag)"""
4118 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4120 def SetMarginTopLeft(*args
, **kwargs
):
4121 """SetMarginTopLeft(self, Point pt)"""
4122 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4124 def SetMarginBottomRight(*args
, **kwargs
):
4125 """SetMarginBottomRight(self, Point pt)"""
4126 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4128 def SetMinMarginTopLeft(*args
, **kwargs
):
4129 """SetMinMarginTopLeft(self, Point pt)"""
4130 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4132 def SetMinMarginBottomRight(*args
, **kwargs
):
4133 """SetMinMarginBottomRight(self, Point pt)"""
4134 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4136 def SetPaperId(*args
, **kwargs
):
4137 """SetPaperId(self, int id)"""
4138 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4140 def SetPaperSize(*args
, **kwargs
):
4141 """SetPaperSize(self, Size size)"""
4142 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4144 def SetPrintData(*args
, **kwargs
):
4145 """SetPrintData(self, PrintData printData)"""
4146 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4148 def CalculateIdFromPaperSize(*args
, **kwargs
):
4149 """CalculateIdFromPaperSize(self)"""
4150 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
4152 def CalculatePaperSizeFromId(*args
, **kwargs
):
4153 """CalculatePaperSizeFromId(self)"""
4154 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
4156 def __nonzero__(self
): return self
.Ok()
4158 class PageSetupDialogDataPtr(PageSetupDialogData
):
4159 def __init__(self
, this
):
4161 if not hasattr(self
,"thisown"): self
.thisown
= 0
4162 self
.__class
__ = PageSetupDialogData
4163 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4165 class PageSetupDialog(_core
.Object
):
4166 """Proxy of C++ PageSetupDialog class"""
4168 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4169 def __init__(self
, *args
, **kwargs
):
4170 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4171 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4172 self
.this
= newobj
.this
4175 def GetPageSetupData(*args
, **kwargs
):
4176 """GetPageSetupData(self) -> PageSetupDialogData"""
4177 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4179 def GetPageSetupDialogData(*args
, **kwargs
):
4180 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4181 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4183 def ShowModal(*args
, **kwargs
):
4184 """ShowModal(self) -> int"""
4185 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4188 class PageSetupDialogPtr(PageSetupDialog
):
4189 def __init__(self
, this
):
4191 if not hasattr(self
,"thisown"): self
.thisown
= 0
4192 self
.__class
__ = PageSetupDialog
4193 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4195 class PrintDialogData(_core
.Object
):
4196 """Proxy of C++ PrintDialogData class"""
4198 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4199 def __init__(self
, *args
):
4201 __init__(self) -> PrintDialogData
4202 __init__(self, PrintData printData) -> PrintDialogData
4203 __init__(self, PrintDialogData printData) -> PrintDialogData
4205 newobj
= _windows_
.new_PrintDialogData(*args
)
4206 self
.this
= newobj
.this
4209 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4212 if self
.thisown
: destroy(self
)
4215 def GetFromPage(*args
, **kwargs
):
4216 """GetFromPage(self) -> int"""
4217 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4219 def GetToPage(*args
, **kwargs
):
4220 """GetToPage(self) -> int"""
4221 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4223 def GetMinPage(*args
, **kwargs
):
4224 """GetMinPage(self) -> int"""
4225 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4227 def GetMaxPage(*args
, **kwargs
):
4228 """GetMaxPage(self) -> int"""
4229 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4231 def GetNoCopies(*args
, **kwargs
):
4232 """GetNoCopies(self) -> int"""
4233 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4235 def GetAllPages(*args
, **kwargs
):
4236 """GetAllPages(self) -> bool"""
4237 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4239 def GetSelection(*args
, **kwargs
):
4240 """GetSelection(self) -> bool"""
4241 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4243 def GetCollate(*args
, **kwargs
):
4244 """GetCollate(self) -> bool"""
4245 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4247 def GetPrintToFile(*args
, **kwargs
):
4248 """GetPrintToFile(self) -> bool"""
4249 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4251 def SetFromPage(*args
, **kwargs
):
4252 """SetFromPage(self, int v)"""
4253 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4255 def SetToPage(*args
, **kwargs
):
4256 """SetToPage(self, int v)"""
4257 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4259 def SetMinPage(*args
, **kwargs
):
4260 """SetMinPage(self, int v)"""
4261 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4263 def SetMaxPage(*args
, **kwargs
):
4264 """SetMaxPage(self, int v)"""
4265 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4267 def SetNoCopies(*args
, **kwargs
):
4268 """SetNoCopies(self, int v)"""
4269 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4271 def SetAllPages(*args
, **kwargs
):
4272 """SetAllPages(self, bool flag)"""
4273 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4275 def SetSelection(*args
, **kwargs
):
4276 """SetSelection(self, bool flag)"""
4277 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4279 def SetCollate(*args
, **kwargs
):
4280 """SetCollate(self, bool flag)"""
4281 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4283 def SetPrintToFile(*args
, **kwargs
):
4284 """SetPrintToFile(self, bool flag)"""
4285 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4287 def EnablePrintToFile(*args
, **kwargs
):
4288 """EnablePrintToFile(self, bool flag)"""
4289 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4291 def EnableSelection(*args
, **kwargs
):
4292 """EnableSelection(self, bool flag)"""
4293 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4295 def EnablePageNumbers(*args
, **kwargs
):
4296 """EnablePageNumbers(self, bool flag)"""
4297 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4299 def EnableHelp(*args
, **kwargs
):
4300 """EnableHelp(self, bool flag)"""
4301 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4303 def GetEnablePrintToFile(*args
, **kwargs
):
4304 """GetEnablePrintToFile(self) -> bool"""
4305 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4307 def GetEnableSelection(*args
, **kwargs
):
4308 """GetEnableSelection(self) -> bool"""
4309 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4311 def GetEnablePageNumbers(*args
, **kwargs
):
4312 """GetEnablePageNumbers(self) -> bool"""
4313 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4315 def GetEnableHelp(*args
, **kwargs
):
4316 """GetEnableHelp(self) -> bool"""
4317 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4319 def Ok(*args
, **kwargs
):
4320 """Ok(self) -> bool"""
4321 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4323 def GetPrintData(*args
, **kwargs
):
4324 """GetPrintData(self) -> PrintData"""
4325 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4327 def SetPrintData(*args
, **kwargs
):
4328 """SetPrintData(self, PrintData printData)"""
4329 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4331 def __nonzero__(self
): return self
.Ok()
4333 class PrintDialogDataPtr(PrintDialogData
):
4334 def __init__(self
, this
):
4336 if not hasattr(self
,"thisown"): self
.thisown
= 0
4337 self
.__class
__ = PrintDialogData
4338 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4340 class PrintDialog(_core
.Object
):
4341 """Proxy of C++ PrintDialog class"""
4343 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4344 def __init__(self
, *args
, **kwargs
):
4345 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4346 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4347 self
.this
= newobj
.this
4350 def ShowModal(*args
, **kwargs
):
4351 """ShowModal(self) -> int"""
4352 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4354 def GetPrintDialogData(*args
, **kwargs
):
4355 """GetPrintDialogData(self) -> PrintDialogData"""
4356 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4358 def GetPrintData(*args
, **kwargs
):
4359 """GetPrintData(self) -> PrintData"""
4360 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4362 def GetPrintDC(*args
, **kwargs
):
4363 """GetPrintDC(self) -> DC"""
4364 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4367 class PrintDialogPtr(PrintDialog
):
4368 def __init__(self
, this
):
4370 if not hasattr(self
,"thisown"): self
.thisown
= 0
4371 self
.__class
__ = PrintDialog
4372 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4374 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4375 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4376 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4377 class Printer(_core
.Object
):
4378 """Proxy of C++ Printer class"""
4380 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4381 def __init__(self
, *args
, **kwargs
):
4382 """__init__(self, PrintDialogData data=None) -> Printer"""
4383 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4384 self
.this
= newobj
.this
4387 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4390 if self
.thisown
: destroy(self
)
4393 def CreateAbortWindow(*args
, **kwargs
):
4394 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4395 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4397 def ReportError(*args
, **kwargs
):
4398 """ReportError(self, Window parent, Printout printout, String message)"""
4399 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4401 def Setup(*args
, **kwargs
):
4402 """Setup(self, Window parent) -> bool"""
4403 return _windows_
.Printer_Setup(*args
, **kwargs
)
4405 def Print(*args
, **kwargs
):
4406 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4407 return _windows_
.Printer_Print(*args
, **kwargs
)
4409 def PrintDialog(*args
, **kwargs
):
4410 """PrintDialog(self, Window parent) -> DC"""
4411 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4413 def GetPrintDialogData(*args
, **kwargs
):
4414 """GetPrintDialogData(self) -> PrintDialogData"""
4415 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4417 def GetAbort(*args
, **kwargs
):
4418 """GetAbort(self) -> bool"""
4419 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4421 def GetLastError(*args
, **kwargs
):
4422 """GetLastError() -> int"""
4423 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4425 GetLastError
= staticmethod(GetLastError
)
4427 class PrinterPtr(Printer
):
4428 def __init__(self
, this
):
4430 if not hasattr(self
,"thisown"): self
.thisown
= 0
4431 self
.__class
__ = Printer
4432 _windows_
.Printer_swigregister(PrinterPtr
)
4434 def Printer_GetLastError(*args
, **kwargs
):
4435 """Printer_GetLastError() -> int"""
4436 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4438 class Printout(_core
.Object
):
4439 """Proxy of C++ Printout class"""
4441 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4442 def __init__(self
, *args
, **kwargs
):
4443 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4444 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4445 self
.this
= newobj
.this
4448 self
._setCallbackInfo
(self
, Printout
)
4450 def _setCallbackInfo(*args
, **kwargs
):
4451 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4452 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4454 def GetTitle(*args
, **kwargs
):
4455 """GetTitle(self) -> String"""
4456 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4458 def GetDC(*args
, **kwargs
):
4459 """GetDC(self) -> DC"""
4460 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4462 def SetDC(*args
, **kwargs
):
4463 """SetDC(self, DC dc)"""
4464 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4466 def SetPageSizePixels(*args
, **kwargs
):
4467 """SetPageSizePixels(self, int w, int h)"""
4468 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4470 def GetPageSizePixels(*args
, **kwargs
):
4471 """GetPageSizePixels() -> (w, h)"""
4472 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4474 def SetPageSizeMM(*args
, **kwargs
):
4475 """SetPageSizeMM(self, int w, int h)"""
4476 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4478 def GetPageSizeMM(*args
, **kwargs
):
4479 """GetPageSizeMM() -> (w, h)"""
4480 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4482 def SetPPIScreen(*args
, **kwargs
):
4483 """SetPPIScreen(self, int x, int y)"""
4484 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4486 def GetPPIScreen(*args
, **kwargs
):
4487 """GetPPIScreen() -> (x,y)"""
4488 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4490 def SetPPIPrinter(*args
, **kwargs
):
4491 """SetPPIPrinter(self, int x, int y)"""
4492 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4494 def GetPPIPrinter(*args
, **kwargs
):
4495 """GetPPIPrinter() -> (x,y)"""
4496 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4498 def IsPreview(*args
, **kwargs
):
4499 """IsPreview(self) -> bool"""
4500 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4502 def SetIsPreview(*args
, **kwargs
):
4503 """SetIsPreview(self, bool p)"""
4504 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4506 def base_OnBeginDocument(*args
, **kwargs
):
4507 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4508 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4510 def base_OnEndDocument(*args
, **kwargs
):
4511 """base_OnEndDocument(self)"""
4512 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4514 def base_OnBeginPrinting(*args
, **kwargs
):
4515 """base_OnBeginPrinting(self)"""
4516 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4518 def base_OnEndPrinting(*args
, **kwargs
):
4519 """base_OnEndPrinting(self)"""
4520 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4522 def base_OnPreparePrinting(*args
, **kwargs
):
4523 """base_OnPreparePrinting(self)"""
4524 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4526 def base_HasPage(*args
, **kwargs
):
4527 """base_HasPage(self, int page) -> bool"""
4528 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4530 def base_GetPageInfo(*args
, **kwargs
):
4531 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4532 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4535 class PrintoutPtr(Printout
):
4536 def __init__(self
, this
):
4538 if not hasattr(self
,"thisown"): self
.thisown
= 0
4539 self
.__class
__ = Printout
4540 _windows_
.Printout_swigregister(PrintoutPtr
)
4542 class PreviewCanvas(ScrolledWindow
):
4543 """Proxy of C++ PreviewCanvas class"""
4545 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4546 def __init__(self
, *args
, **kwargs
):
4548 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4549 Size size=DefaultSize, long style=0,
4550 String name=PreviewCanvasNameStr) -> PreviewCanvas
4552 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4553 self
.this
= newobj
.this
4556 self
._setOORInfo
(self
)
4559 class PreviewCanvasPtr(PreviewCanvas
):
4560 def __init__(self
, this
):
4562 if not hasattr(self
,"thisown"): self
.thisown
= 0
4563 self
.__class
__ = PreviewCanvas
4564 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4566 class PreviewFrame(Frame
):
4567 """Proxy of C++ PreviewFrame class"""
4569 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4570 def __init__(self
, *args
, **kwargs
):
4572 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4573 Size size=DefaultSize,
4574 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4576 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4577 self
.this
= newobj
.this
4580 self
._setOORInfo
(self
)
4582 def Initialize(*args
, **kwargs
):
4583 """Initialize(self)"""
4584 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4586 def CreateControlBar(*args
, **kwargs
):
4587 """CreateControlBar(self)"""
4588 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4590 def CreateCanvas(*args
, **kwargs
):
4591 """CreateCanvas(self)"""
4592 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4594 def GetControlBar(*args
, **kwargs
):
4595 """GetControlBar(self) -> PreviewControlBar"""
4596 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4599 class PreviewFramePtr(PreviewFrame
):
4600 def __init__(self
, this
):
4602 if not hasattr(self
,"thisown"): self
.thisown
= 0
4603 self
.__class
__ = PreviewFrame
4604 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4606 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4607 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4608 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4609 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4610 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4611 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4612 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4613 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4614 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4615 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4616 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4617 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4618 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4619 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4620 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4621 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4622 class PreviewControlBar(Panel
):
4623 """Proxy of C++ PreviewControlBar class"""
4625 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4626 def __init__(self
, *args
, **kwargs
):
4628 __init__(self, PrintPreview preview, long buttons, Window parent,
4629 Point pos=DefaultPosition, Size size=DefaultSize,
4630 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4632 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4633 self
.this
= newobj
.this
4636 self
._setOORInfo
(self
)
4638 def GetZoomControl(*args
, **kwargs
):
4639 """GetZoomControl(self) -> int"""
4640 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4642 def SetZoomControl(*args
, **kwargs
):
4643 """SetZoomControl(self, int zoom)"""
4644 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4646 def GetPrintPreview(*args
, **kwargs
):
4647 """GetPrintPreview(self) -> PrintPreview"""
4648 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4650 def OnNext(*args
, **kwargs
):
4652 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4654 def OnPrevious(*args
, **kwargs
):
4655 """OnPrevious(self)"""
4656 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4658 def OnFirst(*args
, **kwargs
):
4660 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4662 def OnLast(*args
, **kwargs
):
4664 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4666 def OnGoto(*args
, **kwargs
):
4668 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4671 class PreviewControlBarPtr(PreviewControlBar
):
4672 def __init__(self
, this
):
4674 if not hasattr(self
,"thisown"): self
.thisown
= 0
4675 self
.__class
__ = PreviewControlBar
4676 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4678 class PrintPreview(_core
.Object
):
4679 """Proxy of C++ PrintPreview class"""
4681 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4682 def __init__(self
, *args
):
4684 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4685 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4687 newobj
= _windows_
.new_PrintPreview(*args
)
4688 self
.this
= newobj
.this
4691 def SetCurrentPage(*args
, **kwargs
):
4692 """SetCurrentPage(self, int pageNum) -> bool"""
4693 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4695 def GetCurrentPage(*args
, **kwargs
):
4696 """GetCurrentPage(self) -> int"""
4697 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4699 def SetPrintout(*args
, **kwargs
):
4700 """SetPrintout(self, Printout printout)"""
4701 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4703 def GetPrintout(*args
, **kwargs
):
4704 """GetPrintout(self) -> Printout"""
4705 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4707 def GetPrintoutForPrinting(*args
, **kwargs
):
4708 """GetPrintoutForPrinting(self) -> Printout"""
4709 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4711 def SetFrame(*args
, **kwargs
):
4712 """SetFrame(self, Frame frame)"""
4713 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4715 def SetCanvas(*args
, **kwargs
):
4716 """SetCanvas(self, PreviewCanvas canvas)"""
4717 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4719 def GetFrame(*args
, **kwargs
):
4720 """GetFrame(self) -> Frame"""
4721 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4723 def GetCanvas(*args
, **kwargs
):
4724 """GetCanvas(self) -> PreviewCanvas"""
4725 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4727 def PaintPage(*args
, **kwargs
):
4728 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4729 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4731 def DrawBlankPage(*args
, **kwargs
):
4732 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4733 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4735 def RenderPage(*args
, **kwargs
):
4736 """RenderPage(self, int pageNum) -> bool"""
4737 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4739 def AdjustScrollbars(*args
, **kwargs
):
4740 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4741 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4743 def GetPrintDialogData(*args
, **kwargs
):
4744 """GetPrintDialogData(self) -> PrintDialogData"""
4745 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4747 def SetZoom(*args
, **kwargs
):
4748 """SetZoom(self, int percent)"""
4749 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4751 def GetZoom(*args
, **kwargs
):
4752 """GetZoom(self) -> int"""
4753 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4755 def GetMaxPage(*args
, **kwargs
):
4756 """GetMaxPage(self) -> int"""
4757 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4759 def GetMinPage(*args
, **kwargs
):
4760 """GetMinPage(self) -> int"""
4761 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4763 def Ok(*args
, **kwargs
):
4764 """Ok(self) -> bool"""
4765 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4767 def SetOk(*args
, **kwargs
):
4768 """SetOk(self, bool ok)"""
4769 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4771 def Print(*args
, **kwargs
):
4772 """Print(self, bool interactive) -> bool"""
4773 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4775 def DetermineScaling(*args
, **kwargs
):
4776 """DetermineScaling(self)"""
4777 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4779 def __nonzero__(self
): return self
.Ok()
4781 class PrintPreviewPtr(PrintPreview
):
4782 def __init__(self
, this
):
4784 if not hasattr(self
,"thisown"): self
.thisown
= 0
4785 self
.__class
__ = PrintPreview
4786 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4788 class PyPrintPreview(PrintPreview
):
4789 """Proxy of C++ PyPrintPreview class"""
4791 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4792 def __init__(self
, *args
):
4794 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4795 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4797 newobj
= _windows_
.new_PyPrintPreview(*args
)
4798 self
.this
= newobj
.this
4801 self
._setCallbackInfo
(self
, PyPrintPreview
)
4803 def _setCallbackInfo(*args
, **kwargs
):
4804 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4805 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4807 def base_SetCurrentPage(*args
, **kwargs
):
4808 """base_SetCurrentPage(self, int pageNum) -> bool"""
4809 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4811 def base_PaintPage(*args
, **kwargs
):
4812 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4813 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4815 def base_DrawBlankPage(*args
, **kwargs
):
4816 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4817 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4819 def base_RenderPage(*args
, **kwargs
):
4820 """base_RenderPage(self, int pageNum) -> bool"""
4821 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4823 def base_SetZoom(*args
, **kwargs
):
4824 """base_SetZoom(self, int percent)"""
4825 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4827 def base_Print(*args
, **kwargs
):
4828 """base_Print(self, bool interactive) -> bool"""
4829 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4831 def base_DetermineScaling(*args
, **kwargs
):
4832 """base_DetermineScaling(self)"""
4833 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4836 class PyPrintPreviewPtr(PyPrintPreview
):
4837 def __init__(self
, this
):
4839 if not hasattr(self
,"thisown"): self
.thisown
= 0
4840 self
.__class
__ = PyPrintPreview
4841 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4843 class PyPreviewFrame(PreviewFrame
):
4844 """Proxy of C++ PyPreviewFrame class"""
4846 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4847 def __init__(self
, *args
, **kwargs
):
4849 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4850 Size size=DefaultSize,
4851 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4853 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4854 self
.this
= newobj
.this
4857 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4859 def _setCallbackInfo(*args
, **kwargs
):
4860 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4861 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4863 def SetPreviewCanvas(*args
, **kwargs
):
4864 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4865 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4867 def SetControlBar(*args
, **kwargs
):
4868 """SetControlBar(self, PreviewControlBar bar)"""
4869 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4871 def base_Initialize(*args
, **kwargs
):
4872 """base_Initialize(self)"""
4873 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4875 def base_CreateCanvas(*args
, **kwargs
):
4876 """base_CreateCanvas(self)"""
4877 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4879 def base_CreateControlBar(*args
, **kwargs
):
4880 """base_CreateControlBar(self)"""
4881 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4884 class PyPreviewFramePtr(PyPreviewFrame
):
4885 def __init__(self
, this
):
4887 if not hasattr(self
,"thisown"): self
.thisown
= 0
4888 self
.__class
__ = PyPreviewFrame
4889 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4891 class PyPreviewControlBar(PreviewControlBar
):
4892 """Proxy of C++ PyPreviewControlBar class"""
4894 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4895 def __init__(self
, *args
, **kwargs
):
4897 __init__(self, PrintPreview preview, long buttons, Window parent,
4898 Point pos=DefaultPosition, Size size=DefaultSize,
4899 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4901 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4902 self
.this
= newobj
.this
4905 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4907 def _setCallbackInfo(*args
, **kwargs
):
4908 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4909 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4911 def SetPrintPreview(*args
, **kwargs
):
4912 """SetPrintPreview(self, PrintPreview preview)"""
4913 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4915 def base_CreateButtons(*args
, **kwargs
):
4916 """base_CreateButtons(self)"""
4917 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4919 def base_SetZoomControl(*args
, **kwargs
):
4920 """base_SetZoomControl(self, int zoom)"""
4921 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4924 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4925 def __init__(self
, this
):
4927 if not hasattr(self
,"thisown"): self
.thisown
= 0
4928 self
.__class
__ = PyPreviewControlBar
4929 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)