1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
6 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if isinstance(value
, class_type
):
9 self
.__dict
__[name
] = value
.this
10 if hasattr(value
,"thisown"): self
.__dict
__["thisown"] = value
.thisown
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
) or (name
== "thisown"):
16 self
.__dict
__[name
] = value
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
23 def _swig_getattr(self
,class_type
,name
):
24 method
= class_type
.__swig
_getmethods
__.get(name
,None)
25 if method
: return method(self
)
26 raise AttributeError,name
30 _object
= types
.ObjectType
32 except AttributeError:
38 def _swig_setattr_nondynamic_method(set):
39 def set_attr(self
,name
,value
):
40 if hasattr(self
,name
) or (name
in ("this", "thisown")):
43 raise AttributeError("You cannot add attributes to %s" % self
)
49 #---------------------------------------------------------------------------
51 class Panel(_core
.Window
):
52 """Proxy of C++ Panel class"""
54 return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
55 def __init__(self
, *args
, **kwargs
):
57 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
58 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
59 String name=PanelNameStr) -> Panel
61 newobj
= _windows_
.new_Panel(*args
, **kwargs
)
62 self
.this
= newobj
.this
65 self
._setOORInfo
(self
)
67 def Create(*args
, **kwargs
):
69 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
70 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
71 String name=PanelNameStr) -> bool
73 Create the GUI part of the Window for 2-phase creation mode.
75 return _windows_
.Panel_Create(*args
, **kwargs
)
77 def InitDialog(*args
, **kwargs
):
81 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
82 to the dialog via validators.
84 return _windows_
.Panel_InitDialog(*args
, **kwargs
)
86 def SetFocus(*args
, **kwargs
):
90 Overrides `wx.Window.SetFocus`. This method uses the (undocumented)
91 mix-in class wxControlContainer which manages the focus and TAB logic
92 for controls which usually have child controls. In practice, if you
93 call this method and the panel has at least one child window, then the
94 focus will be given to the child window.
96 return _windows_
.Panel_SetFocus(*args
, **kwargs
)
98 def SetFocusIgnoringChildren(*args
, **kwargs
):
100 SetFocusIgnoringChildren(self)
102 In contrast to `SetFocus` (see above) this will set the focus to the
103 panel even of there are child windows in the panel. This is only
106 return _windows_
.Panel_SetFocusIgnoringChildren(*args
, **kwargs
)
108 def GetClassDefaultAttributes(*args
, **kwargs
):
110 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
112 Get the default attributes for this class. This is useful if you want
113 to use the same font or colour in your own control as in a standard
114 control -- which is a much better idea than hard coding specific
115 colours or fonts which might look completely out of place on the
116 user's system, especially if it uses themes.
118 The variant parameter is only relevant under Mac currently and is
119 ignore under other platforms. Under Mac, it will change the size of
120 the returned font. See `wx.Window.SetWindowVariant` for more about
123 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
125 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
127 class PanelPtr(Panel
):
128 def __init__(self
, this
):
130 if not hasattr(self
,"thisown"): self
.thisown
= 0
131 self
.__class
__ = Panel
132 _windows_
.Panel_swigregister(PanelPtr
)
134 def PrePanel(*args
, **kwargs
):
135 """PrePanel() -> Panel"""
136 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
140 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
142 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
144 Get the default attributes for this class. This is useful if you want
145 to use the same font or colour in your own control as in a standard
146 control -- which is a much better idea than hard coding specific
147 colours or fonts which might look completely out of place on the
148 user's system, especially if it uses themes.
150 The variant parameter is only relevant under Mac currently and is
151 ignore under other platforms. Under Mac, it will change the size of
152 the returned font. See `wx.Window.SetWindowVariant` for more about
155 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
157 #---------------------------------------------------------------------------
159 class ScrolledWindow(Panel
):
160 """Proxy of C++ ScrolledWindow class"""
162 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
163 def __init__(self
, *args
, **kwargs
):
165 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
166 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
167 String name=PanelNameStr) -> ScrolledWindow
169 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
170 self
.this
= newobj
.this
173 self
._setOORInfo
(self
)
175 def Create(*args
, **kwargs
):
177 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
178 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
179 String name=PanelNameStr) -> bool
181 Create the GUI part of the Window for 2-phase creation mode.
183 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
185 def SetScrollbars(*args
, **kwargs
):
187 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
188 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
190 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
192 def Scroll(*args
, **kwargs
):
193 """Scroll(self, int x, int y)"""
194 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
196 def GetScrollPageSize(*args
, **kwargs
):
197 """GetScrollPageSize(self, int orient) -> int"""
198 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
200 def SetScrollPageSize(*args
, **kwargs
):
201 """SetScrollPageSize(self, int orient, int pageSize)"""
202 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
204 def SetScrollRate(*args
, **kwargs
):
205 """SetScrollRate(self, int xstep, int ystep)"""
206 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
208 def GetScrollPixelsPerUnit(*args
, **kwargs
):
210 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
212 Get the size of one logical unit in physical units.
214 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
216 def EnableScrolling(*args
, **kwargs
):
217 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
218 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
220 def GetViewStart(*args
, **kwargs
):
222 GetViewStart() -> (x,y)
226 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
228 def SetScale(*args
, **kwargs
):
229 """SetScale(self, double xs, double ys)"""
230 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
232 def GetScaleX(*args
, **kwargs
):
233 """GetScaleX(self) -> double"""
234 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
236 def GetScaleY(*args
, **kwargs
):
237 """GetScaleY(self) -> double"""
238 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
240 def CalcScrolledPosition(*args
):
242 CalcScrolledPosition(self, Point pt) -> Point
243 CalcScrolledPosition(int x, int y) -> (sx, sy)
245 Translate between scrolled and unscrolled coordinates.
247 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
249 def CalcUnscrolledPosition(*args
):
251 CalcUnscrolledPosition(self, Point pt) -> Point
252 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
254 Translate between scrolled and unscrolled coordinates.
256 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
258 def AdjustScrollbars(*args
, **kwargs
):
259 """AdjustScrollbars(self)"""
260 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
262 def CalcScrollInc(*args
, **kwargs
):
263 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
264 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
266 def SetTargetWindow(*args
, **kwargs
):
267 """SetTargetWindow(self, Window target)"""
268 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
270 def GetTargetWindow(*args
, **kwargs
):
271 """GetTargetWindow(self) -> Window"""
272 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
274 def SetTargetRect(*args
, **kwargs
):
275 """SetTargetRect(self, Rect rect)"""
276 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
278 def GetTargetRect(*args
, **kwargs
):
279 """GetTargetRect(self) -> Rect"""
280 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
282 def DoPrepareDC(*args
, **kwargs
):
284 DoPrepareDC(self, DC dc)
286 Normally what is called by `PrepareDC`.
288 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
290 def GetClassDefaultAttributes(*args
, **kwargs
):
292 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
294 Get the default attributes for this class. This is useful if you want
295 to use the same font or colour in your own control as in a standard
296 control -- which is a much better idea than hard coding specific
297 colours or fonts which might look completely out of place on the
298 user's system, especially if it uses themes.
300 The variant parameter is only relevant under Mac currently and is
301 ignore under other platforms. Under Mac, it will change the size of
302 the returned font. See `wx.Window.SetWindowVariant` for more about
305 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
307 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
309 class ScrolledWindowPtr(ScrolledWindow
):
310 def __init__(self
, this
):
312 if not hasattr(self
,"thisown"): self
.thisown
= 0
313 self
.__class
__ = ScrolledWindow
314 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
316 def PreScrolledWindow(*args
, **kwargs
):
317 """PreScrolledWindow() -> ScrolledWindow"""
318 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
322 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
324 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
326 Get the default attributes for this class. This is useful if you want
327 to use the same font or colour in your own control as in a standard
328 control -- which is a much better idea than hard coding specific
329 colours or fonts which might look completely out of place on the
330 user's system, especially if it uses themes.
332 The variant parameter is only relevant under Mac currently and is
333 ignore under other platforms. Under Mac, it will change the size of
334 the returned font. See `wx.Window.SetWindowVariant` for more about
337 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
339 #---------------------------------------------------------------------------
341 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
342 ICONIZE
= _windows_
.ICONIZE
343 MINIMIZE
= _windows_
.MINIMIZE
344 MAXIMIZE
= _windows_
.MAXIMIZE
345 CLOSE_BOX
= _windows_
.CLOSE_BOX
346 THICK_FRAME
= _windows_
.THICK_FRAME
347 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
348 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
349 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
350 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
351 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
352 RESIZE_BOX
= _windows_
.RESIZE_BOX
353 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
354 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
355 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
356 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
357 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
358 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
359 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
360 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
361 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
362 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
363 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
364 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
365 USER_COLOURS
= _windows_
.USER_COLOURS
366 NO_3D
= _windows_
.NO_3D
367 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
368 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
369 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
370 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
371 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
372 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
373 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
374 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
375 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
376 class TopLevelWindow(_core
.Window
):
377 """Proxy of C++ TopLevelWindow class"""
378 def __init__(self
): raise RuntimeError, "No constructor defined"
380 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
381 def Maximize(*args
, **kwargs
):
382 """Maximize(self, bool maximize=True)"""
383 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
385 def Restore(*args
, **kwargs
):
387 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
389 def Iconize(*args
, **kwargs
):
390 """Iconize(self, bool iconize=True)"""
391 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
393 def IsMaximized(*args
, **kwargs
):
394 """IsMaximized(self) -> bool"""
395 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
397 def IsIconized(*args
, **kwargs
):
398 """IsIconized(self) -> bool"""
399 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
401 def GetIcon(*args
, **kwargs
):
402 """GetIcon(self) -> Icon"""
403 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
405 def SetIcon(*args
, **kwargs
):
406 """SetIcon(self, Icon icon)"""
407 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
409 def SetIcons(*args
, **kwargs
):
410 """SetIcons(self, wxIconBundle icons)"""
411 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
413 def ShowFullScreen(*args
, **kwargs
):
414 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
415 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
417 def IsFullScreen(*args
, **kwargs
):
418 """IsFullScreen(self) -> bool"""
419 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
421 def SetTitle(*args
, **kwargs
):
423 SetTitle(self, String title)
425 Sets the window's title. Applicable only to frames and dialogs.
427 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
429 def GetTitle(*args
, **kwargs
):
431 GetTitle(self) -> String
433 Gets the window's title. Applicable only to frames and dialogs.
435 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
437 def SetShape(*args
, **kwargs
):
438 """SetShape(self, Region region) -> bool"""
439 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
441 def RequestUserAttention(*args
, **kwargs
):
442 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
443 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
445 def IsActive(*args
, **kwargs
):
446 """IsActive(self) -> bool"""
447 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
449 def MacSetMetalAppearance(*args
, **kwargs
):
450 """MacSetMetalAppearance(self, bool on)"""
451 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
453 def MacGetMetalAppearance(*args
, **kwargs
):
454 """MacGetMetalAppearance(self) -> bool"""
455 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
458 class TopLevelWindowPtr(TopLevelWindow
):
459 def __init__(self
, this
):
461 if not hasattr(self
,"thisown"): self
.thisown
= 0
462 self
.__class
__ = TopLevelWindow
463 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
464 cvar
= _windows_
.cvar
465 FrameNameStr
= cvar
.FrameNameStr
466 DialogNameStr
= cvar
.DialogNameStr
467 StatusLineNameStr
= cvar
.StatusLineNameStr
468 ToolBarNameStr
= cvar
.ToolBarNameStr
470 #---------------------------------------------------------------------------
472 class Frame(TopLevelWindow
):
473 """Proxy of C++ Frame class"""
475 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
476 def __init__(self
, *args
, **kwargs
):
478 __init__(self, Window parent, int id=-1, String title=EmptyString,
479 Point pos=DefaultPosition, Size size=DefaultSize,
480 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
482 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
483 self
.this
= newobj
.this
486 self
._setOORInfo
(self
)
488 def Create(*args
, **kwargs
):
490 Create(self, Window parent, int id=-1, String title=EmptyString,
491 Point pos=DefaultPosition, Size size=DefaultSize,
492 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
494 return _windows_
.Frame_Create(*args
, **kwargs
)
496 def GetClientAreaOrigin(*args
, **kwargs
):
498 GetClientAreaOrigin(self) -> Point
500 Get the origin of the client area of the window relative to the
501 window's top left corner (the client area may be shifted because of
502 the borders, scrollbars, other decorations...)
504 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
506 def SendSizeEvent(*args
, **kwargs
):
507 """SendSizeEvent(self)"""
508 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
510 def SetMenuBar(*args
, **kwargs
):
511 """SetMenuBar(self, MenuBar menubar)"""
512 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
514 def GetMenuBar(*args
, **kwargs
):
515 """GetMenuBar(self) -> MenuBar"""
516 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
518 def ProcessCommand(*args
, **kwargs
):
519 """ProcessCommand(self, int winid) -> bool"""
520 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
522 Command
= ProcessCommand
523 def CreateStatusBar(*args
, **kwargs
):
525 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
526 String name=StatusLineNameStr) -> StatusBar
528 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
530 def GetStatusBar(*args
, **kwargs
):
531 """GetStatusBar(self) -> StatusBar"""
532 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
534 def SetStatusBar(*args
, **kwargs
):
535 """SetStatusBar(self, StatusBar statBar)"""
536 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
538 def SetStatusText(*args
, **kwargs
):
539 """SetStatusText(self, String text, int number=0)"""
540 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
542 def SetStatusWidths(*args
, **kwargs
):
543 """SetStatusWidths(self, int widths)"""
544 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
546 def PushStatusText(*args
, **kwargs
):
547 """PushStatusText(self, String text, int number=0)"""
548 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
550 def PopStatusText(*args
, **kwargs
):
551 """PopStatusText(self, int number=0)"""
552 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
554 def SetStatusBarPane(*args
, **kwargs
):
555 """SetStatusBarPane(self, int n)"""
556 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
558 def GetStatusBarPane(*args
, **kwargs
):
559 """GetStatusBarPane(self) -> int"""
560 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
562 def CreateToolBar(*args
, **kwargs
):
563 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
564 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
566 def GetToolBar(*args
, **kwargs
):
567 """GetToolBar(self) -> wxToolBar"""
568 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
570 def SetToolBar(*args
, **kwargs
):
571 """SetToolBar(self, wxToolBar toolbar)"""
572 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
574 def DoGiveHelp(*args
, **kwargs
):
575 """DoGiveHelp(self, String text, bool show)"""
576 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
578 def DoMenuUpdates(*args
, **kwargs
):
579 """DoMenuUpdates(self, Menu menu=None)"""
580 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
582 def GetClassDefaultAttributes(*args
, **kwargs
):
584 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
586 Get the default attributes for this class. This is useful if you want
587 to use the same font or colour in your own control as in a standard
588 control -- which is a much better idea than hard coding specific
589 colours or fonts which might look completely out of place on the
590 user's system, especially if it uses themes.
592 The variant parameter is only relevant under Mac currently and is
593 ignore under other platforms. Under Mac, it will change the size of
594 the returned font. See `wx.Window.SetWindowVariant` for more about
597 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
599 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
601 class FramePtr(Frame
):
602 def __init__(self
, this
):
604 if not hasattr(self
,"thisown"): self
.thisown
= 0
605 self
.__class
__ = Frame
606 _windows_
.Frame_swigregister(FramePtr
)
608 def PreFrame(*args
, **kwargs
):
609 """PreFrame() -> Frame"""
610 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
614 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
616 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
618 Get the default attributes for this class. This is useful if you want
619 to use the same font or colour in your own control as in a standard
620 control -- which is a much better idea than hard coding specific
621 colours or fonts which might look completely out of place on the
622 user's system, especially if it uses themes.
624 The variant parameter is only relevant under Mac currently and is
625 ignore under other platforms. Under Mac, it will change the size of
626 the returned font. See `wx.Window.SetWindowVariant` for more about
629 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
631 #---------------------------------------------------------------------------
633 class Dialog(TopLevelWindow
):
634 """Proxy of C++ Dialog class"""
636 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
637 def __init__(self
, *args
, **kwargs
):
639 __init__(self, Window parent, int id=-1, String title=EmptyString,
640 Point pos=DefaultPosition, Size size=DefaultSize,
641 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
643 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
644 self
.this
= newobj
.this
647 self
._setOORInfo
(self
)
649 def Create(*args
, **kwargs
):
651 Create(self, Window parent, int id=-1, String title=EmptyString,
652 Point pos=DefaultPosition, Size size=DefaultSize,
653 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
655 return _windows_
.Dialog_Create(*args
, **kwargs
)
657 def SetReturnCode(*args
, **kwargs
):
658 """SetReturnCode(self, int returnCode)"""
659 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
661 def GetReturnCode(*args
, **kwargs
):
662 """GetReturnCode(self) -> int"""
663 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
665 def CreateTextSizer(*args
, **kwargs
):
666 """CreateTextSizer(self, String message) -> Sizer"""
667 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
669 def CreateButtonSizer(*args
, **kwargs
):
670 """CreateButtonSizer(self, long flags) -> Sizer"""
671 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
673 def IsModal(*args
, **kwargs
):
674 """IsModal(self) -> bool"""
675 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
677 def ShowModal(*args
, **kwargs
):
678 """ShowModal(self) -> int"""
679 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
681 def EndModal(*args
, **kwargs
):
682 """EndModal(self, int retCode)"""
683 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
685 def GetClassDefaultAttributes(*args
, **kwargs
):
687 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
689 Get the default attributes for this class. This is useful if you want
690 to use the same font or colour in your own control as in a standard
691 control -- which is a much better idea than hard coding specific
692 colours or fonts which might look completely out of place on the
693 user's system, especially if it uses themes.
695 The variant parameter is only relevant under Mac currently and is
696 ignore under other platforms. Under Mac, it will change the size of
697 the returned font. See `wx.Window.SetWindowVariant` for more about
700 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
702 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
703 def SendSizeEvent(self
):
704 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
707 class DialogPtr(Dialog
):
708 def __init__(self
, this
):
710 if not hasattr(self
,"thisown"): self
.thisown
= 0
711 self
.__class
__ = Dialog
712 _windows_
.Dialog_swigregister(DialogPtr
)
714 def PreDialog(*args
, **kwargs
):
715 """PreDialog() -> Dialog"""
716 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
720 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
722 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
724 Get the default attributes for this class. This is useful if you want
725 to use the same font or colour in your own control as in a standard
726 control -- which is a much better idea than hard coding specific
727 colours or fonts which might look completely out of place on the
728 user's system, especially if it uses themes.
730 The variant parameter is only relevant under Mac currently and is
731 ignore under other platforms. Under Mac, it will change the size of
732 the returned font. See `wx.Window.SetWindowVariant` for more about
735 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
737 #---------------------------------------------------------------------------
739 class MiniFrame(Frame
):
740 """Proxy of C++ MiniFrame class"""
742 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
743 def __init__(self
, *args
, **kwargs
):
745 __init__(self, Window parent, int id=-1, String title=EmptyString,
746 Point pos=DefaultPosition, Size size=DefaultSize,
747 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
749 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
750 self
.this
= newobj
.this
753 self
._setOORInfo
(self
)
755 def Create(*args
, **kwargs
):
757 Create(self, Window parent, int id=-1, String title=EmptyString,
758 Point pos=DefaultPosition, Size size=DefaultSize,
759 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
761 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
764 class MiniFramePtr(MiniFrame
):
765 def __init__(self
, this
):
767 if not hasattr(self
,"thisown"): self
.thisown
= 0
768 self
.__class
__ = MiniFrame
769 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
771 def PreMiniFrame(*args
, **kwargs
):
772 """PreMiniFrame() -> MiniFrame"""
773 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
777 #---------------------------------------------------------------------------
779 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
780 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
781 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
782 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
783 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
784 class SplashScreenWindow(_core
.Window
):
785 """Proxy of C++ SplashScreenWindow class"""
787 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
788 def __init__(self
, *args
, **kwargs
):
790 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
791 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
793 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
794 self
.this
= newobj
.this
797 self
._setOORInfo
(self
)
799 def SetBitmap(*args
, **kwargs
):
800 """SetBitmap(self, Bitmap bitmap)"""
801 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
803 def GetBitmap(*args
, **kwargs
):
804 """GetBitmap(self) -> Bitmap"""
805 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
808 class SplashScreenWindowPtr(SplashScreenWindow
):
809 def __init__(self
, this
):
811 if not hasattr(self
,"thisown"): self
.thisown
= 0
812 self
.__class
__ = SplashScreenWindow
813 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
815 class SplashScreen(Frame
):
816 """Proxy of C++ SplashScreen class"""
818 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
819 def __init__(self
, *args
, **kwargs
):
821 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
822 Window parent, int id=-1, Point pos=DefaultPosition,
823 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
825 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
826 self
.this
= newobj
.this
829 self
._setOORInfo
(self
)
831 def GetSplashStyle(*args
, **kwargs
):
832 """GetSplashStyle(self) -> long"""
833 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
835 def GetSplashWindow(*args
, **kwargs
):
836 """GetSplashWindow(self) -> SplashScreenWindow"""
837 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
839 def GetTimeout(*args
, **kwargs
):
840 """GetTimeout(self) -> int"""
841 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
844 class SplashScreenPtr(SplashScreen
):
845 def __init__(self
, this
):
847 if not hasattr(self
,"thisown"): self
.thisown
= 0
848 self
.__class
__ = SplashScreen
849 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
851 #---------------------------------------------------------------------------
853 SB_NORMAL
= _windows_
.SB_NORMAL
854 SB_FLAT
= _windows_
.SB_FLAT
855 SB_RAISED
= _windows_
.SB_RAISED
856 class StatusBar(_core
.Window
):
857 """Proxy of C++ StatusBar class"""
859 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
860 def __init__(self
, *args
, **kwargs
):
861 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
862 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
863 self
.this
= newobj
.this
866 self
._setOORInfo
(self
)
868 def Create(*args
, **kwargs
):
869 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
870 return _windows_
.StatusBar_Create(*args
, **kwargs
)
872 def SetFieldsCount(*args
, **kwargs
):
873 """SetFieldsCount(self, int number=1)"""
874 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
876 def GetFieldsCount(*args
, **kwargs
):
877 """GetFieldsCount(self) -> int"""
878 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
880 def SetStatusText(*args
, **kwargs
):
881 """SetStatusText(self, String text, int number=0)"""
882 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
884 def GetStatusText(*args
, **kwargs
):
885 """GetStatusText(self, int number=0) -> String"""
886 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
888 def PushStatusText(*args
, **kwargs
):
889 """PushStatusText(self, String text, int number=0)"""
890 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
892 def PopStatusText(*args
, **kwargs
):
893 """PopStatusText(self, int number=0)"""
894 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
896 def SetStatusWidths(*args
, **kwargs
):
897 """SetStatusWidths(self, int widths)"""
898 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
900 def SetStatusStyles(*args
, **kwargs
):
901 """SetStatusStyles(self, int styles)"""
902 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
904 def GetFieldRect(*args
, **kwargs
):
905 """GetFieldRect(self, int i) -> Rect"""
906 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
908 def SetMinHeight(*args
, **kwargs
):
909 """SetMinHeight(self, int height)"""
910 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
912 def GetBorderX(*args
, **kwargs
):
913 """GetBorderX(self) -> int"""
914 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
916 def GetBorderY(*args
, **kwargs
):
917 """GetBorderY(self) -> int"""
918 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
920 def GetClassDefaultAttributes(*args
, **kwargs
):
922 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
924 Get the default attributes for this class. This is useful if you want
925 to use the same font or colour in your own control as in a standard
926 control -- which is a much better idea than hard coding specific
927 colours or fonts which might look completely out of place on the
928 user's system, especially if it uses themes.
930 The variant parameter is only relevant under Mac currently and is
931 ignore under other platforms. Under Mac, it will change the size of
932 the returned font. See `wx.Window.SetWindowVariant` for more about
935 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
937 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
939 class StatusBarPtr(StatusBar
):
940 def __init__(self
, this
):
942 if not hasattr(self
,"thisown"): self
.thisown
= 0
943 self
.__class
__ = StatusBar
944 _windows_
.StatusBar_swigregister(StatusBarPtr
)
946 def PreStatusBar(*args
, **kwargs
):
947 """PreStatusBar() -> StatusBar"""
948 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
952 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
954 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
956 Get the default attributes for this class. This is useful if you want
957 to use the same font or colour in your own control as in a standard
958 control -- which is a much better idea than hard coding specific
959 colours or fonts which might look completely out of place on the
960 user's system, especially if it uses themes.
962 The variant parameter is only relevant under Mac currently and is
963 ignore under other platforms. Under Mac, it will change the size of
964 the returned font. See `wx.Window.SetWindowVariant` for more about
967 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
969 #---------------------------------------------------------------------------
971 SP_NOBORDER
= _windows_
.SP_NOBORDER
972 SP_NOSASH
= _windows_
.SP_NOSASH
973 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
974 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
975 SP_3DSASH
= _windows_
.SP_3DSASH
976 SP_3DBORDER
= _windows_
.SP_3DBORDER
977 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
978 SP_BORDER
= _windows_
.SP_BORDER
979 SP_3D
= _windows_
.SP_3D
980 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
981 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
982 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
983 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
984 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
985 class SplitterWindow(_core
.Window
):
987 wx.SplitterWindow manages up to two subwindows or panes, with an
988 optional vertical or horizontal split which can be used with the mouse
992 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
993 def __init__(self
, *args
, **kwargs
):
995 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
996 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
998 Constructor. Creates and shows a SplitterWindow.
1000 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1001 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
1002 self
.this
= newobj
.this
1005 self
._setOORInfo
(self
)
1007 def Create(*args
, **kwargs
):
1009 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1010 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
1012 Create the GUI part of the SplitterWindow for the 2-phase create.
1014 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
1016 def GetWindow1(*args
, **kwargs
):
1018 GetWindow1(self) -> Window
1020 Gets the only or left/top pane.
1022 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
1024 def GetWindow2(*args
, **kwargs
):
1026 GetWindow2(self) -> Window
1028 Gets the right/bottom pane.
1030 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
1032 def SetSplitMode(*args
, **kwargs
):
1034 SetSplitMode(self, int mode)
1036 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
1037 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
1040 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
1042 def GetSplitMode(*args
, **kwargs
):
1044 GetSplitMode(self) -> int
1048 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
1050 def Initialize(*args
, **kwargs
):
1052 Initialize(self, Window window)
1054 Initializes the splitter window to have one pane. This should be
1055 called if you wish to initially view only a single pane in the
1058 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1060 def SplitVertically(*args
, **kwargs
):
1062 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1064 Initializes the left and right panes of the splitter window.
1066 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1068 def SplitHorizontally(*args
, **kwargs
):
1070 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1072 Initializes the top and bottom panes of the splitter window.
1074 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1076 def Unsplit(*args
, **kwargs
):
1078 Unsplit(self, Window toRemove=None) -> bool
1080 Unsplits the window. Pass the pane to remove, or None to remove the
1081 right or bottom pane. Returns True if successful, False otherwise (the
1082 window was not split).
1084 This function will not actually delete the pane being
1085 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1086 for the desired behaviour. By default, the pane being
1087 removed is only hidden.
1089 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1091 def ReplaceWindow(*args
, **kwargs
):
1093 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1095 This function replaces one of the windows managed by the
1096 SplitterWindow with another one. It is in general better to use it
1097 instead of calling Unsplit() and then resplitting the window back
1098 because it will provoke much less flicker. It is valid to call this
1099 function whether the splitter has two windows or only one.
1101 Both parameters should be non-None and winOld must specify one of the
1102 windows managed by the splitter. If the parameters are incorrect or
1103 the window couldn't be replaced, False is returned. Otherwise the
1104 function will return True, but please notice that it will not Destroy
1105 the replaced window and you may wish to do it yourself.
1107 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1109 def UpdateSize(*args
, **kwargs
):
1113 Causes any pending sizing of the sash and child panes to take place
1116 Such resizing normally takes place in idle time, in order to wait for
1117 layout to be completed. However, this can cause unacceptable flicker
1118 as the panes are resized after the window has been shown. To work
1119 around this, you can perform window layout (for example by sending a
1120 size event to the parent window), and then call this function, before
1121 showing the top-level window.
1123 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1125 def IsSplit(*args
, **kwargs
):
1127 IsSplit(self) -> bool
1129 Is the window split?
1131 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1133 def SetSashSize(*args
, **kwargs
):
1135 SetSashSize(self, int width)
1137 Sets the sash size. Currently a NOP.
1139 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1141 def SetBorderSize(*args
, **kwargs
):
1143 SetBorderSize(self, int width)
1145 Sets the border size. Currently a NOP.
1147 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1149 def GetSashSize(*args
, **kwargs
):
1151 GetSashSize(self) -> int
1155 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1157 def GetBorderSize(*args
, **kwargs
):
1159 GetBorderSize(self) -> int
1161 Gets the border size
1163 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1165 def SetSashPosition(*args
, **kwargs
):
1167 SetSashPosition(self, int position, bool redraw=True)
1169 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1170 are resized and the sash and border are redrawn.
1172 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1174 def GetSashPosition(*args
, **kwargs
):
1176 GetSashPosition(self) -> int
1178 Returns the surrent sash position.
1180 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1182 def SetSashGravity(*args
, **kwargs
):
1184 SetSashGravity(self, double gravity)
1186 Set the sash gravity. Gravity is a floating-point factor between 0.0
1187 and 1.0 which controls position of sash while resizing the
1188 `wx.SplitterWindow`. The gravity specifies how much the left/top
1189 window will grow while resizing.
1191 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1193 def GetSashGravity(*args
, **kwargs
):
1195 GetSashGravity(self) -> double
1197 Gets the sash gravity.
1199 :see: `SetSashGravity`
1202 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1204 def SetMinimumPaneSize(*args
, **kwargs
):
1206 SetMinimumPaneSize(self, int min)
1208 Sets the minimum pane size in pixels.
1210 The default minimum pane size is zero, which means that either pane
1211 can be reduced to zero by dragging the sash, thus removing one of the
1212 panes. To prevent this behaviour (and veto out-of-range sash
1213 dragging), set a minimum size, for example 20 pixels. If the
1214 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1215 the window may be unsplit even if minimum size is non-zero.
1217 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1219 def GetMinimumPaneSize(*args
, **kwargs
):
1221 GetMinimumPaneSize(self) -> int
1223 Gets the minimum pane size in pixels.
1225 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1227 def SashHitTest(*args
, **kwargs
):
1229 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1231 Tests for x, y over the sash
1233 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1235 def SizeWindows(*args
, **kwargs
):
1241 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1243 def SetNeedUpdating(*args
, **kwargs
):
1244 """SetNeedUpdating(self, bool needUpdating)"""
1245 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1247 def GetNeedUpdating(*args
, **kwargs
):
1248 """GetNeedUpdating(self) -> bool"""
1249 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1251 def GetClassDefaultAttributes(*args
, **kwargs
):
1253 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1255 Get the default attributes for this class. This is useful if you want
1256 to use the same font or colour in your own control as in a standard
1257 control -- which is a much better idea than hard coding specific
1258 colours or fonts which might look completely out of place on the
1259 user's system, especially if it uses themes.
1261 The variant parameter is only relevant under Mac currently and is
1262 ignore under other platforms. Under Mac, it will change the size of
1263 the returned font. See `wx.Window.SetWindowVariant` for more about
1266 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1268 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1270 class SplitterWindowPtr(SplitterWindow
):
1271 def __init__(self
, this
):
1273 if not hasattr(self
,"thisown"): self
.thisown
= 0
1274 self
.__class
__ = SplitterWindow
1275 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1276 SplitterNameStr
= cvar
.SplitterNameStr
1278 def PreSplitterWindow(*args
, **kwargs
):
1280 PreSplitterWindow() -> SplitterWindow
1282 Precreate a SplitterWindow for 2-phase creation.
1284 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1288 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1290 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1292 Get the default attributes for this class. This is useful if you want
1293 to use the same font or colour in your own control as in a standard
1294 control -- which is a much better idea than hard coding specific
1295 colours or fonts which might look completely out of place on the
1296 user's system, especially if it uses themes.
1298 The variant parameter is only relevant under Mac currently and is
1299 ignore under other platforms. Under Mac, it will change the size of
1300 the returned font. See `wx.Window.SetWindowVariant` for more about
1303 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1305 class SplitterEvent(_core
.NotifyEvent
):
1306 """This class represents the events generated by a splitter control."""
1308 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1309 def __init__(self
, *args
, **kwargs
):
1311 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1313 This class represents the events generated by a splitter control.
1315 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1316 self
.this
= newobj
.this
1319 def SetSashPosition(*args
, **kwargs
):
1321 SetSashPosition(self, int pos)
1323 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1324 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1325 events, sets the the new sash position. In the case of _CHANGING
1326 events, sets the new tracking bar position so visual feedback during
1327 dragging will represent that change that will actually take place. Set
1328 to -1 from the event handler code to prevent repositioning.
1330 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1332 def GetSashPosition(*args
, **kwargs
):
1334 GetSashPosition(self) -> int
1336 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1337 and EVT_SPLITTER_SASH_POS_CHANGED events.
1339 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1341 def GetWindowBeingRemoved(*args
, **kwargs
):
1343 GetWindowBeingRemoved(self) -> Window
1345 Returns a pointer to the window being removed when a splitter window
1348 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1350 def GetX(*args
, **kwargs
):
1354 Returns the x coordinate of the double-click point in a
1355 EVT_SPLITTER_DCLICK event.
1357 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1359 def GetY(*args
, **kwargs
):
1363 Returns the y coordinate of the double-click point in a
1364 EVT_SPLITTER_DCLICK event.
1366 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1369 class SplitterEventPtr(SplitterEvent
):
1370 def __init__(self
, this
):
1372 if not hasattr(self
,"thisown"): self
.thisown
= 0
1373 self
.__class
__ = SplitterEvent
1374 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1376 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1377 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1378 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1379 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1380 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1381 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1382 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1383 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1384 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1386 #---------------------------------------------------------------------------
1388 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1389 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1390 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1391 SW_NOBORDER
= _windows_
.SW_NOBORDER
1392 SW_BORDER
= _windows_
.SW_BORDER
1393 SW_3DSASH
= _windows_
.SW_3DSASH
1394 SW_3DBORDER
= _windows_
.SW_3DBORDER
1395 SW_3D
= _windows_
.SW_3D
1396 SASH_TOP
= _windows_
.SASH_TOP
1397 SASH_RIGHT
= _windows_
.SASH_RIGHT
1398 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1399 SASH_LEFT
= _windows_
.SASH_LEFT
1400 SASH_NONE
= _windows_
.SASH_NONE
1401 class SashWindow(_core
.Window
):
1402 """Proxy of C++ SashWindow class"""
1404 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1405 def __init__(self
, *args
, **kwargs
):
1407 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1408 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1409 String name=SashNameStr) -> SashWindow
1411 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1412 self
.this
= newobj
.this
1415 self
._setOORInfo
(self
)
1417 def Create(*args
, **kwargs
):
1419 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1420 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1421 String name=SashNameStr) -> bool
1423 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1425 def SetSashVisible(*args
, **kwargs
):
1426 """SetSashVisible(self, int edge, bool sash)"""
1427 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1429 def GetSashVisible(*args
, **kwargs
):
1430 """GetSashVisible(self, int edge) -> bool"""
1431 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1433 def SetSashBorder(*args
, **kwargs
):
1434 """SetSashBorder(self, int edge, bool border)"""
1435 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1437 def HasBorder(*args
, **kwargs
):
1438 """HasBorder(self, int edge) -> bool"""
1439 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1441 def GetEdgeMargin(*args
, **kwargs
):
1442 """GetEdgeMargin(self, int edge) -> int"""
1443 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1445 def SetDefaultBorderSize(*args
, **kwargs
):
1446 """SetDefaultBorderSize(self, int width)"""
1447 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1449 def GetDefaultBorderSize(*args
, **kwargs
):
1450 """GetDefaultBorderSize(self) -> int"""
1451 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1453 def SetExtraBorderSize(*args
, **kwargs
):
1454 """SetExtraBorderSize(self, int width)"""
1455 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1457 def GetExtraBorderSize(*args
, **kwargs
):
1458 """GetExtraBorderSize(self) -> int"""
1459 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1461 def SetMinimumSizeX(*args
, **kwargs
):
1462 """SetMinimumSizeX(self, int min)"""
1463 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1465 def SetMinimumSizeY(*args
, **kwargs
):
1466 """SetMinimumSizeY(self, int min)"""
1467 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1469 def GetMinimumSizeX(*args
, **kwargs
):
1470 """GetMinimumSizeX(self) -> int"""
1471 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1473 def GetMinimumSizeY(*args
, **kwargs
):
1474 """GetMinimumSizeY(self) -> int"""
1475 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1477 def SetMaximumSizeX(*args
, **kwargs
):
1478 """SetMaximumSizeX(self, int max)"""
1479 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1481 def SetMaximumSizeY(*args
, **kwargs
):
1482 """SetMaximumSizeY(self, int max)"""
1483 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1485 def GetMaximumSizeX(*args
, **kwargs
):
1486 """GetMaximumSizeX(self) -> int"""
1487 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1489 def GetMaximumSizeY(*args
, **kwargs
):
1490 """GetMaximumSizeY(self) -> int"""
1491 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1493 def SashHitTest(*args
, **kwargs
):
1494 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1495 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1497 def SizeWindows(*args
, **kwargs
):
1498 """SizeWindows(self)"""
1499 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1502 class SashWindowPtr(SashWindow
):
1503 def __init__(self
, this
):
1505 if not hasattr(self
,"thisown"): self
.thisown
= 0
1506 self
.__class
__ = SashWindow
1507 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1508 SashNameStr
= cvar
.SashNameStr
1509 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1511 def PreSashWindow(*args
, **kwargs
):
1512 """PreSashWindow() -> SashWindow"""
1513 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1517 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1518 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1519 class SashEvent(_core
.CommandEvent
):
1520 """Proxy of C++ SashEvent class"""
1522 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1523 def __init__(self
, *args
, **kwargs
):
1524 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1525 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1526 self
.this
= newobj
.this
1529 def SetEdge(*args
, **kwargs
):
1530 """SetEdge(self, int edge)"""
1531 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1533 def GetEdge(*args
, **kwargs
):
1534 """GetEdge(self) -> int"""
1535 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1537 def SetDragRect(*args
, **kwargs
):
1538 """SetDragRect(self, Rect rect)"""
1539 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1541 def GetDragRect(*args
, **kwargs
):
1542 """GetDragRect(self) -> Rect"""
1543 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1545 def SetDragStatus(*args
, **kwargs
):
1546 """SetDragStatus(self, int status)"""
1547 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1549 def GetDragStatus(*args
, **kwargs
):
1550 """GetDragStatus(self) -> int"""
1551 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1554 class SashEventPtr(SashEvent
):
1555 def __init__(self
, this
):
1557 if not hasattr(self
,"thisown"): self
.thisown
= 0
1558 self
.__class
__ = SashEvent
1559 _windows_
.SashEvent_swigregister(SashEventPtr
)
1561 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1562 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1563 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1565 #---------------------------------------------------------------------------
1567 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1568 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1569 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1570 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1571 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1572 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1573 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1574 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1575 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1576 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1577 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1578 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1579 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1580 class QueryLayoutInfoEvent(_core
.Event
):
1581 """Proxy of C++ QueryLayoutInfoEvent class"""
1583 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1584 def __init__(self
, *args
, **kwargs
):
1585 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1586 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1587 self
.this
= newobj
.this
1590 def SetRequestedLength(*args
, **kwargs
):
1591 """SetRequestedLength(self, int length)"""
1592 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1594 def GetRequestedLength(*args
, **kwargs
):
1595 """GetRequestedLength(self) -> int"""
1596 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1598 def SetFlags(*args
, **kwargs
):
1599 """SetFlags(self, int flags)"""
1600 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1602 def GetFlags(*args
, **kwargs
):
1603 """GetFlags(self) -> int"""
1604 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1606 def SetSize(*args
, **kwargs
):
1607 """SetSize(self, Size size)"""
1608 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1610 def GetSize(*args
, **kwargs
):
1611 """GetSize(self) -> Size"""
1612 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1614 def SetOrientation(*args
, **kwargs
):
1615 """SetOrientation(self, int orient)"""
1616 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1618 def GetOrientation(*args
, **kwargs
):
1619 """GetOrientation(self) -> int"""
1620 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1622 def SetAlignment(*args
, **kwargs
):
1623 """SetAlignment(self, int align)"""
1624 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1626 def GetAlignment(*args
, **kwargs
):
1627 """GetAlignment(self) -> int"""
1628 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1631 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1632 def __init__(self
, this
):
1634 if not hasattr(self
,"thisown"): self
.thisown
= 0
1635 self
.__class
__ = QueryLayoutInfoEvent
1636 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1638 class CalculateLayoutEvent(_core
.Event
):
1639 """Proxy of C++ CalculateLayoutEvent class"""
1641 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1642 def __init__(self
, *args
, **kwargs
):
1643 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1644 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1645 self
.this
= newobj
.this
1648 def SetFlags(*args
, **kwargs
):
1649 """SetFlags(self, int flags)"""
1650 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1652 def GetFlags(*args
, **kwargs
):
1653 """GetFlags(self) -> int"""
1654 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1656 def SetRect(*args
, **kwargs
):
1657 """SetRect(self, Rect rect)"""
1658 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1660 def GetRect(*args
, **kwargs
):
1661 """GetRect(self) -> Rect"""
1662 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1665 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1666 def __init__(self
, this
):
1668 if not hasattr(self
,"thisown"): self
.thisown
= 0
1669 self
.__class
__ = CalculateLayoutEvent
1670 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1672 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1673 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1675 class SashLayoutWindow(SashWindow
):
1676 """Proxy of C++ SashLayoutWindow class"""
1678 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1679 def __init__(self
, *args
, **kwargs
):
1681 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1682 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1683 String name=SashLayoutNameStr) -> SashLayoutWindow
1685 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1686 self
.this
= newobj
.this
1689 self
._setOORInfo
(self
)
1691 def Create(*args
, **kwargs
):
1693 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1694 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1695 String name=SashLayoutNameStr) -> bool
1697 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1699 def GetAlignment(*args
, **kwargs
):
1700 """GetAlignment(self) -> int"""
1701 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1703 def GetOrientation(*args
, **kwargs
):
1704 """GetOrientation(self) -> int"""
1705 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1707 def SetAlignment(*args
, **kwargs
):
1708 """SetAlignment(self, int alignment)"""
1709 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1711 def SetDefaultSize(*args
, **kwargs
):
1712 """SetDefaultSize(self, Size size)"""
1713 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1715 def SetOrientation(*args
, **kwargs
):
1716 """SetOrientation(self, int orientation)"""
1717 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1720 class SashLayoutWindowPtr(SashLayoutWindow
):
1721 def __init__(self
, this
):
1723 if not hasattr(self
,"thisown"): self
.thisown
= 0
1724 self
.__class
__ = SashLayoutWindow
1725 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1727 def PreSashLayoutWindow(*args
, **kwargs
):
1728 """PreSashLayoutWindow() -> SashLayoutWindow"""
1729 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1733 class LayoutAlgorithm(_core
.Object
):
1734 """Proxy of C++ LayoutAlgorithm class"""
1736 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1737 def __init__(self
, *args
, **kwargs
):
1738 """__init__(self) -> LayoutAlgorithm"""
1739 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1740 self
.this
= newobj
.this
1743 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1746 if self
.thisown
: destroy(self
)
1749 def LayoutMDIFrame(*args
, **kwargs
):
1750 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1751 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1753 def LayoutFrame(*args
, **kwargs
):
1754 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1755 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1757 def LayoutWindow(*args
, **kwargs
):
1758 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1759 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1762 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1763 def __init__(self
, this
):
1765 if not hasattr(self
,"thisown"): self
.thisown
= 0
1766 self
.__class
__ = LayoutAlgorithm
1767 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1769 class PopupWindow(_core
.Window
):
1770 """Proxy of C++ PopupWindow class"""
1772 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1773 def __init__(self
, *args
, **kwargs
):
1774 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1775 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1776 self
.this
= newobj
.this
1780 class PopupWindowPtr(PopupWindow
):
1781 def __init__(self
, this
):
1783 if not hasattr(self
,"thisown"): self
.thisown
= 0
1784 self
.__class
__ = PopupWindow
1785 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1787 def PrePopupWindow(*args
, **kwargs
):
1788 """PrePopupWindow() -> PopupWindow"""
1789 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1793 class PopupTransientWindow(PopupWindow
):
1794 """Proxy of C++ PopupTransientWindow class"""
1796 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1797 def __init__(self
, *args
, **kwargs
):
1798 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1799 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1800 self
.this
= newobj
.this
1804 class PopupTransientWindowPtr(PopupTransientWindow
):
1805 def __init__(self
, this
):
1807 if not hasattr(self
,"thisown"): self
.thisown
= 0
1808 self
.__class
__ = PopupTransientWindow
1809 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1811 def PrePopupTransientWindow(*args
, **kwargs
):
1812 """PrePopupTransientWindow() -> PopupTransientWindow"""
1813 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1817 #---------------------------------------------------------------------------
1819 class TipWindow(Frame
):
1820 """Proxy of C++ TipWindow class"""
1822 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1823 def __init__(self
, *args
, **kwargs
):
1824 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1825 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1826 self
.this
= newobj
.this
1829 self
._setOORInfo
(self
)
1831 def SetBoundingRect(*args
, **kwargs
):
1832 """SetBoundingRect(self, Rect rectBound)"""
1833 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1835 def Close(*args
, **kwargs
):
1839 This function simply generates a EVT_CLOSE event whose handler usually
1840 tries to close the window. It doesn't close the window itself,
1841 however. If force is False (the default) then the window's close
1842 handler will be allowed to veto the destruction of the window.
1844 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1847 class TipWindowPtr(TipWindow
):
1848 def __init__(self
, this
):
1850 if not hasattr(self
,"thisown"): self
.thisown
= 0
1851 self
.__class
__ = TipWindow
1852 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1854 #---------------------------------------------------------------------------
1856 class VScrolledWindow(Panel
):
1857 """Proxy of C++ VScrolledWindow class"""
1859 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1860 def __init__(self
, *args
, **kwargs
):
1862 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1863 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1865 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1866 self
.this
= newobj
.this
1869 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1871 def _setCallbackInfo(*args
, **kwargs
):
1872 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1873 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1875 def Create(*args
, **kwargs
):
1877 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1878 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1880 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1882 def SetLineCount(*args
, **kwargs
):
1883 """SetLineCount(self, size_t count)"""
1884 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1886 def ScrollToLine(*args
, **kwargs
):
1887 """ScrollToLine(self, size_t line) -> bool"""
1888 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1890 def ScrollLines(*args
, **kwargs
):
1892 ScrollLines(self, int lines) -> bool
1894 If the platform and window class supports it, scrolls the window by
1895 the given number of lines down, if lines is positive, or up if lines
1896 is negative. Returns True if the window was scrolled, False if it was
1897 already on top/bottom and nothing was done.
1899 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1901 def ScrollPages(*args
, **kwargs
):
1903 ScrollPages(self, int pages) -> bool
1905 If the platform and window class supports it, scrolls the window by
1906 the given number of pages down, if pages is positive, or up if pages
1907 is negative. Returns True if the window was scrolled, False if it was
1908 already on top/bottom and nothing was done.
1910 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1912 def RefreshLine(*args
, **kwargs
):
1913 """RefreshLine(self, size_t line)"""
1914 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1916 def RefreshLines(*args
, **kwargs
):
1917 """RefreshLines(self, size_t from, size_t to)"""
1918 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1920 def HitTestXY(*args
, **kwargs
):
1922 HitTestXY(self, int x, int y) -> int
1924 Test where the given (in client coords) point lies
1926 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1928 def HitTest(*args
, **kwargs
):
1930 HitTest(self, Point pt) -> int
1932 Test where the given (in client coords) point lies
1934 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1936 def RefreshAll(*args
, **kwargs
):
1937 """RefreshAll(self)"""
1938 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1940 def GetLineCount(*args
, **kwargs
):
1941 """GetLineCount(self) -> size_t"""
1942 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1944 def GetFirstVisibleLine(*args
, **kwargs
):
1945 """GetFirstVisibleLine(self) -> size_t"""
1946 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1948 def GetLastVisibleLine(*args
, **kwargs
):
1949 """GetLastVisibleLine(self) -> size_t"""
1950 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1952 def IsVisible(*args
, **kwargs
):
1953 """IsVisible(self, size_t line) -> bool"""
1954 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1957 class VScrolledWindowPtr(VScrolledWindow
):
1958 def __init__(self
, this
):
1960 if not hasattr(self
,"thisown"): self
.thisown
= 0
1961 self
.__class
__ = VScrolledWindow
1962 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1964 def PreVScrolledWindow(*args
, **kwargs
):
1965 """PreVScrolledWindow() -> VScrolledWindow"""
1966 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1970 class VListBox(VScrolledWindow
):
1971 """Proxy of C++ VListBox class"""
1973 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1974 def __init__(self
, *args
, **kwargs
):
1976 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1977 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1979 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1980 self
.this
= newobj
.this
1983 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1985 def _setCallbackInfo(*args
, **kwargs
):
1986 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1987 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1989 def Create(*args
, **kwargs
):
1991 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1992 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1994 return _windows_
.VListBox_Create(*args
, **kwargs
)
1996 def GetItemCount(*args
, **kwargs
):
1997 """GetItemCount(self) -> size_t"""
1998 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
2000 def HasMultipleSelection(*args
, **kwargs
):
2001 """HasMultipleSelection(self) -> bool"""
2002 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
2004 def GetSelection(*args
, **kwargs
):
2005 """GetSelection(self) -> int"""
2006 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
2008 def IsCurrent(*args
, **kwargs
):
2009 """IsCurrent(self, size_t item) -> bool"""
2010 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
2012 def IsSelected(*args
, **kwargs
):
2013 """IsSelected(self, size_t item) -> bool"""
2014 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
2016 def GetSelectedCount(*args
, **kwargs
):
2017 """GetSelectedCount(self) -> size_t"""
2018 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
2020 def GetFirstSelected(*args
, **kwargs
):
2021 """GetFirstSelected(self) -> PyObject"""
2022 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
2024 def GetNextSelected(*args
, **kwargs
):
2025 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
2026 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
2028 def GetMargins(*args
, **kwargs
):
2029 """GetMargins(self) -> Point"""
2030 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
2032 def GetSelectionBackground(*args
, **kwargs
):
2033 """GetSelectionBackground(self) -> Colour"""
2034 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
2036 def SetItemCount(*args
, **kwargs
):
2037 """SetItemCount(self, size_t count)"""
2038 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
2040 def Clear(*args
, **kwargs
):
2042 return _windows_
.VListBox_Clear(*args
, **kwargs
)
2044 def SetSelection(*args
, **kwargs
):
2045 """SetSelection(self, int selection)"""
2046 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
2048 def Select(*args
, **kwargs
):
2049 """Select(self, size_t item, bool select=True) -> bool"""
2050 return _windows_
.VListBox_Select(*args
, **kwargs
)
2052 def SelectRange(*args
, **kwargs
):
2053 """SelectRange(self, size_t from, size_t to) -> bool"""
2054 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
2056 def Toggle(*args
, **kwargs
):
2057 """Toggle(self, size_t item)"""
2058 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
2060 def SelectAll(*args
, **kwargs
):
2061 """SelectAll(self) -> bool"""
2062 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
2064 def DeselectAll(*args
, **kwargs
):
2065 """DeselectAll(self) -> bool"""
2066 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
2068 def SetMargins(*args
, **kwargs
):
2069 """SetMargins(self, Point pt)"""
2070 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
2072 def SetMarginsXY(*args
, **kwargs
):
2073 """SetMarginsXY(self, int x, int y)"""
2074 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
2076 def SetSelectionBackground(*args
, **kwargs
):
2077 """SetSelectionBackground(self, Colour col)"""
2078 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
2081 class VListBoxPtr(VListBox
):
2082 def __init__(self
, this
):
2084 if not hasattr(self
,"thisown"): self
.thisown
= 0
2085 self
.__class
__ = VListBox
2086 _windows_
.VListBox_swigregister(VListBoxPtr
)
2087 VListBoxNameStr
= cvar
.VListBoxNameStr
2089 def PreVListBox(*args
, **kwargs
):
2090 """PreVListBox() -> VListBox"""
2091 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2095 class HtmlListBox(VListBox
):
2096 """Proxy of C++ HtmlListBox class"""
2098 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2099 def __init__(self
, *args
, **kwargs
):
2101 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2102 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2104 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2105 self
.this
= newobj
.this
2108 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2110 def _setCallbackInfo(*args
, **kwargs
):
2111 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2112 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2114 def Create(*args
, **kwargs
):
2116 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2117 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2119 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2121 def RefreshAll(*args
, **kwargs
):
2122 """RefreshAll(self)"""
2123 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2125 def SetItemCount(*args
, **kwargs
):
2126 """SetItemCount(self, size_t count)"""
2127 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2129 def GetFileSystem(*args
, **kwargs
):
2130 """GetFileSystem(self) -> FileSystem"""
2131 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2134 class HtmlListBoxPtr(HtmlListBox
):
2135 def __init__(self
, this
):
2137 if not hasattr(self
,"thisown"): self
.thisown
= 0
2138 self
.__class
__ = HtmlListBox
2139 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2141 def PreHtmlListBox(*args
, **kwargs
):
2142 """PreHtmlListBox() -> HtmlListBox"""
2143 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2147 #---------------------------------------------------------------------------
2149 class TaskBarIcon(_core
.EvtHandler
):
2150 """Proxy of C++ TaskBarIcon class"""
2152 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2153 def __init__(self
, *args
, **kwargs
):
2154 """__init__(self) -> TaskBarIcon"""
2155 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2156 self
.this
= newobj
.this
2159 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2161 def _setCallbackInfo(*args
, **kwargs
):
2162 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2163 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2165 def Destroy(*args
, **kwargs
):
2169 Deletes the C++ object this Python object is a proxy for.
2171 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2173 def IsOk(*args
, **kwargs
):
2174 """IsOk(self) -> bool"""
2175 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2177 def __nonzero__(self
): return self
.IsOk()
2178 def IsIconInstalled(*args
, **kwargs
):
2179 """IsIconInstalled(self) -> bool"""
2180 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2182 def SetIcon(*args
, **kwargs
):
2183 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2184 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2186 def RemoveIcon(*args
, **kwargs
):
2187 """RemoveIcon(self) -> bool"""
2188 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2190 def PopupMenu(*args
, **kwargs
):
2191 """PopupMenu(self, Menu menu) -> bool"""
2192 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2195 class TaskBarIconPtr(TaskBarIcon
):
2196 def __init__(self
, this
):
2198 if not hasattr(self
,"thisown"): self
.thisown
= 0
2199 self
.__class
__ = TaskBarIcon
2200 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2202 class TaskBarIconEvent(_core
.Event
):
2203 """Proxy of C++ TaskBarIconEvent class"""
2205 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2206 def __init__(self
, *args
, **kwargs
):
2207 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2208 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2209 self
.this
= newobj
.this
2213 class TaskBarIconEventPtr(TaskBarIconEvent
):
2214 def __init__(self
, this
):
2216 if not hasattr(self
,"thisown"): self
.thisown
= 0
2217 self
.__class
__ = TaskBarIconEvent
2218 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2220 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2221 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2222 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2223 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2224 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2225 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2226 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2227 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2228 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2229 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2230 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2231 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2232 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2233 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2235 #---------------------------------------------------------------------------
2237 class ColourData(_core
.Object
):
2239 This class holds a variety of information related to the colour
2240 chooser dialog, used to transfer settings and results to and from the
2244 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2245 def __init__(self
, *args
, **kwargs
):
2247 __init__(self) -> ColourData
2249 Constructor, sets default values.
2251 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2252 self
.this
= newobj
.this
2255 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2258 if self
.thisown
: destroy(self
)
2261 def GetChooseFull(*args
, **kwargs
):
2263 GetChooseFull(self) -> bool
2265 Under Windows, determines whether the Windows colour dialog will
2266 display the full dialog with custom colour selection controls. Has no
2267 meaning under other platforms. The default value is true.
2269 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2271 def GetColour(*args
, **kwargs
):
2273 GetColour(self) -> Colour
2275 Gets the colour (pre)selected by the dialog.
2277 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2279 def GetCustomColour(*args
, **kwargs
):
2281 GetCustomColour(self, int i) -> Colour
2283 Gets the i'th custom colour associated with the colour dialog. i
2284 should be an integer between 0 and 15. The default custom colours are
2285 all invalid colours.
2287 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2289 def SetChooseFull(*args
, **kwargs
):
2291 SetChooseFull(self, int flag)
2293 Under Windows, tells the Windows colour dialog to display the full
2294 dialog with custom colour selection controls. Under other platforms,
2295 has no effect. The default value is true.
2297 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2299 def SetColour(*args
, **kwargs
):
2301 SetColour(self, Colour colour)
2303 Sets the default colour for the colour dialog. The default colour is
2306 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2308 def SetCustomColour(*args
, **kwargs
):
2310 SetCustomColour(self, int i, Colour colour)
2312 Sets the i'th custom colour for the colour dialog. i should be an
2313 integer between 0 and 15. The default custom colours are all invalid colours.
2315 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2318 class ColourDataPtr(ColourData
):
2319 def __init__(self
, this
):
2321 if not hasattr(self
,"thisown"): self
.thisown
= 0
2322 self
.__class
__ = ColourData
2323 _windows_
.ColourData_swigregister(ColourDataPtr
)
2324 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2325 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2326 DirDialogNameStr
= cvar
.DirDialogNameStr
2327 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2328 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2329 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2331 class ColourDialog(Dialog
):
2332 """This class represents the colour chooser dialog."""
2334 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2335 def __init__(self
, *args
, **kwargs
):
2337 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2339 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2340 which will be copied to the colour dialog's internal ColourData
2343 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2344 self
.this
= newobj
.this
2347 self
._setOORInfo
(self
)
2349 def GetColourData(*args
, **kwargs
):
2351 GetColourData(self) -> ColourData
2353 Returns a reference to the `wx.ColourData` used by the dialog.
2355 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2358 class ColourDialogPtr(ColourDialog
):
2359 def __init__(self
, this
):
2361 if not hasattr(self
,"thisown"): self
.thisown
= 0
2362 self
.__class
__ = ColourDialog
2363 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2365 class DirDialog(Dialog
):
2367 wx.DirDialog allows the user to select a directory by browising the
2371 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2372 def __init__(self
, *args
, **kwargs
):
2374 __init__(self, Window parent, String message=DirSelectorPromptStr,
2375 String defaultPath=EmptyString, long style=0,
2376 Point pos=DefaultPosition, Size size=DefaultSize,
2377 String name=DirDialogNameStr) -> DirDialog
2379 Constructor. Use ShowModal method to show the dialog.
2381 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2382 self
.this
= newobj
.this
2385 self
._setOORInfo
(self
)
2387 def GetPath(*args
, **kwargs
):
2389 GetPath(self) -> String
2391 Returns the default or user-selected path.
2393 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2395 def GetMessage(*args
, **kwargs
):
2397 GetMessage(self) -> String
2399 Returns the message that will be displayed on the dialog.
2401 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2403 def GetStyle(*args
, **kwargs
):
2405 GetStyle(self) -> long
2407 Returns the dialog style.
2409 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2411 def SetMessage(*args
, **kwargs
):
2413 SetMessage(self, String message)
2415 Sets the message that will be displayed on the dialog.
2417 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2419 def SetPath(*args
, **kwargs
):
2421 SetPath(self, String path)
2423 Sets the default path.
2425 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2428 class DirDialogPtr(DirDialog
):
2429 def __init__(self
, this
):
2431 if not hasattr(self
,"thisown"): self
.thisown
= 0
2432 self
.__class
__ = DirDialog
2433 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2435 class FileDialog(Dialog
):
2437 wx.FileDialog allows the user to select one or more files from the
2441 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2442 def __init__(self
, *args
, **kwargs
):
2444 __init__(self, Window parent, String message=FileSelectorPromptStr,
2445 String defaultDir=EmptyString, String defaultFile=EmptyString,
2446 String wildcard=FileSelectorDefaultWildcardStr,
2447 long style=0, Point pos=DefaultPosition) -> FileDialog
2449 Constructor. Use ShowModal method to show the dialog.
2451 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2452 self
.this
= newobj
.this
2455 self
._setOORInfo
(self
)
2457 def SetMessage(*args
, **kwargs
):
2459 SetMessage(self, String message)
2461 Sets the message that will be displayed on the dialog.
2463 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2465 def SetPath(*args
, **kwargs
):
2467 SetPath(self, String path)
2469 Sets the path (the combined directory and filename that will be
2470 returned when the dialog is dismissed).
2472 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2474 def SetDirectory(*args
, **kwargs
):
2476 SetDirectory(self, String dir)
2478 Sets the default directory.
2480 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2482 def SetFilename(*args
, **kwargs
):
2484 SetFilename(self, String name)
2486 Sets the default filename.
2488 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2490 def SetWildcard(*args
, **kwargs
):
2492 SetWildcard(self, String wildCard)
2494 Sets the wildcard, which can contain multiple file types, for
2497 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2500 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2502 def SetStyle(*args
, **kwargs
):
2504 SetStyle(self, long style)
2506 Sets the dialog style.
2508 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2510 def SetFilterIndex(*args
, **kwargs
):
2512 SetFilterIndex(self, int filterIndex)
2514 Sets the default filter index, starting from zero.
2516 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2518 def GetMessage(*args
, **kwargs
):
2520 GetMessage(self) -> String
2522 Returns the message that will be displayed on the dialog.
2524 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2526 def GetPath(*args
, **kwargs
):
2528 GetPath(self) -> String
2530 Returns the full path (directory and filename) of the selected file.
2532 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2534 def GetDirectory(*args
, **kwargs
):
2536 GetDirectory(self) -> String
2538 Returns the default directory.
2540 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2542 def GetFilename(*args
, **kwargs
):
2544 GetFilename(self) -> String
2546 Returns the default filename.
2548 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2550 def GetWildcard(*args
, **kwargs
):
2552 GetWildcard(self) -> String
2554 Returns the file dialog wildcard.
2556 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2558 def GetStyle(*args
, **kwargs
):
2560 GetStyle(self) -> long
2562 Returns the dialog style.
2564 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2566 def GetFilterIndex(*args
, **kwargs
):
2568 GetFilterIndex(self) -> int
2570 Returns the index into the list of filters supplied, optionally, in
2571 the wildcard parameter. Before the dialog is shown, this is the index
2572 which will be used when the dialog is first displayed. After the
2573 dialog is shown, this is the index selected by the user.
2575 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2577 def GetFilenames(*args
, **kwargs
):
2579 GetFilenames(self) -> PyObject
2581 Returns a list of filenames chosen in the dialog. This function
2582 should only be used with the dialogs which have wx.MULTIPLE style, use
2583 GetFilename for the others.
2585 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2587 def GetPaths(*args
, **kwargs
):
2589 GetPaths(self) -> PyObject
2591 Fills the array paths with the full paths of the files chosen. This
2592 function should only be used with the dialogs which have wx.MULTIPLE
2593 style, use GetPath for the others.
2595 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2598 class FileDialogPtr(FileDialog
):
2599 def __init__(self
, this
):
2601 if not hasattr(self
,"thisown"): self
.thisown
= 0
2602 self
.__class
__ = FileDialog
2603 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2605 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2606 class MultiChoiceDialog(Dialog
):
2607 """A simple dialog with a multi selection listbox."""
2609 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2610 def __init__(self
, *args
, **kwargs
):
2612 __init__(Window parent, String message, String caption,
2613 List choices=[], long style=CHOICEDLG_STYLE,
2614 Point pos=DefaultPosition) -> MultiChoiceDialog
2616 Constructor. Use ShowModal method to show the dialog.
2618 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2619 self
.this
= newobj
.this
2622 self
._setOORInfo
(self
)
2624 def SetSelections(*args
, **kwargs
):
2626 SetSelections(List selections)
2628 Specify the items in the list that should be selected, using a list of
2631 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2633 def GetSelections(*args
, **kwargs
):
2635 GetSelections() -> [selections]
2637 Returns a list of integers representing the items that are selected.
2639 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2642 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2643 def __init__(self
, this
):
2645 if not hasattr(self
,"thisown"): self
.thisown
= 0
2646 self
.__class
__ = MultiChoiceDialog
2647 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2649 class SingleChoiceDialog(Dialog
):
2650 """A simple dialog with a single selection listbox."""
2652 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2653 def __init__(self
, *args
, **kwargs
):
2655 __init__(Window parent, String message, String caption,
2656 List choices=[], long style=CHOICEDLG_STYLE,
2657 Point pos=DefaultPosition) -> SingleChoiceDialog
2659 Constructor. Use ShowModal method to show the dialog.
2661 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2662 self
.this
= newobj
.this
2665 self
._setOORInfo
(self
)
2667 def GetSelection(*args
, **kwargs
):
2669 GetSelection(self) -> int
2671 Get the index of teh currently selected item.
2673 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2675 def GetStringSelection(*args
, **kwargs
):
2677 GetStringSelection(self) -> String
2679 Returns the string value of the currently selected item
2681 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2683 def SetSelection(*args
, **kwargs
):
2685 SetSelection(self, int sel)
2687 Set the current selected item to sel
2689 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2692 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2693 def __init__(self
, this
):
2695 if not hasattr(self
,"thisown"): self
.thisown
= 0
2696 self
.__class
__ = SingleChoiceDialog
2697 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2699 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2700 class TextEntryDialog(Dialog
):
2701 """A dialog with text control, [ok] and [cancel] buttons"""
2703 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2704 def __init__(self
, *args
, **kwargs
):
2706 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2707 String defaultValue=EmptyString,
2708 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2710 Constructor. Use ShowModal method to show the dialog.
2712 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2713 self
.this
= newobj
.this
2716 self
._setOORInfo
(self
)
2718 def GetValue(*args
, **kwargs
):
2720 GetValue(self) -> String
2722 Returns the text that the user has entered if the user has pressed OK,
2723 or the original value if the user has pressed Cancel.
2725 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2727 def SetValue(*args
, **kwargs
):
2729 SetValue(self, String value)
2731 Sets the default text value.
2733 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2736 class TextEntryDialogPtr(TextEntryDialog
):
2737 def __init__(self
, this
):
2739 if not hasattr(self
,"thisown"): self
.thisown
= 0
2740 self
.__class
__ = TextEntryDialog
2741 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2743 class PasswordEntryDialog(TextEntryDialog
):
2744 """Proxy of C++ PasswordEntryDialog class"""
2746 return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2747 def __init__(self
, *args
, **kwargs
):
2749 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2750 String value=EmptyString,
2751 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2753 newobj
= _windows_
.new_PasswordEntryDialog(*args
, **kwargs
)
2754 self
.this
= newobj
.this
2758 class PasswordEntryDialogPtr(PasswordEntryDialog
):
2759 def __init__(self
, this
):
2761 if not hasattr(self
,"thisown"): self
.thisown
= 0
2762 self
.__class
__ = PasswordEntryDialog
2763 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr
)
2764 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2766 class FontData(_core
.Object
):
2768 This class holds a variety of information related to font dialogs and
2769 is used to transfer settings to and results from a `wx.FontDialog`.
2772 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2773 def __init__(self
, *args
, **kwargs
):
2775 __init__(self) -> FontData
2777 This class holds a variety of information related to font dialogs and
2778 is used to transfer settings to and results from a `wx.FontDialog`.
2780 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2781 self
.this
= newobj
.this
2784 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2787 if self
.thisown
: destroy(self
)
2790 def EnableEffects(*args
, **kwargs
):
2792 EnableEffects(self, bool enable)
2794 Enables or disables 'effects' under MS Windows only. This refers to
2795 the controls for manipulating colour, strikeout and underline
2796 properties. The default value is true.
2798 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2800 def GetAllowSymbols(*args
, **kwargs
):
2802 GetAllowSymbols(self) -> bool
2804 Under MS Windows, returns a flag determining whether symbol fonts can
2805 be selected. Has no effect on other platforms. The default value is
2808 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2810 def GetColour(*args
, **kwargs
):
2812 GetColour(self) -> Colour
2814 Gets the colour associated with the font dialog. The default value is
2817 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2819 def GetChosenFont(*args
, **kwargs
):
2821 GetChosenFont(self) -> Font
2823 Gets the font chosen by the user.
2825 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2827 def GetEnableEffects(*args
, **kwargs
):
2829 GetEnableEffects(self) -> bool
2831 Determines whether 'effects' are enabled under Windows.
2833 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2835 def GetInitialFont(*args
, **kwargs
):
2837 GetInitialFont(self) -> Font
2839 Gets the font that will be initially used by the font dialog. This
2840 should have previously been set by the application.
2842 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2844 def GetShowHelp(*args
, **kwargs
):
2846 GetShowHelp(self) -> bool
2848 Returns true if the Help button will be shown (Windows only). The
2849 default value is false.
2851 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2853 def SetAllowSymbols(*args
, **kwargs
):
2855 SetAllowSymbols(self, bool allowSymbols)
2857 Under MS Windows, determines whether symbol fonts can be selected. Has
2858 no effect on other platforms. The default value is true.
2860 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2862 def SetChosenFont(*args
, **kwargs
):
2864 SetChosenFont(self, Font font)
2866 Sets the font that will be returned to the user (normally for internal
2869 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2871 def SetColour(*args
, **kwargs
):
2873 SetColour(self, Colour colour)
2875 Sets the colour that will be used for the font foreground colour. The
2876 default colour is black.
2878 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2880 def SetInitialFont(*args
, **kwargs
):
2882 SetInitialFont(self, Font font)
2884 Sets the font that will be initially used by the font dialog.
2886 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2888 def SetRange(*args
, **kwargs
):
2890 SetRange(self, int min, int max)
2892 Sets the valid range for the font point size (Windows only). The
2893 default is 0, 0 (unrestricted range).
2895 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2897 def SetShowHelp(*args
, **kwargs
):
2899 SetShowHelp(self, bool showHelp)
2901 Determines whether the Help button will be displayed in the font
2902 dialog (Windows only). The default value is false.
2904 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2907 class FontDataPtr(FontData
):
2908 def __init__(self
, this
):
2910 if not hasattr(self
,"thisown"): self
.thisown
= 0
2911 self
.__class
__ = FontData
2912 _windows_
.FontData_swigregister(FontDataPtr
)
2914 class FontDialog(Dialog
):
2916 wx.FontDialog allows the user to select a system font and its attributes.
2922 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2923 def __init__(self
, *args
, **kwargs
):
2925 __init__(self, Window parent, FontData data) -> FontDialog
2927 Constructor. Pass a parent window and the `wx.FontData` object to be
2928 used to initialize the dialog controls. Call `ShowModal` to display
2929 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2930 results with via the `wx.FontData` returned by `GetFontData`.
2932 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2933 self
.this
= newobj
.this
2936 self
._setOORInfo
(self
)
2938 def GetFontData(*args
, **kwargs
):
2940 GetFontData(self) -> FontData
2942 Returns a reference to the internal `wx.FontData` used by the
2945 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2948 class FontDialogPtr(FontDialog
):
2949 def __init__(self
, this
):
2951 if not hasattr(self
,"thisown"): self
.thisown
= 0
2952 self
.__class
__ = FontDialog
2953 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2955 class MessageDialog(Dialog
):
2957 This class provides a simple dialog that shows a single or multi-line
2958 message, with a choice of OK, Yes, No and/or Cancel buttons.
2961 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2962 def __init__(self
, *args
, **kwargs
):
2964 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2965 long style=wxOK|wxCANCEL|wxCENTRE,
2966 Point pos=DefaultPosition) -> MessageDialog
2968 Constructor, use `ShowModal` to display the dialog.
2970 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2971 self
.this
= newobj
.this
2974 self
._setOORInfo
(self
)
2977 class MessageDialogPtr(MessageDialog
):
2978 def __init__(self
, this
):
2980 if not hasattr(self
,"thisown"): self
.thisown
= 0
2981 self
.__class
__ = MessageDialog
2982 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2984 class ProgressDialog(Frame
):
2986 A dialog that shows a short message and a progress bar. Optionally, it
2987 can display an ABORT button.
2990 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2991 def __init__(self
, *args
, **kwargs
):
2993 __init__(self, String title, String message, int maximum=100, Window parent=None,
2994 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2996 Constructor. Creates the dialog, displays it and disables user input
2997 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
3000 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
3001 self
.this
= newobj
.this
3004 self
._setOORInfo
(self
)
3006 def Update(*args
, **kwargs
):
3008 Update(self, int value, String newmsg=EmptyString) -> bool
3010 Updates the dialog, setting the progress bar to the new value and, if
3011 given changes the message above it. The value given should be less
3012 than or equal to the maximum value given to the constructor and the
3013 dialog is closed if it is equal to the maximum. Returns true unless
3014 the Cancel button has been pressed.
3016 If false is returned, the application can either immediately destroy
3017 the dialog or ask the user for the confirmation and if the abort is
3018 not confirmed the dialog may be resumed with Resume function.
3020 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
3022 def Resume(*args
, **kwargs
):
3026 Can be used to continue with the dialog, after the user had chosen to
3029 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
3032 class ProgressDialogPtr(ProgressDialog
):
3033 def __init__(self
, this
):
3035 if not hasattr(self
,"thisown"): self
.thisown
= 0
3036 self
.__class
__ = ProgressDialog
3037 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
3039 FR_DOWN
= _windows_
.FR_DOWN
3040 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
3041 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
3042 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
3043 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
3044 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
3045 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
3046 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
3047 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
3048 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
3049 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
3050 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
3051 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
3052 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
3053 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
3054 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
3055 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
3057 # For backwards compatibility. Should they be removed?
3058 EVT_COMMAND_FIND
= EVT_FIND
3059 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
3060 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
3061 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
3062 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
3064 class FindDialogEvent(_core
.CommandEvent
):
3065 """Events for the FindReplaceDialog"""
3067 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3068 def __init__(self
, *args
, **kwargs
):
3070 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3072 Events for the FindReplaceDialog
3074 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
3075 self
.this
= newobj
.this
3078 def GetFlags(*args
, **kwargs
):
3080 GetFlags(self) -> int
3082 Get the currently selected flags: this is the combination of
3083 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3085 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
3087 def GetFindString(*args
, **kwargs
):
3089 GetFindString(self) -> String
3091 Return the string to find (never empty).
3093 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
3095 def GetReplaceString(*args
, **kwargs
):
3097 GetReplaceString(self) -> String
3099 Return the string to replace the search string with (only for replace
3100 and replace all events).
3102 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
3104 def GetDialog(*args
, **kwargs
):
3106 GetDialog(self) -> FindReplaceDialog
3108 Return the pointer to the dialog which generated this event.
3110 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
3112 def SetFlags(*args
, **kwargs
):
3113 """SetFlags(self, int flags)"""
3114 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3116 def SetFindString(*args
, **kwargs
):
3117 """SetFindString(self, String str)"""
3118 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3120 def SetReplaceString(*args
, **kwargs
):
3121 """SetReplaceString(self, String str)"""
3122 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3125 class FindDialogEventPtr(FindDialogEvent
):
3126 def __init__(self
, this
):
3128 if not hasattr(self
,"thisown"): self
.thisown
= 0
3129 self
.__class
__ = FindDialogEvent
3130 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3132 class FindReplaceData(_core
.Object
):
3134 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3135 to initialize the dialog with the default values and will keep the
3136 last values from the dialog when it is closed. It is also updated each
3137 time a `wx.FindDialogEvent` is generated so instead of using the
3138 `wx.FindDialogEvent` methods you can also directly query this object.
3140 Note that all SetXXX() methods may only be called before showing the
3141 dialog and calling them has no effect later.
3144 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3145 def __init__(self
, *args
, **kwargs
):
3147 __init__(self, int flags=0) -> FindReplaceData
3149 Constuctor initializes the flags to default value (0).
3151 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3152 self
.this
= newobj
.this
3155 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3158 if self
.thisown
: destroy(self
)
3161 def GetFindString(*args
, **kwargs
):
3163 GetFindString(self) -> String
3165 Get the string to find.
3167 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3169 def GetReplaceString(*args
, **kwargs
):
3171 GetReplaceString(self) -> String
3173 Get the replacement string.
3175 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3177 def GetFlags(*args
, **kwargs
):
3179 GetFlags(self) -> int
3181 Get the combination of flag values.
3183 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3185 def SetFlags(*args
, **kwargs
):
3187 SetFlags(self, int flags)
3189 Set the flags to use to initialize the controls of the dialog.
3191 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3193 def SetFindString(*args
, **kwargs
):
3195 SetFindString(self, String str)
3197 Set the string to find (used as initial value by the dialog).
3199 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3201 def SetReplaceString(*args
, **kwargs
):
3203 SetReplaceString(self, String str)
3205 Set the replacement string (used as initial value by the dialog).
3207 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3210 class FindReplaceDataPtr(FindReplaceData
):
3211 def __init__(self
, this
):
3213 if not hasattr(self
,"thisown"): self
.thisown
= 0
3214 self
.__class
__ = FindReplaceData
3215 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3217 class FindReplaceDialog(Dialog
):
3219 wx.FindReplaceDialog is a standard modeless dialog which is used to
3220 allow the user to search for some text (and possibly replace it with
3221 something else). The actual searching is supposed to be done in the
3222 owner window which is the parent of this dialog. Note that it means
3223 that unlike for the other standard dialogs this one must have a parent
3224 window. Also note that there is no way to use this dialog in a modal
3225 way; it is always, by design and implementation, modeless.
3228 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3229 def __init__(self
, *args
, **kwargs
):
3231 __init__(self, Window parent, FindReplaceData data, String title,
3232 int style=0) -> FindReplaceDialog
3234 Create a FindReplaceDialog. The parent and data parameters must be
3235 non-None. Use Show to display the dialog.
3237 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3238 self
.this
= newobj
.this
3241 self
._setOORInfo
(self
)
3243 def Create(*args
, **kwargs
):
3245 Create(self, Window parent, FindReplaceData data, String title,
3246 int style=0) -> bool
3248 Create the dialog, for 2-phase create.
3250 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3252 def GetData(*args
, **kwargs
):
3254 GetData(self) -> FindReplaceData
3256 Get the FindReplaceData object used by this dialog.
3258 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3260 def SetData(*args
, **kwargs
):
3262 SetData(self, FindReplaceData data)
3264 Set the FindReplaceData object used by this dialog.
3266 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3269 class FindReplaceDialogPtr(FindReplaceDialog
):
3270 def __init__(self
, this
):
3272 if not hasattr(self
,"thisown"): self
.thisown
= 0
3273 self
.__class
__ = FindReplaceDialog
3274 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3276 def PreFindReplaceDialog(*args
, **kwargs
):
3278 PreFindReplaceDialog() -> FindReplaceDialog
3280 Precreate a FindReplaceDialog for 2-phase creation
3282 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3286 #---------------------------------------------------------------------------
3288 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3289 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3290 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3291 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3292 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3293 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3294 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3295 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3296 class MDIParentFrame(Frame
):
3297 """Proxy of C++ MDIParentFrame class"""
3299 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3300 def __init__(self
, *args
, **kwargs
):
3302 __init__(self, Window parent, int id=-1, String title=EmptyString,
3303 Point pos=DefaultPosition, Size size=DefaultSize,
3304 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3305 String name=FrameNameStr) -> MDIParentFrame
3307 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3308 self
.this
= newobj
.this
3311 self
._setOORInfo
(self
)
3313 def Create(*args
, **kwargs
):
3315 Create(self, Window parent, int id=-1, String title=EmptyString,
3316 Point pos=DefaultPosition, Size size=DefaultSize,
3317 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3318 String name=FrameNameStr) -> bool
3320 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3322 def ActivateNext(*args
, **kwargs
):
3323 """ActivateNext(self)"""
3324 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3326 def ActivatePrevious(*args
, **kwargs
):
3327 """ActivatePrevious(self)"""
3328 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3330 def ArrangeIcons(*args
, **kwargs
):
3331 """ArrangeIcons(self)"""
3332 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3334 def Cascade(*args
, **kwargs
):
3336 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3338 def GetActiveChild(*args
, **kwargs
):
3339 """GetActiveChild(self) -> MDIChildFrame"""
3340 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3342 def GetClientWindow(*args
, **kwargs
):
3343 """GetClientWindow(self) -> MDIClientWindow"""
3344 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3346 def GetToolBar(*args
, **kwargs
):
3347 """GetToolBar(self) -> Window"""
3348 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3350 def Tile(*args
, **kwargs
):
3352 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3355 class MDIParentFramePtr(MDIParentFrame
):
3356 def __init__(self
, this
):
3358 if not hasattr(self
,"thisown"): self
.thisown
= 0
3359 self
.__class
__ = MDIParentFrame
3360 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3362 def PreMDIParentFrame(*args
, **kwargs
):
3363 """PreMDIParentFrame() -> MDIParentFrame"""
3364 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3368 class MDIChildFrame(Frame
):
3369 """Proxy of C++ MDIChildFrame class"""
3371 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3372 def __init__(self
, *args
, **kwargs
):
3374 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3375 Point pos=DefaultPosition, Size size=DefaultSize,
3376 long style=DEFAULT_FRAME_STYLE,
3377 String name=FrameNameStr) -> MDIChildFrame
3379 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3380 self
.this
= newobj
.this
3383 self
._setOORInfo
(self
)
3385 def Create(*args
, **kwargs
):
3387 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3388 Point pos=DefaultPosition, Size size=DefaultSize,
3389 long style=DEFAULT_FRAME_STYLE,
3390 String name=FrameNameStr) -> bool
3392 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3394 def Activate(*args
, **kwargs
):
3395 """Activate(self)"""
3396 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3398 def Maximize(*args
, **kwargs
):
3399 """Maximize(self, bool maximize=True)"""
3400 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3402 def Restore(*args
, **kwargs
):
3404 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3407 class MDIChildFramePtr(MDIChildFrame
):
3408 def __init__(self
, this
):
3410 if not hasattr(self
,"thisown"): self
.thisown
= 0
3411 self
.__class
__ = MDIChildFrame
3412 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3414 def PreMDIChildFrame(*args
, **kwargs
):
3415 """PreMDIChildFrame() -> MDIChildFrame"""
3416 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3420 class MDIClientWindow(_core
.Window
):
3421 """Proxy of C++ MDIClientWindow class"""
3423 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3424 def __init__(self
, *args
, **kwargs
):
3425 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3426 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3427 self
.this
= newobj
.this
3430 self
._setOORInfo
(self
)
3432 def Create(*args
, **kwargs
):
3433 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3434 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3437 class MDIClientWindowPtr(MDIClientWindow
):
3438 def __init__(self
, this
):
3440 if not hasattr(self
,"thisown"): self
.thisown
= 0
3441 self
.__class
__ = MDIClientWindow
3442 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3444 def PreMDIClientWindow(*args
, **kwargs
):
3445 """PreMDIClientWindow() -> MDIClientWindow"""
3446 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3450 #---------------------------------------------------------------------------
3452 class PyWindow(_core
.Window
):
3453 """Proxy of C++ PyWindow class"""
3455 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3456 def __init__(self
, *args
, **kwargs
):
3458 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3459 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3461 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3462 self
.this
= newobj
.this
3465 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3467 def _setCallbackInfo(*args
, **kwargs
):
3468 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3469 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3471 def SetBestSize(*args
, **kwargs
):
3472 """SetBestSize(self, Size size)"""
3473 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3475 def base_DoMoveWindow(*args
, **kwargs
):
3476 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3477 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3479 def base_DoSetSize(*args
, **kwargs
):
3480 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3481 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3483 def base_DoSetClientSize(*args
, **kwargs
):
3484 """base_DoSetClientSize(self, int width, int height)"""
3485 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3487 def base_DoSetVirtualSize(*args
, **kwargs
):
3488 """base_DoSetVirtualSize(self, int x, int y)"""
3489 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3491 def base_DoGetSize(*args
, **kwargs
):
3492 """base_DoGetSize() -> (width, height)"""
3493 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3495 def base_DoGetClientSize(*args
, **kwargs
):
3496 """base_DoGetClientSize() -> (width, height)"""
3497 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3499 def base_DoGetPosition(*args
, **kwargs
):
3500 """base_DoGetPosition() -> (x,y)"""
3501 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3503 def base_DoGetVirtualSize(*args
, **kwargs
):
3504 """base_DoGetVirtualSize(self) -> Size"""
3505 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3507 def base_DoGetBestSize(*args
, **kwargs
):
3508 """base_DoGetBestSize(self) -> Size"""
3509 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3511 def base_InitDialog(*args
, **kwargs
):
3512 """base_InitDialog(self)"""
3513 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3515 def base_TransferDataToWindow(*args
, **kwargs
):
3516 """base_TransferDataToWindow(self) -> bool"""
3517 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3519 def base_TransferDataFromWindow(*args
, **kwargs
):
3520 """base_TransferDataFromWindow(self) -> bool"""
3521 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3523 def base_Validate(*args
, **kwargs
):
3524 """base_Validate(self) -> bool"""
3525 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3527 def base_AcceptsFocus(*args
, **kwargs
):
3528 """base_AcceptsFocus(self) -> bool"""
3529 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3531 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3532 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3533 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3535 def base_GetMaxSize(*args
, **kwargs
):
3536 """base_GetMaxSize(self) -> Size"""
3537 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3539 def base_AddChild(*args
, **kwargs
):
3540 """base_AddChild(self, Window child)"""
3541 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3543 def base_RemoveChild(*args
, **kwargs
):
3544 """base_RemoveChild(self, Window child)"""
3545 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3547 def base_ShouldInheritColours(*args
, **kwargs
):
3548 """base_ShouldInheritColours(self) -> bool"""
3549 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3551 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3552 """base_ApplyParentThemeBackground(self, Colour c)"""
3553 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3555 def base_GetDefaultAttributes(*args
, **kwargs
):
3556 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3557 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3560 class PyWindowPtr(PyWindow
):
3561 def __init__(self
, this
):
3563 if not hasattr(self
,"thisown"): self
.thisown
= 0
3564 self
.__class
__ = PyWindow
3565 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3567 def PrePyWindow(*args
, **kwargs
):
3568 """PrePyWindow() -> PyWindow"""
3569 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3573 class PyPanel(Panel
):
3574 """Proxy of C++ PyPanel class"""
3576 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3577 def __init__(self
, *args
, **kwargs
):
3579 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3580 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3582 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3583 self
.this
= newobj
.this
3586 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3588 def _setCallbackInfo(*args
, **kwargs
):
3589 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3590 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3592 def SetBestSize(*args
, **kwargs
):
3593 """SetBestSize(self, Size size)"""
3594 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3596 def base_DoMoveWindow(*args
, **kwargs
):
3597 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3598 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3600 def base_DoSetSize(*args
, **kwargs
):
3601 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3602 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3604 def base_DoSetClientSize(*args
, **kwargs
):
3605 """base_DoSetClientSize(self, int width, int height)"""
3606 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3608 def base_DoSetVirtualSize(*args
, **kwargs
):
3609 """base_DoSetVirtualSize(self, int x, int y)"""
3610 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3612 def base_DoGetSize(*args
, **kwargs
):
3613 """base_DoGetSize() -> (width, height)"""
3614 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3616 def base_DoGetClientSize(*args
, **kwargs
):
3617 """base_DoGetClientSize() -> (width, height)"""
3618 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3620 def base_DoGetPosition(*args
, **kwargs
):
3621 """base_DoGetPosition() -> (x,y)"""
3622 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3624 def base_DoGetVirtualSize(*args
, **kwargs
):
3625 """base_DoGetVirtualSize(self) -> Size"""
3626 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3628 def base_DoGetBestSize(*args
, **kwargs
):
3629 """base_DoGetBestSize(self) -> Size"""
3630 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3632 def base_InitDialog(*args
, **kwargs
):
3633 """base_InitDialog(self)"""
3634 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3636 def base_TransferDataToWindow(*args
, **kwargs
):
3637 """base_TransferDataToWindow(self) -> bool"""
3638 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3640 def base_TransferDataFromWindow(*args
, **kwargs
):
3641 """base_TransferDataFromWindow(self) -> bool"""
3642 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3644 def base_Validate(*args
, **kwargs
):
3645 """base_Validate(self) -> bool"""
3646 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3648 def base_AcceptsFocus(*args
, **kwargs
):
3649 """base_AcceptsFocus(self) -> bool"""
3650 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3652 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3653 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3654 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3656 def base_GetMaxSize(*args
, **kwargs
):
3657 """base_GetMaxSize(self) -> Size"""
3658 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3660 def base_AddChild(*args
, **kwargs
):
3661 """base_AddChild(self, Window child)"""
3662 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3664 def base_RemoveChild(*args
, **kwargs
):
3665 """base_RemoveChild(self, Window child)"""
3666 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3668 def base_ShouldInheritColours(*args
, **kwargs
):
3669 """base_ShouldInheritColours(self) -> bool"""
3670 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3672 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3673 """base_ApplyParentThemeBackground(self, Colour c)"""
3674 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3676 def base_GetDefaultAttributes(*args
, **kwargs
):
3677 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3678 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3681 class PyPanelPtr(PyPanel
):
3682 def __init__(self
, this
):
3684 if not hasattr(self
,"thisown"): self
.thisown
= 0
3685 self
.__class
__ = PyPanel
3686 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3688 def PrePyPanel(*args
, **kwargs
):
3689 """PrePyPanel() -> PyPanel"""
3690 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3694 class PyScrolledWindow(ScrolledWindow
):
3695 """Proxy of C++ PyScrolledWindow class"""
3697 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3698 def __init__(self
, *args
, **kwargs
):
3700 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3701 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3703 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3704 self
.this
= newobj
.this
3707 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3709 def _setCallbackInfo(*args
, **kwargs
):
3710 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3711 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3713 def SetBestSize(*args
, **kwargs
):
3714 """SetBestSize(self, Size size)"""
3715 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3717 def base_DoMoveWindow(*args
, **kwargs
):
3718 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3719 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3721 def base_DoSetSize(*args
, **kwargs
):
3722 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3723 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3725 def base_DoSetClientSize(*args
, **kwargs
):
3726 """base_DoSetClientSize(self, int width, int height)"""
3727 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3729 def base_DoSetVirtualSize(*args
, **kwargs
):
3730 """base_DoSetVirtualSize(self, int x, int y)"""
3731 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3733 def base_DoGetSize(*args
, **kwargs
):
3734 """base_DoGetSize() -> (width, height)"""
3735 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3737 def base_DoGetClientSize(*args
, **kwargs
):
3738 """base_DoGetClientSize() -> (width, height)"""
3739 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3741 def base_DoGetPosition(*args
, **kwargs
):
3742 """base_DoGetPosition() -> (x,y)"""
3743 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3745 def base_DoGetVirtualSize(*args
, **kwargs
):
3746 """base_DoGetVirtualSize(self) -> Size"""
3747 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3749 def base_DoGetBestSize(*args
, **kwargs
):
3750 """base_DoGetBestSize(self) -> Size"""
3751 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3753 def base_InitDialog(*args
, **kwargs
):
3754 """base_InitDialog(self)"""
3755 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3757 def base_TransferDataToWindow(*args
, **kwargs
):
3758 """base_TransferDataToWindow(self) -> bool"""
3759 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3761 def base_TransferDataFromWindow(*args
, **kwargs
):
3762 """base_TransferDataFromWindow(self) -> bool"""
3763 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3765 def base_Validate(*args
, **kwargs
):
3766 """base_Validate(self) -> bool"""
3767 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3769 def base_AcceptsFocus(*args
, **kwargs
):
3770 """base_AcceptsFocus(self) -> bool"""
3771 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3773 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3774 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3775 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3777 def base_GetMaxSize(*args
, **kwargs
):
3778 """base_GetMaxSize(self) -> Size"""
3779 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3781 def base_AddChild(*args
, **kwargs
):
3782 """base_AddChild(self, Window child)"""
3783 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3785 def base_RemoveChild(*args
, **kwargs
):
3786 """base_RemoveChild(self, Window child)"""
3787 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3789 def base_ShouldInheritColours(*args
, **kwargs
):
3790 """base_ShouldInheritColours(self) -> bool"""
3791 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3793 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3794 """base_ApplyParentThemeBackground(self, Colour c)"""
3795 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3797 def base_GetDefaultAttributes(*args
, **kwargs
):
3798 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3799 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3802 class PyScrolledWindowPtr(PyScrolledWindow
):
3803 def __init__(self
, this
):
3805 if not hasattr(self
,"thisown"): self
.thisown
= 0
3806 self
.__class
__ = PyScrolledWindow
3807 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3809 def PrePyScrolledWindow(*args
, **kwargs
):
3810 """PrePyScrolledWindow() -> PyScrolledWindow"""
3811 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3815 #---------------------------------------------------------------------------
3817 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3818 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3819 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3820 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3821 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3822 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3823 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3824 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3825 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3826 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3827 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3828 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3829 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3830 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3831 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3832 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3833 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3834 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3835 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3836 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3837 class PrintData(_core
.Object
):
3838 """Proxy of C++ PrintData class"""
3840 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3841 def __init__(self
, *args
):
3843 __init__(self) -> PrintData
3844 __init__(self, PrintData data) -> PrintData
3846 newobj
= _windows_
.new_PrintData(*args
)
3847 self
.this
= newobj
.this
3850 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3853 if self
.thisown
: destroy(self
)
3856 def GetNoCopies(*args
, **kwargs
):
3857 """GetNoCopies(self) -> int"""
3858 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3860 def GetCollate(*args
, **kwargs
):
3861 """GetCollate(self) -> bool"""
3862 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3864 def GetOrientation(*args
, **kwargs
):
3865 """GetOrientation(self) -> int"""
3866 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3868 def Ok(*args
, **kwargs
):
3869 """Ok(self) -> bool"""
3870 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3872 def GetPrinterName(*args
, **kwargs
):
3873 """GetPrinterName(self) -> String"""
3874 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3876 def GetColour(*args
, **kwargs
):
3877 """GetColour(self) -> bool"""
3878 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3880 def GetDuplex(*args
, **kwargs
):
3881 """GetDuplex(self) -> int"""
3882 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3884 def GetPaperId(*args
, **kwargs
):
3885 """GetPaperId(self) -> int"""
3886 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3888 def GetPaperSize(*args
, **kwargs
):
3889 """GetPaperSize(self) -> Size"""
3890 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3892 def GetQuality(*args
, **kwargs
):
3893 """GetQuality(self) -> int"""
3894 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3896 def GetBin(*args
, **kwargs
):
3897 """GetBin(self) -> int"""
3898 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3900 def GetPrintMode(*args
, **kwargs
):
3901 """GetPrintMode(self) -> int"""
3902 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3904 def SetNoCopies(*args
, **kwargs
):
3905 """SetNoCopies(self, int v)"""
3906 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3908 def SetCollate(*args
, **kwargs
):
3909 """SetCollate(self, bool flag)"""
3910 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3912 def SetOrientation(*args
, **kwargs
):
3913 """SetOrientation(self, int orient)"""
3914 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3916 def SetPrinterName(*args
, **kwargs
):
3917 """SetPrinterName(self, String name)"""
3918 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3920 def SetColour(*args
, **kwargs
):
3921 """SetColour(self, bool colour)"""
3922 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3924 def SetDuplex(*args
, **kwargs
):
3925 """SetDuplex(self, int duplex)"""
3926 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3928 def SetPaperId(*args
, **kwargs
):
3929 """SetPaperId(self, int sizeId)"""
3930 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3932 def SetPaperSize(*args
, **kwargs
):
3933 """SetPaperSize(self, Size sz)"""
3934 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3936 def SetQuality(*args
, **kwargs
):
3937 """SetQuality(self, int quality)"""
3938 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3940 def SetBin(*args
, **kwargs
):
3941 """SetBin(self, int bin)"""
3942 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3944 def SetPrintMode(*args
, **kwargs
):
3945 """SetPrintMode(self, int printMode)"""
3946 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3948 def GetFilename(*args
, **kwargs
):
3949 """GetFilename(self) -> String"""
3950 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3952 def SetFilename(*args
, **kwargs
):
3953 """SetFilename(self, String filename)"""
3954 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3956 def __nonzero__(self
): return self
.Ok()
3957 def GetPrinterCommand(*args
, **kwargs
):
3958 """GetPrinterCommand(self) -> String"""
3959 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3961 def GetPrinterOptions(*args
, **kwargs
):
3962 """GetPrinterOptions(self) -> String"""
3963 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3965 def GetPreviewCommand(*args
, **kwargs
):
3966 """GetPreviewCommand(self) -> String"""
3967 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3969 def GetFontMetricPath(*args
, **kwargs
):
3970 """GetFontMetricPath(self) -> String"""
3971 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3973 def GetPrinterScaleX(*args
, **kwargs
):
3974 """GetPrinterScaleX(self) -> double"""
3975 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3977 def GetPrinterScaleY(*args
, **kwargs
):
3978 """GetPrinterScaleY(self) -> double"""
3979 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3981 def GetPrinterTranslateX(*args
, **kwargs
):
3982 """GetPrinterTranslateX(self) -> long"""
3983 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3985 def GetPrinterTranslateY(*args
, **kwargs
):
3986 """GetPrinterTranslateY(self) -> long"""
3987 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3989 def SetPrinterCommand(*args
, **kwargs
):
3990 """SetPrinterCommand(self, String command)"""
3991 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3993 def SetPrinterOptions(*args
, **kwargs
):
3994 """SetPrinterOptions(self, String options)"""
3995 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3997 def SetPreviewCommand(*args
, **kwargs
):
3998 """SetPreviewCommand(self, String command)"""
3999 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
4001 def SetFontMetricPath(*args
, **kwargs
):
4002 """SetFontMetricPath(self, String path)"""
4003 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
4005 def SetPrinterScaleX(*args
, **kwargs
):
4006 """SetPrinterScaleX(self, double x)"""
4007 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
4009 def SetPrinterScaleY(*args
, **kwargs
):
4010 """SetPrinterScaleY(self, double y)"""
4011 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
4013 def SetPrinterScaling(*args
, **kwargs
):
4014 """SetPrinterScaling(self, double x, double y)"""
4015 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
4017 def SetPrinterTranslateX(*args
, **kwargs
):
4018 """SetPrinterTranslateX(self, long x)"""
4019 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
4021 def SetPrinterTranslateY(*args
, **kwargs
):
4022 """SetPrinterTranslateY(self, long y)"""
4023 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
4025 def SetPrinterTranslation(*args
, **kwargs
):
4026 """SetPrinterTranslation(self, long x, long y)"""
4027 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
4030 class PrintDataPtr(PrintData
):
4031 def __init__(self
, this
):
4033 if not hasattr(self
,"thisown"): self
.thisown
= 0
4034 self
.__class
__ = PrintData
4035 _windows_
.PrintData_swigregister(PrintDataPtr
)
4036 PrintoutTitleStr
= cvar
.PrintoutTitleStr
4037 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
4039 class PageSetupDialogData(_core
.Object
):
4040 """Proxy of C++ PageSetupDialogData class"""
4042 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4043 def __init__(self
, *args
):
4045 __init__(self) -> PageSetupDialogData
4046 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
4048 newobj
= _windows_
.new_PageSetupDialogData(*args
)
4049 self
.this
= newobj
.this
4052 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
4055 if self
.thisown
: destroy(self
)
4058 def EnableHelp(*args
, **kwargs
):
4059 """EnableHelp(self, bool flag)"""
4060 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
4062 def EnableMargins(*args
, **kwargs
):
4063 """EnableMargins(self, bool flag)"""
4064 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
4066 def EnableOrientation(*args
, **kwargs
):
4067 """EnableOrientation(self, bool flag)"""
4068 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
4070 def EnablePaper(*args
, **kwargs
):
4071 """EnablePaper(self, bool flag)"""
4072 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
4074 def EnablePrinter(*args
, **kwargs
):
4075 """EnablePrinter(self, bool flag)"""
4076 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
4078 def GetDefaultMinMargins(*args
, **kwargs
):
4079 """GetDefaultMinMargins(self) -> bool"""
4080 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
4082 def GetEnableMargins(*args
, **kwargs
):
4083 """GetEnableMargins(self) -> bool"""
4084 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
4086 def GetEnableOrientation(*args
, **kwargs
):
4087 """GetEnableOrientation(self) -> bool"""
4088 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4090 def GetEnablePaper(*args
, **kwargs
):
4091 """GetEnablePaper(self) -> bool"""
4092 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4094 def GetEnablePrinter(*args
, **kwargs
):
4095 """GetEnablePrinter(self) -> bool"""
4096 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4098 def GetEnableHelp(*args
, **kwargs
):
4099 """GetEnableHelp(self) -> bool"""
4100 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4102 def GetDefaultInfo(*args
, **kwargs
):
4103 """GetDefaultInfo(self) -> bool"""
4104 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4106 def GetMarginTopLeft(*args
, **kwargs
):
4107 """GetMarginTopLeft(self) -> Point"""
4108 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4110 def GetMarginBottomRight(*args
, **kwargs
):
4111 """GetMarginBottomRight(self) -> Point"""
4112 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4114 def GetMinMarginTopLeft(*args
, **kwargs
):
4115 """GetMinMarginTopLeft(self) -> Point"""
4116 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4118 def GetMinMarginBottomRight(*args
, **kwargs
):
4119 """GetMinMarginBottomRight(self) -> Point"""
4120 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4122 def GetPaperId(*args
, **kwargs
):
4123 """GetPaperId(self) -> int"""
4124 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4126 def GetPaperSize(*args
, **kwargs
):
4127 """GetPaperSize(self) -> Size"""
4128 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4130 def GetPrintData(*args
, **kwargs
):
4131 """GetPrintData(self) -> PrintData"""
4132 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4134 def Ok(*args
, **kwargs
):
4135 """Ok(self) -> bool"""
4136 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4138 def SetDefaultInfo(*args
, **kwargs
):
4139 """SetDefaultInfo(self, bool flag)"""
4140 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4142 def SetDefaultMinMargins(*args
, **kwargs
):
4143 """SetDefaultMinMargins(self, bool flag)"""
4144 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4146 def SetMarginTopLeft(*args
, **kwargs
):
4147 """SetMarginTopLeft(self, Point pt)"""
4148 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4150 def SetMarginBottomRight(*args
, **kwargs
):
4151 """SetMarginBottomRight(self, Point pt)"""
4152 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4154 def SetMinMarginTopLeft(*args
, **kwargs
):
4155 """SetMinMarginTopLeft(self, Point pt)"""
4156 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4158 def SetMinMarginBottomRight(*args
, **kwargs
):
4159 """SetMinMarginBottomRight(self, Point pt)"""
4160 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4162 def SetPaperId(*args
, **kwargs
):
4163 """SetPaperId(self, int id)"""
4164 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4166 def SetPaperSize(*args
, **kwargs
):
4167 """SetPaperSize(self, Size size)"""
4168 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4170 def SetPrintData(*args
, **kwargs
):
4171 """SetPrintData(self, PrintData printData)"""
4172 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4174 def __nonzero__(self
): return self
.Ok()
4176 class PageSetupDialogDataPtr(PageSetupDialogData
):
4177 def __init__(self
, this
):
4179 if not hasattr(self
,"thisown"): self
.thisown
= 0
4180 self
.__class
__ = PageSetupDialogData
4181 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4183 class PageSetupDialog(_core
.Object
):
4184 """Proxy of C++ PageSetupDialog class"""
4186 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4187 def __init__(self
, *args
, **kwargs
):
4188 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4189 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4190 self
.this
= newobj
.this
4193 def GetPageSetupData(*args
, **kwargs
):
4194 """GetPageSetupData(self) -> PageSetupDialogData"""
4195 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4197 def GetPageSetupDialogData(*args
, **kwargs
):
4198 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4199 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4201 def ShowModal(*args
, **kwargs
):
4202 """ShowModal(self) -> int"""
4203 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4206 class PageSetupDialogPtr(PageSetupDialog
):
4207 def __init__(self
, this
):
4209 if not hasattr(self
,"thisown"): self
.thisown
= 0
4210 self
.__class
__ = PageSetupDialog
4211 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4213 class PrintDialogData(_core
.Object
):
4214 """Proxy of C++ PrintDialogData class"""
4216 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4217 def __init__(self
, *args
):
4219 __init__(self) -> PrintDialogData
4220 __init__(self, PrintData printData) -> PrintDialogData
4222 newobj
= _windows_
.new_PrintDialogData(*args
)
4223 self
.this
= newobj
.this
4226 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4229 if self
.thisown
: destroy(self
)
4232 def GetFromPage(*args
, **kwargs
):
4233 """GetFromPage(self) -> int"""
4234 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4236 def GetToPage(*args
, **kwargs
):
4237 """GetToPage(self) -> int"""
4238 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4240 def GetMinPage(*args
, **kwargs
):
4241 """GetMinPage(self) -> int"""
4242 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4244 def GetMaxPage(*args
, **kwargs
):
4245 """GetMaxPage(self) -> int"""
4246 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4248 def GetNoCopies(*args
, **kwargs
):
4249 """GetNoCopies(self) -> int"""
4250 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4252 def GetAllPages(*args
, **kwargs
):
4253 """GetAllPages(self) -> bool"""
4254 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4256 def GetSelection(*args
, **kwargs
):
4257 """GetSelection(self) -> bool"""
4258 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4260 def GetCollate(*args
, **kwargs
):
4261 """GetCollate(self) -> bool"""
4262 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4264 def GetPrintToFile(*args
, **kwargs
):
4265 """GetPrintToFile(self) -> bool"""
4266 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4268 def GetSetupDialog(*args
, **kwargs
):
4269 """GetSetupDialog(self) -> bool"""
4270 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4272 def SetSetupDialog(*args
, **kwargs
):
4273 """SetSetupDialog(self, bool flag)"""
4274 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4276 def SetFromPage(*args
, **kwargs
):
4277 """SetFromPage(self, int v)"""
4278 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4280 def SetToPage(*args
, **kwargs
):
4281 """SetToPage(self, int v)"""
4282 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4284 def SetMinPage(*args
, **kwargs
):
4285 """SetMinPage(self, int v)"""
4286 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4288 def SetMaxPage(*args
, **kwargs
):
4289 """SetMaxPage(self, int v)"""
4290 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4292 def SetNoCopies(*args
, **kwargs
):
4293 """SetNoCopies(self, int v)"""
4294 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4296 def SetAllPages(*args
, **kwargs
):
4297 """SetAllPages(self, bool flag)"""
4298 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4300 def SetSelection(*args
, **kwargs
):
4301 """SetSelection(self, bool flag)"""
4302 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4304 def SetCollate(*args
, **kwargs
):
4305 """SetCollate(self, bool flag)"""
4306 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4308 def SetPrintToFile(*args
, **kwargs
):
4309 """SetPrintToFile(self, bool flag)"""
4310 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4312 def EnablePrintToFile(*args
, **kwargs
):
4313 """EnablePrintToFile(self, bool flag)"""
4314 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4316 def EnableSelection(*args
, **kwargs
):
4317 """EnableSelection(self, bool flag)"""
4318 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4320 def EnablePageNumbers(*args
, **kwargs
):
4321 """EnablePageNumbers(self, bool flag)"""
4322 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4324 def EnableHelp(*args
, **kwargs
):
4325 """EnableHelp(self, bool flag)"""
4326 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4328 def GetEnablePrintToFile(*args
, **kwargs
):
4329 """GetEnablePrintToFile(self) -> bool"""
4330 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4332 def GetEnableSelection(*args
, **kwargs
):
4333 """GetEnableSelection(self) -> bool"""
4334 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4336 def GetEnablePageNumbers(*args
, **kwargs
):
4337 """GetEnablePageNumbers(self) -> bool"""
4338 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4340 def GetEnableHelp(*args
, **kwargs
):
4341 """GetEnableHelp(self) -> bool"""
4342 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4344 def Ok(*args
, **kwargs
):
4345 """Ok(self) -> bool"""
4346 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4348 def GetPrintData(*args
, **kwargs
):
4349 """GetPrintData(self) -> PrintData"""
4350 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4352 def SetPrintData(*args
, **kwargs
):
4353 """SetPrintData(self, PrintData printData)"""
4354 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4356 def __nonzero__(self
): return self
.Ok()
4358 class PrintDialogDataPtr(PrintDialogData
):
4359 def __init__(self
, this
):
4361 if not hasattr(self
,"thisown"): self
.thisown
= 0
4362 self
.__class
__ = PrintDialogData
4363 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4365 class PrintDialog(_core
.Object
):
4366 """Proxy of C++ PrintDialog class"""
4368 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4369 def __init__(self
, *args
, **kwargs
):
4370 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4371 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4372 self
.this
= newobj
.this
4375 def ShowModal(*args
, **kwargs
):
4376 """ShowModal(self) -> int"""
4377 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4379 def GetPrintDialogData(*args
, **kwargs
):
4380 """GetPrintDialogData(self) -> PrintDialogData"""
4381 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4383 def GetPrintData(*args
, **kwargs
):
4384 """GetPrintData(self) -> PrintData"""
4385 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4387 def GetPrintDC(*args
, **kwargs
):
4388 """GetPrintDC(self) -> DC"""
4389 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4392 class PrintDialogPtr(PrintDialog
):
4393 def __init__(self
, this
):
4395 if not hasattr(self
,"thisown"): self
.thisown
= 0
4396 self
.__class
__ = PrintDialog
4397 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4399 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4400 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4401 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4402 class Printer(_core
.Object
):
4403 """Proxy of C++ Printer class"""
4405 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4406 def __init__(self
, *args
, **kwargs
):
4407 """__init__(self, PrintDialogData data=None) -> Printer"""
4408 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4409 self
.this
= newobj
.this
4412 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4415 if self
.thisown
: destroy(self
)
4418 def CreateAbortWindow(*args
, **kwargs
):
4419 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4420 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4422 def ReportError(*args
, **kwargs
):
4423 """ReportError(self, Window parent, Printout printout, String message)"""
4424 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4426 def Setup(*args
, **kwargs
):
4427 """Setup(self, Window parent) -> bool"""
4428 return _windows_
.Printer_Setup(*args
, **kwargs
)
4430 def Print(*args
, **kwargs
):
4431 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4432 return _windows_
.Printer_Print(*args
, **kwargs
)
4434 def PrintDialog(*args
, **kwargs
):
4435 """PrintDialog(self, Window parent) -> DC"""
4436 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4438 def GetPrintDialogData(*args
, **kwargs
):
4439 """GetPrintDialogData(self) -> PrintDialogData"""
4440 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4442 def GetAbort(*args
, **kwargs
):
4443 """GetAbort(self) -> bool"""
4444 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4446 def GetLastError(*args
, **kwargs
):
4447 """GetLastError() -> int"""
4448 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4450 GetLastError
= staticmethod(GetLastError
)
4452 class PrinterPtr(Printer
):
4453 def __init__(self
, this
):
4455 if not hasattr(self
,"thisown"): self
.thisown
= 0
4456 self
.__class
__ = Printer
4457 _windows_
.Printer_swigregister(PrinterPtr
)
4459 def Printer_GetLastError(*args
, **kwargs
):
4460 """Printer_GetLastError() -> int"""
4461 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4463 class Printout(_core
.Object
):
4464 """Proxy of C++ Printout class"""
4466 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4467 def __init__(self
, *args
, **kwargs
):
4468 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4469 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4470 self
.this
= newobj
.this
4473 self
._setCallbackInfo
(self
, Printout
)
4475 def _setCallbackInfo(*args
, **kwargs
):
4476 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4477 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4479 def GetTitle(*args
, **kwargs
):
4480 """GetTitle(self) -> String"""
4481 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4483 def GetDC(*args
, **kwargs
):
4484 """GetDC(self) -> DC"""
4485 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4487 def SetDC(*args
, **kwargs
):
4488 """SetDC(self, DC dc)"""
4489 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4491 def SetPageSizePixels(*args
, **kwargs
):
4492 """SetPageSizePixels(self, int w, int h)"""
4493 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4495 def GetPageSizePixels(*args
, **kwargs
):
4496 """GetPageSizePixels() -> (w, h)"""
4497 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4499 def SetPageSizeMM(*args
, **kwargs
):
4500 """SetPageSizeMM(self, int w, int h)"""
4501 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4503 def GetPageSizeMM(*args
, **kwargs
):
4504 """GetPageSizeMM() -> (w, h)"""
4505 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4507 def SetPPIScreen(*args
, **kwargs
):
4508 """SetPPIScreen(self, int x, int y)"""
4509 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4511 def GetPPIScreen(*args
, **kwargs
):
4512 """GetPPIScreen() -> (x,y)"""
4513 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4515 def SetPPIPrinter(*args
, **kwargs
):
4516 """SetPPIPrinter(self, int x, int y)"""
4517 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4519 def GetPPIPrinter(*args
, **kwargs
):
4520 """GetPPIPrinter() -> (x,y)"""
4521 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4523 def IsPreview(*args
, **kwargs
):
4524 """IsPreview(self) -> bool"""
4525 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4527 def SetIsPreview(*args
, **kwargs
):
4528 """SetIsPreview(self, bool p)"""
4529 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4531 def base_OnBeginDocument(*args
, **kwargs
):
4532 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4533 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4535 def base_OnEndDocument(*args
, **kwargs
):
4536 """base_OnEndDocument(self)"""
4537 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4539 def base_OnBeginPrinting(*args
, **kwargs
):
4540 """base_OnBeginPrinting(self)"""
4541 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4543 def base_OnEndPrinting(*args
, **kwargs
):
4544 """base_OnEndPrinting(self)"""
4545 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4547 def base_OnPreparePrinting(*args
, **kwargs
):
4548 """base_OnPreparePrinting(self)"""
4549 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4551 def base_HasPage(*args
, **kwargs
):
4552 """base_HasPage(self, int page) -> bool"""
4553 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4555 def base_GetPageInfo(*args
, **kwargs
):
4556 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4557 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4560 class PrintoutPtr(Printout
):
4561 def __init__(self
, this
):
4563 if not hasattr(self
,"thisown"): self
.thisown
= 0
4564 self
.__class
__ = Printout
4565 _windows_
.Printout_swigregister(PrintoutPtr
)
4567 class PreviewCanvas(ScrolledWindow
):
4568 """Proxy of C++ PreviewCanvas class"""
4570 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4571 def __init__(self
, *args
, **kwargs
):
4573 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4574 Size size=DefaultSize, long style=0,
4575 String name=PreviewCanvasNameStr) -> PreviewCanvas
4577 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4578 self
.this
= newobj
.this
4581 self
._setOORInfo
(self
)
4584 class PreviewCanvasPtr(PreviewCanvas
):
4585 def __init__(self
, this
):
4587 if not hasattr(self
,"thisown"): self
.thisown
= 0
4588 self
.__class
__ = PreviewCanvas
4589 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4591 class PreviewFrame(Frame
):
4592 """Proxy of C++ PreviewFrame class"""
4594 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4595 def __init__(self
, *args
, **kwargs
):
4597 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4598 Size size=DefaultSize,
4599 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4601 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4602 self
.this
= newobj
.this
4605 self
._setOORInfo
(self
)
4607 def Initialize(*args
, **kwargs
):
4608 """Initialize(self)"""
4609 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4611 def CreateControlBar(*args
, **kwargs
):
4612 """CreateControlBar(self)"""
4613 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4615 def CreateCanvas(*args
, **kwargs
):
4616 """CreateCanvas(self)"""
4617 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4619 def GetControlBar(*args
, **kwargs
):
4620 """GetControlBar(self) -> PreviewControlBar"""
4621 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4624 class PreviewFramePtr(PreviewFrame
):
4625 def __init__(self
, this
):
4627 if not hasattr(self
,"thisown"): self
.thisown
= 0
4628 self
.__class
__ = PreviewFrame
4629 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4631 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4632 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4633 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4634 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4635 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4636 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4637 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4638 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4639 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4640 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4641 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4642 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4643 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4644 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4645 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4646 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4647 class PreviewControlBar(Panel
):
4648 """Proxy of C++ PreviewControlBar class"""
4650 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4651 def __init__(self
, *args
, **kwargs
):
4653 __init__(self, PrintPreview preview, long buttons, Window parent,
4654 Point pos=DefaultPosition, Size size=DefaultSize,
4655 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4657 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4658 self
.this
= newobj
.this
4661 self
._setOORInfo
(self
)
4663 def GetZoomControl(*args
, **kwargs
):
4664 """GetZoomControl(self) -> int"""
4665 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4667 def SetZoomControl(*args
, **kwargs
):
4668 """SetZoomControl(self, int zoom)"""
4669 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4671 def GetPrintPreview(*args
, **kwargs
):
4672 """GetPrintPreview(self) -> PrintPreview"""
4673 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4675 def OnNext(*args
, **kwargs
):
4677 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4679 def OnPrevious(*args
, **kwargs
):
4680 """OnPrevious(self)"""
4681 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4683 def OnFirst(*args
, **kwargs
):
4685 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4687 def OnLast(*args
, **kwargs
):
4689 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4691 def OnGoto(*args
, **kwargs
):
4693 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4696 class PreviewControlBarPtr(PreviewControlBar
):
4697 def __init__(self
, this
):
4699 if not hasattr(self
,"thisown"): self
.thisown
= 0
4700 self
.__class
__ = PreviewControlBar
4701 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4703 class PrintPreview(_core
.Object
):
4704 """Proxy of C++ PrintPreview class"""
4706 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4707 def __init__(self
, *args
):
4709 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4710 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4712 newobj
= _windows_
.new_PrintPreview(*args
)
4713 self
.this
= newobj
.this
4716 def SetCurrentPage(*args
, **kwargs
):
4717 """SetCurrentPage(self, int pageNum) -> bool"""
4718 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4720 def GetCurrentPage(*args
, **kwargs
):
4721 """GetCurrentPage(self) -> int"""
4722 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4724 def SetPrintout(*args
, **kwargs
):
4725 """SetPrintout(self, Printout printout)"""
4726 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4728 def GetPrintout(*args
, **kwargs
):
4729 """GetPrintout(self) -> Printout"""
4730 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4732 def GetPrintoutForPrinting(*args
, **kwargs
):
4733 """GetPrintoutForPrinting(self) -> Printout"""
4734 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4736 def SetFrame(*args
, **kwargs
):
4737 """SetFrame(self, Frame frame)"""
4738 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4740 def SetCanvas(*args
, **kwargs
):
4741 """SetCanvas(self, PreviewCanvas canvas)"""
4742 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4744 def GetFrame(*args
, **kwargs
):
4745 """GetFrame(self) -> Frame"""
4746 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4748 def GetCanvas(*args
, **kwargs
):
4749 """GetCanvas(self) -> PreviewCanvas"""
4750 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4752 def PaintPage(*args
, **kwargs
):
4753 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4754 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4756 def DrawBlankPage(*args
, **kwargs
):
4757 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4758 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4760 def RenderPage(*args
, **kwargs
):
4761 """RenderPage(self, int pageNum) -> bool"""
4762 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4764 def AdjustScrollbars(*args
, **kwargs
):
4765 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4766 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4768 def GetPrintDialogData(*args
, **kwargs
):
4769 """GetPrintDialogData(self) -> PrintDialogData"""
4770 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4772 def SetZoom(*args
, **kwargs
):
4773 """SetZoom(self, int percent)"""
4774 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4776 def GetZoom(*args
, **kwargs
):
4777 """GetZoom(self) -> int"""
4778 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4780 def GetMaxPage(*args
, **kwargs
):
4781 """GetMaxPage(self) -> int"""
4782 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4784 def GetMinPage(*args
, **kwargs
):
4785 """GetMinPage(self) -> int"""
4786 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4788 def Ok(*args
, **kwargs
):
4789 """Ok(self) -> bool"""
4790 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4792 def SetOk(*args
, **kwargs
):
4793 """SetOk(self, bool ok)"""
4794 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4796 def Print(*args
, **kwargs
):
4797 """Print(self, bool interactive) -> bool"""
4798 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4800 def DetermineScaling(*args
, **kwargs
):
4801 """DetermineScaling(self)"""
4802 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4804 def __nonzero__(self
): return self
.Ok()
4806 class PrintPreviewPtr(PrintPreview
):
4807 def __init__(self
, this
):
4809 if not hasattr(self
,"thisown"): self
.thisown
= 0
4810 self
.__class
__ = PrintPreview
4811 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4813 class PyPrintPreview(PrintPreview
):
4814 """Proxy of C++ PyPrintPreview class"""
4816 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4817 def __init__(self
, *args
):
4819 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4820 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4822 newobj
= _windows_
.new_PyPrintPreview(*args
)
4823 self
.this
= newobj
.this
4826 self
._setCallbackInfo
(self
, PyPrintPreview
)
4828 def _setCallbackInfo(*args
, **kwargs
):
4829 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4830 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4832 def base_SetCurrentPage(*args
, **kwargs
):
4833 """base_SetCurrentPage(self, int pageNum) -> bool"""
4834 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4836 def base_PaintPage(*args
, **kwargs
):
4837 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4838 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4840 def base_DrawBlankPage(*args
, **kwargs
):
4841 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4842 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4844 def base_RenderPage(*args
, **kwargs
):
4845 """base_RenderPage(self, int pageNum) -> bool"""
4846 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4848 def base_SetZoom(*args
, **kwargs
):
4849 """base_SetZoom(self, int percent)"""
4850 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4852 def base_Print(*args
, **kwargs
):
4853 """base_Print(self, bool interactive) -> bool"""
4854 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4856 def base_DetermineScaling(*args
, **kwargs
):
4857 """base_DetermineScaling(self)"""
4858 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4861 class PyPrintPreviewPtr(PyPrintPreview
):
4862 def __init__(self
, this
):
4864 if not hasattr(self
,"thisown"): self
.thisown
= 0
4865 self
.__class
__ = PyPrintPreview
4866 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4868 class PyPreviewFrame(PreviewFrame
):
4869 """Proxy of C++ PyPreviewFrame class"""
4871 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4872 def __init__(self
, *args
, **kwargs
):
4874 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4875 Size size=DefaultSize,
4876 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4878 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4879 self
.this
= newobj
.this
4882 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4884 def _setCallbackInfo(*args
, **kwargs
):
4885 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4886 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4888 def SetPreviewCanvas(*args
, **kwargs
):
4889 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4890 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4892 def SetControlBar(*args
, **kwargs
):
4893 """SetControlBar(self, PreviewControlBar bar)"""
4894 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4896 def base_Initialize(*args
, **kwargs
):
4897 """base_Initialize(self)"""
4898 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4900 def base_CreateCanvas(*args
, **kwargs
):
4901 """base_CreateCanvas(self)"""
4902 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4904 def base_CreateControlBar(*args
, **kwargs
):
4905 """base_CreateControlBar(self)"""
4906 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4909 class PyPreviewFramePtr(PyPreviewFrame
):
4910 def __init__(self
, this
):
4912 if not hasattr(self
,"thisown"): self
.thisown
= 0
4913 self
.__class
__ = PyPreviewFrame
4914 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4916 class PyPreviewControlBar(PreviewControlBar
):
4917 """Proxy of C++ PyPreviewControlBar class"""
4919 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4920 def __init__(self
, *args
, **kwargs
):
4922 __init__(self, PrintPreview preview, long buttons, Window parent,
4923 Point pos=DefaultPosition, Size size=DefaultSize,
4924 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4926 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4927 self
.this
= newobj
.this
4930 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4932 def _setCallbackInfo(*args
, **kwargs
):
4933 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4934 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4936 def SetPrintPreview(*args
, **kwargs
):
4937 """SetPrintPreview(self, PrintPreview preview)"""
4938 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4940 def base_CreateButtons(*args
, **kwargs
):
4941 """base_CreateButtons(self)"""
4942 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4944 def base_SetZoomControl(*args
, **kwargs
):
4945 """base_SetZoomControl(self, int zoom)"""
4946 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4949 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4950 def __init__(self
, this
):
4952 if not hasattr(self
,"thisown"): self
.thisown
= 0
4953 self
.__class
__ = PyPreviewControlBar
4954 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)