1 # This file was created automatically by SWIG 1.3.29.
2 # Don't modify this file, modify the SWIG interface instead.
6 new_instancemethod
= new
.instancemethod
7 def _swig_setattr_nondynamic(self
,class_type
,name
,value
,static
=1):
8 if (name
== "thisown"): return self
.this
.own(value
)
10 if type(value
).__name
__ == 'PySwigObject':
11 self
.__dict
__[name
] = value
13 method
= class_type
.__swig
_setmethods
__.get(name
,None)
14 if method
: return method(self
,value
)
15 if (not static
) or hasattr(self
,name
):
16 self
.__dict
__[name
] = value
18 raise AttributeError("You cannot add attributes to %s" % self
)
20 def _swig_setattr(self
,class_type
,name
,value
):
21 return _swig_setattr_nondynamic(self
,class_type
,name
,value
,0)
23 def _swig_getattr(self
,class_type
,name
):
24 if (name
== "thisown"): return self
.this
.own()
25 method
= class_type
.__swig
_getmethods
__.get(name
,None)
26 if method
: return method(self
)
27 raise AttributeError,name
30 try: strthis
= "proxy of " + self
.this
.__repr
__()
32 return "<%s.%s; %s >" % (self
.__class
__.__module
__, self
.__class
__.__name
__, strthis
,)
36 _object
= types
.ObjectType
38 except AttributeError:
44 def _swig_setattr_nondynamic_method(set):
45 def set_attr(self
,name
,value
):
46 if (name
== "thisown"): return self
.this
.own(value
)
47 if hasattr(self
,name
) or (name
== "this"):
50 raise AttributeError("You cannot add attributes to %s" % self
)
56 #---------------------------------------------------------------------------
58 class Panel(_core
.Window
):
59 """Proxy of C++ Panel class"""
60 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
62 def __init__(self
, *args
, **kwargs
):
64 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
65 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
66 String name=PanelNameStr) -> Panel
68 _windows_
.Panel_swiginit(self
,_windows_
.new_Panel(*args
, **kwargs
))
69 self
._setOORInfo
(self
)
71 def Create(*args
, **kwargs
):
73 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
74 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
75 String name=PanelNameStr) -> bool
77 Create the GUI part of the Window for 2-phase creation mode.
79 return _windows_
.Panel_Create(*args
, **kwargs
)
81 def SetFocusIgnoringChildren(*args
, **kwargs
):
83 SetFocusIgnoringChildren(self)
85 In contrast to `SetFocus` (see above) this will set the focus to the
86 panel even of there are child windows in the panel. This is only
89 return _windows_
.Panel_SetFocusIgnoringChildren(*args
, **kwargs
)
91 def GetClassDefaultAttributes(*args
, **kwargs
):
93 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
95 Get the default attributes for this class. This is useful if you want
96 to use the same font or colour in your own control as in a standard
97 control -- which is a much better idea than hard coding specific
98 colours or fonts which might look completely out of place on the
99 user's system, especially if it uses themes.
101 The variant parameter is only relevant under Mac currently and is
102 ignore under other platforms. Under Mac, it will change the size of
103 the returned font. See `wx.Window.SetWindowVariant` for more about
106 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
108 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
109 _windows_
.Panel_swigregister(Panel
)
111 def PrePanel(*args
, **kwargs
):
112 """PrePanel() -> Panel"""
113 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
116 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
118 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
120 Get the default attributes for this class. This is useful if you want
121 to use the same font or colour in your own control as in a standard
122 control -- which is a much better idea than hard coding specific
123 colours or fonts which might look completely out of place on the
124 user's system, especially if it uses themes.
126 The variant parameter is only relevant under Mac currently and is
127 ignore under other platforms. Under Mac, it will change the size of
128 the returned font. See `wx.Window.SetWindowVariant` for more about
131 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
133 #---------------------------------------------------------------------------
135 class ScrolledWindow(Panel
):
136 """Proxy of C++ ScrolledWindow class"""
137 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
138 __repr__
= _swig_repr
139 def __init__(self
, *args
, **kwargs
):
141 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
142 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
143 String name=PanelNameStr) -> ScrolledWindow
145 _windows_
.ScrolledWindow_swiginit(self
,_windows_
.new_ScrolledWindow(*args
, **kwargs
))
146 self
._setOORInfo
(self
)
148 def Create(*args
, **kwargs
):
150 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
151 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
152 String name=PanelNameStr) -> bool
154 Create the GUI part of the Window for 2-phase creation mode.
156 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
158 def SetScrollbars(*args
, **kwargs
):
160 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
161 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
163 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
165 def Scroll(*args
, **kwargs
):
166 """Scroll(self, int x, int y)"""
167 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
169 def GetScrollPageSize(*args
, **kwargs
):
170 """GetScrollPageSize(self, int orient) -> int"""
171 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
173 def SetScrollPageSize(*args
, **kwargs
):
174 """SetScrollPageSize(self, int orient, int pageSize)"""
175 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
177 def SetScrollRate(*args
, **kwargs
):
178 """SetScrollRate(self, int xstep, int ystep)"""
179 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
181 def GetScrollPixelsPerUnit(*args
, **kwargs
):
183 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
185 Get the size of one logical unit in physical units.
187 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
189 def EnableScrolling(*args
, **kwargs
):
190 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
191 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
193 def GetViewStart(*args
, **kwargs
):
195 GetViewStart() -> (x,y)
199 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
201 def SetScale(*args
, **kwargs
):
202 """SetScale(self, double xs, double ys)"""
203 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
205 def GetScaleX(*args
, **kwargs
):
206 """GetScaleX(self) -> double"""
207 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
209 def GetScaleY(*args
, **kwargs
):
210 """GetScaleY(self) -> double"""
211 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
213 def CalcScrolledPosition(*args
):
215 CalcScrolledPosition(self, Point pt) -> Point
216 CalcScrolledPosition(int x, int y) -> (sx, sy)
218 Translate between scrolled and unscrolled coordinates.
220 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
222 def CalcUnscrolledPosition(*args
):
224 CalcUnscrolledPosition(self, Point pt) -> Point
225 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
227 Translate between scrolled and unscrolled coordinates.
229 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
231 def AdjustScrollbars(*args
, **kwargs
):
232 """AdjustScrollbars(self)"""
233 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
235 def CalcScrollInc(*args
, **kwargs
):
236 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
237 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
239 def SetTargetWindow(*args
, **kwargs
):
240 """SetTargetWindow(self, Window target)"""
241 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
243 def GetTargetWindow(*args
, **kwargs
):
244 """GetTargetWindow(self) -> Window"""
245 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
247 def SetTargetRect(*args
, **kwargs
):
248 """SetTargetRect(self, Rect rect)"""
249 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
251 def GetTargetRect(*args
, **kwargs
):
252 """GetTargetRect(self) -> Rect"""
253 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
255 def DoPrepareDC(*args
, **kwargs
):
257 DoPrepareDC(self, DC dc)
259 Normally what is called by `PrepareDC`.
261 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
263 def GetClassDefaultAttributes(*args
, **kwargs
):
265 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
267 Get the default attributes for this class. This is useful if you want
268 to use the same font or colour in your own control as in a standard
269 control -- which is a much better idea than hard coding specific
270 colours or fonts which might look completely out of place on the
271 user's system, especially if it uses themes.
273 The variant parameter is only relevant under Mac currently and is
274 ignore under other platforms. Under Mac, it will change the size of
275 the returned font. See `wx.Window.SetWindowVariant` for more about
278 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
280 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
281 ScaleX
= property(GetScaleX
,doc
="See `GetScaleX`")
282 ScaleY
= property(GetScaleY
,doc
="See `GetScaleY`")
283 TargetWindow
= property(GetTargetWindow
,SetTargetWindow
,doc
="See `GetTargetWindow` and `SetTargetWindow`")
284 ViewStart
= property(GetViewStart
,doc
="See `GetViewStart`")
285 _windows_
.ScrolledWindow_swigregister(ScrolledWindow
)
287 def PreScrolledWindow(*args
, **kwargs
):
288 """PreScrolledWindow() -> ScrolledWindow"""
289 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
292 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
294 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
296 Get the default attributes for this class. This is useful if you want
297 to use the same font or colour in your own control as in a standard
298 control -- which is a much better idea than hard coding specific
299 colours or fonts which might look completely out of place on the
300 user's system, especially if it uses themes.
302 The variant parameter is only relevant under Mac currently and is
303 ignore under other platforms. Under Mac, it will change the size of
304 the returned font. See `wx.Window.SetWindowVariant` for more about
307 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
309 #---------------------------------------------------------------------------
311 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
312 ICONIZE
= _windows_
.ICONIZE
313 MINIMIZE
= _windows_
.MINIMIZE
314 MAXIMIZE
= _windows_
.MAXIMIZE
315 CLOSE_BOX
= _windows_
.CLOSE_BOX
316 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
317 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
318 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
319 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
320 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
321 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
322 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
323 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
324 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
325 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
326 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
327 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
328 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
329 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
330 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
331 FRAME_EX_METAL
= _windows_
.FRAME_EX_METAL
332 DIALOG_EX_METAL
= _windows_
.DIALOG_EX_METAL
333 WS_EX_CONTEXTHELP
= _windows_
.WS_EX_CONTEXTHELP
334 FRAME_EX_CONTEXTHELP
= _windows_
.FRAME_EX_CONTEXTHELP
335 DIALOG_EX_CONTEXTHELP
= _windows_
.DIALOG_EX_CONTEXTHELP
337 RESIZE_BOX
= MAXIMIZE_BOX
338 THICK_FRAME
= RESIZE_BORDER
342 wxDIALOG_MODELESS
= 0
346 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
347 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
348 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
349 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
350 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
351 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
352 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
353 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
354 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
355 class TopLevelWindow(_core
.Window
):
356 """Proxy of C++ TopLevelWindow class"""
357 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
358 def __init__(self
): raise AttributeError, "No constructor defined"
359 __repr__
= _swig_repr
360 def Maximize(*args
, **kwargs
):
361 """Maximize(self, bool maximize=True)"""
362 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
364 def Restore(*args
, **kwargs
):
366 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
368 def Iconize(*args
, **kwargs
):
369 """Iconize(self, bool iconize=True)"""
370 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
372 def IsMaximized(*args
, **kwargs
):
373 """IsMaximized(self) -> bool"""
374 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
376 def IsAlwaysMaximized(*args
, **kwargs
):
377 """IsAlwaysMaximized(self) -> bool"""
378 return _windows_
.TopLevelWindow_IsAlwaysMaximized(*args
, **kwargs
)
380 def IsIconized(*args
, **kwargs
):
381 """IsIconized(self) -> bool"""
382 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
384 def GetIcon(*args
, **kwargs
):
385 """GetIcon(self) -> Icon"""
386 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
388 def SetIcon(*args
, **kwargs
):
389 """SetIcon(self, Icon icon)"""
390 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
392 def SetIcons(*args
, **kwargs
):
393 """SetIcons(self, wxIconBundle icons)"""
394 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
396 def ShowFullScreen(*args
, **kwargs
):
397 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
398 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
400 def IsFullScreen(*args
, **kwargs
):
401 """IsFullScreen(self) -> bool"""
402 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
404 def SetTitle(*args
, **kwargs
):
405 """SetTitle(self, String title)"""
406 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
408 def GetTitle(*args
, **kwargs
):
409 """GetTitle(self) -> String"""
410 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
412 def EnableCloseButton(*args
, **kwargs
):
413 """EnableCloseButton(self, bool enable) -> bool"""
414 return _windows_
.TopLevelWindow_EnableCloseButton(*args
, **kwargs
)
416 def SetShape(*args
, **kwargs
):
417 """SetShape(self, Region region) -> bool"""
418 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
420 def RequestUserAttention(*args
, **kwargs
):
421 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
422 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
424 def IsActive(*args
, **kwargs
):
425 """IsActive(self) -> bool"""
426 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
428 def MacSetMetalAppearance(*args
, **kwargs
):
429 """MacSetMetalAppearance(self, bool on)"""
430 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
432 def MacGetMetalAppearance(*args
, **kwargs
):
433 """MacGetMetalAppearance(self) -> bool"""
434 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
436 def CenterOnScreen(*args
, **kwargs
):
438 CenterOnScreen(self, int dir=BOTH)
440 Center the window on screen
442 return _windows_
.TopLevelWindow_CenterOnScreen(*args
, **kwargs
)
444 CentreOnScreen
= CenterOnScreen
445 def GetDefaultItem(*args
, **kwargs
):
447 GetDefaultItem(self) -> Window
449 Get the default child of this parent, i.e. the one which is activated
450 by pressing <Enter> such as the OK button on a wx.Dialog.
452 return _windows_
.TopLevelWindow_GetDefaultItem(*args
, **kwargs
)
454 def SetDefaultItem(*args
, **kwargs
):
456 SetDefaultItem(self, Window child) -> Window
458 Set this child as default, return the old default.
460 return _windows_
.TopLevelWindow_SetDefaultItem(*args
, **kwargs
)
462 def SetTmpDefaultItem(*args
, **kwargs
):
464 SetTmpDefaultItem(self, Window win)
466 Set this child as temporary default
468 return _windows_
.TopLevelWindow_SetTmpDefaultItem(*args
, **kwargs
)
470 def GetTmpDefaultItem(*args
, **kwargs
):
472 GetTmpDefaultItem(self) -> Window
474 Return the temporary default item, which can be None.
476 return _windows_
.TopLevelWindow_GetTmpDefaultItem(*args
, **kwargs
)
478 DefaultItem
= property(GetDefaultItem
,SetDefaultItem
,doc
="See `GetDefaultItem` and `SetDefaultItem`")
479 Icon
= property(GetIcon
,SetIcon
,doc
="See `GetIcon` and `SetIcon`")
480 Title
= property(GetTitle
,SetTitle
,doc
="See `GetTitle` and `SetTitle`")
481 TmpDefaultItem
= property(GetTmpDefaultItem
,SetTmpDefaultItem
,doc
="See `GetTmpDefaultItem` and `SetTmpDefaultItem`")
482 _windows_
.TopLevelWindow_swigregister(TopLevelWindow
)
483 cvar
= _windows_
.cvar
484 FrameNameStr
= cvar
.FrameNameStr
485 DialogNameStr
= cvar
.DialogNameStr
486 StatusLineNameStr
= cvar
.StatusLineNameStr
487 ToolBarNameStr
= cvar
.ToolBarNameStr
489 #---------------------------------------------------------------------------
491 class Frame(TopLevelWindow
):
492 """Proxy of C++ Frame class"""
493 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
494 __repr__
= _swig_repr
495 def __init__(self
, *args
, **kwargs
):
497 __init__(self, Window parent, int id=-1, String title=EmptyString,
498 Point pos=DefaultPosition, Size size=DefaultSize,
499 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
501 _windows_
.Frame_swiginit(self
,_windows_
.new_Frame(*args
, **kwargs
))
502 self
._setOORInfo
(self
)
504 def Create(*args
, **kwargs
):
506 Create(self, Window parent, int id=-1, String title=EmptyString,
507 Point pos=DefaultPosition, Size size=DefaultSize,
508 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
510 return _windows_
.Frame_Create(*args
, **kwargs
)
512 def SendSizeEvent(*args
, **kwargs
):
513 """SendSizeEvent(self)"""
514 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
516 def SetMenuBar(*args
, **kwargs
):
517 """SetMenuBar(self, MenuBar menubar)"""
518 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
520 def GetMenuBar(*args
, **kwargs
):
521 """GetMenuBar(self) -> MenuBar"""
522 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
524 def ProcessCommand(*args
, **kwargs
):
525 """ProcessCommand(self, int winid) -> bool"""
526 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
528 Command
= ProcessCommand
529 def CreateStatusBar(*args
, **kwargs
):
531 CreateStatusBar(self, int number=1, long style=DEFAULT_STATUSBAR_STYLE, int winid=0,
532 String name=StatusLineNameStr) -> StatusBar
534 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
536 def GetStatusBar(*args
, **kwargs
):
537 """GetStatusBar(self) -> StatusBar"""
538 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
540 def SetStatusBar(*args
, **kwargs
):
541 """SetStatusBar(self, StatusBar statBar)"""
542 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
544 def SetStatusText(*args
, **kwargs
):
545 """SetStatusText(self, String text, int number=0)"""
546 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
548 def SetStatusWidths(*args
, **kwargs
):
549 """SetStatusWidths(self, int widths)"""
550 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
552 def PushStatusText(*args
, **kwargs
):
553 """PushStatusText(self, String text, int number=0)"""
554 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
556 def PopStatusText(*args
, **kwargs
):
557 """PopStatusText(self, int number=0)"""
558 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
560 def SetStatusBarPane(*args
, **kwargs
):
561 """SetStatusBarPane(self, int n)"""
562 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
564 def GetStatusBarPane(*args
, **kwargs
):
565 """GetStatusBarPane(self) -> int"""
566 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
568 def CreateToolBar(*args
, **kwargs
):
569 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
570 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
572 def GetToolBar(*args
, **kwargs
):
573 """GetToolBar(self) -> wxToolBar"""
574 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
576 def SetToolBar(*args
, **kwargs
):
577 """SetToolBar(self, wxToolBar toolbar)"""
578 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
580 def DoGiveHelp(*args
, **kwargs
):
581 """DoGiveHelp(self, String text, bool show)"""
582 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
584 def DoMenuUpdates(*args
, **kwargs
):
585 """DoMenuUpdates(self, Menu menu=None)"""
586 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
588 def GetClassDefaultAttributes(*args
, **kwargs
):
590 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
592 Get the default attributes for this class. This is useful if you want
593 to use the same font or colour in your own control as in a standard
594 control -- which is a much better idea than hard coding specific
595 colours or fonts which might look completely out of place on the
596 user's system, especially if it uses themes.
598 The variant parameter is only relevant under Mac currently and is
599 ignore under other platforms. Under Mac, it will change the size of
600 the returned font. See `wx.Window.SetWindowVariant` for more about
603 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
605 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
606 MenuBar
= property(GetMenuBar
,SetMenuBar
,doc
="See `GetMenuBar` and `SetMenuBar`")
607 StatusBar
= property(GetStatusBar
,SetStatusBar
,doc
="See `GetStatusBar` and `SetStatusBar`")
608 StatusBarPane
= property(GetStatusBarPane
,SetStatusBarPane
,doc
="See `GetStatusBarPane` and `SetStatusBarPane`")
609 ToolBar
= property(GetToolBar
,SetToolBar
,doc
="See `GetToolBar` and `SetToolBar`")
610 _windows_
.Frame_swigregister(Frame
)
612 def PreFrame(*args
, **kwargs
):
613 """PreFrame() -> Frame"""
614 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
617 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
619 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
621 Get the default attributes for this class. This is useful if you want
622 to use the same font or colour in your own control as in a standard
623 control -- which is a much better idea than hard coding specific
624 colours or fonts which might look completely out of place on the
625 user's system, especially if it uses themes.
627 The variant parameter is only relevant under Mac currently and is
628 ignore under other platforms. Under Mac, it will change the size of
629 the returned font. See `wx.Window.SetWindowVariant` for more about
632 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
634 #---------------------------------------------------------------------------
636 class Dialog(TopLevelWindow
):
637 """Proxy of C++ Dialog class"""
638 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
639 __repr__
= _swig_repr
640 ButtonSizerFlags
= _windows_
.Dialog_ButtonSizerFlags
641 def __init__(self
, *args
, **kwargs
):
643 __init__(self, Window parent, int id=-1, String title=EmptyString,
644 Point pos=DefaultPosition, Size size=DefaultSize,
645 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
647 _windows_
.Dialog_swiginit(self
,_windows_
.new_Dialog(*args
, **kwargs
))
648 self
._setOORInfo
(self
)
650 def Create(*args
, **kwargs
):
652 Create(self, Window parent, int id=-1, String title=EmptyString,
653 Point pos=DefaultPosition, Size size=DefaultSize,
654 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
656 return _windows_
.Dialog_Create(*args
, **kwargs
)
658 def SetReturnCode(*args
, **kwargs
):
659 """SetReturnCode(self, int returnCode)"""
660 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
662 def GetReturnCode(*args
, **kwargs
):
663 """GetReturnCode(self) -> int"""
664 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
666 def SetAffirmativeId(*args
, **kwargs
):
667 """SetAffirmativeId(self, int affirmativeId)"""
668 return _windows_
.Dialog_SetAffirmativeId(*args
, **kwargs
)
670 def GetAffirmativeId(*args
, **kwargs
):
671 """GetAffirmativeId(self) -> int"""
672 return _windows_
.Dialog_GetAffirmativeId(*args
, **kwargs
)
674 def SetEscapeId(*args
, **kwargs
):
675 """SetEscapeId(self, int escapeId)"""
676 return _windows_
.Dialog_SetEscapeId(*args
, **kwargs
)
678 def GetEscapeId(*args
, **kwargs
):
679 """GetEscapeId(self) -> int"""
680 return _windows_
.Dialog_GetEscapeId(*args
, **kwargs
)
682 def GetParentForModalDialog(*args
, **kwargs
):
683 """GetParentForModalDialog(self, Window parent=None) -> Window"""
684 return _windows_
.Dialog_GetParentForModalDialog(*args
, **kwargs
)
686 def CreateTextSizer(*args
, **kwargs
):
687 """CreateTextSizer(self, String message) -> Sizer"""
688 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
690 def _CreateButtonSizer(*args
, **kwargs
):
691 """_CreateButtonSizer(self, long flags) -> Sizer"""
692 return _windows_
.Dialog__CreateButtonSizer(*args
, **kwargs
)
694 def CreateButtonSizer(self
, flags
, *ignored
):
695 return self
._CreateButtonSizer
(flags
)
697 def CreateSeparatedButtonSizer(*args
, **kwargs
):
698 """CreateSeparatedButtonSizer(self, long flags) -> Sizer"""
699 return _windows_
.Dialog_CreateSeparatedButtonSizer(*args
, **kwargs
)
701 def CreateStdDialogButtonSizer(*args
, **kwargs
):
702 """CreateStdDialogButtonSizer(self, long flags) -> StdDialogButtonSizer"""
703 return _windows_
.Dialog_CreateStdDialogButtonSizer(*args
, **kwargs
)
705 def IsModal(*args
, **kwargs
):
706 """IsModal(self) -> bool"""
707 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
709 def ShowModal(*args
, **kwargs
):
710 """ShowModal(self) -> int"""
711 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
713 def EndModal(*args
, **kwargs
):
714 """EndModal(self, int retCode)"""
715 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
717 def GetClassDefaultAttributes(*args
, **kwargs
):
719 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
721 Get the default attributes for this class. This is useful if you want
722 to use the same font or colour in your own control as in a standard
723 control -- which is a much better idea than hard coding specific
724 colours or fonts which might look completely out of place on the
725 user's system, especially if it uses themes.
727 The variant parameter is only relevant under Mac currently and is
728 ignore under other platforms. Under Mac, it will change the size of
729 the returned font. See `wx.Window.SetWindowVariant` for more about
732 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
734 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
735 AffirmativeId
= property(GetAffirmativeId
,SetAffirmativeId
,doc
="See `GetAffirmativeId` and `SetAffirmativeId`")
736 EscapeId
= property(GetEscapeId
,SetEscapeId
,doc
="See `GetEscapeId` and `SetEscapeId`")
737 ReturnCode
= property(GetReturnCode
,SetReturnCode
,doc
="See `GetReturnCode` and `SetReturnCode`")
738 _windows_
.Dialog_swigregister(Dialog
)
740 def PreDialog(*args
, **kwargs
):
741 """PreDialog() -> Dialog"""
742 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
745 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
747 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
749 Get the default attributes for this class. This is useful if you want
750 to use the same font or colour in your own control as in a standard
751 control -- which is a much better idea than hard coding specific
752 colours or fonts which might look completely out of place on the
753 user's system, especially if it uses themes.
755 The variant parameter is only relevant under Mac currently and is
756 ignore under other platforms. Under Mac, it will change the size of
757 the returned font. See `wx.Window.SetWindowVariant` for more about
760 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
762 #---------------------------------------------------------------------------
764 DEFAULT_MINIFRAME_STYLE
= _windows_
.DEFAULT_MINIFRAME_STYLE
765 class MiniFrame(Frame
):
766 """Proxy of C++ MiniFrame class"""
767 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
768 __repr__
= _swig_repr
769 def __init__(self
, *args
, **kwargs
):
771 __init__(self, Window parent, int id=-1, String title=EmptyString,
772 Point pos=DefaultPosition, Size size=DefaultSize,
773 long style=DEFAULT_MINIFRAME_STYLE, String name=FrameNameStr) -> MiniFrame
775 _windows_
.MiniFrame_swiginit(self
,_windows_
.new_MiniFrame(*args
, **kwargs
))
776 self
._setOORInfo
(self
)
778 def Create(*args
, **kwargs
):
780 Create(self, Window parent, int id=-1, String title=EmptyString,
781 Point pos=DefaultPosition, Size size=DefaultSize,
782 long style=DEFAULT_MINIFRAME_STYLE, String name=FrameNameStr) -> bool
784 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
786 _windows_
.MiniFrame_swigregister(MiniFrame
)
788 def PreMiniFrame(*args
, **kwargs
):
789 """PreMiniFrame() -> MiniFrame"""
790 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
793 #---------------------------------------------------------------------------
795 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
796 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
797 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
798 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
799 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
800 class SplashScreenWindow(_core
.Window
):
801 """Proxy of C++ SplashScreenWindow class"""
802 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
803 __repr__
= _swig_repr
804 def __init__(self
, *args
, **kwargs
):
806 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
807 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
809 _windows_
.SplashScreenWindow_swiginit(self
,_windows_
.new_SplashScreenWindow(*args
, **kwargs
))
810 self
._setOORInfo
(self
)
812 def SetBitmap(*args
, **kwargs
):
813 """SetBitmap(self, Bitmap bitmap)"""
814 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
816 def GetBitmap(*args
, **kwargs
):
817 """GetBitmap(self) -> Bitmap"""
818 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
820 Bitmap
= property(GetBitmap
,SetBitmap
,doc
="See `GetBitmap` and `SetBitmap`")
821 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindow
)
823 class SplashScreen(Frame
):
824 """Proxy of C++ SplashScreen class"""
825 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
826 __repr__
= _swig_repr
827 def __init__(self
, *args
, **kwargs
):
829 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
830 Window parent, int id=-1, Point pos=DefaultPosition,
831 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
833 _windows_
.SplashScreen_swiginit(self
,_windows_
.new_SplashScreen(*args
, **kwargs
))
834 self
._setOORInfo
(self
)
836 def GetSplashStyle(*args
, **kwargs
):
837 """GetSplashStyle(self) -> long"""
838 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
840 def GetSplashWindow(*args
, **kwargs
):
841 """GetSplashWindow(self) -> SplashScreenWindow"""
842 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
844 def GetTimeout(*args
, **kwargs
):
845 """GetTimeout(self) -> int"""
846 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
848 SplashStyle
= property(GetSplashStyle
,doc
="See `GetSplashStyle`")
849 SplashWindow
= property(GetSplashWindow
,doc
="See `GetSplashWindow`")
850 Timeout
= property(GetTimeout
,doc
="See `GetTimeout`")
851 _windows_
.SplashScreen_swigregister(SplashScreen
)
853 #---------------------------------------------------------------------------
855 SB_NORMAL
= _windows_
.SB_NORMAL
856 SB_FLAT
= _windows_
.SB_FLAT
857 SB_RAISED
= _windows_
.SB_RAISED
858 class StatusBar(_core
.Window
):
859 """Proxy of C++ StatusBar class"""
860 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
861 __repr__
= _swig_repr
862 def __init__(self
, *args
, **kwargs
):
864 __init__(self, Window parent, int id=-1, long style=DEFAULT_STATUSBAR_STYLE,
865 String name=StatusLineNameStr) -> StatusBar
867 _windows_
.StatusBar_swiginit(self
,_windows_
.new_StatusBar(*args
, **kwargs
))
868 self
._setOORInfo
(self
)
870 def Create(*args
, **kwargs
):
871 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
872 return _windows_
.StatusBar_Create(*args
, **kwargs
)
874 def SetFieldsCount(*args
, **kwargs
):
875 """SetFieldsCount(self, int number=1)"""
876 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
878 def GetFieldsCount(*args
, **kwargs
):
879 """GetFieldsCount(self) -> int"""
880 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
882 def SetStatusText(*args
, **kwargs
):
883 """SetStatusText(self, String text, int number=0)"""
884 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
886 def GetStatusText(*args
, **kwargs
):
887 """GetStatusText(self, int number=0) -> String"""
888 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
890 def PushStatusText(*args
, **kwargs
):
891 """PushStatusText(self, String text, int number=0)"""
892 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
894 def PopStatusText(*args
, **kwargs
):
895 """PopStatusText(self, int number=0)"""
896 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
898 def SetStatusWidths(*args
, **kwargs
):
899 """SetStatusWidths(self, int widths)"""
900 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
902 def SetStatusStyles(*args
, **kwargs
):
903 """SetStatusStyles(self, int styles)"""
904 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
906 def GetFieldRect(*args
, **kwargs
):
907 """GetFieldRect(self, int i) -> Rect"""
908 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
910 def SetMinHeight(*args
, **kwargs
):
911 """SetMinHeight(self, int height)"""
912 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
914 def GetBorderX(*args
, **kwargs
):
915 """GetBorderX(self) -> int"""
916 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
918 def GetBorderY(*args
, **kwargs
):
919 """GetBorderY(self) -> int"""
920 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
922 def GetClassDefaultAttributes(*args
, **kwargs
):
924 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
926 Get the default attributes for this class. This is useful if you want
927 to use the same font or colour in your own control as in a standard
928 control -- which is a much better idea than hard coding specific
929 colours or fonts which might look completely out of place on the
930 user's system, especially if it uses themes.
932 The variant parameter is only relevant under Mac currently and is
933 ignore under other platforms. Under Mac, it will change the size of
934 the returned font. See `wx.Window.SetWindowVariant` for more about
937 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
939 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
941 """Return a list of field values in the status bar. """
942 return [self
.GetStatusText(i
) for i
in range(self
.GetFieldsCount())]
944 def SetFields(self
, items
):
945 """Set the values of the statusbar fields from a list of strings. """
946 self
.SetFieldsCount(len(items
))
947 for i
in range(len(items
)):
948 self
.SetStatusText(items
[i
], i
)
950 BorderX
= property(GetBorderX
,doc
="See `GetBorderX`")
951 BorderY
= property(GetBorderY
,doc
="See `GetBorderY`")
952 FieldRect
= property(GetFieldRect
,doc
="See `GetFieldRect`")
953 Fields
= property(GetFields
,SetFields
,doc
="See `GetFields` and `SetFields`")
954 FieldsCount
= property(GetFieldsCount
,SetFieldsCount
,doc
="See `GetFieldsCount` and `SetFieldsCount`")
955 StatusText
= property(GetStatusText
,SetStatusText
,doc
="See `GetStatusText` and `SetStatusText`")
956 _windows_
.StatusBar_swigregister(StatusBar
)
958 def PreStatusBar(*args
, **kwargs
):
959 """PreStatusBar() -> StatusBar"""
960 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
963 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
965 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
967 Get the default attributes for this class. This is useful if you want
968 to use the same font or colour in your own control as in a standard
969 control -- which is a much better idea than hard coding specific
970 colours or fonts which might look completely out of place on the
971 user's system, especially if it uses themes.
973 The variant parameter is only relevant under Mac currently and is
974 ignore under other platforms. Under Mac, it will change the size of
975 the returned font. See `wx.Window.SetWindowVariant` for more about
978 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
980 #---------------------------------------------------------------------------
982 SP_NOBORDER
= _windows_
.SP_NOBORDER
983 SP_NOSASH
= _windows_
.SP_NOSASH
984 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
985 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
986 SP_3DSASH
= _windows_
.SP_3DSASH
987 SP_3DBORDER
= _windows_
.SP_3DBORDER
988 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
989 SP_BORDER
= _windows_
.SP_BORDER
990 SP_3D
= _windows_
.SP_3D
991 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
992 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
993 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
994 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
995 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
996 class SplitterWindow(_core
.Window
):
998 wx.SplitterWindow manages up to two subwindows or panes, with an
999 optional vertical or horizontal split which can be used with the mouse
1000 or programmatically.
1002 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1003 __repr__
= _swig_repr
1004 def __init__(self
, *args
, **kwargs
):
1006 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1007 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
1009 Constructor. Creates and shows a SplitterWindow.
1011 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
1012 _windows_
.SplitterWindow_swiginit(self
,_windows_
.new_SplitterWindow(*args
, **kwargs
))
1013 self
._setOORInfo
(self
)
1015 def Create(*args
, **kwargs
):
1017 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1018 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
1020 Create the GUI part of the SplitterWindow for the 2-phase create.
1022 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
1024 def GetWindow1(*args
, **kwargs
):
1026 GetWindow1(self) -> Window
1028 Gets the only or left/top pane.
1030 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
1032 def GetWindow2(*args
, **kwargs
):
1034 GetWindow2(self) -> Window
1036 Gets the right/bottom pane.
1038 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
1040 def SetSplitMode(*args
, **kwargs
):
1042 SetSplitMode(self, int mode)
1044 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
1045 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
1048 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
1050 def GetSplitMode(*args
, **kwargs
):
1052 GetSplitMode(self) -> int
1056 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
1058 def Initialize(*args
, **kwargs
):
1060 Initialize(self, Window window)
1062 Initializes the splitter window to have one pane. This should be
1063 called if you wish to initially view only a single pane in the
1064 splitter window. The child window is shown if it is currently hidden.
1066 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
1068 def SplitVertically(*args
, **kwargs
):
1070 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
1072 Initializes the left and right panes of the splitter window. The
1073 child windows are shown if they are currently hidden.
1075 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
1077 def SplitHorizontally(*args
, **kwargs
):
1079 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1081 Initializes the top and bottom panes of the splitter window. The
1082 child windows are shown if they are currently hidden.
1084 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1086 def Unsplit(*args
, **kwargs
):
1088 Unsplit(self, Window toRemove=None) -> bool
1090 Unsplits the window. Pass the pane to remove, or None to remove the
1091 right or bottom pane. Returns True if successful, False otherwise (the
1092 window was not split).
1094 This function will not actually delete the pane being
1095 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1096 for the desired behaviour. By default, the pane being
1097 removed is only hidden.
1099 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1101 def ReplaceWindow(*args
, **kwargs
):
1103 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1105 This function replaces one of the windows managed by the
1106 SplitterWindow with another one. It is in general better to use it
1107 instead of calling Unsplit() and then resplitting the window back
1108 because it will provoke much less flicker. It is valid to call this
1109 function whether the splitter has two windows or only one.
1111 Both parameters should be non-None and winOld must specify one of the
1112 windows managed by the splitter. If the parameters are incorrect or
1113 the window couldn't be replaced, False is returned. Otherwise the
1114 function will return True, but please notice that it will not Destroy
1115 the replaced window and you may wish to do it yourself.
1117 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1119 def UpdateSize(*args
, **kwargs
):
1123 Causes any pending sizing of the sash and child panes to take place
1126 Such resizing normally takes place in idle time, in order to wait for
1127 layout to be completed. However, this can cause unacceptable flicker
1128 as the panes are resized after the window has been shown. To work
1129 around this, you can perform window layout (for example by sending a
1130 size event to the parent window), and then call this function, before
1131 showing the top-level window.
1133 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1135 def IsSplit(*args
, **kwargs
):
1137 IsSplit(self) -> bool
1139 Is the window split?
1141 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1143 def SetSashSize(*args
, **kwargs
):
1145 SetSashSize(self, int width)
1149 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1151 def SetBorderSize(*args
, **kwargs
):
1153 SetBorderSize(self, int width)
1155 Sets the border size. Currently a NOP.
1157 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1159 def GetSashSize(*args
, **kwargs
):
1161 GetSashSize(self) -> int
1165 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1167 def GetBorderSize(*args
, **kwargs
):
1169 GetBorderSize(self) -> int
1171 Gets the border size
1173 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1175 def SetSashPosition(*args
, **kwargs
):
1177 SetSashPosition(self, int position, bool redraw=True)
1179 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1180 are resized and the sash and border are redrawn.
1182 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1184 def GetSashPosition(*args
, **kwargs
):
1186 GetSashPosition(self) -> int
1188 Returns the surrent sash position.
1190 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1192 def SetSashGravity(*args
, **kwargs
):
1194 SetSashGravity(self, double gravity)
1196 Set the sash gravity. Gravity is a floating-point factor between 0.0
1197 and 1.0 which controls position of sash while resizing the
1198 `wx.SplitterWindow`. The gravity specifies how much the left/top
1199 window will grow while resizing.
1201 return _windows_
.SplitterWindow_SetSashGravity(*args
, **kwargs
)
1203 def GetSashGravity(*args
, **kwargs
):
1205 GetSashGravity(self) -> double
1207 Gets the sash gravity.
1209 :see: `SetSashGravity`
1212 return _windows_
.SplitterWindow_GetSashGravity(*args
, **kwargs
)
1214 def SetMinimumPaneSize(*args
, **kwargs
):
1216 SetMinimumPaneSize(self, int min)
1218 Sets the minimum pane size in pixels.
1220 The default minimum pane size is zero, which means that either pane
1221 can be reduced to zero by dragging the sash, thus removing one of the
1222 panes. To prevent this behaviour (and veto out-of-range sash
1223 dragging), set a minimum size, for example 20 pixels. If the
1224 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1225 the window may be unsplit even if minimum size is non-zero.
1227 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1229 def GetMinimumPaneSize(*args
, **kwargs
):
1231 GetMinimumPaneSize(self) -> int
1233 Gets the minimum pane size in pixels.
1235 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1237 def SashHitTest(*args
, **kwargs
):
1239 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1241 Tests for x, y over the sash
1243 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1245 def SizeWindows(*args
, **kwargs
):
1251 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1253 def SetNeedUpdating(*args
, **kwargs
):
1254 """SetNeedUpdating(self, bool needUpdating)"""
1255 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1257 def GetNeedUpdating(*args
, **kwargs
):
1258 """GetNeedUpdating(self) -> bool"""
1259 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1261 def GetClassDefaultAttributes(*args
, **kwargs
):
1263 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1265 Get the default attributes for this class. This is useful if you want
1266 to use the same font or colour in your own control as in a standard
1267 control -- which is a much better idea than hard coding specific
1268 colours or fonts which might look completely out of place on the
1269 user's system, especially if it uses themes.
1271 The variant parameter is only relevant under Mac currently and is
1272 ignore under other platforms. Under Mac, it will change the size of
1273 the returned font. See `wx.Window.SetWindowVariant` for more about
1276 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1278 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1279 BorderSize
= property(GetBorderSize
,SetBorderSize
,doc
="See `GetBorderSize` and `SetBorderSize`")
1280 MinimumPaneSize
= property(GetMinimumPaneSize
,SetMinimumPaneSize
,doc
="See `GetMinimumPaneSize` and `SetMinimumPaneSize`")
1281 NeedUpdating
= property(GetNeedUpdating
,SetNeedUpdating
,doc
="See `GetNeedUpdating` and `SetNeedUpdating`")
1282 SashGravity
= property(GetSashGravity
,SetSashGravity
,doc
="See `GetSashGravity` and `SetSashGravity`")
1283 SashPosition
= property(GetSashPosition
,SetSashPosition
,doc
="See `GetSashPosition` and `SetSashPosition`")
1284 SashSize
= property(GetSashSize
,SetSashSize
,doc
="See `GetSashSize` and `SetSashSize`")
1285 SplitMode
= property(GetSplitMode
,SetSplitMode
,doc
="See `GetSplitMode` and `SetSplitMode`")
1286 Window1
= property(GetWindow1
,doc
="See `GetWindow1`")
1287 Window2
= property(GetWindow2
,doc
="See `GetWindow2`")
1288 _windows_
.SplitterWindow_swigregister(SplitterWindow
)
1289 SplitterNameStr
= cvar
.SplitterNameStr
1291 def PreSplitterWindow(*args
, **kwargs
):
1293 PreSplitterWindow() -> SplitterWindow
1295 Precreate a SplitterWindow for 2-phase creation.
1297 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1300 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1302 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1304 Get the default attributes for this class. This is useful if you want
1305 to use the same font or colour in your own control as in a standard
1306 control -- which is a much better idea than hard coding specific
1307 colours or fonts which might look completely out of place on the
1308 user's system, especially if it uses themes.
1310 The variant parameter is only relevant under Mac currently and is
1311 ignore under other platforms. Under Mac, it will change the size of
1312 the returned font. See `wx.Window.SetWindowVariant` for more about
1315 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1317 class SplitterEvent(_core
.NotifyEvent
):
1318 """This class represents the events generated by a splitter control."""
1319 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1320 __repr__
= _swig_repr
1321 def __init__(self
, *args
, **kwargs
):
1323 __init__(self, EventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1325 This class represents the events generated by a splitter control.
1327 _windows_
.SplitterEvent_swiginit(self
,_windows_
.new_SplitterEvent(*args
, **kwargs
))
1328 def SetSashPosition(*args
, **kwargs
):
1330 SetSashPosition(self, int pos)
1332 This function is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1333 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1334 events, sets the the new sash position. In the case of _CHANGING
1335 events, sets the new tracking bar position so visual feedback during
1336 dragging will represent that change that will actually take place. Set
1337 to -1 from the event handler code to prevent repositioning.
1339 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1341 def GetSashPosition(*args
, **kwargs
):
1343 GetSashPosition(self) -> int
1345 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1346 and EVT_SPLITTER_SASH_POS_CHANGED events.
1348 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1350 def GetWindowBeingRemoved(*args
, **kwargs
):
1352 GetWindowBeingRemoved(self) -> Window
1354 Returns a pointer to the window being removed when a splitter window
1357 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1359 def GetX(*args
, **kwargs
):
1363 Returns the x coordinate of the double-click point in a
1364 EVT_SPLITTER_DCLICK event.
1366 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1368 def GetY(*args
, **kwargs
):
1372 Returns the y coordinate of the double-click point in a
1373 EVT_SPLITTER_DCLICK event.
1375 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1377 SashPosition
= property(GetSashPosition
,SetSashPosition
,doc
="See `GetSashPosition` and `SetSashPosition`")
1378 WindowBeingRemoved
= property(GetWindowBeingRemoved
,doc
="See `GetWindowBeingRemoved`")
1379 X
= property(GetX
,doc
="See `GetX`")
1380 Y
= property(GetY
,doc
="See `GetY`")
1381 _windows_
.SplitterEvent_swigregister(SplitterEvent
)
1383 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1384 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1385 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1386 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1387 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1388 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1389 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1390 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1391 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1393 #---------------------------------------------------------------------------
1395 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1396 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1397 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1398 SW_NOBORDER
= _windows_
.SW_NOBORDER
1399 SW_BORDER
= _windows_
.SW_BORDER
1400 SW_3DSASH
= _windows_
.SW_3DSASH
1401 SW_3DBORDER
= _windows_
.SW_3DBORDER
1402 SW_3D
= _windows_
.SW_3D
1403 SASH_TOP
= _windows_
.SASH_TOP
1404 SASH_RIGHT
= _windows_
.SASH_RIGHT
1405 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1406 SASH_LEFT
= _windows_
.SASH_LEFT
1407 SASH_NONE
= _windows_
.SASH_NONE
1408 class SashWindow(_core
.Window
):
1409 """Proxy of C++ SashWindow class"""
1410 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1411 __repr__
= _swig_repr
1412 def __init__(self
, *args
, **kwargs
):
1414 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1415 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1416 String name=SashNameStr) -> SashWindow
1418 _windows_
.SashWindow_swiginit(self
,_windows_
.new_SashWindow(*args
, **kwargs
))
1419 self
._setOORInfo
(self
)
1421 def Create(*args
, **kwargs
):
1423 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1424 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1425 String name=SashNameStr) -> bool
1427 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1429 def SetSashVisible(*args
, **kwargs
):
1430 """SetSashVisible(self, int edge, bool sash)"""
1431 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1433 def GetSashVisible(*args
, **kwargs
):
1434 """GetSashVisible(self, int edge) -> bool"""
1435 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1437 def GetEdgeMargin(*args
, **kwargs
):
1438 """GetEdgeMargin(self, int edge) -> int"""
1439 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1441 def SetDefaultBorderSize(*args
, **kwargs
):
1442 """SetDefaultBorderSize(self, int width)"""
1443 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1445 def GetDefaultBorderSize(*args
, **kwargs
):
1446 """GetDefaultBorderSize(self) -> int"""
1447 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1449 def SetExtraBorderSize(*args
, **kwargs
):
1450 """SetExtraBorderSize(self, int width)"""
1451 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1453 def GetExtraBorderSize(*args
, **kwargs
):
1454 """GetExtraBorderSize(self) -> int"""
1455 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1457 def SetMinimumSizeX(*args
, **kwargs
):
1458 """SetMinimumSizeX(self, int min)"""
1459 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1461 def SetMinimumSizeY(*args
, **kwargs
):
1462 """SetMinimumSizeY(self, int min)"""
1463 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1465 def GetMinimumSizeX(*args
, **kwargs
):
1466 """GetMinimumSizeX(self) -> int"""
1467 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1469 def GetMinimumSizeY(*args
, **kwargs
):
1470 """GetMinimumSizeY(self) -> int"""
1471 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1473 def SetMaximumSizeX(*args
, **kwargs
):
1474 """SetMaximumSizeX(self, int max)"""
1475 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1477 def SetMaximumSizeY(*args
, **kwargs
):
1478 """SetMaximumSizeY(self, int max)"""
1479 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1481 def GetMaximumSizeX(*args
, **kwargs
):
1482 """GetMaximumSizeX(self) -> int"""
1483 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1485 def GetMaximumSizeY(*args
, **kwargs
):
1486 """GetMaximumSizeY(self) -> int"""
1487 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1489 def SashHitTest(*args
, **kwargs
):
1490 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1491 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1493 def SizeWindows(*args
, **kwargs
):
1494 """SizeWindows(self)"""
1495 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1497 DefaultBorderSize
= property(GetDefaultBorderSize
,SetDefaultBorderSize
,doc
="See `GetDefaultBorderSize` and `SetDefaultBorderSize`")
1498 ExtraBorderSize
= property(GetExtraBorderSize
,SetExtraBorderSize
,doc
="See `GetExtraBorderSize` and `SetExtraBorderSize`")
1499 MaximumSizeX
= property(GetMaximumSizeX
,SetMaximumSizeX
,doc
="See `GetMaximumSizeX` and `SetMaximumSizeX`")
1500 MaximumSizeY
= property(GetMaximumSizeY
,SetMaximumSizeY
,doc
="See `GetMaximumSizeY` and `SetMaximumSizeY`")
1501 MinimumSizeX
= property(GetMinimumSizeX
,SetMinimumSizeX
,doc
="See `GetMinimumSizeX` and `SetMinimumSizeX`")
1502 MinimumSizeY
= property(GetMinimumSizeY
,SetMinimumSizeY
,doc
="See `GetMinimumSizeY` and `SetMinimumSizeY`")
1503 _windows_
.SashWindow_swigregister(SashWindow
)
1504 SashNameStr
= cvar
.SashNameStr
1505 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1507 def PreSashWindow(*args
, **kwargs
):
1508 """PreSashWindow() -> SashWindow"""
1509 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1512 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1513 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1514 class SashEvent(_core
.CommandEvent
):
1515 """Proxy of C++ SashEvent class"""
1516 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1517 __repr__
= _swig_repr
1518 def __init__(self
, *args
, **kwargs
):
1519 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1520 _windows_
.SashEvent_swiginit(self
,_windows_
.new_SashEvent(*args
, **kwargs
))
1521 def SetEdge(*args
, **kwargs
):
1522 """SetEdge(self, int edge)"""
1523 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1525 def GetEdge(*args
, **kwargs
):
1526 """GetEdge(self) -> int"""
1527 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1529 def SetDragRect(*args
, **kwargs
):
1530 """SetDragRect(self, Rect rect)"""
1531 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1533 def GetDragRect(*args
, **kwargs
):
1534 """GetDragRect(self) -> Rect"""
1535 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1537 def SetDragStatus(*args
, **kwargs
):
1538 """SetDragStatus(self, int status)"""
1539 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1541 def GetDragStatus(*args
, **kwargs
):
1542 """GetDragStatus(self) -> int"""
1543 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1545 DragRect
= property(GetDragRect
,SetDragRect
,doc
="See `GetDragRect` and `SetDragRect`")
1546 DragStatus
= property(GetDragStatus
,SetDragStatus
,doc
="See `GetDragStatus` and `SetDragStatus`")
1547 Edge
= property(GetEdge
,SetEdge
,doc
="See `GetEdge` and `SetEdge`")
1548 _windows_
.SashEvent_swigregister(SashEvent
)
1550 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1551 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1552 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1554 #---------------------------------------------------------------------------
1556 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1557 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1558 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1559 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1560 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1561 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1562 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1563 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1564 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1565 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1566 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1567 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1568 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1569 class QueryLayoutInfoEvent(_core
.Event
):
1570 """Proxy of C++ QueryLayoutInfoEvent class"""
1571 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1572 __repr__
= _swig_repr
1573 def __init__(self
, *args
, **kwargs
):
1574 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1575 _windows_
.QueryLayoutInfoEvent_swiginit(self
,_windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
))
1576 def SetRequestedLength(*args
, **kwargs
):
1577 """SetRequestedLength(self, int length)"""
1578 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1580 def GetRequestedLength(*args
, **kwargs
):
1581 """GetRequestedLength(self) -> int"""
1582 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1584 def SetFlags(*args
, **kwargs
):
1585 """SetFlags(self, int flags)"""
1586 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1588 def GetFlags(*args
, **kwargs
):
1589 """GetFlags(self) -> int"""
1590 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1592 def SetSize(*args
, **kwargs
):
1593 """SetSize(self, Size size)"""
1594 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1596 def GetSize(*args
, **kwargs
):
1597 """GetSize(self) -> Size"""
1598 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1600 def SetOrientation(*args
, **kwargs
):
1601 """SetOrientation(self, int orient)"""
1602 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1604 def GetOrientation(*args
, **kwargs
):
1605 """GetOrientation(self) -> int"""
1606 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1608 def SetAlignment(*args
, **kwargs
):
1609 """SetAlignment(self, int align)"""
1610 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1612 def GetAlignment(*args
, **kwargs
):
1613 """GetAlignment(self) -> int"""
1614 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1616 Alignment
= property(GetAlignment
,SetAlignment
,doc
="See `GetAlignment` and `SetAlignment`")
1617 Flags
= property(GetFlags
,SetFlags
,doc
="See `GetFlags` and `SetFlags`")
1618 Orientation
= property(GetOrientation
,SetOrientation
,doc
="See `GetOrientation` and `SetOrientation`")
1619 RequestedLength
= property(GetRequestedLength
,SetRequestedLength
,doc
="See `GetRequestedLength` and `SetRequestedLength`")
1620 Size
= property(GetSize
,SetSize
,doc
="See `GetSize` and `SetSize`")
1621 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEvent
)
1623 class CalculateLayoutEvent(_core
.Event
):
1624 """Proxy of C++ CalculateLayoutEvent 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, int id=0) -> CalculateLayoutEvent"""
1629 _windows_
.CalculateLayoutEvent_swiginit(self
,_windows_
.new_CalculateLayoutEvent(*args
, **kwargs
))
1630 def SetFlags(*args
, **kwargs
):
1631 """SetFlags(self, int flags)"""
1632 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1634 def GetFlags(*args
, **kwargs
):
1635 """GetFlags(self) -> int"""
1636 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1638 def SetRect(*args
, **kwargs
):
1639 """SetRect(self, Rect rect)"""
1640 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1642 def GetRect(*args
, **kwargs
):
1643 """GetRect(self) -> Rect"""
1644 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1646 Flags
= property(GetFlags
,SetFlags
,doc
="See `GetFlags` and `SetFlags`")
1647 Rect
= property(GetRect
,SetRect
,doc
="See `GetRect` and `SetRect`")
1648 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEvent
)
1650 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1651 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1653 class SashLayoutWindow(SashWindow
):
1654 """Proxy of C++ SashLayoutWindow class"""
1655 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1656 __repr__
= _swig_repr
1657 def __init__(self
, *args
, **kwargs
):
1659 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1660 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1661 String name=SashLayoutNameStr) -> SashLayoutWindow
1663 _windows_
.SashLayoutWindow_swiginit(self
,_windows_
.new_SashLayoutWindow(*args
, **kwargs
))
1664 self
._setOORInfo
(self
)
1666 def Create(*args
, **kwargs
):
1668 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1669 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1670 String name=SashLayoutNameStr) -> bool
1672 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1674 def GetAlignment(*args
, **kwargs
):
1675 """GetAlignment(self) -> int"""
1676 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1678 def GetOrientation(*args
, **kwargs
):
1679 """GetOrientation(self) -> int"""
1680 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1682 def SetAlignment(*args
, **kwargs
):
1683 """SetAlignment(self, int alignment)"""
1684 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1686 def SetDefaultSize(*args
, **kwargs
):
1687 """SetDefaultSize(self, Size size)"""
1688 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1690 def SetOrientation(*args
, **kwargs
):
1691 """SetOrientation(self, int orientation)"""
1692 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1694 Alignment
= property(GetAlignment
,SetAlignment
,doc
="See `GetAlignment` and `SetAlignment`")
1695 Orientation
= property(GetOrientation
,SetOrientation
,doc
="See `GetOrientation` and `SetOrientation`")
1696 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindow
)
1698 def PreSashLayoutWindow(*args
, **kwargs
):
1699 """PreSashLayoutWindow() -> SashLayoutWindow"""
1700 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1703 class LayoutAlgorithm(_core
.Object
):
1704 """Proxy of C++ LayoutAlgorithm class"""
1705 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1706 __repr__
= _swig_repr
1707 def __init__(self
, *args
, **kwargs
):
1708 """__init__(self) -> LayoutAlgorithm"""
1709 _windows_
.LayoutAlgorithm_swiginit(self
,_windows_
.new_LayoutAlgorithm(*args
, **kwargs
))
1710 __swig_destroy__
= _windows_
.delete_LayoutAlgorithm
1711 __del__
= lambda self
: None;
1712 def LayoutMDIFrame(*args
, **kwargs
):
1713 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1714 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1716 def LayoutFrame(*args
, **kwargs
):
1717 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1718 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1720 def LayoutWindow(*args
, **kwargs
):
1721 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1722 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1724 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithm
)
1726 #---------------------------------------------------------------------------
1728 class PopupWindow(_core
.Window
):
1729 """Proxy of C++ PopupWindow class"""
1730 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1731 __repr__
= _swig_repr
1732 def __init__(self
, *args
, **kwargs
):
1733 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1734 _windows_
.PopupWindow_swiginit(self
,_windows_
.new_PopupWindow(*args
, **kwargs
))
1735 self
._setOORInfo
(self
)
1737 def Create(*args
, **kwargs
):
1738 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1739 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1741 def Position(*args
, **kwargs
):
1742 """Position(self, Point ptOrigin, Size size)"""
1743 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1745 _windows_
.PopupWindow_swigregister(PopupWindow
)
1747 def PrePopupWindow(*args
, **kwargs
):
1748 """PrePopupWindow() -> PopupWindow"""
1749 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1752 #---------------------------------------------------------------------------
1754 class PopupTransientWindow(PopupWindow
):
1755 """Proxy of C++ PopupTransientWindow class"""
1756 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1757 __repr__
= _swig_repr
1758 def __init__(self
, *args
, **kwargs
):
1759 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1760 _windows_
.PopupTransientWindow_swiginit(self
,_windows_
.new_PopupTransientWindow(*args
, **kwargs
))
1761 self
._setOORInfo
(self
);PopupTransientWindow
._setCallbackInfo
(self
, self
, PopupTransientWindow
)
1763 def _setCallbackInfo(*args
, **kwargs
):
1764 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1765 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1767 def Popup(*args
, **kwargs
):
1768 """Popup(self, Window focus=None)"""
1769 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1771 def Dismiss(*args
, **kwargs
):
1773 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1775 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindow
)
1777 def PrePopupTransientWindow(*args
, **kwargs
):
1778 """PrePopupTransientWindow() -> PopupTransientWindow"""
1779 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1782 #---------------------------------------------------------------------------
1784 class TipWindow(PopupTransientWindow
):
1785 """Proxy of C++ TipWindow class"""
1786 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1787 __repr__
= _swig_repr
1788 def __init__(self
, *args
, **kwargs
):
1789 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1790 _windows_
.TipWindow_swiginit(self
,_windows_
.new_TipWindow(*args
, **kwargs
))
1791 self
._setOORInfo
(self
)
1793 def SetBoundingRect(*args
, **kwargs
):
1794 """SetBoundingRect(self, Rect rectBound)"""
1795 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1797 def Close(*args
, **kwargs
):
1801 This function simply generates a EVT_CLOSE event whose handler usually
1802 tries to close the window. It doesn't close the window itself,
1803 however. If force is False (the default) then the window's close
1804 handler will be allowed to veto the destruction of the window.
1806 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1808 _windows_
.TipWindow_swigregister(TipWindow
)
1810 #---------------------------------------------------------------------------
1812 class VarScrollHelperBase(object):
1813 """Proxy of C++ VarScrollHelperBase class"""
1814 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1815 def __init__(self
): raise AttributeError, "No constructor defined"
1816 __repr__
= _swig_repr
1817 def EnablePhysicalScrolling(*args
, **kwargs
):
1818 """EnablePhysicalScrolling(self, bool scrolling=True)"""
1819 return _windows_
.VarScrollHelperBase_EnablePhysicalScrolling(*args
, **kwargs
)
1821 def HitTest(*args
, **kwargs
):
1822 """HitTest(self, int coord) -> int"""
1823 return _windows_
.VarScrollHelperBase_HitTest(*args
, **kwargs
)
1825 def RefreshAll(*args
, **kwargs
):
1826 """RefreshAll(self)"""
1827 return _windows_
.VarScrollHelperBase_RefreshAll(*args
, **kwargs
)
1829 def GetVisibleBegin(*args
, **kwargs
):
1830 """GetVisibleBegin(self) -> size_t"""
1831 return _windows_
.VarScrollHelperBase_GetVisibleBegin(*args
, **kwargs
)
1833 def GetVisibleEnd(*args
, **kwargs
):
1834 """GetVisibleEnd(self) -> size_t"""
1835 return _windows_
.VarScrollHelperBase_GetVisibleEnd(*args
, **kwargs
)
1837 def IsVisible(*args
, **kwargs
):
1838 """IsVisible(self, size_t unit) -> bool"""
1839 return _windows_
.VarScrollHelperBase_IsVisible(*args
, **kwargs
)
1841 def CalcScrolledPosition(*args
, **kwargs
):
1842 """CalcScrolledPosition(self, int coord) -> int"""
1843 return _windows_
.VarScrollHelperBase_CalcScrolledPosition(*args
, **kwargs
)
1845 def CalcUnscrolledPosition(*args
, **kwargs
):
1846 """CalcUnscrolledPosition(self, int coord) -> int"""
1847 return _windows_
.VarScrollHelperBase_CalcUnscrolledPosition(*args
, **kwargs
)
1849 def UpdateScrollbar(*args
, **kwargs
):
1850 """UpdateScrollbar(self)"""
1851 return _windows_
.VarScrollHelperBase_UpdateScrollbar(*args
, **kwargs
)
1853 def RemoveScrollbar(*args
, **kwargs
):
1854 """RemoveScrollbar(self)"""
1855 return _windows_
.VarScrollHelperBase_RemoveScrollbar(*args
, **kwargs
)
1857 def SetTargetWindow(*args
, **kwargs
):
1858 """SetTargetWindow(self, Window target)"""
1859 return _windows_
.VarScrollHelperBase_SetTargetWindow(*args
, **kwargs
)
1861 def GetTargetWindow(*args
, **kwargs
):
1862 """GetTargetWindow(self) -> Window"""
1863 return _windows_
.VarScrollHelperBase_GetTargetWindow(*args
, **kwargs
)
1865 def GetOrientationTargetSize(*args
, **kwargs
):
1866 """GetOrientationTargetSize(self) -> int"""
1867 return _windows_
.VarScrollHelperBase_GetOrientationTargetSize(*args
, **kwargs
)
1869 def GetNonOrientationTargetSize(*args
, **kwargs
):
1870 """GetNonOrientationTargetSize(self) -> int"""
1871 return _windows_
.VarScrollHelperBase_GetNonOrientationTargetSize(*args
, **kwargs
)
1873 def GetOrientation(*args
, **kwargs
):
1874 """GetOrientation(self) -> int"""
1875 return _windows_
.VarScrollHelperBase_GetOrientation(*args
, **kwargs
)
1877 _windows_
.VarScrollHelperBase_swigregister(VarScrollHelperBase
)
1879 class VarVScrollHelper(VarScrollHelperBase
):
1880 """Proxy of C++ VarVScrollHelper class"""
1881 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1882 def __init__(self
): raise AttributeError, "No constructor defined"
1883 __repr__
= _swig_repr
1884 def SetRowCount(*args
, **kwargs
):
1885 """SetRowCount(self, size_t rowCount)"""
1886 return _windows_
.VarVScrollHelper_SetRowCount(*args
, **kwargs
)
1888 def ScrollToRow(*args
, **kwargs
):
1889 """ScrollToRow(self, size_t row) -> bool"""
1890 return _windows_
.VarVScrollHelper_ScrollToRow(*args
, **kwargs
)
1892 def ScrollRows(*args
, **kwargs
):
1893 """ScrollRows(self, int rows) -> bool"""
1894 return _windows_
.VarVScrollHelper_ScrollRows(*args
, **kwargs
)
1896 def ScrollRowPages(*args
, **kwargs
):
1897 """ScrollRowPages(self, int pages) -> bool"""
1898 return _windows_
.VarVScrollHelper_ScrollRowPages(*args
, **kwargs
)
1900 def RefreshRow(*args
, **kwargs
):
1901 """RefreshRow(self, size_t row)"""
1902 return _windows_
.VarVScrollHelper_RefreshRow(*args
, **kwargs
)
1904 def RefreshRows(*args
, **kwargs
):
1905 """RefreshRows(self, size_t from, size_t to)"""
1906 return _windows_
.VarVScrollHelper_RefreshRows(*args
, **kwargs
)
1908 def GetRowCount(*args
, **kwargs
):
1909 """GetRowCount(self) -> size_t"""
1910 return _windows_
.VarVScrollHelper_GetRowCount(*args
, **kwargs
)
1912 def GetVisibleRowsBegin(*args
, **kwargs
):
1913 """GetVisibleRowsBegin(self) -> size_t"""
1914 return _windows_
.VarVScrollHelper_GetVisibleRowsBegin(*args
, **kwargs
)
1916 def GetVisibleRowsEnd(*args
, **kwargs
):
1917 """GetVisibleRowsEnd(self) -> size_t"""
1918 return _windows_
.VarVScrollHelper_GetVisibleRowsEnd(*args
, **kwargs
)
1920 def IsRowVisible(*args
, **kwargs
):
1921 """IsRowVisible(self, size_t row) -> bool"""
1922 return _windows_
.VarVScrollHelper_IsRowVisible(*args
, **kwargs
)
1924 _windows_
.VarVScrollHelper_swigregister(VarVScrollHelper
)
1926 class VarHScrollHelper(VarScrollHelperBase
):
1927 """Proxy of C++ VarHScrollHelper class"""
1928 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1929 def __init__(self
): raise AttributeError, "No constructor defined"
1930 __repr__
= _swig_repr
1931 def SetColumnCount(*args
, **kwargs
):
1932 """SetColumnCount(self, size_t columnCount)"""
1933 return _windows_
.VarHScrollHelper_SetColumnCount(*args
, **kwargs
)
1935 def ScrollToColumn(*args
, **kwargs
):
1936 """ScrollToColumn(self, size_t column) -> bool"""
1937 return _windows_
.VarHScrollHelper_ScrollToColumn(*args
, **kwargs
)
1939 def ScrollColumns(*args
, **kwargs
):
1940 """ScrollColumns(self, int columns) -> bool"""
1941 return _windows_
.VarHScrollHelper_ScrollColumns(*args
, **kwargs
)
1943 def ScrollColumnPages(*args
, **kwargs
):
1944 """ScrollColumnPages(self, int pages) -> bool"""
1945 return _windows_
.VarHScrollHelper_ScrollColumnPages(*args
, **kwargs
)
1947 def RefreshColumn(*args
, **kwargs
):
1948 """RefreshColumn(self, size_t column)"""
1949 return _windows_
.VarHScrollHelper_RefreshColumn(*args
, **kwargs
)
1951 def RefreshColumns(*args
, **kwargs
):
1952 """RefreshColumns(self, size_t from, size_t to)"""
1953 return _windows_
.VarHScrollHelper_RefreshColumns(*args
, **kwargs
)
1955 def GetColumnCount(*args
, **kwargs
):
1956 """GetColumnCount(self) -> size_t"""
1957 return _windows_
.VarHScrollHelper_GetColumnCount(*args
, **kwargs
)
1959 def GetVisibleColumnsBegin(*args
, **kwargs
):
1960 """GetVisibleColumnsBegin(self) -> size_t"""
1961 return _windows_
.VarHScrollHelper_GetVisibleColumnsBegin(*args
, **kwargs
)
1963 def GetVisibleColumnsEnd(*args
, **kwargs
):
1964 """GetVisibleColumnsEnd(self) -> size_t"""
1965 return _windows_
.VarHScrollHelper_GetVisibleColumnsEnd(*args
, **kwargs
)
1967 def IsColumnVisible(*args
, **kwargs
):
1968 """IsColumnVisible(self, size_t column) -> bool"""
1969 return _windows_
.VarHScrollHelper_IsColumnVisible(*args
, **kwargs
)
1971 _windows_
.VarHScrollHelper_swigregister(VarHScrollHelper
)
1973 class VarHVScrollHelper(VarVScrollHelper
,VarHScrollHelper
):
1974 """Proxy of C++ VarHVScrollHelper class"""
1975 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
1976 def __init__(self
): raise AttributeError, "No constructor defined"
1977 __repr__
= _swig_repr
1978 def SetRowColumnCount(*args
, **kwargs
):
1979 """SetRowColumnCount(self, size_t rowCount, size_t columnCount)"""
1980 return _windows_
.VarHVScrollHelper_SetRowColumnCount(*args
, **kwargs
)
1982 def EnablePhysicalScrolling(*args
, **kwargs
):
1983 """EnablePhysicalScrolling(self, bool vscrolling=True, bool hscrolling=True)"""
1984 return _windows_
.VarHVScrollHelper_EnablePhysicalScrolling(*args
, **kwargs
)
1986 def ScrollToRowColumn(*args
, **kwargs
):
1987 """ScrollToRowColumn(self, Position pos) -> bool"""
1988 return _windows_
.VarHVScrollHelper_ScrollToRowColumn(*args
, **kwargs
)
1990 def RefreshRowColumn(*args
, **kwargs
):
1991 """RefreshRowColumn(self, Position pos)"""
1992 return _windows_
.VarHVScrollHelper_RefreshRowColumn(*args
, **kwargs
)
1994 def RefreshRowsColumns(*args
, **kwargs
):
1995 """RefreshRowsColumns(self, Position from, Position to)"""
1996 return _windows_
.VarHVScrollHelper_RefreshRowsColumns(*args
, **kwargs
)
1998 def HitTest(*args
, **kwargs
):
1999 """HitTest(self, Point pos) -> Position"""
2000 return _windows_
.VarHVScrollHelper_HitTest(*args
, **kwargs
)
2002 def ScrollLayout(*args
, **kwargs
):
2003 """ScrollLayout(self) -> bool"""
2004 return _windows_
.VarHVScrollHelper_ScrollLayout(*args
, **kwargs
)
2006 def GetRowColumnCount(*args
, **kwargs
):
2007 """GetRowColumnCount(self) -> Size"""
2008 return _windows_
.VarHVScrollHelper_GetRowColumnCount(*args
, **kwargs
)
2010 def GetVisibleBegin(*args
, **kwargs
):
2011 """GetVisibleBegin(self) -> Position"""
2012 return _windows_
.VarHVScrollHelper_GetVisibleBegin(*args
, **kwargs
)
2014 def GetVisibleEnd(*args
, **kwargs
):
2015 """GetVisibleEnd(self) -> Position"""
2016 return _windows_
.VarHVScrollHelper_GetVisibleEnd(*args
, **kwargs
)
2018 def IsVisible(*args
, **kwargs
):
2019 """IsVisible(self, Position pos) -> bool"""
2020 return _windows_
.VarHVScrollHelper_IsVisible(*args
, **kwargs
)
2022 _windows_
.VarHVScrollHelper_swigregister(VarHVScrollHelper
)
2024 class VScrolledWindow(Panel
,VarVScrollHelper
):
2025 """Proxy of C++ VScrolledWindow class"""
2026 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2027 __repr__
= _swig_repr
2028 def __init__(self
, *args
, **kwargs
):
2030 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2031 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
2033 _windows_
.VScrolledWindow_swiginit(self
,_windows_
.new_VScrolledWindow(*args
, **kwargs
))
2034 self
._setOORInfo
(self
);VScrolledWindow
._setCallbackInfo
(self
, self
, VScrolledWindow
)
2036 def _setCallbackInfo(*args
, **kwargs
):
2037 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2038 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
2040 def Create(*args
, **kwargs
):
2042 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2043 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
2045 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
2047 def GetRowsHeight(*args
, **kwargs
):
2048 """GetRowsHeight(self, size_t lineMin, size_t lineMax) -> int"""
2049 return _windows_
.VScrolledWindow_GetRowsHeight(*args
, **kwargs
)
2051 GetLinesHeight
= wx
._deprecated
(GetRowsHeight
,
2052 "Use GetRowsHeight instead.")
2053 def EstimateTotalHeight(*args
, **kwargs
):
2054 """EstimateTotalHeight(self) -> int"""
2055 return _windows_
.VScrolledWindow_EstimateTotalHeight(*args
, **kwargs
)
2057 def HitTest(*args
, **kwargs
):
2059 HitTest(self, Point pt) -> int
2061 Test where the given (in client coords) point lies
2063 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
2065 def GetFirstVisibleLine(self
):
2066 return self
.GetVisibleRowsBegin()
2067 GetFirstVisibleLine
= wx
._deprecated
(GetFirstVisibleLine
, "Use GetVisibleRowsBegin instead" )
2069 def GetLastVisibleLine(self
):
2070 return self
.GetVisibleRowsEnd() - 1
2071 GetLastVisibleLine
= wx
._deprecated
(GetLastVisibleLine
, "Use GetVisibleRowsEnd instead")
2073 def GetLineCount(self
):
2074 return self
.GetRowCount()
2075 GetLineCount
= wx
._deprecated
(GetLineCount
, "Use GetRowCount instead")
2077 def SetLineCount(self
, count
):
2078 self
.SetRowCount(count
)
2079 SetLineCount
= wx
._deprecated
(SetLineCount
, "Use SetRowCount instead")
2081 def RefreshLine(self
, line
):
2082 self
.RefreshRow(line
)
2083 RefreshLine
= wx
._deprecated
(RefreshLine
, "Use RefreshRow instead")
2085 def RefreshLines(self
, frm
, to
):
2086 self
.RefreshRows(frm
, to
)
2087 RefreshLines
= wx
._deprecated
(RefreshLines
, "Use RefreshRows instead")
2089 def ScrollToLine(self
, line
):
2090 return self
.ScrollToRow(line
)
2091 ScrollToLine
= wx
._deprecated
(ScrollToLine
, "Use RefreshRow instead")
2093 def ScrollLines(self
, lines
):
2094 return self
.ScrollRows(lines
)
2095 ScrollLines
= wx
._deprecated
(ScrollLines
, "Use ScrollRows instead")
2097 def ScrollPages(self
, pages
):
2098 return self
.ScrollRowPages(pages
)
2099 ScrollPages
= wx
._deprecated
(ScrollPages
, "Use ScrollRowPages instead")
2101 _windows_
.VScrolledWindow_swigregister(VScrolledWindow
)
2103 def PreVScrolledWindow(*args
, **kwargs
):
2104 """PreVScrolledWindow() -> VScrolledWindow"""
2105 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
2108 class HScrolledWindow(Panel
,VarHScrollHelper
):
2109 """Proxy of C++ HScrolledWindow class"""
2110 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2111 __repr__
= _swig_repr
2112 def __init__(self
, *args
, **kwargs
):
2114 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2115 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> HScrolledWindow
2117 _windows_
.HScrolledWindow_swiginit(self
,_windows_
.new_HScrolledWindow(*args
, **kwargs
))
2118 self
._setOORInfo
(self
);HScrolledWindow
._setCallbackInfo
(self
, self
, HScrolledWindow
)
2120 def _setCallbackInfo(*args
, **kwargs
):
2121 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2122 return _windows_
.HScrolledWindow__setCallbackInfo(*args
, **kwargs
)
2124 def Create(*args
, **kwargs
):
2126 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2127 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
2129 return _windows_
.HScrolledWindow_Create(*args
, **kwargs
)
2131 def HitTest(*args
, **kwargs
):
2133 HitTest(self, Point pt) -> int
2135 Test where the given (in client coords) point lies
2137 return _windows_
.HScrolledWindow_HitTest(*args
, **kwargs
)
2139 def GetColumnsWidth(*args
, **kwargs
):
2140 """GetColumnsWidth(self, size_t columnMin, size_t columnMax) -> int"""
2141 return _windows_
.HScrolledWindow_GetColumnsWidth(*args
, **kwargs
)
2143 def EstimateTotalWidth(*args
, **kwargs
):
2144 """EstimateTotalWidth(self) -> int"""
2145 return _windows_
.HScrolledWindow_EstimateTotalWidth(*args
, **kwargs
)
2147 _windows_
.HScrolledWindow_swigregister(HScrolledWindow
)
2149 def PreHScrolledWindow(*args
, **kwargs
):
2150 """PreHScrolledWindow() -> HScrolledWindow"""
2151 val
= _windows_
.new_PreHScrolledWindow(*args
, **kwargs
)
2154 class HVScrolledWindow(Panel
,VarHVScrollHelper
):
2155 """Proxy of C++ HVScrolledWindow class"""
2156 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2157 __repr__
= _swig_repr
2158 def __init__(self
, *args
, **kwargs
):
2160 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2161 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> HVScrolledWindow
2163 _windows_
.HVScrolledWindow_swiginit(self
,_windows_
.new_HVScrolledWindow(*args
, **kwargs
))
2164 self
._setOORInfo
(self
);HVScrolledWindow
._setCallbackInfo
(self
, self
, HVScrolledWindow
)
2166 def _setCallbackInfo(*args
, **kwargs
):
2167 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2168 return _windows_
.HVScrolledWindow__setCallbackInfo(*args
, **kwargs
)
2170 def Create(*args
, **kwargs
):
2172 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2173 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
2175 return _windows_
.HVScrolledWindow_Create(*args
, **kwargs
)
2177 def GetRowsHeight(*args
, **kwargs
):
2178 """GetRowsHeight(self, size_t lineMin, size_t lineMax) -> int"""
2179 return _windows_
.HVScrolledWindow_GetRowsHeight(*args
, **kwargs
)
2181 def EstimateTotalHeight(*args
, **kwargs
):
2182 """EstimateTotalHeight(self) -> int"""
2183 return _windows_
.HVScrolledWindow_EstimateTotalHeight(*args
, **kwargs
)
2185 def GetColumnsWidth(*args
, **kwargs
):
2186 """GetColumnsWidth(self, size_t columnMin, size_t columnMax) -> int"""
2187 return _windows_
.HVScrolledWindow_GetColumnsWidth(*args
, **kwargs
)
2189 def EstimateTotalWidth(*args
, **kwargs
):
2190 """EstimateTotalWidth(self) -> int"""
2191 return _windows_
.HVScrolledWindow_EstimateTotalWidth(*args
, **kwargs
)
2193 _windows_
.HVScrolledWindow_swigregister(HVScrolledWindow
)
2195 def PreHVScrolledWindow(*args
, **kwargs
):
2196 """PreHVScrolledWindow() -> HVScrolledWindow"""
2197 val
= _windows_
.new_PreHVScrolledWindow(*args
, **kwargs
)
2200 class VListBox(VScrolledWindow
):
2201 """Proxy of C++ VListBox class"""
2202 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2203 __repr__
= _swig_repr
2204 def __init__(self
, *args
, **kwargs
):
2206 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2207 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
2209 _windows_
.VListBox_swiginit(self
,_windows_
.new_VListBox(*args
, **kwargs
))
2210 self
._setOORInfo
(self
);VListBox
._setCallbackInfo
(self
, self
, VListBox
)
2212 def _setCallbackInfo(*args
, **kwargs
):
2213 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2214 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
2216 def Create(*args
, **kwargs
):
2218 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2219 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2221 return _windows_
.VListBox_Create(*args
, **kwargs
)
2223 def GetItemCount(*args
, **kwargs
):
2224 """GetItemCount(self) -> size_t"""
2225 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
2227 def HasMultipleSelection(*args
, **kwargs
):
2228 """HasMultipleSelection(self) -> bool"""
2229 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
2231 def GetSelection(*args
, **kwargs
):
2232 """GetSelection(self) -> int"""
2233 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
2235 def IsCurrent(*args
, **kwargs
):
2236 """IsCurrent(self, size_t item) -> bool"""
2237 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
2239 def IsSelected(*args
, **kwargs
):
2240 """IsSelected(self, size_t item) -> bool"""
2241 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
2243 def GetSelectedCount(*args
, **kwargs
):
2244 """GetSelectedCount(self) -> size_t"""
2245 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
2247 def GetFirstSelected(*args
, **kwargs
):
2248 """GetFirstSelected(self) -> PyObject"""
2249 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
2251 def GetNextSelected(*args
, **kwargs
):
2252 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
2253 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
2255 def GetMargins(*args
, **kwargs
):
2256 """GetMargins(self) -> Point"""
2257 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
2259 def GetSelectionBackground(*args
, **kwargs
):
2260 """GetSelectionBackground(self) -> Colour"""
2261 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
2263 def SetItemCount(*args
, **kwargs
):
2264 """SetItemCount(self, size_t count)"""
2265 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
2267 def Clear(*args
, **kwargs
):
2269 return _windows_
.VListBox_Clear(*args
, **kwargs
)
2271 def SetSelection(*args
, **kwargs
):
2272 """SetSelection(self, int selection)"""
2273 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
2275 def Select(*args
, **kwargs
):
2276 """Select(self, size_t item, bool select=True) -> bool"""
2277 return _windows_
.VListBox_Select(*args
, **kwargs
)
2279 def SelectRange(*args
, **kwargs
):
2280 """SelectRange(self, size_t from, size_t to) -> bool"""
2281 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
2283 def Toggle(*args
, **kwargs
):
2284 """Toggle(self, size_t item)"""
2285 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
2287 def SelectAll(*args
, **kwargs
):
2288 """SelectAll(self) -> bool"""
2289 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
2291 def DeselectAll(*args
, **kwargs
):
2292 """DeselectAll(self) -> bool"""
2293 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
2295 def SetMargins(*args
, **kwargs
):
2296 """SetMargins(self, Point pt)"""
2297 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
2299 def SetMarginsXY(*args
, **kwargs
):
2300 """SetMarginsXY(self, int x, int y)"""
2301 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
2303 def SetSelectionBackground(*args
, **kwargs
):
2304 """SetSelectionBackground(self, Colour col)"""
2305 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
2307 def RefreshSelected(*args
, **kwargs
):
2308 """RefreshSelected(self)"""
2309 return _windows_
.VListBox_RefreshSelected(*args
, **kwargs
)
2311 def OnDrawSeparator(*args
, **kwargs
):
2312 """OnDrawSeparator(self, DC dc, Rect rect, size_t n)"""
2313 return _windows_
.VListBox_OnDrawSeparator(*args
, **kwargs
)
2315 def OnDrawBackground(*args
, **kwargs
):
2316 """OnDrawBackground(self, DC dc, Rect rect, size_t n)"""
2317 return _windows_
.VListBox_OnDrawBackground(*args
, **kwargs
)
2319 FirstSelected
= property(GetFirstSelected
,doc
="See `GetFirstSelected`")
2320 ItemCount
= property(GetItemCount
,SetItemCount
,doc
="See `GetItemCount` and `SetItemCount`")
2321 Margins
= property(GetMargins
,SetMargins
,doc
="See `GetMargins` and `SetMargins`")
2322 SelectedCount
= property(GetSelectedCount
,doc
="See `GetSelectedCount`")
2323 Selection
= property(GetSelection
,SetSelection
,doc
="See `GetSelection` and `SetSelection`")
2324 SelectionBackground
= property(GetSelectionBackground
,SetSelectionBackground
,doc
="See `GetSelectionBackground` and `SetSelectionBackground`")
2325 _windows_
.VListBox_swigregister(VListBox
)
2326 VListBoxNameStr
= cvar
.VListBoxNameStr
2328 def PreVListBox(*args
, **kwargs
):
2329 """PreVListBox() -> VListBox"""
2330 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2333 class HtmlListBox(VListBox
):
2334 """Proxy of C++ HtmlListBox class"""
2335 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2336 __repr__
= _swig_repr
2337 def __init__(self
, *args
, **kwargs
):
2339 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2340 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2342 _windows_
.HtmlListBox_swiginit(self
,_windows_
.new_HtmlListBox(*args
, **kwargs
))
2343 self
._setOORInfo
(self
);HtmlListBox
._setCallbackInfo
(self
, self
, HtmlListBox
)
2345 def _setCallbackInfo(*args
, **kwargs
):
2346 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2347 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2349 def Create(*args
, **kwargs
):
2351 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2352 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2354 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2356 def SetItemCount(*args
, **kwargs
):
2357 """SetItemCount(self, size_t count)"""
2358 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2360 def GetFileSystem(*args
, **kwargs
):
2361 """GetFileSystem(self) -> FileSystem"""
2362 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2364 def OnLinkClicked(*args
, **kwargs
):
2365 """OnLinkClicked(self, size_t n, wxHtmlLinkInfo link)"""
2366 return _windows_
.HtmlListBox_OnLinkClicked(*args
, **kwargs
)
2368 FileSystem
= property(GetFileSystem
,doc
="See `GetFileSystem`")
2369 _windows_
.HtmlListBox_swigregister(HtmlListBox
)
2371 def PreHtmlListBox(*args
, **kwargs
):
2372 """PreHtmlListBox() -> HtmlListBox"""
2373 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2376 HLB_DEFAULT_STYLE
= _windows_
.HLB_DEFAULT_STYLE
2377 HLB_MULTIPLE
= _windows_
.HLB_MULTIPLE
2378 class SimpleHtmlListBox(HtmlListBox
,_core
.ItemContainer
):
2379 """Proxy of C++ SimpleHtmlListBox class"""
2380 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2381 __repr__
= _swig_repr
2382 def __init__(self
, *args
, **kwargs
):
2384 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
2385 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
2386 long style=HLB_DEFAULT_STYLE,
2387 Validator validator=DefaultValidator,
2388 String name=SimpleHtmlListBoxNameStr) -> SimpleHtmlListBox
2390 _windows_
.SimpleHtmlListBox_swiginit(self
,_windows_
.new_SimpleHtmlListBox(*args
, **kwargs
))
2391 self
._setOORInfo
(self
)
2393 def Create(*args
, **kwargs
):
2395 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
2396 Size size=DefaultSize, wxArrayString choices=wxPyEmptyStringArray,
2397 long style=HLB_DEFAULT_STYLE,
2398 Validator validator=DefaultValidator,
2399 String name=SimpleHtmlListBoxNameStr) -> bool
2401 return _windows_
.SimpleHtmlListBox_Create(*args
, **kwargs
)
2403 _windows_
.SimpleHtmlListBox_swigregister(SimpleHtmlListBox
)
2404 SimpleHtmlListBoxNameStr
= cvar
.SimpleHtmlListBoxNameStr
2406 def PreSimpleHtmlListBox(*args
, **kwargs
):
2407 """PreSimpleHtmlListBox() -> SimpleHtmlListBox"""
2408 val
= _windows_
.new_PreSimpleHtmlListBox(*args
, **kwargs
)
2411 #---------------------------------------------------------------------------
2413 class TaskBarIcon(_core
.EvtHandler
):
2414 """Proxy of C++ TaskBarIcon class"""
2415 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2416 __repr__
= _swig_repr
2417 def __init__(self
, *args
, **kwargs
):
2418 """__init__(self) -> TaskBarIcon"""
2419 _windows_
.TaskBarIcon_swiginit(self
,_windows_
.new_TaskBarIcon(*args
, **kwargs
))
2420 TaskBarIcon
._setCallbackInfo
(self
, self
, TaskBarIcon
)
2422 __swig_destroy__
= _windows_
.delete_TaskBarIcon
2423 __del__
= lambda self
: None;
2424 def _setCallbackInfo(*args
, **kwargs
):
2425 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref=0)"""
2426 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2428 def Destroy(*args
, **kwargs
):
2432 Deletes the C++ object this Python object is a proxy for.
2434 args
[0].this
.own(False)
2435 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2437 def IsOk(*args
, **kwargs
):
2438 """IsOk(self) -> bool"""
2439 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2441 def __nonzero__(self
): return self
.IsOk()
2442 def IsIconInstalled(*args
, **kwargs
):
2443 """IsIconInstalled(self) -> bool"""
2444 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2446 def SetIcon(*args
, **kwargs
):
2447 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2448 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2450 def RemoveIcon(*args
, **kwargs
):
2451 """RemoveIcon(self) -> bool"""
2452 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2454 def PopupMenu(*args
, **kwargs
):
2455 """PopupMenu(self, Menu menu) -> bool"""
2456 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2458 _windows_
.TaskBarIcon_swigregister(TaskBarIcon
)
2460 class TaskBarIconEvent(_core
.Event
):
2461 """Proxy of C++ TaskBarIconEvent class"""
2462 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2463 __repr__
= _swig_repr
2464 def __init__(self
, *args
, **kwargs
):
2465 """__init__(self, EventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2466 _windows_
.TaskBarIconEvent_swiginit(self
,_windows_
.new_TaskBarIconEvent(*args
, **kwargs
))
2467 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEvent
)
2469 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2470 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2471 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2472 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2473 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2474 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2475 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2476 wxEVT_TASKBAR_CLICK
= _windows_
.wxEVT_TASKBAR_CLICK
2477 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2478 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2479 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2480 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2481 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2482 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2483 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2484 EVT_TASKBAR_CLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_CLICK
)
2486 #---------------------------------------------------------------------------
2488 class ColourData(_core
.Object
):
2490 This class holds a variety of information related to the colour
2491 chooser dialog, used to transfer settings and results to and from the
2494 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2495 __repr__
= _swig_repr
2496 def __init__(self
, *args
, **kwargs
):
2498 __init__(self) -> ColourData
2500 Constructor, sets default values.
2502 _windows_
.ColourData_swiginit(self
,_windows_
.new_ColourData(*args
, **kwargs
))
2503 __swig_destroy__
= _windows_
.delete_ColourData
2504 __del__
= lambda self
: None;
2505 def GetChooseFull(*args
, **kwargs
):
2507 GetChooseFull(self) -> bool
2509 Under Windows, determines whether the Windows colour dialog will
2510 display the full dialog with custom colour selection controls. Has no
2511 meaning under other platforms. The default value is true.
2513 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2515 def GetColour(*args
, **kwargs
):
2517 GetColour(self) -> Colour
2519 Gets the colour (pre)selected by the dialog.
2521 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2523 def GetCustomColour(*args
, **kwargs
):
2525 GetCustomColour(self, int i) -> Colour
2527 Gets the i'th custom colour associated with the colour dialog. i
2528 should be an integer between 0 and 15. The default custom colours are
2529 all invalid colours.
2531 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2533 def SetChooseFull(*args
, **kwargs
):
2535 SetChooseFull(self, int flag)
2537 Under Windows, tells the Windows colour dialog to display the full
2538 dialog with custom colour selection controls. Under other platforms,
2539 has no effect. The default value is true.
2541 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2543 def SetColour(*args
, **kwargs
):
2545 SetColour(self, Colour colour)
2547 Sets the default colour for the colour dialog. The default colour is
2550 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2552 def SetCustomColour(*args
, **kwargs
):
2554 SetCustomColour(self, int i, Colour colour)
2556 Sets the i'th custom colour for the colour dialog. i should be an
2557 integer between 0 and 15. The default custom colours are all invalid colours.
2559 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2561 ChooseFull
= property(GetChooseFull
,SetChooseFull
,doc
="See `GetChooseFull` and `SetChooseFull`")
2562 Colour
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")
2563 CustomColour
= property(GetCustomColour
,SetCustomColour
,doc
="See `GetCustomColour` and `SetCustomColour`")
2564 _windows_
.ColourData_swigregister(ColourData
)
2565 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2566 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2567 DirDialogNameStr
= cvar
.DirDialogNameStr
2568 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2569 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2570 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2572 class ColourDialog(Dialog
):
2573 """This class represents the colour chooser dialog."""
2574 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2575 __repr__
= _swig_repr
2576 def __init__(self
, *args
, **kwargs
):
2578 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2580 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2581 which will be copied to the colour dialog's internal ColourData
2584 _windows_
.ColourDialog_swiginit(self
,_windows_
.new_ColourDialog(*args
, **kwargs
))
2585 self
._setOORInfo
(self
)
2587 def GetColourData(*args
, **kwargs
):
2589 GetColourData(self) -> ColourData
2591 Returns a reference to the `wx.ColourData` used by the dialog.
2593 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2595 ColourData
= property(GetColourData
,doc
="See `GetColourData`")
2596 _windows_
.ColourDialog_swigregister(ColourDialog
)
2599 def GetColourFromUser(*args
, **kwargs
):
2601 GetColourFromUser(Window parent=(wxWindow *) NULL, Colour colInit=wxNullColour,
2602 String caption=EmptyString) -> Colour
2604 return _windows_
.GetColourFromUser(*args
, **kwargs
)
2605 DD_CHANGE_DIR
= _windows_
.DD_CHANGE_DIR
2606 DD_DIR_MUST_EXIST
= _windows_
.DD_DIR_MUST_EXIST
2607 DD_NEW_DIR_BUTTON
= _windows_
.DD_NEW_DIR_BUTTON
2608 DD_DEFAULT_STYLE
= _windows_
.DD_DEFAULT_STYLE
2609 class DirDialog(Dialog
):
2611 wx.DirDialog allows the user to select a directory by browising the
2614 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2615 __repr__
= _swig_repr
2616 def __init__(self
, *args
, **kwargs
):
2618 __init__(self, Window parent, String message=DirSelectorPromptStr,
2619 String defaultPath=EmptyString, long style=DD_DEFAULT_STYLE,
2620 Point pos=DefaultPosition, Size size=DefaultSize,
2621 String name=DirDialogNameStr) -> DirDialog
2623 Constructor. Use ShowModal method to show the dialog.
2625 _windows_
.DirDialog_swiginit(self
,_windows_
.new_DirDialog(*args
, **kwargs
))
2626 self
._setOORInfo
(self
)
2628 def GetPath(*args
, **kwargs
):
2630 GetPath(self) -> String
2632 Returns the default or user-selected path.
2634 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2636 def GetMessage(*args
, **kwargs
):
2638 GetMessage(self) -> String
2640 Returns the message that will be displayed on the dialog.
2642 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2644 def SetMessage(*args
, **kwargs
):
2646 SetMessage(self, String message)
2648 Sets the message that will be displayed on the dialog.
2650 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2652 def SetPath(*args
, **kwargs
):
2654 SetPath(self, String path)
2656 Sets the default path.
2658 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2660 Message
= property(GetMessage
,SetMessage
,doc
="See `GetMessage` and `SetMessage`")
2661 Path
= property(GetPath
,SetPath
,doc
="See `GetPath` and `SetPath`")
2662 _windows_
.DirDialog_swigregister(DirDialog
)
2664 FD_OPEN
= _windows_
.FD_OPEN
2665 FD_SAVE
= _windows_
.FD_SAVE
2666 FD_OVERWRITE_PROMPT
= _windows_
.FD_OVERWRITE_PROMPT
2667 FD_FILE_MUST_EXIST
= _windows_
.FD_FILE_MUST_EXIST
2668 FD_MULTIPLE
= _windows_
.FD_MULTIPLE
2669 FD_CHANGE_DIR
= _windows_
.FD_CHANGE_DIR
2670 FD_PREVIEW
= _windows_
.FD_PREVIEW
2671 FD_DEFAULT_STYLE
= _windows_
.FD_DEFAULT_STYLE
2675 OVERWRITE_PROMPT
= FD_OVERWRITE_PROMPT
2676 FILE_MUST_EXIST
= FD_FILE_MUST_EXIST
2677 MULTIPLE
= FD_MULTIPLE
2678 CHANGE_DIR
= FD_CHANGE_DIR
2680 class FileDialog(Dialog
):
2682 wx.FileDialog allows the user to select one or more files from the
2685 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2686 __repr__
= _swig_repr
2687 def __init__(self
, *args
, **kwargs
):
2689 __init__(self, Window parent, String message=FileSelectorPromptStr,
2690 String defaultDir=EmptyString, String defaultFile=EmptyString,
2691 String wildcard=FileSelectorDefaultWildcardStr,
2692 long style=FD_DEFAULT_STYLE,
2693 Point pos=DefaultPosition) -> FileDialog
2695 Constructor. Use ShowModal method to show the dialog.
2697 _windows_
.FileDialog_swiginit(self
,_windows_
.new_FileDialog(*args
, **kwargs
))
2698 self
._setOORInfo
(self
)
2700 def SetMessage(*args
, **kwargs
):
2702 SetMessage(self, String message)
2704 Sets the message that will be displayed on the dialog.
2706 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2708 def SetPath(*args
, **kwargs
):
2710 SetPath(self, String path)
2712 Sets the path (the combined directory and filename that will be
2713 returned when the dialog is dismissed).
2715 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2717 def SetDirectory(*args
, **kwargs
):
2719 SetDirectory(self, String dir)
2721 Sets the default directory.
2723 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2725 def SetFilename(*args
, **kwargs
):
2727 SetFilename(self, String name)
2729 Sets the default filename.
2731 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2733 def SetWildcard(*args
, **kwargs
):
2735 SetWildcard(self, String wildCard)
2737 Sets the wildcard, which can contain multiple file types, for
2740 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2743 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2745 def SetFilterIndex(*args
, **kwargs
):
2747 SetFilterIndex(self, int filterIndex)
2749 Sets the default filter index, starting from zero.
2751 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2753 def GetMessage(*args
, **kwargs
):
2755 GetMessage(self) -> String
2757 Returns the message that will be displayed on the dialog.
2759 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2761 def GetPath(*args
, **kwargs
):
2763 GetPath(self) -> String
2765 Returns the full path (directory and filename) of the selected file.
2767 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2769 def GetDirectory(*args
, **kwargs
):
2771 GetDirectory(self) -> String
2773 Returns the default directory.
2775 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2777 def GetFilename(*args
, **kwargs
):
2779 GetFilename(self) -> String
2781 Returns the default filename.
2783 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2785 def GetWildcard(*args
, **kwargs
):
2787 GetWildcard(self) -> String
2789 Returns the file dialog wildcard.
2791 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2793 def GetFilterIndex(*args
, **kwargs
):
2795 GetFilterIndex(self) -> int
2797 Returns the index into the list of filters supplied, optionally, in
2798 the wildcard parameter. Before the dialog is shown, this is the index
2799 which will be used when the dialog is first displayed. After the
2800 dialog is shown, this is the index selected by the user.
2802 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2804 def GetFilenames(*args
, **kwargs
):
2806 GetFilenames(self) -> PyObject
2808 Returns a list of filenames chosen in the dialog. This function
2809 should only be used with the dialogs which have wx.MULTIPLE style, use
2810 GetFilename for the others.
2812 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2814 def GetPaths(*args
, **kwargs
):
2816 GetPaths(self) -> PyObject
2818 Fills the array paths with the full paths of the files chosen. This
2819 function should only be used with the dialogs which have wx.MULTIPLE
2820 style, use GetPath for the others.
2822 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2824 Directory
= property(GetDirectory
,SetDirectory
,doc
="See `GetDirectory` and `SetDirectory`")
2825 Filename
= property(GetFilename
,SetFilename
,doc
="See `GetFilename` and `SetFilename`")
2826 Filenames
= property(GetFilenames
,doc
="See `GetFilenames`")
2827 FilterIndex
= property(GetFilterIndex
,SetFilterIndex
,doc
="See `GetFilterIndex` and `SetFilterIndex`")
2828 Message
= property(GetMessage
,SetMessage
,doc
="See `GetMessage` and `SetMessage`")
2829 Path
= property(GetPath
,SetPath
,doc
="See `GetPath` and `SetPath`")
2830 Paths
= property(GetPaths
,doc
="See `GetPaths`")
2831 Wildcard
= property(GetWildcard
,SetWildcard
,doc
="See `GetWildcard` and `SetWildcard`")
2832 _windows_
.FileDialog_swigregister(FileDialog
)
2834 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2835 class MultiChoiceDialog(Dialog
):
2836 """A simple dialog with a multi selection listbox."""
2837 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2838 __repr__
= _swig_repr
2839 def __init__(self
, *args
, **kwargs
):
2841 __init__(self, Window parent, String message, String caption,
2842 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2843 Point pos=DefaultPosition) -> MultiChoiceDialog
2845 Constructor. Use the `ShowModal` method to show the dialog.
2847 :param parent: The parent window.
2848 :param message: Text to display above the list of selections.
2849 :param caption: Text to use in the title bar of the dialog.
2850 :param choices: A list of strings or unicode objects that the
2851 user is allowed to choose from.
2852 :param style: Styles to apply to the dialog. The default value is
2853 equivallent to wx.DEFAULT_DIALOG_STYLE|wx.RESIZE_BORDER|wx.OK|wx.CANCEL|wx.CENTER.
2854 :param pos: Where to position the dialog (not used on Windows)
2858 _windows_
.MultiChoiceDialog_swiginit(self
,_windows_
.new_MultiChoiceDialog(*args
, **kwargs
))
2859 self
._setOORInfo
(self
)
2861 def SetSelections(*args
, **kwargs
):
2863 SetSelections(List selections)
2865 Specify the items in the list that should be selected, using a list of
2866 integers. The list should specify the indexes of the items that
2869 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2871 def GetSelections(*args
, **kwargs
):
2873 GetSelections() -> [selections]
2875 Returns a list of integers representing the items that are selected.
2876 If an item is selected then its index will appear in the list.
2878 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2880 Selections
= property(GetSelections
,SetSelections
,doc
="See `GetSelections` and `SetSelections`")
2881 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialog
)
2883 class SingleChoiceDialog(Dialog
):
2884 """A simple dialog with a single selection listbox."""
2885 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2886 __repr__
= _swig_repr
2887 def __init__(self
, *args
, **kwargs
):
2889 __init__(Window parent, String message, String caption,
2890 List choices=EmptyList, long style=CHOICEDLG_STYLE,
2891 Point pos=DefaultPosition) -> SingleChoiceDialog
2893 Constructor. Use ShowModal method to show the dialog.
2895 _windows_
.SingleChoiceDialog_swiginit(self
,_windows_
.new_SingleChoiceDialog(*args
, **kwargs
))
2896 self
._setOORInfo
(self
)
2898 def GetSelection(*args
, **kwargs
):
2900 GetSelection(self) -> int
2902 Get the index of the currently selected item.
2904 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2906 def GetStringSelection(*args
, **kwargs
):
2908 GetStringSelection(self) -> String
2910 Returns the string value of the currently selected item
2912 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2914 def SetSelection(*args
, **kwargs
):
2916 SetSelection(self, int sel)
2918 Set the current selected item to sel
2920 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2922 Selection
= property(GetSelection
,SetSelection
,doc
="See `GetSelection` and `SetSelection`")
2923 StringSelection
= property(GetStringSelection
,doc
="See `GetStringSelection`")
2924 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialog
)
2926 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2927 class TextEntryDialog(Dialog
):
2928 """A dialog with text control, [ok] and [cancel] buttons"""
2929 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2930 __repr__
= _swig_repr
2931 def __init__(self
, *args
, **kwargs
):
2933 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2934 String defaultValue=EmptyString,
2935 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2937 Constructor. Use ShowModal method to show the dialog.
2939 _windows_
.TextEntryDialog_swiginit(self
,_windows_
.new_TextEntryDialog(*args
, **kwargs
))
2940 self
._setOORInfo
(self
)
2942 def GetValue(*args
, **kwargs
):
2944 GetValue(self) -> String
2946 Returns the text that the user has entered if the user has pressed OK,
2947 or the original value if the user has pressed Cancel.
2949 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2951 def SetValue(*args
, **kwargs
):
2953 SetValue(self, String value)
2955 Sets the default text value.
2957 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2959 Value
= property(GetValue
,SetValue
,doc
="See `GetValue` and `SetValue`")
2960 _windows_
.TextEntryDialog_swigregister(TextEntryDialog
)
2962 class PasswordEntryDialog(TextEntryDialog
):
2963 """Proxy of C++ PasswordEntryDialog class"""
2964 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2965 __repr__
= _swig_repr
2966 def __init__(self
, *args
, **kwargs
):
2968 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2969 String value=EmptyString,
2970 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2972 _windows_
.PasswordEntryDialog_swiginit(self
,_windows_
.new_PasswordEntryDialog(*args
, **kwargs
))
2973 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialog
)
2974 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
2976 class NumberEntryDialog(Dialog
):
2977 """A dialog with spin control, ok and cancel buttons."""
2978 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
2979 __repr__
= _swig_repr
2980 def __init__(self
, *args
, **kwargs
):
2982 __init__(self, Window parent, String message, String prompt, String caption,
2983 long value, long min, long max, Point pos=DefaultPosition) -> NumberEntryDialog
2985 Constructor. Use ShowModal method to show the dialog.
2987 _windows_
.NumberEntryDialog_swiginit(self
,_windows_
.new_NumberEntryDialog(*args
, **kwargs
))
2988 self
._setOORInfo
(self
)
2990 def GetValue(*args
, **kwargs
):
2991 """GetValue(self) -> long"""
2992 return _windows_
.NumberEntryDialog_GetValue(*args
, **kwargs
)
2994 Value
= property(GetValue
,doc
="See `GetValue`")
2995 _windows_
.NumberEntryDialog_swigregister(NumberEntryDialog
)
2997 class FontData(_core
.Object
):
2999 This class holds a variety of information related to font dialogs and
3000 is used to transfer settings to and results from a `wx.FontDialog`.
3002 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3003 __repr__
= _swig_repr
3004 def __init__(self
, *args
, **kwargs
):
3006 __init__(self) -> FontData
3008 This class holds a variety of information related to font dialogs and
3009 is used to transfer settings to and results from a `wx.FontDialog`.
3011 _windows_
.FontData_swiginit(self
,_windows_
.new_FontData(*args
, **kwargs
))
3012 __swig_destroy__
= _windows_
.delete_FontData
3013 __del__
= lambda self
: None;
3014 def EnableEffects(*args
, **kwargs
):
3016 EnableEffects(self, bool enable)
3018 Enables or disables 'effects' under MS Windows only. This refers to
3019 the controls for manipulating colour, strikeout and underline
3020 properties. The default value is true.
3022 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
3024 def GetAllowSymbols(*args
, **kwargs
):
3026 GetAllowSymbols(self) -> bool
3028 Under MS Windows, returns a flag determining whether symbol fonts can
3029 be selected. Has no effect on other platforms. The default value is
3032 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
3034 def GetColour(*args
, **kwargs
):
3036 GetColour(self) -> Colour
3038 Gets the colour associated with the font dialog. The default value is
3041 return _windows_
.FontData_GetColour(*args
, **kwargs
)
3043 def GetChosenFont(*args
, **kwargs
):
3045 GetChosenFont(self) -> Font
3047 Gets the font chosen by the user.
3049 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
3051 def GetEnableEffects(*args
, **kwargs
):
3053 GetEnableEffects(self) -> bool
3055 Determines whether 'effects' are enabled under Windows.
3057 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
3059 def GetInitialFont(*args
, **kwargs
):
3061 GetInitialFont(self) -> Font
3063 Gets the font that will be initially used by the font dialog. This
3064 should have previously been set by the application.
3066 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
3068 def GetShowHelp(*args
, **kwargs
):
3070 GetShowHelp(self) -> bool
3072 Returns true if the Help button will be shown (Windows only). The
3073 default value is false.
3075 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
3077 def SetAllowSymbols(*args
, **kwargs
):
3079 SetAllowSymbols(self, bool allowSymbols)
3081 Under MS Windows, determines whether symbol fonts can be selected. Has
3082 no effect on other platforms. The default value is true.
3084 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
3086 def SetChosenFont(*args
, **kwargs
):
3088 SetChosenFont(self, Font font)
3090 Sets the font that will be returned to the user (normally for internal
3093 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
3095 def SetColour(*args
, **kwargs
):
3097 SetColour(self, Colour colour)
3099 Sets the colour that will be used for the font foreground colour. The
3100 default colour is black.
3102 return _windows_
.FontData_SetColour(*args
, **kwargs
)
3104 def SetInitialFont(*args
, **kwargs
):
3106 SetInitialFont(self, Font font)
3108 Sets the font that will be initially used by the font dialog.
3110 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
3112 def SetRange(*args
, **kwargs
):
3114 SetRange(self, int min, int max)
3116 Sets the valid range for the font point size (Windows only). The
3117 default is 0, 0 (unrestricted range).
3119 return _windows_
.FontData_SetRange(*args
, **kwargs
)
3121 def SetShowHelp(*args
, **kwargs
):
3123 SetShowHelp(self, bool showHelp)
3125 Determines whether the Help button will be displayed in the font
3126 dialog (Windows only). The default value is false.
3128 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
3130 AllowSymbols
= property(GetAllowSymbols
,SetAllowSymbols
,doc
="See `GetAllowSymbols` and `SetAllowSymbols`")
3131 ChosenFont
= property(GetChosenFont
,SetChosenFont
,doc
="See `GetChosenFont` and `SetChosenFont`")
3132 Colour
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")
3133 InitialFont
= property(GetInitialFont
,SetInitialFont
,doc
="See `GetInitialFont` and `SetInitialFont`")
3134 ShowHelp
= property(GetShowHelp
,SetShowHelp
,doc
="See `GetShowHelp` and `SetShowHelp`")
3135 _windows_
.FontData_swigregister(FontData
)
3137 class FontDialog(Dialog
):
3139 wx.FontDialog allows the user to select a system font and its attributes.
3144 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3145 __repr__
= _swig_repr
3146 def __init__(self
, *args
, **kwargs
):
3148 __init__(self, Window parent, FontData data) -> FontDialog
3150 Constructor. Pass a parent window and the `wx.FontData` object to be
3151 used to initialize the dialog controls. Call `ShowModal` to display
3152 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
3153 results with via the `wx.FontData` returned by `GetFontData`.
3155 _windows_
.FontDialog_swiginit(self
,_windows_
.new_FontDialog(*args
, **kwargs
))
3156 self
._setOORInfo
(self
)
3158 def GetFontData(*args
, **kwargs
):
3160 GetFontData(self) -> FontData
3162 Returns a reference to the internal `wx.FontData` used by the
3165 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
3167 FontData
= property(GetFontData
,doc
="See `GetFontData`")
3168 _windows_
.FontDialog_swigregister(FontDialog
)
3171 def GetFontFromUser(*args
, **kwargs
):
3172 """GetFontFromUser(Window parent=None, Font fontInit=wxNullFont, String caption=EmptyString) -> Font"""
3173 return _windows_
.GetFontFromUser(*args
, **kwargs
)
3174 class MessageDialog(Dialog
):
3176 This class provides a simple dialog that shows a single or multi-line
3177 message, with a choice of OK, Yes, No and/or Cancel buttons.
3179 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3180 __repr__
= _swig_repr
3181 def __init__(self
, *args
, **kwargs
):
3183 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
3184 long style=wxOK|wxCANCEL|wxCENTRE,
3185 Point pos=DefaultPosition) -> MessageDialog
3187 Constructor, use `ShowModal` to display the dialog.
3189 _windows_
.MessageDialog_swiginit(self
,_windows_
.new_MessageDialog(*args
, **kwargs
))
3190 self
._setOORInfo
(self
)
3192 _windows_
.MessageDialog_swigregister(MessageDialog
)
3194 PD_AUTO_HIDE
= _windows_
.PD_AUTO_HIDE
3195 PD_APP_MODAL
= _windows_
.PD_APP_MODAL
3196 PD_CAN_ABORT
= _windows_
.PD_CAN_ABORT
3197 PD_ELAPSED_TIME
= _windows_
.PD_ELAPSED_TIME
3198 PD_ESTIMATED_TIME
= _windows_
.PD_ESTIMATED_TIME
3199 PD_REMAINING_TIME
= _windows_
.PD_REMAINING_TIME
3200 PD_SMOOTH
= _windows_
.PD_SMOOTH
3201 PD_CAN_SKIP
= _windows_
.PD_CAN_SKIP
3202 class ProgressDialog(Frame
):
3204 A dialog that shows a short message and a progress bar. Optionally, it
3205 can display an ABORT button.
3207 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3208 __repr__
= _swig_repr
3209 def __init__(self
, *args
, **kwargs
):
3211 __init__(self, String title, String message, int maximum=100, Window parent=None,
3212 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
3214 Constructor. Creates the dialog, displays it and disables user input
3215 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
3218 _windows_
.ProgressDialog_swiginit(self
,_windows_
.new_ProgressDialog(*args
, **kwargs
))
3219 self
._setOORInfo
(self
)
3221 def Update(*args
, **kwargs
):
3223 Update(self, int value, String newmsg) --> (continue, skip)
3225 Updates the dialog, setting the progress bar to the new value and, if
3226 given changes the message above it. The value given should be less
3227 than or equal to the maximum value given to the constructor and the
3228 dialog is closed if it is equal to the maximum. Returns a tuple of
3229 boolean values, ``(continue, skip)`` where ``continue`` is ``True``
3230 unless the Cancel button has been pressed, and ``skip`` is ``False``
3231 unless the Skip button (if any) has been pressed.
3233 If the ``continue`` return value is ``False``, the application can either
3234 immediately destroy the dialog or ask the user for confirmation, and if the
3235 abort is not confirmed the dialog may be resumed with `Resume` function.
3238 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
3240 def Pulse(*args
, **kwargs
):
3242 Pulse(self, String newmsg) --> (continue, skip)
3244 Just like `Update` but switches the dialog to use a gauge in
3245 interminante mode and calls `wx.Gauge.Pulse` to show the user a bit of
3248 return _windows_
.ProgressDialog_Pulse(*args
, **kwargs
)
3251 def Resume(*args
, **kwargs
):
3255 Can be used to continue with the dialog, after the user had chosen to
3258 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
3260 _windows_
.ProgressDialog_swigregister(ProgressDialog
)
3262 FR_DOWN
= _windows_
.FR_DOWN
3263 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
3264 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
3265 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
3266 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
3267 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
3268 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
3269 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
3270 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
3271 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
3272 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
3273 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
3274 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
3275 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
3276 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
3277 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
3278 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
3280 # For backwards compatibility. Should they be removed?
3281 EVT_COMMAND_FIND
= EVT_FIND
3282 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
3283 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
3284 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
3285 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
3287 class FindDialogEvent(_core
.CommandEvent
):
3288 """Events for the FindReplaceDialog"""
3289 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3290 __repr__
= _swig_repr
3291 def __init__(self
, *args
, **kwargs
):
3293 __init__(self, EventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3295 Events for the FindReplaceDialog
3297 _windows_
.FindDialogEvent_swiginit(self
,_windows_
.new_FindDialogEvent(*args
, **kwargs
))
3298 def GetFlags(*args
, **kwargs
):
3300 GetFlags(self) -> int
3302 Get the currently selected flags: this is the combination of
3303 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3305 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
3307 def GetFindString(*args
, **kwargs
):
3309 GetFindString(self) -> String
3311 Return the string to find (never empty).
3313 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
3315 def GetReplaceString(*args
, **kwargs
):
3317 GetReplaceString(self) -> String
3319 Return the string to replace the search string with (only for replace
3320 and replace all events).
3322 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
3324 def GetDialog(*args
, **kwargs
):
3326 GetDialog(self) -> FindReplaceDialog
3328 Return the pointer to the dialog which generated this event.
3330 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
3332 def SetFlags(*args
, **kwargs
):
3333 """SetFlags(self, int flags)"""
3334 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3336 def SetFindString(*args
, **kwargs
):
3337 """SetFindString(self, String str)"""
3338 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3340 def SetReplaceString(*args
, **kwargs
):
3341 """SetReplaceString(self, String str)"""
3342 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3344 Dialog
= property(GetDialog
,doc
="See `GetDialog`")
3345 FindString
= property(GetFindString
,SetFindString
,doc
="See `GetFindString` and `SetFindString`")
3346 Flags
= property(GetFlags
,SetFlags
,doc
="See `GetFlags` and `SetFlags`")
3347 ReplaceString
= property(GetReplaceString
,SetReplaceString
,doc
="See `GetReplaceString` and `SetReplaceString`")
3348 _windows_
.FindDialogEvent_swigregister(FindDialogEvent
)
3350 class FindReplaceData(_core
.Object
):
3352 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3353 to initialize the dialog with the default values and will keep the
3354 last values from the dialog when it is closed. It is also updated each
3355 time a `wx.FindDialogEvent` is generated so instead of using the
3356 `wx.FindDialogEvent` methods you can also directly query this object.
3358 Note that all SetXXX() methods may only be called before showing the
3359 dialog and calling them has no effect later.
3361 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3362 __repr__
= _swig_repr
3363 def __init__(self
, *args
, **kwargs
):
3365 __init__(self, int flags=0) -> FindReplaceData
3367 Constuctor initializes the flags to default value (0).
3369 _windows_
.FindReplaceData_swiginit(self
,_windows_
.new_FindReplaceData(*args
, **kwargs
))
3370 __swig_destroy__
= _windows_
.delete_FindReplaceData
3371 __del__
= lambda self
: None;
3372 def GetFindString(*args
, **kwargs
):
3374 GetFindString(self) -> String
3376 Get the string to find.
3378 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3380 def GetReplaceString(*args
, **kwargs
):
3382 GetReplaceString(self) -> String
3384 Get the replacement string.
3386 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3388 def GetFlags(*args
, **kwargs
):
3390 GetFlags(self) -> int
3392 Get the combination of flag values.
3394 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3396 def SetFlags(*args
, **kwargs
):
3398 SetFlags(self, int flags)
3400 Set the flags to use to initialize the controls of the dialog.
3402 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3404 def SetFindString(*args
, **kwargs
):
3406 SetFindString(self, String str)
3408 Set the string to find (used as initial value by the dialog).
3410 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3412 def SetReplaceString(*args
, **kwargs
):
3414 SetReplaceString(self, String str)
3416 Set the replacement string (used as initial value by the dialog).
3418 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3420 FindString
= property(GetFindString
,SetFindString
,doc
="See `GetFindString` and `SetFindString`")
3421 Flags
= property(GetFlags
,SetFlags
,doc
="See `GetFlags` and `SetFlags`")
3422 ReplaceString
= property(GetReplaceString
,SetReplaceString
,doc
="See `GetReplaceString` and `SetReplaceString`")
3423 _windows_
.FindReplaceData_swigregister(FindReplaceData
)
3425 class FindReplaceDialog(Dialog
):
3427 wx.FindReplaceDialog is a standard modeless dialog which is used to
3428 allow the user to search for some text (and possibly replace it with
3429 something else). The actual searching is supposed to be done in the
3430 owner window which is the parent of this dialog. Note that it means
3431 that unlike for the other standard dialogs this one must have a parent
3432 window. Also note that there is no way to use this dialog in a modal
3433 way; it is always, by design and implementation, modeless.
3435 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3436 __repr__
= _swig_repr
3437 def __init__(self
, *args
, **kwargs
):
3439 __init__(self, Window parent, FindReplaceData data, String title,
3440 int style=0) -> FindReplaceDialog
3442 Create a FindReplaceDialog. The parent and data parameters must be
3443 non-None. Use Show to display the dialog.
3445 _windows_
.FindReplaceDialog_swiginit(self
,_windows_
.new_FindReplaceDialog(*args
, **kwargs
))
3446 self
._setOORInfo
(self
)
3448 def Create(*args
, **kwargs
):
3450 Create(self, Window parent, FindReplaceData data, String title,
3451 int style=0) -> bool
3453 Create the dialog, for 2-phase create.
3455 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3457 def GetData(*args
, **kwargs
):
3459 GetData(self) -> FindReplaceData
3461 Get the FindReplaceData object used by this dialog.
3463 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3465 def SetData(*args
, **kwargs
):
3467 SetData(self, FindReplaceData data)
3469 Set the FindReplaceData object used by this dialog.
3471 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3473 Data
= property(GetData
,SetData
,doc
="See `GetData` and `SetData`")
3474 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialog
)
3476 def PreFindReplaceDialog(*args
, **kwargs
):
3478 PreFindReplaceDialog() -> FindReplaceDialog
3480 Precreate a FindReplaceDialog for 2-phase creation
3482 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3485 #---------------------------------------------------------------------------
3487 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3488 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3489 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3490 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3491 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3492 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3493 IDM_WINDOWPREV
= _windows_
.IDM_WINDOWPREV
3494 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3495 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3496 class MDIParentFrame(Frame
):
3497 """Proxy of C++ MDIParentFrame class"""
3498 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3499 __repr__
= _swig_repr
3500 def __init__(self
, *args
, **kwargs
):
3502 __init__(self, Window parent, int id=-1, String title=EmptyString,
3503 Point pos=DefaultPosition, Size size=DefaultSize,
3504 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3505 String name=FrameNameStr) -> MDIParentFrame
3507 _windows_
.MDIParentFrame_swiginit(self
,_windows_
.new_MDIParentFrame(*args
, **kwargs
))
3508 self
._setOORInfo
(self
)
3510 def Create(*args
, **kwargs
):
3512 Create(self, Window parent, int id=-1, String title=EmptyString,
3513 Point pos=DefaultPosition, Size size=DefaultSize,
3514 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3515 String name=FrameNameStr) -> bool
3517 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3519 def ActivateNext(*args
, **kwargs
):
3520 """ActivateNext(self)"""
3521 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3523 def ActivatePrevious(*args
, **kwargs
):
3524 """ActivatePrevious(self)"""
3525 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3527 def ArrangeIcons(*args
, **kwargs
):
3528 """ArrangeIcons(self)"""
3529 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3531 def Cascade(*args
, **kwargs
):
3533 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3535 def GetActiveChild(*args
, **kwargs
):
3536 """GetActiveChild(self) -> MDIChildFrame"""
3537 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3539 def GetClientWindow(*args
, **kwargs
):
3540 """GetClientWindow(self) -> MDIClientWindow"""
3541 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3543 def GetWindowMenu(*args
, **kwargs
):
3544 """GetWindowMenu(self) -> Menu"""
3545 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3547 def SetWindowMenu(*args
, **kwargs
):
3548 """SetWindowMenu(self, Menu menu)"""
3549 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3551 def Tile(*args
, **kwargs
):
3552 """Tile(self, int orient=HORIZONTAL)"""
3553 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3555 ActiveChild
= property(GetActiveChild
,doc
="See `GetActiveChild`")
3556 ClientWindow
= property(GetClientWindow
,doc
="See `GetClientWindow`")
3557 _windows_
.MDIParentFrame_swigregister(MDIParentFrame
)
3559 def PreMDIParentFrame(*args
, **kwargs
):
3560 """PreMDIParentFrame() -> MDIParentFrame"""
3561 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3564 class MDIChildFrame(Frame
):
3565 """Proxy of C++ MDIChildFrame class"""
3566 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3567 __repr__
= _swig_repr
3568 def __init__(self
, *args
, **kwargs
):
3570 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3571 Point pos=DefaultPosition, Size size=DefaultSize,
3572 long style=DEFAULT_FRAME_STYLE,
3573 String name=FrameNameStr) -> MDIChildFrame
3575 _windows_
.MDIChildFrame_swiginit(self
,_windows_
.new_MDIChildFrame(*args
, **kwargs
))
3576 self
._setOORInfo
(self
)
3578 def Create(*args
, **kwargs
):
3580 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3581 Point pos=DefaultPosition, Size size=DefaultSize,
3582 long style=DEFAULT_FRAME_STYLE,
3583 String name=FrameNameStr) -> bool
3585 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3587 def Activate(*args
, **kwargs
):
3588 """Activate(self)"""
3589 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3591 _windows_
.MDIChildFrame_swigregister(MDIChildFrame
)
3593 def PreMDIChildFrame(*args
, **kwargs
):
3594 """PreMDIChildFrame() -> MDIChildFrame"""
3595 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3598 class MDIClientWindow(_core
.Window
):
3599 """Proxy of C++ MDIClientWindow class"""
3600 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3601 __repr__
= _swig_repr
3602 def __init__(self
, *args
, **kwargs
):
3603 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3604 _windows_
.MDIClientWindow_swiginit(self
,_windows_
.new_MDIClientWindow(*args
, **kwargs
))
3605 self
._setOORInfo
(self
)
3607 def Create(*args
, **kwargs
):
3608 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3609 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3611 _windows_
.MDIClientWindow_swigregister(MDIClientWindow
)
3613 def PreMDIClientWindow(*args
, **kwargs
):
3614 """PreMDIClientWindow() -> MDIClientWindow"""
3615 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3618 #---------------------------------------------------------------------------
3620 class PyWindow(_core
.Window
):
3621 """Proxy of C++ PyWindow class"""
3622 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3623 __repr__
= _swig_repr
3624 def __init__(self
, *args
, **kwargs
):
3626 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3627 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3629 _windows_
.PyWindow_swiginit(self
,_windows_
.new_PyWindow(*args
, **kwargs
))
3630 self
._setOORInfo
(self
);PyWindow
._setCallbackInfo
(self
, self
, PyWindow
)
3632 def _setCallbackInfo(*args
, **kwargs
):
3633 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3634 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3636 SetBestSize
= wx
.Window
.SetInitialSize
3637 def DoEraseBackground(*args
, **kwargs
):
3638 """DoEraseBackground(self, DC dc) -> bool"""
3639 return _windows_
.PyWindow_DoEraseBackground(*args
, **kwargs
)
3641 def DoMoveWindow(*args
, **kwargs
):
3642 """DoMoveWindow(self, int x, int y, int width, int height)"""
3643 return _windows_
.PyWindow_DoMoveWindow(*args
, **kwargs
)
3645 def DoSetSize(*args
, **kwargs
):
3646 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3647 return _windows_
.PyWindow_DoSetSize(*args
, **kwargs
)
3649 def DoSetClientSize(*args
, **kwargs
):
3650 """DoSetClientSize(self, int width, int height)"""
3651 return _windows_
.PyWindow_DoSetClientSize(*args
, **kwargs
)
3653 def DoSetVirtualSize(*args
, **kwargs
):
3654 """DoSetVirtualSize(self, int x, int y)"""
3655 return _windows_
.PyWindow_DoSetVirtualSize(*args
, **kwargs
)
3657 def DoGetSize(*args
, **kwargs
):
3658 """DoGetSize() -> (width, height)"""
3659 return _windows_
.PyWindow_DoGetSize(*args
, **kwargs
)
3661 def DoGetClientSize(*args
, **kwargs
):
3662 """DoGetClientSize() -> (width, height)"""
3663 return _windows_
.PyWindow_DoGetClientSize(*args
, **kwargs
)
3665 def DoGetPosition(*args
, **kwargs
):
3666 """DoGetPosition() -> (x,y)"""
3667 return _windows_
.PyWindow_DoGetPosition(*args
, **kwargs
)
3669 def DoGetVirtualSize(*args
, **kwargs
):
3670 """DoGetVirtualSize(self) -> Size"""
3671 return _windows_
.PyWindow_DoGetVirtualSize(*args
, **kwargs
)
3673 def DoGetBestSize(*args
, **kwargs
):
3674 """DoGetBestSize(self) -> Size"""
3675 return _windows_
.PyWindow_DoGetBestSize(*args
, **kwargs
)
3677 def GetDefaultAttributes(*args
, **kwargs
):
3678 """GetDefaultAttributes(self) -> VisualAttributes"""
3679 return _windows_
.PyWindow_GetDefaultAttributes(*args
, **kwargs
)
3681 def OnInternalIdle(*args
, **kwargs
):
3682 """OnInternalIdle(self)"""
3683 return _windows_
.PyWindow_OnInternalIdle(*args
, **kwargs
)
3685 def base_DoMoveWindow(*args
, **kw
):
3686 return PyWindow
.DoMoveWindow(*args
, **kw
)
3687 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3688 "Please use PyWindow.DoMoveWindow instead.")
3690 def base_DoSetSize(*args
, **kw
):
3691 return PyWindow
.DoSetSize(*args
, **kw
)
3692 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3693 "Please use PyWindow.DoSetSize instead.")
3695 def base_DoSetClientSize(*args
, **kw
):
3696 return PyWindow
.DoSetClientSize(*args
, **kw
)
3697 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3698 "Please use PyWindow.DoSetClientSize instead.")
3700 def base_DoSetVirtualSize(*args
, **kw
):
3701 return PyWindow
.DoSetVirtualSize(*args
, **kw
)
3702 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3703 "Please use PyWindow.DoSetVirtualSize instead.")
3705 def base_DoGetSize(*args
, **kw
):
3706 return PyWindow
.DoGetSize(*args
, **kw
)
3707 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3708 "Please use PyWindow.DoGetSize instead.")
3710 def base_DoGetClientSize(*args
, **kw
):
3711 return PyWindow
.DoGetClientSize(*args
, **kw
)
3712 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3713 "Please use PyWindow.DoGetClientSize instead.")
3715 def base_DoGetPosition(*args
, **kw
):
3716 return PyWindow
.DoGetPosition(*args
, **kw
)
3717 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3718 "Please use PyWindow.DoGetPosition instead.")
3720 def base_DoGetVirtualSize(*args
, **kw
):
3721 return PyWindow
.DoGetVirtualSize(*args
, **kw
)
3722 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3723 "Please use PyWindow.DoGetVirtualSize instead.")
3725 def base_DoGetBestSize(*args
, **kw
):
3726 return PyWindow
.DoGetBestSize(*args
, **kw
)
3727 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3728 "Please use PyWindow.DoGetBestSize instead.")
3730 def base_InitDialog(*args
, **kw
):
3731 return PyWindow
.InitDialog(*args
, **kw
)
3732 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3733 "Please use PyWindow.InitDialog instead.")
3735 def base_TransferDataToWindow(*args
, **kw
):
3736 return PyWindow
.TransferDataToWindow(*args
, **kw
)
3737 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3738 "Please use PyWindow.TransferDataToWindow instead.")
3740 def base_TransferDataFromWindow(*args
, **kw
):
3741 return PyWindow
.TransferDataFromWindow(*args
, **kw
)
3742 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3743 "Please use PyWindow.TransferDataFromWindow instead.")
3745 def base_Validate(*args
, **kw
):
3746 return PyWindow
.Validate(*args
, **kw
)
3747 base_Validate
= wx
._deprecated
(base_Validate
,
3748 "Please use PyWindow.Validate instead.")
3750 def base_AcceptsFocus(*args
, **kw
):
3751 return PyWindow
.AcceptsFocus(*args
, **kw
)
3752 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3753 "Please use PyWindow.AcceptsFocus instead.")
3755 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3756 return PyWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
3757 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3758 "Please use PyWindow.AcceptsFocusFromKeyboard instead.")
3760 def base_GetMaxSize(*args
, **kw
):
3761 return PyWindow
.GetMaxSize(*args
, **kw
)
3762 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3763 "Please use PyWindow.GetMaxSize instead.")
3765 def base_AddChild(*args
, **kw
):
3766 return PyWindow
.AddChild(*args
, **kw
)
3767 base_AddChild
= wx
._deprecated
(base_AddChild
,
3768 "Please use PyWindow.AddChild instead.")
3770 def base_RemoveChild(*args
, **kw
):
3771 return PyWindow
.RemoveChild(*args
, **kw
)
3772 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3773 "Please use PyWindow.RemoveChild instead.")
3775 def base_ShouldInheritColours(*args
, **kw
):
3776 return PyWindow
.ShouldInheritColours(*args
, **kw
)
3777 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3778 "Please use PyWindow.ShouldInheritColours instead.")
3780 def base_GetDefaultAttributes(*args
, **kw
):
3781 return PyWindow
.GetDefaultAttributes(*args
, **kw
)
3782 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3783 "Please use PyWindow.GetDefaultAttributes instead.")
3785 def base_OnInternalIdle(*args
, **kw
):
3786 return PyWindow
.OnInternalIdle(*args
, **kw
)
3787 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3788 "Please use PyWindow.OnInternalIdle instead.")
3790 _windows_
.PyWindow_swigregister(PyWindow
)
3792 def PrePyWindow(*args
, **kwargs
):
3793 """PrePyWindow() -> PyWindow"""
3794 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3797 class PyPanel(Panel
):
3798 """Proxy of C++ PyPanel class"""
3799 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3800 __repr__
= _swig_repr
3801 def __init__(self
, *args
, **kwargs
):
3803 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3804 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3806 _windows_
.PyPanel_swiginit(self
,_windows_
.new_PyPanel(*args
, **kwargs
))
3807 self
._setOORInfo
(self
);PyPanel
._setCallbackInfo
(self
, self
, PyPanel
)
3809 def _setCallbackInfo(*args
, **kwargs
):
3810 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3811 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3813 SetBestSize
= wx
.Window
.SetInitialSize
3814 def DoEraseBackground(*args
, **kwargs
):
3815 """DoEraseBackground(self, DC dc) -> bool"""
3816 return _windows_
.PyPanel_DoEraseBackground(*args
, **kwargs
)
3818 def DoMoveWindow(*args
, **kwargs
):
3819 """DoMoveWindow(self, int x, int y, int width, int height)"""
3820 return _windows_
.PyPanel_DoMoveWindow(*args
, **kwargs
)
3822 def DoSetSize(*args
, **kwargs
):
3823 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3824 return _windows_
.PyPanel_DoSetSize(*args
, **kwargs
)
3826 def DoSetClientSize(*args
, **kwargs
):
3827 """DoSetClientSize(self, int width, int height)"""
3828 return _windows_
.PyPanel_DoSetClientSize(*args
, **kwargs
)
3830 def DoSetVirtualSize(*args
, **kwargs
):
3831 """DoSetVirtualSize(self, int x, int y)"""
3832 return _windows_
.PyPanel_DoSetVirtualSize(*args
, **kwargs
)
3834 def DoGetSize(*args
, **kwargs
):
3835 """DoGetSize() -> (width, height)"""
3836 return _windows_
.PyPanel_DoGetSize(*args
, **kwargs
)
3838 def DoGetClientSize(*args
, **kwargs
):
3839 """DoGetClientSize() -> (width, height)"""
3840 return _windows_
.PyPanel_DoGetClientSize(*args
, **kwargs
)
3842 def DoGetPosition(*args
, **kwargs
):
3843 """DoGetPosition() -> (x,y)"""
3844 return _windows_
.PyPanel_DoGetPosition(*args
, **kwargs
)
3846 def DoGetVirtualSize(*args
, **kwargs
):
3847 """DoGetVirtualSize(self) -> Size"""
3848 return _windows_
.PyPanel_DoGetVirtualSize(*args
, **kwargs
)
3850 def DoGetBestSize(*args
, **kwargs
):
3851 """DoGetBestSize(self) -> Size"""
3852 return _windows_
.PyPanel_DoGetBestSize(*args
, **kwargs
)
3854 def GetDefaultAttributes(*args
, **kwargs
):
3855 """GetDefaultAttributes(self) -> VisualAttributes"""
3856 return _windows_
.PyPanel_GetDefaultAttributes(*args
, **kwargs
)
3858 def OnInternalIdle(*args
, **kwargs
):
3859 """OnInternalIdle(self)"""
3860 return _windows_
.PyPanel_OnInternalIdle(*args
, **kwargs
)
3862 def base_DoMoveWindow(*args
, **kw
):
3863 return PyPanel
.DoMoveWindow(*args
, **kw
)
3864 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
3865 "Please use PyPanel.DoMoveWindow instead.")
3867 def base_DoSetSize(*args
, **kw
):
3868 return PyPanel
.DoSetSize(*args
, **kw
)
3869 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
3870 "Please use PyPanel.DoSetSize instead.")
3872 def base_DoSetClientSize(*args
, **kw
):
3873 return PyPanel
.DoSetClientSize(*args
, **kw
)
3874 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
3875 "Please use PyPanel.DoSetClientSize instead.")
3877 def base_DoSetVirtualSize(*args
, **kw
):
3878 return PyPanel
.DoSetVirtualSize(*args
, **kw
)
3879 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
3880 "Please use PyPanel.DoSetVirtualSize instead.")
3882 def base_DoGetSize(*args
, **kw
):
3883 return PyPanel
.DoGetSize(*args
, **kw
)
3884 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
3885 "Please use PyPanel.DoGetSize instead.")
3887 def base_DoGetClientSize(*args
, **kw
):
3888 return PyPanel
.DoGetClientSize(*args
, **kw
)
3889 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
3890 "Please use PyPanel.DoGetClientSize instead.")
3892 def base_DoGetPosition(*args
, **kw
):
3893 return PyPanel
.DoGetPosition(*args
, **kw
)
3894 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
3895 "Please use PyPanel.DoGetPosition instead.")
3897 def base_DoGetVirtualSize(*args
, **kw
):
3898 return PyPanel
.DoGetVirtualSize(*args
, **kw
)
3899 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
3900 "Please use PyPanel.DoGetVirtualSize instead.")
3902 def base_DoGetBestSize(*args
, **kw
):
3903 return PyPanel
.DoGetBestSize(*args
, **kw
)
3904 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
3905 "Please use PyPanel.DoGetBestSize instead.")
3907 def base_InitDialog(*args
, **kw
):
3908 return PyPanel
.InitDialog(*args
, **kw
)
3909 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
3910 "Please use PyPanel.InitDialog instead.")
3912 def base_TransferDataToWindow(*args
, **kw
):
3913 return PyPanel
.TransferDataToWindow(*args
, **kw
)
3914 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
3915 "Please use PyPanel.TransferDataToWindow instead.")
3917 def base_TransferDataFromWindow(*args
, **kw
):
3918 return PyPanel
.TransferDataFromWindow(*args
, **kw
)
3919 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
3920 "Please use PyPanel.TransferDataFromWindow instead.")
3922 def base_Validate(*args
, **kw
):
3923 return PyPanel
.Validate(*args
, **kw
)
3924 base_Validate
= wx
._deprecated
(base_Validate
,
3925 "Please use PyPanel.Validate instead.")
3927 def base_AcceptsFocus(*args
, **kw
):
3928 return PyPanel
.AcceptsFocus(*args
, **kw
)
3929 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
3930 "Please use PyPanel.AcceptsFocus instead.")
3932 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
3933 return PyPanel
.AcceptsFocusFromKeyboard(*args
, **kw
)
3934 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
3935 "Please use PyPanel.AcceptsFocusFromKeyboard instead.")
3937 def base_GetMaxSize(*args
, **kw
):
3938 return PyPanel
.GetMaxSize(*args
, **kw
)
3939 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
3940 "Please use PyPanel.GetMaxSize instead.")
3942 def base_AddChild(*args
, **kw
):
3943 return PyPanel
.AddChild(*args
, **kw
)
3944 base_AddChild
= wx
._deprecated
(base_AddChild
,
3945 "Please use PyPanel.AddChild instead.")
3947 def base_RemoveChild(*args
, **kw
):
3948 return PyPanel
.RemoveChild(*args
, **kw
)
3949 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
3950 "Please use PyPanel.RemoveChild instead.")
3952 def base_ShouldInheritColours(*args
, **kw
):
3953 return PyPanel
.ShouldInheritColours(*args
, **kw
)
3954 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
3955 "Please use PyPanel.ShouldInheritColours instead.")
3957 def base_GetDefaultAttributes(*args
, **kw
):
3958 return PyPanel
.GetDefaultAttributes(*args
, **kw
)
3959 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
3960 "Please use PyPanel.GetDefaultAttributes instead.")
3962 def base_OnInternalIdle(*args
, **kw
):
3963 return PyPanel
.OnInternalIdle(*args
, **kw
)
3964 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
3965 "Please use PyPanel.OnInternalIdle instead.")
3967 _windows_
.PyPanel_swigregister(PyPanel
)
3969 def PrePyPanel(*args
, **kwargs
):
3970 """PrePyPanel() -> PyPanel"""
3971 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3974 class PyScrolledWindow(ScrolledWindow
):
3975 """Proxy of C++ PyScrolledWindow class"""
3976 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
3977 __repr__
= _swig_repr
3978 def __init__(self
, *args
, **kwargs
):
3980 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3981 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3983 _windows_
.PyScrolledWindow_swiginit(self
,_windows_
.new_PyScrolledWindow(*args
, **kwargs
))
3984 self
._setOORInfo
(self
);PyScrolledWindow
._setCallbackInfo
(self
, self
, PyScrolledWindow
)
3986 def _setCallbackInfo(*args
, **kwargs
):
3987 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3988 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3990 SetBestSize
= wx
.Window
.SetInitialSize
3991 def DoEraseBackground(*args
, **kwargs
):
3992 """DoEraseBackground(self, DC dc) -> bool"""
3993 return _windows_
.PyScrolledWindow_DoEraseBackground(*args
, **kwargs
)
3995 def DoMoveWindow(*args
, **kwargs
):
3996 """DoMoveWindow(self, int x, int y, int width, int height)"""
3997 return _windows_
.PyScrolledWindow_DoMoveWindow(*args
, **kwargs
)
3999 def DoSetSize(*args
, **kwargs
):
4000 """DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
4001 return _windows_
.PyScrolledWindow_DoSetSize(*args
, **kwargs
)
4003 def DoSetClientSize(*args
, **kwargs
):
4004 """DoSetClientSize(self, int width, int height)"""
4005 return _windows_
.PyScrolledWindow_DoSetClientSize(*args
, **kwargs
)
4007 def DoSetVirtualSize(*args
, **kwargs
):
4008 """DoSetVirtualSize(self, int x, int y)"""
4009 return _windows_
.PyScrolledWindow_DoSetVirtualSize(*args
, **kwargs
)
4011 def DoGetSize(*args
, **kwargs
):
4012 """DoGetSize() -> (width, height)"""
4013 return _windows_
.PyScrolledWindow_DoGetSize(*args
, **kwargs
)
4015 def DoGetClientSize(*args
, **kwargs
):
4016 """DoGetClientSize() -> (width, height)"""
4017 return _windows_
.PyScrolledWindow_DoGetClientSize(*args
, **kwargs
)
4019 def DoGetPosition(*args
, **kwargs
):
4020 """DoGetPosition() -> (x,y)"""
4021 return _windows_
.PyScrolledWindow_DoGetPosition(*args
, **kwargs
)
4023 def DoGetVirtualSize(*args
, **kwargs
):
4024 """DoGetVirtualSize(self) -> Size"""
4025 return _windows_
.PyScrolledWindow_DoGetVirtualSize(*args
, **kwargs
)
4027 def DoGetBestSize(*args
, **kwargs
):
4028 """DoGetBestSize(self) -> Size"""
4029 return _windows_
.PyScrolledWindow_DoGetBestSize(*args
, **kwargs
)
4031 def GetDefaultAttributes(*args
, **kwargs
):
4032 """GetDefaultAttributes(self) -> VisualAttributes"""
4033 return _windows_
.PyScrolledWindow_GetDefaultAttributes(*args
, **kwargs
)
4035 def OnInternalIdle(*args
, **kwargs
):
4036 """OnInternalIdle(self)"""
4037 return _windows_
.PyScrolledWindow_OnInternalIdle(*args
, **kwargs
)
4039 def base_DoMoveWindow(*args
, **kw
):
4040 return PyScrolledWindow
.DoMoveWindow(*args
, **kw
)
4041 base_DoMoveWindow
= wx
._deprecated
(base_DoMoveWindow
,
4042 "Please use PyScrolledWindow.DoMoveWindow instead.")
4044 def base_DoSetSize(*args
, **kw
):
4045 return PyScrolledWindow
.DoSetSize(*args
, **kw
)
4046 base_DoSetSize
= wx
._deprecated
(base_DoSetSize
,
4047 "Please use PyScrolledWindow.DoSetSize instead.")
4049 def base_DoSetClientSize(*args
, **kw
):
4050 return PyScrolledWindow
.DoSetClientSize(*args
, **kw
)
4051 base_DoSetClientSize
= wx
._deprecated
(base_DoSetClientSize
,
4052 "Please use PyScrolledWindow.DoSetClientSize instead.")
4054 def base_DoSetVirtualSize(*args
, **kw
):
4055 return PyScrolledWindow
.DoSetVirtualSize(*args
, **kw
)
4056 base_DoSetVirtualSize
= wx
._deprecated
(base_DoSetVirtualSize
,
4057 "Please use PyScrolledWindow.DoSetVirtualSize instead.")
4059 def base_DoGetSize(*args
, **kw
):
4060 return PyScrolledWindow
.DoGetSize(*args
, **kw
)
4061 base_DoGetSize
= wx
._deprecated
(base_DoGetSize
,
4062 "Please use PyScrolledWindow.DoGetSize instead.")
4064 def base_DoGetClientSize(*args
, **kw
):
4065 return PyScrolledWindow
.DoGetClientSize(*args
, **kw
)
4066 base_DoGetClientSize
= wx
._deprecated
(base_DoGetClientSize
,
4067 "Please use PyScrolledWindow.DoGetClientSize instead.")
4069 def base_DoGetPosition(*args
, **kw
):
4070 return PyScrolledWindow
.DoGetPosition(*args
, **kw
)
4071 base_DoGetPosition
= wx
._deprecated
(base_DoGetPosition
,
4072 "Please use PyScrolledWindow.DoGetPosition instead.")
4074 def base_DoGetVirtualSize(*args
, **kw
):
4075 return PyScrolledWindow
.DoGetVirtualSize(*args
, **kw
)
4076 base_DoGetVirtualSize
= wx
._deprecated
(base_DoGetVirtualSize
,
4077 "Please use PyScrolledWindow.DoGetVirtualSize instead.")
4079 def base_DoGetBestSize(*args
, **kw
):
4080 return PyScrolledWindow
.DoGetBestSize(*args
, **kw
)
4081 base_DoGetBestSize
= wx
._deprecated
(base_DoGetBestSize
,
4082 "Please use PyScrolledWindow.DoGetBestSize instead.")
4084 def base_InitDialog(*args
, **kw
):
4085 return PyScrolledWindow
.InitDialog(*args
, **kw
)
4086 base_InitDialog
= wx
._deprecated
(base_InitDialog
,
4087 "Please use PyScrolledWindow.InitDialog instead.")
4089 def base_TransferDataToWindow(*args
, **kw
):
4090 return PyScrolledWindow
.TransferDataToWindow(*args
, **kw
)
4091 base_TransferDataToWindow
= wx
._deprecated
(base_TransferDataToWindow
,
4092 "Please use PyScrolledWindow.TransferDataToWindow instead.")
4094 def base_TransferDataFromWindow(*args
, **kw
):
4095 return PyScrolledWindow
.TransferDataFromWindow(*args
, **kw
)
4096 base_TransferDataFromWindow
= wx
._deprecated
(base_TransferDataFromWindow
,
4097 "Please use PyScrolledWindow.TransferDataFromWindow instead.")
4099 def base_Validate(*args
, **kw
):
4100 return PyScrolledWindow
.Validate(*args
, **kw
)
4101 base_Validate
= wx
._deprecated
(base_Validate
,
4102 "Please use PyScrolledWindow.Validate instead.")
4104 def base_AcceptsFocus(*args
, **kw
):
4105 return PyScrolledWindow
.AcceptsFocus(*args
, **kw
)
4106 base_AcceptsFocus
= wx
._deprecated
(base_AcceptsFocus
,
4107 "Please use PyScrolledWindow.AcceptsFocus instead.")
4109 def base_AcceptsFocusFromKeyboard(*args
, **kw
):
4110 return PyScrolledWindow
.AcceptsFocusFromKeyboard(*args
, **kw
)
4111 base_AcceptsFocusFromKeyboard
= wx
._deprecated
(base_AcceptsFocusFromKeyboard
,
4112 "Please use PyScrolledWindow.AcceptsFocusFromKeyboard instead.")
4114 def base_GetMaxSize(*args
, **kw
):
4115 return PyScrolledWindow
.GetMaxSize(*args
, **kw
)
4116 base_GetMaxSize
= wx
._deprecated
(base_GetMaxSize
,
4117 "Please use PyScrolledWindow.GetMaxSize instead.")
4119 def base_AddChild(*args
, **kw
):
4120 return PyScrolledWindow
.AddChild(*args
, **kw
)
4121 base_AddChild
= wx
._deprecated
(base_AddChild
,
4122 "Please use PyScrolledWindow.AddChild instead.")
4124 def base_RemoveChild(*args
, **kw
):
4125 return PyScrolledWindow
.RemoveChild(*args
, **kw
)
4126 base_RemoveChild
= wx
._deprecated
(base_RemoveChild
,
4127 "Please use PyScrolledWindow.RemoveChild instead.")
4129 def base_ShouldInheritColours(*args
, **kw
):
4130 return PyScrolledWindow
.ShouldInheritColours(*args
, **kw
)
4131 base_ShouldInheritColours
= wx
._deprecated
(base_ShouldInheritColours
,
4132 "Please use PyScrolledWindow.ShouldInheritColours instead.")
4134 def base_GetDefaultAttributes(*args
, **kw
):
4135 return PyScrolledWindow
.GetDefaultAttributes(*args
, **kw
)
4136 base_GetDefaultAttributes
= wx
._deprecated
(base_GetDefaultAttributes
,
4137 "Please use PyScrolledWindow.GetDefaultAttributes instead.")
4139 def base_OnInternalIdle(*args
, **kw
):
4140 return PyScrolledWindow
.OnInternalIdle(*args
, **kw
)
4141 base_OnInternalIdle
= wx
._deprecated
(base_OnInternalIdle
,
4142 "Please use PyScrolledWindow.OnInternalIdle instead.")
4144 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindow
)
4146 def PrePyScrolledWindow(*args
, **kwargs
):
4147 """PrePyScrolledWindow() -> PyScrolledWindow"""
4148 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
4151 #---------------------------------------------------------------------------
4153 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
4154 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
4155 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
4156 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
4157 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
4158 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
4159 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
4160 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
4161 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
4162 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
4163 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
4164 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
4165 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
4166 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
4167 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
4168 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
4169 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
4170 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
4171 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
4172 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
4173 class PrintData(_core
.Object
):
4174 """Proxy of C++ PrintData class"""
4175 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4176 __repr__
= _swig_repr
4177 def __init__(self
, *args
):
4179 __init__(self) -> PrintData
4180 __init__(self, PrintData data) -> PrintData
4182 _windows_
.PrintData_swiginit(self
,_windows_
.new_PrintData(*args
))
4183 __swig_destroy__
= _windows_
.delete_PrintData
4184 __del__
= lambda self
: None;
4185 def GetNoCopies(*args
, **kwargs
):
4186 """GetNoCopies(self) -> int"""
4187 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
4189 def GetCollate(*args
, **kwargs
):
4190 """GetCollate(self) -> bool"""
4191 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
4193 def GetOrientation(*args
, **kwargs
):
4194 """GetOrientation(self) -> int"""
4195 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
4197 def IsOrientationReversed(*args
, **kwargs
):
4198 """IsOrientationReversed(self) -> bool"""
4199 return _windows_
.PrintData_IsOrientationReversed(*args
, **kwargs
)
4201 def IsOk(*args
, **kwargs
):
4202 """IsOk(self) -> bool"""
4203 return _windows_
.PrintData_IsOk(*args
, **kwargs
)
4206 def GetPrinterName(*args
, **kwargs
):
4207 """GetPrinterName(self) -> String"""
4208 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
4210 def GetColour(*args
, **kwargs
):
4211 """GetColour(self) -> bool"""
4212 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
4214 def GetDuplex(*args
, **kwargs
):
4215 """GetDuplex(self) -> int"""
4216 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
4218 def GetPaperId(*args
, **kwargs
):
4219 """GetPaperId(self) -> int"""
4220 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
4222 def GetPaperSize(*args
, **kwargs
):
4223 """GetPaperSize(self) -> Size"""
4224 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
4226 def GetQuality(*args
, **kwargs
):
4227 """GetQuality(self) -> int"""
4228 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
4230 def GetBin(*args
, **kwargs
):
4231 """GetBin(self) -> int"""
4232 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
4234 def GetPrintMode(*args
, **kwargs
):
4235 """GetPrintMode(self) -> int"""
4236 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
4238 def GetMedia(*args
, **kwargs
):
4239 """GetMedia(self) -> int"""
4240 return _windows_
.PrintData_GetMedia(*args
, **kwargs
)
4242 def SetNoCopies(*args
, **kwargs
):
4243 """SetNoCopies(self, int v)"""
4244 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
4246 def SetCollate(*args
, **kwargs
):
4247 """SetCollate(self, bool flag)"""
4248 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
4250 def SetOrientation(*args
, **kwargs
):
4251 """SetOrientation(self, int orient)"""
4252 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
4254 def SetOrientationReversed(*args
, **kwargs
):
4255 """SetOrientationReversed(self, bool reversed)"""
4256 return _windows_
.PrintData_SetOrientationReversed(*args
, **kwargs
)
4258 def SetPrinterName(*args
, **kwargs
):
4259 """SetPrinterName(self, String name)"""
4260 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
4262 def SetColour(*args
, **kwargs
):
4263 """SetColour(self, bool colour)"""
4264 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
4266 def SetDuplex(*args
, **kwargs
):
4267 """SetDuplex(self, int duplex)"""
4268 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
4270 def SetPaperId(*args
, **kwargs
):
4271 """SetPaperId(self, int sizeId)"""
4272 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
4274 def SetPaperSize(*args
, **kwargs
):
4275 """SetPaperSize(self, Size sz)"""
4276 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
4278 def SetQuality(*args
, **kwargs
):
4279 """SetQuality(self, int quality)"""
4280 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
4282 def SetBin(*args
, **kwargs
):
4283 """SetBin(self, int bin)"""
4284 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
4286 def SetPrintMode(*args
, **kwargs
):
4287 """SetPrintMode(self, int printMode)"""
4288 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
4290 def SetMedia(*args
, **kwargs
):
4291 """SetMedia(self, int media)"""
4292 return _windows_
.PrintData_SetMedia(*args
, **kwargs
)
4294 def GetFilename(*args
, **kwargs
):
4295 """GetFilename(self) -> String"""
4296 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
4298 def SetFilename(*args
, **kwargs
):
4299 """SetFilename(self, String filename)"""
4300 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
4302 def __nonzero__(self
): return self
.IsOk()
4303 def GetPrivData(*args
, **kwargs
):
4304 """GetPrivData(self) -> PyObject"""
4305 return _windows_
.PrintData_GetPrivData(*args
, **kwargs
)
4307 def SetPrivData(*args
, **kwargs
):
4308 """SetPrivData(self, PyObject data)"""
4309 return _windows_
.PrintData_SetPrivData(*args
, **kwargs
)
4311 Bin
= property(GetBin
,SetBin
,doc
="See `GetBin` and `SetBin`")
4312 Collate
= property(GetCollate
,SetCollate
,doc
="See `GetCollate` and `SetCollate`")
4313 Colour
= property(GetColour
,SetColour
,doc
="See `GetColour` and `SetColour`")
4314 Duplex
= property(GetDuplex
,SetDuplex
,doc
="See `GetDuplex` and `SetDuplex`")
4315 Filename
= property(GetFilename
,SetFilename
,doc
="See `GetFilename` and `SetFilename`")
4316 NoCopies
= property(GetNoCopies
,SetNoCopies
,doc
="See `GetNoCopies` and `SetNoCopies`")
4317 Orientation
= property(GetOrientation
,SetOrientation
,doc
="See `GetOrientation` and `SetOrientation`")
4318 PaperId
= property(GetPaperId
,SetPaperId
,doc
="See `GetPaperId` and `SetPaperId`")
4319 PaperSize
= property(GetPaperSize
,SetPaperSize
,doc
="See `GetPaperSize` and `SetPaperSize`")
4320 PrintMode
= property(GetPrintMode
,SetPrintMode
,doc
="See `GetPrintMode` and `SetPrintMode`")
4321 PrinterName
= property(GetPrinterName
,SetPrinterName
,doc
="See `GetPrinterName` and `SetPrinterName`")
4322 PrivData
= property(GetPrivData
,SetPrivData
,doc
="See `GetPrivData` and `SetPrivData`")
4323 Quality
= property(GetQuality
,SetQuality
,doc
="See `GetQuality` and `SetQuality`")
4324 _windows_
.PrintData_swigregister(PrintData
)
4325 PrintoutTitleStr
= cvar
.PrintoutTitleStr
4326 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
4328 class PageSetupDialogData(_core
.Object
):
4329 """Proxy of C++ PageSetupDialogData class"""
4330 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4331 __repr__
= _swig_repr
4332 def __init__(self
, *args
):
4334 __init__(self) -> PageSetupDialogData
4335 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
4336 __init__(self, PrintData data) -> PageSetupDialogData
4338 _windows_
.PageSetupDialogData_swiginit(self
,_windows_
.new_PageSetupDialogData(*args
))
4339 __swig_destroy__
= _windows_
.delete_PageSetupDialogData
4340 __del__
= lambda self
: None;
4341 def EnableHelp(*args
, **kwargs
):
4342 """EnableHelp(self, bool flag)"""
4343 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
4345 def EnableMargins(*args
, **kwargs
):
4346 """EnableMargins(self, bool flag)"""
4347 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
4349 def EnableOrientation(*args
, **kwargs
):
4350 """EnableOrientation(self, bool flag)"""
4351 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
4353 def EnablePaper(*args
, **kwargs
):
4354 """EnablePaper(self, bool flag)"""
4355 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
4357 def EnablePrinter(*args
, **kwargs
):
4358 """EnablePrinter(self, bool flag)"""
4359 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
4361 def GetDefaultMinMargins(*args
, **kwargs
):
4362 """GetDefaultMinMargins(self) -> bool"""
4363 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
4365 def GetEnableMargins(*args
, **kwargs
):
4366 """GetEnableMargins(self) -> bool"""
4367 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
4369 def GetEnableOrientation(*args
, **kwargs
):
4370 """GetEnableOrientation(self) -> bool"""
4371 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4373 def GetEnablePaper(*args
, **kwargs
):
4374 """GetEnablePaper(self) -> bool"""
4375 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4377 def GetEnablePrinter(*args
, **kwargs
):
4378 """GetEnablePrinter(self) -> bool"""
4379 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4381 def GetEnableHelp(*args
, **kwargs
):
4382 """GetEnableHelp(self) -> bool"""
4383 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4385 def GetDefaultInfo(*args
, **kwargs
):
4386 """GetDefaultInfo(self) -> bool"""
4387 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4389 def GetMarginTopLeft(*args
, **kwargs
):
4390 """GetMarginTopLeft(self) -> Point"""
4391 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4393 def GetMarginBottomRight(*args
, **kwargs
):
4394 """GetMarginBottomRight(self) -> Point"""
4395 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4397 def GetMinMarginTopLeft(*args
, **kwargs
):
4398 """GetMinMarginTopLeft(self) -> Point"""
4399 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4401 def GetMinMarginBottomRight(*args
, **kwargs
):
4402 """GetMinMarginBottomRight(self) -> Point"""
4403 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4405 def GetPaperId(*args
, **kwargs
):
4406 """GetPaperId(self) -> int"""
4407 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4409 def GetPaperSize(*args
, **kwargs
):
4410 """GetPaperSize(self) -> Size"""
4411 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4413 def GetPrintData(*args
, **kwargs
):
4414 """GetPrintData(self) -> PrintData"""
4415 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4417 def IsOk(*args
, **kwargs
):
4418 """IsOk(self) -> bool"""
4419 return _windows_
.PageSetupDialogData_IsOk(*args
, **kwargs
)
4422 def SetDefaultInfo(*args
, **kwargs
):
4423 """SetDefaultInfo(self, bool flag)"""
4424 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4426 def SetDefaultMinMargins(*args
, **kwargs
):
4427 """SetDefaultMinMargins(self, bool flag)"""
4428 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4430 def SetMarginTopLeft(*args
, **kwargs
):
4431 """SetMarginTopLeft(self, Point pt)"""
4432 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4434 def SetMarginBottomRight(*args
, **kwargs
):
4435 """SetMarginBottomRight(self, Point pt)"""
4436 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4438 def SetMinMarginTopLeft(*args
, **kwargs
):
4439 """SetMinMarginTopLeft(self, Point pt)"""
4440 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4442 def SetMinMarginBottomRight(*args
, **kwargs
):
4443 """SetMinMarginBottomRight(self, Point pt)"""
4444 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4446 def SetPaperId(*args
, **kwargs
):
4447 """SetPaperId(self, int id)"""
4448 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4450 def SetPaperSize(*args
, **kwargs
):
4451 """SetPaperSize(self, Size size)"""
4452 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4454 def SetPrintData(*args
, **kwargs
):
4455 """SetPrintData(self, PrintData printData)"""
4456 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4458 def CalculateIdFromPaperSize(*args
, **kwargs
):
4459 """CalculateIdFromPaperSize(self)"""
4460 return _windows_
.PageSetupDialogData_CalculateIdFromPaperSize(*args
, **kwargs
)
4462 def CalculatePaperSizeFromId(*args
, **kwargs
):
4463 """CalculatePaperSizeFromId(self)"""
4464 return _windows_
.PageSetupDialogData_CalculatePaperSizeFromId(*args
, **kwargs
)
4466 def __nonzero__(self
): return self
.IsOk()
4467 DefaultInfo
= property(GetDefaultInfo
,SetDefaultInfo
,doc
="See `GetDefaultInfo` and `SetDefaultInfo`")
4468 DefaultMinMargins
= property(GetDefaultMinMargins
,SetDefaultMinMargins
,doc
="See `GetDefaultMinMargins` and `SetDefaultMinMargins`")
4469 MarginBottomRight
= property(GetMarginBottomRight
,SetMarginBottomRight
,doc
="See `GetMarginBottomRight` and `SetMarginBottomRight`")
4470 MarginTopLeft
= property(GetMarginTopLeft
,SetMarginTopLeft
,doc
="See `GetMarginTopLeft` and `SetMarginTopLeft`")
4471 MinMarginBottomRight
= property(GetMinMarginBottomRight
,SetMinMarginBottomRight
,doc
="See `GetMinMarginBottomRight` and `SetMinMarginBottomRight`")
4472 MinMarginTopLeft
= property(GetMinMarginTopLeft
,SetMinMarginTopLeft
,doc
="See `GetMinMarginTopLeft` and `SetMinMarginTopLeft`")
4473 PaperId
= property(GetPaperId
,SetPaperId
,doc
="See `GetPaperId` and `SetPaperId`")
4474 PaperSize
= property(GetPaperSize
,SetPaperSize
,doc
="See `GetPaperSize` and `SetPaperSize`")
4475 PrintData
= property(GetPrintData
,SetPrintData
,doc
="See `GetPrintData` and `SetPrintData`")
4476 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogData
)
4478 class PageSetupDialog(_core
.Object
):
4479 """Proxy of C++ PageSetupDialog class"""
4480 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4481 __repr__
= _swig_repr
4482 def __init__(self
, *args
, **kwargs
):
4483 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4484 _windows_
.PageSetupDialog_swiginit(self
,_windows_
.new_PageSetupDialog(*args
, **kwargs
))
4485 __swig_destroy__
= _windows_
.delete_PageSetupDialog
4486 __del__
= lambda self
: None;
4487 def GetPageSetupData(*args
, **kwargs
):
4488 """GetPageSetupData(self) -> PageSetupDialogData"""
4489 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4491 def GetPageSetupDialogData(*args
, **kwargs
):
4492 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4493 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4495 def ShowModal(*args
, **kwargs
):
4496 """ShowModal(self) -> int"""
4497 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4499 def Destroy(self
): pass
4500 PageSetupData
= property(GetPageSetupData
,doc
="See `GetPageSetupData`")
4501 PageSetupDialogData
= property(GetPageSetupDialogData
,doc
="See `GetPageSetupDialogData`")
4502 _windows_
.PageSetupDialog_swigregister(PageSetupDialog
)
4504 class PrintDialogData(_core
.Object
):
4505 """Proxy of C++ PrintDialogData class"""
4506 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4507 __repr__
= _swig_repr
4508 def __init__(self
, *args
):
4510 __init__(self) -> PrintDialogData
4511 __init__(self, PrintData printData) -> PrintDialogData
4512 __init__(self, PrintDialogData printData) -> PrintDialogData
4514 _windows_
.PrintDialogData_swiginit(self
,_windows_
.new_PrintDialogData(*args
))
4515 __swig_destroy__
= _windows_
.delete_PrintDialogData
4516 __del__
= lambda self
: None;
4517 def GetFromPage(*args
, **kwargs
):
4518 """GetFromPage(self) -> int"""
4519 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4521 def GetToPage(*args
, **kwargs
):
4522 """GetToPage(self) -> int"""
4523 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4525 def GetMinPage(*args
, **kwargs
):
4526 """GetMinPage(self) -> int"""
4527 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4529 def GetMaxPage(*args
, **kwargs
):
4530 """GetMaxPage(self) -> int"""
4531 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4533 def GetNoCopies(*args
, **kwargs
):
4534 """GetNoCopies(self) -> int"""
4535 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4537 def GetAllPages(*args
, **kwargs
):
4538 """GetAllPages(self) -> bool"""
4539 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4541 def GetSelection(*args
, **kwargs
):
4542 """GetSelection(self) -> bool"""
4543 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4545 def GetCollate(*args
, **kwargs
):
4546 """GetCollate(self) -> bool"""
4547 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4549 def GetPrintToFile(*args
, **kwargs
):
4550 """GetPrintToFile(self) -> bool"""
4551 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4553 def SetFromPage(*args
, **kwargs
):
4554 """SetFromPage(self, int v)"""
4555 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4557 def SetToPage(*args
, **kwargs
):
4558 """SetToPage(self, int v)"""
4559 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4561 def SetMinPage(*args
, **kwargs
):
4562 """SetMinPage(self, int v)"""
4563 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4565 def SetMaxPage(*args
, **kwargs
):
4566 """SetMaxPage(self, int v)"""
4567 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4569 def SetNoCopies(*args
, **kwargs
):
4570 """SetNoCopies(self, int v)"""
4571 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4573 def SetAllPages(*args
, **kwargs
):
4574 """SetAllPages(self, bool flag)"""
4575 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4577 def SetSelection(*args
, **kwargs
):
4578 """SetSelection(self, bool flag)"""
4579 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4581 def SetCollate(*args
, **kwargs
):
4582 """SetCollate(self, bool flag)"""
4583 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4585 def SetPrintToFile(*args
, **kwargs
):
4586 """SetPrintToFile(self, bool flag)"""
4587 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4589 def EnablePrintToFile(*args
, **kwargs
):
4590 """EnablePrintToFile(self, bool flag)"""
4591 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4593 def EnableSelection(*args
, **kwargs
):
4594 """EnableSelection(self, bool flag)"""
4595 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4597 def EnablePageNumbers(*args
, **kwargs
):
4598 """EnablePageNumbers(self, bool flag)"""
4599 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4601 def EnableHelp(*args
, **kwargs
):
4602 """EnableHelp(self, bool flag)"""
4603 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4605 def GetEnablePrintToFile(*args
, **kwargs
):
4606 """GetEnablePrintToFile(self) -> bool"""
4607 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4609 def GetEnableSelection(*args
, **kwargs
):
4610 """GetEnableSelection(self) -> bool"""
4611 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4613 def GetEnablePageNumbers(*args
, **kwargs
):
4614 """GetEnablePageNumbers(self) -> bool"""
4615 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4617 def GetEnableHelp(*args
, **kwargs
):
4618 """GetEnableHelp(self) -> bool"""
4619 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4621 def IsOk(*args
, **kwargs
):
4622 """IsOk(self) -> bool"""
4623 return _windows_
.PrintDialogData_IsOk(*args
, **kwargs
)
4626 def GetPrintData(*args
, **kwargs
):
4627 """GetPrintData(self) -> PrintData"""
4628 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4630 def SetPrintData(*args
, **kwargs
):
4631 """SetPrintData(self, PrintData printData)"""
4632 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4634 def __nonzero__(self
): return self
.IsOk()
4635 AllPages
= property(GetAllPages
,SetAllPages
,doc
="See `GetAllPages` and `SetAllPages`")
4636 Collate
= property(GetCollate
,SetCollate
,doc
="See `GetCollate` and `SetCollate`")
4637 FromPage
= property(GetFromPage
,SetFromPage
,doc
="See `GetFromPage` and `SetFromPage`")
4638 MaxPage
= property(GetMaxPage
,SetMaxPage
,doc
="See `GetMaxPage` and `SetMaxPage`")
4639 MinPage
= property(GetMinPage
,SetMinPage
,doc
="See `GetMinPage` and `SetMinPage`")
4640 NoCopies
= property(GetNoCopies
,SetNoCopies
,doc
="See `GetNoCopies` and `SetNoCopies`")
4641 PrintData
= property(GetPrintData
,SetPrintData
,doc
="See `GetPrintData` and `SetPrintData`")
4642 PrintToFile
= property(GetPrintToFile
,SetPrintToFile
,doc
="See `GetPrintToFile` and `SetPrintToFile`")
4643 Selection
= property(GetSelection
,SetSelection
,doc
="See `GetSelection` and `SetSelection`")
4644 ToPage
= property(GetToPage
,SetToPage
,doc
="See `GetToPage` and `SetToPage`")
4645 _windows_
.PrintDialogData_swigregister(PrintDialogData
)
4647 class PrintDialog(_core
.Object
):
4648 """Proxy of C++ PrintDialog class"""
4649 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4650 __repr__
= _swig_repr
4651 def __init__(self
, *args
, **kwargs
):
4652 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4653 _windows_
.PrintDialog_swiginit(self
,_windows_
.new_PrintDialog(*args
, **kwargs
))
4654 __swig_destroy__
= _windows_
.delete_PrintDialog
4655 __del__
= lambda self
: None;
4656 def ShowModal(*args
, **kwargs
):
4657 """ShowModal(self) -> int"""
4658 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4660 def GetPrintDialogData(*args
, **kwargs
):
4661 """GetPrintDialogData(self) -> PrintDialogData"""
4662 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4664 def GetPrintData(*args
, **kwargs
):
4665 """GetPrintData(self) -> PrintData"""
4666 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4668 def GetPrintDC(*args
, **kwargs
):
4669 """GetPrintDC(self) -> DC"""
4670 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4672 def Destroy(self
): pass
4673 PrintDC
= property(GetPrintDC
,doc
="See `GetPrintDC`")
4674 PrintData
= property(GetPrintData
,doc
="See `GetPrintData`")
4675 PrintDialogData
= property(GetPrintDialogData
,doc
="See `GetPrintDialogData`")
4676 _windows_
.PrintDialog_swigregister(PrintDialog
)
4678 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4679 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4680 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4681 class Printer(_core
.Object
):
4682 """Proxy of C++ Printer class"""
4683 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4684 __repr__
= _swig_repr
4685 def __init__(self
, *args
, **kwargs
):
4686 """__init__(self, PrintDialogData data=None) -> Printer"""
4687 _windows_
.Printer_swiginit(self
,_windows_
.new_Printer(*args
, **kwargs
))
4688 __swig_destroy__
= _windows_
.delete_Printer
4689 __del__
= lambda self
: None;
4690 def CreateAbortWindow(*args
, **kwargs
):
4691 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4692 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4694 def ReportError(*args
, **kwargs
):
4695 """ReportError(self, Window parent, Printout printout, String message)"""
4696 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4698 def Setup(*args
, **kwargs
):
4699 """Setup(self, Window parent) -> bool"""
4700 return _windows_
.Printer_Setup(*args
, **kwargs
)
4702 def Print(*args
, **kwargs
):
4703 """Print(self, Window parent, Printout printout, bool prompt=True) -> bool"""
4704 return _windows_
.Printer_Print(*args
, **kwargs
)
4706 def PrintDialog(*args
, **kwargs
):
4707 """PrintDialog(self, Window parent) -> DC"""
4708 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4710 def GetPrintDialogData(*args
, **kwargs
):
4711 """GetPrintDialogData(self) -> PrintDialogData"""
4712 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4714 def GetAbort(*args
, **kwargs
):
4715 """GetAbort(self) -> bool"""
4716 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4718 def GetLastError(*args
, **kwargs
):
4719 """GetLastError() -> int"""
4720 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4722 GetLastError
= staticmethod(GetLastError
)
4723 Abort
= property(GetAbort
,doc
="See `GetAbort`")
4724 PrintDialogData
= property(GetPrintDialogData
,doc
="See `GetPrintDialogData`")
4725 _windows_
.Printer_swigregister(Printer
)
4727 def Printer_GetLastError(*args
):
4728 """Printer_GetLastError() -> int"""
4729 return _windows_
.Printer_GetLastError(*args
)
4731 class Printout(_core
.Object
):
4732 """Proxy of C++ Printout class"""
4733 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4734 __repr__
= _swig_repr
4735 def __init__(self
, *args
, **kwargs
):
4736 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4737 _windows_
.Printout_swiginit(self
,_windows_
.new_Printout(*args
, **kwargs
))
4738 Printout
._setCallbackInfo
(self
, self
, Printout
)
4740 __swig_destroy__
= _windows_
.delete_Printout
4741 __del__
= lambda self
: None;
4742 def _setCallbackInfo(*args
, **kwargs
):
4743 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4744 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4746 def GetTitle(*args
, **kwargs
):
4747 """GetTitle(self) -> String"""
4748 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4750 def GetDC(*args
, **kwargs
):
4751 """GetDC(self) -> DC"""
4752 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4754 def SetDC(*args
, **kwargs
):
4755 """SetDC(self, DC dc)"""
4756 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4758 def FitThisSizeToPaper(*args
, **kwargs
):
4759 """FitThisSizeToPaper(self, Size imageSize)"""
4760 return _windows_
.Printout_FitThisSizeToPaper(*args
, **kwargs
)
4762 def FitThisSizeToPage(*args
, **kwargs
):
4763 """FitThisSizeToPage(self, Size imageSize)"""
4764 return _windows_
.Printout_FitThisSizeToPage(*args
, **kwargs
)
4766 def FitThisSizeToPageMargins(*args
, **kwargs
):
4767 """FitThisSizeToPageMargins(self, Size imageSize, PageSetupDialogData pageSetupData)"""
4768 return _windows_
.Printout_FitThisSizeToPageMargins(*args
, **kwargs
)
4770 def MapScreenSizeToPaper(*args
, **kwargs
):
4771 """MapScreenSizeToPaper(self)"""
4772 return _windows_
.Printout_MapScreenSizeToPaper(*args
, **kwargs
)
4774 def MapScreenSizeToPage(*args
, **kwargs
):
4775 """MapScreenSizeToPage(self)"""
4776 return _windows_
.Printout_MapScreenSizeToPage(*args
, **kwargs
)
4778 def MapScreenSizeToPageMargins(*args
, **kwargs
):
4779 """MapScreenSizeToPageMargins(self, PageSetupDialogData pageSetupData)"""
4780 return _windows_
.Printout_MapScreenSizeToPageMargins(*args
, **kwargs
)
4782 def MapScreenSizeToDevice(*args
, **kwargs
):
4783 """MapScreenSizeToDevice(self)"""
4784 return _windows_
.Printout_MapScreenSizeToDevice(*args
, **kwargs
)
4786 def GetLogicalPaperRect(*args
, **kwargs
):
4787 """GetLogicalPaperRect(self) -> Rect"""
4788 return _windows_
.Printout_GetLogicalPaperRect(*args
, **kwargs
)
4790 def GetLogicalPageRect(*args
, **kwargs
):
4791 """GetLogicalPageRect(self) -> Rect"""
4792 return _windows_
.Printout_GetLogicalPageRect(*args
, **kwargs
)
4794 def GetLogicalPageMarginsRect(*args
, **kwargs
):
4795 """GetLogicalPageMarginsRect(self, PageSetupDialogData pageSetupData) -> Rect"""
4796 return _windows_
.Printout_GetLogicalPageMarginsRect(*args
, **kwargs
)
4798 def SetLogicalOrigin(*args
, **kwargs
):
4799 """SetLogicalOrigin(self, int x, int y)"""
4800 return _windows_
.Printout_SetLogicalOrigin(*args
, **kwargs
)
4802 def OffsetLogicalOrigin(*args
, **kwargs
):
4803 """OffsetLogicalOrigin(self, int xoff, int yoff)"""
4804 return _windows_
.Printout_OffsetLogicalOrigin(*args
, **kwargs
)
4806 def SetPageSizePixels(*args
, **kwargs
):
4807 """SetPageSizePixels(self, int w, int h)"""
4808 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4810 def GetPageSizePixels(*args
, **kwargs
):
4811 """GetPageSizePixels() -> (w, h)"""
4812 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4814 def SetPageSizeMM(*args
, **kwargs
):
4815 """SetPageSizeMM(self, int w, int h)"""
4816 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4818 def GetPageSizeMM(*args
, **kwargs
):
4819 """GetPageSizeMM() -> (w, h)"""
4820 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4822 def SetPPIScreen(*args
, **kwargs
):
4823 """SetPPIScreen(self, int x, int y)"""
4824 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4826 def GetPPIScreen(*args
, **kwargs
):
4827 """GetPPIScreen() -> (x,y)"""
4828 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4830 def SetPPIPrinter(*args
, **kwargs
):
4831 """SetPPIPrinter(self, int x, int y)"""
4832 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4834 def GetPPIPrinter(*args
, **kwargs
):
4835 """GetPPIPrinter() -> (x,y)"""
4836 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4838 def SetPaperRectPixels(*args
, **kwargs
):
4839 """SetPaperRectPixels(self, Rect paperRectPixels)"""
4840 return _windows_
.Printout_SetPaperRectPixels(*args
, **kwargs
)
4842 def GetPaperRectPixels(*args
, **kwargs
):
4843 """GetPaperRectPixels(self) -> Rect"""
4844 return _windows_
.Printout_GetPaperRectPixels(*args
, **kwargs
)
4846 def IsPreview(*args
, **kwargs
):
4847 """IsPreview(self) -> bool"""
4848 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4850 def SetIsPreview(*args
, **kwargs
):
4851 """SetIsPreview(self, bool p)"""
4852 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4854 def OnBeginDocument(*args
, **kwargs
):
4855 """OnBeginDocument(self, int startPage, int endPage) -> bool"""
4856 return _windows_
.Printout_OnBeginDocument(*args
, **kwargs
)
4858 def OnEndDocument(*args
, **kwargs
):
4859 """OnEndDocument(self)"""
4860 return _windows_
.Printout_OnEndDocument(*args
, **kwargs
)
4862 def OnBeginPrinting(*args
, **kwargs
):
4863 """OnBeginPrinting(self)"""
4864 return _windows_
.Printout_OnBeginPrinting(*args
, **kwargs
)
4866 def OnEndPrinting(*args
, **kwargs
):
4867 """OnEndPrinting(self)"""
4868 return _windows_
.Printout_OnEndPrinting(*args
, **kwargs
)
4870 def OnPreparePrinting(*args
, **kwargs
):
4871 """OnPreparePrinting(self)"""
4872 return _windows_
.Printout_OnPreparePrinting(*args
, **kwargs
)
4874 def HasPage(*args
, **kwargs
):
4875 """HasPage(self, int page) -> bool"""
4876 return _windows_
.Printout_HasPage(*args
, **kwargs
)
4878 def GetPageInfo(*args
, **kwargs
):
4879 """GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4880 return _windows_
.Printout_GetPageInfo(*args
, **kwargs
)
4882 def base_OnBeginDocument(*args
, **kw
):
4883 return Printout
.OnBeginDocument(*args
, **kw
)
4884 base_OnBeginDocument
= wx
._deprecated
(base_OnBeginDocument
,
4885 "Please use Printout.OnBeginDocument instead.")
4887 def base_OnEndDocument(*args
, **kw
):
4888 return Printout
.OnEndDocument(*args
, **kw
)
4889 base_OnEndDocument
= wx
._deprecated
(base_OnEndDocument
,
4890 "Please use Printout.OnEndDocument instead.")
4892 def base_OnBeginPrinting(*args
, **kw
):
4893 return Printout
.OnBeginPrinting(*args
, **kw
)
4894 base_OnBeginPrinting
= wx
._deprecated
(base_OnBeginPrinting
,
4895 "Please use Printout.OnBeginPrinting instead.")
4897 def base_OnEndPrinting(*args
, **kw
):
4898 return Printout
.OnEndPrinting(*args
, **kw
)
4899 base_OnEndPrinting
= wx
._deprecated
(base_OnEndPrinting
,
4900 "Please use Printout.OnEndPrinting instead.")
4902 def base_OnPreparePrinting(*args
, **kw
):
4903 return Printout
.OnPreparePrinting(*args
, **kw
)
4904 base_OnPreparePrinting
= wx
._deprecated
(base_OnPreparePrinting
,
4905 "Please use Printout.OnPreparePrinting instead.")
4907 def base_GetPageInfo(*args
, **kw
):
4908 return Printout
.GetPageInfo(*args
, **kw
)
4909 base_GetPageInfo
= wx
._deprecated
(base_GetPageInfo
,
4910 "Please use Printout.GetPageInfo instead.")
4912 DC
= property(GetDC
,SetDC
,doc
="See `GetDC` and `SetDC`")
4913 PPIPrinter
= property(GetPPIPrinter
,SetPPIPrinter
,doc
="See `GetPPIPrinter` and `SetPPIPrinter`")
4914 PPIScreen
= property(GetPPIScreen
,SetPPIScreen
,doc
="See `GetPPIScreen` and `SetPPIScreen`")
4915 PageSizeMM
= property(GetPageSizeMM
,SetPageSizeMM
,doc
="See `GetPageSizeMM` and `SetPageSizeMM`")
4916 PageSizePixels
= property(GetPageSizePixels
,SetPageSizePixels
,doc
="See `GetPageSizePixels` and `SetPageSizePixels`")
4917 Title
= property(GetTitle
,doc
="See `GetTitle`")
4918 _windows_
.Printout_swigregister(Printout
)
4920 class PreviewCanvas(ScrolledWindow
):
4921 """Proxy of C++ PreviewCanvas class"""
4922 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4923 __repr__
= _swig_repr
4924 def __init__(self
, *args
, **kwargs
):
4926 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4927 Size size=DefaultSize, long style=0,
4928 String name=PreviewCanvasNameStr) -> PreviewCanvas
4930 _windows_
.PreviewCanvas_swiginit(self
,_windows_
.new_PreviewCanvas(*args
, **kwargs
))
4931 self
._setOORInfo
(self
)
4933 _windows_
.PreviewCanvas_swigregister(PreviewCanvas
)
4935 class PreviewFrame(Frame
):
4936 """Proxy of C++ PreviewFrame class"""
4937 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4938 __repr__
= _swig_repr
4939 def __init__(self
, *args
, **kwargs
):
4941 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4942 Size size=DefaultSize,
4943 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4945 _windows_
.PreviewFrame_swiginit(self
,_windows_
.new_PreviewFrame(*args
, **kwargs
))
4946 self
._setOORInfo
(self
)
4948 def Initialize(*args
, **kwargs
):
4949 """Initialize(self)"""
4950 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4952 def CreateControlBar(*args
, **kwargs
):
4953 """CreateControlBar(self)"""
4954 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4956 def CreateCanvas(*args
, **kwargs
):
4957 """CreateCanvas(self)"""
4958 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4960 def GetControlBar(*args
, **kwargs
):
4961 """GetControlBar(self) -> PreviewControlBar"""
4962 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4964 ControlBar
= property(GetControlBar
,doc
="See `GetControlBar`")
4965 _windows_
.PreviewFrame_swigregister(PreviewFrame
)
4967 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4968 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4969 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4970 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4971 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4972 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4973 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4974 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4975 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4976 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4977 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4978 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4979 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4980 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4981 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4982 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4983 class PreviewControlBar(Panel
):
4984 """Proxy of C++ PreviewControlBar class"""
4985 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
4986 __repr__
= _swig_repr
4987 def __init__(self
, *args
, **kwargs
):
4989 __init__(self, PrintPreview preview, long buttons, Window parent,
4990 Point pos=DefaultPosition, Size size=DefaultSize,
4991 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4993 _windows_
.PreviewControlBar_swiginit(self
,_windows_
.new_PreviewControlBar(*args
, **kwargs
))
4994 self
._setOORInfo
(self
)
4996 def GetZoomControl(*args
, **kwargs
):
4997 """GetZoomControl(self) -> int"""
4998 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
5000 def SetZoomControl(*args
, **kwargs
):
5001 """SetZoomControl(self, int zoom)"""
5002 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
5004 def GetPrintPreview(*args
, **kwargs
):
5005 """GetPrintPreview(self) -> PrintPreview"""
5006 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
5008 def OnNext(*args
, **kwargs
):
5010 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
5012 def OnPrevious(*args
, **kwargs
):
5013 """OnPrevious(self)"""
5014 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
5016 def OnFirst(*args
, **kwargs
):
5018 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
5020 def OnLast(*args
, **kwargs
):
5022 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
5024 def OnGoto(*args
, **kwargs
):
5026 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
5028 PrintPreview
= property(GetPrintPreview
,doc
="See `GetPrintPreview`")
5029 ZoomControl
= property(GetZoomControl
,SetZoomControl
,doc
="See `GetZoomControl` and `SetZoomControl`")
5030 _windows_
.PreviewControlBar_swigregister(PreviewControlBar
)
5032 class PrintPreview(_core
.Object
):
5033 """Proxy of C++ PrintPreview class"""
5034 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5035 __repr__
= _swig_repr
5036 def __init__(self
, *args
):
5038 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
5039 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
5041 _windows_
.PrintPreview_swiginit(self
,_windows_
.new_PrintPreview(*args
))
5042 __swig_destroy__
= _windows_
.delete_PrintPreview
5043 __del__
= lambda self
: None;
5044 def SetCurrentPage(*args
, **kwargs
):
5045 """SetCurrentPage(self, int pageNum) -> bool"""
5046 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
5048 def GetCurrentPage(*args
, **kwargs
):
5049 """GetCurrentPage(self) -> int"""
5050 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
5052 def SetPrintout(*args
, **kwargs
):
5053 """SetPrintout(self, Printout printout)"""
5054 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
5056 def GetPrintout(*args
, **kwargs
):
5057 """GetPrintout(self) -> Printout"""
5058 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
5060 def GetPrintoutForPrinting(*args
, **kwargs
):
5061 """GetPrintoutForPrinting(self) -> Printout"""
5062 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
5064 def SetFrame(*args
, **kwargs
):
5065 """SetFrame(self, Frame frame)"""
5066 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
5068 def SetCanvas(*args
, **kwargs
):
5069 """SetCanvas(self, PreviewCanvas canvas)"""
5070 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
5072 def GetFrame(*args
, **kwargs
):
5073 """GetFrame(self) -> Frame"""
5074 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
5076 def GetCanvas(*args
, **kwargs
):
5077 """GetCanvas(self) -> PreviewCanvas"""
5078 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
5080 def PaintPage(*args
, **kwargs
):
5081 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
5082 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
5084 def DrawBlankPage(*args
, **kwargs
):
5085 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
5086 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
5088 def RenderPage(*args
, **kwargs
):
5089 """RenderPage(self, int pageNum) -> bool"""
5090 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
5092 def AdjustScrollbars(*args
, **kwargs
):
5093 """AdjustScrollbars(self, PreviewCanvas canvas)"""
5094 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
5096 def GetPrintDialogData(*args
, **kwargs
):
5097 """GetPrintDialogData(self) -> PrintDialogData"""
5098 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
5100 def SetZoom(*args
, **kwargs
):
5101 """SetZoom(self, int percent)"""
5102 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
5104 def GetZoom(*args
, **kwargs
):
5105 """GetZoom(self) -> int"""
5106 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
5108 def GetMaxPage(*args
, **kwargs
):
5109 """GetMaxPage(self) -> int"""
5110 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
5112 def GetMinPage(*args
, **kwargs
):
5113 """GetMinPage(self) -> int"""
5114 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
5116 def IsOk(*args
, **kwargs
):
5117 """IsOk(self) -> bool"""
5118 return _windows_
.PrintPreview_IsOk(*args
, **kwargs
)
5121 def SetOk(*args
, **kwargs
):
5122 """SetOk(self, bool ok)"""
5123 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
5125 def Print(*args
, **kwargs
):
5126 """Print(self, bool interactive) -> bool"""
5127 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
5129 def DetermineScaling(*args
, **kwargs
):
5130 """DetermineScaling(self)"""
5131 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
5133 def __nonzero__(self
): return self
.IsOk()
5134 Canvas
= property(GetCanvas
,SetCanvas
,doc
="See `GetCanvas` and `SetCanvas`")
5135 CurrentPage
= property(GetCurrentPage
,SetCurrentPage
,doc
="See `GetCurrentPage` and `SetCurrentPage`")
5136 Frame
= property(GetFrame
,SetFrame
,doc
="See `GetFrame` and `SetFrame`")
5137 MaxPage
= property(GetMaxPage
,doc
="See `GetMaxPage`")
5138 MinPage
= property(GetMinPage
,doc
="See `GetMinPage`")
5139 PrintDialogData
= property(GetPrintDialogData
,doc
="See `GetPrintDialogData`")
5140 Printout
= property(GetPrintout
,SetPrintout
,doc
="See `GetPrintout` and `SetPrintout`")
5141 PrintoutForPrinting
= property(GetPrintoutForPrinting
,doc
="See `GetPrintoutForPrinting`")
5142 Zoom
= property(GetZoom
,SetZoom
,doc
="See `GetZoom` and `SetZoom`")
5143 _windows_
.PrintPreview_swigregister(PrintPreview
)
5145 class PyPrintPreview(PrintPreview
):
5146 """Proxy of C++ PyPrintPreview class"""
5147 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5148 __repr__
= _swig_repr
5149 def __init__(self
, *args
):
5151 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
5152 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
5154 _windows_
.PyPrintPreview_swiginit(self
,_windows_
.new_PyPrintPreview(*args
))
5155 PyPrintPreview
._setCallbackInfo
(self
, self
, PyPrintPreview
)
5157 def _setCallbackInfo(*args
, **kwargs
):
5158 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5159 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
5161 def base_SetCurrentPage(*args
, **kw
):
5162 return PyPrintPreview
.SetCurrentPage(*args
, **kw
)
5163 base_SetCurrentPage
= wx
._deprecated
(base_SetCurrentPage
,
5164 "Please use PyPrintPreview.SetCurrentPage instead.")
5166 def base_PaintPage(*args
, **kw
):
5167 return PyPrintPreview
.PaintPage(*args
, **kw
)
5168 base_PaintPage
= wx
._deprecated
(base_PaintPage
,
5169 "Please use PyPrintPreview.PaintPage instead.")
5171 def base_DrawBlankPage(*args
, **kw
):
5172 return PyPrintPreview
.DrawBlankPage(*args
, **kw
)
5173 base_DrawBlankPage
= wx
._deprecated
(base_DrawBlankPage
,
5174 "Please use PyPrintPreview.DrawBlankPage instead.")
5176 def base_RenderPage(*args
, **kw
):
5177 return PyPrintPreview
.RenderPage(*args
, **kw
)
5178 base_RenderPage
= wx
._deprecated
(base_RenderPage
,
5179 "Please use PyPrintPreview.RenderPage instead.")
5181 def base_SetZoom(*args
, **kw
):
5182 return PyPrintPreview
.SetZoom(*args
, **kw
)
5183 base_SetZoom
= wx
._deprecated
(base_SetZoom
,
5184 "Please use PyPrintPreview.SetZoom instead.")
5186 def base_Print(*args
, **kw
):
5187 return PyPrintPreview
.Print(*args
, **kw
)
5188 base_Print
= wx
._deprecated
(base_Print
,
5189 "Please use PyPrintPreview.Print instead.")
5191 def base_DetermineScaling(*args
, **kw
):
5192 return PyPrintPreview
.DetermineScaling(*args
, **kw
)
5193 base_DetermineScaling
= wx
._deprecated
(base_DetermineScaling
,
5194 "Please use PyPrintPreview.DetermineScaling instead.")
5196 _windows_
.PyPrintPreview_swigregister(PyPrintPreview
)
5198 class PyPreviewFrame(PreviewFrame
):
5199 """Proxy of C++ PyPreviewFrame class"""
5200 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5201 __repr__
= _swig_repr
5202 def __init__(self
, *args
, **kwargs
):
5204 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
5205 Size size=DefaultSize,
5206 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
5208 _windows_
.PyPreviewFrame_swiginit(self
,_windows_
.new_PyPreviewFrame(*args
, **kwargs
))
5209 self
._setOORInfo
(self
);PyPreviewFrame
._setCallbackInfo
(self
, self
, PyPreviewFrame
)
5211 def _setCallbackInfo(*args
, **kwargs
):
5212 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5213 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
5215 def SetPreviewCanvas(*args
, **kwargs
):
5216 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
5217 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
5219 def SetControlBar(*args
, **kwargs
):
5220 """SetControlBar(self, PreviewControlBar bar)"""
5221 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
5223 def Initialize(*args
, **kwargs
):
5224 """Initialize(self)"""
5225 return _windows_
.PyPreviewFrame_Initialize(*args
, **kwargs
)
5227 def CreateCanvas(*args
, **kwargs
):
5228 """CreateCanvas(self)"""
5229 return _windows_
.PyPreviewFrame_CreateCanvas(*args
, **kwargs
)
5231 def CreateControlBar(*args
, **kwargs
):
5232 """CreateControlBar(self)"""
5233 return _windows_
.PyPreviewFrame_CreateControlBar(*args
, **kwargs
)
5235 def base_Initialize(*args
, **kw
):
5236 return PyPreviewFrame
.Initialize(*args
, **kw
)
5237 base_Initialize
= wx
._deprecated
(base_Initialize
,
5238 "Please use PyPreviewFrame.Initialize instead.")
5240 def base_CreateCanvas(*args
, **kw
):
5241 return PyPreviewFrame
.CreateCanvas(*args
, **kw
)
5242 base_CreateCanvas
= wx
._deprecated
(base_CreateCanvas
,
5243 "Please use PyPreviewFrame.CreateCanvas instead.")
5245 def base_CreateControlBar(*args
, **kw
):
5246 return PyPreviewFrame
.CreateControlBar(*args
, **kw
)
5247 base_CreateControlBar
= wx
._deprecated
(base_CreateControlBar
,
5248 "Please use PyPreviewFrame.CreateControlBar instead.")
5250 _windows_
.PyPreviewFrame_swigregister(PyPreviewFrame
)
5252 class PyPreviewControlBar(PreviewControlBar
):
5253 """Proxy of C++ PyPreviewControlBar class"""
5254 thisown
= property(lambda x
: x
.this
.own(), lambda x
, v
: x
.this
.own(v
), doc
='The membership flag')
5255 __repr__
= _swig_repr
5256 def __init__(self
, *args
, **kwargs
):
5258 __init__(self, PrintPreview preview, long buttons, Window parent,
5259 Point pos=DefaultPosition, Size size=DefaultSize,
5260 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
5262 _windows_
.PyPreviewControlBar_swiginit(self
,_windows_
.new_PyPreviewControlBar(*args
, **kwargs
))
5263 self
._setOORInfo
(self
);PyPreviewControlBar
._setCallbackInfo
(self
, self
, PyPreviewControlBar
)
5265 def _setCallbackInfo(*args
, **kwargs
):
5266 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
5267 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
5269 def SetPrintPreview(*args
, **kwargs
):
5270 """SetPrintPreview(self, PrintPreview preview)"""
5271 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
5273 def CreateButtons(*args
, **kwargs
):
5274 """CreateButtons(self)"""
5275 return _windows_
.PyPreviewControlBar_CreateButtons(*args
, **kwargs
)
5277 def SetZoomControl(*args
, **kwargs
):
5278 """SetZoomControl(self, int zoom)"""
5279 return _windows_
.PyPreviewControlBar_SetZoomControl(*args
, **kwargs
)
5281 def base_CreateButtons(*args
, **kw
):
5282 return PreviewControlBar
.CreateButtons(*args
, **kw
)
5283 base_CreateButtons
= wx
._deprecated
(base_CreateButtons
,
5284 "Please use PreviewControlBar.CreateButtons instead.")
5286 def base_SetZoomControl(*args
, **kw
):
5287 return PreviewControlBar
.SetZoomControl(*args
, **kw
)
5288 base_SetZoomControl
= wx
._deprecated
(base_SetZoomControl
,
5289 "Please use PreviewControlBar.SetZoomControl instead.")
5291 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBar
)