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 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
332 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
333 USER_COLOURS
= _windows_
.USER_COLOURS
334 NO_3D
= _windows_
.NO_3D
335 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
336 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
337 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
338 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
339 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
340 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
341 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
342 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
343 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
344 class TopLevelWindow(_core
.Window
):
345 """Proxy of C++ TopLevelWindow class"""
346 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
347 def __init__(self
): raise AttributeError, "No constructor defined"
348 __repr__
= _swig_repr
349 def Maximize(*args
, **kwargs
):
350 """Maximize(self, bool maximize=True)"""
351 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
353 def Restore(*args
, **kwargs
):
355 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
357 def Iconize(*args
, **kwargs
):
358 """Iconize(self, bool iconize=True)"""
359 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
361 def IsMaximized(*args
, **kwargs
):
362 """IsMaximized(self) -> bool"""
363 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
365 def IsAlwaysMaximized(*args
, **kwargs
):
366 """IsAlwaysMaximized(self) -> bool"""
367 return _windows_
.TopLevelWindow_IsAlwaysMaximized(*args
, **kwargs
)
369 def IsIconized(*args
, **kwargs
):
370 """IsIconized(self) -> bool"""
371 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
373 def GetIcon(*args
, **kwargs
):
374 """GetIcon(self) -> Icon"""
375 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
377 def SetIcon(*args
, **kwargs
):
378 """SetIcon(self, Icon icon)"""
379 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
381 def SetIcons(*args
, **kwargs
):
382 """SetIcons(self, wxIconBundle icons)"""
383 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
385 def ShowFullScreen(*args
, **kwargs
):
386 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
387 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
389 def IsFullScreen(*args
, **kwargs
):
390 """IsFullScreen(self) -> bool"""
391 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
393 def SetTitle(*args
, **kwargs
):
394 """SetTitle(self, String title)"""
395 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
397 def GetTitle(*args
, **kwargs
):
398 """GetTitle(self) -> String"""
399 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
401 def SetShape(*args
, **kwargs
):
402 """SetShape(self, Region region) -> bool"""
403 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
405 def RequestUserAttention(*args
, **kwargs
):
406 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
407 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
409 def IsActive(*args
, **kwargs
):
410 """IsActive(self) -> bool"""
411 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
413 def MacSetMetalAppearance(*args
, **kwargs
):
414 """MacSetMetalAppearance(self, bool on)"""
415 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
417 def MacGetMetalAppearance(*args
, **kwargs
):
418 """MacGetMetalAppearance(self) -> bool"""
419 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
421 def CenterOnScreen(*args
, **kwargs
):
423 CenterOnScreen(self, int dir=BOTH)
425 Center the window on screen
427 return _windows_
.TopLevelWindow_CenterOnScreen(*args
, **kwargs
)
429 CentreOnScreen
= CenterOnScreen
430 def EnableCloseButton(*args
, **kwargs
):
431 """EnableCloseButton(self, bool enable=True) -> bool"""
432 return _windows_
.TopLevelWindow_EnableCloseButton(*args
, **kwargs
)
434 def SetTransparent(*args
, **kwargs
):
435 """SetTransparent(self, byte alpha) -> bool"""
436 return _windows_
.TopLevelWindow_SetTransparent(*args
, **kwargs
)
438 def CanSetTransparent(*args
, **kwargs
):
439 """CanSetTransparent(self) -> bool"""
440 return _windows_
.TopLevelWindow_CanSetTransparent(*args
, **kwargs
)
442 _windows_
.TopLevelWindow_swigregister(TopLevelWindow
)
443 cvar
= _windows_
.cvar
444 FrameNameStr
= cvar
.FrameNameStr
445 DialogNameStr
= cvar
.DialogNameStr
446 StatusLineNameStr
= cvar
.StatusLineNameStr
447 ToolBarNameStr
= cvar
.ToolBarNameStr
449 #---------------------------------------------------------------------------
451 class Frame(TopLevelWindow
):
452 """Proxy of C++ Frame class"""
453 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
454 __repr__
= _swig_repr
455 def __init__(self
, *args
, **kwargs
):
457 __init__(self, Window parent, int id=-1, String title=EmptyString,
458 Point pos=DefaultPosition, Size size=DefaultSize,
459 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
461 _windows_
.Frame_swiginit(self
,_windows_
.new_Frame(*args
, **kwargs
))
462 self
._setOORInfo
(self
)
464 def Create(*args
, **kwargs
):
466 Create(self, Window parent, int id=-1, String title=EmptyString,
467 Point pos=DefaultPosition, Size size=DefaultSize,
468 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
470 return _windows_
.Frame_Create(*args
, **kwargs
)
472 def SendSizeEvent(*args
, **kwargs
):
473 """SendSizeEvent(self)"""
474 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
476 def SetMenuBar(*args
, **kwargs
):
477 """SetMenuBar(self, MenuBar menubar)"""
478 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
480 def GetMenuBar(*args
, **kwargs
):
481 """GetMenuBar(self) -> MenuBar"""
482 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
484 def ProcessCommand(*args
, **kwargs
):
485 """ProcessCommand(self, int winid) -> bool"""
486 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
488 Command
= ProcessCommand
489 def CreateStatusBar(*args
, **kwargs
):
491 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
492 String name=StatusLineNameStr) -> StatusBar
494 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
496 def GetStatusBar(*args
, **kwargs
):
497 """GetStatusBar(self) -> StatusBar"""
498 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
500 def SetStatusBar(*args
, **kwargs
):
501 """SetStatusBar(self, StatusBar statBar)"""
502 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
504 def SetStatusText(*args
, **kwargs
):
505 """SetStatusText(self, String text, int number=0)"""
506 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
508 def SetStatusWidths(*args
, **kwargs
):
509 """SetStatusWidths(self, int widths)"""
510 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
512 def PushStatusText(*args
, **kwargs
):
513 """PushStatusText(self, String text, int number=0)"""
514 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
516 def PopStatusText(*args
, **kwargs
):
517 """PopStatusText(self, int number=0)"""
518 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
520 def SetStatusBarPane(*args
, **kwargs
):
521 """SetStatusBarPane(self, int n)"""
522 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
524 def GetStatusBarPane(*args
, **kwargs
):
525 """GetStatusBarPane(self) -> int"""
526 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
528 def CreateToolBar(*args
, **kwargs
):
529 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
530 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
532 def GetToolBar(*args
, **kwargs
):
533 """GetToolBar(self) -> wxToolBar"""
534 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
536 def SetToolBar(*args
, **kwargs
):
537 """SetToolBar(self, wxToolBar toolbar)"""
538 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
540 def DoGiveHelp(*args
, **kwargs
):
541 """DoGiveHelp(self, String text, bool show)"""
542 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
544 def DoMenuUpdates(*args
, **kwargs
):
545 """DoMenuUpdates(self, Menu menu=None)"""
546 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
548 def GetClassDefaultAttributes(*args
, **kwargs
):
550 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
552 Get the default attributes for this class. This is useful if you want
553 to use the same font or colour in your own control as in a standard
554 control -- which is a much better idea than hard coding specific
555 colours or fonts which might look completely out of place on the
556 user's system, especially if it uses themes.
558 The variant parameter is only relevant under Mac currently and is
559 ignore under other platforms. Under Mac, it will change the size of
560 the returned font. See `wx.Window.SetWindowVariant` for more about
563 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
565 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
566 _windows_
.Frame_swigregister(Frame
)
568 def PreFrame(*args
, **kwargs
):
569 """PreFrame() -> Frame"""
570 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
573 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
575 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
577 Get the default attributes for this class. This is useful if you want
578 to use the same font or colour in your own control as in a standard
579 control -- which is a much better idea than hard coding specific
580 colours or fonts which might look completely out of place on the
581 user's system, especially if it uses themes.
583 The variant parameter is only relevant under Mac currently and is
584 ignore under other platforms. Under Mac, it will change the size of
585 the returned font. See `wx.Window.SetWindowVariant` for more about
588 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
590 #---------------------------------------------------------------------------
592 class Dialog(TopLevelWindow
):
593 """Proxy of C++ Dialog class"""
594 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
595 __repr__
= _swig_repr
596 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
597 def __init__(self
, *args
, **kwargs
):
599 __init__(self, Window parent, int id=-1, String title=EmptyString,
600 Point pos=DefaultPosition, Size size=DefaultSize,
601 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
603 _windows_
.Dialog_swiginit(self
,_windows_
.new_Dialog(*args
, **kwargs
))
604 self
._setOORInfo
(self
)
606 def Create(*args
, **kwargs
):
608 Create(self, Window parent, int id=-1, String title=EmptyString,
609 Point pos=DefaultPosition, Size size=DefaultSize,
610 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
612 return _windows_
.Dialog_Create(*args
, **kwargs
)
614 def SetReturnCode(*args
, **kwargs
):
615 """SetReturnCode(self, int returnCode)"""
616 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
618 def GetReturnCode(*args
, **kwargs
):
619 """GetReturnCode(self) -> int"""
620 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
622 def SetAffirmativeId(*args
, **kwargs
):
623 """SetAffirmativeId(self, int affirmativeId)"""
624 return _windows_
.Dialog_SetAffirmativeId(*args
, **kwargs
)
626 def GetAffirmativeId(*args
, **kwargs
):
627 """GetAffirmativeId(self) -> int"""
628 return _windows_
.Dialog_GetAffirmativeId(*args
, **kwargs
)
630 def SetEscapeId(*args
, **kwargs
):
631 """SetEscapeId(self, int escapeId)"""
632 return _windows_
.Dialog_SetEscapeId(*args
, **kwargs
)
634 def GetEscapeId(*args
, **kwargs
):
635 """GetEscapeId(self) -> int"""
636 return _windows_
.Dialog_GetEscapeId(*args
, **kwargs
)
638 def CreateTextSizer(*args
, **kwargs
):
639 """CreateTextSizer(self, String message) -> Sizer"""
640 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
642 def CreateButtonSizer(*args
, **kwargs
):
643 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
644 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
646 def CreateStdDialogButtonSizer(*args
, **kwargs
):
647 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
648 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
650 def IsModal(*args
, **kwargs
):
651 """IsModal(self) -> bool"""
652 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
654 def ShowModal(*args
, **kwargs
):
655 """ShowModal(self) -> int"""
656 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
658 def EndModal(*args
, **kwargs
):
659 """EndModal(self, int retCode)"""
660 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
662 def GetClassDefaultAttributes(*args
, **kwargs
):
664 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
666 Get the default attributes for this class. This is useful if you want
667 to use the same font or colour in your own control as in a standard
668 control -- which is a much better idea than hard coding specific
669 colours or fonts which might look completely out of place on the
670 user's system, especially if it uses themes.
672 The variant parameter is only relevant under Mac currently and is
673 ignore under other platforms. Under Mac, it will change the size of
674 the returned font. See `wx.Window.SetWindowVariant` for more about
677 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
679 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
680 _windows_
.Dialog_swigregister(Dialog
)
682 def PreDialog(*args
, **kwargs
):
683 """PreDialog() -> Dialog"""
684 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
687 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
689 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
691 Get the default attributes for this class. This is useful if you want
692 to use the same font or colour in your own control as in a standard
693 control -- which is a much better idea than hard coding specific
694 colours or fonts which might look completely out of place on the
695 user's system, especially if it uses themes.
697 The variant parameter is only relevant under Mac currently and is
698 ignore under other platforms. Under Mac, it will change the size of
699 the returned font. See `wx.Window.SetWindowVariant` for more about
702 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
704 #---------------------------------------------------------------------------
706 class MiniFrame(Frame
):
707 """Proxy of C++ MiniFrame class"""
708 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
709 __repr__
= _swig_repr
710 def __init__(self
, *args
, **kwargs
):
712 __init__(self, Window parent, int id=-1, String title=EmptyString,
713 Point pos=DefaultPosition, Size size=DefaultSize,
714 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
716 _windows_
.MiniFrame_swiginit(self
,_windows_
.new_MiniFrame(*args
, **kwargs
))
717 self
._setOORInfo
(self
)
719 def Create(*args
, **kwargs
):
721 Create(self, Window parent, int id=-1, String title=EmptyString,
722 Point pos=DefaultPosition, Size size=DefaultSize,
723 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
725 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
727 _windows_
.MiniFrame_swigregister(MiniFrame
)
729 def PreMiniFrame(*args
, **kwargs
):
730 """PreMiniFrame() -> MiniFrame"""
731 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
734 #---------------------------------------------------------------------------
736 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
737 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
738 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
739 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
740 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
741 class SplashScreenWindow(_core
.Window
):
742 """Proxy of C++ SplashScreenWindow class"""
743 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
744 __repr__
= _swig_repr
745 def __init__(self
, *args
, **kwargs
):
747 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
748 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
750 _windows_
.SplashScreenWindow_swiginit(self
,_windows_
.new_SplashScreenWindow(*args
, **kwargs
))
751 self
._setOORInfo
(self
)
753 def SetBitmap(*args
, **kwargs
):
754 """SetBitmap(self, Bitmap bitmap)"""
755 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
757 def GetBitmap(*args
, **kwargs
):
758 """GetBitmap(self) -> Bitmap"""
759 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
761 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindow
)
763 class SplashScreen(Frame
):
764 """Proxy of C++ SplashScreen class"""
765 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
766 __repr__
= _swig_repr
767 def __init__(self
, *args
, **kwargs
):
769 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
770 Window parent, int id=-1, Point pos=DefaultPosition,
771 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
773 _windows_
.SplashScreen_swiginit(self
,_windows_
.new_SplashScreen(*args
, **kwargs
))
774 self
._setOORInfo
(self
)
776 def GetSplashStyle(*args
, **kwargs
):
777 """GetSplashStyle(self) -> long"""
778 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
780 def GetSplashWindow(*args
, **kwargs
):
781 """GetSplashWindow(self) -> SplashScreenWindow"""
782 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
784 def GetTimeout(*args
, **kwargs
):
785 """GetTimeout(self) -> int"""
786 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
788 _windows_
.SplashScreen_swigregister(SplashScreen
)
790 #---------------------------------------------------------------------------
792 SB_NORMAL
= _windows_
.SB_NORMAL
793 SB_FLAT
= _windows_
.SB_FLAT
794 SB_RAISED
= _windows_
.SB_RAISED
795 class StatusBar(_core
.Window
):
796 """Proxy of C++ StatusBar class"""
797 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
798 __repr__
= _swig_repr
799 def __init__(self
, *args
, **kwargs
):
801 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
802 String name=StatusLineNameStr) -> StatusBar
804 _windows_
.StatusBar_swiginit(self
,_windows_
.new_StatusBar(*args
, **kwargs
))
805 self
._setOORInfo
(self
)
807 def Create(*args
, **kwargs
):
808 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
809 return _windows_
.StatusBar_Create(*args
, **kwargs
)
811 def SetFieldsCount(*args
, **kwargs
):
812 """SetFieldsCount(self, int number=1)"""
813 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
815 def GetFieldsCount(*args
, **kwargs
):
816 """GetFieldsCount(self) -> int"""
817 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
819 def SetStatusText(*args
, **kwargs
):
820 """SetStatusText(self, String text, int number=0)"""
821 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
823 def GetStatusText(*args
, **kwargs
):
824 """GetStatusText(self, int number=0) -> String"""
825 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
827 def PushStatusText(*args
, **kwargs
):
828 """PushStatusText(self, String text, int number=0)"""
829 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
831 def PopStatusText(*args
, **kwargs
):
832 """PopStatusText(self, int number=0)"""
833 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
835 def SetStatusWidths(*args
, **kwargs
):
836 """SetStatusWidths(self, int widths)"""
837 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
839 def SetStatusStyles(*args
, **kwargs
):
840 """SetStatusStyles(self, int styles)"""
841 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
843 def GetFieldRect(*args
, **kwargs
):
844 """GetFieldRect(self, int i) -> Rect"""
845 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
847 def SetMinHeight(*args
, **kwargs
):
848 """SetMinHeight(self, int height)"""
849 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
851 def GetBorderX(*args
, **kwargs
):
852 """GetBorderX(self) -> int"""
853 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
855 def GetBorderY(*args
, **kwargs
):
856 """GetBorderY(self) -> int"""
857 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
859 def GetClassDefaultAttributes(*args
, **kwargs
):
861 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
863 Get the default attributes for this class. This is useful if you want
864 to use the same font or colour in your own control as in a standard
865 control -- which is a much better idea than hard coding specific
866 colours or fonts which might look completely out of place on the
867 user's system, especially if it uses themes.
869 The variant parameter is only relevant under Mac currently and is
870 ignore under other platforms. Under Mac, it will change the size of
871 the returned font. See `wx.Window.SetWindowVariant` for more about
874 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
876 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
877 _windows_
.StatusBar_swigregister(StatusBar
)
879 def PreStatusBar(*args
, **kwargs
):
880 """PreStatusBar() -> StatusBar"""
881 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
884 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
886 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
888 Get the default attributes for this class. This is useful if you want
889 to use the same font or colour in your own control as in a standard
890 control -- which is a much better idea than hard coding specific
891 colours or fonts which might look completely out of place on the
892 user's system, especially if it uses themes.
894 The variant parameter is only relevant under Mac currently and is
895 ignore under other platforms. Under Mac, it will change the size of
896 the returned font. See `wx.Window.SetWindowVariant` for more about
899 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
901 #---------------------------------------------------------------------------
903 SP_NOBORDER
= _windows_
.SP_NOBORDER
904 SP_NOSASH
= _windows_
.SP_NOSASH
905 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
906 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
907 SP_3DSASH
= _windows_
.SP_3DSASH
908 SP_3DBORDER
= _windows_
.SP_3DBORDER
909 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
910 SP_BORDER
= _windows_
.SP_BORDER
911 SP_3D
= _windows_
.SP_3D
912 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
913 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
914 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
915 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
916 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
917 class SplitterWindow(_core
.Window
):
919 wx.SplitterWindow manages up to two subwindows or panes, with an
920 optional vertical or horizontal split which can be used with the mouse
923 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
924 __repr__
= _swig_repr
925 def __init__(self
, *args
, **kwargs
):
927 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
928 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
930 Constructor. Creates and shows a SplitterWindow.
932 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
933 _windows_
.SplitterWindow_swiginit(self
,_windows_
.new_SplitterWindow(*args
, **kwargs
))
934 self
._setOORInfo
(self
)
936 def Create(*args
, **kwargs
):
938 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
939 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
941 Create the GUI part of the SplitterWindow for the 2-phase create.
943 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
945 def GetWindow1(*args
, **kwargs
):
947 GetWindow1(self) -> Window
949 Gets the only or left/top pane.
951 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
953 def GetWindow2(*args
, **kwargs
):
955 GetWindow2(self) -> Window
957 Gets the right/bottom pane.
959 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
961 def SetSplitMode(*args
, **kwargs
):
963 SetSplitMode(self, int mode)
965 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
966 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
969 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
971 def GetSplitMode(*args
, **kwargs
):
973 GetSplitMode(self) -> int
977 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
979 def Initialize(*args
, **kwargs
):
981 Initialize(self, Window window)
983 Initializes the splitter window to have one pane. This should be
984 called if you wish to initially view only a single pane in the
985 splitter window. The child window is shown if it is currently hidden.
987 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
989 def SplitVertically(*args
, **kwargs
):
991 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
993 Initializes the left and right panes of the splitter window. The
994 child windows are shown if they are currently hidden.
996 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
998 def SplitHorizontally(*args
, **kwargs
):
1000 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1002 Initializes the top and bottom panes of the splitter window. The
1003 child windows are shown if they are currently hidden.
1005 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1007 def Unsplit(*args
, **kwargs
):
1009 Unsplit(self, Window toRemove=None) -> bool
1011 Unsplits the window. Pass the pane to remove, or None to remove the
1012 right or bottom pane. Returns True if successful, False otherwise (the
1013 window was not split).
1015 This function will not actually delete the pane being
1016 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1017 for the desired behaviour. By default, the pane being
1018 removed is only hidden.
1020 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1022 def ReplaceWindow(*args
, **kwargs
):
1024 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1026 This function replaces one of the windows managed by the
1027 SplitterWindow with another one. It is in general better to use it
1028 instead of calling Unsplit() and then resplitting the window back
1029 because it will provoke much less flicker. It is valid to call this
1030 function whether the splitter has two windows or only one.
1032 Both parameters should be non-None and winOld must specify one of the
1033 windows managed by the splitter. If the parameters are incorrect or
1034 the window couldn't be replaced, False is returned. Otherwise the
1035 function will return True, but please notice that it will not Destroy
1036 the replaced window and you may wish to do it yourself.
1038 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1040 def UpdateSize(*args
, **kwargs
):
1044 Causes any pending sizing of the sash and child panes to take place
1047 Such resizing normally takes place in idle time, in order to wait for
1048 layout to be completed. However, this can cause unacceptable flicker
1049 as the panes are resized after the window has been shown. To work
1050 around this, you can perform window layout (for example by sending a
1051 size event to the parent window), and then call this function, before
1052 showing the top-level window.
1054 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1056 def IsSplit(*args
, **kwargs
):
1058 IsSplit(self) -> bool
1060 Is the window split?
1062 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1064 def SetSashSize(*args
, **kwargs
):
1066 SetSashSize(self, int width)
1070 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1072 def SetBorderSize(*args
, **kwargs
):
1074 SetBorderSize(self, int width)
1076 Sets the border size. Currently a NOP.
1078 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1080 def GetSashSize(*args
, **kwargs
):
1082 GetSashSize(self) -> int
1086 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1088 def GetBorderSize(*args
, **kwargs
):
1090 GetBorderSize(self) -> int
1092 Gets the border size
1094 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1096 def SetSashPosition(*args
, **kwargs
):
1098 SetSashPosition(self, int position, bool redraw=True)
1100 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1101 are resized and the sash and border are redrawn.
1103 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1105 def GetSashPosition(*args
, **kwargs
):
1107 GetSashPosition(self) -> int
1109 Returns the surrent sash position.
1111 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1113 def SetSashGravity(*args
, **kwargs
):
1115 SetSashGravity(self, double gravity)
1117 Set the sash gravity. Gravity is a floating-point factor between 0.0
1118 and 1.0 which controls position of sash while resizing the
1119 `wx.SplitterWindow`. The gravity specifies how much the left/top
1120 window will grow while resizing.
1122 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1124 def GetSashGravity(*args
, **kwargs
):
1126 GetSashGravity(self) -> double
1128 Gets the sash gravity.
1130 :see: `SetSashGravity`
1133 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1135 def SetMinimumPaneSize(*args
, **kwargs
):
1137 SetMinimumPaneSize(self, int min)
1139 Sets the minimum pane size in pixels.
1141 The default minimum pane size is zero, which means that either pane
1142 can be reduced to zero by dragging the sash, thus removing one of the
1143 panes. To prevent this behaviour (and veto out-of-range sash
1144 dragging), set a minimum size, for example 20 pixels. If the
1145 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1146 the window may be unsplit even if minimum size is non-zero.
1148 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1150 def GetMinimumPaneSize(*args
, **kwargs
):
1152 GetMinimumPaneSize(self) -> int
1154 Gets the minimum pane size in pixels.
1156 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1158 def SashHitTest(*args
, **kwargs
):
1160 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1162 Tests for x, y over the sash
1164 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1166 def SizeWindows(*args
, **kwargs
):
1172 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1174 def SetNeedUpdating(*args
, **kwargs
):
1175 """SetNeedUpdating(self, bool needUpdating)"""
1176 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1178 def GetNeedUpdating(*args
, **kwargs
):
1179 """GetNeedUpdating(self) -> bool"""
1180 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1182 def GetClassDefaultAttributes(*args
, **kwargs
):
1184 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1186 Get the default attributes for this class. This is useful if you want
1187 to use the same font or colour in your own control as in a standard
1188 control -- which is a much better idea than hard coding specific
1189 colours or fonts which might look completely out of place on the
1190 user's system, especially if it uses themes.
1192 The variant parameter is only relevant under Mac currently and is
1193 ignore under other platforms. Under Mac, it will change the size of
1194 the returned font. See `wx.Window.SetWindowVariant` for more about
1197 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1199 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1200 _windows_
.SplitterWindow_swigregister(SplitterWindow
)
1201 SplitterNameStr
= cvar
.SplitterNameStr
1203 def PreSplitterWindow(*args
, **kwargs
):
1205 PreSplitterWindow() -> SplitterWindow
1207 Precreate a SplitterWindow for 2-phase creation.
1209 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1212 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1214 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1216 Get the default attributes for this class. This is useful if you want
1217 to use the same font or colour in your own control as in a standard
1218 control -- which is a much better idea than hard coding specific
1219 colours or fonts which might look completely out of place on the
1220 user's system, especially if it uses themes.
1222 The variant parameter is only relevant under Mac currently and is
1223 ignore under other platforms. Under Mac, it will change the size of
1224 the returned font. See `wx.Window.SetWindowVariant` for more about
1227 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1229 class SplitterEvent(_core
.NotifyEvent
):
1230 """This class represents the events generated by a splitter control."""
1231 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1232 __repr__
= _swig_repr
1233 def __init__(self
, *args
, **kwargs
):
1235 __init__(self, EventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1237 This class represents the events generated by a splitter control.
1239 _windows_
.SplitterEvent_swiginit(self
,_windows_
.new_SplitterEvent(*args
, **kwargs
))
1240 def SetSashPosition(*args
, **kwargs
):
1242 SetSashPosition(self, int pos)
1244 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1245 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1246 events, sets the the new sash position. In the case of _CHANGING
1247 events, sets the new tracking bar position so visual feedback during
1248 dragging will represent that change that will actually take place. Set
1249 to -1 from the event handler code to prevent repositioning.
1251 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1253 def GetSashPosition(*args
, **kwargs
):
1255 GetSashPosition(self) -> int
1257 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1258 and EVT_SPLITTER_SASH_POS_CHANGED events.
1260 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1262 def GetWindowBeingRemoved(*args
, **kwargs
):
1264 GetWindowBeingRemoved(self) -> Window
1266 Returns a pointer to the window being removed when a splitter window
1269 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1271 def GetX(*args
, **kwargs
):
1275 Returns the x coordinate of the double-click point in a
1276 EVT_SPLITTER_DCLICK event.
1278 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1280 def GetY(*args
, **kwargs
):
1284 Returns the y coordinate of the double-click point in a
1285 EVT_SPLITTER_DCLICK event.
1287 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1289 _windows_
.SplitterEvent_swigregister(SplitterEvent
)
1291 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1292 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1293 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1294 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1295 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1296 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1297 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1298 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1299 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1301 #---------------------------------------------------------------------------
1303 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1304 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1305 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1306 SW_NOBORDER
= _windows_
.SW_NOBORDER
1307 SW_BORDER
= _windows_
.SW_BORDER
1308 SW_3DSASH
= _windows_
.SW_3DSASH
1309 SW_3DBORDER
= _windows_
.SW_3DBORDER
1310 SW_3D
= _windows_
.SW_3D
1311 SASH_TOP
= _windows_
.SASH_TOP
1312 SASH_RIGHT
= _windows_
.SASH_RIGHT
1313 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1314 SASH_LEFT
= _windows_
.SASH_LEFT
1315 SASH_NONE
= _windows_
.SASH_NONE
1316 class SashWindow(_core
.Window
):
1317 """Proxy of C++ SashWindow class"""
1318 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1319 __repr__
= _swig_repr
1320 def __init__(self
, *args
, **kwargs
):
1322 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1323 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1324 String name=SashNameStr) -> SashWindow
1326 _windows_
.SashWindow_swiginit(self
,_windows_
.new_SashWindow(*args
, **kwargs
))
1327 self
._setOORInfo
(self
)
1329 def Create(*args
, **kwargs
):
1331 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1332 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1333 String name=SashNameStr) -> bool
1335 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1337 def SetSashVisible(*args
, **kwargs
):
1338 """SetSashVisible(self, int edge, bool sash)"""
1339 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1341 def GetSashVisible(*args
, **kwargs
):
1342 """GetSashVisible(self, int edge) -> bool"""
1343 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1345 def SetSashBorder(*args
, **kwargs
):
1346 """SetSashBorder(self, int edge, bool border)"""
1347 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1349 def HasBorder(*args
, **kwargs
):
1350 """HasBorder(self, int edge) -> bool"""
1351 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1353 def GetEdgeMargin(*args
, **kwargs
):
1354 """GetEdgeMargin(self, int edge) -> int"""
1355 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1357 def SetDefaultBorderSize(*args
, **kwargs
):
1358 """SetDefaultBorderSize(self, int width)"""
1359 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1361 def GetDefaultBorderSize(*args
, **kwargs
):
1362 """GetDefaultBorderSize(self) -> int"""
1363 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1365 def SetExtraBorderSize(*args
, **kwargs
):
1366 """SetExtraBorderSize(self, int width)"""
1367 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1369 def GetExtraBorderSize(*args
, **kwargs
):
1370 """GetExtraBorderSize(self) -> int"""
1371 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1373 def SetMinimumSizeX(*args
, **kwargs
):
1374 """SetMinimumSizeX(self, int min)"""
1375 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1377 def SetMinimumSizeY(*args
, **kwargs
):
1378 """SetMinimumSizeY(self, int min)"""
1379 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1381 def GetMinimumSizeX(*args
, **kwargs
):
1382 """GetMinimumSizeX(self) -> int"""
1383 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1385 def GetMinimumSizeY(*args
, **kwargs
):
1386 """GetMinimumSizeY(self) -> int"""
1387 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1389 def SetMaximumSizeX(*args
, **kwargs
):
1390 """SetMaximumSizeX(self, int max)"""
1391 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1393 def SetMaximumSizeY(*args
, **kwargs
):
1394 """SetMaximumSizeY(self, int max)"""
1395 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1397 def GetMaximumSizeX(*args
, **kwargs
):
1398 """GetMaximumSizeX(self) -> int"""
1399 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1401 def GetMaximumSizeY(*args
, **kwargs
):
1402 """GetMaximumSizeY(self) -> int"""
1403 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1405 def SashHitTest(*args
, **kwargs
):
1406 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1407 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1409 def SizeWindows(*args
, **kwargs
):
1410 """SizeWindows(self)"""
1411 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1413 _windows_
.SashWindow_swigregister(SashWindow
)
1414 SashNameStr
= cvar
.SashNameStr
1415 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1417 def PreSashWindow(*args
, **kwargs
):
1418 """PreSashWindow() -> SashWindow"""
1419 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1422 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1423 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1424 class SashEvent(_core
.CommandEvent
):
1425 """Proxy of C++ SashEvent class"""
1426 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1427 __repr__
= _swig_repr
1428 def __init__(self
, *args
, **kwargs
):
1429 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1430 _windows_
.SashEvent_swiginit(self
,_windows_
.new_SashEvent(*args
, **kwargs
))
1431 def SetEdge(*args
, **kwargs
):
1432 """SetEdge(self, int edge)"""
1433 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1435 def GetEdge(*args
, **kwargs
):
1436 """GetEdge(self) -> int"""
1437 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1439 def SetDragRect(*args
, **kwargs
):
1440 """SetDragRect(self, Rect rect)"""
1441 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1443 def GetDragRect(*args
, **kwargs
):
1444 """GetDragRect(self) -> Rect"""
1445 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1447 def SetDragStatus(*args
, **kwargs
):
1448 """SetDragStatus(self, int status)"""
1449 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1451 def GetDragStatus(*args
, **kwargs
):
1452 """GetDragStatus(self) -> int"""
1453 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1455 _windows_
.SashEvent_swigregister(SashEvent
)
1457 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1458 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1459 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1461 #---------------------------------------------------------------------------
1463 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1464 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1465 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1466 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1467 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1468 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1469 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1470 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1471 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1472 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1473 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1474 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1475 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1476 class QueryLayoutInfoEvent(_core
.Event
):
1477 """Proxy of C++ QueryLayoutInfoEvent class"""
1478 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1479 __repr__
= _swig_repr
1480 def __init__(self
, *args
, **kwargs
):
1481 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1482 _windows_
.QueryLayoutInfoEvent_swiginit(self
,_windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
))
1483 def SetRequestedLength(*args
, **kwargs
):
1484 """SetRequestedLength(self, int length)"""
1485 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1487 def GetRequestedLength(*args
, **kwargs
):
1488 """GetRequestedLength(self) -> int"""
1489 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1491 def SetFlags(*args
, **kwargs
):
1492 """SetFlags(self, int flags)"""
1493 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1495 def GetFlags(*args
, **kwargs
):
1496 """GetFlags(self) -> int"""
1497 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1499 def SetSize(*args
, **kwargs
):
1500 """SetSize(self, Size size)"""
1501 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1503 def GetSize(*args
, **kwargs
):
1504 """GetSize(self) -> Size"""
1505 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1507 def SetOrientation(*args
, **kwargs
):
1508 """SetOrientation(self, int orient)"""
1509 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1511 def GetOrientation(*args
, **kwargs
):
1512 """GetOrientation(self) -> int"""
1513 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1515 def SetAlignment(*args
, **kwargs
):
1516 """SetAlignment(self, int align)"""
1517 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1519 def GetAlignment(*args
, **kwargs
):
1520 """GetAlignment(self) -> int"""
1521 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1523 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent
)
1525 class CalculateLayoutEvent(_core
.Event
):
1526 """Proxy of C++ CalculateLayoutEvent class"""
1527 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1528 __repr__
= _swig_repr
1529 def __init__(self
, *args
, **kwargs
):
1530 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1531 _windows_
.CalculateLayoutEvent_swiginit(self
,_windows_
.new_CalculateLayoutEvent(*args
, **kwargs
))
1532 def SetFlags(*args
, **kwargs
):
1533 """SetFlags(self, int flags)"""
1534 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1536 def GetFlags(*args
, **kwargs
):
1537 """GetFlags(self) -> int"""
1538 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1540 def SetRect(*args
, **kwargs
):
1541 """SetRect(self, Rect rect)"""
1542 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1544 def GetRect(*args
, **kwargs
):
1545 """GetRect(self) -> Rect"""
1546 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1548 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEvent
)
1550 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1551 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1553 class SashLayoutWindow(SashWindow
):
1554 """Proxy of C++ SashLayoutWindow class"""
1555 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1556 __repr__
= _swig_repr
1557 def __init__(self
, *args
, **kwargs
):
1559 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1560 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1561 String name=SashLayoutNameStr) -> SashLayoutWindow
1563 _windows_
.SashLayoutWindow_swiginit(self
,_windows_
.new_SashLayoutWindow(*args
, **kwargs
))
1564 self
._setOORInfo
(self
)
1566 def Create(*args
, **kwargs
):
1568 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1569 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1570 String name=SashLayoutNameStr) -> bool
1572 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1574 def GetAlignment(*args
, **kwargs
):
1575 """GetAlignment(self) -> int"""
1576 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1578 def GetOrientation(*args
, **kwargs
):
1579 """GetOrientation(self) -> int"""
1580 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1582 def SetAlignment(*args
, **kwargs
):
1583 """SetAlignment(self, int alignment)"""
1584 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1586 def SetDefaultSize(*args
, **kwargs
):
1587 """SetDefaultSize(self, Size size)"""
1588 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1590 def SetOrientation(*args
, **kwargs
):
1591 """SetOrientation(self, int orientation)"""
1592 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1594 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindow
)
1596 def PreSashLayoutWindow(*args
, **kwargs
):
1597 """PreSashLayoutWindow() -> SashLayoutWindow"""
1598 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1601 class LayoutAlgorithm(_core
.Object
):
1602 """Proxy of C++ LayoutAlgorithm class"""
1603 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1604 __repr__
= _swig_repr
1605 def __init__(self
, *args
, **kwargs
):
1606 """__init__(self) -> LayoutAlgorithm"""
1607 _windows_
.LayoutAlgorithm_swiginit(self
,_windows_
.new_LayoutAlgorithm(*args
, **kwargs
))
1608 __swig_destroy__
= _windows_
.delete_LayoutAlgorithm
1609 __del__
= lambda self
: None;
1610 def LayoutMDIFrame(*args
, **kwargs
):
1611 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1612 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1614 def LayoutFrame(*args
, **kwargs
):
1615 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1616 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1618 def LayoutWindow(*args
, **kwargs
):
1619 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1620 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1622 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithm
)
1624 #---------------------------------------------------------------------------
1626 class PopupWindow(_core
.Window
):
1627 """Proxy of C++ PopupWindow class"""
1628 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1629 __repr__
= _swig_repr
1630 def __init__(self
, *args
, **kwargs
):
1631 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1632 _windows_
.PopupWindow_swiginit(self
,_windows_
.new_PopupWindow(*args
, **kwargs
))
1633 self
._setOORInfo
(self
)
1635 def Create(*args
, **kwargs
):
1636 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1637 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1639 def Position(*args
, **kwargs
):
1640 """Position(self, Point ptOrigin, Size size)"""
1641 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1643 _windows_
.PopupWindow_swigregister(PopupWindow
)
1645 def PrePopupWindow(*args
, **kwargs
):
1646 """PrePopupWindow() -> PopupWindow"""
1647 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1650 #---------------------------------------------------------------------------
1652 class PopupTransientWindow(PopupWindow
):
1653 """Proxy of C++ PopupTransientWindow class"""
1654 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1655 __repr__
= _swig_repr
1656 def __init__(self
, *args
, **kwargs
):
1657 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1658 _windows_
.PopupTransientWindow_swiginit(self
,_windows_
.new_PopupTransientWindow(*args
, **kwargs
))
1659 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1661 def _setCallbackInfo(*args
, **kwargs
):
1662 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1663 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1665 def Popup(*args
, **kwargs
):
1666 """Popup(self, Window focus=None)"""
1667 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1669 def Dismiss(*args
, **kwargs
):
1671 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1673 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindow
)
1675 def PrePopupTransientWindow(*args
, **kwargs
):
1676 """PrePopupTransientWindow() -> PopupTransientWindow"""
1677 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1680 #---------------------------------------------------------------------------
1682 class TipWindow(PopupTransientWindow
):
1683 """Proxy of C++ TipWindow class"""
1684 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1685 __repr__
= _swig_repr
1686 def __init__(self
, *args
, **kwargs
):
1687 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1688 _windows_
.TipWindow_swiginit(self
,_windows_
.new_TipWindow(*args
, **kwargs
))
1689 self
._setOORInfo
(self
)
1691 def SetBoundingRect(*args
, **kwargs
):
1692 """SetBoundingRect(self, Rect rectBound)"""
1693 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1695 def Close(*args
, **kwargs
):
1699 This function simply generates a EVT_CLOSE event whose handler usually
1700 tries to close the window. It doesn't close the window itself,
1701 however. If force is False (the default) then the window's close
1702 handler will be allowed to veto the destruction of the window.
1704 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1706 _windows_
.TipWindow_swigregister(TipWindow
)
1708 #---------------------------------------------------------------------------
1710 class VScrolledWindow(Panel
):
1711 """Proxy of C++ VScrolledWindow class"""
1712 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1713 __repr__
= _swig_repr
1714 def __init__(self
, *args
, **kwargs
):
1716 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1717 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1719 _windows_
.VScrolledWindow_swiginit(self
,_windows_
.new_VScrolledWindow(*args
, **kwargs
))
1720 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1722 def _setCallbackInfo(*args
, **kwargs
):
1723 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1724 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1726 def Create(*args
, **kwargs
):
1728 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1729 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1731 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1733 def SetLineCount(*args
, **kwargs
):
1734 """SetLineCount(self, size_t count)"""
1735 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1737 def ScrollToLine(*args
, **kwargs
):
1738 """ScrollToLine(self, size_t line) -> bool"""
1739 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1741 def RefreshLine(*args
, **kwargs
):
1742 """RefreshLine(self, size_t line)"""
1743 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1745 def RefreshLines(*args
, **kwargs
):
1746 """RefreshLines(self, size_t from, size_t to)"""
1747 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1749 def HitTestXY(*args
, **kwargs
):
1751 HitTestXY(self, int x, int y) -> int
1753 Test where the given (in client coords) point lies
1755 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1757 def HitTest(*args
, **kwargs
):
1759 HitTest(self, Point pt) -> int
1761 Test where the given (in client coords) point lies
1763 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1765 def RefreshAll(*args
, **kwargs
):
1766 """RefreshAll(self)"""
1767 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1769 def GetLineCount(*args
, **kwargs
):
1770 """GetLineCount(self) -> size_t"""
1771 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1773 def GetVisibleBegin(*args
, **kwargs
):
1774 """GetVisibleBegin(self) -> size_t"""
1775 return _windows_
.VScrolledWindow_GetVisibleBegin(*args
, **kwargs
)
1777 def GetVisibleEnd(*args
, **kwargs
):
1778 """GetVisibleEnd(self) -> size_t"""
1779 return _windows_
.VScrolledWindow_GetVisibleEnd(*args
, **kwargs
)
1781 def IsVisible(*args
, **kwargs
):
1782 """IsVisible(self, size_t line) -> bool"""
1783 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1785 def GetFirstVisibleLine(*args
, **kwargs
):
1786 """GetFirstVisibleLine(self) -> size_t"""
1787 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1789 def GetLastVisibleLine(*args
, **kwargs
):
1790 """GetLastVisibleLine(self) -> size_t"""
1791 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1793 def FindFirstFromBottom(*args
, **kwargs
):
1794 """FindFirstFromBottom(self, size_t lineLast, bool fullyVisible=False) -> size_t"""
1795 return _windows_
.VScrolledWindow_FindFirstFromBottom(*args
, **kwargs
)
1797 def GetLinesHeight(*args
, **kwargs
):
1798 """GetLinesHeight(self, size_t lineMin, size_t lineMax) -> int"""
1799 return _windows_
.VScrolledWindow_GetLinesHeight(*args
, **kwargs
)
1801 _windows_
.VScrolledWindow_swigregister(VScrolledWindow
)
1803 def PreVScrolledWindow(*args
, **kwargs
):
1804 """PreVScrolledWindow() -> VScrolledWindow"""
1805 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1808 class VListBox(VScrolledWindow
):
1809 """Proxy of C++ VListBox class"""
1810 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1811 __repr__
= _swig_repr
1812 def __init__(self
, *args
, **kwargs
):
1814 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1815 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1817 _windows_
.VListBox_swiginit(self
,_windows_
.new_VListBox(*args
, **kwargs
))
1818 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1820 def _setCallbackInfo(*args
, **kwargs
):
1821 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1822 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1824 def Create(*args
, **kwargs
):
1826 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1827 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1829 return _windows_
.VListBox_Create(*args
, **kwargs
)
1831 def GetItemCount(*args
, **kwargs
):
1832 """GetItemCount(self) -> size_t"""
1833 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1835 def HasMultipleSelection(*args
, **kwargs
):
1836 """HasMultipleSelection(self) -> bool"""
1837 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1839 def GetSelection(*args
, **kwargs
):
1840 """GetSelection(self) -> int"""
1841 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1843 def IsCurrent(*args
, **kwargs
):
1844 """IsCurrent(self, size_t item) -> bool"""
1845 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1847 def IsSelected(*args
, **kwargs
):
1848 """IsSelected(self, size_t item) -> bool"""
1849 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1851 def GetSelectedCount(*args
, **kwargs
):
1852 """GetSelectedCount(self) -> size_t"""
1853 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1855 def GetFirstSelected(*args
, **kwargs
):
1856 """GetFirstSelected(self) -> PyObject"""
1857 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1859 def GetNextSelected(*args
, **kwargs
):
1860 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1861 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1863 def GetMargins(*args
, **kwargs
):
1864 """GetMargins(self) -> Point"""
1865 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1867 def GetSelectionBackground(*args
, **kwargs
):
1868 """GetSelectionBackground(self) -> Colour"""
1869 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1871 def SetItemCount(*args
, **kwargs
):
1872 """SetItemCount(self, size_t count)"""
1873 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1875 def Clear(*args
, **kwargs
):
1877 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1879 def SetSelection(*args
, **kwargs
):
1880 """SetSelection(self, int selection)"""
1881 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1883 def Select(*args
, **kwargs
):
1884 """Select(self, size_t item, bool select=True) -> bool"""
1885 return _windows_
.VListBox_Select(*args
, **kwargs
)
1887 def SelectRange(*args
, **kwargs
):
1888 """SelectRange(self, size_t from, size_t to) -> bool"""
1889 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1891 def Toggle(*args
, **kwargs
):
1892 """Toggle(self, size_t item)"""
1893 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1895 def SelectAll(*args
, **kwargs
):
1896 """SelectAll(self) -> bool"""
1897 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1899 def DeselectAll(*args
, **kwargs
):
1900 """DeselectAll(self) -> bool"""
1901 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1903 def SetMargins(*args
, **kwargs
):
1904 """SetMargins(self, Point pt)"""
1905 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1907 def SetMarginsXY(*args
, **kwargs
):
1908 """SetMarginsXY(self, int x, int y)"""
1909 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1911 def SetSelectionBackground(*args
, **kwargs
):
1912 """SetSelectionBackground(self, Colour col)"""
1913 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1915 def OnDrawSeparator(*args
, **kwargs
):
1916 """OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
1917 return _windows_
.VListBox_OnDrawSeparator(*args
, **kwargs
)
1919 def OnDrawBackground(*args
, **kwargs
):
1920 """OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
1921 return _windows_
.VListBox_OnDrawBackground(*args
, **kwargs
)
1923 _windows_
.VListBox_swigregister(VListBox
)
1924 VListBoxNameStr
= cvar
.VListBoxNameStr
1926 def PreVListBox(*args
, **kwargs
):
1927 """PreVListBox() -> VListBox"""
1928 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1931 class HtmlListBox(VListBox
):
1932 """Proxy of C++ HtmlListBox class"""
1933 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1934 __repr__
= _swig_repr
1935 def __init__(self
, *args
, **kwargs
):
1937 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1938 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1940 _windows_
.HtmlListBox_swiginit(self
,_windows_
.new_HtmlListBox(*args
, **kwargs
))
1941 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1943 def _setCallbackInfo(*args
, **kwargs
):
1944 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1945 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1947 def Create(*args
, **kwargs
):
1949 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1950 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1952 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1954 def SetItemCount(*args
, **kwargs
):
1955 """SetItemCount(self, size_t count)"""
1956 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1958 def GetFileSystem(*args
, **kwargs
):
1959 """GetFileSystem(self) -> FileSystem"""
1960 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
1962 def OnLinkClicked(*args
, **kwargs
):
1963 """OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)"""
1964 return _windows_
.HtmlListBox_OnLinkClicked(*args
, **kwargs
)
1966 _windows_
.HtmlListBox_swigregister(HtmlListBox
)
1968 def PreHtmlListBox(*args
, **kwargs
):
1969 """PreHtmlListBox() -> HtmlListBox"""
1970 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
1973 #---------------------------------------------------------------------------
1975 class TaskBarIcon(_core
.EvtHandler
):
1976 """Proxy of C++ TaskBarIcon class"""
1977 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1978 __repr__
= _swig_repr
1979 def __init__(self
, *args
, **kwargs
):
1980 """__init__(self) -> TaskBarIcon"""
1981 _windows_
.TaskBarIcon_swiginit(self
,_windows_
.new_TaskBarIcon(*args
, **kwargs
))
1982 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
1984 __swig_destroy__
= _windows_
.delete_TaskBarIcon
1985 __del__
= lambda self
: None;
1986 def _setCallbackInfo(*args
, **kwargs
):
1987 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
1988 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
1990 def Destroy(*args
, **kwargs
):
1994 Deletes the C++ object this Python object is a proxy for.
1996 val
= _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2000 def IsOk(*args
, **kwargs
):
2001 """IsOk(self) -> bool"""
2002 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2004 def __nonzero__(self
): return self
.IsOk()
2005 def IsIconInstalled(*args
, **kwargs
):
2006 """IsIconInstalled(self) -> bool"""
2007 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2009 def SetIcon(*args
, **kwargs
):
2010 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2011 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2013 def RemoveIcon(*args
, **kwargs
):
2014 """RemoveIcon(self) -> bool"""
2015 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2017 def PopupMenu(*args
, **kwargs
):
2018 """PopupMenu(self, Menu menu) -> bool"""
2019 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2021 _windows_
.TaskBarIcon_swigregister(TaskBarIcon
)
2023 class TaskBarIconEvent(_core
.Event
):
2024 """Proxy of C++ TaskBarIconEvent class"""
2025 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2026 __repr__
= _swig_repr
2027 def __init__(self
, *args
, **kwargs
):
2028 """__init__(self, EventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2029 _windows_
.TaskBarIconEvent_swiginit(self
,_windows_
.new_TaskBarIconEvent(*args
, **kwargs
))
2030 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEvent
)
2032 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2033 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2034 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2035 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2036 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2037 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2038 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2039 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2040 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2041 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2042 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2043 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2044 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2045 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2047 #---------------------------------------------------------------------------
2049 class ColourData(_core
.Object
):
2051 This class holds a variety of information related to the colour
2052 chooser dialog, used to transfer settings and results to and from the
2055 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2056 __repr__
= _swig_repr
2057 def __init__(self
, *args
, **kwargs
):
2059 __init__(self) -> ColourData
2061 Constructor, sets default values.
2063 _windows_
.ColourData_swiginit(self
,_windows_
.new_ColourData(*args
, **kwargs
))
2064 __swig_destroy__
= _windows_
.delete_ColourData
2065 __del__
= lambda self
: None;
2066 def GetChooseFull(*args
, **kwargs
):
2068 GetChooseFull(self) -> bool
2070 Under Windows, determines whether the Windows colour dialog will
2071 display the full dialog with custom colour selection controls. Has no
2072 meaning under other platforms. The default value is true.
2074 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2076 def GetColour(*args
, **kwargs
):
2078 GetColour(self) -> Colour
2080 Gets the colour (pre)selected by the dialog.
2082 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2084 def GetCustomColour(*args
, **kwargs
):
2086 GetCustomColour(self, int i) -> Colour
2088 Gets the i'th custom colour associated with the colour dialog. i
2089 should be an integer between 0 and 15. The default custom colours are
2090 all invalid colours.
2092 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2094 def SetChooseFull(*args
, **kwargs
):
2096 SetChooseFull(self, int flag)
2098 Under Windows, tells the Windows colour dialog to display the full
2099 dialog with custom colour selection controls. Under other platforms,
2100 has no effect. The default value is true.
2102 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2104 def SetColour(*args
, **kwargs
):
2106 SetColour(self, Colour colour)
2108 Sets the default colour for the colour dialog. The default colour is
2111 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2113 def SetCustomColour(*args
, **kwargs
):
2115 SetCustomColour(self, int i, Colour colour)
2117 Sets the i'th custom colour for the colour dialog. i should be an
2118 integer between 0 and 15. The default custom colours are all invalid colours.
2120 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2122 _windows_
.ColourData_swigregister(ColourData
)
2123 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2124 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2125 DirDialogNameStr
= cvar
.DirDialogNameStr
2126 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2127 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2128 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2130 class ColourDialog(Dialog
):
2131 """This class represents the colour chooser dialog."""
2132 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2133 __repr__
= _swig_repr
2134 def __init__(self
, *args
, **kwargs
):
2136 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2138 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2139 which will be copied to the colour dialog's internal ColourData
2142 _windows_
.ColourDialog_swiginit(self
,_windows_
.new_ColourDialog(*args
, **kwargs
))
2143 self
._setOORInfo
(self
)
2145 def GetColourData(*args
, **kwargs
):
2147 GetColourData(self) -> ColourData
2149 Returns a reference to the `wx.ColourData` used by the dialog.
2151 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2153 _windows_
.ColourDialog_swigregister(ColourDialog
)
2156 def GetColourFromUser(*args
, **kwargs
):
2158 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2159 String caption=EmptyString) -> Colour
2161 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2162 DD_NEW_DIR_BUTTON
= _windows_
.DD_NEW_DIR_BUTTON
2163 DD_DEFAULT_STYLE
= _windows_
.DD_DEFAULT_STYLE
2164 DD_CHANGE_DIR
= _windows_
.DD_CHANGE_DIR
2165 class DirDialog(Dialog
):
2167 wx.DirDialog allows the user to select a directory by browising the
2170 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2171 __repr__
= _swig_repr
2172 def __init__(self
, *args
, **kwargs
):
2174 __init__(self, Window parent, String message=DirSelectorPromptStr,
2175 String defaultPath=EmptyString, long style=DD_DEFAULT_STYLE,
2176 Point pos=DefaultPosition, Size size=DefaultSize,
2177 String name=DirDialogNameStr) -> DirDialog
2179 Constructor. Use ShowModal method to show the dialog.
2181 _windows_
.DirDialog_swiginit(self
,_windows_
.new_DirDialog(*args
, **kwargs
))
2182 self
._setOORInfo
(self
)
2184 def GetPath(*args
, **kwargs
):
2186 GetPath(self) -> String
2188 Returns the default or user-selected path.
2190 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2192 def GetMessage(*args
, **kwargs
):
2194 GetMessage(self) -> String
2196 Returns the message that will be displayed on the dialog.
2198 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2200 def SetMessage(*args
, **kwargs
):
2202 SetMessage(self, String message)
2204 Sets the message that will be displayed on the dialog.
2206 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2208 def SetPath(*args
, **kwargs
):
2210 SetPath(self, String path)
2212 Sets the default path.
2214 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2216 _windows_
.DirDialog_swigregister(DirDialog
)
2218 OPEN
= _windows_
.OPEN
2219 SAVE
= _windows_
.SAVE
2220 OVERWRITE_PROMPT
= _windows_
.OVERWRITE_PROMPT
2221 FILE_MUST_EXIST
= _windows_
.FILE_MUST_EXIST
2222 MULTIPLE
= _windows_
.MULTIPLE
2223 CHANGE_DIR
= _windows_
.CHANGE_DIR
2224 HIDE_READONLY
= _windows_
.HIDE_READONLY
2225 FD_OPEN
= _windows_
.FD_OPEN
2226 FD_SAVE
= _windows_
.FD_SAVE
2227 FD_OVERWRITE_PROMPT
= _windows_
.FD_OVERWRITE_PROMPT
2228 FD_FILE_MUST_EXIST
= _windows_
.FD_FILE_MUST_EXIST
2229 FD_MULTIPLE
= _windows_
.FD_MULTIPLE
2230 FD_CHANGE_DIR
= _windows_
.FD_CHANGE_DIR
2231 FD_DEFAULT_STYLE
= _windows_
.FD_DEFAULT_STYLE
2232 class FileDialog(Dialog
):
2234 wx.FileDialog allows the user to select one or more files from the
2237 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2238 __repr__
= _swig_repr
2239 def __init__(self
, *args
, **kwargs
):
2241 __init__(self, Window parent, String message=FileSelectorPromptStr,
2242 String defaultDir=EmptyString, String defaultFile=EmptyString,
2243 String wildcard=FileSelectorDefaultWildcardStr,
2244 long style=FD_DEFAULT_STYLE,
2245 Point pos=DefaultPosition) -> FileDialog
2247 Constructor. Use ShowModal method to show the dialog.
2249 _windows_
.FileDialog_swiginit(self
,_windows_
.new_FileDialog(*args
, **kwargs
))
2250 self
._setOORInfo
(self
)
2252 def SetMessage(*args
, **kwargs
):
2254 SetMessage(self, String message)
2256 Sets the message that will be displayed on the dialog.
2258 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2260 def SetPath(*args
, **kwargs
):
2262 SetPath(self, String path)
2264 Sets the path (the combined directory and filename that will be
2265 returned when the dialog is dismissed).
2267 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2269 def SetDirectory(*args
, **kwargs
):
2271 SetDirectory(self, String dir)
2273 Sets the default directory.
2275 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2277 def SetFilename(*args
, **kwargs
):
2279 SetFilename(self, String name)
2281 Sets the default filename.
2283 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2285 def SetWildcard(*args
, **kwargs
):
2287 SetWildcard(self, String wildCard)
2289 Sets the wildcard, which can contain multiple file types, for
2292 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2295 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2297 def SetFilterIndex(*args
, **kwargs
):
2299 SetFilterIndex(self, int filterIndex)
2301 Sets the default filter index, starting from zero.
2303 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2305 def GetMessage(*args
, **kwargs
):
2307 GetMessage(self) -> String
2309 Returns the message that will be displayed on the dialog.
2311 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2313 def GetPath(*args
, **kwargs
):
2315 GetPath(self) -> String
2317 Returns the full path (directory and filename) of the selected file.
2319 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2321 def GetDirectory(*args
, **kwargs
):
2323 GetDirectory(self) -> String
2325 Returns the default directory.
2327 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2329 def GetFilename(*args
, **kwargs
):
2331 GetFilename(self) -> String
2333 Returns the default filename.
2335 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2337 def GetWildcard(*args
, **kwargs
):
2339 GetWildcard(self) -> String
2341 Returns the file dialog wildcard.
2343 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2345 def GetFilterIndex(*args
, **kwargs
):
2347 GetFilterIndex(self) -> int
2349 Returns the index into the list of filters supplied, optionally, in
2350 the wildcard parameter. Before the dialog is shown, this is the index
2351 which will be used when the dialog is first displayed. After the
2352 dialog is shown, this is the index selected by the user.
2354 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2356 def GetFilenames(*args
, **kwargs
):
2358 GetFilenames(self) -> PyObject
2360 Returns a list of filenames chosen in the dialog. This function
2361 should only be used with the dialogs which have wx.MULTIPLE style, use
2362 GetFilename for the others.
2364 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2366 def GetPaths(*args
, **kwargs
):
2368 GetPaths(self) -> PyObject
2370 Fills the array paths with the full paths of the files chosen. This
2371 function should only be used with the dialogs which have wx.MULTIPLE
2372 style, use GetPath for the others.
2374 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2376 _windows_
.FileDialog_swigregister(FileDialog
)
2378 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2379 class MultiChoiceDialog(Dialog
):
2380 """A simple dialog with a multi selection listbox."""
2381 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2382 __repr__
= _swig_repr
2383 def __init__(self
, *args
, **kwargs
):
2385 __init__(self, Window parent, String message, String caption,
2386 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2387 Point pos=DefaultPosition) -> MultiChoiceDialog
2389 Constructor. Use the `ShowModal` method to show the dialog.
2391 :param parent: The parent window.
2392 :param message: Text to display above the list of selections.
2393 :param caption: Text to use in the title bar of the dialog.
2394 :param choices: A list of strings or unicode objects that the
2395 user is allowed to choose from.
2396 :param style: Styles to apply to the dialog. The default value is
2397 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2398 :param pos: Where to position the dialog (not used on Windows)
2402 _windows_
.MultiChoiceDialog_swiginit(self
,_windows_
.new_MultiChoiceDialog(*args
, **kwargs
))
2403 self
._setOORInfo
(self
)
2405 def SetSelections(*args
, **kwargs
):
2407 SetSelections(List selections)
2409 Specify the items in the list that should be selected, using a list of
2410 integers. The list should specify the indexes of the items that
2413 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2415 def GetSelections(*args
, **kwargs
):
2417 GetSelections() -> [selections]
2419 Returns a list of integers representing the items that are selected.
2420 If an item is selected then its index will appear in the list.
2422 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2424 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialog
)
2426 class SingleChoiceDialog(Dialog
):
2427 """A simple dialog with a single selection listbox."""
2428 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2429 __repr__
= _swig_repr
2430 def __init__(self
, *args
, **kwargs
):
2432 __init__(Window parent, String message, String caption,
2433 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2434 Point pos=DefaultPosition) -> SingleChoiceDialog
2436 Constructor. Use ShowModal method to show the dialog.
2438 _windows_
.SingleChoiceDialog_swiginit(self
,_windows_
.new_SingleChoiceDialog(*args
, **kwargs
))
2439 self
._setOORInfo
(self
)
2441 def GetSelection(*args
, **kwargs
):
2443 GetSelection(self) -> int
2445 Get the index of teh currently selected item.
2447 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2449 def GetStringSelection(*args
, **kwargs
):
2451 GetStringSelection(self) -> String
2453 Returns the string value of the currently selected item
2455 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2457 def SetSelection(*args
, **kwargs
):
2459 SetSelection(self, int sel)
2461 Set the current selected item to sel
2463 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2465 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialog
)
2467 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2468 class TextEntryDialog(Dialog
):
2469 """A dialog with text control, [ok] and [cancel] buttons"""
2470 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2471 __repr__
= _swig_repr
2472 def __init__(self
, *args
, **kwargs
):
2474 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2475 String defaultValue=EmptyString,
2476 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2478 Constructor. Use ShowModal method to show the dialog.
2480 _windows_
.TextEntryDialog_swiginit(self
,_windows_
.new_TextEntryDialog(*args
, **kwargs
))
2481 self
._setOORInfo
(self
)
2483 def GetValue(*args
, **kwargs
):
2485 GetValue(self) -> String
2487 Returns the text that the user has entered if the user has pressed OK,
2488 or the original value if the user has pressed Cancel.
2490 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2492 def SetValue(*args
, **kwargs
):
2494 SetValue(self, String value)
2496 Sets the default text value.
2498 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2500 _windows_
.TextEntryDialog_swigregister(TextEntryDialog
)
2502 class PasswordEntryDialog(TextEntryDialog
):
2503 """Proxy of C++ PasswordEntryDialog class"""
2504 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2505 __repr__
= _swig_repr
2506 def __init__(self
, *args
, **kwargs
):
2508 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2509 String value=EmptyString,
2510 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2512 _windows_
.PasswordEntryDialog_swiginit(self
,_windows_
.new_PasswordEntryDialog(*args
, **kwargs
))
2513 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialog
)
2514 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2516 class NumberEntryDialog(Dialog
):
2517 """A dialog with spin control, ok and cancel buttons."""
2518 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2519 __repr__
= _swig_repr
2520 def __init__(self
, *args
, **kwargs
):
2522 __init__(self, Window parent, String message, String prompt, String caption,
2523 long value, long min, long max, Point pos=DefaultPosition) -> NumberEntryDialog
2525 Constructor. Use ShowModal method to show the dialog.
2527 _windows_
.NumberEntryDialog_swiginit(self
,_windows_
.new_NumberEntryDialog(*args
, **kwargs
))
2528 self
._setOORInfo
(self
)
2530 def GetValue(*args
, **kwargs
):
2531 """GetValue(self) -> long"""
2532 return _windows_
.NumberEntryDialog_GetValue(*args
, **kwargs
)
2534 _windows_
.NumberEntryDialog_swigregister(NumberEntryDialog
)
2536 class FontData(_core
.Object
):
2538 This class holds a variety of information related to font dialogs and
2539 is used to transfer settings to and results from a `wx.FontDialog`.
2541 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2542 __repr__
= _swig_repr
2543 def __init__(self
, *args
, **kwargs
):
2545 __init__(self) -> FontData
2547 This class holds a variety of information related to font dialogs and
2548 is used to transfer settings to and results from a `wx.FontDialog`.
2550 _windows_
.FontData_swiginit(self
,_windows_
.new_FontData(*args
, **kwargs
))
2551 __swig_destroy__
= _windows_
.delete_FontData
2552 __del__
= lambda self
: None;
2553 def EnableEffects(*args
, **kwargs
):
2555 EnableEffects(self, bool enable)
2557 Enables or disables 'effects' under MS Windows only. This refers to
2558 the controls for manipulating colour, strikeout and underline
2559 properties. The default value is true.
2561 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2563 def GetAllowSymbols(*args
, **kwargs
):
2565 GetAllowSymbols(self) -> bool
2567 Under MS Windows, returns a flag determining whether symbol fonts can
2568 be selected. Has no effect on other platforms. The default value is
2571 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2573 def GetColour(*args
, **kwargs
):
2575 GetColour(self) -> Colour
2577 Gets the colour associated with the font dialog. The default value is
2580 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2582 def GetChosenFont(*args
, **kwargs
):
2584 GetChosenFont(self) -> Font
2586 Gets the font chosen by the user.
2588 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2590 def GetEnableEffects(*args
, **kwargs
):
2592 GetEnableEffects(self) -> bool
2594 Determines whether 'effects' are enabled under Windows.
2596 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2598 def GetInitialFont(*args
, **kwargs
):
2600 GetInitialFont(self) -> Font
2602 Gets the font that will be initially used by the font dialog. This
2603 should have previously been set by the application.
2605 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2607 def GetShowHelp(*args
, **kwargs
):
2609 GetShowHelp(self) -> bool
2611 Returns true if the Help button will be shown (Windows only). The
2612 default value is false.
2614 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2616 def SetAllowSymbols(*args
, **kwargs
):
2618 SetAllowSymbols(self, bool allowSymbols)
2620 Under MS Windows, determines whether symbol fonts can be selected. Has
2621 no effect on other platforms. The default value is true.
2623 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2625 def SetChosenFont(*args
, **kwargs
):
2627 SetChosenFont(self, Font font)
2629 Sets the font that will be returned to the user (normally for internal
2632 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2634 def SetColour(*args
, **kwargs
):
2636 SetColour(self, Colour colour)
2638 Sets the colour that will be used for the font foreground colour. The
2639 default colour is black.
2641 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2643 def SetInitialFont(*args
, **kwargs
):
2645 SetInitialFont(self, Font font)
2647 Sets the font that will be initially used by the font dialog.
2649 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2651 def SetRange(*args
, **kwargs
):
2653 SetRange(self, int min, int max)
2655 Sets the valid range for the font point size (Windows only). The
2656 default is 0, 0 (unrestricted range).
2658 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2660 def SetShowHelp(*args
, **kwargs
):
2662 SetShowHelp(self, bool showHelp)
2664 Determines whether the Help button will be displayed in the font
2665 dialog (Windows only). The default value is false.
2667 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2669 _windows_
.FontData_swigregister(FontData
)
2671 class FontDialog(Dialog
):
2673 wx.FontDialog allows the user to select a system font and its attributes.
2678 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2679 __repr__
= _swig_repr
2680 def __init__(self
, *args
, **kwargs
):
2682 __init__(self, Window parent, FontData data) -> FontDialog
2684 Constructor. Pass a parent window and the `wx.FontData` object to be
2685 used to initialize the dialog controls. Call `ShowModal` to display
2686 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2687 results with via the `wx.FontData` returned by `GetFontData`.
2689 _windows_
.FontDialog_swiginit(self
,_windows_
.new_FontDialog(*args
, **kwargs
))
2690 self
._setOORInfo
(self
)
2692 def GetFontData(*args
, **kwargs
):
2694 GetFontData(self) -> FontData
2696 Returns a reference to the internal `wx.FontData` used by the
2699 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2701 _windows_
.FontDialog_swigregister(FontDialog
)
2704 def GetFontFromUser(*args
, **kwargs
):
2705 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2706 return _windows_
.GetFontFromUser(*args
, **kwargs
)
2707 class MessageDialog(Dialog
):
2709 This class provides a simple dialog that shows a single or multi-line
2710 message, with a choice of OK, Yes, No and/or Cancel buttons.
2712 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2713 __repr__
= _swig_repr
2714 def __init__(self
, *args
, **kwargs
):
2716 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2717 long style=wxOK|wxCANCEL|wxCENTRE,
2718 Point pos=DefaultPosition) -> MessageDialog
2720 Constructor, use `ShowModal` to display the dialog.
2722 _windows_
.MessageDialog_swiginit(self
,_windows_
.new_MessageDialog(*args
, **kwargs
))
2723 self
._setOORInfo
(self
)
2725 _windows_
.MessageDialog_swigregister(MessageDialog
)
2727 class ProgressDialog(Frame
):
2729 A dialog that shows a short message and a progress bar. Optionally, it
2730 can display an ABORT button.
2732 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2733 __repr__
= _swig_repr
2734 def __init__(self
, *args
, **kwargs
):
2736 __init__(self, String title, String message, int maximum=100, Window parent=None,
2737 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2739 Constructor. Creates the dialog, displays it and disables user input
2740 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2743 _windows_
.ProgressDialog_swiginit(self
,_windows_
.new_ProgressDialog(*args
, **kwargs
))
2744 self
._setOORInfo
(self
)
2746 def Update(*args
, **kwargs
):
2748 Update(self, int value, String newmsg) --> (continue, skip)
2750 Updates the dialog, setting the progress bar to the new value and, if
2751 given changes the message above it. The value given should be less
2752 than or equal to the maximum value given to the constructor and the
2753 dialog is closed if it is equal to the maximum. Returns a tuple of
2754 boolean values, ``(continue, skip)`` where ``continue`` is ``True``
2755 unless the Cancel button has been pressed, and ``skip`` is ``False``
2756 unless the Skip button (if any) has been pressed.
2758 If the ``continue`` return value is ``false``, the application can either
2759 immediately destroy the dialog or ask the user for confirmation, and if the
2760 abort is not confirmed the dialog may be resumed with `Resume` function.
2763 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2765 def Resume(*args
, **kwargs
):
2769 Can be used to continue with the dialog, after the user had chosen to
2772 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2774 _windows_
.ProgressDialog_swigregister(ProgressDialog
)
2776 FR_DOWN
= _windows_
.FR_DOWN
2777 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2778 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2779 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2780 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2781 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2782 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2783 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2784 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2785 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2786 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2787 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2788 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2789 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2790 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2791 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2792 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2794 # For backwards compatibility. Should they be removed?
2795 EVT_COMMAND_FIND
= EVT_FIND
2796 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2797 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2798 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2799 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2801 class FindDialogEvent(_core
.CommandEvent
):
2802 """Events for the FindReplaceDialog"""
2803 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2804 __repr__
= _swig_repr
2805 def __init__(self
, *args
, **kwargs
):
2807 __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2809 Events for the FindReplaceDialog
2811 _windows_
.FindDialogEvent_swiginit(self
,_windows_
.new_FindDialogEvent(*args
, **kwargs
))
2812 def GetFlags(*args
, **kwargs
):
2814 GetFlags(self) -> int
2816 Get the currently selected flags: this is the combination of
2817 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2819 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2821 def GetFindString(*args
, **kwargs
):
2823 GetFindString(self) -> String
2825 Return the string to find (never empty).
2827 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2829 def GetReplaceString(*args
, **kwargs
):
2831 GetReplaceString(self) -> String
2833 Return the string to replace the search string with (only for replace
2834 and replace all events).
2836 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2838 def GetDialog(*args
, **kwargs
):
2840 GetDialog(self) -> FindReplaceDialog
2842 Return the pointer to the dialog which generated this event.
2844 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2846 def SetFlags(*args
, **kwargs
):
2847 """SetFlags(self, int flags)"""
2848 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2850 def SetFindString(*args
, **kwargs
):
2851 """SetFindString(self, String str)"""
2852 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2854 def SetReplaceString(*args
, **kwargs
):
2855 """SetReplaceString(self, String str)"""
2856 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2858 _windows_
.FindDialogEvent_swigregister(FindDialogEvent
)
2860 class FindReplaceData(_core
.Object
):
2862 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2863 to initialize the dialog with the default values and will keep the
2864 last values from the dialog when it is closed. It is also updated each
2865 time a `wx.FindDialogEvent` is generated so instead of using the
2866 `wx.FindDialogEvent` methods you can also directly query this object.
2868 Note that all SetXXX() methods may only be called before showing the
2869 dialog and calling them has no effect later.
2871 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2872 __repr__
= _swig_repr
2873 def __init__(self
, *args
, **kwargs
):
2875 __init__(self, int flags=0) -> FindReplaceData
2877 Constuctor initializes the flags to default value (0).
2879 _windows_
.FindReplaceData_swiginit(self
,_windows_
.new_FindReplaceData(*args
, **kwargs
))
2880 __swig_destroy__
= _windows_
.delete_FindReplaceData
2881 __del__
= lambda self
: None;
2882 def GetFindString(*args
, **kwargs
):
2884 GetFindString(self) -> String
2886 Get the string to find.
2888 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2890 def GetReplaceString(*args
, **kwargs
):
2892 GetReplaceString(self) -> String
2894 Get the replacement string.
2896 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2898 def GetFlags(*args
, **kwargs
):
2900 GetFlags(self) -> int
2902 Get the combination of flag values.
2904 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
2906 def SetFlags(*args
, **kwargs
):
2908 SetFlags(self, int flags)
2910 Set the flags to use to initialize the controls of the dialog.
2912 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
2914 def SetFindString(*args
, **kwargs
):
2916 SetFindString(self, String str)
2918 Set the string to find (used as initial value by the dialog).
2920 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
2922 def SetReplaceString(*args
, **kwargs
):
2924 SetReplaceString(self, String str)
2926 Set the replacement string (used as initial value by the dialog).
2928 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2930 _windows_
.FindReplaceData_swigregister(FindReplaceData
)
2932 class FindReplaceDialog(Dialog
):
2934 wx.FindReplaceDialog is a standard modeless dialog which is used to
2935 allow the user to search for some text (and possibly replace it with
2936 something else). The actual searching is supposed to be done in the
2937 owner window which is the parent of this dialog. Note that it means
2938 that unlike for the other standard dialogs this one must have a parent
2939 window. Also note that there is no way to use this dialog in a modal
2940 way; it is always, by design and implementation, modeless.
2942 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2943 __repr__
= _swig_repr
2944 def __init__(self
, *args
, **kwargs
):
2946 __init__(self, Window parent, FindReplaceData data, String title,
2947 int style=0) -> FindReplaceDialog
2949 Create a FindReplaceDialog. The parent and data parameters must be
2950 non-None. Use Show to display the dialog.
2952 _windows_
.FindReplaceDialog_swiginit(self
,_windows_
.new_FindReplaceDialog(*args
, **kwargs
))
2953 self
._setOORInfo
(self
)
2955 def Create(*args
, **kwargs
):
2957 Create(self, Window parent, FindReplaceData data, String title,
2958 int style=0) -> bool
2960 Create the dialog, for 2-phase create.
2962 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
2964 def GetData(*args
, **kwargs
):
2966 GetData(self) -> FindReplaceData
2968 Get the FindReplaceData object used by this dialog.
2970 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
2972 def SetData(*args
, **kwargs
):
2974 SetData(self, FindReplaceData data)
2976 Set the FindReplaceData object used by this dialog.
2978 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
2980 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialog
)
2982 def PreFindReplaceDialog(*args
, **kwargs
):
2984 PreFindReplaceDialog() -> FindReplaceDialog
2986 Precreate a FindReplaceDialog for 2-phase creation
2988 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
2991 #---------------------------------------------------------------------------
2993 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
2994 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
2995 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
2996 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
2997 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
2998 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
2999 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3000 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3001 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3002 class MDIParentFrame(Frame
):
3003 """Proxy of C++ MDIParentFrame class"""
3004 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3005 __repr__
= _swig_repr
3006 def __init__(self
, *args
, **kwargs
):
3008 __init__(self, Window parent, int id=-1, String title=EmptyString,
3009 Point pos=DefaultPosition, Size size=DefaultSize,
3010 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3011 String name=FrameNameStr) -> MDIParentFrame
3013 _windows_
.MDIParentFrame_swiginit(self
,_windows_
.new_MDIParentFrame(*args
, **kwargs
))
3014 self
._setOORInfo
(self
)
3016 def Create(*args
, **kwargs
):
3018 Create(self, Window parent, int id=-1, String title=EmptyString,
3019 Point pos=DefaultPosition, Size size=DefaultSize,
3020 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3021 String name=FrameNameStr) -> bool
3023 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3025 def ActivateNext(*args
, **kwargs
):
3026 """ActivateNext(self)"""
3027 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3029 def ActivatePrevious(*args
, **kwargs
):
3030 """ActivatePrevious(self)"""
3031 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3033 def ArrangeIcons(*args
, **kwargs
):
3034 """ArrangeIcons(self)"""
3035 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3037 def Cascade(*args
, **kwargs
):
3039 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3041 def GetActiveChild(*args
, **kwargs
):
3042 """GetActiveChild(self) -> MDIChildFrame"""
3043 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3045 def GetClientWindow(*args
, **kwargs
):
3046 """GetClientWindow(self) -> MDIClientWindow"""
3047 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3049 def GetToolBar(*args
, **kwargs
):
3050 """GetToolBar(self) -> Window"""
3051 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3053 def GetWindowMenu(*args
, **kwargs
):
3054 """GetWindowMenu(self) -> Menu"""
3055 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3057 def SetWindowMenu(*args
, **kwargs
):
3058 """SetWindowMenu(self, Menu menu)"""
3059 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3061 def Tile(*args
, **kwargs
):
3062 """Tile(self, int orient=HORIZONTAL)"""
3063 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3065 _windows_
.MDIParentFrame_swigregister(MDIParentFrame
)
3067 def PreMDIParentFrame(*args
, **kwargs
):
3068 """PreMDIParentFrame() -> MDIParentFrame"""
3069 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3072 class MDIChildFrame(Frame
):
3073 """Proxy of C++ MDIChildFrame class"""
3074 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3075 __repr__
= _swig_repr
3076 def __init__(self
, *args
, **kwargs
):
3078 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3079 Point pos=DefaultPosition, Size size=DefaultSize,
3080 long style=DEFAULT_FRAME_STYLE,
3081 String name=FrameNameStr) -> MDIChildFrame
3083 _windows_
.MDIChildFrame_swiginit(self
,_windows_
.new_MDIChildFrame(*args
, **kwargs
))
3084 self
._setOORInfo
(self
)
3086 def Create(*args
, **kwargs
):
3088 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3089 Point pos=DefaultPosition, Size size=DefaultSize,
3090 long style=DEFAULT_FRAME_STYLE,
3091 String name=FrameNameStr) -> bool
3093 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3095 def Activate(*args
, **kwargs
):
3096 """Activate(self)"""
3097 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3099 _windows_
.MDIChildFrame_swigregister(MDIChildFrame
)
3101 def PreMDIChildFrame(*args
, **kwargs
):
3102 """PreMDIChildFrame() -> MDIChildFrame"""
3103 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3106 class MDIClientWindow(_core
.Window
):
3107 """Proxy of C++ MDIClientWindow class"""
3108 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3109 __repr__
= _swig_repr
3110 def __init__(self
, *args
, **kwargs
):
3111 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3112 _windows_
.MDIClientWindow_swiginit(self
,_windows_
.new_MDIClientWindow(*args
, **kwargs
))
3113 self
._setOORInfo
(self
)
3115 def Create(*args
, **kwargs
):
3116 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3117 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3119 _windows_
.MDIClientWindow_swigregister(MDIClientWindow
)
3121 def PreMDIClientWindow(*args
, **kwargs
):
3122 """PreMDIClientWindow() -> MDIClientWindow"""
3123 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3126 #---------------------------------------------------------------------------
3128 class PyWindow(_core
.Window
):
3129 """Proxy of C++ PyWindow class"""
3130 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3131 __repr__
= _swig_repr
3132 def __init__(self
, *args
, **kwargs
):
3134 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3135 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3137 _windows_
.PyWindow_swiginit(self
,_windows_
.new_PyWindow(*args
, **kwargs
))
3138 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3140 def _setCallbackInfo(*args
, **kwargs
):
3141 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3142 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3144 def SetBestSize(*args
, **kwargs
):
3145 """SetBestSize(self, Size size)"""
3146 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3148 def DoEraseBackground(*args
, **kwargs
):
3149 """DoEraseBackground(self, DC dc) -> bool"""
3150 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3152 def DoMoveWindow(*args
, **kwargs
):
3153 """DoMoveWindow(self, int x, int y, int width, int height)"""
3154 return _windows_
.PyWindow_DoMoveWindow(*args
, **kwargs
)
3156 def DoSetSize(*args
, **kwargs
):
3157 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3158 return _windows_
.PyWindow_DoSetSize(*args
, **kwargs
)
3160 def DoSetClientSize(*args
, **kwargs
):
3161 """DoSetClientSize(self, int width, int height)"""
3162 return _windows_
.PyWindow_DoSetClientSize(*args
, **kwargs
)
3164 def DoSetVirtualSize(*args
, **kwargs
):
3165 """DoSetVirtualSize(self, int x, int y)"""
3166 return _windows_
.PyWindow_DoSetVirtualSize(*args
, **kwargs
)
3168 def DoGetSize(*args
, **kwargs
):
3169 """DoGetSize() -> (width, height)"""
3170 return _windows_
.PyWindow_DoGetSize(*args
, **kwargs
)
3172 def DoGetClientSize(*args
, **kwargs
):
3173 """DoGetClientSize() -> (width, height)"""
3174 return _windows_
.PyWindow_DoGetClientSize(*args
, **kwargs
)
3176 def DoGetPosition(*args
, **kwargs
):
3177 """DoGetPosition() -> (x,y)"""
3178 return _windows_
.PyWindow_DoGetPosition(*args
, **kwargs
)
3180 def DoGetVirtualSize(*args
, **kwargs
):
3181 """DoGetVirtualSize(self) -> Size"""
3182 return _windows_
.PyWindow_DoGetVirtualSize(*args
, **kwargs
)
3184 def DoGetBestSize(*args
, **kwargs
):
3185 """DoGetBestSize(self) -> Size"""
3186 return _windows_
.PyWindow_DoGetBestSize(*args
, **kwargs
)
3188 def GetDefaultAttributes(*args
, **kwargs
):
3189 """GetDefaultAttributes(self) -> VisualAttributes"""
3190 return _windows_
.PyWindow_GetDefaultAttributes(*args
, **kwargs
)
3192 def OnInternalIdle(*args
, **kwargs
):
3193 """OnInternalIdle(self)"""
3194 return _windows_
.PyWindow_OnInternalIdle(*args
, **kwargs
)
3196 def base_DoMoveWindow(*args
, **kw
):
3197 return PyWindow
.DoMoveWindow(*args
, **kw
)
3198 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3199 "Please use PyWindow.DoMoveWindow instead.")
3201 def base_DoSetSize(*args
, **kw
):
3202 return PyWindow
.DoSetSize(*args
, **kw
)
3203 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3204 "Please use PyWindow.DoSetSize instead.")
3206 def base_DoSetClientSize(*args
, **kw
):
3207 return PyWindow
.DoSetClientSize(*args
, **kw
)
3208 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3209 "Please use PyWindow.DoSetClientSize instead.")
3211 def base_DoSetVirtualSize(*args
, **kw
):
3212 return PyWindow
.DoSetVirtualSize(*args
, **kw
)
3213 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3214 "Please use PyWindow.DoSetVirtualSize instead.")
3216 def base_DoGetSize(*args
, **kw
):
3217 return PyWindow
.DoGetSize(*args
, **kw
)
3218 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3219 "Please use PyWindow.DoGetSize instead.")
3221 def base_DoGetClientSize(*args
, **kw
):
3222 return PyWindow
.DoGetClientSize(*args
, **kw
)
3223 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3224 "Please use PyWindow.DoGetClientSize instead.")
3226 def base_DoGetPosition(*args
, **kw
):
3227 return PyWindow
.DoGetPosition(*args
, **kw
)
3228 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3229 "Please use PyWindow.DoGetPosition instead.")
3231 def base_DoGetVirtualSize(*args
, **kw
):
3232 return PyWindow
.DoGetVirtualSize(*args
, **kw
)
3233 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3234 "Please use PyWindow.DoGetVirtualSize instead.")
3236 def base_DoGetBestSize(*args
, **kw
):
3237 return PyWindow
.DoGetBestSize(*args
, **kw
)
3238 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3239 "Please use PyWindow.DoGetBestSize instead.")
3241 def base_InitDialog(*args
, **kw
):
3242 return PyWindow
.InitDialog(*args
, **kw
)
3243 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3244 "Please use PyWindow.InitDialog instead.")
3246 def base_TransferDataToWindow(*args
, **kw
):
3247 return PyWindow
.TransferDataToWindow(*args
, **kw
)
3248 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3249 "Please use PyWindow.TransferDataToWindow instead.")
3251 def base_TransferDataFromWindow(*args
, **kw
):
3252 return PyWindow
.TransferDataFromWindow(*args
, **kw
)
3253 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3254 "Please use PyWindow.TransferDataFromWindow instead.")
3256 def base_Validate(*args
, **kw
):
3257 return PyWindow
.Validate(*args
, **kw
)
3258 base_Validate
= wx
._deprecated
(base_Validate
,
3259 "Please use PyWindow.Validate instead.")
3261 def base_AcceptsFocus(*args
, **kw
):
3262 return PyWindow
.AcceptsFocus(*args
, **kw
)
3263 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3264 "Please use PyWindow.AcceptsFocus instead.")
3266 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3267 return PyWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3268 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3269 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3271 def base_GetMaxSize(*args
, **kw
):
3272 return PyWindow
.GetMaxSize(*args
, **kw
)
3273 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3274 "Please use PyWindow.GetMaxSize instead.")
3276 def base_AddChild(*args
, **kw
):
3277 return PyWindow
.AddChild(*args
, **kw
)
3278 base_AddChild
= wx
._deprecated
(base_AddChild
,
3279 "Please use PyWindow.AddChild instead.")
3281 def base_RemoveChild(*args
, **kw
):
3282 return PyWindow
.RemoveChild(*args
, **kw
)
3283 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3284 "Please use PyWindow.RemoveChild instead.")
3286 def base_ShouldInheritColours(*args
, **kw
):
3287 return PyWindow
.ShouldInheritColours(*args
, **kw
)
3288 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3289 "Please use PyWindow.ShouldInheritColours instead.")
3291 def base_GetDefaultAttributes(*args
, **kw
):
3292 return PyWindow
.GetDefaultAttributes(*args
, **kw
)
3293 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3294 "Please use PyWindow.GetDefaultAttributes instead.")
3296 def base_OnInternalIdle(*args
, **kw
):
3297 return PyWindow
.OnInternalIdle(*args
, **kw
)
3298 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3299 "Please use PyWindow.OnInternalIdle instead.")
3301 _windows_
.PyWindow_swigregister(PyWindow
)
3303 def PrePyWindow(*args
, **kwargs
):
3304 """PrePyWindow() -> PyWindow"""
3305 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3308 class PyPanel(Panel
):
3309 """Proxy of C++ PyPanel class"""
3310 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3311 __repr__
= _swig_repr
3312 def __init__(self
, *args
, **kwargs
):
3314 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3315 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3317 _windows_
.PyPanel_swiginit(self
,_windows_
.new_PyPanel(*args
, **kwargs
))
3318 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3320 def _setCallbackInfo(*args
, **kwargs
):
3321 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3322 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3324 def SetBestSize(*args
, **kwargs
):
3325 """SetBestSize(self, Size size)"""
3326 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3328 def DoEraseBackground(*args
, **kwargs
):
3329 """DoEraseBackground(self, DC dc) -> bool"""
3330 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3332 def DoMoveWindow(*args
, **kwargs
):
3333 """DoMoveWindow(self, int x, int y, int width, int height)"""
3334 return _windows_
.PyPanel_DoMoveWindow(*args
, **kwargs
)
3336 def DoSetSize(*args
, **kwargs
):
3337 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3338 return _windows_
.PyPanel_DoSetSize(*args
, **kwargs
)
3340 def DoSetClientSize(*args
, **kwargs
):
3341 """DoSetClientSize(self, int width, int height)"""
3342 return _windows_
.PyPanel_DoSetClientSize(*args
, **kwargs
)
3344 def DoSetVirtualSize(*args
, **kwargs
):
3345 """DoSetVirtualSize(self, int x, int y)"""
3346 return _windows_
.PyPanel_DoSetVirtualSize(*args
, **kwargs
)
3348 def DoGetSize(*args
, **kwargs
):
3349 """DoGetSize() -> (width, height)"""
3350 return _windows_
.PyPanel_DoGetSize(*args
, **kwargs
)
3352 def DoGetClientSize(*args
, **kwargs
):
3353 """DoGetClientSize() -> (width, height)"""
3354 return _windows_
.PyPanel_DoGetClientSize(*args
, **kwargs
)
3356 def DoGetPosition(*args
, **kwargs
):
3357 """DoGetPosition() -> (x,y)"""
3358 return _windows_
.PyPanel_DoGetPosition(*args
, **kwargs
)
3360 def DoGetVirtualSize(*args
, **kwargs
):
3361 """DoGetVirtualSize(self) -> Size"""
3362 return _windows_
.PyPanel_DoGetVirtualSize(*args
, **kwargs
)
3364 def DoGetBestSize(*args
, **kwargs
):
3365 """DoGetBestSize(self) -> Size"""
3366 return _windows_
.PyPanel_DoGetBestSize(*args
, **kwargs
)
3368 def GetDefaultAttributes(*args
, **kwargs
):
3369 """GetDefaultAttributes(self) -> VisualAttributes"""
3370 return _windows_
.PyPanel_GetDefaultAttributes(*args
, **kwargs
)
3372 def OnInternalIdle(*args
, **kwargs
):
3373 """OnInternalIdle(self)"""
3374 return _windows_
.PyPanel_OnInternalIdle(*args
, **kwargs
)
3376 def base_DoMoveWindow(*args
, **kw
):
3377 return PyPanel
.DoMoveWindow(*args
, **kw
)
3378 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3379 "Please use PyPanel.DoMoveWindow instead.")
3381 def base_DoSetSize(*args
, **kw
):
3382 return PyPanel
.DoSetSize(*args
, **kw
)
3383 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3384 "Please use PyPanel.DoSetSize instead.")
3386 def base_DoSetClientSize(*args
, **kw
):
3387 return PyPanel
.DoSetClientSize(*args
, **kw
)
3388 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3389 "Please use PyPanel.DoSetClientSize instead.")
3391 def base_DoSetVirtualSize(*args
, **kw
):
3392 return PyPanel
.DoSetVirtualSize(*args
, **kw
)
3393 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3394 "Please use PyPanel.DoSetVirtualSize instead.")
3396 def base_DoGetSize(*args
, **kw
):
3397 return PyPanel
.DoGetSize(*args
, **kw
)
3398 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3399 "Please use PyPanel.DoGetSize instead.")
3401 def base_DoGetClientSize(*args
, **kw
):
3402 return PyPanel
.DoGetClientSize(*args
, **kw
)
3403 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3404 "Please use PyPanel.DoGetClientSize instead.")
3406 def base_DoGetPosition(*args
, **kw
):
3407 return PyPanel
.DoGetPosition(*args
, **kw
)
3408 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3409 "Please use PyPanel.DoGetPosition instead.")
3411 def base_DoGetVirtualSize(*args
, **kw
):
3412 return PyPanel
.DoGetVirtualSize(*args
, **kw
)
3413 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3414 "Please use PyPanel.DoGetVirtualSize instead.")
3416 def base_DoGetBestSize(*args
, **kw
):
3417 return PyPanel
.DoGetBestSize(*args
, **kw
)
3418 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3419 "Please use PyPanel.DoGetBestSize instead.")
3421 def base_InitDialog(*args
, **kw
):
3422 return PyPanel
.InitDialog(*args
, **kw
)
3423 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3424 "Please use PyPanel.InitDialog instead.")
3426 def base_TransferDataToWindow(*args
, **kw
):
3427 return PyPanel
.TransferDataToWindow(*args
, **kw
)
3428 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3429 "Please use PyPanel.TransferDataToWindow instead.")
3431 def base_TransferDataFromWindow(*args
, **kw
):
3432 return PyPanel
.TransferDataFromWindow(*args
, **kw
)
3433 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3434 "Please use PyPanel.TransferDataFromWindow instead.")
3436 def base_Validate(*args
, **kw
):
3437 return PyPanel
.Validate(*args
, **kw
)
3438 base_Validate
= wx
._deprecated
(base_Validate
,
3439 "Please use PyPanel.Validate instead.")
3441 def base_AcceptsFocus(*args
, **kw
):
3442 return PyPanel
.AcceptsFocus(*args
, **kw
)
3443 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3444 "Please use PyPanel.AcceptsFocus instead.")
3446 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3447 return PyPanel
.AcceptsFocusFromKeyboard(*args
, **kw
)
3448 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3449 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
3451 def base_GetMaxSize(*args
, **kw
):
3452 return PyPanel
.GetMaxSize(*args
, **kw
)
3453 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3454 "Please use PyPanel.GetMaxSize instead.")
3456 def base_AddChild(*args
, **kw
):
3457 return PyPanel
.AddChild(*args
, **kw
)
3458 base_AddChild
= wx
._deprecated
(base_AddChild
,
3459 "Please use PyPanel.AddChild instead.")
3461 def base_RemoveChild(*args
, **kw
):
3462 return PyPanel
.RemoveChild(*args
, **kw
)
3463 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3464 "Please use PyPanel.RemoveChild instead.")
3466 def base_ShouldInheritColours(*args
, **kw
):
3467 return PyPanel
.ShouldInheritColours(*args
, **kw
)
3468 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3469 "Please use PyPanel.ShouldInheritColours instead.")
3471 def base_GetDefaultAttributes(*args
, **kw
):
3472 return PyPanel
.GetDefaultAttributes(*args
, **kw
)
3473 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3474 "Please use PyPanel.GetDefaultAttributes instead.")
3476 def base_OnInternalIdle(*args
, **kw
):
3477 return PyPanel
.OnInternalIdle(*args
, **kw
)
3478 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3479 "Please use PyPanel.OnInternalIdle instead.")
3481 _windows_
.PyPanel_swigregister(PyPanel
)
3483 def PrePyPanel(*args
, **kwargs
):
3484 """PrePyPanel() -> PyPanel"""
3485 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3488 class PyScrolledWindow(ScrolledWindow
):
3489 """Proxy of C++ PyScrolledWindow class"""
3490 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3491 __repr__
= _swig_repr
3492 def __init__(self
, *args
, **kwargs
):
3494 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3495 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3497 _windows_
.PyScrolledWindow_swiginit(self
,_windows_
.new_PyScrolledWindow(*args
, **kwargs
))
3498 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3500 def _setCallbackInfo(*args
, **kwargs
):
3501 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3502 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3504 def SetBestSize(*args
, **kwargs
):
3505 """SetBestSize(self, Size size)"""
3506 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3508 def DoEraseBackground(*args
, **kwargs
):
3509 """DoEraseBackground(self, DC dc) -> bool"""
3510 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3512 def DoMoveWindow(*args
, **kwargs
):
3513 """DoMoveWindow(self, int x, int y, int width, int height)"""
3514 return _windows_
.PyScrolledWindow_DoMoveWindow(*args
, **kwargs
)
3516 def DoSetSize(*args
, **kwargs
):
3517 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3518 return _windows_
.PyScrolledWindow_DoSetSize(*args
, **kwargs
)
3520 def DoSetClientSize(*args
, **kwargs
):
3521 """DoSetClientSize(self, int width, int height)"""
3522 return _windows_
.PyScrolledWindow_DoSetClientSize(*args
, **kwargs
)
3524 def DoSetVirtualSize(*args
, **kwargs
):
3525 """DoSetVirtualSize(self, int x, int y)"""
3526 return _windows_
.PyScrolledWindow_DoSetVirtualSize(*args
, **kwargs
)
3528 def DoGetSize(*args
, **kwargs
):
3529 """DoGetSize() -> (width, height)"""
3530 return _windows_
.PyScrolledWindow_DoGetSize(*args
, **kwargs
)
3532 def DoGetClientSize(*args
, **kwargs
):
3533 """DoGetClientSize() -> (width, height)"""
3534 return _windows_
.PyScrolledWindow_DoGetClientSize(*args
, **kwargs
)
3536 def DoGetPosition(*args
, **kwargs
):
3537 """DoGetPosition() -> (x,y)"""
3538 return _windows_
.PyScrolledWindow_DoGetPosition(*args
, **kwargs
)
3540 def DoGetVirtualSize(*args
, **kwargs
):
3541 """DoGetVirtualSize(self) -> Size"""
3542 return _windows_
.PyScrolledWindow_DoGetVirtualSize(*args
, **kwargs
)
3544 def DoGetBestSize(*args
, **kwargs
):
3545 """DoGetBestSize(self) -> Size"""
3546 return _windows_
.PyScrolledWindow_DoGetBestSize(*args
, **kwargs
)
3548 def GetDefaultAttributes(*args
, **kwargs
):
3549 """GetDefaultAttributes(self) -> VisualAttributes"""
3550 return _windows_
.PyScrolledWindow_GetDefaultAttributes(*args
, **kwargs
)
3552 def OnInternalIdle(*args
, **kwargs
):
3553 """OnInternalIdle(self)"""
3554 return _windows_
.PyScrolledWindow_OnInternalIdle(*args
, **kwargs
)
3556 def base_DoMoveWindow(*args
, **kw
):
3557 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
3558 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3559 "Please use PyScrolledWindow.DoMoveWindow instead.")
3561 def base_DoSetSize(*args
, **kw
):
3562 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
3563 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3564 "Please use PyScrolledWindow.DoSetSize instead.")
3566 def base_DoSetClientSize(*args
, **kw
):
3567 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
3568 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3569 "Please use PyScrolledWindow.DoSetClientSize instead.")
3571 def base_DoSetVirtualSize(*args
, **kw
):
3572 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
3573 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3574 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
3576 def base_DoGetSize(*args
, **kw
):
3577 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
3578 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3579 "Please use PyScrolledWindow.DoGetSize instead.")
3581 def base_DoGetClientSize(*args
, **kw
):
3582 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
3583 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3584 "Please use PyScrolledWindow.DoGetClientSize instead.")
3586 def base_DoGetPosition(*args
, **kw
):
3587 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
3588 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3589 "Please use PyScrolledWindow.DoGetPosition instead.")
3591 def base_DoGetVirtualSize(*args
, **kw
):
3592 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
3593 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3594 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
3596 def base_DoGetBestSize(*args
, **kw
):
3597 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
3598 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3599 "Please use PyScrolledWindow.DoGetBestSize instead.")
3601 def base_InitDialog(*args
, **kw
):
3602 return PyScrolledWindow
.InitDialog(*args
, **kw
)
3603 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3604 "Please use PyScrolledWindow.InitDialog instead.")
3606 def base_TransferDataToWindow(*args
, **kw
):
3607 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
3608 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3609 "Please use PyScrolledWindow.TransferDataToWindow instead.")
3611 def base_TransferDataFromWindow(*args
, **kw
):
3612 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
3613 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3614 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
3616 def base_Validate(*args
, **kw
):
3617 return PyScrolledWindow
.Validate(*args
, **kw
)
3618 base_Validate
= wx
._deprecated
(base_Validate
,
3619 "Please use PyScrolledWindow.Validate instead.")
3621 def base_AcceptsFocus(*args
, **kw
):
3622 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
3623 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3624 "Please use PyScrolledWindow.AcceptsFocus instead.")
3626 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3627 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3628 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3629 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
3631 def base_GetMaxSize(*args
, **kw
):
3632 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
3633 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3634 "Please use PyScrolledWindow.GetMaxSize instead.")
3636 def base_AddChild(*args
, **kw
):
3637 return PyScrolledWindow
.AddChild(*args
, **kw
)
3638 base_AddChild
= wx
._deprecated
(base_AddChild
,
3639 "Please use PyScrolledWindow.AddChild instead.")
3641 def base_RemoveChild(*args
, **kw
):
3642 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
3643 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3644 "Please use PyScrolledWindow.RemoveChild instead.")
3646 def base_ShouldInheritColours(*args
, **kw
):
3647 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
3648 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3649 "Please use PyScrolledWindow.ShouldInheritColours instead.")
3651 def base_GetDefaultAttributes(*args
, **kw
):
3652 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
3653 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3654 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
3656 def base_OnInternalIdle(*args
, **kw
):
3657 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
3658 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3659 "Please use PyScrolledWindow.OnInternalIdle instead.")
3661 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindow
)
3663 def PrePyScrolledWindow(*args
, **kwargs
):
3664 """PrePyScrolledWindow() -> PyScrolledWindow"""
3665 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3668 #---------------------------------------------------------------------------
3670 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3671 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3672 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3673 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3674 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3675 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3676 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3677 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3678 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3679 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3680 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3681 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3682 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3683 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3684 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3685 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3686 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3687 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3688 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3689 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3690 class PrintData(_core
.Object
):
3691 """Proxy of C++ PrintData class"""
3692 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3693 __repr__
= _swig_repr
3694 def __init__(self
, *args
):
3696 __init__(self) -> PrintData
3697 __init__(self, PrintData data) -> PrintData
3699 _windows_
.PrintData_swiginit(self
,_windows_
.new_PrintData(*args
))
3700 __swig_destroy__
= _windows_
.delete_PrintData
3701 __del__
= lambda self
: None;
3702 def GetNoCopies(*args
, **kwargs
):
3703 """GetNoCopies(self) -> int"""
3704 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3706 def GetCollate(*args
, **kwargs
):
3707 """GetCollate(self) -> bool"""
3708 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3710 def GetOrientation(*args
, **kwargs
):
3711 """GetOrientation(self) -> int"""
3712 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3714 def Ok(*args
, **kwargs
):
3715 """Ok(self) -> bool"""
3716 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3718 def GetPrinterName(*args
, **kwargs
):
3719 """GetPrinterName(self) -> String"""
3720 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3722 def GetColour(*args
, **kwargs
):
3723 """GetColour(self) -> bool"""
3724 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3726 def GetDuplex(*args
, **kwargs
):
3727 """GetDuplex(self) -> int"""
3728 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3730 def GetPaperId(*args
, **kwargs
):
3731 """GetPaperId(self) -> int"""
3732 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3734 def GetPaperSize(*args
, **kwargs
):
3735 """GetPaperSize(self) -> Size"""
3736 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3738 def GetQuality(*args
, **kwargs
):
3739 """GetQuality(self) -> int"""
3740 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3742 def GetBin(*args
, **kwargs
):
3743 """GetBin(self) -> int"""
3744 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3746 def GetPrintMode(*args
, **kwargs
):
3747 """GetPrintMode(self) -> int"""
3748 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3750 def SetNoCopies(*args
, **kwargs
):
3751 """SetNoCopies(self, int v)"""
3752 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3754 def SetCollate(*args
, **kwargs
):
3755 """SetCollate(self, bool flag)"""
3756 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3758 def SetOrientation(*args
, **kwargs
):
3759 """SetOrientation(self, int orient)"""
3760 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3762 def SetPrinterName(*args
, **kwargs
):
3763 """SetPrinterName(self, String name)"""
3764 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3766 def SetColour(*args
, **kwargs
):
3767 """SetColour(self, bool colour)"""
3768 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3770 def SetDuplex(*args
, **kwargs
):
3771 """SetDuplex(self, int duplex)"""
3772 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3774 def SetPaperId(*args
, **kwargs
):
3775 """SetPaperId(self, int sizeId)"""
3776 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3778 def SetPaperSize(*args
, **kwargs
):
3779 """SetPaperSize(self, Size sz)"""
3780 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3782 def SetQuality(*args
, **kwargs
):
3783 """SetQuality(self, int quality)"""
3784 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3786 def SetBin(*args
, **kwargs
):
3787 """SetBin(self, int bin)"""
3788 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3790 def SetPrintMode(*args
, **kwargs
):
3791 """SetPrintMode(self, int printMode)"""
3792 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3794 def GetFilename(*args
, **kwargs
):
3795 """GetFilename(self) -> String"""
3796 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3798 def SetFilename(*args
, **kwargs
):
3799 """SetFilename(self, String filename)"""
3800 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3802 def __nonzero__(self
): return self
.Ok()
3803 def GetPrivData(*args
, **kwargs
):
3804 """GetPrivData(self) -> PyObject"""
3805 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
3807 def SetPrivData(*args
, **kwargs
):
3808 """SetPrivData(self, PyObject data)"""
3809 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
3811 _windows_
.PrintData_swigregister(PrintData
)
3812 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3813 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3815 class PageSetupDialogData(_core
.Object
):
3816 """Proxy of C++ PageSetupDialogData class"""
3817 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3818 __repr__
= _swig_repr
3819 def __init__(self
, *args
):
3821 __init__(self) -> PageSetupDialogData
3822 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3823 __init__(self, PrintData data) -> PageSetupDialogData
3825 _windows_
.PageSetupDialogData_swiginit(self
,_windows_
.new_PageSetupDialogData(*args
))
3826 __swig_destroy__
= _windows_
.delete_PageSetupDialogData
3827 __del__
= lambda self
: None;
3828 def EnableHelp(*args
, **kwargs
):
3829 """EnableHelp(self, bool flag)"""
3830 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3832 def EnableMargins(*args
, **kwargs
):
3833 """EnableMargins(self, bool flag)"""
3834 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3836 def EnableOrientation(*args
, **kwargs
):
3837 """EnableOrientation(self, bool flag)"""
3838 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3840 def EnablePaper(*args
, **kwargs
):
3841 """EnablePaper(self, bool flag)"""
3842 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3844 def EnablePrinter(*args
, **kwargs
):
3845 """EnablePrinter(self, bool flag)"""
3846 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3848 def GetDefaultMinMargins(*args
, **kwargs
):
3849 """GetDefaultMinMargins(self) -> bool"""
3850 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3852 def GetEnableMargins(*args
, **kwargs
):
3853 """GetEnableMargins(self) -> bool"""
3854 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3856 def GetEnableOrientation(*args
, **kwargs
):
3857 """GetEnableOrientation(self) -> bool"""
3858 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3860 def GetEnablePaper(*args
, **kwargs
):
3861 """GetEnablePaper(self) -> bool"""
3862 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3864 def GetEnablePrinter(*args
, **kwargs
):
3865 """GetEnablePrinter(self) -> bool"""
3866 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3868 def GetEnableHelp(*args
, **kwargs
):
3869 """GetEnableHelp(self) -> bool"""
3870 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3872 def GetDefaultInfo(*args
, **kwargs
):
3873 """GetDefaultInfo(self) -> bool"""
3874 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3876 def GetMarginTopLeft(*args
, **kwargs
):
3877 """GetMarginTopLeft(self) -> Point"""
3878 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3880 def GetMarginBottomRight(*args
, **kwargs
):
3881 """GetMarginBottomRight(self) -> Point"""
3882 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3884 def GetMinMarginTopLeft(*args
, **kwargs
):
3885 """GetMinMarginTopLeft(self) -> Point"""
3886 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3888 def GetMinMarginBottomRight(*args
, **kwargs
):
3889 """GetMinMarginBottomRight(self) -> Point"""
3890 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3892 def GetPaperId(*args
, **kwargs
):
3893 """GetPaperId(self) -> int"""
3894 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3896 def GetPaperSize(*args
, **kwargs
):
3897 """GetPaperSize(self) -> Size"""
3898 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3900 def GetPrintData(*args
, **kwargs
):
3901 """GetPrintData(self) -> PrintData"""
3902 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3904 def Ok(*args
, **kwargs
):
3905 """Ok(self) -> bool"""
3906 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3908 def SetDefaultInfo(*args
, **kwargs
):
3909 """SetDefaultInfo(self, bool flag)"""
3910 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3912 def SetDefaultMinMargins(*args
, **kwargs
):
3913 """SetDefaultMinMargins(self, bool flag)"""
3914 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3916 def SetMarginTopLeft(*args
, **kwargs
):
3917 """SetMarginTopLeft(self, Point pt)"""
3918 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3920 def SetMarginBottomRight(*args
, **kwargs
):
3921 """SetMarginBottomRight(self, Point pt)"""
3922 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3924 def SetMinMarginTopLeft(*args
, **kwargs
):
3925 """SetMinMarginTopLeft(self, Point pt)"""
3926 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3928 def SetMinMarginBottomRight(*args
, **kwargs
):
3929 """SetMinMarginBottomRight(self, Point pt)"""
3930 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3932 def SetPaperId(*args
, **kwargs
):
3933 """SetPaperId(self, int id)"""
3934 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3936 def SetPaperSize(*args
, **kwargs
):
3937 """SetPaperSize(self, Size size)"""
3938 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3940 def SetPrintData(*args
, **kwargs
):
3941 """SetPrintData(self, PrintData printData)"""
3942 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3944 def CalculateIdFromPaperSize(*args
, **kwargs
):
3945 """CalculateIdFromPaperSize(self)"""
3946 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
3948 def CalculatePaperSizeFromId(*args
, **kwargs
):
3949 """CalculatePaperSizeFromId(self)"""
3950 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
3952 def __nonzero__(self
): return self
.Ok()
3953 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogData
)
3955 class PageSetupDialog(_core
.Object
):
3956 """Proxy of C++ PageSetupDialog class"""
3957 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3958 __repr__
= _swig_repr
3959 def __init__(self
, *args
, **kwargs
):
3960 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3961 _windows_
.PageSetupDialog_swiginit(self
,_windows_
.new_PageSetupDialog(*args
, **kwargs
))
3962 __swig_destroy__
= _windows_
.delete_PageSetupDialog
3963 __del__
= lambda self
: None;
3964 def GetPageSetupData(*args
, **kwargs
):
3965 """GetPageSetupData(self) -> PageSetupDialogData"""
3966 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3968 def GetPageSetupDialogData(*args
, **kwargs
):
3969 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
3970 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
3972 def ShowModal(*args
, **kwargs
):
3973 """ShowModal(self) -> int"""
3974 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3976 def Destroy(self
): pass
3977 _windows_
.PageSetupDialog_swigregister(PageSetupDialog
)
3979 class PrintDialogData(_core
.Object
):
3980 """Proxy of C++ PrintDialogData class"""
3981 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3982 __repr__
= _swig_repr
3983 def __init__(self
, *args
):
3985 __init__(self) -> PrintDialogData
3986 __init__(self, PrintData printData) -> PrintDialogData
3987 __init__(self, PrintDialogData printData) -> PrintDialogData
3989 _windows_
.PrintDialogData_swiginit(self
,_windows_
.new_PrintDialogData(*args
))
3990 __swig_destroy__
= _windows_
.delete_PrintDialogData
3991 __del__
= lambda self
: None;
3992 def GetFromPage(*args
, **kwargs
):
3993 """GetFromPage(self) -> int"""
3994 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
3996 def GetToPage(*args
, **kwargs
):
3997 """GetToPage(self) -> int"""
3998 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4000 def GetMinPage(*args
, **kwargs
):
4001 """GetMinPage(self) -> int"""
4002 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4004 def GetMaxPage(*args
, **kwargs
):
4005 """GetMaxPage(self) -> int"""
4006 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4008 def GetNoCopies(*args
, **kwargs
):
4009 """GetNoCopies(self) -> int"""
4010 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4012 def GetAllPages(*args
, **kwargs
):
4013 """GetAllPages(self) -> bool"""
4014 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4016 def GetSelection(*args
, **kwargs
):
4017 """GetSelection(self) -> bool"""
4018 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4020 def GetCollate(*args
, **kwargs
):
4021 """GetCollate(self) -> bool"""
4022 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4024 def GetPrintToFile(*args
, **kwargs
):
4025 """GetPrintToFile(self) -> bool"""
4026 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4028 def SetFromPage(*args
, **kwargs
):
4029 """SetFromPage(self, int v)"""
4030 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4032 def SetToPage(*args
, **kwargs
):
4033 """SetToPage(self, int v)"""
4034 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4036 def SetMinPage(*args
, **kwargs
):
4037 """SetMinPage(self, int v)"""
4038 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4040 def SetMaxPage(*args
, **kwargs
):
4041 """SetMaxPage(self, int v)"""
4042 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4044 def SetNoCopies(*args
, **kwargs
):
4045 """SetNoCopies(self, int v)"""
4046 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4048 def SetAllPages(*args
, **kwargs
):
4049 """SetAllPages(self, bool flag)"""
4050 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4052 def SetSelection(*args
, **kwargs
):
4053 """SetSelection(self, bool flag)"""
4054 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4056 def SetCollate(*args
, **kwargs
):
4057 """SetCollate(self, bool flag)"""
4058 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4060 def SetPrintToFile(*args
, **kwargs
):
4061 """SetPrintToFile(self, bool flag)"""
4062 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4064 def EnablePrintToFile(*args
, **kwargs
):
4065 """EnablePrintToFile(self, bool flag)"""
4066 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4068 def EnableSelection(*args
, **kwargs
):
4069 """EnableSelection(self, bool flag)"""
4070 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4072 def EnablePageNumbers(*args
, **kwargs
):
4073 """EnablePageNumbers(self, bool flag)"""
4074 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4076 def EnableHelp(*args
, **kwargs
):
4077 """EnableHelp(self, bool flag)"""
4078 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4080 def GetEnablePrintToFile(*args
, **kwargs
):
4081 """GetEnablePrintToFile(self) -> bool"""
4082 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4084 def GetEnableSelection(*args
, **kwargs
):
4085 """GetEnableSelection(self) -> bool"""
4086 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4088 def GetEnablePageNumbers(*args
, **kwargs
):
4089 """GetEnablePageNumbers(self) -> bool"""
4090 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4092 def GetEnableHelp(*args
, **kwargs
):
4093 """GetEnableHelp(self) -> bool"""
4094 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4096 def Ok(*args
, **kwargs
):
4097 """Ok(self) -> bool"""
4098 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4100 def GetPrintData(*args
, **kwargs
):
4101 """GetPrintData(self) -> PrintData"""
4102 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4104 def SetPrintData(*args
, **kwargs
):
4105 """SetPrintData(self, PrintData printData)"""
4106 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4108 def __nonzero__(self
): return self
.Ok()
4109 _windows_
.PrintDialogData_swigregister(PrintDialogData
)
4111 class PrintDialog(_core
.Object
):
4112 """Proxy of C++ PrintDialog class"""
4113 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4114 __repr__
= _swig_repr
4115 def __init__(self
, *args
, **kwargs
):
4116 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4117 _windows_
.PrintDialog_swiginit(self
,_windows_
.new_PrintDialog(*args
, **kwargs
))
4118 __swig_destroy__
= _windows_
.delete_PrintDialog
4119 __del__
= lambda self
: None;
4120 def ShowModal(*args
, **kwargs
):
4121 """ShowModal(self) -> int"""
4122 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4124 def GetPrintDialogData(*args
, **kwargs
):
4125 """GetPrintDialogData(self) -> PrintDialogData"""
4126 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4128 def GetPrintData(*args
, **kwargs
):
4129 """GetPrintData(self) -> PrintData"""
4130 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4132 def GetPrintDC(*args
, **kwargs
):
4133 """GetPrintDC(self) -> DC"""
4134 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4136 def Destroy(self
): pass
4137 _windows_
.PrintDialog_swigregister(PrintDialog
)
4139 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4140 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4141 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4142 class Printer(_core
.Object
):
4143 """Proxy of C++ Printer class"""
4144 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4145 __repr__
= _swig_repr
4146 def __init__(self
, *args
, **kwargs
):
4147 """__init__(self, PrintDialogData data=None) -> Printer"""
4148 _windows_
.Printer_swiginit(self
,_windows_
.new_Printer(*args
, **kwargs
))
4149 __swig_destroy__
= _windows_
.delete_Printer
4150 __del__
= lambda self
: None;
4151 def CreateAbortWindow(*args
, **kwargs
):
4152 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4153 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4155 def ReportError(*args
, **kwargs
):
4156 """ReportError(self, Window parent, Printout printout, String message)"""
4157 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4159 def Setup(*args
, **kwargs
):
4160 """Setup(self, Window parent) -> bool"""
4161 return _windows_
.Printer_Setup(*args
, **kwargs
)
4163 def Print(*args
, **kwargs
):
4164 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4165 return _windows_
.Printer_Print(*args
, **kwargs
)
4167 def PrintDialog(*args
, **kwargs
):
4168 """PrintDialog(self, Window parent) -> DC"""
4169 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4171 def GetPrintDialogData(*args
, **kwargs
):
4172 """GetPrintDialogData(self) -> PrintDialogData"""
4173 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4175 def GetAbort(*args
, **kwargs
):
4176 """GetAbort(self) -> bool"""
4177 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4179 def GetLastError(*args
, **kwargs
):
4180 """GetLastError() -> int"""
4181 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4183 GetLastError
= staticmethod(GetLastError
)
4184 _windows_
.Printer_swigregister(Printer
)
4186 def Printer_GetLastError(*args
):
4187 """Printer_GetLastError() -> int"""
4188 return _windows_
.Printer_GetLastError(*args
)
4190 class Printout(_core
.Object
):
4191 """Proxy of C++ Printout class"""
4192 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4193 __repr__
= _swig_repr
4194 def __init__(self
, *args
, **kwargs
):
4195 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4196 _windows_
.Printout_swiginit(self
,_windows_
.new_Printout(*args
, **kwargs
))
4197 self
._setCallbackInfo
(self
, Printout
)
4199 __swig_destroy__
= _windows_
.delete_Printout
4200 __del__
= lambda self
: None;
4201 def _setCallbackInfo(*args
, **kwargs
):
4202 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4203 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4205 def GetTitle(*args
, **kwargs
):
4206 """GetTitle(self) -> String"""
4207 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4209 def GetDC(*args
, **kwargs
):
4210 """GetDC(self) -> DC"""
4211 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4213 def SetDC(*args
, **kwargs
):
4214 """SetDC(self, DC dc)"""
4215 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4217 def SetPageSizePixels(*args
, **kwargs
):
4218 """SetPageSizePixels(self, int w, int h)"""
4219 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4221 def GetPageSizePixels(*args
, **kwargs
):
4222 """GetPageSizePixels() -> (w, h)"""
4223 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4225 def SetPageSizeMM(*args
, **kwargs
):
4226 """SetPageSizeMM(self, int w, int h)"""
4227 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4229 def GetPageSizeMM(*args
, **kwargs
):
4230 """GetPageSizeMM() -> (w, h)"""
4231 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4233 def SetPPIScreen(*args
, **kwargs
):
4234 """SetPPIScreen(self, int x, int y)"""
4235 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4237 def GetPPIScreen(*args
, **kwargs
):
4238 """GetPPIScreen() -> (x,y)"""
4239 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4241 def SetPPIPrinter(*args
, **kwargs
):
4242 """SetPPIPrinter(self, int x, int y)"""
4243 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4245 def GetPPIPrinter(*args
, **kwargs
):
4246 """GetPPIPrinter() -> (x,y)"""
4247 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4249 def IsPreview(*args
, **kwargs
):
4250 """IsPreview(self) -> bool"""
4251 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4253 def SetIsPreview(*args
, **kwargs
):
4254 """SetIsPreview(self, bool p)"""
4255 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4257 def OnBeginDocument(*args
, **kwargs
):
4258 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4259 return _windows_
.Printout_OnBeginDocument(*args
, **kwargs
)
4261 def OnEndDocument(*args
, **kwargs
):
4262 """OnEndDocument(self)"""
4263 return _windows_
.Printout_OnEndDocument(*args
, **kwargs
)
4265 def OnBeginPrinting(*args
, **kwargs
):
4266 """OnBeginPrinting(self)"""
4267 return _windows_
.Printout_OnBeginPrinting(*args
, **kwargs
)
4269 def OnEndPrinting(*args
, **kwargs
):
4270 """OnEndPrinting(self)"""
4271 return _windows_
.Printout_OnEndPrinting(*args
, **kwargs
)
4273 def OnPreparePrinting(*args
, **kwargs
):
4274 """OnPreparePrinting(self)"""
4275 return _windows_
.Printout_OnPreparePrinting(*args
, **kwargs
)
4277 def HasPage(*args
, **kwargs
):
4278 """HasPage(self, int page) -> bool"""
4279 return _windows_
.Printout_HasPage(*args
, **kwargs
)
4281 def GetPageInfo(*args
, **kwargs
):
4282 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4283 return _windows_
.Printout_GetPageInfo(*args
, **kwargs
)
4285 def base_OnBeginDocument(*args
, **kw
):
4286 return Printout
.OnBeginDocument(*args
, **kw
)
4287 base_OnBeginDocument
= wx
._deprecated
(base_OnBeginDocument
,
4288 "Please use Printout.OnBeginDocument instead.")
4290 def base_OnEndDocument(*args
, **kw
):
4291 return Printout
.OnEndDocument(*args
, **kw
)
4292 base_OnEndDocument
= wx
._deprecated
(base_OnEndDocument
,
4293 "Please use Printout.OnEndDocument instead.")
4295 def base_OnBeginPrinting(*args
, **kw
):
4296 return Printout
.OnBeginPrinting(*args
, **kw
)
4297 base_OnBeginPrinting
= wx
._deprecated
(base_OnBeginPrinting
,
4298 "Please use Printout.OnBeginPrinting instead.")
4300 def base_OnEndPrinting(*args
, **kw
):
4301 return Printout
.OnEndPrinting(*args
, **kw
)
4302 base_OnEndPrinting
= wx
._deprecated
(base_OnEndPrinting
,
4303 "Please use Printout.OnEndPrinting instead.")
4305 def base_OnPreparePrinting(*args
, **kw
):
4306 return Printout
.OnPreparePrinting(*args
, **kw
)
4307 base_OnPreparePrinting
= wx
._deprecated
(base_OnPreparePrinting
,
4308 "Please use Printout.OnPreparePrinting instead.")
4310 def base_GetPageInfo(*args
, **kw
):
4311 return Printout
.GetPageInfo(*args
, **kw
)
4312 base_GetPageInfo
= wx
._deprecated
(base_GetPageInfo
,
4313 "Please use Printout.GetPageInfo instead.")
4315 _windows_
.Printout_swigregister(Printout
)
4317 class PreviewCanvas(ScrolledWindow
):
4318 """Proxy of C++ PreviewCanvas class"""
4319 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4320 __repr__
= _swig_repr
4321 def __init__(self
, *args
, **kwargs
):
4323 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4324 Size size=DefaultSize, long style=0,
4325 String name=PreviewCanvasNameStr) -> PreviewCanvas
4327 _windows_
.PreviewCanvas_swiginit(self
,_windows_
.new_PreviewCanvas(*args
, **kwargs
))
4328 self
._setOORInfo
(self
)
4330 _windows_
.PreviewCanvas_swigregister(PreviewCanvas
)
4332 class PreviewFrame(Frame
):
4333 """Proxy of C++ PreviewFrame class"""
4334 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4335 __repr__
= _swig_repr
4336 def __init__(self
, *args
, **kwargs
):
4338 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4339 Size size=DefaultSize,
4340 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4342 _windows_
.PreviewFrame_swiginit(self
,_windows_
.new_PreviewFrame(*args
, **kwargs
))
4343 self
._setOORInfo
(self
)
4345 def Initialize(*args
, **kwargs
):
4346 """Initialize(self)"""
4347 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4349 def CreateControlBar(*args
, **kwargs
):
4350 """CreateControlBar(self)"""
4351 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4353 def CreateCanvas(*args
, **kwargs
):
4354 """CreateCanvas(self)"""
4355 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4357 def GetControlBar(*args
, **kwargs
):
4358 """GetControlBar(self) -> PreviewControlBar"""
4359 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4361 _windows_
.PreviewFrame_swigregister(PreviewFrame
)
4363 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4364 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4365 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4366 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4367 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4368 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4369 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4370 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4371 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4372 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4373 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4374 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4375 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4376 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4377 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4378 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4379 class PreviewControlBar(Panel
):
4380 """Proxy of C++ PreviewControlBar class"""
4381 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4382 __repr__
= _swig_repr
4383 def __init__(self
, *args
, **kwargs
):
4385 __init__(self, PrintPreview preview, long buttons, Window parent,
4386 Point pos=DefaultPosition, Size size=DefaultSize,
4387 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4389 _windows_
.PreviewControlBar_swiginit(self
,_windows_
.new_PreviewControlBar(*args
, **kwargs
))
4390 self
._setOORInfo
(self
)
4392 def GetZoomControl(*args
, **kwargs
):
4393 """GetZoomControl(self) -> int"""
4394 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4396 def SetZoomControl(*args
, **kwargs
):
4397 """SetZoomControl(self, int zoom)"""
4398 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4400 def GetPrintPreview(*args
, **kwargs
):
4401 """GetPrintPreview(self) -> PrintPreview"""
4402 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4404 def OnNext(*args
, **kwargs
):
4406 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4408 def OnPrevious(*args
, **kwargs
):
4409 """OnPrevious(self)"""
4410 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4412 def OnFirst(*args
, **kwargs
):
4414 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4416 def OnLast(*args
, **kwargs
):
4418 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4420 def OnGoto(*args
, **kwargs
):
4422 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4424 _windows_
.PreviewControlBar_swigregister(PreviewControlBar
)
4426 class PrintPreview(_core
.Object
):
4427 """Proxy of C++ PrintPreview class"""
4428 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4429 __repr__
= _swig_repr
4430 def __init__(self
, *args
):
4432 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4433 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4435 _windows_
.PrintPreview_swiginit(self
,_windows_
.new_PrintPreview(*args
))
4436 __swig_destroy__
= _windows_
.delete_PrintPreview
4437 __del__
= lambda self
: None;
4438 def SetCurrentPage(*args
, **kwargs
):
4439 """SetCurrentPage(self, int pageNum) -> bool"""
4440 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4442 def GetCurrentPage(*args
, **kwargs
):
4443 """GetCurrentPage(self) -> int"""
4444 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4446 def SetPrintout(*args
, **kwargs
):
4447 """SetPrintout(self, Printout printout)"""
4448 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4450 def GetPrintout(*args
, **kwargs
):
4451 """GetPrintout(self) -> Printout"""
4452 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4454 def GetPrintoutForPrinting(*args
, **kwargs
):
4455 """GetPrintoutForPrinting(self) -> Printout"""
4456 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4458 def SetFrame(*args
, **kwargs
):
4459 """SetFrame(self, Frame frame)"""
4460 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4462 def SetCanvas(*args
, **kwargs
):
4463 """SetCanvas(self, PreviewCanvas canvas)"""
4464 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4466 def GetFrame(*args
, **kwargs
):
4467 """GetFrame(self) -> Frame"""
4468 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4470 def GetCanvas(*args
, **kwargs
):
4471 """GetCanvas(self) -> PreviewCanvas"""
4472 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4474 def PaintPage(*args
, **kwargs
):
4475 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4476 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4478 def DrawBlankPage(*args
, **kwargs
):
4479 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4480 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4482 def RenderPage(*args
, **kwargs
):
4483 """RenderPage(self, int pageNum) -> bool"""
4484 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4486 def AdjustScrollbars(*args
, **kwargs
):
4487 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4488 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4490 def GetPrintDialogData(*args
, **kwargs
):
4491 """GetPrintDialogData(self) -> PrintDialogData"""
4492 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4494 def SetZoom(*args
, **kwargs
):
4495 """SetZoom(self, int percent)"""
4496 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4498 def GetZoom(*args
, **kwargs
):
4499 """GetZoom(self) -> int"""
4500 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4502 def GetMaxPage(*args
, **kwargs
):
4503 """GetMaxPage(self) -> int"""
4504 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4506 def GetMinPage(*args
, **kwargs
):
4507 """GetMinPage(self) -> int"""
4508 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4510 def Ok(*args
, **kwargs
):
4511 """Ok(self) -> bool"""
4512 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4514 def SetOk(*args
, **kwargs
):
4515 """SetOk(self, bool ok)"""
4516 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4518 def Print(*args
, **kwargs
):
4519 """Print(self, bool interactive) -> bool"""
4520 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4522 def DetermineScaling(*args
, **kwargs
):
4523 """DetermineScaling(self)"""
4524 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4526 def __nonzero__(self
): return self
.Ok()
4527 _windows_
.PrintPreview_swigregister(PrintPreview
)
4529 class PyPrintPreview(PrintPreview
):
4530 """Proxy of C++ PyPrintPreview class"""
4531 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4532 __repr__
= _swig_repr
4533 def __init__(self
, *args
):
4535 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4536 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4538 _windows_
.PyPrintPreview_swiginit(self
,_windows_
.new_PyPrintPreview(*args
))
4539 self
._setCallbackInfo
(self
, PyPrintPreview
)
4541 def _setCallbackInfo(*args
, **kwargs
):
4542 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4543 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4545 def base_SetCurrentPage(*args
, **kw
):
4546 return PyPrintPreview
.SetCurrentPage(*args
, **kw
)
4547 base_SetCurrentPage
= wx
._deprecated
(base_SetCurrentPage
,
4548 "Please use PyPrintPreview.SetCurrentPage instead.")
4550 def base_PaintPage(*args
, **kw
):
4551 return PyPrintPreview
.PaintPage(*args
, **kw
)
4552 base_PaintPage
= wx
._deprecated
(base_PaintPage
,
4553 "Please use PyPrintPreview.PaintPage instead.")
4555 def base_DrawBlankPage(*args
, **kw
):
4556 return PyPrintPreview
.DrawBlankPage(*args
, **kw
)
4557 base_DrawBlankPage
= wx
._deprecated
(base_DrawBlankPage
,
4558 "Please use PyPrintPreview.DrawBlankPage instead.")
4560 def base_RenderPage(*args
, **kw
):
4561 return PyPrintPreview
.RenderPage(*args
, **kw
)
4562 base_RenderPage
= wx
._deprecated
(base_RenderPage
,
4563 "Please use PyPrintPreview.RenderPage instead.")
4565 def base_SetZoom(*args
, **kw
):
4566 return PyPrintPreview
.SetZoom(*args
, **kw
)
4567 base_SetZoom
= wx
._deprecated
(base_SetZoom
,
4568 "Please use PyPrintPreview.SetZoom instead.")
4570 def base_Print(*args
, **kw
):
4571 return PyPrintPreview
.Print(*args
, **kw
)
4572 base_Print
= wx
._deprecated
(base_Print
,
4573 "Please use PyPrintPreview.Print instead.")
4575 def base_DetermineScaling(*args
, **kw
):
4576 return PyPrintPreview
.DetermineScaling(*args
, **kw
)
4577 base_DetermineScaling
= wx
._deprecated
(base_DetermineScaling
,
4578 "Please use PyPrintPreview.DetermineScaling instead.")
4580 _windows_
.PyPrintPreview_swigregister(PyPrintPreview
)
4582 class PyPreviewFrame(PreviewFrame
):
4583 """Proxy of C++ PyPreviewFrame class"""
4584 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4585 __repr__
= _swig_repr
4586 def __init__(self
, *args
, **kwargs
):
4588 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4589 Size size=DefaultSize,
4590 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4592 _windows_
.PyPreviewFrame_swiginit(self
,_windows_
.new_PyPreviewFrame(*args
, **kwargs
))
4593 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4595 def _setCallbackInfo(*args
, **kwargs
):
4596 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4597 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4599 def SetPreviewCanvas(*args
, **kwargs
):
4600 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4601 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4603 def SetControlBar(*args
, **kwargs
):
4604 """SetControlBar(self, PreviewControlBar bar)"""
4605 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4607 def Initialize(*args
, **kwargs
):
4608 """Initialize(self)"""
4609 return _windows_
.PyPreviewFrame_Initialize(*args
, **kwargs
)
4611 def CreateCanvas(*args
, **kwargs
):
4612 """CreateCanvas(self)"""
4613 return _windows_
.PyPreviewFrame_CreateCanvas(*args
, **kwargs
)
4615 def CreateControlBar(*args
, **kwargs
):
4616 """CreateControlBar(self)"""
4617 return _windows_
.PyPreviewFrame_CreateControlBar(*args
, **kwargs
)
4619 def base_Initialize(*args
, **kw
):
4620 return PyPreviewFrame
.Initialize(*args
, **kw
)
4621 base_Initialize
= wx
._deprecated
(base_Initialize
,
4622 "Please use PyPreviewFrame.Initialize instead.")
4624 def base_CreateCanvas(*args
, **kw
):
4625 return PyPreviewFrame
.CreateCanvas(*args
, **kw
)
4626 base_CreateCanvas
= wx
._deprecated
(base_CreateCanvas
,
4627 "Please use PyPreviewFrame.CreateCanvas instead.")
4629 def base_CreateControlBar(*args
, **kw
):
4630 return PyPreviewFrame
.CreateControlBar(*args
, **kw
)
4631 base_CreateControlBar
= wx
._deprecated
(base_CreateControlBar
,
4632 "Please use PyPreviewFrame.CreateControlBar instead.")
4634 _windows_
.PyPreviewFrame_swigregister(PyPreviewFrame
)
4636 class PyPreviewControlBar(PreviewControlBar
):
4637 """Proxy of C++ PyPreviewControlBar class"""
4638 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4639 __repr__
= _swig_repr
4640 def __init__(self
, *args
, **kwargs
):
4642 __init__(self, PrintPreview preview, long buttons, Window parent,
4643 Point pos=DefaultPosition, Size size=DefaultSize,
4644 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4646 _windows_
.PyPreviewControlBar_swiginit(self
,_windows_
.new_PyPreviewControlBar(*args
, **kwargs
))
4647 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4649 def _setCallbackInfo(*args
, **kwargs
):
4650 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4651 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4653 def SetPrintPreview(*args
, **kwargs
):
4654 """SetPrintPreview(self, PrintPreview preview)"""
4655 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4657 def CreateButtons(*args
, **kwargs
):
4658 """CreateButtons(self)"""
4659 return _windows_
.PyPreviewControlBar_CreateButtons(*args
, **kwargs
)
4661 def SetZoomControl(*args
, **kwargs
):
4662 """SetZoomControl(self, int zoom)"""
4663 return _windows_
.PyPreviewControlBar_SetZoomControl(*args
, **kwargs
)
4665 def base_CreateButtons(*args
, **kw
):
4666 return PreviewControlBar
.CreateButtons(*args
, **kw
)
4667 base_CreateButtons
= wx
._deprecated
(base_CreateButtons
,
4668 "Please use PreviewControlBar.CreateButtons instead.")
4670 def base_SetZoomControl(*args
, **kw
):
4671 return PreviewControlBar
.SetZoomControl(*args
, **kw
)
4672 base_SetZoomControl
= wx
._deprecated
(base_SetZoomControl
,
4673 "Please use PreviewControlBar.SetZoomControl instead.")
4675 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBar
)