1 # This file was created automatically by SWIG 1.3.27.
2 # Don't modify this file, modify the SWIG interface instead.
6 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if isinstance(value
, class_type
):
9 self
.__dict
__[name
] = value
.this
10 if hasattr(value
,"thisown"): self
.__dict
__["thisown"] = value
.thisown
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
) or (name
== "thisown"):
16 self
.__dict
__[name
] = value
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
23 def _swig_getattr(self
,class_type
,name
):
24 method
= class_type
.__swig
_getmethods
__.get(name
,None)
25 if method
: return method(self
)
26 raise AttributeError,name
30 _object
= types
.ObjectType
32 except AttributeError:
38 def _swig_setattr_nondynamic_method(set):
39 def set_attr(self
,name
,value
):
40 if hasattr(self
,name
) or (name
in ("this", "thisown")):
43 raise AttributeError("You cannot add attributes to %s" % self
)
49 #---------------------------------------------------------------------------
51 class Panel(_core
.Window
):
52 """Proxy of C++ Panel class"""
54 return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
55 def __init__(self
, *args
, **kwargs
):
57 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
58 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
59 String name=PanelNameStr) -> Panel
61 newobj
= _windows_
.new_Panel(*args
, **kwargs
)
62 self
.this
= newobj
.this
65 self
._setOORInfo
(self
)
67 def Create(*args
, **kwargs
):
69 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
70 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
71 String name=PanelNameStr) -> bool
73 Create the GUI part of the Window for 2-phase creation mode.
75 return _windows_
.Panel_Create(*args
, **kwargs
)
77 def InitDialog(*args
, **kwargs
):
81 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
82 to the dialog via validators.
84 return _windows_
.Panel_InitDialog(*args
, **kwargs
)
86 def SetFocus(*args
, **kwargs
):
90 Overrides `wx.Window.SetFocus`. This method uses the (undocumented)
91 mix-in class wxControlContainer which manages the focus and TAB logic
92 for controls which usually have child controls. In practice, if you
93 call this method and the panel has at least one child window, then the
94 focus will be given to the child window.
96 return _windows_
.Panel_SetFocus(*args
, **kwargs
)
98 def SetFocusIgnoringChildren(*args
, **kwargs
):
100 SetFocusIgnoringChildren(self)
102 In contrast to `SetFocus` (see above) this will set the focus to the
103 panel even of there are child windows in the panel. This is only
106 return _windows_
.Panel_SetFocusIgnoringChildren(*args
, **kwargs
)
108 def GetClassDefaultAttributes(*args
, **kwargs
):
110 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
112 Get the default attributes for this class. This is useful if you want
113 to use the same font or colour in your own control as in a standard
114 control -- which is a much better idea than hard coding specific
115 colours or fonts which might look completely out of place on the
116 user's system, especially if it uses themes.
118 The variant parameter is only relevant under Mac currently and is
119 ignore under other platforms. Under Mac, it will change the size of
120 the returned font. See `wx.Window.SetWindowVariant` for more about
123 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
125 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
127 class PanelPtr(Panel
):
128 def __init__(self
, this
):
130 if not hasattr(self
,"thisown"): self
.thisown
= 0
131 self
.__class
__ = Panel
132 _windows_
.Panel_swigregister(PanelPtr
)
134 def PrePanel(*args
, **kwargs
):
135 """PrePanel() -> Panel"""
136 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
140 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
142 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
144 Get the default attributes for this class. This is useful if you want
145 to use the same font or colour in your own control as in a standard
146 control -- which is a much better idea than hard coding specific
147 colours or fonts which might look completely out of place on the
148 user's system, especially if it uses themes.
150 The variant parameter is only relevant under Mac currently and is
151 ignore under other platforms. Under Mac, it will change the size of
152 the returned font. See `wx.Window.SetWindowVariant` for more about
155 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
157 #---------------------------------------------------------------------------
159 class ScrolledWindow(Panel
):
160 """Proxy of C++ ScrolledWindow class"""
162 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
163 def __init__(self
, *args
, **kwargs
):
165 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
166 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
167 String name=PanelNameStr) -> ScrolledWindow
169 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
170 self
.this
= newobj
.this
173 self
._setOORInfo
(self
)
175 def Create(*args
, **kwargs
):
177 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
178 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
179 String name=PanelNameStr) -> bool
181 Create the GUI part of the Window for 2-phase creation mode.
183 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
185 def SetScrollbars(*args
, **kwargs
):
187 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
188 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
190 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
192 def Scroll(*args
, **kwargs
):
193 """Scroll(self, int x, int y)"""
194 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
196 def GetScrollPageSize(*args
, **kwargs
):
197 """GetScrollPageSize(self, int orient) -> int"""
198 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
200 def SetScrollPageSize(*args
, **kwargs
):
201 """SetScrollPageSize(self, int orient, int pageSize)"""
202 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
204 def SetScrollRate(*args
, **kwargs
):
205 """SetScrollRate(self, int xstep, int ystep)"""
206 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
208 def GetScrollPixelsPerUnit(*args
, **kwargs
):
210 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
212 Get the size of one logical unit in physical units.
214 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
216 def EnableScrolling(*args
, **kwargs
):
217 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
218 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
220 def GetViewStart(*args
, **kwargs
):
222 GetViewStart() -> (x,y)
226 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
228 def SetScale(*args
, **kwargs
):
229 """SetScale(self, double xs, double ys)"""
230 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
232 def GetScaleX(*args
, **kwargs
):
233 """GetScaleX(self) -> double"""
234 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
236 def GetScaleY(*args
, **kwargs
):
237 """GetScaleY(self) -> double"""
238 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
240 def CalcScrolledPosition(*args
):
242 CalcScrolledPosition(self, Point pt) -> Point
243 CalcScrolledPosition(int x, int y) -> (sx, sy)
245 Translate between scrolled and unscrolled coordinates.
247 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
249 def CalcUnscrolledPosition(*args
):
251 CalcUnscrolledPosition(self, Point pt) -> Point
252 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
254 Translate between scrolled and unscrolled coordinates.
256 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
258 def AdjustScrollbars(*args
, **kwargs
):
259 """AdjustScrollbars(self)"""
260 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
262 def CalcScrollInc(*args
, **kwargs
):
263 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
264 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
266 def SetTargetWindow(*args
, **kwargs
):
267 """SetTargetWindow(self, Window target)"""
268 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
270 def GetTargetWindow(*args
, **kwargs
):
271 """GetTargetWindow(self) -> Window"""
272 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
274 def SetTargetRect(*args
, **kwargs
):
275 """SetTargetRect(self, Rect rect)"""
276 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
278 def GetTargetRect(*args
, **kwargs
):
279 """GetTargetRect(self) -> Rect"""
280 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
282 def DoPrepareDC(*args
, **kwargs
):
284 DoPrepareDC(self, DC dc)
286 Normally what is called by `PrepareDC`.
288 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
290 def GetClassDefaultAttributes(*args
, **kwargs
):
292 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
294 Get the default attributes for this class. This is useful if you want
295 to use the same font or colour in your own control as in a standard
296 control -- which is a much better idea than hard coding specific
297 colours or fonts which might look completely out of place on the
298 user's system, especially if it uses themes.
300 The variant parameter is only relevant under Mac currently and is
301 ignore under other platforms. Under Mac, it will change the size of
302 the returned font. See `wx.Window.SetWindowVariant` for more about
305 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
307 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
309 class ScrolledWindowPtr(ScrolledWindow
):
310 def __init__(self
, this
):
312 if not hasattr(self
,"thisown"): self
.thisown
= 0
313 self
.__class
__ = ScrolledWindow
314 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
316 def PreScrolledWindow(*args
, **kwargs
):
317 """PreScrolledWindow() -> ScrolledWindow"""
318 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
322 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
324 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
326 Get the default attributes for this class. This is useful if you want
327 to use the same font or colour in your own control as in a standard
328 control -- which is a much better idea than hard coding specific
329 colours or fonts which might look completely out of place on the
330 user's system, especially if it uses themes.
332 The variant parameter is only relevant under Mac currently and is
333 ignore under other platforms. Under Mac, it will change the size of
334 the returned font. See `wx.Window.SetWindowVariant` for more about
337 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
339 #---------------------------------------------------------------------------
341 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
342 ICONIZE
= _windows_
.ICONIZE
343 MINIMIZE
= _windows_
.MINIMIZE
344 MAXIMIZE
= _windows_
.MAXIMIZE
345 CLOSE_BOX
= _windows_
.CLOSE_BOX
346 THICK_FRAME
= _windows_
.THICK_FRAME
347 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
348 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
349 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
350 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
351 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
352 RESIZE_BOX
= _windows_
.RESIZE_BOX
353 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
354 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
355 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
356 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
357 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
358 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
359 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
360 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
361 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
362 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
363 FRAME_EX_METAL
= _windows_
.FRAME_EX_METAL
364 DIALOG_EX_METAL
= _windows_
.DIALOG_EX_METAL
365 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
366 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
367 USER_COLOURS
= _windows_
.USER_COLOURS
368 NO_3D
= _windows_
.NO_3D
369 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
370 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
371 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
372 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
373 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
374 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
375 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
376 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
377 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
378 class TopLevelWindow(_core
.Window
):
379 """Proxy of C++ TopLevelWindow class"""
380 def __init__(self
): raise RuntimeError, "No constructor defined"
382 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
383 def Maximize(*args
, **kwargs
):
384 """Maximize(self, bool maximize=True)"""
385 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
387 def Restore(*args
, **kwargs
):
389 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
391 def Iconize(*args
, **kwargs
):
392 """Iconize(self, bool iconize=True)"""
393 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
395 def IsMaximized(*args
, **kwargs
):
396 """IsMaximized(self) -> bool"""
397 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
399 def IsIconized(*args
, **kwargs
):
400 """IsIconized(self) -> bool"""
401 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
403 def GetIcon(*args
, **kwargs
):
404 """GetIcon(self) -> Icon"""
405 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
407 def SetIcon(*args
, **kwargs
):
408 """SetIcon(self, Icon icon)"""
409 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
411 def SetIcons(*args
, **kwargs
):
412 """SetIcons(self, wxIconBundle icons)"""
413 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
415 def ShowFullScreen(*args
, **kwargs
):
416 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
417 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
419 def IsFullScreen(*args
, **kwargs
):
420 """IsFullScreen(self) -> bool"""
421 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
423 def SetTitle(*args
, **kwargs
):
424 """SetTitle(self, String title)"""
425 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
427 def GetTitle(*args
, **kwargs
):
428 """GetTitle(self) -> String"""
429 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
431 def SetShape(*args
, **kwargs
):
432 """SetShape(self, Region region) -> bool"""
433 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
435 def RequestUserAttention(*args
, **kwargs
):
436 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
437 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
439 def IsActive(*args
, **kwargs
):
440 """IsActive(self) -> bool"""
441 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
443 def MacSetMetalAppearance(*args
, **kwargs
):
444 """MacSetMetalAppearance(self, bool on)"""
445 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
447 def MacGetMetalAppearance(*args
, **kwargs
):
448 """MacGetMetalAppearance(self) -> bool"""
449 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
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 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
632 def __init__(self
, *args
, **kwargs
):
634 __init__(self, Window parent, int id=-1, String title=EmptyString,
635 Point pos=DefaultPosition, Size size=DefaultSize,
636 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
638 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
639 self
.this
= newobj
.this
642 self
._setOORInfo
(self
)
644 def Create(*args
, **kwargs
):
646 Create(self, Window parent, int id=-1, String title=EmptyString,
647 Point pos=DefaultPosition, Size size=DefaultSize,
648 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
650 return _windows_
.Dialog_Create(*args
, **kwargs
)
652 def SetReturnCode(*args
, **kwargs
):
653 """SetReturnCode(self, int returnCode)"""
654 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
656 def GetReturnCode(*args
, **kwargs
):
657 """GetReturnCode(self) -> int"""
658 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
660 def CreateTextSizer(*args
, **kwargs
):
661 """CreateTextSizer(self, String message) -> Sizer"""
662 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
664 def CreateButtonSizer(*args
, **kwargs
):
665 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
666 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
668 def CreateStdDialogButtonSizer(*args
, **kwargs
):
669 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
670 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
672 def IsModal(*args
, **kwargs
):
673 """IsModal(self) -> bool"""
674 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
676 def ShowModal(*args
, **kwargs
):
677 """ShowModal(self) -> int"""
678 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
680 def EndModal(*args
, **kwargs
):
681 """EndModal(self, int retCode)"""
682 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
684 def GetClassDefaultAttributes(*args
, **kwargs
):
686 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
688 Get the default attributes for this class. This is useful if you want
689 to use the same font or colour in your own control as in a standard
690 control -- which is a much better idea than hard coding specific
691 colours or fonts which might look completely out of place on the
692 user's system, especially if it uses themes.
694 The variant parameter is only relevant under Mac currently and is
695 ignore under other platforms. Under Mac, it will change the size of
696 the returned font. See `wx.Window.SetWindowVariant` for more about
699 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
701 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
702 def SendSizeEvent(self
):
703 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
706 class DialogPtr(Dialog
):
707 def __init__(self
, this
):
709 if not hasattr(self
,"thisown"): self
.thisown
= 0
710 self
.__class
__ = Dialog
711 _windows_
.Dialog_swigregister(DialogPtr
)
713 def PreDialog(*args
, **kwargs
):
714 """PreDialog() -> Dialog"""
715 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
719 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
721 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
723 Get the default attributes for this class. This is useful if you want
724 to use the same font or colour in your own control as in a standard
725 control -- which is a much better idea than hard coding specific
726 colours or fonts which might look completely out of place on the
727 user's system, especially if it uses themes.
729 The variant parameter is only relevant under Mac currently and is
730 ignore under other platforms. Under Mac, it will change the size of
731 the returned font. See `wx.Window.SetWindowVariant` for more about
734 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
736 #---------------------------------------------------------------------------
738 class MiniFrame(Frame
):
739 """Proxy of C++ MiniFrame class"""
741 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
742 def __init__(self
, *args
, **kwargs
):
744 __init__(self, Window parent, int id=-1, String title=EmptyString,
745 Point pos=DefaultPosition, Size size=DefaultSize,
746 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
748 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
749 self
.this
= newobj
.this
752 self
._setOORInfo
(self
)
754 def Create(*args
, **kwargs
):
756 Create(self, Window parent, int id=-1, String title=EmptyString,
757 Point pos=DefaultPosition, Size size=DefaultSize,
758 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
760 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
763 class MiniFramePtr(MiniFrame
):
764 def __init__(self
, this
):
766 if not hasattr(self
,"thisown"): self
.thisown
= 0
767 self
.__class
__ = MiniFrame
768 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
770 def PreMiniFrame(*args
, **kwargs
):
771 """PreMiniFrame() -> MiniFrame"""
772 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
776 #---------------------------------------------------------------------------
778 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
779 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
780 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
781 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
782 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
783 class SplashScreenWindow(_core
.Window
):
784 """Proxy of C++ SplashScreenWindow class"""
786 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
787 def __init__(self
, *args
, **kwargs
):
789 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
790 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
792 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
793 self
.this
= newobj
.this
796 self
._setOORInfo
(self
)
798 def SetBitmap(*args
, **kwargs
):
799 """SetBitmap(self, Bitmap bitmap)"""
800 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
802 def GetBitmap(*args
, **kwargs
):
803 """GetBitmap(self) -> Bitmap"""
804 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
807 class SplashScreenWindowPtr(SplashScreenWindow
):
808 def __init__(self
, this
):
810 if not hasattr(self
,"thisown"): self
.thisown
= 0
811 self
.__class
__ = SplashScreenWindow
812 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
814 class SplashScreen(Frame
):
815 """Proxy of C++ SplashScreen class"""
817 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
818 def __init__(self
, *args
, **kwargs
):
820 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
821 Window parent, int id=-1, Point pos=DefaultPosition,
822 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
824 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
825 self
.this
= newobj
.this
828 self
._setOORInfo
(self
)
830 def GetSplashStyle(*args
, **kwargs
):
831 """GetSplashStyle(self) -> long"""
832 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
834 def GetSplashWindow(*args
, **kwargs
):
835 """GetSplashWindow(self) -> SplashScreenWindow"""
836 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
838 def GetTimeout(*args
, **kwargs
):
839 """GetTimeout(self) -> int"""
840 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
843 class SplashScreenPtr(SplashScreen
):
844 def __init__(self
, this
):
846 if not hasattr(self
,"thisown"): self
.thisown
= 0
847 self
.__class
__ = SplashScreen
848 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
850 #---------------------------------------------------------------------------
852 SB_NORMAL
= _windows_
.SB_NORMAL
853 SB_FLAT
= _windows_
.SB_FLAT
854 SB_RAISED
= _windows_
.SB_RAISED
855 class StatusBar(_core
.Window
):
856 """Proxy of C++ StatusBar class"""
858 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
859 def __init__(self
, *args
, **kwargs
):
861 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
862 String name=StatusLineNameStr) -> StatusBar
864 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
865 self
.this
= newobj
.this
868 self
._setOORInfo
(self
)
870 def Create(*args
, **kwargs
):
871 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
872 return _windows_
.StatusBar_Create(*args
, **kwargs
)
874 def SetFieldsCount(*args
, **kwargs
):
875 """SetFieldsCount(self, int number=1)"""
876 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
878 def GetFieldsCount(*args
, **kwargs
):
879 """GetFieldsCount(self) -> int"""
880 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
882 def SetStatusText(*args
, **kwargs
):
883 """SetStatusText(self, String text, int number=0)"""
884 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
886 def GetStatusText(*args
, **kwargs
):
887 """GetStatusText(self, int number=0) -> String"""
888 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
890 def PushStatusText(*args
, **kwargs
):
891 """PushStatusText(self, String text, int number=0)"""
892 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
894 def PopStatusText(*args
, **kwargs
):
895 """PopStatusText(self, int number=0)"""
896 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
898 def SetStatusWidths(*args
, **kwargs
):
899 """SetStatusWidths(self, int widths)"""
900 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
902 def SetStatusStyles(*args
, **kwargs
):
903 """SetStatusStyles(self, int styles)"""
904 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
906 def GetFieldRect(*args
, **kwargs
):
907 """GetFieldRect(self, int i) -> Rect"""
908 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
910 def SetMinHeight(*args
, **kwargs
):
911 """SetMinHeight(self, int height)"""
912 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
914 def GetBorderX(*args
, **kwargs
):
915 """GetBorderX(self) -> int"""
916 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
918 def GetBorderY(*args
, **kwargs
):
919 """GetBorderY(self) -> int"""
920 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
922 def GetClassDefaultAttributes(*args
, **kwargs
):
924 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
926 Get the default attributes for this class. This is useful if you want
927 to use the same font or colour in your own control as in a standard
928 control -- which is a much better idea than hard coding specific
929 colours or fonts which might look completely out of place on the
930 user's system, especially if it uses themes.
932 The variant parameter is only relevant under Mac currently and is
933 ignore under other platforms. Under Mac, it will change the size of
934 the returned font. See `wx.Window.SetWindowVariant` for more about
937 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
939 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
941 class StatusBarPtr(StatusBar
):
942 def __init__(self
, this
):
944 if not hasattr(self
,"thisown"): self
.thisown
= 0
945 self
.__class
__ = StatusBar
946 _windows_
.StatusBar_swigregister(StatusBarPtr
)
948 def PreStatusBar(*args
, **kwargs
):
949 """PreStatusBar() -> StatusBar"""
950 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
954 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
956 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
958 Get the default attributes for this class. This is useful if you want
959 to use the same font or colour in your own control as in a standard
960 control -- which is a much better idea than hard coding specific
961 colours or fonts which might look completely out of place on the
962 user's system, especially if it uses themes.
964 The variant parameter is only relevant under Mac currently and is
965 ignore under other platforms. Under Mac, it will change the size of
966 the returned font. See `wx.Window.SetWindowVariant` for more about
969 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
971 #---------------------------------------------------------------------------
973 SP_NOBORDER
= _windows_
.SP_NOBORDER
974 SP_NOSASH
= _windows_
.SP_NOSASH
975 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
976 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
977 SP_3DSASH
= _windows_
.SP_3DSASH
978 SP_3DBORDER
= _windows_
.SP_3DBORDER
979 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
980 SP_BORDER
= _windows_
.SP_BORDER
981 SP_3D
= _windows_
.SP_3D
982 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
983 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
984 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
985 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
986 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
987 class SplitterWindow(_core
.Window
):
989 wx.SplitterWindow manages up to two subwindows or panes, with an
990 optional vertical or horizontal split which can be used with the mouse
994 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
995 def __init__(self
, *args
, **kwargs
):
997 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
998 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
1000 Constructor. Creates and shows a SplitterWindow.
1002 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1003 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
1004 self
.this
= newobj
.this
1007 self
._setOORInfo
(self
)
1009 def Create(*args
, **kwargs
):
1011 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1012 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
1014 Create the GUI part of the SplitterWindow for the 2-phase create.
1016 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
1018 def GetWindow1(*args
, **kwargs
):
1020 GetWindow1(self) -> Window
1022 Gets the only or left/top pane.
1024 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
1026 def GetWindow2(*args
, **kwargs
):
1028 GetWindow2(self) -> Window
1030 Gets the right/bottom pane.
1032 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
1034 def SetSplitMode(*args
, **kwargs
):
1036 SetSplitMode(self, int mode)
1038 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
1039 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
1042 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
1044 def GetSplitMode(*args
, **kwargs
):
1046 GetSplitMode(self) -> int
1050 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
1052 def Initialize(*args
, **kwargs
):
1054 Initialize(self, Window window)
1056 Initializes the splitter window to have one pane. This should be
1057 called if you wish to initially view only a single pane in the
1058 splitter window. The child window is shown if it is currently hidden.
1060 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1062 def SplitVertically(*args
, **kwargs
):
1064 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1066 Initializes the left and right panes of the splitter window. The
1067 child windows are shown if they are currently hidden.
1069 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1071 def SplitHorizontally(*args
, **kwargs
):
1073 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1075 Initializes the top and bottom panes of the splitter window. The
1076 child windows are shown if they are currently hidden.
1078 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1080 def Unsplit(*args
, **kwargs
):
1082 Unsplit(self, Window toRemove=None) -> bool
1084 Unsplits the window. Pass the pane to remove, or None to remove the
1085 right or bottom pane. Returns True if successful, False otherwise (the
1086 window was not split).
1088 This function will not actually delete the pane being
1089 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1090 for the desired behaviour. By default, the pane being
1091 removed is only hidden.
1093 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1095 def ReplaceWindow(*args
, **kwargs
):
1097 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1099 This function replaces one of the windows managed by the
1100 SplitterWindow with another one. It is in general better to use it
1101 instead of calling Unsplit() and then resplitting the window back
1102 because it will provoke much less flicker. It is valid to call this
1103 function whether the splitter has two windows or only one.
1105 Both parameters should be non-None and winOld must specify one of the
1106 windows managed by the splitter. If the parameters are incorrect or
1107 the window couldn't be replaced, False is returned. Otherwise the
1108 function will return True, but please notice that it will not Destroy
1109 the replaced window and you may wish to do it yourself.
1111 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1113 def UpdateSize(*args
, **kwargs
):
1117 Causes any pending sizing of the sash and child panes to take place
1120 Such resizing normally takes place in idle time, in order to wait for
1121 layout to be completed. However, this can cause unacceptable flicker
1122 as the panes are resized after the window has been shown. To work
1123 around this, you can perform window layout (for example by sending a
1124 size event to the parent window), and then call this function, before
1125 showing the top-level window.
1127 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1129 def IsSplit(*args
, **kwargs
):
1131 IsSplit(self) -> bool
1133 Is the window split?
1135 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1137 def SetSashSize(*args
, **kwargs
):
1139 SetSashSize(self, int width)
1143 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1145 def SetBorderSize(*args
, **kwargs
):
1147 SetBorderSize(self, int width)
1149 Sets the border size. Currently a NOP.
1151 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1153 def GetSashSize(*args
, **kwargs
):
1155 GetSashSize(self) -> int
1159 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1161 def GetBorderSize(*args
, **kwargs
):
1163 GetBorderSize(self) -> int
1165 Gets the border size
1167 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1169 def SetSashPosition(*args
, **kwargs
):
1171 SetSashPosition(self, int position, bool redraw=True)
1173 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1174 are resized and the sash and border are redrawn.
1176 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1178 def GetSashPosition(*args
, **kwargs
):
1180 GetSashPosition(self) -> int
1182 Returns the surrent sash position.
1184 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1186 def SetSashGravity(*args
, **kwargs
):
1188 SetSashGravity(self, double gravity)
1190 Set the sash gravity. Gravity is a floating-point factor between 0.0
1191 and 1.0 which controls position of sash while resizing the
1192 `wx.SplitterWindow`. The gravity specifies how much the left/top
1193 window will grow while resizing.
1195 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1197 def GetSashGravity(*args
, **kwargs
):
1199 GetSashGravity(self) -> double
1201 Gets the sash gravity.
1203 :see: `SetSashGravity`
1206 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1208 def SetMinimumPaneSize(*args
, **kwargs
):
1210 SetMinimumPaneSize(self, int min)
1212 Sets the minimum pane size in pixels.
1214 The default minimum pane size is zero, which means that either pane
1215 can be reduced to zero by dragging the sash, thus removing one of the
1216 panes. To prevent this behaviour (and veto out-of-range sash
1217 dragging), set a minimum size, for example 20 pixels. If the
1218 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1219 the window may be unsplit even if minimum size is non-zero.
1221 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1223 def GetMinimumPaneSize(*args
, **kwargs
):
1225 GetMinimumPaneSize(self) -> int
1227 Gets the minimum pane size in pixels.
1229 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1231 def SashHitTest(*args
, **kwargs
):
1233 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1235 Tests for x, y over the sash
1237 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1239 def SizeWindows(*args
, **kwargs
):
1245 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1247 def SetNeedUpdating(*args
, **kwargs
):
1248 """SetNeedUpdating(self, bool needUpdating)"""
1249 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1251 def GetNeedUpdating(*args
, **kwargs
):
1252 """GetNeedUpdating(self) -> bool"""
1253 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1255 def GetClassDefaultAttributes(*args
, **kwargs
):
1257 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1259 Get the default attributes for this class. This is useful if you want
1260 to use the same font or colour in your own control as in a standard
1261 control -- which is a much better idea than hard coding specific
1262 colours or fonts which might look completely out of place on the
1263 user's system, especially if it uses themes.
1265 The variant parameter is only relevant under Mac currently and is
1266 ignore under other platforms. Under Mac, it will change the size of
1267 the returned font. See `wx.Window.SetWindowVariant` for more about
1270 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1272 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1274 class SplitterWindowPtr(SplitterWindow
):
1275 def __init__(self
, this
):
1277 if not hasattr(self
,"thisown"): self
.thisown
= 0
1278 self
.__class
__ = SplitterWindow
1279 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1280 SplitterNameStr
= cvar
.SplitterNameStr
1282 def PreSplitterWindow(*args
, **kwargs
):
1284 PreSplitterWindow() -> SplitterWindow
1286 Precreate a SplitterWindow for 2-phase creation.
1288 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1292 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1294 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1296 Get the default attributes for this class. This is useful if you want
1297 to use the same font or colour in your own control as in a standard
1298 control -- which is a much better idea than hard coding specific
1299 colours or fonts which might look completely out of place on the
1300 user's system, especially if it uses themes.
1302 The variant parameter is only relevant under Mac currently and is
1303 ignore under other platforms. Under Mac, it will change the size of
1304 the returned font. See `wx.Window.SetWindowVariant` for more about
1307 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1309 class SplitterEvent(_core
.NotifyEvent
):
1310 """This class represents the events generated by a splitter control."""
1312 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1313 def __init__(self
, *args
, **kwargs
):
1315 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1317 This class represents the events generated by a splitter control.
1319 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1320 self
.this
= newobj
.this
1323 def SetSashPosition(*args
, **kwargs
):
1325 SetSashPosition(self, int pos)
1327 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1328 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1329 events, sets the the new sash position. In the case of _CHANGING
1330 events, sets the new tracking bar position so visual feedback during
1331 dragging will represent that change that will actually take place. Set
1332 to -1 from the event handler code to prevent repositioning.
1334 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1336 def GetSashPosition(*args
, **kwargs
):
1338 GetSashPosition(self) -> int
1340 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1341 and EVT_SPLITTER_SASH_POS_CHANGED events.
1343 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1345 def GetWindowBeingRemoved(*args
, **kwargs
):
1347 GetWindowBeingRemoved(self) -> Window
1349 Returns a pointer to the window being removed when a splitter window
1352 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1354 def GetX(*args
, **kwargs
):
1358 Returns the x coordinate of the double-click point in a
1359 EVT_SPLITTER_DCLICK event.
1361 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1363 def GetY(*args
, **kwargs
):
1367 Returns the y coordinate of the double-click point in a
1368 EVT_SPLITTER_DCLICK event.
1370 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1373 class SplitterEventPtr(SplitterEvent
):
1374 def __init__(self
, this
):
1376 if not hasattr(self
,"thisown"): self
.thisown
= 0
1377 self
.__class
__ = SplitterEvent
1378 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1380 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1381 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1382 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1383 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1384 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1385 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1386 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1387 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1388 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1390 #---------------------------------------------------------------------------
1392 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1393 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1394 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1395 SW_NOBORDER
= _windows_
.SW_NOBORDER
1396 SW_BORDER
= _windows_
.SW_BORDER
1397 SW_3DSASH
= _windows_
.SW_3DSASH
1398 SW_3DBORDER
= _windows_
.SW_3DBORDER
1399 SW_3D
= _windows_
.SW_3D
1400 SASH_TOP
= _windows_
.SASH_TOP
1401 SASH_RIGHT
= _windows_
.SASH_RIGHT
1402 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1403 SASH_LEFT
= _windows_
.SASH_LEFT
1404 SASH_NONE
= _windows_
.SASH_NONE
1405 class SashWindow(_core
.Window
):
1406 """Proxy of C++ SashWindow class"""
1408 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1409 def __init__(self
, *args
, **kwargs
):
1411 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1412 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1413 String name=SashNameStr) -> SashWindow
1415 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1416 self
.this
= newobj
.this
1419 self
._setOORInfo
(self
)
1421 def Create(*args
, **kwargs
):
1423 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1424 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1425 String name=SashNameStr) -> bool
1427 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1429 def SetSashVisible(*args
, **kwargs
):
1430 """SetSashVisible(self, int edge, bool sash)"""
1431 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1433 def GetSashVisible(*args
, **kwargs
):
1434 """GetSashVisible(self, int edge) -> bool"""
1435 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1437 def SetSashBorder(*args
, **kwargs
):
1438 """SetSashBorder(self, int edge, bool border)"""
1439 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1441 def HasBorder(*args
, **kwargs
):
1442 """HasBorder(self, int edge) -> bool"""
1443 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1445 def GetEdgeMargin(*args
, **kwargs
):
1446 """GetEdgeMargin(self, int edge) -> int"""
1447 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1449 def SetDefaultBorderSize(*args
, **kwargs
):
1450 """SetDefaultBorderSize(self, int width)"""
1451 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1453 def GetDefaultBorderSize(*args
, **kwargs
):
1454 """GetDefaultBorderSize(self) -> int"""
1455 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1457 def SetExtraBorderSize(*args
, **kwargs
):
1458 """SetExtraBorderSize(self, int width)"""
1459 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1461 def GetExtraBorderSize(*args
, **kwargs
):
1462 """GetExtraBorderSize(self) -> int"""
1463 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1465 def SetMinimumSizeX(*args
, **kwargs
):
1466 """SetMinimumSizeX(self, int min)"""
1467 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1469 def SetMinimumSizeY(*args
, **kwargs
):
1470 """SetMinimumSizeY(self, int min)"""
1471 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1473 def GetMinimumSizeX(*args
, **kwargs
):
1474 """GetMinimumSizeX(self) -> int"""
1475 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1477 def GetMinimumSizeY(*args
, **kwargs
):
1478 """GetMinimumSizeY(self) -> int"""
1479 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1481 def SetMaximumSizeX(*args
, **kwargs
):
1482 """SetMaximumSizeX(self, int max)"""
1483 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1485 def SetMaximumSizeY(*args
, **kwargs
):
1486 """SetMaximumSizeY(self, int max)"""
1487 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1489 def GetMaximumSizeX(*args
, **kwargs
):
1490 """GetMaximumSizeX(self) -> int"""
1491 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1493 def GetMaximumSizeY(*args
, **kwargs
):
1494 """GetMaximumSizeY(self) -> int"""
1495 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1497 def SashHitTest(*args
, **kwargs
):
1498 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1499 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1501 def SizeWindows(*args
, **kwargs
):
1502 """SizeWindows(self)"""
1503 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1506 class SashWindowPtr(SashWindow
):
1507 def __init__(self
, this
):
1509 if not hasattr(self
,"thisown"): self
.thisown
= 0
1510 self
.__class
__ = SashWindow
1511 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1512 SashNameStr
= cvar
.SashNameStr
1513 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1515 def PreSashWindow(*args
, **kwargs
):
1516 """PreSashWindow() -> SashWindow"""
1517 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1521 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1522 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1523 class SashEvent(_core
.CommandEvent
):
1524 """Proxy of C++ SashEvent class"""
1526 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1527 def __init__(self
, *args
, **kwargs
):
1528 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1529 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1530 self
.this
= newobj
.this
1533 def SetEdge(*args
, **kwargs
):
1534 """SetEdge(self, int edge)"""
1535 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1537 def GetEdge(*args
, **kwargs
):
1538 """GetEdge(self) -> int"""
1539 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1541 def SetDragRect(*args
, **kwargs
):
1542 """SetDragRect(self, Rect rect)"""
1543 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1545 def GetDragRect(*args
, **kwargs
):
1546 """GetDragRect(self) -> Rect"""
1547 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1549 def SetDragStatus(*args
, **kwargs
):
1550 """SetDragStatus(self, int status)"""
1551 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1553 def GetDragStatus(*args
, **kwargs
):
1554 """GetDragStatus(self) -> int"""
1555 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1558 class SashEventPtr(SashEvent
):
1559 def __init__(self
, this
):
1561 if not hasattr(self
,"thisown"): self
.thisown
= 0
1562 self
.__class
__ = SashEvent
1563 _windows_
.SashEvent_swigregister(SashEventPtr
)
1565 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1566 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1567 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1569 #---------------------------------------------------------------------------
1571 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1572 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1573 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1574 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1575 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1576 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1577 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1578 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1579 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1580 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1581 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1582 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1583 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1584 class QueryLayoutInfoEvent(_core
.Event
):
1585 """Proxy of C++ QueryLayoutInfoEvent class"""
1587 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1588 def __init__(self
, *args
, **kwargs
):
1589 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1590 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1591 self
.this
= newobj
.this
1594 def SetRequestedLength(*args
, **kwargs
):
1595 """SetRequestedLength(self, int length)"""
1596 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1598 def GetRequestedLength(*args
, **kwargs
):
1599 """GetRequestedLength(self) -> int"""
1600 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1602 def SetFlags(*args
, **kwargs
):
1603 """SetFlags(self, int flags)"""
1604 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1606 def GetFlags(*args
, **kwargs
):
1607 """GetFlags(self) -> int"""
1608 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1610 def SetSize(*args
, **kwargs
):
1611 """SetSize(self, Size size)"""
1612 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1614 def GetSize(*args
, **kwargs
):
1615 """GetSize(self) -> Size"""
1616 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1618 def SetOrientation(*args
, **kwargs
):
1619 """SetOrientation(self, int orient)"""
1620 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1622 def GetOrientation(*args
, **kwargs
):
1623 """GetOrientation(self) -> int"""
1624 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1626 def SetAlignment(*args
, **kwargs
):
1627 """SetAlignment(self, int align)"""
1628 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1630 def GetAlignment(*args
, **kwargs
):
1631 """GetAlignment(self) -> int"""
1632 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1635 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1636 def __init__(self
, this
):
1638 if not hasattr(self
,"thisown"): self
.thisown
= 0
1639 self
.__class
__ = QueryLayoutInfoEvent
1640 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1642 class CalculateLayoutEvent(_core
.Event
):
1643 """Proxy of C++ CalculateLayoutEvent class"""
1645 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1646 def __init__(self
, *args
, **kwargs
):
1647 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1648 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1649 self
.this
= newobj
.this
1652 def SetFlags(*args
, **kwargs
):
1653 """SetFlags(self, int flags)"""
1654 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1656 def GetFlags(*args
, **kwargs
):
1657 """GetFlags(self) -> int"""
1658 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1660 def SetRect(*args
, **kwargs
):
1661 """SetRect(self, Rect rect)"""
1662 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1664 def GetRect(*args
, **kwargs
):
1665 """GetRect(self) -> Rect"""
1666 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1669 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1670 def __init__(self
, this
):
1672 if not hasattr(self
,"thisown"): self
.thisown
= 0
1673 self
.__class
__ = CalculateLayoutEvent
1674 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1676 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1677 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1679 class SashLayoutWindow(SashWindow
):
1680 """Proxy of C++ SashLayoutWindow class"""
1682 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1683 def __init__(self
, *args
, **kwargs
):
1685 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1686 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1687 String name=SashLayoutNameStr) -> SashLayoutWindow
1689 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1690 self
.this
= newobj
.this
1693 self
._setOORInfo
(self
)
1695 def Create(*args
, **kwargs
):
1697 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1698 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1699 String name=SashLayoutNameStr) -> bool
1701 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1703 def GetAlignment(*args
, **kwargs
):
1704 """GetAlignment(self) -> int"""
1705 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1707 def GetOrientation(*args
, **kwargs
):
1708 """GetOrientation(self) -> int"""
1709 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1711 def SetAlignment(*args
, **kwargs
):
1712 """SetAlignment(self, int alignment)"""
1713 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1715 def SetDefaultSize(*args
, **kwargs
):
1716 """SetDefaultSize(self, Size size)"""
1717 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1719 def SetOrientation(*args
, **kwargs
):
1720 """SetOrientation(self, int orientation)"""
1721 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1724 class SashLayoutWindowPtr(SashLayoutWindow
):
1725 def __init__(self
, this
):
1727 if not hasattr(self
,"thisown"): self
.thisown
= 0
1728 self
.__class
__ = SashLayoutWindow
1729 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1731 def PreSashLayoutWindow(*args
, **kwargs
):
1732 """PreSashLayoutWindow() -> SashLayoutWindow"""
1733 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1737 class LayoutAlgorithm(_core
.Object
):
1738 """Proxy of C++ LayoutAlgorithm class"""
1740 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1741 def __init__(self
, *args
, **kwargs
):
1742 """__init__(self) -> LayoutAlgorithm"""
1743 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1744 self
.this
= newobj
.this
1747 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1750 if self
.thisown
: destroy(self
)
1753 def LayoutMDIFrame(*args
, **kwargs
):
1754 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1755 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1757 def LayoutFrame(*args
, **kwargs
):
1758 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1759 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1761 def LayoutWindow(*args
, **kwargs
):
1762 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1763 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1766 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1767 def __init__(self
, this
):
1769 if not hasattr(self
,"thisown"): self
.thisown
= 0
1770 self
.__class
__ = LayoutAlgorithm
1771 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1773 class PopupWindow(_core
.Window
):
1774 """Proxy of C++ PopupWindow class"""
1776 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1777 def __init__(self
, *args
, **kwargs
):
1778 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1779 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1780 self
.this
= newobj
.this
1784 class PopupWindowPtr(PopupWindow
):
1785 def __init__(self
, this
):
1787 if not hasattr(self
,"thisown"): self
.thisown
= 0
1788 self
.__class
__ = PopupWindow
1789 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1791 def PrePopupWindow(*args
, **kwargs
):
1792 """PrePopupWindow() -> PopupWindow"""
1793 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1797 class PopupTransientWindow(PopupWindow
):
1798 """Proxy of C++ PopupTransientWindow class"""
1800 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1801 def __init__(self
, *args
, **kwargs
):
1802 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1803 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1804 self
.this
= newobj
.this
1808 class PopupTransientWindowPtr(PopupTransientWindow
):
1809 def __init__(self
, this
):
1811 if not hasattr(self
,"thisown"): self
.thisown
= 0
1812 self
.__class
__ = PopupTransientWindow
1813 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1815 def PrePopupTransientWindow(*args
, **kwargs
):
1816 """PrePopupTransientWindow() -> PopupTransientWindow"""
1817 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1821 #---------------------------------------------------------------------------
1823 class TipWindow(Frame
):
1824 """Proxy of C++ TipWindow class"""
1826 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1827 def __init__(self
, *args
, **kwargs
):
1828 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1829 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1830 self
.this
= newobj
.this
1833 self
._setOORInfo
(self
)
1835 def SetBoundingRect(*args
, **kwargs
):
1836 """SetBoundingRect(self, Rect rectBound)"""
1837 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1839 def Close(*args
, **kwargs
):
1843 This function simply generates a EVT_CLOSE event whose handler usually
1844 tries to close the window. It doesn't close the window itself,
1845 however. If force is False (the default) then the window's close
1846 handler will be allowed to veto the destruction of the window.
1848 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1851 class TipWindowPtr(TipWindow
):
1852 def __init__(self
, this
):
1854 if not hasattr(self
,"thisown"): self
.thisown
= 0
1855 self
.__class
__ = TipWindow
1856 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1858 #---------------------------------------------------------------------------
1860 class VScrolledWindow(Panel
):
1861 """Proxy of C++ VScrolledWindow class"""
1863 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1864 def __init__(self
, *args
, **kwargs
):
1866 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1867 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1869 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1870 self
.this
= newobj
.this
1873 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1875 def _setCallbackInfo(*args
, **kwargs
):
1876 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1877 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1879 def Create(*args
, **kwargs
):
1881 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1882 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1884 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1886 def SetLineCount(*args
, **kwargs
):
1887 """SetLineCount(self, size_t count)"""
1888 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1890 def ScrollToLine(*args
, **kwargs
):
1891 """ScrollToLine(self, size_t line) -> bool"""
1892 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1894 def ScrollLines(*args
, **kwargs
):
1896 ScrollLines(self, int lines) -> bool
1898 If the platform and window class supports it, scrolls the window by
1899 the given number of lines down, if lines is positive, or up if lines
1900 is negative. Returns True if the window was scrolled, False if it was
1901 already on top/bottom and nothing was done.
1903 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1905 def ScrollPages(*args
, **kwargs
):
1907 ScrollPages(self, int pages) -> bool
1909 If the platform and window class supports it, scrolls the window by
1910 the given number of pages down, if pages is positive, or up if pages
1911 is negative. Returns True if the window was scrolled, False if it was
1912 already on top/bottom and nothing was done.
1914 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1916 def RefreshLine(*args
, **kwargs
):
1917 """RefreshLine(self, size_t line)"""
1918 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1920 def RefreshLines(*args
, **kwargs
):
1921 """RefreshLines(self, size_t from, size_t to)"""
1922 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1924 def HitTestXY(*args
, **kwargs
):
1926 HitTestXY(self, int x, int y) -> int
1928 Test where the given (in client coords) point lies
1930 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1932 def HitTest(*args
, **kwargs
):
1934 HitTest(self, Point pt) -> int
1936 Test where the given (in client coords) point lies
1938 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1940 def RefreshAll(*args
, **kwargs
):
1941 """RefreshAll(self)"""
1942 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1944 def GetLineCount(*args
, **kwargs
):
1945 """GetLineCount(self) -> size_t"""
1946 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1948 def GetVisibleBegin(*args
, **kwargs
):
1949 """GetVisibleBegin(self) -> size_t"""
1950 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
1952 def GetVisibleEnd(*args
, **kwargs
):
1953 """GetVisibleEnd(self) -> size_t"""
1954 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
1956 def IsVisible(*args
, **kwargs
):
1957 """IsVisible(self, size_t line) -> bool"""
1958 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1960 def GetFirstVisibleLine(*args
, **kwargs
):
1961 """GetFirstVisibleLine(self) -> size_t"""
1962 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1964 def GetLastVisibleLine(*args
, **kwargs
):
1965 """GetLastVisibleLine(self) -> size_t"""
1966 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1969 class VScrolledWindowPtr(VScrolledWindow
):
1970 def __init__(self
, this
):
1972 if not hasattr(self
,"thisown"): self
.thisown
= 0
1973 self
.__class
__ = VScrolledWindow
1974 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1976 def PreVScrolledWindow(*args
, **kwargs
):
1977 """PreVScrolledWindow() -> VScrolledWindow"""
1978 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1982 class VListBox(VScrolledWindow
):
1983 """Proxy of C++ VListBox class"""
1985 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1986 def __init__(self
, *args
, **kwargs
):
1988 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1989 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1991 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1992 self
.this
= newobj
.this
1995 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1997 def _setCallbackInfo(*args
, **kwargs
):
1998 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1999 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
2001 def Create(*args
, **kwargs
):
2003 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2004 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2006 return _windows_
.VListBox_Create(*args
, **kwargs
)
2008 def GetItemCount(*args
, **kwargs
):
2009 """GetItemCount(self) -> size_t"""
2010 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
2012 def HasMultipleSelection(*args
, **kwargs
):
2013 """HasMultipleSelection(self) -> bool"""
2014 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
2016 def GetSelection(*args
, **kwargs
):
2017 """GetSelection(self) -> int"""
2018 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
2020 def IsCurrent(*args
, **kwargs
):
2021 """IsCurrent(self, size_t item) -> bool"""
2022 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
2024 def IsSelected(*args
, **kwargs
):
2025 """IsSelected(self, size_t item) -> bool"""
2026 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
2028 def GetSelectedCount(*args
, **kwargs
):
2029 """GetSelectedCount(self) -> size_t"""
2030 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
2032 def GetFirstSelected(*args
, **kwargs
):
2033 """GetFirstSelected(self) -> PyObject"""
2034 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
2036 def GetNextSelected(*args
, **kwargs
):
2037 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
2038 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
2040 def GetMargins(*args
, **kwargs
):
2041 """GetMargins(self) -> Point"""
2042 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
2044 def GetSelectionBackground(*args
, **kwargs
):
2045 """GetSelectionBackground(self) -> Colour"""
2046 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
2048 def SetItemCount(*args
, **kwargs
):
2049 """SetItemCount(self, size_t count)"""
2050 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
2052 def Clear(*args
, **kwargs
):
2054 return _windows_
.VListBox_Clear(*args
, **kwargs
)
2056 def SetSelection(*args
, **kwargs
):
2057 """SetSelection(self, int selection)"""
2058 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
2060 def Select(*args
, **kwargs
):
2061 """Select(self, size_t item, bool select=True) -> bool"""
2062 return _windows_
.VListBox_Select(*args
, **kwargs
)
2064 def SelectRange(*args
, **kwargs
):
2065 """SelectRange(self, size_t from, size_t to) -> bool"""
2066 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
2068 def Toggle(*args
, **kwargs
):
2069 """Toggle(self, size_t item)"""
2070 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
2072 def SelectAll(*args
, **kwargs
):
2073 """SelectAll(self) -> bool"""
2074 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
2076 def DeselectAll(*args
, **kwargs
):
2077 """DeselectAll(self) -> bool"""
2078 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
2080 def SetMargins(*args
, **kwargs
):
2081 """SetMargins(self, Point pt)"""
2082 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
2084 def SetMarginsXY(*args
, **kwargs
):
2085 """SetMarginsXY(self, int x, int y)"""
2086 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
2088 def SetSelectionBackground(*args
, **kwargs
):
2089 """SetSelectionBackground(self, Colour col)"""
2090 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
2093 class VListBoxPtr(VListBox
):
2094 def __init__(self
, this
):
2096 if not hasattr(self
,"thisown"): self
.thisown
= 0
2097 self
.__class
__ = VListBox
2098 _windows_
.VListBox_swigregister(VListBoxPtr
)
2099 VListBoxNameStr
= cvar
.VListBoxNameStr
2101 def PreVListBox(*args
, **kwargs
):
2102 """PreVListBox() -> VListBox"""
2103 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2107 class HtmlListBox(VListBox
):
2108 """Proxy of C++ HtmlListBox class"""
2110 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2111 def __init__(self
, *args
, **kwargs
):
2113 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2114 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2116 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2117 self
.this
= newobj
.this
2120 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2122 def _setCallbackInfo(*args
, **kwargs
):
2123 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2124 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2126 def Create(*args
, **kwargs
):
2128 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2129 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2131 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2133 def RefreshAll(*args
, **kwargs
):
2134 """RefreshAll(self)"""
2135 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2137 def SetItemCount(*args
, **kwargs
):
2138 """SetItemCount(self, size_t count)"""
2139 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2141 def GetFileSystem(*args
, **kwargs
):
2142 """GetFileSystem(self) -> FileSystem"""
2143 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2146 class HtmlListBoxPtr(HtmlListBox
):
2147 def __init__(self
, this
):
2149 if not hasattr(self
,"thisown"): self
.thisown
= 0
2150 self
.__class
__ = HtmlListBox
2151 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2153 def PreHtmlListBox(*args
, **kwargs
):
2154 """PreHtmlListBox() -> HtmlListBox"""
2155 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2159 #---------------------------------------------------------------------------
2161 class TaskBarIcon(_core
.EvtHandler
):
2162 """Proxy of C++ TaskBarIcon class"""
2164 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2165 def __init__(self
, *args
, **kwargs
):
2166 """__init__(self) -> TaskBarIcon"""
2167 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2168 self
.this
= newobj
.this
2171 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2173 def _setCallbackInfo(*args
, **kwargs
):
2174 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2175 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2177 def Destroy(*args
, **kwargs
):
2181 Deletes the C++ object this Python object is a proxy for.
2183 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2185 def IsOk(*args
, **kwargs
):
2186 """IsOk(self) -> bool"""
2187 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2189 def __nonzero__(self
): return self
.IsOk()
2190 def IsIconInstalled(*args
, **kwargs
):
2191 """IsIconInstalled(self) -> bool"""
2192 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2194 def SetIcon(*args
, **kwargs
):
2195 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2196 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2198 def RemoveIcon(*args
, **kwargs
):
2199 """RemoveIcon(self) -> bool"""
2200 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2202 def PopupMenu(*args
, **kwargs
):
2203 """PopupMenu(self, Menu menu) -> bool"""
2204 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2207 class TaskBarIconPtr(TaskBarIcon
):
2208 def __init__(self
, this
):
2210 if not hasattr(self
,"thisown"): self
.thisown
= 0
2211 self
.__class
__ = TaskBarIcon
2212 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2214 class TaskBarIconEvent(_core
.Event
):
2215 """Proxy of C++ TaskBarIconEvent class"""
2217 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2218 def __init__(self
, *args
, **kwargs
):
2219 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2220 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2221 self
.this
= newobj
.this
2225 class TaskBarIconEventPtr(TaskBarIconEvent
):
2226 def __init__(self
, this
):
2228 if not hasattr(self
,"thisown"): self
.thisown
= 0
2229 self
.__class
__ = TaskBarIconEvent
2230 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2232 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2233 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2234 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2235 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2236 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2237 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2238 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2239 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2240 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2241 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2242 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2243 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2244 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2245 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2247 #---------------------------------------------------------------------------
2249 class ColourData(_core
.Object
):
2251 This class holds a variety of information related to the colour
2252 chooser dialog, used to transfer settings and results to and from the
2256 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2257 def __init__(self
, *args
, **kwargs
):
2259 __init__(self) -> ColourData
2261 Constructor, sets default values.
2263 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2264 self
.this
= newobj
.this
2267 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2270 if self
.thisown
: destroy(self
)
2273 def GetChooseFull(*args
, **kwargs
):
2275 GetChooseFull(self) -> bool
2277 Under Windows, determines whether the Windows colour dialog will
2278 display the full dialog with custom colour selection controls. Has no
2279 meaning under other platforms. The default value is true.
2281 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2283 def GetColour(*args
, **kwargs
):
2285 GetColour(self) -> Colour
2287 Gets the colour (pre)selected by the dialog.
2289 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2291 def GetCustomColour(*args
, **kwargs
):
2293 GetCustomColour(self, int i) -> Colour
2295 Gets the i'th custom colour associated with the colour dialog. i
2296 should be an integer between 0 and 15. The default custom colours are
2297 all invalid colours.
2299 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2301 def SetChooseFull(*args
, **kwargs
):
2303 SetChooseFull(self, int flag)
2305 Under Windows, tells the Windows colour dialog to display the full
2306 dialog with custom colour selection controls. Under other platforms,
2307 has no effect. The default value is true.
2309 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2311 def SetColour(*args
, **kwargs
):
2313 SetColour(self, Colour colour)
2315 Sets the default colour for the colour dialog. The default colour is
2318 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2320 def SetCustomColour(*args
, **kwargs
):
2322 SetCustomColour(self, int i, Colour colour)
2324 Sets the i'th custom colour for the colour dialog. i should be an
2325 integer between 0 and 15. The default custom colours are all invalid colours.
2327 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2330 class ColourDataPtr(ColourData
):
2331 def __init__(self
, this
):
2333 if not hasattr(self
,"thisown"): self
.thisown
= 0
2334 self
.__class
__ = ColourData
2335 _windows_
.ColourData_swigregister(ColourDataPtr
)
2336 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2337 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2338 DirDialogNameStr
= cvar
.DirDialogNameStr
2339 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2340 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2341 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2343 class ColourDialog(Dialog
):
2344 """This class represents the colour chooser dialog."""
2346 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2347 def __init__(self
, *args
, **kwargs
):
2349 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2351 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2352 which will be copied to the colour dialog's internal ColourData
2355 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2356 self
.this
= newobj
.this
2359 self
._setOORInfo
(self
)
2361 def GetColourData(*args
, **kwargs
):
2363 GetColourData(self) -> ColourData
2365 Returns a reference to the `wx.ColourData` used by the dialog.
2367 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2370 class ColourDialogPtr(ColourDialog
):
2371 def __init__(self
, this
):
2373 if not hasattr(self
,"thisown"): self
.thisown
= 0
2374 self
.__class
__ = ColourDialog
2375 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2378 def GetColourFromUser(*args
, **kwargs
):
2380 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2381 String caption=EmptyString) -> Colour
2383 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2384 class DirDialog(Dialog
):
2386 wx.DirDialog allows the user to select a directory by browising the
2390 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2391 def __init__(self
, *args
, **kwargs
):
2393 __init__(self, Window parent, String message=DirSelectorPromptStr,
2394 String defaultPath=EmptyString, long style=0,
2395 Point pos=DefaultPosition, Size size=DefaultSize,
2396 String name=DirDialogNameStr) -> DirDialog
2398 Constructor. Use ShowModal method to show the dialog.
2400 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2401 self
.this
= newobj
.this
2404 self
._setOORInfo
(self
)
2406 def GetPath(*args
, **kwargs
):
2408 GetPath(self) -> String
2410 Returns the default or user-selected path.
2412 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2414 def GetMessage(*args
, **kwargs
):
2416 GetMessage(self) -> String
2418 Returns the message that will be displayed on the dialog.
2420 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2422 def GetStyle(*args
, **kwargs
):
2424 GetStyle(self) -> long
2426 Returns the dialog style.
2428 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2430 def SetMessage(*args
, **kwargs
):
2432 SetMessage(self, String message)
2434 Sets the message that will be displayed on the dialog.
2436 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2438 def SetPath(*args
, **kwargs
):
2440 SetPath(self, String path)
2442 Sets the default path.
2444 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2447 class DirDialogPtr(DirDialog
):
2448 def __init__(self
, this
):
2450 if not hasattr(self
,"thisown"): self
.thisown
= 0
2451 self
.__class
__ = DirDialog
2452 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2454 class FileDialog(Dialog
):
2456 wx.FileDialog allows the user to select one or more files from the
2460 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2461 def __init__(self
, *args
, **kwargs
):
2463 __init__(self, Window parent, String message=FileSelectorPromptStr,
2464 String defaultDir=EmptyString, String defaultFile=EmptyString,
2465 String wildcard=FileSelectorDefaultWildcardStr,
2466 long style=0, Point pos=DefaultPosition) -> FileDialog
2468 Constructor. Use ShowModal method to show the dialog.
2470 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2471 self
.this
= newobj
.this
2474 self
._setOORInfo
(self
)
2476 def SetMessage(*args
, **kwargs
):
2478 SetMessage(self, String message)
2480 Sets the message that will be displayed on the dialog.
2482 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2484 def SetPath(*args
, **kwargs
):
2486 SetPath(self, String path)
2488 Sets the path (the combined directory and filename that will be
2489 returned when the dialog is dismissed).
2491 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2493 def SetDirectory(*args
, **kwargs
):
2495 SetDirectory(self, String dir)
2497 Sets the default directory.
2499 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2501 def SetFilename(*args
, **kwargs
):
2503 SetFilename(self, String name)
2505 Sets the default filename.
2507 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2509 def SetWildcard(*args
, **kwargs
):
2511 SetWildcard(self, String wildCard)
2513 Sets the wildcard, which can contain multiple file types, for
2516 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2519 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2521 def SetStyle(*args
, **kwargs
):
2523 SetStyle(self, long style)
2525 Sets the dialog style.
2527 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2529 def SetFilterIndex(*args
, **kwargs
):
2531 SetFilterIndex(self, int filterIndex)
2533 Sets the default filter index, starting from zero.
2535 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2537 def GetMessage(*args
, **kwargs
):
2539 GetMessage(self) -> String
2541 Returns the message that will be displayed on the dialog.
2543 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2545 def GetPath(*args
, **kwargs
):
2547 GetPath(self) -> String
2549 Returns the full path (directory and filename) of the selected file.
2551 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2553 def GetDirectory(*args
, **kwargs
):
2555 GetDirectory(self) -> String
2557 Returns the default directory.
2559 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2561 def GetFilename(*args
, **kwargs
):
2563 GetFilename(self) -> String
2565 Returns the default filename.
2567 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2569 def GetWildcard(*args
, **kwargs
):
2571 GetWildcard(self) -> String
2573 Returns the file dialog wildcard.
2575 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2577 def GetStyle(*args
, **kwargs
):
2579 GetStyle(self) -> long
2581 Returns the dialog style.
2583 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2585 def GetFilterIndex(*args
, **kwargs
):
2587 GetFilterIndex(self) -> int
2589 Returns the index into the list of filters supplied, optionally, in
2590 the wildcard parameter. Before the dialog is shown, this is the index
2591 which will be used when the dialog is first displayed. After the
2592 dialog is shown, this is the index selected by the user.
2594 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2596 def GetFilenames(*args
, **kwargs
):
2598 GetFilenames(self) -> PyObject
2600 Returns a list of filenames chosen in the dialog. This function
2601 should only be used with the dialogs which have wx.MULTIPLE style, use
2602 GetFilename for the others.
2604 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2606 def GetPaths(*args
, **kwargs
):
2608 GetPaths(self) -> PyObject
2610 Fills the array paths with the full paths of the files chosen. This
2611 function should only be used with the dialogs which have wx.MULTIPLE
2612 style, use GetPath for the others.
2614 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2617 class FileDialogPtr(FileDialog
):
2618 def __init__(self
, this
):
2620 if not hasattr(self
,"thisown"): self
.thisown
= 0
2621 self
.__class
__ = FileDialog
2622 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2624 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2625 class MultiChoiceDialog(Dialog
):
2626 """A simple dialog with a multi selection listbox."""
2628 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2629 def __init__(self
, *args
, **kwargs
):
2631 __init__(self, Window parent, String message, String caption,
2632 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2633 Point pos=DefaultPosition) -> MultiChoiceDialog
2635 Constructor. Use the `ShowModal` method to show the dialog.
2637 :param parent: The parent window.
2638 :param message: Text to display above the list of selections.
2639 :param caption: Text to use in the title bar of the dialog.
2640 :param choices: A list of strings or unicode objects that the
2641 user is allowed to choose from.
2642 :param style: Styles to apply to the dialog. The default value is
2643 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2644 :param pos: Where to position the dialog (not used on Windows)
2648 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2649 self
.this
= newobj
.this
2652 self
._setOORInfo
(self
)
2654 def SetSelections(*args
, **kwargs
):
2656 SetSelections(List selections)
2658 Specify the items in the list that should be selected, using a list of
2659 integers. The list should specify the indexes of the items that
2662 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2664 def GetSelections(*args
, **kwargs
):
2666 GetSelections() -> [selections]
2668 Returns a list of integers representing the items that are selected.
2669 If an item is selected then its index will appear in the list.
2671 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2674 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2675 def __init__(self
, this
):
2677 if not hasattr(self
,"thisown"): self
.thisown
= 0
2678 self
.__class
__ = MultiChoiceDialog
2679 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2681 class SingleChoiceDialog(Dialog
):
2682 """A simple dialog with a single selection listbox."""
2684 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2685 def __init__(self
, *args
, **kwargs
):
2687 __init__(Window parent, String message, String caption,
2688 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2689 Point pos=DefaultPosition) -> SingleChoiceDialog
2691 Constructor. Use ShowModal method to show the dialog.
2693 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2694 self
.this
= newobj
.this
2697 self
._setOORInfo
(self
)
2699 def GetSelection(*args
, **kwargs
):
2701 GetSelection(self) -> int
2703 Get the index of teh currently selected item.
2705 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2707 def GetStringSelection(*args
, **kwargs
):
2709 GetStringSelection(self) -> String
2711 Returns the string value of the currently selected item
2713 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2715 def SetSelection(*args
, **kwargs
):
2717 SetSelection(self, int sel)
2719 Set the current selected item to sel
2721 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2724 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2725 def __init__(self
, this
):
2727 if not hasattr(self
,"thisown"): self
.thisown
= 0
2728 self
.__class
__ = SingleChoiceDialog
2729 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2731 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2732 class TextEntryDialog(Dialog
):
2733 """A dialog with text control, [ok] and [cancel] buttons"""
2735 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2736 def __init__(self
, *args
, **kwargs
):
2738 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2739 String defaultValue=EmptyString,
2740 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2742 Constructor. Use ShowModal method to show the dialog.
2744 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2745 self
.this
= newobj
.this
2748 self
._setOORInfo
(self
)
2750 def GetValue(*args
, **kwargs
):
2752 GetValue(self) -> String
2754 Returns the text that the user has entered if the user has pressed OK,
2755 or the original value if the user has pressed Cancel.
2757 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2759 def SetValue(*args
, **kwargs
):
2761 SetValue(self, String value)
2763 Sets the default text value.
2765 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2768 class TextEntryDialogPtr(TextEntryDialog
):
2769 def __init__(self
, this
):
2771 if not hasattr(self
,"thisown"): self
.thisown
= 0
2772 self
.__class
__ = TextEntryDialog
2773 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2775 class PasswordEntryDialog(TextEntryDialog
):
2776 """Proxy of C++ PasswordEntryDialog class"""
2778 return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2779 def __init__(self
, *args
, **kwargs
):
2781 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2782 String value=EmptyString,
2783 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2785 newobj
= _windows_
.new_PasswordEntryDialog(*args
, **kwargs
)
2786 self
.this
= newobj
.this
2790 class PasswordEntryDialogPtr(PasswordEntryDialog
):
2791 def __init__(self
, this
):
2793 if not hasattr(self
,"thisown"): self
.thisown
= 0
2794 self
.__class
__ = PasswordEntryDialog
2795 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr
)
2796 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2798 class FontData(_core
.Object
):
2800 This class holds a variety of information related to font dialogs and
2801 is used to transfer settings to and results from a `wx.FontDialog`.
2804 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2805 def __init__(self
, *args
, **kwargs
):
2807 __init__(self) -> FontData
2809 This class holds a variety of information related to font dialogs and
2810 is used to transfer settings to and results from a `wx.FontDialog`.
2812 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2813 self
.this
= newobj
.this
2816 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2819 if self
.thisown
: destroy(self
)
2822 def EnableEffects(*args
, **kwargs
):
2824 EnableEffects(self, bool enable)
2826 Enables or disables 'effects' under MS Windows only. This refers to
2827 the controls for manipulating colour, strikeout and underline
2828 properties. The default value is true.
2830 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2832 def GetAllowSymbols(*args
, **kwargs
):
2834 GetAllowSymbols(self) -> bool
2836 Under MS Windows, returns a flag determining whether symbol fonts can
2837 be selected. Has no effect on other platforms. The default value is
2840 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2842 def GetColour(*args
, **kwargs
):
2844 GetColour(self) -> Colour
2846 Gets the colour associated with the font dialog. The default value is
2849 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2851 def GetChosenFont(*args
, **kwargs
):
2853 GetChosenFont(self) -> Font
2855 Gets the font chosen by the user.
2857 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2859 def GetEnableEffects(*args
, **kwargs
):
2861 GetEnableEffects(self) -> bool
2863 Determines whether 'effects' are enabled under Windows.
2865 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2867 def GetInitialFont(*args
, **kwargs
):
2869 GetInitialFont(self) -> Font
2871 Gets the font that will be initially used by the font dialog. This
2872 should have previously been set by the application.
2874 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2876 def GetShowHelp(*args
, **kwargs
):
2878 GetShowHelp(self) -> bool
2880 Returns true if the Help button will be shown (Windows only). The
2881 default value is false.
2883 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2885 def SetAllowSymbols(*args
, **kwargs
):
2887 SetAllowSymbols(self, bool allowSymbols)
2889 Under MS Windows, determines whether symbol fonts can be selected. Has
2890 no effect on other platforms. The default value is true.
2892 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2894 def SetChosenFont(*args
, **kwargs
):
2896 SetChosenFont(self, Font font)
2898 Sets the font that will be returned to the user (normally for internal
2901 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2903 def SetColour(*args
, **kwargs
):
2905 SetColour(self, Colour colour)
2907 Sets the colour that will be used for the font foreground colour. The
2908 default colour is black.
2910 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2912 def SetInitialFont(*args
, **kwargs
):
2914 SetInitialFont(self, Font font)
2916 Sets the font that will be initially used by the font dialog.
2918 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2920 def SetRange(*args
, **kwargs
):
2922 SetRange(self, int min, int max)
2924 Sets the valid range for the font point size (Windows only). The
2925 default is 0, 0 (unrestricted range).
2927 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2929 def SetShowHelp(*args
, **kwargs
):
2931 SetShowHelp(self, bool showHelp)
2933 Determines whether the Help button will be displayed in the font
2934 dialog (Windows only). The default value is false.
2936 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2939 class FontDataPtr(FontData
):
2940 def __init__(self
, this
):
2942 if not hasattr(self
,"thisown"): self
.thisown
= 0
2943 self
.__class
__ = FontData
2944 _windows_
.FontData_swigregister(FontDataPtr
)
2946 class FontDialog(Dialog
):
2948 wx.FontDialog allows the user to select a system font and its attributes.
2954 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2955 def __init__(self
, *args
, **kwargs
):
2957 __init__(self, Window parent, FontData data) -> FontDialog
2959 Constructor. Pass a parent window and the `wx.FontData` object to be
2960 used to initialize the dialog controls. Call `ShowModal` to display
2961 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2962 results with via the `wx.FontData` returned by `GetFontData`.
2964 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2965 self
.this
= newobj
.this
2968 self
._setOORInfo
(self
)
2970 def GetFontData(*args
, **kwargs
):
2972 GetFontData(self) -> FontData
2974 Returns a reference to the internal `wx.FontData` used by the
2977 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2980 class FontDialogPtr(FontDialog
):
2981 def __init__(self
, this
):
2983 if not hasattr(self
,"thisown"): self
.thisown
= 0
2984 self
.__class
__ = FontDialog
2985 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2988 def GetFontFromUser(*args
, **kwargs
):
2989 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2990 return _windows_
.GetFontFromUser(*args
, **kwargs
)
2991 class MessageDialog(Dialog
):
2993 This class provides a simple dialog that shows a single or multi-line
2994 message, with a choice of OK, Yes, No and/or Cancel buttons.
2997 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2998 def __init__(self
, *args
, **kwargs
):
3000 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
3001 long style=wxOK|wxCANCEL|wxCENTRE,
3002 Point pos=DefaultPosition) -> MessageDialog
3004 Constructor, use `ShowModal` to display the dialog.
3006 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
3007 self
.this
= newobj
.this
3010 self
._setOORInfo
(self
)
3013 class MessageDialogPtr(MessageDialog
):
3014 def __init__(self
, this
):
3016 if not hasattr(self
,"thisown"): self
.thisown
= 0
3017 self
.__class
__ = MessageDialog
3018 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
3020 class ProgressDialog(Frame
):
3022 A dialog that shows a short message and a progress bar. Optionally, it
3023 can display an ABORT button.
3026 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3027 def __init__(self
, *args
, **kwargs
):
3029 __init__(self, String title, String message, int maximum=100, Window parent=None,
3030 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
3032 Constructor. Creates the dialog, displays it and disables user input
3033 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
3036 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
3037 self
.this
= newobj
.this
3040 self
._setOORInfo
(self
)
3042 def Update(*args
, **kwargs
):
3044 Update(self, int value, String newmsg=EmptyString) -> bool
3046 Updates the dialog, setting the progress bar to the new value and, if
3047 given changes the message above it. The value given should be less
3048 than or equal to the maximum value given to the constructor and the
3049 dialog is closed if it is equal to the maximum. Returns True unless
3050 the Cancel button has been pressed.
3052 If false is returned, the application can either immediately destroy
3053 the dialog or ask the user for the confirmation and if the abort is
3054 not confirmed the dialog may be resumed with Resume function.
3056 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
3058 def Resume(*args
, **kwargs
):
3062 Can be used to continue with the dialog, after the user had chosen to
3065 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
3068 class ProgressDialogPtr(ProgressDialog
):
3069 def __init__(self
, this
):
3071 if not hasattr(self
,"thisown"): self
.thisown
= 0
3072 self
.__class
__ = ProgressDialog
3073 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
3075 FR_DOWN
= _windows_
.FR_DOWN
3076 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
3077 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
3078 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
3079 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
3080 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
3081 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
3082 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
3083 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
3084 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
3085 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
3086 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
3087 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
3088 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
3089 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
3090 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
3091 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
3093 # For backwards compatibility. Should they be removed?
3094 EVT_COMMAND_FIND
= EVT_FIND
3095 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
3096 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
3097 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
3098 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
3100 class FindDialogEvent(_core
.CommandEvent
):
3101 """Events for the FindReplaceDialog"""
3103 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3104 def __init__(self
, *args
, **kwargs
):
3106 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3108 Events for the FindReplaceDialog
3110 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
3111 self
.this
= newobj
.this
3114 def GetFlags(*args
, **kwargs
):
3116 GetFlags(self) -> int
3118 Get the currently selected flags: this is the combination of
3119 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3121 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
3123 def GetFindString(*args
, **kwargs
):
3125 GetFindString(self) -> String
3127 Return the string to find (never empty).
3129 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
3131 def GetReplaceString(*args
, **kwargs
):
3133 GetReplaceString(self) -> String
3135 Return the string to replace the search string with (only for replace
3136 and replace all events).
3138 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
3140 def GetDialog(*args
, **kwargs
):
3142 GetDialog(self) -> FindReplaceDialog
3144 Return the pointer to the dialog which generated this event.
3146 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
3148 def SetFlags(*args
, **kwargs
):
3149 """SetFlags(self, int flags)"""
3150 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3152 def SetFindString(*args
, **kwargs
):
3153 """SetFindString(self, String str)"""
3154 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3156 def SetReplaceString(*args
, **kwargs
):
3157 """SetReplaceString(self, String str)"""
3158 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3161 class FindDialogEventPtr(FindDialogEvent
):
3162 def __init__(self
, this
):
3164 if not hasattr(self
,"thisown"): self
.thisown
= 0
3165 self
.__class
__ = FindDialogEvent
3166 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3168 class FindReplaceData(_core
.Object
):
3170 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3171 to initialize the dialog with the default values and will keep the
3172 last values from the dialog when it is closed. It is also updated each
3173 time a `wx.FindDialogEvent` is generated so instead of using the
3174 `wx.FindDialogEvent` methods you can also directly query this object.
3176 Note that all SetXXX() methods may only be called before showing the
3177 dialog and calling them has no effect later.
3180 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3181 def __init__(self
, *args
, **kwargs
):
3183 __init__(self, int flags=0) -> FindReplaceData
3185 Constuctor initializes the flags to default value (0).
3187 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3188 self
.this
= newobj
.this
3191 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3194 if self
.thisown
: destroy(self
)
3197 def GetFindString(*args
, **kwargs
):
3199 GetFindString(self) -> String
3201 Get the string to find.
3203 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3205 def GetReplaceString(*args
, **kwargs
):
3207 GetReplaceString(self) -> String
3209 Get the replacement string.
3211 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3213 def GetFlags(*args
, **kwargs
):
3215 GetFlags(self) -> int
3217 Get the combination of flag values.
3219 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3221 def SetFlags(*args
, **kwargs
):
3223 SetFlags(self, int flags)
3225 Set the flags to use to initialize the controls of the dialog.
3227 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3229 def SetFindString(*args
, **kwargs
):
3231 SetFindString(self, String str)
3233 Set the string to find (used as initial value by the dialog).
3235 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3237 def SetReplaceString(*args
, **kwargs
):
3239 SetReplaceString(self, String str)
3241 Set the replacement string (used as initial value by the dialog).
3243 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3246 class FindReplaceDataPtr(FindReplaceData
):
3247 def __init__(self
, this
):
3249 if not hasattr(self
,"thisown"): self
.thisown
= 0
3250 self
.__class
__ = FindReplaceData
3251 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3253 class FindReplaceDialog(Dialog
):
3255 wx.FindReplaceDialog is a standard modeless dialog which is used to
3256 allow the user to search for some text (and possibly replace it with
3257 something else). The actual searching is supposed to be done in the
3258 owner window which is the parent of this dialog. Note that it means
3259 that unlike for the other standard dialogs this one must have a parent
3260 window. Also note that there is no way to use this dialog in a modal
3261 way; it is always, by design and implementation, modeless.
3264 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3265 def __init__(self
, *args
, **kwargs
):
3267 __init__(self, Window parent, FindReplaceData data, String title,
3268 int style=0) -> FindReplaceDialog
3270 Create a FindReplaceDialog. The parent and data parameters must be
3271 non-None. Use Show to display the dialog.
3273 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3274 self
.this
= newobj
.this
3277 self
._setOORInfo
(self
)
3279 def Create(*args
, **kwargs
):
3281 Create(self, Window parent, FindReplaceData data, String title,
3282 int style=0) -> bool
3284 Create the dialog, for 2-phase create.
3286 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3288 def GetData(*args
, **kwargs
):
3290 GetData(self) -> FindReplaceData
3292 Get the FindReplaceData object used by this dialog.
3294 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3296 def SetData(*args
, **kwargs
):
3298 SetData(self, FindReplaceData data)
3300 Set the FindReplaceData object used by this dialog.
3302 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3305 class FindReplaceDialogPtr(FindReplaceDialog
):
3306 def __init__(self
, this
):
3308 if not hasattr(self
,"thisown"): self
.thisown
= 0
3309 self
.__class
__ = FindReplaceDialog
3310 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3312 def PreFindReplaceDialog(*args
, **kwargs
):
3314 PreFindReplaceDialog() -> FindReplaceDialog
3316 Precreate a FindReplaceDialog for 2-phase creation
3318 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3322 #---------------------------------------------------------------------------
3324 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3325 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3326 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3327 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3328 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3329 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3330 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3331 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3332 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3333 class MDIParentFrame(Frame
):
3334 """Proxy of C++ MDIParentFrame class"""
3336 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3337 def __init__(self
, *args
, **kwargs
):
3339 __init__(self, Window parent, int id=-1, String title=EmptyString,
3340 Point pos=DefaultPosition, Size size=DefaultSize,
3341 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3342 String name=FrameNameStr) -> MDIParentFrame
3344 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3345 self
.this
= newobj
.this
3348 self
._setOORInfo
(self
)
3350 def Create(*args
, **kwargs
):
3352 Create(self, Window parent, int id=-1, String title=EmptyString,
3353 Point pos=DefaultPosition, Size size=DefaultSize,
3354 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3355 String name=FrameNameStr) -> bool
3357 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3359 def ActivateNext(*args
, **kwargs
):
3360 """ActivateNext(self)"""
3361 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3363 def ActivatePrevious(*args
, **kwargs
):
3364 """ActivatePrevious(self)"""
3365 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3367 def ArrangeIcons(*args
, **kwargs
):
3368 """ArrangeIcons(self)"""
3369 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3371 def Cascade(*args
, **kwargs
):
3373 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3375 def GetActiveChild(*args
, **kwargs
):
3376 """GetActiveChild(self) -> MDIChildFrame"""
3377 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3379 def GetClientWindow(*args
, **kwargs
):
3380 """GetClientWindow(self) -> MDIClientWindow"""
3381 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3383 def GetToolBar(*args
, **kwargs
):
3384 """GetToolBar(self) -> Window"""
3385 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3387 def Tile(*args
, **kwargs
):
3388 """Tile(self, int orient=HORIZONTAL)"""
3389 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3392 class MDIParentFramePtr(MDIParentFrame
):
3393 def __init__(self
, this
):
3395 if not hasattr(self
,"thisown"): self
.thisown
= 0
3396 self
.__class
__ = MDIParentFrame
3397 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3399 def PreMDIParentFrame(*args
, **kwargs
):
3400 """PreMDIParentFrame() -> MDIParentFrame"""
3401 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3405 class MDIChildFrame(Frame
):
3406 """Proxy of C++ MDIChildFrame class"""
3408 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3409 def __init__(self
, *args
, **kwargs
):
3411 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3412 Point pos=DefaultPosition, Size size=DefaultSize,
3413 long style=DEFAULT_FRAME_STYLE,
3414 String name=FrameNameStr) -> MDIChildFrame
3416 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3417 self
.this
= newobj
.this
3420 self
._setOORInfo
(self
)
3422 def Create(*args
, **kwargs
):
3424 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3425 Point pos=DefaultPosition, Size size=DefaultSize,
3426 long style=DEFAULT_FRAME_STYLE,
3427 String name=FrameNameStr) -> bool
3429 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3431 def Activate(*args
, **kwargs
):
3432 """Activate(self)"""
3433 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3435 def Maximize(*args
, **kwargs
):
3436 """Maximize(self, bool maximize=True)"""
3437 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3439 def Restore(*args
, **kwargs
):
3441 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3444 class MDIChildFramePtr(MDIChildFrame
):
3445 def __init__(self
, this
):
3447 if not hasattr(self
,"thisown"): self
.thisown
= 0
3448 self
.__class
__ = MDIChildFrame
3449 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3451 def PreMDIChildFrame(*args
, **kwargs
):
3452 """PreMDIChildFrame() -> MDIChildFrame"""
3453 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3457 class MDIClientWindow(_core
.Window
):
3458 """Proxy of C++ MDIClientWindow class"""
3460 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3461 def __init__(self
, *args
, **kwargs
):
3462 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3463 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3464 self
.this
= newobj
.this
3467 self
._setOORInfo
(self
)
3469 def Create(*args
, **kwargs
):
3470 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3471 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3474 class MDIClientWindowPtr(MDIClientWindow
):
3475 def __init__(self
, this
):
3477 if not hasattr(self
,"thisown"): self
.thisown
= 0
3478 self
.__class
__ = MDIClientWindow
3479 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3481 def PreMDIClientWindow(*args
, **kwargs
):
3482 """PreMDIClientWindow() -> MDIClientWindow"""
3483 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3487 #---------------------------------------------------------------------------
3489 class PyWindow(_core
.Window
):
3490 """Proxy of C++ PyWindow class"""
3492 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3493 def __init__(self
, *args
, **kwargs
):
3495 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3496 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3498 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3499 self
.this
= newobj
.this
3502 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3504 def _setCallbackInfo(*args
, **kwargs
):
3505 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3506 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3508 def SetBestSize(*args
, **kwargs
):
3509 """SetBestSize(self, Size size)"""
3510 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3512 def DoEraseBackground(*args
, **kwargs
):
3513 """DoEraseBackground(self, DC dc) -> bool"""
3514 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3516 def base_DoMoveWindow(*args
, **kwargs
):
3517 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3518 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3520 def base_DoSetSize(*args
, **kwargs
):
3521 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3522 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3524 def base_DoSetClientSize(*args
, **kwargs
):
3525 """base_DoSetClientSize(self, int width, int height)"""
3526 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3528 def base_DoSetVirtualSize(*args
, **kwargs
):
3529 """base_DoSetVirtualSize(self, int x, int y)"""
3530 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3532 def base_DoGetSize(*args
, **kwargs
):
3533 """base_DoGetSize() -> (width, height)"""
3534 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3536 def base_DoGetClientSize(*args
, **kwargs
):
3537 """base_DoGetClientSize() -> (width, height)"""
3538 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3540 def base_DoGetPosition(*args
, **kwargs
):
3541 """base_DoGetPosition() -> (x,y)"""
3542 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3544 def base_DoGetVirtualSize(*args
, **kwargs
):
3545 """base_DoGetVirtualSize(self) -> Size"""
3546 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3548 def base_DoGetBestSize(*args
, **kwargs
):
3549 """base_DoGetBestSize(self) -> Size"""
3550 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3552 def base_InitDialog(*args
, **kwargs
):
3553 """base_InitDialog(self)"""
3554 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3556 def base_TransferDataToWindow(*args
, **kwargs
):
3557 """base_TransferDataToWindow(self) -> bool"""
3558 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3560 def base_TransferDataFromWindow(*args
, **kwargs
):
3561 """base_TransferDataFromWindow(self) -> bool"""
3562 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3564 def base_Validate(*args
, **kwargs
):
3565 """base_Validate(self) -> bool"""
3566 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3568 def base_AcceptsFocus(*args
, **kwargs
):
3569 """base_AcceptsFocus(self) -> bool"""
3570 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3572 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3573 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3574 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3576 def base_GetMaxSize(*args
, **kwargs
):
3577 """base_GetMaxSize(self) -> Size"""
3578 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3580 def base_AddChild(*args
, **kwargs
):
3581 """base_AddChild(self, Window child)"""
3582 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3584 def base_RemoveChild(*args
, **kwargs
):
3585 """base_RemoveChild(self, Window child)"""
3586 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3588 def base_ShouldInheritColours(*args
, **kwargs
):
3589 """base_ShouldInheritColours(self) -> bool"""
3590 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3592 def base_GetDefaultAttributes(*args
, **kwargs
):
3593 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3594 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3596 def base_OnInternalIdle(*args
, **kwargs
):
3597 """base_OnInternalIdle(self)"""
3598 return _windows_
.PyWindow_base_OnInternalIdle(*args
, **kwargs
)
3601 class PyWindowPtr(PyWindow
):
3602 def __init__(self
, this
):
3604 if not hasattr(self
,"thisown"): self
.thisown
= 0
3605 self
.__class
__ = PyWindow
3606 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3608 def PrePyWindow(*args
, **kwargs
):
3609 """PrePyWindow() -> PyWindow"""
3610 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3614 class PyPanel(Panel
):
3615 """Proxy of C++ PyPanel class"""
3617 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3618 def __init__(self
, *args
, **kwargs
):
3620 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3621 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3623 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3624 self
.this
= newobj
.this
3627 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3629 def _setCallbackInfo(*args
, **kwargs
):
3630 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3631 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3633 def SetBestSize(*args
, **kwargs
):
3634 """SetBestSize(self, Size size)"""
3635 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3637 def DoEraseBackground(*args
, **kwargs
):
3638 """DoEraseBackground(self, DC dc) -> bool"""
3639 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3641 def base_DoMoveWindow(*args
, **kwargs
):
3642 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3643 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3645 def base_DoSetSize(*args
, **kwargs
):
3646 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3647 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3649 def base_DoSetClientSize(*args
, **kwargs
):
3650 """base_DoSetClientSize(self, int width, int height)"""
3651 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3653 def base_DoSetVirtualSize(*args
, **kwargs
):
3654 """base_DoSetVirtualSize(self, int x, int y)"""
3655 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3657 def base_DoGetSize(*args
, **kwargs
):
3658 """base_DoGetSize() -> (width, height)"""
3659 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3661 def base_DoGetClientSize(*args
, **kwargs
):
3662 """base_DoGetClientSize() -> (width, height)"""
3663 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3665 def base_DoGetPosition(*args
, **kwargs
):
3666 """base_DoGetPosition() -> (x,y)"""
3667 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3669 def base_DoGetVirtualSize(*args
, **kwargs
):
3670 """base_DoGetVirtualSize(self) -> Size"""
3671 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3673 def base_DoGetBestSize(*args
, **kwargs
):
3674 """base_DoGetBestSize(self) -> Size"""
3675 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3677 def base_InitDialog(*args
, **kwargs
):
3678 """base_InitDialog(self)"""
3679 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3681 def base_TransferDataToWindow(*args
, **kwargs
):
3682 """base_TransferDataToWindow(self) -> bool"""
3683 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3685 def base_TransferDataFromWindow(*args
, **kwargs
):
3686 """base_TransferDataFromWindow(self) -> bool"""
3687 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3689 def base_Validate(*args
, **kwargs
):
3690 """base_Validate(self) -> bool"""
3691 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3693 def base_AcceptsFocus(*args
, **kwargs
):
3694 """base_AcceptsFocus(self) -> bool"""
3695 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3697 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3698 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3699 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3701 def base_GetMaxSize(*args
, **kwargs
):
3702 """base_GetMaxSize(self) -> Size"""
3703 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3705 def base_AddChild(*args
, **kwargs
):
3706 """base_AddChild(self, Window child)"""
3707 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3709 def base_RemoveChild(*args
, **kwargs
):
3710 """base_RemoveChild(self, Window child)"""
3711 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3713 def base_ShouldInheritColours(*args
, **kwargs
):
3714 """base_ShouldInheritColours(self) -> bool"""
3715 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3717 def base_GetDefaultAttributes(*args
, **kwargs
):
3718 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3719 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3721 def base_OnInternalIdle(*args
, **kwargs
):
3722 """base_OnInternalIdle(self)"""
3723 return _windows_
.PyPanel_base_OnInternalIdle(*args
, **kwargs
)
3726 class PyPanelPtr(PyPanel
):
3727 def __init__(self
, this
):
3729 if not hasattr(self
,"thisown"): self
.thisown
= 0
3730 self
.__class
__ = PyPanel
3731 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3733 def PrePyPanel(*args
, **kwargs
):
3734 """PrePyPanel() -> PyPanel"""
3735 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3739 class PyScrolledWindow(ScrolledWindow
):
3740 """Proxy of C++ PyScrolledWindow class"""
3742 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3743 def __init__(self
, *args
, **kwargs
):
3745 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3746 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3748 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3749 self
.this
= newobj
.this
3752 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3754 def _setCallbackInfo(*args
, **kwargs
):
3755 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3756 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3758 def SetBestSize(*args
, **kwargs
):
3759 """SetBestSize(self, Size size)"""
3760 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3762 def DoEraseBackground(*args
, **kwargs
):
3763 """DoEraseBackground(self, DC dc) -> bool"""
3764 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3766 def base_DoMoveWindow(*args
, **kwargs
):
3767 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3768 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3770 def base_DoSetSize(*args
, **kwargs
):
3771 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3772 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3774 def base_DoSetClientSize(*args
, **kwargs
):
3775 """base_DoSetClientSize(self, int width, int height)"""
3776 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3778 def base_DoSetVirtualSize(*args
, **kwargs
):
3779 """base_DoSetVirtualSize(self, int x, int y)"""
3780 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3782 def base_DoGetSize(*args
, **kwargs
):
3783 """base_DoGetSize() -> (width, height)"""
3784 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3786 def base_DoGetClientSize(*args
, **kwargs
):
3787 """base_DoGetClientSize() -> (width, height)"""
3788 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3790 def base_DoGetPosition(*args
, **kwargs
):
3791 """base_DoGetPosition() -> (x,y)"""
3792 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3794 def base_DoGetVirtualSize(*args
, **kwargs
):
3795 """base_DoGetVirtualSize(self) -> Size"""
3796 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3798 def base_DoGetBestSize(*args
, **kwargs
):
3799 """base_DoGetBestSize(self) -> Size"""
3800 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3802 def base_InitDialog(*args
, **kwargs
):
3803 """base_InitDialog(self)"""
3804 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3806 def base_TransferDataToWindow(*args
, **kwargs
):
3807 """base_TransferDataToWindow(self) -> bool"""
3808 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3810 def base_TransferDataFromWindow(*args
, **kwargs
):
3811 """base_TransferDataFromWindow(self) -> bool"""
3812 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3814 def base_Validate(*args
, **kwargs
):
3815 """base_Validate(self) -> bool"""
3816 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3818 def base_AcceptsFocus(*args
, **kwargs
):
3819 """base_AcceptsFocus(self) -> bool"""
3820 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3822 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3823 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3824 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3826 def base_GetMaxSize(*args
, **kwargs
):
3827 """base_GetMaxSize(self) -> Size"""
3828 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3830 def base_AddChild(*args
, **kwargs
):
3831 """base_AddChild(self, Window child)"""
3832 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3834 def base_RemoveChild(*args
, **kwargs
):
3835 """base_RemoveChild(self, Window child)"""
3836 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3838 def base_ShouldInheritColours(*args
, **kwargs
):
3839 """base_ShouldInheritColours(self) -> bool"""
3840 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3842 def base_GetDefaultAttributes(*args
, **kwargs
):
3843 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3844 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3846 def base_OnInternalIdle(*args
, **kwargs
):
3847 """base_OnInternalIdle(self)"""
3848 return _windows_
.PyScrolledWindow_base_OnInternalIdle(*args
, **kwargs
)
3851 class PyScrolledWindowPtr(PyScrolledWindow
):
3852 def __init__(self
, this
):
3854 if not hasattr(self
,"thisown"): self
.thisown
= 0
3855 self
.__class
__ = PyScrolledWindow
3856 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3858 def PrePyScrolledWindow(*args
, **kwargs
):
3859 """PrePyScrolledWindow() -> PyScrolledWindow"""
3860 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3864 #---------------------------------------------------------------------------
3866 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3867 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3868 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3869 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3870 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3871 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3872 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3873 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3874 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3875 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3876 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3877 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3878 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3879 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3880 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3881 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3882 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3883 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3884 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3885 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3886 class PrintData(_core
.Object
):
3887 """Proxy of C++ PrintData class"""
3889 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3890 def __init__(self
, *args
):
3892 __init__(self) -> PrintData
3893 __init__(self, PrintData data) -> PrintData
3895 newobj
= _windows_
.new_PrintData(*args
)
3896 self
.this
= newobj
.this
3899 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3902 if self
.thisown
: destroy(self
)
3905 def GetNoCopies(*args
, **kwargs
):
3906 """GetNoCopies(self) -> int"""
3907 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3909 def GetCollate(*args
, **kwargs
):
3910 """GetCollate(self) -> bool"""
3911 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3913 def GetOrientation(*args
, **kwargs
):
3914 """GetOrientation(self) -> int"""
3915 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3917 def Ok(*args
, **kwargs
):
3918 """Ok(self) -> bool"""
3919 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3921 def GetPrinterName(*args
, **kwargs
):
3922 """GetPrinterName(self) -> String"""
3923 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3925 def GetColour(*args
, **kwargs
):
3926 """GetColour(self) -> bool"""
3927 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3929 def GetDuplex(*args
, **kwargs
):
3930 """GetDuplex(self) -> int"""
3931 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3933 def GetPaperId(*args
, **kwargs
):
3934 """GetPaperId(self) -> int"""
3935 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3937 def GetPaperSize(*args
, **kwargs
):
3938 """GetPaperSize(self) -> Size"""
3939 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3941 def GetQuality(*args
, **kwargs
):
3942 """GetQuality(self) -> int"""
3943 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3945 def GetBin(*args
, **kwargs
):
3946 """GetBin(self) -> int"""
3947 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3949 def GetPrintMode(*args
, **kwargs
):
3950 """GetPrintMode(self) -> int"""
3951 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3953 def SetNoCopies(*args
, **kwargs
):
3954 """SetNoCopies(self, int v)"""
3955 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3957 def SetCollate(*args
, **kwargs
):
3958 """SetCollate(self, bool flag)"""
3959 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3961 def SetOrientation(*args
, **kwargs
):
3962 """SetOrientation(self, int orient)"""
3963 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3965 def SetPrinterName(*args
, **kwargs
):
3966 """SetPrinterName(self, String name)"""
3967 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3969 def SetColour(*args
, **kwargs
):
3970 """SetColour(self, bool colour)"""
3971 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3973 def SetDuplex(*args
, **kwargs
):
3974 """SetDuplex(self, int duplex)"""
3975 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3977 def SetPaperId(*args
, **kwargs
):
3978 """SetPaperId(self, int sizeId)"""
3979 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3981 def SetPaperSize(*args
, **kwargs
):
3982 """SetPaperSize(self, Size sz)"""
3983 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3985 def SetQuality(*args
, **kwargs
):
3986 """SetQuality(self, int quality)"""
3987 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3989 def SetBin(*args
, **kwargs
):
3990 """SetBin(self, int bin)"""
3991 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3993 def SetPrintMode(*args
, **kwargs
):
3994 """SetPrintMode(self, int printMode)"""
3995 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3997 def GetFilename(*args
, **kwargs
):
3998 """GetFilename(self) -> String"""
3999 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
4001 def SetFilename(*args
, **kwargs
):
4002 """SetFilename(self, String filename)"""
4003 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
4005 def __nonzero__(self
): return self
.Ok()
4006 def GetPrivData(*args
, **kwargs
):
4007 """GetPrivData(self) -> PyObject"""
4008 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
4010 def SetPrivData(*args
, **kwargs
):
4011 """SetPrivData(self, PyObject data)"""
4012 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
4015 class PrintDataPtr(PrintData
):
4016 def __init__(self
, this
):
4018 if not hasattr(self
,"thisown"): self
.thisown
= 0
4019 self
.__class
__ = PrintData
4020 _windows_
.PrintData_swigregister(PrintDataPtr
)
4021 PrintoutTitleStr
= cvar
.PrintoutTitleStr
4022 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
4024 class PageSetupDialogData(_core
.Object
):
4025 """Proxy of C++ PageSetupDialogData class"""
4027 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4028 def __init__(self
, *args
):
4030 __init__(self) -> PageSetupDialogData
4031 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
4032 __init__(self, PrintData data) -> PageSetupDialogData
4034 newobj
= _windows_
.new_PageSetupDialogData(*args
)
4035 self
.this
= newobj
.this
4038 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
4041 if self
.thisown
: destroy(self
)
4044 def EnableHelp(*args
, **kwargs
):
4045 """EnableHelp(self, bool flag)"""
4046 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
4048 def EnableMargins(*args
, **kwargs
):
4049 """EnableMargins(self, bool flag)"""
4050 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
4052 def EnableOrientation(*args
, **kwargs
):
4053 """EnableOrientation(self, bool flag)"""
4054 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
4056 def EnablePaper(*args
, **kwargs
):
4057 """EnablePaper(self, bool flag)"""
4058 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
4060 def EnablePrinter(*args
, **kwargs
):
4061 """EnablePrinter(self, bool flag)"""
4062 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
4064 def GetDefaultMinMargins(*args
, **kwargs
):
4065 """GetDefaultMinMargins(self) -> bool"""
4066 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
4068 def GetEnableMargins(*args
, **kwargs
):
4069 """GetEnableMargins(self) -> bool"""
4070 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
4072 def GetEnableOrientation(*args
, **kwargs
):
4073 """GetEnableOrientation(self) -> bool"""
4074 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4076 def GetEnablePaper(*args
, **kwargs
):
4077 """GetEnablePaper(self) -> bool"""
4078 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4080 def GetEnablePrinter(*args
, **kwargs
):
4081 """GetEnablePrinter(self) -> bool"""
4082 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4084 def GetEnableHelp(*args
, **kwargs
):
4085 """GetEnableHelp(self) -> bool"""
4086 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4088 def GetDefaultInfo(*args
, **kwargs
):
4089 """GetDefaultInfo(self) -> bool"""
4090 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4092 def GetMarginTopLeft(*args
, **kwargs
):
4093 """GetMarginTopLeft(self) -> Point"""
4094 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4096 def GetMarginBottomRight(*args
, **kwargs
):
4097 """GetMarginBottomRight(self) -> Point"""
4098 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4100 def GetMinMarginTopLeft(*args
, **kwargs
):
4101 """GetMinMarginTopLeft(self) -> Point"""
4102 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4104 def GetMinMarginBottomRight(*args
, **kwargs
):
4105 """GetMinMarginBottomRight(self) -> Point"""
4106 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4108 def GetPaperId(*args
, **kwargs
):
4109 """GetPaperId(self) -> int"""
4110 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4112 def GetPaperSize(*args
, **kwargs
):
4113 """GetPaperSize(self) -> Size"""
4114 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4116 def GetPrintData(*args
, **kwargs
):
4117 """GetPrintData(self) -> PrintData"""
4118 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4120 def Ok(*args
, **kwargs
):
4121 """Ok(self) -> bool"""
4122 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4124 def SetDefaultInfo(*args
, **kwargs
):
4125 """SetDefaultInfo(self, bool flag)"""
4126 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4128 def SetDefaultMinMargins(*args
, **kwargs
):
4129 """SetDefaultMinMargins(self, bool flag)"""
4130 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4132 def SetMarginTopLeft(*args
, **kwargs
):
4133 """SetMarginTopLeft(self, Point pt)"""
4134 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4136 def SetMarginBottomRight(*args
, **kwargs
):
4137 """SetMarginBottomRight(self, Point pt)"""
4138 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4140 def SetMinMarginTopLeft(*args
, **kwargs
):
4141 """SetMinMarginTopLeft(self, Point pt)"""
4142 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4144 def SetMinMarginBottomRight(*args
, **kwargs
):
4145 """SetMinMarginBottomRight(self, Point pt)"""
4146 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4148 def SetPaperId(*args
, **kwargs
):
4149 """SetPaperId(self, int id)"""
4150 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4152 def SetPaperSize(*args
, **kwargs
):
4153 """SetPaperSize(self, Size size)"""
4154 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4156 def SetPrintData(*args
, **kwargs
):
4157 """SetPrintData(self, PrintData printData)"""
4158 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4160 def CalculateIdFromPaperSize(*args
, **kwargs
):
4161 """CalculateIdFromPaperSize(self)"""
4162 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
4164 def CalculatePaperSizeFromId(*args
, **kwargs
):
4165 """CalculatePaperSizeFromId(self)"""
4166 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
4168 def __nonzero__(self
): return self
.Ok()
4170 class PageSetupDialogDataPtr(PageSetupDialogData
):
4171 def __init__(self
, this
):
4173 if not hasattr(self
,"thisown"): self
.thisown
= 0
4174 self
.__class
__ = PageSetupDialogData
4175 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4177 class PageSetupDialog(_core
.Object
):
4178 """Proxy of C++ PageSetupDialog class"""
4180 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4181 def __init__(self
, *args
, **kwargs
):
4182 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4183 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4184 self
.this
= newobj
.this
4187 def GetPageSetupData(*args
, **kwargs
):
4188 """GetPageSetupData(self) -> PageSetupDialogData"""
4189 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4191 def GetPageSetupDialogData(*args
, **kwargs
):
4192 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4193 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4195 def ShowModal(*args
, **kwargs
):
4196 """ShowModal(self) -> int"""
4197 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4200 class PageSetupDialogPtr(PageSetupDialog
):
4201 def __init__(self
, this
):
4203 if not hasattr(self
,"thisown"): self
.thisown
= 0
4204 self
.__class
__ = PageSetupDialog
4205 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4207 class PrintDialogData(_core
.Object
):
4208 """Proxy of C++ PrintDialogData class"""
4210 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4211 def __init__(self
, *args
):
4213 __init__(self) -> PrintDialogData
4214 __init__(self, PrintData printData) -> PrintDialogData
4215 __init__(self, PrintDialogData printData) -> PrintDialogData
4217 newobj
= _windows_
.new_PrintDialogData(*args
)
4218 self
.this
= newobj
.this
4221 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4224 if self
.thisown
: destroy(self
)
4227 def GetFromPage(*args
, **kwargs
):
4228 """GetFromPage(self) -> int"""
4229 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4231 def GetToPage(*args
, **kwargs
):
4232 """GetToPage(self) -> int"""
4233 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4235 def GetMinPage(*args
, **kwargs
):
4236 """GetMinPage(self) -> int"""
4237 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4239 def GetMaxPage(*args
, **kwargs
):
4240 """GetMaxPage(self) -> int"""
4241 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4243 def GetNoCopies(*args
, **kwargs
):
4244 """GetNoCopies(self) -> int"""
4245 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4247 def GetAllPages(*args
, **kwargs
):
4248 """GetAllPages(self) -> bool"""
4249 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4251 def GetSelection(*args
, **kwargs
):
4252 """GetSelection(self) -> bool"""
4253 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4255 def GetCollate(*args
, **kwargs
):
4256 """GetCollate(self) -> bool"""
4257 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4259 def GetPrintToFile(*args
, **kwargs
):
4260 """GetPrintToFile(self) -> bool"""
4261 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4263 def SetFromPage(*args
, **kwargs
):
4264 """SetFromPage(self, int v)"""
4265 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4267 def SetToPage(*args
, **kwargs
):
4268 """SetToPage(self, int v)"""
4269 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4271 def SetMinPage(*args
, **kwargs
):
4272 """SetMinPage(self, int v)"""
4273 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4275 def SetMaxPage(*args
, **kwargs
):
4276 """SetMaxPage(self, int v)"""
4277 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4279 def SetNoCopies(*args
, **kwargs
):
4280 """SetNoCopies(self, int v)"""
4281 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4283 def SetAllPages(*args
, **kwargs
):
4284 """SetAllPages(self, bool flag)"""
4285 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4287 def SetSelection(*args
, **kwargs
):
4288 """SetSelection(self, bool flag)"""
4289 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4291 def SetCollate(*args
, **kwargs
):
4292 """SetCollate(self, bool flag)"""
4293 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4295 def SetPrintToFile(*args
, **kwargs
):
4296 """SetPrintToFile(self, bool flag)"""
4297 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4299 def EnablePrintToFile(*args
, **kwargs
):
4300 """EnablePrintToFile(self, bool flag)"""
4301 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4303 def EnableSelection(*args
, **kwargs
):
4304 """EnableSelection(self, bool flag)"""
4305 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4307 def EnablePageNumbers(*args
, **kwargs
):
4308 """EnablePageNumbers(self, bool flag)"""
4309 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4311 def EnableHelp(*args
, **kwargs
):
4312 """EnableHelp(self, bool flag)"""
4313 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4315 def GetEnablePrintToFile(*args
, **kwargs
):
4316 """GetEnablePrintToFile(self) -> bool"""
4317 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4319 def GetEnableSelection(*args
, **kwargs
):
4320 """GetEnableSelection(self) -> bool"""
4321 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4323 def GetEnablePageNumbers(*args
, **kwargs
):
4324 """GetEnablePageNumbers(self) -> bool"""
4325 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4327 def GetEnableHelp(*args
, **kwargs
):
4328 """GetEnableHelp(self) -> bool"""
4329 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4331 def Ok(*args
, **kwargs
):
4332 """Ok(self) -> bool"""
4333 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4335 def GetPrintData(*args
, **kwargs
):
4336 """GetPrintData(self) -> PrintData"""
4337 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4339 def SetPrintData(*args
, **kwargs
):
4340 """SetPrintData(self, PrintData printData)"""
4341 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4343 def __nonzero__(self
): return self
.Ok()
4345 class PrintDialogDataPtr(PrintDialogData
):
4346 def __init__(self
, this
):
4348 if not hasattr(self
,"thisown"): self
.thisown
= 0
4349 self
.__class
__ = PrintDialogData
4350 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4352 class PrintDialog(_core
.Object
):
4353 """Proxy of C++ PrintDialog class"""
4355 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4356 def __init__(self
, *args
, **kwargs
):
4357 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4358 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4359 self
.this
= newobj
.this
4362 def ShowModal(*args
, **kwargs
):
4363 """ShowModal(self) -> int"""
4364 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4366 def GetPrintDialogData(*args
, **kwargs
):
4367 """GetPrintDialogData(self) -> PrintDialogData"""
4368 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4370 def GetPrintData(*args
, **kwargs
):
4371 """GetPrintData(self) -> PrintData"""
4372 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4374 def GetPrintDC(*args
, **kwargs
):
4375 """GetPrintDC(self) -> DC"""
4376 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4379 class PrintDialogPtr(PrintDialog
):
4380 def __init__(self
, this
):
4382 if not hasattr(self
,"thisown"): self
.thisown
= 0
4383 self
.__class
__ = PrintDialog
4384 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4386 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4387 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4388 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4389 class Printer(_core
.Object
):
4390 """Proxy of C++ Printer class"""
4392 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4393 def __init__(self
, *args
, **kwargs
):
4394 """__init__(self, PrintDialogData data=None) -> Printer"""
4395 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4396 self
.this
= newobj
.this
4399 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4402 if self
.thisown
: destroy(self
)
4405 def CreateAbortWindow(*args
, **kwargs
):
4406 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4407 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4409 def ReportError(*args
, **kwargs
):
4410 """ReportError(self, Window parent, Printout printout, String message)"""
4411 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4413 def Setup(*args
, **kwargs
):
4414 """Setup(self, Window parent) -> bool"""
4415 return _windows_
.Printer_Setup(*args
, **kwargs
)
4417 def Print(*args
, **kwargs
):
4418 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4419 return _windows_
.Printer_Print(*args
, **kwargs
)
4421 def PrintDialog(*args
, **kwargs
):
4422 """PrintDialog(self, Window parent) -> DC"""
4423 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4425 def GetPrintDialogData(*args
, **kwargs
):
4426 """GetPrintDialogData(self) -> PrintDialogData"""
4427 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4429 def GetAbort(*args
, **kwargs
):
4430 """GetAbort(self) -> bool"""
4431 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4433 def GetLastError(*args
, **kwargs
):
4434 """GetLastError() -> int"""
4435 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4437 GetLastError
= staticmethod(GetLastError
)
4439 class PrinterPtr(Printer
):
4440 def __init__(self
, this
):
4442 if not hasattr(self
,"thisown"): self
.thisown
= 0
4443 self
.__class
__ = Printer
4444 _windows_
.Printer_swigregister(PrinterPtr
)
4446 def Printer_GetLastError(*args
, **kwargs
):
4447 """Printer_GetLastError() -> int"""
4448 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4450 class Printout(_core
.Object
):
4451 """Proxy of C++ Printout class"""
4453 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4454 def __init__(self
, *args
, **kwargs
):
4455 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4456 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4457 self
.this
= newobj
.this
4460 self
._setCallbackInfo
(self
, Printout
)
4462 def _setCallbackInfo(*args
, **kwargs
):
4463 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4464 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4466 def GetTitle(*args
, **kwargs
):
4467 """GetTitle(self) -> String"""
4468 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4470 def GetDC(*args
, **kwargs
):
4471 """GetDC(self) -> DC"""
4472 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4474 def SetDC(*args
, **kwargs
):
4475 """SetDC(self, DC dc)"""
4476 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4478 def SetPageSizePixels(*args
, **kwargs
):
4479 """SetPageSizePixels(self, int w, int h)"""
4480 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4482 def GetPageSizePixels(*args
, **kwargs
):
4483 """GetPageSizePixels() -> (w, h)"""
4484 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4486 def SetPageSizeMM(*args
, **kwargs
):
4487 """SetPageSizeMM(self, int w, int h)"""
4488 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4490 def GetPageSizeMM(*args
, **kwargs
):
4491 """GetPageSizeMM() -> (w, h)"""
4492 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4494 def SetPPIScreen(*args
, **kwargs
):
4495 """SetPPIScreen(self, int x, int y)"""
4496 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4498 def GetPPIScreen(*args
, **kwargs
):
4499 """GetPPIScreen() -> (x,y)"""
4500 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4502 def SetPPIPrinter(*args
, **kwargs
):
4503 """SetPPIPrinter(self, int x, int y)"""
4504 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4506 def GetPPIPrinter(*args
, **kwargs
):
4507 """GetPPIPrinter() -> (x,y)"""
4508 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4510 def IsPreview(*args
, **kwargs
):
4511 """IsPreview(self) -> bool"""
4512 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4514 def SetIsPreview(*args
, **kwargs
):
4515 """SetIsPreview(self, bool p)"""
4516 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4518 def base_OnBeginDocument(*args
, **kwargs
):
4519 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4520 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4522 def base_OnEndDocument(*args
, **kwargs
):
4523 """base_OnEndDocument(self)"""
4524 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4526 def base_OnBeginPrinting(*args
, **kwargs
):
4527 """base_OnBeginPrinting(self)"""
4528 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4530 def base_OnEndPrinting(*args
, **kwargs
):
4531 """base_OnEndPrinting(self)"""
4532 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4534 def base_OnPreparePrinting(*args
, **kwargs
):
4535 """base_OnPreparePrinting(self)"""
4536 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4538 def base_HasPage(*args
, **kwargs
):
4539 """base_HasPage(self, int page) -> bool"""
4540 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4542 def base_GetPageInfo(*args
, **kwargs
):
4543 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4544 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4547 class PrintoutPtr(Printout
):
4548 def __init__(self
, this
):
4550 if not hasattr(self
,"thisown"): self
.thisown
= 0
4551 self
.__class
__ = Printout
4552 _windows_
.Printout_swigregister(PrintoutPtr
)
4554 class PreviewCanvas(ScrolledWindow
):
4555 """Proxy of C++ PreviewCanvas class"""
4557 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4558 def __init__(self
, *args
, **kwargs
):
4560 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4561 Size size=DefaultSize, long style=0,
4562 String name=PreviewCanvasNameStr) -> PreviewCanvas
4564 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4565 self
.this
= newobj
.this
4568 self
._setOORInfo
(self
)
4571 class PreviewCanvasPtr(PreviewCanvas
):
4572 def __init__(self
, this
):
4574 if not hasattr(self
,"thisown"): self
.thisown
= 0
4575 self
.__class
__ = PreviewCanvas
4576 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4578 class PreviewFrame(Frame
):
4579 """Proxy of C++ PreviewFrame class"""
4581 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4582 def __init__(self
, *args
, **kwargs
):
4584 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4585 Size size=DefaultSize,
4586 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4588 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4589 self
.this
= newobj
.this
4592 self
._setOORInfo
(self
)
4594 def Initialize(*args
, **kwargs
):
4595 """Initialize(self)"""
4596 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4598 def CreateControlBar(*args
, **kwargs
):
4599 """CreateControlBar(self)"""
4600 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4602 def CreateCanvas(*args
, **kwargs
):
4603 """CreateCanvas(self)"""
4604 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4606 def GetControlBar(*args
, **kwargs
):
4607 """GetControlBar(self) -> PreviewControlBar"""
4608 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4611 class PreviewFramePtr(PreviewFrame
):
4612 def __init__(self
, this
):
4614 if not hasattr(self
,"thisown"): self
.thisown
= 0
4615 self
.__class
__ = PreviewFrame
4616 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4618 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4619 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4620 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4621 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4622 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4623 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4624 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4625 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4626 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4627 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4628 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4629 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4630 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4631 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4632 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4633 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4634 class PreviewControlBar(Panel
):
4635 """Proxy of C++ PreviewControlBar class"""
4637 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4638 def __init__(self
, *args
, **kwargs
):
4640 __init__(self, PrintPreview preview, long buttons, Window parent,
4641 Point pos=DefaultPosition, Size size=DefaultSize,
4642 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4644 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4645 self
.this
= newobj
.this
4648 self
._setOORInfo
(self
)
4650 def GetZoomControl(*args
, **kwargs
):
4651 """GetZoomControl(self) -> int"""
4652 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4654 def SetZoomControl(*args
, **kwargs
):
4655 """SetZoomControl(self, int zoom)"""
4656 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4658 def GetPrintPreview(*args
, **kwargs
):
4659 """GetPrintPreview(self) -> PrintPreview"""
4660 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4662 def OnNext(*args
, **kwargs
):
4664 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4666 def OnPrevious(*args
, **kwargs
):
4667 """OnPrevious(self)"""
4668 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4670 def OnFirst(*args
, **kwargs
):
4672 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4674 def OnLast(*args
, **kwargs
):
4676 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4678 def OnGoto(*args
, **kwargs
):
4680 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4683 class PreviewControlBarPtr(PreviewControlBar
):
4684 def __init__(self
, this
):
4686 if not hasattr(self
,"thisown"): self
.thisown
= 0
4687 self
.__class
__ = PreviewControlBar
4688 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4690 class PrintPreview(_core
.Object
):
4691 """Proxy of C++ PrintPreview class"""
4693 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4694 def __init__(self
, *args
):
4696 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4697 __init__(self, Printout printout, Printout printoutForPrinting) -> PrintPreview
4698 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4700 newobj
= _windows_
.new_PrintPreview(*args
)
4701 self
.this
= newobj
.this
4704 def SetCurrentPage(*args
, **kwargs
):
4705 """SetCurrentPage(self, int pageNum) -> bool"""
4706 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4708 def GetCurrentPage(*args
, **kwargs
):
4709 """GetCurrentPage(self) -> int"""
4710 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4712 def SetPrintout(*args
, **kwargs
):
4713 """SetPrintout(self, Printout printout)"""
4714 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4716 def GetPrintout(*args
, **kwargs
):
4717 """GetPrintout(self) -> Printout"""
4718 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4720 def GetPrintoutForPrinting(*args
, **kwargs
):
4721 """GetPrintoutForPrinting(self) -> Printout"""
4722 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4724 def SetFrame(*args
, **kwargs
):
4725 """SetFrame(self, Frame frame)"""
4726 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4728 def SetCanvas(*args
, **kwargs
):
4729 """SetCanvas(self, PreviewCanvas canvas)"""
4730 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4732 def GetFrame(*args
, **kwargs
):
4733 """GetFrame(self) -> Frame"""
4734 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4736 def GetCanvas(*args
, **kwargs
):
4737 """GetCanvas(self) -> PreviewCanvas"""
4738 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4740 def PaintPage(*args
, **kwargs
):
4741 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4742 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4744 def DrawBlankPage(*args
, **kwargs
):
4745 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4746 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4748 def RenderPage(*args
, **kwargs
):
4749 """RenderPage(self, int pageNum) -> bool"""
4750 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4752 def AdjustScrollbars(*args
, **kwargs
):
4753 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4754 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4756 def GetPrintDialogData(*args
, **kwargs
):
4757 """GetPrintDialogData(self) -> PrintDialogData"""
4758 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4760 def SetZoom(*args
, **kwargs
):
4761 """SetZoom(self, int percent)"""
4762 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4764 def GetZoom(*args
, **kwargs
):
4765 """GetZoom(self) -> int"""
4766 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4768 def GetMaxPage(*args
, **kwargs
):
4769 """GetMaxPage(self) -> int"""
4770 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4772 def GetMinPage(*args
, **kwargs
):
4773 """GetMinPage(self) -> int"""
4774 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4776 def Ok(*args
, **kwargs
):
4777 """Ok(self) -> bool"""
4778 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4780 def SetOk(*args
, **kwargs
):
4781 """SetOk(self, bool ok)"""
4782 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4784 def Print(*args
, **kwargs
):
4785 """Print(self, bool interactive) -> bool"""
4786 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4788 def DetermineScaling(*args
, **kwargs
):
4789 """DetermineScaling(self)"""
4790 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4792 def __nonzero__(self
): return self
.Ok()
4794 class PrintPreviewPtr(PrintPreview
):
4795 def __init__(self
, this
):
4797 if not hasattr(self
,"thisown"): self
.thisown
= 0
4798 self
.__class
__ = PrintPreview
4799 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4801 class PyPrintPreview(PrintPreview
):
4802 """Proxy of C++ PyPrintPreview class"""
4804 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4805 def __init__(self
, *args
):
4807 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4808 __init__(self, Printout printout, Printout printoutForPrinting) -> PyPrintPreview
4809 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4811 newobj
= _windows_
.new_PyPrintPreview(*args
)
4812 self
.this
= newobj
.this
4815 self
._setCallbackInfo
(self
, PyPrintPreview
)
4817 def _setCallbackInfo(*args
, **kwargs
):
4818 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4819 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4821 def base_SetCurrentPage(*args
, **kwargs
):
4822 """base_SetCurrentPage(self, int pageNum) -> bool"""
4823 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4825 def base_PaintPage(*args
, **kwargs
):
4826 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4827 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4829 def base_DrawBlankPage(*args
, **kwargs
):
4830 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4831 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4833 def base_RenderPage(*args
, **kwargs
):
4834 """base_RenderPage(self, int pageNum) -> bool"""
4835 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4837 def base_SetZoom(*args
, **kwargs
):
4838 """base_SetZoom(self, int percent)"""
4839 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4841 def base_Print(*args
, **kwargs
):
4842 """base_Print(self, bool interactive) -> bool"""
4843 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4845 def base_DetermineScaling(*args
, **kwargs
):
4846 """base_DetermineScaling(self)"""
4847 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4850 class PyPrintPreviewPtr(PyPrintPreview
):
4851 def __init__(self
, this
):
4853 if not hasattr(self
,"thisown"): self
.thisown
= 0
4854 self
.__class
__ = PyPrintPreview
4855 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4857 class PyPreviewFrame(PreviewFrame
):
4858 """Proxy of C++ PyPreviewFrame class"""
4860 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4861 def __init__(self
, *args
, **kwargs
):
4863 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4864 Size size=DefaultSize,
4865 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4867 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4868 self
.this
= newobj
.this
4871 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4873 def _setCallbackInfo(*args
, **kwargs
):
4874 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4875 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4877 def SetPreviewCanvas(*args
, **kwargs
):
4878 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4879 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4881 def SetControlBar(*args
, **kwargs
):
4882 """SetControlBar(self, PreviewControlBar bar)"""
4883 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4885 def base_Initialize(*args
, **kwargs
):
4886 """base_Initialize(self)"""
4887 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4889 def base_CreateCanvas(*args
, **kwargs
):
4890 """base_CreateCanvas(self)"""
4891 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4893 def base_CreateControlBar(*args
, **kwargs
):
4894 """base_CreateControlBar(self)"""
4895 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4898 class PyPreviewFramePtr(PyPreviewFrame
):
4899 def __init__(self
, this
):
4901 if not hasattr(self
,"thisown"): self
.thisown
= 0
4902 self
.__class
__ = PyPreviewFrame
4903 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4905 class PyPreviewControlBar(PreviewControlBar
):
4906 """Proxy of C++ PyPreviewControlBar class"""
4908 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4909 def __init__(self
, *args
, **kwargs
):
4911 __init__(self, PrintPreview preview, long buttons, Window parent,
4912 Point pos=DefaultPosition, Size size=DefaultSize,
4913 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4915 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4916 self
.this
= newobj
.this
4919 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4921 def _setCallbackInfo(*args
, **kwargs
):
4922 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4923 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4925 def SetPrintPreview(*args
, **kwargs
):
4926 """SetPrintPreview(self, PrintPreview preview)"""
4927 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4929 def base_CreateButtons(*args
, **kwargs
):
4930 """base_CreateButtons(self)"""
4931 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4933 def base_SetZoomControl(*args
, **kwargs
):
4934 """base_SetZoomControl(self, int zoom)"""
4935 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4938 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4939 def __init__(self
, this
):
4941 if not hasattr(self
,"thisown"): self
.thisown
= 0
4942 self
.__class
__ = PyPreviewControlBar
4943 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)