1 # This file was created automatically by SWIG 1.3.27.
2 # Don't modify this file, modify the SWIG interface instead.
6 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if isinstance(value
, class_type
):
9 self
.__dict
__[name
] = value
.this
10 if hasattr(value
,"thisown"): self
.__dict
__["thisown"] = value
.thisown
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
) or (name
== "thisown"):
16 self
.__dict
__[name
] = value
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
23 def _swig_getattr(self
,class_type
,name
):
24 method
= class_type
.__swig
_getmethods
__.get(name
,None)
25 if method
: return method(self
)
26 raise AttributeError,name
30 _object
= types
.ObjectType
32 except AttributeError:
38 def _swig_setattr_nondynamic_method(set):
39 def set_attr(self
,name
,value
):
40 if hasattr(self
,name
) or (name
in ("this", "thisown")):
43 raise AttributeError("You cannot add attributes to %s" % self
)
49 #---------------------------------------------------------------------------
51 class Panel(_core
.Window
):
52 """Proxy of C++ Panel class"""
54 return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
55 def __init__(self
, *args
, **kwargs
):
57 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
58 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
59 String name=PanelNameStr) -> Panel
61 newobj
= _windows_
.new_Panel(*args
, **kwargs
)
62 self
.this
= newobj
.this
65 self
._setOORInfo
(self
)
67 def Create(*args
, **kwargs
):
69 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
70 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
71 String name=PanelNameStr) -> bool
73 Create the GUI part of the Window for 2-phase creation mode.
75 return _windows_
.Panel_Create(*args
, **kwargs
)
77 def InitDialog(*args
, **kwargs
):
81 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
82 to the dialog via validators.
84 return _windows_
.Panel_InitDialog(*args
, **kwargs
)
86 def SetFocus(*args
, **kwargs
):
90 Overrides `wx.Window.SetFocus`. This method uses the (undocumented)
91 mix-in class wxControlContainer which manages the focus and TAB logic
92 for controls which usually have child controls. In practice, if you
93 call this method and the panel has at least one child window, then the
94 focus will be given to the child window.
96 return _windows_
.Panel_SetFocus(*args
, **kwargs
)
98 def SetFocusIgnoringChildren(*args
, **kwargs
):
100 SetFocusIgnoringChildren(self)
102 In contrast to `SetFocus` (see above) this will set the focus to the
103 panel even of there are child windows in the panel. This is only
106 return _windows_
.Panel_SetFocusIgnoringChildren(*args
, **kwargs
)
108 def GetClassDefaultAttributes(*args
, **kwargs
):
110 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
112 Get the default attributes for this class. This is useful if you want
113 to use the same font or colour in your own control as in a standard
114 control -- which is a much better idea than hard coding specific
115 colours or fonts which might look completely out of place on the
116 user's system, especially if it uses themes.
118 The variant parameter is only relevant under Mac currently and is
119 ignore under other platforms. Under Mac, it will change the size of
120 the returned font. See `wx.Window.SetWindowVariant` for more about
123 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
125 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
127 class PanelPtr(Panel
):
128 def __init__(self
, this
):
130 if not hasattr(self
,"thisown"): self
.thisown
= 0
131 self
.__class
__ = Panel
132 _windows_
.Panel_swigregister(PanelPtr
)
134 def PrePanel(*args
, **kwargs
):
135 """PrePanel() -> Panel"""
136 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
140 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
142 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
144 Get the default attributes for this class. This is useful if you want
145 to use the same font or colour in your own control as in a standard
146 control -- which is a much better idea than hard coding specific
147 colours or fonts which might look completely out of place on the
148 user's system, especially if it uses themes.
150 The variant parameter is only relevant under Mac currently and is
151 ignore under other platforms. Under Mac, it will change the size of
152 the returned font. See `wx.Window.SetWindowVariant` for more about
155 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
157 #---------------------------------------------------------------------------
159 class ScrolledWindow(Panel
):
160 """Proxy of C++ ScrolledWindow class"""
162 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
163 def __init__(self
, *args
, **kwargs
):
165 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
166 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
167 String name=PanelNameStr) -> ScrolledWindow
169 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
170 self
.this
= newobj
.this
173 self
._setOORInfo
(self
)
175 def Create(*args
, **kwargs
):
177 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
178 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
179 String name=PanelNameStr) -> bool
181 Create the GUI part of the Window for 2-phase creation mode.
183 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
185 def SetScrollbars(*args
, **kwargs
):
187 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
188 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
190 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
192 def Scroll(*args
, **kwargs
):
193 """Scroll(self, int x, int y)"""
194 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
196 def GetScrollPageSize(*args
, **kwargs
):
197 """GetScrollPageSize(self, int orient) -> int"""
198 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
200 def SetScrollPageSize(*args
, **kwargs
):
201 """SetScrollPageSize(self, int orient, int pageSize)"""
202 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
204 def SetScrollRate(*args
, **kwargs
):
205 """SetScrollRate(self, int xstep, int ystep)"""
206 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
208 def GetScrollPixelsPerUnit(*args
, **kwargs
):
210 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
212 Get the size of one logical unit in physical units.
214 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
216 def EnableScrolling(*args
, **kwargs
):
217 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
218 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
220 def GetViewStart(*args
, **kwargs
):
222 GetViewStart() -> (x,y)
226 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
228 def SetScale(*args
, **kwargs
):
229 """SetScale(self, double xs, double ys)"""
230 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
232 def GetScaleX(*args
, **kwargs
):
233 """GetScaleX(self) -> double"""
234 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
236 def GetScaleY(*args
, **kwargs
):
237 """GetScaleY(self) -> double"""
238 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
240 def CalcScrolledPosition(*args
):
242 CalcScrolledPosition(self, Point pt) -> Point
243 CalcScrolledPosition(int x, int y) -> (sx, sy)
245 Translate between scrolled and unscrolled coordinates.
247 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
249 def CalcUnscrolledPosition(*args
):
251 CalcUnscrolledPosition(self, Point pt) -> Point
252 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
254 Translate between scrolled and unscrolled coordinates.
256 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
258 def AdjustScrollbars(*args
, **kwargs
):
259 """AdjustScrollbars(self)"""
260 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
262 def CalcScrollInc(*args
, **kwargs
):
263 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
264 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
266 def SetTargetWindow(*args
, **kwargs
):
267 """SetTargetWindow(self, Window target)"""
268 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
270 def GetTargetWindow(*args
, **kwargs
):
271 """GetTargetWindow(self) -> Window"""
272 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
274 def DoPrepareDC(*args
, **kwargs
):
276 DoPrepareDC(self, DC dc)
278 Normally what is called by `PrepareDC`.
280 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
282 def GetClassDefaultAttributes(*args
, **kwargs
):
284 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
286 Get the default attributes for this class. This is useful if you want
287 to use the same font or colour in your own control as in a standard
288 control -- which is a much better idea than hard coding specific
289 colours or fonts which might look completely out of place on the
290 user's system, especially if it uses themes.
292 The variant parameter is only relevant under Mac currently and is
293 ignore under other platforms. Under Mac, it will change the size of
294 the returned font. See `wx.Window.SetWindowVariant` for more about
297 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
299 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
301 class ScrolledWindowPtr(ScrolledWindow
):
302 def __init__(self
, this
):
304 if not hasattr(self
,"thisown"): self
.thisown
= 0
305 self
.__class
__ = ScrolledWindow
306 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
308 def PreScrolledWindow(*args
, **kwargs
):
309 """PreScrolledWindow() -> ScrolledWindow"""
310 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
314 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
316 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
318 Get the default attributes for this class. This is useful if you want
319 to use the same font or colour in your own control as in a standard
320 control -- which is a much better idea than hard coding specific
321 colours or fonts which might look completely out of place on the
322 user's system, especially if it uses themes.
324 The variant parameter is only relevant under Mac currently and is
325 ignore under other platforms. Under Mac, it will change the size of
326 the returned font. See `wx.Window.SetWindowVariant` for more about
329 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
331 #---------------------------------------------------------------------------
333 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
334 ICONIZE
= _windows_
.ICONIZE
335 MINIMIZE
= _windows_
.MINIMIZE
336 MAXIMIZE
= _windows_
.MAXIMIZE
337 CLOSE_BOX
= _windows_
.CLOSE_BOX
338 THICK_FRAME
= _windows_
.THICK_FRAME
339 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
340 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
341 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
342 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
343 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
344 RESIZE_BOX
= _windows_
.RESIZE_BOX
345 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
346 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
347 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
348 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
349 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
350 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
351 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
352 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
353 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
354 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
355 FRAME_EX_METAL
= _windows_
.FRAME_EX_METAL
356 DIALOG_EX_METAL
= _windows_
.DIALOG_EX_METAL
357 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
358 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
359 USER_COLOURS
= _windows_
.USER_COLOURS
360 NO_3D
= _windows_
.NO_3D
361 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
362 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
363 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
364 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
365 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
366 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
367 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
368 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
369 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
370 class TopLevelWindow(_core
.Window
):
371 """Proxy of C++ TopLevelWindow class"""
372 def __init__(self
): raise RuntimeError, "No constructor defined"
374 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
375 def Maximize(*args
, **kwargs
):
376 """Maximize(self, bool maximize=True)"""
377 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
379 def Restore(*args
, **kwargs
):
381 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
383 def Iconize(*args
, **kwargs
):
384 """Iconize(self, bool iconize=True)"""
385 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
387 def IsMaximized(*args
, **kwargs
):
388 """IsMaximized(self) -> bool"""
389 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
391 def IsIconized(*args
, **kwargs
):
392 """IsIconized(self) -> bool"""
393 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
395 def GetIcon(*args
, **kwargs
):
396 """GetIcon(self) -> Icon"""
397 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
399 def SetIcon(*args
, **kwargs
):
400 """SetIcon(self, Icon icon)"""
401 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
403 def SetIcons(*args
, **kwargs
):
404 """SetIcons(self, wxIconBundle icons)"""
405 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
407 def ShowFullScreen(*args
, **kwargs
):
408 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
409 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
411 def IsFullScreen(*args
, **kwargs
):
412 """IsFullScreen(self) -> bool"""
413 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
415 def SetTitle(*args
, **kwargs
):
416 """SetTitle(self, String title)"""
417 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
419 def GetTitle(*args
, **kwargs
):
420 """GetTitle(self) -> String"""
421 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
423 def SetShape(*args
, **kwargs
):
424 """SetShape(self, Region region) -> bool"""
425 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
427 def RequestUserAttention(*args
, **kwargs
):
428 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
429 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
431 def IsActive(*args
, **kwargs
):
432 """IsActive(self) -> bool"""
433 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
435 def MacSetMetalAppearance(*args
, **kwargs
):
436 """MacSetMetalAppearance(self, bool on)"""
437 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
439 def MacGetMetalAppearance(*args
, **kwargs
):
440 """MacGetMetalAppearance(self) -> bool"""
441 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
444 class TopLevelWindowPtr(TopLevelWindow
):
445 def __init__(self
, this
):
447 if not hasattr(self
,"thisown"): self
.thisown
= 0
448 self
.__class
__ = TopLevelWindow
449 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
450 cvar
= _windows_
.cvar
451 FrameNameStr
= cvar
.FrameNameStr
452 DialogNameStr
= cvar
.DialogNameStr
453 StatusLineNameStr
= cvar
.StatusLineNameStr
454 ToolBarNameStr
= cvar
.ToolBarNameStr
456 #---------------------------------------------------------------------------
458 class Frame(TopLevelWindow
):
459 """Proxy of C++ Frame class"""
461 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
462 def __init__(self
, *args
, **kwargs
):
464 __init__(self, Window parent, int id=-1, String title=EmptyString,
465 Point pos=DefaultPosition, Size size=DefaultSize,
466 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
468 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
469 self
.this
= newobj
.this
472 self
._setOORInfo
(self
)
474 def Create(*args
, **kwargs
):
476 Create(self, Window parent, int id=-1, String title=EmptyString,
477 Point pos=DefaultPosition, Size size=DefaultSize,
478 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
480 return _windows_
.Frame_Create(*args
, **kwargs
)
482 def GetClientAreaOrigin(*args
, **kwargs
):
484 GetClientAreaOrigin(self) -> Point
486 Get the origin of the client area of the window relative to the
487 window's top left corner (the client area may be shifted because of
488 the borders, scrollbars, other decorations...)
490 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
492 def SendSizeEvent(*args
, **kwargs
):
493 """SendSizeEvent(self)"""
494 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
496 def SetMenuBar(*args
, **kwargs
):
497 """SetMenuBar(self, MenuBar menubar)"""
498 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
500 def GetMenuBar(*args
, **kwargs
):
501 """GetMenuBar(self) -> MenuBar"""
502 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
504 def ProcessCommand(*args
, **kwargs
):
505 """ProcessCommand(self, int winid) -> bool"""
506 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
508 Command
= ProcessCommand
509 def CreateStatusBar(*args
, **kwargs
):
511 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
512 String name=StatusLineNameStr) -> StatusBar
514 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
516 def GetStatusBar(*args
, **kwargs
):
517 """GetStatusBar(self) -> StatusBar"""
518 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
520 def SetStatusBar(*args
, **kwargs
):
521 """SetStatusBar(self, StatusBar statBar)"""
522 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
524 def SetStatusText(*args
, **kwargs
):
525 """SetStatusText(self, String text, int number=0)"""
526 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
528 def SetStatusWidths(*args
, **kwargs
):
529 """SetStatusWidths(self, int widths)"""
530 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
532 def PushStatusText(*args
, **kwargs
):
533 """PushStatusText(self, String text, int number=0)"""
534 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
536 def PopStatusText(*args
, **kwargs
):
537 """PopStatusText(self, int number=0)"""
538 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
540 def SetStatusBarPane(*args
, **kwargs
):
541 """SetStatusBarPane(self, int n)"""
542 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
544 def GetStatusBarPane(*args
, **kwargs
):
545 """GetStatusBarPane(self) -> int"""
546 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
548 def CreateToolBar(*args
, **kwargs
):
549 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
550 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
552 def GetToolBar(*args
, **kwargs
):
553 """GetToolBar(self) -> wxToolBar"""
554 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
556 def SetToolBar(*args
, **kwargs
):
557 """SetToolBar(self, wxToolBar toolbar)"""
558 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
560 def DoGiveHelp(*args
, **kwargs
):
561 """DoGiveHelp(self, String text, bool show)"""
562 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
564 def DoMenuUpdates(*args
, **kwargs
):
565 """DoMenuUpdates(self, Menu menu=None)"""
566 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
568 def GetClassDefaultAttributes(*args
, **kwargs
):
570 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
572 Get the default attributes for this class. This is useful if you want
573 to use the same font or colour in your own control as in a standard
574 control -- which is a much better idea than hard coding specific
575 colours or fonts which might look completely out of place on the
576 user's system, especially if it uses themes.
578 The variant parameter is only relevant under Mac currently and is
579 ignore under other platforms. Under Mac, it will change the size of
580 the returned font. See `wx.Window.SetWindowVariant` for more about
583 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
585 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
587 class FramePtr(Frame
):
588 def __init__(self
, this
):
590 if not hasattr(self
,"thisown"): self
.thisown
= 0
591 self
.__class
__ = Frame
592 _windows_
.Frame_swigregister(FramePtr
)
594 def PreFrame(*args
, **kwargs
):
595 """PreFrame() -> Frame"""
596 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
600 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
602 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
604 Get the default attributes for this class. This is useful if you want
605 to use the same font or colour in your own control as in a standard
606 control -- which is a much better idea than hard coding specific
607 colours or fonts which might look completely out of place on the
608 user's system, especially if it uses themes.
610 The variant parameter is only relevant under Mac currently and is
611 ignore under other platforms. Under Mac, it will change the size of
612 the returned font. See `wx.Window.SetWindowVariant` for more about
615 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
617 #---------------------------------------------------------------------------
619 class Dialog(TopLevelWindow
):
620 """Proxy of C++ Dialog class"""
622 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
623 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
624 def __init__(self
, *args
, **kwargs
):
626 __init__(self, Window parent, int id=-1, String title=EmptyString,
627 Point pos=DefaultPosition, Size size=DefaultSize,
628 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
630 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
631 self
.this
= newobj
.this
634 self
._setOORInfo
(self
)
636 def Create(*args
, **kwargs
):
638 Create(self, Window parent, int id=-1, String title=EmptyString,
639 Point pos=DefaultPosition, Size size=DefaultSize,
640 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
642 return _windows_
.Dialog_Create(*args
, **kwargs
)
644 def SetReturnCode(*args
, **kwargs
):
645 """SetReturnCode(self, int returnCode)"""
646 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
648 def GetReturnCode(*args
, **kwargs
):
649 """GetReturnCode(self) -> int"""
650 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
652 def CreateTextSizer(*args
, **kwargs
):
653 """CreateTextSizer(self, String message) -> Sizer"""
654 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
656 def CreateButtonSizer(*args
, **kwargs
):
657 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
658 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
660 def CreateStdDialogButtonSizer(*args
, **kwargs
):
661 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
662 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
664 def IsModal(*args
, **kwargs
):
665 """IsModal(self) -> bool"""
666 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
668 def ShowModal(*args
, **kwargs
):
669 """ShowModal(self) -> int"""
670 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
672 def EndModal(*args
, **kwargs
):
673 """EndModal(self, int retCode)"""
674 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
676 def GetClassDefaultAttributes(*args
, **kwargs
):
678 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
680 Get the default attributes for this class. This is useful if you want
681 to use the same font or colour in your own control as in a standard
682 control -- which is a much better idea than hard coding specific
683 colours or fonts which might look completely out of place on the
684 user's system, especially if it uses themes.
686 The variant parameter is only relevant under Mac currently and is
687 ignore under other platforms. Under Mac, it will change the size of
688 the returned font. See `wx.Window.SetWindowVariant` for more about
691 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
693 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
694 def SendSizeEvent(self
):
695 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
698 class DialogPtr(Dialog
):
699 def __init__(self
, this
):
701 if not hasattr(self
,"thisown"): self
.thisown
= 0
702 self
.__class
__ = Dialog
703 _windows_
.Dialog_swigregister(DialogPtr
)
705 def PreDialog(*args
, **kwargs
):
706 """PreDialog() -> Dialog"""
707 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
711 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
713 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
715 Get the default attributes for this class. This is useful if you want
716 to use the same font or colour in your own control as in a standard
717 control -- which is a much better idea than hard coding specific
718 colours or fonts which might look completely out of place on the
719 user's system, especially if it uses themes.
721 The variant parameter is only relevant under Mac currently and is
722 ignore under other platforms. Under Mac, it will change the size of
723 the returned font. See `wx.Window.SetWindowVariant` for more about
726 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
728 #---------------------------------------------------------------------------
730 class MiniFrame(Frame
):
731 """Proxy of C++ MiniFrame class"""
733 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
734 def __init__(self
, *args
, **kwargs
):
736 __init__(self, Window parent, int id=-1, String title=EmptyString,
737 Point pos=DefaultPosition, Size size=DefaultSize,
738 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
740 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
741 self
.this
= newobj
.this
744 self
._setOORInfo
(self
)
746 def Create(*args
, **kwargs
):
748 Create(self, Window parent, int id=-1, String title=EmptyString,
749 Point pos=DefaultPosition, Size size=DefaultSize,
750 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
752 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
755 class MiniFramePtr(MiniFrame
):
756 def __init__(self
, this
):
758 if not hasattr(self
,"thisown"): self
.thisown
= 0
759 self
.__class
__ = MiniFrame
760 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
762 def PreMiniFrame(*args
, **kwargs
):
763 """PreMiniFrame() -> MiniFrame"""
764 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
768 #---------------------------------------------------------------------------
770 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
771 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
772 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
773 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
774 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
775 class SplashScreenWindow(_core
.Window
):
776 """Proxy of C++ SplashScreenWindow class"""
778 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
779 def __init__(self
, *args
, **kwargs
):
781 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
782 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
784 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
785 self
.this
= newobj
.this
788 self
._setOORInfo
(self
)
790 def SetBitmap(*args
, **kwargs
):
791 """SetBitmap(self, Bitmap bitmap)"""
792 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
794 def GetBitmap(*args
, **kwargs
):
795 """GetBitmap(self) -> Bitmap"""
796 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
799 class SplashScreenWindowPtr(SplashScreenWindow
):
800 def __init__(self
, this
):
802 if not hasattr(self
,"thisown"): self
.thisown
= 0
803 self
.__class
__ = SplashScreenWindow
804 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
806 class SplashScreen(Frame
):
807 """Proxy of C++ SplashScreen class"""
809 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
810 def __init__(self
, *args
, **kwargs
):
812 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
813 Window parent, int id=-1, Point pos=DefaultPosition,
814 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
816 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
817 self
.this
= newobj
.this
820 self
._setOORInfo
(self
)
822 def GetSplashStyle(*args
, **kwargs
):
823 """GetSplashStyle(self) -> long"""
824 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
826 def GetSplashWindow(*args
, **kwargs
):
827 """GetSplashWindow(self) -> SplashScreenWindow"""
828 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
830 def GetTimeout(*args
, **kwargs
):
831 """GetTimeout(self) -> int"""
832 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
835 class SplashScreenPtr(SplashScreen
):
836 def __init__(self
, this
):
838 if not hasattr(self
,"thisown"): self
.thisown
= 0
839 self
.__class
__ = SplashScreen
840 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
842 #---------------------------------------------------------------------------
844 SB_NORMAL
= _windows_
.SB_NORMAL
845 SB_FLAT
= _windows_
.SB_FLAT
846 SB_RAISED
= _windows_
.SB_RAISED
847 class StatusBar(_core
.Window
):
848 """Proxy of C++ StatusBar class"""
850 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
851 def __init__(self
, *args
, **kwargs
):
853 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
854 String name=StatusLineNameStr) -> StatusBar
856 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
857 self
.this
= newobj
.this
860 self
._setOORInfo
(self
)
862 def Create(*args
, **kwargs
):
863 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
864 return _windows_
.StatusBar_Create(*args
, **kwargs
)
866 def SetFieldsCount(*args
, **kwargs
):
867 """SetFieldsCount(self, int number=1)"""
868 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
870 def GetFieldsCount(*args
, **kwargs
):
871 """GetFieldsCount(self) -> int"""
872 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
874 def SetStatusText(*args
, **kwargs
):
875 """SetStatusText(self, String text, int number=0)"""
876 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
878 def GetStatusText(*args
, **kwargs
):
879 """GetStatusText(self, int number=0) -> String"""
880 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
882 def PushStatusText(*args
, **kwargs
):
883 """PushStatusText(self, String text, int number=0)"""
884 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
886 def PopStatusText(*args
, **kwargs
):
887 """PopStatusText(self, int number=0)"""
888 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
890 def SetStatusWidths(*args
, **kwargs
):
891 """SetStatusWidths(self, int widths)"""
892 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
894 def SetStatusStyles(*args
, **kwargs
):
895 """SetStatusStyles(self, int styles)"""
896 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
898 def GetFieldRect(*args
, **kwargs
):
899 """GetFieldRect(self, int i) -> Rect"""
900 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
902 def SetMinHeight(*args
, **kwargs
):
903 """SetMinHeight(self, int height)"""
904 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
906 def GetBorderX(*args
, **kwargs
):
907 """GetBorderX(self) -> int"""
908 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
910 def GetBorderY(*args
, **kwargs
):
911 """GetBorderY(self) -> int"""
912 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
914 def GetClassDefaultAttributes(*args
, **kwargs
):
916 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
918 Get the default attributes for this class. This is useful if you want
919 to use the same font or colour in your own control as in a standard
920 control -- which is a much better idea than hard coding specific
921 colours or fonts which might look completely out of place on the
922 user's system, especially if it uses themes.
924 The variant parameter is only relevant under Mac currently and is
925 ignore under other platforms. Under Mac, it will change the size of
926 the returned font. See `wx.Window.SetWindowVariant` for more about
929 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
931 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
933 class StatusBarPtr(StatusBar
):
934 def __init__(self
, this
):
936 if not hasattr(self
,"thisown"): self
.thisown
= 0
937 self
.__class
__ = StatusBar
938 _windows_
.StatusBar_swigregister(StatusBarPtr
)
940 def PreStatusBar(*args
, **kwargs
):
941 """PreStatusBar() -> StatusBar"""
942 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
946 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
948 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
950 Get the default attributes for this class. This is useful if you want
951 to use the same font or colour in your own control as in a standard
952 control -- which is a much better idea than hard coding specific
953 colours or fonts which might look completely out of place on the
954 user's system, especially if it uses themes.
956 The variant parameter is only relevant under Mac currently and is
957 ignore under other platforms. Under Mac, it will change the size of
958 the returned font. See `wx.Window.SetWindowVariant` for more about
961 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
963 #---------------------------------------------------------------------------
965 SP_NOBORDER
= _windows_
.SP_NOBORDER
966 SP_NOSASH
= _windows_
.SP_NOSASH
967 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
968 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
969 SP_3DSASH
= _windows_
.SP_3DSASH
970 SP_3DBORDER
= _windows_
.SP_3DBORDER
971 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
972 SP_BORDER
= _windows_
.SP_BORDER
973 SP_3D
= _windows_
.SP_3D
974 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
975 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
976 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
977 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
978 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
979 class SplitterWindow(_core
.Window
):
981 wx.SplitterWindow manages up to two subwindows or panes, with an
982 optional vertical or horizontal split which can be used with the mouse
986 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
987 def __init__(self
, *args
, **kwargs
):
989 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
990 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
992 Constructor. Creates and shows a SplitterWindow.
994 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
995 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
996 self
.this
= newobj
.this
999 self
._setOORInfo
(self
)
1001 def Create(*args
, **kwargs
):
1003 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1004 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
1006 Create the GUI part of the SplitterWindow for the 2-phase create.
1008 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
1010 def GetWindow1(*args
, **kwargs
):
1012 GetWindow1(self) -> Window
1014 Gets the only or left/top pane.
1016 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
1018 def GetWindow2(*args
, **kwargs
):
1020 GetWindow2(self) -> Window
1022 Gets the right/bottom pane.
1024 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
1026 def SetSplitMode(*args
, **kwargs
):
1028 SetSplitMode(self, int mode)
1030 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
1031 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
1034 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
1036 def GetSplitMode(*args
, **kwargs
):
1038 GetSplitMode(self) -> int
1042 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
1044 def Initialize(*args
, **kwargs
):
1046 Initialize(self, Window window)
1048 Initializes the splitter window to have one pane. This should be
1049 called if you wish to initially view only a single pane in the
1050 splitter window. The child window is shown if it is currently hidden.
1052 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1054 def SplitVertically(*args
, **kwargs
):
1056 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1058 Initializes the left and right panes of the splitter window. The
1059 child windows are shown if they are currently hidden.
1061 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1063 def SplitHorizontally(*args
, **kwargs
):
1065 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1067 Initializes the top and bottom panes of the splitter window. The
1068 child windows are shown if they are currently hidden.
1070 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1072 def Unsplit(*args
, **kwargs
):
1074 Unsplit(self, Window toRemove=None) -> bool
1076 Unsplits the window. Pass the pane to remove, or None to remove the
1077 right or bottom pane. Returns True if successful, False otherwise (the
1078 window was not split).
1080 This function will not actually delete the pane being
1081 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1082 for the desired behaviour. By default, the pane being
1083 removed is only hidden.
1085 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1087 def ReplaceWindow(*args
, **kwargs
):
1089 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1091 This function replaces one of the windows managed by the
1092 SplitterWindow with another one. It is in general better to use it
1093 instead of calling Unsplit() and then resplitting the window back
1094 because it will provoke much less flicker. It is valid to call this
1095 function whether the splitter has two windows or only one.
1097 Both parameters should be non-None and winOld must specify one of the
1098 windows managed by the splitter. If the parameters are incorrect or
1099 the window couldn't be replaced, False is returned. Otherwise the
1100 function will return True, but please notice that it will not Destroy
1101 the replaced window and you may wish to do it yourself.
1103 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1105 def UpdateSize(*args
, **kwargs
):
1109 Causes any pending sizing of the sash and child panes to take place
1112 Such resizing normally takes place in idle time, in order to wait for
1113 layout to be completed. However, this can cause unacceptable flicker
1114 as the panes are resized after the window has been shown. To work
1115 around this, you can perform window layout (for example by sending a
1116 size event to the parent window), and then call this function, before
1117 showing the top-level window.
1119 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1121 def IsSplit(*args
, **kwargs
):
1123 IsSplit(self) -> bool
1125 Is the window split?
1127 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1129 def SetSashSize(*args
, **kwargs
):
1131 SetSashSize(self, int width)
1135 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1137 def SetBorderSize(*args
, **kwargs
):
1139 SetBorderSize(self, int width)
1141 Sets the border size. Currently a NOP.
1143 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1145 def GetSashSize(*args
, **kwargs
):
1147 GetSashSize(self) -> int
1151 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1153 def GetBorderSize(*args
, **kwargs
):
1155 GetBorderSize(self) -> int
1157 Gets the border size
1159 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1161 def SetSashPosition(*args
, **kwargs
):
1163 SetSashPosition(self, int position, bool redraw=True)
1165 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1166 are resized and the sash and border are redrawn.
1168 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1170 def GetSashPosition(*args
, **kwargs
):
1172 GetSashPosition(self) -> int
1174 Returns the surrent sash position.
1176 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1178 def SetSashGravity(*args
, **kwargs
):
1180 SetSashGravity(self, double gravity)
1182 Set the sash gravity. Gravity is a floating-point factor between 0.0
1183 and 1.0 which controls position of sash while resizing the
1184 `wx.SplitterWindow`. The gravity specifies how much the left/top
1185 window will grow while resizing.
1187 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1189 def GetSashGravity(*args
, **kwargs
):
1191 GetSashGravity(self) -> double
1193 Gets the sash gravity.
1195 :see: `SetSashGravity`
1198 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1200 def SetMinimumPaneSize(*args
, **kwargs
):
1202 SetMinimumPaneSize(self, int min)
1204 Sets the minimum pane size in pixels.
1206 The default minimum pane size is zero, which means that either pane
1207 can be reduced to zero by dragging the sash, thus removing one of the
1208 panes. To prevent this behaviour (and veto out-of-range sash
1209 dragging), set a minimum size, for example 20 pixels. If the
1210 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1211 the window may be unsplit even if minimum size is non-zero.
1213 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1215 def GetMinimumPaneSize(*args
, **kwargs
):
1217 GetMinimumPaneSize(self) -> int
1219 Gets the minimum pane size in pixels.
1221 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1223 def SashHitTest(*args
, **kwargs
):
1225 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1227 Tests for x, y over the sash
1229 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1231 def SizeWindows(*args
, **kwargs
):
1237 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1239 def SetNeedUpdating(*args
, **kwargs
):
1240 """SetNeedUpdating(self, bool needUpdating)"""
1241 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1243 def GetNeedUpdating(*args
, **kwargs
):
1244 """GetNeedUpdating(self) -> bool"""
1245 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1247 def GetClassDefaultAttributes(*args
, **kwargs
):
1249 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1251 Get the default attributes for this class. This is useful if you want
1252 to use the same font or colour in your own control as in a standard
1253 control -- which is a much better idea than hard coding specific
1254 colours or fonts which might look completely out of place on the
1255 user's system, especially if it uses themes.
1257 The variant parameter is only relevant under Mac currently and is
1258 ignore under other platforms. Under Mac, it will change the size of
1259 the returned font. See `wx.Window.SetWindowVariant` for more about
1262 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1264 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1266 class SplitterWindowPtr(SplitterWindow
):
1267 def __init__(self
, this
):
1269 if not hasattr(self
,"thisown"): self
.thisown
= 0
1270 self
.__class
__ = SplitterWindow
1271 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1272 SplitterNameStr
= cvar
.SplitterNameStr
1274 def PreSplitterWindow(*args
, **kwargs
):
1276 PreSplitterWindow() -> SplitterWindow
1278 Precreate a SplitterWindow for 2-phase creation.
1280 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1284 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1286 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1288 Get the default attributes for this class. This is useful if you want
1289 to use the same font or colour in your own control as in a standard
1290 control -- which is a much better idea than hard coding specific
1291 colours or fonts which might look completely out of place on the
1292 user's system, especially if it uses themes.
1294 The variant parameter is only relevant under Mac currently and is
1295 ignore under other platforms. Under Mac, it will change the size of
1296 the returned font. See `wx.Window.SetWindowVariant` for more about
1299 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1301 class SplitterEvent(_core
.NotifyEvent
):
1302 """This class represents the events generated by a splitter control."""
1304 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1305 def __init__(self
, *args
, **kwargs
):
1307 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1309 This class represents the events generated by a splitter control.
1311 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1312 self
.this
= newobj
.this
1315 def SetSashPosition(*args
, **kwargs
):
1317 SetSashPosition(self, int pos)
1319 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1320 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1321 events, sets the the new sash position. In the case of _CHANGING
1322 events, sets the new tracking bar position so visual feedback during
1323 dragging will represent that change that will actually take place. Set
1324 to -1 from the event handler code to prevent repositioning.
1326 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1328 def GetSashPosition(*args
, **kwargs
):
1330 GetSashPosition(self) -> int
1332 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1333 and EVT_SPLITTER_SASH_POS_CHANGED events.
1335 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1337 def GetWindowBeingRemoved(*args
, **kwargs
):
1339 GetWindowBeingRemoved(self) -> Window
1341 Returns a pointer to the window being removed when a splitter window
1344 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1346 def GetX(*args
, **kwargs
):
1350 Returns the x coordinate of the double-click point in a
1351 EVT_SPLITTER_DCLICK event.
1353 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1355 def GetY(*args
, **kwargs
):
1359 Returns the y coordinate of the double-click point in a
1360 EVT_SPLITTER_DCLICK event.
1362 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1365 class SplitterEventPtr(SplitterEvent
):
1366 def __init__(self
, this
):
1368 if not hasattr(self
,"thisown"): self
.thisown
= 0
1369 self
.__class
__ = SplitterEvent
1370 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1372 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1373 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1374 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1375 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1376 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1377 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1378 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1379 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1380 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1382 #---------------------------------------------------------------------------
1384 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1385 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1386 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1387 SW_NOBORDER
= _windows_
.SW_NOBORDER
1388 SW_BORDER
= _windows_
.SW_BORDER
1389 SW_3DSASH
= _windows_
.SW_3DSASH
1390 SW_3DBORDER
= _windows_
.SW_3DBORDER
1391 SW_3D
= _windows_
.SW_3D
1392 SASH_TOP
= _windows_
.SASH_TOP
1393 SASH_RIGHT
= _windows_
.SASH_RIGHT
1394 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1395 SASH_LEFT
= _windows_
.SASH_LEFT
1396 SASH_NONE
= _windows_
.SASH_NONE
1397 class SashWindow(_core
.Window
):
1398 """Proxy of C++ SashWindow class"""
1400 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1401 def __init__(self
, *args
, **kwargs
):
1403 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1404 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1405 String name=SashNameStr) -> SashWindow
1407 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1408 self
.this
= newobj
.this
1411 self
._setOORInfo
(self
)
1413 def Create(*args
, **kwargs
):
1415 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1416 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1417 String name=SashNameStr) -> bool
1419 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1421 def SetSashVisible(*args
, **kwargs
):
1422 """SetSashVisible(self, int edge, bool sash)"""
1423 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1425 def GetSashVisible(*args
, **kwargs
):
1426 """GetSashVisible(self, int edge) -> bool"""
1427 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1429 def SetSashBorder(*args
, **kwargs
):
1430 """SetSashBorder(self, int edge, bool border)"""
1431 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1433 def HasBorder(*args
, **kwargs
):
1434 """HasBorder(self, int edge) -> bool"""
1435 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1437 def GetEdgeMargin(*args
, **kwargs
):
1438 """GetEdgeMargin(self, int edge) -> int"""
1439 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1441 def SetDefaultBorderSize(*args
, **kwargs
):
1442 """SetDefaultBorderSize(self, int width)"""
1443 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1445 def GetDefaultBorderSize(*args
, **kwargs
):
1446 """GetDefaultBorderSize(self) -> int"""
1447 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1449 def SetExtraBorderSize(*args
, **kwargs
):
1450 """SetExtraBorderSize(self, int width)"""
1451 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1453 def GetExtraBorderSize(*args
, **kwargs
):
1454 """GetExtraBorderSize(self) -> int"""
1455 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1457 def SetMinimumSizeX(*args
, **kwargs
):
1458 """SetMinimumSizeX(self, int min)"""
1459 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1461 def SetMinimumSizeY(*args
, **kwargs
):
1462 """SetMinimumSizeY(self, int min)"""
1463 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1465 def GetMinimumSizeX(*args
, **kwargs
):
1466 """GetMinimumSizeX(self) -> int"""
1467 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1469 def GetMinimumSizeY(*args
, **kwargs
):
1470 """GetMinimumSizeY(self) -> int"""
1471 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1473 def SetMaximumSizeX(*args
, **kwargs
):
1474 """SetMaximumSizeX(self, int max)"""
1475 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1477 def SetMaximumSizeY(*args
, **kwargs
):
1478 """SetMaximumSizeY(self, int max)"""
1479 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1481 def GetMaximumSizeX(*args
, **kwargs
):
1482 """GetMaximumSizeX(self) -> int"""
1483 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1485 def GetMaximumSizeY(*args
, **kwargs
):
1486 """GetMaximumSizeY(self) -> int"""
1487 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1489 def SashHitTest(*args
, **kwargs
):
1490 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1491 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1493 def SizeWindows(*args
, **kwargs
):
1494 """SizeWindows(self)"""
1495 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1498 class SashWindowPtr(SashWindow
):
1499 def __init__(self
, this
):
1501 if not hasattr(self
,"thisown"): self
.thisown
= 0
1502 self
.__class
__ = SashWindow
1503 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1504 SashNameStr
= cvar
.SashNameStr
1505 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1507 def PreSashWindow(*args
, **kwargs
):
1508 """PreSashWindow() -> SashWindow"""
1509 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1513 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1514 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1515 class SashEvent(_core
.CommandEvent
):
1516 """Proxy of C++ SashEvent class"""
1518 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1519 def __init__(self
, *args
, **kwargs
):
1520 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1521 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1522 self
.this
= newobj
.this
1525 def SetEdge(*args
, **kwargs
):
1526 """SetEdge(self, int edge)"""
1527 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1529 def GetEdge(*args
, **kwargs
):
1530 """GetEdge(self) -> int"""
1531 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1533 def SetDragRect(*args
, **kwargs
):
1534 """SetDragRect(self, Rect rect)"""
1535 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1537 def GetDragRect(*args
, **kwargs
):
1538 """GetDragRect(self) -> Rect"""
1539 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1541 def SetDragStatus(*args
, **kwargs
):
1542 """SetDragStatus(self, int status)"""
1543 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1545 def GetDragStatus(*args
, **kwargs
):
1546 """GetDragStatus(self) -> int"""
1547 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1550 class SashEventPtr(SashEvent
):
1551 def __init__(self
, this
):
1553 if not hasattr(self
,"thisown"): self
.thisown
= 0
1554 self
.__class
__ = SashEvent
1555 _windows_
.SashEvent_swigregister(SashEventPtr
)
1557 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1558 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1559 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1561 #---------------------------------------------------------------------------
1563 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1564 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1565 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1566 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1567 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1568 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1569 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1570 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1571 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1572 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1573 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1574 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1575 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1576 class QueryLayoutInfoEvent(_core
.Event
):
1577 """Proxy of C++ QueryLayoutInfoEvent class"""
1579 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1580 def __init__(self
, *args
, **kwargs
):
1581 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1582 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1583 self
.this
= newobj
.this
1586 def SetRequestedLength(*args
, **kwargs
):
1587 """SetRequestedLength(self, int length)"""
1588 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1590 def GetRequestedLength(*args
, **kwargs
):
1591 """GetRequestedLength(self) -> int"""
1592 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1594 def SetFlags(*args
, **kwargs
):
1595 """SetFlags(self, int flags)"""
1596 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1598 def GetFlags(*args
, **kwargs
):
1599 """GetFlags(self) -> int"""
1600 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1602 def SetSize(*args
, **kwargs
):
1603 """SetSize(self, Size size)"""
1604 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1606 def GetSize(*args
, **kwargs
):
1607 """GetSize(self) -> Size"""
1608 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1610 def SetOrientation(*args
, **kwargs
):
1611 """SetOrientation(self, int orient)"""
1612 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1614 def GetOrientation(*args
, **kwargs
):
1615 """GetOrientation(self) -> int"""
1616 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1618 def SetAlignment(*args
, **kwargs
):
1619 """SetAlignment(self, int align)"""
1620 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1622 def GetAlignment(*args
, **kwargs
):
1623 """GetAlignment(self) -> int"""
1624 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1627 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1628 def __init__(self
, this
):
1630 if not hasattr(self
,"thisown"): self
.thisown
= 0
1631 self
.__class
__ = QueryLayoutInfoEvent
1632 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1634 class CalculateLayoutEvent(_core
.Event
):
1635 """Proxy of C++ CalculateLayoutEvent class"""
1637 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1638 def __init__(self
, *args
, **kwargs
):
1639 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1640 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1641 self
.this
= newobj
.this
1644 def SetFlags(*args
, **kwargs
):
1645 """SetFlags(self, int flags)"""
1646 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1648 def GetFlags(*args
, **kwargs
):
1649 """GetFlags(self) -> int"""
1650 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1652 def SetRect(*args
, **kwargs
):
1653 """SetRect(self, Rect rect)"""
1654 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1656 def GetRect(*args
, **kwargs
):
1657 """GetRect(self) -> Rect"""
1658 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1661 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1662 def __init__(self
, this
):
1664 if not hasattr(self
,"thisown"): self
.thisown
= 0
1665 self
.__class
__ = CalculateLayoutEvent
1666 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1668 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1669 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1671 class SashLayoutWindow(SashWindow
):
1672 """Proxy of C++ SashLayoutWindow class"""
1674 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1675 def __init__(self
, *args
, **kwargs
):
1677 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1678 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1679 String name=SashLayoutNameStr) -> SashLayoutWindow
1681 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1682 self
.this
= newobj
.this
1685 self
._setOORInfo
(self
)
1687 def Create(*args
, **kwargs
):
1689 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1690 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1691 String name=SashLayoutNameStr) -> bool
1693 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1695 def GetAlignment(*args
, **kwargs
):
1696 """GetAlignment(self) -> int"""
1697 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1699 def GetOrientation(*args
, **kwargs
):
1700 """GetOrientation(self) -> int"""
1701 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1703 def SetAlignment(*args
, **kwargs
):
1704 """SetAlignment(self, int alignment)"""
1705 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1707 def SetDefaultSize(*args
, **kwargs
):
1708 """SetDefaultSize(self, Size size)"""
1709 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1711 def SetOrientation(*args
, **kwargs
):
1712 """SetOrientation(self, int orientation)"""
1713 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1716 class SashLayoutWindowPtr(SashLayoutWindow
):
1717 def __init__(self
, this
):
1719 if not hasattr(self
,"thisown"): self
.thisown
= 0
1720 self
.__class
__ = SashLayoutWindow
1721 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1723 def PreSashLayoutWindow(*args
, **kwargs
):
1724 """PreSashLayoutWindow() -> SashLayoutWindow"""
1725 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1729 class LayoutAlgorithm(_core
.Object
):
1730 """Proxy of C++ LayoutAlgorithm class"""
1732 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1733 def __init__(self
, *args
, **kwargs
):
1734 """__init__(self) -> LayoutAlgorithm"""
1735 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1736 self
.this
= newobj
.this
1739 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1742 if self
.thisown
: destroy(self
)
1745 def LayoutMDIFrame(*args
, **kwargs
):
1746 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1747 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1749 def LayoutFrame(*args
, **kwargs
):
1750 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1751 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1753 def LayoutWindow(*args
, **kwargs
):
1754 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1755 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1758 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1759 def __init__(self
, this
):
1761 if not hasattr(self
,"thisown"): self
.thisown
= 0
1762 self
.__class
__ = LayoutAlgorithm
1763 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1765 #---------------------------------------------------------------------------
1767 class PopupWindow(_core
.Window
):
1768 """Proxy of C++ PopupWindow class"""
1770 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1771 def __init__(self
, *args
, **kwargs
):
1772 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1773 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1774 self
.this
= newobj
.this
1777 self
._setOORInfo
(self
)
1779 def Create(*args
, **kwargs
):
1780 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1781 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1783 def Position(*args
, **kwargs
):
1784 """Position(self, Point ptOrigin, Size size)"""
1785 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1788 class PopupWindowPtr(PopupWindow
):
1789 def __init__(self
, this
):
1791 if not hasattr(self
,"thisown"): self
.thisown
= 0
1792 self
.__class
__ = PopupWindow
1793 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1795 def PrePopupWindow(*args
, **kwargs
):
1796 """PrePopupWindow() -> PopupWindow"""
1797 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1801 #---------------------------------------------------------------------------
1803 class PopupTransientWindow(PopupWindow
):
1804 """Proxy of C++ PopupTransientWindow class"""
1806 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1807 def __init__(self
, *args
, **kwargs
):
1808 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1809 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1810 self
.this
= newobj
.this
1813 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1815 def _setCallbackInfo(*args
, **kwargs
):
1816 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1817 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1819 def Popup(*args
, **kwargs
):
1820 """Popup(self, Window focus=None)"""
1821 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1823 def Dismiss(*args
, **kwargs
):
1825 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1828 class PopupTransientWindowPtr(PopupTransientWindow
):
1829 def __init__(self
, this
):
1831 if not hasattr(self
,"thisown"): self
.thisown
= 0
1832 self
.__class
__ = PopupTransientWindow
1833 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1835 def PrePopupTransientWindow(*args
, **kwargs
):
1836 """PrePopupTransientWindow() -> PopupTransientWindow"""
1837 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1841 #---------------------------------------------------------------------------
1843 class TipWindow(PopupTransientWindow
):
1844 """Proxy of C++ TipWindow class"""
1846 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1847 def __init__(self
, *args
, **kwargs
):
1848 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1849 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1850 self
.this
= newobj
.this
1853 self
._setOORInfo
(self
)
1855 def SetBoundingRect(*args
, **kwargs
):
1856 """SetBoundingRect(self, Rect rectBound)"""
1857 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1859 def Close(*args
, **kwargs
):
1863 This function simply generates a EVT_CLOSE event whose handler usually
1864 tries to close the window. It doesn't close the window itself,
1865 however. If force is False (the default) then the window's close
1866 handler will be allowed to veto the destruction of the window.
1868 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1871 class TipWindowPtr(TipWindow
):
1872 def __init__(self
, this
):
1874 if not hasattr(self
,"thisown"): self
.thisown
= 0
1875 self
.__class
__ = TipWindow
1876 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1878 #---------------------------------------------------------------------------
1880 class VScrolledWindow(Panel
):
1881 """Proxy of C++ VScrolledWindow class"""
1883 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1884 def __init__(self
, *args
, **kwargs
):
1886 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1887 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1889 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1890 self
.this
= newobj
.this
1893 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1895 def _setCallbackInfo(*args
, **kwargs
):
1896 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1897 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1899 def Create(*args
, **kwargs
):
1901 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1902 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1904 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1906 def SetLineCount(*args
, **kwargs
):
1907 """SetLineCount(self, size_t count)"""
1908 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1910 def ScrollToLine(*args
, **kwargs
):
1911 """ScrollToLine(self, size_t line) -> bool"""
1912 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1914 def ScrollLines(*args
, **kwargs
):
1916 ScrollLines(self, int lines) -> bool
1918 If the platform and window class supports it, scrolls the window by
1919 the given number of lines down, if lines is positive, or up if lines
1920 is negative. Returns True if the window was scrolled, False if it was
1921 already on top/bottom and nothing was done.
1923 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1925 def ScrollPages(*args
, **kwargs
):
1927 ScrollPages(self, int pages) -> bool
1929 If the platform and window class supports it, scrolls the window by
1930 the given number of pages down, if pages is positive, or up if pages
1931 is negative. Returns True if the window was scrolled, False if it was
1932 already on top/bottom and nothing was done.
1934 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1936 def RefreshLine(*args
, **kwargs
):
1937 """RefreshLine(self, size_t line)"""
1938 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1940 def RefreshLines(*args
, **kwargs
):
1941 """RefreshLines(self, size_t from, size_t to)"""
1942 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1944 def HitTestXY(*args
, **kwargs
):
1946 HitTestXY(self, int x, int y) -> int
1948 Test where the given (in client coords) point lies
1950 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1952 def HitTest(*args
, **kwargs
):
1954 HitTest(self, Point pt) -> int
1956 Test where the given (in client coords) point lies
1958 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1960 def RefreshAll(*args
, **kwargs
):
1961 """RefreshAll(self)"""
1962 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1964 def GetLineCount(*args
, **kwargs
):
1965 """GetLineCount(self) -> size_t"""
1966 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1968 def GetVisibleBegin(*args
, **kwargs
):
1969 """GetVisibleBegin(self) -> size_t"""
1970 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
1972 def GetVisibleEnd(*args
, **kwargs
):
1973 """GetVisibleEnd(self) -> size_t"""
1974 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
1976 def IsVisible(*args
, **kwargs
):
1977 """IsVisible(self, size_t line) -> bool"""
1978 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1980 def GetFirstVisibleLine(*args
, **kwargs
):
1981 """GetFirstVisibleLine(self) -> size_t"""
1982 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1984 def GetLastVisibleLine(*args
, **kwargs
):
1985 """GetLastVisibleLine(self) -> size_t"""
1986 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1989 class VScrolledWindowPtr(VScrolledWindow
):
1990 def __init__(self
, this
):
1992 if not hasattr(self
,"thisown"): self
.thisown
= 0
1993 self
.__class
__ = VScrolledWindow
1994 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1996 def PreVScrolledWindow(*args
, **kwargs
):
1997 """PreVScrolledWindow() -> VScrolledWindow"""
1998 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
2002 class VListBox(VScrolledWindow
):
2003 """Proxy of C++ VListBox class"""
2005 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2006 def __init__(self
, *args
, **kwargs
):
2008 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2009 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
2011 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
2012 self
.this
= newobj
.this
2015 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
2017 def _setCallbackInfo(*args
, **kwargs
):
2018 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2019 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
2021 def Create(*args
, **kwargs
):
2023 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2024 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2026 return _windows_
.VListBox_Create(*args
, **kwargs
)
2028 def GetItemCount(*args
, **kwargs
):
2029 """GetItemCount(self) -> size_t"""
2030 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
2032 def HasMultipleSelection(*args
, **kwargs
):
2033 """HasMultipleSelection(self) -> bool"""
2034 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
2036 def GetSelection(*args
, **kwargs
):
2037 """GetSelection(self) -> int"""
2038 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
2040 def IsCurrent(*args
, **kwargs
):
2041 """IsCurrent(self, size_t item) -> bool"""
2042 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
2044 def IsSelected(*args
, **kwargs
):
2045 """IsSelected(self, size_t item) -> bool"""
2046 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
2048 def GetSelectedCount(*args
, **kwargs
):
2049 """GetSelectedCount(self) -> size_t"""
2050 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
2052 def GetFirstSelected(*args
, **kwargs
):
2053 """GetFirstSelected(self) -> PyObject"""
2054 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
2056 def GetNextSelected(*args
, **kwargs
):
2057 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
2058 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
2060 def GetMargins(*args
, **kwargs
):
2061 """GetMargins(self) -> Point"""
2062 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
2064 def GetSelectionBackground(*args
, **kwargs
):
2065 """GetSelectionBackground(self) -> Colour"""
2066 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
2068 def SetItemCount(*args
, **kwargs
):
2069 """SetItemCount(self, size_t count)"""
2070 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
2072 def Clear(*args
, **kwargs
):
2074 return _windows_
.VListBox_Clear(*args
, **kwargs
)
2076 def SetSelection(*args
, **kwargs
):
2077 """SetSelection(self, int selection)"""
2078 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
2080 def Select(*args
, **kwargs
):
2081 """Select(self, size_t item, bool select=True) -> bool"""
2082 return _windows_
.VListBox_Select(*args
, **kwargs
)
2084 def SelectRange(*args
, **kwargs
):
2085 """SelectRange(self, size_t from, size_t to) -> bool"""
2086 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
2088 def Toggle(*args
, **kwargs
):
2089 """Toggle(self, size_t item)"""
2090 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
2092 def SelectAll(*args
, **kwargs
):
2093 """SelectAll(self) -> bool"""
2094 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
2096 def DeselectAll(*args
, **kwargs
):
2097 """DeselectAll(self) -> bool"""
2098 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
2100 def SetMargins(*args
, **kwargs
):
2101 """SetMargins(self, Point pt)"""
2102 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
2104 def SetMarginsXY(*args
, **kwargs
):
2105 """SetMarginsXY(self, int x, int y)"""
2106 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
2108 def SetSelectionBackground(*args
, **kwargs
):
2109 """SetSelectionBackground(self, Colour col)"""
2110 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
2113 class VListBoxPtr(VListBox
):
2114 def __init__(self
, this
):
2116 if not hasattr(self
,"thisown"): self
.thisown
= 0
2117 self
.__class
__ = VListBox
2118 _windows_
.VListBox_swigregister(VListBoxPtr
)
2119 VListBoxNameStr
= cvar
.VListBoxNameStr
2121 def PreVListBox(*args
, **kwargs
):
2122 """PreVListBox() -> VListBox"""
2123 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2127 class HtmlListBox(VListBox
):
2128 """Proxy of C++ HtmlListBox class"""
2130 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2131 def __init__(self
, *args
, **kwargs
):
2133 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2134 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2136 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2137 self
.this
= newobj
.this
2140 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2142 def _setCallbackInfo(*args
, **kwargs
):
2143 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2144 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2146 def Create(*args
, **kwargs
):
2148 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2149 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2151 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2153 def RefreshAll(*args
, **kwargs
):
2154 """RefreshAll(self)"""
2155 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2157 def SetItemCount(*args
, **kwargs
):
2158 """SetItemCount(self, size_t count)"""
2159 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2161 def GetFileSystem(*args
, **kwargs
):
2162 """GetFileSystem(self) -> FileSystem"""
2163 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2166 class HtmlListBoxPtr(HtmlListBox
):
2167 def __init__(self
, this
):
2169 if not hasattr(self
,"thisown"): self
.thisown
= 0
2170 self
.__class
__ = HtmlListBox
2171 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2173 def PreHtmlListBox(*args
, **kwargs
):
2174 """PreHtmlListBox() -> HtmlListBox"""
2175 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2179 #---------------------------------------------------------------------------
2181 class TaskBarIcon(_core
.EvtHandler
):
2182 """Proxy of C++ TaskBarIcon class"""
2184 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2185 def __init__(self
, *args
, **kwargs
):
2186 """__init__(self) -> TaskBarIcon"""
2187 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2188 self
.this
= newobj
.this
2191 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2193 def _setCallbackInfo(*args
, **kwargs
):
2194 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2195 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2197 def Destroy(*args
, **kwargs
):
2201 Deletes the C++ object this Python object is a proxy for.
2203 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2205 def IsOk(*args
, **kwargs
):
2206 """IsOk(self) -> bool"""
2207 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2209 def __nonzero__(self
): return self
.IsOk()
2210 def IsIconInstalled(*args
, **kwargs
):
2211 """IsIconInstalled(self) -> bool"""
2212 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2214 def SetIcon(*args
, **kwargs
):
2215 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2216 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2218 def RemoveIcon(*args
, **kwargs
):
2219 """RemoveIcon(self) -> bool"""
2220 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2222 def PopupMenu(*args
, **kwargs
):
2223 """PopupMenu(self, Menu menu) -> bool"""
2224 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2227 class TaskBarIconPtr(TaskBarIcon
):
2228 def __init__(self
, this
):
2230 if not hasattr(self
,"thisown"): self
.thisown
= 0
2231 self
.__class
__ = TaskBarIcon
2232 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2234 class TaskBarIconEvent(_core
.Event
):
2235 """Proxy of C++ TaskBarIconEvent class"""
2237 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2238 def __init__(self
, *args
, **kwargs
):
2239 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2240 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2241 self
.this
= newobj
.this
2245 class TaskBarIconEventPtr(TaskBarIconEvent
):
2246 def __init__(self
, this
):
2248 if not hasattr(self
,"thisown"): self
.thisown
= 0
2249 self
.__class
__ = TaskBarIconEvent
2250 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2252 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2253 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2254 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2255 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2256 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2257 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2258 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2259 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2260 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2261 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2262 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2263 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2264 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2265 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2267 #---------------------------------------------------------------------------
2269 class ColourData(_core
.Object
):
2271 This class holds a variety of information related to the colour
2272 chooser dialog, used to transfer settings and results to and from the
2276 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2277 def __init__(self
, *args
, **kwargs
):
2279 __init__(self) -> ColourData
2281 Constructor, sets default values.
2283 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2284 self
.this
= newobj
.this
2287 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2290 if self
.thisown
: destroy(self
)
2293 def GetChooseFull(*args
, **kwargs
):
2295 GetChooseFull(self) -> bool
2297 Under Windows, determines whether the Windows colour dialog will
2298 display the full dialog with custom colour selection controls. Has no
2299 meaning under other platforms. The default value is true.
2301 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2303 def GetColour(*args
, **kwargs
):
2305 GetColour(self) -> Colour
2307 Gets the colour (pre)selected by the dialog.
2309 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2311 def GetCustomColour(*args
, **kwargs
):
2313 GetCustomColour(self, int i) -> Colour
2315 Gets the i'th custom colour associated with the colour dialog. i
2316 should be an integer between 0 and 15. The default custom colours are
2317 all invalid colours.
2319 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2321 def SetChooseFull(*args
, **kwargs
):
2323 SetChooseFull(self, int flag)
2325 Under Windows, tells the Windows colour dialog to display the full
2326 dialog with custom colour selection controls. Under other platforms,
2327 has no effect. The default value is true.
2329 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2331 def SetColour(*args
, **kwargs
):
2333 SetColour(self, Colour colour)
2335 Sets the default colour for the colour dialog. The default colour is
2338 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2340 def SetCustomColour(*args
, **kwargs
):
2342 SetCustomColour(self, int i, Colour colour)
2344 Sets the i'th custom colour for the colour dialog. i should be an
2345 integer between 0 and 15. The default custom colours are all invalid colours.
2347 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2350 class ColourDataPtr(ColourData
):
2351 def __init__(self
, this
):
2353 if not hasattr(self
,"thisown"): self
.thisown
= 0
2354 self
.__class
__ = ColourData
2355 _windows_
.ColourData_swigregister(ColourDataPtr
)
2356 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2357 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2358 DirDialogNameStr
= cvar
.DirDialogNameStr
2359 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2360 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2361 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2363 class ColourDialog(Dialog
):
2364 """This class represents the colour chooser dialog."""
2366 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2367 def __init__(self
, *args
, **kwargs
):
2369 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2371 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2372 which will be copied to the colour dialog's internal ColourData
2375 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2376 self
.this
= newobj
.this
2379 self
._setOORInfo
(self
)
2381 def GetColourData(*args
, **kwargs
):
2383 GetColourData(self) -> ColourData
2385 Returns a reference to the `wx.ColourData` used by the dialog.
2387 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2390 class ColourDialogPtr(ColourDialog
):
2391 def __init__(self
, this
):
2393 if not hasattr(self
,"thisown"): self
.thisown
= 0
2394 self
.__class
__ = ColourDialog
2395 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2398 def GetColourFromUser(*args
, **kwargs
):
2400 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2401 String caption=EmptyString) -> Colour
2403 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2404 class DirDialog(Dialog
):
2406 wx.DirDialog allows the user to select a directory by browising the
2410 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2411 def __init__(self
, *args
, **kwargs
):
2413 __init__(self, Window parent, String message=DirSelectorPromptStr,
2414 String defaultPath=EmptyString, long style=0,
2415 Point pos=DefaultPosition, Size size=DefaultSize,
2416 String name=DirDialogNameStr) -> DirDialog
2418 Constructor. Use ShowModal method to show the dialog.
2420 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2421 self
.this
= newobj
.this
2424 self
._setOORInfo
(self
)
2426 def GetPath(*args
, **kwargs
):
2428 GetPath(self) -> String
2430 Returns the default or user-selected path.
2432 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2434 def GetMessage(*args
, **kwargs
):
2436 GetMessage(self) -> String
2438 Returns the message that will be displayed on the dialog.
2440 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2442 def GetStyle(*args
, **kwargs
):
2444 GetStyle(self) -> long
2446 Returns the dialog style.
2448 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2450 def SetMessage(*args
, **kwargs
):
2452 SetMessage(self, String message)
2454 Sets the message that will be displayed on the dialog.
2456 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2458 def SetPath(*args
, **kwargs
):
2460 SetPath(self, String path)
2462 Sets the default path.
2464 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2467 class DirDialogPtr(DirDialog
):
2468 def __init__(self
, this
):
2470 if not hasattr(self
,"thisown"): self
.thisown
= 0
2471 self
.__class
__ = DirDialog
2472 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2474 class FileDialog(Dialog
):
2476 wx.FileDialog allows the user to select one or more files from the
2480 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2481 def __init__(self
, *args
, **kwargs
):
2483 __init__(self, Window parent, String message=FileSelectorPromptStr,
2484 String defaultDir=EmptyString, String defaultFile=EmptyString,
2485 String wildcard=FileSelectorDefaultWildcardStr,
2486 long style=0, Point pos=DefaultPosition) -> FileDialog
2488 Constructor. Use ShowModal method to show the dialog.
2490 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2491 self
.this
= newobj
.this
2494 self
._setOORInfo
(self
)
2496 def SetMessage(*args
, **kwargs
):
2498 SetMessage(self, String message)
2500 Sets the message that will be displayed on the dialog.
2502 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2504 def SetPath(*args
, **kwargs
):
2506 SetPath(self, String path)
2508 Sets the path (the combined directory and filename that will be
2509 returned when the dialog is dismissed).
2511 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2513 def SetDirectory(*args
, **kwargs
):
2515 SetDirectory(self, String dir)
2517 Sets the default directory.
2519 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2521 def SetFilename(*args
, **kwargs
):
2523 SetFilename(self, String name)
2525 Sets the default filename.
2527 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2529 def SetWildcard(*args
, **kwargs
):
2531 SetWildcard(self, String wildCard)
2533 Sets the wildcard, which can contain multiple file types, for
2536 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2539 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2541 def SetStyle(*args
, **kwargs
):
2543 SetStyle(self, long style)
2545 Sets the dialog style.
2547 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2549 def SetFilterIndex(*args
, **kwargs
):
2551 SetFilterIndex(self, int filterIndex)
2553 Sets the default filter index, starting from zero.
2555 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2557 def GetMessage(*args
, **kwargs
):
2559 GetMessage(self) -> String
2561 Returns the message that will be displayed on the dialog.
2563 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2565 def GetPath(*args
, **kwargs
):
2567 GetPath(self) -> String
2569 Returns the full path (directory and filename) of the selected file.
2571 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2573 def GetDirectory(*args
, **kwargs
):
2575 GetDirectory(self) -> String
2577 Returns the default directory.
2579 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2581 def GetFilename(*args
, **kwargs
):
2583 GetFilename(self) -> String
2585 Returns the default filename.
2587 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2589 def GetWildcard(*args
, **kwargs
):
2591 GetWildcard(self) -> String
2593 Returns the file dialog wildcard.
2595 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2597 def GetStyle(*args
, **kwargs
):
2599 GetStyle(self) -> long
2601 Returns the dialog style.
2603 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2605 def GetFilterIndex(*args
, **kwargs
):
2607 GetFilterIndex(self) -> int
2609 Returns the index into the list of filters supplied, optionally, in
2610 the wildcard parameter. Before the dialog is shown, this is the index
2611 which will be used when the dialog is first displayed. After the
2612 dialog is shown, this is the index selected by the user.
2614 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2616 def GetFilenames(*args
, **kwargs
):
2618 GetFilenames(self) -> PyObject
2620 Returns a list of filenames chosen in the dialog. This function
2621 should only be used with the dialogs which have wx.MULTIPLE style, use
2622 GetFilename for the others.
2624 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2626 def GetPaths(*args
, **kwargs
):
2628 GetPaths(self) -> PyObject
2630 Fills the array paths with the full paths of the files chosen. This
2631 function should only be used with the dialogs which have wx.MULTIPLE
2632 style, use GetPath for the others.
2634 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2637 class FileDialogPtr(FileDialog
):
2638 def __init__(self
, this
):
2640 if not hasattr(self
,"thisown"): self
.thisown
= 0
2641 self
.__class
__ = FileDialog
2642 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2644 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2645 class MultiChoiceDialog(Dialog
):
2646 """A simple dialog with a multi selection listbox."""
2648 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2649 def __init__(self
, *args
, **kwargs
):
2651 __init__(self, Window parent, String message, String caption,
2652 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2653 Point pos=DefaultPosition) -> MultiChoiceDialog
2655 Constructor. Use the `ShowModal` method to show the dialog.
2657 :param parent: The parent window.
2658 :param message: Text to display above the list of selections.
2659 :param caption: Text to use in the title bar of the dialog.
2660 :param choices: A list of strings or unicode objects that the
2661 user is allowed to choose from.
2662 :param style: Styles to apply to the dialog. The default value is
2663 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2664 :param pos: Where to position the dialog (not used on Windows)
2668 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2669 self
.this
= newobj
.this
2672 self
._setOORInfo
(self
)
2674 def SetSelections(*args
, **kwargs
):
2676 SetSelections(List selections)
2678 Specify the items in the list that should be selected, using a list of
2679 integers. The list should specify the indexes of the items that
2682 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2684 def GetSelections(*args
, **kwargs
):
2686 GetSelections() -> [selections]
2688 Returns a list of integers representing the items that are selected.
2689 If an item is selected then its index will appear in the list.
2691 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2694 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2695 def __init__(self
, this
):
2697 if not hasattr(self
,"thisown"): self
.thisown
= 0
2698 self
.__class
__ = MultiChoiceDialog
2699 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2701 class SingleChoiceDialog(Dialog
):
2702 """A simple dialog with a single selection listbox."""
2704 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2705 def __init__(self
, *args
, **kwargs
):
2707 __init__(Window parent, String message, String caption,
2708 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2709 Point pos=DefaultPosition) -> SingleChoiceDialog
2711 Constructor. Use ShowModal method to show the dialog.
2713 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2714 self
.this
= newobj
.this
2717 self
._setOORInfo
(self
)
2719 def GetSelection(*args
, **kwargs
):
2721 GetSelection(self) -> int
2723 Get the index of teh currently selected item.
2725 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2727 def GetStringSelection(*args
, **kwargs
):
2729 GetStringSelection(self) -> String
2731 Returns the string value of the currently selected item
2733 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2735 def SetSelection(*args
, **kwargs
):
2737 SetSelection(self, int sel)
2739 Set the current selected item to sel
2741 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2744 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2745 def __init__(self
, this
):
2747 if not hasattr(self
,"thisown"): self
.thisown
= 0
2748 self
.__class
__ = SingleChoiceDialog
2749 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2751 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2752 class TextEntryDialog(Dialog
):
2753 """A dialog with text control, [ok] and [cancel] buttons"""
2755 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2756 def __init__(self
, *args
, **kwargs
):
2758 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2759 String defaultValue=EmptyString,
2760 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2762 Constructor. Use ShowModal method to show the dialog.
2764 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2765 self
.this
= newobj
.this
2768 self
._setOORInfo
(self
)
2770 def GetValue(*args
, **kwargs
):
2772 GetValue(self) -> String
2774 Returns the text that the user has entered if the user has pressed OK,
2775 or the original value if the user has pressed Cancel.
2777 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2779 def SetValue(*args
, **kwargs
):
2781 SetValue(self, String value)
2783 Sets the default text value.
2785 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2788 class TextEntryDialogPtr(TextEntryDialog
):
2789 def __init__(self
, this
):
2791 if not hasattr(self
,"thisown"): self
.thisown
= 0
2792 self
.__class
__ = TextEntryDialog
2793 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2795 class PasswordEntryDialog(TextEntryDialog
):
2796 """Proxy of C++ PasswordEntryDialog class"""
2798 return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2799 def __init__(self
, *args
, **kwargs
):
2801 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2802 String value=EmptyString,
2803 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2805 newobj
= _windows_
.new_PasswordEntryDialog(*args
, **kwargs
)
2806 self
.this
= newobj
.this
2810 class PasswordEntryDialogPtr(PasswordEntryDialog
):
2811 def __init__(self
, this
):
2813 if not hasattr(self
,"thisown"): self
.thisown
= 0
2814 self
.__class
__ = PasswordEntryDialog
2815 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr
)
2816 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2818 class FontData(_core
.Object
):
2820 This class holds a variety of information related to font dialogs and
2821 is used to transfer settings to and results from a `wx.FontDialog`.
2824 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2825 def __init__(self
, *args
, **kwargs
):
2827 __init__(self) -> FontData
2829 This class holds a variety of information related to font dialogs and
2830 is used to transfer settings to and results from a `wx.FontDialog`.
2832 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2833 self
.this
= newobj
.this
2836 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2839 if self
.thisown
: destroy(self
)
2842 def EnableEffects(*args
, **kwargs
):
2844 EnableEffects(self, bool enable)
2846 Enables or disables 'effects' under MS Windows only. This refers to
2847 the controls for manipulating colour, strikeout and underline
2848 properties. The default value is true.
2850 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2852 def GetAllowSymbols(*args
, **kwargs
):
2854 GetAllowSymbols(self) -> bool
2856 Under MS Windows, returns a flag determining whether symbol fonts can
2857 be selected. Has no effect on other platforms. The default value is
2860 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2862 def GetColour(*args
, **kwargs
):
2864 GetColour(self) -> Colour
2866 Gets the colour associated with the font dialog. The default value is
2869 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2871 def GetChosenFont(*args
, **kwargs
):
2873 GetChosenFont(self) -> Font
2875 Gets the font chosen by the user.
2877 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2879 def GetEnableEffects(*args
, **kwargs
):
2881 GetEnableEffects(self) -> bool
2883 Determines whether 'effects' are enabled under Windows.
2885 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2887 def GetInitialFont(*args
, **kwargs
):
2889 GetInitialFont(self) -> Font
2891 Gets the font that will be initially used by the font dialog. This
2892 should have previously been set by the application.
2894 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2896 def GetShowHelp(*args
, **kwargs
):
2898 GetShowHelp(self) -> bool
2900 Returns true if the Help button will be shown (Windows only). The
2901 default value is false.
2903 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2905 def SetAllowSymbols(*args
, **kwargs
):
2907 SetAllowSymbols(self, bool allowSymbols)
2909 Under MS Windows, determines whether symbol fonts can be selected. Has
2910 no effect on other platforms. The default value is true.
2912 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2914 def SetChosenFont(*args
, **kwargs
):
2916 SetChosenFont(self, Font font)
2918 Sets the font that will be returned to the user (normally for internal
2921 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2923 def SetColour(*args
, **kwargs
):
2925 SetColour(self, Colour colour)
2927 Sets the colour that will be used for the font foreground colour. The
2928 default colour is black.
2930 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2932 def SetInitialFont(*args
, **kwargs
):
2934 SetInitialFont(self, Font font)
2936 Sets the font that will be initially used by the font dialog.
2938 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2940 def SetRange(*args
, **kwargs
):
2942 SetRange(self, int min, int max)
2944 Sets the valid range for the font point size (Windows only). The
2945 default is 0, 0 (unrestricted range).
2947 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2949 def SetShowHelp(*args
, **kwargs
):
2951 SetShowHelp(self, bool showHelp)
2953 Determines whether the Help button will be displayed in the font
2954 dialog (Windows only). The default value is false.
2956 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2959 class FontDataPtr(FontData
):
2960 def __init__(self
, this
):
2962 if not hasattr(self
,"thisown"): self
.thisown
= 0
2963 self
.__class
__ = FontData
2964 _windows_
.FontData_swigregister(FontDataPtr
)
2966 class FontDialog(Dialog
):
2968 wx.FontDialog allows the user to select a system font and its attributes.
2974 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2975 def __init__(self
, *args
, **kwargs
):
2977 __init__(self, Window parent, FontData data) -> FontDialog
2979 Constructor. Pass a parent window and the `wx.FontData` object to be
2980 used to initialize the dialog controls. Call `ShowModal` to display
2981 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2982 results with via the `wx.FontData` returned by `GetFontData`.
2984 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2985 self
.this
= newobj
.this
2988 self
._setOORInfo
(self
)
2990 def GetFontData(*args
, **kwargs
):
2992 GetFontData(self) -> FontData
2994 Returns a reference to the internal `wx.FontData` used by the
2997 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
3000 class FontDialogPtr(FontDialog
):
3001 def __init__(self
, this
):
3003 if not hasattr(self
,"thisown"): self
.thisown
= 0
3004 self
.__class
__ = FontDialog
3005 _windows_
.FontDialog_swigregister(FontDialogPtr
)
3008 def GetFontFromUser(*args
, **kwargs
):
3009 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
3010 return _windows_
.GetFontFromUser(*args
, **kwargs
)
3011 class MessageDialog(Dialog
):
3013 This class provides a simple dialog that shows a single or multi-line
3014 message, with a choice of OK, Yes, No and/or Cancel buttons.
3017 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3018 def __init__(self
, *args
, **kwargs
):
3020 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
3021 long style=wxOK|wxCANCEL|wxCENTRE,
3022 Point pos=DefaultPosition) -> MessageDialog
3024 Constructor, use `ShowModal` to display the dialog.
3026 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
3027 self
.this
= newobj
.this
3030 self
._setOORInfo
(self
)
3033 class MessageDialogPtr(MessageDialog
):
3034 def __init__(self
, this
):
3036 if not hasattr(self
,"thisown"): self
.thisown
= 0
3037 self
.__class
__ = MessageDialog
3038 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
3040 class ProgressDialog(Frame
):
3042 A dialog that shows a short message and a progress bar. Optionally, it
3043 can display an ABORT button.
3046 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3047 def __init__(self
, *args
, **kwargs
):
3049 __init__(self, String title, String message, int maximum=100, Window parent=None,
3050 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
3052 Constructor. Creates the dialog, displays it and disables user input
3053 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
3056 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
3057 self
.this
= newobj
.this
3060 self
._setOORInfo
(self
)
3062 def Update(*args
, **kwargs
):
3064 Update(self, int value, String newmsg=EmptyString) -> bool
3066 Updates the dialog, setting the progress bar to the new value and, if
3067 given changes the message above it. The value given should be less
3068 than or equal to the maximum value given to the constructor and the
3069 dialog is closed if it is equal to the maximum. Returns True unless
3070 the Cancel button has been pressed.
3072 If false is returned, the application can either immediately destroy
3073 the dialog or ask the user for the confirmation and if the abort is
3074 not confirmed the dialog may be resumed with Resume function.
3076 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
3078 def Resume(*args
, **kwargs
):
3082 Can be used to continue with the dialog, after the user had chosen to
3085 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
3088 class ProgressDialogPtr(ProgressDialog
):
3089 def __init__(self
, this
):
3091 if not hasattr(self
,"thisown"): self
.thisown
= 0
3092 self
.__class
__ = ProgressDialog
3093 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
3095 FR_DOWN
= _windows_
.FR_DOWN
3096 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
3097 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
3098 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
3099 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
3100 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
3101 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
3102 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
3103 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
3104 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
3105 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
3106 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
3107 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
3108 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
3109 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
3110 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
3111 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
3113 # For backwards compatibility. Should they be removed?
3114 EVT_COMMAND_FIND
= EVT_FIND
3115 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
3116 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
3117 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
3118 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
3120 class FindDialogEvent(_core
.CommandEvent
):
3121 """Events for the FindReplaceDialog"""
3123 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3124 def __init__(self
, *args
, **kwargs
):
3126 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3128 Events for the FindReplaceDialog
3130 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
3131 self
.this
= newobj
.this
3134 def GetFlags(*args
, **kwargs
):
3136 GetFlags(self) -> int
3138 Get the currently selected flags: this is the combination of
3139 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3141 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
3143 def GetFindString(*args
, **kwargs
):
3145 GetFindString(self) -> String
3147 Return the string to find (never empty).
3149 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
3151 def GetReplaceString(*args
, **kwargs
):
3153 GetReplaceString(self) -> String
3155 Return the string to replace the search string with (only for replace
3156 and replace all events).
3158 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
3160 def GetDialog(*args
, **kwargs
):
3162 GetDialog(self) -> FindReplaceDialog
3164 Return the pointer to the dialog which generated this event.
3166 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
3168 def SetFlags(*args
, **kwargs
):
3169 """SetFlags(self, int flags)"""
3170 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3172 def SetFindString(*args
, **kwargs
):
3173 """SetFindString(self, String str)"""
3174 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3176 def SetReplaceString(*args
, **kwargs
):
3177 """SetReplaceString(self, String str)"""
3178 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3181 class FindDialogEventPtr(FindDialogEvent
):
3182 def __init__(self
, this
):
3184 if not hasattr(self
,"thisown"): self
.thisown
= 0
3185 self
.__class
__ = FindDialogEvent
3186 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3188 class FindReplaceData(_core
.Object
):
3190 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3191 to initialize the dialog with the default values and will keep the
3192 last values from the dialog when it is closed. It is also updated each
3193 time a `wx.FindDialogEvent` is generated so instead of using the
3194 `wx.FindDialogEvent` methods you can also directly query this object.
3196 Note that all SetXXX() methods may only be called before showing the
3197 dialog and calling them has no effect later.
3200 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3201 def __init__(self
, *args
, **kwargs
):
3203 __init__(self, int flags=0) -> FindReplaceData
3205 Constuctor initializes the flags to default value (0).
3207 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3208 self
.this
= newobj
.this
3211 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3214 if self
.thisown
: destroy(self
)
3217 def GetFindString(*args
, **kwargs
):
3219 GetFindString(self) -> String
3221 Get the string to find.
3223 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3225 def GetReplaceString(*args
, **kwargs
):
3227 GetReplaceString(self) -> String
3229 Get the replacement string.
3231 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3233 def GetFlags(*args
, **kwargs
):
3235 GetFlags(self) -> int
3237 Get the combination of flag values.
3239 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3241 def SetFlags(*args
, **kwargs
):
3243 SetFlags(self, int flags)
3245 Set the flags to use to initialize the controls of the dialog.
3247 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3249 def SetFindString(*args
, **kwargs
):
3251 SetFindString(self, String str)
3253 Set the string to find (used as initial value by the dialog).
3255 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3257 def SetReplaceString(*args
, **kwargs
):
3259 SetReplaceString(self, String str)
3261 Set the replacement string (used as initial value by the dialog).
3263 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3266 class FindReplaceDataPtr(FindReplaceData
):
3267 def __init__(self
, this
):
3269 if not hasattr(self
,"thisown"): self
.thisown
= 0
3270 self
.__class
__ = FindReplaceData
3271 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3273 class FindReplaceDialog(Dialog
):
3275 wx.FindReplaceDialog is a standard modeless dialog which is used to
3276 allow the user to search for some text (and possibly replace it with
3277 something else). The actual searching is supposed to be done in the
3278 owner window which is the parent of this dialog. Note that it means
3279 that unlike for the other standard dialogs this one must have a parent
3280 window. Also note that there is no way to use this dialog in a modal
3281 way; it is always, by design and implementation, modeless.
3284 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3285 def __init__(self
, *args
, **kwargs
):
3287 __init__(self, Window parent, FindReplaceData data, String title,
3288 int style=0) -> FindReplaceDialog
3290 Create a FindReplaceDialog. The parent and data parameters must be
3291 non-None. Use Show to display the dialog.
3293 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3294 self
.this
= newobj
.this
3297 self
._setOORInfo
(self
)
3299 def Create(*args
, **kwargs
):
3301 Create(self, Window parent, FindReplaceData data, String title,
3302 int style=0) -> bool
3304 Create the dialog, for 2-phase create.
3306 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3308 def GetData(*args
, **kwargs
):
3310 GetData(self) -> FindReplaceData
3312 Get the FindReplaceData object used by this dialog.
3314 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3316 def SetData(*args
, **kwargs
):
3318 SetData(self, FindReplaceData data)
3320 Set the FindReplaceData object used by this dialog.
3322 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3325 class FindReplaceDialogPtr(FindReplaceDialog
):
3326 def __init__(self
, this
):
3328 if not hasattr(self
,"thisown"): self
.thisown
= 0
3329 self
.__class
__ = FindReplaceDialog
3330 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3332 def PreFindReplaceDialog(*args
, **kwargs
):
3334 PreFindReplaceDialog() -> FindReplaceDialog
3336 Precreate a FindReplaceDialog for 2-phase creation
3338 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3342 #---------------------------------------------------------------------------
3344 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3345 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3346 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3347 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3348 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3349 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3350 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3351 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3352 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3353 class MDIParentFrame(Frame
):
3354 """Proxy of C++ MDIParentFrame class"""
3356 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3357 def __init__(self
, *args
, **kwargs
):
3359 __init__(self, Window parent, int id=-1, String title=EmptyString,
3360 Point pos=DefaultPosition, Size size=DefaultSize,
3361 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3362 String name=FrameNameStr) -> MDIParentFrame
3364 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3365 self
.this
= newobj
.this
3368 self
._setOORInfo
(self
)
3370 def Create(*args
, **kwargs
):
3372 Create(self, Window parent, int id=-1, String title=EmptyString,
3373 Point pos=DefaultPosition, Size size=DefaultSize,
3374 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3375 String name=FrameNameStr) -> bool
3377 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3379 def ActivateNext(*args
, **kwargs
):
3380 """ActivateNext(self)"""
3381 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3383 def ActivatePrevious(*args
, **kwargs
):
3384 """ActivatePrevious(self)"""
3385 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3387 def ArrangeIcons(*args
, **kwargs
):
3388 """ArrangeIcons(self)"""
3389 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3391 def Cascade(*args
, **kwargs
):
3393 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3395 def GetActiveChild(*args
, **kwargs
):
3396 """GetActiveChild(self) -> MDIChildFrame"""
3397 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3399 def GetClientWindow(*args
, **kwargs
):
3400 """GetClientWindow(self) -> MDIClientWindow"""
3401 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3403 def GetToolBar(*args
, **kwargs
):
3404 """GetToolBar(self) -> Window"""
3405 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3407 def Tile(*args
, **kwargs
):
3408 """Tile(self, int orient=HORIZONTAL)"""
3409 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3412 class MDIParentFramePtr(MDIParentFrame
):
3413 def __init__(self
, this
):
3415 if not hasattr(self
,"thisown"): self
.thisown
= 0
3416 self
.__class
__ = MDIParentFrame
3417 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3419 def PreMDIParentFrame(*args
, **kwargs
):
3420 """PreMDIParentFrame() -> MDIParentFrame"""
3421 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3425 class MDIChildFrame(Frame
):
3426 """Proxy of C++ MDIChildFrame class"""
3428 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3429 def __init__(self
, *args
, **kwargs
):
3431 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3432 Point pos=DefaultPosition, Size size=DefaultSize,
3433 long style=DEFAULT_FRAME_STYLE,
3434 String name=FrameNameStr) -> MDIChildFrame
3436 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3437 self
.this
= newobj
.this
3440 self
._setOORInfo
(self
)
3442 def Create(*args
, **kwargs
):
3444 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3445 Point pos=DefaultPosition, Size size=DefaultSize,
3446 long style=DEFAULT_FRAME_STYLE,
3447 String name=FrameNameStr) -> bool
3449 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3451 def Activate(*args
, **kwargs
):
3452 """Activate(self)"""
3453 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3455 def Maximize(*args
, **kwargs
):
3456 """Maximize(self, bool maximize=True)"""
3457 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3459 def Restore(*args
, **kwargs
):
3461 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3464 class MDIChildFramePtr(MDIChildFrame
):
3465 def __init__(self
, this
):
3467 if not hasattr(self
,"thisown"): self
.thisown
= 0
3468 self
.__class
__ = MDIChildFrame
3469 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3471 def PreMDIChildFrame(*args
, **kwargs
):
3472 """PreMDIChildFrame() -> MDIChildFrame"""
3473 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3477 class MDIClientWindow(_core
.Window
):
3478 """Proxy of C++ MDIClientWindow class"""
3480 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3481 def __init__(self
, *args
, **kwargs
):
3482 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3483 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3484 self
.this
= newobj
.this
3487 self
._setOORInfo
(self
)
3489 def Create(*args
, **kwargs
):
3490 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3491 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3494 class MDIClientWindowPtr(MDIClientWindow
):
3495 def __init__(self
, this
):
3497 if not hasattr(self
,"thisown"): self
.thisown
= 0
3498 self
.__class
__ = MDIClientWindow
3499 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3501 def PreMDIClientWindow(*args
, **kwargs
):
3502 """PreMDIClientWindow() -> MDIClientWindow"""
3503 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3507 #---------------------------------------------------------------------------
3509 class PyWindow(_core
.Window
):
3510 """Proxy of C++ PyWindow class"""
3512 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3513 def __init__(self
, *args
, **kwargs
):
3515 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3516 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3518 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3519 self
.this
= newobj
.this
3522 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3524 def _setCallbackInfo(*args
, **kwargs
):
3525 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3526 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3528 def SetBestSize(*args
, **kwargs
):
3529 """SetBestSize(self, Size size)"""
3530 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3532 def DoEraseBackground(*args
, **kwargs
):
3533 """DoEraseBackground(self, DC dc) -> bool"""
3534 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3536 def base_DoMoveWindow(*args
, **kwargs
):
3537 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3538 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3540 def base_DoSetSize(*args
, **kwargs
):
3541 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3542 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3544 def base_DoSetClientSize(*args
, **kwargs
):
3545 """base_DoSetClientSize(self, int width, int height)"""
3546 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3548 def base_DoSetVirtualSize(*args
, **kwargs
):
3549 """base_DoSetVirtualSize(self, int x, int y)"""
3550 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3552 def base_DoGetSize(*args
, **kwargs
):
3553 """base_DoGetSize() -> (width, height)"""
3554 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3556 def base_DoGetClientSize(*args
, **kwargs
):
3557 """base_DoGetClientSize() -> (width, height)"""
3558 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3560 def base_DoGetPosition(*args
, **kwargs
):
3561 """base_DoGetPosition() -> (x,y)"""
3562 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3564 def base_DoGetVirtualSize(*args
, **kwargs
):
3565 """base_DoGetVirtualSize(self) -> Size"""
3566 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3568 def base_DoGetBestSize(*args
, **kwargs
):
3569 """base_DoGetBestSize(self) -> Size"""
3570 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3572 def base_InitDialog(*args
, **kwargs
):
3573 """base_InitDialog(self)"""
3574 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3576 def base_TransferDataToWindow(*args
, **kwargs
):
3577 """base_TransferDataToWindow(self) -> bool"""
3578 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3580 def base_TransferDataFromWindow(*args
, **kwargs
):
3581 """base_TransferDataFromWindow(self) -> bool"""
3582 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3584 def base_Validate(*args
, **kwargs
):
3585 """base_Validate(self) -> bool"""
3586 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3588 def base_AcceptsFocus(*args
, **kwargs
):
3589 """base_AcceptsFocus(self) -> bool"""
3590 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3592 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3593 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3594 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3596 def base_GetMaxSize(*args
, **kwargs
):
3597 """base_GetMaxSize(self) -> Size"""
3598 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3600 def base_AddChild(*args
, **kwargs
):
3601 """base_AddChild(self, Window child)"""
3602 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3604 def base_RemoveChild(*args
, **kwargs
):
3605 """base_RemoveChild(self, Window child)"""
3606 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3608 def base_ShouldInheritColours(*args
, **kwargs
):
3609 """base_ShouldInheritColours(self) -> bool"""
3610 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3612 def base_GetDefaultAttributes(*args
, **kwargs
):
3613 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3614 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3616 def base_OnInternalIdle(*args
, **kwargs
):
3617 """base_OnInternalIdle(self)"""
3618 return _windows_
.PyWindow_base_OnInternalIdle(*args
, **kwargs
)
3621 class PyWindowPtr(PyWindow
):
3622 def __init__(self
, this
):
3624 if not hasattr(self
,"thisown"): self
.thisown
= 0
3625 self
.__class
__ = PyWindow
3626 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3628 def PrePyWindow(*args
, **kwargs
):
3629 """PrePyWindow() -> PyWindow"""
3630 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3634 class PyPanel(Panel
):
3635 """Proxy of C++ PyPanel class"""
3637 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3638 def __init__(self
, *args
, **kwargs
):
3640 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3641 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3643 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3644 self
.this
= newobj
.this
3647 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3649 def _setCallbackInfo(*args
, **kwargs
):
3650 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3651 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3653 def SetBestSize(*args
, **kwargs
):
3654 """SetBestSize(self, Size size)"""
3655 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3657 def DoEraseBackground(*args
, **kwargs
):
3658 """DoEraseBackground(self, DC dc) -> bool"""
3659 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3661 def base_DoMoveWindow(*args
, **kwargs
):
3662 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3663 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3665 def base_DoSetSize(*args
, **kwargs
):
3666 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3667 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3669 def base_DoSetClientSize(*args
, **kwargs
):
3670 """base_DoSetClientSize(self, int width, int height)"""
3671 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3673 def base_DoSetVirtualSize(*args
, **kwargs
):
3674 """base_DoSetVirtualSize(self, int x, int y)"""
3675 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3677 def base_DoGetSize(*args
, **kwargs
):
3678 """base_DoGetSize() -> (width, height)"""
3679 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3681 def base_DoGetClientSize(*args
, **kwargs
):
3682 """base_DoGetClientSize() -> (width, height)"""
3683 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3685 def base_DoGetPosition(*args
, **kwargs
):
3686 """base_DoGetPosition() -> (x,y)"""
3687 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3689 def base_DoGetVirtualSize(*args
, **kwargs
):
3690 """base_DoGetVirtualSize(self) -> Size"""
3691 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3693 def base_DoGetBestSize(*args
, **kwargs
):
3694 """base_DoGetBestSize(self) -> Size"""
3695 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3697 def base_InitDialog(*args
, **kwargs
):
3698 """base_InitDialog(self)"""
3699 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3701 def base_TransferDataToWindow(*args
, **kwargs
):
3702 """base_TransferDataToWindow(self) -> bool"""
3703 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3705 def base_TransferDataFromWindow(*args
, **kwargs
):
3706 """base_TransferDataFromWindow(self) -> bool"""
3707 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3709 def base_Validate(*args
, **kwargs
):
3710 """base_Validate(self) -> bool"""
3711 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3713 def base_AcceptsFocus(*args
, **kwargs
):
3714 """base_AcceptsFocus(self) -> bool"""
3715 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3717 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3718 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3719 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3721 def base_GetMaxSize(*args
, **kwargs
):
3722 """base_GetMaxSize(self) -> Size"""
3723 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3725 def base_AddChild(*args
, **kwargs
):
3726 """base_AddChild(self, Window child)"""
3727 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3729 def base_RemoveChild(*args
, **kwargs
):
3730 """base_RemoveChild(self, Window child)"""
3731 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3733 def base_ShouldInheritColours(*args
, **kwargs
):
3734 """base_ShouldInheritColours(self) -> bool"""
3735 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3737 def base_GetDefaultAttributes(*args
, **kwargs
):
3738 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3739 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3741 def base_OnInternalIdle(*args
, **kwargs
):
3742 """base_OnInternalIdle(self)"""
3743 return _windows_
.PyPanel_base_OnInternalIdle(*args
, **kwargs
)
3746 class PyPanelPtr(PyPanel
):
3747 def __init__(self
, this
):
3749 if not hasattr(self
,"thisown"): self
.thisown
= 0
3750 self
.__class
__ = PyPanel
3751 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3753 def PrePyPanel(*args
, **kwargs
):
3754 """PrePyPanel() -> PyPanel"""
3755 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3759 class PyScrolledWindow(ScrolledWindow
):
3760 """Proxy of C++ PyScrolledWindow class"""
3762 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3763 def __init__(self
, *args
, **kwargs
):
3765 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3766 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3768 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3769 self
.this
= newobj
.this
3772 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3774 def _setCallbackInfo(*args
, **kwargs
):
3775 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3776 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3778 def SetBestSize(*args
, **kwargs
):
3779 """SetBestSize(self, Size size)"""
3780 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3782 def DoEraseBackground(*args
, **kwargs
):
3783 """DoEraseBackground(self, DC dc) -> bool"""
3784 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3786 def base_DoMoveWindow(*args
, **kwargs
):
3787 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3788 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3790 def base_DoSetSize(*args
, **kwargs
):
3791 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3792 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3794 def base_DoSetClientSize(*args
, **kwargs
):
3795 """base_DoSetClientSize(self, int width, int height)"""
3796 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3798 def base_DoSetVirtualSize(*args
, **kwargs
):
3799 """base_DoSetVirtualSize(self, int x, int y)"""
3800 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3802 def base_DoGetSize(*args
, **kwargs
):
3803 """base_DoGetSize() -> (width, height)"""
3804 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3806 def base_DoGetClientSize(*args
, **kwargs
):
3807 """base_DoGetClientSize() -> (width, height)"""
3808 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3810 def base_DoGetPosition(*args
, **kwargs
):
3811 """base_DoGetPosition() -> (x,y)"""
3812 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3814 def base_DoGetVirtualSize(*args
, **kwargs
):
3815 """base_DoGetVirtualSize(self) -> Size"""
3816 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3818 def base_DoGetBestSize(*args
, **kwargs
):
3819 """base_DoGetBestSize(self) -> Size"""
3820 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3822 def base_InitDialog(*args
, **kwargs
):
3823 """base_InitDialog(self)"""
3824 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3826 def base_TransferDataToWindow(*args
, **kwargs
):
3827 """base_TransferDataToWindow(self) -> bool"""
3828 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3830 def base_TransferDataFromWindow(*args
, **kwargs
):
3831 """base_TransferDataFromWindow(self) -> bool"""
3832 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3834 def base_Validate(*args
, **kwargs
):
3835 """base_Validate(self) -> bool"""
3836 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3838 def base_AcceptsFocus(*args
, **kwargs
):
3839 """base_AcceptsFocus(self) -> bool"""
3840 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3842 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3843 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3844 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3846 def base_GetMaxSize(*args
, **kwargs
):
3847 """base_GetMaxSize(self) -> Size"""
3848 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3850 def base_AddChild(*args
, **kwargs
):
3851 """base_AddChild(self, Window child)"""
3852 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3854 def base_RemoveChild(*args
, **kwargs
):
3855 """base_RemoveChild(self, Window child)"""
3856 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3858 def base_ShouldInheritColours(*args
, **kwargs
):
3859 """base_ShouldInheritColours(self) -> bool"""
3860 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3862 def base_GetDefaultAttributes(*args
, **kwargs
):
3863 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3864 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3866 def base_OnInternalIdle(*args
, **kwargs
):
3867 """base_OnInternalIdle(self)"""
3868 return _windows_
.PyScrolledWindow_base_OnInternalIdle(*args
, **kwargs
)
3871 class PyScrolledWindowPtr(PyScrolledWindow
):
3872 def __init__(self
, this
):
3874 if not hasattr(self
,"thisown"): self
.thisown
= 0
3875 self
.__class
__ = PyScrolledWindow
3876 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3878 def PrePyScrolledWindow(*args
, **kwargs
):
3879 """PrePyScrolledWindow() -> PyScrolledWindow"""
3880 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3884 #---------------------------------------------------------------------------
3886 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3887 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3888 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3889 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3890 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3891 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3892 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3893 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3894 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3895 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3896 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3897 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3898 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3899 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3900 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3901 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3902 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3903 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3904 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3905 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3906 class PrintData(_core
.Object
):
3907 """Proxy of C++ PrintData class"""
3909 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3910 def __init__(self
, *args
):
3912 __init__(self) -> PrintData
3913 __init__(self, PrintData data) -> PrintData
3915 newobj
= _windows_
.new_PrintData(*args
)
3916 self
.this
= newobj
.this
3919 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3922 if self
.thisown
: destroy(self
)
3925 def GetNoCopies(*args
, **kwargs
):
3926 """GetNoCopies(self) -> int"""
3927 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3929 def GetCollate(*args
, **kwargs
):
3930 """GetCollate(self) -> bool"""
3931 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3933 def GetOrientation(*args
, **kwargs
):
3934 """GetOrientation(self) -> int"""
3935 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3937 def Ok(*args
, **kwargs
):
3938 """Ok(self) -> bool"""
3939 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3941 def GetPrinterName(*args
, **kwargs
):
3942 """GetPrinterName(self) -> String"""
3943 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3945 def GetColour(*args
, **kwargs
):
3946 """GetColour(self) -> bool"""
3947 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3949 def GetDuplex(*args
, **kwargs
):
3950 """GetDuplex(self) -> int"""
3951 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3953 def GetPaperId(*args
, **kwargs
):
3954 """GetPaperId(self) -> int"""
3955 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3957 def GetPaperSize(*args
, **kwargs
):
3958 """GetPaperSize(self) -> Size"""
3959 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3961 def GetQuality(*args
, **kwargs
):
3962 """GetQuality(self) -> int"""
3963 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3965 def GetBin(*args
, **kwargs
):
3966 """GetBin(self) -> int"""
3967 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3969 def GetPrintMode(*args
, **kwargs
):
3970 """GetPrintMode(self) -> int"""
3971 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3973 def SetNoCopies(*args
, **kwargs
):
3974 """SetNoCopies(self, int v)"""
3975 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3977 def SetCollate(*args
, **kwargs
):
3978 """SetCollate(self, bool flag)"""
3979 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3981 def SetOrientation(*args
, **kwargs
):
3982 """SetOrientation(self, int orient)"""
3983 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3985 def SetPrinterName(*args
, **kwargs
):
3986 """SetPrinterName(self, String name)"""
3987 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3989 def SetColour(*args
, **kwargs
):
3990 """SetColour(self, bool colour)"""
3991 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3993 def SetDuplex(*args
, **kwargs
):
3994 """SetDuplex(self, int duplex)"""
3995 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3997 def SetPaperId(*args
, **kwargs
):
3998 """SetPaperId(self, int sizeId)"""
3999 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
4001 def SetPaperSize(*args
, **kwargs
):
4002 """SetPaperSize(self, Size sz)"""
4003 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
4005 def SetQuality(*args
, **kwargs
):
4006 """SetQuality(self, int quality)"""
4007 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
4009 def SetBin(*args
, **kwargs
):
4010 """SetBin(self, int bin)"""
4011 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
4013 def SetPrintMode(*args
, **kwargs
):
4014 """SetPrintMode(self, int printMode)"""
4015 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
4017 def GetFilename(*args
, **kwargs
):
4018 """GetFilename(self) -> String"""
4019 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
4021 def SetFilename(*args
, **kwargs
):
4022 """SetFilename(self, String filename)"""
4023 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
4025 def __nonzero__(self
): return self
.Ok()
4026 def GetPrivData(*args
, **kwargs
):
4027 """GetPrivData(self) -> PyObject"""
4028 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
4030 def SetPrivData(*args
, **kwargs
):
4031 """SetPrivData(self, PyObject data)"""
4032 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
4035 class PrintDataPtr(PrintData
):
4036 def __init__(self
, this
):
4038 if not hasattr(self
,"thisown"): self
.thisown
= 0
4039 self
.__class
__ = PrintData
4040 _windows_
.PrintData_swigregister(PrintDataPtr
)
4041 PrintoutTitleStr
= cvar
.PrintoutTitleStr
4042 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
4044 class PageSetupDialogData(_core
.Object
):
4045 """Proxy of C++ PageSetupDialogData class"""
4047 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4048 def __init__(self
, *args
):
4050 __init__(self) -> PageSetupDialogData
4051 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
4052 __init__(self, PrintData data) -> PageSetupDialogData
4054 newobj
= _windows_
.new_PageSetupDialogData(*args
)
4055 self
.this
= newobj
.this
4058 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
4061 if self
.thisown
: destroy(self
)
4064 def EnableHelp(*args
, **kwargs
):
4065 """EnableHelp(self, bool flag)"""
4066 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
4068 def EnableMargins(*args
, **kwargs
):
4069 """EnableMargins(self, bool flag)"""
4070 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
4072 def EnableOrientation(*args
, **kwargs
):
4073 """EnableOrientation(self, bool flag)"""
4074 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
4076 def EnablePaper(*args
, **kwargs
):
4077 """EnablePaper(self, bool flag)"""
4078 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
4080 def EnablePrinter(*args
, **kwargs
):
4081 """EnablePrinter(self, bool flag)"""
4082 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
4084 def GetDefaultMinMargins(*args
, **kwargs
):
4085 """GetDefaultMinMargins(self) -> bool"""
4086 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
4088 def GetEnableMargins(*args
, **kwargs
):
4089 """GetEnableMargins(self) -> bool"""
4090 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
4092 def GetEnableOrientation(*args
, **kwargs
):
4093 """GetEnableOrientation(self) -> bool"""
4094 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4096 def GetEnablePaper(*args
, **kwargs
):
4097 """GetEnablePaper(self) -> bool"""
4098 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4100 def GetEnablePrinter(*args
, **kwargs
):
4101 """GetEnablePrinter(self) -> bool"""
4102 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4104 def GetEnableHelp(*args
, **kwargs
):
4105 """GetEnableHelp(self) -> bool"""
4106 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4108 def GetDefaultInfo(*args
, **kwargs
):
4109 """GetDefaultInfo(self) -> bool"""
4110 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4112 def GetMarginTopLeft(*args
, **kwargs
):
4113 """GetMarginTopLeft(self) -> Point"""
4114 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4116 def GetMarginBottomRight(*args
, **kwargs
):
4117 """GetMarginBottomRight(self) -> Point"""
4118 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4120 def GetMinMarginTopLeft(*args
, **kwargs
):
4121 """GetMinMarginTopLeft(self) -> Point"""
4122 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4124 def GetMinMarginBottomRight(*args
, **kwargs
):
4125 """GetMinMarginBottomRight(self) -> Point"""
4126 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4128 def GetPaperId(*args
, **kwargs
):
4129 """GetPaperId(self) -> int"""
4130 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4132 def GetPaperSize(*args
, **kwargs
):
4133 """GetPaperSize(self) -> Size"""
4134 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4136 def GetPrintData(*args
, **kwargs
):
4137 """GetPrintData(self) -> PrintData"""
4138 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4140 def Ok(*args
, **kwargs
):
4141 """Ok(self) -> bool"""
4142 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4144 def SetDefaultInfo(*args
, **kwargs
):
4145 """SetDefaultInfo(self, bool flag)"""
4146 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4148 def SetDefaultMinMargins(*args
, **kwargs
):
4149 """SetDefaultMinMargins(self, bool flag)"""
4150 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4152 def SetMarginTopLeft(*args
, **kwargs
):
4153 """SetMarginTopLeft(self, Point pt)"""
4154 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4156 def SetMarginBottomRight(*args
, **kwargs
):
4157 """SetMarginBottomRight(self, Point pt)"""
4158 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4160 def SetMinMarginTopLeft(*args
, **kwargs
):
4161 """SetMinMarginTopLeft(self, Point pt)"""
4162 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4164 def SetMinMarginBottomRight(*args
, **kwargs
):
4165 """SetMinMarginBottomRight(self, Point pt)"""
4166 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4168 def SetPaperId(*args
, **kwargs
):
4169 """SetPaperId(self, int id)"""
4170 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4172 def SetPaperSize(*args
, **kwargs
):
4173 """SetPaperSize(self, Size size)"""
4174 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4176 def SetPrintData(*args
, **kwargs
):
4177 """SetPrintData(self, PrintData printData)"""
4178 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4180 def CalculateIdFromPaperSize(*args
, **kwargs
):
4181 """CalculateIdFromPaperSize(self)"""
4182 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
4184 def CalculatePaperSizeFromId(*args
, **kwargs
):
4185 """CalculatePaperSizeFromId(self)"""
4186 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
4188 def __nonzero__(self
): return self
.Ok()
4190 class PageSetupDialogDataPtr(PageSetupDialogData
):
4191 def __init__(self
, this
):
4193 if not hasattr(self
,"thisown"): self
.thisown
= 0
4194 self
.__class
__ = PageSetupDialogData
4195 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4197 class PageSetupDialog(_core
.Object
):
4198 """Proxy of C++ PageSetupDialog class"""
4200 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4201 def __init__(self
, *args
, **kwargs
):
4202 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4203 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4204 self
.this
= newobj
.this
4207 def GetPageSetupData(*args
, **kwargs
):
4208 """GetPageSetupData(self) -> PageSetupDialogData"""
4209 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4211 def GetPageSetupDialogData(*args
, **kwargs
):
4212 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4213 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4215 def ShowModal(*args
, **kwargs
):
4216 """ShowModal(self) -> int"""
4217 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4220 class PageSetupDialogPtr(PageSetupDialog
):
4221 def __init__(self
, this
):
4223 if not hasattr(self
,"thisown"): self
.thisown
= 0
4224 self
.__class
__ = PageSetupDialog
4225 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4227 class PrintDialogData(_core
.Object
):
4228 """Proxy of C++ PrintDialogData class"""
4230 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4231 def __init__(self
, *args
):
4233 __init__(self) -> PrintDialogData
4234 __init__(self, PrintData printData) -> PrintDialogData
4235 __init__(self, PrintDialogData printData) -> PrintDialogData
4237 newobj
= _windows_
.new_PrintDialogData(*args
)
4238 self
.this
= newobj
.this
4241 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4244 if self
.thisown
: destroy(self
)
4247 def GetFromPage(*args
, **kwargs
):
4248 """GetFromPage(self) -> int"""
4249 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4251 def GetToPage(*args
, **kwargs
):
4252 """GetToPage(self) -> int"""
4253 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4255 def GetMinPage(*args
, **kwargs
):
4256 """GetMinPage(self) -> int"""
4257 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4259 def GetMaxPage(*args
, **kwargs
):
4260 """GetMaxPage(self) -> int"""
4261 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4263 def GetNoCopies(*args
, **kwargs
):
4264 """GetNoCopies(self) -> int"""
4265 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4267 def GetAllPages(*args
, **kwargs
):
4268 """GetAllPages(self) -> bool"""
4269 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4271 def GetSelection(*args
, **kwargs
):
4272 """GetSelection(self) -> bool"""
4273 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4275 def GetCollate(*args
, **kwargs
):
4276 """GetCollate(self) -> bool"""
4277 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4279 def GetPrintToFile(*args
, **kwargs
):
4280 """GetPrintToFile(self) -> bool"""
4281 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4283 def SetFromPage(*args
, **kwargs
):
4284 """SetFromPage(self, int v)"""
4285 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4287 def SetToPage(*args
, **kwargs
):
4288 """SetToPage(self, int v)"""
4289 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4291 def SetMinPage(*args
, **kwargs
):
4292 """SetMinPage(self, int v)"""
4293 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4295 def SetMaxPage(*args
, **kwargs
):
4296 """SetMaxPage(self, int v)"""
4297 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4299 def SetNoCopies(*args
, **kwargs
):
4300 """SetNoCopies(self, int v)"""
4301 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4303 def SetAllPages(*args
, **kwargs
):
4304 """SetAllPages(self, bool flag)"""
4305 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4307 def SetSelection(*args
, **kwargs
):
4308 """SetSelection(self, bool flag)"""
4309 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4311 def SetCollate(*args
, **kwargs
):
4312 """SetCollate(self, bool flag)"""
4313 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4315 def SetPrintToFile(*args
, **kwargs
):
4316 """SetPrintToFile(self, bool flag)"""
4317 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4319 def EnablePrintToFile(*args
, **kwargs
):
4320 """EnablePrintToFile(self, bool flag)"""
4321 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4323 def EnableSelection(*args
, **kwargs
):
4324 """EnableSelection(self, bool flag)"""
4325 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4327 def EnablePageNumbers(*args
, **kwargs
):
4328 """EnablePageNumbers(self, bool flag)"""
4329 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4331 def EnableHelp(*args
, **kwargs
):
4332 """EnableHelp(self, bool flag)"""
4333 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4335 def GetEnablePrintToFile(*args
, **kwargs
):
4336 """GetEnablePrintToFile(self) -> bool"""
4337 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4339 def GetEnableSelection(*args
, **kwargs
):
4340 """GetEnableSelection(self) -> bool"""
4341 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4343 def GetEnablePageNumbers(*args
, **kwargs
):
4344 """GetEnablePageNumbers(self) -> bool"""
4345 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4347 def GetEnableHelp(*args
, **kwargs
):
4348 """GetEnableHelp(self) -> bool"""
4349 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4351 def Ok(*args
, **kwargs
):
4352 """Ok(self) -> bool"""
4353 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4355 def GetPrintData(*args
, **kwargs
):
4356 """GetPrintData(self) -> PrintData"""
4357 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4359 def SetPrintData(*args
, **kwargs
):
4360 """SetPrintData(self, PrintData printData)"""
4361 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4363 def __nonzero__(self
): return self
.Ok()
4365 class PrintDialogDataPtr(PrintDialogData
):
4366 def __init__(self
, this
):
4368 if not hasattr(self
,"thisown"): self
.thisown
= 0
4369 self
.__class
__ = PrintDialogData
4370 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4372 class PrintDialog(_core
.Object
):
4373 """Proxy of C++ PrintDialog class"""
4375 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4376 def __init__(self
, *args
, **kwargs
):
4377 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4378 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4379 self
.this
= newobj
.this
4382 def ShowModal(*args
, **kwargs
):
4383 """ShowModal(self) -> int"""
4384 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4386 def GetPrintDialogData(*args
, **kwargs
):
4387 """GetPrintDialogData(self) -> PrintDialogData"""
4388 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4390 def GetPrintData(*args
, **kwargs
):
4391 """GetPrintData(self) -> PrintData"""
4392 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4394 def GetPrintDC(*args
, **kwargs
):
4395 """GetPrintDC(self) -> DC"""
4396 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4399 class PrintDialogPtr(PrintDialog
):
4400 def __init__(self
, this
):
4402 if not hasattr(self
,"thisown"): self
.thisown
= 0
4403 self
.__class
__ = PrintDialog
4404 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4406 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4407 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4408 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4409 class Printer(_core
.Object
):
4410 """Proxy of C++ Printer class"""
4412 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4413 def __init__(self
, *args
, **kwargs
):
4414 """__init__(self, PrintDialogData data=None) -> Printer"""
4415 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4416 self
.this
= newobj
.this
4419 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4422 if self
.thisown
: destroy(self
)
4425 def CreateAbortWindow(*args
, **kwargs
):
4426 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4427 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4429 def ReportError(*args
, **kwargs
):
4430 """ReportError(self, Window parent, Printout printout, String message)"""
4431 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4433 def Setup(*args
, **kwargs
):
4434 """Setup(self, Window parent) -> bool"""
4435 return _windows_
.Printer_Setup(*args
, **kwargs
)
4437 def Print(*args
, **kwargs
):
4438 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4439 return _windows_
.Printer_Print(*args
, **kwargs
)
4441 def PrintDialog(*args
, **kwargs
):
4442 """PrintDialog(self, Window parent) -> DC"""
4443 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4445 def GetPrintDialogData(*args
, **kwargs
):
4446 """GetPrintDialogData(self) -> PrintDialogData"""
4447 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4449 def GetAbort(*args
, **kwargs
):
4450 """GetAbort(self) -> bool"""
4451 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4453 def GetLastError(*args
, **kwargs
):
4454 """GetLastError() -> int"""
4455 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4457 GetLastError
= staticmethod(GetLastError
)
4459 class PrinterPtr(Printer
):
4460 def __init__(self
, this
):
4462 if not hasattr(self
,"thisown"): self
.thisown
= 0
4463 self
.__class
__ = Printer
4464 _windows_
.Printer_swigregister(PrinterPtr
)
4466 def Printer_GetLastError(*args
, **kwargs
):
4467 """Printer_GetLastError() -> int"""
4468 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4470 class Printout(_core
.Object
):
4471 """Proxy of C++ Printout class"""
4473 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4474 def __init__(self
, *args
, **kwargs
):
4475 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4476 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4477 self
.this
= newobj
.this
4480 self
._setCallbackInfo
(self
, Printout
)
4482 def _setCallbackInfo(*args
, **kwargs
):
4483 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4484 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4486 def GetTitle(*args
, **kwargs
):
4487 """GetTitle(self) -> String"""
4488 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4490 def GetDC(*args
, **kwargs
):
4491 """GetDC(self) -> DC"""
4492 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4494 def SetDC(*args
, **kwargs
):
4495 """SetDC(self, DC dc)"""
4496 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4498 def SetPageSizePixels(*args
, **kwargs
):
4499 """SetPageSizePixels(self, int w, int h)"""
4500 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4502 def GetPageSizePixels(*args
, **kwargs
):
4503 """GetPageSizePixels() -> (w, h)"""
4504 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4506 def SetPageSizeMM(*args
, **kwargs
):
4507 """SetPageSizeMM(self, int w, int h)"""
4508 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4510 def GetPageSizeMM(*args
, **kwargs
):
4511 """GetPageSizeMM() -> (w, h)"""
4512 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4514 def SetPPIScreen(*args
, **kwargs
):
4515 """SetPPIScreen(self, int x, int y)"""
4516 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4518 def GetPPIScreen(*args
, **kwargs
):
4519 """GetPPIScreen() -> (x,y)"""
4520 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4522 def SetPPIPrinter(*args
, **kwargs
):
4523 """SetPPIPrinter(self, int x, int y)"""
4524 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4526 def GetPPIPrinter(*args
, **kwargs
):
4527 """GetPPIPrinter() -> (x,y)"""
4528 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4530 def IsPreview(*args
, **kwargs
):
4531 """IsPreview(self) -> bool"""
4532 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4534 def SetIsPreview(*args
, **kwargs
):
4535 """SetIsPreview(self, bool p)"""
4536 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4538 def base_OnBeginDocument(*args
, **kwargs
):
4539 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4540 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4542 def base_OnEndDocument(*args
, **kwargs
):
4543 """base_OnEndDocument(self)"""
4544 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4546 def base_OnBeginPrinting(*args
, **kwargs
):
4547 """base_OnBeginPrinting(self)"""
4548 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4550 def base_OnEndPrinting(*args
, **kwargs
):
4551 """base_OnEndPrinting(self)"""
4552 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4554 def base_OnPreparePrinting(*args
, **kwargs
):
4555 """base_OnPreparePrinting(self)"""
4556 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4558 def base_HasPage(*args
, **kwargs
):
4559 """base_HasPage(self, int page) -> bool"""
4560 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4562 def base_GetPageInfo(*args
, **kwargs
):
4563 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4564 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4567 class PrintoutPtr(Printout
):
4568 def __init__(self
, this
):
4570 if not hasattr(self
,"thisown"): self
.thisown
= 0
4571 self
.__class
__ = Printout
4572 _windows_
.Printout_swigregister(PrintoutPtr
)
4574 class PreviewCanvas(ScrolledWindow
):
4575 """Proxy of C++ PreviewCanvas class"""
4577 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4578 def __init__(self
, *args
, **kwargs
):
4580 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4581 Size size=DefaultSize, long style=0,
4582 String name=PreviewCanvasNameStr) -> PreviewCanvas
4584 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4585 self
.this
= newobj
.this
4588 self
._setOORInfo
(self
)
4591 class PreviewCanvasPtr(PreviewCanvas
):
4592 def __init__(self
, this
):
4594 if not hasattr(self
,"thisown"): self
.thisown
= 0
4595 self
.__class
__ = PreviewCanvas
4596 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4598 class PreviewFrame(Frame
):
4599 """Proxy of C++ PreviewFrame class"""
4601 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4602 def __init__(self
, *args
, **kwargs
):
4604 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4605 Size size=DefaultSize,
4606 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4608 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4609 self
.this
= newobj
.this
4612 self
._setOORInfo
(self
)
4614 def Initialize(*args
, **kwargs
):
4615 """Initialize(self)"""
4616 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4618 def CreateControlBar(*args
, **kwargs
):
4619 """CreateControlBar(self)"""
4620 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4622 def CreateCanvas(*args
, **kwargs
):
4623 """CreateCanvas(self)"""
4624 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4626 def GetControlBar(*args
, **kwargs
):
4627 """GetControlBar(self) -> PreviewControlBar"""
4628 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4631 class PreviewFramePtr(PreviewFrame
):
4632 def __init__(self
, this
):
4634 if not hasattr(self
,"thisown"): self
.thisown
= 0
4635 self
.__class
__ = PreviewFrame
4636 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4638 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4639 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4640 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4641 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4642 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4643 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4644 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4645 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4646 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4647 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4648 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4649 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4650 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4651 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4652 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4653 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4654 class PreviewControlBar(Panel
):
4655 """Proxy of C++ PreviewControlBar class"""
4657 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4658 def __init__(self
, *args
, **kwargs
):
4660 __init__(self, PrintPreview preview, long buttons, Window parent,
4661 Point pos=DefaultPosition, Size size=DefaultSize,
4662 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4664 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4665 self
.this
= newobj
.this
4668 self
._setOORInfo
(self
)
4670 def GetZoomControl(*args
, **kwargs
):
4671 """GetZoomControl(self) -> int"""
4672 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4674 def SetZoomControl(*args
, **kwargs
):
4675 """SetZoomControl(self, int zoom)"""
4676 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4678 def GetPrintPreview(*args
, **kwargs
):
4679 """GetPrintPreview(self) -> PrintPreview"""
4680 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4682 def OnNext(*args
, **kwargs
):
4684 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4686 def OnPrevious(*args
, **kwargs
):
4687 """OnPrevious(self)"""
4688 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4690 def OnFirst(*args
, **kwargs
):
4692 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4694 def OnLast(*args
, **kwargs
):
4696 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4698 def OnGoto(*args
, **kwargs
):
4700 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4703 class PreviewControlBarPtr(PreviewControlBar
):
4704 def __init__(self
, this
):
4706 if not hasattr(self
,"thisown"): self
.thisown
= 0
4707 self
.__class
__ = PreviewControlBar
4708 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4710 class PrintPreview(_core
.Object
):
4711 """Proxy of C++ PrintPreview class"""
4713 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4714 def __init__(self
, *args
):
4716 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4717 __init__(self, Printout printout, Printout printoutForPrinting) -> PrintPreview
4718 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4720 newobj
= _windows_
.new_PrintPreview(*args
)
4721 self
.this
= newobj
.this
4724 def SetCurrentPage(*args
, **kwargs
):
4725 """SetCurrentPage(self, int pageNum) -> bool"""
4726 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4728 def GetCurrentPage(*args
, **kwargs
):
4729 """GetCurrentPage(self) -> int"""
4730 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4732 def SetPrintout(*args
, **kwargs
):
4733 """SetPrintout(self, Printout printout)"""
4734 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4736 def GetPrintout(*args
, **kwargs
):
4737 """GetPrintout(self) -> Printout"""
4738 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4740 def GetPrintoutForPrinting(*args
, **kwargs
):
4741 """GetPrintoutForPrinting(self) -> Printout"""
4742 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4744 def SetFrame(*args
, **kwargs
):
4745 """SetFrame(self, Frame frame)"""
4746 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4748 def SetCanvas(*args
, **kwargs
):
4749 """SetCanvas(self, PreviewCanvas canvas)"""
4750 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4752 def GetFrame(*args
, **kwargs
):
4753 """GetFrame(self) -> Frame"""
4754 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4756 def GetCanvas(*args
, **kwargs
):
4757 """GetCanvas(self) -> PreviewCanvas"""
4758 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4760 def PaintPage(*args
, **kwargs
):
4761 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4762 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4764 def DrawBlankPage(*args
, **kwargs
):
4765 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4766 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4768 def RenderPage(*args
, **kwargs
):
4769 """RenderPage(self, int pageNum) -> bool"""
4770 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4772 def AdjustScrollbars(*args
, **kwargs
):
4773 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4774 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4776 def GetPrintDialogData(*args
, **kwargs
):
4777 """GetPrintDialogData(self) -> PrintDialogData"""
4778 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4780 def SetZoom(*args
, **kwargs
):
4781 """SetZoom(self, int percent)"""
4782 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4784 def GetZoom(*args
, **kwargs
):
4785 """GetZoom(self) -> int"""
4786 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4788 def GetMaxPage(*args
, **kwargs
):
4789 """GetMaxPage(self) -> int"""
4790 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4792 def GetMinPage(*args
, **kwargs
):
4793 """GetMinPage(self) -> int"""
4794 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4796 def Ok(*args
, **kwargs
):
4797 """Ok(self) -> bool"""
4798 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4800 def SetOk(*args
, **kwargs
):
4801 """SetOk(self, bool ok)"""
4802 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4804 def Print(*args
, **kwargs
):
4805 """Print(self, bool interactive) -> bool"""
4806 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4808 def DetermineScaling(*args
, **kwargs
):
4809 """DetermineScaling(self)"""
4810 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4812 def __nonzero__(self
): return self
.Ok()
4814 class PrintPreviewPtr(PrintPreview
):
4815 def __init__(self
, this
):
4817 if not hasattr(self
,"thisown"): self
.thisown
= 0
4818 self
.__class
__ = PrintPreview
4819 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4821 class PyPrintPreview(PrintPreview
):
4822 """Proxy of C++ PyPrintPreview class"""
4824 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4825 def __init__(self
, *args
):
4827 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4828 __init__(self, Printout printout, Printout printoutForPrinting) -> PyPrintPreview
4829 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4831 newobj
= _windows_
.new_PyPrintPreview(*args
)
4832 self
.this
= newobj
.this
4835 self
._setCallbackInfo
(self
, PyPrintPreview
)
4837 def _setCallbackInfo(*args
, **kwargs
):
4838 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4839 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4841 def base_SetCurrentPage(*args
, **kwargs
):
4842 """base_SetCurrentPage(self, int pageNum) -> bool"""
4843 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4845 def base_PaintPage(*args
, **kwargs
):
4846 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4847 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4849 def base_DrawBlankPage(*args
, **kwargs
):
4850 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4851 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4853 def base_RenderPage(*args
, **kwargs
):
4854 """base_RenderPage(self, int pageNum) -> bool"""
4855 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4857 def base_SetZoom(*args
, **kwargs
):
4858 """base_SetZoom(self, int percent)"""
4859 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4861 def base_Print(*args
, **kwargs
):
4862 """base_Print(self, bool interactive) -> bool"""
4863 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4865 def base_DetermineScaling(*args
, **kwargs
):
4866 """base_DetermineScaling(self)"""
4867 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4870 class PyPrintPreviewPtr(PyPrintPreview
):
4871 def __init__(self
, this
):
4873 if not hasattr(self
,"thisown"): self
.thisown
= 0
4874 self
.__class
__ = PyPrintPreview
4875 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4877 class PyPreviewFrame(PreviewFrame
):
4878 """Proxy of C++ PyPreviewFrame class"""
4880 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4881 def __init__(self
, *args
, **kwargs
):
4883 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4884 Size size=DefaultSize,
4885 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4887 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4888 self
.this
= newobj
.this
4891 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4893 def _setCallbackInfo(*args
, **kwargs
):
4894 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4895 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4897 def SetPreviewCanvas(*args
, **kwargs
):
4898 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4899 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4901 def SetControlBar(*args
, **kwargs
):
4902 """SetControlBar(self, PreviewControlBar bar)"""
4903 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4905 def base_Initialize(*args
, **kwargs
):
4906 """base_Initialize(self)"""
4907 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4909 def base_CreateCanvas(*args
, **kwargs
):
4910 """base_CreateCanvas(self)"""
4911 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4913 def base_CreateControlBar(*args
, **kwargs
):
4914 """base_CreateControlBar(self)"""
4915 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4918 class PyPreviewFramePtr(PyPreviewFrame
):
4919 def __init__(self
, this
):
4921 if not hasattr(self
,"thisown"): self
.thisown
= 0
4922 self
.__class
__ = PyPreviewFrame
4923 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4925 class PyPreviewControlBar(PreviewControlBar
):
4926 """Proxy of C++ PyPreviewControlBar class"""
4928 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4929 def __init__(self
, *args
, **kwargs
):
4931 __init__(self, PrintPreview preview, long buttons, Window parent,
4932 Point pos=DefaultPosition, Size size=DefaultSize,
4933 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4935 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4936 self
.this
= newobj
.this
4939 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4941 def _setCallbackInfo(*args
, **kwargs
):
4942 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4943 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4945 def SetPrintPreview(*args
, **kwargs
):
4946 """SetPrintPreview(self, PrintPreview preview)"""
4947 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4949 def base_CreateButtons(*args
, **kwargs
):
4950 """base_CreateButtons(self)"""
4951 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4953 def base_SetZoomControl(*args
, **kwargs
):
4954 """base_SetZoomControl(self, int zoom)"""
4955 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4958 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4959 def __init__(self
, this
):
4961 if not hasattr(self
,"thisown"): self
.thisown
= 0
4962 self
.__class
__ = PyPreviewControlBar
4963 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)