1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
6 new_instancemethod
= new
.instancemethod
7 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if (name
== "thisown"): return self
.this
.own(value
)
10 if type(value
).__name
__ == 'PySwigObject':
11 self
.__dict
__[name
] = value
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
):
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 if (name
== "thisown"): return self
.this
.own()
25 method
= class_type
.__swig
_getmethods
__.get(name
,None)
26 if method
: return method(self
)
27 raise AttributeError,name
30 try: strthis
= "proxy of " + self
.this
.__repr
__()
32 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
36 _object
= types
.ObjectType
38 except AttributeError:
44 def _swig_setattr_nondynamic_method(set):
45 def set_attr(self
,name
,value
):
46 if (name
== "thisown"): return self
.this
.own(value
)
47 if hasattr(self
,name
) or (name
== "this"):
50 raise AttributeError("You cannot add attributes to %s" % self
)
56 #---------------------------------------------------------------------------
58 class Panel(_core
.Window
):
59 """Proxy of C++ Panel class"""
60 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
62 def __init__(self
, *args
, **kwargs
):
64 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
65 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
66 String name=PanelNameStr) -> Panel
68 _windows_
.Panel_swiginit(self
,_windows_
.new_Panel(*args
, **kwargs
))
69 self
._setOORInfo
(self
)
71 def Create(*args
, **kwargs
):
73 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
74 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
75 String name=PanelNameStr) -> bool
77 Create the GUI part of the Window for 2-phase creation mode.
79 return _windows_
.Panel_Create(*args
, **kwargs
)
81 def SetFocusIgnoringChildren(*args
, **kwargs
):
83 SetFocusIgnoringChildren(self)
85 In contrast to `SetFocus` (see above) this will set the focus to the
86 panel even of there are child windows in the panel. This is only
89 return _windows_
.Panel_SetFocusIgnoringChildren(*args
, **kwargs
)
91 def GetClassDefaultAttributes(*args
, **kwargs
):
93 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
95 Get the default attributes for this class. This is useful if you want
96 to use the same font or colour in your own control as in a standard
97 control -- which is a much better idea than hard coding specific
98 colours or fonts which might look completely out of place on the
99 user's system, especially if it uses themes.
101 The variant parameter is only relevant under Mac currently and is
102 ignore under other platforms. Under Mac, it will change the size of
103 the returned font. See `wx.Window.SetWindowVariant` for more about
106 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
108 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
109 _windows_
.Panel_swigregister(Panel
)
111 def PrePanel(*args
, **kwargs
):
112 """PrePanel() -> Panel"""
113 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
116 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
118 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
120 Get the default attributes for this class. This is useful if you want
121 to use the same font or colour in your own control as in a standard
122 control -- which is a much better idea than hard coding specific
123 colours or fonts which might look completely out of place on the
124 user's system, especially if it uses themes.
126 The variant parameter is only relevant under Mac currently and is
127 ignore under other platforms. Under Mac, it will change the size of
128 the returned font. See `wx.Window.SetWindowVariant` for more about
131 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
133 #---------------------------------------------------------------------------
135 class ScrolledWindow(Panel
):
136 """Proxy of C++ ScrolledWindow class"""
137 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
138 __repr__
= _swig_repr
139 def __init__(self
, *args
, **kwargs
):
141 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
142 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
143 String name=PanelNameStr) -> ScrolledWindow
145 _windows_
.ScrolledWindow_swiginit(self
,_windows_
.new_ScrolledWindow(*args
, **kwargs
))
146 self
._setOORInfo
(self
)
148 def Create(*args
, **kwargs
):
150 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
151 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
152 String name=PanelNameStr) -> bool
154 Create the GUI part of the Window for 2-phase creation mode.
156 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
158 def SetScrollbars(*args
, **kwargs
):
160 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
161 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
163 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
165 def Scroll(*args
, **kwargs
):
166 """Scroll(self, int x, int y)"""
167 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
169 def GetScrollPageSize(*args
, **kwargs
):
170 """GetScrollPageSize(self, int orient) -> int"""
171 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
173 def SetScrollPageSize(*args
, **kwargs
):
174 """SetScrollPageSize(self, int orient, int pageSize)"""
175 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
177 def SetScrollRate(*args
, **kwargs
):
178 """SetScrollRate(self, int xstep, int ystep)"""
179 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
181 def GetScrollPixelsPerUnit(*args
, **kwargs
):
183 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
185 Get the size of one logical unit in physical units.
187 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
189 def EnableScrolling(*args
, **kwargs
):
190 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
191 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
193 def GetViewStart(*args
, **kwargs
):
195 GetViewStart() -> (x,y)
199 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
201 def SetScale(*args
, **kwargs
):
202 """SetScale(self, double xs, double ys)"""
203 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
205 def GetScaleX(*args
, **kwargs
):
206 """GetScaleX(self) -> double"""
207 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
209 def GetScaleY(*args
, **kwargs
):
210 """GetScaleY(self) -> double"""
211 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
213 def CalcScrolledPosition(*args
):
215 CalcScrolledPosition(self, Point pt) -> Point
216 CalcScrolledPosition(int x, int y) -> (sx, sy)
218 Translate between scrolled and unscrolled coordinates.
220 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
222 def CalcUnscrolledPosition(*args
):
224 CalcUnscrolledPosition(self, Point pt) -> Point
225 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
227 Translate between scrolled and unscrolled coordinates.
229 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
231 def AdjustScrollbars(*args
, **kwargs
):
232 """AdjustScrollbars(self)"""
233 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
235 def CalcScrollInc(*args
, **kwargs
):
236 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
237 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
239 def SetTargetWindow(*args
, **kwargs
):
240 """SetTargetWindow(self, Window target)"""
241 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
243 def GetTargetWindow(*args
, **kwargs
):
244 """GetTargetWindow(self) -> Window"""
245 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
247 def SetTargetRect(*args
, **kwargs
):
248 """SetTargetRect(self, Rect rect)"""
249 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
251 def GetTargetRect(*args
, **kwargs
):
252 """GetTargetRect(self) -> Rect"""
253 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
255 def DoPrepareDC(*args
, **kwargs
):
257 DoPrepareDC(self, DC dc)
259 Normally what is called by `PrepareDC`.
261 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
263 def GetClassDefaultAttributes(*args
, **kwargs
):
265 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
267 Get the default attributes for this class. This is useful if you want
268 to use the same font or colour in your own control as in a standard
269 control -- which is a much better idea than hard coding specific
270 colours or fonts which might look completely out of place on the
271 user's system, especially if it uses themes.
273 The variant parameter is only relevant under Mac currently and is
274 ignore under other platforms. Under Mac, it will change the size of
275 the returned font. See `wx.Window.SetWindowVariant` for more about
278 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
280 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
281 _windows_
.ScrolledWindow_swigregister(ScrolledWindow
)
283 def PreScrolledWindow(*args
, **kwargs
):
284 """PreScrolledWindow() -> ScrolledWindow"""
285 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
288 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
290 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
292 Get the default attributes for this class. This is useful if you want
293 to use the same font or colour in your own control as in a standard
294 control -- which is a much better idea than hard coding specific
295 colours or fonts which might look completely out of place on the
296 user's system, especially if it uses themes.
298 The variant parameter is only relevant under Mac currently and is
299 ignore under other platforms. Under Mac, it will change the size of
300 the returned font. See `wx.Window.SetWindowVariant` for more about
303 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
305 #---------------------------------------------------------------------------
307 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
308 ICONIZE
= _windows_
.ICONIZE
309 MINIMIZE
= _windows_
.MINIMIZE
310 MAXIMIZE
= _windows_
.MAXIMIZE
311 CLOSE_BOX
= _windows_
.CLOSE_BOX
312 THICK_FRAME
= _windows_
.THICK_FRAME
313 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
314 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
315 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
316 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
317 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
318 RESIZE_BOX
= _windows_
.RESIZE_BOX
319 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
320 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
321 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
322 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
323 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
324 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
325 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
326 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
327 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
328 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
329 FRAME_EX_METAL
= _windows_
.FRAME_EX_METAL
330 DIALOG_EX_METAL
= _windows_
.DIALOG_EX_METAL
331 WS_EX_CONTEXTHELP
= _windows_
.WS_EX_CONTEXTHELP
332 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
333 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
334 USER_COLOURS
= _windows_
.USER_COLOURS
335 NO_3D
= _windows_
.NO_3D
336 FRAME_EX_CONTEXTHELP
= _windows_
.FRAME_EX_CONTEXTHELP
337 DIALOG_EX_CONTEXTHELP
= _windows_
.DIALOG_EX_CONTEXTHELP
338 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
339 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
340 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
341 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
342 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
343 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
344 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
345 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
346 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
347 class TopLevelWindow(_core
.Window
):
348 """Proxy of C++ TopLevelWindow class"""
349 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
350 def __init__(self
): raise AttributeError, "No constructor defined"
351 __repr__
= _swig_repr
352 def Maximize(*args
, **kwargs
):
353 """Maximize(self, bool maximize=True)"""
354 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
356 def Restore(*args
, **kwargs
):
358 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
360 def Iconize(*args
, **kwargs
):
361 """Iconize(self, bool iconize=True)"""
362 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
364 def IsMaximized(*args
, **kwargs
):
365 """IsMaximized(self) -> bool"""
366 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
368 def IsAlwaysMaximized(*args
, **kwargs
):
369 """IsAlwaysMaximized(self) -> bool"""
370 return _windows_
.TopLevelWindow_IsAlwaysMaximized(*args
, **kwargs
)
372 def IsIconized(*args
, **kwargs
):
373 """IsIconized(self) -> bool"""
374 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
376 def GetIcon(*args
, **kwargs
):
377 """GetIcon(self) -> Icon"""
378 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
380 def SetIcon(*args
, **kwargs
):
381 """SetIcon(self, Icon icon)"""
382 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
384 def SetIcons(*args
, **kwargs
):
385 """SetIcons(self, wxIconBundle icons)"""
386 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
388 def ShowFullScreen(*args
, **kwargs
):
389 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
390 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
392 def IsFullScreen(*args
, **kwargs
):
393 """IsFullScreen(self) -> bool"""
394 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
396 def SetTitle(*args
, **kwargs
):
397 """SetTitle(self, String title)"""
398 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
400 def GetTitle(*args
, **kwargs
):
401 """GetTitle(self) -> String"""
402 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
404 def SetShape(*args
, **kwargs
):
405 """SetShape(self, Region region) -> bool"""
406 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
408 def RequestUserAttention(*args
, **kwargs
):
409 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
410 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
412 def IsActive(*args
, **kwargs
):
413 """IsActive(self) -> bool"""
414 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
416 def MacSetMetalAppearance(*args
, **kwargs
):
417 """MacSetMetalAppearance(self, bool on)"""
418 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
420 def MacGetMetalAppearance(*args
, **kwargs
):
421 """MacGetMetalAppearance(self) -> bool"""
422 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
424 def CenterOnScreen(*args
, **kwargs
):
426 CenterOnScreen(self, int dir=BOTH)
428 Center the window on screen
430 return _windows_
.TopLevelWindow_CenterOnScreen(*args
, **kwargs
)
432 CentreOnScreen
= CenterOnScreen
433 def EnableCloseButton(*args
, **kwargs
):
434 """EnableCloseButton(self, bool enable=True) -> bool"""
435 return _windows_
.TopLevelWindow_EnableCloseButton(*args
, **kwargs
)
437 def GetDefaultItem(*args
, **kwargs
):
439 GetDefaultItem(self) -> Window
441 Get the default child of this parent, i.e. the one which is activated
442 by pressing <Enter> such as the OK button on a wx.Dialog.
444 return _windows_
.TopLevelWindow_GetDefaultItem(*args
, **kwargs
)
446 def SetDefaultItem(*args
, **kwargs
):
448 SetDefaultItem(self, Window child) -> Window
450 Set this child as default, return the old default.
452 return _windows_
.TopLevelWindow_SetDefaultItem(*args
, **kwargs
)
454 def SetTmpDefaultItem(*args
, **kwargs
):
456 SetTmpDefaultItem(self, Window win)
458 Set this child as temporary default
460 return _windows_
.TopLevelWindow_SetTmpDefaultItem(*args
, **kwargs
)
462 def GetTmpDefaultItem(*args
, **kwargs
):
464 GetTmpDefaultItem(self) -> Window
466 Return the temporary default item, which can be None.
468 return _windows_
.TopLevelWindow_GetTmpDefaultItem(*args
, **kwargs
)
470 _windows_
.TopLevelWindow_swigregister(TopLevelWindow
)
471 cvar
= _windows_
.cvar
472 FrameNameStr
= cvar
.FrameNameStr
473 DialogNameStr
= cvar
.DialogNameStr
474 StatusLineNameStr
= cvar
.StatusLineNameStr
475 ToolBarNameStr
= cvar
.ToolBarNameStr
477 #---------------------------------------------------------------------------
479 class Frame(TopLevelWindow
):
480 """Proxy of C++ Frame class"""
481 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
482 __repr__
= _swig_repr
483 def __init__(self
, *args
, **kwargs
):
485 __init__(self, Window parent, int id=-1, String title=EmptyString,
486 Point pos=DefaultPosition, Size size=DefaultSize,
487 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
489 _windows_
.Frame_swiginit(self
,_windows_
.new_Frame(*args
, **kwargs
))
490 self
._setOORInfo
(self
)
492 def Create(*args
, **kwargs
):
494 Create(self, Window parent, int id=-1, String title=EmptyString,
495 Point pos=DefaultPosition, Size size=DefaultSize,
496 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
498 return _windows_
.Frame_Create(*args
, **kwargs
)
500 def SendSizeEvent(*args
, **kwargs
):
501 """SendSizeEvent(self)"""
502 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
504 def SetMenuBar(*args
, **kwargs
):
505 """SetMenuBar(self, MenuBar menubar)"""
506 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
508 def GetMenuBar(*args
, **kwargs
):
509 """GetMenuBar(self) -> MenuBar"""
510 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
512 def ProcessCommand(*args
, **kwargs
):
513 """ProcessCommand(self, int winid) -> bool"""
514 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
516 Command
= ProcessCommand
517 def CreateStatusBar(*args
, **kwargs
):
519 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
520 String name=StatusLineNameStr) -> StatusBar
522 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
524 def GetStatusBar(*args
, **kwargs
):
525 """GetStatusBar(self) -> StatusBar"""
526 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
528 def SetStatusBar(*args
, **kwargs
):
529 """SetStatusBar(self, StatusBar statBar)"""
530 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
532 def SetStatusText(*args
, **kwargs
):
533 """SetStatusText(self, String text, int number=0)"""
534 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
536 def SetStatusWidths(*args
, **kwargs
):
537 """SetStatusWidths(self, int widths)"""
538 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
540 def PushStatusText(*args
, **kwargs
):
541 """PushStatusText(self, String text, int number=0)"""
542 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
544 def PopStatusText(*args
, **kwargs
):
545 """PopStatusText(self, int number=0)"""
546 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
548 def SetStatusBarPane(*args
, **kwargs
):
549 """SetStatusBarPane(self, int n)"""
550 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
552 def GetStatusBarPane(*args
, **kwargs
):
553 """GetStatusBarPane(self) -> int"""
554 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
556 def CreateToolBar(*args
, **kwargs
):
557 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
558 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
560 def GetToolBar(*args
, **kwargs
):
561 """GetToolBar(self) -> wxToolBar"""
562 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
564 def SetToolBar(*args
, **kwargs
):
565 """SetToolBar(self, wxToolBar toolbar)"""
566 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
568 def DoGiveHelp(*args
, **kwargs
):
569 """DoGiveHelp(self, String text, bool show)"""
570 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
572 def DoMenuUpdates(*args
, **kwargs
):
573 """DoMenuUpdates(self, Menu menu=None)"""
574 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
576 def GetClassDefaultAttributes(*args
, **kwargs
):
578 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
580 Get the default attributes for this class. This is useful if you want
581 to use the same font or colour in your own control as in a standard
582 control -- which is a much better idea than hard coding specific
583 colours or fonts which might look completely out of place on the
584 user's system, especially if it uses themes.
586 The variant parameter is only relevant under Mac currently and is
587 ignore under other platforms. Under Mac, it will change the size of
588 the returned font. See `wx.Window.SetWindowVariant` for more about
591 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
593 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
594 _windows_
.Frame_swigregister(Frame
)
596 def PreFrame(*args
, **kwargs
):
597 """PreFrame() -> Frame"""
598 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
601 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
603 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
605 Get the default attributes for this class. This is useful if you want
606 to use the same font or colour in your own control as in a standard
607 control -- which is a much better idea than hard coding specific
608 colours or fonts which might look completely out of place on the
609 user's system, especially if it uses themes.
611 The variant parameter is only relevant under Mac currently and is
612 ignore under other platforms. Under Mac, it will change the size of
613 the returned font. See `wx.Window.SetWindowVariant` for more about
616 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
618 #---------------------------------------------------------------------------
620 class Dialog(TopLevelWindow
):
621 """Proxy of C++ Dialog class"""
622 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
623 __repr__
= _swig_repr
624 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
625 def __init__(self
, *args
, **kwargs
):
627 __init__(self, Window parent, int id=-1, String title=EmptyString,
628 Point pos=DefaultPosition, Size size=DefaultSize,
629 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
631 _windows_
.Dialog_swiginit(self
,_windows_
.new_Dialog(*args
, **kwargs
))
632 self
._setOORInfo
(self
)
634 def Create(*args
, **kwargs
):
636 Create(self, Window parent, int id=-1, String title=EmptyString,
637 Point pos=DefaultPosition, Size size=DefaultSize,
638 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
640 return _windows_
.Dialog_Create(*args
, **kwargs
)
642 def SetReturnCode(*args
, **kwargs
):
643 """SetReturnCode(self, int returnCode)"""
644 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
646 def GetReturnCode(*args
, **kwargs
):
647 """GetReturnCode(self) -> int"""
648 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
650 def SetAffirmativeId(*args
, **kwargs
):
651 """SetAffirmativeId(self, int affirmativeId)"""
652 return _windows_
.Dialog_SetAffirmativeId(*args
, **kwargs
)
654 def GetAffirmativeId(*args
, **kwargs
):
655 """GetAffirmativeId(self) -> int"""
656 return _windows_
.Dialog_GetAffirmativeId(*args
, **kwargs
)
658 def SetEscapeId(*args
, **kwargs
):
659 """SetEscapeId(self, int escapeId)"""
660 return _windows_
.Dialog_SetEscapeId(*args
, **kwargs
)
662 def GetEscapeId(*args
, **kwargs
):
663 """GetEscapeId(self) -> int"""
664 return _windows_
.Dialog_GetEscapeId(*args
, **kwargs
)
666 def CreateTextSizer(*args
, **kwargs
):
667 """CreateTextSizer(self, String message) -> Sizer"""
668 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
670 def CreateButtonSizer(*args
, **kwargs
):
671 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
672 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
674 def CreateStdDialogButtonSizer(*args
, **kwargs
):
675 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
676 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
678 def IsModal(*args
, **kwargs
):
679 """IsModal(self) -> bool"""
680 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
682 def ShowModal(*args
, **kwargs
):
683 """ShowModal(self) -> int"""
684 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
686 def EndModal(*args
, **kwargs
):
687 """EndModal(self, int retCode)"""
688 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
690 def GetClassDefaultAttributes(*args
, **kwargs
):
692 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
694 Get the default attributes for this class. This is useful if you want
695 to use the same font or colour in your own control as in a standard
696 control -- which is a much better idea than hard coding specific
697 colours or fonts which might look completely out of place on the
698 user's system, especially if it uses themes.
700 The variant parameter is only relevant under Mac currently and is
701 ignore under other platforms. Under Mac, it will change the size of
702 the returned font. See `wx.Window.SetWindowVariant` for more about
705 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
707 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
708 AffirmativeId
= property(GetAffirmativeId
,SetAffirmativeId
,doc
="See `GetAffirmativeId` and `SetAffirmativeId`")
709 EscapeId
= property(GetEscapeId
,SetEscapeId
,doc
="See `GetEscapeId` and `SetEscapeId`")
710 ReturnCode
= property(GetReturnCode
,SetReturnCode
,doc
="See `GetReturnCode` and `SetReturnCode`")
711 _windows_
.Dialog_swigregister(Dialog
)
713 def PreDialog(*args
, **kwargs
):
714 """PreDialog() -> Dialog"""
715 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
718 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
720 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
722 Get the default attributes for this class. This is useful if you want
723 to use the same font or colour in your own control as in a standard
724 control -- which is a much better idea than hard coding specific
725 colours or fonts which might look completely out of place on the
726 user's system, especially if it uses themes.
728 The variant parameter is only relevant under Mac currently and is
729 ignore under other platforms. Under Mac, it will change the size of
730 the returned font. See `wx.Window.SetWindowVariant` for more about
733 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
735 #---------------------------------------------------------------------------
737 class MiniFrame(Frame
):
738 """Proxy of C++ MiniFrame class"""
739 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
740 __repr__
= _swig_repr
741 def __init__(self
, *args
, **kwargs
):
743 __init__(self, Window parent, int id=-1, String title=EmptyString,
744 Point pos=DefaultPosition, Size size=DefaultSize,
745 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
747 _windows_
.MiniFrame_swiginit(self
,_windows_
.new_MiniFrame(*args
, **kwargs
))
748 self
._setOORInfo
(self
)
750 def Create(*args
, **kwargs
):
752 Create(self, Window parent, int id=-1, String title=EmptyString,
753 Point pos=DefaultPosition, Size size=DefaultSize,
754 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
756 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
758 _windows_
.MiniFrame_swigregister(MiniFrame
)
760 def PreMiniFrame(*args
, **kwargs
):
761 """PreMiniFrame() -> MiniFrame"""
762 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
765 #---------------------------------------------------------------------------
767 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
768 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
769 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
770 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
771 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
772 class SplashScreenWindow(_core
.Window
):
773 """Proxy of C++ SplashScreenWindow class"""
774 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
775 __repr__
= _swig_repr
776 def __init__(self
, *args
, **kwargs
):
778 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
779 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
781 _windows_
.SplashScreenWindow_swiginit(self
,_windows_
.new_SplashScreenWindow(*args
, **kwargs
))
782 self
._setOORInfo
(self
)
784 def SetBitmap(*args
, **kwargs
):
785 """SetBitmap(self, Bitmap bitmap)"""
786 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
788 def GetBitmap(*args
, **kwargs
):
789 """GetBitmap(self) -> Bitmap"""
790 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
792 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindow
)
794 class SplashScreen(Frame
):
795 """Proxy of C++ SplashScreen class"""
796 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
797 __repr__
= _swig_repr
798 def __init__(self
, *args
, **kwargs
):
800 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
801 Window parent, int id=-1, Point pos=DefaultPosition,
802 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
804 _windows_
.SplashScreen_swiginit(self
,_windows_
.new_SplashScreen(*args
, **kwargs
))
805 self
._setOORInfo
(self
)
807 def GetSplashStyle(*args
, **kwargs
):
808 """GetSplashStyle(self) -> long"""
809 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
811 def GetSplashWindow(*args
, **kwargs
):
812 """GetSplashWindow(self) -> SplashScreenWindow"""
813 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
815 def GetTimeout(*args
, **kwargs
):
816 """GetTimeout(self) -> int"""
817 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
819 _windows_
.SplashScreen_swigregister(SplashScreen
)
821 #---------------------------------------------------------------------------
823 SB_NORMAL
= _windows_
.SB_NORMAL
824 SB_FLAT
= _windows_
.SB_FLAT
825 SB_RAISED
= _windows_
.SB_RAISED
826 class StatusBar(_core
.Window
):
827 """Proxy of C++ StatusBar class"""
828 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
829 __repr__
= _swig_repr
830 def __init__(self
, *args
, **kwargs
):
832 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
833 String name=StatusLineNameStr) -> StatusBar
835 _windows_
.StatusBar_swiginit(self
,_windows_
.new_StatusBar(*args
, **kwargs
))
836 self
._setOORInfo
(self
)
838 def Create(*args
, **kwargs
):
839 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
840 return _windows_
.StatusBar_Create(*args
, **kwargs
)
842 def SetFieldsCount(*args
, **kwargs
):
843 """SetFieldsCount(self, int number=1)"""
844 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
846 def GetFieldsCount(*args
, **kwargs
):
847 """GetFieldsCount(self) -> int"""
848 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
850 def SetStatusText(*args
, **kwargs
):
851 """SetStatusText(self, String text, int number=0)"""
852 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
854 def GetStatusText(*args
, **kwargs
):
855 """GetStatusText(self, int number=0) -> String"""
856 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
858 def PushStatusText(*args
, **kwargs
):
859 """PushStatusText(self, String text, int number=0)"""
860 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
862 def PopStatusText(*args
, **kwargs
):
863 """PopStatusText(self, int number=0)"""
864 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
866 def SetStatusWidths(*args
, **kwargs
):
867 """SetStatusWidths(self, int widths)"""
868 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
870 def SetStatusStyles(*args
, **kwargs
):
871 """SetStatusStyles(self, int styles)"""
872 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
874 def GetFieldRect(*args
, **kwargs
):
875 """GetFieldRect(self, int i) -> Rect"""
876 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
878 def SetMinHeight(*args
, **kwargs
):
879 """SetMinHeight(self, int height)"""
880 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
882 def GetBorderX(*args
, **kwargs
):
883 """GetBorderX(self) -> int"""
884 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
886 def GetBorderY(*args
, **kwargs
):
887 """GetBorderY(self) -> int"""
888 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
890 def GetClassDefaultAttributes(*args
, **kwargs
):
892 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
894 Get the default attributes for this class. This is useful if you want
895 to use the same font or colour in your own control as in a standard
896 control -- which is a much better idea than hard coding specific
897 colours or fonts which might look completely out of place on the
898 user's system, especially if it uses themes.
900 The variant parameter is only relevant under Mac currently and is
901 ignore under other platforms. Under Mac, it will change the size of
902 the returned font. See `wx.Window.SetWindowVariant` for more about
905 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
907 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
908 _windows_
.StatusBar_swigregister(StatusBar
)
910 def PreStatusBar(*args
, **kwargs
):
911 """PreStatusBar() -> StatusBar"""
912 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
915 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
917 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
919 Get the default attributes for this class. This is useful if you want
920 to use the same font or colour in your own control as in a standard
921 control -- which is a much better idea than hard coding specific
922 colours or fonts which might look completely out of place on the
923 user's system, especially if it uses themes.
925 The variant parameter is only relevant under Mac currently and is
926 ignore under other platforms. Under Mac, it will change the size of
927 the returned font. See `wx.Window.SetWindowVariant` for more about
930 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
932 #---------------------------------------------------------------------------
934 SP_NOBORDER
= _windows_
.SP_NOBORDER
935 SP_NOSASH
= _windows_
.SP_NOSASH
936 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
937 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
938 SP_3DSASH
= _windows_
.SP_3DSASH
939 SP_3DBORDER
= _windows_
.SP_3DBORDER
940 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
941 SP_BORDER
= _windows_
.SP_BORDER
942 SP_3D
= _windows_
.SP_3D
943 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
944 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
945 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
946 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
947 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
948 class SplitterWindow(_core
.Window
):
950 wx.SplitterWindow manages up to two subwindows or panes, with an
951 optional vertical or horizontal split which can be used with the mouse
954 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
955 __repr__
= _swig_repr
956 def __init__(self
, *args
, **kwargs
):
958 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
959 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
961 Constructor. Creates and shows a SplitterWindow.
963 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
964 _windows_
.SplitterWindow_swiginit(self
,_windows_
.new_SplitterWindow(*args
, **kwargs
))
965 self
._setOORInfo
(self
)
967 def Create(*args
, **kwargs
):
969 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
970 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
972 Create the GUI part of the SplitterWindow for the 2-phase create.
974 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
976 def GetWindow1(*args
, **kwargs
):
978 GetWindow1(self) -> Window
980 Gets the only or left/top pane.
982 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
984 def GetWindow2(*args
, **kwargs
):
986 GetWindow2(self) -> Window
988 Gets the right/bottom pane.
990 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
992 def SetSplitMode(*args
, **kwargs
):
994 SetSplitMode(self, int mode)
996 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
997 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
1000 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
1002 def GetSplitMode(*args
, **kwargs
):
1004 GetSplitMode(self) -> int
1008 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
1010 def Initialize(*args
, **kwargs
):
1012 Initialize(self, Window window)
1014 Initializes the splitter window to have one pane. This should be
1015 called if you wish to initially view only a single pane in the
1016 splitter window. The child window is shown if it is currently hidden.
1018 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1020 def SplitVertically(*args
, **kwargs
):
1022 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1024 Initializes the left and right panes of the splitter window. The
1025 child windows are shown if they are currently hidden.
1027 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1029 def SplitHorizontally(*args
, **kwargs
):
1031 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1033 Initializes the top and bottom panes of the splitter window. The
1034 child windows are shown if they are currently hidden.
1036 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1038 def Unsplit(*args
, **kwargs
):
1040 Unsplit(self, Window toRemove=None) -> bool
1042 Unsplits the window. Pass the pane to remove, or None to remove the
1043 right or bottom pane. Returns True if successful, False otherwise (the
1044 window was not split).
1046 This function will not actually delete the pane being
1047 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1048 for the desired behaviour. By default, the pane being
1049 removed is only hidden.
1051 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1053 def ReplaceWindow(*args
, **kwargs
):
1055 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1057 This function replaces one of the windows managed by the
1058 SplitterWindow with another one. It is in general better to use it
1059 instead of calling Unsplit() and then resplitting the window back
1060 because it will provoke much less flicker. It is valid to call this
1061 function whether the splitter has two windows or only one.
1063 Both parameters should be non-None and winOld must specify one of the
1064 windows managed by the splitter. If the parameters are incorrect or
1065 the window couldn't be replaced, False is returned. Otherwise the
1066 function will return True, but please notice that it will not Destroy
1067 the replaced window and you may wish to do it yourself.
1069 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1071 def UpdateSize(*args
, **kwargs
):
1075 Causes any pending sizing of the sash and child panes to take place
1078 Such resizing normally takes place in idle time, in order to wait for
1079 layout to be completed. However, this can cause unacceptable flicker
1080 as the panes are resized after the window has been shown. To work
1081 around this, you can perform window layout (for example by sending a
1082 size event to the parent window), and then call this function, before
1083 showing the top-level window.
1085 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1087 def IsSplit(*args
, **kwargs
):
1089 IsSplit(self) -> bool
1091 Is the window split?
1093 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1095 def SetSashSize(*args
, **kwargs
):
1097 SetSashSize(self, int width)
1101 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1103 def SetBorderSize(*args
, **kwargs
):
1105 SetBorderSize(self, int width)
1107 Sets the border size. Currently a NOP.
1109 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1111 def GetSashSize(*args
, **kwargs
):
1113 GetSashSize(self) -> int
1117 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1119 def GetBorderSize(*args
, **kwargs
):
1121 GetBorderSize(self) -> int
1123 Gets the border size
1125 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1127 def SetSashPosition(*args
, **kwargs
):
1129 SetSashPosition(self, int position, bool redraw=True)
1131 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1132 are resized and the sash and border are redrawn.
1134 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1136 def GetSashPosition(*args
, **kwargs
):
1138 GetSashPosition(self) -> int
1140 Returns the surrent sash position.
1142 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1144 def SetSashGravity(*args
, **kwargs
):
1146 SetSashGravity(self, double gravity)
1148 Set the sash gravity. Gravity is a floating-point factor between 0.0
1149 and 1.0 which controls position of sash while resizing the
1150 `wx.SplitterWindow`. The gravity specifies how much the left/top
1151 window will grow while resizing.
1153 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1155 def GetSashGravity(*args
, **kwargs
):
1157 GetSashGravity(self) -> double
1159 Gets the sash gravity.
1161 :see: `SetSashGravity`
1164 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1166 def SetMinimumPaneSize(*args
, **kwargs
):
1168 SetMinimumPaneSize(self, int min)
1170 Sets the minimum pane size in pixels.
1172 The default minimum pane size is zero, which means that either pane
1173 can be reduced to zero by dragging the sash, thus removing one of the
1174 panes. To prevent this behaviour (and veto out-of-range sash
1175 dragging), set a minimum size, for example 20 pixels. If the
1176 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1177 the window may be unsplit even if minimum size is non-zero.
1179 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1181 def GetMinimumPaneSize(*args
, **kwargs
):
1183 GetMinimumPaneSize(self) -> int
1185 Gets the minimum pane size in pixels.
1187 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1189 def SashHitTest(*args
, **kwargs
):
1191 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1193 Tests for x, y over the sash
1195 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1197 def SizeWindows(*args
, **kwargs
):
1203 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1205 def SetNeedUpdating(*args
, **kwargs
):
1206 """SetNeedUpdating(self, bool needUpdating)"""
1207 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1209 def GetNeedUpdating(*args
, **kwargs
):
1210 """GetNeedUpdating(self) -> bool"""
1211 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1213 def GetClassDefaultAttributes(*args
, **kwargs
):
1215 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1217 Get the default attributes for this class. This is useful if you want
1218 to use the same font or colour in your own control as in a standard
1219 control -- which is a much better idea than hard coding specific
1220 colours or fonts which might look completely out of place on the
1221 user's system, especially if it uses themes.
1223 The variant parameter is only relevant under Mac currently and is
1224 ignore under other platforms. Under Mac, it will change the size of
1225 the returned font. See `wx.Window.SetWindowVariant` for more about
1228 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1230 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1231 _windows_
.SplitterWindow_swigregister(SplitterWindow
)
1232 SplitterNameStr
= cvar
.SplitterNameStr
1234 def PreSplitterWindow(*args
, **kwargs
):
1236 PreSplitterWindow() -> SplitterWindow
1238 Precreate a SplitterWindow for 2-phase creation.
1240 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1243 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1245 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1247 Get the default attributes for this class. This is useful if you want
1248 to use the same font or colour in your own control as in a standard
1249 control -- which is a much better idea than hard coding specific
1250 colours or fonts which might look completely out of place on the
1251 user's system, especially if it uses themes.
1253 The variant parameter is only relevant under Mac currently and is
1254 ignore under other platforms. Under Mac, it will change the size of
1255 the returned font. See `wx.Window.SetWindowVariant` for more about
1258 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1260 class SplitterEvent(_core
.NotifyEvent
):
1261 """This class represents the events generated by a splitter control."""
1262 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1263 __repr__
= _swig_repr
1264 def __init__(self
, *args
, **kwargs
):
1266 __init__(self, EventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1268 This class represents the events generated by a splitter control.
1270 _windows_
.SplitterEvent_swiginit(self
,_windows_
.new_SplitterEvent(*args
, **kwargs
))
1271 def SetSashPosition(*args
, **kwargs
):
1273 SetSashPosition(self, int pos)
1275 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1276 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1277 events, sets the the new sash position. In the case of _CHANGING
1278 events, sets the new tracking bar position so visual feedback during
1279 dragging will represent that change that will actually take place. Set
1280 to -1 from the event handler code to prevent repositioning.
1282 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1284 def GetSashPosition(*args
, **kwargs
):
1286 GetSashPosition(self) -> int
1288 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1289 and EVT_SPLITTER_SASH_POS_CHANGED events.
1291 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1293 def GetWindowBeingRemoved(*args
, **kwargs
):
1295 GetWindowBeingRemoved(self) -> Window
1297 Returns a pointer to the window being removed when a splitter window
1300 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1302 def GetX(*args
, **kwargs
):
1306 Returns the x coordinate of the double-click point in a
1307 EVT_SPLITTER_DCLICK event.
1309 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1311 def GetY(*args
, **kwargs
):
1315 Returns the y coordinate of the double-click point in a
1316 EVT_SPLITTER_DCLICK event.
1318 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1320 _windows_
.SplitterEvent_swigregister(SplitterEvent
)
1322 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1323 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1324 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1325 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1326 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1327 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1328 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1329 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1330 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1332 #---------------------------------------------------------------------------
1334 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1335 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1336 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1337 SW_NOBORDER
= _windows_
.SW_NOBORDER
1338 SW_BORDER
= _windows_
.SW_BORDER
1339 SW_3DSASH
= _windows_
.SW_3DSASH
1340 SW_3DBORDER
= _windows_
.SW_3DBORDER
1341 SW_3D
= _windows_
.SW_3D
1342 SASH_TOP
= _windows_
.SASH_TOP
1343 SASH_RIGHT
= _windows_
.SASH_RIGHT
1344 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1345 SASH_LEFT
= _windows_
.SASH_LEFT
1346 SASH_NONE
= _windows_
.SASH_NONE
1347 class SashWindow(_core
.Window
):
1348 """Proxy of C++ SashWindow class"""
1349 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1350 __repr__
= _swig_repr
1351 def __init__(self
, *args
, **kwargs
):
1353 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1354 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1355 String name=SashNameStr) -> SashWindow
1357 _windows_
.SashWindow_swiginit(self
,_windows_
.new_SashWindow(*args
, **kwargs
))
1358 self
._setOORInfo
(self
)
1360 def Create(*args
, **kwargs
):
1362 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1363 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1364 String name=SashNameStr) -> bool
1366 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1368 def SetSashVisible(*args
, **kwargs
):
1369 """SetSashVisible(self, int edge, bool sash)"""
1370 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1372 def GetSashVisible(*args
, **kwargs
):
1373 """GetSashVisible(self, int edge) -> bool"""
1374 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1376 def SetSashBorder(*args
, **kwargs
):
1377 """SetSashBorder(self, int edge, bool border)"""
1378 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1380 def HasBorder(*args
, **kwargs
):
1381 """HasBorder(self, int edge) -> bool"""
1382 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1384 def GetEdgeMargin(*args
, **kwargs
):
1385 """GetEdgeMargin(self, int edge) -> int"""
1386 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1388 def SetDefaultBorderSize(*args
, **kwargs
):
1389 """SetDefaultBorderSize(self, int width)"""
1390 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1392 def GetDefaultBorderSize(*args
, **kwargs
):
1393 """GetDefaultBorderSize(self) -> int"""
1394 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1396 def SetExtraBorderSize(*args
, **kwargs
):
1397 """SetExtraBorderSize(self, int width)"""
1398 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1400 def GetExtraBorderSize(*args
, **kwargs
):
1401 """GetExtraBorderSize(self) -> int"""
1402 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1404 def SetMinimumSizeX(*args
, **kwargs
):
1405 """SetMinimumSizeX(self, int min)"""
1406 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1408 def SetMinimumSizeY(*args
, **kwargs
):
1409 """SetMinimumSizeY(self, int min)"""
1410 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1412 def GetMinimumSizeX(*args
, **kwargs
):
1413 """GetMinimumSizeX(self) -> int"""
1414 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1416 def GetMinimumSizeY(*args
, **kwargs
):
1417 """GetMinimumSizeY(self) -> int"""
1418 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1420 def SetMaximumSizeX(*args
, **kwargs
):
1421 """SetMaximumSizeX(self, int max)"""
1422 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1424 def SetMaximumSizeY(*args
, **kwargs
):
1425 """SetMaximumSizeY(self, int max)"""
1426 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1428 def GetMaximumSizeX(*args
, **kwargs
):
1429 """GetMaximumSizeX(self) -> int"""
1430 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1432 def GetMaximumSizeY(*args
, **kwargs
):
1433 """GetMaximumSizeY(self) -> int"""
1434 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1436 def SashHitTest(*args
, **kwargs
):
1437 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1438 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1440 def SizeWindows(*args
, **kwargs
):
1441 """SizeWindows(self)"""
1442 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1444 _windows_
.SashWindow_swigregister(SashWindow
)
1445 SashNameStr
= cvar
.SashNameStr
1446 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1448 def PreSashWindow(*args
, **kwargs
):
1449 """PreSashWindow() -> SashWindow"""
1450 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1453 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1454 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1455 class SashEvent(_core
.CommandEvent
):
1456 """Proxy of C++ SashEvent class"""
1457 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1458 __repr__
= _swig_repr
1459 def __init__(self
, *args
, **kwargs
):
1460 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1461 _windows_
.SashEvent_swiginit(self
,_windows_
.new_SashEvent(*args
, **kwargs
))
1462 def SetEdge(*args
, **kwargs
):
1463 """SetEdge(self, int edge)"""
1464 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1466 def GetEdge(*args
, **kwargs
):
1467 """GetEdge(self) -> int"""
1468 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1470 def SetDragRect(*args
, **kwargs
):
1471 """SetDragRect(self, Rect rect)"""
1472 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1474 def GetDragRect(*args
, **kwargs
):
1475 """GetDragRect(self) -> Rect"""
1476 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1478 def SetDragStatus(*args
, **kwargs
):
1479 """SetDragStatus(self, int status)"""
1480 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1482 def GetDragStatus(*args
, **kwargs
):
1483 """GetDragStatus(self) -> int"""
1484 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1486 _windows_
.SashEvent_swigregister(SashEvent
)
1488 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1489 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1490 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1492 #---------------------------------------------------------------------------
1494 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1495 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1496 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1497 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1498 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1499 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1500 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1501 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1502 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1503 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1504 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1505 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1506 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1507 class QueryLayoutInfoEvent(_core
.Event
):
1508 """Proxy of C++ QueryLayoutInfoEvent class"""
1509 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1510 __repr__
= _swig_repr
1511 def __init__(self
, *args
, **kwargs
):
1512 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1513 _windows_
.QueryLayoutInfoEvent_swiginit(self
,_windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
))
1514 def SetRequestedLength(*args
, **kwargs
):
1515 """SetRequestedLength(self, int length)"""
1516 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1518 def GetRequestedLength(*args
, **kwargs
):
1519 """GetRequestedLength(self) -> int"""
1520 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1522 def SetFlags(*args
, **kwargs
):
1523 """SetFlags(self, int flags)"""
1524 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1526 def GetFlags(*args
, **kwargs
):
1527 """GetFlags(self) -> int"""
1528 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1530 def SetSize(*args
, **kwargs
):
1531 """SetSize(self, Size size)"""
1532 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1534 def GetSize(*args
, **kwargs
):
1535 """GetSize(self) -> Size"""
1536 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1538 def SetOrientation(*args
, **kwargs
):
1539 """SetOrientation(self, int orient)"""
1540 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1542 def GetOrientation(*args
, **kwargs
):
1543 """GetOrientation(self) -> int"""
1544 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1546 def SetAlignment(*args
, **kwargs
):
1547 """SetAlignment(self, int align)"""
1548 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1550 def GetAlignment(*args
, **kwargs
):
1551 """GetAlignment(self) -> int"""
1552 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1554 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent
)
1556 class CalculateLayoutEvent(_core
.Event
):
1557 """Proxy of C++ CalculateLayoutEvent class"""
1558 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1559 __repr__
= _swig_repr
1560 def __init__(self
, *args
, **kwargs
):
1561 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1562 _windows_
.CalculateLayoutEvent_swiginit(self
,_windows_
.new_CalculateLayoutEvent(*args
, **kwargs
))
1563 def SetFlags(*args
, **kwargs
):
1564 """SetFlags(self, int flags)"""
1565 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1567 def GetFlags(*args
, **kwargs
):
1568 """GetFlags(self) -> int"""
1569 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1571 def SetRect(*args
, **kwargs
):
1572 """SetRect(self, Rect rect)"""
1573 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1575 def GetRect(*args
, **kwargs
):
1576 """GetRect(self) -> Rect"""
1577 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1579 Flags
= property(GetFlags
,SetFlags
,doc
="See `GetFlags` and `SetFlags`")
1580 Rect
= property(GetRect
,SetRect
,doc
="See `GetRect` and `SetRect`")
1581 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEvent
)
1583 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1584 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1586 class SashLayoutWindow(SashWindow
):
1587 """Proxy of C++ SashLayoutWindow class"""
1588 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1589 __repr__
= _swig_repr
1590 def __init__(self
, *args
, **kwargs
):
1592 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1593 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1594 String name=SashLayoutNameStr) -> SashLayoutWindow
1596 _windows_
.SashLayoutWindow_swiginit(self
,_windows_
.new_SashLayoutWindow(*args
, **kwargs
))
1597 self
._setOORInfo
(self
)
1599 def Create(*args
, **kwargs
):
1601 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1602 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1603 String name=SashLayoutNameStr) -> bool
1605 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1607 def GetAlignment(*args
, **kwargs
):
1608 """GetAlignment(self) -> int"""
1609 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1611 def GetOrientation(*args
, **kwargs
):
1612 """GetOrientation(self) -> int"""
1613 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1615 def SetAlignment(*args
, **kwargs
):
1616 """SetAlignment(self, int alignment)"""
1617 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1619 def SetDefaultSize(*args
, **kwargs
):
1620 """SetDefaultSize(self, Size size)"""
1621 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1623 def SetOrientation(*args
, **kwargs
):
1624 """SetOrientation(self, int orientation)"""
1625 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1627 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindow
)
1629 def PreSashLayoutWindow(*args
, **kwargs
):
1630 """PreSashLayoutWindow() -> SashLayoutWindow"""
1631 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1634 class LayoutAlgorithm(_core
.Object
):
1635 """Proxy of C++ LayoutAlgorithm class"""
1636 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1637 __repr__
= _swig_repr
1638 def __init__(self
, *args
, **kwargs
):
1639 """__init__(self) -> LayoutAlgorithm"""
1640 _windows_
.LayoutAlgorithm_swiginit(self
,_windows_
.new_LayoutAlgorithm(*args
, **kwargs
))
1641 __swig_destroy__
= _windows_
.delete_LayoutAlgorithm
1642 __del__
= lambda self
: None;
1643 def LayoutMDIFrame(*args
, **kwargs
):
1644 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1645 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1647 def LayoutFrame(*args
, **kwargs
):
1648 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1649 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1651 def LayoutWindow(*args
, **kwargs
):
1652 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1653 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1655 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithm
)
1657 #---------------------------------------------------------------------------
1659 class PopupWindow(_core
.Window
):
1660 """Proxy of C++ PopupWindow class"""
1661 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1662 __repr__
= _swig_repr
1663 def __init__(self
, *args
, **kwargs
):
1664 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1665 _windows_
.PopupWindow_swiginit(self
,_windows_
.new_PopupWindow(*args
, **kwargs
))
1666 self
._setOORInfo
(self
)
1668 def Create(*args
, **kwargs
):
1669 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1670 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1672 def Position(*args
, **kwargs
):
1673 """Position(self, Point ptOrigin, Size size)"""
1674 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1676 _windows_
.PopupWindow_swigregister(PopupWindow
)
1678 def PrePopupWindow(*args
, **kwargs
):
1679 """PrePopupWindow() -> PopupWindow"""
1680 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1683 #---------------------------------------------------------------------------
1685 class PopupTransientWindow(PopupWindow
):
1686 """Proxy of C++ PopupTransientWindow class"""
1687 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1688 __repr__
= _swig_repr
1689 def __init__(self
, *args
, **kwargs
):
1690 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1691 _windows_
.PopupTransientWindow_swiginit(self
,_windows_
.new_PopupTransientWindow(*args
, **kwargs
))
1692 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1694 def _setCallbackInfo(*args
, **kwargs
):
1695 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1696 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1698 def Popup(*args
, **kwargs
):
1699 """Popup(self, Window focus=None)"""
1700 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1702 def Dismiss(*args
, **kwargs
):
1704 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1706 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindow
)
1708 def PrePopupTransientWindow(*args
, **kwargs
):
1709 """PrePopupTransientWindow() -> PopupTransientWindow"""
1710 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1713 #---------------------------------------------------------------------------
1715 class TipWindow(PopupTransientWindow
):
1716 """Proxy of C++ TipWindow class"""
1717 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1718 __repr__
= _swig_repr
1719 def __init__(self
, *args
, **kwargs
):
1720 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1721 _windows_
.TipWindow_swiginit(self
,_windows_
.new_TipWindow(*args
, **kwargs
))
1722 self
._setOORInfo
(self
)
1724 def SetBoundingRect(*args
, **kwargs
):
1725 """SetBoundingRect(self, Rect rectBound)"""
1726 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1728 def Close(*args
, **kwargs
):
1732 This function simply generates a EVT_CLOSE event whose handler usually
1733 tries to close the window. It doesn't close the window itself,
1734 however. If force is False (the default) then the window's close
1735 handler will be allowed to veto the destruction of the window.
1737 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1739 _windows_
.TipWindow_swigregister(TipWindow
)
1741 #---------------------------------------------------------------------------
1743 class VScrolledWindow(Panel
):
1744 """Proxy of C++ VScrolledWindow class"""
1745 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1746 __repr__
= _swig_repr
1747 def __init__(self
, *args
, **kwargs
):
1749 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1750 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1752 _windows_
.VScrolledWindow_swiginit(self
,_windows_
.new_VScrolledWindow(*args
, **kwargs
))
1753 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1755 def _setCallbackInfo(*args
, **kwargs
):
1756 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1757 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1759 def Create(*args
, **kwargs
):
1761 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1762 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1764 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1766 def SetLineCount(*args
, **kwargs
):
1767 """SetLineCount(self, size_t count)"""
1768 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1770 def ScrollToLine(*args
, **kwargs
):
1771 """ScrollToLine(self, size_t line) -> bool"""
1772 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1774 def RefreshLine(*args
, **kwargs
):
1775 """RefreshLine(self, size_t line)"""
1776 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1778 def RefreshLines(*args
, **kwargs
):
1779 """RefreshLines(self, size_t from, size_t to)"""
1780 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1782 def HitTestXY(*args
, **kwargs
):
1783 """HitTestXY(self, int x, int y) -> int"""
1784 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1786 def HitTest(*args
, **kwargs
):
1787 """HitTest(self, Point pt) -> int"""
1788 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1790 def RefreshAll(*args
, **kwargs
):
1791 """RefreshAll(self)"""
1792 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1794 def GetLineCount(*args
, **kwargs
):
1795 """GetLineCount(self) -> size_t"""
1796 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1798 def GetVisibleBegin(*args
, **kwargs
):
1799 """GetVisibleBegin(self) -> size_t"""
1800 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
1802 def GetVisibleEnd(*args
, **kwargs
):
1803 """GetVisibleEnd(self) -> size_t"""
1804 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
1806 def IsVisible(*args
, **kwargs
):
1807 """IsVisible(self, size_t line) -> bool"""
1808 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1810 def GetFirstVisibleLine(*args
, **kwargs
):
1811 """GetFirstVisibleLine(self) -> size_t"""
1812 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1814 def GetLastVisibleLine(*args
, **kwargs
):
1815 """GetLastVisibleLine(self) -> size_t"""
1816 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1818 def FindFirstFromBottom(*args
, **kwargs
):
1819 """FindFirstFromBottom(self, size_t lineLast, bool fullyVisible=False) -> size_t"""
1820 return _windows_
.VScrolledWindow_FindFirstFromBottom(*args
, **kwargs
)
1822 def GetLinesHeight(*args
, **kwargs
):
1823 """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int"""
1824 return _windows_
.VScrolledWindow_GetLinesHeight(*args
, **kwargs
)
1826 _windows_
.VScrolledWindow_swigregister(VScrolledWindow
)
1828 def PreVScrolledWindow(*args
, **kwargs
):
1829 """PreVScrolledWindow() -> VScrolledWindow"""
1830 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1833 class VListBox(VScrolledWindow
):
1834 """Proxy of C++ VListBox class"""
1835 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1836 __repr__
= _swig_repr
1837 def __init__(self
, *args
, **kwargs
):
1839 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1840 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1842 _windows_
.VListBox_swiginit(self
,_windows_
.new_VListBox(*args
, **kwargs
))
1843 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1845 def _setCallbackInfo(*args
, **kwargs
):
1846 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1847 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1849 def Create(*args
, **kwargs
):
1851 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1852 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1854 return _windows_
.VListBox_Create(*args
, **kwargs
)
1856 def GetItemCount(*args
, **kwargs
):
1857 """GetItemCount(self) -> size_t"""
1858 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1860 def HasMultipleSelection(*args
, **kwargs
):
1861 """HasMultipleSelection(self) -> bool"""
1862 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1864 def GetSelection(*args
, **kwargs
):
1865 """GetSelection(self) -> int"""
1866 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1868 def IsCurrent(*args
, **kwargs
):
1869 """IsCurrent(self, size_t item) -> bool"""
1870 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1872 def IsSelected(*args
, **kwargs
):
1873 """IsSelected(self, size_t item) -> bool"""
1874 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1876 def GetSelectedCount(*args
, **kwargs
):
1877 """GetSelectedCount(self) -> size_t"""
1878 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1880 def GetFirstSelected(*args
, **kwargs
):
1881 """GetFirstSelected(self) -> PyObject"""
1882 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1884 def GetNextSelected(*args
, **kwargs
):
1885 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1886 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1888 def GetMargins(*args
, **kwargs
):
1889 """GetMargins(self) -> Point"""
1890 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1892 def GetSelectionBackground(*args
, **kwargs
):
1893 """GetSelectionBackground(self) -> Colour"""
1894 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1896 def SetItemCount(*args
, **kwargs
):
1897 """SetItemCount(self, size_t count)"""
1898 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1900 def Clear(*args
, **kwargs
):
1902 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1904 def SetSelection(*args
, **kwargs
):
1905 """SetSelection(self, int selection)"""
1906 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1908 def Select(*args
, **kwargs
):
1909 """Select(self, size_t item, bool select=True) -> bool"""
1910 return _windows_
.VListBox_Select(*args
, **kwargs
)
1912 def SelectRange(*args
, **kwargs
):
1913 """SelectRange(self, size_t from, size_t to) -> bool"""
1914 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1916 def Toggle(*args
, **kwargs
):
1917 """Toggle(self, size_t item)"""
1918 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1920 def SelectAll(*args
, **kwargs
):
1921 """SelectAll(self) -> bool"""
1922 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1924 def DeselectAll(*args
, **kwargs
):
1925 """DeselectAll(self) -> bool"""
1926 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1928 def SetMargins(*args
, **kwargs
):
1929 """SetMargins(self, Point pt)"""
1930 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1932 def SetMarginsXY(*args
, **kwargs
):
1933 """SetMarginsXY(self, int x, int y)"""
1934 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1936 def SetSelectionBackground(*args
, **kwargs
):
1937 """SetSelectionBackground(self, Colour col)"""
1938 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1940 def OnDrawSeparator(*args
, **kwargs
):
1941 """OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
1942 return _windows_
.VListBox_OnDrawSeparator(*args
, **kwargs
)
1944 def OnDrawBackground(*args
, **kwargs
):
1945 """OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
1946 return _windows_
.VListBox_OnDrawBackground(*args
, **kwargs
)
1948 _windows_
.VListBox_swigregister(VListBox
)
1949 VListBoxNameStr
= cvar
.VListBoxNameStr
1951 def PreVListBox(*args
, **kwargs
):
1952 """PreVListBox() -> VListBox"""
1953 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1956 class HtmlListBox(VListBox
):
1957 """Proxy of C++ HtmlListBox class"""
1958 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1959 __repr__
= _swig_repr
1960 def __init__(self
, *args
, **kwargs
):
1962 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1963 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1965 _windows_
.HtmlListBox_swiginit(self
,_windows_
.new_HtmlListBox(*args
, **kwargs
))
1966 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1968 def _setCallbackInfo(*args
, **kwargs
):
1969 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1970 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1972 def Create(*args
, **kwargs
):
1974 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1975 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1977 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1979 def SetItemCount(*args
, **kwargs
):
1980 """SetItemCount(self, size_t count)"""
1981 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1983 def GetFileSystem(*args
, **kwargs
):
1984 """GetFileSystem(self) -> FileSystem"""
1985 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
1987 def OnLinkClicked(*args
, **kwargs
):
1988 """OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)"""
1989 return _windows_
.HtmlListBox_OnLinkClicked(*args
, **kwargs
)
1991 _windows_
.HtmlListBox_swigregister(HtmlListBox
)
1993 def PreHtmlListBox(*args
, **kwargs
):
1994 """PreHtmlListBox() -> HtmlListBox"""
1995 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
1998 #---------------------------------------------------------------------------
2000 class TaskBarIcon(_core
.EvtHandler
):
2001 """Proxy of C++ TaskBarIcon class"""
2002 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2003 __repr__
= _swig_repr
2004 def __init__(self
, *args
, **kwargs
):
2005 """__init__(self) -> TaskBarIcon"""
2006 _windows_
.TaskBarIcon_swiginit(self
,_windows_
.new_TaskBarIcon(*args
, **kwargs
))
2007 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2009 __swig_destroy__
= _windows_
.delete_TaskBarIcon
2010 __del__
= lambda self
: None;
2011 def _setCallbackInfo(*args
, **kwargs
):
2012 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2013 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2015 def Destroy(*args
, **kwargs
):
2019 Deletes the C++ object this Python object is a proxy for.
2021 val
= _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2025 def IsOk(*args
, **kwargs
):
2026 """IsOk(self) -> bool"""
2027 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2029 def __nonzero__(self
): return self
.IsOk()
2030 def IsIconInstalled(*args
, **kwargs
):
2031 """IsIconInstalled(self) -> bool"""
2032 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2034 def SetIcon(*args
, **kwargs
):
2035 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2036 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2038 def RemoveIcon(*args
, **kwargs
):
2039 """RemoveIcon(self) -> bool"""
2040 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2042 def PopupMenu(*args
, **kwargs
):
2043 """PopupMenu(self, Menu menu) -> bool"""
2044 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2046 _windows_
.TaskBarIcon_swigregister(TaskBarIcon
)
2048 class TaskBarIconEvent(_core
.Event
):
2049 """Proxy of C++ TaskBarIconEvent class"""
2050 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2051 __repr__
= _swig_repr
2052 def __init__(self
, *args
, **kwargs
):
2053 """__init__(self, EventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2054 _windows_
.TaskBarIconEvent_swiginit(self
,_windows_
.new_TaskBarIconEvent(*args
, **kwargs
))
2055 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEvent
)
2057 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2058 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2059 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2060 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2061 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2062 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2063 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2064 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2065 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2066 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2067 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2068 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2069 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2070 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2072 #---------------------------------------------------------------------------
2074 class ColourData(_core
.Object
):
2076 This class holds a variety of information related to the colour
2077 chooser dialog, used to transfer settings and results to and from the
2080 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2081 __repr__
= _swig_repr
2082 def __init__(self
, *args
, **kwargs
):
2084 __init__(self) -> ColourData
2086 Constructor, sets default values.
2088 _windows_
.ColourData_swiginit(self
,_windows_
.new_ColourData(*args
, **kwargs
))
2089 __swig_destroy__
= _windows_
.delete_ColourData
2090 __del__
= lambda self
: None;
2091 def GetChooseFull(*args
, **kwargs
):
2093 GetChooseFull(self) -> bool
2095 Under Windows, determines whether the Windows colour dialog will
2096 display the full dialog with custom colour selection controls. Has no
2097 meaning under other platforms. The default value is true.
2099 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2101 def GetColour(*args
, **kwargs
):
2103 GetColour(self) -> Colour
2105 Gets the colour (pre)selected by the dialog.
2107 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2109 def GetCustomColour(*args
, **kwargs
):
2111 GetCustomColour(self, int i) -> Colour
2113 Gets the i'th custom colour associated with the colour dialog. i
2114 should be an integer between 0 and 15. The default custom colours are
2115 all invalid colours.
2117 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2119 def SetChooseFull(*args
, **kwargs
):
2121 SetChooseFull(self, int flag)
2123 Under Windows, tells the Windows colour dialog to display the full
2124 dialog with custom colour selection controls. Under other platforms,
2125 has no effect. The default value is true.
2127 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2129 def SetColour(*args
, **kwargs
):
2131 SetColour(self, Colour colour)
2133 Sets the default colour for the colour dialog. The default colour is
2136 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2138 def SetCustomColour(*args
, **kwargs
):
2140 SetCustomColour(self, int i, Colour colour)
2142 Sets the i'th custom colour for the colour dialog. i should be an
2143 integer between 0 and 15. The default custom colours are all invalid colours.
2145 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2147 ChooseFull
= property(GetChooseFull
,SetChooseFull
,doc
="See `GetChooseFull` and `SetChooseFull`")
2148 Colour
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")
2149 CustomColour
= property(GetCustomColour
,SetCustomColour
,doc
="See `GetCustomColour` and `SetCustomColour`")
2150 _windows_
.ColourData_swigregister(ColourData
)
2151 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2152 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2153 DirDialogNameStr
= cvar
.DirDialogNameStr
2154 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2155 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2156 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2158 class ColourDialog(Dialog
):
2159 """This class represents the colour chooser dialog."""
2160 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2161 __repr__
= _swig_repr
2162 def __init__(self
, *args
, **kwargs
):
2164 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2166 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2167 which will be copied to the colour dialog's internal ColourData
2170 _windows_
.ColourDialog_swiginit(self
,_windows_
.new_ColourDialog(*args
, **kwargs
))
2171 self
._setOORInfo
(self
)
2173 def GetColourData(*args
, **kwargs
):
2175 GetColourData(self) -> ColourData
2177 Returns a reference to the `wx.ColourData` used by the dialog.
2179 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2181 ColourData
= property(GetColourData
,doc
="See `GetColourData`")
2182 _windows_
.ColourDialog_swigregister(ColourDialog
)
2185 def GetColourFromUser(*args
, **kwargs
):
2187 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2188 String caption=EmptyString) -> Colour
2190 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2191 DD_NEW_DIR_BUTTON
= _windows_
.DD_NEW_DIR_BUTTON
2192 DD_DEFAULT_STYLE
= _windows_
.DD_DEFAULT_STYLE
2193 DD_CHANGE_DIR
= _windows_
.DD_CHANGE_DIR
2194 class DirDialog(Dialog
):
2196 wx.DirDialog allows the user to select a directory by browising the
2199 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2200 __repr__
= _swig_repr
2201 def __init__(self
, *args
, **kwargs
):
2203 __init__(self, Window parent, String message=DirSelectorPromptStr,
2204 String defaultPath=EmptyString, long style=DD_DEFAULT_STYLE,
2205 Point pos=DefaultPosition, Size size=DefaultSize,
2206 String name=DirDialogNameStr) -> DirDialog
2208 Constructor. Use ShowModal method to show the dialog.
2210 _windows_
.DirDialog_swiginit(self
,_windows_
.new_DirDialog(*args
, **kwargs
))
2211 self
._setOORInfo
(self
)
2213 def GetPath(*args
, **kwargs
):
2215 GetPath(self) -> String
2217 Returns the default or user-selected path.
2219 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2221 def GetMessage(*args
, **kwargs
):
2223 GetMessage(self) -> String
2225 Returns the message that will be displayed on the dialog.
2227 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2229 def SetMessage(*args
, **kwargs
):
2231 SetMessage(self, String message)
2233 Sets the message that will be displayed on the dialog.
2235 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2237 def SetPath(*args
, **kwargs
):
2239 SetPath(self, String path)
2241 Sets the default path.
2243 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2245 Message
= property(GetMessage
,SetMessage
,doc
="See `GetMessage` and `SetMessage`")
2246 Path
= property(GetPath
,SetPath
,doc
="See `GetPath` and `SetPath`")
2247 _windows_
.DirDialog_swigregister(DirDialog
)
2249 OPEN
= _windows_
.OPEN
2250 SAVE
= _windows_
.SAVE
2251 OVERWRITE_PROMPT
= _windows_
.OVERWRITE_PROMPT
2252 FILE_MUST_EXIST
= _windows_
.FILE_MUST_EXIST
2253 MULTIPLE
= _windows_
.MULTIPLE
2254 CHANGE_DIR
= _windows_
.CHANGE_DIR
2255 HIDE_READONLY
= _windows_
.HIDE_READONLY
2256 FD_OPEN
= _windows_
.FD_OPEN
2257 FD_SAVE
= _windows_
.FD_SAVE
2258 FD_OVERWRITE_PROMPT
= _windows_
.FD_OVERWRITE_PROMPT
2259 FD_FILE_MUST_EXIST
= _windows_
.FD_FILE_MUST_EXIST
2260 FD_MULTIPLE
= _windows_
.FD_MULTIPLE
2261 FD_CHANGE_DIR
= _windows_
.FD_CHANGE_DIR
2262 FD_PREVIEW
= _windows_
.FD_PREVIEW
2263 FD_DEFAULT_STYLE
= _windows_
.FD_DEFAULT_STYLE
2264 class FileDialog(Dialog
):
2266 wx.FileDialog allows the user to select one or more files from the
2269 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2270 __repr__
= _swig_repr
2271 def __init__(self
, *args
, **kwargs
):
2273 __init__(self, Window parent, String message=FileSelectorPromptStr,
2274 String defaultDir=EmptyString, String defaultFile=EmptyString,
2275 String wildcard=FileSelectorDefaultWildcardStr,
2276 long style=FD_DEFAULT_STYLE,
2277 Point pos=DefaultPosition) -> FileDialog
2279 Constructor. Use ShowModal method to show the dialog.
2281 _windows_
.FileDialog_swiginit(self
,_windows_
.new_FileDialog(*args
, **kwargs
))
2282 self
._setOORInfo
(self
)
2284 def SetMessage(*args
, **kwargs
):
2286 SetMessage(self, String message)
2288 Sets the message that will be displayed on the dialog.
2290 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2292 def SetPath(*args
, **kwargs
):
2294 SetPath(self, String path)
2296 Sets the path (the combined directory and filename that will be
2297 returned when the dialog is dismissed).
2299 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2301 def SetDirectory(*args
, **kwargs
):
2303 SetDirectory(self, String dir)
2305 Sets the default directory.
2307 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2309 def SetFilename(*args
, **kwargs
):
2311 SetFilename(self, String name)
2313 Sets the default filename.
2315 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2317 def SetWildcard(*args
, **kwargs
):
2319 SetWildcard(self, String wildCard)
2321 Sets the wildcard, which can contain multiple file types, for
2324 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2327 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2329 def SetFilterIndex(*args
, **kwargs
):
2331 SetFilterIndex(self, int filterIndex)
2333 Sets the default filter index, starting from zero.
2335 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2337 def GetMessage(*args
, **kwargs
):
2339 GetMessage(self) -> String
2341 Returns the message that will be displayed on the dialog.
2343 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2345 def GetPath(*args
, **kwargs
):
2347 GetPath(self) -> String
2349 Returns the full path (directory and filename) of the selected file.
2351 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2353 def GetDirectory(*args
, **kwargs
):
2355 GetDirectory(self) -> String
2357 Returns the default directory.
2359 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2361 def GetFilename(*args
, **kwargs
):
2363 GetFilename(self) -> String
2365 Returns the default filename.
2367 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2369 def GetWildcard(*args
, **kwargs
):
2371 GetWildcard(self) -> String
2373 Returns the file dialog wildcard.
2375 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2377 def GetFilterIndex(*args
, **kwargs
):
2379 GetFilterIndex(self) -> int
2381 Returns the index into the list of filters supplied, optionally, in
2382 the wildcard parameter. Before the dialog is shown, this is the index
2383 which will be used when the dialog is first displayed. After the
2384 dialog is shown, this is the index selected by the user.
2386 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2388 def GetFilenames(*args
, **kwargs
):
2390 GetFilenames(self) -> PyObject
2392 Returns a list of filenames chosen in the dialog. This function
2393 should only be used with the dialogs which have wx.MULTIPLE style, use
2394 GetFilename for the others.
2396 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2398 def GetPaths(*args
, **kwargs
):
2400 GetPaths(self) -> PyObject
2402 Fills the array paths with the full paths of the files chosen. This
2403 function should only be used with the dialogs which have wx.MULTIPLE
2404 style, use GetPath for the others.
2406 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2408 _windows_
.FileDialog_swigregister(FileDialog
)
2410 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2411 class MultiChoiceDialog(Dialog
):
2412 """A simple dialog with a multi selection listbox."""
2413 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2414 __repr__
= _swig_repr
2415 def __init__(self
, *args
, **kwargs
):
2417 __init__(self, Window parent, String message, String caption,
2418 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2419 Point pos=DefaultPosition) -> MultiChoiceDialog
2421 Constructor. Use the `ShowModal` method to show the dialog.
2423 :param parent: The parent window.
2424 :param message: Text to display above the list of selections.
2425 :param caption: Text to use in the title bar of the dialog.
2426 :param choices: A list of strings or unicode objects that the
2427 user is allowed to choose from.
2428 :param style: Styles to apply to the dialog. The default value is
2429 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2430 :param pos: Where to position the dialog (not used on Windows)
2434 _windows_
.MultiChoiceDialog_swiginit(self
,_windows_
.new_MultiChoiceDialog(*args
, **kwargs
))
2435 self
._setOORInfo
(self
)
2437 def SetSelections(*args
, **kwargs
):
2439 SetSelections(List selections)
2441 Specify the items in the list that should be selected, using a list of
2442 integers. The list should specify the indexes of the items that
2445 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2447 def GetSelections(*args
, **kwargs
):
2449 GetSelections() -> [selections]
2451 Returns a list of integers representing the items that are selected.
2452 If an item is selected then its index will appear in the list.
2454 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2456 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialog
)
2458 class SingleChoiceDialog(Dialog
):
2459 """A simple dialog with a single selection listbox."""
2460 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2461 __repr__
= _swig_repr
2462 def __init__(self
, *args
, **kwargs
):
2464 __init__(Window parent, String message, String caption,
2465 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2466 Point pos=DefaultPosition) -> SingleChoiceDialog
2468 Constructor. Use ShowModal method to show the dialog.
2470 _windows_
.SingleChoiceDialog_swiginit(self
,_windows_
.new_SingleChoiceDialog(*args
, **kwargs
))
2471 self
._setOORInfo
(self
)
2473 def GetSelection(*args
, **kwargs
):
2475 GetSelection(self) -> int
2477 Get the index of the currently selected item.
2479 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2481 def GetStringSelection(*args
, **kwargs
):
2483 GetStringSelection(self) -> String
2485 Returns the string value of the currently selected item
2487 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2489 def SetSelection(*args
, **kwargs
):
2491 SetSelection(self, int sel)
2493 Set the current selected item to sel
2495 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2497 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialog
)
2499 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2500 class TextEntryDialog(Dialog
):
2501 """A dialog with text control, [ok] and [cancel] buttons"""
2502 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2503 __repr__
= _swig_repr
2504 def __init__(self
, *args
, **kwargs
):
2506 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2507 String defaultValue=EmptyString,
2508 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2510 Constructor. Use ShowModal method to show the dialog.
2512 _windows_
.TextEntryDialog_swiginit(self
,_windows_
.new_TextEntryDialog(*args
, **kwargs
))
2513 self
._setOORInfo
(self
)
2515 def GetValue(*args
, **kwargs
):
2517 GetValue(self) -> String
2519 Returns the text that the user has entered if the user has pressed OK,
2520 or the original value if the user has pressed Cancel.
2522 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2524 def SetValue(*args
, **kwargs
):
2526 SetValue(self, String value)
2528 Sets the default text value.
2530 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2532 _windows_
.TextEntryDialog_swigregister(TextEntryDialog
)
2534 class PasswordEntryDialog(TextEntryDialog
):
2535 """Proxy of C++ PasswordEntryDialog class"""
2536 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2537 __repr__
= _swig_repr
2538 def __init__(self
, *args
, **kwargs
):
2540 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2541 String value=EmptyString,
2542 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2544 _windows_
.PasswordEntryDialog_swiginit(self
,_windows_
.new_PasswordEntryDialog(*args
, **kwargs
))
2545 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialog
)
2546 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2548 class NumberEntryDialog(Dialog
):
2549 """A dialog with spin control, ok and cancel buttons."""
2550 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2551 __repr__
= _swig_repr
2552 def __init__(self
, *args
, **kwargs
):
2554 __init__(self, Window parent, String message, String prompt, String caption,
2555 long value, long min, long max, Point pos=DefaultPosition) -> NumberEntryDialog
2557 Constructor. Use ShowModal method to show the dialog.
2559 _windows_
.NumberEntryDialog_swiginit(self
,_windows_
.new_NumberEntryDialog(*args
, **kwargs
))
2560 self
._setOORInfo
(self
)
2562 def GetValue(*args
, **kwargs
):
2563 """GetValue(self) -> long"""
2564 return _windows_
.NumberEntryDialog_GetValue(*args
, **kwargs
)
2566 _windows_
.NumberEntryDialog_swigregister(NumberEntryDialog
)
2568 class FontData(_core
.Object
):
2570 This class holds a variety of information related to font dialogs and
2571 is used to transfer settings to and results from a `wx.FontDialog`.
2573 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2574 __repr__
= _swig_repr
2575 def __init__(self
, *args
, **kwargs
):
2577 __init__(self) -> FontData
2579 This class holds a variety of information related to font dialogs and
2580 is used to transfer settings to and results from a `wx.FontDialog`.
2582 _windows_
.FontData_swiginit(self
,_windows_
.new_FontData(*args
, **kwargs
))
2583 __swig_destroy__
= _windows_
.delete_FontData
2584 __del__
= lambda self
: None;
2585 def EnableEffects(*args
, **kwargs
):
2587 EnableEffects(self, bool enable)
2589 Enables or disables 'effects' under MS Windows only. This refers to
2590 the controls for manipulating colour, strikeout and underline
2591 properties. The default value is true.
2593 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2595 def GetAllowSymbols(*args
, **kwargs
):
2597 GetAllowSymbols(self) -> bool
2599 Under MS Windows, returns a flag determining whether symbol fonts can
2600 be selected. Has no effect on other platforms. The default value is
2603 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2605 def GetColour(*args
, **kwargs
):
2607 GetColour(self) -> Colour
2609 Gets the colour associated with the font dialog. The default value is
2612 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2614 def GetChosenFont(*args
, **kwargs
):
2616 GetChosenFont(self) -> Font
2618 Gets the font chosen by the user.
2620 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2622 def GetEnableEffects(*args
, **kwargs
):
2624 GetEnableEffects(self) -> bool
2626 Determines whether 'effects' are enabled under Windows.
2628 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2630 def GetInitialFont(*args
, **kwargs
):
2632 GetInitialFont(self) -> Font
2634 Gets the font that will be initially used by the font dialog. This
2635 should have previously been set by the application.
2637 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2639 def GetShowHelp(*args
, **kwargs
):
2641 GetShowHelp(self) -> bool
2643 Returns true if the Help button will be shown (Windows only). The
2644 default value is false.
2646 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2648 def SetAllowSymbols(*args
, **kwargs
):
2650 SetAllowSymbols(self, bool allowSymbols)
2652 Under MS Windows, determines whether symbol fonts can be selected. Has
2653 no effect on other platforms. The default value is true.
2655 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2657 def SetChosenFont(*args
, **kwargs
):
2659 SetChosenFont(self, Font font)
2661 Sets the font that will be returned to the user (normally for internal
2664 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2666 def SetColour(*args
, **kwargs
):
2668 SetColour(self, Colour colour)
2670 Sets the colour that will be used for the font foreground colour. The
2671 default colour is black.
2673 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2675 def SetInitialFont(*args
, **kwargs
):
2677 SetInitialFont(self, Font font)
2679 Sets the font that will be initially used by the font dialog.
2681 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2683 def SetRange(*args
, **kwargs
):
2685 SetRange(self, int min, int max)
2687 Sets the valid range for the font point size (Windows only). The
2688 default is 0, 0 (unrestricted range).
2690 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2692 def SetShowHelp(*args
, **kwargs
):
2694 SetShowHelp(self, bool showHelp)
2696 Determines whether the Help button will be displayed in the font
2697 dialog (Windows only). The default value is false.
2699 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2701 _windows_
.FontData_swigregister(FontData
)
2703 class FontDialog(Dialog
):
2705 wx.FontDialog allows the user to select a system font and its attributes.
2710 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2711 __repr__
= _swig_repr
2712 def __init__(self
, *args
, **kwargs
):
2714 __init__(self, Window parent, FontData data) -> FontDialog
2716 Constructor. Pass a parent window and the `wx.FontData` object to be
2717 used to initialize the dialog controls. Call `ShowModal` to display
2718 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2719 results with via the `wx.FontData` returned by `GetFontData`.
2721 _windows_
.FontDialog_swiginit(self
,_windows_
.new_FontDialog(*args
, **kwargs
))
2722 self
._setOORInfo
(self
)
2724 def GetFontData(*args
, **kwargs
):
2726 GetFontData(self) -> FontData
2728 Returns a reference to the internal `wx.FontData` used by the
2731 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2733 _windows_
.FontDialog_swigregister(FontDialog
)
2736 def GetFontFromUser(*args
, **kwargs
):
2737 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2738 return _windows_
.GetFontFromUser(*args
, **kwargs
)
2739 class MessageDialog(Dialog
):
2741 This class provides a simple dialog that shows a single or multi-line
2742 message, with a choice of OK, Yes, No and/or Cancel buttons.
2744 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2745 __repr__
= _swig_repr
2746 def __init__(self
, *args
, **kwargs
):
2748 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2749 long style=wxOK|wxCANCEL|wxCENTRE,
2750 Point pos=DefaultPosition) -> MessageDialog
2752 Constructor, use `ShowModal` to display the dialog.
2754 _windows_
.MessageDialog_swiginit(self
,_windows_
.new_MessageDialog(*args
, **kwargs
))
2755 self
._setOORInfo
(self
)
2757 _windows_
.MessageDialog_swigregister(MessageDialog
)
2759 class ProgressDialog(Frame
):
2761 A dialog that shows a short message and a progress bar. Optionally, it
2762 can display an ABORT button.
2764 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2765 __repr__
= _swig_repr
2766 def __init__(self
, *args
, **kwargs
):
2768 __init__(self, String title, String message, int maximum=100, Window parent=None,
2769 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2771 Constructor. Creates the dialog, displays it and disables user input
2772 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2775 _windows_
.ProgressDialog_swiginit(self
,_windows_
.new_ProgressDialog(*args
, **kwargs
))
2776 self
._setOORInfo
(self
)
2778 def Update(*args
, **kwargs
):
2780 Update(self, int value, String newmsg) --> (continue, skip)
2782 Updates the dialog, setting the progress bar to the new value and, if
2783 given changes the message above it. The value given should be less
2784 than or equal to the maximum value given to the constructor and the
2785 dialog is closed if it is equal to the maximum. Returns a tuple of
2786 boolean values, ``(continue, skip)`` where ``continue`` is ``True``
2787 unless the Cancel button has been pressed, and ``skip`` is ``False``
2788 unless the Skip button (if any) has been pressed.
2790 If the ``continue`` return value is ``false``, the application can either
2791 immediately destroy the dialog or ask the user for confirmation, and if the
2792 abort is not confirmed the dialog may be resumed with `Resume` function.
2795 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2797 def Resume(*args
, **kwargs
):
2801 Can be used to continue with the dialog, after the user had chosen to
2804 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2806 _windows_
.ProgressDialog_swigregister(ProgressDialog
)
2808 FR_DOWN
= _windows_
.FR_DOWN
2809 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2810 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2811 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2812 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2813 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2814 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2815 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2816 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2817 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2818 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2819 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2820 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2821 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2822 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2823 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2824 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2826 # For backwards compatibility. Should they be removed?
2827 EVT_COMMAND_FIND
= EVT_FIND
2828 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2829 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2830 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2831 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2833 class FindDialogEvent(_core
.CommandEvent
):
2834 """Events for the FindReplaceDialog"""
2835 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2836 __repr__
= _swig_repr
2837 def __init__(self
, *args
, **kwargs
):
2839 __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2841 Events for the FindReplaceDialog
2843 _windows_
.FindDialogEvent_swiginit(self
,_windows_
.new_FindDialogEvent(*args
, **kwargs
))
2844 def GetFlags(*args
, **kwargs
):
2846 GetFlags(self) -> int
2848 Get the currently selected flags: this is the combination of
2849 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2851 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2853 def GetFindString(*args
, **kwargs
):
2855 GetFindString(self) -> String
2857 Return the string to find (never empty).
2859 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2861 def GetReplaceString(*args
, **kwargs
):
2863 GetReplaceString(self) -> String
2865 Return the string to replace the search string with (only for replace
2866 and replace all events).
2868 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2870 def GetDialog(*args
, **kwargs
):
2872 GetDialog(self) -> FindReplaceDialog
2874 Return the pointer to the dialog which generated this event.
2876 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2878 def SetFlags(*args
, **kwargs
):
2879 """SetFlags(self, int flags)"""
2880 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2882 def SetFindString(*args
, **kwargs
):
2883 """SetFindString(self, String str)"""
2884 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2886 def SetReplaceString(*args
, **kwargs
):
2887 """SetReplaceString(self, String str)"""
2888 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2890 _windows_
.FindDialogEvent_swigregister(FindDialogEvent
)
2892 class FindReplaceData(_core
.Object
):
2894 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2895 to initialize the dialog with the default values and will keep the
2896 last values from the dialog when it is closed. It is also updated each
2897 time a `wx.FindDialogEvent` is generated so instead of using the
2898 `wx.FindDialogEvent` methods you can also directly query this object.
2900 Note that all SetXXX() methods may only be called before showing the
2901 dialog and calling them has no effect later.
2903 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2904 __repr__
= _swig_repr
2905 def __init__(self
, *args
, **kwargs
):
2907 __init__(self, int flags=0) -> FindReplaceData
2909 Constuctor initializes the flags to default value (0).
2911 _windows_
.FindReplaceData_swiginit(self
,_windows_
.new_FindReplaceData(*args
, **kwargs
))
2912 __swig_destroy__
= _windows_
.delete_FindReplaceData
2913 __del__
= lambda self
: None;
2914 def GetFindString(*args
, **kwargs
):
2916 GetFindString(self) -> String
2918 Get the string to find.
2920 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2922 def GetReplaceString(*args
, **kwargs
):
2924 GetReplaceString(self) -> String
2926 Get the replacement string.
2928 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2930 def GetFlags(*args
, **kwargs
):
2932 GetFlags(self) -> int
2934 Get the combination of flag values.
2936 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
2938 def SetFlags(*args
, **kwargs
):
2940 SetFlags(self, int flags)
2942 Set the flags to use to initialize the controls of the dialog.
2944 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
2946 def SetFindString(*args
, **kwargs
):
2948 SetFindString(self, String str)
2950 Set the string to find (used as initial value by the dialog).
2952 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
2954 def SetReplaceString(*args
, **kwargs
):
2956 SetReplaceString(self, String str)
2958 Set the replacement string (used as initial value by the dialog).
2960 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2962 _windows_
.FindReplaceData_swigregister(FindReplaceData
)
2964 class FindReplaceDialog(Dialog
):
2966 wx.FindReplaceDialog is a standard modeless dialog which is used to
2967 allow the user to search for some text (and possibly replace it with
2968 something else). The actual searching is supposed to be done in the
2969 owner window which is the parent of this dialog. Note that it means
2970 that unlike for the other standard dialogs this one must have a parent
2971 window. Also note that there is no way to use this dialog in a modal
2972 way; it is always, by design and implementation, modeless.
2974 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2975 __repr__
= _swig_repr
2976 def __init__(self
, *args
, **kwargs
):
2978 __init__(self, Window parent, FindReplaceData data, String title,
2979 int style=0) -> FindReplaceDialog
2981 Create a FindReplaceDialog. The parent and data parameters must be
2982 non-None. Use Show to display the dialog.
2984 _windows_
.FindReplaceDialog_swiginit(self
,_windows_
.new_FindReplaceDialog(*args
, **kwargs
))
2985 self
._setOORInfo
(self
)
2987 def Create(*args
, **kwargs
):
2989 Create(self, Window parent, FindReplaceData data, String title,
2990 int style=0) -> bool
2992 Create the dialog, for 2-phase create.
2994 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
2996 def GetData(*args
, **kwargs
):
2998 GetData(self) -> FindReplaceData
3000 Get the FindReplaceData object used by this dialog.
3002 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3004 def SetData(*args
, **kwargs
):
3006 SetData(self, FindReplaceData data)
3008 Set the FindReplaceData object used by this dialog.
3010 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3012 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialog
)
3014 def PreFindReplaceDialog(*args
, **kwargs
):
3016 PreFindReplaceDialog() -> FindReplaceDialog
3018 Precreate a FindReplaceDialog for 2-phase creation
3020 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3023 #---------------------------------------------------------------------------
3025 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3026 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3027 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3028 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3029 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3030 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3031 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3032 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3033 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3034 class MDIParentFrame(Frame
):
3035 """Proxy of C++ MDIParentFrame class"""
3036 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3037 __repr__
= _swig_repr
3038 def __init__(self
, *args
, **kwargs
):
3040 __init__(self, Window parent, int id=-1, String title=EmptyString,
3041 Point pos=DefaultPosition, Size size=DefaultSize,
3042 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3043 String name=FrameNameStr) -> MDIParentFrame
3045 _windows_
.MDIParentFrame_swiginit(self
,_windows_
.new_MDIParentFrame(*args
, **kwargs
))
3046 self
._setOORInfo
(self
)
3048 def Create(*args
, **kwargs
):
3050 Create(self, Window parent, int id=-1, String title=EmptyString,
3051 Point pos=DefaultPosition, Size size=DefaultSize,
3052 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3053 String name=FrameNameStr) -> bool
3055 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3057 def ActivateNext(*args
, **kwargs
):
3058 """ActivateNext(self)"""
3059 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3061 def ActivatePrevious(*args
, **kwargs
):
3062 """ActivatePrevious(self)"""
3063 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3065 def ArrangeIcons(*args
, **kwargs
):
3066 """ArrangeIcons(self)"""
3067 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3069 def Cascade(*args
, **kwargs
):
3071 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3073 def GetActiveChild(*args
, **kwargs
):
3074 """GetActiveChild(self) -> MDIChildFrame"""
3075 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3077 def GetClientWindow(*args
, **kwargs
):
3078 """GetClientWindow(self) -> MDIClientWindow"""
3079 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3081 def GetToolBar(*args
, **kwargs
):
3082 """GetToolBar(self) -> Window"""
3083 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3085 def GetWindowMenu(*args
, **kwargs
):
3086 """GetWindowMenu(self) -> Menu"""
3087 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3089 def SetWindowMenu(*args
, **kwargs
):
3090 """SetWindowMenu(self, Menu menu)"""
3091 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3093 def Tile(*args
, **kwargs
):
3094 """Tile(self, int orient=HORIZONTAL)"""
3095 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3097 _windows_
.MDIParentFrame_swigregister(MDIParentFrame
)
3099 def PreMDIParentFrame(*args
, **kwargs
):
3100 """PreMDIParentFrame() -> MDIParentFrame"""
3101 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3104 class MDIChildFrame(Frame
):
3105 """Proxy of C++ MDIChildFrame class"""
3106 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3107 __repr__
= _swig_repr
3108 def __init__(self
, *args
, **kwargs
):
3110 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3111 Point pos=DefaultPosition, Size size=DefaultSize,
3112 long style=DEFAULT_FRAME_STYLE,
3113 String name=FrameNameStr) -> MDIChildFrame
3115 _windows_
.MDIChildFrame_swiginit(self
,_windows_
.new_MDIChildFrame(*args
, **kwargs
))
3116 self
._setOORInfo
(self
)
3118 def Create(*args
, **kwargs
):
3120 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3121 Point pos=DefaultPosition, Size size=DefaultSize,
3122 long style=DEFAULT_FRAME_STYLE,
3123 String name=FrameNameStr) -> bool
3125 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3127 def Activate(*args
, **kwargs
):
3128 """Activate(self)"""
3129 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3131 _windows_
.MDIChildFrame_swigregister(MDIChildFrame
)
3133 def PreMDIChildFrame(*args
, **kwargs
):
3134 """PreMDIChildFrame() -> MDIChildFrame"""
3135 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3138 class MDIClientWindow(_core
.Window
):
3139 """Proxy of C++ MDIClientWindow class"""
3140 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3141 __repr__
= _swig_repr
3142 def __init__(self
, *args
, **kwargs
):
3143 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3144 _windows_
.MDIClientWindow_swiginit(self
,_windows_
.new_MDIClientWindow(*args
, **kwargs
))
3145 self
._setOORInfo
(self
)
3147 def Create(*args
, **kwargs
):
3148 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3149 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3151 _windows_
.MDIClientWindow_swigregister(MDIClientWindow
)
3153 def PreMDIClientWindow(*args
, **kwargs
):
3154 """PreMDIClientWindow() -> MDIClientWindow"""
3155 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3158 #---------------------------------------------------------------------------
3160 class PyWindow(_core
.Window
):
3161 """Proxy of C++ PyWindow class"""
3162 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3163 __repr__
= _swig_repr
3164 def __init__(self
, *args
, **kwargs
):
3166 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3167 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3169 _windows_
.PyWindow_swiginit(self
,_windows_
.new_PyWindow(*args
, **kwargs
))
3170 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3172 def _setCallbackInfo(*args
, **kwargs
):
3173 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3174 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3176 def SetBestSize(*args
, **kwargs
):
3177 """SetBestSize(self, Size size)"""
3178 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3180 def DoEraseBackground(*args
, **kwargs
):
3181 """DoEraseBackground(self, DC dc) -> bool"""
3182 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3184 def DoMoveWindow(*args
, **kwargs
):
3185 """DoMoveWindow(self, int x, int y, int width, int height)"""
3186 return _windows_
.PyWindow_DoMoveWindow(*args
, **kwargs
)
3188 def DoSetSize(*args
, **kwargs
):
3189 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3190 return _windows_
.PyWindow_DoSetSize(*args
, **kwargs
)
3192 def DoSetClientSize(*args
, **kwargs
):
3193 """DoSetClientSize(self, int width, int height)"""
3194 return _windows_
.PyWindow_DoSetClientSize(*args
, **kwargs
)
3196 def DoSetVirtualSize(*args
, **kwargs
):
3197 """DoSetVirtualSize(self, int x, int y)"""
3198 return _windows_
.PyWindow_DoSetVirtualSize(*args
, **kwargs
)
3200 def DoGetSize(*args
, **kwargs
):
3201 """DoGetSize() -> (width, height)"""
3202 return _windows_
.PyWindow_DoGetSize(*args
, **kwargs
)
3204 def DoGetClientSize(*args
, **kwargs
):
3205 """DoGetClientSize() -> (width, height)"""
3206 return _windows_
.PyWindow_DoGetClientSize(*args
, **kwargs
)
3208 def DoGetPosition(*args
, **kwargs
):
3209 """DoGetPosition() -> (x,y)"""
3210 return _windows_
.PyWindow_DoGetPosition(*args
, **kwargs
)
3212 def DoGetVirtualSize(*args
, **kwargs
):
3213 """DoGetVirtualSize(self) -> Size"""
3214 return _windows_
.PyWindow_DoGetVirtualSize(*args
, **kwargs
)
3216 def DoGetBestSize(*args
, **kwargs
):
3217 """DoGetBestSize(self) -> Size"""
3218 return _windows_
.PyWindow_DoGetBestSize(*args
, **kwargs
)
3220 def GetDefaultAttributes(*args
, **kwargs
):
3221 """GetDefaultAttributes(self) -> VisualAttributes"""
3222 return _windows_
.PyWindow_GetDefaultAttributes(*args
, **kwargs
)
3224 def OnInternalIdle(*args
, **kwargs
):
3225 """OnInternalIdle(self)"""
3226 return _windows_
.PyWindow_OnInternalIdle(*args
, **kwargs
)
3228 def base_DoMoveWindow(*args
, **kw
):
3229 return PyWindow
.DoMoveWindow(*args
, **kw
)
3230 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3231 "Please use PyWindow.DoMoveWindow instead.")
3233 def base_DoSetSize(*args
, **kw
):
3234 return PyWindow
.DoSetSize(*args
, **kw
)
3235 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3236 "Please use PyWindow.DoSetSize instead.")
3238 def base_DoSetClientSize(*args
, **kw
):
3239 return PyWindow
.DoSetClientSize(*args
, **kw
)
3240 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3241 "Please use PyWindow.DoSetClientSize instead.")
3243 def base_DoSetVirtualSize(*args
, **kw
):
3244 return PyWindow
.DoSetVirtualSize(*args
, **kw
)
3245 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3246 "Please use PyWindow.DoSetVirtualSize instead.")
3248 def base_DoGetSize(*args
, **kw
):
3249 return PyWindow
.DoGetSize(*args
, **kw
)
3250 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3251 "Please use PyWindow.DoGetSize instead.")
3253 def base_DoGetClientSize(*args
, **kw
):
3254 return PyWindow
.DoGetClientSize(*args
, **kw
)
3255 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3256 "Please use PyWindow.DoGetClientSize instead.")
3258 def base_DoGetPosition(*args
, **kw
):
3259 return PyWindow
.DoGetPosition(*args
, **kw
)
3260 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3261 "Please use PyWindow.DoGetPosition instead.")
3263 def base_DoGetVirtualSize(*args
, **kw
):
3264 return PyWindow
.DoGetVirtualSize(*args
, **kw
)
3265 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3266 "Please use PyWindow.DoGetVirtualSize instead.")
3268 def base_DoGetBestSize(*args
, **kw
):
3269 return PyWindow
.DoGetBestSize(*args
, **kw
)
3270 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3271 "Please use PyWindow.DoGetBestSize instead.")
3273 def base_InitDialog(*args
, **kw
):
3274 return PyWindow
.InitDialog(*args
, **kw
)
3275 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3276 "Please use PyWindow.InitDialog instead.")
3278 def base_TransferDataToWindow(*args
, **kw
):
3279 return PyWindow
.TransferDataToWindow(*args
, **kw
)
3280 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3281 "Please use PyWindow.TransferDataToWindow instead.")
3283 def base_TransferDataFromWindow(*args
, **kw
):
3284 return PyWindow
.TransferDataFromWindow(*args
, **kw
)
3285 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3286 "Please use PyWindow.TransferDataFromWindow instead.")
3288 def base_Validate(*args
, **kw
):
3289 return PyWindow
.Validate(*args
, **kw
)
3290 base_Validate
= wx
._deprecated
(base_Validate
,
3291 "Please use PyWindow.Validate instead.")
3293 def base_AcceptsFocus(*args
, **kw
):
3294 return PyWindow
.AcceptsFocus(*args
, **kw
)
3295 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3296 "Please use PyWindow.AcceptsFocus instead.")
3298 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3299 return PyWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3300 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3301 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3303 def base_GetMaxSize(*args
, **kw
):
3304 return PyWindow
.GetMaxSize(*args
, **kw
)
3305 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3306 "Please use PyWindow.GetMaxSize instead.")
3308 def base_AddChild(*args
, **kw
):
3309 return PyWindow
.AddChild(*args
, **kw
)
3310 base_AddChild
= wx
._deprecated
(base_AddChild
,
3311 "Please use PyWindow.AddChild instead.")
3313 def base_RemoveChild(*args
, **kw
):
3314 return PyWindow
.RemoveChild(*args
, **kw
)
3315 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3316 "Please use PyWindow.RemoveChild instead.")
3318 def base_ShouldInheritColours(*args
, **kw
):
3319 return PyWindow
.ShouldInheritColours(*args
, **kw
)
3320 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3321 "Please use PyWindow.ShouldInheritColours instead.")
3323 def base_GetDefaultAttributes(*args
, **kw
):
3324 return PyWindow
.GetDefaultAttributes(*args
, **kw
)
3325 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3326 "Please use PyWindow.GetDefaultAttributes instead.")
3328 def base_OnInternalIdle(*args
, **kw
):
3329 return PyWindow
.OnInternalIdle(*args
, **kw
)
3330 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3331 "Please use PyWindow.OnInternalIdle instead.")
3333 _windows_
.PyWindow_swigregister(PyWindow
)
3335 def PrePyWindow(*args
, **kwargs
):
3336 """PrePyWindow() -> PyWindow"""
3337 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3340 class PyPanel(Panel
):
3341 """Proxy of C++ PyPanel class"""
3342 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3343 __repr__
= _swig_repr
3344 def __init__(self
, *args
, **kwargs
):
3346 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3347 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3349 _windows_
.PyPanel_swiginit(self
,_windows_
.new_PyPanel(*args
, **kwargs
))
3350 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3352 def _setCallbackInfo(*args
, **kwargs
):
3353 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3354 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3356 def SetBestSize(*args
, **kwargs
):
3357 """SetBestSize(self, Size size)"""
3358 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3360 def DoEraseBackground(*args
, **kwargs
):
3361 """DoEraseBackground(self, DC dc) -> bool"""
3362 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3364 def DoMoveWindow(*args
, **kwargs
):
3365 """DoMoveWindow(self, int x, int y, int width, int height)"""
3366 return _windows_
.PyPanel_DoMoveWindow(*args
, **kwargs
)
3368 def DoSetSize(*args
, **kwargs
):
3369 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3370 return _windows_
.PyPanel_DoSetSize(*args
, **kwargs
)
3372 def DoSetClientSize(*args
, **kwargs
):
3373 """DoSetClientSize(self, int width, int height)"""
3374 return _windows_
.PyPanel_DoSetClientSize(*args
, **kwargs
)
3376 def DoSetVirtualSize(*args
, **kwargs
):
3377 """DoSetVirtualSize(self, int x, int y)"""
3378 return _windows_
.PyPanel_DoSetVirtualSize(*args
, **kwargs
)
3380 def DoGetSize(*args
, **kwargs
):
3381 """DoGetSize() -> (width, height)"""
3382 return _windows_
.PyPanel_DoGetSize(*args
, **kwargs
)
3384 def DoGetClientSize(*args
, **kwargs
):
3385 """DoGetClientSize() -> (width, height)"""
3386 return _windows_
.PyPanel_DoGetClientSize(*args
, **kwargs
)
3388 def DoGetPosition(*args
, **kwargs
):
3389 """DoGetPosition() -> (x,y)"""
3390 return _windows_
.PyPanel_DoGetPosition(*args
, **kwargs
)
3392 def DoGetVirtualSize(*args
, **kwargs
):
3393 """DoGetVirtualSize(self) -> Size"""
3394 return _windows_
.PyPanel_DoGetVirtualSize(*args
, **kwargs
)
3396 def DoGetBestSize(*args
, **kwargs
):
3397 """DoGetBestSize(self) -> Size"""
3398 return _windows_
.PyPanel_DoGetBestSize(*args
, **kwargs
)
3400 def GetDefaultAttributes(*args
, **kwargs
):
3401 """GetDefaultAttributes(self) -> VisualAttributes"""
3402 return _windows_
.PyPanel_GetDefaultAttributes(*args
, **kwargs
)
3404 def OnInternalIdle(*args
, **kwargs
):
3405 """OnInternalIdle(self)"""
3406 return _windows_
.PyPanel_OnInternalIdle(*args
, **kwargs
)
3408 def base_DoMoveWindow(*args
, **kw
):
3409 return PyPanel
.DoMoveWindow(*args
, **kw
)
3410 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3411 "Please use PyPanel.DoMoveWindow instead.")
3413 def base_DoSetSize(*args
, **kw
):
3414 return PyPanel
.DoSetSize(*args
, **kw
)
3415 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3416 "Please use PyPanel.DoSetSize instead.")
3418 def base_DoSetClientSize(*args
, **kw
):
3419 return PyPanel
.DoSetClientSize(*args
, **kw
)
3420 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3421 "Please use PyPanel.DoSetClientSize instead.")
3423 def base_DoSetVirtualSize(*args
, **kw
):
3424 return PyPanel
.DoSetVirtualSize(*args
, **kw
)
3425 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3426 "Please use PyPanel.DoSetVirtualSize instead.")
3428 def base_DoGetSize(*args
, **kw
):
3429 return PyPanel
.DoGetSize(*args
, **kw
)
3430 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3431 "Please use PyPanel.DoGetSize instead.")
3433 def base_DoGetClientSize(*args
, **kw
):
3434 return PyPanel
.DoGetClientSize(*args
, **kw
)
3435 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3436 "Please use PyPanel.DoGetClientSize instead.")
3438 def base_DoGetPosition(*args
, **kw
):
3439 return PyPanel
.DoGetPosition(*args
, **kw
)
3440 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3441 "Please use PyPanel.DoGetPosition instead.")
3443 def base_DoGetVirtualSize(*args
, **kw
):
3444 return PyPanel
.DoGetVirtualSize(*args
, **kw
)
3445 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3446 "Please use PyPanel.DoGetVirtualSize instead.")
3448 def base_DoGetBestSize(*args
, **kw
):
3449 return PyPanel
.DoGetBestSize(*args
, **kw
)
3450 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3451 "Please use PyPanel.DoGetBestSize instead.")
3453 def base_InitDialog(*args
, **kw
):
3454 return PyPanel
.InitDialog(*args
, **kw
)
3455 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3456 "Please use PyPanel.InitDialog instead.")
3458 def base_TransferDataToWindow(*args
, **kw
):
3459 return PyPanel
.TransferDataToWindow(*args
, **kw
)
3460 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3461 "Please use PyPanel.TransferDataToWindow instead.")
3463 def base_TransferDataFromWindow(*args
, **kw
):
3464 return PyPanel
.TransferDataFromWindow(*args
, **kw
)
3465 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3466 "Please use PyPanel.TransferDataFromWindow instead.")
3468 def base_Validate(*args
, **kw
):
3469 return PyPanel
.Validate(*args
, **kw
)
3470 base_Validate
= wx
._deprecated
(base_Validate
,
3471 "Please use PyPanel.Validate instead.")
3473 def base_AcceptsFocus(*args
, **kw
):
3474 return PyPanel
.AcceptsFocus(*args
, **kw
)
3475 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3476 "Please use PyPanel.AcceptsFocus instead.")
3478 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3479 return PyPanel
.AcceptsFocusFromKeyboard(*args
, **kw
)
3480 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3481 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
3483 def base_GetMaxSize(*args
, **kw
):
3484 return PyPanel
.GetMaxSize(*args
, **kw
)
3485 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3486 "Please use PyPanel.GetMaxSize instead.")
3488 def base_AddChild(*args
, **kw
):
3489 return PyPanel
.AddChild(*args
, **kw
)
3490 base_AddChild
= wx
._deprecated
(base_AddChild
,
3491 "Please use PyPanel.AddChild instead.")
3493 def base_RemoveChild(*args
, **kw
):
3494 return PyPanel
.RemoveChild(*args
, **kw
)
3495 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3496 "Please use PyPanel.RemoveChild instead.")
3498 def base_ShouldInheritColours(*args
, **kw
):
3499 return PyPanel
.ShouldInheritColours(*args
, **kw
)
3500 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3501 "Please use PyPanel.ShouldInheritColours instead.")
3503 def base_GetDefaultAttributes(*args
, **kw
):
3504 return PyPanel
.GetDefaultAttributes(*args
, **kw
)
3505 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3506 "Please use PyPanel.GetDefaultAttributes instead.")
3508 def base_OnInternalIdle(*args
, **kw
):
3509 return PyPanel
.OnInternalIdle(*args
, **kw
)
3510 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3511 "Please use PyPanel.OnInternalIdle instead.")
3513 _windows_
.PyPanel_swigregister(PyPanel
)
3515 def PrePyPanel(*args
, **kwargs
):
3516 """PrePyPanel() -> PyPanel"""
3517 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3520 class PyScrolledWindow(ScrolledWindow
):
3521 """Proxy of C++ PyScrolledWindow class"""
3522 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3523 __repr__
= _swig_repr
3524 def __init__(self
, *args
, **kwargs
):
3526 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3527 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3529 _windows_
.PyScrolledWindow_swiginit(self
,_windows_
.new_PyScrolledWindow(*args
, **kwargs
))
3530 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3532 def _setCallbackInfo(*args
, **kwargs
):
3533 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3534 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3536 def SetBestSize(*args
, **kwargs
):
3537 """SetBestSize(self, Size size)"""
3538 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3540 def DoEraseBackground(*args
, **kwargs
):
3541 """DoEraseBackground(self, DC dc) -> bool"""
3542 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3544 def DoMoveWindow(*args
, **kwargs
):
3545 """DoMoveWindow(self, int x, int y, int width, int height)"""
3546 return _windows_
.PyScrolledWindow_DoMoveWindow(*args
, **kwargs
)
3548 def DoSetSize(*args
, **kwargs
):
3549 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3550 return _windows_
.PyScrolledWindow_DoSetSize(*args
, **kwargs
)
3552 def DoSetClientSize(*args
, **kwargs
):
3553 """DoSetClientSize(self, int width, int height)"""
3554 return _windows_
.PyScrolledWindow_DoSetClientSize(*args
, **kwargs
)
3556 def DoSetVirtualSize(*args
, **kwargs
):
3557 """DoSetVirtualSize(self, int x, int y)"""
3558 return _windows_
.PyScrolledWindow_DoSetVirtualSize(*args
, **kwargs
)
3560 def DoGetSize(*args
, **kwargs
):
3561 """DoGetSize() -> (width, height)"""
3562 return _windows_
.PyScrolledWindow_DoGetSize(*args
, **kwargs
)
3564 def DoGetClientSize(*args
, **kwargs
):
3565 """DoGetClientSize() -> (width, height)"""
3566 return _windows_
.PyScrolledWindow_DoGetClientSize(*args
, **kwargs
)
3568 def DoGetPosition(*args
, **kwargs
):
3569 """DoGetPosition() -> (x,y)"""
3570 return _windows_
.PyScrolledWindow_DoGetPosition(*args
, **kwargs
)
3572 def DoGetVirtualSize(*args
, **kwargs
):
3573 """DoGetVirtualSize(self) -> Size"""
3574 return _windows_
.PyScrolledWindow_DoGetVirtualSize(*args
, **kwargs
)
3576 def DoGetBestSize(*args
, **kwargs
):
3577 """DoGetBestSize(self) -> Size"""
3578 return _windows_
.PyScrolledWindow_DoGetBestSize(*args
, **kwargs
)
3580 def GetDefaultAttributes(*args
, **kwargs
):
3581 """GetDefaultAttributes(self) -> VisualAttributes"""
3582 return _windows_
.PyScrolledWindow_GetDefaultAttributes(*args
, **kwargs
)
3584 def OnInternalIdle(*args
, **kwargs
):
3585 """OnInternalIdle(self)"""
3586 return _windows_
.PyScrolledWindow_OnInternalIdle(*args
, **kwargs
)
3588 def base_DoMoveWindow(*args
, **kw
):
3589 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
3590 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3591 "Please use PyScrolledWindow.DoMoveWindow instead.")
3593 def base_DoSetSize(*args
, **kw
):
3594 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
3595 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3596 "Please use PyScrolledWindow.DoSetSize instead.")
3598 def base_DoSetClientSize(*args
, **kw
):
3599 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
3600 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3601 "Please use PyScrolledWindow.DoSetClientSize instead.")
3603 def base_DoSetVirtualSize(*args
, **kw
):
3604 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
3605 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3606 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
3608 def base_DoGetSize(*args
, **kw
):
3609 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
3610 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3611 "Please use PyScrolledWindow.DoGetSize instead.")
3613 def base_DoGetClientSize(*args
, **kw
):
3614 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
3615 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3616 "Please use PyScrolledWindow.DoGetClientSize instead.")
3618 def base_DoGetPosition(*args
, **kw
):
3619 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
3620 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3621 "Please use PyScrolledWindow.DoGetPosition instead.")
3623 def base_DoGetVirtualSize(*args
, **kw
):
3624 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
3625 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3626 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
3628 def base_DoGetBestSize(*args
, **kw
):
3629 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
3630 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3631 "Please use PyScrolledWindow.DoGetBestSize instead.")
3633 def base_InitDialog(*args
, **kw
):
3634 return PyScrolledWindow
.InitDialog(*args
, **kw
)
3635 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3636 "Please use PyScrolledWindow.InitDialog instead.")
3638 def base_TransferDataToWindow(*args
, **kw
):
3639 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
3640 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3641 "Please use PyScrolledWindow.TransferDataToWindow instead.")
3643 def base_TransferDataFromWindow(*args
, **kw
):
3644 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
3645 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3646 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
3648 def base_Validate(*args
, **kw
):
3649 return PyScrolledWindow
.Validate(*args
, **kw
)
3650 base_Validate
= wx
._deprecated
(base_Validate
,
3651 "Please use PyScrolledWindow.Validate instead.")
3653 def base_AcceptsFocus(*args
, **kw
):
3654 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
3655 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3656 "Please use PyScrolledWindow.AcceptsFocus instead.")
3658 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3659 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3660 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3661 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
3663 def base_GetMaxSize(*args
, **kw
):
3664 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
3665 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3666 "Please use PyScrolledWindow.GetMaxSize instead.")
3668 def base_AddChild(*args
, **kw
):
3669 return PyScrolledWindow
.AddChild(*args
, **kw
)
3670 base_AddChild
= wx
._deprecated
(base_AddChild
,
3671 "Please use PyScrolledWindow.AddChild instead.")
3673 def base_RemoveChild(*args
, **kw
):
3674 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
3675 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3676 "Please use PyScrolledWindow.RemoveChild instead.")
3678 def base_ShouldInheritColours(*args
, **kw
):
3679 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
3680 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3681 "Please use PyScrolledWindow.ShouldInheritColours instead.")
3683 def base_GetDefaultAttributes(*args
, **kw
):
3684 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
3685 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3686 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
3688 def base_OnInternalIdle(*args
, **kw
):
3689 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
3690 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3691 "Please use PyScrolledWindow.OnInternalIdle instead.")
3693 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindow
)
3695 def PrePyScrolledWindow(*args
, **kwargs
):
3696 """PrePyScrolledWindow() -> PyScrolledWindow"""
3697 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3700 #---------------------------------------------------------------------------
3702 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3703 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3704 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3705 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3706 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3707 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3708 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3709 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3710 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3711 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3712 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3713 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3714 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3715 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3716 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3717 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3718 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3719 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3720 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3721 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3722 class PrintData(_core
.Object
):
3723 """Proxy of C++ PrintData class"""
3724 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3725 __repr__
= _swig_repr
3726 def __init__(self
, *args
):
3728 __init__(self) -> PrintData
3729 __init__(self, PrintData data) -> PrintData
3731 _windows_
.PrintData_swiginit(self
,_windows_
.new_PrintData(*args
))
3732 __swig_destroy__
= _windows_
.delete_PrintData
3733 __del__
= lambda self
: None;
3734 def GetNoCopies(*args
, **kwargs
):
3735 """GetNoCopies(self) -> int"""
3736 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3738 def GetCollate(*args
, **kwargs
):
3739 """GetCollate(self) -> bool"""
3740 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3742 def GetOrientation(*args
, **kwargs
):
3743 """GetOrientation(self) -> int"""
3744 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3746 def Ok(*args
, **kwargs
):
3747 """Ok(self) -> bool"""
3748 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3750 def GetPrinterName(*args
, **kwargs
):
3751 """GetPrinterName(self) -> String"""
3752 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3754 def GetColour(*args
, **kwargs
):
3755 """GetColour(self) -> bool"""
3756 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3758 def GetDuplex(*args
, **kwargs
):
3759 """GetDuplex(self) -> int"""
3760 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3762 def GetPaperId(*args
, **kwargs
):
3763 """GetPaperId(self) -> int"""
3764 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3766 def GetPaperSize(*args
, **kwargs
):
3767 """GetPaperSize(self) -> Size"""
3768 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3770 def GetQuality(*args
, **kwargs
):
3771 """GetQuality(self) -> int"""
3772 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3774 def GetBin(*args
, **kwargs
):
3775 """GetBin(self) -> int"""
3776 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3778 def GetPrintMode(*args
, **kwargs
):
3779 """GetPrintMode(self) -> int"""
3780 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3782 def SetNoCopies(*args
, **kwargs
):
3783 """SetNoCopies(self, int v)"""
3784 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3786 def SetCollate(*args
, **kwargs
):
3787 """SetCollate(self, bool flag)"""
3788 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3790 def SetOrientation(*args
, **kwargs
):
3791 """SetOrientation(self, int orient)"""
3792 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3794 def SetPrinterName(*args
, **kwargs
):
3795 """SetPrinterName(self, String name)"""
3796 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3798 def SetColour(*args
, **kwargs
):
3799 """SetColour(self, bool colour)"""
3800 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3802 def SetDuplex(*args
, **kwargs
):
3803 """SetDuplex(self, int duplex)"""
3804 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3806 def SetPaperId(*args
, **kwargs
):
3807 """SetPaperId(self, int sizeId)"""
3808 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3810 def SetPaperSize(*args
, **kwargs
):
3811 """SetPaperSize(self, Size sz)"""
3812 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3814 def SetQuality(*args
, **kwargs
):
3815 """SetQuality(self, int quality)"""
3816 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3818 def SetBin(*args
, **kwargs
):
3819 """SetBin(self, int bin)"""
3820 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3822 def SetPrintMode(*args
, **kwargs
):
3823 """SetPrintMode(self, int printMode)"""
3824 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3826 def GetFilename(*args
, **kwargs
):
3827 """GetFilename(self) -> String"""
3828 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3830 def SetFilename(*args
, **kwargs
):
3831 """SetFilename(self, String filename)"""
3832 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3834 def __nonzero__(self
): return self
.Ok()
3835 def GetPrivData(*args
, **kwargs
):
3836 """GetPrivData(self) -> PyObject"""
3837 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
3839 def SetPrivData(*args
, **kwargs
):
3840 """SetPrivData(self, PyObject data)"""
3841 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
3843 _windows_
.PrintData_swigregister(PrintData
)
3844 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3845 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3847 class PageSetupDialogData(_core
.Object
):
3848 """Proxy of C++ PageSetupDialogData class"""
3849 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3850 __repr__
= _swig_repr
3851 def __init__(self
, *args
):
3853 __init__(self) -> PageSetupDialogData
3854 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3855 __init__(self, PrintData data) -> PageSetupDialogData
3857 _windows_
.PageSetupDialogData_swiginit(self
,_windows_
.new_PageSetupDialogData(*args
))
3858 __swig_destroy__
= _windows_
.delete_PageSetupDialogData
3859 __del__
= lambda self
: None;
3860 def EnableHelp(*args
, **kwargs
):
3861 """EnableHelp(self, bool flag)"""
3862 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3864 def EnableMargins(*args
, **kwargs
):
3865 """EnableMargins(self, bool flag)"""
3866 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3868 def EnableOrientation(*args
, **kwargs
):
3869 """EnableOrientation(self, bool flag)"""
3870 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3872 def EnablePaper(*args
, **kwargs
):
3873 """EnablePaper(self, bool flag)"""
3874 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3876 def EnablePrinter(*args
, **kwargs
):
3877 """EnablePrinter(self, bool flag)"""
3878 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3880 def GetDefaultMinMargins(*args
, **kwargs
):
3881 """GetDefaultMinMargins(self) -> bool"""
3882 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3884 def GetEnableMargins(*args
, **kwargs
):
3885 """GetEnableMargins(self) -> bool"""
3886 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3888 def GetEnableOrientation(*args
, **kwargs
):
3889 """GetEnableOrientation(self) -> bool"""
3890 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3892 def GetEnablePaper(*args
, **kwargs
):
3893 """GetEnablePaper(self) -> bool"""
3894 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3896 def GetEnablePrinter(*args
, **kwargs
):
3897 """GetEnablePrinter(self) -> bool"""
3898 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3900 def GetEnableHelp(*args
, **kwargs
):
3901 """GetEnableHelp(self) -> bool"""
3902 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3904 def GetDefaultInfo(*args
, **kwargs
):
3905 """GetDefaultInfo(self) -> bool"""
3906 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3908 def GetMarginTopLeft(*args
, **kwargs
):
3909 """GetMarginTopLeft(self) -> Point"""
3910 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3912 def GetMarginBottomRight(*args
, **kwargs
):
3913 """GetMarginBottomRight(self) -> Point"""
3914 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3916 def GetMinMarginTopLeft(*args
, **kwargs
):
3917 """GetMinMarginTopLeft(self) -> Point"""
3918 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3920 def GetMinMarginBottomRight(*args
, **kwargs
):
3921 """GetMinMarginBottomRight(self) -> Point"""
3922 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3924 def GetPaperId(*args
, **kwargs
):
3925 """GetPaperId(self) -> int"""
3926 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3928 def GetPaperSize(*args
, **kwargs
):
3929 """GetPaperSize(self) -> Size"""
3930 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3932 def GetPrintData(*args
, **kwargs
):
3933 """GetPrintData(self) -> PrintData"""
3934 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3936 def Ok(*args
, **kwargs
):
3937 """Ok(self) -> bool"""
3938 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3940 def SetDefaultInfo(*args
, **kwargs
):
3941 """SetDefaultInfo(self, bool flag)"""
3942 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3944 def SetDefaultMinMargins(*args
, **kwargs
):
3945 """SetDefaultMinMargins(self, bool flag)"""
3946 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3948 def SetMarginTopLeft(*args
, **kwargs
):
3949 """SetMarginTopLeft(self, Point pt)"""
3950 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3952 def SetMarginBottomRight(*args
, **kwargs
):
3953 """SetMarginBottomRight(self, Point pt)"""
3954 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3956 def SetMinMarginTopLeft(*args
, **kwargs
):
3957 """SetMinMarginTopLeft(self, Point pt)"""
3958 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3960 def SetMinMarginBottomRight(*args
, **kwargs
):
3961 """SetMinMarginBottomRight(self, Point pt)"""
3962 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3964 def SetPaperId(*args
, **kwargs
):
3965 """SetPaperId(self, int id)"""
3966 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3968 def SetPaperSize(*args
, **kwargs
):
3969 """SetPaperSize(self, Size size)"""
3970 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3972 def SetPrintData(*args
, **kwargs
):
3973 """SetPrintData(self, PrintData printData)"""
3974 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3976 def CalculateIdFromPaperSize(*args
, **kwargs
):
3977 """CalculateIdFromPaperSize(self)"""
3978 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
3980 def CalculatePaperSizeFromId(*args
, **kwargs
):
3981 """CalculatePaperSizeFromId(self)"""
3982 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
3984 def __nonzero__(self
): return self
.Ok()
3985 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogData
)
3987 class PageSetupDialog(_core
.Object
):
3988 """Proxy of C++ PageSetupDialog class"""
3989 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3990 __repr__
= _swig_repr
3991 def __init__(self
, *args
, **kwargs
):
3992 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3993 _windows_
.PageSetupDialog_swiginit(self
,_windows_
.new_PageSetupDialog(*args
, **kwargs
))
3994 __swig_destroy__
= _windows_
.delete_PageSetupDialog
3995 __del__
= lambda self
: None;
3996 def GetPageSetupData(*args
, **kwargs
):
3997 """GetPageSetupData(self) -> PageSetupDialogData"""
3998 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4000 def GetPageSetupDialogData(*args
, **kwargs
):
4001 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4002 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4004 def ShowModal(*args
, **kwargs
):
4005 """ShowModal(self) -> int"""
4006 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4008 def Destroy(self
): pass
4009 _windows_
.PageSetupDialog_swigregister(PageSetupDialog
)
4011 class PrintDialogData(_core
.Object
):
4012 """Proxy of C++ PrintDialogData class"""
4013 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4014 __repr__
= _swig_repr
4015 def __init__(self
, *args
):
4017 __init__(self) -> PrintDialogData
4018 __init__(self, PrintData printData) -> PrintDialogData
4019 __init__(self, PrintDialogData printData) -> PrintDialogData
4021 _windows_
.PrintDialogData_swiginit(self
,_windows_
.new_PrintDialogData(*args
))
4022 __swig_destroy__
= _windows_
.delete_PrintDialogData
4023 __del__
= lambda self
: None;
4024 def GetFromPage(*args
, **kwargs
):
4025 """GetFromPage(self) -> int"""
4026 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4028 def GetToPage(*args
, **kwargs
):
4029 """GetToPage(self) -> int"""
4030 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4032 def GetMinPage(*args
, **kwargs
):
4033 """GetMinPage(self) -> int"""
4034 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4036 def GetMaxPage(*args
, **kwargs
):
4037 """GetMaxPage(self) -> int"""
4038 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4040 def GetNoCopies(*args
, **kwargs
):
4041 """GetNoCopies(self) -> int"""
4042 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4044 def GetAllPages(*args
, **kwargs
):
4045 """GetAllPages(self) -> bool"""
4046 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4048 def GetSelection(*args
, **kwargs
):
4049 """GetSelection(self) -> bool"""
4050 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4052 def GetCollate(*args
, **kwargs
):
4053 """GetCollate(self) -> bool"""
4054 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4056 def GetPrintToFile(*args
, **kwargs
):
4057 """GetPrintToFile(self) -> bool"""
4058 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4060 def SetFromPage(*args
, **kwargs
):
4061 """SetFromPage(self, int v)"""
4062 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4064 def SetToPage(*args
, **kwargs
):
4065 """SetToPage(self, int v)"""
4066 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4068 def SetMinPage(*args
, **kwargs
):
4069 """SetMinPage(self, int v)"""
4070 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4072 def SetMaxPage(*args
, **kwargs
):
4073 """SetMaxPage(self, int v)"""
4074 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4076 def SetNoCopies(*args
, **kwargs
):
4077 """SetNoCopies(self, int v)"""
4078 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4080 def SetAllPages(*args
, **kwargs
):
4081 """SetAllPages(self, bool flag)"""
4082 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4084 def SetSelection(*args
, **kwargs
):
4085 """SetSelection(self, bool flag)"""
4086 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4088 def SetCollate(*args
, **kwargs
):
4089 """SetCollate(self, bool flag)"""
4090 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4092 def SetPrintToFile(*args
, **kwargs
):
4093 """SetPrintToFile(self, bool flag)"""
4094 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4096 def EnablePrintToFile(*args
, **kwargs
):
4097 """EnablePrintToFile(self, bool flag)"""
4098 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4100 def EnableSelection(*args
, **kwargs
):
4101 """EnableSelection(self, bool flag)"""
4102 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4104 def EnablePageNumbers(*args
, **kwargs
):
4105 """EnablePageNumbers(self, bool flag)"""
4106 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4108 def EnableHelp(*args
, **kwargs
):
4109 """EnableHelp(self, bool flag)"""
4110 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4112 def GetEnablePrintToFile(*args
, **kwargs
):
4113 """GetEnablePrintToFile(self) -> bool"""
4114 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4116 def GetEnableSelection(*args
, **kwargs
):
4117 """GetEnableSelection(self) -> bool"""
4118 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4120 def GetEnablePageNumbers(*args
, **kwargs
):
4121 """GetEnablePageNumbers(self) -> bool"""
4122 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4124 def GetEnableHelp(*args
, **kwargs
):
4125 """GetEnableHelp(self) -> bool"""
4126 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4128 def Ok(*args
, **kwargs
):
4129 """Ok(self) -> bool"""
4130 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4132 def GetPrintData(*args
, **kwargs
):
4133 """GetPrintData(self) -> PrintData"""
4134 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4136 def SetPrintData(*args
, **kwargs
):
4137 """SetPrintData(self, PrintData printData)"""
4138 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4140 def __nonzero__(self
): return self
.Ok()
4141 _windows_
.PrintDialogData_swigregister(PrintDialogData
)
4143 class PrintDialog(_core
.Object
):
4144 """Proxy of C++ PrintDialog class"""
4145 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4146 __repr__
= _swig_repr
4147 def __init__(self
, *args
, **kwargs
):
4148 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4149 _windows_
.PrintDialog_swiginit(self
,_windows_
.new_PrintDialog(*args
, **kwargs
))
4150 __swig_destroy__
= _windows_
.delete_PrintDialog
4151 __del__
= lambda self
: None;
4152 def ShowModal(*args
, **kwargs
):
4153 """ShowModal(self) -> int"""
4154 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4156 def GetPrintDialogData(*args
, **kwargs
):
4157 """GetPrintDialogData(self) -> PrintDialogData"""
4158 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4160 def GetPrintData(*args
, **kwargs
):
4161 """GetPrintData(self) -> PrintData"""
4162 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4164 def GetPrintDC(*args
, **kwargs
):
4165 """GetPrintDC(self) -> DC"""
4166 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4168 def Destroy(self
): pass
4169 _windows_
.PrintDialog_swigregister(PrintDialog
)
4171 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4172 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4173 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4174 class Printer(_core
.Object
):
4175 """Proxy of C++ Printer class"""
4176 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4177 __repr__
= _swig_repr
4178 def __init__(self
, *args
, **kwargs
):
4179 """__init__(self, PrintDialogData data=None) -> Printer"""
4180 _windows_
.Printer_swiginit(self
,_windows_
.new_Printer(*args
, **kwargs
))
4181 __swig_destroy__
= _windows_
.delete_Printer
4182 __del__
= lambda self
: None;
4183 def CreateAbortWindow(*args
, **kwargs
):
4184 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4185 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4187 def ReportError(*args
, **kwargs
):
4188 """ReportError(self, Window parent, Printout printout, String message)"""
4189 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4191 def Setup(*args
, **kwargs
):
4192 """Setup(self, Window parent) -> bool"""
4193 return _windows_
.Printer_Setup(*args
, **kwargs
)
4195 def Print(*args
, **kwargs
):
4196 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4197 return _windows_
.Printer_Print(*args
, **kwargs
)
4199 def PrintDialog(*args
, **kwargs
):
4200 """PrintDialog(self, Window parent) -> DC"""
4201 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4203 def GetPrintDialogData(*args
, **kwargs
):
4204 """GetPrintDialogData(self) -> PrintDialogData"""
4205 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4207 def GetAbort(*args
, **kwargs
):
4208 """GetAbort(self) -> bool"""
4209 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4211 def GetLastError(*args
, **kwargs
):
4212 """GetLastError() -> int"""
4213 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4215 GetLastError
= staticmethod(GetLastError
)
4216 _windows_
.Printer_swigregister(Printer
)
4218 def Printer_GetLastError(*args
):
4219 """Printer_GetLastError() -> int"""
4220 return _windows_
.Printer_GetLastError(*args
)
4222 class Printout(_core
.Object
):
4223 """Proxy of C++ Printout class"""
4224 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4225 __repr__
= _swig_repr
4226 def __init__(self
, *args
, **kwargs
):
4227 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4228 _windows_
.Printout_swiginit(self
,_windows_
.new_Printout(*args
, **kwargs
))
4229 self
._setCallbackInfo
(self
, Printout
)
4231 __swig_destroy__
= _windows_
.delete_Printout
4232 __del__
= lambda self
: None;
4233 def _setCallbackInfo(*args
, **kwargs
):
4234 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4235 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4237 def GetTitle(*args
, **kwargs
):
4238 """GetTitle(self) -> String"""
4239 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4241 def GetDC(*args
, **kwargs
):
4242 """GetDC(self) -> DC"""
4243 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4245 def SetDC(*args
, **kwargs
):
4246 """SetDC(self, DC dc)"""
4247 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4249 def SetPageSizePixels(*args
, **kwargs
):
4250 """SetPageSizePixels(self, int w, int h)"""
4251 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4253 def GetPageSizePixels(*args
, **kwargs
):
4254 """GetPageSizePixels() -> (w, h)"""
4255 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4257 def SetPageSizeMM(*args
, **kwargs
):
4258 """SetPageSizeMM(self, int w, int h)"""
4259 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4261 def GetPageSizeMM(*args
, **kwargs
):
4262 """GetPageSizeMM() -> (w, h)"""
4263 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4265 def SetPPIScreen(*args
, **kwargs
):
4266 """SetPPIScreen(self, int x, int y)"""
4267 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4269 def GetPPIScreen(*args
, **kwargs
):
4270 """GetPPIScreen() -> (x,y)"""
4271 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4273 def SetPPIPrinter(*args
, **kwargs
):
4274 """SetPPIPrinter(self, int x, int y)"""
4275 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4277 def GetPPIPrinter(*args
, **kwargs
):
4278 """GetPPIPrinter() -> (x,y)"""
4279 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4281 def IsPreview(*args
, **kwargs
):
4282 """IsPreview(self) -> bool"""
4283 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4285 def SetIsPreview(*args
, **kwargs
):
4286 """SetIsPreview(self, bool p)"""
4287 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4289 def OnBeginDocument(*args
, **kwargs
):
4290 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4291 return _windows_
.Printout_OnBeginDocument(*args
, **kwargs
)
4293 def OnEndDocument(*args
, **kwargs
):
4294 """OnEndDocument(self)"""
4295 return _windows_
.Printout_OnEndDocument(*args
, **kwargs
)
4297 def OnBeginPrinting(*args
, **kwargs
):
4298 """OnBeginPrinting(self)"""
4299 return _windows_
.Printout_OnBeginPrinting(*args
, **kwargs
)
4301 def OnEndPrinting(*args
, **kwargs
):
4302 """OnEndPrinting(self)"""
4303 return _windows_
.Printout_OnEndPrinting(*args
, **kwargs
)
4305 def OnPreparePrinting(*args
, **kwargs
):
4306 """OnPreparePrinting(self)"""
4307 return _windows_
.Printout_OnPreparePrinting(*args
, **kwargs
)
4309 def HasPage(*args
, **kwargs
):
4310 """HasPage(self, int page) -> bool"""
4311 return _windows_
.Printout_HasPage(*args
, **kwargs
)
4313 def GetPageInfo(*args
, **kwargs
):
4314 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4315 return _windows_
.Printout_GetPageInfo(*args
, **kwargs
)
4317 def base_OnBeginDocument(*args
, **kw
):
4318 return Printout
.OnBeginDocument(*args
, **kw
)
4319 base_OnBeginDocument
= wx
._deprecated
(base_OnBeginDocument
,
4320 "Please use Printout.OnBeginDocument instead.")
4322 def base_OnEndDocument(*args
, **kw
):
4323 return Printout
.OnEndDocument(*args
, **kw
)
4324 base_OnEndDocument
= wx
._deprecated
(base_OnEndDocument
,
4325 "Please use Printout.OnEndDocument instead.")
4327 def base_OnBeginPrinting(*args
, **kw
):
4328 return Printout
.OnBeginPrinting(*args
, **kw
)
4329 base_OnBeginPrinting
= wx
._deprecated
(base_OnBeginPrinting
,
4330 "Please use Printout.OnBeginPrinting instead.")
4332 def base_OnEndPrinting(*args
, **kw
):
4333 return Printout
.OnEndPrinting(*args
, **kw
)
4334 base_OnEndPrinting
= wx
._deprecated
(base_OnEndPrinting
,
4335 "Please use Printout.OnEndPrinting instead.")
4337 def base_OnPreparePrinting(*args
, **kw
):
4338 return Printout
.OnPreparePrinting(*args
, **kw
)
4339 base_OnPreparePrinting
= wx
._deprecated
(base_OnPreparePrinting
,
4340 "Please use Printout.OnPreparePrinting instead.")
4342 def base_GetPageInfo(*args
, **kw
):
4343 return Printout
.GetPageInfo(*args
, **kw
)
4344 base_GetPageInfo
= wx
._deprecated
(base_GetPageInfo
,
4345 "Please use Printout.GetPageInfo instead.")
4347 _windows_
.Printout_swigregister(Printout
)
4349 class PreviewCanvas(ScrolledWindow
):
4350 """Proxy of C++ PreviewCanvas class"""
4351 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4352 __repr__
= _swig_repr
4353 def __init__(self
, *args
, **kwargs
):
4355 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4356 Size size=DefaultSize, long style=0,
4357 String name=PreviewCanvasNameStr) -> PreviewCanvas
4359 _windows_
.PreviewCanvas_swiginit(self
,_windows_
.new_PreviewCanvas(*args
, **kwargs
))
4360 self
._setOORInfo
(self
)
4362 _windows_
.PreviewCanvas_swigregister(PreviewCanvas
)
4364 class PreviewFrame(Frame
):
4365 """Proxy of C++ PreviewFrame class"""
4366 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4367 __repr__
= _swig_repr
4368 def __init__(self
, *args
, **kwargs
):
4370 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4371 Size size=DefaultSize,
4372 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4374 _windows_
.PreviewFrame_swiginit(self
,_windows_
.new_PreviewFrame(*args
, **kwargs
))
4375 self
._setOORInfo
(self
)
4377 def Initialize(*args
, **kwargs
):
4378 """Initialize(self)"""
4379 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4381 def CreateControlBar(*args
, **kwargs
):
4382 """CreateControlBar(self)"""
4383 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4385 def CreateCanvas(*args
, **kwargs
):
4386 """CreateCanvas(self)"""
4387 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4389 def GetControlBar(*args
, **kwargs
):
4390 """GetControlBar(self) -> PreviewControlBar"""
4391 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4393 _windows_
.PreviewFrame_swigregister(PreviewFrame
)
4395 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4396 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4397 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4398 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4399 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4400 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4401 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4402 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4403 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4404 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4405 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4406 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4407 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4408 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4409 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4410 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4411 class PreviewControlBar(Panel
):
4412 """Proxy of C++ PreviewControlBar class"""
4413 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4414 __repr__
= _swig_repr
4415 def __init__(self
, *args
, **kwargs
):
4417 __init__(self, PrintPreview preview, long buttons, Window parent,
4418 Point pos=DefaultPosition, Size size=DefaultSize,
4419 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4421 _windows_
.PreviewControlBar_swiginit(self
,_windows_
.new_PreviewControlBar(*args
, **kwargs
))
4422 self
._setOORInfo
(self
)
4424 def GetZoomControl(*args
, **kwargs
):
4425 """GetZoomControl(self) -> int"""
4426 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4428 def SetZoomControl(*args
, **kwargs
):
4429 """SetZoomControl(self, int zoom)"""
4430 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4432 def GetPrintPreview(*args
, **kwargs
):
4433 """GetPrintPreview(self) -> PrintPreview"""
4434 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4436 def OnNext(*args
, **kwargs
):
4438 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4440 def OnPrevious(*args
, **kwargs
):
4441 """OnPrevious(self)"""
4442 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4444 def OnFirst(*args
, **kwargs
):
4446 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4448 def OnLast(*args
, **kwargs
):
4450 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4452 def OnGoto(*args
, **kwargs
):
4454 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4456 _windows_
.PreviewControlBar_swigregister(PreviewControlBar
)
4458 class PrintPreview(_core
.Object
):
4459 """Proxy of C++ PrintPreview class"""
4460 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4461 __repr__
= _swig_repr
4462 def __init__(self
, *args
):
4464 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4465 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4467 _windows_
.PrintPreview_swiginit(self
,_windows_
.new_PrintPreview(*args
))
4468 __swig_destroy__
= _windows_
.delete_PrintPreview
4469 __del__
= lambda self
: None;
4470 def SetCurrentPage(*args
, **kwargs
):
4471 """SetCurrentPage(self, int pageNum) -> bool"""
4472 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4474 def GetCurrentPage(*args
, **kwargs
):
4475 """GetCurrentPage(self) -> int"""
4476 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4478 def SetPrintout(*args
, **kwargs
):
4479 """SetPrintout(self, Printout printout)"""
4480 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4482 def GetPrintout(*args
, **kwargs
):
4483 """GetPrintout(self) -> Printout"""
4484 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4486 def GetPrintoutForPrinting(*args
, **kwargs
):
4487 """GetPrintoutForPrinting(self) -> Printout"""
4488 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4490 def SetFrame(*args
, **kwargs
):
4491 """SetFrame(self, Frame frame)"""
4492 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4494 def SetCanvas(*args
, **kwargs
):
4495 """SetCanvas(self, PreviewCanvas canvas)"""
4496 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4498 def GetFrame(*args
, **kwargs
):
4499 """GetFrame(self) -> Frame"""
4500 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4502 def GetCanvas(*args
, **kwargs
):
4503 """GetCanvas(self) -> PreviewCanvas"""
4504 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4506 def PaintPage(*args
, **kwargs
):
4507 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4508 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4510 def DrawBlankPage(*args
, **kwargs
):
4511 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4512 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4514 def RenderPage(*args
, **kwargs
):
4515 """RenderPage(self, int pageNum) -> bool"""
4516 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4518 def AdjustScrollbars(*args
, **kwargs
):
4519 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4520 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4522 def GetPrintDialogData(*args
, **kwargs
):
4523 """GetPrintDialogData(self) -> PrintDialogData"""
4524 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4526 def SetZoom(*args
, **kwargs
):
4527 """SetZoom(self, int percent)"""
4528 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4530 def GetZoom(*args
, **kwargs
):
4531 """GetZoom(self) -> int"""
4532 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4534 def GetMaxPage(*args
, **kwargs
):
4535 """GetMaxPage(self) -> int"""
4536 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4538 def GetMinPage(*args
, **kwargs
):
4539 """GetMinPage(self) -> int"""
4540 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4542 def Ok(*args
, **kwargs
):
4543 """Ok(self) -> bool"""
4544 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4546 def SetOk(*args
, **kwargs
):
4547 """SetOk(self, bool ok)"""
4548 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4550 def Print(*args
, **kwargs
):
4551 """Print(self, bool interactive) -> bool"""
4552 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4554 def DetermineScaling(*args
, **kwargs
):
4555 """DetermineScaling(self)"""
4556 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4558 def __nonzero__(self
): return self
.Ok()
4559 _windows_
.PrintPreview_swigregister(PrintPreview
)
4561 class PyPrintPreview(PrintPreview
):
4562 """Proxy of C++ PyPrintPreview class"""
4563 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4564 __repr__
= _swig_repr
4565 def __init__(self
, *args
):
4567 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4568 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4570 _windows_
.PyPrintPreview_swiginit(self
,_windows_
.new_PyPrintPreview(*args
))
4571 self
._setCallbackInfo
(self
, PyPrintPreview
)
4573 def _setCallbackInfo(*args
, **kwargs
):
4574 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4575 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4577 def base_SetCurrentPage(*args
, **kw
):
4578 return PyPrintPreview
.SetCurrentPage(*args
, **kw
)
4579 base_SetCurrentPage
= wx
._deprecated
(base_SetCurrentPage
,
4580 "Please use PyPrintPreview.SetCurrentPage instead.")
4582 def base_PaintPage(*args
, **kw
):
4583 return PyPrintPreview
.PaintPage(*args
, **kw
)
4584 base_PaintPage
= wx
._deprecated
(base_PaintPage
,
4585 "Please use PyPrintPreview.PaintPage instead.")
4587 def base_DrawBlankPage(*args
, **kw
):
4588 return PyPrintPreview
.DrawBlankPage(*args
, **kw
)
4589 base_DrawBlankPage
= wx
._deprecated
(base_DrawBlankPage
,
4590 "Please use PyPrintPreview.DrawBlankPage instead.")
4592 def base_RenderPage(*args
, **kw
):
4593 return PyPrintPreview
.RenderPage(*args
, **kw
)
4594 base_RenderPage
= wx
._deprecated
(base_RenderPage
,
4595 "Please use PyPrintPreview.RenderPage instead.")
4597 def base_SetZoom(*args
, **kw
):
4598 return PyPrintPreview
.SetZoom(*args
, **kw
)
4599 base_SetZoom
= wx
._deprecated
(base_SetZoom
,
4600 "Please use PyPrintPreview.SetZoom instead.")
4602 def base_Print(*args
, **kw
):
4603 return PyPrintPreview
.Print(*args
, **kw
)
4604 base_Print
= wx
._deprecated
(base_Print
,
4605 "Please use PyPrintPreview.Print instead.")
4607 def base_DetermineScaling(*args
, **kw
):
4608 return PyPrintPreview
.DetermineScaling(*args
, **kw
)
4609 base_DetermineScaling
= wx
._deprecated
(base_DetermineScaling
,
4610 "Please use PyPrintPreview.DetermineScaling instead.")
4612 _windows_
.PyPrintPreview_swigregister(PyPrintPreview
)
4614 class PyPreviewFrame(PreviewFrame
):
4615 """Proxy of C++ PyPreviewFrame class"""
4616 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4617 __repr__
= _swig_repr
4618 def __init__(self
, *args
, **kwargs
):
4620 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4621 Size size=DefaultSize,
4622 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4624 _windows_
.PyPreviewFrame_swiginit(self
,_windows_
.new_PyPreviewFrame(*args
, **kwargs
))
4625 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4627 def _setCallbackInfo(*args
, **kwargs
):
4628 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4629 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4631 def SetPreviewCanvas(*args
, **kwargs
):
4632 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4633 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4635 def SetControlBar(*args
, **kwargs
):
4636 """SetControlBar(self, PreviewControlBar bar)"""
4637 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4639 def Initialize(*args
, **kwargs
):
4640 """Initialize(self)"""
4641 return _windows_
.PyPreviewFrame_Initialize(*args
, **kwargs
)
4643 def CreateCanvas(*args
, **kwargs
):
4644 """CreateCanvas(self)"""
4645 return _windows_
.PyPreviewFrame_CreateCanvas(*args
, **kwargs
)
4647 def CreateControlBar(*args
, **kwargs
):
4648 """CreateControlBar(self)"""
4649 return _windows_
.PyPreviewFrame_CreateControlBar(*args
, **kwargs
)
4651 def base_Initialize(*args
, **kw
):
4652 return PyPreviewFrame
.Initialize(*args
, **kw
)
4653 base_Initialize
= wx
._deprecated
(base_Initialize
,
4654 "Please use PyPreviewFrame.Initialize instead.")
4656 def base_CreateCanvas(*args
, **kw
):
4657 return PyPreviewFrame
.CreateCanvas(*args
, **kw
)
4658 base_CreateCanvas
= wx
._deprecated
(base_CreateCanvas
,
4659 "Please use PyPreviewFrame.CreateCanvas instead.")
4661 def base_CreateControlBar(*args
, **kw
):
4662 return PyPreviewFrame
.CreateControlBar(*args
, **kw
)
4663 base_CreateControlBar
= wx
._deprecated
(base_CreateControlBar
,
4664 "Please use PyPreviewFrame.CreateControlBar instead.")
4666 _windows_
.PyPreviewFrame_swigregister(PyPreviewFrame
)
4668 class PyPreviewControlBar(PreviewControlBar
):
4669 """Proxy of C++ PyPreviewControlBar class"""
4670 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4671 __repr__
= _swig_repr
4672 def __init__(self
, *args
, **kwargs
):
4674 __init__(self, PrintPreview preview, long buttons, Window parent,
4675 Point pos=DefaultPosition, Size size=DefaultSize,
4676 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4678 _windows_
.PyPreviewControlBar_swiginit(self
,_windows_
.new_PyPreviewControlBar(*args
, **kwargs
))
4679 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4681 def _setCallbackInfo(*args
, **kwargs
):
4682 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4683 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4685 def SetPrintPreview(*args
, **kwargs
):
4686 """SetPrintPreview(self, PrintPreview preview)"""
4687 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4689 def CreateButtons(*args
, **kwargs
):
4690 """CreateButtons(self)"""
4691 return _windows_
.PyPreviewControlBar_CreateButtons(*args
, **kwargs
)
4693 def SetZoomControl(*args
, **kwargs
):
4694 """SetZoomControl(self, int zoom)"""
4695 return _windows_
.PyPreviewControlBar_SetZoomControl(*args
, **kwargs
)
4697 def base_CreateButtons(*args
, **kw
):
4698 return PreviewControlBar
.CreateButtons(*args
, **kw
)
4699 base_CreateButtons
= wx
._deprecated
(base_CreateButtons
,
4700 "Please use PreviewControlBar.CreateButtons instead.")
4702 def base_SetZoomControl(*args
, **kw
):
4703 return PreviewControlBar
.SetZoomControl(*args
, **kw
)
4704 base_SetZoomControl
= wx
._deprecated
(base_SetZoomControl
,
4705 "Please use PreviewControlBar.SetZoomControl instead.")
4707 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBar
)