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__(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(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
40 data to the dialog via validators.
42 return _windows
.Panel_InitDialog(*args
, **kwargs
)
45 class PanelPtr(Panel
):
46 def __init__(self
, this
):
48 if not hasattr(self
,"thisown"): self
.thisown
= 0
49 self
.__class
__ = Panel
50 _windows
.Panel_swigregister(PanelPtr
)
52 def PrePanel(*args
, **kwargs
):
53 """PrePanel() -> Panel"""
54 val
= _windows
.new_PrePanel(*args
, **kwargs
)
58 #---------------------------------------------------------------------------
60 class ScrolledWindow(Panel
):
62 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
63 def __init__(self
, *args
, **kwargs
):
65 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
66 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
67 String name=PanelNameStr) -> ScrolledWindow
69 newobj
= _windows
.new_ScrolledWindow(*args
, **kwargs
)
70 self
.this
= newobj
.this
73 self
._setOORInfo
(self
)
75 def Create(*args
, **kwargs
):
77 Create(Window parent, int id=-1, Point pos=DefaultPosition,
78 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
79 String name=PanelNameStr) -> bool
81 Create the GUI part of the Window for 2-phase creation mode.
83 return _windows
.ScrolledWindow_Create(*args
, **kwargs
)
85 def SetScrollbars(*args
, **kwargs
):
87 SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
88 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
90 return _windows
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
92 def Scroll(*args
, **kwargs
):
93 """Scroll(int x, int y)"""
94 return _windows
.ScrolledWindow_Scroll(*args
, **kwargs
)
96 def GetScrollPageSize(*args
, **kwargs
):
97 """GetScrollPageSize(int orient) -> int"""
98 return _windows
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
100 def SetScrollPageSize(*args
, **kwargs
):
101 """SetScrollPageSize(int orient, int pageSize)"""
102 return _windows
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
104 def SetScrollRate(*args
, **kwargs
):
105 """SetScrollRate(int xstep, int ystep)"""
106 return _windows
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
108 def GetScrollPixelsPerUnit(*args
, **kwargs
):
110 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
112 Get the size of one logical unit in physical units.
114 return _windows
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
116 def EnableScrolling(*args
, **kwargs
):
117 """EnableScrolling(bool x_scrolling, bool y_scrolling)"""
118 return _windows
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
120 def GetViewStart(*args
, **kwargs
):
122 GetViewStart() -> (x,y)
126 return _windows
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
128 def SetScale(*args
, **kwargs
):
129 """SetScale(double xs, double ys)"""
130 return _windows
.ScrolledWindow_SetScale(*args
, **kwargs
)
132 def GetScaleX(*args
, **kwargs
):
133 """GetScaleX() -> double"""
134 return _windows
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
136 def GetScaleY(*args
, **kwargs
):
137 """GetScaleY() -> double"""
138 return _windows
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
140 def CalcScrolledPosition(*args
):
142 CalcScrolledPosition(Point pt) -> Point
143 CalcScrolledPosition(int x, int y) -> (sx, sy)
145 Translate between scrolled and unscrolled coordinates.
147 return _windows
.ScrolledWindow_CalcScrolledPosition(*args
)
149 def CalcUnscrolledPosition(*args
):
151 CalcUnscrolledPosition(Point pt) -> Point
152 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
154 Translate between scrolled and unscrolled coordinates.
156 return _windows
.ScrolledWindow_CalcUnscrolledPosition(*args
)
158 def AdjustScrollbars(*args
, **kwargs
):
159 """AdjustScrollbars()"""
160 return _windows
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
162 def CalcScrollInc(*args
, **kwargs
):
163 """CalcScrollInc(ScrollWinEvent event) -> int"""
164 return _windows
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
166 def SetTargetWindow(*args
, **kwargs
):
167 """SetTargetWindow(Window target)"""
168 return _windows
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
170 def GetTargetWindow(*args
, **kwargs
):
171 """GetTargetWindow() -> Window"""
172 return _windows
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
175 class ScrolledWindowPtr(ScrolledWindow
):
176 def __init__(self
, this
):
178 if not hasattr(self
,"thisown"): self
.thisown
= 0
179 self
.__class
__ = ScrolledWindow
180 _windows
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
182 def PreScrolledWindow(*args
, **kwargs
):
183 """PreScrolledWindow() -> ScrolledWindow"""
184 val
= _windows
.new_PreScrolledWindow(*args
, **kwargs
)
188 #---------------------------------------------------------------------------
190 STAY_ON_TOP
= _windows
.STAY_ON_TOP
191 ICONIZE
= _windows
.ICONIZE
192 MINIMIZE
= _windows
.MINIMIZE
193 MAXIMIZE
= _windows
.MAXIMIZE
194 CLOSE_BOX
= _windows
.CLOSE_BOX
195 THICK_FRAME
= _windows
.THICK_FRAME
196 SYSTEM_MENU
= _windows
.SYSTEM_MENU
197 MINIMIZE_BOX
= _windows
.MINIMIZE_BOX
198 MAXIMIZE_BOX
= _windows
.MAXIMIZE_BOX
199 TINY_CAPTION_HORIZ
= _windows
.TINY_CAPTION_HORIZ
200 TINY_CAPTION_VERT
= _windows
.TINY_CAPTION_VERT
201 RESIZE_BOX
= _windows
.RESIZE_BOX
202 RESIZE_BORDER
= _windows
.RESIZE_BORDER
203 DIALOG_NO_PARENT
= _windows
.DIALOG_NO_PARENT
204 DEFAULT_FRAME_STYLE
= _windows
.DEFAULT_FRAME_STYLE
205 DEFAULT_DIALOG_STYLE
= _windows
.DEFAULT_DIALOG_STYLE
206 FRAME_TOOL_WINDOW
= _windows
.FRAME_TOOL_WINDOW
207 FRAME_FLOAT_ON_PARENT
= _windows
.FRAME_FLOAT_ON_PARENT
208 FRAME_NO_WINDOW_MENU
= _windows
.FRAME_NO_WINDOW_MENU
209 FRAME_NO_TASKBAR
= _windows
.FRAME_NO_TASKBAR
210 FRAME_SHAPED
= _windows
.FRAME_SHAPED
211 FULLSCREEN_NOMENUBAR
= _windows
.FULLSCREEN_NOMENUBAR
212 FULLSCREEN_NOTOOLBAR
= _windows
.FULLSCREEN_NOTOOLBAR
213 FULLSCREEN_NOSTATUSBAR
= _windows
.FULLSCREEN_NOSTATUSBAR
214 FULLSCREEN_NOBORDER
= _windows
.FULLSCREEN_NOBORDER
215 FULLSCREEN_NOCAPTION
= _windows
.FULLSCREEN_NOCAPTION
216 FULLSCREEN_ALL
= _windows
.FULLSCREEN_ALL
217 TOPLEVEL_EX_DIALOG
= _windows
.TOPLEVEL_EX_DIALOG
218 class TopLevelWindow(core
.Window
):
219 def __init__(self
): raise RuntimeError, "No constructor defined"
221 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
222 def Maximize(*args
, **kwargs
):
223 """Maximize(bool maximize=True)"""
224 return _windows
.TopLevelWindow_Maximize(*args
, **kwargs
)
226 def Restore(*args
, **kwargs
):
228 return _windows
.TopLevelWindow_Restore(*args
, **kwargs
)
230 def Iconize(*args
, **kwargs
):
231 """Iconize(bool iconize=True)"""
232 return _windows
.TopLevelWindow_Iconize(*args
, **kwargs
)
234 def IsMaximized(*args
, **kwargs
):
235 """IsMaximized() -> bool"""
236 return _windows
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
238 def IsIconized(*args
, **kwargs
):
239 """IsIconized() -> bool"""
240 return _windows
.TopLevelWindow_IsIconized(*args
, **kwargs
)
242 def GetIcon(*args
, **kwargs
):
243 """GetIcon() -> Icon"""
244 return _windows
.TopLevelWindow_GetIcon(*args
, **kwargs
)
246 def SetIcon(*args
, **kwargs
):
247 """SetIcon(Icon icon)"""
248 return _windows
.TopLevelWindow_SetIcon(*args
, **kwargs
)
250 def SetIcons(*args
, **kwargs
):
251 """SetIcons(wxIconBundle icons)"""
252 return _windows
.TopLevelWindow_SetIcons(*args
, **kwargs
)
254 def ShowFullScreen(*args
, **kwargs
):
255 """ShowFullScreen(bool show, long style=FULLSCREEN_ALL) -> bool"""
256 return _windows
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
258 def IsFullScreen(*args
, **kwargs
):
259 """IsFullScreen() -> bool"""
260 return _windows
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
262 def SetTitle(*args
, **kwargs
):
264 SetTitle(String title)
266 Sets the window's title. Applicable only to frames and dialogs.
268 return _windows
.TopLevelWindow_SetTitle(*args
, **kwargs
)
270 def GetTitle(*args
, **kwargs
):
274 Gets the window's title. Applicable only to frames and dialogs.
276 return _windows
.TopLevelWindow_GetTitle(*args
, **kwargs
)
278 def SetShape(*args
, **kwargs
):
279 """SetShape(Region region) -> bool"""
280 return _windows
.TopLevelWindow_SetShape(*args
, **kwargs
)
283 class TopLevelWindowPtr(TopLevelWindow
):
284 def __init__(self
, this
):
286 if not hasattr(self
,"thisown"): self
.thisown
= 0
287 self
.__class
__ = TopLevelWindow
288 _windows
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
290 FrameNameStr
= cvar
.FrameNameStr
291 DialogNameStr
= cvar
.DialogNameStr
292 StatusLineNameStr
= cvar
.StatusLineNameStr
293 ToolBarNameStr
= cvar
.ToolBarNameStr
295 #---------------------------------------------------------------------------
297 class Frame(TopLevelWindow
):
299 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
300 def __init__(self
, *args
, **kwargs
):
302 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
303 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
304 String name=FrameNameStr) -> Frame
306 newobj
= _windows
.new_Frame(*args
, **kwargs
)
307 self
.this
= newobj
.this
310 self
._setOORInfo
(self
)
312 def Create(*args
, **kwargs
):
314 Create(Window parent, int id, String title, Point pos=DefaultPosition,
315 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
316 String name=FrameNameStr) -> bool
318 return _windows
.Frame_Create(*args
, **kwargs
)
320 def GetClientAreaOrigin(*args
, **kwargs
):
322 GetClientAreaOrigin() -> Point
324 Get the origin of the client area of the window relative to the
325 window's top left corner (the client area may be shifted because of
326 the borders, scrollbars, other decorations...)
328 return _windows
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
330 def SendSizeEvent(*args
, **kwargs
):
331 """SendSizeEvent()"""
332 return _windows
.Frame_SendSizeEvent(*args
, **kwargs
)
334 def SetMenuBar(*args
, **kwargs
):
335 """SetMenuBar(MenuBar menubar)"""
336 return _windows
.Frame_SetMenuBar(*args
, **kwargs
)
338 def GetMenuBar(*args
, **kwargs
):
339 """GetMenuBar() -> MenuBar"""
340 return _windows
.Frame_GetMenuBar(*args
, **kwargs
)
342 def ProcessCommand(*args
, **kwargs
):
343 """ProcessCommand(int winid) -> bool"""
344 return _windows
.Frame_ProcessCommand(*args
, **kwargs
)
346 Command
= ProcessCommand
347 def CreateStatusBar(*args
, **kwargs
):
349 CreateStatusBar(int number=1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
350 int winid=0, String name=StatusLineNameStr) -> StatusBar
352 return _windows
.Frame_CreateStatusBar(*args
, **kwargs
)
354 def GetStatusBar(*args
, **kwargs
):
355 """GetStatusBar() -> StatusBar"""
356 return _windows
.Frame_GetStatusBar(*args
, **kwargs
)
358 def SetStatusBar(*args
, **kwargs
):
359 """SetStatusBar(StatusBar statBar)"""
360 return _windows
.Frame_SetStatusBar(*args
, **kwargs
)
362 def SetStatusText(*args
, **kwargs
):
363 """SetStatusText(String text, int number=0)"""
364 return _windows
.Frame_SetStatusText(*args
, **kwargs
)
366 def SetStatusWidths(*args
, **kwargs
):
367 """SetStatusWidths(int widths, int widths_field)"""
368 return _windows
.Frame_SetStatusWidths(*args
, **kwargs
)
370 def PushStatusText(*args
, **kwargs
):
371 """PushStatusText(String text, int number=0)"""
372 return _windows
.Frame_PushStatusText(*args
, **kwargs
)
374 def PopStatusText(*args
, **kwargs
):
375 """PopStatusText(int number=0)"""
376 return _windows
.Frame_PopStatusText(*args
, **kwargs
)
378 def SetStatusBarPane(*args
, **kwargs
):
379 """SetStatusBarPane(int n)"""
380 return _windows
.Frame_SetStatusBarPane(*args
, **kwargs
)
382 def GetStatusBarPane(*args
, **kwargs
):
383 """GetStatusBarPane() -> int"""
384 return _windows
.Frame_GetStatusBarPane(*args
, **kwargs
)
386 def CreateToolBar(*args
, **kwargs
):
387 """CreateToolBar(long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
388 return _windows
.Frame_CreateToolBar(*args
, **kwargs
)
390 def GetToolBar(*args
, **kwargs
):
391 """GetToolBar() -> wxToolBar"""
392 return _windows
.Frame_GetToolBar(*args
, **kwargs
)
394 def SetToolBar(*args
, **kwargs
):
395 """SetToolBar(wxToolBar toolbar)"""
396 return _windows
.Frame_SetToolBar(*args
, **kwargs
)
398 def DoGiveHelp(*args
, **kwargs
):
399 """DoGiveHelp(String text, bool show)"""
400 return _windows
.Frame_DoGiveHelp(*args
, **kwargs
)
402 def DoMenuUpdates(*args
, **kwargs
):
403 """DoMenuUpdates(Menu menu=None)"""
404 return _windows
.Frame_DoMenuUpdates(*args
, **kwargs
)
407 class FramePtr(Frame
):
408 def __init__(self
, this
):
410 if not hasattr(self
,"thisown"): self
.thisown
= 0
411 self
.__class
__ = Frame
412 _windows
.Frame_swigregister(FramePtr
)
414 def PreFrame(*args
, **kwargs
):
415 """PreFrame() -> Frame"""
416 val
= _windows
.new_PreFrame(*args
, **kwargs
)
420 #---------------------------------------------------------------------------
422 class Dialog(TopLevelWindow
):
424 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
425 def __init__(self
, *args
, **kwargs
):
427 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
428 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
429 String name=DialogNameStr) -> Dialog
431 newobj
= _windows
.new_Dialog(*args
, **kwargs
)
432 self
.this
= newobj
.this
435 self
._setOORInfo
(self
)
437 def Create(*args
, **kwargs
):
439 Create(Window parent, int id, String title, Point pos=DefaultPosition,
440 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
441 String name=DialogNameStr) -> bool
443 return _windows
.Dialog_Create(*args
, **kwargs
)
445 def SetReturnCode(*args
, **kwargs
):
446 """SetReturnCode(int returnCode)"""
447 return _windows
.Dialog_SetReturnCode(*args
, **kwargs
)
449 def GetReturnCode(*args
, **kwargs
):
450 """GetReturnCode() -> int"""
451 return _windows
.Dialog_GetReturnCode(*args
, **kwargs
)
453 def CreateTextSizer(*args
, **kwargs
):
454 """CreateTextSizer(String message) -> Sizer"""
455 return _windows
.Dialog_CreateTextSizer(*args
, **kwargs
)
457 def CreateButtonSizer(*args
, **kwargs
):
458 """CreateButtonSizer(long flags) -> Sizer"""
459 return _windows
.Dialog_CreateButtonSizer(*args
, **kwargs
)
461 def IsModal(*args
, **kwargs
):
462 """IsModal() -> bool"""
463 return _windows
.Dialog_IsModal(*args
, **kwargs
)
465 def ShowModal(*args
, **kwargs
):
466 """ShowModal() -> int"""
467 return _windows
.Dialog_ShowModal(*args
, **kwargs
)
469 def EndModal(*args
, **kwargs
):
470 """EndModal(int retCode)"""
471 return _windows
.Dialog_EndModal(*args
, **kwargs
)
473 def IsModalShowing(*args
, **kwargs
):
474 """IsModalShowing() -> bool"""
475 return _windows
.Dialog_IsModalShowing(*args
, **kwargs
)
478 class DialogPtr(Dialog
):
479 def __init__(self
, this
):
481 if not hasattr(self
,"thisown"): self
.thisown
= 0
482 self
.__class
__ = Dialog
483 _windows
.Dialog_swigregister(DialogPtr
)
485 def PreDialog(*args
, **kwargs
):
486 """PreDialog() -> Dialog"""
487 val
= _windows
.new_PreDialog(*args
, **kwargs
)
491 #---------------------------------------------------------------------------
493 class MiniFrame(Frame
):
495 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
496 def __init__(self
, *args
, **kwargs
):
498 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
499 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
500 String name=FrameNameStr) -> MiniFrame
502 newobj
= _windows
.new_MiniFrame(*args
, **kwargs
)
503 self
.this
= newobj
.this
506 self
._setOORInfo
(self
)
508 def Create(*args
, **kwargs
):
510 Create(Window parent, int id, String title, Point pos=DefaultPosition,
511 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
512 String name=FrameNameStr) -> bool
514 return _windows
.MiniFrame_Create(*args
, **kwargs
)
517 class MiniFramePtr(MiniFrame
):
518 def __init__(self
, this
):
520 if not hasattr(self
,"thisown"): self
.thisown
= 0
521 self
.__class
__ = MiniFrame
522 _windows
.MiniFrame_swigregister(MiniFramePtr
)
524 def PreMiniFrame(*args
, **kwargs
):
525 """PreMiniFrame() -> MiniFrame"""
526 val
= _windows
.new_PreMiniFrame(*args
, **kwargs
)
530 #---------------------------------------------------------------------------
532 SPLASH_CENTRE_ON_PARENT
= _windows
.SPLASH_CENTRE_ON_PARENT
533 SPLASH_CENTRE_ON_SCREEN
= _windows
.SPLASH_CENTRE_ON_SCREEN
534 SPLASH_NO_CENTRE
= _windows
.SPLASH_NO_CENTRE
535 SPLASH_TIMEOUT
= _windows
.SPLASH_TIMEOUT
536 SPLASH_NO_TIMEOUT
= _windows
.SPLASH_NO_TIMEOUT
537 class SplashScreenWindow(core
.Window
):
539 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
540 def __init__(self
, *args
, **kwargs
):
542 __init__(Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
543 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
545 newobj
= _windows
.new_SplashScreenWindow(*args
, **kwargs
)
546 self
.this
= newobj
.this
549 self
._setOORInfo
(self
)
551 def SetBitmap(*args
, **kwargs
):
552 """SetBitmap(Bitmap bitmap)"""
553 return _windows
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
555 def GetBitmap(*args
, **kwargs
):
556 """GetBitmap() -> Bitmap"""
557 return _windows
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
560 class SplashScreenWindowPtr(SplashScreenWindow
):
561 def __init__(self
, this
):
563 if not hasattr(self
,"thisown"): self
.thisown
= 0
564 self
.__class
__ = SplashScreenWindow
565 _windows
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
567 class SplashScreen(Frame
):
569 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
570 def __init__(self
, *args
, **kwargs
):
572 __init__(Bitmap bitmap, long splashStyle, int milliseconds,
573 Window parent, int id, Point pos=DefaultPosition,
574 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
576 newobj
= _windows
.new_SplashScreen(*args
, **kwargs
)
577 self
.this
= newobj
.this
580 self
._setOORInfo
(self
)
582 def GetSplashStyle(*args
, **kwargs
):
583 """GetSplashStyle() -> long"""
584 return _windows
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
586 def GetSplashWindow(*args
, **kwargs
):
587 """GetSplashWindow() -> SplashScreenWindow"""
588 return _windows
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
590 def GetTimeout(*args
, **kwargs
):
591 """GetTimeout() -> int"""
592 return _windows
.SplashScreen_GetTimeout(*args
, **kwargs
)
595 class SplashScreenPtr(SplashScreen
):
596 def __init__(self
, this
):
598 if not hasattr(self
,"thisown"): self
.thisown
= 0
599 self
.__class
__ = SplashScreen
600 _windows
.SplashScreen_swigregister(SplashScreenPtr
)
602 #---------------------------------------------------------------------------
604 class StatusBar(core
.Window
):
606 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
607 def __init__(self
, *args
, **kwargs
):
609 __init__(Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
610 String name=StatusLineNameStr) -> StatusBar
612 newobj
= _windows
.new_StatusBar(*args
, **kwargs
)
613 self
.this
= newobj
.this
616 self
._setOORInfo
(self
)
618 def Create(*args
, **kwargs
):
619 """Create(Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
620 return _windows
.StatusBar_Create(*args
, **kwargs
)
622 def SetFieldsCount(*args
, **kwargs
):
623 """SetFieldsCount(int number=1)"""
624 return _windows
.StatusBar_SetFieldsCount(*args
, **kwargs
)
626 def GetFieldsCount(*args
, **kwargs
):
627 """GetFieldsCount() -> int"""
628 return _windows
.StatusBar_GetFieldsCount(*args
, **kwargs
)
630 def SetStatusText(*args
, **kwargs
):
631 """SetStatusText(String text, int number=0)"""
632 return _windows
.StatusBar_SetStatusText(*args
, **kwargs
)
634 def GetStatusText(*args
, **kwargs
):
635 """GetStatusText(int number=0) -> String"""
636 return _windows
.StatusBar_GetStatusText(*args
, **kwargs
)
638 def PushStatusText(*args
, **kwargs
):
639 """PushStatusText(String text, int number=0)"""
640 return _windows
.StatusBar_PushStatusText(*args
, **kwargs
)
642 def PopStatusText(*args
, **kwargs
):
643 """PopStatusText(int number=0)"""
644 return _windows
.StatusBar_PopStatusText(*args
, **kwargs
)
646 def SetStatusWidths(*args
, **kwargs
):
647 """SetStatusWidths(int widths, int widths_field)"""
648 return _windows
.StatusBar_SetStatusWidths(*args
, **kwargs
)
650 def GetFieldRect(*args
, **kwargs
):
651 """GetFieldRect(int i) -> Rect"""
652 return _windows
.StatusBar_GetFieldRect(*args
, **kwargs
)
654 def SetMinHeight(*args
, **kwargs
):
655 """SetMinHeight(int height)"""
656 return _windows
.StatusBar_SetMinHeight(*args
, **kwargs
)
658 def GetBorderX(*args
, **kwargs
):
659 """GetBorderX() -> int"""
660 return _windows
.StatusBar_GetBorderX(*args
, **kwargs
)
662 def GetBorderY(*args
, **kwargs
):
663 """GetBorderY() -> int"""
664 return _windows
.StatusBar_GetBorderY(*args
, **kwargs
)
667 class StatusBarPtr(StatusBar
):
668 def __init__(self
, this
):
670 if not hasattr(self
,"thisown"): self
.thisown
= 0
671 self
.__class
__ = StatusBar
672 _windows
.StatusBar_swigregister(StatusBarPtr
)
674 def PreStatusBar(*args
, **kwargs
):
675 """PreStatusBar() -> StatusBar"""
676 val
= _windows
.new_PreStatusBar(*args
, **kwargs
)
680 #---------------------------------------------------------------------------
682 SP_NOBORDER
= _windows
.SP_NOBORDER
683 SP_NOSASH
= _windows
.SP_NOSASH
684 SP_PERMIT_UNSPLIT
= _windows
.SP_PERMIT_UNSPLIT
685 SP_LIVE_UPDATE
= _windows
.SP_LIVE_UPDATE
686 SP_3DSASH
= _windows
.SP_3DSASH
687 SP_3DBORDER
= _windows
.SP_3DBORDER
688 SP_NO_XP_THEME
= _windows
.SP_NO_XP_THEME
689 SP_BORDER
= _windows
.SP_BORDER
690 SP_3D
= _windows
.SP_3D
691 SPLIT_HORIZONTAL
= _windows
.SPLIT_HORIZONTAL
692 SPLIT_VERTICAL
= _windows
.SPLIT_VERTICAL
693 SPLIT_DRAG_NONE
= _windows
.SPLIT_DRAG_NONE
694 SPLIT_DRAG_DRAGGING
= _windows
.SPLIT_DRAG_DRAGGING
695 SPLIT_DRAG_LEFT_DOWN
= _windows
.SPLIT_DRAG_LEFT_DOWN
696 class SplitterWindow(core
.Window
):
698 wx.SplitterWindow manages up to two subwindows or panes,
699 with an optional vertical or horizontal split which can be
700 used with the mouse or programmatically.
704 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
705 def __init__(self
, *args
, **kwargs
):
707 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
708 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
710 Constructor. Creates and shows a SplitterWindow.
712 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
713 newobj
= _windows
.new_SplitterWindow(*args
, **kwargs
)
714 self
.this
= newobj
.this
717 self
._setOORInfo
(self
)
719 def Create(*args
, **kwargs
):
721 Create(Window parent, int id=-1, Point pos=DefaultPosition,
722 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
724 Create the GUI part of the SplitterWindow for the 2-phase create.
726 return _windows
.SplitterWindow_Create(*args
, **kwargs
)
728 def GetWindow1(*args
, **kwargs
):
730 GetWindow1() -> Window
732 Gets the only or left/top pane.
734 return _windows
.SplitterWindow_GetWindow1(*args
, **kwargs
)
736 def GetWindow2(*args
, **kwargs
):
738 GetWindow2() -> Window
740 Gets the right/bottom pane.
742 return _windows
.SplitterWindow_GetWindow2(*args
, **kwargs
)
744 def SetSplitMode(*args
, **kwargs
):
746 SetSplitMode(int mode)
748 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
749 wx.SPLIT_HORIZONTAL. This only sets the internal variable;
750 does not update the display.
752 return _windows
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
754 def GetSplitMode(*args
, **kwargs
):
756 GetSplitMode() -> int
760 return _windows
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
762 def Initialize(*args
, **kwargs
):
764 Initialize(Window window)
766 Initializes the splitter window to have one pane. This
767 should be called if you wish to initially view only a single
768 pane in the splitter window.
770 return _windows
.SplitterWindow_Initialize(*args
, **kwargs
)
772 def SplitVertically(*args
, **kwargs
):
774 SplitVertically(Window window1, Window window2, int sashPosition=0) -> bool
776 Initializes the left and right panes of the splitter window.
778 window1 The left pane.
779 window2 The right pane.
780 sashPosition The initial position of the sash. If this
781 value is positive, it specifies the size
782 of the left pane. If it is negative, it is
783 absolute value gives the size of the right
784 pane. Finally, specify 0 (default) to
785 choose the default position (half of the
788 Returns True if successful, False otherwise (the window was
791 SplitVertically should be called if you wish to initially
792 view two panes. It can also be called at any subsequent
793 time, but the application should check that the window is
794 not currently split using IsSplit.
796 return _windows
.SplitterWindow_SplitVertically(*args
, **kwargs
)
798 def SplitHorizontally(*args
, **kwargs
):
800 SplitHorizontally(Window window1, Window window2, int sashPosition=0) -> bool
802 Initializes the top and bottom panes of the splitter window.
804 window1 The top pane.
805 window2 The bottom pane.
806 sashPosition The initial position of the sash. If this
807 value is positive, it specifies the size
808 of the upper pane. If it is negative, it
809 is absolute value gives the size of the
810 lower pane. Finally, specify 0 (default)
811 to choose the default position (half of
812 the total window height).
814 Returns True if successful, False otherwise (the window was
817 SplitHorizontally should be called if you wish to initially
818 view two panes. It can also be called at any subsequent
819 time, but the application should check that the window is
820 not currently split using IsSplit.
822 return _windows
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
824 def Unsplit(*args
, **kwargs
):
826 Unsplit(Window toRemove=None) -> bool
828 Unsplits the window. Pass the pane to remove, or None to
829 remove the right or bottom pane. Returns True if
830 successful, False otherwise (the window was not split).
832 This function will not actually delete the pane being
833 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
834 for the desired behaviour. By default, the pane being
835 removed is only hidden.
837 return _windows
.SplitterWindow_Unsplit(*args
, **kwargs
)
839 def ReplaceWindow(*args
, **kwargs
):
841 ReplaceWindow(Window winOld, Window winNew) -> bool
843 This function replaces one of the windows managed by the
844 SplitterWindow with another one. It is in general better to
845 use it instead of calling Unsplit() and then resplitting the
846 window back because it will provoke much less flicker. It is
847 valid to call this function whether the splitter has two
850 Both parameters should be non-None and winOld must specify
851 one of the windows managed by the splitter. If the
852 parameters are incorrect or the window couldn't be replaced,
853 False is returned. Otherwise the function will return True,
854 but please notice that it will not Destroy the replaced
855 window and you may wish to do it yourself.
857 return _windows
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
859 def UpdateSize(*args
, **kwargs
):
863 Causes any pending sizing of the sash and child panes to
864 take place immediately.
866 Such resizing normally takes place in idle time, in order to
867 wait for layout to be completed. However, this can cause
868 unacceptable flicker as the panes are resized after the
869 window has been shown. To work around this, you can perform
870 window layout (for example by sending a size event to the
871 parent window), and then call this function, before showing
872 the top-level window.
874 return _windows
.SplitterWindow_UpdateSize(*args
, **kwargs
)
876 def IsSplit(*args
, **kwargs
):
882 return _windows
.SplitterWindow_IsSplit(*args
, **kwargs
)
884 def SetSashSize(*args
, **kwargs
):
886 SetSashSize(int width)
890 return _windows
.SplitterWindow_SetSashSize(*args
, **kwargs
)
892 def SetBorderSize(*args
, **kwargs
):
894 SetBorderSize(int width)
898 return _windows
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
900 def GetSashSize(*args
, **kwargs
):
906 return _windows
.SplitterWindow_GetSashSize(*args
, **kwargs
)
908 def GetBorderSize(*args
, **kwargs
):
910 GetBorderSize() -> int
914 return _windows
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
916 def SetSashPosition(*args
, **kwargs
):
918 SetSashPosition(int position, bool redraw=True)
920 Sets the sash position, in pixels. If redraw is Ttrue then
921 the panes are resized and the sash and border are redrawn.
923 return _windows
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
925 def GetSashPosition(*args
, **kwargs
):
927 GetSashPosition() -> int
929 Returns the surrent sash position.
931 return _windows
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
933 def SetMinimumPaneSize(*args
, **kwargs
):
935 SetMinimumPaneSize(int min)
937 Sets the minimum pane size in pixels.
939 The default minimum pane size is zero, which means that
940 either pane can be reduced to zero by dragging the sash,
941 thus removing one of the panes. To prevent this behaviour (and
942 veto out-of-range sash dragging), set a minimum size,
943 for example 20 pixels. If the wx.SP_PERMIT_UNSPLIT style is
944 used when a splitter window is created, the window may be
945 unsplit even if minimum size is non-zero.
947 return _windows
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
949 def GetMinimumPaneSize(*args
, **kwargs
):
951 GetMinimumPaneSize() -> int
953 Gets the minimum pane size in pixels.
955 return _windows
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
957 def SashHitTest(*args
, **kwargs
):
959 SashHitTest(int x, int y, int tolerance=5) -> bool
961 Tests for x, y over the sash
963 return _windows
.SplitterWindow_SashHitTest(*args
, **kwargs
)
965 def SizeWindows(*args
, **kwargs
):
971 return _windows
.SplitterWindow_SizeWindows(*args
, **kwargs
)
973 def SetNeedUpdating(*args
, **kwargs
):
974 """SetNeedUpdating(bool needUpdating)"""
975 return _windows
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
977 def GetNeedUpdating(*args
, **kwargs
):
978 """GetNeedUpdating() -> bool"""
979 return _windows
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
982 class SplitterWindowPtr(SplitterWindow
):
983 def __init__(self
, this
):
985 if not hasattr(self
,"thisown"): self
.thisown
= 0
986 self
.__class
__ = SplitterWindow
987 _windows
.SplitterWindow_swigregister(SplitterWindowPtr
)
988 SplitterNameStr
= cvar
.SplitterNameStr
990 def PreSplitterWindow(*args
, **kwargs
):
992 PreSplitterWindow() -> SplitterWindow
994 Precreate a SplitterWindow for 2-phase creation.
996 val
= _windows
.new_PreSplitterWindow(*args
, **kwargs
)
1000 class SplitterEvent(core
.NotifyEvent
):
1001 """This class represents the events generated by a splitter control."""
1003 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1004 def __init__(self
, *args
, **kwargs
):
1006 __init__(wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1008 This class represents the events generated by a splitter control.
1010 newobj
= _windows
.new_SplitterEvent(*args
, **kwargs
)
1011 self
.this
= newobj
.this
1014 def SetSashPosition(*args
, **kwargs
):
1016 SetSashPosition(int pos)
1018 This funciton is only meaningful during
1019 EVT_SPLITTER_SASH_POS_CHANGING and
1020 EVT_SPLITTER_SASH_POS_CHANGED events. In the case of
1021 _CHANGED events, sets the the new sash position. In the case
1022 of _CHANGING events, sets the new tracking bar position so
1023 visual feedback during dragging will represent that change
1024 that will actually take place. Set to -1 from the event
1025 handler code to prevent repositioning.
1027 return _windows
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1029 def GetSashPosition(*args
, **kwargs
):
1031 GetSashPosition() -> int
1033 Returns the new sash position while in
1034 EVT_SPLITTER_SASH_POS_CHANGING and
1035 EVT_SPLITTER_SASH_POS_CHANGED events.
1037 return _windows
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1039 def GetWindowBeingRemoved(*args
, **kwargs
):
1041 GetWindowBeingRemoved() -> Window
1043 Returns a pointer to the window being removed when a
1044 splitter window is unsplit.
1046 return _windows
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1048 def GetX(*args
, **kwargs
):
1052 Returns the x coordinate of the double-click point in a
1053 EVT_SPLITTER_DCLICK event.
1055 return _windows
.SplitterEvent_GetX(*args
, **kwargs
)
1057 def GetY(*args
, **kwargs
):
1061 Returns the y coordinate of the double-click point in a
1062 EVT_SPLITTER_DCLICK event.
1064 return _windows
.SplitterEvent_GetY(*args
, **kwargs
)
1067 class SplitterEventPtr(SplitterEvent
):
1068 def __init__(self
, this
):
1070 if not hasattr(self
,"thisown"): self
.thisown
= 0
1071 self
.__class
__ = SplitterEvent
1072 _windows
.SplitterEvent_swigregister(SplitterEventPtr
)
1074 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1075 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1076 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1077 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1078 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1079 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1080 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1081 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1082 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1084 #---------------------------------------------------------------------------
1086 SASH_DRAG_NONE
= _windows
.SASH_DRAG_NONE
1087 SASH_DRAG_DRAGGING
= _windows
.SASH_DRAG_DRAGGING
1088 SASH_DRAG_LEFT_DOWN
= _windows
.SASH_DRAG_LEFT_DOWN
1089 SW_NOBORDER
= _windows
.SW_NOBORDER
1090 SW_BORDER
= _windows
.SW_BORDER
1091 SW_3DSASH
= _windows
.SW_3DSASH
1092 SW_3DBORDER
= _windows
.SW_3DBORDER
1093 SW_3D
= _windows
.SW_3D
1094 SASH_TOP
= _windows
.SASH_TOP
1095 SASH_RIGHT
= _windows
.SASH_RIGHT
1096 SASH_BOTTOM
= _windows
.SASH_BOTTOM
1097 SASH_LEFT
= _windows
.SASH_LEFT
1098 SASH_NONE
= _windows
.SASH_NONE
1099 class SashWindow(core
.Window
):
1101 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1102 def __init__(self
, *args
, **kwargs
):
1104 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1105 long style=wxCLIP_CHILDREN|wxSW_3D,
1106 String name=SashNameStr) -> SashWindow
1108 newobj
= _windows
.new_SashWindow(*args
, **kwargs
)
1109 self
.this
= newobj
.this
1112 self
._setOORInfo
(self
)
1114 def Create(*args
, **kwargs
):
1116 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1117 long style=wxCLIP_CHILDREN|wxSW_3D,
1118 String name=SashNameStr) -> bool
1120 return _windows
.SashWindow_Create(*args
, **kwargs
)
1122 def SetSashVisible(*args
, **kwargs
):
1123 """SetSashVisible(int edge, bool sash)"""
1124 return _windows
.SashWindow_SetSashVisible(*args
, **kwargs
)
1126 def GetSashVisible(*args
, **kwargs
):
1127 """GetSashVisible(int edge) -> bool"""
1128 return _windows
.SashWindow_GetSashVisible(*args
, **kwargs
)
1130 def SetSashBorder(*args
, **kwargs
):
1131 """SetSashBorder(int edge, bool border)"""
1132 return _windows
.SashWindow_SetSashBorder(*args
, **kwargs
)
1134 def HasBorder(*args
, **kwargs
):
1135 """HasBorder(int edge) -> bool"""
1136 return _windows
.SashWindow_HasBorder(*args
, **kwargs
)
1138 def GetEdgeMargin(*args
, **kwargs
):
1139 """GetEdgeMargin(int edge) -> int"""
1140 return _windows
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1142 def SetDefaultBorderSize(*args
, **kwargs
):
1143 """SetDefaultBorderSize(int width)"""
1144 return _windows
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1146 def GetDefaultBorderSize(*args
, **kwargs
):
1147 """GetDefaultBorderSize() -> int"""
1148 return _windows
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1150 def SetExtraBorderSize(*args
, **kwargs
):
1151 """SetExtraBorderSize(int width)"""
1152 return _windows
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1154 def GetExtraBorderSize(*args
, **kwargs
):
1155 """GetExtraBorderSize() -> int"""
1156 return _windows
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1158 def SetMinimumSizeX(*args
, **kwargs
):
1159 """SetMinimumSizeX(int min)"""
1160 return _windows
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1162 def SetMinimumSizeY(*args
, **kwargs
):
1163 """SetMinimumSizeY(int min)"""
1164 return _windows
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1166 def GetMinimumSizeX(*args
, **kwargs
):
1167 """GetMinimumSizeX() -> int"""
1168 return _windows
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1170 def GetMinimumSizeY(*args
, **kwargs
):
1171 """GetMinimumSizeY() -> int"""
1172 return _windows
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1174 def SetMaximumSizeX(*args
, **kwargs
):
1175 """SetMaximumSizeX(int max)"""
1176 return _windows
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1178 def SetMaximumSizeY(*args
, **kwargs
):
1179 """SetMaximumSizeY(int max)"""
1180 return _windows
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1182 def GetMaximumSizeX(*args
, **kwargs
):
1183 """GetMaximumSizeX() -> int"""
1184 return _windows
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1186 def GetMaximumSizeY(*args
, **kwargs
):
1187 """GetMaximumSizeY() -> int"""
1188 return _windows
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1190 def SashHitTest(*args
, **kwargs
):
1191 """SashHitTest(int x, int y, int tolerance=2) -> int"""
1192 return _windows
.SashWindow_SashHitTest(*args
, **kwargs
)
1194 def SizeWindows(*args
, **kwargs
):
1196 return _windows
.SashWindow_SizeWindows(*args
, **kwargs
)
1199 class SashWindowPtr(SashWindow
):
1200 def __init__(self
, this
):
1202 if not hasattr(self
,"thisown"): self
.thisown
= 0
1203 self
.__class
__ = SashWindow
1204 _windows
.SashWindow_swigregister(SashWindowPtr
)
1205 SashNameStr
= cvar
.SashNameStr
1206 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1208 def PreSashWindow(*args
, **kwargs
):
1209 """PreSashWindow() -> SashWindow"""
1210 val
= _windows
.new_PreSashWindow(*args
, **kwargs
)
1214 SASH_STATUS_OK
= _windows
.SASH_STATUS_OK
1215 SASH_STATUS_OUT_OF_RANGE
= _windows
.SASH_STATUS_OUT_OF_RANGE
1216 class SashEvent(core
.CommandEvent
):
1218 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1219 def __init__(self
, *args
, **kwargs
):
1220 """__init__(int id=0, int edge=SASH_NONE) -> SashEvent"""
1221 newobj
= _windows
.new_SashEvent(*args
, **kwargs
)
1222 self
.this
= newobj
.this
1225 def SetEdge(*args
, **kwargs
):
1226 """SetEdge(int edge)"""
1227 return _windows
.SashEvent_SetEdge(*args
, **kwargs
)
1229 def GetEdge(*args
, **kwargs
):
1230 """GetEdge() -> int"""
1231 return _windows
.SashEvent_GetEdge(*args
, **kwargs
)
1233 def SetDragRect(*args
, **kwargs
):
1234 """SetDragRect(Rect rect)"""
1235 return _windows
.SashEvent_SetDragRect(*args
, **kwargs
)
1237 def GetDragRect(*args
, **kwargs
):
1238 """GetDragRect() -> Rect"""
1239 return _windows
.SashEvent_GetDragRect(*args
, **kwargs
)
1241 def SetDragStatus(*args
, **kwargs
):
1242 """SetDragStatus(int status)"""
1243 return _windows
.SashEvent_SetDragStatus(*args
, **kwargs
)
1245 def GetDragStatus(*args
, **kwargs
):
1246 """GetDragStatus() -> int"""
1247 return _windows
.SashEvent_GetDragStatus(*args
, **kwargs
)
1250 class SashEventPtr(SashEvent
):
1251 def __init__(self
, this
):
1253 if not hasattr(self
,"thisown"): self
.thisown
= 0
1254 self
.__class
__ = SashEvent
1255 _windows
.SashEvent_swigregister(SashEventPtr
)
1257 wxEVT_SASH_DRAGGED
= _windows
.wxEVT_SASH_DRAGGED
1258 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1259 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1261 #---------------------------------------------------------------------------
1263 LAYOUT_HORIZONTAL
= _windows
.LAYOUT_HORIZONTAL
1264 LAYOUT_VERTICAL
= _windows
.LAYOUT_VERTICAL
1265 LAYOUT_NONE
= _windows
.LAYOUT_NONE
1266 LAYOUT_TOP
= _windows
.LAYOUT_TOP
1267 LAYOUT_LEFT
= _windows
.LAYOUT_LEFT
1268 LAYOUT_RIGHT
= _windows
.LAYOUT_RIGHT
1269 LAYOUT_BOTTOM
= _windows
.LAYOUT_BOTTOM
1270 LAYOUT_LENGTH_Y
= _windows
.LAYOUT_LENGTH_Y
1271 LAYOUT_LENGTH_X
= _windows
.LAYOUT_LENGTH_X
1272 LAYOUT_MRU_LENGTH
= _windows
.LAYOUT_MRU_LENGTH
1273 LAYOUT_QUERY
= _windows
.LAYOUT_QUERY
1274 wxEVT_QUERY_LAYOUT_INFO
= _windows
.wxEVT_QUERY_LAYOUT_INFO
1275 wxEVT_CALCULATE_LAYOUT
= _windows
.wxEVT_CALCULATE_LAYOUT
1276 class QueryLayoutInfoEvent(core
.Event
):
1278 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1279 def __init__(self
, *args
, **kwargs
):
1280 """__init__(int id=0) -> QueryLayoutInfoEvent"""
1281 newobj
= _windows
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1282 self
.this
= newobj
.this
1285 def SetRequestedLength(*args
, **kwargs
):
1286 """SetRequestedLength(int length)"""
1287 return _windows
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1289 def GetRequestedLength(*args
, **kwargs
):
1290 """GetRequestedLength() -> int"""
1291 return _windows
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1293 def SetFlags(*args
, **kwargs
):
1294 """SetFlags(int flags)"""
1295 return _windows
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1297 def GetFlags(*args
, **kwargs
):
1298 """GetFlags() -> int"""
1299 return _windows
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1301 def SetSize(*args
, **kwargs
):
1302 """SetSize(Size size)"""
1303 return _windows
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1305 def GetSize(*args
, **kwargs
):
1306 """GetSize() -> Size"""
1307 return _windows
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1309 def SetOrientation(*args
, **kwargs
):
1310 """SetOrientation(int orient)"""
1311 return _windows
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1313 def GetOrientation(*args
, **kwargs
):
1314 """GetOrientation() -> int"""
1315 return _windows
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1317 def SetAlignment(*args
, **kwargs
):
1318 """SetAlignment(int align)"""
1319 return _windows
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1321 def GetAlignment(*args
, **kwargs
):
1322 """GetAlignment() -> int"""
1323 return _windows
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1326 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1327 def __init__(self
, this
):
1329 if not hasattr(self
,"thisown"): self
.thisown
= 0
1330 self
.__class
__ = QueryLayoutInfoEvent
1331 _windows
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1333 class CalculateLayoutEvent(core
.Event
):
1335 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1336 def __init__(self
, *args
, **kwargs
):
1337 """__init__(int id=0) -> CalculateLayoutEvent"""
1338 newobj
= _windows
.new_CalculateLayoutEvent(*args
, **kwargs
)
1339 self
.this
= newobj
.this
1342 def SetFlags(*args
, **kwargs
):
1343 """SetFlags(int flags)"""
1344 return _windows
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1346 def GetFlags(*args
, **kwargs
):
1347 """GetFlags() -> int"""
1348 return _windows
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1350 def SetRect(*args
, **kwargs
):
1351 """SetRect(Rect rect)"""
1352 return _windows
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1354 def GetRect(*args
, **kwargs
):
1355 """GetRect() -> Rect"""
1356 return _windows
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1359 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1360 def __init__(self
, this
):
1362 if not hasattr(self
,"thisown"): self
.thisown
= 0
1363 self
.__class
__ = CalculateLayoutEvent
1364 _windows
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1366 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1367 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1369 class SashLayoutWindow(SashWindow
):
1371 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1372 def __init__(self
, *args
, **kwargs
):
1374 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1375 long style=wxCLIP_CHILDREN|wxSW_3D,
1376 String name=SashLayoutNameStr) -> SashLayoutWindow
1378 newobj
= _windows
.new_SashLayoutWindow(*args
, **kwargs
)
1379 self
.this
= newobj
.this
1382 self
._setOORInfo
(self
)
1384 def Create(*args
, **kwargs
):
1386 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1387 long style=wxCLIP_CHILDREN|wxSW_3D,
1388 String name=SashLayoutNameStr) -> bool
1390 return _windows
.SashLayoutWindow_Create(*args
, **kwargs
)
1392 def GetAlignment(*args
, **kwargs
):
1393 """GetAlignment() -> int"""
1394 return _windows
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1396 def GetOrientation(*args
, **kwargs
):
1397 """GetOrientation() -> int"""
1398 return _windows
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1400 def SetAlignment(*args
, **kwargs
):
1401 """SetAlignment(int alignment)"""
1402 return _windows
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1404 def SetDefaultSize(*args
, **kwargs
):
1405 """SetDefaultSize(Size size)"""
1406 return _windows
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1408 def SetOrientation(*args
, **kwargs
):
1409 """SetOrientation(int orientation)"""
1410 return _windows
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1413 class SashLayoutWindowPtr(SashLayoutWindow
):
1414 def __init__(self
, this
):
1416 if not hasattr(self
,"thisown"): self
.thisown
= 0
1417 self
.__class
__ = SashLayoutWindow
1418 _windows
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1420 def PreSashLayoutWindow(*args
, **kwargs
):
1421 """PreSashLayoutWindow() -> SashLayoutWindow"""
1422 val
= _windows
.new_PreSashLayoutWindow(*args
, **kwargs
)
1426 class LayoutAlgorithm(core
.Object
):
1428 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1429 def __init__(self
, *args
, **kwargs
):
1430 """__init__() -> LayoutAlgorithm"""
1431 newobj
= _windows
.new_LayoutAlgorithm(*args
, **kwargs
)
1432 self
.this
= newobj
.this
1435 def __del__(self
, destroy
=_windows
.delete_LayoutAlgorithm
):
1438 if self
.thisown
: destroy(self
)
1441 def LayoutMDIFrame(*args
, **kwargs
):
1442 """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool"""
1443 return _windows
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1445 def LayoutFrame(*args
, **kwargs
):
1446 """LayoutFrame(Frame frame, Window mainWindow=None) -> bool"""
1447 return _windows
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1449 def LayoutWindow(*args
, **kwargs
):
1450 """LayoutWindow(Window parent, Window mainWindow=None) -> bool"""
1451 return _windows
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1454 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1455 def __init__(self
, this
):
1457 if not hasattr(self
,"thisown"): self
.thisown
= 0
1458 self
.__class
__ = LayoutAlgorithm
1459 _windows
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1461 #---------------------------------------------------------------------------
1463 class PopupWindow(core
.Window
):
1465 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1466 def __init__(self
, *args
, **kwargs
):
1467 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1468 newobj
= _windows
.new_PopupWindow(*args
, **kwargs
)
1469 self
.this
= newobj
.this
1472 self
._setOORInfo
(self
)
1474 def Create(*args
, **kwargs
):
1475 """Create(Window parent, int flags=BORDER_NONE) -> bool"""
1476 return _windows
.PopupWindow_Create(*args
, **kwargs
)
1478 def Position(*args
, **kwargs
):
1479 """Position(Point ptOrigin, Size size)"""
1480 return _windows
.PopupWindow_Position(*args
, **kwargs
)
1483 class PopupWindowPtr(PopupWindow
):
1484 def __init__(self
, this
):
1486 if not hasattr(self
,"thisown"): self
.thisown
= 0
1487 self
.__class
__ = PopupWindow
1488 _windows
.PopupWindow_swigregister(PopupWindowPtr
)
1490 def PrePopupWindow(*args
, **kwargs
):
1491 """PrePopupWindow() -> PopupWindow"""
1492 val
= _windows
.new_PrePopupWindow(*args
, **kwargs
)
1496 #---------------------------------------------------------------------------
1498 class PopupTransientWindow(PopupWindow
):
1500 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1501 def __init__(self
, *args
, **kwargs
):
1502 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1503 newobj
= _windows
.new_PopupTransientWindow(*args
, **kwargs
)
1504 self
.this
= newobj
.this
1507 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1509 def _setCallbackInfo(*args
, **kwargs
):
1510 """_setCallbackInfo(PyObject self, PyObject _class)"""
1511 return _windows
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1513 def Popup(*args
, **kwargs
):
1514 """Popup(Window focus=None)"""
1515 return _windows
.PopupTransientWindow_Popup(*args
, **kwargs
)
1517 def Dismiss(*args
, **kwargs
):
1519 return _windows
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1522 class PopupTransientWindowPtr(PopupTransientWindow
):
1523 def __init__(self
, this
):
1525 if not hasattr(self
,"thisown"): self
.thisown
= 0
1526 self
.__class
__ = PopupTransientWindow
1527 _windows
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1529 def PrePopupTransientWindow(*args
, **kwargs
):
1530 """PrePopupTransientWindow() -> PopupTransientWindow"""
1531 val
= _windows
.new_PrePopupTransientWindow(*args
, **kwargs
)
1535 #---------------------------------------------------------------------------
1537 class TipWindow(PopupTransientWindow
):
1539 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1540 def __init__(self
, *args
, **kwargs
):
1541 """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1542 newobj
= _windows
.new_TipWindow(*args
, **kwargs
)
1543 self
.this
= newobj
.this
1546 self
._setOORInfo
(self
)
1548 def SetBoundingRect(*args
, **kwargs
):
1549 """SetBoundingRect(Rect rectBound)"""
1550 return _windows
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1552 def Close(*args
, **kwargs
):
1554 return _windows
.TipWindow_Close(*args
, **kwargs
)
1557 class TipWindowPtr(TipWindow
):
1558 def __init__(self
, this
):
1560 if not hasattr(self
,"thisown"): self
.thisown
= 0
1561 self
.__class
__ = TipWindow
1562 _windows
.TipWindow_swigregister(TipWindowPtr
)
1564 #---------------------------------------------------------------------------
1566 class VScrolledWindow(Panel
):
1568 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1569 def __init__(self
, *args
, **kwargs
):
1571 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1572 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1574 newobj
= _windows
.new_VScrolledWindow(*args
, **kwargs
)
1575 self
.this
= newobj
.this
1578 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1580 def _setCallbackInfo(*args
, **kwargs
):
1581 """_setCallbackInfo(PyObject self, PyObject _class)"""
1582 return _windows
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1584 def Create(*args
, **kwargs
):
1586 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1587 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1589 return _windows
.VScrolledWindow_Create(*args
, **kwargs
)
1591 def SetLineCount(*args
, **kwargs
):
1592 """SetLineCount(size_t count)"""
1593 return _windows
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1595 def ScrollToLine(*args
, **kwargs
):
1596 """ScrollToLine(size_t line) -> bool"""
1597 return _windows
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1599 def ScrollLines(*args
, **kwargs
):
1601 ScrollLines(int lines) -> bool
1603 If the platform and window class supports it, scrolls the window by
1604 the given number of lines down, if lines is positive, or up if lines
1605 is negative. Returns True if the window was scrolled, False if it was
1606 already on top/bottom and nothing was done.
1608 return _windows
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1610 def ScrollPages(*args
, **kwargs
):
1612 ScrollPages(int pages) -> bool
1614 If the platform and window class supports it, scrolls the window by
1615 the given number of pages down, if pages is positive, or up if pages
1616 is negative. Returns True if the window was scrolled, False if it was
1617 already on top/bottom and nothing was done.
1619 return _windows
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1621 def RefreshLine(*args
, **kwargs
):
1622 """RefreshLine(size_t line)"""
1623 return _windows
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1625 def RefreshLines(*args
, **kwargs
):
1626 """RefreshLines(size_t from, size_t to)"""
1627 return _windows
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1629 def HitTestXT(*args
, **kwargs
):
1631 HitTestXT(int x, int y) -> int
1633 Test where the given (in client coords) point lies
1635 return _windows
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1637 def HitTest(*args
, **kwargs
):
1639 HitTest(Point pt) -> int
1641 Test where the given (in client coords) point lies
1643 return _windows
.VScrolledWindow_HitTest(*args
, **kwargs
)
1645 def RefreshAll(*args
, **kwargs
):
1647 return _windows
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1649 def GetLineCount(*args
, **kwargs
):
1650 """GetLineCount() -> size_t"""
1651 return _windows
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1653 def GetFirstVisibleLine(*args
, **kwargs
):
1654 """GetFirstVisibleLine() -> size_t"""
1655 return _windows
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1657 def GetLastVisibleLine(*args
, **kwargs
):
1658 """GetLastVisibleLine() -> size_t"""
1659 return _windows
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1661 def IsVisible(*args
, **kwargs
):
1662 """IsVisible(size_t line) -> bool"""
1663 return _windows
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1666 class VScrolledWindowPtr(VScrolledWindow
):
1667 def __init__(self
, this
):
1669 if not hasattr(self
,"thisown"): self
.thisown
= 0
1670 self
.__class
__ = VScrolledWindow
1671 _windows
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1673 def PreVScrolledWindow(*args
, **kwargs
):
1674 """PreVScrolledWindow() -> VScrolledWindow"""
1675 val
= _windows
.new_PreVScrolledWindow(*args
, **kwargs
)
1679 class VListBox(VScrolledWindow
):
1681 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1682 def __init__(self
, *args
, **kwargs
):
1684 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1685 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1687 newobj
= _windows
.new_VListBox(*args
, **kwargs
)
1688 self
.this
= newobj
.this
1691 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1693 def _setCallbackInfo(*args
, **kwargs
):
1694 """_setCallbackInfo(PyObject self, PyObject _class)"""
1695 return _windows
.VListBox__setCallbackInfo(*args
, **kwargs
)
1697 def Create(*args
, **kwargs
):
1699 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1700 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1702 return _windows
.VListBox_Create(*args
, **kwargs
)
1704 def GetItemCount(*args
, **kwargs
):
1705 """GetItemCount() -> size_t"""
1706 return _windows
.VListBox_GetItemCount(*args
, **kwargs
)
1708 def HasMultipleSelection(*args
, **kwargs
):
1709 """HasMultipleSelection() -> bool"""
1710 return _windows
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1712 def GetSelection(*args
, **kwargs
):
1713 """GetSelection() -> int"""
1714 return _windows
.VListBox_GetSelection(*args
, **kwargs
)
1716 def IsCurrent(*args
, **kwargs
):
1717 """IsCurrent(size_t item) -> bool"""
1718 return _windows
.VListBox_IsCurrent(*args
, **kwargs
)
1720 def IsSelected(*args
, **kwargs
):
1721 """IsSelected(size_t item) -> bool"""
1722 return _windows
.VListBox_IsSelected(*args
, **kwargs
)
1724 def GetSelectedCount(*args
, **kwargs
):
1725 """GetSelectedCount() -> size_t"""
1726 return _windows
.VListBox_GetSelectedCount(*args
, **kwargs
)
1728 def GetFirstSelected(*args
, **kwargs
):
1729 """GetFirstSelected(unsigned long cookie) -> int"""
1730 return _windows
.VListBox_GetFirstSelected(*args
, **kwargs
)
1732 def GetNextSelected(*args
, **kwargs
):
1733 """GetNextSelected(unsigned long cookie) -> int"""
1734 return _windows
.VListBox_GetNextSelected(*args
, **kwargs
)
1736 def GetMargins(*args
, **kwargs
):
1737 """GetMargins() -> Point"""
1738 return _windows
.VListBox_GetMargins(*args
, **kwargs
)
1740 def GetSelectionBackground(*args
, **kwargs
):
1741 """GetSelectionBackground() -> Colour"""
1742 return _windows
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1744 def SetItemCount(*args
, **kwargs
):
1745 """SetItemCount(size_t count)"""
1746 return _windows
.VListBox_SetItemCount(*args
, **kwargs
)
1748 def Clear(*args
, **kwargs
):
1750 return _windows
.VListBox_Clear(*args
, **kwargs
)
1752 def SetSelection(*args
, **kwargs
):
1753 """SetSelection(int selection)"""
1754 return _windows
.VListBox_SetSelection(*args
, **kwargs
)
1756 def Select(*args
, **kwargs
):
1757 """Select(size_t item, bool select=True) -> bool"""
1758 return _windows
.VListBox_Select(*args
, **kwargs
)
1760 def SelectRange(*args
, **kwargs
):
1761 """SelectRange(size_t from, size_t to) -> bool"""
1762 return _windows
.VListBox_SelectRange(*args
, **kwargs
)
1764 def Toggle(*args
, **kwargs
):
1765 """Toggle(size_t item)"""
1766 return _windows
.VListBox_Toggle(*args
, **kwargs
)
1768 def SelectAll(*args
, **kwargs
):
1769 """SelectAll() -> bool"""
1770 return _windows
.VListBox_SelectAll(*args
, **kwargs
)
1772 def DeselectAll(*args
, **kwargs
):
1773 """DeselectAll() -> bool"""
1774 return _windows
.VListBox_DeselectAll(*args
, **kwargs
)
1776 def SetMargins(*args
, **kwargs
):
1777 """SetMargins(Point pt)"""
1778 return _windows
.VListBox_SetMargins(*args
, **kwargs
)
1780 def SetMarginsXY(*args
, **kwargs
):
1781 """SetMarginsXY(int x, int y)"""
1782 return _windows
.VListBox_SetMarginsXY(*args
, **kwargs
)
1784 def SetSelectionBackground(*args
, **kwargs
):
1785 """SetSelectionBackground(Colour col)"""
1786 return _windows
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1789 class VListBoxPtr(VListBox
):
1790 def __init__(self
, this
):
1792 if not hasattr(self
,"thisown"): self
.thisown
= 0
1793 self
.__class
__ = VListBox
1794 _windows
.VListBox_swigregister(VListBoxPtr
)
1795 VListBoxNameStr
= cvar
.VListBoxNameStr
1797 def PreVListBox(*args
, **kwargs
):
1798 """PreVListBox() -> VListBox"""
1799 val
= _windows
.new_PreVListBox(*args
, **kwargs
)
1803 class HtmlListBox(VListBox
):
1805 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1806 def __init__(self
, *args
, **kwargs
):
1808 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1809 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1811 newobj
= _windows
.new_HtmlListBox(*args
, **kwargs
)
1812 self
.this
= newobj
.this
1815 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1817 def _setCallbackInfo(*args
, **kwargs
):
1818 """_setCallbackInfo(PyObject self, PyObject _class)"""
1819 return _windows
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1821 def Create(*args
, **kwargs
):
1823 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1824 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1826 return _windows
.HtmlListBox_Create(*args
, **kwargs
)
1828 def RefreshAll(*args
, **kwargs
):
1830 return _windows
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1832 def SetItemCount(*args
, **kwargs
):
1833 """SetItemCount(size_t count)"""
1834 return _windows
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1837 class HtmlListBoxPtr(HtmlListBox
):
1838 def __init__(self
, this
):
1840 if not hasattr(self
,"thisown"): self
.thisown
= 0
1841 self
.__class
__ = HtmlListBox
1842 _windows
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1844 def PreHtmlListBox(*args
, **kwargs
):
1845 """PreHtmlListBox() -> HtmlListBox"""
1846 val
= _windows
.new_PreHtmlListBox(*args
, **kwargs
)
1850 #---------------------------------------------------------------------------
1852 class TaskBarIcon(core
.EvtHandler
):
1854 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1855 def __init__(self
, *args
, **kwargs
):
1856 """__init__() -> TaskBarIcon"""
1857 newobj
= _windows
.new_TaskBarIcon(*args
, **kwargs
)
1858 self
.this
= newobj
.this
1861 def __del__(self
, destroy
=_windows
.delete_TaskBarIcon
):
1864 if self
.thisown
: destroy(self
)
1867 def Destroy(*args
, **kwargs
):
1871 Deletes the C++ object this Python object is a proxy for.
1873 return _windows
.TaskBarIcon_Destroy(*args
, **kwargs
)
1875 def IsOk(*args
, **kwargs
):
1876 """IsOk() -> bool"""
1877 return _windows
.TaskBarIcon_IsOk(*args
, **kwargs
)
1879 def __nonzero__(self
): return self
.IsOk()
1880 def IsIconInstalled(*args
, **kwargs
):
1881 """IsIconInstalled() -> bool"""
1882 return _windows
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
1884 def SetIcon(*args
, **kwargs
):
1885 """SetIcon(Icon icon, String tooltip=EmptyString) -> bool"""
1886 return _windows
.TaskBarIcon_SetIcon(*args
, **kwargs
)
1888 def RemoveIcon(*args
, **kwargs
):
1889 """RemoveIcon() -> bool"""
1890 return _windows
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
1892 def PopupMenu(*args
, **kwargs
):
1893 """PopupMenu(Menu menu) -> bool"""
1894 return _windows
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
1897 class TaskBarIconPtr(TaskBarIcon
):
1898 def __init__(self
, this
):
1900 if not hasattr(self
,"thisown"): self
.thisown
= 0
1901 self
.__class
__ = TaskBarIcon
1902 _windows
.TaskBarIcon_swigregister(TaskBarIconPtr
)
1904 class TaskBarIconEvent(core
.Event
):
1906 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1907 def __init__(self
, *args
, **kwargs
):
1908 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
1909 newobj
= _windows
.new_TaskBarIconEvent(*args
, **kwargs
)
1910 self
.this
= newobj
.this
1914 class TaskBarIconEventPtr(TaskBarIconEvent
):
1915 def __init__(self
, this
):
1917 if not hasattr(self
,"thisown"): self
.thisown
= 0
1918 self
.__class
__ = TaskBarIconEvent
1919 _windows
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
1921 wxEVT_TASKBAR_MOVE
= _windows
.wxEVT_TASKBAR_MOVE
1922 wxEVT_TASKBAR_LEFT_DOWN
= _windows
.wxEVT_TASKBAR_LEFT_DOWN
1923 wxEVT_TASKBAR_LEFT_UP
= _windows
.wxEVT_TASKBAR_LEFT_UP
1924 wxEVT_TASKBAR_RIGHT_DOWN
= _windows
.wxEVT_TASKBAR_RIGHT_DOWN
1925 wxEVT_TASKBAR_RIGHT_UP
= _windows
.wxEVT_TASKBAR_RIGHT_UP
1926 wxEVT_TASKBAR_LEFT_DCLICK
= _windows
.wxEVT_TASKBAR_LEFT_DCLICK
1927 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows
.wxEVT_TASKBAR_RIGHT_DCLICK
1928 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
1929 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
1930 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
1931 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
1932 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
1933 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
1934 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
1936 #---------------------------------------------------------------------------
1938 class ColourData(core
.Object
):
1939 """This class holds a variety of information related to colour dialogs."""
1941 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1942 def __init__(self
, *args
, **kwargs
):
1944 __init__() -> ColourData
1946 Constructor, sets default values.
1948 newobj
= _windows
.new_ColourData(*args
, **kwargs
)
1949 self
.this
= newobj
.this
1952 def __del__(self
, destroy
=_windows
.delete_ColourData
):
1955 if self
.thisown
: destroy(self
)
1958 def GetChooseFull(*args
, **kwargs
):
1960 GetChooseFull() -> bool
1962 Under Windows, determines whether the Windows colour dialog will display
1963 the full dialog with custom colour selection controls. Has no meaning
1964 under other platforms. The default value is true.
1966 return _windows
.ColourData_GetChooseFull(*args
, **kwargs
)
1968 def GetColour(*args
, **kwargs
):
1970 GetColour() -> Colour
1972 Gets the colour (pre)selected by the dialog.
1974 return _windows
.ColourData_GetColour(*args
, **kwargs
)
1976 def GetCustomColour(*args
, **kwargs
):
1978 GetCustomColour(int i) -> Colour
1980 Gets the i'th custom colour associated with the colour dialog. i should
1981 be an integer between 0 and 15. The default custom colours are all white.
1983 return _windows
.ColourData_GetCustomColour(*args
, **kwargs
)
1985 def SetChooseFull(*args
, **kwargs
):
1987 SetChooseFull(int flag)
1989 Under Windows, tells the Windows colour dialog to display the full dialog
1990 with custom colour selection controls. Under other platforms, has no effect.
1991 The default value is true.
1993 return _windows
.ColourData_SetChooseFull(*args
, **kwargs
)
1995 def SetColour(*args
, **kwargs
):
1997 SetColour(Colour colour)
1999 Sets the default colour for the colour dialog. The default colour is black.
2001 return _windows
.ColourData_SetColour(*args
, **kwargs
)
2003 def SetCustomColour(*args
, **kwargs
):
2005 SetCustomColour(int i, Colour colour)
2007 Sets the i'th custom colour for the colour dialog. i should be an integer
2008 between 0 and 15. The default custom colours are all white.
2010 return _windows
.ColourData_SetCustomColour(*args
, **kwargs
)
2013 class ColourDataPtr(ColourData
):
2014 def __init__(self
, this
):
2016 if not hasattr(self
,"thisown"): self
.thisown
= 0
2017 self
.__class
__ = ColourData
2018 _windows
.ColourData_swigregister(ColourDataPtr
)
2019 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2020 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2021 DirDialogNameStr
= cvar
.DirDialogNameStr
2022 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2023 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2024 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2026 class ColourDialog(Dialog
):
2027 """This class represents the colour chooser dialog."""
2029 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2030 def __init__(self
, *args
, **kwargs
):
2032 __init__(Window parent, ColourData data=None) -> ColourDialog
2034 Constructor. Pass a parent window, and optionally a ColourData, which
2035 will be copied to the colour dialog's internal ColourData instance.
2037 newobj
= _windows
.new_ColourDialog(*args
, **kwargs
)
2038 self
.this
= newobj
.this
2041 self
._setOORInfo
(self
)
2043 def GetColourData(*args
, **kwargs
):
2045 GetColourData() -> ColourData
2047 Returns a reference to the ColourData used by the dialog.
2049 return _windows
.ColourDialog_GetColourData(*args
, **kwargs
)
2052 class ColourDialogPtr(ColourDialog
):
2053 def __init__(self
, this
):
2055 if not hasattr(self
,"thisown"): self
.thisown
= 0
2056 self
.__class
__ = ColourDialog
2057 _windows
.ColourDialog_swigregister(ColourDialogPtr
)
2059 class DirDialog(Dialog
):
2060 """This class represents the directory chooser dialog."""
2062 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2063 def __init__(self
, *args
, **kwargs
):
2065 __init__(Window parent, String message=DirSelectorPromptStr,
2066 String defaultPath=EmptyString, long style=0,
2067 Point pos=DefaultPosition, Size size=DefaultSize,
2068 String name=DirDialogNameStr) -> DirDialog
2070 Constructor. Use ShowModal method to show the dialog.
2072 newobj
= _windows
.new_DirDialog(*args
, **kwargs
)
2073 self
.this
= newobj
.this
2076 self
._setOORInfo
(self
)
2078 def GetPath(*args
, **kwargs
):
2082 Returns the default or user-selected path.
2084 return _windows
.DirDialog_GetPath(*args
, **kwargs
)
2086 def GetMessage(*args
, **kwargs
):
2088 GetMessage() -> String
2090 Returns the message that will be displayed on the dialog.
2092 return _windows
.DirDialog_GetMessage(*args
, **kwargs
)
2094 def GetStyle(*args
, **kwargs
):
2098 Returns the dialog style.
2100 return _windows
.DirDialog_GetStyle(*args
, **kwargs
)
2102 def SetMessage(*args
, **kwargs
):
2104 SetMessage(String message)
2106 Sets the message that will be displayed on the dialog.
2108 return _windows
.DirDialog_SetMessage(*args
, **kwargs
)
2110 def SetPath(*args
, **kwargs
):
2112 SetPath(String path)
2114 Sets the default path.
2116 return _windows
.DirDialog_SetPath(*args
, **kwargs
)
2119 class DirDialogPtr(DirDialog
):
2120 def __init__(self
, this
):
2122 if not hasattr(self
,"thisown"): self
.thisown
= 0
2123 self
.__class
__ = DirDialog
2124 _windows
.DirDialog_swigregister(DirDialogPtr
)
2126 class FileDialog(Dialog
):
2127 """This class represents the file chooser dialog."""
2129 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2130 def __init__(self
, *args
, **kwargs
):
2132 __init__(Window parent, String message=FileSelectorPromptStr,
2133 String defaultDir=EmptyString, String defaultFile=EmptyString,
2134 String wildcard=FileSelectorDefaultWildcardStr,
2135 long style=0, Point pos=DefaultPosition) -> FileDialog
2137 Constructor. Use ShowModal method to show the dialog.
2139 newobj
= _windows
.new_FileDialog(*args
, **kwargs
)
2140 self
.this
= newobj
.this
2143 self
._setOORInfo
(self
)
2145 def SetMessage(*args
, **kwargs
):
2147 SetMessage(String message)
2149 Sets the message that will be displayed on the dialog.
2151 return _windows
.FileDialog_SetMessage(*args
, **kwargs
)
2153 def SetPath(*args
, **kwargs
):
2155 SetPath(String path)
2157 Sets the path (the combined directory and filename that will
2158 be returned when the dialog is dismissed).
2160 return _windows
.FileDialog_SetPath(*args
, **kwargs
)
2162 def SetDirectory(*args
, **kwargs
):
2164 SetDirectory(String dir)
2166 Sets the default directory.
2168 return _windows
.FileDialog_SetDirectory(*args
, **kwargs
)
2170 def SetFilename(*args
, **kwargs
):
2172 SetFilename(String name)
2174 Sets the default filename.
2176 return _windows
.FileDialog_SetFilename(*args
, **kwargs
)
2178 def SetWildcard(*args
, **kwargs
):
2180 SetWildcard(String wildCard)
2182 Sets the wildcard, which can contain multiple file types, for example:
2183 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2185 return _windows
.FileDialog_SetWildcard(*args
, **kwargs
)
2187 def SetStyle(*args
, **kwargs
):
2189 SetStyle(long style)
2191 Sets the dialog style.
2193 return _windows
.FileDialog_SetStyle(*args
, **kwargs
)
2195 def SetFilterIndex(*args
, **kwargs
):
2197 SetFilterIndex(int filterIndex)
2199 Sets the default filter index, starting from zero.
2201 return _windows
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2203 def GetMessage(*args
, **kwargs
):
2205 GetMessage() -> String
2207 Returns the message that will be displayed on the dialog.
2209 return _windows
.FileDialog_GetMessage(*args
, **kwargs
)
2211 def GetPath(*args
, **kwargs
):
2215 Returns the full path (directory and filename) of the selected file.
2217 return _windows
.FileDialog_GetPath(*args
, **kwargs
)
2219 def GetDirectory(*args
, **kwargs
):
2221 GetDirectory() -> String
2223 Returns the default directory.
2225 return _windows
.FileDialog_GetDirectory(*args
, **kwargs
)
2227 def GetFilename(*args
, **kwargs
):
2229 GetFilename() -> String
2231 Returns the default filename.
2233 return _windows
.FileDialog_GetFilename(*args
, **kwargs
)
2235 def GetWildcard(*args
, **kwargs
):
2237 GetWildcard() -> String
2239 Returns the file dialog wildcard.
2241 return _windows
.FileDialog_GetWildcard(*args
, **kwargs
)
2243 def GetStyle(*args
, **kwargs
):
2247 Returns the dialog style.
2249 return _windows
.FileDialog_GetStyle(*args
, **kwargs
)
2251 def GetFilterIndex(*args
, **kwargs
):
2253 GetFilterIndex() -> int
2255 Returns the index into the list of filters supplied, optionally, in
2256 the wildcard parameter. Before the dialog is shown, this is the index
2257 which will be used when the dialog is first displayed. After the dialog
2258 is shown, this is the index selected by the user.
2260 return _windows
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2262 def GetFilenames(*args
, **kwargs
):
2264 GetFilenames() -> PyObject
2266 Returns a list of filenames chosen in the dialog. This function should
2267 only be used with the dialogs which have wx.MULTIPLE style, use
2268 GetFilename for the others.
2270 return _windows
.FileDialog_GetFilenames(*args
, **kwargs
)
2272 def GetPaths(*args
, **kwargs
):
2274 GetPaths() -> PyObject
2276 Fills the array paths with the full paths of the files chosen. This
2277 function should only be used with the dialogs which have wx.MULTIPLE style,
2278 use GetPath for the others.
2280 return _windows
.FileDialog_GetPaths(*args
, **kwargs
)
2283 class FileDialogPtr(FileDialog
):
2284 def __init__(self
, this
):
2286 if not hasattr(self
,"thisown"): self
.thisown
= 0
2287 self
.__class
__ = FileDialog
2288 _windows
.FileDialog_swigregister(FileDialogPtr
)
2290 CHOICEDLG_STYLE
= _windows
.CHOICEDLG_STYLE
2291 class MultiChoiceDialog(Dialog
):
2292 """A simple dialog with a multi selection listbox."""
2294 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2295 def __init__(self
, *args
, **kwargs
):
2297 __init__(Window parent, String message, String caption,
2298 List choices=[], long style=CHOICEDLG_STYLE,
2299 Point pos=DefaultPosition) -> MultiChoiceDialog
2301 Constructor. Use ShowModal method to show the dialog.
2303 newobj
= _windows
.new_MultiChoiceDialog(*args
, **kwargs
)
2304 self
.this
= newobj
.this
2307 self
._setOORInfo
(self
)
2309 def SetSelections(*args
, **kwargs
):
2311 SetSelections(List selections)
2313 Specify the items in the list that shoudl be selected, using a list of integers.
2315 return _windows
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2317 def GetSelections(*args
, **kwargs
):
2319 GetSelections() -> [selections]
2321 Returns a list of integers representing the items that are selected.
2323 return _windows
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2326 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2327 def __init__(self
, this
):
2329 if not hasattr(self
,"thisown"): self
.thisown
= 0
2330 self
.__class
__ = MultiChoiceDialog
2331 _windows
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2333 class SingleChoiceDialog(Dialog
):
2334 """A simple dialog with a single selection listbox."""
2336 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2337 def __init__(self
, *args
, **kwargs
):
2339 __init__(Window parent, String message, String caption,
2340 List choices=[], long style=CHOICEDLG_STYLE,
2341 Point pos=DefaultPosition) -> SingleChoiceDialog
2343 Constructor. Use ShowModal method to show the dialog.
2345 newobj
= _windows
.new_SingleChoiceDialog(*args
, **kwargs
)
2346 self
.this
= newobj
.this
2349 self
._setOORInfo
(self
)
2351 def GetSelection(*args
, **kwargs
):
2353 GetSelection() -> int
2355 Get the index of teh currently selected item.
2357 return _windows
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2359 def GetStringSelection(*args
, **kwargs
):
2361 GetStringSelection() -> String
2363 Returns the string value of the currently selected item
2365 return _windows
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2367 def SetSelection(*args
, **kwargs
):
2369 SetSelection(int sel)
2371 Set the current selected item to sel
2373 return _windows
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2376 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2377 def __init__(self
, this
):
2379 if not hasattr(self
,"thisown"): self
.thisown
= 0
2380 self
.__class
__ = SingleChoiceDialog
2381 _windows
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2383 class TextEntryDialog(Dialog
):
2384 """A dialog with text control, [ok] and [cancel] buttons"""
2386 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2387 def __init__(self
, *args
, **kwargs
):
2389 __init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
2390 String defaultValue=EmptyString,
2391 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2393 Constructor. Use ShowModal method to show the dialog.
2395 newobj
= _windows
.new_TextEntryDialog(*args
, **kwargs
)
2396 self
.this
= newobj
.this
2399 self
._setOORInfo
(self
)
2401 def GetValue(*args
, **kwargs
):
2403 GetValue() -> String
2405 Returns the text that the user has entered if the user has pressed OK,
2406 or the original value if the user has pressed Cancel.
2408 return _windows
.TextEntryDialog_GetValue(*args
, **kwargs
)
2410 def SetValue(*args
, **kwargs
):
2412 SetValue(String value)
2414 Sets the default text value.
2416 return _windows
.TextEntryDialog_SetValue(*args
, **kwargs
)
2419 class TextEntryDialogPtr(TextEntryDialog
):
2420 def __init__(self
, this
):
2422 if not hasattr(self
,"thisown"): self
.thisown
= 0
2423 self
.__class
__ = TextEntryDialog
2424 _windows
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2426 class FontData(core
.Object
):
2427 """This class holds a variety of information related to font dialogs."""
2429 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2430 def __init__(self
, *args
, **kwargs
):
2432 __init__() -> FontData
2434 This class holds a variety of information related to font dialogs.
2436 newobj
= _windows
.new_FontData(*args
, **kwargs
)
2437 self
.this
= newobj
.this
2440 def __del__(self
, destroy
=_windows
.delete_FontData
):
2443 if self
.thisown
: destroy(self
)
2446 def EnableEffects(*args
, **kwargs
):
2448 EnableEffects(bool enable)
2450 Enables or disables 'effects' under MS Windows only. This refers
2451 to the controls for manipulating colour, strikeout and underline
2452 properties. The default value is true.
2454 return _windows
.FontData_EnableEffects(*args
, **kwargs
)
2456 def GetAllowSymbols(*args
, **kwargs
):
2458 GetAllowSymbols() -> bool
2460 Under MS Windows, returns a flag determining whether symbol fonts can be
2461 selected. Has no effect on other platforms. The default value is true.
2463 return _windows
.FontData_GetAllowSymbols(*args
, **kwargs
)
2465 def GetColour(*args
, **kwargs
):
2467 GetColour() -> Colour
2469 Gets the colour associated with the font dialog. The default value is black.
2471 return _windows
.FontData_GetColour(*args
, **kwargs
)
2473 def GetChosenFont(*args
, **kwargs
):
2475 GetChosenFont() -> Font
2477 Gets the font chosen by the user.
2479 return _windows
.FontData_GetChosenFont(*args
, **kwargs
)
2481 def GetEnableEffects(*args
, **kwargs
):
2483 GetEnableEffects() -> bool
2485 Determines whether 'effects' are enabled under Windows.
2487 return _windows
.FontData_GetEnableEffects(*args
, **kwargs
)
2489 def GetInitialFont(*args
, **kwargs
):
2491 GetInitialFont() -> Font
2493 Gets the font that will be initially used by the font dialog. This should have
2494 previously been set by the application.
2496 return _windows
.FontData_GetInitialFont(*args
, **kwargs
)
2498 def GetShowHelp(*args
, **kwargs
):
2500 GetShowHelp() -> bool
2502 Returns true if the Help button will be shown (Windows only). The default
2505 return _windows
.FontData_GetShowHelp(*args
, **kwargs
)
2507 def SetAllowSymbols(*args
, **kwargs
):
2509 SetAllowSymbols(bool allowSymbols)
2511 Under MS Windows, determines whether symbol fonts can be selected. Has no
2512 effect on other platforms. The default value is true.
2514 return _windows
.FontData_SetAllowSymbols(*args
, **kwargs
)
2516 def SetChosenFont(*args
, **kwargs
):
2518 SetChosenFont(Font font)
2520 Sets the font that will be returned to the user (for internal use only).
2522 return _windows
.FontData_SetChosenFont(*args
, **kwargs
)
2524 def SetColour(*args
, **kwargs
):
2526 SetColour(Colour colour)
2528 Sets the colour that will be used for the font foreground colour. The default
2531 return _windows
.FontData_SetColour(*args
, **kwargs
)
2533 def SetInitialFont(*args
, **kwargs
):
2535 SetInitialFont(Font font)
2537 Sets the font that will be initially used by the font dialog.
2539 return _windows
.FontData_SetInitialFont(*args
, **kwargs
)
2541 def SetRange(*args
, **kwargs
):
2543 SetRange(int min, int max)
2545 Sets the valid range for the font point size (Windows only). The default is
2546 0, 0 (unrestricted range).
2548 return _windows
.FontData_SetRange(*args
, **kwargs
)
2550 def SetShowHelp(*args
, **kwargs
):
2552 SetShowHelp(bool showHelp)
2554 Determines whether the Help button will be displayed in the font dialog
2555 (Windows only). The default value is false.
2557 return _windows
.FontData_SetShowHelp(*args
, **kwargs
)
2560 class FontDataPtr(FontData
):
2561 def __init__(self
, this
):
2563 if not hasattr(self
,"thisown"): self
.thisown
= 0
2564 self
.__class
__ = FontData
2565 _windows
.FontData_swigregister(FontDataPtr
)
2567 class FontDialog(Dialog
):
2568 """This class represents the font chooser dialog."""
2570 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2571 def __init__(self
, *args
, **kwargs
):
2573 __init__(Window parent, FontData data) -> FontDialog
2575 Constructor. Pass a parent window and the FontData object to be
2576 used to initialize the dialog controls.
2578 newobj
= _windows
.new_FontDialog(*args
, **kwargs
)
2579 self
.this
= newobj
.this
2582 self
._setOORInfo
(self
)
2584 def GetFontData(*args
, **kwargs
):
2586 GetFontData() -> FontData
2588 Returns a reference to the internal FontData used by the FontDialog.
2590 return _windows
.FontDialog_GetFontData(*args
, **kwargs
)
2593 class FontDialogPtr(FontDialog
):
2594 def __init__(self
, this
):
2596 if not hasattr(self
,"thisown"): self
.thisown
= 0
2597 self
.__class
__ = FontDialog
2598 _windows
.FontDialog_swigregister(FontDialogPtr
)
2600 class MessageDialog(Dialog
):
2602 This class provides a dialog that shows a single or multi-line message, with
2603 a choice of OK, Yes, No and Cancel buttons.
2606 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2607 def __init__(self
, *args
, **kwargs
):
2609 __init__(Window parent, String message, String caption=MessageBoxCaptionStr,
2610 long style=wxOK|wxCANCEL|wxCENTRE,
2611 Point pos=DefaultPosition) -> MessageDialog
2613 This class provides a dialog that shows a single or multi-line message, with
2614 a choice of OK, Yes, No and Cancel buttons.
2616 newobj
= _windows
.new_MessageDialog(*args
, **kwargs
)
2617 self
.this
= newobj
.this
2620 self
._setOORInfo
(self
)
2623 class MessageDialogPtr(MessageDialog
):
2624 def __init__(self
, this
):
2626 if not hasattr(self
,"thisown"): self
.thisown
= 0
2627 self
.__class
__ = MessageDialog
2628 _windows
.MessageDialog_swigregister(MessageDialogPtr
)
2630 class ProgressDialog(Frame
):
2632 A dialog that shows a short message and a progress bar. Optionally, it can
2633 display an ABORT button.
2636 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2637 def __init__(self
, *args
, **kwargs
):
2639 __init__(String title, String message, int maximum=100, Window parent=None,
2640 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2642 Constructor. Creates the dialog, displays it and disables user input for other
2643 windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only.
2645 newobj
= _windows
.new_ProgressDialog(*args
, **kwargs
)
2646 self
.this
= newobj
.this
2649 self
._setOORInfo
(self
)
2651 def Update(*args
, **kwargs
):
2653 Update(int value, String newmsg=EmptyString) -> bool
2655 Updates the dialog, setting the progress bar to the new value and, if given
2656 changes the message above it. Returns true unless the Cancel button has been
2659 If false is returned, the application can either immediately destroy the
2660 dialog or ask the user for the confirmation and if the abort is not confirmed
2661 the dialog may be resumed with Resume function.
2663 return _windows
.ProgressDialog_Update(*args
, **kwargs
)
2665 def Resume(*args
, **kwargs
):
2669 Can be used to continue with the dialog, after the user had chosen to abort.
2671 return _windows
.ProgressDialog_Resume(*args
, **kwargs
)
2674 class ProgressDialogPtr(ProgressDialog
):
2675 def __init__(self
, this
):
2677 if not hasattr(self
,"thisown"): self
.thisown
= 0
2678 self
.__class
__ = ProgressDialog
2679 _windows
.ProgressDialog_swigregister(ProgressDialogPtr
)
2681 FR_DOWN
= _windows
.FR_DOWN
2682 FR_WHOLEWORD
= _windows
.FR_WHOLEWORD
2683 FR_MATCHCASE
= _windows
.FR_MATCHCASE
2684 FR_REPLACEDIALOG
= _windows
.FR_REPLACEDIALOG
2685 FR_NOUPDOWN
= _windows
.FR_NOUPDOWN
2686 FR_NOMATCHCASE
= _windows
.FR_NOMATCHCASE
2687 FR_NOWHOLEWORD
= _windows
.FR_NOWHOLEWORD
2688 wxEVT_COMMAND_FIND
= _windows
.wxEVT_COMMAND_FIND
2689 wxEVT_COMMAND_FIND_NEXT
= _windows
.wxEVT_COMMAND_FIND_NEXT
2690 wxEVT_COMMAND_FIND_REPLACE
= _windows
.wxEVT_COMMAND_FIND_REPLACE
2691 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows
.wxEVT_COMMAND_FIND_REPLACE_ALL
2692 wxEVT_COMMAND_FIND_CLOSE
= _windows
.wxEVT_COMMAND_FIND_CLOSE
2693 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2694 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2695 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2696 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2697 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2699 # For backwards compatibility. Should they be removed?
2700 EVT_COMMAND_FIND
= EVT_FIND
2701 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2702 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2703 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2704 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2706 class FindDialogEvent(core
.CommandEvent
):
2707 """Events for the FindReplaceDialog"""
2709 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2710 def __init__(self
, *args
, **kwargs
):
2712 __init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2714 Events for the FindReplaceDialog
2716 newobj
= _windows
.new_FindDialogEvent(*args
, **kwargs
)
2717 self
.this
= newobj
.this
2720 def GetFlags(*args
, **kwargs
):
2724 Get the currently selected flags: this is the combination of
2725 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2727 return _windows
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2729 def GetFindString(*args
, **kwargs
):
2731 GetFindString() -> String
2733 Return the string to find (never empty).
2735 return _windows
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2737 def GetReplaceString(*args
, **kwargs
):
2739 GetReplaceString() -> String
2741 Return the string to replace the search string with (only
2742 for replace and replace all events).
2744 return _windows
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2746 def GetDialog(*args
, **kwargs
):
2748 GetDialog() -> FindReplaceDialog
2750 Return the pointer to the dialog which generated this event.
2752 return _windows
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2754 def SetFlags(*args
, **kwargs
):
2755 """SetFlags(int flags)"""
2756 return _windows
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2758 def SetFindString(*args
, **kwargs
):
2759 """SetFindString(String str)"""
2760 return _windows
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2762 def SetReplaceString(*args
, **kwargs
):
2763 """SetReplaceString(String str)"""
2764 return _windows
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2767 class FindDialogEventPtr(FindDialogEvent
):
2768 def __init__(self
, this
):
2770 if not hasattr(self
,"thisown"): self
.thisown
= 0
2771 self
.__class
__ = FindDialogEvent
2772 _windows
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2774 class FindReplaceData(core
.Object
):
2776 FindReplaceData holds the data for FindReplaceDialog. It is used to initialize
2777 the dialog with the default values and will keep the last values from the
2778 dialog when it is closed. It is also updated each time a wxFindDialogEvent is
2779 generated so instead of using the wxFindDialogEvent methods you can also
2780 directly query this object.
2782 Note that all SetXXX() methods may only be called before showing the dialog
2783 and calling them has no effect later.
2786 wxFR_DOWN: downward search/replace selected (otherwise, upwards)
2788 wxFR_WHOLEWORD: whole word search/replace selected
2790 wxFR_MATCHCASE: case sensitive search/replace selected (otherwise,
2795 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2796 def __init__(self
, *args
, **kwargs
):
2798 __init__(int flags=0) -> FindReplaceData
2800 Constuctor initializes the flags to default value (0).
2802 newobj
= _windows
.new_FindReplaceData(*args
, **kwargs
)
2803 self
.this
= newobj
.this
2806 def __del__(self
, destroy
=_windows
.delete_FindReplaceData
):
2809 if self
.thisown
: destroy(self
)
2812 def GetFindString(*args
, **kwargs
):
2814 GetFindString() -> String
2816 Get the string to find.
2818 return _windows
.FindReplaceData_GetFindString(*args
, **kwargs
)
2820 def GetReplaceString(*args
, **kwargs
):
2822 GetReplaceString() -> String
2824 Get the replacement string.
2826 return _windows
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2828 def GetFlags(*args
, **kwargs
):
2832 Get the combination of flag values.
2834 return _windows
.FindReplaceData_GetFlags(*args
, **kwargs
)
2836 def SetFlags(*args
, **kwargs
):
2840 Set the flags to use to initialize the controls of the dialog.
2842 return _windows
.FindReplaceData_SetFlags(*args
, **kwargs
)
2844 def SetFindString(*args
, **kwargs
):
2846 SetFindString(String str)
2848 Set the string to find (used as initial value by the dialog).
2850 return _windows
.FindReplaceData_SetFindString(*args
, **kwargs
)
2852 def SetReplaceString(*args
, **kwargs
):
2854 SetReplaceString(String str)
2856 Set the replacement string (used as initial value by the dialog).
2858 return _windows
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2861 class FindReplaceDataPtr(FindReplaceData
):
2862 def __init__(self
, this
):
2864 if not hasattr(self
,"thisown"): self
.thisown
= 0
2865 self
.__class
__ = FindReplaceData
2866 _windows
.FindReplaceData_swigregister(FindReplaceDataPtr
)
2868 class FindReplaceDialog(Dialog
):
2870 FindReplaceDialog is a standard modeless dialog which is used to allow the
2871 user to search for some text (and possibly replace it with something
2872 else). The actual searching is supposed to be done in the owner window which
2873 is the parent of this dialog. Note that it means that unlike for the other
2874 standard dialogs this one must have a parent window. Also note that there is
2875 no way to use this dialog in a modal way; it is always, by design and
2876 implementation, modeless.
2879 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2880 def __init__(self
, *args
, **kwargs
):
2882 __init__(Window parent, FindReplaceData data, String title,
2883 int style=0) -> FindReplaceDialog
2885 Create a FindReplaceDialog. The parent and data parameters must be
2886 non-None. Use Show to display the dialog.
2888 newobj
= _windows
.new_FindReplaceDialog(*args
, **kwargs
)
2889 self
.this
= newobj
.this
2892 self
._setOORInfo
(self
)
2894 def Create(*args
, **kwargs
):
2896 Create(Window parent, FindReplaceData data, String title,
2897 int style=0) -> bool
2899 Create the dialog, for 2-phase create.
2901 return _windows
.FindReplaceDialog_Create(*args
, **kwargs
)
2903 def GetData(*args
, **kwargs
):
2905 GetData() -> FindReplaceData
2907 Get the FindReplaceData object used by this dialog.
2909 return _windows
.FindReplaceDialog_GetData(*args
, **kwargs
)
2911 def SetData(*args
, **kwargs
):
2913 SetData(FindReplaceData data)
2915 Set the FindReplaceData object used by this dialog.
2917 return _windows
.FindReplaceDialog_SetData(*args
, **kwargs
)
2920 class FindReplaceDialogPtr(FindReplaceDialog
):
2921 def __init__(self
, this
):
2923 if not hasattr(self
,"thisown"): self
.thisown
= 0
2924 self
.__class
__ = FindReplaceDialog
2925 _windows
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
2927 def PreFindReplaceDialog(*args
, **kwargs
):
2929 PreFindReplaceDialog() -> FindReplaceDialog
2931 Precreate a FindReplaceDialog for 2-phase creation
2933 val
= _windows
.new_PreFindReplaceDialog(*args
, **kwargs
)
2937 #---------------------------------------------------------------------------
2939 IDM_WINDOWTILE
= _windows
.IDM_WINDOWTILE
2940 IDM_WINDOWTILEHOR
= _windows
.IDM_WINDOWTILEHOR
2941 IDM_WINDOWCASCADE
= _windows
.IDM_WINDOWCASCADE
2942 IDM_WINDOWICONS
= _windows
.IDM_WINDOWICONS
2943 IDM_WINDOWNEXT
= _windows
.IDM_WINDOWNEXT
2944 IDM_WINDOWTILEVERT
= _windows
.IDM_WINDOWTILEVERT
2945 FIRST_MDI_CHILD
= _windows
.FIRST_MDI_CHILD
2946 LAST_MDI_CHILD
= _windows
.LAST_MDI_CHILD
2947 class MDIParentFrame(Frame
):
2949 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2950 def __init__(self
, *args
, **kwargs
):
2952 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
2953 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2954 String name=FrameNameStr) -> MDIParentFrame
2956 newobj
= _windows
.new_MDIParentFrame(*args
, **kwargs
)
2957 self
.this
= newobj
.this
2960 self
._setOORInfo
(self
)
2962 def Create(*args
, **kwargs
):
2964 Create(Window parent, int id, String title, Point pos=DefaultPosition,
2965 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2966 String name=FrameNameStr) -> bool
2968 return _windows
.MDIParentFrame_Create(*args
, **kwargs
)
2970 def ActivateNext(*args
, **kwargs
):
2971 """ActivateNext()"""
2972 return _windows
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
2974 def ActivatePrevious(*args
, **kwargs
):
2975 """ActivatePrevious()"""
2976 return _windows
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
2978 def ArrangeIcons(*args
, **kwargs
):
2979 """ArrangeIcons()"""
2980 return _windows
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
2982 def Cascade(*args
, **kwargs
):
2984 return _windows
.MDIParentFrame_Cascade(*args
, **kwargs
)
2986 def GetActiveChild(*args
, **kwargs
):
2987 """GetActiveChild() -> MDIChildFrame"""
2988 return _windows
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
2990 def GetClientWindow(*args
, **kwargs
):
2991 """GetClientWindow() -> MDIClientWindow"""
2992 return _windows
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
2994 def GetToolBar(*args
, **kwargs
):
2995 """GetToolBar() -> Window"""
2996 return _windows
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
2998 def Tile(*args
, **kwargs
):
3000 return _windows
.MDIParentFrame_Tile(*args
, **kwargs
)
3003 class MDIParentFramePtr(MDIParentFrame
):
3004 def __init__(self
, this
):
3006 if not hasattr(self
,"thisown"): self
.thisown
= 0
3007 self
.__class
__ = MDIParentFrame
3008 _windows
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3010 def PreMDIParentFrame(*args
, **kwargs
):
3011 """PreMDIParentFrame() -> MDIParentFrame"""
3012 val
= _windows
.new_PreMDIParentFrame(*args
, **kwargs
)
3016 class MDIChildFrame(Frame
):
3018 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3019 def __init__(self
, *args
, **kwargs
):
3021 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3022 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3023 String name=FrameNameStr) -> MDIChildFrame
3025 newobj
= _windows
.new_MDIChildFrame(*args
, **kwargs
)
3026 self
.this
= newobj
.this
3029 self
._setOORInfo
(self
)
3031 def Create(*args
, **kwargs
):
3033 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3034 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3035 String name=FrameNameStr) -> bool
3037 return _windows
.MDIChildFrame_Create(*args
, **kwargs
)
3039 def Activate(*args
, **kwargs
):
3041 return _windows
.MDIChildFrame_Activate(*args
, **kwargs
)
3043 def Maximize(*args
, **kwargs
):
3044 """Maximize(bool maximize)"""
3045 return _windows
.MDIChildFrame_Maximize(*args
, **kwargs
)
3047 def Restore(*args
, **kwargs
):
3049 return _windows
.MDIChildFrame_Restore(*args
, **kwargs
)
3052 class MDIChildFramePtr(MDIChildFrame
):
3053 def __init__(self
, this
):
3055 if not hasattr(self
,"thisown"): self
.thisown
= 0
3056 self
.__class
__ = MDIChildFrame
3057 _windows
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3059 def PreMDIChildFrame(*args
, **kwargs
):
3060 """PreMDIChildFrame() -> MDIChildFrame"""
3061 val
= _windows
.new_PreMDIChildFrame(*args
, **kwargs
)
3065 class MDIClientWindow(core
.Window
):
3067 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3068 def __init__(self
, *args
, **kwargs
):
3069 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3070 newobj
= _windows
.new_MDIClientWindow(*args
, **kwargs
)
3071 self
.this
= newobj
.this
3074 self
._setOORInfo
(self
)
3076 def Create(*args
, **kwargs
):
3077 """Create(MDIParentFrame parent, long style=0) -> bool"""
3078 return _windows
.MDIClientWindow_Create(*args
, **kwargs
)
3081 class MDIClientWindowPtr(MDIClientWindow
):
3082 def __init__(self
, this
):
3084 if not hasattr(self
,"thisown"): self
.thisown
= 0
3085 self
.__class
__ = MDIClientWindow
3086 _windows
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3088 def PreMDIClientWindow(*args
, **kwargs
):
3089 """PreMDIClientWindow() -> MDIClientWindow"""
3090 val
= _windows
.new_PreMDIClientWindow(*args
, **kwargs
)
3094 #---------------------------------------------------------------------------
3096 class PyWindow(core
.Window
):
3098 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3099 def __init__(self
, *args
, **kwargs
):
3101 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3102 long style=0, String name=PanelNameStr) -> PyWindow
3104 newobj
= _windows
.new_PyWindow(*args
, **kwargs
)
3105 self
.this
= newobj
.this
3108 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3110 def _setCallbackInfo(*args
, **kwargs
):
3111 """_setCallbackInfo(PyObject self, PyObject _class)"""
3112 return _windows
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3114 def base_DoMoveWindow(*args
, **kwargs
):
3115 """base_DoMoveWindow(int x, int y, int width, int height)"""
3116 return _windows
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3118 def base_DoSetSize(*args
, **kwargs
):
3119 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3120 return _windows
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3122 def base_DoSetClientSize(*args
, **kwargs
):
3123 """base_DoSetClientSize(int width, int height)"""
3124 return _windows
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3126 def base_DoSetVirtualSize(*args
, **kwargs
):
3127 """base_DoSetVirtualSize(int x, int y)"""
3128 return _windows
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3130 def base_DoGetSize(*args
, **kwargs
):
3131 """base_DoGetSize() -> (width, height)"""
3132 return _windows
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3134 def base_DoGetClientSize(*args
, **kwargs
):
3135 """base_DoGetClientSize() -> (width, height)"""
3136 return _windows
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3138 def base_DoGetPosition(*args
, **kwargs
):
3139 """base_DoGetPosition() -> (x,y)"""
3140 return _windows
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3142 def base_DoGetVirtualSize(*args
, **kwargs
):
3143 """base_DoGetVirtualSize() -> Size"""
3144 return _windows
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3146 def base_DoGetBestSize(*args
, **kwargs
):
3147 """base_DoGetBestSize() -> Size"""
3148 return _windows
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3150 def base_InitDialog(*args
, **kwargs
):
3151 """base_InitDialog()"""
3152 return _windows
.PyWindow_base_InitDialog(*args
, **kwargs
)
3154 def base_TransferDataToWindow(*args
, **kwargs
):
3155 """base_TransferDataToWindow() -> bool"""
3156 return _windows
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3158 def base_TransferDataFromWindow(*args
, **kwargs
):
3159 """base_TransferDataFromWindow() -> bool"""
3160 return _windows
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3162 def base_Validate(*args
, **kwargs
):
3163 """base_Validate() -> bool"""
3164 return _windows
.PyWindow_base_Validate(*args
, **kwargs
)
3166 def base_AcceptsFocus(*args
, **kwargs
):
3167 """base_AcceptsFocus() -> bool"""
3168 return _windows
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3170 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3171 """base_AcceptsFocusFromKeyboard() -> bool"""
3172 return _windows
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3174 def base_GetMaxSize(*args
, **kwargs
):
3175 """base_GetMaxSize() -> Size"""
3176 return _windows
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3178 def base_AddChild(*args
, **kwargs
):
3179 """base_AddChild(Window child)"""
3180 return _windows
.PyWindow_base_AddChild(*args
, **kwargs
)
3182 def base_RemoveChild(*args
, **kwargs
):
3183 """base_RemoveChild(Window child)"""
3184 return _windows
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3186 def base_ShouldInheritColours(*args
, **kwargs
):
3187 """base_ShouldInheritColours() -> bool"""
3188 return _windows
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3190 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3191 """base_ApplyParentThemeBackground(Colour c)"""
3192 return _windows
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3195 class PyWindowPtr(PyWindow
):
3196 def __init__(self
, this
):
3198 if not hasattr(self
,"thisown"): self
.thisown
= 0
3199 self
.__class
__ = PyWindow
3200 _windows
.PyWindow_swigregister(PyWindowPtr
)
3202 def PrePyWindow(*args
, **kwargs
):
3203 """PrePyWindow() -> PyWindow"""
3204 val
= _windows
.new_PrePyWindow(*args
, **kwargs
)
3208 class PyPanel(Panel
):
3210 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3211 def __init__(self
, *args
, **kwargs
):
3213 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3214 long style=0, String name=PanelNameStr) -> PyPanel
3216 newobj
= _windows
.new_PyPanel(*args
, **kwargs
)
3217 self
.this
= newobj
.this
3220 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3222 def _setCallbackInfo(*args
, **kwargs
):
3223 """_setCallbackInfo(PyObject self, PyObject _class)"""
3224 return _windows
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3226 def base_DoMoveWindow(*args
, **kwargs
):
3227 """base_DoMoveWindow(int x, int y, int width, int height)"""
3228 return _windows
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3230 def base_DoSetSize(*args
, **kwargs
):
3231 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3232 return _windows
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3234 def base_DoSetClientSize(*args
, **kwargs
):
3235 """base_DoSetClientSize(int width, int height)"""
3236 return _windows
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3238 def base_DoSetVirtualSize(*args
, **kwargs
):
3239 """base_DoSetVirtualSize(int x, int y)"""
3240 return _windows
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3242 def base_DoGetSize(*args
, **kwargs
):
3243 """base_DoGetSize() -> (width, height)"""
3244 return _windows
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3246 def base_DoGetClientSize(*args
, **kwargs
):
3247 """base_DoGetClientSize() -> (width, height)"""
3248 return _windows
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3250 def base_DoGetPosition(*args
, **kwargs
):
3251 """base_DoGetPosition() -> (x,y)"""
3252 return _windows
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3254 def base_DoGetVirtualSize(*args
, **kwargs
):
3255 """base_DoGetVirtualSize() -> Size"""
3256 return _windows
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3258 def base_DoGetBestSize(*args
, **kwargs
):
3259 """base_DoGetBestSize() -> Size"""
3260 return _windows
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3262 def base_InitDialog(*args
, **kwargs
):
3263 """base_InitDialog()"""
3264 return _windows
.PyPanel_base_InitDialog(*args
, **kwargs
)
3266 def base_TransferDataToWindow(*args
, **kwargs
):
3267 """base_TransferDataToWindow() -> bool"""
3268 return _windows
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3270 def base_TransferDataFromWindow(*args
, **kwargs
):
3271 """base_TransferDataFromWindow() -> bool"""
3272 return _windows
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3274 def base_Validate(*args
, **kwargs
):
3275 """base_Validate() -> bool"""
3276 return _windows
.PyPanel_base_Validate(*args
, **kwargs
)
3278 def base_AcceptsFocus(*args
, **kwargs
):
3279 """base_AcceptsFocus() -> bool"""
3280 return _windows
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3282 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3283 """base_AcceptsFocusFromKeyboard() -> bool"""
3284 return _windows
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3286 def base_GetMaxSize(*args
, **kwargs
):
3287 """base_GetMaxSize() -> Size"""
3288 return _windows
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3290 def base_AddChild(*args
, **kwargs
):
3291 """base_AddChild(Window child)"""
3292 return _windows
.PyPanel_base_AddChild(*args
, **kwargs
)
3294 def base_RemoveChild(*args
, **kwargs
):
3295 """base_RemoveChild(Window child)"""
3296 return _windows
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3298 def base_ShouldInheritColours(*args
, **kwargs
):
3299 """base_ShouldInheritColours() -> bool"""
3300 return _windows
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3302 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3303 """base_ApplyParentThemeBackground(Colour c)"""
3304 return _windows
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3307 class PyPanelPtr(PyPanel
):
3308 def __init__(self
, this
):
3310 if not hasattr(self
,"thisown"): self
.thisown
= 0
3311 self
.__class
__ = PyPanel
3312 _windows
.PyPanel_swigregister(PyPanelPtr
)
3314 def PrePyPanel(*args
, **kwargs
):
3315 """PrePyPanel() -> PyPanel"""
3316 val
= _windows
.new_PrePyPanel(*args
, **kwargs
)
3320 class PyScrolledWindow(ScrolledWindow
):
3322 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3323 def __init__(self
, *args
, **kwargs
):
3325 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3326 long style=0, String name=PanelNameStr) -> PyScrolledWindow
3328 newobj
= _windows
.new_PyScrolledWindow(*args
, **kwargs
)
3329 self
.this
= newobj
.this
3332 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3334 def _setCallbackInfo(*args
, **kwargs
):
3335 """_setCallbackInfo(PyObject self, PyObject _class)"""
3336 return _windows
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3338 def base_DoMoveWindow(*args
, **kwargs
):
3339 """base_DoMoveWindow(int x, int y, int width, int height)"""
3340 return _windows
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3342 def base_DoSetSize(*args
, **kwargs
):
3343 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3344 return _windows
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3346 def base_DoSetClientSize(*args
, **kwargs
):
3347 """base_DoSetClientSize(int width, int height)"""
3348 return _windows
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3350 def base_DoSetVirtualSize(*args
, **kwargs
):
3351 """base_DoSetVirtualSize(int x, int y)"""
3352 return _windows
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3354 def base_DoGetSize(*args
, **kwargs
):
3355 """base_DoGetSize() -> (width, height)"""
3356 return _windows
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3358 def base_DoGetClientSize(*args
, **kwargs
):
3359 """base_DoGetClientSize() -> (width, height)"""
3360 return _windows
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3362 def base_DoGetPosition(*args
, **kwargs
):
3363 """base_DoGetPosition() -> (x,y)"""
3364 return _windows
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3366 def base_DoGetVirtualSize(*args
, **kwargs
):
3367 """base_DoGetVirtualSize() -> Size"""
3368 return _windows
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3370 def base_DoGetBestSize(*args
, **kwargs
):
3371 """base_DoGetBestSize() -> Size"""
3372 return _windows
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3374 def base_InitDialog(*args
, **kwargs
):
3375 """base_InitDialog()"""
3376 return _windows
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3378 def base_TransferDataToWindow(*args
, **kwargs
):
3379 """base_TransferDataToWindow() -> bool"""
3380 return _windows
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3382 def base_TransferDataFromWindow(*args
, **kwargs
):
3383 """base_TransferDataFromWindow() -> bool"""
3384 return _windows
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3386 def base_Validate(*args
, **kwargs
):
3387 """base_Validate() -> bool"""
3388 return _windows
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3390 def base_AcceptsFocus(*args
, **kwargs
):
3391 """base_AcceptsFocus() -> bool"""
3392 return _windows
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3394 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3395 """base_AcceptsFocusFromKeyboard() -> bool"""
3396 return _windows
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3398 def base_GetMaxSize(*args
, **kwargs
):
3399 """base_GetMaxSize() -> Size"""
3400 return _windows
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3402 def base_AddChild(*args
, **kwargs
):
3403 """base_AddChild(Window child)"""
3404 return _windows
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3406 def base_RemoveChild(*args
, **kwargs
):
3407 """base_RemoveChild(Window child)"""
3408 return _windows
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3410 def base_ShouldInheritColours(*args
, **kwargs
):
3411 """base_ShouldInheritColours() -> bool"""
3412 return _windows
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3414 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3415 """base_ApplyParentThemeBackground(Colour c)"""
3416 return _windows
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3419 class PyScrolledWindowPtr(PyScrolledWindow
):
3420 def __init__(self
, this
):
3422 if not hasattr(self
,"thisown"): self
.thisown
= 0
3423 self
.__class
__ = PyScrolledWindow
3424 _windows
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3426 def PrePyScrolledWindow(*args
, **kwargs
):
3427 """PrePyScrolledWindow() -> PyScrolledWindow"""
3428 val
= _windows
.new_PrePyScrolledWindow(*args
, **kwargs
)
3432 #---------------------------------------------------------------------------
3434 PRINT_MODE_NONE
= _windows
.PRINT_MODE_NONE
3435 PRINT_MODE_PREVIEW
= _windows
.PRINT_MODE_PREVIEW
3436 PRINT_MODE_FILE
= _windows
.PRINT_MODE_FILE
3437 PRINT_MODE_PRINTER
= _windows
.PRINT_MODE_PRINTER
3438 PRINT_MODE_STREAM
= _windows
.PRINT_MODE_STREAM
3439 class PrintData(core
.Object
):
3441 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3442 def __init__(self
, *args
, **kwargs
):
3443 """__init__() -> PrintData"""
3444 newobj
= _windows
.new_PrintData(*args
, **kwargs
)
3445 self
.this
= newobj
.this
3448 def __del__(self
, destroy
=_windows
.delete_PrintData
):
3451 if self
.thisown
: destroy(self
)
3454 def GetNoCopies(*args
, **kwargs
):
3455 """GetNoCopies() -> int"""
3456 return _windows
.PrintData_GetNoCopies(*args
, **kwargs
)
3458 def GetCollate(*args
, **kwargs
):
3459 """GetCollate() -> bool"""
3460 return _windows
.PrintData_GetCollate(*args
, **kwargs
)
3462 def GetOrientation(*args
, **kwargs
):
3463 """GetOrientation() -> int"""
3464 return _windows
.PrintData_GetOrientation(*args
, **kwargs
)
3466 def Ok(*args
, **kwargs
):
3468 return _windows
.PrintData_Ok(*args
, **kwargs
)
3470 def GetPrinterName(*args
, **kwargs
):
3471 """GetPrinterName() -> String"""
3472 return _windows
.PrintData_GetPrinterName(*args
, **kwargs
)
3474 def GetColour(*args
, **kwargs
):
3475 """GetColour() -> bool"""
3476 return _windows
.PrintData_GetColour(*args
, **kwargs
)
3478 def GetDuplex(*args
, **kwargs
):
3479 """GetDuplex() -> int"""
3480 return _windows
.PrintData_GetDuplex(*args
, **kwargs
)
3482 def GetPaperId(*args
, **kwargs
):
3483 """GetPaperId() -> int"""
3484 return _windows
.PrintData_GetPaperId(*args
, **kwargs
)
3486 def GetPaperSize(*args
, **kwargs
):
3487 """GetPaperSize() -> Size"""
3488 return _windows
.PrintData_GetPaperSize(*args
, **kwargs
)
3490 def GetQuality(*args
, **kwargs
):
3491 """GetQuality() -> int"""
3492 return _windows
.PrintData_GetQuality(*args
, **kwargs
)
3494 def SetNoCopies(*args
, **kwargs
):
3495 """SetNoCopies(int v)"""
3496 return _windows
.PrintData_SetNoCopies(*args
, **kwargs
)
3498 def SetCollate(*args
, **kwargs
):
3499 """SetCollate(bool flag)"""
3500 return _windows
.PrintData_SetCollate(*args
, **kwargs
)
3502 def SetOrientation(*args
, **kwargs
):
3503 """SetOrientation(int orient)"""
3504 return _windows
.PrintData_SetOrientation(*args
, **kwargs
)
3506 def SetPrinterName(*args
, **kwargs
):
3507 """SetPrinterName(String name)"""
3508 return _windows
.PrintData_SetPrinterName(*args
, **kwargs
)
3510 def SetColour(*args
, **kwargs
):
3511 """SetColour(bool colour)"""
3512 return _windows
.PrintData_SetColour(*args
, **kwargs
)
3514 def SetDuplex(*args
, **kwargs
):
3515 """SetDuplex(int duplex)"""
3516 return _windows
.PrintData_SetDuplex(*args
, **kwargs
)
3518 def SetPaperId(*args
, **kwargs
):
3519 """SetPaperId(int sizeId)"""
3520 return _windows
.PrintData_SetPaperId(*args
, **kwargs
)
3522 def SetPaperSize(*args
, **kwargs
):
3523 """SetPaperSize(Size sz)"""
3524 return _windows
.PrintData_SetPaperSize(*args
, **kwargs
)
3526 def SetQuality(*args
, **kwargs
):
3527 """SetQuality(int quality)"""
3528 return _windows
.PrintData_SetQuality(*args
, **kwargs
)
3530 def GetPrinterCommand(*args
, **kwargs
):
3531 """GetPrinterCommand() -> String"""
3532 return _windows
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3534 def GetPrinterOptions(*args
, **kwargs
):
3535 """GetPrinterOptions() -> String"""
3536 return _windows
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3538 def GetPreviewCommand(*args
, **kwargs
):
3539 """GetPreviewCommand() -> String"""
3540 return _windows
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3542 def GetFilename(*args
, **kwargs
):
3543 """GetFilename() -> String"""
3544 return _windows
.PrintData_GetFilename(*args
, **kwargs
)
3546 def GetFontMetricPath(*args
, **kwargs
):
3547 """GetFontMetricPath() -> String"""
3548 return _windows
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3550 def GetPrinterScaleX(*args
, **kwargs
):
3551 """GetPrinterScaleX() -> double"""
3552 return _windows
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3554 def GetPrinterScaleY(*args
, **kwargs
):
3555 """GetPrinterScaleY() -> double"""
3556 return _windows
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3558 def GetPrinterTranslateX(*args
, **kwargs
):
3559 """GetPrinterTranslateX() -> long"""
3560 return _windows
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3562 def GetPrinterTranslateY(*args
, **kwargs
):
3563 """GetPrinterTranslateY() -> long"""
3564 return _windows
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3566 def GetPrintMode(*args
, **kwargs
):
3567 """GetPrintMode() -> int"""
3568 return _windows
.PrintData_GetPrintMode(*args
, **kwargs
)
3570 def SetPrinterCommand(*args
, **kwargs
):
3571 """SetPrinterCommand(String command)"""
3572 return _windows
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3574 def SetPrinterOptions(*args
, **kwargs
):
3575 """SetPrinterOptions(String options)"""
3576 return _windows
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3578 def SetPreviewCommand(*args
, **kwargs
):
3579 """SetPreviewCommand(String command)"""
3580 return _windows
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3582 def SetFilename(*args
, **kwargs
):
3583 """SetFilename(String filename)"""
3584 return _windows
.PrintData_SetFilename(*args
, **kwargs
)
3586 def SetFontMetricPath(*args
, **kwargs
):
3587 """SetFontMetricPath(String path)"""
3588 return _windows
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3590 def SetPrinterScaleX(*args
, **kwargs
):
3591 """SetPrinterScaleX(double x)"""
3592 return _windows
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3594 def SetPrinterScaleY(*args
, **kwargs
):
3595 """SetPrinterScaleY(double y)"""
3596 return _windows
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3598 def SetPrinterScaling(*args
, **kwargs
):
3599 """SetPrinterScaling(double x, double y)"""
3600 return _windows
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3602 def SetPrinterTranslateX(*args
, **kwargs
):
3603 """SetPrinterTranslateX(long x)"""
3604 return _windows
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3606 def SetPrinterTranslateY(*args
, **kwargs
):
3607 """SetPrinterTranslateY(long y)"""
3608 return _windows
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3610 def SetPrinterTranslation(*args
, **kwargs
):
3611 """SetPrinterTranslation(long x, long y)"""
3612 return _windows
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3614 def SetPrintMode(*args
, **kwargs
):
3615 """SetPrintMode(int printMode)"""
3616 return _windows
.PrintData_SetPrintMode(*args
, **kwargs
)
3618 def GetOutputStream(*args
, **kwargs
):
3619 """GetOutputStream() -> OutputStream"""
3620 return _windows
.PrintData_GetOutputStream(*args
, **kwargs
)
3622 def SetOutputStream(*args
, **kwargs
):
3623 """SetOutputStream(OutputStream outputstream)"""
3624 return _windows
.PrintData_SetOutputStream(*args
, **kwargs
)
3626 def __nonzero__(self
): return self
.Ok()
3628 class PrintDataPtr(PrintData
):
3629 def __init__(self
, this
):
3631 if not hasattr(self
,"thisown"): self
.thisown
= 0
3632 self
.__class
__ = PrintData
3633 _windows
.PrintData_swigregister(PrintDataPtr
)
3634 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3635 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3637 class PageSetupDialogData(core
.Object
):
3639 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3640 def __init__(self
, *args
, **kwargs
):
3641 """__init__() -> PageSetupDialogData"""
3642 newobj
= _windows
.new_PageSetupDialogData(*args
, **kwargs
)
3643 self
.this
= newobj
.this
3646 def __del__(self
, destroy
=_windows
.delete_PageSetupDialogData
):
3649 if self
.thisown
: destroy(self
)
3652 def EnableHelp(*args
, **kwargs
):
3653 """EnableHelp(bool flag)"""
3654 return _windows
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3656 def EnableMargins(*args
, **kwargs
):
3657 """EnableMargins(bool flag)"""
3658 return _windows
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3660 def EnableOrientation(*args
, **kwargs
):
3661 """EnableOrientation(bool flag)"""
3662 return _windows
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3664 def EnablePaper(*args
, **kwargs
):
3665 """EnablePaper(bool flag)"""
3666 return _windows
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3668 def EnablePrinter(*args
, **kwargs
):
3669 """EnablePrinter(bool flag)"""
3670 return _windows
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3672 def GetDefaultMinMargins(*args
, **kwargs
):
3673 """GetDefaultMinMargins() -> bool"""
3674 return _windows
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3676 def GetEnableMargins(*args
, **kwargs
):
3677 """GetEnableMargins() -> bool"""
3678 return _windows
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3680 def GetEnableOrientation(*args
, **kwargs
):
3681 """GetEnableOrientation() -> bool"""
3682 return _windows
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3684 def GetEnablePaper(*args
, **kwargs
):
3685 """GetEnablePaper() -> bool"""
3686 return _windows
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3688 def GetEnablePrinter(*args
, **kwargs
):
3689 """GetEnablePrinter() -> bool"""
3690 return _windows
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3692 def GetEnableHelp(*args
, **kwargs
):
3693 """GetEnableHelp() -> bool"""
3694 return _windows
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3696 def GetDefaultInfo(*args
, **kwargs
):
3697 """GetDefaultInfo() -> bool"""
3698 return _windows
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3700 def GetMarginTopLeft(*args
, **kwargs
):
3701 """GetMarginTopLeft() -> Point"""
3702 return _windows
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3704 def GetMarginBottomRight(*args
, **kwargs
):
3705 """GetMarginBottomRight() -> Point"""
3706 return _windows
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3708 def GetMinMarginTopLeft(*args
, **kwargs
):
3709 """GetMinMarginTopLeft() -> Point"""
3710 return _windows
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3712 def GetMinMarginBottomRight(*args
, **kwargs
):
3713 """GetMinMarginBottomRight() -> Point"""
3714 return _windows
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3716 def GetPaperId(*args
, **kwargs
):
3717 """GetPaperId() -> int"""
3718 return _windows
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3720 def GetPaperSize(*args
, **kwargs
):
3721 """GetPaperSize() -> Size"""
3722 return _windows
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3724 def GetPrintData(*args
, **kwargs
):
3725 """GetPrintData() -> PrintData"""
3726 return _windows
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3728 def Ok(*args
, **kwargs
):
3730 return _windows
.PageSetupDialogData_Ok(*args
, **kwargs
)
3732 def SetDefaultInfo(*args
, **kwargs
):
3733 """SetDefaultInfo(bool flag)"""
3734 return _windows
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3736 def SetDefaultMinMargins(*args
, **kwargs
):
3737 """SetDefaultMinMargins(bool flag)"""
3738 return _windows
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3740 def SetMarginTopLeft(*args
, **kwargs
):
3741 """SetMarginTopLeft(Point pt)"""
3742 return _windows
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3744 def SetMarginBottomRight(*args
, **kwargs
):
3745 """SetMarginBottomRight(Point pt)"""
3746 return _windows
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3748 def SetMinMarginTopLeft(*args
, **kwargs
):
3749 """SetMinMarginTopLeft(Point pt)"""
3750 return _windows
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3752 def SetMinMarginBottomRight(*args
, **kwargs
):
3753 """SetMinMarginBottomRight(Point pt)"""
3754 return _windows
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3756 def SetPaperId(*args
, **kwargs
):
3757 """SetPaperId(int id)"""
3758 return _windows
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3760 def SetPaperSize(*args
, **kwargs
):
3761 """SetPaperSize(Size size)"""
3762 return _windows
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3764 def SetPrintData(*args
, **kwargs
):
3765 """SetPrintData(PrintData printData)"""
3766 return _windows
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3768 def __nonzero__(self
): return self
.Ok()
3770 class PageSetupDialogDataPtr(PageSetupDialogData
):
3771 def __init__(self
, this
):
3773 if not hasattr(self
,"thisown"): self
.thisown
= 0
3774 self
.__class
__ = PageSetupDialogData
3775 _windows
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3777 class PageSetupDialog(Dialog
):
3779 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3780 def __init__(self
, *args
, **kwargs
):
3781 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3782 newobj
= _windows
.new_PageSetupDialog(*args
, **kwargs
)
3783 self
.this
= newobj
.this
3786 self
._setOORInfo
(self
)
3788 def GetPageSetupData(*args
, **kwargs
):
3789 """GetPageSetupData() -> PageSetupDialogData"""
3790 return _windows
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3792 def ShowModal(*args
, **kwargs
):
3793 """ShowModal() -> int"""
3794 return _windows
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3797 class PageSetupDialogPtr(PageSetupDialog
):
3798 def __init__(self
, this
):
3800 if not hasattr(self
,"thisown"): self
.thisown
= 0
3801 self
.__class
__ = PageSetupDialog
3802 _windows
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3804 class PrintDialogData(core
.Object
):
3806 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3807 def __init__(self
, *args
):
3809 __init__() -> PrintDialogData
3810 __init__(PrintData printData) -> PrintDialogData
3812 newobj
= _windows
.new_PrintDialogData(*args
)
3813 self
.this
= newobj
.this
3816 def __del__(self
, destroy
=_windows
.delete_PrintDialogData
):
3819 if self
.thisown
: destroy(self
)
3822 def GetFromPage(*args
, **kwargs
):
3823 """GetFromPage() -> int"""
3824 return _windows
.PrintDialogData_GetFromPage(*args
, **kwargs
)
3826 def GetToPage(*args
, **kwargs
):
3827 """GetToPage() -> int"""
3828 return _windows
.PrintDialogData_GetToPage(*args
, **kwargs
)
3830 def GetMinPage(*args
, **kwargs
):
3831 """GetMinPage() -> int"""
3832 return _windows
.PrintDialogData_GetMinPage(*args
, **kwargs
)
3834 def GetMaxPage(*args
, **kwargs
):
3835 """GetMaxPage() -> int"""
3836 return _windows
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
3838 def GetNoCopies(*args
, **kwargs
):
3839 """GetNoCopies() -> int"""
3840 return _windows
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
3842 def GetAllPages(*args
, **kwargs
):
3843 """GetAllPages() -> bool"""
3844 return _windows
.PrintDialogData_GetAllPages(*args
, **kwargs
)
3846 def GetSelection(*args
, **kwargs
):
3847 """GetSelection() -> bool"""
3848 return _windows
.PrintDialogData_GetSelection(*args
, **kwargs
)
3850 def GetCollate(*args
, **kwargs
):
3851 """GetCollate() -> bool"""
3852 return _windows
.PrintDialogData_GetCollate(*args
, **kwargs
)
3854 def GetPrintToFile(*args
, **kwargs
):
3855 """GetPrintToFile() -> bool"""
3856 return _windows
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
3858 def GetSetupDialog(*args
, **kwargs
):
3859 """GetSetupDialog() -> bool"""
3860 return _windows
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
3862 def SetFromPage(*args
, **kwargs
):
3863 """SetFromPage(int v)"""
3864 return _windows
.PrintDialogData_SetFromPage(*args
, **kwargs
)
3866 def SetToPage(*args
, **kwargs
):
3867 """SetToPage(int v)"""
3868 return _windows
.PrintDialogData_SetToPage(*args
, **kwargs
)
3870 def SetMinPage(*args
, **kwargs
):
3871 """SetMinPage(int v)"""
3872 return _windows
.PrintDialogData_SetMinPage(*args
, **kwargs
)
3874 def SetMaxPage(*args
, **kwargs
):
3875 """SetMaxPage(int v)"""
3876 return _windows
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
3878 def SetNoCopies(*args
, **kwargs
):
3879 """SetNoCopies(int v)"""
3880 return _windows
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
3882 def SetAllPages(*args
, **kwargs
):
3883 """SetAllPages(bool flag)"""
3884 return _windows
.PrintDialogData_SetAllPages(*args
, **kwargs
)
3886 def SetSelection(*args
, **kwargs
):
3887 """SetSelection(bool flag)"""
3888 return _windows
.PrintDialogData_SetSelection(*args
, **kwargs
)
3890 def SetCollate(*args
, **kwargs
):
3891 """SetCollate(bool flag)"""
3892 return _windows
.PrintDialogData_SetCollate(*args
, **kwargs
)
3894 def SetPrintToFile(*args
, **kwargs
):
3895 """SetPrintToFile(bool flag)"""
3896 return _windows
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
3898 def SetSetupDialog(*args
, **kwargs
):
3899 """SetSetupDialog(bool flag)"""
3900 return _windows
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
3902 def EnablePrintToFile(*args
, **kwargs
):
3903 """EnablePrintToFile(bool flag)"""
3904 return _windows
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
3906 def EnableSelection(*args
, **kwargs
):
3907 """EnableSelection(bool flag)"""
3908 return _windows
.PrintDialogData_EnableSelection(*args
, **kwargs
)
3910 def EnablePageNumbers(*args
, **kwargs
):
3911 """EnablePageNumbers(bool flag)"""
3912 return _windows
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
3914 def EnableHelp(*args
, **kwargs
):
3915 """EnableHelp(bool flag)"""
3916 return _windows
.PrintDialogData_EnableHelp(*args
, **kwargs
)
3918 def GetEnablePrintToFile(*args
, **kwargs
):
3919 """GetEnablePrintToFile() -> bool"""
3920 return _windows
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
3922 def GetEnableSelection(*args
, **kwargs
):
3923 """GetEnableSelection() -> bool"""
3924 return _windows
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
3926 def GetEnablePageNumbers(*args
, **kwargs
):
3927 """GetEnablePageNumbers() -> bool"""
3928 return _windows
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
3930 def GetEnableHelp(*args
, **kwargs
):
3931 """GetEnableHelp() -> bool"""
3932 return _windows
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
3934 def Ok(*args
, **kwargs
):
3936 return _windows
.PrintDialogData_Ok(*args
, **kwargs
)
3938 def GetPrintData(*args
, **kwargs
):
3939 """GetPrintData() -> PrintData"""
3940 return _windows
.PrintDialogData_GetPrintData(*args
, **kwargs
)
3942 def SetPrintData(*args
, **kwargs
):
3943 """SetPrintData(PrintData printData)"""
3944 return _windows
.PrintDialogData_SetPrintData(*args
, **kwargs
)
3946 def __nonzero__(self
): return self
.Ok()
3948 class PrintDialogDataPtr(PrintDialogData
):
3949 def __init__(self
, this
):
3951 if not hasattr(self
,"thisown"): self
.thisown
= 0
3952 self
.__class
__ = PrintDialogData
3953 _windows
.PrintDialogData_swigregister(PrintDialogDataPtr
)
3955 class PrintDialog(Dialog
):
3957 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3958 def __init__(self
, *args
, **kwargs
):
3959 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
3960 newobj
= _windows
.new_PrintDialog(*args
, **kwargs
)
3961 self
.this
= newobj
.this
3964 self
._setOORInfo
(self
)
3966 def GetPrintDialogData(*args
, **kwargs
):
3967 """GetPrintDialogData() -> PrintDialogData"""
3968 return _windows
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
3970 def GetPrintDC(*args
, **kwargs
):
3971 """GetPrintDC() -> DC"""
3972 return _windows
.PrintDialog_GetPrintDC(*args
, **kwargs
)
3974 def ShowModal(*args
, **kwargs
):
3975 """ShowModal() -> int"""
3976 return _windows
.PrintDialog_ShowModal(*args
, **kwargs
)
3979 class PrintDialogPtr(PrintDialog
):
3980 def __init__(self
, this
):
3982 if not hasattr(self
,"thisown"): self
.thisown
= 0
3983 self
.__class
__ = PrintDialog
3984 _windows
.PrintDialog_swigregister(PrintDialogPtr
)
3986 PRINTER_NO_ERROR
= _windows
.PRINTER_NO_ERROR
3987 PRINTER_CANCELLED
= _windows
.PRINTER_CANCELLED
3988 PRINTER_ERROR
= _windows
.PRINTER_ERROR
3989 class Printer(core
.Object
):
3991 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3992 def __init__(self
, *args
, **kwargs
):
3993 """__init__(PrintDialogData data=None) -> Printer"""
3994 newobj
= _windows
.new_Printer(*args
, **kwargs
)
3995 self
.this
= newobj
.this
3998 def __del__(self
, destroy
=_windows
.delete_Printer
):
4001 if self
.thisown
: destroy(self
)
4004 def CreateAbortWindow(*args
, **kwargs
):
4005 """CreateAbortWindow(Window parent, Printout printout)"""
4006 return _windows
.Printer_CreateAbortWindow(*args
, **kwargs
)
4008 def GetPrintDialogData(*args
, **kwargs
):
4009 """GetPrintDialogData() -> PrintDialogData"""
4010 return _windows
.Printer_GetPrintDialogData(*args
, **kwargs
)
4012 def Print(*args
, **kwargs
):
4013 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
4014 return _windows
.Printer_Print(*args
, **kwargs
)
4016 def PrintDialog(*args
, **kwargs
):
4017 """PrintDialog(Window parent) -> DC"""
4018 return _windows
.Printer_PrintDialog(*args
, **kwargs
)
4020 def ReportError(*args
, **kwargs
):
4021 """ReportError(Window parent, Printout printout, String message)"""
4022 return _windows
.Printer_ReportError(*args
, **kwargs
)
4024 def Setup(*args
, **kwargs
):
4025 """Setup(Window parent) -> bool"""
4026 return _windows
.Printer_Setup(*args
, **kwargs
)
4028 def GetAbort(*args
, **kwargs
):
4029 """GetAbort() -> bool"""
4030 return _windows
.Printer_GetAbort(*args
, **kwargs
)
4032 def GetLastError(*args
, **kwargs
):
4033 """GetLastError() -> int"""
4034 return _windows
.Printer_GetLastError(*args
, **kwargs
)
4036 GetLastError
= staticmethod(GetLastError
)
4038 class PrinterPtr(Printer
):
4039 def __init__(self
, this
):
4041 if not hasattr(self
,"thisown"): self
.thisown
= 0
4042 self
.__class
__ = Printer
4043 _windows
.Printer_swigregister(PrinterPtr
)
4045 def Printer_GetLastError(*args
, **kwargs
):
4046 """Printer_GetLastError() -> int"""
4047 return _windows
.Printer_GetLastError(*args
, **kwargs
)
4049 class Printout(core
.Object
):
4051 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4052 def __init__(self
, *args
, **kwargs
):
4053 """__init__(String title=PrintoutTitleStr) -> Printout"""
4054 newobj
= _windows
.new_Printout(*args
, **kwargs
)
4055 self
.this
= newobj
.this
4058 self
._setCallbackInfo
(self
, Printout
)
4060 def _setCallbackInfo(*args
, **kwargs
):
4061 """_setCallbackInfo(PyObject self, PyObject _class)"""
4062 return _windows
.Printout__setCallbackInfo(*args
, **kwargs
)
4064 def GetTitle(*args
, **kwargs
):
4065 """GetTitle() -> String"""
4066 return _windows
.Printout_GetTitle(*args
, **kwargs
)
4068 def GetDC(*args
, **kwargs
):
4070 return _windows
.Printout_GetDC(*args
, **kwargs
)
4072 def SetDC(*args
, **kwargs
):
4074 return _windows
.Printout_SetDC(*args
, **kwargs
)
4076 def SetPageSizePixels(*args
, **kwargs
):
4077 """SetPageSizePixels(int w, int h)"""
4078 return _windows
.Printout_SetPageSizePixels(*args
, **kwargs
)
4080 def GetPageSizePixels(*args
, **kwargs
):
4081 """GetPageSizePixels() -> (w, h)"""
4082 return _windows
.Printout_GetPageSizePixels(*args
, **kwargs
)
4084 def SetPageSizeMM(*args
, **kwargs
):
4085 """SetPageSizeMM(int w, int h)"""
4086 return _windows
.Printout_SetPageSizeMM(*args
, **kwargs
)
4088 def GetPageSizeMM(*args
, **kwargs
):
4089 """GetPageSizeMM() -> (w, h)"""
4090 return _windows
.Printout_GetPageSizeMM(*args
, **kwargs
)
4092 def SetPPIScreen(*args
, **kwargs
):
4093 """SetPPIScreen(int x, int y)"""
4094 return _windows
.Printout_SetPPIScreen(*args
, **kwargs
)
4096 def GetPPIScreen(*args
, **kwargs
):
4097 """GetPPIScreen() -> (x,y)"""
4098 return _windows
.Printout_GetPPIScreen(*args
, **kwargs
)
4100 def SetPPIPrinter(*args
, **kwargs
):
4101 """SetPPIPrinter(int x, int y)"""
4102 return _windows
.Printout_SetPPIPrinter(*args
, **kwargs
)
4104 def GetPPIPrinter(*args
, **kwargs
):
4105 """GetPPIPrinter() -> (x,y)"""
4106 return _windows
.Printout_GetPPIPrinter(*args
, **kwargs
)
4108 def IsPreview(*args
, **kwargs
):
4109 """IsPreview() -> bool"""
4110 return _windows
.Printout_IsPreview(*args
, **kwargs
)
4112 def SetIsPreview(*args
, **kwargs
):
4113 """SetIsPreview(bool p)"""
4114 return _windows
.Printout_SetIsPreview(*args
, **kwargs
)
4116 def base_OnBeginDocument(*args
, **kwargs
):
4117 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
4118 return _windows
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4120 def base_OnEndDocument(*args
, **kwargs
):
4121 """base_OnEndDocument()"""
4122 return _windows
.Printout_base_OnEndDocument(*args
, **kwargs
)
4124 def base_OnBeginPrinting(*args
, **kwargs
):
4125 """base_OnBeginPrinting()"""
4126 return _windows
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4128 def base_OnEndPrinting(*args
, **kwargs
):
4129 """base_OnEndPrinting()"""
4130 return _windows
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4132 def base_OnPreparePrinting(*args
, **kwargs
):
4133 """base_OnPreparePrinting()"""
4134 return _windows
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4136 def base_HasPage(*args
, **kwargs
):
4137 """base_HasPage(int page) -> bool"""
4138 return _windows
.Printout_base_HasPage(*args
, **kwargs
)
4140 def base_GetPageInfo(*args
, **kwargs
):
4141 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4142 return _windows
.Printout_base_GetPageInfo(*args
, **kwargs
)
4145 class PrintoutPtr(Printout
):
4146 def __init__(self
, this
):
4148 if not hasattr(self
,"thisown"): self
.thisown
= 0
4149 self
.__class
__ = Printout
4150 _windows
.Printout_swigregister(PrintoutPtr
)
4152 class PreviewCanvas(ScrolledWindow
):
4154 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4155 def __init__(self
, *args
, **kwargs
):
4157 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
4158 Size size=DefaultSize, long style=0,
4159 String name=PreviewCanvasNameStr) -> PreviewCanvas
4161 newobj
= _windows
.new_PreviewCanvas(*args
, **kwargs
)
4162 self
.this
= newobj
.this
4165 self
._setOORInfo
(self
)
4168 class PreviewCanvasPtr(PreviewCanvas
):
4169 def __init__(self
, this
):
4171 if not hasattr(self
,"thisown"): self
.thisown
= 0
4172 self
.__class
__ = PreviewCanvas
4173 _windows
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4175 class PreviewFrame(Frame
):
4177 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4178 def __init__(self
, *args
, **kwargs
):
4180 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4181 Size size=DefaultSize,
4182 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4184 newobj
= _windows
.new_PreviewFrame(*args
, **kwargs
)
4185 self
.this
= newobj
.this
4188 self
._setOORInfo
(self
)
4190 def Initialize(*args
, **kwargs
):
4192 return _windows
.PreviewFrame_Initialize(*args
, **kwargs
)
4194 def CreateControlBar(*args
, **kwargs
):
4195 """CreateControlBar()"""
4196 return _windows
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4198 def CreateCanvas(*args
, **kwargs
):
4199 """CreateCanvas()"""
4200 return _windows
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4202 def GetControlBar(*args
, **kwargs
):
4203 """GetControlBar() -> PreviewControlBar"""
4204 return _windows
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4207 class PreviewFramePtr(PreviewFrame
):
4208 def __init__(self
, this
):
4210 if not hasattr(self
,"thisown"): self
.thisown
= 0
4211 self
.__class
__ = PreviewFrame
4212 _windows
.PreviewFrame_swigregister(PreviewFramePtr
)
4214 PREVIEW_PRINT
= _windows
.PREVIEW_PRINT
4215 PREVIEW_PREVIOUS
= _windows
.PREVIEW_PREVIOUS
4216 PREVIEW_NEXT
= _windows
.PREVIEW_NEXT
4217 PREVIEW_ZOOM
= _windows
.PREVIEW_ZOOM
4218 PREVIEW_FIRST
= _windows
.PREVIEW_FIRST
4219 PREVIEW_LAST
= _windows
.PREVIEW_LAST
4220 PREVIEW_GOTO
= _windows
.PREVIEW_GOTO
4221 PREVIEW_DEFAULT
= _windows
.PREVIEW_DEFAULT
4222 ID_PREVIEW_CLOSE
= _windows
.ID_PREVIEW_CLOSE
4223 ID_PREVIEW_NEXT
= _windows
.ID_PREVIEW_NEXT
4224 ID_PREVIEW_PREVIOUS
= _windows
.ID_PREVIEW_PREVIOUS
4225 ID_PREVIEW_PRINT
= _windows
.ID_PREVIEW_PRINT
4226 ID_PREVIEW_ZOOM
= _windows
.ID_PREVIEW_ZOOM
4227 ID_PREVIEW_FIRST
= _windows
.ID_PREVIEW_FIRST
4228 ID_PREVIEW_LAST
= _windows
.ID_PREVIEW_LAST
4229 ID_PREVIEW_GOTO
= _windows
.ID_PREVIEW_GOTO
4230 class PreviewControlBar(Panel
):
4232 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4233 def __init__(self
, *args
, **kwargs
):
4235 __init__(PrintPreview preview, long buttons, Window parent,
4236 Point pos=DefaultPosition, Size size=DefaultSize,
4237 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4239 newobj
= _windows
.new_PreviewControlBar(*args
, **kwargs
)
4240 self
.this
= newobj
.this
4243 self
._setOORInfo
(self
)
4245 def GetZoomControl(*args
, **kwargs
):
4246 """GetZoomControl() -> int"""
4247 return _windows
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4249 def SetZoomControl(*args
, **kwargs
):
4250 """SetZoomControl(int zoom)"""
4251 return _windows
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4253 def GetPrintPreview(*args
, **kwargs
):
4254 """GetPrintPreview() -> PrintPreview"""
4255 return _windows
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4257 def OnNext(*args
, **kwargs
):
4259 return _windows
.PreviewControlBar_OnNext(*args
, **kwargs
)
4261 def OnPrevious(*args
, **kwargs
):
4263 return _windows
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4265 def OnFirst(*args
, **kwargs
):
4267 return _windows
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4269 def OnLast(*args
, **kwargs
):
4271 return _windows
.PreviewControlBar_OnLast(*args
, **kwargs
)
4273 def OnGoto(*args
, **kwargs
):
4275 return _windows
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4278 class PreviewControlBarPtr(PreviewControlBar
):
4279 def __init__(self
, this
):
4281 if not hasattr(self
,"thisown"): self
.thisown
= 0
4282 self
.__class
__ = PreviewControlBar
4283 _windows
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4285 class PrintPreview(core
.Object
):
4287 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4288 def __init__(self
, *args
):
4290 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4291 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4293 newobj
= _windows
.new_PrintPreview(*args
)
4294 self
.this
= newobj
.this
4297 def SetCurrentPage(*args
, **kwargs
):
4298 """SetCurrentPage(int pageNum) -> bool"""
4299 return _windows
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4301 def GetCurrentPage(*args
, **kwargs
):
4302 """GetCurrentPage() -> int"""
4303 return _windows
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4305 def SetPrintout(*args
, **kwargs
):
4306 """SetPrintout(Printout printout)"""
4307 return _windows
.PrintPreview_SetPrintout(*args
, **kwargs
)
4309 def GetPrintout(*args
, **kwargs
):
4310 """GetPrintout() -> Printout"""
4311 return _windows
.PrintPreview_GetPrintout(*args
, **kwargs
)
4313 def GetPrintoutForPrinting(*args
, **kwargs
):
4314 """GetPrintoutForPrinting() -> Printout"""
4315 return _windows
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4317 def SetFrame(*args
, **kwargs
):
4318 """SetFrame(Frame frame)"""
4319 return _windows
.PrintPreview_SetFrame(*args
, **kwargs
)
4321 def SetCanvas(*args
, **kwargs
):
4322 """SetCanvas(PreviewCanvas canvas)"""
4323 return _windows
.PrintPreview_SetCanvas(*args
, **kwargs
)
4325 def GetFrame(*args
, **kwargs
):
4326 """GetFrame() -> Frame"""
4327 return _windows
.PrintPreview_GetFrame(*args
, **kwargs
)
4329 def GetCanvas(*args
, **kwargs
):
4330 """GetCanvas() -> PreviewCanvas"""
4331 return _windows
.PrintPreview_GetCanvas(*args
, **kwargs
)
4333 def PaintPage(*args
, **kwargs
):
4334 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4335 return _windows
.PrintPreview_PaintPage(*args
, **kwargs
)
4337 def DrawBlankPage(*args
, **kwargs
):
4338 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4339 return _windows
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4341 def RenderPage(*args
, **kwargs
):
4342 """RenderPage(int pageNum) -> bool"""
4343 return _windows
.PrintPreview_RenderPage(*args
, **kwargs
)
4345 def AdjustScrollbars(*args
, **kwargs
):
4346 """AdjustScrollbars(PreviewCanvas canvas)"""
4347 return _windows
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4349 def GetPrintDialogData(*args
, **kwargs
):
4350 """GetPrintDialogData() -> PrintDialogData"""
4351 return _windows
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4353 def SetZoom(*args
, **kwargs
):
4354 """SetZoom(int percent)"""
4355 return _windows
.PrintPreview_SetZoom(*args
, **kwargs
)
4357 def GetZoom(*args
, **kwargs
):
4358 """GetZoom() -> int"""
4359 return _windows
.PrintPreview_GetZoom(*args
, **kwargs
)
4361 def GetMaxPage(*args
, **kwargs
):
4362 """GetMaxPage() -> int"""
4363 return _windows
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4365 def GetMinPage(*args
, **kwargs
):
4366 """GetMinPage() -> int"""
4367 return _windows
.PrintPreview_GetMinPage(*args
, **kwargs
)
4369 def Ok(*args
, **kwargs
):
4371 return _windows
.PrintPreview_Ok(*args
, **kwargs
)
4373 def SetOk(*args
, **kwargs
):
4374 """SetOk(bool ok)"""
4375 return _windows
.PrintPreview_SetOk(*args
, **kwargs
)
4377 def Print(*args
, **kwargs
):
4378 """Print(bool interactive) -> bool"""
4379 return _windows
.PrintPreview_Print(*args
, **kwargs
)
4381 def DetermineScaling(*args
, **kwargs
):
4382 """DetermineScaling()"""
4383 return _windows
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4385 def __nonzero__(self
): return self
.Ok()
4387 class PrintPreviewPtr(PrintPreview
):
4388 def __init__(self
, this
):
4390 if not hasattr(self
,"thisown"): self
.thisown
= 0
4391 self
.__class
__ = PrintPreview
4392 _windows
.PrintPreview_swigregister(PrintPreviewPtr
)
4394 class PyPrintPreview(PrintPreview
):
4396 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4397 def __init__(self
, *args
):
4399 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4400 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4402 newobj
= _windows
.new_PyPrintPreview(*args
)
4403 self
.this
= newobj
.this
4406 self
._setCallbackInfo
(self
, PyPrintPreview
)
4408 def _setCallbackInfo(*args
, **kwargs
):
4409 """_setCallbackInfo(PyObject self, PyObject _class)"""
4410 return _windows
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4412 def base_SetCurrentPage(*args
, **kwargs
):
4413 """base_SetCurrentPage(int pageNum) -> bool"""
4414 return _windows
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4416 def base_PaintPage(*args
, **kwargs
):
4417 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4418 return _windows
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4420 def base_DrawBlankPage(*args
, **kwargs
):
4421 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4422 return _windows
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4424 def base_RenderPage(*args
, **kwargs
):
4425 """base_RenderPage(int pageNum) -> bool"""
4426 return _windows
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4428 def base_SetZoom(*args
, **kwargs
):
4429 """base_SetZoom(int percent)"""
4430 return _windows
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4432 def base_Print(*args
, **kwargs
):
4433 """base_Print(bool interactive) -> bool"""
4434 return _windows
.PyPrintPreview_base_Print(*args
, **kwargs
)
4436 def base_DetermineScaling(*args
, **kwargs
):
4437 """base_DetermineScaling()"""
4438 return _windows
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4441 class PyPrintPreviewPtr(PyPrintPreview
):
4442 def __init__(self
, this
):
4444 if not hasattr(self
,"thisown"): self
.thisown
= 0
4445 self
.__class
__ = PyPrintPreview
4446 _windows
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4448 class PyPreviewFrame(PreviewFrame
):
4450 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4451 def __init__(self
, *args
, **kwargs
):
4453 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4454 Size size=DefaultSize,
4455 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4457 newobj
= _windows
.new_PyPreviewFrame(*args
, **kwargs
)
4458 self
.this
= newobj
.this
4461 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4463 def _setCallbackInfo(*args
, **kwargs
):
4464 """_setCallbackInfo(PyObject self, PyObject _class)"""
4465 return _windows
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4467 def SetPreviewCanvas(*args
, **kwargs
):
4468 """SetPreviewCanvas(PreviewCanvas canvas)"""
4469 return _windows
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4471 def SetControlBar(*args
, **kwargs
):
4472 """SetControlBar(PreviewControlBar bar)"""
4473 return _windows
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4475 def base_Initialize(*args
, **kwargs
):
4476 """base_Initialize()"""
4477 return _windows
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4479 def base_CreateCanvas(*args
, **kwargs
):
4480 """base_CreateCanvas()"""
4481 return _windows
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4483 def base_CreateControlBar(*args
, **kwargs
):
4484 """base_CreateControlBar()"""
4485 return _windows
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4488 class PyPreviewFramePtr(PyPreviewFrame
):
4489 def __init__(self
, this
):
4491 if not hasattr(self
,"thisown"): self
.thisown
= 0
4492 self
.__class
__ = PyPreviewFrame
4493 _windows
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4495 class PyPreviewControlBar(PreviewControlBar
):
4497 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4498 def __init__(self
, *args
, **kwargs
):
4500 __init__(PrintPreview preview, long buttons, Window parent,
4501 Point pos=DefaultPosition, Size size=DefaultSize,
4502 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4504 newobj
= _windows
.new_PyPreviewControlBar(*args
, **kwargs
)
4505 self
.this
= newobj
.this
4508 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4510 def _setCallbackInfo(*args
, **kwargs
):
4511 """_setCallbackInfo(PyObject self, PyObject _class)"""
4512 return _windows
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4514 def SetPrintPreview(*args
, **kwargs
):
4515 """SetPrintPreview(PrintPreview preview)"""
4516 return _windows
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4518 def base_CreateButtons(*args
, **kwargs
):
4519 """base_CreateButtons()"""
4520 return _windows
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4522 def base_SetZoomControl(*args
, **kwargs
):
4523 """base_SetZoomControl(int zoom)"""
4524 return _windows
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4527 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4528 def __init__(self
, this
):
4530 if not hasattr(self
,"thisown"): self
.thisown
= 0
4531 self
.__class
__ = PyPreviewControlBar
4532 _windows
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)