1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 class Panel(_core
.Window
):
12 return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
13 def __init__(self
, *args
, **kwargs
):
15 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
16 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
17 String name=PanelNameStr) -> Panel
19 newobj
= _windows_
.new_Panel(*args
, **kwargs
)
20 self
.this
= newobj
.this
23 self
._setOORInfo
(self
)
25 def Create(*args
, **kwargs
):
27 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
28 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
29 String name=PanelNameStr) -> bool
31 return _windows_
.Panel_Create(*args
, **kwargs
)
33 def InitDialog(*args
, **kwargs
):
37 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
38 to the dialog via validators.
40 return _windows_
.Panel_InitDialog(*args
, **kwargs
)
42 def GetClassDefaultAttributes(*args
, **kwargs
):
44 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
46 Get the default attributes for this class. This is useful if you want
47 to use the same font or colour in your own control as in a standard
48 control -- which is a much better idea than hard coding specific
49 colours or fonts which might look completely out of place on the
50 user's system, especially if it uses themes.
52 The variant parameter is only relevant under Mac currently and is
53 ignore under other platforms. Under Mac, it will change the size of
54 the returned font. See `wx.Window.SetWindowVariant` for more about
57 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
59 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
61 class PanelPtr(Panel
):
62 def __init__(self
, this
):
64 if not hasattr(self
,"thisown"): self
.thisown
= 0
65 self
.__class
__ = Panel
66 _windows_
.Panel_swigregister(PanelPtr
)
68 def PrePanel(*args
, **kwargs
):
69 """PrePanel() -> Panel"""
70 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
74 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
76 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
78 Get the default attributes for this class. This is useful if you want
79 to use the same font or colour in your own control as in a standard
80 control -- which is a much better idea than hard coding specific
81 colours or fonts which might look completely out of place on the
82 user's system, especially if it uses themes.
84 The variant parameter is only relevant under Mac currently and is
85 ignore under other platforms. Under Mac, it will change the size of
86 the returned font. See `wx.Window.SetWindowVariant` for more about
89 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
91 #---------------------------------------------------------------------------
93 class ScrolledWindow(Panel
):
95 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
96 def __init__(self
, *args
, **kwargs
):
98 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
99 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
100 String name=PanelNameStr) -> ScrolledWindow
102 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
103 self
.this
= newobj
.this
106 self
._setOORInfo
(self
)
108 def Create(*args
, **kwargs
):
110 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
111 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
112 String name=PanelNameStr) -> bool
114 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
116 def SetScrollbars(*args
, **kwargs
):
118 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
119 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
121 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
123 def Scroll(*args
, **kwargs
):
124 """Scroll(self, int x, int y)"""
125 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
127 def GetScrollPageSize(*args
, **kwargs
):
128 """GetScrollPageSize(self, int orient) -> int"""
129 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
131 def SetScrollPageSize(*args
, **kwargs
):
132 """SetScrollPageSize(self, int orient, int pageSize)"""
133 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
135 def SetScrollRate(*args
, **kwargs
):
136 """SetScrollRate(self, int xstep, int ystep)"""
137 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
139 def GetScrollPixelsPerUnit(*args
, **kwargs
):
141 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
143 Get the size of one logical unit in physical units.
145 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
147 def EnableScrolling(*args
, **kwargs
):
148 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
149 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
151 def GetViewStart(*args
, **kwargs
):
153 GetViewStart() -> (x,y)
157 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
159 def SetScale(*args
, **kwargs
):
160 """SetScale(self, double xs, double ys)"""
161 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
163 def GetScaleX(*args
, **kwargs
):
164 """GetScaleX(self) -> double"""
165 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
167 def GetScaleY(*args
, **kwargs
):
168 """GetScaleY(self) -> double"""
169 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
171 def CalcScrolledPosition(*args
):
173 CalcScrolledPosition(self, Point pt) -> Point
174 CalcScrolledPosition(int x, int y) -> (sx, sy)
176 Translate between scrolled and unscrolled coordinates.
178 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
180 def CalcUnscrolledPosition(*args
):
182 CalcUnscrolledPosition(self, Point pt) -> Point
183 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
185 Translate between scrolled and unscrolled coordinates.
187 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
189 def AdjustScrollbars(*args
, **kwargs
):
190 """AdjustScrollbars(self)"""
191 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
193 def CalcScrollInc(*args
, **kwargs
):
194 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
195 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
197 def SetTargetWindow(*args
, **kwargs
):
198 """SetTargetWindow(self, Window target)"""
199 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
201 def GetTargetWindow(*args
, **kwargs
):
202 """GetTargetWindow(self) -> Window"""
203 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
205 def SetTargetRect(*args
, **kwargs
):
206 """SetTargetRect(self, Rect rect)"""
207 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
209 def GetTargetRect(*args
, **kwargs
):
210 """GetTargetRect(self) -> Rect"""
211 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
213 def DoPrepareDC(*args
, **kwargs
):
215 DoPrepareDC(self, DC dc)
217 Normally what is called by `PrepareDC`.
219 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
221 def GetClassDefaultAttributes(*args
, **kwargs
):
223 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
225 Get the default attributes for this class. This is useful if you want
226 to use the same font or colour in your own control as in a standard
227 control -- which is a much better idea than hard coding specific
228 colours or fonts which might look completely out of place on the
229 user's system, especially if it uses themes.
231 The variant parameter is only relevant under Mac currently and is
232 ignore under other platforms. Under Mac, it will change the size of
233 the returned font. See `wx.Window.SetWindowVariant` for more about
236 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
238 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
240 class ScrolledWindowPtr(ScrolledWindow
):
241 def __init__(self
, this
):
243 if not hasattr(self
,"thisown"): self
.thisown
= 0
244 self
.__class
__ = ScrolledWindow
245 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
247 def PreScrolledWindow(*args
, **kwargs
):
248 """PreScrolledWindow() -> ScrolledWindow"""
249 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
253 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
255 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
257 Get the default attributes for this class. This is useful if you want
258 to use the same font or colour in your own control as in a standard
259 control -- which is a much better idea than hard coding specific
260 colours or fonts which might look completely out of place on the
261 user's system, especially if it uses themes.
263 The variant parameter is only relevant under Mac currently and is
264 ignore under other platforms. Under Mac, it will change the size of
265 the returned font. See `wx.Window.SetWindowVariant` for more about
268 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
270 #---------------------------------------------------------------------------
272 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
273 ICONIZE
= _windows_
.ICONIZE
274 MINIMIZE
= _windows_
.MINIMIZE
275 MAXIMIZE
= _windows_
.MAXIMIZE
276 CLOSE_BOX
= _windows_
.CLOSE_BOX
277 THICK_FRAME
= _windows_
.THICK_FRAME
278 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
279 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
280 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
281 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
282 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
283 RESIZE_BOX
= _windows_
.RESIZE_BOX
284 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
285 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
286 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
287 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
288 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
289 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
290 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
291 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
292 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
293 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
294 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
295 USER_COLOURS
= _windows_
.USER_COLOURS
296 NO_3D
= _windows_
.NO_3D
297 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
298 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
299 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
300 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
301 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
302 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
303 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
304 class TopLevelWindow(_core
.Window
):
305 def __init__(self
): raise RuntimeError, "No constructor defined"
307 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
308 def Maximize(*args
, **kwargs
):
309 """Maximize(self, bool maximize=True)"""
310 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
312 def Restore(*args
, **kwargs
):
314 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
316 def Iconize(*args
, **kwargs
):
317 """Iconize(self, bool iconize=True)"""
318 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
320 def IsMaximized(*args
, **kwargs
):
321 """IsMaximized(self) -> bool"""
322 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
324 def IsIconized(*args
, **kwargs
):
325 """IsIconized(self) -> bool"""
326 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
328 def GetIcon(*args
, **kwargs
):
329 """GetIcon(self) -> Icon"""
330 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
332 def SetIcon(*args
, **kwargs
):
333 """SetIcon(self, Icon icon)"""
334 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
336 def SetIcons(*args
, **kwargs
):
337 """SetIcons(self, wxIconBundle icons)"""
338 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
340 def ShowFullScreen(*args
, **kwargs
):
341 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
342 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
344 def IsFullScreen(*args
, **kwargs
):
345 """IsFullScreen(self) -> bool"""
346 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
348 def SetTitle(*args
, **kwargs
):
350 SetTitle(self, String title)
352 Sets the window's title. Applicable only to frames and dialogs.
354 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
356 def GetTitle(*args
, **kwargs
):
358 GetTitle(self) -> String
360 Gets the window's title. Applicable only to frames and dialogs.
362 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
364 def SetShape(*args
, **kwargs
):
365 """SetShape(self, Region region) -> bool"""
366 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
368 def MacSetMetalAppearance(*args
, **kwargs
):
369 """MacSetMetalAppearance(self, bool on)"""
370 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
372 def MacGetMetalAppearance(*args
, **kwargs
):
373 """MacGetMetalAppearance(self) -> bool"""
374 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
377 class TopLevelWindowPtr(TopLevelWindow
):
378 def __init__(self
, this
):
380 if not hasattr(self
,"thisown"): self
.thisown
= 0
381 self
.__class
__ = TopLevelWindow
382 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
383 cvar
= _windows_
.cvar
384 FrameNameStr
= cvar
.FrameNameStr
385 DialogNameStr
= cvar
.DialogNameStr
386 StatusLineNameStr
= cvar
.StatusLineNameStr
387 ToolBarNameStr
= cvar
.ToolBarNameStr
389 #---------------------------------------------------------------------------
391 class Frame(TopLevelWindow
):
393 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
394 def __init__(self
, *args
, **kwargs
):
396 __init__(self, Window parent, int id=-1, String title=EmptyString,
397 Point pos=DefaultPosition, Size size=DefaultSize,
398 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
400 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
401 self
.this
= newobj
.this
404 self
._setOORInfo
(self
)
406 def Create(*args
, **kwargs
):
408 Create(self, Window parent, int id=-1, String title=EmptyString,
409 Point pos=DefaultPosition, Size size=DefaultSize,
410 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
412 return _windows_
.Frame_Create(*args
, **kwargs
)
414 def GetClientAreaOrigin(*args
, **kwargs
):
416 GetClientAreaOrigin(self) -> Point
418 Get the origin of the client area of the window relative to the
419 window's top left corner (the client area may be shifted because of
420 the borders, scrollbars, other decorations...)
422 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
424 def SendSizeEvent(*args
, **kwargs
):
425 """SendSizeEvent(self)"""
426 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
428 def SetMenuBar(*args
, **kwargs
):
429 """SetMenuBar(self, MenuBar menubar)"""
430 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
432 def GetMenuBar(*args
, **kwargs
):
433 """GetMenuBar(self) -> MenuBar"""
434 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
436 def ProcessCommand(*args
, **kwargs
):
437 """ProcessCommand(self, int winid) -> bool"""
438 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
440 Command
= ProcessCommand
441 def CreateStatusBar(*args
, **kwargs
):
443 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
444 String name=StatusLineNameStr) -> StatusBar
446 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
448 def GetStatusBar(*args
, **kwargs
):
449 """GetStatusBar(self) -> StatusBar"""
450 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
452 def SetStatusBar(*args
, **kwargs
):
453 """SetStatusBar(self, StatusBar statBar)"""
454 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
456 def SetStatusText(*args
, **kwargs
):
457 """SetStatusText(self, String text, int number=0)"""
458 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
460 def SetStatusWidths(*args
, **kwargs
):
461 """SetStatusWidths(self, int widths, int widths_field)"""
462 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
464 def PushStatusText(*args
, **kwargs
):
465 """PushStatusText(self, String text, int number=0)"""
466 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
468 def PopStatusText(*args
, **kwargs
):
469 """PopStatusText(self, int number=0)"""
470 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
472 def SetStatusBarPane(*args
, **kwargs
):
473 """SetStatusBarPane(self, int n)"""
474 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
476 def GetStatusBarPane(*args
, **kwargs
):
477 """GetStatusBarPane(self) -> int"""
478 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
480 def CreateToolBar(*args
, **kwargs
):
481 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
482 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
484 def GetToolBar(*args
, **kwargs
):
485 """GetToolBar(self) -> wxToolBar"""
486 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
488 def SetToolBar(*args
, **kwargs
):
489 """SetToolBar(self, wxToolBar toolbar)"""
490 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
492 def DoGiveHelp(*args
, **kwargs
):
493 """DoGiveHelp(self, String text, bool show)"""
494 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
496 def DoMenuUpdates(*args
, **kwargs
):
497 """DoMenuUpdates(self, Menu menu=None)"""
498 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
500 def GetClassDefaultAttributes(*args
, **kwargs
):
502 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
504 Get the default attributes for this class. This is useful if you want
505 to use the same font or colour in your own control as in a standard
506 control -- which is a much better idea than hard coding specific
507 colours or fonts which might look completely out of place on the
508 user's system, especially if it uses themes.
510 The variant parameter is only relevant under Mac currently and is
511 ignore under other platforms. Under Mac, it will change the size of
512 the returned font. See `wx.Window.SetWindowVariant` for more about
515 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
517 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
519 class FramePtr(Frame
):
520 def __init__(self
, this
):
522 if not hasattr(self
,"thisown"): self
.thisown
= 0
523 self
.__class
__ = Frame
524 _windows_
.Frame_swigregister(FramePtr
)
526 def PreFrame(*args
, **kwargs
):
527 """PreFrame() -> Frame"""
528 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
532 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
534 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
536 Get the default attributes for this class. This is useful if you want
537 to use the same font or colour in your own control as in a standard
538 control -- which is a much better idea than hard coding specific
539 colours or fonts which might look completely out of place on the
540 user's system, especially if it uses themes.
542 The variant parameter is only relevant under Mac currently and is
543 ignore under other platforms. Under Mac, it will change the size of
544 the returned font. See `wx.Window.SetWindowVariant` for more about
547 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
549 #---------------------------------------------------------------------------
551 class Dialog(TopLevelWindow
):
553 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
554 def __init__(self
, *args
, **kwargs
):
556 __init__(self, Window parent, int id=-1, String title=EmptyString,
557 Point pos=DefaultPosition, Size size=DefaultSize,
558 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
560 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
561 self
.this
= newobj
.this
564 self
._setOORInfo
(self
)
566 def Create(*args
, **kwargs
):
568 Create(self, Window parent, int id=-1, String title=EmptyString,
569 Point pos=DefaultPosition, Size size=DefaultSize,
570 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
572 return _windows_
.Dialog_Create(*args
, **kwargs
)
574 def SetReturnCode(*args
, **kwargs
):
575 """SetReturnCode(self, int returnCode)"""
576 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
578 def GetReturnCode(*args
, **kwargs
):
579 """GetReturnCode(self) -> int"""
580 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
582 def CreateTextSizer(*args
, **kwargs
):
583 """CreateTextSizer(self, String message) -> Sizer"""
584 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
586 def CreateButtonSizer(*args
, **kwargs
):
587 """CreateButtonSizer(self, long flags) -> Sizer"""
588 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
590 def IsModal(*args
, **kwargs
):
591 """IsModal(self) -> bool"""
592 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
594 def ShowModal(*args
, **kwargs
):
595 """ShowModal(self) -> int"""
596 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
598 def EndModal(*args
, **kwargs
):
599 """EndModal(self, int retCode)"""
600 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
602 def GetClassDefaultAttributes(*args
, **kwargs
):
604 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
606 Get the default attributes for this class. This is useful if you want
607 to use the same font or colour in your own control as in a standard
608 control -- which is a much better idea than hard coding specific
609 colours or fonts which might look completely out of place on the
610 user's system, especially if it uses themes.
612 The variant parameter is only relevant under Mac currently and is
613 ignore under other platforms. Under Mac, it will change the size of
614 the returned font. See `wx.Window.SetWindowVariant` for more about
617 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
619 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
620 def SendSizeEvent(self
):
621 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
624 class DialogPtr(Dialog
):
625 def __init__(self
, this
):
627 if not hasattr(self
,"thisown"): self
.thisown
= 0
628 self
.__class
__ = Dialog
629 _windows_
.Dialog_swigregister(DialogPtr
)
631 def PreDialog(*args
, **kwargs
):
632 """PreDialog() -> Dialog"""
633 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
637 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
639 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
641 Get the default attributes for this class. This is useful if you want
642 to use the same font or colour in your own control as in a standard
643 control -- which is a much better idea than hard coding specific
644 colours or fonts which might look completely out of place on the
645 user's system, especially if it uses themes.
647 The variant parameter is only relevant under Mac currently and is
648 ignore under other platforms. Under Mac, it will change the size of
649 the returned font. See `wx.Window.SetWindowVariant` for more about
652 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
654 #---------------------------------------------------------------------------
656 class MiniFrame(Frame
):
658 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
659 def __init__(self
, *args
, **kwargs
):
661 __init__(self, Window parent, int id=-1, String title=EmptyString,
662 Point pos=DefaultPosition, Size size=DefaultSize,
663 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
665 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
666 self
.this
= newobj
.this
669 self
._setOORInfo
(self
)
671 def Create(*args
, **kwargs
):
673 Create(self, Window parent, int id=-1, String title=EmptyString,
674 Point pos=DefaultPosition, Size size=DefaultSize,
675 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
677 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
680 class MiniFramePtr(MiniFrame
):
681 def __init__(self
, this
):
683 if not hasattr(self
,"thisown"): self
.thisown
= 0
684 self
.__class
__ = MiniFrame
685 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
687 def PreMiniFrame(*args
, **kwargs
):
688 """PreMiniFrame() -> MiniFrame"""
689 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
693 #---------------------------------------------------------------------------
695 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
696 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
697 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
698 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
699 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
700 class SplashScreenWindow(_core
.Window
):
702 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
703 def __init__(self
, *args
, **kwargs
):
705 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
706 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
708 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
709 self
.this
= newobj
.this
712 self
._setOORInfo
(self
)
714 def SetBitmap(*args
, **kwargs
):
715 """SetBitmap(self, Bitmap bitmap)"""
716 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
718 def GetBitmap(*args
, **kwargs
):
719 """GetBitmap(self) -> Bitmap"""
720 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
723 class SplashScreenWindowPtr(SplashScreenWindow
):
724 def __init__(self
, this
):
726 if not hasattr(self
,"thisown"): self
.thisown
= 0
727 self
.__class
__ = SplashScreenWindow
728 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
730 class SplashScreen(Frame
):
732 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
733 def __init__(self
, *args
, **kwargs
):
735 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
736 Window parent, int id=-1, Point pos=DefaultPosition,
737 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
739 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
740 self
.this
= newobj
.this
743 self
._setOORInfo
(self
)
745 def GetSplashStyle(*args
, **kwargs
):
746 """GetSplashStyle(self) -> long"""
747 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
749 def GetSplashWindow(*args
, **kwargs
):
750 """GetSplashWindow(self) -> SplashScreenWindow"""
751 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
753 def GetTimeout(*args
, **kwargs
):
754 """GetTimeout(self) -> int"""
755 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
758 class SplashScreenPtr(SplashScreen
):
759 def __init__(self
, this
):
761 if not hasattr(self
,"thisown"): self
.thisown
= 0
762 self
.__class
__ = SplashScreen
763 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
765 #---------------------------------------------------------------------------
767 class StatusBar(_core
.Window
):
769 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
770 def __init__(self
, *args
, **kwargs
):
771 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
772 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
773 self
.this
= newobj
.this
776 self
._setOORInfo
(self
)
778 def Create(*args
, **kwargs
):
779 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
780 return _windows_
.StatusBar_Create(*args
, **kwargs
)
782 def SetFieldsCount(*args
, **kwargs
):
783 """SetFieldsCount(self, int number=1)"""
784 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
786 def GetFieldsCount(*args
, **kwargs
):
787 """GetFieldsCount(self) -> int"""
788 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
790 def SetStatusText(*args
, **kwargs
):
791 """SetStatusText(self, String text, int number=0)"""
792 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
794 def GetStatusText(*args
, **kwargs
):
795 """GetStatusText(self, int number=0) -> String"""
796 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
798 def PushStatusText(*args
, **kwargs
):
799 """PushStatusText(self, String text, int number=0)"""
800 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
802 def PopStatusText(*args
, **kwargs
):
803 """PopStatusText(self, int number=0)"""
804 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
806 def SetStatusWidths(*args
, **kwargs
):
807 """SetStatusWidths(self, int widths, int widths_field)"""
808 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
810 def GetFieldRect(*args
, **kwargs
):
811 """GetFieldRect(self, int i) -> Rect"""
812 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
814 def SetMinHeight(*args
, **kwargs
):
815 """SetMinHeight(self, int height)"""
816 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
818 def GetBorderX(*args
, **kwargs
):
819 """GetBorderX(self) -> int"""
820 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
822 def GetBorderY(*args
, **kwargs
):
823 """GetBorderY(self) -> int"""
824 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
826 def GetClassDefaultAttributes(*args
, **kwargs
):
828 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
830 Get the default attributes for this class. This is useful if you want
831 to use the same font or colour in your own control as in a standard
832 control -- which is a much better idea than hard coding specific
833 colours or fonts which might look completely out of place on the
834 user's system, especially if it uses themes.
836 The variant parameter is only relevant under Mac currently and is
837 ignore under other platforms. Under Mac, it will change the size of
838 the returned font. See `wx.Window.SetWindowVariant` for more about
841 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
843 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
845 class StatusBarPtr(StatusBar
):
846 def __init__(self
, this
):
848 if not hasattr(self
,"thisown"): self
.thisown
= 0
849 self
.__class
__ = StatusBar
850 _windows_
.StatusBar_swigregister(StatusBarPtr
)
852 def PreStatusBar(*args
, **kwargs
):
853 """PreStatusBar() -> StatusBar"""
854 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
858 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
860 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
862 Get the default attributes for this class. This is useful if you want
863 to use the same font or colour in your own control as in a standard
864 control -- which is a much better idea than hard coding specific
865 colours or fonts which might look completely out of place on the
866 user's system, especially if it uses themes.
868 The variant parameter is only relevant under Mac currently and is
869 ignore under other platforms. Under Mac, it will change the size of
870 the returned font. See `wx.Window.SetWindowVariant` for more about
873 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
875 #---------------------------------------------------------------------------
877 SP_NOBORDER
= _windows_
.SP_NOBORDER
878 SP_NOSASH
= _windows_
.SP_NOSASH
879 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
880 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
881 SP_3DSASH
= _windows_
.SP_3DSASH
882 SP_3DBORDER
= _windows_
.SP_3DBORDER
883 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
884 SP_BORDER
= _windows_
.SP_BORDER
885 SP_3D
= _windows_
.SP_3D
886 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
887 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
888 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
889 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
890 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
891 class SplitterWindow(_core
.Window
):
893 wx.SplitterWindow manages up to two subwindows or panes, with an
894 optional vertical or horizontal split which can be used with the mouse
898 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
899 def __init__(self
, *args
, **kwargs
):
901 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
902 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
904 Constructor. Creates and shows a SplitterWindow.
906 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
907 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
908 self
.this
= newobj
.this
911 self
._setOORInfo
(self
)
913 def Create(*args
, **kwargs
):
915 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
916 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
918 Create the GUI part of the SplitterWindow for the 2-phase create.
920 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
922 def GetWindow1(*args
, **kwargs
):
924 GetWindow1(self) -> Window
926 Gets the only or left/top pane.
928 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
930 def GetWindow2(*args
, **kwargs
):
932 GetWindow2(self) -> Window
934 Gets the right/bottom pane.
936 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
938 def SetSplitMode(*args
, **kwargs
):
940 SetSplitMode(self, int mode)
942 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
943 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
946 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
948 def GetSplitMode(*args
, **kwargs
):
950 GetSplitMode(self) -> int
954 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
956 def Initialize(*args
, **kwargs
):
958 Initialize(self, Window window)
960 Initializes the splitter window to have one pane. This should be
961 called if you wish to initially view only a single pane in the
964 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
966 def SplitVertically(*args
, **kwargs
):
968 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
970 Initializes the left and right panes of the splitter window.
972 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
974 def SplitHorizontally(*args
, **kwargs
):
976 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
978 Initializes the top and bottom panes of the splitter window.
980 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
982 def Unsplit(*args
, **kwargs
):
984 Unsplit(self, Window toRemove=None) -> bool
986 Unsplits the window. Pass the pane to remove, or None to remove the
987 right or bottom pane. Returns True if successful, False otherwise (the
988 window was not split).
990 This function will not actually delete the pane being
991 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
992 for the desired behaviour. By default, the pane being
993 removed is only hidden.
995 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
997 def ReplaceWindow(*args
, **kwargs
):
999 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1001 This function replaces one of the windows managed by the
1002 SplitterWindow with another one. It is in general better to use it
1003 instead of calling Unsplit() and then resplitting the window back
1004 because it will provoke much less flicker. It is valid to call this
1005 function whether the splitter has two windows or only one.
1007 Both parameters should be non-None and winOld must specify one of the
1008 windows managed by the splitter. If the parameters are incorrect or
1009 the window couldn't be replaced, False is returned. Otherwise the
1010 function will return True, but please notice that it will not Destroy
1011 the replaced window and you may wish to do it yourself.
1013 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1015 def UpdateSize(*args
, **kwargs
):
1019 Causes any pending sizing of the sash and child panes to take place
1022 Such resizing normally takes place in idle time, in order to wait for
1023 layout to be completed. However, this can cause unacceptable flicker
1024 as the panes are resized after the window has been shown. To work
1025 around this, you can perform window layout (for example by sending a
1026 size event to the parent window), and then call this function, before
1027 showing the top-level window.
1029 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1031 def IsSplit(*args
, **kwargs
):
1033 IsSplit(self) -> bool
1035 Is the window split?
1037 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1039 def SetSashSize(*args
, **kwargs
):
1041 SetSashSize(self, int width)
1045 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1047 def SetBorderSize(*args
, **kwargs
):
1049 SetBorderSize(self, int width)
1051 Sets the border size
1053 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1055 def GetSashSize(*args
, **kwargs
):
1057 GetSashSize(self) -> int
1061 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1063 def GetBorderSize(*args
, **kwargs
):
1065 GetBorderSize(self) -> int
1067 Gets the border size
1069 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1071 def SetSashPosition(*args
, **kwargs
):
1073 SetSashPosition(self, int position, bool redraw=True)
1075 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1076 are resized and the sash and border are redrawn.
1078 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1080 def GetSashPosition(*args
, **kwargs
):
1082 GetSashPosition(self) -> int
1084 Returns the surrent sash position.
1086 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1088 def SetMinimumPaneSize(*args
, **kwargs
):
1090 SetMinimumPaneSize(self, int min)
1092 Sets the minimum pane size in pixels.
1094 The default minimum pane size is zero, which means that either pane
1095 can be reduced to zero by dragging the sash, thus removing one of the
1096 panes. To prevent this behaviour (and veto out-of-range sash
1097 dragging), set a minimum size, for example 20 pixels. If the
1098 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1099 the window may be unsplit even if minimum size is non-zero.
1101 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1103 def GetMinimumPaneSize(*args
, **kwargs
):
1105 GetMinimumPaneSize(self) -> int
1107 Gets the minimum pane size in pixels.
1109 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1111 def SashHitTest(*args
, **kwargs
):
1113 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1115 Tests for x, y over the sash
1117 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1119 def SizeWindows(*args
, **kwargs
):
1125 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1127 def SetNeedUpdating(*args
, **kwargs
):
1128 """SetNeedUpdating(self, bool needUpdating)"""
1129 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1131 def GetNeedUpdating(*args
, **kwargs
):
1132 """GetNeedUpdating(self) -> bool"""
1133 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1135 def GetClassDefaultAttributes(*args
, **kwargs
):
1137 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1139 Get the default attributes for this class. This is useful if you want
1140 to use the same font or colour in your own control as in a standard
1141 control -- which is a much better idea than hard coding specific
1142 colours or fonts which might look completely out of place on the
1143 user's system, especially if it uses themes.
1145 The variant parameter is only relevant under Mac currently and is
1146 ignore under other platforms. Under Mac, it will change the size of
1147 the returned font. See `wx.Window.SetWindowVariant` for more about
1150 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1152 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1154 class SplitterWindowPtr(SplitterWindow
):
1155 def __init__(self
, this
):
1157 if not hasattr(self
,"thisown"): self
.thisown
= 0
1158 self
.__class
__ = SplitterWindow
1159 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1160 SplitterNameStr
= cvar
.SplitterNameStr
1162 def PreSplitterWindow(*args
, **kwargs
):
1164 PreSplitterWindow() -> SplitterWindow
1166 Precreate a SplitterWindow for 2-phase creation.
1168 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1172 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1174 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1176 Get the default attributes for this class. This is useful if you want
1177 to use the same font or colour in your own control as in a standard
1178 control -- which is a much better idea than hard coding specific
1179 colours or fonts which might look completely out of place on the
1180 user's system, especially if it uses themes.
1182 The variant parameter is only relevant under Mac currently and is
1183 ignore under other platforms. Under Mac, it will change the size of
1184 the returned font. See `wx.Window.SetWindowVariant` for more about
1187 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1189 class SplitterEvent(_core
.NotifyEvent
):
1190 """This class represents the events generated by a splitter control."""
1192 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1193 def __init__(self
, *args
, **kwargs
):
1195 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1197 This class represents the events generated by a splitter control.
1199 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1200 self
.this
= newobj
.this
1203 def SetSashPosition(*args
, **kwargs
):
1205 SetSashPosition(self, int pos)
1207 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1208 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1209 events, sets the the new sash position. In the case of _CHANGING
1210 events, sets the new tracking bar position so visual feedback during
1211 dragging will represent that change that will actually take place. Set
1212 to -1 from the event handler code to prevent repositioning.
1214 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1216 def GetSashPosition(*args
, **kwargs
):
1218 GetSashPosition(self) -> int
1220 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1221 and EVT_SPLITTER_SASH_POS_CHANGED events.
1223 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1225 def GetWindowBeingRemoved(*args
, **kwargs
):
1227 GetWindowBeingRemoved(self) -> Window
1229 Returns a pointer to the window being removed when a splitter window
1232 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1234 def GetX(*args
, **kwargs
):
1238 Returns the x coordinate of the double-click point in a
1239 EVT_SPLITTER_DCLICK event.
1241 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1243 def GetY(*args
, **kwargs
):
1247 Returns the y coordinate of the double-click point in a
1248 EVT_SPLITTER_DCLICK event.
1250 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1253 class SplitterEventPtr(SplitterEvent
):
1254 def __init__(self
, this
):
1256 if not hasattr(self
,"thisown"): self
.thisown
= 0
1257 self
.__class
__ = SplitterEvent
1258 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1260 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1261 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1262 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1263 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1264 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1265 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1266 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1267 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1268 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1270 #---------------------------------------------------------------------------
1272 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1273 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1274 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1275 SW_NOBORDER
= _windows_
.SW_NOBORDER
1276 SW_BORDER
= _windows_
.SW_BORDER
1277 SW_3DSASH
= _windows_
.SW_3DSASH
1278 SW_3DBORDER
= _windows_
.SW_3DBORDER
1279 SW_3D
= _windows_
.SW_3D
1280 SASH_TOP
= _windows_
.SASH_TOP
1281 SASH_RIGHT
= _windows_
.SASH_RIGHT
1282 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1283 SASH_LEFT
= _windows_
.SASH_LEFT
1284 SASH_NONE
= _windows_
.SASH_NONE
1285 class SashWindow(_core
.Window
):
1287 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1288 def __init__(self
, *args
, **kwargs
):
1290 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1291 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1292 String name=SashNameStr) -> SashWindow
1294 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1295 self
.this
= newobj
.this
1298 self
._setOORInfo
(self
)
1300 def Create(*args
, **kwargs
):
1302 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1303 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1304 String name=SashNameStr) -> bool
1306 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1308 def SetSashVisible(*args
, **kwargs
):
1309 """SetSashVisible(self, int edge, bool sash)"""
1310 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1312 def GetSashVisible(*args
, **kwargs
):
1313 """GetSashVisible(self, int edge) -> bool"""
1314 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1316 def SetSashBorder(*args
, **kwargs
):
1317 """SetSashBorder(self, int edge, bool border)"""
1318 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1320 def HasBorder(*args
, **kwargs
):
1321 """HasBorder(self, int edge) -> bool"""
1322 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1324 def GetEdgeMargin(*args
, **kwargs
):
1325 """GetEdgeMargin(self, int edge) -> int"""
1326 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1328 def SetDefaultBorderSize(*args
, **kwargs
):
1329 """SetDefaultBorderSize(self, int width)"""
1330 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1332 def GetDefaultBorderSize(*args
, **kwargs
):
1333 """GetDefaultBorderSize(self) -> int"""
1334 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1336 def SetExtraBorderSize(*args
, **kwargs
):
1337 """SetExtraBorderSize(self, int width)"""
1338 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1340 def GetExtraBorderSize(*args
, **kwargs
):
1341 """GetExtraBorderSize(self) -> int"""
1342 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1344 def SetMinimumSizeX(*args
, **kwargs
):
1345 """SetMinimumSizeX(self, int min)"""
1346 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1348 def SetMinimumSizeY(*args
, **kwargs
):
1349 """SetMinimumSizeY(self, int min)"""
1350 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1352 def GetMinimumSizeX(*args
, **kwargs
):
1353 """GetMinimumSizeX(self) -> int"""
1354 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1356 def GetMinimumSizeY(*args
, **kwargs
):
1357 """GetMinimumSizeY(self) -> int"""
1358 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1360 def SetMaximumSizeX(*args
, **kwargs
):
1361 """SetMaximumSizeX(self, int max)"""
1362 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1364 def SetMaximumSizeY(*args
, **kwargs
):
1365 """SetMaximumSizeY(self, int max)"""
1366 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1368 def GetMaximumSizeX(*args
, **kwargs
):
1369 """GetMaximumSizeX(self) -> int"""
1370 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1372 def GetMaximumSizeY(*args
, **kwargs
):
1373 """GetMaximumSizeY(self) -> int"""
1374 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1376 def SashHitTest(*args
, **kwargs
):
1377 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1378 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1380 def SizeWindows(*args
, **kwargs
):
1381 """SizeWindows(self)"""
1382 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1385 class SashWindowPtr(SashWindow
):
1386 def __init__(self
, this
):
1388 if not hasattr(self
,"thisown"): self
.thisown
= 0
1389 self
.__class
__ = SashWindow
1390 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1391 SashNameStr
= cvar
.SashNameStr
1392 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1394 def PreSashWindow(*args
, **kwargs
):
1395 """PreSashWindow() -> SashWindow"""
1396 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1400 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1401 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1402 class SashEvent(_core
.CommandEvent
):
1404 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1405 def __init__(self
, *args
, **kwargs
):
1406 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1407 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1408 self
.this
= newobj
.this
1411 def SetEdge(*args
, **kwargs
):
1412 """SetEdge(self, int edge)"""
1413 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1415 def GetEdge(*args
, **kwargs
):
1416 """GetEdge(self) -> int"""
1417 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1419 def SetDragRect(*args
, **kwargs
):
1420 """SetDragRect(self, Rect rect)"""
1421 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1423 def GetDragRect(*args
, **kwargs
):
1424 """GetDragRect(self) -> Rect"""
1425 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1427 def SetDragStatus(*args
, **kwargs
):
1428 """SetDragStatus(self, int status)"""
1429 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1431 def GetDragStatus(*args
, **kwargs
):
1432 """GetDragStatus(self) -> int"""
1433 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1436 class SashEventPtr(SashEvent
):
1437 def __init__(self
, this
):
1439 if not hasattr(self
,"thisown"): self
.thisown
= 0
1440 self
.__class
__ = SashEvent
1441 _windows_
.SashEvent_swigregister(SashEventPtr
)
1443 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1444 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1445 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1447 #---------------------------------------------------------------------------
1449 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1450 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1451 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1452 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1453 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1454 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1455 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1456 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1457 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1458 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1459 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1460 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1461 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1462 class QueryLayoutInfoEvent(_core
.Event
):
1464 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1465 def __init__(self
, *args
, **kwargs
):
1466 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1467 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1468 self
.this
= newobj
.this
1471 def SetRequestedLength(*args
, **kwargs
):
1472 """SetRequestedLength(self, int length)"""
1473 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1475 def GetRequestedLength(*args
, **kwargs
):
1476 """GetRequestedLength(self) -> int"""
1477 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1479 def SetFlags(*args
, **kwargs
):
1480 """SetFlags(self, int flags)"""
1481 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1483 def GetFlags(*args
, **kwargs
):
1484 """GetFlags(self) -> int"""
1485 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1487 def SetSize(*args
, **kwargs
):
1488 """SetSize(self, Size size)"""
1489 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1491 def GetSize(*args
, **kwargs
):
1492 """GetSize(self) -> Size"""
1493 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1495 def SetOrientation(*args
, **kwargs
):
1496 """SetOrientation(self, int orient)"""
1497 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1499 def GetOrientation(*args
, **kwargs
):
1500 """GetOrientation(self) -> int"""
1501 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1503 def SetAlignment(*args
, **kwargs
):
1504 """SetAlignment(self, int align)"""
1505 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1507 def GetAlignment(*args
, **kwargs
):
1508 """GetAlignment(self) -> int"""
1509 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1512 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1513 def __init__(self
, this
):
1515 if not hasattr(self
,"thisown"): self
.thisown
= 0
1516 self
.__class
__ = QueryLayoutInfoEvent
1517 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1519 class CalculateLayoutEvent(_core
.Event
):
1521 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1522 def __init__(self
, *args
, **kwargs
):
1523 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1524 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1525 self
.this
= newobj
.this
1528 def SetFlags(*args
, **kwargs
):
1529 """SetFlags(self, int flags)"""
1530 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1532 def GetFlags(*args
, **kwargs
):
1533 """GetFlags(self) -> int"""
1534 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1536 def SetRect(*args
, **kwargs
):
1537 """SetRect(self, Rect rect)"""
1538 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1540 def GetRect(*args
, **kwargs
):
1541 """GetRect(self) -> Rect"""
1542 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1545 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1546 def __init__(self
, this
):
1548 if not hasattr(self
,"thisown"): self
.thisown
= 0
1549 self
.__class
__ = CalculateLayoutEvent
1550 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1552 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1553 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1555 class SashLayoutWindow(SashWindow
):
1557 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1558 def __init__(self
, *args
, **kwargs
):
1560 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1561 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1562 String name=SashLayoutNameStr) -> SashLayoutWindow
1564 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1565 self
.this
= newobj
.this
1568 self
._setOORInfo
(self
)
1570 def Create(*args
, **kwargs
):
1572 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1573 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1574 String name=SashLayoutNameStr) -> bool
1576 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1578 def GetAlignment(*args
, **kwargs
):
1579 """GetAlignment(self) -> int"""
1580 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1582 def GetOrientation(*args
, **kwargs
):
1583 """GetOrientation(self) -> int"""
1584 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1586 def SetAlignment(*args
, **kwargs
):
1587 """SetAlignment(self, int alignment)"""
1588 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1590 def SetDefaultSize(*args
, **kwargs
):
1591 """SetDefaultSize(self, Size size)"""
1592 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1594 def SetOrientation(*args
, **kwargs
):
1595 """SetOrientation(self, int orientation)"""
1596 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1599 class SashLayoutWindowPtr(SashLayoutWindow
):
1600 def __init__(self
, this
):
1602 if not hasattr(self
,"thisown"): self
.thisown
= 0
1603 self
.__class
__ = SashLayoutWindow
1604 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1606 def PreSashLayoutWindow(*args
, **kwargs
):
1607 """PreSashLayoutWindow() -> SashLayoutWindow"""
1608 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1612 class LayoutAlgorithm(_core
.Object
):
1614 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1615 def __init__(self
, *args
, **kwargs
):
1616 """__init__(self) -> LayoutAlgorithm"""
1617 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1618 self
.this
= newobj
.this
1621 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1624 if self
.thisown
: destroy(self
)
1627 def LayoutMDIFrame(*args
, **kwargs
):
1628 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1629 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1631 def LayoutFrame(*args
, **kwargs
):
1632 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1633 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1635 def LayoutWindow(*args
, **kwargs
):
1636 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1637 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1640 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1641 def __init__(self
, this
):
1643 if not hasattr(self
,"thisown"): self
.thisown
= 0
1644 self
.__class
__ = LayoutAlgorithm
1645 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1647 class PopupWindow(_core
.Window
):
1649 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1650 def __init__(self
, *args
, **kwargs
):
1651 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1652 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1653 self
.this
= newobj
.this
1657 class PopupWindowPtr(PopupWindow
):
1658 def __init__(self
, this
):
1660 if not hasattr(self
,"thisown"): self
.thisown
= 0
1661 self
.__class
__ = PopupWindow
1662 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1664 def PrePopupWindow(*args
, **kwargs
):
1665 """PrePopupWindow() -> PopupWindow"""
1666 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1670 class PopupTransientWindow(PopupWindow
):
1672 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1673 def __init__(self
, *args
, **kwargs
):
1674 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1675 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1676 self
.this
= newobj
.this
1680 class PopupTransientWindowPtr(PopupTransientWindow
):
1681 def __init__(self
, this
):
1683 if not hasattr(self
,"thisown"): self
.thisown
= 0
1684 self
.__class
__ = PopupTransientWindow
1685 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1687 def PrePopupTransientWindow(*args
, **kwargs
):
1688 """PrePopupTransientWindow() -> PopupTransientWindow"""
1689 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1693 #---------------------------------------------------------------------------
1695 class TipWindow(Frame
):
1697 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1698 def __init__(self
, *args
, **kwargs
):
1699 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1700 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1701 self
.this
= newobj
.this
1704 self
._setOORInfo
(self
)
1706 def SetBoundingRect(*args
, **kwargs
):
1707 """SetBoundingRect(self, Rect rectBound)"""
1708 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1710 def Close(*args
, **kwargs
):
1712 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1715 class TipWindowPtr(TipWindow
):
1716 def __init__(self
, this
):
1718 if not hasattr(self
,"thisown"): self
.thisown
= 0
1719 self
.__class
__ = TipWindow
1720 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1722 #---------------------------------------------------------------------------
1724 class VScrolledWindow(Panel
):
1726 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1727 def __init__(self
, *args
, **kwargs
):
1729 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1730 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1732 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1733 self
.this
= newobj
.this
1736 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1738 def _setCallbackInfo(*args
, **kwargs
):
1739 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1740 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1742 def Create(*args
, **kwargs
):
1744 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1745 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1747 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1749 def SetLineCount(*args
, **kwargs
):
1750 """SetLineCount(self, size_t count)"""
1751 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1753 def ScrollToLine(*args
, **kwargs
):
1754 """ScrollToLine(self, size_t line) -> bool"""
1755 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1757 def ScrollLines(*args
, **kwargs
):
1758 """ScrollLines(self, int lines) -> bool"""
1759 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1761 def ScrollPages(*args
, **kwargs
):
1763 ScrollPages(self, int pages) -> bool
1765 If the platform and window class supports it, scrolls the window by
1766 the given number of pages down, if pages is positive, or up if pages
1767 is negative. Returns True if the window was scrolled, False if it was
1768 already on top/bottom and nothing was done.
1770 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1772 def RefreshLine(*args
, **kwargs
):
1773 """RefreshLine(self, size_t line)"""
1774 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1776 def RefreshLines(*args
, **kwargs
):
1777 """RefreshLines(self, size_t from, size_t to)"""
1778 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1780 def HitTestXT(*args
, **kwargs
):
1781 """HitTestXT(self, int x, int y) -> int"""
1782 return _windows_
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1784 def HitTest(*args
, **kwargs
):
1785 """HitTest(self, Point pt) -> int"""
1786 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1788 def RefreshAll(*args
, **kwargs
):
1789 """RefreshAll(self)"""
1790 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1792 def GetLineCount(*args
, **kwargs
):
1793 """GetLineCount(self) -> size_t"""
1794 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1796 def GetFirstVisibleLine(*args
, **kwargs
):
1797 """GetFirstVisibleLine(self) -> size_t"""
1798 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1800 def GetLastVisibleLine(*args
, **kwargs
):
1801 """GetLastVisibleLine(self) -> size_t"""
1802 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1804 def IsVisible(*args
, **kwargs
):
1805 """IsVisible(self, size_t line) -> bool"""
1806 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1809 class VScrolledWindowPtr(VScrolledWindow
):
1810 def __init__(self
, this
):
1812 if not hasattr(self
,"thisown"): self
.thisown
= 0
1813 self
.__class
__ = VScrolledWindow
1814 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1816 def PreVScrolledWindow(*args
, **kwargs
):
1817 """PreVScrolledWindow() -> VScrolledWindow"""
1818 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1822 class VListBox(VScrolledWindow
):
1824 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1825 def __init__(self
, *args
, **kwargs
):
1827 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1828 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1830 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1831 self
.this
= newobj
.this
1834 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1836 def _setCallbackInfo(*args
, **kwargs
):
1837 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1838 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1840 def Create(*args
, **kwargs
):
1842 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1843 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1845 return _windows_
.VListBox_Create(*args
, **kwargs
)
1847 def GetItemCount(*args
, **kwargs
):
1848 """GetItemCount(self) -> size_t"""
1849 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1851 def HasMultipleSelection(*args
, **kwargs
):
1852 """HasMultipleSelection(self) -> bool"""
1853 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1855 def GetSelection(*args
, **kwargs
):
1856 """GetSelection(self) -> int"""
1857 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1859 def IsCurrent(*args
, **kwargs
):
1860 """IsCurrent(self, size_t item) -> bool"""
1861 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1863 def IsSelected(*args
, **kwargs
):
1864 """IsSelected(self, size_t item) -> bool"""
1865 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1867 def GetSelectedCount(*args
, **kwargs
):
1868 """GetSelectedCount(self) -> size_t"""
1869 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1871 def GetFirstSelected(*args
, **kwargs
):
1872 """GetFirstSelected(self) -> PyObject"""
1873 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1875 def GetNextSelected(*args
, **kwargs
):
1876 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1877 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1879 def GetMargins(*args
, **kwargs
):
1880 """GetMargins(self) -> Point"""
1881 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1883 def GetSelectionBackground(*args
, **kwargs
):
1884 """GetSelectionBackground(self) -> Colour"""
1885 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1887 def SetItemCount(*args
, **kwargs
):
1888 """SetItemCount(self, size_t count)"""
1889 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1891 def Clear(*args
, **kwargs
):
1893 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1895 def SetSelection(*args
, **kwargs
):
1896 """SetSelection(self, int selection)"""
1897 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1899 def Select(*args
, **kwargs
):
1900 """Select(self, size_t item, bool select=True) -> bool"""
1901 return _windows_
.VListBox_Select(*args
, **kwargs
)
1903 def SelectRange(*args
, **kwargs
):
1904 """SelectRange(self, size_t from, size_t to) -> bool"""
1905 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1907 def Toggle(*args
, **kwargs
):
1908 """Toggle(self, size_t item)"""
1909 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1911 def SelectAll(*args
, **kwargs
):
1912 """SelectAll(self) -> bool"""
1913 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1915 def DeselectAll(*args
, **kwargs
):
1916 """DeselectAll(self) -> bool"""
1917 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1919 def SetMargins(*args
, **kwargs
):
1920 """SetMargins(self, Point pt)"""
1921 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1923 def SetMarginsXY(*args
, **kwargs
):
1924 """SetMarginsXY(self, int x, int y)"""
1925 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1927 def SetSelectionBackground(*args
, **kwargs
):
1928 """SetSelectionBackground(self, Colour col)"""
1929 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1932 class VListBoxPtr(VListBox
):
1933 def __init__(self
, this
):
1935 if not hasattr(self
,"thisown"): self
.thisown
= 0
1936 self
.__class
__ = VListBox
1937 _windows_
.VListBox_swigregister(VListBoxPtr
)
1938 VListBoxNameStr
= cvar
.VListBoxNameStr
1940 def PreVListBox(*args
, **kwargs
):
1941 """PreVListBox() -> VListBox"""
1942 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1946 class HtmlListBox(VListBox
):
1948 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1949 def __init__(self
, *args
, **kwargs
):
1951 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1952 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1954 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
1955 self
.this
= newobj
.this
1958 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1960 def _setCallbackInfo(*args
, **kwargs
):
1961 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1962 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1964 def Create(*args
, **kwargs
):
1966 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1967 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1969 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1971 def RefreshAll(*args
, **kwargs
):
1972 """RefreshAll(self)"""
1973 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1975 def SetItemCount(*args
, **kwargs
):
1976 """SetItemCount(self, size_t count)"""
1977 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1979 def GetFileSystem(*args
, **kwargs
):
1980 """GetFileSystem(self) -> FileSystem"""
1981 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
1984 class HtmlListBoxPtr(HtmlListBox
):
1985 def __init__(self
, this
):
1987 if not hasattr(self
,"thisown"): self
.thisown
= 0
1988 self
.__class
__ = HtmlListBox
1989 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1991 def PreHtmlListBox(*args
, **kwargs
):
1992 """PreHtmlListBox() -> HtmlListBox"""
1993 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
1997 #---------------------------------------------------------------------------
1999 class TaskBarIcon(_core
.EvtHandler
):
2001 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2002 def __init__(self
, *args
, **kwargs
):
2003 """__init__(self) -> TaskBarIcon"""
2004 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2005 self
.this
= newobj
.this
2008 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2011 if self
.thisown
: destroy(self
)
2014 def Destroy(*args
, **kwargs
):
2018 Deletes the C++ object this Python object is a proxy for.
2020 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2023 class TaskBarIconPtr(TaskBarIcon
):
2024 def __init__(self
, this
):
2026 if not hasattr(self
,"thisown"): self
.thisown
= 0
2027 self
.__class
__ = TaskBarIcon
2028 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2030 class TaskBarIconEvent(_core
.Event
):
2032 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2033 def __init__(self
, *args
, **kwargs
):
2034 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2035 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2036 self
.this
= newobj
.this
2040 class TaskBarIconEventPtr(TaskBarIconEvent
):
2041 def __init__(self
, this
):
2043 if not hasattr(self
,"thisown"): self
.thisown
= 0
2044 self
.__class
__ = TaskBarIconEvent
2045 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2047 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2048 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2049 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2050 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2051 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2052 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2053 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2054 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2055 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2056 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2057 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2058 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2059 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2060 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2062 #---------------------------------------------------------------------------
2064 class ColourData(_core
.Object
):
2066 This class holds a variety of information related to the colour
2067 chooser dialog, used to transfer settings and results to and from the
2071 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2072 def __init__(self
, *args
, **kwargs
):
2074 __init__(self) -> ColourData
2076 Constructor, sets default values.
2078 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2079 self
.this
= newobj
.this
2082 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2085 if self
.thisown
: destroy(self
)
2088 def GetChooseFull(*args
, **kwargs
):
2090 GetChooseFull(self) -> bool
2092 Under Windows, determines whether the Windows colour dialog will
2093 display the full dialog with custom colour selection controls. Has no
2094 meaning under other platforms. The default value is true.
2096 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2098 def GetColour(*args
, **kwargs
):
2100 GetColour(self) -> Colour
2102 Gets the colour (pre)selected by the dialog.
2104 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2106 def GetCustomColour(*args
, **kwargs
):
2108 GetCustomColour(self, int i) -> Colour
2110 Gets the i'th custom colour associated with the colour dialog. i
2111 should be an integer between 0 and 15. The default custom colours are
2112 all invalid colours.
2114 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2116 def SetChooseFull(*args
, **kwargs
):
2118 SetChooseFull(self, int flag)
2120 Under Windows, tells the Windows colour dialog to display the full
2121 dialog with custom colour selection controls. Under other platforms,
2122 has no effect. The default value is true.
2124 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2126 def SetColour(*args
, **kwargs
):
2128 SetColour(self, Colour colour)
2130 Sets the default colour for the colour dialog. The default colour is
2133 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2135 def SetCustomColour(*args
, **kwargs
):
2137 SetCustomColour(self, int i, Colour colour)
2139 Sets the i'th custom colour for the colour dialog. i should be an
2140 integer between 0 and 15. The default custom colours are all invalid colours.
2142 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2145 class ColourDataPtr(ColourData
):
2146 def __init__(self
, this
):
2148 if not hasattr(self
,"thisown"): self
.thisown
= 0
2149 self
.__class
__ = ColourData
2150 _windows_
.ColourData_swigregister(ColourDataPtr
)
2151 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2152 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2153 DirDialogNameStr
= cvar
.DirDialogNameStr
2154 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2155 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2156 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2158 class ColourDialog(Dialog
):
2159 """This class represents the colour chooser dialog."""
2161 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2162 def __init__(self
, *args
, **kwargs
):
2164 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2166 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2167 which will be copied to the colour dialog's internal ColourData
2170 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2171 self
.this
= newobj
.this
2174 self
._setOORInfo
(self
)
2176 def GetColourData(*args
, **kwargs
):
2178 GetColourData(self) -> ColourData
2180 Returns a reference to the `wx.ColourData` used by the dialog.
2182 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2185 class ColourDialogPtr(ColourDialog
):
2186 def __init__(self
, this
):
2188 if not hasattr(self
,"thisown"): self
.thisown
= 0
2189 self
.__class
__ = ColourDialog
2190 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2192 class DirDialog(Dialog
):
2194 wx.DirDialog allows the user to select a directory by browising the
2198 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2199 def __init__(self
, *args
, **kwargs
):
2201 __init__(self, Window parent, String message=DirSelectorPromptStr,
2202 String defaultPath=EmptyString, long style=0,
2203 Point pos=DefaultPosition, Size size=DefaultSize,
2204 String name=DirDialogNameStr) -> DirDialog
2206 Constructor. Use ShowModal method to show the dialog.
2208 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2209 self
.this
= newobj
.this
2212 self
._setOORInfo
(self
)
2214 def GetPath(*args
, **kwargs
):
2216 GetPath(self) -> String
2218 Returns the default or user-selected path.
2220 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2222 def GetMessage(*args
, **kwargs
):
2224 GetMessage(self) -> String
2226 Returns the message that will be displayed on the dialog.
2228 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2230 def GetStyle(*args
, **kwargs
):
2232 GetStyle(self) -> long
2234 Returns the dialog style.
2236 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2238 def SetMessage(*args
, **kwargs
):
2240 SetMessage(self, String message)
2242 Sets the message that will be displayed on the dialog.
2244 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2246 def SetPath(*args
, **kwargs
):
2248 SetPath(self, String path)
2250 Sets the default path.
2252 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2255 class DirDialogPtr(DirDialog
):
2256 def __init__(self
, this
):
2258 if not hasattr(self
,"thisown"): self
.thisown
= 0
2259 self
.__class
__ = DirDialog
2260 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2262 class FileDialog(Dialog
):
2264 wx.FileDialog allows the user to select one or more files from the
2268 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2269 def __init__(self
, *args
, **kwargs
):
2271 __init__(self, Window parent, String message=FileSelectorPromptStr,
2272 String defaultDir=EmptyString, String defaultFile=EmptyString,
2273 String wildcard=FileSelectorDefaultWildcardStr,
2274 long style=0, Point pos=DefaultPosition) -> FileDialog
2276 Constructor. Use ShowModal method to show the dialog.
2278 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2279 self
.this
= newobj
.this
2282 self
._setOORInfo
(self
)
2284 def SetMessage(*args
, **kwargs
):
2286 SetMessage(self, String message)
2288 Sets the message that will be displayed on the dialog.
2290 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2292 def SetPath(*args
, **kwargs
):
2294 SetPath(self, String path)
2296 Sets the path (the combined directory and filename that will be
2297 returned when the dialog is dismissed).
2299 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2301 def SetDirectory(*args
, **kwargs
):
2303 SetDirectory(self, String dir)
2305 Sets the default directory.
2307 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2309 def SetFilename(*args
, **kwargs
):
2311 SetFilename(self, String name)
2313 Sets the default filename.
2315 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2317 def SetWildcard(*args
, **kwargs
):
2319 SetWildcard(self, String wildCard)
2321 Sets the wildcard, which can contain multiple file types, for
2324 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2327 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2329 def SetStyle(*args
, **kwargs
):
2331 SetStyle(self, long style)
2333 Sets the dialog style.
2335 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2337 def SetFilterIndex(*args
, **kwargs
):
2339 SetFilterIndex(self, int filterIndex)
2341 Sets the default filter index, starting from zero.
2343 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2345 def GetMessage(*args
, **kwargs
):
2347 GetMessage(self) -> String
2349 Returns the message that will be displayed on the dialog.
2351 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2353 def GetPath(*args
, **kwargs
):
2355 GetPath(self) -> String
2357 Returns the full path (directory and filename) of the selected file.
2359 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2361 def GetDirectory(*args
, **kwargs
):
2363 GetDirectory(self) -> String
2365 Returns the default directory.
2367 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2369 def GetFilename(*args
, **kwargs
):
2371 GetFilename(self) -> String
2373 Returns the default filename.
2375 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2377 def GetWildcard(*args
, **kwargs
):
2379 GetWildcard(self) -> String
2381 Returns the file dialog wildcard.
2383 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2385 def GetStyle(*args
, **kwargs
):
2387 GetStyle(self) -> long
2389 Returns the dialog style.
2391 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2393 def GetFilterIndex(*args
, **kwargs
):
2395 GetFilterIndex(self) -> int
2397 Returns the index into the list of filters supplied, optionally, in
2398 the wildcard parameter. Before the dialog is shown, this is the index
2399 which will be used when the dialog is first displayed. After the
2400 dialog is shown, this is the index selected by the user.
2402 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2404 def GetFilenames(*args
, **kwargs
):
2406 GetFilenames(self) -> PyObject
2408 Returns a list of filenames chosen in the dialog. This function
2409 should only be used with the dialogs which have wx.MULTIPLE style, use
2410 GetFilename for the others.
2412 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2414 def GetPaths(*args
, **kwargs
):
2416 GetPaths(self) -> PyObject
2418 Fills the array paths with the full paths of the files chosen. This
2419 function should only be used with the dialogs which have wx.MULTIPLE
2420 style, use GetPath for the others.
2422 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2425 class FileDialogPtr(FileDialog
):
2426 def __init__(self
, this
):
2428 if not hasattr(self
,"thisown"): self
.thisown
= 0
2429 self
.__class
__ = FileDialog
2430 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2432 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2433 class MultiChoiceDialog(Dialog
):
2434 """A simple dialog with a multi selection listbox."""
2436 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2437 def __init__(self
, *args
, **kwargs
):
2439 __init__(Window parent, String message, String caption,
2440 List choices=[], long style=CHOICEDLG_STYLE,
2441 Point pos=DefaultPosition) -> MultiChoiceDialog
2443 Constructor. Use ShowModal method to show the dialog.
2445 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2446 self
.this
= newobj
.this
2449 self
._setOORInfo
(self
)
2451 def SetSelections(*args
, **kwargs
):
2453 SetSelections(List selections)
2455 Specify the items in the list that should be selected, using a list of
2458 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2460 def GetSelections(*args
, **kwargs
):
2462 GetSelections() -> [selections]
2464 Returns a list of integers representing the items that are selected.
2466 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2469 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2470 def __init__(self
, this
):
2472 if not hasattr(self
,"thisown"): self
.thisown
= 0
2473 self
.__class
__ = MultiChoiceDialog
2474 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2476 class SingleChoiceDialog(Dialog
):
2477 """A simple dialog with a single selection listbox."""
2479 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2480 def __init__(self
, *args
, **kwargs
):
2482 __init__(Window parent, String message, String caption,
2483 List choices=[], long style=CHOICEDLG_STYLE,
2484 Point pos=DefaultPosition) -> SingleChoiceDialog
2486 Constructor. Use ShowModal method to show the dialog.
2488 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2489 self
.this
= newobj
.this
2492 self
._setOORInfo
(self
)
2494 def GetSelection(*args
, **kwargs
):
2496 GetSelection(self) -> int
2498 Get the index of teh currently selected item.
2500 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2502 def GetStringSelection(*args
, **kwargs
):
2504 GetStringSelection(self) -> String
2506 Returns the string value of the currently selected item
2508 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2510 def SetSelection(*args
, **kwargs
):
2512 SetSelection(self, int sel)
2514 Set the current selected item to sel
2516 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2519 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2520 def __init__(self
, this
):
2522 if not hasattr(self
,"thisown"): self
.thisown
= 0
2523 self
.__class
__ = SingleChoiceDialog
2524 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2526 class TextEntryDialog(Dialog
):
2527 """A dialog with text control, [ok] and [cancel] buttons"""
2529 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2530 def __init__(self
, *args
, **kwargs
):
2532 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2533 String defaultValue=EmptyString,
2534 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2536 Constructor. Use ShowModal method to show the dialog.
2538 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2539 self
.this
= newobj
.this
2542 self
._setOORInfo
(self
)
2544 def GetValue(*args
, **kwargs
):
2546 GetValue(self) -> String
2548 Returns the text that the user has entered if the user has pressed OK,
2549 or the original value if the user has pressed Cancel.
2551 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2553 def SetValue(*args
, **kwargs
):
2555 SetValue(self, String value)
2557 Sets the default text value.
2559 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2562 class TextEntryDialogPtr(TextEntryDialog
):
2563 def __init__(self
, this
):
2565 if not hasattr(self
,"thisown"): self
.thisown
= 0
2566 self
.__class
__ = TextEntryDialog
2567 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2569 class FontData(_core
.Object
):
2571 This class holds a variety of information related to font dialogs and
2572 is used to transfer settings to and results from a `wx.FontDialog`.
2575 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2576 def __init__(self
, *args
, **kwargs
):
2578 __init__(self) -> FontData
2580 This class holds a variety of information related to font dialogs and
2581 is used to transfer settings to and results from a `wx.FontDialog`.
2583 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2584 self
.this
= newobj
.this
2587 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2590 if self
.thisown
: destroy(self
)
2593 def EnableEffects(*args
, **kwargs
):
2595 EnableEffects(self, bool enable)
2597 Enables or disables 'effects' under MS Windows only. This refers to
2598 the controls for manipulating colour, strikeout and underline
2599 properties. The default value is true.
2601 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2603 def GetAllowSymbols(*args
, **kwargs
):
2605 GetAllowSymbols(self) -> bool
2607 Under MS Windows, returns a flag determining whether symbol fonts can
2608 be selected. Has no effect on other platforms. The default value is
2611 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2613 def GetColour(*args
, **kwargs
):
2615 GetColour(self) -> Colour
2617 Gets the colour associated with the font dialog. The default value is
2620 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2622 def GetChosenFont(*args
, **kwargs
):
2624 GetChosenFont(self) -> Font
2626 Gets the font chosen by the user.
2628 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2630 def GetEnableEffects(*args
, **kwargs
):
2632 GetEnableEffects(self) -> bool
2634 Determines whether 'effects' are enabled under Windows.
2636 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2638 def GetInitialFont(*args
, **kwargs
):
2640 GetInitialFont(self) -> Font
2642 Gets the font that will be initially used by the font dialog. This
2643 should have previously been set by the application.
2645 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2647 def GetShowHelp(*args
, **kwargs
):
2649 GetShowHelp(self) -> bool
2651 Returns true if the Help button will be shown (Windows only). The
2652 default value is false.
2654 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2656 def SetAllowSymbols(*args
, **kwargs
):
2658 SetAllowSymbols(self, bool allowSymbols)
2660 Under MS Windows, determines whether symbol fonts can be selected. Has
2661 no effect on other platforms. The default value is true.
2663 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2665 def SetChosenFont(*args
, **kwargs
):
2667 SetChosenFont(self, Font font)
2669 Sets the font that will be returned to the user (normally for internal
2672 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2674 def SetColour(*args
, **kwargs
):
2676 SetColour(self, Colour colour)
2678 Sets the colour that will be used for the font foreground colour. The
2679 default colour is black.
2681 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2683 def SetInitialFont(*args
, **kwargs
):
2685 SetInitialFont(self, Font font)
2687 Sets the font that will be initially used by the font dialog.
2689 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2691 def SetRange(*args
, **kwargs
):
2693 SetRange(self, int min, int max)
2695 Sets the valid range for the font point size (Windows only). The
2696 default is 0, 0 (unrestricted range).
2698 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2700 def SetShowHelp(*args
, **kwargs
):
2702 SetShowHelp(self, bool showHelp)
2704 Determines whether the Help button will be displayed in the font
2705 dialog (Windows only). The default value is false.
2707 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2710 class FontDataPtr(FontData
):
2711 def __init__(self
, this
):
2713 if not hasattr(self
,"thisown"): self
.thisown
= 0
2714 self
.__class
__ = FontData
2715 _windows_
.FontData_swigregister(FontDataPtr
)
2717 class FontDialog(Dialog
):
2719 wx.FontDialog allows the user to select a system font and its attributes.
2725 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2726 def __init__(self
, *args
, **kwargs
):
2728 __init__(self, Window parent, FontData data) -> FontDialog
2730 Constructor. Pass a parent window and the `wx.FontData` object to be
2731 used to initialize the dialog controls. Call `ShowModal` to display
2732 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2733 results with via the `wx.FontData` returned by `GetFontData`.
2735 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2736 self
.this
= newobj
.this
2739 self
._setOORInfo
(self
)
2741 def GetFontData(*args
, **kwargs
):
2743 GetFontData(self) -> FontData
2745 Returns a reference to the internal `wx.FontData` used by the
2748 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2751 class FontDialogPtr(FontDialog
):
2752 def __init__(self
, this
):
2754 if not hasattr(self
,"thisown"): self
.thisown
= 0
2755 self
.__class
__ = FontDialog
2756 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2758 class MessageDialog(Dialog
):
2760 This class provides a simple dialog that shows a single or multi-line
2761 message, with a choice of OK, Yes, No and/or Cancel buttons.
2764 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2765 def __init__(self
, *args
, **kwargs
):
2767 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2768 long style=wxOK|wxCANCEL|wxCENTRE,
2769 Point pos=DefaultPosition) -> MessageDialog
2771 Constructor, use `ShowModal` to display the dialog.
2773 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2774 self
.this
= newobj
.this
2777 self
._setOORInfo
(self
)
2780 class MessageDialogPtr(MessageDialog
):
2781 def __init__(self
, this
):
2783 if not hasattr(self
,"thisown"): self
.thisown
= 0
2784 self
.__class
__ = MessageDialog
2785 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2787 class ProgressDialog(Frame
):
2789 A dialog that shows a short message and a progress bar. Optionally, it
2790 can display an ABORT button.
2793 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2794 def __init__(self
, *args
, **kwargs
):
2796 __init__(self, String title, String message, int maximum=100, Window parent=None,
2797 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2799 Constructor. Creates the dialog, displays it and disables user input
2800 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2803 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2804 self
.this
= newobj
.this
2807 self
._setOORInfo
(self
)
2809 def Update(*args
, **kwargs
):
2811 Update(self, int value, String newmsg=EmptyString) -> bool
2813 Updates the dialog, setting the progress bar to the new value and, if
2814 given changes the message above it. The value given should be less
2815 than or equal to the maximum value given to the constructor and the
2816 dialog is closed if it is equal to the maximum. Returns true unless
2817 the Cancel button has been pressed.
2819 If false is returned, the application can either immediately destroy
2820 the dialog or ask the user for the confirmation and if the abort is
2821 not confirmed the dialog may be resumed with Resume function.
2823 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2825 def Resume(*args
, **kwargs
):
2829 Can be used to continue with the dialog, after the user had chosen to
2832 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2835 class ProgressDialogPtr(ProgressDialog
):
2836 def __init__(self
, this
):
2838 if not hasattr(self
,"thisown"): self
.thisown
= 0
2839 self
.__class
__ = ProgressDialog
2840 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2842 FR_DOWN
= _windows_
.FR_DOWN
2843 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2844 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2845 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2846 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2847 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2848 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2849 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2850 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2851 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2852 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2853 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2854 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2855 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2856 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2857 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2858 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2860 # For backwards compatibility. Should they be removed?
2861 EVT_COMMAND_FIND
= EVT_FIND
2862 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2863 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2864 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2865 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2867 class FindDialogEvent(_core
.CommandEvent
):
2868 """Events for the FindReplaceDialog"""
2870 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2871 def __init__(self
, *args
, **kwargs
):
2873 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2875 Events for the FindReplaceDialog
2877 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2878 self
.this
= newobj
.this
2881 def GetFlags(*args
, **kwargs
):
2883 GetFlags(self) -> int
2885 Get the currently selected flags: this is the combination of
2886 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2888 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2890 def GetFindString(*args
, **kwargs
):
2892 GetFindString(self) -> String
2894 Return the string to find (never empty).
2896 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2898 def GetReplaceString(*args
, **kwargs
):
2900 GetReplaceString(self) -> String
2902 Return the string to replace the search string with (only for replace
2903 and replace all events).
2905 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2907 def GetDialog(*args
, **kwargs
):
2909 GetDialog(self) -> FindReplaceDialog
2911 Return the pointer to the dialog which generated this event.
2913 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2915 def SetFlags(*args
, **kwargs
):
2916 """SetFlags(self, int flags)"""
2917 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2919 def SetFindString(*args
, **kwargs
):
2920 """SetFindString(self, String str)"""
2921 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2923 def SetReplaceString(*args
, **kwargs
):
2924 """SetReplaceString(self, String str)"""
2925 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2928 class FindDialogEventPtr(FindDialogEvent
):
2929 def __init__(self
, this
):
2931 if not hasattr(self
,"thisown"): self
.thisown
= 0
2932 self
.__class
__ = FindDialogEvent
2933 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2935 class FindReplaceData(_core
.Object
):
2937 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2938 to initialize the dialog with the default values and will keep the
2939 last values from the dialog when it is closed. It is also updated each
2940 time a `wx.FindDialogEvent` is generated so instead of using the
2941 `wx.FindDialogEvent` methods you can also directly query this object.
2943 Note that all SetXXX() methods may only be called before showing the
2944 dialog and calling them has no effect later.
2947 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2948 def __init__(self
, *args
, **kwargs
):
2950 __init__(self, int flags=0) -> FindReplaceData
2952 Constuctor initializes the flags to default value (0).
2954 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
2955 self
.this
= newobj
.this
2958 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
2961 if self
.thisown
: destroy(self
)
2964 def GetFindString(*args
, **kwargs
):
2966 GetFindString(self) -> String
2968 Get the string to find.
2970 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2972 def GetReplaceString(*args
, **kwargs
):
2974 GetReplaceString(self) -> String
2976 Get the replacement string.
2978 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2980 def GetFlags(*args
, **kwargs
):
2982 GetFlags(self) -> int
2984 Get the combination of flag values.
2986 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
2988 def SetFlags(*args
, **kwargs
):
2990 SetFlags(self, int flags)
2992 Set the flags to use to initialize the controls of the dialog.
2994 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
2996 def SetFindString(*args
, **kwargs
):
2998 SetFindString(self, String str)
3000 Set the string to find (used as initial value by the dialog).
3002 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3004 def SetReplaceString(*args
, **kwargs
):
3006 SetReplaceString(self, String str)
3008 Set the replacement string (used as initial value by the dialog).
3010 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3013 class FindReplaceDataPtr(FindReplaceData
):
3014 def __init__(self
, this
):
3016 if not hasattr(self
,"thisown"): self
.thisown
= 0
3017 self
.__class
__ = FindReplaceData
3018 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3020 class FindReplaceDialog(Dialog
):
3022 wx.FindReplaceDialog is a standard modeless dialog which is used to
3023 allow the user to search for some text (and possibly replace it with
3024 something else). The actual searching is supposed to be done in the
3025 owner window which is the parent of this dialog. Note that it means
3026 that unlike for the other standard dialogs this one must have a parent
3027 window. Also note that there is no way to use this dialog in a modal
3028 way; it is always, by design and implementation, modeless.
3031 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3032 def __init__(self
, *args
, **kwargs
):
3034 __init__(self, Window parent, FindReplaceData data, String title,
3035 int style=0) -> FindReplaceDialog
3037 Create a FindReplaceDialog. The parent and data parameters must be
3038 non-None. Use Show to display the dialog.
3040 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3041 self
.this
= newobj
.this
3044 self
._setOORInfo
(self
)
3046 def Create(*args
, **kwargs
):
3048 Create(self, Window parent, FindReplaceData data, String title,
3049 int style=0) -> bool
3051 Create the dialog, for 2-phase create.
3053 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3055 def GetData(*args
, **kwargs
):
3057 GetData(self) -> FindReplaceData
3059 Get the FindReplaceData object used by this dialog.
3061 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3063 def SetData(*args
, **kwargs
):
3065 SetData(self, FindReplaceData data)
3067 Set the FindReplaceData object used by this dialog.
3069 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3072 class FindReplaceDialogPtr(FindReplaceDialog
):
3073 def __init__(self
, this
):
3075 if not hasattr(self
,"thisown"): self
.thisown
= 0
3076 self
.__class
__ = FindReplaceDialog
3077 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3079 def PreFindReplaceDialog(*args
, **kwargs
):
3081 PreFindReplaceDialog() -> FindReplaceDialog
3083 Precreate a FindReplaceDialog for 2-phase creation
3085 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3089 #---------------------------------------------------------------------------
3091 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3092 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3093 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3094 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3095 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3096 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3097 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3098 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3099 class MDIParentFrame(Frame
):
3101 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3102 def __init__(self
, *args
, **kwargs
):
3104 __init__(self, Window parent, int id=-1, String title=EmptyString,
3105 Point pos=DefaultPosition, Size size=DefaultSize,
3106 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3107 String name=FrameNameStr) -> MDIParentFrame
3109 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3110 self
.this
= newobj
.this
3113 self
._setOORInfo
(self
)
3115 def Create(*args
, **kwargs
):
3117 Create(self, Window parent, int id=-1, String title=EmptyString,
3118 Point pos=DefaultPosition, Size size=DefaultSize,
3119 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3120 String name=FrameNameStr) -> bool
3122 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3124 def ActivateNext(*args
, **kwargs
):
3125 """ActivateNext(self)"""
3126 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3128 def ActivatePrevious(*args
, **kwargs
):
3129 """ActivatePrevious(self)"""
3130 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3132 def ArrangeIcons(*args
, **kwargs
):
3133 """ArrangeIcons(self)"""
3134 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3136 def Cascade(*args
, **kwargs
):
3138 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3140 def GetActiveChild(*args
, **kwargs
):
3141 """GetActiveChild(self) -> MDIChildFrame"""
3142 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3144 def GetClientWindow(*args
, **kwargs
):
3145 """GetClientWindow(self) -> MDIClientWindow"""
3146 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3148 def GetToolBar(*args
, **kwargs
):
3149 """GetToolBar(self) -> Window"""
3150 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3152 def Tile(*args
, **kwargs
):
3154 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3157 class MDIParentFramePtr(MDIParentFrame
):
3158 def __init__(self
, this
):
3160 if not hasattr(self
,"thisown"): self
.thisown
= 0
3161 self
.__class
__ = MDIParentFrame
3162 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3164 def PreMDIParentFrame(*args
, **kwargs
):
3165 """PreMDIParentFrame() -> MDIParentFrame"""
3166 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3170 class MDIChildFrame(Frame
):
3172 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3173 def __init__(self
, *args
, **kwargs
):
3175 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3176 Point pos=DefaultPosition, Size size=DefaultSize,
3177 long style=DEFAULT_FRAME_STYLE,
3178 String name=FrameNameStr) -> MDIChildFrame
3180 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3181 self
.this
= newobj
.this
3184 self
._setOORInfo
(self
)
3186 def Create(*args
, **kwargs
):
3188 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3189 Point pos=DefaultPosition, Size size=DefaultSize,
3190 long style=DEFAULT_FRAME_STYLE,
3191 String name=FrameNameStr) -> bool
3193 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3195 def Activate(*args
, **kwargs
):
3196 """Activate(self)"""
3197 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3199 def Maximize(*args
, **kwargs
):
3200 """Maximize(self, bool maximize)"""
3201 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3203 def Restore(*args
, **kwargs
):
3205 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3208 class MDIChildFramePtr(MDIChildFrame
):
3209 def __init__(self
, this
):
3211 if not hasattr(self
,"thisown"): self
.thisown
= 0
3212 self
.__class
__ = MDIChildFrame
3213 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3215 def PreMDIChildFrame(*args
, **kwargs
):
3216 """PreMDIChildFrame() -> MDIChildFrame"""
3217 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3221 class MDIClientWindow(_core
.Window
):
3223 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3224 def __init__(self
, *args
, **kwargs
):
3225 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3226 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3227 self
.this
= newobj
.this
3230 self
._setOORInfo
(self
)
3232 def Create(*args
, **kwargs
):
3233 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3234 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3237 class MDIClientWindowPtr(MDIClientWindow
):
3238 def __init__(self
, this
):
3240 if not hasattr(self
,"thisown"): self
.thisown
= 0
3241 self
.__class
__ = MDIClientWindow
3242 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3244 def PreMDIClientWindow(*args
, **kwargs
):
3245 """PreMDIClientWindow() -> MDIClientWindow"""
3246 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3250 #---------------------------------------------------------------------------
3252 class PyWindow(_core
.Window
):
3254 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3255 def __init__(self
, *args
, **kwargs
):
3257 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3258 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3260 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3261 self
.this
= newobj
.this
3264 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3266 def _setCallbackInfo(*args
, **kwargs
):
3267 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3268 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3270 def SetBestSize(*args
, **kwargs
):
3271 """SetBestSize(self, Size size)"""
3272 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3274 def base_DoMoveWindow(*args
, **kwargs
):
3275 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3276 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3278 def base_DoSetSize(*args
, **kwargs
):
3279 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3280 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3282 def base_DoSetClientSize(*args
, **kwargs
):
3283 """base_DoSetClientSize(self, int width, int height)"""
3284 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3286 def base_DoSetVirtualSize(*args
, **kwargs
):
3287 """base_DoSetVirtualSize(self, int x, int y)"""
3288 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3290 def base_DoGetSize(*args
, **kwargs
):
3291 """base_DoGetSize() -> (width, height)"""
3292 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3294 def base_DoGetClientSize(*args
, **kwargs
):
3295 """base_DoGetClientSize() -> (width, height)"""
3296 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3298 def base_DoGetPosition(*args
, **kwargs
):
3299 """base_DoGetPosition() -> (x,y)"""
3300 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3302 def base_DoGetVirtualSize(*args
, **kwargs
):
3303 """base_DoGetVirtualSize(self) -> Size"""
3304 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3306 def base_DoGetBestSize(*args
, **kwargs
):
3307 """base_DoGetBestSize(self) -> Size"""
3308 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3310 def base_InitDialog(*args
, **kwargs
):
3311 """base_InitDialog(self)"""
3312 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3314 def base_TransferDataToWindow(*args
, **kwargs
):
3315 """base_TransferDataToWindow(self) -> bool"""
3316 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3318 def base_TransferDataFromWindow(*args
, **kwargs
):
3319 """base_TransferDataFromWindow(self) -> bool"""
3320 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3322 def base_Validate(*args
, **kwargs
):
3323 """base_Validate(self) -> bool"""
3324 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3326 def base_AcceptsFocus(*args
, **kwargs
):
3327 """base_AcceptsFocus(self) -> bool"""
3328 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3330 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3331 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3332 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3334 def base_GetMaxSize(*args
, **kwargs
):
3335 """base_GetMaxSize(self) -> Size"""
3336 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3338 def base_AddChild(*args
, **kwargs
):
3339 """base_AddChild(self, Window child)"""
3340 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3342 def base_RemoveChild(*args
, **kwargs
):
3343 """base_RemoveChild(self, Window child)"""
3344 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3346 def base_ShouldInheritColours(*args
, **kwargs
):
3347 """base_ShouldInheritColours(self) -> bool"""
3348 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3350 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3351 """base_ApplyParentThemeBackground(self, Colour c)"""
3352 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3354 def base_GetDefaultAttributes(*args
, **kwargs
):
3355 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3356 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3359 class PyWindowPtr(PyWindow
):
3360 def __init__(self
, this
):
3362 if not hasattr(self
,"thisown"): self
.thisown
= 0
3363 self
.__class
__ = PyWindow
3364 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3366 def PrePyWindow(*args
, **kwargs
):
3367 """PrePyWindow() -> PyWindow"""
3368 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3372 class PyPanel(Panel
):
3374 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3375 def __init__(self
, *args
, **kwargs
):
3377 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3378 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3380 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3381 self
.this
= newobj
.this
3384 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3386 def _setCallbackInfo(*args
, **kwargs
):
3387 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3388 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3390 def SetBestSize(*args
, **kwargs
):
3391 """SetBestSize(self, Size size)"""
3392 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3394 def base_DoMoveWindow(*args
, **kwargs
):
3395 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3396 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3398 def base_DoSetSize(*args
, **kwargs
):
3399 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3400 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3402 def base_DoSetClientSize(*args
, **kwargs
):
3403 """base_DoSetClientSize(self, int width, int height)"""
3404 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3406 def base_DoSetVirtualSize(*args
, **kwargs
):
3407 """base_DoSetVirtualSize(self, int x, int y)"""
3408 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3410 def base_DoGetSize(*args
, **kwargs
):
3411 """base_DoGetSize() -> (width, height)"""
3412 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3414 def base_DoGetClientSize(*args
, **kwargs
):
3415 """base_DoGetClientSize() -> (width, height)"""
3416 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3418 def base_DoGetPosition(*args
, **kwargs
):
3419 """base_DoGetPosition() -> (x,y)"""
3420 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3422 def base_DoGetVirtualSize(*args
, **kwargs
):
3423 """base_DoGetVirtualSize(self) -> Size"""
3424 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3426 def base_DoGetBestSize(*args
, **kwargs
):
3427 """base_DoGetBestSize(self) -> Size"""
3428 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3430 def base_InitDialog(*args
, **kwargs
):
3431 """base_InitDialog(self)"""
3432 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3434 def base_TransferDataToWindow(*args
, **kwargs
):
3435 """base_TransferDataToWindow(self) -> bool"""
3436 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3438 def base_TransferDataFromWindow(*args
, **kwargs
):
3439 """base_TransferDataFromWindow(self) -> bool"""
3440 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3442 def base_Validate(*args
, **kwargs
):
3443 """base_Validate(self) -> bool"""
3444 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3446 def base_AcceptsFocus(*args
, **kwargs
):
3447 """base_AcceptsFocus(self) -> bool"""
3448 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3450 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3451 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3452 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3454 def base_GetMaxSize(*args
, **kwargs
):
3455 """base_GetMaxSize(self) -> Size"""
3456 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3458 def base_AddChild(*args
, **kwargs
):
3459 """base_AddChild(self, Window child)"""
3460 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3462 def base_RemoveChild(*args
, **kwargs
):
3463 """base_RemoveChild(self, Window child)"""
3464 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3466 def base_ShouldInheritColours(*args
, **kwargs
):
3467 """base_ShouldInheritColours(self) -> bool"""
3468 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3470 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3471 """base_ApplyParentThemeBackground(self, Colour c)"""
3472 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3474 def base_GetDefaultAttributes(*args
, **kwargs
):
3475 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3476 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3479 class PyPanelPtr(PyPanel
):
3480 def __init__(self
, this
):
3482 if not hasattr(self
,"thisown"): self
.thisown
= 0
3483 self
.__class
__ = PyPanel
3484 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3486 def PrePyPanel(*args
, **kwargs
):
3487 """PrePyPanel() -> PyPanel"""
3488 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3492 class PyScrolledWindow(ScrolledWindow
):
3494 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3495 def __init__(self
, *args
, **kwargs
):
3497 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3498 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3500 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3501 self
.this
= newobj
.this
3504 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3506 def _setCallbackInfo(*args
, **kwargs
):
3507 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3508 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3510 def SetBestSize(*args
, **kwargs
):
3511 """SetBestSize(self, Size size)"""
3512 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3514 def base_DoMoveWindow(*args
, **kwargs
):
3515 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3516 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3518 def base_DoSetSize(*args
, **kwargs
):
3519 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3520 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3522 def base_DoSetClientSize(*args
, **kwargs
):
3523 """base_DoSetClientSize(self, int width, int height)"""
3524 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3526 def base_DoSetVirtualSize(*args
, **kwargs
):
3527 """base_DoSetVirtualSize(self, int x, int y)"""
3528 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3530 def base_DoGetSize(*args
, **kwargs
):
3531 """base_DoGetSize() -> (width, height)"""
3532 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3534 def base_DoGetClientSize(*args
, **kwargs
):
3535 """base_DoGetClientSize() -> (width, height)"""
3536 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3538 def base_DoGetPosition(*args
, **kwargs
):
3539 """base_DoGetPosition() -> (x,y)"""
3540 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3542 def base_DoGetVirtualSize(*args
, **kwargs
):
3543 """base_DoGetVirtualSize(self) -> Size"""
3544 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3546 def base_DoGetBestSize(*args
, **kwargs
):
3547 """base_DoGetBestSize(self) -> Size"""
3548 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3550 def base_InitDialog(*args
, **kwargs
):
3551 """base_InitDialog(self)"""
3552 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3554 def base_TransferDataToWindow(*args
, **kwargs
):
3555 """base_TransferDataToWindow(self) -> bool"""
3556 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3558 def base_TransferDataFromWindow(*args
, **kwargs
):
3559 """base_TransferDataFromWindow(self) -> bool"""
3560 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3562 def base_Validate(*args
, **kwargs
):
3563 """base_Validate(self) -> bool"""
3564 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3566 def base_AcceptsFocus(*args
, **kwargs
):
3567 """base_AcceptsFocus(self) -> bool"""
3568 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3570 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3571 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3572 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3574 def base_GetMaxSize(*args
, **kwargs
):
3575 """base_GetMaxSize(self) -> Size"""
3576 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3578 def base_AddChild(*args
, **kwargs
):
3579 """base_AddChild(self, Window child)"""
3580 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3582 def base_RemoveChild(*args
, **kwargs
):
3583 """base_RemoveChild(self, Window child)"""
3584 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3586 def base_ShouldInheritColours(*args
, **kwargs
):
3587 """base_ShouldInheritColours(self) -> bool"""
3588 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3590 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3591 """base_ApplyParentThemeBackground(self, Colour c)"""
3592 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3594 def base_GetDefaultAttributes(*args
, **kwargs
):
3595 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3596 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3599 class PyScrolledWindowPtr(PyScrolledWindow
):
3600 def __init__(self
, this
):
3602 if not hasattr(self
,"thisown"): self
.thisown
= 0
3603 self
.__class
__ = PyScrolledWindow
3604 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3606 def PrePyScrolledWindow(*args
, **kwargs
):
3607 """PrePyScrolledWindow() -> PyScrolledWindow"""
3608 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3612 #---------------------------------------------------------------------------
3614 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3615 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3616 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3617 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3618 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3619 class PrintData(_core
.Object
):
3621 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3622 def __init__(self
, *args
):
3624 __init__(self) -> PrintData
3625 __init__(self, PrintData data) -> PrintData
3627 newobj
= _windows_
.new_PrintData(*args
)
3628 self
.this
= newobj
.this
3631 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3634 if self
.thisown
: destroy(self
)
3637 def GetNoCopies(*args
, **kwargs
):
3638 """GetNoCopies(self) -> int"""
3639 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3641 def GetCollate(*args
, **kwargs
):
3642 """GetCollate(self) -> bool"""
3643 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3645 def GetOrientation(*args
, **kwargs
):
3646 """GetOrientation(self) -> int"""
3647 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3649 def Ok(*args
, **kwargs
):
3650 """Ok(self) -> bool"""
3651 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3653 def GetPrinterName(*args
, **kwargs
):
3654 """GetPrinterName(self) -> String"""
3655 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3657 def GetColour(*args
, **kwargs
):
3658 """GetColour(self) -> bool"""
3659 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3661 def GetDuplex(*args
, **kwargs
):
3662 """GetDuplex(self) -> int"""
3663 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3665 def GetPaperId(*args
, **kwargs
):
3666 """GetPaperId(self) -> int"""
3667 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3669 def GetPaperSize(*args
, **kwargs
):
3670 """GetPaperSize(self) -> Size"""
3671 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3673 def GetQuality(*args
, **kwargs
):
3674 """GetQuality(self) -> int"""
3675 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3677 def SetNoCopies(*args
, **kwargs
):
3678 """SetNoCopies(self, int v)"""
3679 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3681 def SetCollate(*args
, **kwargs
):
3682 """SetCollate(self, bool flag)"""
3683 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3685 def SetOrientation(*args
, **kwargs
):
3686 """SetOrientation(self, int orient)"""
3687 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3689 def SetPrinterName(*args
, **kwargs
):
3690 """SetPrinterName(self, String name)"""
3691 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3693 def SetColour(*args
, **kwargs
):
3694 """SetColour(self, bool colour)"""
3695 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3697 def SetDuplex(*args
, **kwargs
):
3698 """SetDuplex(self, int duplex)"""
3699 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3701 def SetPaperId(*args
, **kwargs
):
3702 """SetPaperId(self, int sizeId)"""
3703 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3705 def SetPaperSize(*args
, **kwargs
):
3706 """SetPaperSize(self, Size sz)"""
3707 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3709 def SetQuality(*args
, **kwargs
):
3710 """SetQuality(self, int quality)"""
3711 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3713 def GetPrinterCommand(*args
, **kwargs
):
3714 """GetPrinterCommand(self) -> String"""
3715 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3717 def GetPrinterOptions(*args
, **kwargs
):
3718 """GetPrinterOptions(self) -> String"""
3719 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3721 def GetPreviewCommand(*args
, **kwargs
):
3722 """GetPreviewCommand(self) -> String"""
3723 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3725 def GetFilename(*args
, **kwargs
):
3726 """GetFilename(self) -> String"""
3727 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3729 def GetFontMetricPath(*args
, **kwargs
):
3730 """GetFontMetricPath(self) -> String"""
3731 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3733 def GetPrinterScaleX(*args
, **kwargs
):
3734 """GetPrinterScaleX(self) -> double"""
3735 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3737 def GetPrinterScaleY(*args
, **kwargs
):
3738 """GetPrinterScaleY(self) -> double"""
3739 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3741 def GetPrinterTranslateX(*args
, **kwargs
):
3742 """GetPrinterTranslateX(self) -> long"""
3743 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3745 def GetPrinterTranslateY(*args
, **kwargs
):
3746 """GetPrinterTranslateY(self) -> long"""
3747 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3749 def GetPrintMode(*args
, **kwargs
):
3750 """GetPrintMode(self) -> int"""
3751 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3753 def SetPrinterCommand(*args
, **kwargs
):
3754 """SetPrinterCommand(self, String command)"""
3755 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3757 def SetPrinterOptions(*args
, **kwargs
):
3758 """SetPrinterOptions(self, String options)"""
3759 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3761 def SetPreviewCommand(*args
, **kwargs
):
3762 """SetPreviewCommand(self, String command)"""
3763 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3765 def SetFilename(*args
, **kwargs
):
3766 """SetFilename(self, String filename)"""
3767 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3769 def SetFontMetricPath(*args
, **kwargs
):
3770 """SetFontMetricPath(self, String path)"""
3771 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3773 def SetPrinterScaleX(*args
, **kwargs
):
3774 """SetPrinterScaleX(self, double x)"""
3775 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3777 def SetPrinterScaleY(*args
, **kwargs
):
3778 """SetPrinterScaleY(self, double y)"""
3779 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3781 def SetPrinterScaling(*args
, **kwargs
):
3782 """SetPrinterScaling(self, double x, double y)"""
3783 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3785 def SetPrinterTranslateX(*args
, **kwargs
):
3786 """SetPrinterTranslateX(self, long x)"""
3787 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3789 def SetPrinterTranslateY(*args
, **kwargs
):
3790 """SetPrinterTranslateY(self, long y)"""
3791 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3793 def SetPrinterTranslation(*args
, **kwargs
):
3794 """SetPrinterTranslation(self, long x, long y)"""
3795 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3797 def SetPrintMode(*args
, **kwargs
):
3798 """SetPrintMode(self, int printMode)"""
3799 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3801 def GetOutputStream(*args
, **kwargs
):
3802 """GetOutputStream(self) -> OutputStream"""
3803 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3805 def SetOutputStream(*args
, **kwargs
):
3806 """SetOutputStream(self, OutputStream outputstream)"""
3807 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3809 def __nonzero__(self
): return self
.Ok()
3811 class PrintDataPtr(PrintData
):
3812 def __init__(self
, this
):
3814 if not hasattr(self
,"thisown"): self
.thisown
= 0
3815 self
.__class
__ = PrintData
3816 _windows_
.PrintData_swigregister(PrintDataPtr
)
3817 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3818 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3820 class PageSetupDialogData(_core
.Object
):
3822 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3823 def __init__(self
, *args
):
3825 __init__(self) -> PageSetupDialogData
3826 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3828 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3829 self
.this
= newobj
.this
3832 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3835 if self
.thisown
: destroy(self
)
3838 def EnableHelp(*args
, **kwargs
):
3839 """EnableHelp(self, bool flag)"""
3840 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3842 def EnableMargins(*args
, **kwargs
):
3843 """EnableMargins(self, bool flag)"""
3844 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3846 def EnableOrientation(*args
, **kwargs
):
3847 """EnableOrientation(self, bool flag)"""
3848 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3850 def EnablePaper(*args
, **kwargs
):
3851 """EnablePaper(self, bool flag)"""
3852 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3854 def EnablePrinter(*args
, **kwargs
):
3855 """EnablePrinter(self, bool flag)"""
3856 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3858 def GetDefaultMinMargins(*args
, **kwargs
):
3859 """GetDefaultMinMargins(self) -> bool"""
3860 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3862 def GetEnableMargins(*args
, **kwargs
):
3863 """GetEnableMargins(self) -> bool"""
3864 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3866 def GetEnableOrientation(*args
, **kwargs
):
3867 """GetEnableOrientation(self) -> bool"""
3868 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3870 def GetEnablePaper(*args
, **kwargs
):
3871 """GetEnablePaper(self) -> bool"""
3872 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3874 def GetEnablePrinter(*args
, **kwargs
):
3875 """GetEnablePrinter(self) -> bool"""
3876 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3878 def GetEnableHelp(*args
, **kwargs
):
3879 """GetEnableHelp(self) -> bool"""
3880 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3882 def GetDefaultInfo(*args
, **kwargs
):
3883 """GetDefaultInfo(self) -> bool"""
3884 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3886 def GetMarginTopLeft(*args
, **kwargs
):
3887 """GetMarginTopLeft(self) -> Point"""
3888 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3890 def GetMarginBottomRight(*args
, **kwargs
):
3891 """GetMarginBottomRight(self) -> Point"""
3892 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3894 def GetMinMarginTopLeft(*args
, **kwargs
):
3895 """GetMinMarginTopLeft(self) -> Point"""
3896 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3898 def GetMinMarginBottomRight(*args
, **kwargs
):
3899 """GetMinMarginBottomRight(self) -> Point"""
3900 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3902 def GetPaperId(*args
, **kwargs
):
3903 """GetPaperId(self) -> int"""
3904 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3906 def GetPaperSize(*args
, **kwargs
):
3907 """GetPaperSize(self) -> Size"""
3908 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3910 def GetPrintData(*args
, **kwargs
):
3911 """GetPrintData(self) -> PrintData"""
3912 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3914 def Ok(*args
, **kwargs
):
3915 """Ok(self) -> bool"""
3916 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3918 def SetDefaultInfo(*args
, **kwargs
):
3919 """SetDefaultInfo(self, bool flag)"""
3920 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3922 def SetDefaultMinMargins(*args
, **kwargs
):
3923 """SetDefaultMinMargins(self, bool flag)"""
3924 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3926 def SetMarginTopLeft(*args
, **kwargs
):
3927 """SetMarginTopLeft(self, Point pt)"""
3928 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3930 def SetMarginBottomRight(*args
, **kwargs
):
3931 """SetMarginBottomRight(self, Point pt)"""
3932 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3934 def SetMinMarginTopLeft(*args
, **kwargs
):
3935 """SetMinMarginTopLeft(self, Point pt)"""
3936 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3938 def SetMinMarginBottomRight(*args
, **kwargs
):
3939 """SetMinMarginBottomRight(self, Point pt)"""
3940 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3942 def SetPaperId(*args
, **kwargs
):
3943 """SetPaperId(self, int id)"""
3944 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3946 def SetPaperSize(*args
, **kwargs
):
3947 """SetPaperSize(self, Size size)"""
3948 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3950 def SetPrintData(*args
, **kwargs
):
3951 """SetPrintData(self, PrintData printData)"""
3952 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3954 def __nonzero__(self
): return self
.Ok()
3956 class PageSetupDialogDataPtr(PageSetupDialogData
):
3957 def __init__(self
, this
):
3959 if not hasattr(self
,"thisown"): self
.thisown
= 0
3960 self
.__class
__ = PageSetupDialogData
3961 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3963 class PageSetupDialog(Dialog
):
3965 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3966 def __init__(self
, *args
, **kwargs
):
3967 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3968 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
3969 self
.this
= newobj
.this
3972 self
._setOORInfo
(self
)
3974 def GetPageSetupData(*args
, **kwargs
):
3975 """GetPageSetupData(self) -> PageSetupDialogData"""
3976 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3978 def ShowModal(*args
, **kwargs
):
3979 """ShowModal(self) -> int"""
3980 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3983 class PageSetupDialogPtr(PageSetupDialog
):
3984 def __init__(self
, this
):
3986 if not hasattr(self
,"thisown"): self
.thisown
= 0
3987 self
.__class
__ = PageSetupDialog
3988 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3990 class PrintDialogData(_core
.Object
):
3992 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3993 def __init__(self
, *args
):
3995 __init__(self) -> PrintDialogData
3996 __init__(self, PrintData printData) -> PrintDialogData
3998 newobj
= _windows_
.new_PrintDialogData(*args
)
3999 self
.this
= newobj
.this
4002 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4005 if self
.thisown
: destroy(self
)
4008 def GetFromPage(*args
, **kwargs
):
4009 """GetFromPage(self) -> int"""
4010 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4012 def GetToPage(*args
, **kwargs
):
4013 """GetToPage(self) -> int"""
4014 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4016 def GetMinPage(*args
, **kwargs
):
4017 """GetMinPage(self) -> int"""
4018 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4020 def GetMaxPage(*args
, **kwargs
):
4021 """GetMaxPage(self) -> int"""
4022 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4024 def GetNoCopies(*args
, **kwargs
):
4025 """GetNoCopies(self) -> int"""
4026 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4028 def GetAllPages(*args
, **kwargs
):
4029 """GetAllPages(self) -> bool"""
4030 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4032 def GetSelection(*args
, **kwargs
):
4033 """GetSelection(self) -> bool"""
4034 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4036 def GetCollate(*args
, **kwargs
):
4037 """GetCollate(self) -> bool"""
4038 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4040 def GetPrintToFile(*args
, **kwargs
):
4041 """GetPrintToFile(self) -> bool"""
4042 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4044 def GetSetupDialog(*args
, **kwargs
):
4045 """GetSetupDialog(self) -> bool"""
4046 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4048 def SetFromPage(*args
, **kwargs
):
4049 """SetFromPage(self, int v)"""
4050 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4052 def SetToPage(*args
, **kwargs
):
4053 """SetToPage(self, int v)"""
4054 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4056 def SetMinPage(*args
, **kwargs
):
4057 """SetMinPage(self, int v)"""
4058 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4060 def SetMaxPage(*args
, **kwargs
):
4061 """SetMaxPage(self, int v)"""
4062 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4064 def SetNoCopies(*args
, **kwargs
):
4065 """SetNoCopies(self, int v)"""
4066 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4068 def SetAllPages(*args
, **kwargs
):
4069 """SetAllPages(self, bool flag)"""
4070 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4072 def SetSelection(*args
, **kwargs
):
4073 """SetSelection(self, bool flag)"""
4074 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4076 def SetCollate(*args
, **kwargs
):
4077 """SetCollate(self, bool flag)"""
4078 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4080 def SetPrintToFile(*args
, **kwargs
):
4081 """SetPrintToFile(self, bool flag)"""
4082 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4084 def SetSetupDialog(*args
, **kwargs
):
4085 """SetSetupDialog(self, bool flag)"""
4086 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4088 def EnablePrintToFile(*args
, **kwargs
):
4089 """EnablePrintToFile(self, bool flag)"""
4090 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4092 def EnableSelection(*args
, **kwargs
):
4093 """EnableSelection(self, bool flag)"""
4094 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4096 def EnablePageNumbers(*args
, **kwargs
):
4097 """EnablePageNumbers(self, bool flag)"""
4098 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4100 def EnableHelp(*args
, **kwargs
):
4101 """EnableHelp(self, bool flag)"""
4102 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4104 def GetEnablePrintToFile(*args
, **kwargs
):
4105 """GetEnablePrintToFile(self) -> bool"""
4106 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4108 def GetEnableSelection(*args
, **kwargs
):
4109 """GetEnableSelection(self) -> bool"""
4110 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4112 def GetEnablePageNumbers(*args
, **kwargs
):
4113 """GetEnablePageNumbers(self) -> bool"""
4114 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4116 def GetEnableHelp(*args
, **kwargs
):
4117 """GetEnableHelp(self) -> bool"""
4118 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4120 def Ok(*args
, **kwargs
):
4121 """Ok(self) -> bool"""
4122 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4124 def GetPrintData(*args
, **kwargs
):
4125 """GetPrintData(self) -> PrintData"""
4126 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4128 def SetPrintData(*args
, **kwargs
):
4129 """SetPrintData(self, PrintData printData)"""
4130 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4132 def __nonzero__(self
): return self
.Ok()
4134 class PrintDialogDataPtr(PrintDialogData
):
4135 def __init__(self
, this
):
4137 if not hasattr(self
,"thisown"): self
.thisown
= 0
4138 self
.__class
__ = PrintDialogData
4139 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4141 class PrintDialog(Dialog
):
4143 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4144 def __init__(self
, *args
, **kwargs
):
4145 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4146 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4147 self
.this
= newobj
.this
4150 self
._setOORInfo
(self
)
4152 def GetPrintDialogData(*args
, **kwargs
):
4153 """GetPrintDialogData(self) -> PrintDialogData"""
4154 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4156 def GetPrintDC(*args
, **kwargs
):
4157 """GetPrintDC(self) -> DC"""
4158 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4160 def ShowModal(*args
, **kwargs
):
4161 """ShowModal(self) -> int"""
4162 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4165 class PrintDialogPtr(PrintDialog
):
4166 def __init__(self
, this
):
4168 if not hasattr(self
,"thisown"): self
.thisown
= 0
4169 self
.__class
__ = PrintDialog
4170 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4172 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4173 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4174 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4175 class Printer(_core
.Object
):
4177 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4178 def __init__(self
, *args
, **kwargs
):
4179 """__init__(self, PrintDialogData data=None) -> Printer"""
4180 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4181 self
.this
= newobj
.this
4184 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4187 if self
.thisown
: destroy(self
)
4190 def CreateAbortWindow(*args
, **kwargs
):
4191 """CreateAbortWindow(self, Window parent, Printout printout)"""
4192 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4194 def GetPrintDialogData(*args
, **kwargs
):
4195 """GetPrintDialogData(self) -> PrintDialogData"""
4196 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4198 def Print(*args
, **kwargs
):
4199 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4200 return _windows_
.Printer_Print(*args
, **kwargs
)
4202 def PrintDialog(*args
, **kwargs
):
4203 """PrintDialog(self, Window parent) -> DC"""
4204 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4206 def ReportError(*args
, **kwargs
):
4207 """ReportError(self, Window parent, Printout printout, String message)"""
4208 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4210 def Setup(*args
, **kwargs
):
4211 """Setup(self, Window parent) -> bool"""
4212 return _windows_
.Printer_Setup(*args
, **kwargs
)
4214 def GetAbort(*args
, **kwargs
):
4215 """GetAbort(self) -> bool"""
4216 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4218 def GetLastError(*args
, **kwargs
):
4219 """GetLastError() -> int"""
4220 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4222 GetLastError
= staticmethod(GetLastError
)
4224 class PrinterPtr(Printer
):
4225 def __init__(self
, this
):
4227 if not hasattr(self
,"thisown"): self
.thisown
= 0
4228 self
.__class
__ = Printer
4229 _windows_
.Printer_swigregister(PrinterPtr
)
4231 def Printer_GetLastError(*args
, **kwargs
):
4232 """Printer_GetLastError() -> int"""
4233 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4235 class Printout(_core
.Object
):
4237 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4238 def __init__(self
, *args
, **kwargs
):
4239 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4240 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4241 self
.this
= newobj
.this
4244 self
._setCallbackInfo
(self
, Printout
)
4246 def _setCallbackInfo(*args
, **kwargs
):
4247 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4248 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4250 def GetTitle(*args
, **kwargs
):
4251 """GetTitle(self) -> String"""
4252 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4254 def GetDC(*args
, **kwargs
):
4255 """GetDC(self) -> DC"""
4256 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4258 def SetDC(*args
, **kwargs
):
4259 """SetDC(self, DC dc)"""
4260 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4262 def SetPageSizePixels(*args
, **kwargs
):
4263 """SetPageSizePixels(self, int w, int h)"""
4264 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4266 def GetPageSizePixels(*args
, **kwargs
):
4267 """GetPageSizePixels() -> (w, h)"""
4268 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4270 def SetPageSizeMM(*args
, **kwargs
):
4271 """SetPageSizeMM(self, int w, int h)"""
4272 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4274 def GetPageSizeMM(*args
, **kwargs
):
4275 """GetPageSizeMM() -> (w, h)"""
4276 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4278 def SetPPIScreen(*args
, **kwargs
):
4279 """SetPPIScreen(self, int x, int y)"""
4280 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4282 def GetPPIScreen(*args
, **kwargs
):
4283 """GetPPIScreen() -> (x,y)"""
4284 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4286 def SetPPIPrinter(*args
, **kwargs
):
4287 """SetPPIPrinter(self, int x, int y)"""
4288 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4290 def GetPPIPrinter(*args
, **kwargs
):
4291 """GetPPIPrinter() -> (x,y)"""
4292 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4294 def IsPreview(*args
, **kwargs
):
4295 """IsPreview(self) -> bool"""
4296 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4298 def SetIsPreview(*args
, **kwargs
):
4299 """SetIsPreview(self, bool p)"""
4300 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4302 def base_OnBeginDocument(*args
, **kwargs
):
4303 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4304 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4306 def base_OnEndDocument(*args
, **kwargs
):
4307 """base_OnEndDocument(self)"""
4308 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4310 def base_OnBeginPrinting(*args
, **kwargs
):
4311 """base_OnBeginPrinting(self)"""
4312 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4314 def base_OnEndPrinting(*args
, **kwargs
):
4315 """base_OnEndPrinting(self)"""
4316 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4318 def base_OnPreparePrinting(*args
, **kwargs
):
4319 """base_OnPreparePrinting(self)"""
4320 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4322 def base_HasPage(*args
, **kwargs
):
4323 """base_HasPage(self, int page) -> bool"""
4324 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4326 def base_GetPageInfo(*args
, **kwargs
):
4327 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4328 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4331 class PrintoutPtr(Printout
):
4332 def __init__(self
, this
):
4334 if not hasattr(self
,"thisown"): self
.thisown
= 0
4335 self
.__class
__ = Printout
4336 _windows_
.Printout_swigregister(PrintoutPtr
)
4338 class PreviewCanvas(ScrolledWindow
):
4340 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4341 def __init__(self
, *args
, **kwargs
):
4343 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4344 Size size=DefaultSize, long style=0,
4345 String name=PreviewCanvasNameStr) -> PreviewCanvas
4347 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4348 self
.this
= newobj
.this
4351 self
._setOORInfo
(self
)
4354 class PreviewCanvasPtr(PreviewCanvas
):
4355 def __init__(self
, this
):
4357 if not hasattr(self
,"thisown"): self
.thisown
= 0
4358 self
.__class
__ = PreviewCanvas
4359 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4361 class PreviewFrame(Frame
):
4363 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4364 def __init__(self
, *args
, **kwargs
):
4366 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4367 Size size=DefaultSize,
4368 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4370 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4371 self
.this
= newobj
.this
4374 self
._setOORInfo
(self
)
4376 def Initialize(*args
, **kwargs
):
4377 """Initialize(self)"""
4378 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4380 def CreateControlBar(*args
, **kwargs
):
4381 """CreateControlBar(self)"""
4382 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4384 def CreateCanvas(*args
, **kwargs
):
4385 """CreateCanvas(self)"""
4386 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4388 def GetControlBar(*args
, **kwargs
):
4389 """GetControlBar(self) -> PreviewControlBar"""
4390 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4393 class PreviewFramePtr(PreviewFrame
):
4394 def __init__(self
, this
):
4396 if not hasattr(self
,"thisown"): self
.thisown
= 0
4397 self
.__class
__ = PreviewFrame
4398 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4400 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4401 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4402 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4403 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4404 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4405 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4406 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4407 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4408 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4409 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4410 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4411 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4412 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4413 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4414 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4415 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4416 class PreviewControlBar(Panel
):
4418 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4419 def __init__(self
, *args
, **kwargs
):
4421 __init__(self, PrintPreview preview, long buttons, Window parent,
4422 Point pos=DefaultPosition, Size size=DefaultSize,
4423 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4425 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4426 self
.this
= newobj
.this
4429 self
._setOORInfo
(self
)
4431 def GetZoomControl(*args
, **kwargs
):
4432 """GetZoomControl(self) -> int"""
4433 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4435 def SetZoomControl(*args
, **kwargs
):
4436 """SetZoomControl(self, int zoom)"""
4437 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4439 def GetPrintPreview(*args
, **kwargs
):
4440 """GetPrintPreview(self) -> PrintPreview"""
4441 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4443 def OnNext(*args
, **kwargs
):
4445 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4447 def OnPrevious(*args
, **kwargs
):
4448 """OnPrevious(self)"""
4449 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4451 def OnFirst(*args
, **kwargs
):
4453 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4455 def OnLast(*args
, **kwargs
):
4457 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4459 def OnGoto(*args
, **kwargs
):
4461 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4464 class PreviewControlBarPtr(PreviewControlBar
):
4465 def __init__(self
, this
):
4467 if not hasattr(self
,"thisown"): self
.thisown
= 0
4468 self
.__class
__ = PreviewControlBar
4469 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4471 class PrintPreview(_core
.Object
):
4473 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4474 def __init__(self
, *args
):
4476 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4477 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4479 newobj
= _windows_
.new_PrintPreview(*args
)
4480 self
.this
= newobj
.this
4483 def SetCurrentPage(*args
, **kwargs
):
4484 """SetCurrentPage(self, int pageNum) -> bool"""
4485 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4487 def GetCurrentPage(*args
, **kwargs
):
4488 """GetCurrentPage(self) -> int"""
4489 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4491 def SetPrintout(*args
, **kwargs
):
4492 """SetPrintout(self, Printout printout)"""
4493 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4495 def GetPrintout(*args
, **kwargs
):
4496 """GetPrintout(self) -> Printout"""
4497 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4499 def GetPrintoutForPrinting(*args
, **kwargs
):
4500 """GetPrintoutForPrinting(self) -> Printout"""
4501 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4503 def SetFrame(*args
, **kwargs
):
4504 """SetFrame(self, Frame frame)"""
4505 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4507 def SetCanvas(*args
, **kwargs
):
4508 """SetCanvas(self, PreviewCanvas canvas)"""
4509 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4511 def GetFrame(*args
, **kwargs
):
4512 """GetFrame(self) -> Frame"""
4513 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4515 def GetCanvas(*args
, **kwargs
):
4516 """GetCanvas(self) -> PreviewCanvas"""
4517 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4519 def PaintPage(*args
, **kwargs
):
4520 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4521 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4523 def DrawBlankPage(*args
, **kwargs
):
4524 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4525 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4527 def RenderPage(*args
, **kwargs
):
4528 """RenderPage(self, int pageNum) -> bool"""
4529 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4531 def AdjustScrollbars(*args
, **kwargs
):
4532 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4533 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4535 def GetPrintDialogData(*args
, **kwargs
):
4536 """GetPrintDialogData(self) -> PrintDialogData"""
4537 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4539 def SetZoom(*args
, **kwargs
):
4540 """SetZoom(self, int percent)"""
4541 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4543 def GetZoom(*args
, **kwargs
):
4544 """GetZoom(self) -> int"""
4545 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4547 def GetMaxPage(*args
, **kwargs
):
4548 """GetMaxPage(self) -> int"""
4549 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4551 def GetMinPage(*args
, **kwargs
):
4552 """GetMinPage(self) -> int"""
4553 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4555 def Ok(*args
, **kwargs
):
4556 """Ok(self) -> bool"""
4557 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4559 def SetOk(*args
, **kwargs
):
4560 """SetOk(self, bool ok)"""
4561 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4563 def Print(*args
, **kwargs
):
4564 """Print(self, bool interactive) -> bool"""
4565 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4567 def DetermineScaling(*args
, **kwargs
):
4568 """DetermineScaling(self)"""
4569 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4571 def __nonzero__(self
): return self
.Ok()
4573 class PrintPreviewPtr(PrintPreview
):
4574 def __init__(self
, this
):
4576 if not hasattr(self
,"thisown"): self
.thisown
= 0
4577 self
.__class
__ = PrintPreview
4578 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4580 class PyPrintPreview(PrintPreview
):
4582 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4583 def __init__(self
, *args
):
4585 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4586 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4588 newobj
= _windows_
.new_PyPrintPreview(*args
)
4589 self
.this
= newobj
.this
4592 self
._setCallbackInfo
(self
, PyPrintPreview
)
4594 def _setCallbackInfo(*args
, **kwargs
):
4595 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4596 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4598 def base_SetCurrentPage(*args
, **kwargs
):
4599 """base_SetCurrentPage(self, int pageNum) -> bool"""
4600 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4602 def base_PaintPage(*args
, **kwargs
):
4603 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4604 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4606 def base_DrawBlankPage(*args
, **kwargs
):
4607 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4608 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4610 def base_RenderPage(*args
, **kwargs
):
4611 """base_RenderPage(self, int pageNum) -> bool"""
4612 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4614 def base_SetZoom(*args
, **kwargs
):
4615 """base_SetZoom(self, int percent)"""
4616 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4618 def base_Print(*args
, **kwargs
):
4619 """base_Print(self, bool interactive) -> bool"""
4620 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4622 def base_DetermineScaling(*args
, **kwargs
):
4623 """base_DetermineScaling(self)"""
4624 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4627 class PyPrintPreviewPtr(PyPrintPreview
):
4628 def __init__(self
, this
):
4630 if not hasattr(self
,"thisown"): self
.thisown
= 0
4631 self
.__class
__ = PyPrintPreview
4632 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4634 class PyPreviewFrame(PreviewFrame
):
4636 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4637 def __init__(self
, *args
, **kwargs
):
4639 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4640 Size size=DefaultSize,
4641 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4643 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4644 self
.this
= newobj
.this
4647 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4649 def _setCallbackInfo(*args
, **kwargs
):
4650 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4651 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4653 def SetPreviewCanvas(*args
, **kwargs
):
4654 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4655 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4657 def SetControlBar(*args
, **kwargs
):
4658 """SetControlBar(self, PreviewControlBar bar)"""
4659 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4661 def base_Initialize(*args
, **kwargs
):
4662 """base_Initialize(self)"""
4663 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4665 def base_CreateCanvas(*args
, **kwargs
):
4666 """base_CreateCanvas(self)"""
4667 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4669 def base_CreateControlBar(*args
, **kwargs
):
4670 """base_CreateControlBar(self)"""
4671 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4674 class PyPreviewFramePtr(PyPreviewFrame
):
4675 def __init__(self
, this
):
4677 if not hasattr(self
,"thisown"): self
.thisown
= 0
4678 self
.__class
__ = PyPreviewFrame
4679 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4681 class PyPreviewControlBar(PreviewControlBar
):
4683 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4684 def __init__(self
, *args
, **kwargs
):
4686 __init__(self, PrintPreview preview, long buttons, Window parent,
4687 Point pos=DefaultPosition, Size size=DefaultSize,
4688 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4690 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4691 self
.this
= newobj
.this
4694 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4696 def _setCallbackInfo(*args
, **kwargs
):
4697 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4698 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4700 def SetPrintPreview(*args
, **kwargs
):
4701 """SetPrintPreview(self, PrintPreview preview)"""
4702 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4704 def base_CreateButtons(*args
, **kwargs
):
4705 """base_CreateButtons(self)"""
4706 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4708 def base_SetZoomControl(*args
, **kwargs
):
4709 """base_SetZoomControl(self, int zoom)"""
4710 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4713 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4714 def __init__(self
, this
):
4716 if not hasattr(self
,"thisown"): self
.thisown
= 0
4717 self
.__class
__ = PyPreviewControlBar
4718 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)