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 Panel_swigregister
= _windows_
.Panel_swigregister
110 Panel_swigregister(Panel
)
112 def PrePanel(*args
, **kwargs
):
113 """PrePanel() -> Panel"""
114 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
117 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
119 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
121 Get the default attributes for this class. This is useful if you want
122 to use the same font or colour in your own control as in a standard
123 control -- which is a much better idea than hard coding specific
124 colours or fonts which might look completely out of place on the
125 user's system, especially if it uses themes.
127 The variant parameter is only relevant under Mac currently and is
128 ignore under other platforms. Under Mac, it will change the size of
129 the returned font. See `wx.Window.SetWindowVariant` for more about
132 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
134 #---------------------------------------------------------------------------
136 class ScrolledWindow(Panel
):
137 """Proxy of C++ ScrolledWindow class"""
138 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
139 __repr__
= _swig_repr
140 def __init__(self
, *args
, **kwargs
):
142 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
143 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
144 String name=PanelNameStr) -> ScrolledWindow
146 _windows_
.ScrolledWindow_swiginit(self
,_windows_
.new_ScrolledWindow(*args
, **kwargs
))
147 self
._setOORInfo
(self
)
149 def Create(*args
, **kwargs
):
151 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
152 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
153 String name=PanelNameStr) -> bool
155 Create the GUI part of the Window for 2-phase creation mode.
157 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
159 def SetScrollbars(*args
, **kwargs
):
161 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
162 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
164 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
166 def Scroll(*args
, **kwargs
):
167 """Scroll(self, int x, int y)"""
168 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
170 def GetScrollPageSize(*args
, **kwargs
):
171 """GetScrollPageSize(self, int orient) -> int"""
172 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
174 def SetScrollPageSize(*args
, **kwargs
):
175 """SetScrollPageSize(self, int orient, int pageSize)"""
176 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
178 def SetScrollRate(*args
, **kwargs
):
179 """SetScrollRate(self, int xstep, int ystep)"""
180 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
182 def GetScrollPixelsPerUnit(*args
, **kwargs
):
184 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
186 Get the size of one logical unit in physical units.
188 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
190 def EnableScrolling(*args
, **kwargs
):
191 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
192 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
194 def GetViewStart(*args
, **kwargs
):
196 GetViewStart() -> (x,y)
200 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
202 def SetScale(*args
, **kwargs
):
203 """SetScale(self, double xs, double ys)"""
204 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
206 def GetScaleX(*args
, **kwargs
):
207 """GetScaleX(self) -> double"""
208 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
210 def GetScaleY(*args
, **kwargs
):
211 """GetScaleY(self) -> double"""
212 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
214 def CalcScrolledPosition(*args
):
216 CalcScrolledPosition(self, Point pt) -> Point
217 CalcScrolledPosition(int x, int y) -> (sx, sy)
219 Translate between scrolled and unscrolled coordinates.
221 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
223 def CalcUnscrolledPosition(*args
):
225 CalcUnscrolledPosition(self, Point pt) -> Point
226 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
228 Translate between scrolled and unscrolled coordinates.
230 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
232 def AdjustScrollbars(*args
, **kwargs
):
233 """AdjustScrollbars(self)"""
234 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
236 def CalcScrollInc(*args
, **kwargs
):
237 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
238 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
240 def SetTargetWindow(*args
, **kwargs
):
241 """SetTargetWindow(self, Window target)"""
242 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
244 def GetTargetWindow(*args
, **kwargs
):
245 """GetTargetWindow(self) -> Window"""
246 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
248 def DoPrepareDC(*args
, **kwargs
):
250 DoPrepareDC(self, DC dc)
252 Normally what is called by `PrepareDC`.
254 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
256 def GetClassDefaultAttributes(*args
, **kwargs
):
258 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
260 Get the default attributes for this class. This is useful if you want
261 to use the same font or colour in your own control as in a standard
262 control -- which is a much better idea than hard coding specific
263 colours or fonts which might look completely out of place on the
264 user's system, especially if it uses themes.
266 The variant parameter is only relevant under Mac currently and is
267 ignore under other platforms. Under Mac, it will change the size of
268 the returned font. See `wx.Window.SetWindowVariant` for more about
271 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
273 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
274 ScrolledWindow_swigregister
= _windows_
.ScrolledWindow_swigregister
275 ScrolledWindow_swigregister(ScrolledWindow
)
277 def PreScrolledWindow(*args
, **kwargs
):
278 """PreScrolledWindow() -> ScrolledWindow"""
279 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
282 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
284 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
286 Get the default attributes for this class. This is useful if you want
287 to use the same font or colour in your own control as in a standard
288 control -- which is a much better idea than hard coding specific
289 colours or fonts which might look completely out of place on the
290 user's system, especially if it uses themes.
292 The variant parameter is only relevant under Mac currently and is
293 ignore under other platforms. Under Mac, it will change the size of
294 the returned font. See `wx.Window.SetWindowVariant` for more about
297 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
299 #---------------------------------------------------------------------------
301 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
302 ICONIZE
= _windows_
.ICONIZE
303 MINIMIZE
= _windows_
.MINIMIZE
304 MAXIMIZE
= _windows_
.MAXIMIZE
305 CLOSE_BOX
= _windows_
.CLOSE_BOX
306 THICK_FRAME
= _windows_
.THICK_FRAME
307 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
308 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
309 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
310 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
311 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
312 RESIZE_BOX
= _windows_
.RESIZE_BOX
313 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
314 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
315 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
316 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
317 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
318 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
319 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
320 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
321 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
322 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
323 FRAME_EX_METAL
= _windows_
.FRAME_EX_METAL
324 DIALOG_EX_METAL
= _windows_
.DIALOG_EX_METAL
325 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
326 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
327 USER_COLOURS
= _windows_
.USER_COLOURS
328 NO_3D
= _windows_
.NO_3D
329 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
330 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
331 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
332 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
333 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
334 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
335 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
336 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
337 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
338 class TopLevelWindow(_core
.Window
):
339 """Proxy of C++ TopLevelWindow class"""
340 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
341 def __init__(self
): raise AttributeError, "No constructor defined"
342 __repr__
= _swig_repr
343 def Maximize(*args
, **kwargs
):
344 """Maximize(self, bool maximize=True)"""
345 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
347 def Restore(*args
, **kwargs
):
349 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
351 def Iconize(*args
, **kwargs
):
352 """Iconize(self, bool iconize=True)"""
353 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
355 def IsMaximized(*args
, **kwargs
):
356 """IsMaximized(self) -> bool"""
357 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
359 def IsAlwaysMaximized(*args
, **kwargs
):
360 """IsAlwaysMaximized(self) -> bool"""
361 return _windows_
.TopLevelWindow_IsAlwaysMaximized(*args
, **kwargs
)
363 def IsIconized(*args
, **kwargs
):
364 """IsIconized(self) -> bool"""
365 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
367 def GetIcon(*args
, **kwargs
):
368 """GetIcon(self) -> Icon"""
369 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
371 def SetIcon(*args
, **kwargs
):
372 """SetIcon(self, Icon icon)"""
373 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
375 def SetIcons(*args
, **kwargs
):
376 """SetIcons(self, wxIconBundle icons)"""
377 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
379 def ShowFullScreen(*args
, **kwargs
):
380 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
381 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
383 def IsFullScreen(*args
, **kwargs
):
384 """IsFullScreen(self) -> bool"""
385 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
387 def SetTitle(*args
, **kwargs
):
388 """SetTitle(self, String title)"""
389 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
391 def GetTitle(*args
, **kwargs
):
392 """GetTitle(self) -> String"""
393 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
395 def SetShape(*args
, **kwargs
):
396 """SetShape(self, Region region) -> bool"""
397 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
399 def RequestUserAttention(*args
, **kwargs
):
400 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
401 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
403 def IsActive(*args
, **kwargs
):
404 """IsActive(self) -> bool"""
405 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
407 def MacSetMetalAppearance(*args
, **kwargs
):
408 """MacSetMetalAppearance(self, bool on)"""
409 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
411 def MacGetMetalAppearance(*args
, **kwargs
):
412 """MacGetMetalAppearance(self) -> bool"""
413 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
415 def CenterOnScreen(*args
, **kwargs
):
417 CenterOnScreen(self, int dir=BOTH)
419 Center the window on screen
421 return _windows_
.TopLevelWindow_CenterOnScreen(*args
, **kwargs
)
423 CentreOnScreen
= CenterOnScreen
424 TopLevelWindow_swigregister
= _windows_
.TopLevelWindow_swigregister
425 TopLevelWindow_swigregister(TopLevelWindow
)
426 cvar
= _windows_
.cvar
427 FrameNameStr
= cvar
.FrameNameStr
428 DialogNameStr
= cvar
.DialogNameStr
429 StatusLineNameStr
= cvar
.StatusLineNameStr
430 ToolBarNameStr
= cvar
.ToolBarNameStr
432 #---------------------------------------------------------------------------
434 class Frame(TopLevelWindow
):
435 """Proxy of C++ Frame class"""
436 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
437 __repr__
= _swig_repr
438 def __init__(self
, *args
, **kwargs
):
440 __init__(self, Window parent, int id=-1, String title=EmptyString,
441 Point pos=DefaultPosition, Size size=DefaultSize,
442 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
444 _windows_
.Frame_swiginit(self
,_windows_
.new_Frame(*args
, **kwargs
))
445 self
._setOORInfo
(self
)
447 def Create(*args
, **kwargs
):
449 Create(self, Window parent, int id=-1, String title=EmptyString,
450 Point pos=DefaultPosition, Size size=DefaultSize,
451 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
453 return _windows_
.Frame_Create(*args
, **kwargs
)
455 def SendSizeEvent(*args
, **kwargs
):
456 """SendSizeEvent(self)"""
457 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
459 def SetMenuBar(*args
, **kwargs
):
460 """SetMenuBar(self, MenuBar menubar)"""
461 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
463 def GetMenuBar(*args
, **kwargs
):
464 """GetMenuBar(self) -> MenuBar"""
465 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
467 def ProcessCommand(*args
, **kwargs
):
468 """ProcessCommand(self, int winid) -> bool"""
469 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
471 Command
= ProcessCommand
472 def CreateStatusBar(*args
, **kwargs
):
474 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
475 String name=StatusLineNameStr) -> StatusBar
477 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
479 def GetStatusBar(*args
, **kwargs
):
480 """GetStatusBar(self) -> StatusBar"""
481 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
483 def SetStatusBar(*args
, **kwargs
):
484 """SetStatusBar(self, StatusBar statBar)"""
485 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
487 def SetStatusText(*args
, **kwargs
):
488 """SetStatusText(self, String text, int number=0)"""
489 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
491 def SetStatusWidths(*args
, **kwargs
):
492 """SetStatusWidths(self, int widths)"""
493 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
495 def PushStatusText(*args
, **kwargs
):
496 """PushStatusText(self, String text, int number=0)"""
497 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
499 def PopStatusText(*args
, **kwargs
):
500 """PopStatusText(self, int number=0)"""
501 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
503 def SetStatusBarPane(*args
, **kwargs
):
504 """SetStatusBarPane(self, int n)"""
505 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
507 def GetStatusBarPane(*args
, **kwargs
):
508 """GetStatusBarPane(self) -> int"""
509 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
511 def CreateToolBar(*args
, **kwargs
):
512 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
513 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
515 def GetToolBar(*args
, **kwargs
):
516 """GetToolBar(self) -> wxToolBar"""
517 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
519 def SetToolBar(*args
, **kwargs
):
520 """SetToolBar(self, wxToolBar toolbar)"""
521 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
523 def DoGiveHelp(*args
, **kwargs
):
524 """DoGiveHelp(self, String text, bool show)"""
525 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
527 def DoMenuUpdates(*args
, **kwargs
):
528 """DoMenuUpdates(self, Menu menu=None)"""
529 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
531 def GetClassDefaultAttributes(*args
, **kwargs
):
533 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
535 Get the default attributes for this class. This is useful if you want
536 to use the same font or colour in your own control as in a standard
537 control -- which is a much better idea than hard coding specific
538 colours or fonts which might look completely out of place on the
539 user's system, especially if it uses themes.
541 The variant parameter is only relevant under Mac currently and is
542 ignore under other platforms. Under Mac, it will change the size of
543 the returned font. See `wx.Window.SetWindowVariant` for more about
546 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
548 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
549 Frame_swigregister
= _windows_
.Frame_swigregister
550 Frame_swigregister(Frame
)
552 def PreFrame(*args
, **kwargs
):
553 """PreFrame() -> Frame"""
554 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
557 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
559 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
561 Get the default attributes for this class. This is useful if you want
562 to use the same font or colour in your own control as in a standard
563 control -- which is a much better idea than hard coding specific
564 colours or fonts which might look completely out of place on the
565 user's system, especially if it uses themes.
567 The variant parameter is only relevant under Mac currently and is
568 ignore under other platforms. Under Mac, it will change the size of
569 the returned font. See `wx.Window.SetWindowVariant` for more about
572 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
574 #---------------------------------------------------------------------------
576 class Dialog(TopLevelWindow
):
577 """Proxy of C++ Dialog class"""
578 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
579 __repr__
= _swig_repr
580 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
581 def __init__(self
, *args
, **kwargs
):
583 __init__(self, Window parent, int id=-1, String title=EmptyString,
584 Point pos=DefaultPosition, Size size=DefaultSize,
585 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
587 _windows_
.Dialog_swiginit(self
,_windows_
.new_Dialog(*args
, **kwargs
))
588 self
._setOORInfo
(self
)
590 def Create(*args
, **kwargs
):
592 Create(self, Window parent, int id=-1, String title=EmptyString,
593 Point pos=DefaultPosition, Size size=DefaultSize,
594 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
596 return _windows_
.Dialog_Create(*args
, **kwargs
)
598 def SetReturnCode(*args
, **kwargs
):
599 """SetReturnCode(self, int returnCode)"""
600 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
602 def GetReturnCode(*args
, **kwargs
):
603 """GetReturnCode(self) -> int"""
604 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
606 def SetAffirmativeId(*args
, **kwargs
):
607 """SetAffirmativeId(self, int affirmativeId)"""
608 return _windows_
.Dialog_SetAffirmativeId(*args
, **kwargs
)
610 def GetAffirmativeId(*args
, **kwargs
):
611 """GetAffirmativeId(self) -> int"""
612 return _windows_
.Dialog_GetAffirmativeId(*args
, **kwargs
)
614 def SetEscapeId(*args
, **kwargs
):
615 """SetEscapeId(self, int escapeId)"""
616 return _windows_
.Dialog_SetEscapeId(*args
, **kwargs
)
618 def GetEscapeId(*args
, **kwargs
):
619 """GetEscapeId(self) -> int"""
620 return _windows_
.Dialog_GetEscapeId(*args
, **kwargs
)
622 def CreateTextSizer(*args
, **kwargs
):
623 """CreateTextSizer(self, String message) -> Sizer"""
624 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
626 def CreateButtonSizer(*args
, **kwargs
):
627 """CreateButtonSizer(self, long flags, bool separated=False, int distance=0) -> Sizer"""
628 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
630 def CreateStdDialogButtonSizer(*args
, **kwargs
):
631 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
632 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
634 def IsModal(*args
, **kwargs
):
635 """IsModal(self) -> bool"""
636 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
638 def ShowModal(*args
, **kwargs
):
639 """ShowModal(self) -> int"""
640 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
642 def EndModal(*args
, **kwargs
):
643 """EndModal(self, int retCode)"""
644 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
646 def GetClassDefaultAttributes(*args
, **kwargs
):
648 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
650 Get the default attributes for this class. This is useful if you want
651 to use the same font or colour in your own control as in a standard
652 control -- which is a much better idea than hard coding specific
653 colours or fonts which might look completely out of place on the
654 user's system, especially if it uses themes.
656 The variant parameter is only relevant under Mac currently and is
657 ignore under other platforms. Under Mac, it will change the size of
658 the returned font. See `wx.Window.SetWindowVariant` for more about
661 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
663 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
664 Dialog_swigregister
= _windows_
.Dialog_swigregister
665 Dialog_swigregister(Dialog
)
667 def PreDialog(*args
, **kwargs
):
668 """PreDialog() -> Dialog"""
669 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
672 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
674 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
676 Get the default attributes for this class. This is useful if you want
677 to use the same font or colour in your own control as in a standard
678 control -- which is a much better idea than hard coding specific
679 colours or fonts which might look completely out of place on the
680 user's system, especially if it uses themes.
682 The variant parameter is only relevant under Mac currently and is
683 ignore under other platforms. Under Mac, it will change the size of
684 the returned font. See `wx.Window.SetWindowVariant` for more about
687 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
689 #---------------------------------------------------------------------------
691 class MiniFrame(Frame
):
692 """Proxy of C++ MiniFrame class"""
693 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
694 __repr__
= _swig_repr
695 def __init__(self
, *args
, **kwargs
):
697 __init__(self, Window parent, int id=-1, String title=EmptyString,
698 Point pos=DefaultPosition, Size size=DefaultSize,
699 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
701 _windows_
.MiniFrame_swiginit(self
,_windows_
.new_MiniFrame(*args
, **kwargs
))
702 self
._setOORInfo
(self
)
704 def Create(*args
, **kwargs
):
706 Create(self, Window parent, int id=-1, String title=EmptyString,
707 Point pos=DefaultPosition, Size size=DefaultSize,
708 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
710 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
712 MiniFrame_swigregister
= _windows_
.MiniFrame_swigregister
713 MiniFrame_swigregister(MiniFrame
)
715 def PreMiniFrame(*args
, **kwargs
):
716 """PreMiniFrame() -> MiniFrame"""
717 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
720 #---------------------------------------------------------------------------
722 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
723 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
724 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
725 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
726 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
727 class SplashScreenWindow(_core
.Window
):
728 """Proxy of C++ SplashScreenWindow class"""
729 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
730 __repr__
= _swig_repr
731 def __init__(self
, *args
, **kwargs
):
733 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
734 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
736 _windows_
.SplashScreenWindow_swiginit(self
,_windows_
.new_SplashScreenWindow(*args
, **kwargs
))
737 self
._setOORInfo
(self
)
739 def SetBitmap(*args
, **kwargs
):
740 """SetBitmap(self, Bitmap bitmap)"""
741 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
743 def GetBitmap(*args
, **kwargs
):
744 """GetBitmap(self) -> Bitmap"""
745 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
747 SplashScreenWindow_swigregister
= _windows_
.SplashScreenWindow_swigregister
748 SplashScreenWindow_swigregister(SplashScreenWindow
)
750 class SplashScreen(Frame
):
751 """Proxy of C++ SplashScreen class"""
752 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
753 __repr__
= _swig_repr
754 def __init__(self
, *args
, **kwargs
):
756 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
757 Window parent, int id=-1, Point pos=DefaultPosition,
758 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
760 _windows_
.SplashScreen_swiginit(self
,_windows_
.new_SplashScreen(*args
, **kwargs
))
761 self
._setOORInfo
(self
)
763 def GetSplashStyle(*args
, **kwargs
):
764 """GetSplashStyle(self) -> long"""
765 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
767 def GetSplashWindow(*args
, **kwargs
):
768 """GetSplashWindow(self) -> SplashScreenWindow"""
769 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
771 def GetTimeout(*args
, **kwargs
):
772 """GetTimeout(self) -> int"""
773 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
775 SplashScreen_swigregister
= _windows_
.SplashScreen_swigregister
776 SplashScreen_swigregister(SplashScreen
)
778 #---------------------------------------------------------------------------
780 SB_NORMAL
= _windows_
.SB_NORMAL
781 SB_FLAT
= _windows_
.SB_FLAT
782 SB_RAISED
= _windows_
.SB_RAISED
783 class StatusBar(_core
.Window
):
784 """Proxy of C++ StatusBar class"""
785 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
786 __repr__
= _swig_repr
787 def __init__(self
, *args
, **kwargs
):
789 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
790 String name=StatusLineNameStr) -> StatusBar
792 _windows_
.StatusBar_swiginit(self
,_windows_
.new_StatusBar(*args
, **kwargs
))
793 self
._setOORInfo
(self
)
795 def Create(*args
, **kwargs
):
796 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
797 return _windows_
.StatusBar_Create(*args
, **kwargs
)
799 def SetFieldsCount(*args
, **kwargs
):
800 """SetFieldsCount(self, int number=1)"""
801 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
803 def GetFieldsCount(*args
, **kwargs
):
804 """GetFieldsCount(self) -> int"""
805 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
807 def SetStatusText(*args
, **kwargs
):
808 """SetStatusText(self, String text, int number=0)"""
809 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
811 def GetStatusText(*args
, **kwargs
):
812 """GetStatusText(self, int number=0) -> String"""
813 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
815 def PushStatusText(*args
, **kwargs
):
816 """PushStatusText(self, String text, int number=0)"""
817 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
819 def PopStatusText(*args
, **kwargs
):
820 """PopStatusText(self, int number=0)"""
821 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
823 def SetStatusWidths(*args
, **kwargs
):
824 """SetStatusWidths(self, int widths)"""
825 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
827 def SetStatusStyles(*args
, **kwargs
):
828 """SetStatusStyles(self, int styles)"""
829 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
831 def GetFieldRect(*args
, **kwargs
):
832 """GetFieldRect(self, int i) -> Rect"""
833 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
835 def SetMinHeight(*args
, **kwargs
):
836 """SetMinHeight(self, int height)"""
837 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
839 def GetBorderX(*args
, **kwargs
):
840 """GetBorderX(self) -> int"""
841 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
843 def GetBorderY(*args
, **kwargs
):
844 """GetBorderY(self) -> int"""
845 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
847 def GetClassDefaultAttributes(*args
, **kwargs
):
849 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
851 Get the default attributes for this class. This is useful if you want
852 to use the same font or colour in your own control as in a standard
853 control -- which is a much better idea than hard coding specific
854 colours or fonts which might look completely out of place on the
855 user's system, especially if it uses themes.
857 The variant parameter is only relevant under Mac currently and is
858 ignore under other platforms. Under Mac, it will change the size of
859 the returned font. See `wx.Window.SetWindowVariant` for more about
862 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
864 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
865 StatusBar_swigregister
= _windows_
.StatusBar_swigregister
866 StatusBar_swigregister(StatusBar
)
868 def PreStatusBar(*args
, **kwargs
):
869 """PreStatusBar() -> StatusBar"""
870 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
873 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
875 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
877 Get the default attributes for this class. This is useful if you want
878 to use the same font or colour in your own control as in a standard
879 control -- which is a much better idea than hard coding specific
880 colours or fonts which might look completely out of place on the
881 user's system, especially if it uses themes.
883 The variant parameter is only relevant under Mac currently and is
884 ignore under other platforms. Under Mac, it will change the size of
885 the returned font. See `wx.Window.SetWindowVariant` for more about
888 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
890 #---------------------------------------------------------------------------
892 SP_NOBORDER
= _windows_
.SP_NOBORDER
893 SP_NOSASH
= _windows_
.SP_NOSASH
894 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
895 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
896 SP_3DSASH
= _windows_
.SP_3DSASH
897 SP_3DBORDER
= _windows_
.SP_3DBORDER
898 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
899 SP_BORDER
= _windows_
.SP_BORDER
900 SP_3D
= _windows_
.SP_3D
901 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
902 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
903 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
904 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
905 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
906 class SplitterWindow(_core
.Window
):
908 wx.SplitterWindow manages up to two subwindows or panes, with an
909 optional vertical or horizontal split which can be used with the mouse
912 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
913 __repr__
= _swig_repr
914 def __init__(self
, *args
, **kwargs
):
916 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
917 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
919 Constructor. Creates and shows a SplitterWindow.
921 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
922 _windows_
.SplitterWindow_swiginit(self
,_windows_
.new_SplitterWindow(*args
, **kwargs
))
923 self
._setOORInfo
(self
)
925 def Create(*args
, **kwargs
):
927 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
928 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
930 Create the GUI part of the SplitterWindow for the 2-phase create.
932 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
934 def GetWindow1(*args
, **kwargs
):
936 GetWindow1(self) -> Window
938 Gets the only or left/top pane.
940 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
942 def GetWindow2(*args
, **kwargs
):
944 GetWindow2(self) -> Window
946 Gets the right/bottom pane.
948 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
950 def SetSplitMode(*args
, **kwargs
):
952 SetSplitMode(self, int mode)
954 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
955 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
958 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
960 def GetSplitMode(*args
, **kwargs
):
962 GetSplitMode(self) -> int
966 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
968 def Initialize(*args
, **kwargs
):
970 Initialize(self, Window window)
972 Initializes the splitter window to have one pane. This should be
973 called if you wish to initially view only a single pane in the
974 splitter window. The child window is shown if it is currently hidden.
976 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
978 def SplitVertically(*args
, **kwargs
):
980 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
982 Initializes the left and right panes of the splitter window. The
983 child windows are shown if they are currently hidden.
985 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
987 def SplitHorizontally(*args
, **kwargs
):
989 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
991 Initializes the top and bottom panes of the splitter window. The
992 child windows are shown if they are currently hidden.
994 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
996 def Unsplit(*args
, **kwargs
):
998 Unsplit(self, Window toRemove=None) -> bool
1000 Unsplits the window. Pass the pane to remove, or None to remove the
1001 right or bottom pane. Returns True if successful, False otherwise (the
1002 window was not split).
1004 This function will not actually delete the pane being
1005 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1006 for the desired behaviour. By default, the pane being
1007 removed is only hidden.
1009 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1011 def ReplaceWindow(*args
, **kwargs
):
1013 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1015 This function replaces one of the windows managed by the
1016 SplitterWindow with another one. It is in general better to use it
1017 instead of calling Unsplit() and then resplitting the window back
1018 because it will provoke much less flicker. It is valid to call this
1019 function whether the splitter has two windows or only one.
1021 Both parameters should be non-None and winOld must specify one of the
1022 windows managed by the splitter. If the parameters are incorrect or
1023 the window couldn't be replaced, False is returned. Otherwise the
1024 function will return True, but please notice that it will not Destroy
1025 the replaced window and you may wish to do it yourself.
1027 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1029 def UpdateSize(*args
, **kwargs
):
1033 Causes any pending sizing of the sash and child panes to take place
1036 Such resizing normally takes place in idle time, in order to wait for
1037 layout to be completed. However, this can cause unacceptable flicker
1038 as the panes are resized after the window has been shown. To work
1039 around this, you can perform window layout (for example by sending a
1040 size event to the parent window), and then call this function, before
1041 showing the top-level window.
1043 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1045 def IsSplit(*args
, **kwargs
):
1047 IsSplit(self) -> bool
1049 Is the window split?
1051 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1053 def SetSashSize(*args
, **kwargs
):
1055 SetSashSize(self, int width)
1059 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1061 def SetBorderSize(*args
, **kwargs
):
1063 SetBorderSize(self, int width)
1065 Sets the border size. Currently a NOP.
1067 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1069 def GetSashSize(*args
, **kwargs
):
1071 GetSashSize(self) -> int
1075 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1077 def GetBorderSize(*args
, **kwargs
):
1079 GetBorderSize(self) -> int
1081 Gets the border size
1083 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1085 def SetSashPosition(*args
, **kwargs
):
1087 SetSashPosition(self, int position, bool redraw=True)
1089 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1090 are resized and the sash and border are redrawn.
1092 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1094 def GetSashPosition(*args
, **kwargs
):
1096 GetSashPosition(self) -> int
1098 Returns the surrent sash position.
1100 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1102 def SetSashGravity(*args
, **kwargs
):
1104 SetSashGravity(self, double gravity)
1106 Set the sash gravity. Gravity is a floating-point factor between 0.0
1107 and 1.0 which controls position of sash while resizing the
1108 `wx.SplitterWindow`. The gravity specifies how much the left/top
1109 window will grow while resizing.
1111 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1113 def GetSashGravity(*args
, **kwargs
):
1115 GetSashGravity(self) -> double
1117 Gets the sash gravity.
1119 :see: `SetSashGravity`
1122 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1124 def SetMinimumPaneSize(*args
, **kwargs
):
1126 SetMinimumPaneSize(self, int min)
1128 Sets the minimum pane size in pixels.
1130 The default minimum pane size is zero, which means that either pane
1131 can be reduced to zero by dragging the sash, thus removing one of the
1132 panes. To prevent this behaviour (and veto out-of-range sash
1133 dragging), set a minimum size, for example 20 pixels. If the
1134 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1135 the window may be unsplit even if minimum size is non-zero.
1137 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1139 def GetMinimumPaneSize(*args
, **kwargs
):
1141 GetMinimumPaneSize(self) -> int
1143 Gets the minimum pane size in pixels.
1145 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1147 def SashHitTest(*args
, **kwargs
):
1149 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1151 Tests for x, y over the sash
1153 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1155 def SizeWindows(*args
, **kwargs
):
1161 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1163 def SetNeedUpdating(*args
, **kwargs
):
1164 """SetNeedUpdating(self, bool needUpdating)"""
1165 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1167 def GetNeedUpdating(*args
, **kwargs
):
1168 """GetNeedUpdating(self) -> bool"""
1169 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1171 def GetClassDefaultAttributes(*args
, **kwargs
):
1173 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1175 Get the default attributes for this class. This is useful if you want
1176 to use the same font or colour in your own control as in a standard
1177 control -- which is a much better idea than hard coding specific
1178 colours or fonts which might look completely out of place on the
1179 user's system, especially if it uses themes.
1181 The variant parameter is only relevant under Mac currently and is
1182 ignore under other platforms. Under Mac, it will change the size of
1183 the returned font. See `wx.Window.SetWindowVariant` for more about
1186 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1188 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1189 SplitterWindow_swigregister
= _windows_
.SplitterWindow_swigregister
1190 SplitterWindow_swigregister(SplitterWindow
)
1191 SplitterNameStr
= cvar
.SplitterNameStr
1193 def PreSplitterWindow(*args
, **kwargs
):
1195 PreSplitterWindow() -> SplitterWindow
1197 Precreate a SplitterWindow for 2-phase creation.
1199 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1202 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1204 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1206 Get the default attributes for this class. This is useful if you want
1207 to use the same font or colour in your own control as in a standard
1208 control -- which is a much better idea than hard coding specific
1209 colours or fonts which might look completely out of place on the
1210 user's system, especially if it uses themes.
1212 The variant parameter is only relevant under Mac currently and is
1213 ignore under other platforms. Under Mac, it will change the size of
1214 the returned font. See `wx.Window.SetWindowVariant` for more about
1217 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1219 class SplitterEvent(_core
.NotifyEvent
):
1220 """This class represents the events generated by a splitter control."""
1221 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1222 __repr__
= _swig_repr
1223 def __init__(self
, *args
, **kwargs
):
1225 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1227 This class represents the events generated by a splitter control.
1229 _windows_
.SplitterEvent_swiginit(self
,_windows_
.new_SplitterEvent(*args
, **kwargs
))
1230 def SetSashPosition(*args
, **kwargs
):
1232 SetSashPosition(self, int pos)
1234 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1235 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1236 events, sets the the new sash position. In the case of _CHANGING
1237 events, sets the new tracking bar position so visual feedback during
1238 dragging will represent that change that will actually take place. Set
1239 to -1 from the event handler code to prevent repositioning.
1241 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1243 def GetSashPosition(*args
, **kwargs
):
1245 GetSashPosition(self) -> int
1247 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1248 and EVT_SPLITTER_SASH_POS_CHANGED events.
1250 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1252 def GetWindowBeingRemoved(*args
, **kwargs
):
1254 GetWindowBeingRemoved(self) -> Window
1256 Returns a pointer to the window being removed when a splitter window
1259 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1261 def GetX(*args
, **kwargs
):
1265 Returns the x coordinate of the double-click point in a
1266 EVT_SPLITTER_DCLICK event.
1268 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1270 def GetY(*args
, **kwargs
):
1274 Returns the y coordinate of the double-click point in a
1275 EVT_SPLITTER_DCLICK event.
1277 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1279 SplitterEvent_swigregister
= _windows_
.SplitterEvent_swigregister
1280 SplitterEvent_swigregister(SplitterEvent
)
1282 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1283 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1284 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1285 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1286 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1287 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1288 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1289 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1290 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1292 #---------------------------------------------------------------------------
1294 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1295 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1296 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1297 SW_NOBORDER
= _windows_
.SW_NOBORDER
1298 SW_BORDER
= _windows_
.SW_BORDER
1299 SW_3DSASH
= _windows_
.SW_3DSASH
1300 SW_3DBORDER
= _windows_
.SW_3DBORDER
1301 SW_3D
= _windows_
.SW_3D
1302 SASH_TOP
= _windows_
.SASH_TOP
1303 SASH_RIGHT
= _windows_
.SASH_RIGHT
1304 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1305 SASH_LEFT
= _windows_
.SASH_LEFT
1306 SASH_NONE
= _windows_
.SASH_NONE
1307 class SashWindow(_core
.Window
):
1308 """Proxy of C++ SashWindow class"""
1309 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1310 __repr__
= _swig_repr
1311 def __init__(self
, *args
, **kwargs
):
1313 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1314 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1315 String name=SashNameStr) -> SashWindow
1317 _windows_
.SashWindow_swiginit(self
,_windows_
.new_SashWindow(*args
, **kwargs
))
1318 self
._setOORInfo
(self
)
1320 def Create(*args
, **kwargs
):
1322 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1323 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1324 String name=SashNameStr) -> bool
1326 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1328 def SetSashVisible(*args
, **kwargs
):
1329 """SetSashVisible(self, int edge, bool sash)"""
1330 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1332 def GetSashVisible(*args
, **kwargs
):
1333 """GetSashVisible(self, int edge) -> bool"""
1334 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1336 def SetSashBorder(*args
, **kwargs
):
1337 """SetSashBorder(self, int edge, bool border)"""
1338 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1340 def HasBorder(*args
, **kwargs
):
1341 """HasBorder(self, int edge) -> bool"""
1342 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1344 def GetEdgeMargin(*args
, **kwargs
):
1345 """GetEdgeMargin(self, int edge) -> int"""
1346 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1348 def SetDefaultBorderSize(*args
, **kwargs
):
1349 """SetDefaultBorderSize(self, int width)"""
1350 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1352 def GetDefaultBorderSize(*args
, **kwargs
):
1353 """GetDefaultBorderSize(self) -> int"""
1354 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1356 def SetExtraBorderSize(*args
, **kwargs
):
1357 """SetExtraBorderSize(self, int width)"""
1358 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1360 def GetExtraBorderSize(*args
, **kwargs
):
1361 """GetExtraBorderSize(self) -> int"""
1362 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1364 def SetMinimumSizeX(*args
, **kwargs
):
1365 """SetMinimumSizeX(self, int min)"""
1366 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1368 def SetMinimumSizeY(*args
, **kwargs
):
1369 """SetMinimumSizeY(self, int min)"""
1370 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1372 def GetMinimumSizeX(*args
, **kwargs
):
1373 """GetMinimumSizeX(self) -> int"""
1374 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1376 def GetMinimumSizeY(*args
, **kwargs
):
1377 """GetMinimumSizeY(self) -> int"""
1378 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1380 def SetMaximumSizeX(*args
, **kwargs
):
1381 """SetMaximumSizeX(self, int max)"""
1382 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1384 def SetMaximumSizeY(*args
, **kwargs
):
1385 """SetMaximumSizeY(self, int max)"""
1386 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1388 def GetMaximumSizeX(*args
, **kwargs
):
1389 """GetMaximumSizeX(self) -> int"""
1390 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1392 def GetMaximumSizeY(*args
, **kwargs
):
1393 """GetMaximumSizeY(self) -> int"""
1394 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1396 def SashHitTest(*args
, **kwargs
):
1397 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1398 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1400 def SizeWindows(*args
, **kwargs
):
1401 """SizeWindows(self)"""
1402 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1404 SashWindow_swigregister
= _windows_
.SashWindow_swigregister
1405 SashWindow_swigregister(SashWindow
)
1406 SashNameStr
= cvar
.SashNameStr
1407 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1409 def PreSashWindow(*args
, **kwargs
):
1410 """PreSashWindow() -> SashWindow"""
1411 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1414 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1415 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1416 class SashEvent(_core
.CommandEvent
):
1417 """Proxy of C++ SashEvent class"""
1418 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1419 __repr__
= _swig_repr
1420 def __init__(self
, *args
, **kwargs
):
1421 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1422 _windows_
.SashEvent_swiginit(self
,_windows_
.new_SashEvent(*args
, **kwargs
))
1423 def SetEdge(*args
, **kwargs
):
1424 """SetEdge(self, int edge)"""
1425 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1427 def GetEdge(*args
, **kwargs
):
1428 """GetEdge(self) -> int"""
1429 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1431 def SetDragRect(*args
, **kwargs
):
1432 """SetDragRect(self, Rect rect)"""
1433 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1435 def GetDragRect(*args
, **kwargs
):
1436 """GetDragRect(self) -> Rect"""
1437 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1439 def SetDragStatus(*args
, **kwargs
):
1440 """SetDragStatus(self, int status)"""
1441 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1443 def GetDragStatus(*args
, **kwargs
):
1444 """GetDragStatus(self) -> int"""
1445 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1447 SashEvent_swigregister
= _windows_
.SashEvent_swigregister
1448 SashEvent_swigregister(SashEvent
)
1450 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1451 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1452 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1454 #---------------------------------------------------------------------------
1456 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1457 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1458 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1459 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1460 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1461 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1462 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1463 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1464 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1465 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1466 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1467 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1468 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1469 class QueryLayoutInfoEvent(_core
.Event
):
1470 """Proxy of C++ QueryLayoutInfoEvent class"""
1471 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1472 __repr__
= _swig_repr
1473 def __init__(self
, *args
, **kwargs
):
1474 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1475 _windows_
.QueryLayoutInfoEvent_swiginit(self
,_windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
))
1476 def SetRequestedLength(*args
, **kwargs
):
1477 """SetRequestedLength(self, int length)"""
1478 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1480 def GetRequestedLength(*args
, **kwargs
):
1481 """GetRequestedLength(self) -> int"""
1482 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1484 def SetFlags(*args
, **kwargs
):
1485 """SetFlags(self, int flags)"""
1486 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1488 def GetFlags(*args
, **kwargs
):
1489 """GetFlags(self) -> int"""
1490 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1492 def SetSize(*args
, **kwargs
):
1493 """SetSize(self, Size size)"""
1494 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1496 def GetSize(*args
, **kwargs
):
1497 """GetSize(self) -> Size"""
1498 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1500 def SetOrientation(*args
, **kwargs
):
1501 """SetOrientation(self, int orient)"""
1502 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1504 def GetOrientation(*args
, **kwargs
):
1505 """GetOrientation(self) -> int"""
1506 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1508 def SetAlignment(*args
, **kwargs
):
1509 """SetAlignment(self, int align)"""
1510 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1512 def GetAlignment(*args
, **kwargs
):
1513 """GetAlignment(self) -> int"""
1514 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1516 QueryLayoutInfoEvent_swigregister
= _windows_
.QueryLayoutInfoEvent_swigregister
1517 QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent
)
1519 class CalculateLayoutEvent(_core
.Event
):
1520 """Proxy of C++ CalculateLayoutEvent class"""
1521 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1522 __repr__
= _swig_repr
1523 def __init__(self
, *args
, **kwargs
):
1524 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1525 _windows_
.CalculateLayoutEvent_swiginit(self
,_windows_
.new_CalculateLayoutEvent(*args
, **kwargs
))
1526 def SetFlags(*args
, **kwargs
):
1527 """SetFlags(self, int flags)"""
1528 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1530 def GetFlags(*args
, **kwargs
):
1531 """GetFlags(self) -> int"""
1532 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1534 def SetRect(*args
, **kwargs
):
1535 """SetRect(self, Rect rect)"""
1536 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1538 def GetRect(*args
, **kwargs
):
1539 """GetRect(self) -> Rect"""
1540 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1542 CalculateLayoutEvent_swigregister
= _windows_
.CalculateLayoutEvent_swigregister
1543 CalculateLayoutEvent_swigregister(CalculateLayoutEvent
)
1545 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1546 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1548 class SashLayoutWindow(SashWindow
):
1549 """Proxy of C++ SashLayoutWindow class"""
1550 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1551 __repr__
= _swig_repr
1552 def __init__(self
, *args
, **kwargs
):
1554 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1555 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1556 String name=SashLayoutNameStr) -> SashLayoutWindow
1558 _windows_
.SashLayoutWindow_swiginit(self
,_windows_
.new_SashLayoutWindow(*args
, **kwargs
))
1559 self
._setOORInfo
(self
)
1561 def Create(*args
, **kwargs
):
1563 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1564 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1565 String name=SashLayoutNameStr) -> bool
1567 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1569 def GetAlignment(*args
, **kwargs
):
1570 """GetAlignment(self) -> int"""
1571 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1573 def GetOrientation(*args
, **kwargs
):
1574 """GetOrientation(self) -> int"""
1575 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1577 def SetAlignment(*args
, **kwargs
):
1578 """SetAlignment(self, int alignment)"""
1579 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1581 def SetDefaultSize(*args
, **kwargs
):
1582 """SetDefaultSize(self, Size size)"""
1583 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1585 def SetOrientation(*args
, **kwargs
):
1586 """SetOrientation(self, int orientation)"""
1587 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1589 SashLayoutWindow_swigregister
= _windows_
.SashLayoutWindow_swigregister
1590 SashLayoutWindow_swigregister(SashLayoutWindow
)
1592 def PreSashLayoutWindow(*args
, **kwargs
):
1593 """PreSashLayoutWindow() -> SashLayoutWindow"""
1594 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1597 class LayoutAlgorithm(_core
.Object
):
1598 """Proxy of C++ LayoutAlgorithm class"""
1599 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1600 __repr__
= _swig_repr
1601 def __init__(self
, *args
, **kwargs
):
1602 """__init__(self) -> LayoutAlgorithm"""
1603 _windows_
.LayoutAlgorithm_swiginit(self
,_windows_
.new_LayoutAlgorithm(*args
, **kwargs
))
1604 __swig_destroy__
= _windows_
.delete_LayoutAlgorithm
1605 __del__
= lambda self
: None;
1606 def LayoutMDIFrame(*args
, **kwargs
):
1607 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1608 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1610 def LayoutFrame(*args
, **kwargs
):
1611 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1612 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1614 def LayoutWindow(*args
, **kwargs
):
1615 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1616 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1618 LayoutAlgorithm_swigregister
= _windows_
.LayoutAlgorithm_swigregister
1619 LayoutAlgorithm_swigregister(LayoutAlgorithm
)
1621 #---------------------------------------------------------------------------
1623 class PopupWindow(_core
.Window
):
1624 """Proxy of C++ PopupWindow class"""
1625 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1626 __repr__
= _swig_repr
1627 def __init__(self
, *args
, **kwargs
):
1628 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1629 _windows_
.PopupWindow_swiginit(self
,_windows_
.new_PopupWindow(*args
, **kwargs
))
1630 self
._setOORInfo
(self
)
1632 def Create(*args
, **kwargs
):
1633 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1634 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1636 def Position(*args
, **kwargs
):
1637 """Position(self, Point ptOrigin, Size size)"""
1638 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1640 PopupWindow_swigregister
= _windows_
.PopupWindow_swigregister
1641 PopupWindow_swigregister(PopupWindow
)
1643 def PrePopupWindow(*args
, **kwargs
):
1644 """PrePopupWindow() -> PopupWindow"""
1645 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1648 #---------------------------------------------------------------------------
1650 class PopupTransientWindow(PopupWindow
):
1651 """Proxy of C++ PopupTransientWindow class"""
1652 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1653 __repr__
= _swig_repr
1654 def __init__(self
, *args
, **kwargs
):
1655 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1656 _windows_
.PopupTransientWindow_swiginit(self
,_windows_
.new_PopupTransientWindow(*args
, **kwargs
))
1657 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1659 def _setCallbackInfo(*args
, **kwargs
):
1660 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1661 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1663 def Popup(*args
, **kwargs
):
1664 """Popup(self, Window focus=None)"""
1665 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1667 def Dismiss(*args
, **kwargs
):
1669 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1671 PopupTransientWindow_swigregister
= _windows_
.PopupTransientWindow_swigregister
1672 PopupTransientWindow_swigregister(PopupTransientWindow
)
1674 def PrePopupTransientWindow(*args
, **kwargs
):
1675 """PrePopupTransientWindow() -> PopupTransientWindow"""
1676 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1679 #---------------------------------------------------------------------------
1681 class TipWindow(PopupTransientWindow
):
1682 """Proxy of C++ TipWindow class"""
1683 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1684 __repr__
= _swig_repr
1685 def __init__(self
, *args
, **kwargs
):
1686 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1687 _windows_
.TipWindow_swiginit(self
,_windows_
.new_TipWindow(*args
, **kwargs
))
1688 self
._setOORInfo
(self
)
1690 def SetBoundingRect(*args
, **kwargs
):
1691 """SetBoundingRect(self, Rect rectBound)"""
1692 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1694 def Close(*args
, **kwargs
):
1698 This function simply generates a EVT_CLOSE event whose handler usually
1699 tries to close the window. It doesn't close the window itself,
1700 however. If force is False (the default) then the window's close
1701 handler will be allowed to veto the destruction of the window.
1703 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1705 TipWindow_swigregister
= _windows_
.TipWindow_swigregister
1706 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 VScrolledWindow_swigregister
= _windows_
.VScrolledWindow_swigregister
1802 VScrolledWindow_swigregister(VScrolledWindow
)
1804 def PreVScrolledWindow(*args
, **kwargs
):
1805 """PreVScrolledWindow() -> VScrolledWindow"""
1806 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1809 class VListBox(VScrolledWindow
):
1810 """Proxy of C++ VListBox class"""
1811 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1812 __repr__
= _swig_repr
1813 def __init__(self
, *args
, **kwargs
):
1815 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1816 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1818 _windows_
.VListBox_swiginit(self
,_windows_
.new_VListBox(*args
, **kwargs
))
1819 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1821 def _setCallbackInfo(*args
, **kwargs
):
1822 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1823 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1825 def Create(*args
, **kwargs
):
1827 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1828 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1830 return _windows_
.VListBox_Create(*args
, **kwargs
)
1832 def GetItemCount(*args
, **kwargs
):
1833 """GetItemCount(self) -> size_t"""
1834 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1836 def HasMultipleSelection(*args
, **kwargs
):
1837 """HasMultipleSelection(self) -> bool"""
1838 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1840 def GetSelection(*args
, **kwargs
):
1841 """GetSelection(self) -> int"""
1842 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1844 def IsCurrent(*args
, **kwargs
):
1845 """IsCurrent(self, size_t item) -> bool"""
1846 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1848 def IsSelected(*args
, **kwargs
):
1849 """IsSelected(self, size_t item) -> bool"""
1850 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1852 def GetSelectedCount(*args
, **kwargs
):
1853 """GetSelectedCount(self) -> size_t"""
1854 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1856 def GetFirstSelected(*args
, **kwargs
):
1857 """GetFirstSelected(self) -> PyObject"""
1858 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1860 def GetNextSelected(*args
, **kwargs
):
1861 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1862 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1864 def GetMargins(*args
, **kwargs
):
1865 """GetMargins(self) -> Point"""
1866 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1868 def GetSelectionBackground(*args
, **kwargs
):
1869 """GetSelectionBackground(self) -> Colour"""
1870 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1872 def SetItemCount(*args
, **kwargs
):
1873 """SetItemCount(self, size_t count)"""
1874 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1876 def Clear(*args
, **kwargs
):
1878 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1880 def SetSelection(*args
, **kwargs
):
1881 """SetSelection(self, int selection)"""
1882 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1884 def Select(*args
, **kwargs
):
1885 """Select(self, size_t item, bool select=True) -> bool"""
1886 return _windows_
.VListBox_Select(*args
, **kwargs
)
1888 def SelectRange(*args
, **kwargs
):
1889 """SelectRange(self, size_t from, size_t to) -> bool"""
1890 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1892 def Toggle(*args
, **kwargs
):
1893 """Toggle(self, size_t item)"""
1894 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1896 def SelectAll(*args
, **kwargs
):
1897 """SelectAll(self) -> bool"""
1898 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1900 def DeselectAll(*args
, **kwargs
):
1901 """DeselectAll(self) -> bool"""
1902 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1904 def SetMargins(*args
, **kwargs
):
1905 """SetMargins(self, Point pt)"""
1906 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1908 def SetMarginsXY(*args
, **kwargs
):
1909 """SetMarginsXY(self, int x, int y)"""
1910 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1912 def SetSelectionBackground(*args
, **kwargs
):
1913 """SetSelectionBackground(self, Colour col)"""
1914 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1916 def OnDrawSeparator(*args
, **kwargs
):
1917 """OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
1918 return _windows_
.VListBox_OnDrawSeparator(*args
, **kwargs
)
1920 def OnDrawBackground(*args
, **kwargs
):
1921 """OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
1922 return _windows_
.VListBox_OnDrawBackground(*args
, **kwargs
)
1924 VListBox_swigregister
= _windows_
.VListBox_swigregister
1925 VListBox_swigregister(VListBox
)
1926 VListBoxNameStr
= cvar
.VListBoxNameStr
1928 def PreVListBox(*args
, **kwargs
):
1929 """PreVListBox() -> VListBox"""
1930 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1933 class HtmlListBox(VListBox
):
1934 """Proxy of C++ HtmlListBox class"""
1935 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1936 __repr__
= _swig_repr
1937 def __init__(self
, *args
, **kwargs
):
1939 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1940 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1942 _windows_
.HtmlListBox_swiginit(self
,_windows_
.new_HtmlListBox(*args
, **kwargs
))
1943 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1945 def _setCallbackInfo(*args
, **kwargs
):
1946 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1947 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1949 def Create(*args
, **kwargs
):
1951 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1952 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1954 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1956 def SetItemCount(*args
, **kwargs
):
1957 """SetItemCount(self, size_t count)"""
1958 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1960 def GetFileSystem(*args
, **kwargs
):
1961 """GetFileSystem(self) -> FileSystem"""
1962 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
1964 def OnLinkClicked(*args
, **kwargs
):
1965 """OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)"""
1966 return _windows_
.HtmlListBox_OnLinkClicked(*args
, **kwargs
)
1968 HtmlListBox_swigregister
= _windows_
.HtmlListBox_swigregister
1969 HtmlListBox_swigregister(HtmlListBox
)
1971 def PreHtmlListBox(*args
, **kwargs
):
1972 """PreHtmlListBox() -> HtmlListBox"""
1973 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
1976 #---------------------------------------------------------------------------
1978 class TaskBarIcon(_core
.EvtHandler
):
1979 """Proxy of C++ TaskBarIcon class"""
1980 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1981 __repr__
= _swig_repr
1982 def __init__(self
, *args
, **kwargs
):
1983 """__init__(self) -> TaskBarIcon"""
1984 _windows_
.TaskBarIcon_swiginit(self
,_windows_
.new_TaskBarIcon(*args
, **kwargs
))
1985 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
1987 __swig_destroy__
= _windows_
.delete_TaskBarIcon
1988 __del__
= lambda self
: None;
1989 def _setCallbackInfo(*args
, **kwargs
):
1990 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
1991 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
1993 def Destroy(*args
, **kwargs
):
1997 Deletes the C++ object this Python object is a proxy for.
1999 val
= _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2003 def IsOk(*args
, **kwargs
):
2004 """IsOk(self) -> bool"""
2005 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2007 def __nonzero__(self
): return self
.IsOk()
2008 def IsIconInstalled(*args
, **kwargs
):
2009 """IsIconInstalled(self) -> bool"""
2010 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2012 def SetIcon(*args
, **kwargs
):
2013 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2014 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2016 def RemoveIcon(*args
, **kwargs
):
2017 """RemoveIcon(self) -> bool"""
2018 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2020 def PopupMenu(*args
, **kwargs
):
2021 """PopupMenu(self, Menu menu) -> bool"""
2022 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2024 TaskBarIcon_swigregister
= _windows_
.TaskBarIcon_swigregister
2025 TaskBarIcon_swigregister(TaskBarIcon
)
2027 class TaskBarIconEvent(_core
.Event
):
2028 """Proxy of C++ TaskBarIconEvent class"""
2029 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2030 __repr__
= _swig_repr
2031 def __init__(self
, *args
, **kwargs
):
2032 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2033 _windows_
.TaskBarIconEvent_swiginit(self
,_windows_
.new_TaskBarIconEvent(*args
, **kwargs
))
2034 TaskBarIconEvent_swigregister
= _windows_
.TaskBarIconEvent_swigregister
2035 TaskBarIconEvent_swigregister(TaskBarIconEvent
)
2037 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2038 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2039 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2040 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2041 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2042 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2043 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2044 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2045 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2046 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2047 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2048 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2049 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2050 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2052 #---------------------------------------------------------------------------
2054 class ColourData(_core
.Object
):
2056 This class holds a variety of information related to the colour
2057 chooser dialog, used to transfer settings and results to and from the
2060 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2061 __repr__
= _swig_repr
2062 def __init__(self
, *args
, **kwargs
):
2064 __init__(self) -> ColourData
2066 Constructor, sets default values.
2068 _windows_
.ColourData_swiginit(self
,_windows_
.new_ColourData(*args
, **kwargs
))
2069 __swig_destroy__
= _windows_
.delete_ColourData
2070 __del__
= lambda self
: None;
2071 def GetChooseFull(*args
, **kwargs
):
2073 GetChooseFull(self) -> bool
2075 Under Windows, determines whether the Windows colour dialog will
2076 display the full dialog with custom colour selection controls. Has no
2077 meaning under other platforms. The default value is true.
2079 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2081 def GetColour(*args
, **kwargs
):
2083 GetColour(self) -> Colour
2085 Gets the colour (pre)selected by the dialog.
2087 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2089 def GetCustomColour(*args
, **kwargs
):
2091 GetCustomColour(self, int i) -> Colour
2093 Gets the i'th custom colour associated with the colour dialog. i
2094 should be an integer between 0 and 15. The default custom colours are
2095 all invalid colours.
2097 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2099 def SetChooseFull(*args
, **kwargs
):
2101 SetChooseFull(self, int flag)
2103 Under Windows, tells the Windows colour dialog to display the full
2104 dialog with custom colour selection controls. Under other platforms,
2105 has no effect. The default value is true.
2107 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2109 def SetColour(*args
, **kwargs
):
2111 SetColour(self, Colour colour)
2113 Sets the default colour for the colour dialog. The default colour is
2116 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2118 def SetCustomColour(*args
, **kwargs
):
2120 SetCustomColour(self, int i, Colour colour)
2122 Sets the i'th custom colour for the colour dialog. i should be an
2123 integer between 0 and 15. The default custom colours are all invalid colours.
2125 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2127 ColourData_swigregister
= _windows_
.ColourData_swigregister
2128 ColourData_swigregister(ColourData
)
2129 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2130 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2131 DirDialogNameStr
= cvar
.DirDialogNameStr
2132 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2133 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2134 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2136 class ColourDialog(Dialog
):
2137 """This class represents the colour chooser dialog."""
2138 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2139 __repr__
= _swig_repr
2140 def __init__(self
, *args
, **kwargs
):
2142 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2144 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2145 which will be copied to the colour dialog's internal ColourData
2148 _windows_
.ColourDialog_swiginit(self
,_windows_
.new_ColourDialog(*args
, **kwargs
))
2149 self
._setOORInfo
(self
)
2151 def GetColourData(*args
, **kwargs
):
2153 GetColourData(self) -> ColourData
2155 Returns a reference to the `wx.ColourData` used by the dialog.
2157 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2159 ColourDialog_swigregister
= _windows_
.ColourDialog_swigregister
2160 ColourDialog_swigregister(ColourDialog
)
2163 def GetColourFromUser(*args
, **kwargs
):
2165 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2166 String caption=EmptyString) -> Colour
2168 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2169 class DirDialog(Dialog
):
2171 wx.DirDialog allows the user to select a directory by browising the
2174 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2175 __repr__
= _swig_repr
2176 def __init__(self
, *args
, **kwargs
):
2178 __init__(self, Window parent, String message=DirSelectorPromptStr,
2179 String defaultPath=EmptyString, long style=0,
2180 Point pos=DefaultPosition, Size size=DefaultSize,
2181 String name=DirDialogNameStr) -> DirDialog
2183 Constructor. Use ShowModal method to show the dialog.
2185 _windows_
.DirDialog_swiginit(self
,_windows_
.new_DirDialog(*args
, **kwargs
))
2186 self
._setOORInfo
(self
)
2188 def Create(*args
, **kwargs
):
2190 Create(self, Window parent, String title=wxDirSelectorPromptStr,
2191 String defaultPath=wxEmptyString, long style=DD_DEFAULT_STYLE,
2192 Point pos=DefaultPosition,
2193 Size sz=DefaultSize, String name=DirDialogNameStr) -> bool
2195 return _windows_
.DirDialog_Create(*args
, **kwargs
)
2197 def GetPath(*args
, **kwargs
):
2199 GetPath(self) -> String
2201 Returns the default or user-selected path.
2203 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2205 def GetMessage(*args
, **kwargs
):
2207 GetMessage(self) -> String
2209 Returns the message that will be displayed on the dialog.
2211 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2213 def SetMessage(*args
, **kwargs
):
2215 SetMessage(self, String message)
2217 Sets the message that will be displayed on the dialog.
2219 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2221 def SetPath(*args
, **kwargs
):
2223 SetPath(self, String path)
2225 Sets the default path.
2227 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2229 DirDialog_swigregister
= _windows_
.DirDialog_swigregister
2230 DirDialog_swigregister(DirDialog
)
2232 def PreDirDialog(*args
, **kwargs
):
2234 PreDirDialog() -> DirDialog
2236 wx.DirDialog allows the user to select a directory by browising the
2239 val
= _windows_
.new_PreDirDialog(*args
, **kwargs
)
2242 class FileDialog(Dialog
):
2244 wx.FileDialog allows the user to select one or more files from the
2247 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2248 __repr__
= _swig_repr
2249 def __init__(self
, *args
, **kwargs
):
2251 __init__(self, Window parent, String message=FileSelectorPromptStr,
2252 String defaultDir=EmptyString, String defaultFile=EmptyString,
2253 String wildcard=FileSelectorDefaultWildcardStr,
2254 long style=0, Point pos=DefaultPosition) -> FileDialog
2256 Constructor. Use ShowModal method to show the dialog.
2258 _windows_
.FileDialog_swiginit(self
,_windows_
.new_FileDialog(*args
, **kwargs
))
2259 self
._setOORInfo
(self
)
2261 def SetMessage(*args
, **kwargs
):
2263 SetMessage(self, String message)
2265 Sets the message that will be displayed on the dialog.
2267 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2269 def SetPath(*args
, **kwargs
):
2271 SetPath(self, String path)
2273 Sets the path (the combined directory and filename that will be
2274 returned when the dialog is dismissed).
2276 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2278 def SetDirectory(*args
, **kwargs
):
2280 SetDirectory(self, String dir)
2282 Sets the default directory.
2284 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2286 def SetFilename(*args
, **kwargs
):
2288 SetFilename(self, String name)
2290 Sets the default filename.
2292 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2294 def SetWildcard(*args
, **kwargs
):
2296 SetWildcard(self, String wildCard)
2298 Sets the wildcard, which can contain multiple file types, for
2301 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2304 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2306 def SetStyle(*args
, **kwargs
):
2308 SetStyle(self, long style)
2310 Sets the dialog style.
2312 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2314 def SetFilterIndex(*args
, **kwargs
):
2316 SetFilterIndex(self, int filterIndex)
2318 Sets the default filter index, starting from zero.
2320 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2322 def GetMessage(*args
, **kwargs
):
2324 GetMessage(self) -> String
2326 Returns the message that will be displayed on the dialog.
2328 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2330 def GetPath(*args
, **kwargs
):
2332 GetPath(self) -> String
2334 Returns the full path (directory and filename) of the selected file.
2336 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2338 def GetDirectory(*args
, **kwargs
):
2340 GetDirectory(self) -> String
2342 Returns the default directory.
2344 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2346 def GetFilename(*args
, **kwargs
):
2348 GetFilename(self) -> String
2350 Returns the default filename.
2352 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2354 def GetWildcard(*args
, **kwargs
):
2356 GetWildcard(self) -> String
2358 Returns the file dialog wildcard.
2360 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2362 def GetStyle(*args
, **kwargs
):
2364 GetStyle(self) -> long
2366 Returns the dialog style.
2368 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2370 def GetFilterIndex(*args
, **kwargs
):
2372 GetFilterIndex(self) -> int
2374 Returns the index into the list of filters supplied, optionally, in
2375 the wildcard parameter. Before the dialog is shown, this is the index
2376 which will be used when the dialog is first displayed. After the
2377 dialog is shown, this is the index selected by the user.
2379 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2381 def GetFilenames(*args
, **kwargs
):
2383 GetFilenames(self) -> PyObject
2385 Returns a list of filenames chosen in the dialog. This function
2386 should only be used with the dialogs which have wx.MULTIPLE style, use
2387 GetFilename for the others.
2389 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2391 def GetPaths(*args
, **kwargs
):
2393 GetPaths(self) -> PyObject
2395 Fills the array paths with the full paths of the files chosen. This
2396 function should only be used with the dialogs which have wx.MULTIPLE
2397 style, use GetPath for the others.
2399 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2401 FileDialog_swigregister
= _windows_
.FileDialog_swigregister
2402 FileDialog_swigregister(FileDialog
)
2404 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2405 class MultiChoiceDialog(Dialog
):
2406 """A simple dialog with a multi selection listbox."""
2407 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2408 __repr__
= _swig_repr
2409 def __init__(self
, *args
, **kwargs
):
2411 __init__(self, Window parent, String message, String caption,
2412 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2413 Point pos=DefaultPosition) -> MultiChoiceDialog
2415 Constructor. Use the `ShowModal` method to show the dialog.
2417 :param parent: The parent window.
2418 :param message: Text to display above the list of selections.
2419 :param caption: Text to use in the title bar of the dialog.
2420 :param choices: A list of strings or unicode objects that the
2421 user is allowed to choose from.
2422 :param style: Styles to apply to the dialog. The default value is
2423 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2424 :param pos: Where to position the dialog (not used on Windows)
2428 _windows_
.MultiChoiceDialog_swiginit(self
,_windows_
.new_MultiChoiceDialog(*args
, **kwargs
))
2429 self
._setOORInfo
(self
)
2431 def SetSelections(*args
, **kwargs
):
2433 SetSelections(List selections)
2435 Specify the items in the list that should be selected, using a list of
2436 integers. The list should specify the indexes of the items that
2439 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2441 def GetSelections(*args
, **kwargs
):
2443 GetSelections() -> [selections]
2445 Returns a list of integers representing the items that are selected.
2446 If an item is selected then its index will appear in the list.
2448 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2450 MultiChoiceDialog_swigregister
= _windows_
.MultiChoiceDialog_swigregister
2451 MultiChoiceDialog_swigregister(MultiChoiceDialog
)
2453 class SingleChoiceDialog(Dialog
):
2454 """A simple dialog with a single selection listbox."""
2455 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2456 __repr__
= _swig_repr
2457 def __init__(self
, *args
, **kwargs
):
2459 __init__(Window parent, String message, String caption,
2460 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2461 Point pos=DefaultPosition) -> SingleChoiceDialog
2463 Constructor. Use ShowModal method to show the dialog.
2465 _windows_
.SingleChoiceDialog_swiginit(self
,_windows_
.new_SingleChoiceDialog(*args
, **kwargs
))
2466 self
._setOORInfo
(self
)
2468 def GetSelection(*args
, **kwargs
):
2470 GetSelection(self) -> int
2472 Get the index of teh currently selected item.
2474 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2476 def GetStringSelection(*args
, **kwargs
):
2478 GetStringSelection(self) -> String
2480 Returns the string value of the currently selected item
2482 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2484 def SetSelection(*args
, **kwargs
):
2486 SetSelection(self, int sel)
2488 Set the current selected item to sel
2490 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2492 SingleChoiceDialog_swigregister
= _windows_
.SingleChoiceDialog_swigregister
2493 SingleChoiceDialog_swigregister(SingleChoiceDialog
)
2495 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2496 class TextEntryDialog(Dialog
):
2497 """A dialog with text control, [ok] and [cancel] buttons"""
2498 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2499 __repr__
= _swig_repr
2500 def __init__(self
, *args
, **kwargs
):
2502 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2503 String defaultValue=EmptyString,
2504 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2506 Constructor. Use ShowModal method to show the dialog.
2508 _windows_
.TextEntryDialog_swiginit(self
,_windows_
.new_TextEntryDialog(*args
, **kwargs
))
2509 self
._setOORInfo
(self
)
2511 def GetValue(*args
, **kwargs
):
2513 GetValue(self) -> String
2515 Returns the text that the user has entered if the user has pressed OK,
2516 or the original value if the user has pressed Cancel.
2518 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2520 def SetValue(*args
, **kwargs
):
2522 SetValue(self, String value)
2524 Sets the default text value.
2526 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2528 TextEntryDialog_swigregister
= _windows_
.TextEntryDialog_swigregister
2529 TextEntryDialog_swigregister(TextEntryDialog
)
2531 class PasswordEntryDialog(TextEntryDialog
):
2532 """Proxy of C++ PasswordEntryDialog class"""
2533 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2534 __repr__
= _swig_repr
2535 def __init__(self
, *args
, **kwargs
):
2537 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2538 String value=EmptyString,
2539 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2541 _windows_
.PasswordEntryDialog_swiginit(self
,_windows_
.new_PasswordEntryDialog(*args
, **kwargs
))
2542 PasswordEntryDialog_swigregister
= _windows_
.PasswordEntryDialog_swigregister
2543 PasswordEntryDialog_swigregister(PasswordEntryDialog
)
2544 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2546 class FontData(_core
.Object
):
2548 This class holds a variety of information related to font dialogs and
2549 is used to transfer settings to and results from a `wx.FontDialog`.
2551 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2552 __repr__
= _swig_repr
2553 def __init__(self
, *args
, **kwargs
):
2555 __init__(self) -> FontData
2557 This class holds a variety of information related to font dialogs and
2558 is used to transfer settings to and results from a `wx.FontDialog`.
2560 _windows_
.FontData_swiginit(self
,_windows_
.new_FontData(*args
, **kwargs
))
2561 __swig_destroy__
= _windows_
.delete_FontData
2562 __del__
= lambda self
: None;
2563 def EnableEffects(*args
, **kwargs
):
2565 EnableEffects(self, bool enable)
2567 Enables or disables 'effects' under MS Windows only. This refers to
2568 the controls for manipulating colour, strikeout and underline
2569 properties. The default value is true.
2571 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2573 def GetAllowSymbols(*args
, **kwargs
):
2575 GetAllowSymbols(self) -> bool
2577 Under MS Windows, returns a flag determining whether symbol fonts can
2578 be selected. Has no effect on other platforms. The default value is
2581 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2583 def GetColour(*args
, **kwargs
):
2585 GetColour(self) -> Colour
2587 Gets the colour associated with the font dialog. The default value is
2590 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2592 def GetChosenFont(*args
, **kwargs
):
2594 GetChosenFont(self) -> Font
2596 Gets the font chosen by the user.
2598 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2600 def GetEnableEffects(*args
, **kwargs
):
2602 GetEnableEffects(self) -> bool
2604 Determines whether 'effects' are enabled under Windows.
2606 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2608 def GetInitialFont(*args
, **kwargs
):
2610 GetInitialFont(self) -> Font
2612 Gets the font that will be initially used by the font dialog. This
2613 should have previously been set by the application.
2615 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2617 def GetShowHelp(*args
, **kwargs
):
2619 GetShowHelp(self) -> bool
2621 Returns true if the Help button will be shown (Windows only). The
2622 default value is false.
2624 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2626 def SetAllowSymbols(*args
, **kwargs
):
2628 SetAllowSymbols(self, bool allowSymbols)
2630 Under MS Windows, determines whether symbol fonts can be selected. Has
2631 no effect on other platforms. The default value is true.
2633 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2635 def SetChosenFont(*args
, **kwargs
):
2637 SetChosenFont(self, Font font)
2639 Sets the font that will be returned to the user (normally for internal
2642 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2644 def SetColour(*args
, **kwargs
):
2646 SetColour(self, Colour colour)
2648 Sets the colour that will be used for the font foreground colour. The
2649 default colour is black.
2651 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2653 def SetInitialFont(*args
, **kwargs
):
2655 SetInitialFont(self, Font font)
2657 Sets the font that will be initially used by the font dialog.
2659 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2661 def SetRange(*args
, **kwargs
):
2663 SetRange(self, int min, int max)
2665 Sets the valid range for the font point size (Windows only). The
2666 default is 0, 0 (unrestricted range).
2668 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2670 def SetShowHelp(*args
, **kwargs
):
2672 SetShowHelp(self, bool showHelp)
2674 Determines whether the Help button will be displayed in the font
2675 dialog (Windows only). The default value is false.
2677 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2679 FontData_swigregister
= _windows_
.FontData_swigregister
2680 FontData_swigregister(FontData
)
2682 class FontDialog(Dialog
):
2684 wx.FontDialog allows the user to select a system font and its attributes.
2689 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2690 __repr__
= _swig_repr
2691 def __init__(self
, *args
, **kwargs
):
2693 __init__(self, Window parent, FontData data) -> FontDialog
2695 Constructor. Pass a parent window and the `wx.FontData` object to be
2696 used to initialize the dialog controls. Call `ShowModal` to display
2697 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2698 results with via the `wx.FontData` returned by `GetFontData`.
2700 _windows_
.FontDialog_swiginit(self
,_windows_
.new_FontDialog(*args
, **kwargs
))
2701 self
._setOORInfo
(self
)
2703 def GetFontData(*args
, **kwargs
):
2705 GetFontData(self) -> FontData
2707 Returns a reference to the internal `wx.FontData` used by the
2710 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2712 FontDialog_swigregister
= _windows_
.FontDialog_swigregister
2713 FontDialog_swigregister(FontDialog
)
2716 def GetFontFromUser(*args
, **kwargs
):
2717 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
2718 return _windows_
.GetFontFromUser(*args
, **kwargs
)
2719 class MessageDialog(Dialog
):
2721 This class provides a simple dialog that shows a single or multi-line
2722 message, with a choice of OK, Yes, No and/or Cancel buttons.
2724 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2725 __repr__
= _swig_repr
2726 def __init__(self
, *args
, **kwargs
):
2728 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2729 long style=wxOK|wxCANCEL|wxCENTRE,
2730 Point pos=DefaultPosition) -> MessageDialog
2732 Constructor, use `ShowModal` to display the dialog.
2734 _windows_
.MessageDialog_swiginit(self
,_windows_
.new_MessageDialog(*args
, **kwargs
))
2735 self
._setOORInfo
(self
)
2737 MessageDialog_swigregister
= _windows_
.MessageDialog_swigregister
2738 MessageDialog_swigregister(MessageDialog
)
2740 class ProgressDialog(Frame
):
2742 A dialog that shows a short message and a progress bar. Optionally, it
2743 can display an ABORT button.
2745 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2746 __repr__
= _swig_repr
2747 def __init__(self
, *args
, **kwargs
):
2749 __init__(self, String title, String message, int maximum=100, Window parent=None,
2750 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2752 Constructor. Creates the dialog, displays it and disables user input
2753 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2756 _windows_
.ProgressDialog_swiginit(self
,_windows_
.new_ProgressDialog(*args
, **kwargs
))
2757 self
._setOORInfo
(self
)
2759 def Update(*args
, **kwargs
):
2761 Update(self, int value, String newmsg) --> (continue, skip)
2763 Updates the dialog, setting the progress bar to the new value and, if
2764 given changes the message above it. The value given should be less
2765 than or equal to the maximum value given to the constructor and the
2766 dialog is closed if it is equal to the maximum. Returns a tuple of
2767 boolean values, ``(continue, skip)`` where ``continue`` is ``True``
2768 unless the Cancel button has been pressed, and ``skip`` is ``False``
2769 unless the Skip button (if any) has been pressed.
2771 If the ``continue`` return value is ``false``, the application can either
2772 immediately destroy the dialog or ask the user for confirmation, and if the
2773 abort is not confirmed the dialog may be resumed with `Resume` function.
2776 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2778 def Resume(*args
, **kwargs
):
2782 Can be used to continue with the dialog, after the user had chosen to
2785 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2787 ProgressDialog_swigregister
= _windows_
.ProgressDialog_swigregister
2788 ProgressDialog_swigregister(ProgressDialog
)
2790 FR_DOWN
= _windows_
.FR_DOWN
2791 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2792 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2793 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2794 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2795 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2796 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2797 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2798 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2799 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2800 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2801 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2802 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2803 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2804 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2805 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2806 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2808 # For backwards compatibility. Should they be removed?
2809 EVT_COMMAND_FIND
= EVT_FIND
2810 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2811 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2812 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2813 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2815 class FindDialogEvent(_core
.CommandEvent
):
2816 """Events for the FindReplaceDialog"""
2817 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2818 __repr__
= _swig_repr
2819 def __init__(self
, *args
, **kwargs
):
2821 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2823 Events for the FindReplaceDialog
2825 _windows_
.FindDialogEvent_swiginit(self
,_windows_
.new_FindDialogEvent(*args
, **kwargs
))
2826 def GetFlags(*args
, **kwargs
):
2828 GetFlags(self) -> int
2830 Get the currently selected flags: this is the combination of
2831 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2833 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2835 def GetFindString(*args
, **kwargs
):
2837 GetFindString(self) -> String
2839 Return the string to find (never empty).
2841 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2843 def GetReplaceString(*args
, **kwargs
):
2845 GetReplaceString(self) -> String
2847 Return the string to replace the search string with (only for replace
2848 and replace all events).
2850 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2852 def GetDialog(*args
, **kwargs
):
2854 GetDialog(self) -> FindReplaceDialog
2856 Return the pointer to the dialog which generated this event.
2858 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2860 def SetFlags(*args
, **kwargs
):
2861 """SetFlags(self, int flags)"""
2862 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2864 def SetFindString(*args
, **kwargs
):
2865 """SetFindString(self, String str)"""
2866 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2868 def SetReplaceString(*args
, **kwargs
):
2869 """SetReplaceString(self, String str)"""
2870 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2872 FindDialogEvent_swigregister
= _windows_
.FindDialogEvent_swigregister
2873 FindDialogEvent_swigregister(FindDialogEvent
)
2875 class FindReplaceData(_core
.Object
):
2877 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2878 to initialize the dialog with the default values and will keep the
2879 last values from the dialog when it is closed. It is also updated each
2880 time a `wx.FindDialogEvent` is generated so instead of using the
2881 `wx.FindDialogEvent` methods you can also directly query this object.
2883 Note that all SetXXX() methods may only be called before showing the
2884 dialog and calling them has no effect later.
2886 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2887 __repr__
= _swig_repr
2888 def __init__(self
, *args
, **kwargs
):
2890 __init__(self, int flags=0) -> FindReplaceData
2892 Constuctor initializes the flags to default value (0).
2894 _windows_
.FindReplaceData_swiginit(self
,_windows_
.new_FindReplaceData(*args
, **kwargs
))
2895 __swig_destroy__
= _windows_
.delete_FindReplaceData
2896 __del__
= lambda self
: None;
2897 def GetFindString(*args
, **kwargs
):
2899 GetFindString(self) -> String
2901 Get the string to find.
2903 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2905 def GetReplaceString(*args
, **kwargs
):
2907 GetReplaceString(self) -> String
2909 Get the replacement string.
2911 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2913 def GetFlags(*args
, **kwargs
):
2915 GetFlags(self) -> int
2917 Get the combination of flag values.
2919 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
2921 def SetFlags(*args
, **kwargs
):
2923 SetFlags(self, int flags)
2925 Set the flags to use to initialize the controls of the dialog.
2927 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
2929 def SetFindString(*args
, **kwargs
):
2931 SetFindString(self, String str)
2933 Set the string to find (used as initial value by the dialog).
2935 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
2937 def SetReplaceString(*args
, **kwargs
):
2939 SetReplaceString(self, String str)
2941 Set the replacement string (used as initial value by the dialog).
2943 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2945 FindReplaceData_swigregister
= _windows_
.FindReplaceData_swigregister
2946 FindReplaceData_swigregister(FindReplaceData
)
2948 class FindReplaceDialog(Dialog
):
2950 wx.FindReplaceDialog is a standard modeless dialog which is used to
2951 allow the user to search for some text (and possibly replace it with
2952 something else). The actual searching is supposed to be done in the
2953 owner window which is the parent of this dialog. Note that it means
2954 that unlike for the other standard dialogs this one must have a parent
2955 window. Also note that there is no way to use this dialog in a modal
2956 way; it is always, by design and implementation, modeless.
2958 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2959 __repr__
= _swig_repr
2960 def __init__(self
, *args
, **kwargs
):
2962 __init__(self, Window parent, FindReplaceData data, String title,
2963 int style=0) -> FindReplaceDialog
2965 Create a FindReplaceDialog. The parent and data parameters must be
2966 non-None. Use Show to display the dialog.
2968 _windows_
.FindReplaceDialog_swiginit(self
,_windows_
.new_FindReplaceDialog(*args
, **kwargs
))
2969 self
._setOORInfo
(self
)
2971 def Create(*args
, **kwargs
):
2973 Create(self, Window parent, FindReplaceData data, String title,
2974 int style=0) -> bool
2976 Create the dialog, for 2-phase create.
2978 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
2980 def GetData(*args
, **kwargs
):
2982 GetData(self) -> FindReplaceData
2984 Get the FindReplaceData object used by this dialog.
2986 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
2988 def SetData(*args
, **kwargs
):
2990 SetData(self, FindReplaceData data)
2992 Set the FindReplaceData object used by this dialog.
2994 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
2996 FindReplaceDialog_swigregister
= _windows_
.FindReplaceDialog_swigregister
2997 FindReplaceDialog_swigregister(FindReplaceDialog
)
2999 def PreFindReplaceDialog(*args
, **kwargs
):
3001 PreFindReplaceDialog() -> FindReplaceDialog
3003 Precreate a FindReplaceDialog for 2-phase creation
3005 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3008 #---------------------------------------------------------------------------
3010 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3011 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3012 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3013 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3014 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3015 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3016 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3017 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3018 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3019 class MDIParentFrame(Frame
):
3020 """Proxy of C++ MDIParentFrame class"""
3021 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3022 __repr__
= _swig_repr
3023 def __init__(self
, *args
, **kwargs
):
3025 __init__(self, Window parent, int id=-1, String title=EmptyString,
3026 Point pos=DefaultPosition, Size size=DefaultSize,
3027 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3028 String name=FrameNameStr) -> MDIParentFrame
3030 _windows_
.MDIParentFrame_swiginit(self
,_windows_
.new_MDIParentFrame(*args
, **kwargs
))
3031 self
._setOORInfo
(self
)
3033 def Create(*args
, **kwargs
):
3035 Create(self, Window parent, int id=-1, String title=EmptyString,
3036 Point pos=DefaultPosition, Size size=DefaultSize,
3037 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3038 String name=FrameNameStr) -> bool
3040 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3042 def ActivateNext(*args
, **kwargs
):
3043 """ActivateNext(self)"""
3044 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3046 def ActivatePrevious(*args
, **kwargs
):
3047 """ActivatePrevious(self)"""
3048 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3050 def ArrangeIcons(*args
, **kwargs
):
3051 """ArrangeIcons(self)"""
3052 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3054 def Cascade(*args
, **kwargs
):
3056 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3058 def GetActiveChild(*args
, **kwargs
):
3059 """GetActiveChild(self) -> MDIChildFrame"""
3060 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3062 def GetClientWindow(*args
, **kwargs
):
3063 """GetClientWindow(self) -> MDIClientWindow"""
3064 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3066 def GetToolBar(*args
, **kwargs
):
3067 """GetToolBar(self) -> Window"""
3068 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3070 def Tile(*args
, **kwargs
):
3071 """Tile(self, int orient=HORIZONTAL)"""
3072 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3074 MDIParentFrame_swigregister
= _windows_
.MDIParentFrame_swigregister
3075 MDIParentFrame_swigregister(MDIParentFrame
)
3077 def PreMDIParentFrame(*args
, **kwargs
):
3078 """PreMDIParentFrame() -> MDIParentFrame"""
3079 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3082 class MDIChildFrame(Frame
):
3083 """Proxy of C++ MDIChildFrame class"""
3084 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3085 __repr__
= _swig_repr
3086 def __init__(self
, *args
, **kwargs
):
3088 __init__(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) -> MDIChildFrame
3093 _windows_
.MDIChildFrame_swiginit(self
,_windows_
.new_MDIChildFrame(*args
, **kwargs
))
3094 self
._setOORInfo
(self
)
3096 def Create(*args
, **kwargs
):
3098 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3099 Point pos=DefaultPosition, Size size=DefaultSize,
3100 long style=DEFAULT_FRAME_STYLE,
3101 String name=FrameNameStr) -> bool
3103 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3105 def Activate(*args
, **kwargs
):
3106 """Activate(self)"""
3107 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3109 MDIChildFrame_swigregister
= _windows_
.MDIChildFrame_swigregister
3110 MDIChildFrame_swigregister(MDIChildFrame
)
3112 def PreMDIChildFrame(*args
, **kwargs
):
3113 """PreMDIChildFrame() -> MDIChildFrame"""
3114 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3117 class MDIClientWindow(_core
.Window
):
3118 """Proxy of C++ MDIClientWindow class"""
3119 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3120 __repr__
= _swig_repr
3121 def __init__(self
, *args
, **kwargs
):
3122 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3123 _windows_
.MDIClientWindow_swiginit(self
,_windows_
.new_MDIClientWindow(*args
, **kwargs
))
3124 self
._setOORInfo
(self
)
3126 def Create(*args
, **kwargs
):
3127 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3128 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3130 MDIClientWindow_swigregister
= _windows_
.MDIClientWindow_swigregister
3131 MDIClientWindow_swigregister(MDIClientWindow
)
3133 def PreMDIClientWindow(*args
, **kwargs
):
3134 """PreMDIClientWindow() -> MDIClientWindow"""
3135 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3138 #---------------------------------------------------------------------------
3140 class PyWindow(_core
.Window
):
3141 """Proxy of C++ PyWindow class"""
3142 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3143 __repr__
= _swig_repr
3144 def __init__(self
, *args
, **kwargs
):
3146 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3147 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3149 _windows_
.PyWindow_swiginit(self
,_windows_
.new_PyWindow(*args
, **kwargs
))
3150 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3152 def _setCallbackInfo(*args
, **kwargs
):
3153 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3154 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3156 def SetBestSize(*args
, **kwargs
):
3157 """SetBestSize(self, Size size)"""
3158 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3160 def DoEraseBackground(*args
, **kwargs
):
3161 """DoEraseBackground(self, DC dc) -> bool"""
3162 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3164 def DoMoveWindow(*args
, **kwargs
):
3165 """DoMoveWindow(self, int x, int y, int width, int height)"""
3166 return _windows_
.PyWindow_DoMoveWindow(*args
, **kwargs
)
3168 def DoSetSize(*args
, **kwargs
):
3169 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3170 return _windows_
.PyWindow_DoSetSize(*args
, **kwargs
)
3172 def DoSetClientSize(*args
, **kwargs
):
3173 """DoSetClientSize(self, int width, int height)"""
3174 return _windows_
.PyWindow_DoSetClientSize(*args
, **kwargs
)
3176 def DoSetVirtualSize(*args
, **kwargs
):
3177 """DoSetVirtualSize(self, int x, int y)"""
3178 return _windows_
.PyWindow_DoSetVirtualSize(*args
, **kwargs
)
3180 def DoGetSize(*args
, **kwargs
):
3181 """DoGetSize() -> (width, height)"""
3182 return _windows_
.PyWindow_DoGetSize(*args
, **kwargs
)
3184 def DoGetClientSize(*args
, **kwargs
):
3185 """DoGetClientSize() -> (width, height)"""
3186 return _windows_
.PyWindow_DoGetClientSize(*args
, **kwargs
)
3188 def DoGetPosition(*args
, **kwargs
):
3189 """DoGetPosition() -> (x,y)"""
3190 return _windows_
.PyWindow_DoGetPosition(*args
, **kwargs
)
3192 def DoGetVirtualSize(*args
, **kwargs
):
3193 """DoGetVirtualSize(self) -> Size"""
3194 return _windows_
.PyWindow_DoGetVirtualSize(*args
, **kwargs
)
3196 def DoGetBestSize(*args
, **kwargs
):
3197 """DoGetBestSize(self) -> Size"""
3198 return _windows_
.PyWindow_DoGetBestSize(*args
, **kwargs
)
3200 def GetDefaultAttributes(*args
, **kwargs
):
3201 """GetDefaultAttributes(self) -> VisualAttributes"""
3202 return _windows_
.PyWindow_GetDefaultAttributes(*args
, **kwargs
)
3204 def OnInternalIdle(*args
, **kwargs
):
3205 """OnInternalIdle(self)"""
3206 return _windows_
.PyWindow_OnInternalIdle(*args
, **kwargs
)
3208 def base_DoMoveWindow(*args
, **kw
):
3209 return PyWindow
.DoMoveWindow(*args
, **kw
)
3210 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3211 "Please use PyWindow.DoMoveWindow instead.")
3213 def base_DoSetSize(*args
, **kw
):
3214 return PyWindow
.DoSetSize(*args
, **kw
)
3215 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3216 "Please use PyWindow.DoSetSize instead.")
3218 def base_DoSetClientSize(*args
, **kw
):
3219 return PyWindow
.DoSetClientSize(*args
, **kw
)
3220 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3221 "Please use PyWindow.DoSetClientSize instead.")
3223 def base_DoSetVirtualSize(*args
, **kw
):
3224 return PyWindow
.DoSetVirtualSize(*args
, **kw
)
3225 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3226 "Please use PyWindow.DoSetVirtualSize instead.")
3228 def base_DoGetSize(*args
, **kw
):
3229 return PyWindow
.DoGetSize(*args
, **kw
)
3230 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3231 "Please use PyWindow.DoGetSize instead.")
3233 def base_DoGetClientSize(*args
, **kw
):
3234 return PyWindow
.DoGetClientSize(*args
, **kw
)
3235 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3236 "Please use PyWindow.DoGetClientSize instead.")
3238 def base_DoGetPosition(*args
, **kw
):
3239 return PyWindow
.DoGetPosition(*args
, **kw
)
3240 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3241 "Please use PyWindow.DoGetPosition instead.")
3243 def base_DoGetVirtualSize(*args
, **kw
):
3244 return PyWindow
.DoGetVirtualSize(*args
, **kw
)
3245 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3246 "Please use PyWindow.DoGetVirtualSize instead.")
3248 def base_DoGetBestSize(*args
, **kw
):
3249 return PyWindow
.DoGetBestSize(*args
, **kw
)
3250 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3251 "Please use PyWindow.DoGetBestSize instead.")
3253 def base_InitDialog(*args
, **kw
):
3254 return PyWindow
.InitDialog(*args
, **kw
)
3255 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3256 "Please use PyWindow.InitDialog instead.")
3258 def base_TransferDataToWindow(*args
, **kw
):
3259 return PyWindow
.TransferDataToWindow(*args
, **kw
)
3260 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3261 "Please use PyWindow.TransferDataToWindow instead.")
3263 def base_TransferDataFromWindow(*args
, **kw
):
3264 return PyWindow
.TransferDataFromWindow(*args
, **kw
)
3265 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3266 "Please use PyWindow.TransferDataFromWindow instead.")
3268 def base_Validate(*args
, **kw
):
3269 return PyWindow
.Validate(*args
, **kw
)
3270 base_Validate
= wx
._deprecated
(base_Validate
,
3271 "Please use PyWindow.Validate instead.")
3273 def base_AcceptsFocus(*args
, **kw
):
3274 return PyWindow
.AcceptsFocus(*args
, **kw
)
3275 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3276 "Please use PyWindow.AcceptsFocus instead.")
3278 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3279 return PyWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3280 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3281 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3283 def base_GetMaxSize(*args
, **kw
):
3284 return PyWindow
.GetMaxSize(*args
, **kw
)
3285 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3286 "Please use PyWindow.GetMaxSize instead.")
3288 def base_AddChild(*args
, **kw
):
3289 return PyWindow
.AddChild(*args
, **kw
)
3290 base_AddChild
= wx
._deprecated
(base_AddChild
,
3291 "Please use PyWindow.AddChild instead.")
3293 def base_RemoveChild(*args
, **kw
):
3294 return PyWindow
.RemoveChild(*args
, **kw
)
3295 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3296 "Please use PyWindow.RemoveChild instead.")
3298 def base_ShouldInheritColours(*args
, **kw
):
3299 return PyWindow
.ShouldInheritColours(*args
, **kw
)
3300 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3301 "Please use PyWindow.ShouldInheritColours instead.")
3303 def base_GetDefaultAttributes(*args
, **kw
):
3304 return PyWindow
.GetDefaultAttributes(*args
, **kw
)
3305 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3306 "Please use PyWindow.GetDefaultAttributes instead.")
3308 def base_OnInternalIdle(*args
, **kw
):
3309 return PyWindow
.OnInternalIdle(*args
, **kw
)
3310 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3311 "Please use PyWindow.OnInternalIdle instead.")
3313 PyWindow_swigregister
= _windows_
.PyWindow_swigregister
3314 PyWindow_swigregister(PyWindow
)
3316 def PrePyWindow(*args
, **kwargs
):
3317 """PrePyWindow() -> PyWindow"""
3318 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3321 class PyPanel(Panel
):
3322 """Proxy of C++ PyPanel class"""
3323 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3324 __repr__
= _swig_repr
3325 def __init__(self
, *args
, **kwargs
):
3327 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3328 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3330 _windows_
.PyPanel_swiginit(self
,_windows_
.new_PyPanel(*args
, **kwargs
))
3331 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3333 def _setCallbackInfo(*args
, **kwargs
):
3334 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3335 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3337 def SetBestSize(*args
, **kwargs
):
3338 """SetBestSize(self, Size size)"""
3339 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3341 def DoEraseBackground(*args
, **kwargs
):
3342 """DoEraseBackground(self, DC dc) -> bool"""
3343 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3345 def DoMoveWindow(*args
, **kwargs
):
3346 """DoMoveWindow(self, int x, int y, int width, int height)"""
3347 return _windows_
.PyPanel_DoMoveWindow(*args
, **kwargs
)
3349 def DoSetSize(*args
, **kwargs
):
3350 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3351 return _windows_
.PyPanel_DoSetSize(*args
, **kwargs
)
3353 def DoSetClientSize(*args
, **kwargs
):
3354 """DoSetClientSize(self, int width, int height)"""
3355 return _windows_
.PyPanel_DoSetClientSize(*args
, **kwargs
)
3357 def DoSetVirtualSize(*args
, **kwargs
):
3358 """DoSetVirtualSize(self, int x, int y)"""
3359 return _windows_
.PyPanel_DoSetVirtualSize(*args
, **kwargs
)
3361 def DoGetSize(*args
, **kwargs
):
3362 """DoGetSize() -> (width, height)"""
3363 return _windows_
.PyPanel_DoGetSize(*args
, **kwargs
)
3365 def DoGetClientSize(*args
, **kwargs
):
3366 """DoGetClientSize() -> (width, height)"""
3367 return _windows_
.PyPanel_DoGetClientSize(*args
, **kwargs
)
3369 def DoGetPosition(*args
, **kwargs
):
3370 """DoGetPosition() -> (x,y)"""
3371 return _windows_
.PyPanel_DoGetPosition(*args
, **kwargs
)
3373 def DoGetVirtualSize(*args
, **kwargs
):
3374 """DoGetVirtualSize(self) -> Size"""
3375 return _windows_
.PyPanel_DoGetVirtualSize(*args
, **kwargs
)
3377 def DoGetBestSize(*args
, **kwargs
):
3378 """DoGetBestSize(self) -> Size"""
3379 return _windows_
.PyPanel_DoGetBestSize(*args
, **kwargs
)
3381 def GetDefaultAttributes(*args
, **kwargs
):
3382 """GetDefaultAttributes(self) -> VisualAttributes"""
3383 return _windows_
.PyPanel_GetDefaultAttributes(*args
, **kwargs
)
3385 def OnInternalIdle(*args
, **kwargs
):
3386 """OnInternalIdle(self)"""
3387 return _windows_
.PyPanel_OnInternalIdle(*args
, **kwargs
)
3389 def base_DoMoveWindow(*args
, **kw
):
3390 return PyPanel
.DoMoveWindow(*args
, **kw
)
3391 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3392 "Please use PyPanel.DoMoveWindow instead.")
3394 def base_DoSetSize(*args
, **kw
):
3395 return PyPanel
.DoSetSize(*args
, **kw
)
3396 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3397 "Please use PyPanel.DoSetSize instead.")
3399 def base_DoSetClientSize(*args
, **kw
):
3400 return PyPanel
.DoSetClientSize(*args
, **kw
)
3401 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3402 "Please use PyPanel.DoSetClientSize instead.")
3404 def base_DoSetVirtualSize(*args
, **kw
):
3405 return PyPanel
.DoSetVirtualSize(*args
, **kw
)
3406 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3407 "Please use PyPanel.DoSetVirtualSize instead.")
3409 def base_DoGetSize(*args
, **kw
):
3410 return PyPanel
.DoGetSize(*args
, **kw
)
3411 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3412 "Please use PyPanel.DoGetSize instead.")
3414 def base_DoGetClientSize(*args
, **kw
):
3415 return PyPanel
.DoGetClientSize(*args
, **kw
)
3416 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3417 "Please use PyPanel.DoGetClientSize instead.")
3419 def base_DoGetPosition(*args
, **kw
):
3420 return PyPanel
.DoGetPosition(*args
, **kw
)
3421 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3422 "Please use PyPanel.DoGetPosition instead.")
3424 def base_DoGetVirtualSize(*args
, **kw
):
3425 return PyPanel
.DoGetVirtualSize(*args
, **kw
)
3426 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3427 "Please use PyPanel.DoGetVirtualSize instead.")
3429 def base_DoGetBestSize(*args
, **kw
):
3430 return PyPanel
.DoGetBestSize(*args
, **kw
)
3431 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3432 "Please use PyPanel.DoGetBestSize instead.")
3434 def base_InitDialog(*args
, **kw
):
3435 return PyPanel
.InitDialog(*args
, **kw
)
3436 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3437 "Please use PyPanel.InitDialog instead.")
3439 def base_TransferDataToWindow(*args
, **kw
):
3440 return PyPanel
.TransferDataToWindow(*args
, **kw
)
3441 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3442 "Please use PyPanel.TransferDataToWindow instead.")
3444 def base_TransferDataFromWindow(*args
, **kw
):
3445 return PyPanel
.TransferDataFromWindow(*args
, **kw
)
3446 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3447 "Please use PyPanel.TransferDataFromWindow instead.")
3449 def base_Validate(*args
, **kw
):
3450 return PyPanel
.Validate(*args
, **kw
)
3451 base_Validate
= wx
._deprecated
(base_Validate
,
3452 "Please use PyPanel.Validate instead.")
3454 def base_AcceptsFocus(*args
, **kw
):
3455 return PyPanel
.AcceptsFocus(*args
, **kw
)
3456 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3457 "Please use PyPanel.AcceptsFocus instead.")
3459 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3460 return PyPanel
.AcceptsFocusFromKeyboard(*args
, **kw
)
3461 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3462 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
3464 def base_GetMaxSize(*args
, **kw
):
3465 return PyPanel
.GetMaxSize(*args
, **kw
)
3466 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3467 "Please use PyPanel.GetMaxSize instead.")
3469 def base_AddChild(*args
, **kw
):
3470 return PyPanel
.AddChild(*args
, **kw
)
3471 base_AddChild
= wx
._deprecated
(base_AddChild
,
3472 "Please use PyPanel.AddChild instead.")
3474 def base_RemoveChild(*args
, **kw
):
3475 return PyPanel
.RemoveChild(*args
, **kw
)
3476 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3477 "Please use PyPanel.RemoveChild instead.")
3479 def base_ShouldInheritColours(*args
, **kw
):
3480 return PyPanel
.ShouldInheritColours(*args
, **kw
)
3481 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3482 "Please use PyPanel.ShouldInheritColours instead.")
3484 def base_GetDefaultAttributes(*args
, **kw
):
3485 return PyPanel
.GetDefaultAttributes(*args
, **kw
)
3486 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3487 "Please use PyPanel.GetDefaultAttributes instead.")
3489 def base_OnInternalIdle(*args
, **kw
):
3490 return PyPanel
.OnInternalIdle(*args
, **kw
)
3491 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3492 "Please use PyPanel.OnInternalIdle instead.")
3494 PyPanel_swigregister
= _windows_
.PyPanel_swigregister
3495 PyPanel_swigregister(PyPanel
)
3497 def PrePyPanel(*args
, **kwargs
):
3498 """PrePyPanel() -> PyPanel"""
3499 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3502 class PyScrolledWindow(ScrolledWindow
):
3503 """Proxy of C++ PyScrolledWindow class"""
3504 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3505 __repr__
= _swig_repr
3506 def __init__(self
, *args
, **kwargs
):
3508 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3509 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3511 _windows_
.PyScrolledWindow_swiginit(self
,_windows_
.new_PyScrolledWindow(*args
, **kwargs
))
3512 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyScrolledWindow
)
3514 def _setCallbackInfo(*args
, **kwargs
):
3515 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3516 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3518 def SetBestSize(*args
, **kwargs
):
3519 """SetBestSize(self, Size size)"""
3520 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3522 def DoEraseBackground(*args
, **kwargs
):
3523 """DoEraseBackground(self, DC dc) -> bool"""
3524 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3526 def DoMoveWindow(*args
, **kwargs
):
3527 """DoMoveWindow(self, int x, int y, int width, int height)"""
3528 return _windows_
.PyScrolledWindow_DoMoveWindow(*args
, **kwargs
)
3530 def DoSetSize(*args
, **kwargs
):
3531 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3532 return _windows_
.PyScrolledWindow_DoSetSize(*args
, **kwargs
)
3534 def DoSetClientSize(*args
, **kwargs
):
3535 """DoSetClientSize(self, int width, int height)"""
3536 return _windows_
.PyScrolledWindow_DoSetClientSize(*args
, **kwargs
)
3538 def DoSetVirtualSize(*args
, **kwargs
):
3539 """DoSetVirtualSize(self, int x, int y)"""
3540 return _windows_
.PyScrolledWindow_DoSetVirtualSize(*args
, **kwargs
)
3542 def DoGetSize(*args
, **kwargs
):
3543 """DoGetSize() -> (width, height)"""
3544 return _windows_
.PyScrolledWindow_DoGetSize(*args
, **kwargs
)
3546 def DoGetClientSize(*args
, **kwargs
):
3547 """DoGetClientSize() -> (width, height)"""
3548 return _windows_
.PyScrolledWindow_DoGetClientSize(*args
, **kwargs
)
3550 def DoGetPosition(*args
, **kwargs
):
3551 """DoGetPosition() -> (x,y)"""
3552 return _windows_
.PyScrolledWindow_DoGetPosition(*args
, **kwargs
)
3554 def DoGetVirtualSize(*args
, **kwargs
):
3555 """DoGetVirtualSize(self) -> Size"""
3556 return _windows_
.PyScrolledWindow_DoGetVirtualSize(*args
, **kwargs
)
3558 def DoGetBestSize(*args
, **kwargs
):
3559 """DoGetBestSize(self) -> Size"""
3560 return _windows_
.PyScrolledWindow_DoGetBestSize(*args
, **kwargs
)
3562 def GetDefaultAttributes(*args
, **kwargs
):
3563 """GetDefaultAttributes(self) -> VisualAttributes"""
3564 return _windows_
.PyScrolledWindow_GetDefaultAttributes(*args
, **kwargs
)
3566 def OnInternalIdle(*args
, **kwargs
):
3567 """OnInternalIdle(self)"""
3568 return _windows_
.PyScrolledWindow_OnInternalIdle(*args
, **kwargs
)
3570 def base_DoMoveWindow(*args
, **kw
):
3571 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
3572 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3573 "Please use PyScrolledWindow.DoMoveWindow instead.")
3575 def base_DoSetSize(*args
, **kw
):
3576 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
3577 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3578 "Please use PyScrolledWindow.DoSetSize instead.")
3580 def base_DoSetClientSize(*args
, **kw
):
3581 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
3582 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3583 "Please use PyScrolledWindow.DoSetClientSize instead.")
3585 def base_DoSetVirtualSize(*args
, **kw
):
3586 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
3587 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3588 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
3590 def base_DoGetSize(*args
, **kw
):
3591 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
3592 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3593 "Please use PyScrolledWindow.DoGetSize instead.")
3595 def base_DoGetClientSize(*args
, **kw
):
3596 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
3597 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3598 "Please use PyScrolledWindow.DoGetClientSize instead.")
3600 def base_DoGetPosition(*args
, **kw
):
3601 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
3602 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3603 "Please use PyScrolledWindow.DoGetPosition instead.")
3605 def base_DoGetVirtualSize(*args
, **kw
):
3606 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
3607 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3608 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
3610 def base_DoGetBestSize(*args
, **kw
):
3611 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
3612 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3613 "Please use PyScrolledWindow.DoGetBestSize instead.")
3615 def base_InitDialog(*args
, **kw
):
3616 return PyScrolledWindow
.InitDialog(*args
, **kw
)
3617 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3618 "Please use PyScrolledWindow.InitDialog instead.")
3620 def base_TransferDataToWindow(*args
, **kw
):
3621 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
3622 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3623 "Please use PyScrolledWindow.TransferDataToWindow instead.")
3625 def base_TransferDataFromWindow(*args
, **kw
):
3626 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
3627 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3628 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
3630 def base_Validate(*args
, **kw
):
3631 return PyScrolledWindow
.Validate(*args
, **kw
)
3632 base_Validate
= wx
._deprecated
(base_Validate
,
3633 "Please use PyScrolledWindow.Validate instead.")
3635 def base_AcceptsFocus(*args
, **kw
):
3636 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
3637 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3638 "Please use PyScrolledWindow.AcceptsFocus instead.")
3640 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3641 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3642 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3643 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
3645 def base_GetMaxSize(*args
, **kw
):
3646 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
3647 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3648 "Please use PyScrolledWindow.GetMaxSize instead.")
3650 def base_AddChild(*args
, **kw
):
3651 return PyScrolledWindow
.AddChild(*args
, **kw
)
3652 base_AddChild
= wx
._deprecated
(base_AddChild
,
3653 "Please use PyScrolledWindow.AddChild instead.")
3655 def base_RemoveChild(*args
, **kw
):
3656 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
3657 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3658 "Please use PyScrolledWindow.RemoveChild instead.")
3660 def base_ShouldInheritColours(*args
, **kw
):
3661 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
3662 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3663 "Please use PyScrolledWindow.ShouldInheritColours instead.")
3665 def base_GetDefaultAttributes(*args
, **kw
):
3666 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
3667 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3668 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
3670 def base_OnInternalIdle(*args
, **kw
):
3671 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
3672 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3673 "Please use PyScrolledWindow.OnInternalIdle instead.")
3675 PyScrolledWindow_swigregister
= _windows_
.PyScrolledWindow_swigregister
3676 PyScrolledWindow_swigregister(PyScrolledWindow
)
3678 def PrePyScrolledWindow(*args
, **kwargs
):
3679 """PrePyScrolledWindow() -> PyScrolledWindow"""
3680 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3683 #---------------------------------------------------------------------------
3685 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3686 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3687 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3688 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3689 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3690 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3691 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3692 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3693 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3694 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3695 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3696 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3697 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3698 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3699 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3700 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3701 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3702 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3703 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3704 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3705 class PrintData(_core
.Object
):
3706 """Proxy of C++ PrintData class"""
3707 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3708 __repr__
= _swig_repr
3709 def __init__(self
, *args
):
3711 __init__(self) -> PrintData
3712 __init__(self, PrintData data) -> PrintData
3714 _windows_
.PrintData_swiginit(self
,_windows_
.new_PrintData(*args
))
3715 __swig_destroy__
= _windows_
.delete_PrintData
3716 __del__
= lambda self
: None;
3717 def GetNoCopies(*args
, **kwargs
):
3718 """GetNoCopies(self) -> int"""
3719 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3721 def GetCollate(*args
, **kwargs
):
3722 """GetCollate(self) -> bool"""
3723 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3725 def GetOrientation(*args
, **kwargs
):
3726 """GetOrientation(self) -> int"""
3727 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3729 def Ok(*args
, **kwargs
):
3730 """Ok(self) -> bool"""
3731 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3733 def GetPrinterName(*args
, **kwargs
):
3734 """GetPrinterName(self) -> String"""
3735 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3737 def GetColour(*args
, **kwargs
):
3738 """GetColour(self) -> bool"""
3739 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3741 def GetDuplex(*args
, **kwargs
):
3742 """GetDuplex(self) -> int"""
3743 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3745 def GetPaperId(*args
, **kwargs
):
3746 """GetPaperId(self) -> int"""
3747 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3749 def GetPaperSize(*args
, **kwargs
):
3750 """GetPaperSize(self) -> Size"""
3751 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3753 def GetQuality(*args
, **kwargs
):
3754 """GetQuality(self) -> int"""
3755 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3757 def GetBin(*args
, **kwargs
):
3758 """GetBin(self) -> int"""
3759 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3761 def GetPrintMode(*args
, **kwargs
):
3762 """GetPrintMode(self) -> int"""
3763 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3765 def SetNoCopies(*args
, **kwargs
):
3766 """SetNoCopies(self, int v)"""
3767 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3769 def SetCollate(*args
, **kwargs
):
3770 """SetCollate(self, bool flag)"""
3771 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3773 def SetOrientation(*args
, **kwargs
):
3774 """SetOrientation(self, int orient)"""
3775 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3777 def SetPrinterName(*args
, **kwargs
):
3778 """SetPrinterName(self, String name)"""
3779 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3781 def SetColour(*args
, **kwargs
):
3782 """SetColour(self, bool colour)"""
3783 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3785 def SetDuplex(*args
, **kwargs
):
3786 """SetDuplex(self, int duplex)"""
3787 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3789 def SetPaperId(*args
, **kwargs
):
3790 """SetPaperId(self, int sizeId)"""
3791 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3793 def SetPaperSize(*args
, **kwargs
):
3794 """SetPaperSize(self, Size sz)"""
3795 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3797 def SetQuality(*args
, **kwargs
):
3798 """SetQuality(self, int quality)"""
3799 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3801 def SetBin(*args
, **kwargs
):
3802 """SetBin(self, int bin)"""
3803 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3805 def SetPrintMode(*args
, **kwargs
):
3806 """SetPrintMode(self, int printMode)"""
3807 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3809 def GetFilename(*args
, **kwargs
):
3810 """GetFilename(self) -> String"""
3811 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3813 def SetFilename(*args
, **kwargs
):
3814 """SetFilename(self, String filename)"""
3815 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3817 def __nonzero__(self
): return self
.Ok()
3818 def GetPrivData(*args
, **kwargs
):
3819 """GetPrivData(self) -> PyObject"""
3820 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
3822 def SetPrivData(*args
, **kwargs
):
3823 """SetPrivData(self, PyObject data)"""
3824 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
3826 PrintData_swigregister
= _windows_
.PrintData_swigregister
3827 PrintData_swigregister(PrintData
)
3828 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3829 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3831 class PageSetupDialogData(_core
.Object
):
3832 """Proxy of C++ PageSetupDialogData class"""
3833 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3834 __repr__
= _swig_repr
3835 def __init__(self
, *args
):
3837 __init__(self) -> PageSetupDialogData
3838 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3839 __init__(self, PrintData data) -> PageSetupDialogData
3841 _windows_
.PageSetupDialogData_swiginit(self
,_windows_
.new_PageSetupDialogData(*args
))
3842 __swig_destroy__
= _windows_
.delete_PageSetupDialogData
3843 __del__
= lambda self
: None;
3844 def EnableHelp(*args
, **kwargs
):
3845 """EnableHelp(self, bool flag)"""
3846 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3848 def EnableMargins(*args
, **kwargs
):
3849 """EnableMargins(self, bool flag)"""
3850 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3852 def EnableOrientation(*args
, **kwargs
):
3853 """EnableOrientation(self, bool flag)"""
3854 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3856 def EnablePaper(*args
, **kwargs
):
3857 """EnablePaper(self, bool flag)"""
3858 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3860 def EnablePrinter(*args
, **kwargs
):
3861 """EnablePrinter(self, bool flag)"""
3862 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3864 def GetDefaultMinMargins(*args
, **kwargs
):
3865 """GetDefaultMinMargins(self) -> bool"""
3866 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3868 def GetEnableMargins(*args
, **kwargs
):
3869 """GetEnableMargins(self) -> bool"""
3870 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3872 def GetEnableOrientation(*args
, **kwargs
):
3873 """GetEnableOrientation(self) -> bool"""
3874 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3876 def GetEnablePaper(*args
, **kwargs
):
3877 """GetEnablePaper(self) -> bool"""
3878 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3880 def GetEnablePrinter(*args
, **kwargs
):
3881 """GetEnablePrinter(self) -> bool"""
3882 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3884 def GetEnableHelp(*args
, **kwargs
):
3885 """GetEnableHelp(self) -> bool"""
3886 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3888 def GetDefaultInfo(*args
, **kwargs
):
3889 """GetDefaultInfo(self) -> bool"""
3890 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3892 def GetMarginTopLeft(*args
, **kwargs
):
3893 """GetMarginTopLeft(self) -> Point"""
3894 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3896 def GetMarginBottomRight(*args
, **kwargs
):
3897 """GetMarginBottomRight(self) -> Point"""
3898 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3900 def GetMinMarginTopLeft(*args
, **kwargs
):
3901 """GetMinMarginTopLeft(self) -> Point"""
3902 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3904 def GetMinMarginBottomRight(*args
, **kwargs
):
3905 """GetMinMarginBottomRight(self) -> Point"""
3906 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3908 def GetPaperId(*args
, **kwargs
):
3909 """GetPaperId(self) -> int"""
3910 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3912 def GetPaperSize(*args
, **kwargs
):
3913 """GetPaperSize(self) -> Size"""
3914 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3916 def GetPrintData(*args
, **kwargs
):
3917 """GetPrintData(self) -> PrintData"""
3918 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3920 def Ok(*args
, **kwargs
):
3921 """Ok(self) -> bool"""
3922 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3924 def SetDefaultInfo(*args
, **kwargs
):
3925 """SetDefaultInfo(self, bool flag)"""
3926 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3928 def SetDefaultMinMargins(*args
, **kwargs
):
3929 """SetDefaultMinMargins(self, bool flag)"""
3930 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3932 def SetMarginTopLeft(*args
, **kwargs
):
3933 """SetMarginTopLeft(self, Point pt)"""
3934 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3936 def SetMarginBottomRight(*args
, **kwargs
):
3937 """SetMarginBottomRight(self, Point pt)"""
3938 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3940 def SetMinMarginTopLeft(*args
, **kwargs
):
3941 """SetMinMarginTopLeft(self, Point pt)"""
3942 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3944 def SetMinMarginBottomRight(*args
, **kwargs
):
3945 """SetMinMarginBottomRight(self, Point pt)"""
3946 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3948 def SetPaperId(*args
, **kwargs
):
3949 """SetPaperId(self, int id)"""
3950 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3952 def SetPaperSize(*args
, **kwargs
):
3953 """SetPaperSize(self, Size size)"""
3954 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3956 def SetPrintData(*args
, **kwargs
):
3957 """SetPrintData(self, PrintData printData)"""
3958 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3960 def CalculateIdFromPaperSize(*args
, **kwargs
):
3961 """CalculateIdFromPaperSize(self)"""
3962 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
3964 def CalculatePaperSizeFromId(*args
, **kwargs
):
3965 """CalculatePaperSizeFromId(self)"""
3966 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
3968 def __nonzero__(self
): return self
.Ok()
3969 PageSetupDialogData_swigregister
= _windows_
.PageSetupDialogData_swigregister
3970 PageSetupDialogData_swigregister(PageSetupDialogData
)
3972 class PageSetupDialog(_core
.Object
):
3973 """Proxy of C++ PageSetupDialog class"""
3974 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3975 __repr__
= _swig_repr
3976 def __init__(self
, *args
, **kwargs
):
3977 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3978 _windows_
.PageSetupDialog_swiginit(self
,_windows_
.new_PageSetupDialog(*args
, **kwargs
))
3979 def GetPageSetupData(*args
, **kwargs
):
3980 """GetPageSetupData(self) -> PageSetupDialogData"""
3981 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3983 def GetPageSetupDialogData(*args
, **kwargs
):
3984 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
3985 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
3987 def ShowModal(*args
, **kwargs
):
3988 """ShowModal(self) -> int"""
3989 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3991 PageSetupDialog_swigregister
= _windows_
.PageSetupDialog_swigregister
3992 PageSetupDialog_swigregister(PageSetupDialog
)
3994 class PrintDialogData(_core
.Object
):
3995 """Proxy of C++ PrintDialogData class"""
3996 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3997 __repr__
= _swig_repr
3998 def __init__(self
, *args
):
4000 __init__(self) -> PrintDialogData
4001 __init__(self, PrintData printData) -> PrintDialogData
4002 __init__(self, PrintDialogData printData) -> PrintDialogData
4004 _windows_
.PrintDialogData_swiginit(self
,_windows_
.new_PrintDialogData(*args
))
4005 __swig_destroy__
= _windows_
.delete_PrintDialogData
4006 __del__
= lambda self
: None;
4007 def GetFromPage(*args
, **kwargs
):
4008 """GetFromPage(self) -> int"""
4009 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4011 def GetToPage(*args
, **kwargs
):
4012 """GetToPage(self) -> int"""
4013 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4015 def GetMinPage(*args
, **kwargs
):
4016 """GetMinPage(self) -> int"""
4017 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4019 def GetMaxPage(*args
, **kwargs
):
4020 """GetMaxPage(self) -> int"""
4021 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4023 def GetNoCopies(*args
, **kwargs
):
4024 """GetNoCopies(self) -> int"""
4025 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4027 def GetAllPages(*args
, **kwargs
):
4028 """GetAllPages(self) -> bool"""
4029 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4031 def GetSelection(*args
, **kwargs
):
4032 """GetSelection(self) -> bool"""
4033 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4035 def GetCollate(*args
, **kwargs
):
4036 """GetCollate(self) -> bool"""
4037 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4039 def GetPrintToFile(*args
, **kwargs
):
4040 """GetPrintToFile(self) -> bool"""
4041 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4043 def SetFromPage(*args
, **kwargs
):
4044 """SetFromPage(self, int v)"""
4045 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4047 def SetToPage(*args
, **kwargs
):
4048 """SetToPage(self, int v)"""
4049 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4051 def SetMinPage(*args
, **kwargs
):
4052 """SetMinPage(self, int v)"""
4053 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4055 def SetMaxPage(*args
, **kwargs
):
4056 """SetMaxPage(self, int v)"""
4057 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4059 def SetNoCopies(*args
, **kwargs
):
4060 """SetNoCopies(self, int v)"""
4061 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4063 def SetAllPages(*args
, **kwargs
):
4064 """SetAllPages(self, bool flag)"""
4065 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4067 def SetSelection(*args
, **kwargs
):
4068 """SetSelection(self, bool flag)"""
4069 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4071 def SetCollate(*args
, **kwargs
):
4072 """SetCollate(self, bool flag)"""
4073 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4075 def SetPrintToFile(*args
, **kwargs
):
4076 """SetPrintToFile(self, bool flag)"""
4077 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4079 def EnablePrintToFile(*args
, **kwargs
):
4080 """EnablePrintToFile(self, bool flag)"""
4081 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4083 def EnableSelection(*args
, **kwargs
):
4084 """EnableSelection(self, bool flag)"""
4085 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4087 def EnablePageNumbers(*args
, **kwargs
):
4088 """EnablePageNumbers(self, bool flag)"""
4089 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4091 def EnableHelp(*args
, **kwargs
):
4092 """EnableHelp(self, bool flag)"""
4093 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4095 def GetEnablePrintToFile(*args
, **kwargs
):
4096 """GetEnablePrintToFile(self) -> bool"""
4097 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4099 def GetEnableSelection(*args
, **kwargs
):
4100 """GetEnableSelection(self) -> bool"""
4101 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4103 def GetEnablePageNumbers(*args
, **kwargs
):
4104 """GetEnablePageNumbers(self) -> bool"""
4105 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4107 def GetEnableHelp(*args
, **kwargs
):
4108 """GetEnableHelp(self) -> bool"""
4109 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4111 def Ok(*args
, **kwargs
):
4112 """Ok(self) -> bool"""
4113 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4115 def GetPrintData(*args
, **kwargs
):
4116 """GetPrintData(self) -> PrintData"""
4117 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4119 def SetPrintData(*args
, **kwargs
):
4120 """SetPrintData(self, PrintData printData)"""
4121 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4123 def __nonzero__(self
): return self
.Ok()
4124 PrintDialogData_swigregister
= _windows_
.PrintDialogData_swigregister
4125 PrintDialogData_swigregister(PrintDialogData
)
4127 class PrintDialog(_core
.Object
):
4128 """Proxy of C++ PrintDialog class"""
4129 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4130 __repr__
= _swig_repr
4131 def __init__(self
, *args
, **kwargs
):
4132 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4133 _windows_
.PrintDialog_swiginit(self
,_windows_
.new_PrintDialog(*args
, **kwargs
))
4134 def ShowModal(*args
, **kwargs
):
4135 """ShowModal(self) -> int"""
4136 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4138 def GetPrintDialogData(*args
, **kwargs
):
4139 """GetPrintDialogData(self) -> PrintDialogData"""
4140 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4142 def GetPrintData(*args
, **kwargs
):
4143 """GetPrintData(self) -> PrintData"""
4144 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4146 def GetPrintDC(*args
, **kwargs
):
4147 """GetPrintDC(self) -> DC"""
4148 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4150 PrintDialog_swigregister
= _windows_
.PrintDialog_swigregister
4151 PrintDialog_swigregister(PrintDialog
)
4153 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4154 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4155 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4156 class Printer(_core
.Object
):
4157 """Proxy of C++ Printer class"""
4158 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4159 __repr__
= _swig_repr
4160 def __init__(self
, *args
, **kwargs
):
4161 """__init__(self, PrintDialogData data=None) -> Printer"""
4162 _windows_
.Printer_swiginit(self
,_windows_
.new_Printer(*args
, **kwargs
))
4163 __swig_destroy__
= _windows_
.delete_Printer
4164 __del__
= lambda self
: None;
4165 def CreateAbortWindow(*args
, **kwargs
):
4166 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4167 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4169 def ReportError(*args
, **kwargs
):
4170 """ReportError(self, Window parent, Printout printout, String message)"""
4171 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4173 def Setup(*args
, **kwargs
):
4174 """Setup(self, Window parent) -> bool"""
4175 return _windows_
.Printer_Setup(*args
, **kwargs
)
4177 def Print(*args
, **kwargs
):
4178 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4179 return _windows_
.Printer_Print(*args
, **kwargs
)
4181 def PrintDialog(*args
, **kwargs
):
4182 """PrintDialog(self, Window parent) -> DC"""
4183 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4185 def GetPrintDialogData(*args
, **kwargs
):
4186 """GetPrintDialogData(self) -> PrintDialogData"""
4187 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4189 def GetAbort(*args
, **kwargs
):
4190 """GetAbort(self) -> bool"""
4191 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4193 def GetLastError(*args
, **kwargs
):
4194 """GetLastError() -> int"""
4195 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4197 GetLastError
= staticmethod(GetLastError
)
4198 Printer_swigregister
= _windows_
.Printer_swigregister
4199 Printer_swigregister(Printer
)
4201 def Printer_GetLastError(*args
):
4202 """Printer_GetLastError() -> int"""
4203 return _windows_
.Printer_GetLastError(*args
)
4205 class Printout(_core
.Object
):
4206 """Proxy of C++ Printout class"""
4207 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4208 __repr__
= _swig_repr
4209 def __init__(self
, *args
, **kwargs
):
4210 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4211 _windows_
.Printout_swiginit(self
,_windows_
.new_Printout(*args
, **kwargs
))
4212 self
._setCallbackInfo
(self
, Printout
)
4214 __swig_destroy__
= _windows_
.delete_Printout
4215 __del__
= lambda self
: None;
4216 def _setCallbackInfo(*args
, **kwargs
):
4217 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4218 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4220 def GetTitle(*args
, **kwargs
):
4221 """GetTitle(self) -> String"""
4222 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4224 def GetDC(*args
, **kwargs
):
4225 """GetDC(self) -> DC"""
4226 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4228 def SetDC(*args
, **kwargs
):
4229 """SetDC(self, DC dc)"""
4230 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4232 def SetPageSizePixels(*args
, **kwargs
):
4233 """SetPageSizePixels(self, int w, int h)"""
4234 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4236 def GetPageSizePixels(*args
, **kwargs
):
4237 """GetPageSizePixels() -> (w, h)"""
4238 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4240 def SetPageSizeMM(*args
, **kwargs
):
4241 """SetPageSizeMM(self, int w, int h)"""
4242 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4244 def GetPageSizeMM(*args
, **kwargs
):
4245 """GetPageSizeMM() -> (w, h)"""
4246 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4248 def SetPPIScreen(*args
, **kwargs
):
4249 """SetPPIScreen(self, int x, int y)"""
4250 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4252 def GetPPIScreen(*args
, **kwargs
):
4253 """GetPPIScreen() -> (x,y)"""
4254 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4256 def SetPPIPrinter(*args
, **kwargs
):
4257 """SetPPIPrinter(self, int x, int y)"""
4258 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4260 def GetPPIPrinter(*args
, **kwargs
):
4261 """GetPPIPrinter() -> (x,y)"""
4262 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4264 def IsPreview(*args
, **kwargs
):
4265 """IsPreview(self) -> bool"""
4266 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4268 def SetIsPreview(*args
, **kwargs
):
4269 """SetIsPreview(self, bool p)"""
4270 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4272 def OnBeginDocument(*args
, **kwargs
):
4273 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4274 return _windows_
.Printout_OnBeginDocument(*args
, **kwargs
)
4276 def OnEndDocument(*args
, **kwargs
):
4277 """OnEndDocument(self)"""
4278 return _windows_
.Printout_OnEndDocument(*args
, **kwargs
)
4280 def OnBeginPrinting(*args
, **kwargs
):
4281 """OnBeginPrinting(self)"""
4282 return _windows_
.Printout_OnBeginPrinting(*args
, **kwargs
)
4284 def OnEndPrinting(*args
, **kwargs
):
4285 """OnEndPrinting(self)"""
4286 return _windows_
.Printout_OnEndPrinting(*args
, **kwargs
)
4288 def OnPreparePrinting(*args
, **kwargs
):
4289 """OnPreparePrinting(self)"""
4290 return _windows_
.Printout_OnPreparePrinting(*args
, **kwargs
)
4292 def HasPage(*args
, **kwargs
):
4293 """HasPage(self, int page) -> bool"""
4294 return _windows_
.Printout_HasPage(*args
, **kwargs
)
4296 def GetPageInfo(*args
, **kwargs
):
4297 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4298 return _windows_
.Printout_GetPageInfo(*args
, **kwargs
)
4300 def base_OnBeginDocument(*args
, **kw
):
4301 return Printout
.OnBeginDocument(*args
, **kw
)
4302 base_OnBeginDocument
= wx
._deprecated
(base_OnBeginDocument
,
4303 "Please use Printout.OnBeginDocument instead.")
4305 def base_OnEndDocument(*args
, **kw
):
4306 return Printout
.OnEndDocument(*args
, **kw
)
4307 base_OnEndDocument
= wx
._deprecated
(base_OnEndDocument
,
4308 "Please use Printout.OnEndDocument instead.")
4310 def base_OnBeginPrinting(*args
, **kw
):
4311 return Printout
.OnBeginPrinting(*args
, **kw
)
4312 base_OnBeginPrinting
= wx
._deprecated
(base_OnBeginPrinting
,
4313 "Please use Printout.OnBeginPrinting instead.")
4315 def base_OnEndPrinting(*args
, **kw
):
4316 return Printout
.OnEndPrinting(*args
, **kw
)
4317 base_OnEndPrinting
= wx
._deprecated
(base_OnEndPrinting
,
4318 "Please use Printout.OnEndPrinting instead.")
4320 def base_OnPreparePrinting(*args
, **kw
):
4321 return Printout
.OnPreparePrinting(*args
, **kw
)
4322 base_OnPreparePrinting
= wx
._deprecated
(base_OnPreparePrinting
,
4323 "Please use Printout.OnPreparePrinting instead.")
4325 def base_GetPageInfo(*args
, **kw
):
4326 return Printout
.GetPageInfo(*args
, **kw
)
4327 base_GetPageInfo
= wx
._deprecated
(base_GetPageInfo
,
4328 "Please use Printout.GetPageInfo instead.")
4330 Printout_swigregister
= _windows_
.Printout_swigregister
4331 Printout_swigregister(Printout
)
4333 class PreviewCanvas(ScrolledWindow
):
4334 """Proxy of C++ PreviewCanvas class"""
4335 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4336 __repr__
= _swig_repr
4337 def __init__(self
, *args
, **kwargs
):
4339 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4340 Size size=DefaultSize, long style=0,
4341 String name=PreviewCanvasNameStr) -> PreviewCanvas
4343 _windows_
.PreviewCanvas_swiginit(self
,_windows_
.new_PreviewCanvas(*args
, **kwargs
))
4344 self
._setOORInfo
(self
)
4346 PreviewCanvas_swigregister
= _windows_
.PreviewCanvas_swigregister
4347 PreviewCanvas_swigregister(PreviewCanvas
)
4349 class PreviewFrame(Frame
):
4350 """Proxy of C++ PreviewFrame class"""
4351 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4352 __repr__
= _swig_repr
4353 def __init__(self
, *args
, **kwargs
):
4355 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4356 Size size=DefaultSize,
4357 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4359 _windows_
.PreviewFrame_swiginit(self
,_windows_
.new_PreviewFrame(*args
, **kwargs
))
4360 self
._setOORInfo
(self
)
4362 def Initialize(*args
, **kwargs
):
4363 """Initialize(self)"""
4364 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4366 def CreateControlBar(*args
, **kwargs
):
4367 """CreateControlBar(self)"""
4368 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4370 def CreateCanvas(*args
, **kwargs
):
4371 """CreateCanvas(self)"""
4372 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4374 def GetControlBar(*args
, **kwargs
):
4375 """GetControlBar(self) -> PreviewControlBar"""
4376 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4378 PreviewFrame_swigregister
= _windows_
.PreviewFrame_swigregister
4379 PreviewFrame_swigregister(PreviewFrame
)
4381 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4382 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4383 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4384 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4385 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4386 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4387 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4388 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4389 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4390 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4391 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4392 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4393 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4394 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4395 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4396 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4397 class PreviewControlBar(Panel
):
4398 """Proxy of C++ PreviewControlBar class"""
4399 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4400 __repr__
= _swig_repr
4401 def __init__(self
, *args
, **kwargs
):
4403 __init__(self, PrintPreview preview, long buttons, Window parent,
4404 Point pos=DefaultPosition, Size size=DefaultSize,
4405 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4407 _windows_
.PreviewControlBar_swiginit(self
,_windows_
.new_PreviewControlBar(*args
, **kwargs
))
4408 self
._setOORInfo
(self
)
4410 def GetZoomControl(*args
, **kwargs
):
4411 """GetZoomControl(self) -> int"""
4412 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4414 def SetZoomControl(*args
, **kwargs
):
4415 """SetZoomControl(self, int zoom)"""
4416 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4418 def GetPrintPreview(*args
, **kwargs
):
4419 """GetPrintPreview(self) -> PrintPreview"""
4420 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4422 def OnNext(*args
, **kwargs
):
4424 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4426 def OnPrevious(*args
, **kwargs
):
4427 """OnPrevious(self)"""
4428 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4430 def OnFirst(*args
, **kwargs
):
4432 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4434 def OnLast(*args
, **kwargs
):
4436 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4438 def OnGoto(*args
, **kwargs
):
4440 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4442 PreviewControlBar_swigregister
= _windows_
.PreviewControlBar_swigregister
4443 PreviewControlBar_swigregister(PreviewControlBar
)
4445 class PrintPreview(_core
.Object
):
4446 """Proxy of C++ PrintPreview class"""
4447 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4448 __repr__
= _swig_repr
4449 def __init__(self
, *args
):
4451 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4452 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4454 _windows_
.PrintPreview_swiginit(self
,_windows_
.new_PrintPreview(*args
))
4455 __swig_destroy__
= _windows_
.delete_PrintPreview
4456 __del__
= lambda self
: None;
4457 def SetCurrentPage(*args
, **kwargs
):
4458 """SetCurrentPage(self, int pageNum) -> bool"""
4459 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4461 def GetCurrentPage(*args
, **kwargs
):
4462 """GetCurrentPage(self) -> int"""
4463 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4465 def SetPrintout(*args
, **kwargs
):
4466 """SetPrintout(self, Printout printout)"""
4467 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4469 def GetPrintout(*args
, **kwargs
):
4470 """GetPrintout(self) -> Printout"""
4471 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4473 def GetPrintoutForPrinting(*args
, **kwargs
):
4474 """GetPrintoutForPrinting(self) -> Printout"""
4475 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4477 def SetFrame(*args
, **kwargs
):
4478 """SetFrame(self, Frame frame)"""
4479 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4481 def SetCanvas(*args
, **kwargs
):
4482 """SetCanvas(self, PreviewCanvas canvas)"""
4483 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4485 def GetFrame(*args
, **kwargs
):
4486 """GetFrame(self) -> Frame"""
4487 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4489 def GetCanvas(*args
, **kwargs
):
4490 """GetCanvas(self) -> PreviewCanvas"""
4491 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4493 def PaintPage(*args
, **kwargs
):
4494 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4495 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4497 def DrawBlankPage(*args
, **kwargs
):
4498 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4499 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4501 def RenderPage(*args
, **kwargs
):
4502 """RenderPage(self, int pageNum) -> bool"""
4503 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4505 def AdjustScrollbars(*args
, **kwargs
):
4506 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4507 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4509 def GetPrintDialogData(*args
, **kwargs
):
4510 """GetPrintDialogData(self) -> PrintDialogData"""
4511 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4513 def SetZoom(*args
, **kwargs
):
4514 """SetZoom(self, int percent)"""
4515 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4517 def GetZoom(*args
, **kwargs
):
4518 """GetZoom(self) -> int"""
4519 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4521 def GetMaxPage(*args
, **kwargs
):
4522 """GetMaxPage(self) -> int"""
4523 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4525 def GetMinPage(*args
, **kwargs
):
4526 """GetMinPage(self) -> int"""
4527 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4529 def Ok(*args
, **kwargs
):
4530 """Ok(self) -> bool"""
4531 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4533 def SetOk(*args
, **kwargs
):
4534 """SetOk(self, bool ok)"""
4535 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4537 def Print(*args
, **kwargs
):
4538 """Print(self, bool interactive) -> bool"""
4539 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4541 def DetermineScaling(*args
, **kwargs
):
4542 """DetermineScaling(self)"""
4543 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4545 def __nonzero__(self
): return self
.Ok()
4546 PrintPreview_swigregister
= _windows_
.PrintPreview_swigregister
4547 PrintPreview_swigregister(PrintPreview
)
4549 class PyPrintPreview(PrintPreview
):
4550 """Proxy of C++ PyPrintPreview class"""
4551 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4552 __repr__
= _swig_repr
4553 def __init__(self
, *args
):
4555 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4556 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4558 _windows_
.PyPrintPreview_swiginit(self
,_windows_
.new_PyPrintPreview(*args
))
4559 self
._setCallbackInfo
(self
, PyPrintPreview
)
4561 def _setCallbackInfo(*args
, **kwargs
):
4562 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4563 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4565 def base_SetCurrentPage(*args
, **kw
):
4566 return PyPrintPreview
.SetCurrentPage(*args
, **kw
)
4567 base_SetCurrentPage
= wx
._deprecated
(base_SetCurrentPage
,
4568 "Please use PyPrintPreview.SetCurrentPage instead.")
4570 def base_PaintPage(*args
, **kw
):
4571 return PyPrintPreview
.PaintPage(*args
, **kw
)
4572 base_PaintPage
= wx
._deprecated
(base_PaintPage
,
4573 "Please use PyPrintPreview.PaintPage instead.")
4575 def base_DrawBlankPage(*args
, **kw
):
4576 return PyPrintPreview
.DrawBlankPage(*args
, **kw
)
4577 base_DrawBlankPage
= wx
._deprecated
(base_DrawBlankPage
,
4578 "Please use PyPrintPreview.DrawBlankPage instead.")
4580 def base_RenderPage(*args
, **kw
):
4581 return PyPrintPreview
.RenderPage(*args
, **kw
)
4582 base_RenderPage
= wx
._deprecated
(base_RenderPage
,
4583 "Please use PyPrintPreview.RenderPage instead.")
4585 def base_SetZoom(*args
, **kw
):
4586 return PyPrintPreview
.SetZoom(*args
, **kw
)
4587 base_SetZoom
= wx
._deprecated
(base_SetZoom
,
4588 "Please use PyPrintPreview.SetZoom instead.")
4590 def base_Print(*args
, **kw
):
4591 return PyPrintPreview
.Print(*args
, **kw
)
4592 base_Print
= wx
._deprecated
(base_Print
,
4593 "Please use PyPrintPreview.Print instead.")
4595 def base_DetermineScaling(*args
, **kw
):
4596 return PyPrintPreview
.DetermineScaling(*args
, **kw
)
4597 base_DetermineScaling
= wx
._deprecated
(base_DetermineScaling
,
4598 "Please use PyPrintPreview.DetermineScaling instead.")
4600 PyPrintPreview_swigregister
= _windows_
.PyPrintPreview_swigregister
4601 PyPrintPreview_swigregister(PyPrintPreview
)
4603 class PyPreviewFrame(PreviewFrame
):
4604 """Proxy of C++ PyPreviewFrame class"""
4605 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4606 __repr__
= _swig_repr
4607 def __init__(self
, *args
, **kwargs
):
4609 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4610 Size size=DefaultSize,
4611 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4613 _windows_
.PyPreviewFrame_swiginit(self
,_windows_
.new_PyPreviewFrame(*args
, **kwargs
))
4614 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4616 def _setCallbackInfo(*args
, **kwargs
):
4617 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4618 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4620 def SetPreviewCanvas(*args
, **kwargs
):
4621 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4622 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4624 def SetControlBar(*args
, **kwargs
):
4625 """SetControlBar(self, PreviewControlBar bar)"""
4626 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4628 def Initialize(*args
, **kwargs
):
4629 """Initialize(self)"""
4630 return _windows_
.PyPreviewFrame_Initialize(*args
, **kwargs
)
4632 def CreateCanvas(*args
, **kwargs
):
4633 """CreateCanvas(self)"""
4634 return _windows_
.PyPreviewFrame_CreateCanvas(*args
, **kwargs
)
4636 def CreateControlBar(*args
, **kwargs
):
4637 """CreateControlBar(self)"""
4638 return _windows_
.PyPreviewFrame_CreateControlBar(*args
, **kwargs
)
4640 def base_Initialize(*args
, **kw
):
4641 return PyPreviewFrame
.Initialize(*args
, **kw
)
4642 base_Initialize
= wx
._deprecated
(base_Initialize
,
4643 "Please use PyPreviewFrame.Initialize instead.")
4645 def base_CreateCanvas(*args
, **kw
):
4646 return PyPreviewFrame
.CreateCanvas(*args
, **kw
)
4647 base_CreateCanvas
= wx
._deprecated
(base_CreateCanvas
,
4648 "Please use PyPreviewFrame.CreateCanvas instead.")
4650 def base_CreateControlBar(*args
, **kw
):
4651 return PyPreviewFrame
.CreateControlBar(*args
, **kw
)
4652 base_CreateControlBar
= wx
._deprecated
(base_CreateControlBar
,
4653 "Please use PyPreviewFrame.CreateControlBar instead.")
4655 PyPreviewFrame_swigregister
= _windows_
.PyPreviewFrame_swigregister
4656 PyPreviewFrame_swigregister(PyPreviewFrame
)
4658 class PyPreviewControlBar(PreviewControlBar
):
4659 """Proxy of C++ PyPreviewControlBar class"""
4660 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4661 __repr__
= _swig_repr
4662 def __init__(self
, *args
, **kwargs
):
4664 __init__(self, PrintPreview preview, long buttons, Window parent,
4665 Point pos=DefaultPosition, Size size=DefaultSize,
4666 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4668 _windows_
.PyPreviewControlBar_swiginit(self
,_windows_
.new_PyPreviewControlBar(*args
, **kwargs
))
4669 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4671 def _setCallbackInfo(*args
, **kwargs
):
4672 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4673 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4675 def SetPrintPreview(*args
, **kwargs
):
4676 """SetPrintPreview(self, PrintPreview preview)"""
4677 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4679 def CreateButtons(*args
, **kwargs
):
4680 """CreateButtons(self)"""
4681 return _windows_
.PyPreviewControlBar_CreateButtons(*args
, **kwargs
)
4683 def SetZoomControl(*args
, **kwargs
):
4684 """SetZoomControl(self, int zoom)"""
4685 return _windows_
.PyPreviewControlBar_SetZoomControl(*args
, **kwargs
)
4687 def base_CreateButtons(*args
, **kw
):
4688 return PreviewControlBar
.CreateButtons(*args
, **kw
)
4689 base_CreateButtons
= wx
._deprecated
(base_CreateButtons
,
4690 "Please use PreviewControlBar.CreateButtons instead.")
4692 def base_SetZoomControl(*args
, **kw
):
4693 return PreviewControlBar
.SetZoomControl(*args
, **kw
)
4694 base_SetZoomControl
= wx
._deprecated
(base_SetZoomControl
,
4695 "Please use PreviewControlBar.SetZoomControl instead.")
4697 PyPreviewControlBar_swigregister
= _windows_
.PyPreviewControlBar_swigregister
4698 PyPreviewControlBar_swigregister(PyPreviewControlBar
)