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 Create the GUI part of the Window for 2-phase creation mode.
33 return _windows_
.Panel_Create(*args
, **kwargs
)
35 def InitDialog(*args
, **kwargs
):
39 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
40 to the dialog via validators.
42 return _windows_
.Panel_InitDialog(*args
, **kwargs
)
44 def GetClassDefaultAttributes(*args
, **kwargs
):
46 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
48 Get the default attributes for this class. This is useful if you want
49 to use the same font or colour in your own control as in a standard
50 control -- which is a much better idea than hard coding specific
51 colours or fonts which might look completely out of place on the
52 user's system, especially if it uses themes.
54 The variant parameter is only relevant under Mac currently and is
55 ignore under other platforms. Under Mac, it will change the size of
56 the returned font. See `wx.Window.SetWindowVariant` for more about
59 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
61 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
63 class PanelPtr(Panel
):
64 def __init__(self
, this
):
66 if not hasattr(self
,"thisown"): self
.thisown
= 0
67 self
.__class
__ = Panel
68 _windows_
.Panel_swigregister(PanelPtr
)
70 def PrePanel(*args
, **kwargs
):
71 """PrePanel() -> Panel"""
72 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
76 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
78 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
80 Get the default attributes for this class. This is useful if you want
81 to use the same font or colour in your own control as in a standard
82 control -- which is a much better idea than hard coding specific
83 colours or fonts which might look completely out of place on the
84 user's system, especially if it uses themes.
86 The variant parameter is only relevant under Mac currently and is
87 ignore under other platforms. Under Mac, it will change the size of
88 the returned font. See `wx.Window.SetWindowVariant` for more about
91 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
93 #---------------------------------------------------------------------------
95 class ScrolledWindow(Panel
):
97 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
98 def __init__(self
, *args
, **kwargs
):
100 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
101 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
102 String name=PanelNameStr) -> ScrolledWindow
104 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
105 self
.this
= newobj
.this
108 self
._setOORInfo
(self
)
110 def Create(*args
, **kwargs
):
112 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
113 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
114 String name=PanelNameStr) -> bool
116 Create the GUI part of the Window for 2-phase creation mode.
118 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
120 def SetScrollbars(*args
, **kwargs
):
122 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
123 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
125 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
127 def Scroll(*args
, **kwargs
):
128 """Scroll(self, int x, int y)"""
129 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
131 def GetScrollPageSize(*args
, **kwargs
):
132 """GetScrollPageSize(self, int orient) -> int"""
133 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
135 def SetScrollPageSize(*args
, **kwargs
):
136 """SetScrollPageSize(self, int orient, int pageSize)"""
137 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
139 def SetScrollRate(*args
, **kwargs
):
140 """SetScrollRate(self, int xstep, int ystep)"""
141 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
143 def GetScrollPixelsPerUnit(*args
, **kwargs
):
145 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
147 Get the size of one logical unit in physical units.
149 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
151 def EnableScrolling(*args
, **kwargs
):
152 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
153 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
155 def GetViewStart(*args
, **kwargs
):
157 GetViewStart() -> (x,y)
161 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
163 def SetScale(*args
, **kwargs
):
164 """SetScale(self, double xs, double ys)"""
165 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
167 def GetScaleX(*args
, **kwargs
):
168 """GetScaleX(self) -> double"""
169 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
171 def GetScaleY(*args
, **kwargs
):
172 """GetScaleY(self) -> double"""
173 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
175 def CalcScrolledPosition(*args
):
177 CalcScrolledPosition(self, Point pt) -> Point
178 CalcScrolledPosition(int x, int y) -> (sx, sy)
180 Translate between scrolled and unscrolled coordinates.
182 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
184 def CalcUnscrolledPosition(*args
):
186 CalcUnscrolledPosition(self, Point pt) -> Point
187 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
189 Translate between scrolled and unscrolled coordinates.
191 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
193 def AdjustScrollbars(*args
, **kwargs
):
194 """AdjustScrollbars(self)"""
195 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
197 def CalcScrollInc(*args
, **kwargs
):
198 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
199 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
201 def SetTargetWindow(*args
, **kwargs
):
202 """SetTargetWindow(self, Window target)"""
203 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
205 def GetTargetWindow(*args
, **kwargs
):
206 """GetTargetWindow(self) -> Window"""
207 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
209 def DoPrepareDC(*args
, **kwargs
):
211 DoPrepareDC(self, DC dc)
213 Normally what is called by `PrepareDC`.
215 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
217 def GetClassDefaultAttributes(*args
, **kwargs
):
219 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
221 Get the default attributes for this class. This is useful if you want
222 to use the same font or colour in your own control as in a standard
223 control -- which is a much better idea than hard coding specific
224 colours or fonts which might look completely out of place on the
225 user's system, especially if it uses themes.
227 The variant parameter is only relevant under Mac currently and is
228 ignore under other platforms. Under Mac, it will change the size of
229 the returned font. See `wx.Window.SetWindowVariant` for more about
232 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
234 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
236 class ScrolledWindowPtr(ScrolledWindow
):
237 def __init__(self
, this
):
239 if not hasattr(self
,"thisown"): self
.thisown
= 0
240 self
.__class
__ = ScrolledWindow
241 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
243 def PreScrolledWindow(*args
, **kwargs
):
244 """PreScrolledWindow() -> ScrolledWindow"""
245 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
249 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
251 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
253 Get the default attributes for this class. This is useful if you want
254 to use the same font or colour in your own control as in a standard
255 control -- which is a much better idea than hard coding specific
256 colours or fonts which might look completely out of place on the
257 user's system, especially if it uses themes.
259 The variant parameter is only relevant under Mac currently and is
260 ignore under other platforms. Under Mac, it will change the size of
261 the returned font. See `wx.Window.SetWindowVariant` for more about
264 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
266 #---------------------------------------------------------------------------
268 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
269 ICONIZE
= _windows_
.ICONIZE
270 MINIMIZE
= _windows_
.MINIMIZE
271 MAXIMIZE
= _windows_
.MAXIMIZE
272 CLOSE_BOX
= _windows_
.CLOSE_BOX
273 THICK_FRAME
= _windows_
.THICK_FRAME
274 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
275 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
276 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
277 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
278 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
279 RESIZE_BOX
= _windows_
.RESIZE_BOX
280 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
281 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
282 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
283 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
284 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
285 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
286 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
287 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
288 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
289 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
290 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
291 USER_COLOURS
= _windows_
.USER_COLOURS
292 NO_3D
= _windows_
.NO_3D
293 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
294 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
295 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
296 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
297 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
298 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
299 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
300 class TopLevelWindow(_core
.Window
):
301 def __init__(self
): raise RuntimeError, "No constructor defined"
303 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
304 def Maximize(*args
, **kwargs
):
305 """Maximize(self, bool maximize=True)"""
306 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
308 def Restore(*args
, **kwargs
):
310 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
312 def Iconize(*args
, **kwargs
):
313 """Iconize(self, bool iconize=True)"""
314 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
316 def IsMaximized(*args
, **kwargs
):
317 """IsMaximized(self) -> bool"""
318 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
320 def IsIconized(*args
, **kwargs
):
321 """IsIconized(self) -> bool"""
322 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
324 def GetIcon(*args
, **kwargs
):
325 """GetIcon(self) -> Icon"""
326 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
328 def SetIcon(*args
, **kwargs
):
329 """SetIcon(self, Icon icon)"""
330 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
332 def SetIcons(*args
, **kwargs
):
333 """SetIcons(self, wxIconBundle icons)"""
334 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
336 def ShowFullScreen(*args
, **kwargs
):
337 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
338 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
340 def IsFullScreen(*args
, **kwargs
):
341 """IsFullScreen(self) -> bool"""
342 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
344 def SetTitle(*args
, **kwargs
):
346 SetTitle(self, String title)
348 Sets the window's title. Applicable only to frames and dialogs.
350 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
352 def GetTitle(*args
, **kwargs
):
354 GetTitle(self) -> String
356 Gets the window's title. Applicable only to frames and dialogs.
358 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
360 def SetShape(*args
, **kwargs
):
361 """SetShape(self, Region region) -> bool"""
362 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
365 class TopLevelWindowPtr(TopLevelWindow
):
366 def __init__(self
, this
):
368 if not hasattr(self
,"thisown"): self
.thisown
= 0
369 self
.__class
__ = TopLevelWindow
370 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
371 cvar
= _windows_
.cvar
372 FrameNameStr
= cvar
.FrameNameStr
373 DialogNameStr
= cvar
.DialogNameStr
374 StatusLineNameStr
= cvar
.StatusLineNameStr
375 ToolBarNameStr
= cvar
.ToolBarNameStr
377 #---------------------------------------------------------------------------
379 class Frame(TopLevelWindow
):
381 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
382 def __init__(self
, *args
, **kwargs
):
384 __init__(self, Window parent, int id=-1, String title=EmptyString,
385 Point pos=DefaultPosition, Size size=DefaultSize,
386 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
388 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
389 self
.this
= newobj
.this
392 self
._setOORInfo
(self
)
394 def Create(*args
, **kwargs
):
396 Create(self, Window parent, int id=-1, String title=EmptyString,
397 Point pos=DefaultPosition, Size size=DefaultSize,
398 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
400 return _windows_
.Frame_Create(*args
, **kwargs
)
402 def GetClientAreaOrigin(*args
, **kwargs
):
404 GetClientAreaOrigin(self) -> Point
406 Get the origin of the client area of the window relative to the
407 window's top left corner (the client area may be shifted because of
408 the borders, scrollbars, other decorations...)
410 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
412 def SendSizeEvent(*args
, **kwargs
):
413 """SendSizeEvent(self)"""
414 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
416 def SetMenuBar(*args
, **kwargs
):
417 """SetMenuBar(self, MenuBar menubar)"""
418 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
420 def GetMenuBar(*args
, **kwargs
):
421 """GetMenuBar(self) -> MenuBar"""
422 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
424 def ProcessCommand(*args
, **kwargs
):
425 """ProcessCommand(self, int winid) -> bool"""
426 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
428 Command
= ProcessCommand
429 def CreateStatusBar(*args
, **kwargs
):
431 CreateStatusBar(self, int number=1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
432 int winid=0, String name=StatusLineNameStr) -> StatusBar
434 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
436 def GetStatusBar(*args
, **kwargs
):
437 """GetStatusBar(self) -> StatusBar"""
438 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
440 def SetStatusBar(*args
, **kwargs
):
441 """SetStatusBar(self, StatusBar statBar)"""
442 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
444 def SetStatusText(*args
, **kwargs
):
445 """SetStatusText(self, String text, int number=0)"""
446 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
448 def SetStatusWidths(*args
, **kwargs
):
449 """SetStatusWidths(self, int widths, int widths_field)"""
450 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
452 def PushStatusText(*args
, **kwargs
):
453 """PushStatusText(self, String text, int number=0)"""
454 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
456 def PopStatusText(*args
, **kwargs
):
457 """PopStatusText(self, int number=0)"""
458 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
460 def SetStatusBarPane(*args
, **kwargs
):
461 """SetStatusBarPane(self, int n)"""
462 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
464 def GetStatusBarPane(*args
, **kwargs
):
465 """GetStatusBarPane(self) -> int"""
466 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
468 def CreateToolBar(*args
, **kwargs
):
469 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
470 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
472 def GetToolBar(*args
, **kwargs
):
473 """GetToolBar(self) -> wxToolBar"""
474 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
476 def SetToolBar(*args
, **kwargs
):
477 """SetToolBar(self, wxToolBar toolbar)"""
478 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
480 def DoGiveHelp(*args
, **kwargs
):
481 """DoGiveHelp(self, String text, bool show)"""
482 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
484 def DoMenuUpdates(*args
, **kwargs
):
485 """DoMenuUpdates(self, Menu menu=None)"""
486 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
488 def GetClassDefaultAttributes(*args
, **kwargs
):
490 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
492 Get the default attributes for this class. This is useful if you want
493 to use the same font or colour in your own control as in a standard
494 control -- which is a much better idea than hard coding specific
495 colours or fonts which might look completely out of place on the
496 user's system, especially if it uses themes.
498 The variant parameter is only relevant under Mac currently and is
499 ignore under other platforms. Under Mac, it will change the size of
500 the returned font. See `wx.Window.SetWindowVariant` for more about
503 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
505 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
507 class FramePtr(Frame
):
508 def __init__(self
, this
):
510 if not hasattr(self
,"thisown"): self
.thisown
= 0
511 self
.__class
__ = Frame
512 _windows_
.Frame_swigregister(FramePtr
)
514 def PreFrame(*args
, **kwargs
):
515 """PreFrame() -> Frame"""
516 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
520 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
522 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
524 Get the default attributes for this class. This is useful if you want
525 to use the same font or colour in your own control as in a standard
526 control -- which is a much better idea than hard coding specific
527 colours or fonts which might look completely out of place on the
528 user's system, especially if it uses themes.
530 The variant parameter is only relevant under Mac currently and is
531 ignore under other platforms. Under Mac, it will change the size of
532 the returned font. See `wx.Window.SetWindowVariant` for more about
535 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
537 #---------------------------------------------------------------------------
539 class Dialog(TopLevelWindow
):
541 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
542 def __init__(self
, *args
, **kwargs
):
544 __init__(self, Window parent, int id=-1, String title=EmptyString,
545 Point pos=DefaultPosition, Size size=DefaultSize,
546 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
548 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
549 self
.this
= newobj
.this
552 self
._setOORInfo
(self
)
554 def Create(*args
, **kwargs
):
556 Create(self, Window parent, int id=-1, String title=EmptyString,
557 Point pos=DefaultPosition, Size size=DefaultSize,
558 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
560 return _windows_
.Dialog_Create(*args
, **kwargs
)
562 def SetReturnCode(*args
, **kwargs
):
563 """SetReturnCode(self, int returnCode)"""
564 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
566 def GetReturnCode(*args
, **kwargs
):
567 """GetReturnCode(self) -> int"""
568 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
570 def CreateTextSizer(*args
, **kwargs
):
571 """CreateTextSizer(self, String message) -> Sizer"""
572 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
574 def CreateButtonSizer(*args
, **kwargs
):
575 """CreateButtonSizer(self, long flags) -> Sizer"""
576 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
578 def IsModal(*args
, **kwargs
):
579 """IsModal(self) -> bool"""
580 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
582 def ShowModal(*args
, **kwargs
):
583 """ShowModal(self) -> int"""
584 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
586 def EndModal(*args
, **kwargs
):
587 """EndModal(self, int retCode)"""
588 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
590 def GetClassDefaultAttributes(*args
, **kwargs
):
592 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
594 Get the default attributes for this class. This is useful if you want
595 to use the same font or colour in your own control as in a standard
596 control -- which is a much better idea than hard coding specific
597 colours or fonts which might look completely out of place on the
598 user's system, especially if it uses themes.
600 The variant parameter is only relevant under Mac currently and is
601 ignore under other platforms. Under Mac, it will change the size of
602 the returned font. See `wx.Window.SetWindowVariant` for more about
605 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
607 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
608 def SendSizeEvent(self
):
609 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
612 class DialogPtr(Dialog
):
613 def __init__(self
, this
):
615 if not hasattr(self
,"thisown"): self
.thisown
= 0
616 self
.__class
__ = Dialog
617 _windows_
.Dialog_swigregister(DialogPtr
)
619 def PreDialog(*args
, **kwargs
):
620 """PreDialog() -> Dialog"""
621 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
625 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
627 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
629 Get the default attributes for this class. This is useful if you want
630 to use the same font or colour in your own control as in a standard
631 control -- which is a much better idea than hard coding specific
632 colours or fonts which might look completely out of place on the
633 user's system, especially if it uses themes.
635 The variant parameter is only relevant under Mac currently and is
636 ignore under other platforms. Under Mac, it will change the size of
637 the returned font. See `wx.Window.SetWindowVariant` for more about
640 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
642 #---------------------------------------------------------------------------
644 class MiniFrame(Frame
):
646 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
647 def __init__(self
, *args
, **kwargs
):
649 __init__(self, Window parent, int id=-1, String title=EmptyString,
650 Point pos=DefaultPosition, Size size=DefaultSize,
651 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
653 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
654 self
.this
= newobj
.this
657 self
._setOORInfo
(self
)
659 def Create(*args
, **kwargs
):
661 Create(self, Window parent, int id=-1, String title=EmptyString,
662 Point pos=DefaultPosition, Size size=DefaultSize,
663 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
665 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
668 class MiniFramePtr(MiniFrame
):
669 def __init__(self
, this
):
671 if not hasattr(self
,"thisown"): self
.thisown
= 0
672 self
.__class
__ = MiniFrame
673 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
675 def PreMiniFrame(*args
, **kwargs
):
676 """PreMiniFrame() -> MiniFrame"""
677 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
681 #---------------------------------------------------------------------------
683 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
684 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
685 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
686 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
687 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
688 class SplashScreenWindow(_core
.Window
):
690 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
691 def __init__(self
, *args
, **kwargs
):
693 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
694 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
696 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
697 self
.this
= newobj
.this
700 self
._setOORInfo
(self
)
702 def SetBitmap(*args
, **kwargs
):
703 """SetBitmap(self, Bitmap bitmap)"""
704 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
706 def GetBitmap(*args
, **kwargs
):
707 """GetBitmap(self) -> Bitmap"""
708 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
711 class SplashScreenWindowPtr(SplashScreenWindow
):
712 def __init__(self
, this
):
714 if not hasattr(self
,"thisown"): self
.thisown
= 0
715 self
.__class
__ = SplashScreenWindow
716 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
718 class SplashScreen(Frame
):
720 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
721 def __init__(self
, *args
, **kwargs
):
723 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
724 Window parent, int id=-1, Point pos=DefaultPosition,
725 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
727 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
728 self
.this
= newobj
.this
731 self
._setOORInfo
(self
)
733 def GetSplashStyle(*args
, **kwargs
):
734 """GetSplashStyle(self) -> long"""
735 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
737 def GetSplashWindow(*args
, **kwargs
):
738 """GetSplashWindow(self) -> SplashScreenWindow"""
739 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
741 def GetTimeout(*args
, **kwargs
):
742 """GetTimeout(self) -> int"""
743 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
746 class SplashScreenPtr(SplashScreen
):
747 def __init__(self
, this
):
749 if not hasattr(self
,"thisown"): self
.thisown
= 0
750 self
.__class
__ = SplashScreen
751 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
753 #---------------------------------------------------------------------------
755 SB_NORMAL
= _windows_
.SB_NORMAL
756 SB_FLAT
= _windows_
.SB_FLAT
757 SB_RAISED
= _windows_
.SB_RAISED
758 class StatusBar(_core
.Window
):
760 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
761 def __init__(self
, *args
, **kwargs
):
763 __init__(self, Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
764 String name=StatusLineNameStr) -> StatusBar
766 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
767 self
.this
= newobj
.this
770 self
._setOORInfo
(self
)
772 def Create(*args
, **kwargs
):
773 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
774 return _windows_
.StatusBar_Create(*args
, **kwargs
)
776 def SetFieldsCount(*args
, **kwargs
):
777 """SetFieldsCount(self, int number=1)"""
778 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
780 def GetFieldsCount(*args
, **kwargs
):
781 """GetFieldsCount(self) -> int"""
782 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
784 def SetStatusText(*args
, **kwargs
):
785 """SetStatusText(self, String text, int number=0)"""
786 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
788 def GetStatusText(*args
, **kwargs
):
789 """GetStatusText(self, int number=0) -> String"""
790 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
792 def PushStatusText(*args
, **kwargs
):
793 """PushStatusText(self, String text, int number=0)"""
794 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
796 def PopStatusText(*args
, **kwargs
):
797 """PopStatusText(self, int number=0)"""
798 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
800 def SetStatusWidths(*args
, **kwargs
):
801 """SetStatusWidths(self, int widths, int widths_field)"""
802 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
804 def SetStatusStyles(*args
, **kwargs
):
805 """SetStatusStyles(self, int styles, int styles_field)"""
806 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
808 def GetFieldRect(*args
, **kwargs
):
809 """GetFieldRect(self, int i) -> Rect"""
810 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
812 def SetMinHeight(*args
, **kwargs
):
813 """SetMinHeight(self, int height)"""
814 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
816 def GetBorderX(*args
, **kwargs
):
817 """GetBorderX(self) -> int"""
818 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
820 def GetBorderY(*args
, **kwargs
):
821 """GetBorderY(self) -> int"""
822 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
824 def GetClassDefaultAttributes(*args
, **kwargs
):
826 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
828 Get the default attributes for this class. This is useful if you want
829 to use the same font or colour in your own control as in a standard
830 control -- which is a much better idea than hard coding specific
831 colours or fonts which might look completely out of place on the
832 user's system, especially if it uses themes.
834 The variant parameter is only relevant under Mac currently and is
835 ignore under other platforms. Under Mac, it will change the size of
836 the returned font. See `wx.Window.SetWindowVariant` for more about
839 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
841 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
843 class StatusBarPtr(StatusBar
):
844 def __init__(self
, this
):
846 if not hasattr(self
,"thisown"): self
.thisown
= 0
847 self
.__class
__ = StatusBar
848 _windows_
.StatusBar_swigregister(StatusBarPtr
)
850 def PreStatusBar(*args
, **kwargs
):
851 """PreStatusBar() -> StatusBar"""
852 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
856 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
858 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
860 Get the default attributes for this class. This is useful if you want
861 to use the same font or colour in your own control as in a standard
862 control -- which is a much better idea than hard coding specific
863 colours or fonts which might look completely out of place on the
864 user's system, especially if it uses themes.
866 The variant parameter is only relevant under Mac currently and is
867 ignore under other platforms. Under Mac, it will change the size of
868 the returned font. See `wx.Window.SetWindowVariant` for more about
871 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
873 #---------------------------------------------------------------------------
875 SP_NOBORDER
= _windows_
.SP_NOBORDER
876 SP_NOSASH
= _windows_
.SP_NOSASH
877 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
878 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
879 SP_3DSASH
= _windows_
.SP_3DSASH
880 SP_3DBORDER
= _windows_
.SP_3DBORDER
881 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
882 SP_BORDER
= _windows_
.SP_BORDER
883 SP_3D
= _windows_
.SP_3D
884 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
885 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
886 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
887 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
888 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
889 class SplitterWindow(_core
.Window
):
891 wx.SplitterWindow manages up to two subwindows or panes, with an
892 optional vertical or horizontal split which can be used with the mouse
896 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
897 def __init__(self
, *args
, **kwargs
):
899 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
900 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
902 Constructor. Creates and shows a SplitterWindow.
904 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
905 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
906 self
.this
= newobj
.this
909 self
._setOORInfo
(self
)
911 def Create(*args
, **kwargs
):
913 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
914 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
916 Create the GUI part of the SplitterWindow for the 2-phase create.
918 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
920 def GetWindow1(*args
, **kwargs
):
922 GetWindow1(self) -> Window
924 Gets the only or left/top pane.
926 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
928 def GetWindow2(*args
, **kwargs
):
930 GetWindow2(self) -> Window
932 Gets the right/bottom pane.
934 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
936 def SetSplitMode(*args
, **kwargs
):
938 SetSplitMode(self, int mode)
940 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
941 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
944 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
946 def GetSplitMode(*args
, **kwargs
):
948 GetSplitMode(self) -> int
952 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
954 def Initialize(*args
, **kwargs
):
956 Initialize(self, Window window)
958 Initializes the splitter window to have one pane. This should be
959 called if you wish to initially view only a single pane in the
962 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
964 def SplitVertically(*args
, **kwargs
):
966 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
968 Initializes the left and right panes of the splitter window.
970 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
972 def SplitHorizontally(*args
, **kwargs
):
974 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
976 Initializes the top and bottom panes of the splitter window.
978 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
980 def Unsplit(*args
, **kwargs
):
982 Unsplit(self, Window toRemove=None) -> bool
984 Unsplits the window. Pass the pane to remove, or None to remove the
985 right or bottom pane. Returns True if successful, False otherwise (the
986 window was not split).
988 This function will not actually delete the pane being
989 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
990 for the desired behaviour. By default, the pane being
991 removed is only hidden.
993 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
995 def ReplaceWindow(*args
, **kwargs
):
997 ReplaceWindow(self, Window winOld, Window winNew) -> bool
999 This function replaces one of the windows managed by the
1000 SplitterWindow with another one. It is in general better to use it
1001 instead of calling Unsplit() and then resplitting the window back
1002 because it will provoke much less flicker. It is valid to call this
1003 function whether the splitter has two windows or only one.
1005 Both parameters should be non-None and winOld must specify one of the
1006 windows managed by the splitter. If the parameters are incorrect or
1007 the window couldn't be replaced, False is returned. Otherwise the
1008 function will return True, but please notice that it will not Destroy
1009 the replaced window and you may wish to do it yourself.
1011 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1013 def UpdateSize(*args
, **kwargs
):
1017 Causes any pending sizing of the sash and child panes to take place
1020 Such resizing normally takes place in idle time, in order to wait for
1021 layout to be completed. However, this can cause unacceptable flicker
1022 as the panes are resized after the window has been shown. To work
1023 around this, you can perform window layout (for example by sending a
1024 size event to the parent window), and then call this function, before
1025 showing the top-level window.
1027 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1029 def IsSplit(*args
, **kwargs
):
1031 IsSplit(self) -> bool
1033 Is the window split?
1035 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1037 def SetSashSize(*args
, **kwargs
):
1039 SetSashSize(self, int width)
1043 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1045 def SetBorderSize(*args
, **kwargs
):
1047 SetBorderSize(self, int width)
1049 Sets the border size
1051 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1053 def GetSashSize(*args
, **kwargs
):
1055 GetSashSize(self) -> int
1059 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1061 def GetBorderSize(*args
, **kwargs
):
1063 GetBorderSize(self) -> int
1065 Gets the border size
1067 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1069 def SetSashPosition(*args
, **kwargs
):
1071 SetSashPosition(self, int position, bool redraw=True)
1073 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1074 are resized and the sash and border are redrawn.
1076 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1078 def GetSashPosition(*args
, **kwargs
):
1080 GetSashPosition(self) -> int
1082 Returns the surrent sash position.
1084 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1086 def SetMinimumPaneSize(*args
, **kwargs
):
1088 SetMinimumPaneSize(self, int min)
1090 Sets the minimum pane size in pixels.
1092 The default minimum pane size is zero, which means that either pane
1093 can be reduced to zero by dragging the sash, thus removing one of the
1094 panes. To prevent this behaviour (and veto out-of-range sash
1095 dragging), set a minimum size, for example 20 pixels. If the
1096 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1097 the window may be unsplit even if minimum size is non-zero.
1099 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1101 def GetMinimumPaneSize(*args
, **kwargs
):
1103 GetMinimumPaneSize(self) -> int
1105 Gets the minimum pane size in pixels.
1107 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1109 def SashHitTest(*args
, **kwargs
):
1111 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1113 Tests for x, y over the sash
1115 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1117 def SizeWindows(*args
, **kwargs
):
1123 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1125 def SetNeedUpdating(*args
, **kwargs
):
1126 """SetNeedUpdating(self, bool needUpdating)"""
1127 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1129 def GetNeedUpdating(*args
, **kwargs
):
1130 """GetNeedUpdating(self) -> bool"""
1131 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1133 def GetClassDefaultAttributes(*args
, **kwargs
):
1135 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1137 Get the default attributes for this class. This is useful if you want
1138 to use the same font or colour in your own control as in a standard
1139 control -- which is a much better idea than hard coding specific
1140 colours or fonts which might look completely out of place on the
1141 user's system, especially if it uses themes.
1143 The variant parameter is only relevant under Mac currently and is
1144 ignore under other platforms. Under Mac, it will change the size of
1145 the returned font. See `wx.Window.SetWindowVariant` for more about
1148 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1150 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1152 class SplitterWindowPtr(SplitterWindow
):
1153 def __init__(self
, this
):
1155 if not hasattr(self
,"thisown"): self
.thisown
= 0
1156 self
.__class
__ = SplitterWindow
1157 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1158 SplitterNameStr
= cvar
.SplitterNameStr
1160 def PreSplitterWindow(*args
, **kwargs
):
1162 PreSplitterWindow() -> SplitterWindow
1164 Precreate a SplitterWindow for 2-phase creation.
1166 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1170 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1172 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1174 Get the default attributes for this class. This is useful if you want
1175 to use the same font or colour in your own control as in a standard
1176 control -- which is a much better idea than hard coding specific
1177 colours or fonts which might look completely out of place on the
1178 user's system, especially if it uses themes.
1180 The variant parameter is only relevant under Mac currently and is
1181 ignore under other platforms. Under Mac, it will change the size of
1182 the returned font. See `wx.Window.SetWindowVariant` for more about
1185 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1187 class SplitterEvent(_core
.NotifyEvent
):
1188 """This class represents the events generated by a splitter control."""
1190 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1191 def __init__(self
, *args
, **kwargs
):
1193 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1195 This class represents the events generated by a splitter control.
1197 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1198 self
.this
= newobj
.this
1201 def SetSashPosition(*args
, **kwargs
):
1203 SetSashPosition(self, int pos)
1205 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1206 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1207 events, sets the the new sash position. In the case of _CHANGING
1208 events, sets the new tracking bar position so visual feedback during
1209 dragging will represent that change that will actually take place. Set
1210 to -1 from the event handler code to prevent repositioning.
1212 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1214 def GetSashPosition(*args
, **kwargs
):
1216 GetSashPosition(self) -> int
1218 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1219 and EVT_SPLITTER_SASH_POS_CHANGED events.
1221 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1223 def GetWindowBeingRemoved(*args
, **kwargs
):
1225 GetWindowBeingRemoved(self) -> Window
1227 Returns a pointer to the window being removed when a splitter window
1230 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1232 def GetX(*args
, **kwargs
):
1236 Returns the x coordinate of the double-click point in a
1237 EVT_SPLITTER_DCLICK event.
1239 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1241 def GetY(*args
, **kwargs
):
1245 Returns the y coordinate of the double-click point in a
1246 EVT_SPLITTER_DCLICK event.
1248 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1251 class SplitterEventPtr(SplitterEvent
):
1252 def __init__(self
, this
):
1254 if not hasattr(self
,"thisown"): self
.thisown
= 0
1255 self
.__class
__ = SplitterEvent
1256 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1258 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1259 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1260 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1261 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1262 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1263 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1264 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1265 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1266 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1268 #---------------------------------------------------------------------------
1270 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1271 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1272 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1273 SW_NOBORDER
= _windows_
.SW_NOBORDER
1274 SW_BORDER
= _windows_
.SW_BORDER
1275 SW_3DSASH
= _windows_
.SW_3DSASH
1276 SW_3DBORDER
= _windows_
.SW_3DBORDER
1277 SW_3D
= _windows_
.SW_3D
1278 SASH_TOP
= _windows_
.SASH_TOP
1279 SASH_RIGHT
= _windows_
.SASH_RIGHT
1280 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1281 SASH_LEFT
= _windows_
.SASH_LEFT
1282 SASH_NONE
= _windows_
.SASH_NONE
1283 class SashWindow(_core
.Window
):
1285 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1286 def __init__(self
, *args
, **kwargs
):
1288 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1289 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1290 String name=SashNameStr) -> SashWindow
1292 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1293 self
.this
= newobj
.this
1296 self
._setOORInfo
(self
)
1298 def Create(*args
, **kwargs
):
1300 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1301 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1302 String name=SashNameStr) -> bool
1304 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1306 def SetSashVisible(*args
, **kwargs
):
1307 """SetSashVisible(self, int edge, bool sash)"""
1308 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1310 def GetSashVisible(*args
, **kwargs
):
1311 """GetSashVisible(self, int edge) -> bool"""
1312 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1314 def SetSashBorder(*args
, **kwargs
):
1315 """SetSashBorder(self, int edge, bool border)"""
1316 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1318 def HasBorder(*args
, **kwargs
):
1319 """HasBorder(self, int edge) -> bool"""
1320 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1322 def GetEdgeMargin(*args
, **kwargs
):
1323 """GetEdgeMargin(self, int edge) -> int"""
1324 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1326 def SetDefaultBorderSize(*args
, **kwargs
):
1327 """SetDefaultBorderSize(self, int width)"""
1328 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1330 def GetDefaultBorderSize(*args
, **kwargs
):
1331 """GetDefaultBorderSize(self) -> int"""
1332 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1334 def SetExtraBorderSize(*args
, **kwargs
):
1335 """SetExtraBorderSize(self, int width)"""
1336 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1338 def GetExtraBorderSize(*args
, **kwargs
):
1339 """GetExtraBorderSize(self) -> int"""
1340 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1342 def SetMinimumSizeX(*args
, **kwargs
):
1343 """SetMinimumSizeX(self, int min)"""
1344 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1346 def SetMinimumSizeY(*args
, **kwargs
):
1347 """SetMinimumSizeY(self, int min)"""
1348 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1350 def GetMinimumSizeX(*args
, **kwargs
):
1351 """GetMinimumSizeX(self) -> int"""
1352 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1354 def GetMinimumSizeY(*args
, **kwargs
):
1355 """GetMinimumSizeY(self) -> int"""
1356 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1358 def SetMaximumSizeX(*args
, **kwargs
):
1359 """SetMaximumSizeX(self, int max)"""
1360 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1362 def SetMaximumSizeY(*args
, **kwargs
):
1363 """SetMaximumSizeY(self, int max)"""
1364 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1366 def GetMaximumSizeX(*args
, **kwargs
):
1367 """GetMaximumSizeX(self) -> int"""
1368 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1370 def GetMaximumSizeY(*args
, **kwargs
):
1371 """GetMaximumSizeY(self) -> int"""
1372 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1374 def SashHitTest(*args
, **kwargs
):
1375 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1376 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1378 def SizeWindows(*args
, **kwargs
):
1379 """SizeWindows(self)"""
1380 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1383 class SashWindowPtr(SashWindow
):
1384 def __init__(self
, this
):
1386 if not hasattr(self
,"thisown"): self
.thisown
= 0
1387 self
.__class
__ = SashWindow
1388 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1389 SashNameStr
= cvar
.SashNameStr
1390 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1392 def PreSashWindow(*args
, **kwargs
):
1393 """PreSashWindow() -> SashWindow"""
1394 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1398 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1399 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1400 class SashEvent(_core
.CommandEvent
):
1402 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1403 def __init__(self
, *args
, **kwargs
):
1404 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1405 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1406 self
.this
= newobj
.this
1409 def SetEdge(*args
, **kwargs
):
1410 """SetEdge(self, int edge)"""
1411 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1413 def GetEdge(*args
, **kwargs
):
1414 """GetEdge(self) -> int"""
1415 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1417 def SetDragRect(*args
, **kwargs
):
1418 """SetDragRect(self, Rect rect)"""
1419 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1421 def GetDragRect(*args
, **kwargs
):
1422 """GetDragRect(self) -> Rect"""
1423 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1425 def SetDragStatus(*args
, **kwargs
):
1426 """SetDragStatus(self, int status)"""
1427 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1429 def GetDragStatus(*args
, **kwargs
):
1430 """GetDragStatus(self) -> int"""
1431 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1434 class SashEventPtr(SashEvent
):
1435 def __init__(self
, this
):
1437 if not hasattr(self
,"thisown"): self
.thisown
= 0
1438 self
.__class
__ = SashEvent
1439 _windows_
.SashEvent_swigregister(SashEventPtr
)
1441 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1442 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1443 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1445 #---------------------------------------------------------------------------
1447 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1448 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1449 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1450 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1451 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1452 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1453 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1454 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1455 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1456 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1457 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1458 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1459 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1460 class QueryLayoutInfoEvent(_core
.Event
):
1462 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1463 def __init__(self
, *args
, **kwargs
):
1464 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1465 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1466 self
.this
= newobj
.this
1469 def SetRequestedLength(*args
, **kwargs
):
1470 """SetRequestedLength(self, int length)"""
1471 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1473 def GetRequestedLength(*args
, **kwargs
):
1474 """GetRequestedLength(self) -> int"""
1475 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1477 def SetFlags(*args
, **kwargs
):
1478 """SetFlags(self, int flags)"""
1479 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1481 def GetFlags(*args
, **kwargs
):
1482 """GetFlags(self) -> int"""
1483 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1485 def SetSize(*args
, **kwargs
):
1486 """SetSize(self, Size size)"""
1487 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1489 def GetSize(*args
, **kwargs
):
1490 """GetSize(self) -> Size"""
1491 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1493 def SetOrientation(*args
, **kwargs
):
1494 """SetOrientation(self, int orient)"""
1495 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1497 def GetOrientation(*args
, **kwargs
):
1498 """GetOrientation(self) -> int"""
1499 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1501 def SetAlignment(*args
, **kwargs
):
1502 """SetAlignment(self, int align)"""
1503 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1505 def GetAlignment(*args
, **kwargs
):
1506 """GetAlignment(self) -> int"""
1507 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1510 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1511 def __init__(self
, this
):
1513 if not hasattr(self
,"thisown"): self
.thisown
= 0
1514 self
.__class
__ = QueryLayoutInfoEvent
1515 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1517 class CalculateLayoutEvent(_core
.Event
):
1519 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1520 def __init__(self
, *args
, **kwargs
):
1521 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1522 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1523 self
.this
= newobj
.this
1526 def SetFlags(*args
, **kwargs
):
1527 """SetFlags(self, int flags)"""
1528 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1530 def GetFlags(*args
, **kwargs
):
1531 """GetFlags(self) -> int"""
1532 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1534 def SetRect(*args
, **kwargs
):
1535 """SetRect(self, Rect rect)"""
1536 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1538 def GetRect(*args
, **kwargs
):
1539 """GetRect(self) -> Rect"""
1540 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1543 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1544 def __init__(self
, this
):
1546 if not hasattr(self
,"thisown"): self
.thisown
= 0
1547 self
.__class
__ = CalculateLayoutEvent
1548 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1550 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1551 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1553 class SashLayoutWindow(SashWindow
):
1555 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1556 def __init__(self
, *args
, **kwargs
):
1558 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1559 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1560 String name=SashLayoutNameStr) -> SashLayoutWindow
1562 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1563 self
.this
= newobj
.this
1566 self
._setOORInfo
(self
)
1568 def Create(*args
, **kwargs
):
1570 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1571 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1572 String name=SashLayoutNameStr) -> bool
1574 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1576 def GetAlignment(*args
, **kwargs
):
1577 """GetAlignment(self) -> int"""
1578 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1580 def GetOrientation(*args
, **kwargs
):
1581 """GetOrientation(self) -> int"""
1582 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1584 def SetAlignment(*args
, **kwargs
):
1585 """SetAlignment(self, int alignment)"""
1586 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1588 def SetDefaultSize(*args
, **kwargs
):
1589 """SetDefaultSize(self, Size size)"""
1590 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1592 def SetOrientation(*args
, **kwargs
):
1593 """SetOrientation(self, int orientation)"""
1594 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1597 class SashLayoutWindowPtr(SashLayoutWindow
):
1598 def __init__(self
, this
):
1600 if not hasattr(self
,"thisown"): self
.thisown
= 0
1601 self
.__class
__ = SashLayoutWindow
1602 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1604 def PreSashLayoutWindow(*args
, **kwargs
):
1605 """PreSashLayoutWindow() -> SashLayoutWindow"""
1606 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1610 class LayoutAlgorithm(_core
.Object
):
1612 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1613 def __init__(self
, *args
, **kwargs
):
1614 """__init__(self) -> LayoutAlgorithm"""
1615 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1616 self
.this
= newobj
.this
1619 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1622 if self
.thisown
: destroy(self
)
1625 def LayoutMDIFrame(*args
, **kwargs
):
1626 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1627 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1629 def LayoutFrame(*args
, **kwargs
):
1630 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1631 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1633 def LayoutWindow(*args
, **kwargs
):
1634 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1635 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1638 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1639 def __init__(self
, this
):
1641 if not hasattr(self
,"thisown"): self
.thisown
= 0
1642 self
.__class
__ = LayoutAlgorithm
1643 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1645 #---------------------------------------------------------------------------
1647 class PopupWindow(_core
.Window
):
1649 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1650 def __init__(self
, *args
, **kwargs
):
1651 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1652 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1653 self
.this
= newobj
.this
1656 self
._setOORInfo
(self
)
1658 def Create(*args
, **kwargs
):
1659 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1660 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1662 def Position(*args
, **kwargs
):
1663 """Position(self, Point ptOrigin, Size size)"""
1664 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1667 class PopupWindowPtr(PopupWindow
):
1668 def __init__(self
, this
):
1670 if not hasattr(self
,"thisown"): self
.thisown
= 0
1671 self
.__class
__ = PopupWindow
1672 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1674 def PrePopupWindow(*args
, **kwargs
):
1675 """PrePopupWindow() -> PopupWindow"""
1676 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1680 #---------------------------------------------------------------------------
1682 class PopupTransientWindow(PopupWindow
):
1684 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1685 def __init__(self
, *args
, **kwargs
):
1686 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1687 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1688 self
.this
= newobj
.this
1691 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1693 def _setCallbackInfo(*args
, **kwargs
):
1694 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1695 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1697 def Popup(*args
, **kwargs
):
1698 """Popup(self, Window focus=None)"""
1699 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1701 def Dismiss(*args
, **kwargs
):
1703 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1706 class PopupTransientWindowPtr(PopupTransientWindow
):
1707 def __init__(self
, this
):
1709 if not hasattr(self
,"thisown"): self
.thisown
= 0
1710 self
.__class
__ = PopupTransientWindow
1711 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1713 def PrePopupTransientWindow(*args
, **kwargs
):
1714 """PrePopupTransientWindow() -> PopupTransientWindow"""
1715 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1719 #---------------------------------------------------------------------------
1721 class TipWindow(PopupTransientWindow
):
1723 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1724 def __init__(self
, *args
, **kwargs
):
1725 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1726 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1727 self
.this
= newobj
.this
1730 self
._setOORInfo
(self
)
1732 def SetBoundingRect(*args
, **kwargs
):
1733 """SetBoundingRect(self, Rect rectBound)"""
1734 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1736 def Close(*args
, **kwargs
):
1738 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1741 class TipWindowPtr(TipWindow
):
1742 def __init__(self
, this
):
1744 if not hasattr(self
,"thisown"): self
.thisown
= 0
1745 self
.__class
__ = TipWindow
1746 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1748 #---------------------------------------------------------------------------
1750 class VScrolledWindow(Panel
):
1752 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1753 def __init__(self
, *args
, **kwargs
):
1755 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1756 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1758 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1759 self
.this
= newobj
.this
1762 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1764 def _setCallbackInfo(*args
, **kwargs
):
1765 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1766 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1768 def Create(*args
, **kwargs
):
1770 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1771 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1773 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1775 def SetLineCount(*args
, **kwargs
):
1776 """SetLineCount(self, size_t count)"""
1777 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1779 def ScrollToLine(*args
, **kwargs
):
1780 """ScrollToLine(self, size_t line) -> bool"""
1781 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1783 def ScrollLines(*args
, **kwargs
):
1785 ScrollLines(self, int lines) -> bool
1787 If the platform and window class supports it, scrolls the window by
1788 the given number of lines down, if lines is positive, or up if lines
1789 is negative. Returns True if the window was scrolled, False if it was
1790 already on top/bottom and nothing was done.
1792 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1794 def ScrollPages(*args
, **kwargs
):
1796 ScrollPages(self, int pages) -> bool
1798 If the platform and window class supports it, scrolls the window by
1799 the given number of pages down, if pages is positive, or up if pages
1800 is negative. Returns True if the window was scrolled, False if it was
1801 already on top/bottom and nothing was done.
1803 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1805 def RefreshLine(*args
, **kwargs
):
1806 """RefreshLine(self, size_t line)"""
1807 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1809 def RefreshLines(*args
, **kwargs
):
1810 """RefreshLines(self, size_t from, size_t to)"""
1811 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1813 def HitTestXY(*args
, **kwargs
):
1815 HitTestXY(self, int x, int y) -> int
1817 Test where the given (in client coords) point lies
1819 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1821 def HitTest(*args
, **kwargs
):
1823 HitTest(self, Point pt) -> int
1825 Test where the given (in client coords) point lies
1827 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1829 def RefreshAll(*args
, **kwargs
):
1830 """RefreshAll(self)"""
1831 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1833 def GetLineCount(*args
, **kwargs
):
1834 """GetLineCount(self) -> size_t"""
1835 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1837 def GetFirstVisibleLine(*args
, **kwargs
):
1838 """GetFirstVisibleLine(self) -> size_t"""
1839 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1841 def GetLastVisibleLine(*args
, **kwargs
):
1842 """GetLastVisibleLine(self) -> size_t"""
1843 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1845 def IsVisible(*args
, **kwargs
):
1846 """IsVisible(self, size_t line) -> bool"""
1847 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1850 class VScrolledWindowPtr(VScrolledWindow
):
1851 def __init__(self
, this
):
1853 if not hasattr(self
,"thisown"): self
.thisown
= 0
1854 self
.__class
__ = VScrolledWindow
1855 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1857 def PreVScrolledWindow(*args
, **kwargs
):
1858 """PreVScrolledWindow() -> VScrolledWindow"""
1859 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1863 class VListBox(VScrolledWindow
):
1865 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1866 def __init__(self
, *args
, **kwargs
):
1868 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1869 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1871 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1872 self
.this
= newobj
.this
1875 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1877 def _setCallbackInfo(*args
, **kwargs
):
1878 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1879 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1881 def Create(*args
, **kwargs
):
1883 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1884 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1886 return _windows_
.VListBox_Create(*args
, **kwargs
)
1888 def GetItemCount(*args
, **kwargs
):
1889 """GetItemCount(self) -> size_t"""
1890 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1892 def HasMultipleSelection(*args
, **kwargs
):
1893 """HasMultipleSelection(self) -> bool"""
1894 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1896 def GetSelection(*args
, **kwargs
):
1897 """GetSelection(self) -> int"""
1898 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1900 def IsCurrent(*args
, **kwargs
):
1901 """IsCurrent(self, size_t item) -> bool"""
1902 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1904 def IsSelected(*args
, **kwargs
):
1905 """IsSelected(self, size_t item) -> bool"""
1906 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1908 def GetSelectedCount(*args
, **kwargs
):
1909 """GetSelectedCount(self) -> size_t"""
1910 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1912 def GetFirstSelected(*args
, **kwargs
):
1913 """GetFirstSelected(self) -> PyObject"""
1914 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1916 def GetNextSelected(*args
, **kwargs
):
1917 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1918 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1920 def GetMargins(*args
, **kwargs
):
1921 """GetMargins(self) -> Point"""
1922 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1924 def GetSelectionBackground(*args
, **kwargs
):
1925 """GetSelectionBackground(self) -> Colour"""
1926 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1928 def SetItemCount(*args
, **kwargs
):
1929 """SetItemCount(self, size_t count)"""
1930 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1932 def Clear(*args
, **kwargs
):
1934 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1936 def SetSelection(*args
, **kwargs
):
1937 """SetSelection(self, int selection)"""
1938 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1940 def Select(*args
, **kwargs
):
1941 """Select(self, size_t item, bool select=True) -> bool"""
1942 return _windows_
.VListBox_Select(*args
, **kwargs
)
1944 def SelectRange(*args
, **kwargs
):
1945 """SelectRange(self, size_t from, size_t to) -> bool"""
1946 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1948 def Toggle(*args
, **kwargs
):
1949 """Toggle(self, size_t item)"""
1950 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1952 def SelectAll(*args
, **kwargs
):
1953 """SelectAll(self) -> bool"""
1954 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1956 def DeselectAll(*args
, **kwargs
):
1957 """DeselectAll(self) -> bool"""
1958 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1960 def SetMargins(*args
, **kwargs
):
1961 """SetMargins(self, Point pt)"""
1962 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1964 def SetMarginsXY(*args
, **kwargs
):
1965 """SetMarginsXY(self, int x, int y)"""
1966 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1968 def SetSelectionBackground(*args
, **kwargs
):
1969 """SetSelectionBackground(self, Colour col)"""
1970 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1973 class VListBoxPtr(VListBox
):
1974 def __init__(self
, this
):
1976 if not hasattr(self
,"thisown"): self
.thisown
= 0
1977 self
.__class
__ = VListBox
1978 _windows_
.VListBox_swigregister(VListBoxPtr
)
1979 VListBoxNameStr
= cvar
.VListBoxNameStr
1981 def PreVListBox(*args
, **kwargs
):
1982 """PreVListBox() -> VListBox"""
1983 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1987 class HtmlListBox(VListBox
):
1989 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1990 def __init__(self
, *args
, **kwargs
):
1992 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1993 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1995 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
1996 self
.this
= newobj
.this
1999 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2001 def _setCallbackInfo(*args
, **kwargs
):
2002 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2003 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2005 def Create(*args
, **kwargs
):
2007 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2008 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2010 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2012 def RefreshAll(*args
, **kwargs
):
2013 """RefreshAll(self)"""
2014 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2016 def SetItemCount(*args
, **kwargs
):
2017 """SetItemCount(self, size_t count)"""
2018 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2020 def GetFileSystem(*args
, **kwargs
):
2021 """GetFileSystem(self) -> FileSystem"""
2022 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2025 class HtmlListBoxPtr(HtmlListBox
):
2026 def __init__(self
, this
):
2028 if not hasattr(self
,"thisown"): self
.thisown
= 0
2029 self
.__class
__ = HtmlListBox
2030 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2032 def PreHtmlListBox(*args
, **kwargs
):
2033 """PreHtmlListBox() -> HtmlListBox"""
2034 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2038 #---------------------------------------------------------------------------
2040 class TaskBarIcon(_core
.EvtHandler
):
2042 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2043 def __init__(self
, *args
, **kwargs
):
2044 """__init__(self) -> TaskBarIcon"""
2045 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2046 self
.this
= newobj
.this
2049 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2052 if self
.thisown
: destroy(self
)
2055 def Destroy(*args
, **kwargs
):
2059 Deletes the C++ object this Python object is a proxy for.
2061 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2063 def IsOk(*args
, **kwargs
):
2064 """IsOk(self) -> bool"""
2065 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2067 def __nonzero__(self
): return self
.IsOk()
2068 def IsIconInstalled(*args
, **kwargs
):
2069 """IsIconInstalled(self) -> bool"""
2070 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2072 def SetIcon(*args
, **kwargs
):
2073 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2074 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2076 def RemoveIcon(*args
, **kwargs
):
2077 """RemoveIcon(self) -> bool"""
2078 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2080 def PopupMenu(*args
, **kwargs
):
2081 """PopupMenu(self, Menu menu) -> bool"""
2082 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2085 class TaskBarIconPtr(TaskBarIcon
):
2086 def __init__(self
, this
):
2088 if not hasattr(self
,"thisown"): self
.thisown
= 0
2089 self
.__class
__ = TaskBarIcon
2090 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2092 class TaskBarIconEvent(_core
.Event
):
2094 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2095 def __init__(self
, *args
, **kwargs
):
2096 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2097 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2098 self
.this
= newobj
.this
2102 class TaskBarIconEventPtr(TaskBarIconEvent
):
2103 def __init__(self
, this
):
2105 if not hasattr(self
,"thisown"): self
.thisown
= 0
2106 self
.__class
__ = TaskBarIconEvent
2107 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2109 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2110 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2111 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2112 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2113 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2114 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2115 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2116 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2117 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2118 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2119 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2120 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2121 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2122 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2124 #---------------------------------------------------------------------------
2126 class ColourData(_core
.Object
):
2128 This class holds a variety of information related to the colour
2129 chooser dialog, used to transfer settings and results to and from the
2133 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2134 def __init__(self
, *args
, **kwargs
):
2136 __init__(self) -> ColourData
2138 Constructor, sets default values.
2140 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2141 self
.this
= newobj
.this
2144 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2147 if self
.thisown
: destroy(self
)
2150 def GetChooseFull(*args
, **kwargs
):
2152 GetChooseFull(self) -> bool
2154 Under Windows, determines whether the Windows colour dialog will
2155 display the full dialog with custom colour selection controls. Has no
2156 meaning under other platforms. The default value is true.
2158 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2160 def GetColour(*args
, **kwargs
):
2162 GetColour(self) -> Colour
2164 Gets the colour (pre)selected by the dialog.
2166 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2168 def GetCustomColour(*args
, **kwargs
):
2170 GetCustomColour(self, int i) -> Colour
2172 Gets the i'th custom colour associated with the colour dialog. i
2173 should be an integer between 0 and 15. The default custom colours are
2174 all invalid colours.
2176 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2178 def SetChooseFull(*args
, **kwargs
):
2180 SetChooseFull(self, int flag)
2182 Under Windows, tells the Windows colour dialog to display the full
2183 dialog with custom colour selection controls. Under other platforms,
2184 has no effect. The default value is true.
2186 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2188 def SetColour(*args
, **kwargs
):
2190 SetColour(self, Colour colour)
2192 Sets the default colour for the colour dialog. The default colour is
2195 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2197 def SetCustomColour(*args
, **kwargs
):
2199 SetCustomColour(self, int i, Colour colour)
2201 Sets the i'th custom colour for the colour dialog. i should be an
2202 integer between 0 and 15. The default custom colours are all invalid colours.
2204 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2207 class ColourDataPtr(ColourData
):
2208 def __init__(self
, this
):
2210 if not hasattr(self
,"thisown"): self
.thisown
= 0
2211 self
.__class
__ = ColourData
2212 _windows_
.ColourData_swigregister(ColourDataPtr
)
2213 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2214 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2215 DirDialogNameStr
= cvar
.DirDialogNameStr
2216 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2217 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2218 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2220 class ColourDialog(Dialog
):
2221 """This class represents the colour chooser dialog."""
2223 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2224 def __init__(self
, *args
, **kwargs
):
2226 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2228 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2229 which will be copied to the colour dialog's internal ColourData
2232 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2233 self
.this
= newobj
.this
2236 self
._setOORInfo
(self
)
2238 def GetColourData(*args
, **kwargs
):
2240 GetColourData(self) -> ColourData
2242 Returns a reference to the `wx.ColourData` used by the dialog.
2244 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2247 class ColourDialogPtr(ColourDialog
):
2248 def __init__(self
, this
):
2250 if not hasattr(self
,"thisown"): self
.thisown
= 0
2251 self
.__class
__ = ColourDialog
2252 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2254 class DirDialog(Dialog
):
2256 wx.DirDialog allows the user to select a directory by browising the
2260 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2261 def __init__(self
, *args
, **kwargs
):
2263 __init__(self, Window parent, String message=DirSelectorPromptStr,
2264 String defaultPath=EmptyString, long style=0,
2265 Point pos=DefaultPosition, Size size=DefaultSize,
2266 String name=DirDialogNameStr) -> DirDialog
2268 Constructor. Use ShowModal method to show the dialog.
2270 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2271 self
.this
= newobj
.this
2274 self
._setOORInfo
(self
)
2276 def GetPath(*args
, **kwargs
):
2278 GetPath(self) -> String
2280 Returns the default or user-selected path.
2282 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2284 def GetMessage(*args
, **kwargs
):
2286 GetMessage(self) -> String
2288 Returns the message that will be displayed on the dialog.
2290 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2292 def GetStyle(*args
, **kwargs
):
2294 GetStyle(self) -> long
2296 Returns the dialog style.
2298 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2300 def SetMessage(*args
, **kwargs
):
2302 SetMessage(self, String message)
2304 Sets the message that will be displayed on the dialog.
2306 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2308 def SetPath(*args
, **kwargs
):
2310 SetPath(self, String path)
2312 Sets the default path.
2314 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2317 class DirDialogPtr(DirDialog
):
2318 def __init__(self
, this
):
2320 if not hasattr(self
,"thisown"): self
.thisown
= 0
2321 self
.__class
__ = DirDialog
2322 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2324 class FileDialog(Dialog
):
2326 wx.FileDialog allows the user to select one or more files from the
2330 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2331 def __init__(self
, *args
, **kwargs
):
2333 __init__(self, Window parent, String message=FileSelectorPromptStr,
2334 String defaultDir=EmptyString, String defaultFile=EmptyString,
2335 String wildcard=FileSelectorDefaultWildcardStr,
2336 long style=0, Point pos=DefaultPosition) -> FileDialog
2338 Constructor. Use ShowModal method to show the dialog.
2340 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2341 self
.this
= newobj
.this
2344 self
._setOORInfo
(self
)
2346 def SetMessage(*args
, **kwargs
):
2348 SetMessage(self, String message)
2350 Sets the message that will be displayed on the dialog.
2352 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2354 def SetPath(*args
, **kwargs
):
2356 SetPath(self, String path)
2358 Sets the path (the combined directory and filename that will be
2359 returned when the dialog is dismissed).
2361 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2363 def SetDirectory(*args
, **kwargs
):
2365 SetDirectory(self, String dir)
2367 Sets the default directory.
2369 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2371 def SetFilename(*args
, **kwargs
):
2373 SetFilename(self, String name)
2375 Sets the default filename.
2377 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2379 def SetWildcard(*args
, **kwargs
):
2381 SetWildcard(self, String wildCard)
2383 Sets the wildcard, which can contain multiple file types, for
2386 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2389 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2391 def SetStyle(*args
, **kwargs
):
2393 SetStyle(self, long style)
2395 Sets the dialog style.
2397 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2399 def SetFilterIndex(*args
, **kwargs
):
2401 SetFilterIndex(self, int filterIndex)
2403 Sets the default filter index, starting from zero.
2405 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2407 def GetMessage(*args
, **kwargs
):
2409 GetMessage(self) -> String
2411 Returns the message that will be displayed on the dialog.
2413 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2415 def GetPath(*args
, **kwargs
):
2417 GetPath(self) -> String
2419 Returns the full path (directory and filename) of the selected file.
2421 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2423 def GetDirectory(*args
, **kwargs
):
2425 GetDirectory(self) -> String
2427 Returns the default directory.
2429 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2431 def GetFilename(*args
, **kwargs
):
2433 GetFilename(self) -> String
2435 Returns the default filename.
2437 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2439 def GetWildcard(*args
, **kwargs
):
2441 GetWildcard(self) -> String
2443 Returns the file dialog wildcard.
2445 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2447 def GetStyle(*args
, **kwargs
):
2449 GetStyle(self) -> long
2451 Returns the dialog style.
2453 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2455 def GetFilterIndex(*args
, **kwargs
):
2457 GetFilterIndex(self) -> int
2459 Returns the index into the list of filters supplied, optionally, in
2460 the wildcard parameter. Before the dialog is shown, this is the index
2461 which will be used when the dialog is first displayed. After the
2462 dialog is shown, this is the index selected by the user.
2464 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2466 def GetFilenames(*args
, **kwargs
):
2468 GetFilenames(self) -> PyObject
2470 Returns a list of filenames chosen in the dialog. This function
2471 should only be used with the dialogs which have wx.MULTIPLE style, use
2472 GetFilename for the others.
2474 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2476 def GetPaths(*args
, **kwargs
):
2478 GetPaths(self) -> PyObject
2480 Fills the array paths with the full paths of the files chosen. This
2481 function should only be used with the dialogs which have wx.MULTIPLE
2482 style, use GetPath for the others.
2484 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2487 class FileDialogPtr(FileDialog
):
2488 def __init__(self
, this
):
2490 if not hasattr(self
,"thisown"): self
.thisown
= 0
2491 self
.__class
__ = FileDialog
2492 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2494 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2495 class MultiChoiceDialog(Dialog
):
2496 """A simple dialog with a multi selection listbox."""
2498 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2499 def __init__(self
, *args
, **kwargs
):
2501 __init__(Window parent, String message, String caption,
2502 List choices=[], long style=CHOICEDLG_STYLE,
2503 Point pos=DefaultPosition) -> MultiChoiceDialog
2505 Constructor. Use ShowModal method to show the dialog.
2507 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2508 self
.this
= newobj
.this
2511 self
._setOORInfo
(self
)
2513 def SetSelections(*args
, **kwargs
):
2515 SetSelections(List selections)
2517 Specify the items in the list that should be selected, using a list of
2520 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2522 def GetSelections(*args
, **kwargs
):
2524 GetSelections() -> [selections]
2526 Returns a list of integers representing the items that are selected.
2528 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2531 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2532 def __init__(self
, this
):
2534 if not hasattr(self
,"thisown"): self
.thisown
= 0
2535 self
.__class
__ = MultiChoiceDialog
2536 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2538 class SingleChoiceDialog(Dialog
):
2539 """A simple dialog with a single selection listbox."""
2541 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2542 def __init__(self
, *args
, **kwargs
):
2544 __init__(Window parent, String message, String caption,
2545 List choices=[], long style=CHOICEDLG_STYLE,
2546 Point pos=DefaultPosition) -> SingleChoiceDialog
2548 Constructor. Use ShowModal method to show the dialog.
2550 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2551 self
.this
= newobj
.this
2554 self
._setOORInfo
(self
)
2556 def GetSelection(*args
, **kwargs
):
2558 GetSelection(self) -> int
2560 Get the index of teh currently selected item.
2562 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2564 def GetStringSelection(*args
, **kwargs
):
2566 GetStringSelection(self) -> String
2568 Returns the string value of the currently selected item
2570 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2572 def SetSelection(*args
, **kwargs
):
2574 SetSelection(self, int sel)
2576 Set the current selected item to sel
2578 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2581 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2582 def __init__(self
, this
):
2584 if not hasattr(self
,"thisown"): self
.thisown
= 0
2585 self
.__class
__ = SingleChoiceDialog
2586 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2588 class TextEntryDialog(Dialog
):
2589 """A dialog with text control, [ok] and [cancel] buttons"""
2591 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2592 def __init__(self
, *args
, **kwargs
):
2594 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2595 String defaultValue=EmptyString,
2596 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2598 Constructor. Use ShowModal method to show the dialog.
2600 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2601 self
.this
= newobj
.this
2604 self
._setOORInfo
(self
)
2606 def GetValue(*args
, **kwargs
):
2608 GetValue(self) -> String
2610 Returns the text that the user has entered if the user has pressed OK,
2611 or the original value if the user has pressed Cancel.
2613 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2615 def SetValue(*args
, **kwargs
):
2617 SetValue(self, String value)
2619 Sets the default text value.
2621 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2624 class TextEntryDialogPtr(TextEntryDialog
):
2625 def __init__(self
, this
):
2627 if not hasattr(self
,"thisown"): self
.thisown
= 0
2628 self
.__class
__ = TextEntryDialog
2629 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2631 class FontData(_core
.Object
):
2633 This class holds a variety of information related to font dialogs and
2634 is used to transfer settings to and results from a `wx.FontDialog`.
2637 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2638 def __init__(self
, *args
, **kwargs
):
2640 __init__(self) -> FontData
2642 This class holds a variety of information related to font dialogs and
2643 is used to transfer settings to and results from a `wx.FontDialog`.
2645 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2646 self
.this
= newobj
.this
2649 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2652 if self
.thisown
: destroy(self
)
2655 def EnableEffects(*args
, **kwargs
):
2657 EnableEffects(self, bool enable)
2659 Enables or disables 'effects' under MS Windows only. This refers to
2660 the controls for manipulating colour, strikeout and underline
2661 properties. The default value is true.
2663 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2665 def GetAllowSymbols(*args
, **kwargs
):
2667 GetAllowSymbols(self) -> bool
2669 Under MS Windows, returns a flag determining whether symbol fonts can
2670 be selected. Has no effect on other platforms. The default value is
2673 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2675 def GetColour(*args
, **kwargs
):
2677 GetColour(self) -> Colour
2679 Gets the colour associated with the font dialog. The default value is
2682 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2684 def GetChosenFont(*args
, **kwargs
):
2686 GetChosenFont(self) -> Font
2688 Gets the font chosen by the user.
2690 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2692 def GetEnableEffects(*args
, **kwargs
):
2694 GetEnableEffects(self) -> bool
2696 Determines whether 'effects' are enabled under Windows.
2698 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2700 def GetInitialFont(*args
, **kwargs
):
2702 GetInitialFont(self) -> Font
2704 Gets the font that will be initially used by the font dialog. This
2705 should have previously been set by the application.
2707 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2709 def GetShowHelp(*args
, **kwargs
):
2711 GetShowHelp(self) -> bool
2713 Returns true if the Help button will be shown (Windows only). The
2714 default value is false.
2716 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2718 def SetAllowSymbols(*args
, **kwargs
):
2720 SetAllowSymbols(self, bool allowSymbols)
2722 Under MS Windows, determines whether symbol fonts can be selected. Has
2723 no effect on other platforms. The default value is true.
2725 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2727 def SetChosenFont(*args
, **kwargs
):
2729 SetChosenFont(self, Font font)
2731 Sets the font that will be returned to the user (normally for internal
2734 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2736 def SetColour(*args
, **kwargs
):
2738 SetColour(self, Colour colour)
2740 Sets the colour that will be used for the font foreground colour. The
2741 default colour is black.
2743 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2745 def SetInitialFont(*args
, **kwargs
):
2747 SetInitialFont(self, Font font)
2749 Sets the font that will be initially used by the font dialog.
2751 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2753 def SetRange(*args
, **kwargs
):
2755 SetRange(self, int min, int max)
2757 Sets the valid range for the font point size (Windows only). The
2758 default is 0, 0 (unrestricted range).
2760 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2762 def SetShowHelp(*args
, **kwargs
):
2764 SetShowHelp(self, bool showHelp)
2766 Determines whether the Help button will be displayed in the font
2767 dialog (Windows only). The default value is false.
2769 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2772 class FontDataPtr(FontData
):
2773 def __init__(self
, this
):
2775 if not hasattr(self
,"thisown"): self
.thisown
= 0
2776 self
.__class
__ = FontData
2777 _windows_
.FontData_swigregister(FontDataPtr
)
2779 class FontDialog(Dialog
):
2781 wx.FontDialog allows the user to select a system font and its attributes.
2787 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2788 def __init__(self
, *args
, **kwargs
):
2790 __init__(self, Window parent, FontData data) -> FontDialog
2792 Constructor. Pass a parent window and the `wx.FontData` object to be
2793 used to initialize the dialog controls. Call `ShowModal` to display
2794 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2795 results with via the `wx.FontData` returned by `GetFontData`.
2797 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2798 self
.this
= newobj
.this
2801 self
._setOORInfo
(self
)
2803 def GetFontData(*args
, **kwargs
):
2805 GetFontData(self) -> FontData
2807 Returns a reference to the internal `wx.FontData` used by the
2810 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2813 class FontDialogPtr(FontDialog
):
2814 def __init__(self
, this
):
2816 if not hasattr(self
,"thisown"): self
.thisown
= 0
2817 self
.__class
__ = FontDialog
2818 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2820 class MessageDialog(Dialog
):
2822 This class provides a simple dialog that shows a single or multi-line
2823 message, with a choice of OK, Yes, No and/or Cancel buttons.
2826 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2827 def __init__(self
, *args
, **kwargs
):
2829 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2830 long style=wxOK|wxCANCEL|wxCENTRE,
2831 Point pos=DefaultPosition) -> MessageDialog
2833 Constructor, use `ShowModal` to display the dialog.
2835 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2836 self
.this
= newobj
.this
2839 self
._setOORInfo
(self
)
2842 class MessageDialogPtr(MessageDialog
):
2843 def __init__(self
, this
):
2845 if not hasattr(self
,"thisown"): self
.thisown
= 0
2846 self
.__class
__ = MessageDialog
2847 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2849 class ProgressDialog(Frame
):
2851 A dialog that shows a short message and a progress bar. Optionally, it
2852 can display an ABORT button.
2855 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2856 def __init__(self
, *args
, **kwargs
):
2858 __init__(self, String title, String message, int maximum=100, Window parent=None,
2859 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2861 Constructor. Creates the dialog, displays it and disables user input
2862 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2865 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2866 self
.this
= newobj
.this
2869 self
._setOORInfo
(self
)
2871 def Update(*args
, **kwargs
):
2873 Update(self, int value, String newmsg=EmptyString) -> bool
2875 Updates the dialog, setting the progress bar to the new value and, if
2876 given changes the message above it. The value given should be less
2877 than or equal to the maximum value given to the constructor and the
2878 dialog is closed if it is equal to the maximum. Returns true unless
2879 the Cancel button has been pressed.
2881 If false is returned, the application can either immediately destroy
2882 the dialog or ask the user for the confirmation and if the abort is
2883 not confirmed the dialog may be resumed with Resume function.
2885 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2887 def Resume(*args
, **kwargs
):
2891 Can be used to continue with the dialog, after the user had chosen to
2894 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2897 class ProgressDialogPtr(ProgressDialog
):
2898 def __init__(self
, this
):
2900 if not hasattr(self
,"thisown"): self
.thisown
= 0
2901 self
.__class
__ = ProgressDialog
2902 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2904 FR_DOWN
= _windows_
.FR_DOWN
2905 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2906 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2907 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2908 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2909 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2910 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2911 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2912 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2913 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2914 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2915 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2916 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2917 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2918 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2919 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2920 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2922 # For backwards compatibility. Should they be removed?
2923 EVT_COMMAND_FIND
= EVT_FIND
2924 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2925 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2926 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2927 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2929 class FindDialogEvent(_core
.CommandEvent
):
2930 """Events for the FindReplaceDialog"""
2932 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2933 def __init__(self
, *args
, **kwargs
):
2935 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2937 Events for the FindReplaceDialog
2939 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2940 self
.this
= newobj
.this
2943 def GetFlags(*args
, **kwargs
):
2945 GetFlags(self) -> int
2947 Get the currently selected flags: this is the combination of
2948 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2950 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2952 def GetFindString(*args
, **kwargs
):
2954 GetFindString(self) -> String
2956 Return the string to find (never empty).
2958 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2960 def GetReplaceString(*args
, **kwargs
):
2962 GetReplaceString(self) -> String
2964 Return the string to replace the search string with (only for replace
2965 and replace all events).
2967 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2969 def GetDialog(*args
, **kwargs
):
2971 GetDialog(self) -> FindReplaceDialog
2973 Return the pointer to the dialog which generated this event.
2975 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2977 def SetFlags(*args
, **kwargs
):
2978 """SetFlags(self, int flags)"""
2979 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2981 def SetFindString(*args
, **kwargs
):
2982 """SetFindString(self, String str)"""
2983 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2985 def SetReplaceString(*args
, **kwargs
):
2986 """SetReplaceString(self, String str)"""
2987 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2990 class FindDialogEventPtr(FindDialogEvent
):
2991 def __init__(self
, this
):
2993 if not hasattr(self
,"thisown"): self
.thisown
= 0
2994 self
.__class
__ = FindDialogEvent
2995 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2997 class FindReplaceData(_core
.Object
):
2999 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3000 to initialize the dialog with the default values and will keep the
3001 last values from the dialog when it is closed. It is also updated each
3002 time a `wx.FindDialogEvent` is generated so instead of using the
3003 `wx.FindDialogEvent` methods you can also directly query this object.
3005 Note that all SetXXX() methods may only be called before showing the
3006 dialog and calling them has no effect later.
3009 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3010 def __init__(self
, *args
, **kwargs
):
3012 __init__(self, int flags=0) -> FindReplaceData
3014 Constuctor initializes the flags to default value (0).
3016 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3017 self
.this
= newobj
.this
3020 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3023 if self
.thisown
: destroy(self
)
3026 def GetFindString(*args
, **kwargs
):
3028 GetFindString(self) -> String
3030 Get the string to find.
3032 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3034 def GetReplaceString(*args
, **kwargs
):
3036 GetReplaceString(self) -> String
3038 Get the replacement string.
3040 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3042 def GetFlags(*args
, **kwargs
):
3044 GetFlags(self) -> int
3046 Get the combination of flag values.
3048 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3050 def SetFlags(*args
, **kwargs
):
3052 SetFlags(self, int flags)
3054 Set the flags to use to initialize the controls of the dialog.
3056 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3058 def SetFindString(*args
, **kwargs
):
3060 SetFindString(self, String str)
3062 Set the string to find (used as initial value by the dialog).
3064 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3066 def SetReplaceString(*args
, **kwargs
):
3068 SetReplaceString(self, String str)
3070 Set the replacement string (used as initial value by the dialog).
3072 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3075 class FindReplaceDataPtr(FindReplaceData
):
3076 def __init__(self
, this
):
3078 if not hasattr(self
,"thisown"): self
.thisown
= 0
3079 self
.__class
__ = FindReplaceData
3080 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3082 class FindReplaceDialog(Dialog
):
3084 wx.FindReplaceDialog is a standard modeless dialog which is used to
3085 allow the user to search for some text (and possibly replace it with
3086 something else). The actual searching is supposed to be done in the
3087 owner window which is the parent of this dialog. Note that it means
3088 that unlike for the other standard dialogs this one must have a parent
3089 window. Also note that there is no way to use this dialog in a modal
3090 way; it is always, by design and implementation, modeless.
3093 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3094 def __init__(self
, *args
, **kwargs
):
3096 __init__(self, Window parent, FindReplaceData data, String title,
3097 int style=0) -> FindReplaceDialog
3099 Create a FindReplaceDialog. The parent and data parameters must be
3100 non-None. Use Show to display the dialog.
3102 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3103 self
.this
= newobj
.this
3106 self
._setOORInfo
(self
)
3108 def Create(*args
, **kwargs
):
3110 Create(self, Window parent, FindReplaceData data, String title,
3111 int style=0) -> bool
3113 Create the dialog, for 2-phase create.
3115 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3117 def GetData(*args
, **kwargs
):
3119 GetData(self) -> FindReplaceData
3121 Get the FindReplaceData object used by this dialog.
3123 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3125 def SetData(*args
, **kwargs
):
3127 SetData(self, FindReplaceData data)
3129 Set the FindReplaceData object used by this dialog.
3131 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3134 class FindReplaceDialogPtr(FindReplaceDialog
):
3135 def __init__(self
, this
):
3137 if not hasattr(self
,"thisown"): self
.thisown
= 0
3138 self
.__class
__ = FindReplaceDialog
3139 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3141 def PreFindReplaceDialog(*args
, **kwargs
):
3143 PreFindReplaceDialog() -> FindReplaceDialog
3145 Precreate a FindReplaceDialog for 2-phase creation
3147 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3151 #---------------------------------------------------------------------------
3153 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3154 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3155 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3156 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3157 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3158 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3159 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3160 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3161 class MDIParentFrame(Frame
):
3163 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3164 def __init__(self
, *args
, **kwargs
):
3166 __init__(self, Window parent, int id=-1, String title=EmptyString,
3167 Point pos=DefaultPosition, Size size=DefaultSize,
3168 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3169 String name=FrameNameStr) -> MDIParentFrame
3171 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3172 self
.this
= newobj
.this
3175 self
._setOORInfo
(self
)
3177 def Create(*args
, **kwargs
):
3179 Create(self, Window parent, int id=-1, String title=EmptyString,
3180 Point pos=DefaultPosition, Size size=DefaultSize,
3181 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3182 String name=FrameNameStr) -> bool
3184 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3186 def ActivateNext(*args
, **kwargs
):
3187 """ActivateNext(self)"""
3188 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3190 def ActivatePrevious(*args
, **kwargs
):
3191 """ActivatePrevious(self)"""
3192 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3194 def ArrangeIcons(*args
, **kwargs
):
3195 """ArrangeIcons(self)"""
3196 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3198 def Cascade(*args
, **kwargs
):
3200 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3202 def GetActiveChild(*args
, **kwargs
):
3203 """GetActiveChild(self) -> MDIChildFrame"""
3204 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3206 def GetClientWindow(*args
, **kwargs
):
3207 """GetClientWindow(self) -> MDIClientWindow"""
3208 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3210 def GetToolBar(*args
, **kwargs
):
3211 """GetToolBar(self) -> Window"""
3212 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3214 def Tile(*args
, **kwargs
):
3216 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3219 class MDIParentFramePtr(MDIParentFrame
):
3220 def __init__(self
, this
):
3222 if not hasattr(self
,"thisown"): self
.thisown
= 0
3223 self
.__class
__ = MDIParentFrame
3224 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3226 def PreMDIParentFrame(*args
, **kwargs
):
3227 """PreMDIParentFrame() -> MDIParentFrame"""
3228 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3232 class MDIChildFrame(Frame
):
3234 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3235 def __init__(self
, *args
, **kwargs
):
3237 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3238 Point pos=DefaultPosition, Size size=DefaultSize,
3239 long style=DEFAULT_FRAME_STYLE,
3240 String name=FrameNameStr) -> MDIChildFrame
3242 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3243 self
.this
= newobj
.this
3246 self
._setOORInfo
(self
)
3248 def Create(*args
, **kwargs
):
3250 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3251 Point pos=DefaultPosition, Size size=DefaultSize,
3252 long style=DEFAULT_FRAME_STYLE,
3253 String name=FrameNameStr) -> bool
3255 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3257 def Activate(*args
, **kwargs
):
3258 """Activate(self)"""
3259 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3261 def Maximize(*args
, **kwargs
):
3262 """Maximize(self, bool maximize)"""
3263 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3265 def Restore(*args
, **kwargs
):
3267 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3270 class MDIChildFramePtr(MDIChildFrame
):
3271 def __init__(self
, this
):
3273 if not hasattr(self
,"thisown"): self
.thisown
= 0
3274 self
.__class
__ = MDIChildFrame
3275 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3277 def PreMDIChildFrame(*args
, **kwargs
):
3278 """PreMDIChildFrame() -> MDIChildFrame"""
3279 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3283 class MDIClientWindow(_core
.Window
):
3285 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3286 def __init__(self
, *args
, **kwargs
):
3287 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3288 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3289 self
.this
= newobj
.this
3292 self
._setOORInfo
(self
)
3294 def Create(*args
, **kwargs
):
3295 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3296 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3299 class MDIClientWindowPtr(MDIClientWindow
):
3300 def __init__(self
, this
):
3302 if not hasattr(self
,"thisown"): self
.thisown
= 0
3303 self
.__class
__ = MDIClientWindow
3304 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3306 def PreMDIClientWindow(*args
, **kwargs
):
3307 """PreMDIClientWindow() -> MDIClientWindow"""
3308 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3312 #---------------------------------------------------------------------------
3314 class PyWindow(_core
.Window
):
3316 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3317 def __init__(self
, *args
, **kwargs
):
3319 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3320 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3322 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3323 self
.this
= newobj
.this
3326 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3328 def _setCallbackInfo(*args
, **kwargs
):
3329 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3330 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3332 def SetBestSize(*args
, **kwargs
):
3333 """SetBestSize(self, Size size)"""
3334 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3336 def base_DoMoveWindow(*args
, **kwargs
):
3337 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3338 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3340 def base_DoSetSize(*args
, **kwargs
):
3341 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3342 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3344 def base_DoSetClientSize(*args
, **kwargs
):
3345 """base_DoSetClientSize(self, int width, int height)"""
3346 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3348 def base_DoSetVirtualSize(*args
, **kwargs
):
3349 """base_DoSetVirtualSize(self, int x, int y)"""
3350 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3352 def base_DoGetSize(*args
, **kwargs
):
3353 """base_DoGetSize() -> (width, height)"""
3354 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3356 def base_DoGetClientSize(*args
, **kwargs
):
3357 """base_DoGetClientSize() -> (width, height)"""
3358 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3360 def base_DoGetPosition(*args
, **kwargs
):
3361 """base_DoGetPosition() -> (x,y)"""
3362 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3364 def base_DoGetVirtualSize(*args
, **kwargs
):
3365 """base_DoGetVirtualSize(self) -> Size"""
3366 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3368 def base_DoGetBestSize(*args
, **kwargs
):
3369 """base_DoGetBestSize(self) -> Size"""
3370 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3372 def base_InitDialog(*args
, **kwargs
):
3373 """base_InitDialog(self)"""
3374 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3376 def base_TransferDataToWindow(*args
, **kwargs
):
3377 """base_TransferDataToWindow(self) -> bool"""
3378 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3380 def base_TransferDataFromWindow(*args
, **kwargs
):
3381 """base_TransferDataFromWindow(self) -> bool"""
3382 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3384 def base_Validate(*args
, **kwargs
):
3385 """base_Validate(self) -> bool"""
3386 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3388 def base_AcceptsFocus(*args
, **kwargs
):
3389 """base_AcceptsFocus(self) -> bool"""
3390 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3392 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3393 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3394 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3396 def base_GetMaxSize(*args
, **kwargs
):
3397 """base_GetMaxSize(self) -> Size"""
3398 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3400 def base_AddChild(*args
, **kwargs
):
3401 """base_AddChild(self, Window child)"""
3402 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3404 def base_RemoveChild(*args
, **kwargs
):
3405 """base_RemoveChild(self, Window child)"""
3406 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3408 def base_ShouldInheritColours(*args
, **kwargs
):
3409 """base_ShouldInheritColours(self) -> bool"""
3410 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3412 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3413 """base_ApplyParentThemeBackground(self, Colour c)"""
3414 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3416 def base_GetDefaultAttributes(*args
, **kwargs
):
3417 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3418 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3421 class PyWindowPtr(PyWindow
):
3422 def __init__(self
, this
):
3424 if not hasattr(self
,"thisown"): self
.thisown
= 0
3425 self
.__class
__ = PyWindow
3426 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3428 def PrePyWindow(*args
, **kwargs
):
3429 """PrePyWindow() -> PyWindow"""
3430 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3434 class PyPanel(Panel
):
3436 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3437 def __init__(self
, *args
, **kwargs
):
3439 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3440 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3442 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3443 self
.this
= newobj
.this
3446 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3448 def _setCallbackInfo(*args
, **kwargs
):
3449 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3450 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3452 def SetBestSize(*args
, **kwargs
):
3453 """SetBestSize(self, Size size)"""
3454 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3456 def base_DoMoveWindow(*args
, **kwargs
):
3457 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3458 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3460 def base_DoSetSize(*args
, **kwargs
):
3461 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3462 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3464 def base_DoSetClientSize(*args
, **kwargs
):
3465 """base_DoSetClientSize(self, int width, int height)"""
3466 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3468 def base_DoSetVirtualSize(*args
, **kwargs
):
3469 """base_DoSetVirtualSize(self, int x, int y)"""
3470 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3472 def base_DoGetSize(*args
, **kwargs
):
3473 """base_DoGetSize() -> (width, height)"""
3474 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3476 def base_DoGetClientSize(*args
, **kwargs
):
3477 """base_DoGetClientSize() -> (width, height)"""
3478 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3480 def base_DoGetPosition(*args
, **kwargs
):
3481 """base_DoGetPosition() -> (x,y)"""
3482 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3484 def base_DoGetVirtualSize(*args
, **kwargs
):
3485 """base_DoGetVirtualSize(self) -> Size"""
3486 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3488 def base_DoGetBestSize(*args
, **kwargs
):
3489 """base_DoGetBestSize(self) -> Size"""
3490 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3492 def base_InitDialog(*args
, **kwargs
):
3493 """base_InitDialog(self)"""
3494 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3496 def base_TransferDataToWindow(*args
, **kwargs
):
3497 """base_TransferDataToWindow(self) -> bool"""
3498 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3500 def base_TransferDataFromWindow(*args
, **kwargs
):
3501 """base_TransferDataFromWindow(self) -> bool"""
3502 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3504 def base_Validate(*args
, **kwargs
):
3505 """base_Validate(self) -> bool"""
3506 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3508 def base_AcceptsFocus(*args
, **kwargs
):
3509 """base_AcceptsFocus(self) -> bool"""
3510 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3512 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3513 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3514 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3516 def base_GetMaxSize(*args
, **kwargs
):
3517 """base_GetMaxSize(self) -> Size"""
3518 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3520 def base_AddChild(*args
, **kwargs
):
3521 """base_AddChild(self, Window child)"""
3522 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3524 def base_RemoveChild(*args
, **kwargs
):
3525 """base_RemoveChild(self, Window child)"""
3526 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3528 def base_ShouldInheritColours(*args
, **kwargs
):
3529 """base_ShouldInheritColours(self) -> bool"""
3530 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3532 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3533 """base_ApplyParentThemeBackground(self, Colour c)"""
3534 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3536 def base_GetDefaultAttributes(*args
, **kwargs
):
3537 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3538 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3541 class PyPanelPtr(PyPanel
):
3542 def __init__(self
, this
):
3544 if not hasattr(self
,"thisown"): self
.thisown
= 0
3545 self
.__class
__ = PyPanel
3546 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3548 def PrePyPanel(*args
, **kwargs
):
3549 """PrePyPanel() -> PyPanel"""
3550 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3554 class PyScrolledWindow(ScrolledWindow
):
3556 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3557 def __init__(self
, *args
, **kwargs
):
3559 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3560 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3562 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3563 self
.this
= newobj
.this
3566 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3568 def _setCallbackInfo(*args
, **kwargs
):
3569 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3570 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3572 def SetBestSize(*args
, **kwargs
):
3573 """SetBestSize(self, Size size)"""
3574 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3576 def base_DoMoveWindow(*args
, **kwargs
):
3577 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3578 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3580 def base_DoSetSize(*args
, **kwargs
):
3581 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3582 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3584 def base_DoSetClientSize(*args
, **kwargs
):
3585 """base_DoSetClientSize(self, int width, int height)"""
3586 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3588 def base_DoSetVirtualSize(*args
, **kwargs
):
3589 """base_DoSetVirtualSize(self, int x, int y)"""
3590 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3592 def base_DoGetSize(*args
, **kwargs
):
3593 """base_DoGetSize() -> (width, height)"""
3594 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3596 def base_DoGetClientSize(*args
, **kwargs
):
3597 """base_DoGetClientSize() -> (width, height)"""
3598 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3600 def base_DoGetPosition(*args
, **kwargs
):
3601 """base_DoGetPosition() -> (x,y)"""
3602 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3604 def base_DoGetVirtualSize(*args
, **kwargs
):
3605 """base_DoGetVirtualSize(self) -> Size"""
3606 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3608 def base_DoGetBestSize(*args
, **kwargs
):
3609 """base_DoGetBestSize(self) -> Size"""
3610 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3612 def base_InitDialog(*args
, **kwargs
):
3613 """base_InitDialog(self)"""
3614 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3616 def base_TransferDataToWindow(*args
, **kwargs
):
3617 """base_TransferDataToWindow(self) -> bool"""
3618 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3620 def base_TransferDataFromWindow(*args
, **kwargs
):
3621 """base_TransferDataFromWindow(self) -> bool"""
3622 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3624 def base_Validate(*args
, **kwargs
):
3625 """base_Validate(self) -> bool"""
3626 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3628 def base_AcceptsFocus(*args
, **kwargs
):
3629 """base_AcceptsFocus(self) -> bool"""
3630 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3632 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3633 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3634 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3636 def base_GetMaxSize(*args
, **kwargs
):
3637 """base_GetMaxSize(self) -> Size"""
3638 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3640 def base_AddChild(*args
, **kwargs
):
3641 """base_AddChild(self, Window child)"""
3642 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3644 def base_RemoveChild(*args
, **kwargs
):
3645 """base_RemoveChild(self, Window child)"""
3646 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3648 def base_ShouldInheritColours(*args
, **kwargs
):
3649 """base_ShouldInheritColours(self) -> bool"""
3650 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3652 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3653 """base_ApplyParentThemeBackground(self, Colour c)"""
3654 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3656 def base_GetDefaultAttributes(*args
, **kwargs
):
3657 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3658 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3661 class PyScrolledWindowPtr(PyScrolledWindow
):
3662 def __init__(self
, this
):
3664 if not hasattr(self
,"thisown"): self
.thisown
= 0
3665 self
.__class
__ = PyScrolledWindow
3666 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3668 def PrePyScrolledWindow(*args
, **kwargs
):
3669 """PrePyScrolledWindow() -> PyScrolledWindow"""
3670 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3674 #---------------------------------------------------------------------------
3676 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3677 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3678 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3679 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3680 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3681 class PrintData(_core
.Object
):
3683 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3684 def __init__(self
, *args
):
3686 __init__(self) -> PrintData
3687 __init__(self, PrintData data) -> PrintData
3689 newobj
= _windows_
.new_PrintData(*args
)
3690 self
.this
= newobj
.this
3693 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3696 if self
.thisown
: destroy(self
)
3699 def GetNoCopies(*args
, **kwargs
):
3700 """GetNoCopies(self) -> int"""
3701 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3703 def GetCollate(*args
, **kwargs
):
3704 """GetCollate(self) -> bool"""
3705 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3707 def GetOrientation(*args
, **kwargs
):
3708 """GetOrientation(self) -> int"""
3709 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3711 def Ok(*args
, **kwargs
):
3712 """Ok(self) -> bool"""
3713 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3715 def GetPrinterName(*args
, **kwargs
):
3716 """GetPrinterName(self) -> String"""
3717 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3719 def GetColour(*args
, **kwargs
):
3720 """GetColour(self) -> bool"""
3721 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3723 def GetDuplex(*args
, **kwargs
):
3724 """GetDuplex(self) -> int"""
3725 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3727 def GetPaperId(*args
, **kwargs
):
3728 """GetPaperId(self) -> int"""
3729 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3731 def GetPaperSize(*args
, **kwargs
):
3732 """GetPaperSize(self) -> Size"""
3733 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3735 def GetQuality(*args
, **kwargs
):
3736 """GetQuality(self) -> int"""
3737 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3739 def SetNoCopies(*args
, **kwargs
):
3740 """SetNoCopies(self, int v)"""
3741 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3743 def SetCollate(*args
, **kwargs
):
3744 """SetCollate(self, bool flag)"""
3745 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3747 def SetOrientation(*args
, **kwargs
):
3748 """SetOrientation(self, int orient)"""
3749 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3751 def SetPrinterName(*args
, **kwargs
):
3752 """SetPrinterName(self, String name)"""
3753 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3755 def SetColour(*args
, **kwargs
):
3756 """SetColour(self, bool colour)"""
3757 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3759 def SetDuplex(*args
, **kwargs
):
3760 """SetDuplex(self, int duplex)"""
3761 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3763 def SetPaperId(*args
, **kwargs
):
3764 """SetPaperId(self, int sizeId)"""
3765 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3767 def SetPaperSize(*args
, **kwargs
):
3768 """SetPaperSize(self, Size sz)"""
3769 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3771 def SetQuality(*args
, **kwargs
):
3772 """SetQuality(self, int quality)"""
3773 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3775 def GetPrinterCommand(*args
, **kwargs
):
3776 """GetPrinterCommand(self) -> String"""
3777 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3779 def GetPrinterOptions(*args
, **kwargs
):
3780 """GetPrinterOptions(self) -> String"""
3781 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3783 def GetPreviewCommand(*args
, **kwargs
):
3784 """GetPreviewCommand(self) -> String"""
3785 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3787 def GetFilename(*args
, **kwargs
):
3788 """GetFilename(self) -> String"""
3789 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3791 def GetFontMetricPath(*args
, **kwargs
):
3792 """GetFontMetricPath(self) -> String"""
3793 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3795 def GetPrinterScaleX(*args
, **kwargs
):
3796 """GetPrinterScaleX(self) -> double"""
3797 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3799 def GetPrinterScaleY(*args
, **kwargs
):
3800 """GetPrinterScaleY(self) -> double"""
3801 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3803 def GetPrinterTranslateX(*args
, **kwargs
):
3804 """GetPrinterTranslateX(self) -> long"""
3805 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3807 def GetPrinterTranslateY(*args
, **kwargs
):
3808 """GetPrinterTranslateY(self) -> long"""
3809 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3811 def GetPrintMode(*args
, **kwargs
):
3812 """GetPrintMode(self) -> int"""
3813 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3815 def SetPrinterCommand(*args
, **kwargs
):
3816 """SetPrinterCommand(self, String command)"""
3817 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3819 def SetPrinterOptions(*args
, **kwargs
):
3820 """SetPrinterOptions(self, String options)"""
3821 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3823 def SetPreviewCommand(*args
, **kwargs
):
3824 """SetPreviewCommand(self, String command)"""
3825 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3827 def SetFilename(*args
, **kwargs
):
3828 """SetFilename(self, String filename)"""
3829 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3831 def SetFontMetricPath(*args
, **kwargs
):
3832 """SetFontMetricPath(self, String path)"""
3833 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3835 def SetPrinterScaleX(*args
, **kwargs
):
3836 """SetPrinterScaleX(self, double x)"""
3837 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3839 def SetPrinterScaleY(*args
, **kwargs
):
3840 """SetPrinterScaleY(self, double y)"""
3841 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3843 def SetPrinterScaling(*args
, **kwargs
):
3844 """SetPrinterScaling(self, double x, double y)"""
3845 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3847 def SetPrinterTranslateX(*args
, **kwargs
):
3848 """SetPrinterTranslateX(self, long x)"""
3849 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3851 def SetPrinterTranslateY(*args
, **kwargs
):
3852 """SetPrinterTranslateY(self, long y)"""
3853 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3855 def SetPrinterTranslation(*args
, **kwargs
):
3856 """SetPrinterTranslation(self, long x, long y)"""
3857 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3859 def SetPrintMode(*args
, **kwargs
):
3860 """SetPrintMode(self, int printMode)"""
3861 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3863 def GetOutputStream(*args
, **kwargs
):
3864 """GetOutputStream(self) -> OutputStream"""
3865 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3867 def SetOutputStream(*args
, **kwargs
):
3868 """SetOutputStream(self, OutputStream outputstream)"""
3869 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3871 def __nonzero__(self
): return self
.Ok()
3873 class PrintDataPtr(PrintData
):
3874 def __init__(self
, this
):
3876 if not hasattr(self
,"thisown"): self
.thisown
= 0
3877 self
.__class
__ = PrintData
3878 _windows_
.PrintData_swigregister(PrintDataPtr
)
3879 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3880 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3882 class PageSetupDialogData(_core
.Object
):
3884 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3885 def __init__(self
, *args
):
3887 __init__(self) -> PageSetupDialogData
3888 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3890 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3891 self
.this
= newobj
.this
3894 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3897 if self
.thisown
: destroy(self
)
3900 def EnableHelp(*args
, **kwargs
):
3901 """EnableHelp(self, bool flag)"""
3902 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3904 def EnableMargins(*args
, **kwargs
):
3905 """EnableMargins(self, bool flag)"""
3906 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3908 def EnableOrientation(*args
, **kwargs
):
3909 """EnableOrientation(self, bool flag)"""
3910 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3912 def EnablePaper(*args
, **kwargs
):
3913 """EnablePaper(self, bool flag)"""
3914 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3916 def EnablePrinter(*args
, **kwargs
):
3917 """EnablePrinter(self, bool flag)"""
3918 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3920 def GetDefaultMinMargins(*args
, **kwargs
):
3921 """GetDefaultMinMargins(self) -> bool"""
3922 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3924 def GetEnableMargins(*args
, **kwargs
):
3925 """GetEnableMargins(self) -> bool"""
3926 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3928 def GetEnableOrientation(*args
, **kwargs
):
3929 """GetEnableOrientation(self) -> bool"""
3930 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3932 def GetEnablePaper(*args
, **kwargs
):
3933 """GetEnablePaper(self) -> bool"""
3934 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3936 def GetEnablePrinter(*args
, **kwargs
):
3937 """GetEnablePrinter(self) -> bool"""
3938 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3940 def GetEnableHelp(*args
, **kwargs
):
3941 """GetEnableHelp(self) -> bool"""
3942 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3944 def GetDefaultInfo(*args
, **kwargs
):
3945 """GetDefaultInfo(self) -> bool"""
3946 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3948 def GetMarginTopLeft(*args
, **kwargs
):
3949 """GetMarginTopLeft(self) -> Point"""
3950 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3952 def GetMarginBottomRight(*args
, **kwargs
):
3953 """GetMarginBottomRight(self) -> Point"""
3954 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3956 def GetMinMarginTopLeft(*args
, **kwargs
):
3957 """GetMinMarginTopLeft(self) -> Point"""
3958 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3960 def GetMinMarginBottomRight(*args
, **kwargs
):
3961 """GetMinMarginBottomRight(self) -> Point"""
3962 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3964 def GetPaperId(*args
, **kwargs
):
3965 """GetPaperId(self) -> int"""
3966 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3968 def GetPaperSize(*args
, **kwargs
):
3969 """GetPaperSize(self) -> Size"""
3970 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3972 def GetPrintData(*args
, **kwargs
):
3973 """GetPrintData(self) -> PrintData"""
3974 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3976 def Ok(*args
, **kwargs
):
3977 """Ok(self) -> bool"""
3978 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3980 def SetDefaultInfo(*args
, **kwargs
):
3981 """SetDefaultInfo(self, bool flag)"""
3982 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3984 def SetDefaultMinMargins(*args
, **kwargs
):
3985 """SetDefaultMinMargins(self, bool flag)"""
3986 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3988 def SetMarginTopLeft(*args
, **kwargs
):
3989 """SetMarginTopLeft(self, Point pt)"""
3990 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3992 def SetMarginBottomRight(*args
, **kwargs
):
3993 """SetMarginBottomRight(self, Point pt)"""
3994 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3996 def SetMinMarginTopLeft(*args
, **kwargs
):
3997 """SetMinMarginTopLeft(self, Point pt)"""
3998 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4000 def SetMinMarginBottomRight(*args
, **kwargs
):
4001 """SetMinMarginBottomRight(self, Point pt)"""
4002 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4004 def SetPaperId(*args
, **kwargs
):
4005 """SetPaperId(self, int id)"""
4006 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4008 def SetPaperSize(*args
, **kwargs
):
4009 """SetPaperSize(self, Size size)"""
4010 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4012 def SetPrintData(*args
, **kwargs
):
4013 """SetPrintData(self, PrintData printData)"""
4014 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4016 def __nonzero__(self
): return self
.Ok()
4018 class PageSetupDialogDataPtr(PageSetupDialogData
):
4019 def __init__(self
, this
):
4021 if not hasattr(self
,"thisown"): self
.thisown
= 0
4022 self
.__class
__ = PageSetupDialogData
4023 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4025 class PageSetupDialog(Dialog
):
4027 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4028 def __init__(self
, *args
, **kwargs
):
4029 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4030 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4031 self
.this
= newobj
.this
4034 self
._setOORInfo
(self
)
4036 def GetPageSetupData(*args
, **kwargs
):
4037 """GetPageSetupData(self) -> PageSetupDialogData"""
4038 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4040 def ShowModal(*args
, **kwargs
):
4041 """ShowModal(self) -> int"""
4042 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4045 class PageSetupDialogPtr(PageSetupDialog
):
4046 def __init__(self
, this
):
4048 if not hasattr(self
,"thisown"): self
.thisown
= 0
4049 self
.__class
__ = PageSetupDialog
4050 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4052 class PrintDialogData(_core
.Object
):
4054 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4055 def __init__(self
, *args
):
4057 __init__(self) -> PrintDialogData
4058 __init__(self, PrintData printData) -> PrintDialogData
4060 newobj
= _windows_
.new_PrintDialogData(*args
)
4061 self
.this
= newobj
.this
4064 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4067 if self
.thisown
: destroy(self
)
4070 def GetFromPage(*args
, **kwargs
):
4071 """GetFromPage(self) -> int"""
4072 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4074 def GetToPage(*args
, **kwargs
):
4075 """GetToPage(self) -> int"""
4076 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4078 def GetMinPage(*args
, **kwargs
):
4079 """GetMinPage(self) -> int"""
4080 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4082 def GetMaxPage(*args
, **kwargs
):
4083 """GetMaxPage(self) -> int"""
4084 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4086 def GetNoCopies(*args
, **kwargs
):
4087 """GetNoCopies(self) -> int"""
4088 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4090 def GetAllPages(*args
, **kwargs
):
4091 """GetAllPages(self) -> bool"""
4092 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4094 def GetSelection(*args
, **kwargs
):
4095 """GetSelection(self) -> bool"""
4096 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4098 def GetCollate(*args
, **kwargs
):
4099 """GetCollate(self) -> bool"""
4100 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4102 def GetPrintToFile(*args
, **kwargs
):
4103 """GetPrintToFile(self) -> bool"""
4104 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4106 def GetSetupDialog(*args
, **kwargs
):
4107 """GetSetupDialog(self) -> bool"""
4108 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4110 def SetFromPage(*args
, **kwargs
):
4111 """SetFromPage(self, int v)"""
4112 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4114 def SetToPage(*args
, **kwargs
):
4115 """SetToPage(self, int v)"""
4116 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4118 def SetMinPage(*args
, **kwargs
):
4119 """SetMinPage(self, int v)"""
4120 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4122 def SetMaxPage(*args
, **kwargs
):
4123 """SetMaxPage(self, int v)"""
4124 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4126 def SetNoCopies(*args
, **kwargs
):
4127 """SetNoCopies(self, int v)"""
4128 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4130 def SetAllPages(*args
, **kwargs
):
4131 """SetAllPages(self, bool flag)"""
4132 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4134 def SetSelection(*args
, **kwargs
):
4135 """SetSelection(self, bool flag)"""
4136 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4138 def SetCollate(*args
, **kwargs
):
4139 """SetCollate(self, bool flag)"""
4140 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4142 def SetPrintToFile(*args
, **kwargs
):
4143 """SetPrintToFile(self, bool flag)"""
4144 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4146 def SetSetupDialog(*args
, **kwargs
):
4147 """SetSetupDialog(self, bool flag)"""
4148 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4150 def EnablePrintToFile(*args
, **kwargs
):
4151 """EnablePrintToFile(self, bool flag)"""
4152 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4154 def EnableSelection(*args
, **kwargs
):
4155 """EnableSelection(self, bool flag)"""
4156 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4158 def EnablePageNumbers(*args
, **kwargs
):
4159 """EnablePageNumbers(self, bool flag)"""
4160 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4162 def EnableHelp(*args
, **kwargs
):
4163 """EnableHelp(self, bool flag)"""
4164 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4166 def GetEnablePrintToFile(*args
, **kwargs
):
4167 """GetEnablePrintToFile(self) -> bool"""
4168 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4170 def GetEnableSelection(*args
, **kwargs
):
4171 """GetEnableSelection(self) -> bool"""
4172 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4174 def GetEnablePageNumbers(*args
, **kwargs
):
4175 """GetEnablePageNumbers(self) -> bool"""
4176 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4178 def GetEnableHelp(*args
, **kwargs
):
4179 """GetEnableHelp(self) -> bool"""
4180 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4182 def Ok(*args
, **kwargs
):
4183 """Ok(self) -> bool"""
4184 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4186 def GetPrintData(*args
, **kwargs
):
4187 """GetPrintData(self) -> PrintData"""
4188 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4190 def SetPrintData(*args
, **kwargs
):
4191 """SetPrintData(self, PrintData printData)"""
4192 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4194 def __nonzero__(self
): return self
.Ok()
4196 class PrintDialogDataPtr(PrintDialogData
):
4197 def __init__(self
, this
):
4199 if not hasattr(self
,"thisown"): self
.thisown
= 0
4200 self
.__class
__ = PrintDialogData
4201 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4203 class PrintDialog(Dialog
):
4205 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4206 def __init__(self
, *args
, **kwargs
):
4207 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4208 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4209 self
.this
= newobj
.this
4212 self
._setOORInfo
(self
)
4214 def GetPrintDialogData(*args
, **kwargs
):
4215 """GetPrintDialogData(self) -> PrintDialogData"""
4216 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4218 def GetPrintDC(*args
, **kwargs
):
4219 """GetPrintDC(self) -> DC"""
4220 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4222 def ShowModal(*args
, **kwargs
):
4223 """ShowModal(self) -> int"""
4224 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4227 class PrintDialogPtr(PrintDialog
):
4228 def __init__(self
, this
):
4230 if not hasattr(self
,"thisown"): self
.thisown
= 0
4231 self
.__class
__ = PrintDialog
4232 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4234 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4235 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4236 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4237 class Printer(_core
.Object
):
4239 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4240 def __init__(self
, *args
, **kwargs
):
4241 """__init__(self, PrintDialogData data=None) -> Printer"""
4242 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4243 self
.this
= newobj
.this
4246 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4249 if self
.thisown
: destroy(self
)
4252 def CreateAbortWindow(*args
, **kwargs
):
4253 """CreateAbortWindow(self, Window parent, Printout printout)"""
4254 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4256 def GetPrintDialogData(*args
, **kwargs
):
4257 """GetPrintDialogData(self) -> PrintDialogData"""
4258 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4260 def Print(*args
, **kwargs
):
4261 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4262 return _windows_
.Printer_Print(*args
, **kwargs
)
4264 def PrintDialog(*args
, **kwargs
):
4265 """PrintDialog(self, Window parent) -> DC"""
4266 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4268 def ReportError(*args
, **kwargs
):
4269 """ReportError(self, Window parent, Printout printout, String message)"""
4270 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4272 def Setup(*args
, **kwargs
):
4273 """Setup(self, Window parent) -> bool"""
4274 return _windows_
.Printer_Setup(*args
, **kwargs
)
4276 def GetAbort(*args
, **kwargs
):
4277 """GetAbort(self) -> bool"""
4278 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4280 def GetLastError(*args
, **kwargs
):
4281 """GetLastError() -> int"""
4282 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4284 GetLastError
= staticmethod(GetLastError
)
4286 class PrinterPtr(Printer
):
4287 def __init__(self
, this
):
4289 if not hasattr(self
,"thisown"): self
.thisown
= 0
4290 self
.__class
__ = Printer
4291 _windows_
.Printer_swigregister(PrinterPtr
)
4293 def Printer_GetLastError(*args
, **kwargs
):
4294 """Printer_GetLastError() -> int"""
4295 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4297 class Printout(_core
.Object
):
4299 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4300 def __init__(self
, *args
, **kwargs
):
4301 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4302 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4303 self
.this
= newobj
.this
4306 self
._setCallbackInfo
(self
, Printout
)
4308 def _setCallbackInfo(*args
, **kwargs
):
4309 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4310 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4312 def GetTitle(*args
, **kwargs
):
4313 """GetTitle(self) -> String"""
4314 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4316 def GetDC(*args
, **kwargs
):
4317 """GetDC(self) -> DC"""
4318 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4320 def SetDC(*args
, **kwargs
):
4321 """SetDC(self, DC dc)"""
4322 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4324 def SetPageSizePixels(*args
, **kwargs
):
4325 """SetPageSizePixels(self, int w, int h)"""
4326 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4328 def GetPageSizePixels(*args
, **kwargs
):
4329 """GetPageSizePixels() -> (w, h)"""
4330 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4332 def SetPageSizeMM(*args
, **kwargs
):
4333 """SetPageSizeMM(self, int w, int h)"""
4334 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4336 def GetPageSizeMM(*args
, **kwargs
):
4337 """GetPageSizeMM() -> (w, h)"""
4338 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4340 def SetPPIScreen(*args
, **kwargs
):
4341 """SetPPIScreen(self, int x, int y)"""
4342 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4344 def GetPPIScreen(*args
, **kwargs
):
4345 """GetPPIScreen() -> (x,y)"""
4346 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4348 def SetPPIPrinter(*args
, **kwargs
):
4349 """SetPPIPrinter(self, int x, int y)"""
4350 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4352 def GetPPIPrinter(*args
, **kwargs
):
4353 """GetPPIPrinter() -> (x,y)"""
4354 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4356 def IsPreview(*args
, **kwargs
):
4357 """IsPreview(self) -> bool"""
4358 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4360 def SetIsPreview(*args
, **kwargs
):
4361 """SetIsPreview(self, bool p)"""
4362 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4364 def base_OnBeginDocument(*args
, **kwargs
):
4365 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4366 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4368 def base_OnEndDocument(*args
, **kwargs
):
4369 """base_OnEndDocument(self)"""
4370 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4372 def base_OnBeginPrinting(*args
, **kwargs
):
4373 """base_OnBeginPrinting(self)"""
4374 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4376 def base_OnEndPrinting(*args
, **kwargs
):
4377 """base_OnEndPrinting(self)"""
4378 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4380 def base_OnPreparePrinting(*args
, **kwargs
):
4381 """base_OnPreparePrinting(self)"""
4382 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4384 def base_HasPage(*args
, **kwargs
):
4385 """base_HasPage(self, int page) -> bool"""
4386 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4388 def base_GetPageInfo(*args
, **kwargs
):
4389 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4390 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4393 class PrintoutPtr(Printout
):
4394 def __init__(self
, this
):
4396 if not hasattr(self
,"thisown"): self
.thisown
= 0
4397 self
.__class
__ = Printout
4398 _windows_
.Printout_swigregister(PrintoutPtr
)
4400 class PreviewCanvas(ScrolledWindow
):
4402 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4403 def __init__(self
, *args
, **kwargs
):
4405 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4406 Size size=DefaultSize, long style=0,
4407 String name=PreviewCanvasNameStr) -> PreviewCanvas
4409 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4410 self
.this
= newobj
.this
4413 self
._setOORInfo
(self
)
4416 class PreviewCanvasPtr(PreviewCanvas
):
4417 def __init__(self
, this
):
4419 if not hasattr(self
,"thisown"): self
.thisown
= 0
4420 self
.__class
__ = PreviewCanvas
4421 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4423 class PreviewFrame(Frame
):
4425 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4426 def __init__(self
, *args
, **kwargs
):
4428 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4429 Size size=DefaultSize,
4430 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4432 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4433 self
.this
= newobj
.this
4436 self
._setOORInfo
(self
)
4438 def Initialize(*args
, **kwargs
):
4439 """Initialize(self)"""
4440 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4442 def CreateControlBar(*args
, **kwargs
):
4443 """CreateControlBar(self)"""
4444 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4446 def CreateCanvas(*args
, **kwargs
):
4447 """CreateCanvas(self)"""
4448 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4450 def GetControlBar(*args
, **kwargs
):
4451 """GetControlBar(self) -> PreviewControlBar"""
4452 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4455 class PreviewFramePtr(PreviewFrame
):
4456 def __init__(self
, this
):
4458 if not hasattr(self
,"thisown"): self
.thisown
= 0
4459 self
.__class
__ = PreviewFrame
4460 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4462 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4463 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4464 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4465 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4466 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4467 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4468 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4469 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4470 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4471 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4472 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4473 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4474 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4475 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4476 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4477 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4478 class PreviewControlBar(Panel
):
4480 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4481 def __init__(self
, *args
, **kwargs
):
4483 __init__(self, PrintPreview preview, long buttons, Window parent,
4484 Point pos=DefaultPosition, Size size=DefaultSize,
4485 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4487 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4488 self
.this
= newobj
.this
4491 self
._setOORInfo
(self
)
4493 def GetZoomControl(*args
, **kwargs
):
4494 """GetZoomControl(self) -> int"""
4495 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4497 def SetZoomControl(*args
, **kwargs
):
4498 """SetZoomControl(self, int zoom)"""
4499 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4501 def GetPrintPreview(*args
, **kwargs
):
4502 """GetPrintPreview(self) -> PrintPreview"""
4503 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4505 def OnNext(*args
, **kwargs
):
4507 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4509 def OnPrevious(*args
, **kwargs
):
4510 """OnPrevious(self)"""
4511 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4513 def OnFirst(*args
, **kwargs
):
4515 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4517 def OnLast(*args
, **kwargs
):
4519 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4521 def OnGoto(*args
, **kwargs
):
4523 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4526 class PreviewControlBarPtr(PreviewControlBar
):
4527 def __init__(self
, this
):
4529 if not hasattr(self
,"thisown"): self
.thisown
= 0
4530 self
.__class
__ = PreviewControlBar
4531 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4533 class PrintPreview(_core
.Object
):
4535 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4536 def __init__(self
, *args
):
4538 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4539 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4541 newobj
= _windows_
.new_PrintPreview(*args
)
4542 self
.this
= newobj
.this
4545 def SetCurrentPage(*args
, **kwargs
):
4546 """SetCurrentPage(self, int pageNum) -> bool"""
4547 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4549 def GetCurrentPage(*args
, **kwargs
):
4550 """GetCurrentPage(self) -> int"""
4551 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4553 def SetPrintout(*args
, **kwargs
):
4554 """SetPrintout(self, Printout printout)"""
4555 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4557 def GetPrintout(*args
, **kwargs
):
4558 """GetPrintout(self) -> Printout"""
4559 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4561 def GetPrintoutForPrinting(*args
, **kwargs
):
4562 """GetPrintoutForPrinting(self) -> Printout"""
4563 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4565 def SetFrame(*args
, **kwargs
):
4566 """SetFrame(self, Frame frame)"""
4567 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4569 def SetCanvas(*args
, **kwargs
):
4570 """SetCanvas(self, PreviewCanvas canvas)"""
4571 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4573 def GetFrame(*args
, **kwargs
):
4574 """GetFrame(self) -> Frame"""
4575 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4577 def GetCanvas(*args
, **kwargs
):
4578 """GetCanvas(self) -> PreviewCanvas"""
4579 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4581 def PaintPage(*args
, **kwargs
):
4582 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4583 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4585 def DrawBlankPage(*args
, **kwargs
):
4586 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4587 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4589 def RenderPage(*args
, **kwargs
):
4590 """RenderPage(self, int pageNum) -> bool"""
4591 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4593 def AdjustScrollbars(*args
, **kwargs
):
4594 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4595 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4597 def GetPrintDialogData(*args
, **kwargs
):
4598 """GetPrintDialogData(self) -> PrintDialogData"""
4599 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4601 def SetZoom(*args
, **kwargs
):
4602 """SetZoom(self, int percent)"""
4603 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4605 def GetZoom(*args
, **kwargs
):
4606 """GetZoom(self) -> int"""
4607 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4609 def GetMaxPage(*args
, **kwargs
):
4610 """GetMaxPage(self) -> int"""
4611 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4613 def GetMinPage(*args
, **kwargs
):
4614 """GetMinPage(self) -> int"""
4615 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4617 def Ok(*args
, **kwargs
):
4618 """Ok(self) -> bool"""
4619 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4621 def SetOk(*args
, **kwargs
):
4622 """SetOk(self, bool ok)"""
4623 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4625 def Print(*args
, **kwargs
):
4626 """Print(self, bool interactive) -> bool"""
4627 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4629 def DetermineScaling(*args
, **kwargs
):
4630 """DetermineScaling(self)"""
4631 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4633 def __nonzero__(self
): return self
.Ok()
4635 class PrintPreviewPtr(PrintPreview
):
4636 def __init__(self
, this
):
4638 if not hasattr(self
,"thisown"): self
.thisown
= 0
4639 self
.__class
__ = PrintPreview
4640 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4642 class PyPrintPreview(PrintPreview
):
4644 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4645 def __init__(self
, *args
):
4647 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4648 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4650 newobj
= _windows_
.new_PyPrintPreview(*args
)
4651 self
.this
= newobj
.this
4654 self
._setCallbackInfo
(self
, PyPrintPreview
)
4656 def _setCallbackInfo(*args
, **kwargs
):
4657 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4658 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4660 def base_SetCurrentPage(*args
, **kwargs
):
4661 """base_SetCurrentPage(self, int pageNum) -> bool"""
4662 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4664 def base_PaintPage(*args
, **kwargs
):
4665 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4666 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4668 def base_DrawBlankPage(*args
, **kwargs
):
4669 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4670 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4672 def base_RenderPage(*args
, **kwargs
):
4673 """base_RenderPage(self, int pageNum) -> bool"""
4674 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4676 def base_SetZoom(*args
, **kwargs
):
4677 """base_SetZoom(self, int percent)"""
4678 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4680 def base_Print(*args
, **kwargs
):
4681 """base_Print(self, bool interactive) -> bool"""
4682 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4684 def base_DetermineScaling(*args
, **kwargs
):
4685 """base_DetermineScaling(self)"""
4686 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4689 class PyPrintPreviewPtr(PyPrintPreview
):
4690 def __init__(self
, this
):
4692 if not hasattr(self
,"thisown"): self
.thisown
= 0
4693 self
.__class
__ = PyPrintPreview
4694 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4696 class PyPreviewFrame(PreviewFrame
):
4698 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4699 def __init__(self
, *args
, **kwargs
):
4701 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4702 Size size=DefaultSize,
4703 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4705 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4706 self
.this
= newobj
.this
4709 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4711 def _setCallbackInfo(*args
, **kwargs
):
4712 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4713 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4715 def SetPreviewCanvas(*args
, **kwargs
):
4716 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4717 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4719 def SetControlBar(*args
, **kwargs
):
4720 """SetControlBar(self, PreviewControlBar bar)"""
4721 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4723 def base_Initialize(*args
, **kwargs
):
4724 """base_Initialize(self)"""
4725 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4727 def base_CreateCanvas(*args
, **kwargs
):
4728 """base_CreateCanvas(self)"""
4729 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4731 def base_CreateControlBar(*args
, **kwargs
):
4732 """base_CreateControlBar(self)"""
4733 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4736 class PyPreviewFramePtr(PyPreviewFrame
):
4737 def __init__(self
, this
):
4739 if not hasattr(self
,"thisown"): self
.thisown
= 0
4740 self
.__class
__ = PyPreviewFrame
4741 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4743 class PyPreviewControlBar(PreviewControlBar
):
4745 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4746 def __init__(self
, *args
, **kwargs
):
4748 __init__(self, PrintPreview preview, long buttons, Window parent,
4749 Point pos=DefaultPosition, Size size=DefaultSize,
4750 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4752 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4753 self
.this
= newobj
.this
4756 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4758 def _setCallbackInfo(*args
, **kwargs
):
4759 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4760 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4762 def SetPrintPreview(*args
, **kwargs
):
4763 """SetPrintPreview(self, PrintPreview preview)"""
4764 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4766 def base_CreateButtons(*args
, **kwargs
):
4767 """base_CreateButtons(self)"""
4768 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4770 def base_SetZoomControl(*args
, **kwargs
):
4771 """base_SetZoomControl(self, int zoom)"""
4772 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4775 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4776 def __init__(self
, this
):
4778 if not hasattr(self
,"thisown"): self
.thisown
= 0
4779 self
.__class
__ = PyPreviewControlBar
4780 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)