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
)
613 class DialogPtr(Dialog
):
614 def __init__(self
, this
):
616 if not hasattr(self
,"thisown"): self
.thisown
= 0
617 self
.__class
__ = Dialog
618 _windows_
.Dialog_swigregister(DialogPtr
)
620 def PreDialog(*args
, **kwargs
):
621 """PreDialog() -> Dialog"""
622 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
626 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
628 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
630 Get the default attributes for this class. This is useful if you want
631 to use the same font or colour in your own control as in a standard
632 control -- which is a much better idea than hard coding specific
633 colours or fonts which might look completely out of place on the
634 user's system, especially if it uses themes.
636 The variant parameter is only relevant under Mac currently and is
637 ignore under other platforms. Under Mac, it will change the size of
638 the returned font. See `wx.Window.SetWindowVariant` for more about
641 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
643 #---------------------------------------------------------------------------
645 class MiniFrame(Frame
):
647 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
648 def __init__(self
, *args
, **kwargs
):
650 __init__(self, Window parent, int id=-1, String title=EmptyString,
651 Point pos=DefaultPosition, Size size=DefaultSize,
652 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
654 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
655 self
.this
= newobj
.this
658 self
._setOORInfo
(self
)
660 def Create(*args
, **kwargs
):
662 Create(self, Window parent, int id=-1, String title=EmptyString,
663 Point pos=DefaultPosition, Size size=DefaultSize,
664 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
666 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
669 class MiniFramePtr(MiniFrame
):
670 def __init__(self
, this
):
672 if not hasattr(self
,"thisown"): self
.thisown
= 0
673 self
.__class
__ = MiniFrame
674 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
676 def PreMiniFrame(*args
, **kwargs
):
677 """PreMiniFrame() -> MiniFrame"""
678 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
682 #---------------------------------------------------------------------------
684 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
685 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
686 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
687 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
688 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
689 class SplashScreenWindow(_core
.Window
):
691 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
692 def __init__(self
, *args
, **kwargs
):
694 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
695 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
697 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
698 self
.this
= newobj
.this
701 self
._setOORInfo
(self
)
703 def SetBitmap(*args
, **kwargs
):
704 """SetBitmap(self, Bitmap bitmap)"""
705 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
707 def GetBitmap(*args
, **kwargs
):
708 """GetBitmap(self) -> Bitmap"""
709 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
712 class SplashScreenWindowPtr(SplashScreenWindow
):
713 def __init__(self
, this
):
715 if not hasattr(self
,"thisown"): self
.thisown
= 0
716 self
.__class
__ = SplashScreenWindow
717 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
719 class SplashScreen(Frame
):
721 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
722 def __init__(self
, *args
, **kwargs
):
724 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
725 Window parent, int id=-1, Point pos=DefaultPosition,
726 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
728 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
729 self
.this
= newobj
.this
732 self
._setOORInfo
(self
)
734 def GetSplashStyle(*args
, **kwargs
):
735 """GetSplashStyle(self) -> long"""
736 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
738 def GetSplashWindow(*args
, **kwargs
):
739 """GetSplashWindow(self) -> SplashScreenWindow"""
740 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
742 def GetTimeout(*args
, **kwargs
):
743 """GetTimeout(self) -> int"""
744 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
747 class SplashScreenPtr(SplashScreen
):
748 def __init__(self
, this
):
750 if not hasattr(self
,"thisown"): self
.thisown
= 0
751 self
.__class
__ = SplashScreen
752 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
754 #---------------------------------------------------------------------------
756 class StatusBar(_core
.Window
):
758 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
759 def __init__(self
, *args
, **kwargs
):
760 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
761 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
762 self
.this
= newobj
.this
765 self
._setOORInfo
(self
)
767 def Create(*args
, **kwargs
):
768 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
769 return _windows_
.StatusBar_Create(*args
, **kwargs
)
771 def SetFieldsCount(*args
, **kwargs
):
772 """SetFieldsCount(self, int number=1)"""
773 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
775 def GetFieldsCount(*args
, **kwargs
):
776 """GetFieldsCount(self) -> int"""
777 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
779 def SetStatusText(*args
, **kwargs
):
780 """SetStatusText(self, String text, int number=0)"""
781 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
783 def GetStatusText(*args
, **kwargs
):
784 """GetStatusText(self, int number=0) -> String"""
785 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
787 def PushStatusText(*args
, **kwargs
):
788 """PushStatusText(self, String text, int number=0)"""
789 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
791 def PopStatusText(*args
, **kwargs
):
792 """PopStatusText(self, int number=0)"""
793 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
795 def SetStatusWidths(*args
, **kwargs
):
796 """SetStatusWidths(self, int widths, int widths_field)"""
797 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
799 def GetFieldRect(*args
, **kwargs
):
800 """GetFieldRect(self, int i) -> Rect"""
801 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
803 def SetMinHeight(*args
, **kwargs
):
804 """SetMinHeight(self, int height)"""
805 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
807 def GetBorderX(*args
, **kwargs
):
808 """GetBorderX(self) -> int"""
809 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
811 def GetBorderY(*args
, **kwargs
):
812 """GetBorderY(self) -> int"""
813 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
815 def GetClassDefaultAttributes(*args
, **kwargs
):
817 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
819 Get the default attributes for this class. This is useful if you want
820 to use the same font or colour in your own control as in a standard
821 control -- which is a much better idea than hard coding specific
822 colours or fonts which might look completely out of place on the
823 user's system, especially if it uses themes.
825 The variant parameter is only relevant under Mac currently and is
826 ignore under other platforms. Under Mac, it will change the size of
827 the returned font. See `wx.Window.SetWindowVariant` for more about
830 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
832 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
834 class StatusBarPtr(StatusBar
):
835 def __init__(self
, this
):
837 if not hasattr(self
,"thisown"): self
.thisown
= 0
838 self
.__class
__ = StatusBar
839 _windows_
.StatusBar_swigregister(StatusBarPtr
)
841 def PreStatusBar(*args
, **kwargs
):
842 """PreStatusBar() -> StatusBar"""
843 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
847 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
849 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
851 Get the default attributes for this class. This is useful if you want
852 to use the same font or colour in your own control as in a standard
853 control -- which is a much better idea than hard coding specific
854 colours or fonts which might look completely out of place on the
855 user's system, especially if it uses themes.
857 The variant parameter is only relevant under Mac currently and is
858 ignore under other platforms. Under Mac, it will change the size of
859 the returned font. See `wx.Window.SetWindowVariant` for more about
862 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
864 #---------------------------------------------------------------------------
866 SP_NOBORDER
= _windows_
.SP_NOBORDER
867 SP_NOSASH
= _windows_
.SP_NOSASH
868 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
869 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
870 SP_3DSASH
= _windows_
.SP_3DSASH
871 SP_3DBORDER
= _windows_
.SP_3DBORDER
872 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
873 SP_BORDER
= _windows_
.SP_BORDER
874 SP_3D
= _windows_
.SP_3D
875 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
876 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
877 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
878 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
879 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
880 class SplitterWindow(_core
.Window
):
882 wx.SplitterWindow manages up to two subwindows or panes, with an
883 optional vertical or horizontal split which can be used with the mouse
887 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
888 def __init__(self
, *args
, **kwargs
):
890 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
891 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
893 Constructor. Creates and shows a SplitterWindow.
895 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
896 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
897 self
.this
= newobj
.this
900 self
._setOORInfo
(self
)
902 def Create(*args
, **kwargs
):
904 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
905 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
907 Create the GUI part of the SplitterWindow for the 2-phase create.
909 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
911 def GetWindow1(*args
, **kwargs
):
913 GetWindow1(self) -> Window
915 Gets the only or left/top pane.
917 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
919 def GetWindow2(*args
, **kwargs
):
921 GetWindow2(self) -> Window
923 Gets the right/bottom pane.
925 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
927 def SetSplitMode(*args
, **kwargs
):
929 SetSplitMode(self, int mode)
931 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
932 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
935 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
937 def GetSplitMode(*args
, **kwargs
):
939 GetSplitMode(self) -> int
943 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
945 def Initialize(*args
, **kwargs
):
947 Initialize(self, Window window)
949 Initializes the splitter window to have one pane. This should be
950 called if you wish to initially view only a single pane in the
953 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
955 def SplitVertically(*args
, **kwargs
):
957 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
959 Initializes the left and right panes of the splitter window.
961 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
963 def SplitHorizontally(*args
, **kwargs
):
965 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
967 Initializes the top and bottom panes of the splitter window.
969 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
971 def Unsplit(*args
, **kwargs
):
973 Unsplit(self, Window toRemove=None) -> bool
975 Unsplits the window. Pass the pane to remove, or None to remove the
976 right or bottom pane. Returns True if successful, False otherwise (the
977 window was not split).
979 This function will not actually delete the pane being
980 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
981 for the desired behaviour. By default, the pane being
982 removed is only hidden.
984 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
986 def ReplaceWindow(*args
, **kwargs
):
988 ReplaceWindow(self, Window winOld, Window winNew) -> bool
990 This function replaces one of the windows managed by the
991 SplitterWindow with another one. It is in general better to use it
992 instead of calling Unsplit() and then resplitting the window back
993 because it will provoke much less flicker. It is valid to call this
994 function whether the splitter has two windows or only one.
996 Both parameters should be non-None and winOld must specify one of the
997 windows managed by the splitter. If the parameters are incorrect or
998 the window couldn't be replaced, False is returned. Otherwise the
999 function will return True, but please notice that it will not Destroy
1000 the replaced window and you may wish to do it yourself.
1002 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1004 def UpdateSize(*args
, **kwargs
):
1008 Causes any pending sizing of the sash and child panes to take place
1011 Such resizing normally takes place in idle time, in order to wait for
1012 layout to be completed. However, this can cause unacceptable flicker
1013 as the panes are resized after the window has been shown. To work
1014 around this, you can perform window layout (for example by sending a
1015 size event to the parent window), and then call this function, before
1016 showing the top-level window.
1018 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1020 def IsSplit(*args
, **kwargs
):
1022 IsSplit(self) -> bool
1024 Is the window split?
1026 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1028 def SetSashSize(*args
, **kwargs
):
1030 SetSashSize(self, int width)
1034 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1036 def SetBorderSize(*args
, **kwargs
):
1038 SetBorderSize(self, int width)
1040 Sets the border size
1042 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1044 def GetSashSize(*args
, **kwargs
):
1046 GetSashSize(self) -> int
1050 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1052 def GetBorderSize(*args
, **kwargs
):
1054 GetBorderSize(self) -> int
1056 Gets the border size
1058 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1060 def SetSashPosition(*args
, **kwargs
):
1062 SetSashPosition(self, int position, bool redraw=True)
1064 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1065 are resized and the sash and border are redrawn.
1067 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1069 def GetSashPosition(*args
, **kwargs
):
1071 GetSashPosition(self) -> int
1073 Returns the surrent sash position.
1075 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1077 def SetMinimumPaneSize(*args
, **kwargs
):
1079 SetMinimumPaneSize(self, int min)
1081 Sets the minimum pane size in pixels.
1083 The default minimum pane size is zero, which means that either pane
1084 can be reduced to zero by dragging the sash, thus removing one of the
1085 panes. To prevent this behaviour (and veto out-of-range sash
1086 dragging), set a minimum size, for example 20 pixels. If the
1087 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1088 the window may be unsplit even if minimum size is non-zero.
1090 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1092 def GetMinimumPaneSize(*args
, **kwargs
):
1094 GetMinimumPaneSize(self) -> int
1096 Gets the minimum pane size in pixels.
1098 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1100 def SashHitTest(*args
, **kwargs
):
1102 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1104 Tests for x, y over the sash
1106 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1108 def SizeWindows(*args
, **kwargs
):
1114 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1116 def SetNeedUpdating(*args
, **kwargs
):
1117 """SetNeedUpdating(self, bool needUpdating)"""
1118 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1120 def GetNeedUpdating(*args
, **kwargs
):
1121 """GetNeedUpdating(self) -> bool"""
1122 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1124 def GetClassDefaultAttributes(*args
, **kwargs
):
1126 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1128 Get the default attributes for this class. This is useful if you want
1129 to use the same font or colour in your own control as in a standard
1130 control -- which is a much better idea than hard coding specific
1131 colours or fonts which might look completely out of place on the
1132 user's system, especially if it uses themes.
1134 The variant parameter is only relevant under Mac currently and is
1135 ignore under other platforms. Under Mac, it will change the size of
1136 the returned font. See `wx.Window.SetWindowVariant` for more about
1139 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1141 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1143 class SplitterWindowPtr(SplitterWindow
):
1144 def __init__(self
, this
):
1146 if not hasattr(self
,"thisown"): self
.thisown
= 0
1147 self
.__class
__ = SplitterWindow
1148 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1149 SplitterNameStr
= cvar
.SplitterNameStr
1151 def PreSplitterWindow(*args
, **kwargs
):
1153 PreSplitterWindow() -> SplitterWindow
1155 Precreate a SplitterWindow for 2-phase creation.
1157 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1161 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1163 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1165 Get the default attributes for this class. This is useful if you want
1166 to use the same font or colour in your own control as in a standard
1167 control -- which is a much better idea than hard coding specific
1168 colours or fonts which might look completely out of place on the
1169 user's system, especially if it uses themes.
1171 The variant parameter is only relevant under Mac currently and is
1172 ignore under other platforms. Under Mac, it will change the size of
1173 the returned font. See `wx.Window.SetWindowVariant` for more about
1176 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1178 class SplitterEvent(_core
.NotifyEvent
):
1179 """This class represents the events generated by a splitter control."""
1181 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1182 def __init__(self
, *args
, **kwargs
):
1184 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1186 This class represents the events generated by a splitter control.
1188 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1189 self
.this
= newobj
.this
1192 def SetSashPosition(*args
, **kwargs
):
1194 SetSashPosition(self, int pos)
1196 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1197 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1198 events, sets the the new sash position. In the case of _CHANGING
1199 events, sets the new tracking bar position so visual feedback during
1200 dragging will represent that change that will actually take place. Set
1201 to -1 from the event handler code to prevent repositioning.
1203 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1205 def GetSashPosition(*args
, **kwargs
):
1207 GetSashPosition(self) -> int
1209 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1210 and EVT_SPLITTER_SASH_POS_CHANGED events.
1212 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1214 def GetWindowBeingRemoved(*args
, **kwargs
):
1216 GetWindowBeingRemoved(self) -> Window
1218 Returns a pointer to the window being removed when a splitter window
1221 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1223 def GetX(*args
, **kwargs
):
1227 Returns the x coordinate of the double-click point in a
1228 EVT_SPLITTER_DCLICK event.
1230 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1232 def GetY(*args
, **kwargs
):
1236 Returns the y coordinate of the double-click point in a
1237 EVT_SPLITTER_DCLICK event.
1239 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1242 class SplitterEventPtr(SplitterEvent
):
1243 def __init__(self
, this
):
1245 if not hasattr(self
,"thisown"): self
.thisown
= 0
1246 self
.__class
__ = SplitterEvent
1247 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1249 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1250 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1251 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1252 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1253 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1254 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1255 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1256 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1257 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1259 #---------------------------------------------------------------------------
1261 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1262 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1263 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1264 SW_NOBORDER
= _windows_
.SW_NOBORDER
1265 SW_BORDER
= _windows_
.SW_BORDER
1266 SW_3DSASH
= _windows_
.SW_3DSASH
1267 SW_3DBORDER
= _windows_
.SW_3DBORDER
1268 SW_3D
= _windows_
.SW_3D
1269 SASH_TOP
= _windows_
.SASH_TOP
1270 SASH_RIGHT
= _windows_
.SASH_RIGHT
1271 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1272 SASH_LEFT
= _windows_
.SASH_LEFT
1273 SASH_NONE
= _windows_
.SASH_NONE
1274 class SashWindow(_core
.Window
):
1276 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1277 def __init__(self
, *args
, **kwargs
):
1279 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1280 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1281 String name=SashNameStr) -> SashWindow
1283 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1284 self
.this
= newobj
.this
1287 self
._setOORInfo
(self
)
1289 def Create(*args
, **kwargs
):
1291 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1292 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1293 String name=SashNameStr) -> bool
1295 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1297 def SetSashVisible(*args
, **kwargs
):
1298 """SetSashVisible(self, int edge, bool sash)"""
1299 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1301 def GetSashVisible(*args
, **kwargs
):
1302 """GetSashVisible(self, int edge) -> bool"""
1303 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1305 def SetSashBorder(*args
, **kwargs
):
1306 """SetSashBorder(self, int edge, bool border)"""
1307 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1309 def HasBorder(*args
, **kwargs
):
1310 """HasBorder(self, int edge) -> bool"""
1311 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1313 def GetEdgeMargin(*args
, **kwargs
):
1314 """GetEdgeMargin(self, int edge) -> int"""
1315 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1317 def SetDefaultBorderSize(*args
, **kwargs
):
1318 """SetDefaultBorderSize(self, int width)"""
1319 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1321 def GetDefaultBorderSize(*args
, **kwargs
):
1322 """GetDefaultBorderSize(self) -> int"""
1323 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1325 def SetExtraBorderSize(*args
, **kwargs
):
1326 """SetExtraBorderSize(self, int width)"""
1327 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1329 def GetExtraBorderSize(*args
, **kwargs
):
1330 """GetExtraBorderSize(self) -> int"""
1331 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1333 def SetMinimumSizeX(*args
, **kwargs
):
1334 """SetMinimumSizeX(self, int min)"""
1335 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1337 def SetMinimumSizeY(*args
, **kwargs
):
1338 """SetMinimumSizeY(self, int min)"""
1339 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1341 def GetMinimumSizeX(*args
, **kwargs
):
1342 """GetMinimumSizeX(self) -> int"""
1343 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1345 def GetMinimumSizeY(*args
, **kwargs
):
1346 """GetMinimumSizeY(self) -> int"""
1347 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1349 def SetMaximumSizeX(*args
, **kwargs
):
1350 """SetMaximumSizeX(self, int max)"""
1351 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1353 def SetMaximumSizeY(*args
, **kwargs
):
1354 """SetMaximumSizeY(self, int max)"""
1355 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1357 def GetMaximumSizeX(*args
, **kwargs
):
1358 """GetMaximumSizeX(self) -> int"""
1359 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1361 def GetMaximumSizeY(*args
, **kwargs
):
1362 """GetMaximumSizeY(self) -> int"""
1363 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1365 def SashHitTest(*args
, **kwargs
):
1366 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1367 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1369 def SizeWindows(*args
, **kwargs
):
1370 """SizeWindows(self)"""
1371 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1374 class SashWindowPtr(SashWindow
):
1375 def __init__(self
, this
):
1377 if not hasattr(self
,"thisown"): self
.thisown
= 0
1378 self
.__class
__ = SashWindow
1379 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1380 SashNameStr
= cvar
.SashNameStr
1381 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1383 def PreSashWindow(*args
, **kwargs
):
1384 """PreSashWindow() -> SashWindow"""
1385 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1389 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1390 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1391 class SashEvent(_core
.CommandEvent
):
1393 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1394 def __init__(self
, *args
, **kwargs
):
1395 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1396 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1397 self
.this
= newobj
.this
1400 def SetEdge(*args
, **kwargs
):
1401 """SetEdge(self, int edge)"""
1402 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1404 def GetEdge(*args
, **kwargs
):
1405 """GetEdge(self) -> int"""
1406 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1408 def SetDragRect(*args
, **kwargs
):
1409 """SetDragRect(self, Rect rect)"""
1410 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1412 def GetDragRect(*args
, **kwargs
):
1413 """GetDragRect(self) -> Rect"""
1414 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1416 def SetDragStatus(*args
, **kwargs
):
1417 """SetDragStatus(self, int status)"""
1418 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1420 def GetDragStatus(*args
, **kwargs
):
1421 """GetDragStatus(self) -> int"""
1422 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1425 class SashEventPtr(SashEvent
):
1426 def __init__(self
, this
):
1428 if not hasattr(self
,"thisown"): self
.thisown
= 0
1429 self
.__class
__ = SashEvent
1430 _windows_
.SashEvent_swigregister(SashEventPtr
)
1432 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1433 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1434 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1436 #---------------------------------------------------------------------------
1438 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1439 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1440 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1441 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1442 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1443 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1444 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1445 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1446 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1447 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1448 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1449 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1450 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1451 class QueryLayoutInfoEvent(_core
.Event
):
1453 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1454 def __init__(self
, *args
, **kwargs
):
1455 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1456 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1457 self
.this
= newobj
.this
1460 def SetRequestedLength(*args
, **kwargs
):
1461 """SetRequestedLength(self, int length)"""
1462 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1464 def GetRequestedLength(*args
, **kwargs
):
1465 """GetRequestedLength(self) -> int"""
1466 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1468 def SetFlags(*args
, **kwargs
):
1469 """SetFlags(self, int flags)"""
1470 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1472 def GetFlags(*args
, **kwargs
):
1473 """GetFlags(self) -> int"""
1474 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1476 def SetSize(*args
, **kwargs
):
1477 """SetSize(self, Size size)"""
1478 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1480 def GetSize(*args
, **kwargs
):
1481 """GetSize(self) -> Size"""
1482 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1484 def SetOrientation(*args
, **kwargs
):
1485 """SetOrientation(self, int orient)"""
1486 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1488 def GetOrientation(*args
, **kwargs
):
1489 """GetOrientation(self) -> int"""
1490 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1492 def SetAlignment(*args
, **kwargs
):
1493 """SetAlignment(self, int align)"""
1494 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1496 def GetAlignment(*args
, **kwargs
):
1497 """GetAlignment(self) -> int"""
1498 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1501 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1502 def __init__(self
, this
):
1504 if not hasattr(self
,"thisown"): self
.thisown
= 0
1505 self
.__class
__ = QueryLayoutInfoEvent
1506 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1508 class CalculateLayoutEvent(_core
.Event
):
1510 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1511 def __init__(self
, *args
, **kwargs
):
1512 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1513 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1514 self
.this
= newobj
.this
1517 def SetFlags(*args
, **kwargs
):
1518 """SetFlags(self, int flags)"""
1519 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1521 def GetFlags(*args
, **kwargs
):
1522 """GetFlags(self) -> int"""
1523 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1525 def SetRect(*args
, **kwargs
):
1526 """SetRect(self, Rect rect)"""
1527 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1529 def GetRect(*args
, **kwargs
):
1530 """GetRect(self) -> Rect"""
1531 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1534 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1535 def __init__(self
, this
):
1537 if not hasattr(self
,"thisown"): self
.thisown
= 0
1538 self
.__class
__ = CalculateLayoutEvent
1539 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1541 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1542 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1544 class SashLayoutWindow(SashWindow
):
1546 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1547 def __init__(self
, *args
, **kwargs
):
1549 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1550 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1551 String name=SashLayoutNameStr) -> SashLayoutWindow
1553 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1554 self
.this
= newobj
.this
1557 self
._setOORInfo
(self
)
1559 def Create(*args
, **kwargs
):
1561 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1562 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1563 String name=SashLayoutNameStr) -> bool
1565 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1567 def GetAlignment(*args
, **kwargs
):
1568 """GetAlignment(self) -> int"""
1569 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1571 def GetOrientation(*args
, **kwargs
):
1572 """GetOrientation(self) -> int"""
1573 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1575 def SetAlignment(*args
, **kwargs
):
1576 """SetAlignment(self, int alignment)"""
1577 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1579 def SetDefaultSize(*args
, **kwargs
):
1580 """SetDefaultSize(self, Size size)"""
1581 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1583 def SetOrientation(*args
, **kwargs
):
1584 """SetOrientation(self, int orientation)"""
1585 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1588 class SashLayoutWindowPtr(SashLayoutWindow
):
1589 def __init__(self
, this
):
1591 if not hasattr(self
,"thisown"): self
.thisown
= 0
1592 self
.__class
__ = SashLayoutWindow
1593 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1595 def PreSashLayoutWindow(*args
, **kwargs
):
1596 """PreSashLayoutWindow() -> SashLayoutWindow"""
1597 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1601 class LayoutAlgorithm(_core
.Object
):
1603 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1604 def __init__(self
, *args
, **kwargs
):
1605 """__init__(self) -> LayoutAlgorithm"""
1606 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1607 self
.this
= newobj
.this
1610 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1613 if self
.thisown
: destroy(self
)
1616 def LayoutMDIFrame(*args
, **kwargs
):
1617 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1618 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1620 def LayoutFrame(*args
, **kwargs
):
1621 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1622 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1624 def LayoutWindow(*args
, **kwargs
):
1625 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1626 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1629 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1630 def __init__(self
, this
):
1632 if not hasattr(self
,"thisown"): self
.thisown
= 0
1633 self
.__class
__ = LayoutAlgorithm
1634 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1636 class PopupWindow(_core
.Window
):
1638 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1639 def __init__(self
, *args
, **kwargs
):
1640 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1641 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1642 self
.this
= newobj
.this
1646 class PopupWindowPtr(PopupWindow
):
1647 def __init__(self
, this
):
1649 if not hasattr(self
,"thisown"): self
.thisown
= 0
1650 self
.__class
__ = PopupWindow
1651 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1653 def PrePopupWindow(*args
, **kwargs
):
1654 """PrePopupWindow() -> PopupWindow"""
1655 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1659 class PopupTransientWindow(PopupWindow
):
1661 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1662 def __init__(self
, *args
, **kwargs
):
1663 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1664 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1665 self
.this
= newobj
.this
1669 class PopupTransientWindowPtr(PopupTransientWindow
):
1670 def __init__(self
, this
):
1672 if not hasattr(self
,"thisown"): self
.thisown
= 0
1673 self
.__class
__ = PopupTransientWindow
1674 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1676 def PrePopupTransientWindow(*args
, **kwargs
):
1677 """PrePopupTransientWindow() -> PopupTransientWindow"""
1678 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1682 #---------------------------------------------------------------------------
1684 class TipWindow(Frame
):
1686 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1687 def __init__(self
, *args
, **kwargs
):
1688 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1689 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1690 self
.this
= newobj
.this
1693 self
._setOORInfo
(self
)
1695 def SetBoundingRect(*args
, **kwargs
):
1696 """SetBoundingRect(self, Rect rectBound)"""
1697 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1699 def Close(*args
, **kwargs
):
1701 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1704 class TipWindowPtr(TipWindow
):
1705 def __init__(self
, this
):
1707 if not hasattr(self
,"thisown"): self
.thisown
= 0
1708 self
.__class
__ = TipWindow
1709 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1711 #---------------------------------------------------------------------------
1713 class VScrolledWindow(Panel
):
1715 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1716 def __init__(self
, *args
, **kwargs
):
1718 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1719 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1721 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1722 self
.this
= newobj
.this
1725 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1727 def _setCallbackInfo(*args
, **kwargs
):
1728 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1729 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1731 def Create(*args
, **kwargs
):
1733 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1734 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1736 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1738 def SetLineCount(*args
, **kwargs
):
1739 """SetLineCount(self, size_t count)"""
1740 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1742 def ScrollToLine(*args
, **kwargs
):
1743 """ScrollToLine(self, size_t line) -> bool"""
1744 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1746 def ScrollLines(*args
, **kwargs
):
1747 """ScrollLines(self, int lines) -> bool"""
1748 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1750 def ScrollPages(*args
, **kwargs
):
1752 ScrollPages(self, int pages) -> bool
1754 If the platform and window class supports it, scrolls the window by
1755 the given number of pages down, if pages is positive, or up if pages
1756 is negative. Returns True if the window was scrolled, False if it was
1757 already on top/bottom and nothing was done.
1759 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1761 def RefreshLine(*args
, **kwargs
):
1762 """RefreshLine(self, size_t line)"""
1763 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1765 def RefreshLines(*args
, **kwargs
):
1766 """RefreshLines(self, size_t from, size_t to)"""
1767 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1769 def HitTestXT(*args
, **kwargs
):
1770 """HitTestXT(self, int x, int y) -> int"""
1771 return _windows_
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1773 def HitTest(*args
, **kwargs
):
1774 """HitTest(self, Point pt) -> int"""
1775 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1777 def RefreshAll(*args
, **kwargs
):
1778 """RefreshAll(self)"""
1779 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1781 def GetLineCount(*args
, **kwargs
):
1782 """GetLineCount(self) -> size_t"""
1783 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1785 def GetFirstVisibleLine(*args
, **kwargs
):
1786 """GetFirstVisibleLine(self) -> size_t"""
1787 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1789 def GetLastVisibleLine(*args
, **kwargs
):
1790 """GetLastVisibleLine(self) -> size_t"""
1791 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1793 def IsVisible(*args
, **kwargs
):
1794 """IsVisible(self, size_t line) -> bool"""
1795 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1798 class VScrolledWindowPtr(VScrolledWindow
):
1799 def __init__(self
, this
):
1801 if not hasattr(self
,"thisown"): self
.thisown
= 0
1802 self
.__class
__ = VScrolledWindow
1803 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1805 def PreVScrolledWindow(*args
, **kwargs
):
1806 """PreVScrolledWindow() -> VScrolledWindow"""
1807 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1811 class VListBox(VScrolledWindow
):
1813 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1814 def __init__(self
, *args
, **kwargs
):
1816 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1817 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1819 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1820 self
.this
= newobj
.this
1823 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1825 def _setCallbackInfo(*args
, **kwargs
):
1826 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1827 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1829 def Create(*args
, **kwargs
):
1831 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1832 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1834 return _windows_
.VListBox_Create(*args
, **kwargs
)
1836 def GetItemCount(*args
, **kwargs
):
1837 """GetItemCount(self) -> size_t"""
1838 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1840 def HasMultipleSelection(*args
, **kwargs
):
1841 """HasMultipleSelection(self) -> bool"""
1842 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1844 def GetSelection(*args
, **kwargs
):
1845 """GetSelection(self) -> int"""
1846 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1848 def IsCurrent(*args
, **kwargs
):
1849 """IsCurrent(self, size_t item) -> bool"""
1850 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1852 def IsSelected(*args
, **kwargs
):
1853 """IsSelected(self, size_t item) -> bool"""
1854 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1856 def GetSelectedCount(*args
, **kwargs
):
1857 """GetSelectedCount(self) -> size_t"""
1858 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1860 def GetFirstSelected(*args
, **kwargs
):
1861 """GetFirstSelected(self) -> PyObject"""
1862 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1864 def GetNextSelected(*args
, **kwargs
):
1865 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1866 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1868 def GetMargins(*args
, **kwargs
):
1869 """GetMargins(self) -> Point"""
1870 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1872 def GetSelectionBackground(*args
, **kwargs
):
1873 """GetSelectionBackground(self) -> Colour"""
1874 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1876 def SetItemCount(*args
, **kwargs
):
1877 """SetItemCount(self, size_t count)"""
1878 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1880 def Clear(*args
, **kwargs
):
1882 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1884 def SetSelection(*args
, **kwargs
):
1885 """SetSelection(self, int selection)"""
1886 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1888 def Select(*args
, **kwargs
):
1889 """Select(self, size_t item, bool select=True) -> bool"""
1890 return _windows_
.VListBox_Select(*args
, **kwargs
)
1892 def SelectRange(*args
, **kwargs
):
1893 """SelectRange(self, size_t from, size_t to) -> bool"""
1894 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1896 def Toggle(*args
, **kwargs
):
1897 """Toggle(self, size_t item)"""
1898 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1900 def SelectAll(*args
, **kwargs
):
1901 """SelectAll(self) -> bool"""
1902 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1904 def DeselectAll(*args
, **kwargs
):
1905 """DeselectAll(self) -> bool"""
1906 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1908 def SetMargins(*args
, **kwargs
):
1909 """SetMargins(self, Point pt)"""
1910 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1912 def SetMarginsXY(*args
, **kwargs
):
1913 """SetMarginsXY(self, int x, int y)"""
1914 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1916 def SetSelectionBackground(*args
, **kwargs
):
1917 """SetSelectionBackground(self, Colour col)"""
1918 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1921 class VListBoxPtr(VListBox
):
1922 def __init__(self
, this
):
1924 if not hasattr(self
,"thisown"): self
.thisown
= 0
1925 self
.__class
__ = VListBox
1926 _windows_
.VListBox_swigregister(VListBoxPtr
)
1927 VListBoxNameStr
= cvar
.VListBoxNameStr
1929 def PreVListBox(*args
, **kwargs
):
1930 """PreVListBox() -> VListBox"""
1931 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1935 class HtmlListBox(VListBox
):
1937 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1938 def __init__(self
, *args
, **kwargs
):
1940 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1941 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1943 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
1944 self
.this
= newobj
.this
1947 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1949 def _setCallbackInfo(*args
, **kwargs
):
1950 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1951 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1953 def Create(*args
, **kwargs
):
1955 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1956 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1958 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1960 def RefreshAll(*args
, **kwargs
):
1961 """RefreshAll(self)"""
1962 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1964 def SetItemCount(*args
, **kwargs
):
1965 """SetItemCount(self, size_t count)"""
1966 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1968 def GetFileSystem(*args
, **kwargs
):
1969 """GetFileSystem(self) -> FileSystem"""
1970 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
1973 class HtmlListBoxPtr(HtmlListBox
):
1974 def __init__(self
, this
):
1976 if not hasattr(self
,"thisown"): self
.thisown
= 0
1977 self
.__class
__ = HtmlListBox
1978 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1980 def PreHtmlListBox(*args
, **kwargs
):
1981 """PreHtmlListBox() -> HtmlListBox"""
1982 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
1986 #---------------------------------------------------------------------------
1988 class TaskBarIcon(_core
.EvtHandler
):
1990 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1991 def __init__(self
, *args
, **kwargs
):
1992 """__init__(self) -> TaskBarIcon"""
1993 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
1994 self
.this
= newobj
.this
1997 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2000 if self
.thisown
: destroy(self
)
2003 def Destroy(*args
, **kwargs
):
2007 Deletes the C++ object this Python object is a proxy for.
2009 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2012 class TaskBarIconPtr(TaskBarIcon
):
2013 def __init__(self
, this
):
2015 if not hasattr(self
,"thisown"): self
.thisown
= 0
2016 self
.__class
__ = TaskBarIcon
2017 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2019 class TaskBarIconEvent(_core
.Event
):
2021 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2022 def __init__(self
, *args
, **kwargs
):
2023 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2024 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2025 self
.this
= newobj
.this
2029 class TaskBarIconEventPtr(TaskBarIconEvent
):
2030 def __init__(self
, this
):
2032 if not hasattr(self
,"thisown"): self
.thisown
= 0
2033 self
.__class
__ = TaskBarIconEvent
2034 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2036 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2037 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2038 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2039 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2040 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2041 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2042 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2043 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2044 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2045 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2046 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2047 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2048 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2049 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2051 #---------------------------------------------------------------------------
2053 class ColourData(_core
.Object
):
2055 This class holds a variety of information related to the colour
2056 chooser dialog, used to transfer settings and results to and from the
2060 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2061 def __init__(self
, *args
, **kwargs
):
2063 __init__(self) -> ColourData
2065 Constructor, sets default values.
2067 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2068 self
.this
= newobj
.this
2071 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2074 if self
.thisown
: destroy(self
)
2077 def GetChooseFull(*args
, **kwargs
):
2079 GetChooseFull(self) -> bool
2081 Under Windows, determines whether the Windows colour dialog will
2082 display the full dialog with custom colour selection controls. Has no
2083 meaning under other platforms. The default value is true.
2085 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2087 def GetColour(*args
, **kwargs
):
2089 GetColour(self) -> Colour
2091 Gets the colour (pre)selected by the dialog.
2093 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2095 def GetCustomColour(*args
, **kwargs
):
2097 GetCustomColour(self, int i) -> Colour
2099 Gets the i'th custom colour associated with the colour dialog. i
2100 should be an integer between 0 and 15. The default custom colours are
2101 all invalid colours.
2103 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2105 def SetChooseFull(*args
, **kwargs
):
2107 SetChooseFull(self, int flag)
2109 Under Windows, tells the Windows colour dialog to display the full
2110 dialog with custom colour selection controls. Under other platforms,
2111 has no effect. The default value is true.
2113 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2115 def SetColour(*args
, **kwargs
):
2117 SetColour(self, Colour colour)
2119 Sets the default colour for the colour dialog. The default colour is
2122 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2124 def SetCustomColour(*args
, **kwargs
):
2126 SetCustomColour(self, int i, Colour colour)
2128 Sets the i'th custom colour for the colour dialog. i should be an
2129 integer between 0 and 15. The default custom colours are all invalid colours.
2131 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2134 class ColourDataPtr(ColourData
):
2135 def __init__(self
, this
):
2137 if not hasattr(self
,"thisown"): self
.thisown
= 0
2138 self
.__class
__ = ColourData
2139 _windows_
.ColourData_swigregister(ColourDataPtr
)
2140 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2141 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2142 DirDialogNameStr
= cvar
.DirDialogNameStr
2143 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2144 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2145 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2147 class ColourDialog(Dialog
):
2148 """This class represents the colour chooser dialog."""
2150 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2151 def __init__(self
, *args
, **kwargs
):
2153 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2155 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2156 which will be copied to the colour dialog's internal ColourData
2159 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2160 self
.this
= newobj
.this
2163 self
._setOORInfo
(self
)
2165 def GetColourData(*args
, **kwargs
):
2167 GetColourData(self) -> ColourData
2169 Returns a reference to the `wx.ColourData` used by the dialog.
2171 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2174 class ColourDialogPtr(ColourDialog
):
2175 def __init__(self
, this
):
2177 if not hasattr(self
,"thisown"): self
.thisown
= 0
2178 self
.__class
__ = ColourDialog
2179 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2181 class DirDialog(Dialog
):
2183 wx.DirDialog allows the user to select a directory by browising the
2187 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2188 def __init__(self
, *args
, **kwargs
):
2190 __init__(self, Window parent, String message=DirSelectorPromptStr,
2191 String defaultPath=EmptyString, long style=0,
2192 Point pos=DefaultPosition, Size size=DefaultSize,
2193 String name=DirDialogNameStr) -> DirDialog
2195 Constructor. Use ShowModal method to show the dialog.
2197 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2198 self
.this
= newobj
.this
2201 self
._setOORInfo
(self
)
2203 def GetPath(*args
, **kwargs
):
2205 GetPath(self) -> String
2207 Returns the default or user-selected path.
2209 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2211 def GetMessage(*args
, **kwargs
):
2213 GetMessage(self) -> String
2215 Returns the message that will be displayed on the dialog.
2217 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2219 def GetStyle(*args
, **kwargs
):
2221 GetStyle(self) -> long
2223 Returns the dialog style.
2225 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2227 def SetMessage(*args
, **kwargs
):
2229 SetMessage(self, String message)
2231 Sets the message that will be displayed on the dialog.
2233 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2235 def SetPath(*args
, **kwargs
):
2237 SetPath(self, String path)
2239 Sets the default path.
2241 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2244 class DirDialogPtr(DirDialog
):
2245 def __init__(self
, this
):
2247 if not hasattr(self
,"thisown"): self
.thisown
= 0
2248 self
.__class
__ = DirDialog
2249 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2251 class FileDialog(Dialog
):
2253 wx.FileDialog allows the user to select one or more files from the
2257 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2258 def __init__(self
, *args
, **kwargs
):
2260 __init__(self, Window parent, String message=FileSelectorPromptStr,
2261 String defaultDir=EmptyString, String defaultFile=EmptyString,
2262 String wildcard=FileSelectorDefaultWildcardStr,
2263 long style=0, Point pos=DefaultPosition) -> FileDialog
2265 Constructor. Use ShowModal method to show the dialog.
2267 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2268 self
.this
= newobj
.this
2271 self
._setOORInfo
(self
)
2273 def SetMessage(*args
, **kwargs
):
2275 SetMessage(self, String message)
2277 Sets the message that will be displayed on the dialog.
2279 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2281 def SetPath(*args
, **kwargs
):
2283 SetPath(self, String path)
2285 Sets the path (the combined directory and filename that will be
2286 returned when the dialog is dismissed).
2288 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2290 def SetDirectory(*args
, **kwargs
):
2292 SetDirectory(self, String dir)
2294 Sets the default directory.
2296 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2298 def SetFilename(*args
, **kwargs
):
2300 SetFilename(self, String name)
2302 Sets the default filename.
2304 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2306 def SetWildcard(*args
, **kwargs
):
2308 SetWildcard(self, String wildCard)
2310 Sets the wildcard, which can contain multiple file types, for
2313 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2316 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2318 def SetStyle(*args
, **kwargs
):
2320 SetStyle(self, long style)
2322 Sets the dialog style.
2324 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2326 def SetFilterIndex(*args
, **kwargs
):
2328 SetFilterIndex(self, int filterIndex)
2330 Sets the default filter index, starting from zero.
2332 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2334 def GetMessage(*args
, **kwargs
):
2336 GetMessage(self) -> String
2338 Returns the message that will be displayed on the dialog.
2340 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2342 def GetPath(*args
, **kwargs
):
2344 GetPath(self) -> String
2346 Returns the full path (directory and filename) of the selected file.
2348 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2350 def GetDirectory(*args
, **kwargs
):
2352 GetDirectory(self) -> String
2354 Returns the default directory.
2356 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2358 def GetFilename(*args
, **kwargs
):
2360 GetFilename(self) -> String
2362 Returns the default filename.
2364 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2366 def GetWildcard(*args
, **kwargs
):
2368 GetWildcard(self) -> String
2370 Returns the file dialog wildcard.
2372 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2374 def GetStyle(*args
, **kwargs
):
2376 GetStyle(self) -> long
2378 Returns the dialog style.
2380 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2382 def GetFilterIndex(*args
, **kwargs
):
2384 GetFilterIndex(self) -> int
2386 Returns the index into the list of filters supplied, optionally, in
2387 the wildcard parameter. Before the dialog is shown, this is the index
2388 which will be used when the dialog is first displayed. After the
2389 dialog is shown, this is the index selected by the user.
2391 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2393 def GetFilenames(*args
, **kwargs
):
2395 GetFilenames(self) -> PyObject
2397 Returns a list of filenames chosen in the dialog. This function
2398 should only be used with the dialogs which have wx.MULTIPLE style, use
2399 GetFilename for the others.
2401 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2403 def GetPaths(*args
, **kwargs
):
2405 GetPaths(self) -> PyObject
2407 Fills the array paths with the full paths of the files chosen. This
2408 function should only be used with the dialogs which have wx.MULTIPLE
2409 style, use GetPath for the others.
2411 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2414 class FileDialogPtr(FileDialog
):
2415 def __init__(self
, this
):
2417 if not hasattr(self
,"thisown"): self
.thisown
= 0
2418 self
.__class
__ = FileDialog
2419 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2421 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2422 class MultiChoiceDialog(Dialog
):
2423 """A simple dialog with a multi selection listbox."""
2425 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2426 def __init__(self
, *args
, **kwargs
):
2428 __init__(Window parent, String message, String caption,
2429 List choices=[], long style=CHOICEDLG_STYLE,
2430 Point pos=DefaultPosition) -> MultiChoiceDialog
2432 Constructor. Use ShowModal method to show the dialog.
2434 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2435 self
.this
= newobj
.this
2438 self
._setOORInfo
(self
)
2440 def SetSelections(*args
, **kwargs
):
2442 SetSelections(List selections)
2444 Specify the items in the list that should be selected, using a list of
2447 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2449 def GetSelections(*args
, **kwargs
):
2451 GetSelections() -> [selections]
2453 Returns a list of integers representing the items that are selected.
2455 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2458 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2459 def __init__(self
, this
):
2461 if not hasattr(self
,"thisown"): self
.thisown
= 0
2462 self
.__class
__ = MultiChoiceDialog
2463 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2465 class SingleChoiceDialog(Dialog
):
2466 """A simple dialog with a single selection listbox."""
2468 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2469 def __init__(self
, *args
, **kwargs
):
2471 __init__(Window parent, String message, String caption,
2472 List choices=[], long style=CHOICEDLG_STYLE,
2473 Point pos=DefaultPosition) -> SingleChoiceDialog
2475 Constructor. Use ShowModal method to show the dialog.
2477 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2478 self
.this
= newobj
.this
2481 self
._setOORInfo
(self
)
2483 def GetSelection(*args
, **kwargs
):
2485 GetSelection(self) -> int
2487 Get the index of teh currently selected item.
2489 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2491 def GetStringSelection(*args
, **kwargs
):
2493 GetStringSelection(self) -> String
2495 Returns the string value of the currently selected item
2497 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2499 def SetSelection(*args
, **kwargs
):
2501 SetSelection(self, int sel)
2503 Set the current selected item to sel
2505 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2508 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2509 def __init__(self
, this
):
2511 if not hasattr(self
,"thisown"): self
.thisown
= 0
2512 self
.__class
__ = SingleChoiceDialog
2513 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2515 class TextEntryDialog(Dialog
):
2516 """A dialog with text control, [ok] and [cancel] buttons"""
2518 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2519 def __init__(self
, *args
, **kwargs
):
2521 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2522 String defaultValue=EmptyString,
2523 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2525 Constructor. Use ShowModal method to show the dialog.
2527 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2528 self
.this
= newobj
.this
2531 self
._setOORInfo
(self
)
2533 def GetValue(*args
, **kwargs
):
2535 GetValue(self) -> String
2537 Returns the text that the user has entered if the user has pressed OK,
2538 or the original value if the user has pressed Cancel.
2540 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2542 def SetValue(*args
, **kwargs
):
2544 SetValue(self, String value)
2546 Sets the default text value.
2548 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2551 class TextEntryDialogPtr(TextEntryDialog
):
2552 def __init__(self
, this
):
2554 if not hasattr(self
,"thisown"): self
.thisown
= 0
2555 self
.__class
__ = TextEntryDialog
2556 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2558 class FontData(_core
.Object
):
2560 This class holds a variety of information related to font dialogs and
2561 is used to transfer settings to and results from a `wx.FontDialog`.
2564 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2565 def __init__(self
, *args
, **kwargs
):
2567 __init__(self) -> FontData
2569 This class holds a variety of information related to font dialogs and
2570 is used to transfer settings to and results from a `wx.FontDialog`.
2572 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2573 self
.this
= newobj
.this
2576 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2579 if self
.thisown
: destroy(self
)
2582 def EnableEffects(*args
, **kwargs
):
2584 EnableEffects(self, bool enable)
2586 Enables or disables 'effects' under MS Windows only. This refers to
2587 the controls for manipulating colour, strikeout and underline
2588 properties. The default value is true.
2590 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2592 def GetAllowSymbols(*args
, **kwargs
):
2594 GetAllowSymbols(self) -> bool
2596 Under MS Windows, returns a flag determining whether symbol fonts can
2597 be selected. Has no effect on other platforms. The default value is
2600 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2602 def GetColour(*args
, **kwargs
):
2604 GetColour(self) -> Colour
2606 Gets the colour associated with the font dialog. The default value is
2609 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2611 def GetChosenFont(*args
, **kwargs
):
2613 GetChosenFont(self) -> Font
2615 Gets the font chosen by the user.
2617 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2619 def GetEnableEffects(*args
, **kwargs
):
2621 GetEnableEffects(self) -> bool
2623 Determines whether 'effects' are enabled under Windows.
2625 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2627 def GetInitialFont(*args
, **kwargs
):
2629 GetInitialFont(self) -> Font
2631 Gets the font that will be initially used by the font dialog. This
2632 should have previously been set by the application.
2634 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2636 def GetShowHelp(*args
, **kwargs
):
2638 GetShowHelp(self) -> bool
2640 Returns true if the Help button will be shown (Windows only). The
2641 default value is false.
2643 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2645 def SetAllowSymbols(*args
, **kwargs
):
2647 SetAllowSymbols(self, bool allowSymbols)
2649 Under MS Windows, determines whether symbol fonts can be selected. Has
2650 no effect on other platforms. The default value is true.
2652 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2654 def SetChosenFont(*args
, **kwargs
):
2656 SetChosenFont(self, Font font)
2658 Sets the font that will be returned to the user (normally for internal
2661 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2663 def SetColour(*args
, **kwargs
):
2665 SetColour(self, Colour colour)
2667 Sets the colour that will be used for the font foreground colour. The
2668 default colour is black.
2670 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2672 def SetInitialFont(*args
, **kwargs
):
2674 SetInitialFont(self, Font font)
2676 Sets the font that will be initially used by the font dialog.
2678 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2680 def SetRange(*args
, **kwargs
):
2682 SetRange(self, int min, int max)
2684 Sets the valid range for the font point size (Windows only). The
2685 default is 0, 0 (unrestricted range).
2687 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2689 def SetShowHelp(*args
, **kwargs
):
2691 SetShowHelp(self, bool showHelp)
2693 Determines whether the Help button will be displayed in the font
2694 dialog (Windows only). The default value is false.
2696 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2699 class FontDataPtr(FontData
):
2700 def __init__(self
, this
):
2702 if not hasattr(self
,"thisown"): self
.thisown
= 0
2703 self
.__class
__ = FontData
2704 _windows_
.FontData_swigregister(FontDataPtr
)
2706 class FontDialog(Dialog
):
2708 wx.FontDialog allows the user to select a system font and its attributes.
2714 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2715 def __init__(self
, *args
, **kwargs
):
2717 __init__(self, Window parent, FontData data) -> FontDialog
2719 Constructor. Pass a parent window and the `wx.FontData` object to be
2720 used to initialize the dialog controls. Call `ShowModal` to display
2721 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2722 results with via the `wx.FontData` returned by `GetFontData`.
2724 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2725 self
.this
= newobj
.this
2728 self
._setOORInfo
(self
)
2730 def GetFontData(*args
, **kwargs
):
2732 GetFontData(self) -> FontData
2734 Returns a reference to the internal `wx.FontData` used by the
2737 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2740 class FontDialogPtr(FontDialog
):
2741 def __init__(self
, this
):
2743 if not hasattr(self
,"thisown"): self
.thisown
= 0
2744 self
.__class
__ = FontDialog
2745 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2747 class MessageDialog(Dialog
):
2749 This class provides a simple dialog that shows a single or multi-line
2750 message, with a choice of OK, Yes, No and/or Cancel buttons.
2753 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2754 def __init__(self
, *args
, **kwargs
):
2756 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2757 long style=wxOK|wxCANCEL|wxCENTRE,
2758 Point pos=DefaultPosition) -> MessageDialog
2760 Constructor, use `ShowModal` to display the dialog.
2762 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2763 self
.this
= newobj
.this
2766 self
._setOORInfo
(self
)
2769 class MessageDialogPtr(MessageDialog
):
2770 def __init__(self
, this
):
2772 if not hasattr(self
,"thisown"): self
.thisown
= 0
2773 self
.__class
__ = MessageDialog
2774 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2776 class ProgressDialog(Frame
):
2778 A dialog that shows a short message and a progress bar. Optionally, it
2779 can display an ABORT button.
2782 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2783 def __init__(self
, *args
, **kwargs
):
2785 __init__(self, String title, String message, int maximum=100, Window parent=None,
2786 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2788 Constructor. Creates the dialog, displays it and disables user input
2789 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2792 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2793 self
.this
= newobj
.this
2796 self
._setOORInfo
(self
)
2798 def Update(*args
, **kwargs
):
2800 Update(self, int value, String newmsg=EmptyString) -> bool
2802 Updates the dialog, setting the progress bar to the new value and, if
2803 given changes the message above it. The value given should be less
2804 than or equal to the maximum value given to the constructor and the
2805 dialog is closed if it is equal to the maximum. Returns true unless
2806 the Cancel button has been pressed.
2808 If false is returned, the application can either immediately destroy
2809 the dialog or ask the user for the confirmation and if the abort is
2810 not confirmed the dialog may be resumed with Resume function.
2812 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2814 def Resume(*args
, **kwargs
):
2818 Can be used to continue with the dialog, after the user had chosen to
2821 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2824 class ProgressDialogPtr(ProgressDialog
):
2825 def __init__(self
, this
):
2827 if not hasattr(self
,"thisown"): self
.thisown
= 0
2828 self
.__class
__ = ProgressDialog
2829 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2831 FR_DOWN
= _windows_
.FR_DOWN
2832 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2833 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2834 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2835 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2836 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2837 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2838 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2839 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2840 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2841 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2842 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2843 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2844 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2845 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2846 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2847 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2849 # For backwards compatibility. Should they be removed?
2850 EVT_COMMAND_FIND
= EVT_FIND
2851 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2852 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2853 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2854 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2856 class FindDialogEvent(_core
.CommandEvent
):
2857 """Events for the FindReplaceDialog"""
2859 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2860 def __init__(self
, *args
, **kwargs
):
2862 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2864 Events for the FindReplaceDialog
2866 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2867 self
.this
= newobj
.this
2870 def GetFlags(*args
, **kwargs
):
2872 GetFlags(self) -> int
2874 Get the currently selected flags: this is the combination of
2875 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2877 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2879 def GetFindString(*args
, **kwargs
):
2881 GetFindString(self) -> String
2883 Return the string to find (never empty).
2885 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2887 def GetReplaceString(*args
, **kwargs
):
2889 GetReplaceString(self) -> String
2891 Return the string to replace the search string with (only for replace
2892 and replace all events).
2894 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2896 def GetDialog(*args
, **kwargs
):
2898 GetDialog(self) -> FindReplaceDialog
2900 Return the pointer to the dialog which generated this event.
2902 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2904 def SetFlags(*args
, **kwargs
):
2905 """SetFlags(self, int flags)"""
2906 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2908 def SetFindString(*args
, **kwargs
):
2909 """SetFindString(self, String str)"""
2910 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2912 def SetReplaceString(*args
, **kwargs
):
2913 """SetReplaceString(self, String str)"""
2914 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2917 class FindDialogEventPtr(FindDialogEvent
):
2918 def __init__(self
, this
):
2920 if not hasattr(self
,"thisown"): self
.thisown
= 0
2921 self
.__class
__ = FindDialogEvent
2922 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2924 class FindReplaceData(_core
.Object
):
2926 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2927 to initialize the dialog with the default values and will keep the
2928 last values from the dialog when it is closed. It is also updated each
2929 time a `wx.FindDialogEvent` is generated so instead of using the
2930 `wx.FindDialogEvent` methods you can also directly query this object.
2932 Note that all SetXXX() methods may only be called before showing the
2933 dialog and calling them has no effect later.
2936 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2937 def __init__(self
, *args
, **kwargs
):
2939 __init__(self, int flags=0) -> FindReplaceData
2941 Constuctor initializes the flags to default value (0).
2943 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
2944 self
.this
= newobj
.this
2947 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
2950 if self
.thisown
: destroy(self
)
2953 def GetFindString(*args
, **kwargs
):
2955 GetFindString(self) -> String
2957 Get the string to find.
2959 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2961 def GetReplaceString(*args
, **kwargs
):
2963 GetReplaceString(self) -> String
2965 Get the replacement string.
2967 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2969 def GetFlags(*args
, **kwargs
):
2971 GetFlags(self) -> int
2973 Get the combination of flag values.
2975 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
2977 def SetFlags(*args
, **kwargs
):
2979 SetFlags(self, int flags)
2981 Set the flags to use to initialize the controls of the dialog.
2983 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
2985 def SetFindString(*args
, **kwargs
):
2987 SetFindString(self, String str)
2989 Set the string to find (used as initial value by the dialog).
2991 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
2993 def SetReplaceString(*args
, **kwargs
):
2995 SetReplaceString(self, String str)
2997 Set the replacement string (used as initial value by the dialog).
2999 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3002 class FindReplaceDataPtr(FindReplaceData
):
3003 def __init__(self
, this
):
3005 if not hasattr(self
,"thisown"): self
.thisown
= 0
3006 self
.__class
__ = FindReplaceData
3007 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3009 class FindReplaceDialog(Dialog
):
3011 wx.FindReplaceDialog is a standard modeless dialog which is used to
3012 allow the user to search for some text (and possibly replace it with
3013 something else). The actual searching is supposed to be done in the
3014 owner window which is the parent of this dialog. Note that it means
3015 that unlike for the other standard dialogs this one must have a parent
3016 window. Also note that there is no way to use this dialog in a modal
3017 way; it is always, by design and implementation, modeless.
3020 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3021 def __init__(self
, *args
, **kwargs
):
3023 __init__(self, Window parent, FindReplaceData data, String title,
3024 int style=0) -> FindReplaceDialog
3026 Create a FindReplaceDialog. The parent and data parameters must be
3027 non-None. Use Show to display the dialog.
3029 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3030 self
.this
= newobj
.this
3033 self
._setOORInfo
(self
)
3035 def Create(*args
, **kwargs
):
3037 Create(self, Window parent, FindReplaceData data, String title,
3038 int style=0) -> bool
3040 Create the dialog, for 2-phase create.
3042 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3044 def GetData(*args
, **kwargs
):
3046 GetData(self) -> FindReplaceData
3048 Get the FindReplaceData object used by this dialog.
3050 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3052 def SetData(*args
, **kwargs
):
3054 SetData(self, FindReplaceData data)
3056 Set the FindReplaceData object used by this dialog.
3058 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3061 class FindReplaceDialogPtr(FindReplaceDialog
):
3062 def __init__(self
, this
):
3064 if not hasattr(self
,"thisown"): self
.thisown
= 0
3065 self
.__class
__ = FindReplaceDialog
3066 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3068 def PreFindReplaceDialog(*args
, **kwargs
):
3070 PreFindReplaceDialog() -> FindReplaceDialog
3072 Precreate a FindReplaceDialog for 2-phase creation
3074 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3078 #---------------------------------------------------------------------------
3080 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3081 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3082 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3083 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3084 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3085 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3086 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3087 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3088 class MDIParentFrame(Frame
):
3090 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3091 def __init__(self
, *args
, **kwargs
):
3093 __init__(self, Window parent, int id=-1, String title=EmptyString,
3094 Point pos=DefaultPosition, Size size=DefaultSize,
3095 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3096 String name=FrameNameStr) -> MDIParentFrame
3098 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3099 self
.this
= newobj
.this
3102 self
._setOORInfo
(self
)
3104 def Create(*args
, **kwargs
):
3106 Create(self, Window parent, int id=-1, String title=EmptyString,
3107 Point pos=DefaultPosition, Size size=DefaultSize,
3108 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3109 String name=FrameNameStr) -> bool
3111 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3113 def ActivateNext(*args
, **kwargs
):
3114 """ActivateNext(self)"""
3115 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3117 def ActivatePrevious(*args
, **kwargs
):
3118 """ActivatePrevious(self)"""
3119 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3121 def ArrangeIcons(*args
, **kwargs
):
3122 """ArrangeIcons(self)"""
3123 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3125 def Cascade(*args
, **kwargs
):
3127 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3129 def GetActiveChild(*args
, **kwargs
):
3130 """GetActiveChild(self) -> MDIChildFrame"""
3131 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3133 def GetClientWindow(*args
, **kwargs
):
3134 """GetClientWindow(self) -> MDIClientWindow"""
3135 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3137 def GetToolBar(*args
, **kwargs
):
3138 """GetToolBar(self) -> Window"""
3139 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3141 def Tile(*args
, **kwargs
):
3143 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3146 class MDIParentFramePtr(MDIParentFrame
):
3147 def __init__(self
, this
):
3149 if not hasattr(self
,"thisown"): self
.thisown
= 0
3150 self
.__class
__ = MDIParentFrame
3151 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3153 def PreMDIParentFrame(*args
, **kwargs
):
3154 """PreMDIParentFrame() -> MDIParentFrame"""
3155 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3159 class MDIChildFrame(Frame
):
3161 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3162 def __init__(self
, *args
, **kwargs
):
3164 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3165 Point pos=DefaultPosition, Size size=DefaultSize,
3166 long style=DEFAULT_FRAME_STYLE,
3167 String name=FrameNameStr) -> MDIChildFrame
3169 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3170 self
.this
= newobj
.this
3173 self
._setOORInfo
(self
)
3175 def Create(*args
, **kwargs
):
3177 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3178 Point pos=DefaultPosition, Size size=DefaultSize,
3179 long style=DEFAULT_FRAME_STYLE,
3180 String name=FrameNameStr) -> bool
3182 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3184 def Activate(*args
, **kwargs
):
3185 """Activate(self)"""
3186 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3188 def Maximize(*args
, **kwargs
):
3189 """Maximize(self, bool maximize)"""
3190 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3192 def Restore(*args
, **kwargs
):
3194 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3197 class MDIChildFramePtr(MDIChildFrame
):
3198 def __init__(self
, this
):
3200 if not hasattr(self
,"thisown"): self
.thisown
= 0
3201 self
.__class
__ = MDIChildFrame
3202 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3204 def PreMDIChildFrame(*args
, **kwargs
):
3205 """PreMDIChildFrame() -> MDIChildFrame"""
3206 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3210 class MDIClientWindow(_core
.Window
):
3212 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3213 def __init__(self
, *args
, **kwargs
):
3214 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3215 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3216 self
.this
= newobj
.this
3219 self
._setOORInfo
(self
)
3221 def Create(*args
, **kwargs
):
3222 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3223 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3226 class MDIClientWindowPtr(MDIClientWindow
):
3227 def __init__(self
, this
):
3229 if not hasattr(self
,"thisown"): self
.thisown
= 0
3230 self
.__class
__ = MDIClientWindow
3231 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3233 def PreMDIClientWindow(*args
, **kwargs
):
3234 """PreMDIClientWindow() -> MDIClientWindow"""
3235 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3239 #---------------------------------------------------------------------------
3241 class PyWindow(_core
.Window
):
3243 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3244 def __init__(self
, *args
, **kwargs
):
3246 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3247 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3249 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3250 self
.this
= newobj
.this
3253 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3255 def _setCallbackInfo(*args
, **kwargs
):
3256 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3257 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3259 def SetBestSize(*args
, **kwargs
):
3260 """SetBestSize(self, Size size)"""
3261 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3263 def base_DoMoveWindow(*args
, **kwargs
):
3264 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3265 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3267 def base_DoSetSize(*args
, **kwargs
):
3268 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3269 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3271 def base_DoSetClientSize(*args
, **kwargs
):
3272 """base_DoSetClientSize(self, int width, int height)"""
3273 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3275 def base_DoSetVirtualSize(*args
, **kwargs
):
3276 """base_DoSetVirtualSize(self, int x, int y)"""
3277 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3279 def base_DoGetSize(*args
, **kwargs
):
3280 """base_DoGetSize() -> (width, height)"""
3281 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3283 def base_DoGetClientSize(*args
, **kwargs
):
3284 """base_DoGetClientSize() -> (width, height)"""
3285 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3287 def base_DoGetPosition(*args
, **kwargs
):
3288 """base_DoGetPosition() -> (x,y)"""
3289 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3291 def base_DoGetVirtualSize(*args
, **kwargs
):
3292 """base_DoGetVirtualSize(self) -> Size"""
3293 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3295 def base_DoGetBestSize(*args
, **kwargs
):
3296 """base_DoGetBestSize(self) -> Size"""
3297 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3299 def base_InitDialog(*args
, **kwargs
):
3300 """base_InitDialog(self)"""
3301 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3303 def base_TransferDataToWindow(*args
, **kwargs
):
3304 """base_TransferDataToWindow(self) -> bool"""
3305 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3307 def base_TransferDataFromWindow(*args
, **kwargs
):
3308 """base_TransferDataFromWindow(self) -> bool"""
3309 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3311 def base_Validate(*args
, **kwargs
):
3312 """base_Validate(self) -> bool"""
3313 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3315 def base_AcceptsFocus(*args
, **kwargs
):
3316 """base_AcceptsFocus(self) -> bool"""
3317 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3319 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3320 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3321 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3323 def base_GetMaxSize(*args
, **kwargs
):
3324 """base_GetMaxSize(self) -> Size"""
3325 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3327 def base_AddChild(*args
, **kwargs
):
3328 """base_AddChild(self, Window child)"""
3329 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3331 def base_RemoveChild(*args
, **kwargs
):
3332 """base_RemoveChild(self, Window child)"""
3333 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3335 def base_ShouldInheritColours(*args
, **kwargs
):
3336 """base_ShouldInheritColours(self) -> bool"""
3337 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3339 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3340 """base_ApplyParentThemeBackground(self, Colour c)"""
3341 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3343 def base_GetDefaultAttributes(*args
, **kwargs
):
3344 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3345 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3348 class PyWindowPtr(PyWindow
):
3349 def __init__(self
, this
):
3351 if not hasattr(self
,"thisown"): self
.thisown
= 0
3352 self
.__class
__ = PyWindow
3353 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3355 def PrePyWindow(*args
, **kwargs
):
3356 """PrePyWindow() -> PyWindow"""
3357 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3361 class PyPanel(Panel
):
3363 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3364 def __init__(self
, *args
, **kwargs
):
3366 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3367 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3369 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3370 self
.this
= newobj
.this
3373 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3375 def _setCallbackInfo(*args
, **kwargs
):
3376 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3377 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3379 def SetBestSize(*args
, **kwargs
):
3380 """SetBestSize(self, Size size)"""
3381 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3383 def base_DoMoveWindow(*args
, **kwargs
):
3384 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3385 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3387 def base_DoSetSize(*args
, **kwargs
):
3388 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3389 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3391 def base_DoSetClientSize(*args
, **kwargs
):
3392 """base_DoSetClientSize(self, int width, int height)"""
3393 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3395 def base_DoSetVirtualSize(*args
, **kwargs
):
3396 """base_DoSetVirtualSize(self, int x, int y)"""
3397 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3399 def base_DoGetSize(*args
, **kwargs
):
3400 """base_DoGetSize() -> (width, height)"""
3401 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3403 def base_DoGetClientSize(*args
, **kwargs
):
3404 """base_DoGetClientSize() -> (width, height)"""
3405 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3407 def base_DoGetPosition(*args
, **kwargs
):
3408 """base_DoGetPosition() -> (x,y)"""
3409 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3411 def base_DoGetVirtualSize(*args
, **kwargs
):
3412 """base_DoGetVirtualSize(self) -> Size"""
3413 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3415 def base_DoGetBestSize(*args
, **kwargs
):
3416 """base_DoGetBestSize(self) -> Size"""
3417 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3419 def base_InitDialog(*args
, **kwargs
):
3420 """base_InitDialog(self)"""
3421 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3423 def base_TransferDataToWindow(*args
, **kwargs
):
3424 """base_TransferDataToWindow(self) -> bool"""
3425 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3427 def base_TransferDataFromWindow(*args
, **kwargs
):
3428 """base_TransferDataFromWindow(self) -> bool"""
3429 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3431 def base_Validate(*args
, **kwargs
):
3432 """base_Validate(self) -> bool"""
3433 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3435 def base_AcceptsFocus(*args
, **kwargs
):
3436 """base_AcceptsFocus(self) -> bool"""
3437 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3439 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3440 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3441 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3443 def base_GetMaxSize(*args
, **kwargs
):
3444 """base_GetMaxSize(self) -> Size"""
3445 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3447 def base_AddChild(*args
, **kwargs
):
3448 """base_AddChild(self, Window child)"""
3449 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3451 def base_RemoveChild(*args
, **kwargs
):
3452 """base_RemoveChild(self, Window child)"""
3453 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3455 def base_ShouldInheritColours(*args
, **kwargs
):
3456 """base_ShouldInheritColours(self) -> bool"""
3457 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3459 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3460 """base_ApplyParentThemeBackground(self, Colour c)"""
3461 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3463 def base_GetDefaultAttributes(*args
, **kwargs
):
3464 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3465 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3468 class PyPanelPtr(PyPanel
):
3469 def __init__(self
, this
):
3471 if not hasattr(self
,"thisown"): self
.thisown
= 0
3472 self
.__class
__ = PyPanel
3473 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3475 def PrePyPanel(*args
, **kwargs
):
3476 """PrePyPanel() -> PyPanel"""
3477 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3481 class PyScrolledWindow(ScrolledWindow
):
3483 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3484 def __init__(self
, *args
, **kwargs
):
3486 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3487 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3489 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3490 self
.this
= newobj
.this
3493 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3495 def _setCallbackInfo(*args
, **kwargs
):
3496 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3497 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3499 def SetBestSize(*args
, **kwargs
):
3500 """SetBestSize(self, Size size)"""
3501 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3503 def base_DoMoveWindow(*args
, **kwargs
):
3504 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3505 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3507 def base_DoSetSize(*args
, **kwargs
):
3508 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3509 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3511 def base_DoSetClientSize(*args
, **kwargs
):
3512 """base_DoSetClientSize(self, int width, int height)"""
3513 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3515 def base_DoSetVirtualSize(*args
, **kwargs
):
3516 """base_DoSetVirtualSize(self, int x, int y)"""
3517 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3519 def base_DoGetSize(*args
, **kwargs
):
3520 """base_DoGetSize() -> (width, height)"""
3521 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3523 def base_DoGetClientSize(*args
, **kwargs
):
3524 """base_DoGetClientSize() -> (width, height)"""
3525 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3527 def base_DoGetPosition(*args
, **kwargs
):
3528 """base_DoGetPosition() -> (x,y)"""
3529 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3531 def base_DoGetVirtualSize(*args
, **kwargs
):
3532 """base_DoGetVirtualSize(self) -> Size"""
3533 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3535 def base_DoGetBestSize(*args
, **kwargs
):
3536 """base_DoGetBestSize(self) -> Size"""
3537 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3539 def base_InitDialog(*args
, **kwargs
):
3540 """base_InitDialog(self)"""
3541 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3543 def base_TransferDataToWindow(*args
, **kwargs
):
3544 """base_TransferDataToWindow(self) -> bool"""
3545 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3547 def base_TransferDataFromWindow(*args
, **kwargs
):
3548 """base_TransferDataFromWindow(self) -> bool"""
3549 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3551 def base_Validate(*args
, **kwargs
):
3552 """base_Validate(self) -> bool"""
3553 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3555 def base_AcceptsFocus(*args
, **kwargs
):
3556 """base_AcceptsFocus(self) -> bool"""
3557 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3559 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3560 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3561 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3563 def base_GetMaxSize(*args
, **kwargs
):
3564 """base_GetMaxSize(self) -> Size"""
3565 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3567 def base_AddChild(*args
, **kwargs
):
3568 """base_AddChild(self, Window child)"""
3569 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3571 def base_RemoveChild(*args
, **kwargs
):
3572 """base_RemoveChild(self, Window child)"""
3573 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3575 def base_ShouldInheritColours(*args
, **kwargs
):
3576 """base_ShouldInheritColours(self) -> bool"""
3577 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3579 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3580 """base_ApplyParentThemeBackground(self, Colour c)"""
3581 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3583 def base_GetDefaultAttributes(*args
, **kwargs
):
3584 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3585 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3588 class PyScrolledWindowPtr(PyScrolledWindow
):
3589 def __init__(self
, this
):
3591 if not hasattr(self
,"thisown"): self
.thisown
= 0
3592 self
.__class
__ = PyScrolledWindow
3593 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3595 def PrePyScrolledWindow(*args
, **kwargs
):
3596 """PrePyScrolledWindow() -> PyScrolledWindow"""
3597 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3601 #---------------------------------------------------------------------------
3603 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3604 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3605 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3606 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3607 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3608 class PrintData(_core
.Object
):
3610 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3611 def __init__(self
, *args
):
3613 __init__(self) -> PrintData
3614 __init__(self, PrintData data) -> PrintData
3616 newobj
= _windows_
.new_PrintData(*args
)
3617 self
.this
= newobj
.this
3620 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3623 if self
.thisown
: destroy(self
)
3626 def GetNoCopies(*args
, **kwargs
):
3627 """GetNoCopies(self) -> int"""
3628 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3630 def GetCollate(*args
, **kwargs
):
3631 """GetCollate(self) -> bool"""
3632 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3634 def GetOrientation(*args
, **kwargs
):
3635 """GetOrientation(self) -> int"""
3636 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3638 def Ok(*args
, **kwargs
):
3639 """Ok(self) -> bool"""
3640 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3642 def GetPrinterName(*args
, **kwargs
):
3643 """GetPrinterName(self) -> String"""
3644 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3646 def GetColour(*args
, **kwargs
):
3647 """GetColour(self) -> bool"""
3648 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3650 def GetDuplex(*args
, **kwargs
):
3651 """GetDuplex(self) -> int"""
3652 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3654 def GetPaperId(*args
, **kwargs
):
3655 """GetPaperId(self) -> int"""
3656 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3658 def GetPaperSize(*args
, **kwargs
):
3659 """GetPaperSize(self) -> Size"""
3660 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3662 def GetQuality(*args
, **kwargs
):
3663 """GetQuality(self) -> int"""
3664 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3666 def SetNoCopies(*args
, **kwargs
):
3667 """SetNoCopies(self, int v)"""
3668 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3670 def SetCollate(*args
, **kwargs
):
3671 """SetCollate(self, bool flag)"""
3672 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3674 def SetOrientation(*args
, **kwargs
):
3675 """SetOrientation(self, int orient)"""
3676 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3678 def SetPrinterName(*args
, **kwargs
):
3679 """SetPrinterName(self, String name)"""
3680 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3682 def SetColour(*args
, **kwargs
):
3683 """SetColour(self, bool colour)"""
3684 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3686 def SetDuplex(*args
, **kwargs
):
3687 """SetDuplex(self, int duplex)"""
3688 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3690 def SetPaperId(*args
, **kwargs
):
3691 """SetPaperId(self, int sizeId)"""
3692 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3694 def SetPaperSize(*args
, **kwargs
):
3695 """SetPaperSize(self, Size sz)"""
3696 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3698 def SetQuality(*args
, **kwargs
):
3699 """SetQuality(self, int quality)"""
3700 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3702 def GetPrinterCommand(*args
, **kwargs
):
3703 """GetPrinterCommand(self) -> String"""
3704 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3706 def GetPrinterOptions(*args
, **kwargs
):
3707 """GetPrinterOptions(self) -> String"""
3708 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3710 def GetPreviewCommand(*args
, **kwargs
):
3711 """GetPreviewCommand(self) -> String"""
3712 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3714 def GetFilename(*args
, **kwargs
):
3715 """GetFilename(self) -> String"""
3716 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3718 def GetFontMetricPath(*args
, **kwargs
):
3719 """GetFontMetricPath(self) -> String"""
3720 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3722 def GetPrinterScaleX(*args
, **kwargs
):
3723 """GetPrinterScaleX(self) -> double"""
3724 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3726 def GetPrinterScaleY(*args
, **kwargs
):
3727 """GetPrinterScaleY(self) -> double"""
3728 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3730 def GetPrinterTranslateX(*args
, **kwargs
):
3731 """GetPrinterTranslateX(self) -> long"""
3732 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3734 def GetPrinterTranslateY(*args
, **kwargs
):
3735 """GetPrinterTranslateY(self) -> long"""
3736 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3738 def GetPrintMode(*args
, **kwargs
):
3739 """GetPrintMode(self) -> int"""
3740 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3742 def SetPrinterCommand(*args
, **kwargs
):
3743 """SetPrinterCommand(self, String command)"""
3744 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3746 def SetPrinterOptions(*args
, **kwargs
):
3747 """SetPrinterOptions(self, String options)"""
3748 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3750 def SetPreviewCommand(*args
, **kwargs
):
3751 """SetPreviewCommand(self, String command)"""
3752 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3754 def SetFilename(*args
, **kwargs
):
3755 """SetFilename(self, String filename)"""
3756 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3758 def SetFontMetricPath(*args
, **kwargs
):
3759 """SetFontMetricPath(self, String path)"""
3760 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3762 def SetPrinterScaleX(*args
, **kwargs
):
3763 """SetPrinterScaleX(self, double x)"""
3764 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3766 def SetPrinterScaleY(*args
, **kwargs
):
3767 """SetPrinterScaleY(self, double y)"""
3768 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3770 def SetPrinterScaling(*args
, **kwargs
):
3771 """SetPrinterScaling(self, double x, double y)"""
3772 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3774 def SetPrinterTranslateX(*args
, **kwargs
):
3775 """SetPrinterTranslateX(self, long x)"""
3776 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3778 def SetPrinterTranslateY(*args
, **kwargs
):
3779 """SetPrinterTranslateY(self, long y)"""
3780 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3782 def SetPrinterTranslation(*args
, **kwargs
):
3783 """SetPrinterTranslation(self, long x, long y)"""
3784 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3786 def SetPrintMode(*args
, **kwargs
):
3787 """SetPrintMode(self, int printMode)"""
3788 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3790 def GetOutputStream(*args
, **kwargs
):
3791 """GetOutputStream(self) -> OutputStream"""
3792 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3794 def SetOutputStream(*args
, **kwargs
):
3795 """SetOutputStream(self, OutputStream outputstream)"""
3796 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3798 def __nonzero__(self
): return self
.Ok()
3800 class PrintDataPtr(PrintData
):
3801 def __init__(self
, this
):
3803 if not hasattr(self
,"thisown"): self
.thisown
= 0
3804 self
.__class
__ = PrintData
3805 _windows_
.PrintData_swigregister(PrintDataPtr
)
3806 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3807 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3809 class PageSetupDialogData(_core
.Object
):
3811 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3812 def __init__(self
, *args
):
3814 __init__(self) -> PageSetupDialogData
3815 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3817 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3818 self
.this
= newobj
.this
3821 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3824 if self
.thisown
: destroy(self
)
3827 def EnableHelp(*args
, **kwargs
):
3828 """EnableHelp(self, bool flag)"""
3829 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3831 def EnableMargins(*args
, **kwargs
):
3832 """EnableMargins(self, bool flag)"""
3833 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3835 def EnableOrientation(*args
, **kwargs
):
3836 """EnableOrientation(self, bool flag)"""
3837 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3839 def EnablePaper(*args
, **kwargs
):
3840 """EnablePaper(self, bool flag)"""
3841 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3843 def EnablePrinter(*args
, **kwargs
):
3844 """EnablePrinter(self, bool flag)"""
3845 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3847 def GetDefaultMinMargins(*args
, **kwargs
):
3848 """GetDefaultMinMargins(self) -> bool"""
3849 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3851 def GetEnableMargins(*args
, **kwargs
):
3852 """GetEnableMargins(self) -> bool"""
3853 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3855 def GetEnableOrientation(*args
, **kwargs
):
3856 """GetEnableOrientation(self) -> bool"""
3857 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3859 def GetEnablePaper(*args
, **kwargs
):
3860 """GetEnablePaper(self) -> bool"""
3861 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3863 def GetEnablePrinter(*args
, **kwargs
):
3864 """GetEnablePrinter(self) -> bool"""
3865 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3867 def GetEnableHelp(*args
, **kwargs
):
3868 """GetEnableHelp(self) -> bool"""
3869 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3871 def GetDefaultInfo(*args
, **kwargs
):
3872 """GetDefaultInfo(self) -> bool"""
3873 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3875 def GetMarginTopLeft(*args
, **kwargs
):
3876 """GetMarginTopLeft(self) -> Point"""
3877 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3879 def GetMarginBottomRight(*args
, **kwargs
):
3880 """GetMarginBottomRight(self) -> Point"""
3881 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3883 def GetMinMarginTopLeft(*args
, **kwargs
):
3884 """GetMinMarginTopLeft(self) -> Point"""
3885 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3887 def GetMinMarginBottomRight(*args
, **kwargs
):
3888 """GetMinMarginBottomRight(self) -> Point"""
3889 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3891 def GetPaperId(*args
, **kwargs
):
3892 """GetPaperId(self) -> int"""
3893 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3895 def GetPaperSize(*args
, **kwargs
):
3896 """GetPaperSize(self) -> Size"""
3897 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3899 def GetPrintData(*args
, **kwargs
):
3900 """GetPrintData(self) -> PrintData"""
3901 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3903 def Ok(*args
, **kwargs
):
3904 """Ok(self) -> bool"""
3905 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3907 def SetDefaultInfo(*args
, **kwargs
):
3908 """SetDefaultInfo(self, bool flag)"""
3909 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3911 def SetDefaultMinMargins(*args
, **kwargs
):
3912 """SetDefaultMinMargins(self, bool flag)"""
3913 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3915 def SetMarginTopLeft(*args
, **kwargs
):
3916 """SetMarginTopLeft(self, Point pt)"""
3917 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3919 def SetMarginBottomRight(*args
, **kwargs
):
3920 """SetMarginBottomRight(self, Point pt)"""
3921 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3923 def SetMinMarginTopLeft(*args
, **kwargs
):
3924 """SetMinMarginTopLeft(self, Point pt)"""
3925 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3927 def SetMinMarginBottomRight(*args
, **kwargs
):
3928 """SetMinMarginBottomRight(self, Point pt)"""
3929 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3931 def SetPaperId(*args
, **kwargs
):
3932 """SetPaperId(self, int id)"""
3933 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3935 def SetPaperSize(*args
, **kwargs
):
3936 """SetPaperSize(self, Size size)"""
3937 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3939 def SetPrintData(*args
, **kwargs
):
3940 """SetPrintData(self, PrintData printData)"""
3941 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3943 def __nonzero__(self
): return self
.Ok()
3945 class PageSetupDialogDataPtr(PageSetupDialogData
):
3946 def __init__(self
, this
):
3948 if not hasattr(self
,"thisown"): self
.thisown
= 0
3949 self
.__class
__ = PageSetupDialogData
3950 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3952 class PageSetupDialog(Dialog
):
3954 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3955 def __init__(self
, *args
, **kwargs
):
3956 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3957 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
3958 self
.this
= newobj
.this
3961 self
._setOORInfo
(self
)
3963 def GetPageSetupData(*args
, **kwargs
):
3964 """GetPageSetupData(self) -> PageSetupDialogData"""
3965 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3967 def ShowModal(*args
, **kwargs
):
3968 """ShowModal(self) -> int"""
3969 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3972 class PageSetupDialogPtr(PageSetupDialog
):
3973 def __init__(self
, this
):
3975 if not hasattr(self
,"thisown"): self
.thisown
= 0
3976 self
.__class
__ = PageSetupDialog
3977 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3979 class PrintDialogData(_core
.Object
):
3981 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3982 def __init__(self
, *args
):
3984 __init__(self) -> PrintDialogData
3985 __init__(self, PrintData printData) -> PrintDialogData
3987 newobj
= _windows_
.new_PrintDialogData(*args
)
3988 self
.this
= newobj
.this
3991 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
3994 if self
.thisown
: destroy(self
)
3997 def GetFromPage(*args
, **kwargs
):
3998 """GetFromPage(self) -> int"""
3999 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4001 def GetToPage(*args
, **kwargs
):
4002 """GetToPage(self) -> int"""
4003 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4005 def GetMinPage(*args
, **kwargs
):
4006 """GetMinPage(self) -> int"""
4007 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4009 def GetMaxPage(*args
, **kwargs
):
4010 """GetMaxPage(self) -> int"""
4011 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4013 def GetNoCopies(*args
, **kwargs
):
4014 """GetNoCopies(self) -> int"""
4015 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4017 def GetAllPages(*args
, **kwargs
):
4018 """GetAllPages(self) -> bool"""
4019 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4021 def GetSelection(*args
, **kwargs
):
4022 """GetSelection(self) -> bool"""
4023 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4025 def GetCollate(*args
, **kwargs
):
4026 """GetCollate(self) -> bool"""
4027 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4029 def GetPrintToFile(*args
, **kwargs
):
4030 """GetPrintToFile(self) -> bool"""
4031 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4033 def GetSetupDialog(*args
, **kwargs
):
4034 """GetSetupDialog(self) -> bool"""
4035 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4037 def SetFromPage(*args
, **kwargs
):
4038 """SetFromPage(self, int v)"""
4039 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4041 def SetToPage(*args
, **kwargs
):
4042 """SetToPage(self, int v)"""
4043 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4045 def SetMinPage(*args
, **kwargs
):
4046 """SetMinPage(self, int v)"""
4047 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4049 def SetMaxPage(*args
, **kwargs
):
4050 """SetMaxPage(self, int v)"""
4051 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4053 def SetNoCopies(*args
, **kwargs
):
4054 """SetNoCopies(self, int v)"""
4055 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4057 def SetAllPages(*args
, **kwargs
):
4058 """SetAllPages(self, bool flag)"""
4059 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4061 def SetSelection(*args
, **kwargs
):
4062 """SetSelection(self, bool flag)"""
4063 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4065 def SetCollate(*args
, **kwargs
):
4066 """SetCollate(self, bool flag)"""
4067 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4069 def SetPrintToFile(*args
, **kwargs
):
4070 """SetPrintToFile(self, bool flag)"""
4071 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4073 def SetSetupDialog(*args
, **kwargs
):
4074 """SetSetupDialog(self, bool flag)"""
4075 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4077 def EnablePrintToFile(*args
, **kwargs
):
4078 """EnablePrintToFile(self, bool flag)"""
4079 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4081 def EnableSelection(*args
, **kwargs
):
4082 """EnableSelection(self, bool flag)"""
4083 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4085 def EnablePageNumbers(*args
, **kwargs
):
4086 """EnablePageNumbers(self, bool flag)"""
4087 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4089 def EnableHelp(*args
, **kwargs
):
4090 """EnableHelp(self, bool flag)"""
4091 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4093 def GetEnablePrintToFile(*args
, **kwargs
):
4094 """GetEnablePrintToFile(self) -> bool"""
4095 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4097 def GetEnableSelection(*args
, **kwargs
):
4098 """GetEnableSelection(self) -> bool"""
4099 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4101 def GetEnablePageNumbers(*args
, **kwargs
):
4102 """GetEnablePageNumbers(self) -> bool"""
4103 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4105 def GetEnableHelp(*args
, **kwargs
):
4106 """GetEnableHelp(self) -> bool"""
4107 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4109 def Ok(*args
, **kwargs
):
4110 """Ok(self) -> bool"""
4111 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4113 def GetPrintData(*args
, **kwargs
):
4114 """GetPrintData(self) -> PrintData"""
4115 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4117 def SetPrintData(*args
, **kwargs
):
4118 """SetPrintData(self, PrintData printData)"""
4119 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4121 def __nonzero__(self
): return self
.Ok()
4123 class PrintDialogDataPtr(PrintDialogData
):
4124 def __init__(self
, this
):
4126 if not hasattr(self
,"thisown"): self
.thisown
= 0
4127 self
.__class
__ = PrintDialogData
4128 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4130 class PrintDialog(Dialog
):
4132 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4133 def __init__(self
, *args
, **kwargs
):
4134 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4135 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4136 self
.this
= newobj
.this
4139 self
._setOORInfo
(self
)
4141 def GetPrintDialogData(*args
, **kwargs
):
4142 """GetPrintDialogData(self) -> PrintDialogData"""
4143 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4145 def GetPrintDC(*args
, **kwargs
):
4146 """GetPrintDC(self) -> DC"""
4147 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4149 def ShowModal(*args
, **kwargs
):
4150 """ShowModal(self) -> int"""
4151 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4154 class PrintDialogPtr(PrintDialog
):
4155 def __init__(self
, this
):
4157 if not hasattr(self
,"thisown"): self
.thisown
= 0
4158 self
.__class
__ = PrintDialog
4159 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4161 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4162 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4163 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4164 class Printer(_core
.Object
):
4166 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4167 def __init__(self
, *args
, **kwargs
):
4168 """__init__(self, PrintDialogData data=None) -> Printer"""
4169 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4170 self
.this
= newobj
.this
4173 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4176 if self
.thisown
: destroy(self
)
4179 def CreateAbortWindow(*args
, **kwargs
):
4180 """CreateAbortWindow(self, Window parent, Printout printout)"""
4181 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4183 def GetPrintDialogData(*args
, **kwargs
):
4184 """GetPrintDialogData(self) -> PrintDialogData"""
4185 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4187 def Print(*args
, **kwargs
):
4188 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4189 return _windows_
.Printer_Print(*args
, **kwargs
)
4191 def PrintDialog(*args
, **kwargs
):
4192 """PrintDialog(self, Window parent) -> DC"""
4193 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4195 def ReportError(*args
, **kwargs
):
4196 """ReportError(self, Window parent, Printout printout, String message)"""
4197 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4199 def Setup(*args
, **kwargs
):
4200 """Setup(self, Window parent) -> bool"""
4201 return _windows_
.Printer_Setup(*args
, **kwargs
)
4203 def GetAbort(*args
, **kwargs
):
4204 """GetAbort(self) -> bool"""
4205 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4207 def GetLastError(*args
, **kwargs
):
4208 """GetLastError() -> int"""
4209 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4211 GetLastError
= staticmethod(GetLastError
)
4213 class PrinterPtr(Printer
):
4214 def __init__(self
, this
):
4216 if not hasattr(self
,"thisown"): self
.thisown
= 0
4217 self
.__class
__ = Printer
4218 _windows_
.Printer_swigregister(PrinterPtr
)
4220 def Printer_GetLastError(*args
, **kwargs
):
4221 """Printer_GetLastError() -> int"""
4222 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4224 class Printout(_core
.Object
):
4226 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4227 def __init__(self
, *args
, **kwargs
):
4228 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4229 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4230 self
.this
= newobj
.this
4233 self
._setCallbackInfo
(self
, Printout
)
4235 def _setCallbackInfo(*args
, **kwargs
):
4236 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4237 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4239 def GetTitle(*args
, **kwargs
):
4240 """GetTitle(self) -> String"""
4241 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4243 def GetDC(*args
, **kwargs
):
4244 """GetDC(self) -> DC"""
4245 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4247 def SetDC(*args
, **kwargs
):
4248 """SetDC(self, DC dc)"""
4249 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4251 def SetPageSizePixels(*args
, **kwargs
):
4252 """SetPageSizePixels(self, int w, int h)"""
4253 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4255 def GetPageSizePixels(*args
, **kwargs
):
4256 """GetPageSizePixels() -> (w, h)"""
4257 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4259 def SetPageSizeMM(*args
, **kwargs
):
4260 """SetPageSizeMM(self, int w, int h)"""
4261 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4263 def GetPageSizeMM(*args
, **kwargs
):
4264 """GetPageSizeMM() -> (w, h)"""
4265 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4267 def SetPPIScreen(*args
, **kwargs
):
4268 """SetPPIScreen(self, int x, int y)"""
4269 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4271 def GetPPIScreen(*args
, **kwargs
):
4272 """GetPPIScreen() -> (x,y)"""
4273 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4275 def SetPPIPrinter(*args
, **kwargs
):
4276 """SetPPIPrinter(self, int x, int y)"""
4277 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4279 def GetPPIPrinter(*args
, **kwargs
):
4280 """GetPPIPrinter() -> (x,y)"""
4281 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4283 def IsPreview(*args
, **kwargs
):
4284 """IsPreview(self) -> bool"""
4285 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4287 def SetIsPreview(*args
, **kwargs
):
4288 """SetIsPreview(self, bool p)"""
4289 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4291 def base_OnBeginDocument(*args
, **kwargs
):
4292 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4293 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4295 def base_OnEndDocument(*args
, **kwargs
):
4296 """base_OnEndDocument(self)"""
4297 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4299 def base_OnBeginPrinting(*args
, **kwargs
):
4300 """base_OnBeginPrinting(self)"""
4301 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4303 def base_OnEndPrinting(*args
, **kwargs
):
4304 """base_OnEndPrinting(self)"""
4305 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4307 def base_OnPreparePrinting(*args
, **kwargs
):
4308 """base_OnPreparePrinting(self)"""
4309 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4311 def base_HasPage(*args
, **kwargs
):
4312 """base_HasPage(self, int page) -> bool"""
4313 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4315 def base_GetPageInfo(*args
, **kwargs
):
4316 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4317 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4320 class PrintoutPtr(Printout
):
4321 def __init__(self
, this
):
4323 if not hasattr(self
,"thisown"): self
.thisown
= 0
4324 self
.__class
__ = Printout
4325 _windows_
.Printout_swigregister(PrintoutPtr
)
4327 class PreviewCanvas(ScrolledWindow
):
4329 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4330 def __init__(self
, *args
, **kwargs
):
4332 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4333 Size size=DefaultSize, long style=0,
4334 String name=PreviewCanvasNameStr) -> PreviewCanvas
4336 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4337 self
.this
= newobj
.this
4340 self
._setOORInfo
(self
)
4343 class PreviewCanvasPtr(PreviewCanvas
):
4344 def __init__(self
, this
):
4346 if not hasattr(self
,"thisown"): self
.thisown
= 0
4347 self
.__class
__ = PreviewCanvas
4348 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4350 class PreviewFrame(Frame
):
4352 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4353 def __init__(self
, *args
, **kwargs
):
4355 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4356 Size size=DefaultSize,
4357 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4359 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4360 self
.this
= newobj
.this
4363 self
._setOORInfo
(self
)
4365 def Initialize(*args
, **kwargs
):
4366 """Initialize(self)"""
4367 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4369 def CreateControlBar(*args
, **kwargs
):
4370 """CreateControlBar(self)"""
4371 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4373 def CreateCanvas(*args
, **kwargs
):
4374 """CreateCanvas(self)"""
4375 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4377 def GetControlBar(*args
, **kwargs
):
4378 """GetControlBar(self) -> PreviewControlBar"""
4379 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4382 class PreviewFramePtr(PreviewFrame
):
4383 def __init__(self
, this
):
4385 if not hasattr(self
,"thisown"): self
.thisown
= 0
4386 self
.__class
__ = PreviewFrame
4387 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4389 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4390 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4391 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4392 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4393 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4394 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4395 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4396 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4397 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4398 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4399 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4400 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4401 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4402 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4403 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4404 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4405 class PreviewControlBar(Panel
):
4407 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4408 def __init__(self
, *args
, **kwargs
):
4410 __init__(self, PrintPreview preview, long buttons, Window parent,
4411 Point pos=DefaultPosition, Size size=DefaultSize,
4412 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4414 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4415 self
.this
= newobj
.this
4418 self
._setOORInfo
(self
)
4420 def GetZoomControl(*args
, **kwargs
):
4421 """GetZoomControl(self) -> int"""
4422 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4424 def SetZoomControl(*args
, **kwargs
):
4425 """SetZoomControl(self, int zoom)"""
4426 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4428 def GetPrintPreview(*args
, **kwargs
):
4429 """GetPrintPreview(self) -> PrintPreview"""
4430 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4432 def OnNext(*args
, **kwargs
):
4434 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4436 def OnPrevious(*args
, **kwargs
):
4437 """OnPrevious(self)"""
4438 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4440 def OnFirst(*args
, **kwargs
):
4442 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4444 def OnLast(*args
, **kwargs
):
4446 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4448 def OnGoto(*args
, **kwargs
):
4450 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4453 class PreviewControlBarPtr(PreviewControlBar
):
4454 def __init__(self
, this
):
4456 if not hasattr(self
,"thisown"): self
.thisown
= 0
4457 self
.__class
__ = PreviewControlBar
4458 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4460 class PrintPreview(_core
.Object
):
4462 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4463 def __init__(self
, *args
):
4465 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4466 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4468 newobj
= _windows_
.new_PrintPreview(*args
)
4469 self
.this
= newobj
.this
4472 def SetCurrentPage(*args
, **kwargs
):
4473 """SetCurrentPage(self, int pageNum) -> bool"""
4474 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4476 def GetCurrentPage(*args
, **kwargs
):
4477 """GetCurrentPage(self) -> int"""
4478 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4480 def SetPrintout(*args
, **kwargs
):
4481 """SetPrintout(self, Printout printout)"""
4482 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4484 def GetPrintout(*args
, **kwargs
):
4485 """GetPrintout(self) -> Printout"""
4486 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4488 def GetPrintoutForPrinting(*args
, **kwargs
):
4489 """GetPrintoutForPrinting(self) -> Printout"""
4490 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4492 def SetFrame(*args
, **kwargs
):
4493 """SetFrame(self, Frame frame)"""
4494 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4496 def SetCanvas(*args
, **kwargs
):
4497 """SetCanvas(self, PreviewCanvas canvas)"""
4498 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4500 def GetFrame(*args
, **kwargs
):
4501 """GetFrame(self) -> Frame"""
4502 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4504 def GetCanvas(*args
, **kwargs
):
4505 """GetCanvas(self) -> PreviewCanvas"""
4506 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4508 def PaintPage(*args
, **kwargs
):
4509 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4510 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4512 def DrawBlankPage(*args
, **kwargs
):
4513 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4514 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4516 def RenderPage(*args
, **kwargs
):
4517 """RenderPage(self, int pageNum) -> bool"""
4518 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4520 def AdjustScrollbars(*args
, **kwargs
):
4521 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4522 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4524 def GetPrintDialogData(*args
, **kwargs
):
4525 """GetPrintDialogData(self) -> PrintDialogData"""
4526 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4528 def SetZoom(*args
, **kwargs
):
4529 """SetZoom(self, int percent)"""
4530 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4532 def GetZoom(*args
, **kwargs
):
4533 """GetZoom(self) -> int"""
4534 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4536 def GetMaxPage(*args
, **kwargs
):
4537 """GetMaxPage(self) -> int"""
4538 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4540 def GetMinPage(*args
, **kwargs
):
4541 """GetMinPage(self) -> int"""
4542 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4544 def Ok(*args
, **kwargs
):
4545 """Ok(self) -> bool"""
4546 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4548 def SetOk(*args
, **kwargs
):
4549 """SetOk(self, bool ok)"""
4550 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4552 def Print(*args
, **kwargs
):
4553 """Print(self, bool interactive) -> bool"""
4554 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4556 def DetermineScaling(*args
, **kwargs
):
4557 """DetermineScaling(self)"""
4558 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4560 def __nonzero__(self
): return self
.Ok()
4562 class PrintPreviewPtr(PrintPreview
):
4563 def __init__(self
, this
):
4565 if not hasattr(self
,"thisown"): self
.thisown
= 0
4566 self
.__class
__ = PrintPreview
4567 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4569 class PyPrintPreview(PrintPreview
):
4571 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4572 def __init__(self
, *args
):
4574 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4575 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4577 newobj
= _windows_
.new_PyPrintPreview(*args
)
4578 self
.this
= newobj
.this
4581 self
._setCallbackInfo
(self
, PyPrintPreview
)
4583 def _setCallbackInfo(*args
, **kwargs
):
4584 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4585 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4587 def base_SetCurrentPage(*args
, **kwargs
):
4588 """base_SetCurrentPage(self, int pageNum) -> bool"""
4589 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4591 def base_PaintPage(*args
, **kwargs
):
4592 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4593 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4595 def base_DrawBlankPage(*args
, **kwargs
):
4596 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4597 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4599 def base_RenderPage(*args
, **kwargs
):
4600 """base_RenderPage(self, int pageNum) -> bool"""
4601 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4603 def base_SetZoom(*args
, **kwargs
):
4604 """base_SetZoom(self, int percent)"""
4605 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4607 def base_Print(*args
, **kwargs
):
4608 """base_Print(self, bool interactive) -> bool"""
4609 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4611 def base_DetermineScaling(*args
, **kwargs
):
4612 """base_DetermineScaling(self)"""
4613 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4616 class PyPrintPreviewPtr(PyPrintPreview
):
4617 def __init__(self
, this
):
4619 if not hasattr(self
,"thisown"): self
.thisown
= 0
4620 self
.__class
__ = PyPrintPreview
4621 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4623 class PyPreviewFrame(PreviewFrame
):
4625 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4626 def __init__(self
, *args
, **kwargs
):
4628 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4629 Size size=DefaultSize,
4630 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4632 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4633 self
.this
= newobj
.this
4636 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4638 def _setCallbackInfo(*args
, **kwargs
):
4639 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4640 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4642 def SetPreviewCanvas(*args
, **kwargs
):
4643 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4644 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4646 def SetControlBar(*args
, **kwargs
):
4647 """SetControlBar(self, PreviewControlBar bar)"""
4648 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4650 def base_Initialize(*args
, **kwargs
):
4651 """base_Initialize(self)"""
4652 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4654 def base_CreateCanvas(*args
, **kwargs
):
4655 """base_CreateCanvas(self)"""
4656 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4658 def base_CreateControlBar(*args
, **kwargs
):
4659 """base_CreateControlBar(self)"""
4660 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4663 class PyPreviewFramePtr(PyPreviewFrame
):
4664 def __init__(self
, this
):
4666 if not hasattr(self
,"thisown"): self
.thisown
= 0
4667 self
.__class
__ = PyPreviewFrame
4668 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4670 class PyPreviewControlBar(PreviewControlBar
):
4672 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4673 def __init__(self
, *args
, **kwargs
):
4675 __init__(self, PrintPreview preview, long buttons, Window parent,
4676 Point pos=DefaultPosition, Size size=DefaultSize,
4677 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4679 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4680 self
.this
= newobj
.this
4683 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4685 def _setCallbackInfo(*args
, **kwargs
):
4686 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4687 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4689 def SetPrintPreview(*args
, **kwargs
):
4690 """SetPrintPreview(self, PrintPreview preview)"""
4691 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4693 def base_CreateButtons(*args
, **kwargs
):
4694 """base_CreateButtons(self)"""
4695 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4697 def base_SetZoomControl(*args
, **kwargs
):
4698 """base_SetZoomControl(self, int zoom)"""
4699 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4702 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4703 def __init__(self
, this
):
4705 if not hasattr(self
,"thisown"): self
.thisown
= 0
4706 self
.__class
__ = PyPreviewControlBar
4707 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)