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 GetClassDefaultAttributes(*args
, **kwargs
):
215 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
217 Get the default attributes for this class. This is useful if you want
218 to use the same font or colour in your own control as in a standard
219 control -- which is a much better idea than hard coding specific
220 colours or fonts which might look completely out of place on the
221 user's system, especially if it uses themes.
223 The variant parameter is only relevant under Mac currently and is
224 ignore under other platforms. Under Mac, it will change the size of
225 the returned font. See `wx.Window.SetWindowVariant` for more about
228 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
230 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
232 class ScrolledWindowPtr(ScrolledWindow
):
233 def __init__(self
, this
):
235 if not hasattr(self
,"thisown"): self
.thisown
= 0
236 self
.__class
__ = ScrolledWindow
237 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
239 def PreScrolledWindow(*args
, **kwargs
):
240 """PreScrolledWindow() -> ScrolledWindow"""
241 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
245 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
247 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
249 Get the default attributes for this class. This is useful if you want
250 to use the same font or colour in your own control as in a standard
251 control -- which is a much better idea than hard coding specific
252 colours or fonts which might look completely out of place on the
253 user's system, especially if it uses themes.
255 The variant parameter is only relevant under Mac currently and is
256 ignore under other platforms. Under Mac, it will change the size of
257 the returned font. See `wx.Window.SetWindowVariant` for more about
260 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
262 #---------------------------------------------------------------------------
264 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
265 ICONIZE
= _windows_
.ICONIZE
266 MINIMIZE
= _windows_
.MINIMIZE
267 MAXIMIZE
= _windows_
.MAXIMIZE
268 CLOSE_BOX
= _windows_
.CLOSE_BOX
269 THICK_FRAME
= _windows_
.THICK_FRAME
270 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
271 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
272 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
273 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
274 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
275 RESIZE_BOX
= _windows_
.RESIZE_BOX
276 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
277 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
278 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
279 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
280 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
281 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
282 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
283 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
284 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
285 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
286 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
287 USER_COLOURS
= _windows_
.USER_COLOURS
288 NO_3D
= _windows_
.NO_3D
289 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
290 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
291 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
292 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
293 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
294 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
295 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
296 class TopLevelWindow(_core
.Window
):
297 def __init__(self
): raise RuntimeError, "No constructor defined"
299 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
300 def Maximize(*args
, **kwargs
):
301 """Maximize(self, bool maximize=True)"""
302 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
304 def Restore(*args
, **kwargs
):
306 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
308 def Iconize(*args
, **kwargs
):
309 """Iconize(self, bool iconize=True)"""
310 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
312 def IsMaximized(*args
, **kwargs
):
313 """IsMaximized(self) -> bool"""
314 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
316 def IsIconized(*args
, **kwargs
):
317 """IsIconized(self) -> bool"""
318 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
320 def GetIcon(*args
, **kwargs
):
321 """GetIcon(self) -> Icon"""
322 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
324 def SetIcon(*args
, **kwargs
):
325 """SetIcon(self, Icon icon)"""
326 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
328 def SetIcons(*args
, **kwargs
):
329 """SetIcons(self, wxIconBundle icons)"""
330 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
332 def ShowFullScreen(*args
, **kwargs
):
333 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
334 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
336 def IsFullScreen(*args
, **kwargs
):
337 """IsFullScreen(self) -> bool"""
338 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
340 def SetTitle(*args
, **kwargs
):
342 SetTitle(self, String title)
344 Sets the window's title. Applicable only to frames and dialogs.
346 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
348 def GetTitle(*args
, **kwargs
):
350 GetTitle(self) -> String
352 Gets the window's title. Applicable only to frames and dialogs.
354 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
356 def SetShape(*args
, **kwargs
):
357 """SetShape(self, Region region) -> bool"""
358 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
360 def MacSetMetalAppearance(*args
, **kwargs
):
361 """MacSetMetalAppearance(self, bool on)"""
362 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
364 def MacGetMetalAppearance(*args
, **kwargs
):
365 """MacGetMetalAppearance(self) -> bool"""
366 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
369 class TopLevelWindowPtr(TopLevelWindow
):
370 def __init__(self
, this
):
372 if not hasattr(self
,"thisown"): self
.thisown
= 0
373 self
.__class
__ = TopLevelWindow
374 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
375 cvar
= _windows_
.cvar
376 FrameNameStr
= cvar
.FrameNameStr
377 DialogNameStr
= cvar
.DialogNameStr
378 StatusLineNameStr
= cvar
.StatusLineNameStr
379 ToolBarNameStr
= cvar
.ToolBarNameStr
381 #---------------------------------------------------------------------------
383 class Frame(TopLevelWindow
):
385 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
386 def __init__(self
, *args
, **kwargs
):
388 __init__(self, Window parent, int id=-1, String title=EmptyString,
389 Point pos=DefaultPosition, Size size=DefaultSize,
390 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
392 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
393 self
.this
= newobj
.this
396 self
._setOORInfo
(self
)
398 def Create(*args
, **kwargs
):
400 Create(self, Window parent, int id=-1, String title=EmptyString,
401 Point pos=DefaultPosition, Size size=DefaultSize,
402 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
404 return _windows_
.Frame_Create(*args
, **kwargs
)
406 def GetClientAreaOrigin(*args
, **kwargs
):
408 GetClientAreaOrigin(self) -> Point
410 Get the origin of the client area of the window relative to the
411 window's top left corner (the client area may be shifted because of
412 the borders, scrollbars, other decorations...)
414 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
416 def SendSizeEvent(*args
, **kwargs
):
417 """SendSizeEvent(self)"""
418 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
420 def SetMenuBar(*args
, **kwargs
):
421 """SetMenuBar(self, MenuBar menubar)"""
422 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
424 def GetMenuBar(*args
, **kwargs
):
425 """GetMenuBar(self) -> MenuBar"""
426 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
428 def ProcessCommand(*args
, **kwargs
):
429 """ProcessCommand(self, int winid) -> bool"""
430 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
432 Command
= ProcessCommand
433 def CreateStatusBar(*args
, **kwargs
):
435 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
436 String name=StatusLineNameStr) -> StatusBar
438 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
440 def GetStatusBar(*args
, **kwargs
):
441 """GetStatusBar(self) -> StatusBar"""
442 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
444 def SetStatusBar(*args
, **kwargs
):
445 """SetStatusBar(self, StatusBar statBar)"""
446 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
448 def SetStatusText(*args
, **kwargs
):
449 """SetStatusText(self, String text, int number=0)"""
450 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
452 def SetStatusWidths(*args
, **kwargs
):
453 """SetStatusWidths(self, int widths, int widths_field)"""
454 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
456 def PushStatusText(*args
, **kwargs
):
457 """PushStatusText(self, String text, int number=0)"""
458 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
460 def PopStatusText(*args
, **kwargs
):
461 """PopStatusText(self, int number=0)"""
462 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
464 def SetStatusBarPane(*args
, **kwargs
):
465 """SetStatusBarPane(self, int n)"""
466 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
468 def GetStatusBarPane(*args
, **kwargs
):
469 """GetStatusBarPane(self) -> int"""
470 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
472 def CreateToolBar(*args
, **kwargs
):
473 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
474 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
476 def GetToolBar(*args
, **kwargs
):
477 """GetToolBar(self) -> wxToolBar"""
478 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
480 def SetToolBar(*args
, **kwargs
):
481 """SetToolBar(self, wxToolBar toolbar)"""
482 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
484 def DoGiveHelp(*args
, **kwargs
):
485 """DoGiveHelp(self, String text, bool show)"""
486 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
488 def DoMenuUpdates(*args
, **kwargs
):
489 """DoMenuUpdates(self, Menu menu=None)"""
490 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
492 def GetClassDefaultAttributes(*args
, **kwargs
):
494 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
496 Get the default attributes for this class. This is useful if you want
497 to use the same font or colour in your own control as in a standard
498 control -- which is a much better idea than hard coding specific
499 colours or fonts which might look completely out of place on the
500 user's system, especially if it uses themes.
502 The variant parameter is only relevant under Mac currently and is
503 ignore under other platforms. Under Mac, it will change the size of
504 the returned font. See `wx.Window.SetWindowVariant` for more about
507 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
509 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
511 class FramePtr(Frame
):
512 def __init__(self
, this
):
514 if not hasattr(self
,"thisown"): self
.thisown
= 0
515 self
.__class
__ = Frame
516 _windows_
.Frame_swigregister(FramePtr
)
518 def PreFrame(*args
, **kwargs
):
519 """PreFrame() -> Frame"""
520 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
524 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
526 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
528 Get the default attributes for this class. This is useful if you want
529 to use the same font or colour in your own control as in a standard
530 control -- which is a much better idea than hard coding specific
531 colours or fonts which might look completely out of place on the
532 user's system, especially if it uses themes.
534 The variant parameter is only relevant under Mac currently and is
535 ignore under other platforms. Under Mac, it will change the size of
536 the returned font. See `wx.Window.SetWindowVariant` for more about
539 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
541 #---------------------------------------------------------------------------
543 class Dialog(TopLevelWindow
):
545 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
546 def __init__(self
, *args
, **kwargs
):
548 __init__(self, Window parent, int id=-1, String title=EmptyString,
549 Point pos=DefaultPosition, Size size=DefaultSize,
550 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
552 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
553 self
.this
= newobj
.this
556 self
._setOORInfo
(self
)
558 def Create(*args
, **kwargs
):
560 Create(self, Window parent, int id=-1, String title=EmptyString,
561 Point pos=DefaultPosition, Size size=DefaultSize,
562 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
564 return _windows_
.Dialog_Create(*args
, **kwargs
)
566 def SetReturnCode(*args
, **kwargs
):
567 """SetReturnCode(self, int returnCode)"""
568 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
570 def GetReturnCode(*args
, **kwargs
):
571 """GetReturnCode(self) -> int"""
572 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
574 def CreateTextSizer(*args
, **kwargs
):
575 """CreateTextSizer(self, String message) -> Sizer"""
576 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
578 def CreateButtonSizer(*args
, **kwargs
):
579 """CreateButtonSizer(self, long flags) -> Sizer"""
580 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
582 def IsModal(*args
, **kwargs
):
583 """IsModal(self) -> bool"""
584 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
586 def ShowModal(*args
, **kwargs
):
587 """ShowModal(self) -> int"""
588 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
590 def EndModal(*args
, **kwargs
):
591 """EndModal(self, int retCode)"""
592 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
594 def GetClassDefaultAttributes(*args
, **kwargs
):
596 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
598 Get the default attributes for this class. This is useful if you want
599 to use the same font or colour in your own control as in a standard
600 control -- which is a much better idea than hard coding specific
601 colours or fonts which might look completely out of place on the
602 user's system, especially if it uses themes.
604 The variant parameter is only relevant under Mac currently and is
605 ignore under other platforms. Under Mac, it will change the size of
606 the returned font. See `wx.Window.SetWindowVariant` for more about
609 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
611 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
612 def SendSizeEvent(self
):
613 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
616 class DialogPtr(Dialog
):
617 def __init__(self
, this
):
619 if not hasattr(self
,"thisown"): self
.thisown
= 0
620 self
.__class
__ = Dialog
621 _windows_
.Dialog_swigregister(DialogPtr
)
623 def PreDialog(*args
, **kwargs
):
624 """PreDialog() -> Dialog"""
625 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
629 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
631 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
633 Get the default attributes for this class. This is useful if you want
634 to use the same font or colour in your own control as in a standard
635 control -- which is a much better idea than hard coding specific
636 colours or fonts which might look completely out of place on the
637 user's system, especially if it uses themes.
639 The variant parameter is only relevant under Mac currently and is
640 ignore under other platforms. Under Mac, it will change the size of
641 the returned font. See `wx.Window.SetWindowVariant` for more about
644 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
646 #---------------------------------------------------------------------------
648 class MiniFrame(Frame
):
650 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
651 def __init__(self
, *args
, **kwargs
):
653 __init__(self, Window parent, int id=-1, String title=EmptyString,
654 Point pos=DefaultPosition, Size size=DefaultSize,
655 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
657 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
658 self
.this
= newobj
.this
661 self
._setOORInfo
(self
)
663 def Create(*args
, **kwargs
):
665 Create(self, Window parent, int id=-1, String title=EmptyString,
666 Point pos=DefaultPosition, Size size=DefaultSize,
667 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
669 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
672 class MiniFramePtr(MiniFrame
):
673 def __init__(self
, this
):
675 if not hasattr(self
,"thisown"): self
.thisown
= 0
676 self
.__class
__ = MiniFrame
677 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
679 def PreMiniFrame(*args
, **kwargs
):
680 """PreMiniFrame() -> MiniFrame"""
681 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
685 #---------------------------------------------------------------------------
687 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
688 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
689 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
690 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
691 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
692 class SplashScreenWindow(_core
.Window
):
694 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
695 def __init__(self
, *args
, **kwargs
):
697 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
698 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
700 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
701 self
.this
= newobj
.this
704 self
._setOORInfo
(self
)
706 def SetBitmap(*args
, **kwargs
):
707 """SetBitmap(self, Bitmap bitmap)"""
708 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
710 def GetBitmap(*args
, **kwargs
):
711 """GetBitmap(self) -> Bitmap"""
712 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
715 class SplashScreenWindowPtr(SplashScreenWindow
):
716 def __init__(self
, this
):
718 if not hasattr(self
,"thisown"): self
.thisown
= 0
719 self
.__class
__ = SplashScreenWindow
720 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
722 class SplashScreen(Frame
):
724 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
725 def __init__(self
, *args
, **kwargs
):
727 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
728 Window parent, int id=-1, Point pos=DefaultPosition,
729 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
731 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
732 self
.this
= newobj
.this
735 self
._setOORInfo
(self
)
737 def GetSplashStyle(*args
, **kwargs
):
738 """GetSplashStyle(self) -> long"""
739 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
741 def GetSplashWindow(*args
, **kwargs
):
742 """GetSplashWindow(self) -> SplashScreenWindow"""
743 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
745 def GetTimeout(*args
, **kwargs
):
746 """GetTimeout(self) -> int"""
747 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
750 class SplashScreenPtr(SplashScreen
):
751 def __init__(self
, this
):
753 if not hasattr(self
,"thisown"): self
.thisown
= 0
754 self
.__class
__ = SplashScreen
755 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
757 #---------------------------------------------------------------------------
759 class StatusBar(_core
.Window
):
761 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
762 def __init__(self
, *args
, **kwargs
):
763 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
764 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
765 self
.this
= newobj
.this
768 self
._setOORInfo
(self
)
770 def Create(*args
, **kwargs
):
771 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
772 return _windows_
.StatusBar_Create(*args
, **kwargs
)
774 def SetFieldsCount(*args
, **kwargs
):
775 """SetFieldsCount(self, int number=1)"""
776 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
778 def GetFieldsCount(*args
, **kwargs
):
779 """GetFieldsCount(self) -> int"""
780 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
782 def SetStatusText(*args
, **kwargs
):
783 """SetStatusText(self, String text, int number=0)"""
784 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
786 def GetStatusText(*args
, **kwargs
):
787 """GetStatusText(self, int number=0) -> String"""
788 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
790 def PushStatusText(*args
, **kwargs
):
791 """PushStatusText(self, String text, int number=0)"""
792 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
794 def PopStatusText(*args
, **kwargs
):
795 """PopStatusText(self, int number=0)"""
796 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
798 def SetStatusWidths(*args
, **kwargs
):
799 """SetStatusWidths(self, int widths, int widths_field)"""
800 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
802 def GetFieldRect(*args
, **kwargs
):
803 """GetFieldRect(self, int i) -> Rect"""
804 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
806 def SetMinHeight(*args
, **kwargs
):
807 """SetMinHeight(self, int height)"""
808 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
810 def GetBorderX(*args
, **kwargs
):
811 """GetBorderX(self) -> int"""
812 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
814 def GetBorderY(*args
, **kwargs
):
815 """GetBorderY(self) -> int"""
816 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
818 def GetClassDefaultAttributes(*args
, **kwargs
):
820 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
822 Get the default attributes for this class. This is useful if you want
823 to use the same font or colour in your own control as in a standard
824 control -- which is a much better idea than hard coding specific
825 colours or fonts which might look completely out of place on the
826 user's system, especially if it uses themes.
828 The variant parameter is only relevant under Mac currently and is
829 ignore under other platforms. Under Mac, it will change the size of
830 the returned font. See `wx.Window.SetWindowVariant` for more about
833 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
835 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
837 class StatusBarPtr(StatusBar
):
838 def __init__(self
, this
):
840 if not hasattr(self
,"thisown"): self
.thisown
= 0
841 self
.__class
__ = StatusBar
842 _windows_
.StatusBar_swigregister(StatusBarPtr
)
844 def PreStatusBar(*args
, **kwargs
):
845 """PreStatusBar() -> StatusBar"""
846 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
850 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
852 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
854 Get the default attributes for this class. This is useful if you want
855 to use the same font or colour in your own control as in a standard
856 control -- which is a much better idea than hard coding specific
857 colours or fonts which might look completely out of place on the
858 user's system, especially if it uses themes.
860 The variant parameter is only relevant under Mac currently and is
861 ignore under other platforms. Under Mac, it will change the size of
862 the returned font. See `wx.Window.SetWindowVariant` for more about
865 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
867 #---------------------------------------------------------------------------
869 SP_NOBORDER
= _windows_
.SP_NOBORDER
870 SP_NOSASH
= _windows_
.SP_NOSASH
871 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
872 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
873 SP_3DSASH
= _windows_
.SP_3DSASH
874 SP_3DBORDER
= _windows_
.SP_3DBORDER
875 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
876 SP_BORDER
= _windows_
.SP_BORDER
877 SP_3D
= _windows_
.SP_3D
878 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
879 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
880 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
881 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
882 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
883 class SplitterWindow(_core
.Window
):
885 wx.SplitterWindow manages up to two subwindows or panes, with an
886 optional vertical or horizontal split which can be used with the mouse
890 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
891 def __init__(self
, *args
, **kwargs
):
893 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
894 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
896 Constructor. Creates and shows a SplitterWindow.
898 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
899 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
900 self
.this
= newobj
.this
903 self
._setOORInfo
(self
)
905 def Create(*args
, **kwargs
):
907 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
908 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
910 Create the GUI part of the SplitterWindow for the 2-phase create.
912 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
914 def GetWindow1(*args
, **kwargs
):
916 GetWindow1(self) -> Window
918 Gets the only or left/top pane.
920 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
922 def GetWindow2(*args
, **kwargs
):
924 GetWindow2(self) -> Window
926 Gets the right/bottom pane.
928 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
930 def SetSplitMode(*args
, **kwargs
):
932 SetSplitMode(self, int mode)
934 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
935 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
938 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
940 def GetSplitMode(*args
, **kwargs
):
942 GetSplitMode(self) -> int
946 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
948 def Initialize(*args
, **kwargs
):
950 Initialize(self, Window window)
952 Initializes the splitter window to have one pane. This should be
953 called if you wish to initially view only a single pane in the
956 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
958 def SplitVertically(*args
, **kwargs
):
960 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
962 Initializes the left and right panes of the splitter window.
964 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
966 def SplitHorizontally(*args
, **kwargs
):
968 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
970 Initializes the top and bottom panes of the splitter window.
972 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
974 def Unsplit(*args
, **kwargs
):
976 Unsplit(self, Window toRemove=None) -> bool
978 Unsplits the window. Pass the pane to remove, or None to remove the
979 right or bottom pane. Returns True if successful, False otherwise (the
980 window was not split).
982 This function will not actually delete the pane being
983 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
984 for the desired behaviour. By default, the pane being
985 removed is only hidden.
987 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
989 def ReplaceWindow(*args
, **kwargs
):
991 ReplaceWindow(self, Window winOld, Window winNew) -> bool
993 This function replaces one of the windows managed by the
994 SplitterWindow with another one. It is in general better to use it
995 instead of calling Unsplit() and then resplitting the window back
996 because it will provoke much less flicker. It is valid to call this
997 function whether the splitter has two windows or only one.
999 Both parameters should be non-None and winOld must specify one of the
1000 windows managed by the splitter. If the parameters are incorrect or
1001 the window couldn't be replaced, False is returned. Otherwise the
1002 function will return True, but please notice that it will not Destroy
1003 the replaced window and you may wish to do it yourself.
1005 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1007 def UpdateSize(*args
, **kwargs
):
1011 Causes any pending sizing of the sash and child panes to take place
1014 Such resizing normally takes place in idle time, in order to wait for
1015 layout to be completed. However, this can cause unacceptable flicker
1016 as the panes are resized after the window has been shown. To work
1017 around this, you can perform window layout (for example by sending a
1018 size event to the parent window), and then call this function, before
1019 showing the top-level window.
1021 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1023 def IsSplit(*args
, **kwargs
):
1025 IsSplit(self) -> bool
1027 Is the window split?
1029 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1031 def SetSashSize(*args
, **kwargs
):
1033 SetSashSize(self, int width)
1037 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1039 def SetBorderSize(*args
, **kwargs
):
1041 SetBorderSize(self, int width)
1043 Sets the border size
1045 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1047 def GetSashSize(*args
, **kwargs
):
1049 GetSashSize(self) -> int
1053 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1055 def GetBorderSize(*args
, **kwargs
):
1057 GetBorderSize(self) -> int
1059 Gets the border size
1061 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1063 def SetSashPosition(*args
, **kwargs
):
1065 SetSashPosition(self, int position, bool redraw=True)
1067 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1068 are resized and the sash and border are redrawn.
1070 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1072 def GetSashPosition(*args
, **kwargs
):
1074 GetSashPosition(self) -> int
1076 Returns the surrent sash position.
1078 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1080 def SetMinimumPaneSize(*args
, **kwargs
):
1082 SetMinimumPaneSize(self, int min)
1084 Sets the minimum pane size in pixels.
1086 The default minimum pane size is zero, which means that either pane
1087 can be reduced to zero by dragging the sash, thus removing one of the
1088 panes. To prevent this behaviour (and veto out-of-range sash
1089 dragging), set a minimum size, for example 20 pixels. If the
1090 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1091 the window may be unsplit even if minimum size is non-zero.
1093 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1095 def GetMinimumPaneSize(*args
, **kwargs
):
1097 GetMinimumPaneSize(self) -> int
1099 Gets the minimum pane size in pixels.
1101 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1103 def SashHitTest(*args
, **kwargs
):
1105 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1107 Tests for x, y over the sash
1109 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1111 def SizeWindows(*args
, **kwargs
):
1117 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1119 def SetNeedUpdating(*args
, **kwargs
):
1120 """SetNeedUpdating(self, bool needUpdating)"""
1121 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1123 def GetNeedUpdating(*args
, **kwargs
):
1124 """GetNeedUpdating(self) -> bool"""
1125 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1127 def GetClassDefaultAttributes(*args
, **kwargs
):
1129 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1131 Get the default attributes for this class. This is useful if you want
1132 to use the same font or colour in your own control as in a standard
1133 control -- which is a much better idea than hard coding specific
1134 colours or fonts which might look completely out of place on the
1135 user's system, especially if it uses themes.
1137 The variant parameter is only relevant under Mac currently and is
1138 ignore under other platforms. Under Mac, it will change the size of
1139 the returned font. See `wx.Window.SetWindowVariant` for more about
1142 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1144 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1146 class SplitterWindowPtr(SplitterWindow
):
1147 def __init__(self
, this
):
1149 if not hasattr(self
,"thisown"): self
.thisown
= 0
1150 self
.__class
__ = SplitterWindow
1151 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1152 SplitterNameStr
= cvar
.SplitterNameStr
1154 def PreSplitterWindow(*args
, **kwargs
):
1156 PreSplitterWindow() -> SplitterWindow
1158 Precreate a SplitterWindow for 2-phase creation.
1160 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1164 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1166 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1168 Get the default attributes for this class. This is useful if you want
1169 to use the same font or colour in your own control as in a standard
1170 control -- which is a much better idea than hard coding specific
1171 colours or fonts which might look completely out of place on the
1172 user's system, especially if it uses themes.
1174 The variant parameter is only relevant under Mac currently and is
1175 ignore under other platforms. Under Mac, it will change the size of
1176 the returned font. See `wx.Window.SetWindowVariant` for more about
1179 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1181 class SplitterEvent(_core
.NotifyEvent
):
1182 """This class represents the events generated by a splitter control."""
1184 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1185 def __init__(self
, *args
, **kwargs
):
1187 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1189 This class represents the events generated by a splitter control.
1191 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1192 self
.this
= newobj
.this
1195 def SetSashPosition(*args
, **kwargs
):
1197 SetSashPosition(self, int pos)
1199 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1200 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1201 events, sets the the new sash position. In the case of _CHANGING
1202 events, sets the new tracking bar position so visual feedback during
1203 dragging will represent that change that will actually take place. Set
1204 to -1 from the event handler code to prevent repositioning.
1206 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1208 def GetSashPosition(*args
, **kwargs
):
1210 GetSashPosition(self) -> int
1212 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1213 and EVT_SPLITTER_SASH_POS_CHANGED events.
1215 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1217 def GetWindowBeingRemoved(*args
, **kwargs
):
1219 GetWindowBeingRemoved(self) -> Window
1221 Returns a pointer to the window being removed when a splitter window
1224 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1226 def GetX(*args
, **kwargs
):
1230 Returns the x coordinate of the double-click point in a
1231 EVT_SPLITTER_DCLICK event.
1233 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1235 def GetY(*args
, **kwargs
):
1239 Returns the y coordinate of the double-click point in a
1240 EVT_SPLITTER_DCLICK event.
1242 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1245 class SplitterEventPtr(SplitterEvent
):
1246 def __init__(self
, this
):
1248 if not hasattr(self
,"thisown"): self
.thisown
= 0
1249 self
.__class
__ = SplitterEvent
1250 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1252 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1253 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1254 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1255 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1256 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1257 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1258 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1259 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1260 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1262 #---------------------------------------------------------------------------
1264 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1265 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1266 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1267 SW_NOBORDER
= _windows_
.SW_NOBORDER
1268 SW_BORDER
= _windows_
.SW_BORDER
1269 SW_3DSASH
= _windows_
.SW_3DSASH
1270 SW_3DBORDER
= _windows_
.SW_3DBORDER
1271 SW_3D
= _windows_
.SW_3D
1272 SASH_TOP
= _windows_
.SASH_TOP
1273 SASH_RIGHT
= _windows_
.SASH_RIGHT
1274 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1275 SASH_LEFT
= _windows_
.SASH_LEFT
1276 SASH_NONE
= _windows_
.SASH_NONE
1277 class SashWindow(_core
.Window
):
1279 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1280 def __init__(self
, *args
, **kwargs
):
1282 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1283 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1284 String name=SashNameStr) -> SashWindow
1286 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1287 self
.this
= newobj
.this
1290 self
._setOORInfo
(self
)
1292 def Create(*args
, **kwargs
):
1294 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1295 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1296 String name=SashNameStr) -> bool
1298 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1300 def SetSashVisible(*args
, **kwargs
):
1301 """SetSashVisible(self, int edge, bool sash)"""
1302 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1304 def GetSashVisible(*args
, **kwargs
):
1305 """GetSashVisible(self, int edge) -> bool"""
1306 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1308 def SetSashBorder(*args
, **kwargs
):
1309 """SetSashBorder(self, int edge, bool border)"""
1310 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1312 def HasBorder(*args
, **kwargs
):
1313 """HasBorder(self, int edge) -> bool"""
1314 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1316 def GetEdgeMargin(*args
, **kwargs
):
1317 """GetEdgeMargin(self, int edge) -> int"""
1318 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1320 def SetDefaultBorderSize(*args
, **kwargs
):
1321 """SetDefaultBorderSize(self, int width)"""
1322 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1324 def GetDefaultBorderSize(*args
, **kwargs
):
1325 """GetDefaultBorderSize(self) -> int"""
1326 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1328 def SetExtraBorderSize(*args
, **kwargs
):
1329 """SetExtraBorderSize(self, int width)"""
1330 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1332 def GetExtraBorderSize(*args
, **kwargs
):
1333 """GetExtraBorderSize(self) -> int"""
1334 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1336 def SetMinimumSizeX(*args
, **kwargs
):
1337 """SetMinimumSizeX(self, int min)"""
1338 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1340 def SetMinimumSizeY(*args
, **kwargs
):
1341 """SetMinimumSizeY(self, int min)"""
1342 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1344 def GetMinimumSizeX(*args
, **kwargs
):
1345 """GetMinimumSizeX(self) -> int"""
1346 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1348 def GetMinimumSizeY(*args
, **kwargs
):
1349 """GetMinimumSizeY(self) -> int"""
1350 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1352 def SetMaximumSizeX(*args
, **kwargs
):
1353 """SetMaximumSizeX(self, int max)"""
1354 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1356 def SetMaximumSizeY(*args
, **kwargs
):
1357 """SetMaximumSizeY(self, int max)"""
1358 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1360 def GetMaximumSizeX(*args
, **kwargs
):
1361 """GetMaximumSizeX(self) -> int"""
1362 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1364 def GetMaximumSizeY(*args
, **kwargs
):
1365 """GetMaximumSizeY(self) -> int"""
1366 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1368 def SashHitTest(*args
, **kwargs
):
1369 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1370 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1372 def SizeWindows(*args
, **kwargs
):
1373 """SizeWindows(self)"""
1374 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1377 class SashWindowPtr(SashWindow
):
1378 def __init__(self
, this
):
1380 if not hasattr(self
,"thisown"): self
.thisown
= 0
1381 self
.__class
__ = SashWindow
1382 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1383 SashNameStr
= cvar
.SashNameStr
1384 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1386 def PreSashWindow(*args
, **kwargs
):
1387 """PreSashWindow() -> SashWindow"""
1388 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1392 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1393 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1394 class SashEvent(_core
.CommandEvent
):
1396 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1397 def __init__(self
, *args
, **kwargs
):
1398 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1399 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1400 self
.this
= newobj
.this
1403 def SetEdge(*args
, **kwargs
):
1404 """SetEdge(self, int edge)"""
1405 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1407 def GetEdge(*args
, **kwargs
):
1408 """GetEdge(self) -> int"""
1409 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1411 def SetDragRect(*args
, **kwargs
):
1412 """SetDragRect(self, Rect rect)"""
1413 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1415 def GetDragRect(*args
, **kwargs
):
1416 """GetDragRect(self) -> Rect"""
1417 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1419 def SetDragStatus(*args
, **kwargs
):
1420 """SetDragStatus(self, int status)"""
1421 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1423 def GetDragStatus(*args
, **kwargs
):
1424 """GetDragStatus(self) -> int"""
1425 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1428 class SashEventPtr(SashEvent
):
1429 def __init__(self
, this
):
1431 if not hasattr(self
,"thisown"): self
.thisown
= 0
1432 self
.__class
__ = SashEvent
1433 _windows_
.SashEvent_swigregister(SashEventPtr
)
1435 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1436 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1437 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1439 #---------------------------------------------------------------------------
1441 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1442 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1443 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1444 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1445 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1446 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1447 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1448 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1449 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1450 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1451 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1452 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1453 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1454 class QueryLayoutInfoEvent(_core
.Event
):
1456 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1457 def __init__(self
, *args
, **kwargs
):
1458 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1459 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1460 self
.this
= newobj
.this
1463 def SetRequestedLength(*args
, **kwargs
):
1464 """SetRequestedLength(self, int length)"""
1465 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1467 def GetRequestedLength(*args
, **kwargs
):
1468 """GetRequestedLength(self) -> int"""
1469 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1471 def SetFlags(*args
, **kwargs
):
1472 """SetFlags(self, int flags)"""
1473 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1475 def GetFlags(*args
, **kwargs
):
1476 """GetFlags(self) -> int"""
1477 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1479 def SetSize(*args
, **kwargs
):
1480 """SetSize(self, Size size)"""
1481 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1483 def GetSize(*args
, **kwargs
):
1484 """GetSize(self) -> Size"""
1485 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1487 def SetOrientation(*args
, **kwargs
):
1488 """SetOrientation(self, int orient)"""
1489 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1491 def GetOrientation(*args
, **kwargs
):
1492 """GetOrientation(self) -> int"""
1493 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1495 def SetAlignment(*args
, **kwargs
):
1496 """SetAlignment(self, int align)"""
1497 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1499 def GetAlignment(*args
, **kwargs
):
1500 """GetAlignment(self) -> int"""
1501 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1504 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1505 def __init__(self
, this
):
1507 if not hasattr(self
,"thisown"): self
.thisown
= 0
1508 self
.__class
__ = QueryLayoutInfoEvent
1509 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1511 class CalculateLayoutEvent(_core
.Event
):
1513 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1514 def __init__(self
, *args
, **kwargs
):
1515 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1516 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1517 self
.this
= newobj
.this
1520 def SetFlags(*args
, **kwargs
):
1521 """SetFlags(self, int flags)"""
1522 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1524 def GetFlags(*args
, **kwargs
):
1525 """GetFlags(self) -> int"""
1526 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1528 def SetRect(*args
, **kwargs
):
1529 """SetRect(self, Rect rect)"""
1530 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1532 def GetRect(*args
, **kwargs
):
1533 """GetRect(self) -> Rect"""
1534 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1537 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1538 def __init__(self
, this
):
1540 if not hasattr(self
,"thisown"): self
.thisown
= 0
1541 self
.__class
__ = CalculateLayoutEvent
1542 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1544 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1545 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1547 class SashLayoutWindow(SashWindow
):
1549 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1550 def __init__(self
, *args
, **kwargs
):
1552 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1553 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1554 String name=SashLayoutNameStr) -> SashLayoutWindow
1556 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1557 self
.this
= newobj
.this
1560 self
._setOORInfo
(self
)
1562 def Create(*args
, **kwargs
):
1564 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1565 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1566 String name=SashLayoutNameStr) -> bool
1568 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1570 def GetAlignment(*args
, **kwargs
):
1571 """GetAlignment(self) -> int"""
1572 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1574 def GetOrientation(*args
, **kwargs
):
1575 """GetOrientation(self) -> int"""
1576 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1578 def SetAlignment(*args
, **kwargs
):
1579 """SetAlignment(self, int alignment)"""
1580 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1582 def SetDefaultSize(*args
, **kwargs
):
1583 """SetDefaultSize(self, Size size)"""
1584 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1586 def SetOrientation(*args
, **kwargs
):
1587 """SetOrientation(self, int orientation)"""
1588 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1591 class SashLayoutWindowPtr(SashLayoutWindow
):
1592 def __init__(self
, this
):
1594 if not hasattr(self
,"thisown"): self
.thisown
= 0
1595 self
.__class
__ = SashLayoutWindow
1596 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1598 def PreSashLayoutWindow(*args
, **kwargs
):
1599 """PreSashLayoutWindow() -> SashLayoutWindow"""
1600 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1604 class LayoutAlgorithm(_core
.Object
):
1606 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1607 def __init__(self
, *args
, **kwargs
):
1608 """__init__(self) -> LayoutAlgorithm"""
1609 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1610 self
.this
= newobj
.this
1613 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1616 if self
.thisown
: destroy(self
)
1619 def LayoutMDIFrame(*args
, **kwargs
):
1620 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1621 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1623 def LayoutFrame(*args
, **kwargs
):
1624 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1625 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1627 def LayoutWindow(*args
, **kwargs
):
1628 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1629 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1632 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1633 def __init__(self
, this
):
1635 if not hasattr(self
,"thisown"): self
.thisown
= 0
1636 self
.__class
__ = LayoutAlgorithm
1637 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1639 class PopupWindow(_core
.Window
):
1641 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1642 def __init__(self
, *args
, **kwargs
):
1643 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1644 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1645 self
.this
= newobj
.this
1649 class PopupWindowPtr(PopupWindow
):
1650 def __init__(self
, this
):
1652 if not hasattr(self
,"thisown"): self
.thisown
= 0
1653 self
.__class
__ = PopupWindow
1654 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1656 def PrePopupWindow(*args
, **kwargs
):
1657 """PrePopupWindow() -> PopupWindow"""
1658 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1662 class PopupTransientWindow(PopupWindow
):
1664 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1665 def __init__(self
, *args
, **kwargs
):
1666 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1667 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1668 self
.this
= newobj
.this
1672 class PopupTransientWindowPtr(PopupTransientWindow
):
1673 def __init__(self
, this
):
1675 if not hasattr(self
,"thisown"): self
.thisown
= 0
1676 self
.__class
__ = PopupTransientWindow
1677 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1679 def PrePopupTransientWindow(*args
, **kwargs
):
1680 """PrePopupTransientWindow() -> PopupTransientWindow"""
1681 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1685 #---------------------------------------------------------------------------
1687 class TipWindow(Frame
):
1689 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1690 def __init__(self
, *args
, **kwargs
):
1691 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1692 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1693 self
.this
= newobj
.this
1696 self
._setOORInfo
(self
)
1698 def SetBoundingRect(*args
, **kwargs
):
1699 """SetBoundingRect(self, Rect rectBound)"""
1700 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1702 def Close(*args
, **kwargs
):
1704 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1707 class TipWindowPtr(TipWindow
):
1708 def __init__(self
, this
):
1710 if not hasattr(self
,"thisown"): self
.thisown
= 0
1711 self
.__class
__ = TipWindow
1712 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1714 #---------------------------------------------------------------------------
1716 class VScrolledWindow(Panel
):
1718 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1719 def __init__(self
, *args
, **kwargs
):
1721 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1722 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1724 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1725 self
.this
= newobj
.this
1728 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1730 def _setCallbackInfo(*args
, **kwargs
):
1731 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1732 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1734 def Create(*args
, **kwargs
):
1736 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1737 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1739 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1741 def SetLineCount(*args
, **kwargs
):
1742 """SetLineCount(self, size_t count)"""
1743 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1745 def ScrollToLine(*args
, **kwargs
):
1746 """ScrollToLine(self, size_t line) -> bool"""
1747 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1749 def ScrollLines(*args
, **kwargs
):
1750 """ScrollLines(self, int lines) -> bool"""
1751 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1753 def ScrollPages(*args
, **kwargs
):
1755 ScrollPages(self, int pages) -> bool
1757 If the platform and window class supports it, scrolls the window by
1758 the given number of pages down, if pages is positive, or up if pages
1759 is negative. Returns True if the window was scrolled, False if it was
1760 already on top/bottom and nothing was done.
1762 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1764 def RefreshLine(*args
, **kwargs
):
1765 """RefreshLine(self, size_t line)"""
1766 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1768 def RefreshLines(*args
, **kwargs
):
1769 """RefreshLines(self, size_t from, size_t to)"""
1770 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1772 def HitTestXT(*args
, **kwargs
):
1773 """HitTestXT(self, int x, int y) -> int"""
1774 return _windows_
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1776 def HitTest(*args
, **kwargs
):
1777 """HitTest(self, Point pt) -> int"""
1778 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1780 def RefreshAll(*args
, **kwargs
):
1781 """RefreshAll(self)"""
1782 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1784 def GetLineCount(*args
, **kwargs
):
1785 """GetLineCount(self) -> size_t"""
1786 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1788 def GetFirstVisibleLine(*args
, **kwargs
):
1789 """GetFirstVisibleLine(self) -> size_t"""
1790 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1792 def GetLastVisibleLine(*args
, **kwargs
):
1793 """GetLastVisibleLine(self) -> size_t"""
1794 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1796 def IsVisible(*args
, **kwargs
):
1797 """IsVisible(self, size_t line) -> bool"""
1798 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1801 class VScrolledWindowPtr(VScrolledWindow
):
1802 def __init__(self
, this
):
1804 if not hasattr(self
,"thisown"): self
.thisown
= 0
1805 self
.__class
__ = VScrolledWindow
1806 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1808 def PreVScrolledWindow(*args
, **kwargs
):
1809 """PreVScrolledWindow() -> VScrolledWindow"""
1810 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1814 class VListBox(VScrolledWindow
):
1816 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1817 def __init__(self
, *args
, **kwargs
):
1819 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1820 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1822 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1823 self
.this
= newobj
.this
1826 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1828 def _setCallbackInfo(*args
, **kwargs
):
1829 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1830 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1832 def Create(*args
, **kwargs
):
1834 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1835 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1837 return _windows_
.VListBox_Create(*args
, **kwargs
)
1839 def GetItemCount(*args
, **kwargs
):
1840 """GetItemCount(self) -> size_t"""
1841 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1843 def HasMultipleSelection(*args
, **kwargs
):
1844 """HasMultipleSelection(self) -> bool"""
1845 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1847 def GetSelection(*args
, **kwargs
):
1848 """GetSelection(self) -> int"""
1849 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1851 def IsCurrent(*args
, **kwargs
):
1852 """IsCurrent(self, size_t item) -> bool"""
1853 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1855 def IsSelected(*args
, **kwargs
):
1856 """IsSelected(self, size_t item) -> bool"""
1857 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1859 def GetSelectedCount(*args
, **kwargs
):
1860 """GetSelectedCount(self) -> size_t"""
1861 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1863 def GetFirstSelected(*args
, **kwargs
):
1864 """GetFirstSelected(self) -> PyObject"""
1865 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1867 def GetNextSelected(*args
, **kwargs
):
1868 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1869 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1871 def GetMargins(*args
, **kwargs
):
1872 """GetMargins(self) -> Point"""
1873 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1875 def GetSelectionBackground(*args
, **kwargs
):
1876 """GetSelectionBackground(self) -> Colour"""
1877 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1879 def SetItemCount(*args
, **kwargs
):
1880 """SetItemCount(self, size_t count)"""
1881 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1883 def Clear(*args
, **kwargs
):
1885 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1887 def SetSelection(*args
, **kwargs
):
1888 """SetSelection(self, int selection)"""
1889 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1891 def Select(*args
, **kwargs
):
1892 """Select(self, size_t item, bool select=True) -> bool"""
1893 return _windows_
.VListBox_Select(*args
, **kwargs
)
1895 def SelectRange(*args
, **kwargs
):
1896 """SelectRange(self, size_t from, size_t to) -> bool"""
1897 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1899 def Toggle(*args
, **kwargs
):
1900 """Toggle(self, size_t item)"""
1901 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1903 def SelectAll(*args
, **kwargs
):
1904 """SelectAll(self) -> bool"""
1905 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1907 def DeselectAll(*args
, **kwargs
):
1908 """DeselectAll(self) -> bool"""
1909 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1911 def SetMargins(*args
, **kwargs
):
1912 """SetMargins(self, Point pt)"""
1913 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1915 def SetMarginsXY(*args
, **kwargs
):
1916 """SetMarginsXY(self, int x, int y)"""
1917 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1919 def SetSelectionBackground(*args
, **kwargs
):
1920 """SetSelectionBackground(self, Colour col)"""
1921 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1924 class VListBoxPtr(VListBox
):
1925 def __init__(self
, this
):
1927 if not hasattr(self
,"thisown"): self
.thisown
= 0
1928 self
.__class
__ = VListBox
1929 _windows_
.VListBox_swigregister(VListBoxPtr
)
1930 VListBoxNameStr
= cvar
.VListBoxNameStr
1932 def PreVListBox(*args
, **kwargs
):
1933 """PreVListBox() -> VListBox"""
1934 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1938 class HtmlListBox(VListBox
):
1940 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1941 def __init__(self
, *args
, **kwargs
):
1943 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1944 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1946 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
1947 self
.this
= newobj
.this
1950 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1952 def _setCallbackInfo(*args
, **kwargs
):
1953 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1954 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1956 def Create(*args
, **kwargs
):
1958 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1959 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1961 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1963 def RefreshAll(*args
, **kwargs
):
1964 """RefreshAll(self)"""
1965 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1967 def SetItemCount(*args
, **kwargs
):
1968 """SetItemCount(self, size_t count)"""
1969 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1971 def GetFileSystem(*args
, **kwargs
):
1972 """GetFileSystem(self) -> FileSystem"""
1973 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
1976 class HtmlListBoxPtr(HtmlListBox
):
1977 def __init__(self
, this
):
1979 if not hasattr(self
,"thisown"): self
.thisown
= 0
1980 self
.__class
__ = HtmlListBox
1981 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1983 def PreHtmlListBox(*args
, **kwargs
):
1984 """PreHtmlListBox() -> HtmlListBox"""
1985 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
1989 #---------------------------------------------------------------------------
1991 class TaskBarIcon(_core
.EvtHandler
):
1993 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1994 def __init__(self
, *args
, **kwargs
):
1995 """__init__(self) -> TaskBarIcon"""
1996 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
1997 self
.this
= newobj
.this
2000 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2003 if self
.thisown
: destroy(self
)
2006 def Destroy(*args
, **kwargs
):
2010 Deletes the C++ object this Python object is a proxy for.
2012 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2015 class TaskBarIconPtr(TaskBarIcon
):
2016 def __init__(self
, this
):
2018 if not hasattr(self
,"thisown"): self
.thisown
= 0
2019 self
.__class
__ = TaskBarIcon
2020 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2022 class TaskBarIconEvent(_core
.Event
):
2024 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2025 def __init__(self
, *args
, **kwargs
):
2026 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2027 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2028 self
.this
= newobj
.this
2032 class TaskBarIconEventPtr(TaskBarIconEvent
):
2033 def __init__(self
, this
):
2035 if not hasattr(self
,"thisown"): self
.thisown
= 0
2036 self
.__class
__ = TaskBarIconEvent
2037 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2039 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2040 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2041 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2042 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2043 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2044 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2045 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2046 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2047 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2048 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2049 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2050 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2051 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2052 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2054 #---------------------------------------------------------------------------
2056 class ColourData(_core
.Object
):
2058 This class holds a variety of information related to the colour
2059 chooser dialog, used to transfer settings and results to and from the
2063 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2064 def __init__(self
, *args
, **kwargs
):
2066 __init__(self) -> ColourData
2068 Constructor, sets default values.
2070 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2071 self
.this
= newobj
.this
2074 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2077 if self
.thisown
: destroy(self
)
2080 def GetChooseFull(*args
, **kwargs
):
2082 GetChooseFull(self) -> bool
2084 Under Windows, determines whether the Windows colour dialog will
2085 display the full dialog with custom colour selection controls. Has no
2086 meaning under other platforms. The default value is true.
2088 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2090 def GetColour(*args
, **kwargs
):
2092 GetColour(self) -> Colour
2094 Gets the colour (pre)selected by the dialog.
2096 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2098 def GetCustomColour(*args
, **kwargs
):
2100 GetCustomColour(self, int i) -> Colour
2102 Gets the i'th custom colour associated with the colour dialog. i
2103 should be an integer between 0 and 15. The default custom colours are
2104 all invalid colours.
2106 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2108 def SetChooseFull(*args
, **kwargs
):
2110 SetChooseFull(self, int flag)
2112 Under Windows, tells the Windows colour dialog to display the full
2113 dialog with custom colour selection controls. Under other platforms,
2114 has no effect. The default value is true.
2116 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2118 def SetColour(*args
, **kwargs
):
2120 SetColour(self, Colour colour)
2122 Sets the default colour for the colour dialog. The default colour is
2125 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2127 def SetCustomColour(*args
, **kwargs
):
2129 SetCustomColour(self, int i, Colour colour)
2131 Sets the i'th custom colour for the colour dialog. i should be an
2132 integer between 0 and 15. The default custom colours are all invalid colours.
2134 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2137 class ColourDataPtr(ColourData
):
2138 def __init__(self
, this
):
2140 if not hasattr(self
,"thisown"): self
.thisown
= 0
2141 self
.__class
__ = ColourData
2142 _windows_
.ColourData_swigregister(ColourDataPtr
)
2143 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2144 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2145 DirDialogNameStr
= cvar
.DirDialogNameStr
2146 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2147 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2148 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2150 class ColourDialog(Dialog
):
2151 """This class represents the colour chooser dialog."""
2153 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2154 def __init__(self
, *args
, **kwargs
):
2156 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2158 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2159 which will be copied to the colour dialog's internal ColourData
2162 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2163 self
.this
= newobj
.this
2166 self
._setOORInfo
(self
)
2168 def GetColourData(*args
, **kwargs
):
2170 GetColourData(self) -> ColourData
2172 Returns a reference to the `wx.ColourData` used by the dialog.
2174 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2177 class ColourDialogPtr(ColourDialog
):
2178 def __init__(self
, this
):
2180 if not hasattr(self
,"thisown"): self
.thisown
= 0
2181 self
.__class
__ = ColourDialog
2182 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2184 class DirDialog(Dialog
):
2186 wx.DirDialog allows the user to select a directory by browising the
2190 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2191 def __init__(self
, *args
, **kwargs
):
2193 __init__(self, Window parent, String message=DirSelectorPromptStr,
2194 String defaultPath=EmptyString, long style=0,
2195 Point pos=DefaultPosition, Size size=DefaultSize,
2196 String name=DirDialogNameStr) -> DirDialog
2198 Constructor. Use ShowModal method to show the dialog.
2200 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2201 self
.this
= newobj
.this
2204 self
._setOORInfo
(self
)
2206 def GetPath(*args
, **kwargs
):
2208 GetPath(self) -> String
2210 Returns the default or user-selected path.
2212 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2214 def GetMessage(*args
, **kwargs
):
2216 GetMessage(self) -> String
2218 Returns the message that will be displayed on the dialog.
2220 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2222 def GetStyle(*args
, **kwargs
):
2224 GetStyle(self) -> long
2226 Returns the dialog style.
2228 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2230 def SetMessage(*args
, **kwargs
):
2232 SetMessage(self, String message)
2234 Sets the message that will be displayed on the dialog.
2236 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2238 def SetPath(*args
, **kwargs
):
2240 SetPath(self, String path)
2242 Sets the default path.
2244 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2247 class DirDialogPtr(DirDialog
):
2248 def __init__(self
, this
):
2250 if not hasattr(self
,"thisown"): self
.thisown
= 0
2251 self
.__class
__ = DirDialog
2252 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2254 class FileDialog(Dialog
):
2256 wx.FileDialog allows the user to select one or more files from the
2260 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2261 def __init__(self
, *args
, **kwargs
):
2263 __init__(self, Window parent, String message=FileSelectorPromptStr,
2264 String defaultDir=EmptyString, String defaultFile=EmptyString,
2265 String wildcard=FileSelectorDefaultWildcardStr,
2266 long style=0, Point pos=DefaultPosition) -> FileDialog
2268 Constructor. Use ShowModal method to show the dialog.
2270 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2271 self
.this
= newobj
.this
2274 self
._setOORInfo
(self
)
2276 def SetMessage(*args
, **kwargs
):
2278 SetMessage(self, String message)
2280 Sets the message that will be displayed on the dialog.
2282 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2284 def SetPath(*args
, **kwargs
):
2286 SetPath(self, String path)
2288 Sets the path (the combined directory and filename that will be
2289 returned when the dialog is dismissed).
2291 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2293 def SetDirectory(*args
, **kwargs
):
2295 SetDirectory(self, String dir)
2297 Sets the default directory.
2299 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2301 def SetFilename(*args
, **kwargs
):
2303 SetFilename(self, String name)
2305 Sets the default filename.
2307 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2309 def SetWildcard(*args
, **kwargs
):
2311 SetWildcard(self, String wildCard)
2313 Sets the wildcard, which can contain multiple file types, for
2316 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2319 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2321 def SetStyle(*args
, **kwargs
):
2323 SetStyle(self, long style)
2325 Sets the dialog style.
2327 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2329 def SetFilterIndex(*args
, **kwargs
):
2331 SetFilterIndex(self, int filterIndex)
2333 Sets the default filter index, starting from zero.
2335 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2337 def GetMessage(*args
, **kwargs
):
2339 GetMessage(self) -> String
2341 Returns the message that will be displayed on the dialog.
2343 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2345 def GetPath(*args
, **kwargs
):
2347 GetPath(self) -> String
2349 Returns the full path (directory and filename) of the selected file.
2351 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2353 def GetDirectory(*args
, **kwargs
):
2355 GetDirectory(self) -> String
2357 Returns the default directory.
2359 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2361 def GetFilename(*args
, **kwargs
):
2363 GetFilename(self) -> String
2365 Returns the default filename.
2367 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2369 def GetWildcard(*args
, **kwargs
):
2371 GetWildcard(self) -> String
2373 Returns the file dialog wildcard.
2375 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2377 def GetStyle(*args
, **kwargs
):
2379 GetStyle(self) -> long
2381 Returns the dialog style.
2383 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2385 def GetFilterIndex(*args
, **kwargs
):
2387 GetFilterIndex(self) -> int
2389 Returns the index into the list of filters supplied, optionally, in
2390 the wildcard parameter. Before the dialog is shown, this is the index
2391 which will be used when the dialog is first displayed. After the
2392 dialog is shown, this is the index selected by the user.
2394 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2396 def GetFilenames(*args
, **kwargs
):
2398 GetFilenames(self) -> PyObject
2400 Returns a list of filenames chosen in the dialog. This function
2401 should only be used with the dialogs which have wx.MULTIPLE style, use
2402 GetFilename for the others.
2404 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2406 def GetPaths(*args
, **kwargs
):
2408 GetPaths(self) -> PyObject
2410 Fills the array paths with the full paths of the files chosen. This
2411 function should only be used with the dialogs which have wx.MULTIPLE
2412 style, use GetPath for the others.
2414 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2417 class FileDialogPtr(FileDialog
):
2418 def __init__(self
, this
):
2420 if not hasattr(self
,"thisown"): self
.thisown
= 0
2421 self
.__class
__ = FileDialog
2422 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2424 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2425 class MultiChoiceDialog(Dialog
):
2426 """A simple dialog with a multi selection listbox."""
2428 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2429 def __init__(self
, *args
, **kwargs
):
2431 __init__(Window parent, String message, String caption,
2432 List choices=[], long style=CHOICEDLG_STYLE,
2433 Point pos=DefaultPosition) -> MultiChoiceDialog
2435 Constructor. Use ShowModal method to show the dialog.
2437 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2438 self
.this
= newobj
.this
2441 self
._setOORInfo
(self
)
2443 def SetSelections(*args
, **kwargs
):
2445 SetSelections(List selections)
2447 Specify the items in the list that should be selected, using a list of
2450 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2452 def GetSelections(*args
, **kwargs
):
2454 GetSelections() -> [selections]
2456 Returns a list of integers representing the items that are selected.
2458 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2461 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2462 def __init__(self
, this
):
2464 if not hasattr(self
,"thisown"): self
.thisown
= 0
2465 self
.__class
__ = MultiChoiceDialog
2466 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2468 class SingleChoiceDialog(Dialog
):
2469 """A simple dialog with a single selection listbox."""
2471 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2472 def __init__(self
, *args
, **kwargs
):
2474 __init__(Window parent, String message, String caption,
2475 List choices=[], long style=CHOICEDLG_STYLE,
2476 Point pos=DefaultPosition) -> SingleChoiceDialog
2478 Constructor. Use ShowModal method to show the dialog.
2480 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2481 self
.this
= newobj
.this
2484 self
._setOORInfo
(self
)
2486 def GetSelection(*args
, **kwargs
):
2488 GetSelection(self) -> int
2490 Get the index of teh currently selected item.
2492 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2494 def GetStringSelection(*args
, **kwargs
):
2496 GetStringSelection(self) -> String
2498 Returns the string value of the currently selected item
2500 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2502 def SetSelection(*args
, **kwargs
):
2504 SetSelection(self, int sel)
2506 Set the current selected item to sel
2508 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2511 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2512 def __init__(self
, this
):
2514 if not hasattr(self
,"thisown"): self
.thisown
= 0
2515 self
.__class
__ = SingleChoiceDialog
2516 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2518 class TextEntryDialog(Dialog
):
2519 """A dialog with text control, [ok] and [cancel] buttons"""
2521 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2522 def __init__(self
, *args
, **kwargs
):
2524 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2525 String defaultValue=EmptyString,
2526 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2528 Constructor. Use ShowModal method to show the dialog.
2530 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2531 self
.this
= newobj
.this
2534 self
._setOORInfo
(self
)
2536 def GetValue(*args
, **kwargs
):
2538 GetValue(self) -> String
2540 Returns the text that the user has entered if the user has pressed OK,
2541 or the original value if the user has pressed Cancel.
2543 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2545 def SetValue(*args
, **kwargs
):
2547 SetValue(self, String value)
2549 Sets the default text value.
2551 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2554 class TextEntryDialogPtr(TextEntryDialog
):
2555 def __init__(self
, this
):
2557 if not hasattr(self
,"thisown"): self
.thisown
= 0
2558 self
.__class
__ = TextEntryDialog
2559 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2561 class FontData(_core
.Object
):
2563 This class holds a variety of information related to font dialogs and
2564 is used to transfer settings to and results from a `wx.FontDialog`.
2567 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2568 def __init__(self
, *args
, **kwargs
):
2570 __init__(self) -> FontData
2572 This class holds a variety of information related to font dialogs and
2573 is used to transfer settings to and results from a `wx.FontDialog`.
2575 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2576 self
.this
= newobj
.this
2579 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2582 if self
.thisown
: destroy(self
)
2585 def EnableEffects(*args
, **kwargs
):
2587 EnableEffects(self, bool enable)
2589 Enables or disables 'effects' under MS Windows only. This refers to
2590 the controls for manipulating colour, strikeout and underline
2591 properties. The default value is true.
2593 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2595 def GetAllowSymbols(*args
, **kwargs
):
2597 GetAllowSymbols(self) -> bool
2599 Under MS Windows, returns a flag determining whether symbol fonts can
2600 be selected. Has no effect on other platforms. The default value is
2603 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2605 def GetColour(*args
, **kwargs
):
2607 GetColour(self) -> Colour
2609 Gets the colour associated with the font dialog. The default value is
2612 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2614 def GetChosenFont(*args
, **kwargs
):
2616 GetChosenFont(self) -> Font
2618 Gets the font chosen by the user.
2620 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2622 def GetEnableEffects(*args
, **kwargs
):
2624 GetEnableEffects(self) -> bool
2626 Determines whether 'effects' are enabled under Windows.
2628 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2630 def GetInitialFont(*args
, **kwargs
):
2632 GetInitialFont(self) -> Font
2634 Gets the font that will be initially used by the font dialog. This
2635 should have previously been set by the application.
2637 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2639 def GetShowHelp(*args
, **kwargs
):
2641 GetShowHelp(self) -> bool
2643 Returns true if the Help button will be shown (Windows only). The
2644 default value is false.
2646 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2648 def SetAllowSymbols(*args
, **kwargs
):
2650 SetAllowSymbols(self, bool allowSymbols)
2652 Under MS Windows, determines whether symbol fonts can be selected. Has
2653 no effect on other platforms. The default value is true.
2655 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2657 def SetChosenFont(*args
, **kwargs
):
2659 SetChosenFont(self, Font font)
2661 Sets the font that will be returned to the user (normally for internal
2664 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2666 def SetColour(*args
, **kwargs
):
2668 SetColour(self, Colour colour)
2670 Sets the colour that will be used for the font foreground colour. The
2671 default colour is black.
2673 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2675 def SetInitialFont(*args
, **kwargs
):
2677 SetInitialFont(self, Font font)
2679 Sets the font that will be initially used by the font dialog.
2681 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2683 def SetRange(*args
, **kwargs
):
2685 SetRange(self, int min, int max)
2687 Sets the valid range for the font point size (Windows only). The
2688 default is 0, 0 (unrestricted range).
2690 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2692 def SetShowHelp(*args
, **kwargs
):
2694 SetShowHelp(self, bool showHelp)
2696 Determines whether the Help button will be displayed in the font
2697 dialog (Windows only). The default value is false.
2699 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2702 class FontDataPtr(FontData
):
2703 def __init__(self
, this
):
2705 if not hasattr(self
,"thisown"): self
.thisown
= 0
2706 self
.__class
__ = FontData
2707 _windows_
.FontData_swigregister(FontDataPtr
)
2709 class FontDialog(Dialog
):
2711 wx.FontDialog allows the user to select a system font and its attributes.
2717 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2718 def __init__(self
, *args
, **kwargs
):
2720 __init__(self, Window parent, FontData data) -> FontDialog
2722 Constructor. Pass a parent window and the `wx.FontData` object to be
2723 used to initialize the dialog controls. Call `ShowModal` to display
2724 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2725 results with via the `wx.FontData` returned by `GetFontData`.
2727 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2728 self
.this
= newobj
.this
2731 self
._setOORInfo
(self
)
2733 def GetFontData(*args
, **kwargs
):
2735 GetFontData(self) -> FontData
2737 Returns a reference to the internal `wx.FontData` used by the
2740 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2743 class FontDialogPtr(FontDialog
):
2744 def __init__(self
, this
):
2746 if not hasattr(self
,"thisown"): self
.thisown
= 0
2747 self
.__class
__ = FontDialog
2748 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2750 class MessageDialog(Dialog
):
2752 This class provides a simple dialog that shows a single or multi-line
2753 message, with a choice of OK, Yes, No and/or Cancel buttons.
2756 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2757 def __init__(self
, *args
, **kwargs
):
2759 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2760 long style=wxOK|wxCANCEL|wxCENTRE,
2761 Point pos=DefaultPosition) -> MessageDialog
2763 Constructor, use `ShowModal` to display the dialog.
2765 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2766 self
.this
= newobj
.this
2769 self
._setOORInfo
(self
)
2772 class MessageDialogPtr(MessageDialog
):
2773 def __init__(self
, this
):
2775 if not hasattr(self
,"thisown"): self
.thisown
= 0
2776 self
.__class
__ = MessageDialog
2777 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2779 class ProgressDialog(Frame
):
2781 A dialog that shows a short message and a progress bar. Optionally, it
2782 can display an ABORT button.
2785 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2786 def __init__(self
, *args
, **kwargs
):
2788 __init__(self, String title, String message, int maximum=100, Window parent=None,
2789 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2791 Constructor. Creates the dialog, displays it and disables user input
2792 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2795 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2796 self
.this
= newobj
.this
2799 self
._setOORInfo
(self
)
2801 def Update(*args
, **kwargs
):
2803 Update(self, int value, String newmsg=EmptyString) -> bool
2805 Updates the dialog, setting the progress bar to the new value and, if
2806 given changes the message above it. The value given should be less
2807 than or equal to the maximum value given to the constructor and the
2808 dialog is closed if it is equal to the maximum. Returns true unless
2809 the Cancel button has been pressed.
2811 If false is returned, the application can either immediately destroy
2812 the dialog or ask the user for the confirmation and if the abort is
2813 not confirmed the dialog may be resumed with Resume function.
2815 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2817 def Resume(*args
, **kwargs
):
2821 Can be used to continue with the dialog, after the user had chosen to
2824 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2827 class ProgressDialogPtr(ProgressDialog
):
2828 def __init__(self
, this
):
2830 if not hasattr(self
,"thisown"): self
.thisown
= 0
2831 self
.__class
__ = ProgressDialog
2832 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2834 FR_DOWN
= _windows_
.FR_DOWN
2835 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2836 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2837 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2838 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2839 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2840 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2841 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2842 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2843 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2844 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2845 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2846 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2847 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2848 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2849 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2850 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2852 # For backwards compatibility. Should they be removed?
2853 EVT_COMMAND_FIND
= EVT_FIND
2854 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2855 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2856 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2857 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2859 class FindDialogEvent(_core
.CommandEvent
):
2860 """Events for the FindReplaceDialog"""
2862 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2863 def __init__(self
, *args
, **kwargs
):
2865 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2867 Events for the FindReplaceDialog
2869 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2870 self
.this
= newobj
.this
2873 def GetFlags(*args
, **kwargs
):
2875 GetFlags(self) -> int
2877 Get the currently selected flags: this is the combination of
2878 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2880 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2882 def GetFindString(*args
, **kwargs
):
2884 GetFindString(self) -> String
2886 Return the string to find (never empty).
2888 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2890 def GetReplaceString(*args
, **kwargs
):
2892 GetReplaceString(self) -> String
2894 Return the string to replace the search string with (only for replace
2895 and replace all events).
2897 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2899 def GetDialog(*args
, **kwargs
):
2901 GetDialog(self) -> FindReplaceDialog
2903 Return the pointer to the dialog which generated this event.
2905 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2907 def SetFlags(*args
, **kwargs
):
2908 """SetFlags(self, int flags)"""
2909 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2911 def SetFindString(*args
, **kwargs
):
2912 """SetFindString(self, String str)"""
2913 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2915 def SetReplaceString(*args
, **kwargs
):
2916 """SetReplaceString(self, String str)"""
2917 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2920 class FindDialogEventPtr(FindDialogEvent
):
2921 def __init__(self
, this
):
2923 if not hasattr(self
,"thisown"): self
.thisown
= 0
2924 self
.__class
__ = FindDialogEvent
2925 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2927 class FindReplaceData(_core
.Object
):
2929 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2930 to initialize the dialog with the default values and will keep the
2931 last values from the dialog when it is closed. It is also updated each
2932 time a `wx.FindDialogEvent` is generated so instead of using the
2933 `wx.FindDialogEvent` methods you can also directly query this object.
2935 Note that all SetXXX() methods may only be called before showing the
2936 dialog and calling them has no effect later.
2939 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2940 def __init__(self
, *args
, **kwargs
):
2942 __init__(self, int flags=0) -> FindReplaceData
2944 Constuctor initializes the flags to default value (0).
2946 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
2947 self
.this
= newobj
.this
2950 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
2953 if self
.thisown
: destroy(self
)
2956 def GetFindString(*args
, **kwargs
):
2958 GetFindString(self) -> String
2960 Get the string to find.
2962 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2964 def GetReplaceString(*args
, **kwargs
):
2966 GetReplaceString(self) -> String
2968 Get the replacement string.
2970 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2972 def GetFlags(*args
, **kwargs
):
2974 GetFlags(self) -> int
2976 Get the combination of flag values.
2978 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
2980 def SetFlags(*args
, **kwargs
):
2982 SetFlags(self, int flags)
2984 Set the flags to use to initialize the controls of the dialog.
2986 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
2988 def SetFindString(*args
, **kwargs
):
2990 SetFindString(self, String str)
2992 Set the string to find (used as initial value by the dialog).
2994 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
2996 def SetReplaceString(*args
, **kwargs
):
2998 SetReplaceString(self, String str)
3000 Set the replacement string (used as initial value by the dialog).
3002 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3005 class FindReplaceDataPtr(FindReplaceData
):
3006 def __init__(self
, this
):
3008 if not hasattr(self
,"thisown"): self
.thisown
= 0
3009 self
.__class
__ = FindReplaceData
3010 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3012 class FindReplaceDialog(Dialog
):
3014 wx.FindReplaceDialog is a standard modeless dialog which is used to
3015 allow the user to search for some text (and possibly replace it with
3016 something else). The actual searching is supposed to be done in the
3017 owner window which is the parent of this dialog. Note that it means
3018 that unlike for the other standard dialogs this one must have a parent
3019 window. Also note that there is no way to use this dialog in a modal
3020 way; it is always, by design and implementation, modeless.
3023 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3024 def __init__(self
, *args
, **kwargs
):
3026 __init__(self, Window parent, FindReplaceData data, String title,
3027 int style=0) -> FindReplaceDialog
3029 Create a FindReplaceDialog. The parent and data parameters must be
3030 non-None. Use Show to display the dialog.
3032 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3033 self
.this
= newobj
.this
3036 self
._setOORInfo
(self
)
3038 def Create(*args
, **kwargs
):
3040 Create(self, Window parent, FindReplaceData data, String title,
3041 int style=0) -> bool
3043 Create the dialog, for 2-phase create.
3045 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3047 def GetData(*args
, **kwargs
):
3049 GetData(self) -> FindReplaceData
3051 Get the FindReplaceData object used by this dialog.
3053 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3055 def SetData(*args
, **kwargs
):
3057 SetData(self, FindReplaceData data)
3059 Set the FindReplaceData object used by this dialog.
3061 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3064 class FindReplaceDialogPtr(FindReplaceDialog
):
3065 def __init__(self
, this
):
3067 if not hasattr(self
,"thisown"): self
.thisown
= 0
3068 self
.__class
__ = FindReplaceDialog
3069 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3071 def PreFindReplaceDialog(*args
, **kwargs
):
3073 PreFindReplaceDialog() -> FindReplaceDialog
3075 Precreate a FindReplaceDialog for 2-phase creation
3077 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3081 #---------------------------------------------------------------------------
3083 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3084 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3085 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3086 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3087 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3088 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3089 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3090 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3091 class MDIParentFrame(Frame
):
3093 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3094 def __init__(self
, *args
, **kwargs
):
3096 __init__(self, Window parent, int id=-1, String title=EmptyString,
3097 Point pos=DefaultPosition, Size size=DefaultSize,
3098 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3099 String name=FrameNameStr) -> MDIParentFrame
3101 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3102 self
.this
= newobj
.this
3105 self
._setOORInfo
(self
)
3107 def Create(*args
, **kwargs
):
3109 Create(self, Window parent, int id=-1, String title=EmptyString,
3110 Point pos=DefaultPosition, Size size=DefaultSize,
3111 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3112 String name=FrameNameStr) -> bool
3114 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3116 def ActivateNext(*args
, **kwargs
):
3117 """ActivateNext(self)"""
3118 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3120 def ActivatePrevious(*args
, **kwargs
):
3121 """ActivatePrevious(self)"""
3122 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3124 def ArrangeIcons(*args
, **kwargs
):
3125 """ArrangeIcons(self)"""
3126 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3128 def Cascade(*args
, **kwargs
):
3130 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3132 def GetActiveChild(*args
, **kwargs
):
3133 """GetActiveChild(self) -> MDIChildFrame"""
3134 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3136 def GetClientWindow(*args
, **kwargs
):
3137 """GetClientWindow(self) -> MDIClientWindow"""
3138 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3140 def GetToolBar(*args
, **kwargs
):
3141 """GetToolBar(self) -> Window"""
3142 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3144 def Tile(*args
, **kwargs
):
3146 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3149 class MDIParentFramePtr(MDIParentFrame
):
3150 def __init__(self
, this
):
3152 if not hasattr(self
,"thisown"): self
.thisown
= 0
3153 self
.__class
__ = MDIParentFrame
3154 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3156 def PreMDIParentFrame(*args
, **kwargs
):
3157 """PreMDIParentFrame() -> MDIParentFrame"""
3158 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3162 class MDIChildFrame(Frame
):
3164 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3165 def __init__(self
, *args
, **kwargs
):
3167 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3168 Point pos=DefaultPosition, Size size=DefaultSize,
3169 long style=DEFAULT_FRAME_STYLE,
3170 String name=FrameNameStr) -> MDIChildFrame
3172 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3173 self
.this
= newobj
.this
3176 self
._setOORInfo
(self
)
3178 def Create(*args
, **kwargs
):
3180 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3181 Point pos=DefaultPosition, Size size=DefaultSize,
3182 long style=DEFAULT_FRAME_STYLE,
3183 String name=FrameNameStr) -> bool
3185 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3187 def Activate(*args
, **kwargs
):
3188 """Activate(self)"""
3189 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3191 def Maximize(*args
, **kwargs
):
3192 """Maximize(self, bool maximize)"""
3193 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3195 def Restore(*args
, **kwargs
):
3197 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3200 class MDIChildFramePtr(MDIChildFrame
):
3201 def __init__(self
, this
):
3203 if not hasattr(self
,"thisown"): self
.thisown
= 0
3204 self
.__class
__ = MDIChildFrame
3205 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3207 def PreMDIChildFrame(*args
, **kwargs
):
3208 """PreMDIChildFrame() -> MDIChildFrame"""
3209 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3213 class MDIClientWindow(_core
.Window
):
3215 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3216 def __init__(self
, *args
, **kwargs
):
3217 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3218 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3219 self
.this
= newobj
.this
3222 self
._setOORInfo
(self
)
3224 def Create(*args
, **kwargs
):
3225 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3226 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3229 class MDIClientWindowPtr(MDIClientWindow
):
3230 def __init__(self
, this
):
3232 if not hasattr(self
,"thisown"): self
.thisown
= 0
3233 self
.__class
__ = MDIClientWindow
3234 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3236 def PreMDIClientWindow(*args
, **kwargs
):
3237 """PreMDIClientWindow() -> MDIClientWindow"""
3238 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3242 #---------------------------------------------------------------------------
3244 class PyWindow(_core
.Window
):
3246 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3247 def __init__(self
, *args
, **kwargs
):
3249 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3250 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3252 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3253 self
.this
= newobj
.this
3256 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3258 def _setCallbackInfo(*args
, **kwargs
):
3259 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3260 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3262 def SetBestSize(*args
, **kwargs
):
3263 """SetBestSize(self, Size size)"""
3264 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3266 def base_DoMoveWindow(*args
, **kwargs
):
3267 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3268 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3270 def base_DoSetSize(*args
, **kwargs
):
3271 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3272 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3274 def base_DoSetClientSize(*args
, **kwargs
):
3275 """base_DoSetClientSize(self, int width, int height)"""
3276 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3278 def base_DoSetVirtualSize(*args
, **kwargs
):
3279 """base_DoSetVirtualSize(self, int x, int y)"""
3280 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3282 def base_DoGetSize(*args
, **kwargs
):
3283 """base_DoGetSize() -> (width, height)"""
3284 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3286 def base_DoGetClientSize(*args
, **kwargs
):
3287 """base_DoGetClientSize() -> (width, height)"""
3288 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3290 def base_DoGetPosition(*args
, **kwargs
):
3291 """base_DoGetPosition() -> (x,y)"""
3292 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3294 def base_DoGetVirtualSize(*args
, **kwargs
):
3295 """base_DoGetVirtualSize(self) -> Size"""
3296 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3298 def base_DoGetBestSize(*args
, **kwargs
):
3299 """base_DoGetBestSize(self) -> Size"""
3300 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3302 def base_InitDialog(*args
, **kwargs
):
3303 """base_InitDialog(self)"""
3304 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3306 def base_TransferDataToWindow(*args
, **kwargs
):
3307 """base_TransferDataToWindow(self) -> bool"""
3308 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3310 def base_TransferDataFromWindow(*args
, **kwargs
):
3311 """base_TransferDataFromWindow(self) -> bool"""
3312 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3314 def base_Validate(*args
, **kwargs
):
3315 """base_Validate(self) -> bool"""
3316 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3318 def base_AcceptsFocus(*args
, **kwargs
):
3319 """base_AcceptsFocus(self) -> bool"""
3320 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3322 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3323 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3324 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3326 def base_GetMaxSize(*args
, **kwargs
):
3327 """base_GetMaxSize(self) -> Size"""
3328 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3330 def base_AddChild(*args
, **kwargs
):
3331 """base_AddChild(self, Window child)"""
3332 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3334 def base_RemoveChild(*args
, **kwargs
):
3335 """base_RemoveChild(self, Window child)"""
3336 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3338 def base_ShouldInheritColours(*args
, **kwargs
):
3339 """base_ShouldInheritColours(self) -> bool"""
3340 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3342 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3343 """base_ApplyParentThemeBackground(self, Colour c)"""
3344 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3346 def base_GetDefaultAttributes(*args
, **kwargs
):
3347 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3348 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3351 class PyWindowPtr(PyWindow
):
3352 def __init__(self
, this
):
3354 if not hasattr(self
,"thisown"): self
.thisown
= 0
3355 self
.__class
__ = PyWindow
3356 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3358 def PrePyWindow(*args
, **kwargs
):
3359 """PrePyWindow() -> PyWindow"""
3360 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3364 class PyPanel(Panel
):
3366 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3367 def __init__(self
, *args
, **kwargs
):
3369 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3370 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3372 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3373 self
.this
= newobj
.this
3376 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3378 def _setCallbackInfo(*args
, **kwargs
):
3379 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3380 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3382 def SetBestSize(*args
, **kwargs
):
3383 """SetBestSize(self, Size size)"""
3384 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3386 def base_DoMoveWindow(*args
, **kwargs
):
3387 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3388 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3390 def base_DoSetSize(*args
, **kwargs
):
3391 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3392 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3394 def base_DoSetClientSize(*args
, **kwargs
):
3395 """base_DoSetClientSize(self, int width, int height)"""
3396 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3398 def base_DoSetVirtualSize(*args
, **kwargs
):
3399 """base_DoSetVirtualSize(self, int x, int y)"""
3400 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3402 def base_DoGetSize(*args
, **kwargs
):
3403 """base_DoGetSize() -> (width, height)"""
3404 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3406 def base_DoGetClientSize(*args
, **kwargs
):
3407 """base_DoGetClientSize() -> (width, height)"""
3408 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3410 def base_DoGetPosition(*args
, **kwargs
):
3411 """base_DoGetPosition() -> (x,y)"""
3412 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3414 def base_DoGetVirtualSize(*args
, **kwargs
):
3415 """base_DoGetVirtualSize(self) -> Size"""
3416 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3418 def base_DoGetBestSize(*args
, **kwargs
):
3419 """base_DoGetBestSize(self) -> Size"""
3420 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3422 def base_InitDialog(*args
, **kwargs
):
3423 """base_InitDialog(self)"""
3424 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3426 def base_TransferDataToWindow(*args
, **kwargs
):
3427 """base_TransferDataToWindow(self) -> bool"""
3428 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3430 def base_TransferDataFromWindow(*args
, **kwargs
):
3431 """base_TransferDataFromWindow(self) -> bool"""
3432 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3434 def base_Validate(*args
, **kwargs
):
3435 """base_Validate(self) -> bool"""
3436 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3438 def base_AcceptsFocus(*args
, **kwargs
):
3439 """base_AcceptsFocus(self) -> bool"""
3440 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3442 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3443 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3444 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3446 def base_GetMaxSize(*args
, **kwargs
):
3447 """base_GetMaxSize(self) -> Size"""
3448 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3450 def base_AddChild(*args
, **kwargs
):
3451 """base_AddChild(self, Window child)"""
3452 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3454 def base_RemoveChild(*args
, **kwargs
):
3455 """base_RemoveChild(self, Window child)"""
3456 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3458 def base_ShouldInheritColours(*args
, **kwargs
):
3459 """base_ShouldInheritColours(self) -> bool"""
3460 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3462 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3463 """base_ApplyParentThemeBackground(self, Colour c)"""
3464 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3466 def base_GetDefaultAttributes(*args
, **kwargs
):
3467 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3468 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3471 class PyPanelPtr(PyPanel
):
3472 def __init__(self
, this
):
3474 if not hasattr(self
,"thisown"): self
.thisown
= 0
3475 self
.__class
__ = PyPanel
3476 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3478 def PrePyPanel(*args
, **kwargs
):
3479 """PrePyPanel() -> PyPanel"""
3480 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3484 class PyScrolledWindow(ScrolledWindow
):
3486 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3487 def __init__(self
, *args
, **kwargs
):
3489 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3490 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3492 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3493 self
.this
= newobj
.this
3496 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3498 def _setCallbackInfo(*args
, **kwargs
):
3499 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3500 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3502 def SetBestSize(*args
, **kwargs
):
3503 """SetBestSize(self, Size size)"""
3504 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3506 def base_DoMoveWindow(*args
, **kwargs
):
3507 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3508 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3510 def base_DoSetSize(*args
, **kwargs
):
3511 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3512 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3514 def base_DoSetClientSize(*args
, **kwargs
):
3515 """base_DoSetClientSize(self, int width, int height)"""
3516 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3518 def base_DoSetVirtualSize(*args
, **kwargs
):
3519 """base_DoSetVirtualSize(self, int x, int y)"""
3520 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3522 def base_DoGetSize(*args
, **kwargs
):
3523 """base_DoGetSize() -> (width, height)"""
3524 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3526 def base_DoGetClientSize(*args
, **kwargs
):
3527 """base_DoGetClientSize() -> (width, height)"""
3528 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3530 def base_DoGetPosition(*args
, **kwargs
):
3531 """base_DoGetPosition() -> (x,y)"""
3532 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3534 def base_DoGetVirtualSize(*args
, **kwargs
):
3535 """base_DoGetVirtualSize(self) -> Size"""
3536 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3538 def base_DoGetBestSize(*args
, **kwargs
):
3539 """base_DoGetBestSize(self) -> Size"""
3540 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3542 def base_InitDialog(*args
, **kwargs
):
3543 """base_InitDialog(self)"""
3544 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3546 def base_TransferDataToWindow(*args
, **kwargs
):
3547 """base_TransferDataToWindow(self) -> bool"""
3548 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3550 def base_TransferDataFromWindow(*args
, **kwargs
):
3551 """base_TransferDataFromWindow(self) -> bool"""
3552 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3554 def base_Validate(*args
, **kwargs
):
3555 """base_Validate(self) -> bool"""
3556 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3558 def base_AcceptsFocus(*args
, **kwargs
):
3559 """base_AcceptsFocus(self) -> bool"""
3560 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3562 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3563 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3564 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3566 def base_GetMaxSize(*args
, **kwargs
):
3567 """base_GetMaxSize(self) -> Size"""
3568 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3570 def base_AddChild(*args
, **kwargs
):
3571 """base_AddChild(self, Window child)"""
3572 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3574 def base_RemoveChild(*args
, **kwargs
):
3575 """base_RemoveChild(self, Window child)"""
3576 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3578 def base_ShouldInheritColours(*args
, **kwargs
):
3579 """base_ShouldInheritColours(self) -> bool"""
3580 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3582 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3583 """base_ApplyParentThemeBackground(self, Colour c)"""
3584 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3586 def base_GetDefaultAttributes(*args
, **kwargs
):
3587 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3588 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3591 class PyScrolledWindowPtr(PyScrolledWindow
):
3592 def __init__(self
, this
):
3594 if not hasattr(self
,"thisown"): self
.thisown
= 0
3595 self
.__class
__ = PyScrolledWindow
3596 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3598 def PrePyScrolledWindow(*args
, **kwargs
):
3599 """PrePyScrolledWindow() -> PyScrolledWindow"""
3600 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3604 #---------------------------------------------------------------------------
3606 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3607 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3608 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3609 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3610 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3611 class PrintData(_core
.Object
):
3613 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3614 def __init__(self
, *args
):
3616 __init__(self) -> PrintData
3617 __init__(self, PrintData data) -> PrintData
3619 newobj
= _windows_
.new_PrintData(*args
)
3620 self
.this
= newobj
.this
3623 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3626 if self
.thisown
: destroy(self
)
3629 def GetNoCopies(*args
, **kwargs
):
3630 """GetNoCopies(self) -> int"""
3631 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3633 def GetCollate(*args
, **kwargs
):
3634 """GetCollate(self) -> bool"""
3635 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3637 def GetOrientation(*args
, **kwargs
):
3638 """GetOrientation(self) -> int"""
3639 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3641 def Ok(*args
, **kwargs
):
3642 """Ok(self) -> bool"""
3643 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3645 def GetPrinterName(*args
, **kwargs
):
3646 """GetPrinterName(self) -> String"""
3647 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3649 def GetColour(*args
, **kwargs
):
3650 """GetColour(self) -> bool"""
3651 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3653 def GetDuplex(*args
, **kwargs
):
3654 """GetDuplex(self) -> int"""
3655 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3657 def GetPaperId(*args
, **kwargs
):
3658 """GetPaperId(self) -> int"""
3659 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3661 def GetPaperSize(*args
, **kwargs
):
3662 """GetPaperSize(self) -> Size"""
3663 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3665 def GetQuality(*args
, **kwargs
):
3666 """GetQuality(self) -> int"""
3667 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3669 def SetNoCopies(*args
, **kwargs
):
3670 """SetNoCopies(self, int v)"""
3671 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3673 def SetCollate(*args
, **kwargs
):
3674 """SetCollate(self, bool flag)"""
3675 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3677 def SetOrientation(*args
, **kwargs
):
3678 """SetOrientation(self, int orient)"""
3679 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3681 def SetPrinterName(*args
, **kwargs
):
3682 """SetPrinterName(self, String name)"""
3683 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3685 def SetColour(*args
, **kwargs
):
3686 """SetColour(self, bool colour)"""
3687 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3689 def SetDuplex(*args
, **kwargs
):
3690 """SetDuplex(self, int duplex)"""
3691 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3693 def SetPaperId(*args
, **kwargs
):
3694 """SetPaperId(self, int sizeId)"""
3695 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3697 def SetPaperSize(*args
, **kwargs
):
3698 """SetPaperSize(self, Size sz)"""
3699 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3701 def SetQuality(*args
, **kwargs
):
3702 """SetQuality(self, int quality)"""
3703 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3705 def GetPrinterCommand(*args
, **kwargs
):
3706 """GetPrinterCommand(self) -> String"""
3707 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3709 def GetPrinterOptions(*args
, **kwargs
):
3710 """GetPrinterOptions(self) -> String"""
3711 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3713 def GetPreviewCommand(*args
, **kwargs
):
3714 """GetPreviewCommand(self) -> String"""
3715 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3717 def GetFilename(*args
, **kwargs
):
3718 """GetFilename(self) -> String"""
3719 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3721 def GetFontMetricPath(*args
, **kwargs
):
3722 """GetFontMetricPath(self) -> String"""
3723 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3725 def GetPrinterScaleX(*args
, **kwargs
):
3726 """GetPrinterScaleX(self) -> double"""
3727 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3729 def GetPrinterScaleY(*args
, **kwargs
):
3730 """GetPrinterScaleY(self) -> double"""
3731 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3733 def GetPrinterTranslateX(*args
, **kwargs
):
3734 """GetPrinterTranslateX(self) -> long"""
3735 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3737 def GetPrinterTranslateY(*args
, **kwargs
):
3738 """GetPrinterTranslateY(self) -> long"""
3739 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3741 def GetPrintMode(*args
, **kwargs
):
3742 """GetPrintMode(self) -> int"""
3743 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3745 def SetPrinterCommand(*args
, **kwargs
):
3746 """SetPrinterCommand(self, String command)"""
3747 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3749 def SetPrinterOptions(*args
, **kwargs
):
3750 """SetPrinterOptions(self, String options)"""
3751 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3753 def SetPreviewCommand(*args
, **kwargs
):
3754 """SetPreviewCommand(self, String command)"""
3755 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3757 def SetFilename(*args
, **kwargs
):
3758 """SetFilename(self, String filename)"""
3759 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3761 def SetFontMetricPath(*args
, **kwargs
):
3762 """SetFontMetricPath(self, String path)"""
3763 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3765 def SetPrinterScaleX(*args
, **kwargs
):
3766 """SetPrinterScaleX(self, double x)"""
3767 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3769 def SetPrinterScaleY(*args
, **kwargs
):
3770 """SetPrinterScaleY(self, double y)"""
3771 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3773 def SetPrinterScaling(*args
, **kwargs
):
3774 """SetPrinterScaling(self, double x, double y)"""
3775 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3777 def SetPrinterTranslateX(*args
, **kwargs
):
3778 """SetPrinterTranslateX(self, long x)"""
3779 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3781 def SetPrinterTranslateY(*args
, **kwargs
):
3782 """SetPrinterTranslateY(self, long y)"""
3783 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3785 def SetPrinterTranslation(*args
, **kwargs
):
3786 """SetPrinterTranslation(self, long x, long y)"""
3787 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3789 def SetPrintMode(*args
, **kwargs
):
3790 """SetPrintMode(self, int printMode)"""
3791 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3793 def GetOutputStream(*args
, **kwargs
):
3794 """GetOutputStream(self) -> OutputStream"""
3795 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3797 def SetOutputStream(*args
, **kwargs
):
3798 """SetOutputStream(self, OutputStream outputstream)"""
3799 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3801 def __nonzero__(self
): return self
.Ok()
3803 class PrintDataPtr(PrintData
):
3804 def __init__(self
, this
):
3806 if not hasattr(self
,"thisown"): self
.thisown
= 0
3807 self
.__class
__ = PrintData
3808 _windows_
.PrintData_swigregister(PrintDataPtr
)
3809 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3810 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3812 class PageSetupDialogData(_core
.Object
):
3814 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3815 def __init__(self
, *args
):
3817 __init__(self) -> PageSetupDialogData
3818 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3820 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3821 self
.this
= newobj
.this
3824 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3827 if self
.thisown
: destroy(self
)
3830 def EnableHelp(*args
, **kwargs
):
3831 """EnableHelp(self, bool flag)"""
3832 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3834 def EnableMargins(*args
, **kwargs
):
3835 """EnableMargins(self, bool flag)"""
3836 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3838 def EnableOrientation(*args
, **kwargs
):
3839 """EnableOrientation(self, bool flag)"""
3840 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3842 def EnablePaper(*args
, **kwargs
):
3843 """EnablePaper(self, bool flag)"""
3844 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3846 def EnablePrinter(*args
, **kwargs
):
3847 """EnablePrinter(self, bool flag)"""
3848 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3850 def GetDefaultMinMargins(*args
, **kwargs
):
3851 """GetDefaultMinMargins(self) -> bool"""
3852 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3854 def GetEnableMargins(*args
, **kwargs
):
3855 """GetEnableMargins(self) -> bool"""
3856 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3858 def GetEnableOrientation(*args
, **kwargs
):
3859 """GetEnableOrientation(self) -> bool"""
3860 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3862 def GetEnablePaper(*args
, **kwargs
):
3863 """GetEnablePaper(self) -> bool"""
3864 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3866 def GetEnablePrinter(*args
, **kwargs
):
3867 """GetEnablePrinter(self) -> bool"""
3868 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3870 def GetEnableHelp(*args
, **kwargs
):
3871 """GetEnableHelp(self) -> bool"""
3872 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3874 def GetDefaultInfo(*args
, **kwargs
):
3875 """GetDefaultInfo(self) -> bool"""
3876 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3878 def GetMarginTopLeft(*args
, **kwargs
):
3879 """GetMarginTopLeft(self) -> Point"""
3880 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3882 def GetMarginBottomRight(*args
, **kwargs
):
3883 """GetMarginBottomRight(self) -> Point"""
3884 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3886 def GetMinMarginTopLeft(*args
, **kwargs
):
3887 """GetMinMarginTopLeft(self) -> Point"""
3888 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3890 def GetMinMarginBottomRight(*args
, **kwargs
):
3891 """GetMinMarginBottomRight(self) -> Point"""
3892 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3894 def GetPaperId(*args
, **kwargs
):
3895 """GetPaperId(self) -> int"""
3896 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3898 def GetPaperSize(*args
, **kwargs
):
3899 """GetPaperSize(self) -> Size"""
3900 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3902 def GetPrintData(*args
, **kwargs
):
3903 """GetPrintData(self) -> PrintData"""
3904 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3906 def Ok(*args
, **kwargs
):
3907 """Ok(self) -> bool"""
3908 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3910 def SetDefaultInfo(*args
, **kwargs
):
3911 """SetDefaultInfo(self, bool flag)"""
3912 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3914 def SetDefaultMinMargins(*args
, **kwargs
):
3915 """SetDefaultMinMargins(self, bool flag)"""
3916 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3918 def SetMarginTopLeft(*args
, **kwargs
):
3919 """SetMarginTopLeft(self, Point pt)"""
3920 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3922 def SetMarginBottomRight(*args
, **kwargs
):
3923 """SetMarginBottomRight(self, Point pt)"""
3924 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3926 def SetMinMarginTopLeft(*args
, **kwargs
):
3927 """SetMinMarginTopLeft(self, Point pt)"""
3928 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3930 def SetMinMarginBottomRight(*args
, **kwargs
):
3931 """SetMinMarginBottomRight(self, Point pt)"""
3932 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3934 def SetPaperId(*args
, **kwargs
):
3935 """SetPaperId(self, int id)"""
3936 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3938 def SetPaperSize(*args
, **kwargs
):
3939 """SetPaperSize(self, Size size)"""
3940 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3942 def SetPrintData(*args
, **kwargs
):
3943 """SetPrintData(self, PrintData printData)"""
3944 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3946 def __nonzero__(self
): return self
.Ok()
3948 class PageSetupDialogDataPtr(PageSetupDialogData
):
3949 def __init__(self
, this
):
3951 if not hasattr(self
,"thisown"): self
.thisown
= 0
3952 self
.__class
__ = PageSetupDialogData
3953 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3955 class PageSetupDialog(Dialog
):
3957 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3958 def __init__(self
, *args
, **kwargs
):
3959 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3960 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
3961 self
.this
= newobj
.this
3964 self
._setOORInfo
(self
)
3966 def GetPageSetupData(*args
, **kwargs
):
3967 """GetPageSetupData(self) -> PageSetupDialogData"""
3968 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3970 def ShowModal(*args
, **kwargs
):
3971 """ShowModal(self) -> int"""
3972 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3975 class PageSetupDialogPtr(PageSetupDialog
):
3976 def __init__(self
, this
):
3978 if not hasattr(self
,"thisown"): self
.thisown
= 0
3979 self
.__class
__ = PageSetupDialog
3980 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3982 class PrintDialogData(_core
.Object
):
3984 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3985 def __init__(self
, *args
):
3987 __init__(self) -> PrintDialogData
3988 __init__(self, PrintData printData) -> PrintDialogData
3990 newobj
= _windows_
.new_PrintDialogData(*args
)
3991 self
.this
= newobj
.this
3994 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
3997 if self
.thisown
: destroy(self
)
4000 def GetFromPage(*args
, **kwargs
):
4001 """GetFromPage(self) -> int"""
4002 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4004 def GetToPage(*args
, **kwargs
):
4005 """GetToPage(self) -> int"""
4006 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4008 def GetMinPage(*args
, **kwargs
):
4009 """GetMinPage(self) -> int"""
4010 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4012 def GetMaxPage(*args
, **kwargs
):
4013 """GetMaxPage(self) -> int"""
4014 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4016 def GetNoCopies(*args
, **kwargs
):
4017 """GetNoCopies(self) -> int"""
4018 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4020 def GetAllPages(*args
, **kwargs
):
4021 """GetAllPages(self) -> bool"""
4022 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4024 def GetSelection(*args
, **kwargs
):
4025 """GetSelection(self) -> bool"""
4026 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4028 def GetCollate(*args
, **kwargs
):
4029 """GetCollate(self) -> bool"""
4030 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4032 def GetPrintToFile(*args
, **kwargs
):
4033 """GetPrintToFile(self) -> bool"""
4034 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4036 def GetSetupDialog(*args
, **kwargs
):
4037 """GetSetupDialog(self) -> bool"""
4038 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4040 def SetFromPage(*args
, **kwargs
):
4041 """SetFromPage(self, int v)"""
4042 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4044 def SetToPage(*args
, **kwargs
):
4045 """SetToPage(self, int v)"""
4046 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4048 def SetMinPage(*args
, **kwargs
):
4049 """SetMinPage(self, int v)"""
4050 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4052 def SetMaxPage(*args
, **kwargs
):
4053 """SetMaxPage(self, int v)"""
4054 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4056 def SetNoCopies(*args
, **kwargs
):
4057 """SetNoCopies(self, int v)"""
4058 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4060 def SetAllPages(*args
, **kwargs
):
4061 """SetAllPages(self, bool flag)"""
4062 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4064 def SetSelection(*args
, **kwargs
):
4065 """SetSelection(self, bool flag)"""
4066 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4068 def SetCollate(*args
, **kwargs
):
4069 """SetCollate(self, bool flag)"""
4070 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4072 def SetPrintToFile(*args
, **kwargs
):
4073 """SetPrintToFile(self, bool flag)"""
4074 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4076 def SetSetupDialog(*args
, **kwargs
):
4077 """SetSetupDialog(self, bool flag)"""
4078 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4080 def EnablePrintToFile(*args
, **kwargs
):
4081 """EnablePrintToFile(self, bool flag)"""
4082 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4084 def EnableSelection(*args
, **kwargs
):
4085 """EnableSelection(self, bool flag)"""
4086 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4088 def EnablePageNumbers(*args
, **kwargs
):
4089 """EnablePageNumbers(self, bool flag)"""
4090 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4092 def EnableHelp(*args
, **kwargs
):
4093 """EnableHelp(self, bool flag)"""
4094 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4096 def GetEnablePrintToFile(*args
, **kwargs
):
4097 """GetEnablePrintToFile(self) -> bool"""
4098 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4100 def GetEnableSelection(*args
, **kwargs
):
4101 """GetEnableSelection(self) -> bool"""
4102 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4104 def GetEnablePageNumbers(*args
, **kwargs
):
4105 """GetEnablePageNumbers(self) -> bool"""
4106 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4108 def GetEnableHelp(*args
, **kwargs
):
4109 """GetEnableHelp(self) -> bool"""
4110 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4112 def Ok(*args
, **kwargs
):
4113 """Ok(self) -> bool"""
4114 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4116 def GetPrintData(*args
, **kwargs
):
4117 """GetPrintData(self) -> PrintData"""
4118 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4120 def SetPrintData(*args
, **kwargs
):
4121 """SetPrintData(self, PrintData printData)"""
4122 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4124 def __nonzero__(self
): return self
.Ok()
4126 class PrintDialogDataPtr(PrintDialogData
):
4127 def __init__(self
, this
):
4129 if not hasattr(self
,"thisown"): self
.thisown
= 0
4130 self
.__class
__ = PrintDialogData
4131 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4133 class PrintDialog(Dialog
):
4135 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4136 def __init__(self
, *args
, **kwargs
):
4137 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4138 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4139 self
.this
= newobj
.this
4142 self
._setOORInfo
(self
)
4144 def GetPrintDialogData(*args
, **kwargs
):
4145 """GetPrintDialogData(self) -> PrintDialogData"""
4146 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4148 def GetPrintDC(*args
, **kwargs
):
4149 """GetPrintDC(self) -> DC"""
4150 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4152 def ShowModal(*args
, **kwargs
):
4153 """ShowModal(self) -> int"""
4154 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4157 class PrintDialogPtr(PrintDialog
):
4158 def __init__(self
, this
):
4160 if not hasattr(self
,"thisown"): self
.thisown
= 0
4161 self
.__class
__ = PrintDialog
4162 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4164 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4165 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4166 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4167 class Printer(_core
.Object
):
4169 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4170 def __init__(self
, *args
, **kwargs
):
4171 """__init__(self, PrintDialogData data=None) -> Printer"""
4172 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4173 self
.this
= newobj
.this
4176 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4179 if self
.thisown
: destroy(self
)
4182 def CreateAbortWindow(*args
, **kwargs
):
4183 """CreateAbortWindow(self, Window parent, Printout printout)"""
4184 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4186 def GetPrintDialogData(*args
, **kwargs
):
4187 """GetPrintDialogData(self) -> PrintDialogData"""
4188 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4190 def Print(*args
, **kwargs
):
4191 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4192 return _windows_
.Printer_Print(*args
, **kwargs
)
4194 def PrintDialog(*args
, **kwargs
):
4195 """PrintDialog(self, Window parent) -> DC"""
4196 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4198 def ReportError(*args
, **kwargs
):
4199 """ReportError(self, Window parent, Printout printout, String message)"""
4200 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4202 def Setup(*args
, **kwargs
):
4203 """Setup(self, Window parent) -> bool"""
4204 return _windows_
.Printer_Setup(*args
, **kwargs
)
4206 def GetAbort(*args
, **kwargs
):
4207 """GetAbort(self) -> bool"""
4208 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4210 def GetLastError(*args
, **kwargs
):
4211 """GetLastError() -> int"""
4212 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4214 GetLastError
= staticmethod(GetLastError
)
4216 class PrinterPtr(Printer
):
4217 def __init__(self
, this
):
4219 if not hasattr(self
,"thisown"): self
.thisown
= 0
4220 self
.__class
__ = Printer
4221 _windows_
.Printer_swigregister(PrinterPtr
)
4223 def Printer_GetLastError(*args
, **kwargs
):
4224 """Printer_GetLastError() -> int"""
4225 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4227 class Printout(_core
.Object
):
4229 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4230 def __init__(self
, *args
, **kwargs
):
4231 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4232 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4233 self
.this
= newobj
.this
4236 self
._setCallbackInfo
(self
, Printout
)
4238 def _setCallbackInfo(*args
, **kwargs
):
4239 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4240 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4242 def GetTitle(*args
, **kwargs
):
4243 """GetTitle(self) -> String"""
4244 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4246 def GetDC(*args
, **kwargs
):
4247 """GetDC(self) -> DC"""
4248 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4250 def SetDC(*args
, **kwargs
):
4251 """SetDC(self, DC dc)"""
4252 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4254 def SetPageSizePixels(*args
, **kwargs
):
4255 """SetPageSizePixels(self, int w, int h)"""
4256 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4258 def GetPageSizePixels(*args
, **kwargs
):
4259 """GetPageSizePixels() -> (w, h)"""
4260 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4262 def SetPageSizeMM(*args
, **kwargs
):
4263 """SetPageSizeMM(self, int w, int h)"""
4264 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4266 def GetPageSizeMM(*args
, **kwargs
):
4267 """GetPageSizeMM() -> (w, h)"""
4268 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4270 def SetPPIScreen(*args
, **kwargs
):
4271 """SetPPIScreen(self, int x, int y)"""
4272 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4274 def GetPPIScreen(*args
, **kwargs
):
4275 """GetPPIScreen() -> (x,y)"""
4276 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4278 def SetPPIPrinter(*args
, **kwargs
):
4279 """SetPPIPrinter(self, int x, int y)"""
4280 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4282 def GetPPIPrinter(*args
, **kwargs
):
4283 """GetPPIPrinter() -> (x,y)"""
4284 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4286 def IsPreview(*args
, **kwargs
):
4287 """IsPreview(self) -> bool"""
4288 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4290 def SetIsPreview(*args
, **kwargs
):
4291 """SetIsPreview(self, bool p)"""
4292 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4294 def base_OnBeginDocument(*args
, **kwargs
):
4295 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4296 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4298 def base_OnEndDocument(*args
, **kwargs
):
4299 """base_OnEndDocument(self)"""
4300 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4302 def base_OnBeginPrinting(*args
, **kwargs
):
4303 """base_OnBeginPrinting(self)"""
4304 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4306 def base_OnEndPrinting(*args
, **kwargs
):
4307 """base_OnEndPrinting(self)"""
4308 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4310 def base_OnPreparePrinting(*args
, **kwargs
):
4311 """base_OnPreparePrinting(self)"""
4312 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4314 def base_HasPage(*args
, **kwargs
):
4315 """base_HasPage(self, int page) -> bool"""
4316 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4318 def base_GetPageInfo(*args
, **kwargs
):
4319 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4320 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4323 class PrintoutPtr(Printout
):
4324 def __init__(self
, this
):
4326 if not hasattr(self
,"thisown"): self
.thisown
= 0
4327 self
.__class
__ = Printout
4328 _windows_
.Printout_swigregister(PrintoutPtr
)
4330 class PreviewCanvas(ScrolledWindow
):
4332 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4333 def __init__(self
, *args
, **kwargs
):
4335 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4336 Size size=DefaultSize, long style=0,
4337 String name=PreviewCanvasNameStr) -> PreviewCanvas
4339 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4340 self
.this
= newobj
.this
4343 self
._setOORInfo
(self
)
4346 class PreviewCanvasPtr(PreviewCanvas
):
4347 def __init__(self
, this
):
4349 if not hasattr(self
,"thisown"): self
.thisown
= 0
4350 self
.__class
__ = PreviewCanvas
4351 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4353 class PreviewFrame(Frame
):
4355 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4356 def __init__(self
, *args
, **kwargs
):
4358 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4359 Size size=DefaultSize,
4360 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4362 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4363 self
.this
= newobj
.this
4366 self
._setOORInfo
(self
)
4368 def Initialize(*args
, **kwargs
):
4369 """Initialize(self)"""
4370 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4372 def CreateControlBar(*args
, **kwargs
):
4373 """CreateControlBar(self)"""
4374 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4376 def CreateCanvas(*args
, **kwargs
):
4377 """CreateCanvas(self)"""
4378 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4380 def GetControlBar(*args
, **kwargs
):
4381 """GetControlBar(self) -> PreviewControlBar"""
4382 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4385 class PreviewFramePtr(PreviewFrame
):
4386 def __init__(self
, this
):
4388 if not hasattr(self
,"thisown"): self
.thisown
= 0
4389 self
.__class
__ = PreviewFrame
4390 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4392 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4393 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4394 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4395 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4396 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4397 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4398 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4399 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4400 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4401 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4402 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4403 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4404 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4405 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4406 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4407 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4408 class PreviewControlBar(Panel
):
4410 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4411 def __init__(self
, *args
, **kwargs
):
4413 __init__(self, PrintPreview preview, long buttons, Window parent,
4414 Point pos=DefaultPosition, Size size=DefaultSize,
4415 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4417 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4418 self
.this
= newobj
.this
4421 self
._setOORInfo
(self
)
4423 def GetZoomControl(*args
, **kwargs
):
4424 """GetZoomControl(self) -> int"""
4425 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4427 def SetZoomControl(*args
, **kwargs
):
4428 """SetZoomControl(self, int zoom)"""
4429 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4431 def GetPrintPreview(*args
, **kwargs
):
4432 """GetPrintPreview(self) -> PrintPreview"""
4433 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4435 def OnNext(*args
, **kwargs
):
4437 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4439 def OnPrevious(*args
, **kwargs
):
4440 """OnPrevious(self)"""
4441 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4443 def OnFirst(*args
, **kwargs
):
4445 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4447 def OnLast(*args
, **kwargs
):
4449 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4451 def OnGoto(*args
, **kwargs
):
4453 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4456 class PreviewControlBarPtr(PreviewControlBar
):
4457 def __init__(self
, this
):
4459 if not hasattr(self
,"thisown"): self
.thisown
= 0
4460 self
.__class
__ = PreviewControlBar
4461 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4463 class PrintPreview(_core
.Object
):
4465 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4466 def __init__(self
, *args
):
4468 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4469 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4471 newobj
= _windows_
.new_PrintPreview(*args
)
4472 self
.this
= newobj
.this
4475 def SetCurrentPage(*args
, **kwargs
):
4476 """SetCurrentPage(self, int pageNum) -> bool"""
4477 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4479 def GetCurrentPage(*args
, **kwargs
):
4480 """GetCurrentPage(self) -> int"""
4481 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4483 def SetPrintout(*args
, **kwargs
):
4484 """SetPrintout(self, Printout printout)"""
4485 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4487 def GetPrintout(*args
, **kwargs
):
4488 """GetPrintout(self) -> Printout"""
4489 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4491 def GetPrintoutForPrinting(*args
, **kwargs
):
4492 """GetPrintoutForPrinting(self) -> Printout"""
4493 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4495 def SetFrame(*args
, **kwargs
):
4496 """SetFrame(self, Frame frame)"""
4497 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4499 def SetCanvas(*args
, **kwargs
):
4500 """SetCanvas(self, PreviewCanvas canvas)"""
4501 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4503 def GetFrame(*args
, **kwargs
):
4504 """GetFrame(self) -> Frame"""
4505 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4507 def GetCanvas(*args
, **kwargs
):
4508 """GetCanvas(self) -> PreviewCanvas"""
4509 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4511 def PaintPage(*args
, **kwargs
):
4512 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4513 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4515 def DrawBlankPage(*args
, **kwargs
):
4516 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4517 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4519 def RenderPage(*args
, **kwargs
):
4520 """RenderPage(self, int pageNum) -> bool"""
4521 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4523 def AdjustScrollbars(*args
, **kwargs
):
4524 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4525 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4527 def GetPrintDialogData(*args
, **kwargs
):
4528 """GetPrintDialogData(self) -> PrintDialogData"""
4529 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4531 def SetZoom(*args
, **kwargs
):
4532 """SetZoom(self, int percent)"""
4533 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4535 def GetZoom(*args
, **kwargs
):
4536 """GetZoom(self) -> int"""
4537 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4539 def GetMaxPage(*args
, **kwargs
):
4540 """GetMaxPage(self) -> int"""
4541 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4543 def GetMinPage(*args
, **kwargs
):
4544 """GetMinPage(self) -> int"""
4545 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4547 def Ok(*args
, **kwargs
):
4548 """Ok(self) -> bool"""
4549 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4551 def SetOk(*args
, **kwargs
):
4552 """SetOk(self, bool ok)"""
4553 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4555 def Print(*args
, **kwargs
):
4556 """Print(self, bool interactive) -> bool"""
4557 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4559 def DetermineScaling(*args
, **kwargs
):
4560 """DetermineScaling(self)"""
4561 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4563 def __nonzero__(self
): return self
.Ok()
4565 class PrintPreviewPtr(PrintPreview
):
4566 def __init__(self
, this
):
4568 if not hasattr(self
,"thisown"): self
.thisown
= 0
4569 self
.__class
__ = PrintPreview
4570 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4572 class PyPrintPreview(PrintPreview
):
4574 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4575 def __init__(self
, *args
):
4577 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4578 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4580 newobj
= _windows_
.new_PyPrintPreview(*args
)
4581 self
.this
= newobj
.this
4584 self
._setCallbackInfo
(self
, PyPrintPreview
)
4586 def _setCallbackInfo(*args
, **kwargs
):
4587 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4588 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4590 def base_SetCurrentPage(*args
, **kwargs
):
4591 """base_SetCurrentPage(self, int pageNum) -> bool"""
4592 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4594 def base_PaintPage(*args
, **kwargs
):
4595 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4596 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4598 def base_DrawBlankPage(*args
, **kwargs
):
4599 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4600 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4602 def base_RenderPage(*args
, **kwargs
):
4603 """base_RenderPage(self, int pageNum) -> bool"""
4604 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4606 def base_SetZoom(*args
, **kwargs
):
4607 """base_SetZoom(self, int percent)"""
4608 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4610 def base_Print(*args
, **kwargs
):
4611 """base_Print(self, bool interactive) -> bool"""
4612 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4614 def base_DetermineScaling(*args
, **kwargs
):
4615 """base_DetermineScaling(self)"""
4616 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4619 class PyPrintPreviewPtr(PyPrintPreview
):
4620 def __init__(self
, this
):
4622 if not hasattr(self
,"thisown"): self
.thisown
= 0
4623 self
.__class
__ = PyPrintPreview
4624 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4626 class PyPreviewFrame(PreviewFrame
):
4628 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4629 def __init__(self
, *args
, **kwargs
):
4631 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4632 Size size=DefaultSize,
4633 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4635 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4636 self
.this
= newobj
.this
4639 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4641 def _setCallbackInfo(*args
, **kwargs
):
4642 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4643 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4645 def SetPreviewCanvas(*args
, **kwargs
):
4646 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4647 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4649 def SetControlBar(*args
, **kwargs
):
4650 """SetControlBar(self, PreviewControlBar bar)"""
4651 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4653 def base_Initialize(*args
, **kwargs
):
4654 """base_Initialize(self)"""
4655 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4657 def base_CreateCanvas(*args
, **kwargs
):
4658 """base_CreateCanvas(self)"""
4659 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4661 def base_CreateControlBar(*args
, **kwargs
):
4662 """base_CreateControlBar(self)"""
4663 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4666 class PyPreviewFramePtr(PyPreviewFrame
):
4667 def __init__(self
, this
):
4669 if not hasattr(self
,"thisown"): self
.thisown
= 0
4670 self
.__class
__ = PyPreviewFrame
4671 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4673 class PyPreviewControlBar(PreviewControlBar
):
4675 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4676 def __init__(self
, *args
, **kwargs
):
4678 __init__(self, PrintPreview preview, long buttons, Window parent,
4679 Point pos=DefaultPosition, Size size=DefaultSize,
4680 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4682 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4683 self
.this
= newobj
.this
4686 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4688 def _setCallbackInfo(*args
, **kwargs
):
4689 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4690 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4692 def SetPrintPreview(*args
, **kwargs
):
4693 """SetPrintPreview(self, PrintPreview preview)"""
4694 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4696 def base_CreateButtons(*args
, **kwargs
):
4697 """base_CreateButtons(self)"""
4698 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4700 def base_SetZoomControl(*args
, **kwargs
):
4701 """base_SetZoomControl(self, int zoom)"""
4702 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4705 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4706 def __init__(self
, this
):
4708 if not hasattr(self
,"thisown"): self
.thisown
= 0
4709 self
.__class
__ = PyPreviewControlBar
4710 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)