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
)
174 def SetTargetRect(*args
, **kwargs
):
175 """SetTargetRect(Rect rect)"""
176 return _windows
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
178 def GetTargetRect(*args
, **kwargs
):
179 """GetTargetRect() -> Rect"""
180 return _windows
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
183 class ScrolledWindowPtr(ScrolledWindow
):
184 def __init__(self
, this
):
186 if not hasattr(self
,"thisown"): self
.thisown
= 0
187 self
.__class
__ = ScrolledWindow
188 _windows
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
190 def PreScrolledWindow(*args
, **kwargs
):
191 """PreScrolledWindow() -> ScrolledWindow"""
192 val
= _windows
.new_PreScrolledWindow(*args
, **kwargs
)
196 #---------------------------------------------------------------------------
198 STAY_ON_TOP
= _windows
.STAY_ON_TOP
199 ICONIZE
= _windows
.ICONIZE
200 MINIMIZE
= _windows
.MINIMIZE
201 MAXIMIZE
= _windows
.MAXIMIZE
202 CLOSE_BOX
= _windows
.CLOSE_BOX
203 THICK_FRAME
= _windows
.THICK_FRAME
204 SYSTEM_MENU
= _windows
.SYSTEM_MENU
205 MINIMIZE_BOX
= _windows
.MINIMIZE_BOX
206 MAXIMIZE_BOX
= _windows
.MAXIMIZE_BOX
207 TINY_CAPTION_HORIZ
= _windows
.TINY_CAPTION_HORIZ
208 TINY_CAPTION_VERT
= _windows
.TINY_CAPTION_VERT
209 RESIZE_BOX
= _windows
.RESIZE_BOX
210 RESIZE_BORDER
= _windows
.RESIZE_BORDER
211 DIALOG_NO_PARENT
= _windows
.DIALOG_NO_PARENT
212 DEFAULT_FRAME_STYLE
= _windows
.DEFAULT_FRAME_STYLE
213 DEFAULT_DIALOG_STYLE
= _windows
.DEFAULT_DIALOG_STYLE
214 FRAME_TOOL_WINDOW
= _windows
.FRAME_TOOL_WINDOW
215 FRAME_FLOAT_ON_PARENT
= _windows
.FRAME_FLOAT_ON_PARENT
216 FRAME_NO_WINDOW_MENU
= _windows
.FRAME_NO_WINDOW_MENU
217 FRAME_NO_TASKBAR
= _windows
.FRAME_NO_TASKBAR
218 FRAME_SHAPED
= _windows
.FRAME_SHAPED
219 FULLSCREEN_NOMENUBAR
= _windows
.FULLSCREEN_NOMENUBAR
220 FULLSCREEN_NOTOOLBAR
= _windows
.FULLSCREEN_NOTOOLBAR
221 FULLSCREEN_NOSTATUSBAR
= _windows
.FULLSCREEN_NOSTATUSBAR
222 FULLSCREEN_NOBORDER
= _windows
.FULLSCREEN_NOBORDER
223 FULLSCREEN_NOCAPTION
= _windows
.FULLSCREEN_NOCAPTION
224 FULLSCREEN_ALL
= _windows
.FULLSCREEN_ALL
225 TOPLEVEL_EX_DIALOG
= _windows
.TOPLEVEL_EX_DIALOG
226 class TopLevelWindow(core
.Window
):
227 def __init__(self
): raise RuntimeError, "No constructor defined"
229 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
230 def Maximize(*args
, **kwargs
):
231 """Maximize(bool maximize=True)"""
232 return _windows
.TopLevelWindow_Maximize(*args
, **kwargs
)
234 def Restore(*args
, **kwargs
):
236 return _windows
.TopLevelWindow_Restore(*args
, **kwargs
)
238 def Iconize(*args
, **kwargs
):
239 """Iconize(bool iconize=True)"""
240 return _windows
.TopLevelWindow_Iconize(*args
, **kwargs
)
242 def IsMaximized(*args
, **kwargs
):
243 """IsMaximized() -> bool"""
244 return _windows
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
246 def IsIconized(*args
, **kwargs
):
247 """IsIconized() -> bool"""
248 return _windows
.TopLevelWindow_IsIconized(*args
, **kwargs
)
250 def GetIcon(*args
, **kwargs
):
251 """GetIcon() -> Icon"""
252 return _windows
.TopLevelWindow_GetIcon(*args
, **kwargs
)
254 def SetIcon(*args
, **kwargs
):
255 """SetIcon(Icon icon)"""
256 return _windows
.TopLevelWindow_SetIcon(*args
, **kwargs
)
258 def SetIcons(*args
, **kwargs
):
259 """SetIcons(wxIconBundle icons)"""
260 return _windows
.TopLevelWindow_SetIcons(*args
, **kwargs
)
262 def ShowFullScreen(*args
, **kwargs
):
263 """ShowFullScreen(bool show, long style=FULLSCREEN_ALL) -> bool"""
264 return _windows
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
266 def IsFullScreen(*args
, **kwargs
):
267 """IsFullScreen() -> bool"""
268 return _windows
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
270 def SetTitle(*args
, **kwargs
):
272 SetTitle(String title)
274 Sets the window's title. Applicable only to frames and dialogs.
276 return _windows
.TopLevelWindow_SetTitle(*args
, **kwargs
)
278 def GetTitle(*args
, **kwargs
):
282 Gets the window's title. Applicable only to frames and dialogs.
284 return _windows
.TopLevelWindow_GetTitle(*args
, **kwargs
)
286 def SetShape(*args
, **kwargs
):
287 """SetShape(Region region) -> bool"""
288 return _windows
.TopLevelWindow_SetShape(*args
, **kwargs
)
291 class TopLevelWindowPtr(TopLevelWindow
):
292 def __init__(self
, this
):
294 if not hasattr(self
,"thisown"): self
.thisown
= 0
295 self
.__class
__ = TopLevelWindow
296 _windows
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
298 FrameNameStr
= cvar
.FrameNameStr
299 DialogNameStr
= cvar
.DialogNameStr
300 StatusLineNameStr
= cvar
.StatusLineNameStr
301 ToolBarNameStr
= cvar
.ToolBarNameStr
303 #---------------------------------------------------------------------------
305 class Frame(TopLevelWindow
):
307 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
308 def __init__(self
, *args
, **kwargs
):
310 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
311 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
312 String name=FrameNameStr) -> Frame
314 newobj
= _windows
.new_Frame(*args
, **kwargs
)
315 self
.this
= newobj
.this
318 self
._setOORInfo
(self
)
320 def Create(*args
, **kwargs
):
322 Create(Window parent, int id, String title, Point pos=DefaultPosition,
323 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
324 String name=FrameNameStr) -> bool
326 return _windows
.Frame_Create(*args
, **kwargs
)
328 def GetClientAreaOrigin(*args
, **kwargs
):
330 GetClientAreaOrigin() -> Point
332 Get the origin of the client area of the window relative to the
333 window's top left corner (the client area may be shifted because of
334 the borders, scrollbars, other decorations...)
336 return _windows
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
338 def SendSizeEvent(*args
, **kwargs
):
339 """SendSizeEvent()"""
340 return _windows
.Frame_SendSizeEvent(*args
, **kwargs
)
342 def SetMenuBar(*args
, **kwargs
):
343 """SetMenuBar(MenuBar menubar)"""
344 return _windows
.Frame_SetMenuBar(*args
, **kwargs
)
346 def GetMenuBar(*args
, **kwargs
):
347 """GetMenuBar() -> MenuBar"""
348 return _windows
.Frame_GetMenuBar(*args
, **kwargs
)
350 def ProcessCommand(*args
, **kwargs
):
351 """ProcessCommand(int winid) -> bool"""
352 return _windows
.Frame_ProcessCommand(*args
, **kwargs
)
354 Command
= ProcessCommand
355 def CreateStatusBar(*args
, **kwargs
):
357 CreateStatusBar(int number=1, long style=ST_SIZEGRIP, int winid=0,
358 String name=StatusLineNameStr) -> StatusBar
360 return _windows
.Frame_CreateStatusBar(*args
, **kwargs
)
362 def GetStatusBar(*args
, **kwargs
):
363 """GetStatusBar() -> StatusBar"""
364 return _windows
.Frame_GetStatusBar(*args
, **kwargs
)
366 def SetStatusBar(*args
, **kwargs
):
367 """SetStatusBar(StatusBar statBar)"""
368 return _windows
.Frame_SetStatusBar(*args
, **kwargs
)
370 def SetStatusText(*args
, **kwargs
):
371 """SetStatusText(String text, int number=0)"""
372 return _windows
.Frame_SetStatusText(*args
, **kwargs
)
374 def SetStatusWidths(*args
, **kwargs
):
375 """SetStatusWidths(int widths, int widths_field)"""
376 return _windows
.Frame_SetStatusWidths(*args
, **kwargs
)
378 def PushStatusText(*args
, **kwargs
):
379 """PushStatusText(String text, int number=0)"""
380 return _windows
.Frame_PushStatusText(*args
, **kwargs
)
382 def PopStatusText(*args
, **kwargs
):
383 """PopStatusText(int number=0)"""
384 return _windows
.Frame_PopStatusText(*args
, **kwargs
)
386 def SetStatusBarPane(*args
, **kwargs
):
387 """SetStatusBarPane(int n)"""
388 return _windows
.Frame_SetStatusBarPane(*args
, **kwargs
)
390 def GetStatusBarPane(*args
, **kwargs
):
391 """GetStatusBarPane() -> int"""
392 return _windows
.Frame_GetStatusBarPane(*args
, **kwargs
)
394 def CreateToolBar(*args
, **kwargs
):
395 """CreateToolBar(long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
396 return _windows
.Frame_CreateToolBar(*args
, **kwargs
)
398 def GetToolBar(*args
, **kwargs
):
399 """GetToolBar() -> wxToolBar"""
400 return _windows
.Frame_GetToolBar(*args
, **kwargs
)
402 def SetToolBar(*args
, **kwargs
):
403 """SetToolBar(wxToolBar toolbar)"""
404 return _windows
.Frame_SetToolBar(*args
, **kwargs
)
406 def DoGiveHelp(*args
, **kwargs
):
407 """DoGiveHelp(String text, bool show)"""
408 return _windows
.Frame_DoGiveHelp(*args
, **kwargs
)
410 def DoMenuUpdates(*args
, **kwargs
):
411 """DoMenuUpdates(Menu menu=None)"""
412 return _windows
.Frame_DoMenuUpdates(*args
, **kwargs
)
415 class FramePtr(Frame
):
416 def __init__(self
, this
):
418 if not hasattr(self
,"thisown"): self
.thisown
= 0
419 self
.__class
__ = Frame
420 _windows
.Frame_swigregister(FramePtr
)
422 def PreFrame(*args
, **kwargs
):
423 """PreFrame() -> Frame"""
424 val
= _windows
.new_PreFrame(*args
, **kwargs
)
428 #---------------------------------------------------------------------------
430 class Dialog(TopLevelWindow
):
432 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
433 def __init__(self
, *args
, **kwargs
):
435 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
436 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
437 String name=DialogNameStr) -> Dialog
439 newobj
= _windows
.new_Dialog(*args
, **kwargs
)
440 self
.this
= newobj
.this
443 self
._setOORInfo
(self
)
445 def Create(*args
, **kwargs
):
447 Create(Window parent, int id, String title, Point pos=DefaultPosition,
448 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
449 String name=DialogNameStr) -> bool
451 return _windows
.Dialog_Create(*args
, **kwargs
)
453 def SetReturnCode(*args
, **kwargs
):
454 """SetReturnCode(int returnCode)"""
455 return _windows
.Dialog_SetReturnCode(*args
, **kwargs
)
457 def GetReturnCode(*args
, **kwargs
):
458 """GetReturnCode() -> int"""
459 return _windows
.Dialog_GetReturnCode(*args
, **kwargs
)
461 def CreateTextSizer(*args
, **kwargs
):
462 """CreateTextSizer(String message) -> Sizer"""
463 return _windows
.Dialog_CreateTextSizer(*args
, **kwargs
)
465 def CreateButtonSizer(*args
, **kwargs
):
466 """CreateButtonSizer(long flags) -> Sizer"""
467 return _windows
.Dialog_CreateButtonSizer(*args
, **kwargs
)
469 def IsModal(*args
, **kwargs
):
470 """IsModal() -> bool"""
471 return _windows
.Dialog_IsModal(*args
, **kwargs
)
473 def ShowModal(*args
, **kwargs
):
474 """ShowModal() -> int"""
475 return _windows
.Dialog_ShowModal(*args
, **kwargs
)
477 def EndModal(*args
, **kwargs
):
478 """EndModal(int retCode)"""
479 return _windows
.Dialog_EndModal(*args
, **kwargs
)
481 def IsModalShowing(*args
, **kwargs
):
482 """IsModalShowing() -> bool"""
483 return _windows
.Dialog_IsModalShowing(*args
, **kwargs
)
486 class DialogPtr(Dialog
):
487 def __init__(self
, this
):
489 if not hasattr(self
,"thisown"): self
.thisown
= 0
490 self
.__class
__ = Dialog
491 _windows
.Dialog_swigregister(DialogPtr
)
493 def PreDialog(*args
, **kwargs
):
494 """PreDialog() -> Dialog"""
495 val
= _windows
.new_PreDialog(*args
, **kwargs
)
499 #---------------------------------------------------------------------------
501 class MiniFrame(Frame
):
503 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
504 def __init__(self
, *args
, **kwargs
):
506 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
507 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
508 String name=FrameNameStr) -> MiniFrame
510 newobj
= _windows
.new_MiniFrame(*args
, **kwargs
)
511 self
.this
= newobj
.this
514 self
._setOORInfo
(self
)
516 def Create(*args
, **kwargs
):
518 Create(Window parent, int id, String title, Point pos=DefaultPosition,
519 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
520 String name=FrameNameStr) -> bool
522 return _windows
.MiniFrame_Create(*args
, **kwargs
)
525 class MiniFramePtr(MiniFrame
):
526 def __init__(self
, this
):
528 if not hasattr(self
,"thisown"): self
.thisown
= 0
529 self
.__class
__ = MiniFrame
530 _windows
.MiniFrame_swigregister(MiniFramePtr
)
532 def PreMiniFrame(*args
, **kwargs
):
533 """PreMiniFrame() -> MiniFrame"""
534 val
= _windows
.new_PreMiniFrame(*args
, **kwargs
)
538 #---------------------------------------------------------------------------
540 SPLASH_CENTRE_ON_PARENT
= _windows
.SPLASH_CENTRE_ON_PARENT
541 SPLASH_CENTRE_ON_SCREEN
= _windows
.SPLASH_CENTRE_ON_SCREEN
542 SPLASH_NO_CENTRE
= _windows
.SPLASH_NO_CENTRE
543 SPLASH_TIMEOUT
= _windows
.SPLASH_TIMEOUT
544 SPLASH_NO_TIMEOUT
= _windows
.SPLASH_NO_TIMEOUT
545 class SplashScreenWindow(core
.Window
):
547 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
548 def __init__(self
, *args
, **kwargs
):
550 __init__(Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
551 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
553 newobj
= _windows
.new_SplashScreenWindow(*args
, **kwargs
)
554 self
.this
= newobj
.this
557 self
._setOORInfo
(self
)
559 def SetBitmap(*args
, **kwargs
):
560 """SetBitmap(Bitmap bitmap)"""
561 return _windows
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
563 def GetBitmap(*args
, **kwargs
):
564 """GetBitmap() -> Bitmap"""
565 return _windows
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
568 class SplashScreenWindowPtr(SplashScreenWindow
):
569 def __init__(self
, this
):
571 if not hasattr(self
,"thisown"): self
.thisown
= 0
572 self
.__class
__ = SplashScreenWindow
573 _windows
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
575 class SplashScreen(Frame
):
577 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
578 def __init__(self
, *args
, **kwargs
):
580 __init__(Bitmap bitmap, long splashStyle, int milliseconds,
581 Window parent, int id, Point pos=DefaultPosition,
582 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
584 newobj
= _windows
.new_SplashScreen(*args
, **kwargs
)
585 self
.this
= newobj
.this
588 self
._setOORInfo
(self
)
590 def GetSplashStyle(*args
, **kwargs
):
591 """GetSplashStyle() -> long"""
592 return _windows
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
594 def GetSplashWindow(*args
, **kwargs
):
595 """GetSplashWindow() -> SplashScreenWindow"""
596 return _windows
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
598 def GetTimeout(*args
, **kwargs
):
599 """GetTimeout() -> int"""
600 return _windows
.SplashScreen_GetTimeout(*args
, **kwargs
)
603 class SplashScreenPtr(SplashScreen
):
604 def __init__(self
, this
):
606 if not hasattr(self
,"thisown"): self
.thisown
= 0
607 self
.__class
__ = SplashScreen
608 _windows
.SplashScreen_swigregister(SplashScreenPtr
)
610 #---------------------------------------------------------------------------
612 class StatusBar(core
.Window
):
614 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
615 def __init__(self
, *args
, **kwargs
):
616 """__init__(Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
617 newobj
= _windows
.new_StatusBar(*args
, **kwargs
)
618 self
.this
= newobj
.this
621 self
._setOORInfo
(self
)
623 def Create(*args
, **kwargs
):
624 """Create(Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
625 return _windows
.StatusBar_Create(*args
, **kwargs
)
627 def SetFieldsCount(*args
, **kwargs
):
628 """SetFieldsCount(int number=1)"""
629 return _windows
.StatusBar_SetFieldsCount(*args
, **kwargs
)
631 def GetFieldsCount(*args
, **kwargs
):
632 """GetFieldsCount() -> int"""
633 return _windows
.StatusBar_GetFieldsCount(*args
, **kwargs
)
635 def SetStatusText(*args
, **kwargs
):
636 """SetStatusText(String text, int number=0)"""
637 return _windows
.StatusBar_SetStatusText(*args
, **kwargs
)
639 def GetStatusText(*args
, **kwargs
):
640 """GetStatusText(int number=0) -> String"""
641 return _windows
.StatusBar_GetStatusText(*args
, **kwargs
)
643 def PushStatusText(*args
, **kwargs
):
644 """PushStatusText(String text, int number=0)"""
645 return _windows
.StatusBar_PushStatusText(*args
, **kwargs
)
647 def PopStatusText(*args
, **kwargs
):
648 """PopStatusText(int number=0)"""
649 return _windows
.StatusBar_PopStatusText(*args
, **kwargs
)
651 def SetStatusWidths(*args
, **kwargs
):
652 """SetStatusWidths(int widths, int widths_field)"""
653 return _windows
.StatusBar_SetStatusWidths(*args
, **kwargs
)
655 def GetFieldRect(*args
, **kwargs
):
656 """GetFieldRect(int i) -> Rect"""
657 return _windows
.StatusBar_GetFieldRect(*args
, **kwargs
)
659 def SetMinHeight(*args
, **kwargs
):
660 """SetMinHeight(int height)"""
661 return _windows
.StatusBar_SetMinHeight(*args
, **kwargs
)
663 def GetBorderX(*args
, **kwargs
):
664 """GetBorderX() -> int"""
665 return _windows
.StatusBar_GetBorderX(*args
, **kwargs
)
667 def GetBorderY(*args
, **kwargs
):
668 """GetBorderY() -> int"""
669 return _windows
.StatusBar_GetBorderY(*args
, **kwargs
)
672 class StatusBarPtr(StatusBar
):
673 def __init__(self
, this
):
675 if not hasattr(self
,"thisown"): self
.thisown
= 0
676 self
.__class
__ = StatusBar
677 _windows
.StatusBar_swigregister(StatusBarPtr
)
679 def PreStatusBar(*args
, **kwargs
):
680 """PreStatusBar() -> StatusBar"""
681 val
= _windows
.new_PreStatusBar(*args
, **kwargs
)
685 #---------------------------------------------------------------------------
687 SP_NOBORDER
= _windows
.SP_NOBORDER
688 SP_NOSASH
= _windows
.SP_NOSASH
689 SP_PERMIT_UNSPLIT
= _windows
.SP_PERMIT_UNSPLIT
690 SP_LIVE_UPDATE
= _windows
.SP_LIVE_UPDATE
691 SP_3DSASH
= _windows
.SP_3DSASH
692 SP_3DBORDER
= _windows
.SP_3DBORDER
693 SP_NO_XP_THEME
= _windows
.SP_NO_XP_THEME
694 SP_BORDER
= _windows
.SP_BORDER
695 SP_3D
= _windows
.SP_3D
696 SPLIT_HORIZONTAL
= _windows
.SPLIT_HORIZONTAL
697 SPLIT_VERTICAL
= _windows
.SPLIT_VERTICAL
698 SPLIT_DRAG_NONE
= _windows
.SPLIT_DRAG_NONE
699 SPLIT_DRAG_DRAGGING
= _windows
.SPLIT_DRAG_DRAGGING
700 SPLIT_DRAG_LEFT_DOWN
= _windows
.SPLIT_DRAG_LEFT_DOWN
701 class SplitterWindow(core
.Window
):
703 wx.SplitterWindow manages up to two subwindows or panes,
704 with an optional vertical or horizontal split which can be
705 used with the mouse or programmatically.
709 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
710 def __init__(self
, *args
, **kwargs
):
712 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
713 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
715 Constructor. Creates and shows a SplitterWindow.
717 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
718 newobj
= _windows
.new_SplitterWindow(*args
, **kwargs
)
719 self
.this
= newobj
.this
722 self
._setOORInfo
(self
)
724 def Create(*args
, **kwargs
):
726 Create(Window parent, int id=-1, Point pos=DefaultPosition,
727 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
729 Create the GUI part of the SplitterWindow for the 2-phase create.
731 return _windows
.SplitterWindow_Create(*args
, **kwargs
)
733 def GetWindow1(*args
, **kwargs
):
735 GetWindow1() -> Window
737 Gets the only or left/top pane.
739 return _windows
.SplitterWindow_GetWindow1(*args
, **kwargs
)
741 def GetWindow2(*args
, **kwargs
):
743 GetWindow2() -> Window
745 Gets the right/bottom pane.
747 return _windows
.SplitterWindow_GetWindow2(*args
, **kwargs
)
749 def SetSplitMode(*args
, **kwargs
):
751 SetSplitMode(int mode)
753 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
754 wx.SPLIT_HORIZONTAL. This only sets the internal variable;
755 does not update the display.
757 return _windows
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
759 def GetSplitMode(*args
, **kwargs
):
761 GetSplitMode() -> int
765 return _windows
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
767 def Initialize(*args
, **kwargs
):
769 Initialize(Window window)
771 Initializes the splitter window to have one pane. This
772 should be called if you wish to initially view only a single
773 pane in the splitter window.
775 return _windows
.SplitterWindow_Initialize(*args
, **kwargs
)
777 def SplitVertically(*args
, **kwargs
):
779 SplitVertically(Window window1, Window window2, int sashPosition=0) -> bool
781 Initializes the left and right panes of the splitter window.
783 window1 The left pane.
784 window2 The right pane.
785 sashPosition The initial position of the sash. If this
786 value is positive, it specifies the size
787 of the left pane. If it is negative, it is
788 absolute value gives the size of the right
789 pane. Finally, specify 0 (default) to
790 choose the default position (half of the
793 Returns True if successful, False otherwise (the window was
796 SplitVertically should be called if you wish to initially
797 view two panes. It can also be called at any subsequent
798 time, but the application should check that the window is
799 not currently split using IsSplit.
801 return _windows
.SplitterWindow_SplitVertically(*args
, **kwargs
)
803 def SplitHorizontally(*args
, **kwargs
):
805 SplitHorizontally(Window window1, Window window2, int sashPosition=0) -> bool
807 Initializes the top and bottom panes of the splitter window.
809 window1 The top pane.
810 window2 The bottom pane.
811 sashPosition The initial position of the sash. If this
812 value is positive, it specifies the size
813 of the upper pane. If it is negative, it
814 is absolute value gives the size of the
815 lower pane. Finally, specify 0 (default)
816 to choose the default position (half of
817 the total window height).
819 Returns True if successful, False otherwise (the window was
822 SplitHorizontally should be called if you wish to initially
823 view two panes. It can also be called at any subsequent
824 time, but the application should check that the window is
825 not currently split using IsSplit.
827 return _windows
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
829 def Unsplit(*args
, **kwargs
):
831 Unsplit(Window toRemove=None) -> bool
833 Unsplits the window. Pass the pane to remove, or None to
834 remove the right or bottom pane. Returns True if
835 successful, False otherwise (the window was not split).
837 This function will not actually delete the pane being
838 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
839 for the desired behaviour. By default, the pane being
840 removed is only hidden.
842 return _windows
.SplitterWindow_Unsplit(*args
, **kwargs
)
844 def ReplaceWindow(*args
, **kwargs
):
846 ReplaceWindow(Window winOld, Window winNew) -> bool
848 This function replaces one of the windows managed by the
849 SplitterWindow with another one. It is in general better to
850 use it instead of calling Unsplit() and then resplitting the
851 window back because it will provoke much less flicker. It is
852 valid to call this function whether the splitter has two
855 Both parameters should be non-None and winOld must specify
856 one of the windows managed by the splitter. If the
857 parameters are incorrect or the window couldn't be replaced,
858 False is returned. Otherwise the function will return True,
859 but please notice that it will not Destroy the replaced
860 window and you may wish to do it yourself.
862 return _windows
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
864 def UpdateSize(*args
, **kwargs
):
868 Causes any pending sizing of the sash and child panes to
869 take place immediately.
871 Such resizing normally takes place in idle time, in order to
872 wait for layout to be completed. However, this can cause
873 unacceptable flicker as the panes are resized after the
874 window has been shown. To work around this, you can perform
875 window layout (for example by sending a size event to the
876 parent window), and then call this function, before showing
877 the top-level window.
879 return _windows
.SplitterWindow_UpdateSize(*args
, **kwargs
)
881 def IsSplit(*args
, **kwargs
):
887 return _windows
.SplitterWindow_IsSplit(*args
, **kwargs
)
889 def SetSashSize(*args
, **kwargs
):
891 SetSashSize(int width)
895 return _windows
.SplitterWindow_SetSashSize(*args
, **kwargs
)
897 def SetBorderSize(*args
, **kwargs
):
899 SetBorderSize(int width)
903 return _windows
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
905 def GetSashSize(*args
, **kwargs
):
911 return _windows
.SplitterWindow_GetSashSize(*args
, **kwargs
)
913 def GetBorderSize(*args
, **kwargs
):
915 GetBorderSize() -> int
919 return _windows
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
921 def SetSashPosition(*args
, **kwargs
):
923 SetSashPosition(int position, bool redraw=True)
925 Sets the sash position, in pixels. If redraw is Ttrue then
926 the panes are resized and the sash and border are redrawn.
928 return _windows
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
930 def GetSashPosition(*args
, **kwargs
):
932 GetSashPosition() -> int
934 Returns the surrent sash position.
936 return _windows
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
938 def SetMinimumPaneSize(*args
, **kwargs
):
940 SetMinimumPaneSize(int min)
942 Sets the minimum pane size in pixels.
944 The default minimum pane size is zero, which means that
945 either pane can be reduced to zero by dragging the sash,
946 thus removing one of the panes. To prevent this behaviour (and
947 veto out-of-range sash dragging), set a minimum size,
948 for example 20 pixels. If the wx.SP_PERMIT_UNSPLIT style is
949 used when a splitter window is created, the window may be
950 unsplit even if minimum size is non-zero.
952 return _windows
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
954 def GetMinimumPaneSize(*args
, **kwargs
):
956 GetMinimumPaneSize() -> int
958 Gets the minimum pane size in pixels.
960 return _windows
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
962 def SashHitTest(*args
, **kwargs
):
964 SashHitTest(int x, int y, int tolerance=5) -> bool
966 Tests for x, y over the sash
968 return _windows
.SplitterWindow_SashHitTest(*args
, **kwargs
)
970 def SizeWindows(*args
, **kwargs
):
976 return _windows
.SplitterWindow_SizeWindows(*args
, **kwargs
)
978 def SetNeedUpdating(*args
, **kwargs
):
979 """SetNeedUpdating(bool needUpdating)"""
980 return _windows
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
982 def GetNeedUpdating(*args
, **kwargs
):
983 """GetNeedUpdating() -> bool"""
984 return _windows
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
987 class SplitterWindowPtr(SplitterWindow
):
988 def __init__(self
, this
):
990 if not hasattr(self
,"thisown"): self
.thisown
= 0
991 self
.__class
__ = SplitterWindow
992 _windows
.SplitterWindow_swigregister(SplitterWindowPtr
)
993 SplitterNameStr
= cvar
.SplitterNameStr
995 def PreSplitterWindow(*args
, **kwargs
):
997 PreSplitterWindow() -> SplitterWindow
999 Precreate a SplitterWindow for 2-phase creation.
1001 val
= _windows
.new_PreSplitterWindow(*args
, **kwargs
)
1005 class SplitterEvent(core
.NotifyEvent
):
1006 """This class represents the events generated by a splitter control."""
1008 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1009 def __init__(self
, *args
, **kwargs
):
1011 __init__(wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1013 This class represents the events generated by a splitter control.
1015 newobj
= _windows
.new_SplitterEvent(*args
, **kwargs
)
1016 self
.this
= newobj
.this
1019 def SetSashPosition(*args
, **kwargs
):
1021 SetSashPosition(int pos)
1023 This funciton is only meaningful during
1024 EVT_SPLITTER_SASH_POS_CHANGING and
1025 EVT_SPLITTER_SASH_POS_CHANGED events. In the case of
1026 _CHANGED events, sets the the new sash position. In the case
1027 of _CHANGING events, sets the new tracking bar position so
1028 visual feedback during dragging will represent that change
1029 that will actually take place. Set to -1 from the event
1030 handler code to prevent repositioning.
1032 return _windows
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1034 def GetSashPosition(*args
, **kwargs
):
1036 GetSashPosition() -> int
1038 Returns the new sash position while in
1039 EVT_SPLITTER_SASH_POS_CHANGING and
1040 EVT_SPLITTER_SASH_POS_CHANGED events.
1042 return _windows
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1044 def GetWindowBeingRemoved(*args
, **kwargs
):
1046 GetWindowBeingRemoved() -> Window
1048 Returns a pointer to the window being removed when a
1049 splitter window is unsplit.
1051 return _windows
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1053 def GetX(*args
, **kwargs
):
1057 Returns the x coordinate of the double-click point in a
1058 EVT_SPLITTER_DCLICK event.
1060 return _windows
.SplitterEvent_GetX(*args
, **kwargs
)
1062 def GetY(*args
, **kwargs
):
1066 Returns the y coordinate of the double-click point in a
1067 EVT_SPLITTER_DCLICK event.
1069 return _windows
.SplitterEvent_GetY(*args
, **kwargs
)
1072 class SplitterEventPtr(SplitterEvent
):
1073 def __init__(self
, this
):
1075 if not hasattr(self
,"thisown"): self
.thisown
= 0
1076 self
.__class
__ = SplitterEvent
1077 _windows
.SplitterEvent_swigregister(SplitterEventPtr
)
1079 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1080 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1081 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1082 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1083 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1084 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1085 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1086 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1087 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1089 #---------------------------------------------------------------------------
1091 SASH_DRAG_NONE
= _windows
.SASH_DRAG_NONE
1092 SASH_DRAG_DRAGGING
= _windows
.SASH_DRAG_DRAGGING
1093 SASH_DRAG_LEFT_DOWN
= _windows
.SASH_DRAG_LEFT_DOWN
1094 SW_NOBORDER
= _windows
.SW_NOBORDER
1095 SW_BORDER
= _windows
.SW_BORDER
1096 SW_3DSASH
= _windows
.SW_3DSASH
1097 SW_3DBORDER
= _windows
.SW_3DBORDER
1098 SW_3D
= _windows
.SW_3D
1099 SASH_TOP
= _windows
.SASH_TOP
1100 SASH_RIGHT
= _windows
.SASH_RIGHT
1101 SASH_BOTTOM
= _windows
.SASH_BOTTOM
1102 SASH_LEFT
= _windows
.SASH_LEFT
1103 SASH_NONE
= _windows
.SASH_NONE
1104 class SashWindow(core
.Window
):
1106 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1107 def __init__(self
, *args
, **kwargs
):
1109 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1110 long style=wxCLIP_CHILDREN|wxSW_3D,
1111 String name=SashNameStr) -> SashWindow
1113 newobj
= _windows
.new_SashWindow(*args
, **kwargs
)
1114 self
.this
= newobj
.this
1117 self
._setOORInfo
(self
)
1119 def Create(*args
, **kwargs
):
1121 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1122 long style=wxCLIP_CHILDREN|wxSW_3D,
1123 String name=SashNameStr) -> bool
1125 return _windows
.SashWindow_Create(*args
, **kwargs
)
1127 def SetSashVisible(*args
, **kwargs
):
1128 """SetSashVisible(int edge, bool sash)"""
1129 return _windows
.SashWindow_SetSashVisible(*args
, **kwargs
)
1131 def GetSashVisible(*args
, **kwargs
):
1132 """GetSashVisible(int edge) -> bool"""
1133 return _windows
.SashWindow_GetSashVisible(*args
, **kwargs
)
1135 def SetSashBorder(*args
, **kwargs
):
1136 """SetSashBorder(int edge, bool border)"""
1137 return _windows
.SashWindow_SetSashBorder(*args
, **kwargs
)
1139 def HasBorder(*args
, **kwargs
):
1140 """HasBorder(int edge) -> bool"""
1141 return _windows
.SashWindow_HasBorder(*args
, **kwargs
)
1143 def GetEdgeMargin(*args
, **kwargs
):
1144 """GetEdgeMargin(int edge) -> int"""
1145 return _windows
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1147 def SetDefaultBorderSize(*args
, **kwargs
):
1148 """SetDefaultBorderSize(int width)"""
1149 return _windows
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1151 def GetDefaultBorderSize(*args
, **kwargs
):
1152 """GetDefaultBorderSize() -> int"""
1153 return _windows
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1155 def SetExtraBorderSize(*args
, **kwargs
):
1156 """SetExtraBorderSize(int width)"""
1157 return _windows
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1159 def GetExtraBorderSize(*args
, **kwargs
):
1160 """GetExtraBorderSize() -> int"""
1161 return _windows
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1163 def SetMinimumSizeX(*args
, **kwargs
):
1164 """SetMinimumSizeX(int min)"""
1165 return _windows
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1167 def SetMinimumSizeY(*args
, **kwargs
):
1168 """SetMinimumSizeY(int min)"""
1169 return _windows
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1171 def GetMinimumSizeX(*args
, **kwargs
):
1172 """GetMinimumSizeX() -> int"""
1173 return _windows
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1175 def GetMinimumSizeY(*args
, **kwargs
):
1176 """GetMinimumSizeY() -> int"""
1177 return _windows
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1179 def SetMaximumSizeX(*args
, **kwargs
):
1180 """SetMaximumSizeX(int max)"""
1181 return _windows
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1183 def SetMaximumSizeY(*args
, **kwargs
):
1184 """SetMaximumSizeY(int max)"""
1185 return _windows
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1187 def GetMaximumSizeX(*args
, **kwargs
):
1188 """GetMaximumSizeX() -> int"""
1189 return _windows
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1191 def GetMaximumSizeY(*args
, **kwargs
):
1192 """GetMaximumSizeY() -> int"""
1193 return _windows
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1195 def SashHitTest(*args
, **kwargs
):
1196 """SashHitTest(int x, int y, int tolerance=2) -> int"""
1197 return _windows
.SashWindow_SashHitTest(*args
, **kwargs
)
1199 def SizeWindows(*args
, **kwargs
):
1201 return _windows
.SashWindow_SizeWindows(*args
, **kwargs
)
1204 class SashWindowPtr(SashWindow
):
1205 def __init__(self
, this
):
1207 if not hasattr(self
,"thisown"): self
.thisown
= 0
1208 self
.__class
__ = SashWindow
1209 _windows
.SashWindow_swigregister(SashWindowPtr
)
1210 SashNameStr
= cvar
.SashNameStr
1211 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1213 def PreSashWindow(*args
, **kwargs
):
1214 """PreSashWindow() -> SashWindow"""
1215 val
= _windows
.new_PreSashWindow(*args
, **kwargs
)
1219 SASH_STATUS_OK
= _windows
.SASH_STATUS_OK
1220 SASH_STATUS_OUT_OF_RANGE
= _windows
.SASH_STATUS_OUT_OF_RANGE
1221 class SashEvent(core
.CommandEvent
):
1223 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1224 def __init__(self
, *args
, **kwargs
):
1225 """__init__(int id=0, int edge=SASH_NONE) -> SashEvent"""
1226 newobj
= _windows
.new_SashEvent(*args
, **kwargs
)
1227 self
.this
= newobj
.this
1230 def SetEdge(*args
, **kwargs
):
1231 """SetEdge(int edge)"""
1232 return _windows
.SashEvent_SetEdge(*args
, **kwargs
)
1234 def GetEdge(*args
, **kwargs
):
1235 """GetEdge() -> int"""
1236 return _windows
.SashEvent_GetEdge(*args
, **kwargs
)
1238 def SetDragRect(*args
, **kwargs
):
1239 """SetDragRect(Rect rect)"""
1240 return _windows
.SashEvent_SetDragRect(*args
, **kwargs
)
1242 def GetDragRect(*args
, **kwargs
):
1243 """GetDragRect() -> Rect"""
1244 return _windows
.SashEvent_GetDragRect(*args
, **kwargs
)
1246 def SetDragStatus(*args
, **kwargs
):
1247 """SetDragStatus(int status)"""
1248 return _windows
.SashEvent_SetDragStatus(*args
, **kwargs
)
1250 def GetDragStatus(*args
, **kwargs
):
1251 """GetDragStatus() -> int"""
1252 return _windows
.SashEvent_GetDragStatus(*args
, **kwargs
)
1255 class SashEventPtr(SashEvent
):
1256 def __init__(self
, this
):
1258 if not hasattr(self
,"thisown"): self
.thisown
= 0
1259 self
.__class
__ = SashEvent
1260 _windows
.SashEvent_swigregister(SashEventPtr
)
1262 wxEVT_SASH_DRAGGED
= _windows
.wxEVT_SASH_DRAGGED
1263 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1264 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1266 #---------------------------------------------------------------------------
1268 LAYOUT_HORIZONTAL
= _windows
.LAYOUT_HORIZONTAL
1269 LAYOUT_VERTICAL
= _windows
.LAYOUT_VERTICAL
1270 LAYOUT_NONE
= _windows
.LAYOUT_NONE
1271 LAYOUT_TOP
= _windows
.LAYOUT_TOP
1272 LAYOUT_LEFT
= _windows
.LAYOUT_LEFT
1273 LAYOUT_RIGHT
= _windows
.LAYOUT_RIGHT
1274 LAYOUT_BOTTOM
= _windows
.LAYOUT_BOTTOM
1275 LAYOUT_LENGTH_Y
= _windows
.LAYOUT_LENGTH_Y
1276 LAYOUT_LENGTH_X
= _windows
.LAYOUT_LENGTH_X
1277 LAYOUT_MRU_LENGTH
= _windows
.LAYOUT_MRU_LENGTH
1278 LAYOUT_QUERY
= _windows
.LAYOUT_QUERY
1279 wxEVT_QUERY_LAYOUT_INFO
= _windows
.wxEVT_QUERY_LAYOUT_INFO
1280 wxEVT_CALCULATE_LAYOUT
= _windows
.wxEVT_CALCULATE_LAYOUT
1281 class QueryLayoutInfoEvent(core
.Event
):
1283 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1284 def __init__(self
, *args
, **kwargs
):
1285 """__init__(int id=0) -> QueryLayoutInfoEvent"""
1286 newobj
= _windows
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1287 self
.this
= newobj
.this
1290 def SetRequestedLength(*args
, **kwargs
):
1291 """SetRequestedLength(int length)"""
1292 return _windows
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1294 def GetRequestedLength(*args
, **kwargs
):
1295 """GetRequestedLength() -> int"""
1296 return _windows
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1298 def SetFlags(*args
, **kwargs
):
1299 """SetFlags(int flags)"""
1300 return _windows
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1302 def GetFlags(*args
, **kwargs
):
1303 """GetFlags() -> int"""
1304 return _windows
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1306 def SetSize(*args
, **kwargs
):
1307 """SetSize(Size size)"""
1308 return _windows
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1310 def GetSize(*args
, **kwargs
):
1311 """GetSize() -> Size"""
1312 return _windows
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1314 def SetOrientation(*args
, **kwargs
):
1315 """SetOrientation(int orient)"""
1316 return _windows
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1318 def GetOrientation(*args
, **kwargs
):
1319 """GetOrientation() -> int"""
1320 return _windows
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1322 def SetAlignment(*args
, **kwargs
):
1323 """SetAlignment(int align)"""
1324 return _windows
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1326 def GetAlignment(*args
, **kwargs
):
1327 """GetAlignment() -> int"""
1328 return _windows
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1331 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1332 def __init__(self
, this
):
1334 if not hasattr(self
,"thisown"): self
.thisown
= 0
1335 self
.__class
__ = QueryLayoutInfoEvent
1336 _windows
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1338 class CalculateLayoutEvent(core
.Event
):
1340 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1341 def __init__(self
, *args
, **kwargs
):
1342 """__init__(int id=0) -> CalculateLayoutEvent"""
1343 newobj
= _windows
.new_CalculateLayoutEvent(*args
, **kwargs
)
1344 self
.this
= newobj
.this
1347 def SetFlags(*args
, **kwargs
):
1348 """SetFlags(int flags)"""
1349 return _windows
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1351 def GetFlags(*args
, **kwargs
):
1352 """GetFlags() -> int"""
1353 return _windows
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1355 def SetRect(*args
, **kwargs
):
1356 """SetRect(Rect rect)"""
1357 return _windows
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1359 def GetRect(*args
, **kwargs
):
1360 """GetRect() -> Rect"""
1361 return _windows
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1364 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1365 def __init__(self
, this
):
1367 if not hasattr(self
,"thisown"): self
.thisown
= 0
1368 self
.__class
__ = CalculateLayoutEvent
1369 _windows
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1371 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1372 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1374 class SashLayoutWindow(SashWindow
):
1376 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1377 def __init__(self
, *args
, **kwargs
):
1379 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1380 long style=wxCLIP_CHILDREN|wxSW_3D,
1381 String name=SashLayoutNameStr) -> SashLayoutWindow
1383 newobj
= _windows
.new_SashLayoutWindow(*args
, **kwargs
)
1384 self
.this
= newobj
.this
1387 self
._setOORInfo
(self
)
1389 def Create(*args
, **kwargs
):
1391 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1392 long style=wxCLIP_CHILDREN|wxSW_3D,
1393 String name=SashLayoutNameStr) -> bool
1395 return _windows
.SashLayoutWindow_Create(*args
, **kwargs
)
1397 def GetAlignment(*args
, **kwargs
):
1398 """GetAlignment() -> int"""
1399 return _windows
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1401 def GetOrientation(*args
, **kwargs
):
1402 """GetOrientation() -> int"""
1403 return _windows
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1405 def SetAlignment(*args
, **kwargs
):
1406 """SetAlignment(int alignment)"""
1407 return _windows
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1409 def SetDefaultSize(*args
, **kwargs
):
1410 """SetDefaultSize(Size size)"""
1411 return _windows
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1413 def SetOrientation(*args
, **kwargs
):
1414 """SetOrientation(int orientation)"""
1415 return _windows
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1418 class SashLayoutWindowPtr(SashLayoutWindow
):
1419 def __init__(self
, this
):
1421 if not hasattr(self
,"thisown"): self
.thisown
= 0
1422 self
.__class
__ = SashLayoutWindow
1423 _windows
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1425 def PreSashLayoutWindow(*args
, **kwargs
):
1426 """PreSashLayoutWindow() -> SashLayoutWindow"""
1427 val
= _windows
.new_PreSashLayoutWindow(*args
, **kwargs
)
1431 class LayoutAlgorithm(core
.Object
):
1433 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1434 def __init__(self
, *args
, **kwargs
):
1435 """__init__() -> LayoutAlgorithm"""
1436 newobj
= _windows
.new_LayoutAlgorithm(*args
, **kwargs
)
1437 self
.this
= newobj
.this
1440 def __del__(self
, destroy
=_windows
.delete_LayoutAlgorithm
):
1443 if self
.thisown
: destroy(self
)
1446 def LayoutMDIFrame(*args
, **kwargs
):
1447 """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool"""
1448 return _windows
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1450 def LayoutFrame(*args
, **kwargs
):
1451 """LayoutFrame(Frame frame, Window mainWindow=None) -> bool"""
1452 return _windows
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1454 def LayoutWindow(*args
, **kwargs
):
1455 """LayoutWindow(Window parent, Window mainWindow=None) -> bool"""
1456 return _windows
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1459 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1460 def __init__(self
, this
):
1462 if not hasattr(self
,"thisown"): self
.thisown
= 0
1463 self
.__class
__ = LayoutAlgorithm
1464 _windows
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1466 #---------------------------------------------------------------------------
1468 class PopupWindow(core
.Window
):
1470 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1471 def __init__(self
, *args
, **kwargs
):
1472 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1473 newobj
= _windows
.new_PopupWindow(*args
, **kwargs
)
1474 self
.this
= newobj
.this
1477 self
._setOORInfo
(self
)
1479 def Create(*args
, **kwargs
):
1480 """Create(Window parent, int flags=BORDER_NONE) -> bool"""
1481 return _windows
.PopupWindow_Create(*args
, **kwargs
)
1483 def Position(*args
, **kwargs
):
1484 """Position(Point ptOrigin, Size size)"""
1485 return _windows
.PopupWindow_Position(*args
, **kwargs
)
1488 class PopupWindowPtr(PopupWindow
):
1489 def __init__(self
, this
):
1491 if not hasattr(self
,"thisown"): self
.thisown
= 0
1492 self
.__class
__ = PopupWindow
1493 _windows
.PopupWindow_swigregister(PopupWindowPtr
)
1495 def PrePopupWindow(*args
, **kwargs
):
1496 """PrePopupWindow() -> PopupWindow"""
1497 val
= _windows
.new_PrePopupWindow(*args
, **kwargs
)
1501 #---------------------------------------------------------------------------
1503 class PopupTransientWindow(PopupWindow
):
1505 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1506 def __init__(self
, *args
, **kwargs
):
1507 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1508 newobj
= _windows
.new_PopupTransientWindow(*args
, **kwargs
)
1509 self
.this
= newobj
.this
1512 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1514 def _setCallbackInfo(*args
, **kwargs
):
1515 """_setCallbackInfo(PyObject self, PyObject _class)"""
1516 return _windows
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1518 def Popup(*args
, **kwargs
):
1519 """Popup(Window focus=None)"""
1520 return _windows
.PopupTransientWindow_Popup(*args
, **kwargs
)
1522 def Dismiss(*args
, **kwargs
):
1524 return _windows
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1527 class PopupTransientWindowPtr(PopupTransientWindow
):
1528 def __init__(self
, this
):
1530 if not hasattr(self
,"thisown"): self
.thisown
= 0
1531 self
.__class
__ = PopupTransientWindow
1532 _windows
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1534 def PrePopupTransientWindow(*args
, **kwargs
):
1535 """PrePopupTransientWindow() -> PopupTransientWindow"""
1536 val
= _windows
.new_PrePopupTransientWindow(*args
, **kwargs
)
1540 #---------------------------------------------------------------------------
1542 class TipWindow(PopupTransientWindow
):
1544 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1545 def __init__(self
, *args
, **kwargs
):
1546 """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1547 newobj
= _windows
.new_TipWindow(*args
, **kwargs
)
1548 self
.this
= newobj
.this
1551 self
._setOORInfo
(self
)
1553 def SetBoundingRect(*args
, **kwargs
):
1554 """SetBoundingRect(Rect rectBound)"""
1555 return _windows
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1557 def Close(*args
, **kwargs
):
1559 return _windows
.TipWindow_Close(*args
, **kwargs
)
1562 class TipWindowPtr(TipWindow
):
1563 def __init__(self
, this
):
1565 if not hasattr(self
,"thisown"): self
.thisown
= 0
1566 self
.__class
__ = TipWindow
1567 _windows
.TipWindow_swigregister(TipWindowPtr
)
1569 #---------------------------------------------------------------------------
1571 class VScrolledWindow(Panel
):
1573 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1574 def __init__(self
, *args
, **kwargs
):
1576 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1577 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1579 newobj
= _windows
.new_VScrolledWindow(*args
, **kwargs
)
1580 self
.this
= newobj
.this
1583 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1585 def _setCallbackInfo(*args
, **kwargs
):
1586 """_setCallbackInfo(PyObject self, PyObject _class)"""
1587 return _windows
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1589 def Create(*args
, **kwargs
):
1591 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1592 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1594 return _windows
.VScrolledWindow_Create(*args
, **kwargs
)
1596 def SetLineCount(*args
, **kwargs
):
1597 """SetLineCount(size_t count)"""
1598 return _windows
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1600 def ScrollToLine(*args
, **kwargs
):
1601 """ScrollToLine(size_t line) -> bool"""
1602 return _windows
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1604 def ScrollLines(*args
, **kwargs
):
1606 ScrollLines(int lines) -> bool
1608 If the platform and window class supports it, scrolls the window by
1609 the given number of lines down, if lines is positive, or up if lines
1610 is negative. Returns True if the window was scrolled, False if it was
1611 already on top/bottom and nothing was done.
1613 return _windows
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1615 def ScrollPages(*args
, **kwargs
):
1617 ScrollPages(int pages) -> bool
1619 If the platform and window class supports it, scrolls the window by
1620 the given number of pages down, if pages is positive, or up if pages
1621 is negative. Returns True if the window was scrolled, False if it was
1622 already on top/bottom and nothing was done.
1624 return _windows
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1626 def RefreshLine(*args
, **kwargs
):
1627 """RefreshLine(size_t line)"""
1628 return _windows
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1630 def RefreshLines(*args
, **kwargs
):
1631 """RefreshLines(size_t from, size_t to)"""
1632 return _windows
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1634 def HitTestXT(*args
, **kwargs
):
1636 HitTestXT(int x, int y) -> int
1638 Test where the given (in client coords) point lies
1640 return _windows
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1642 def HitTest(*args
, **kwargs
):
1644 HitTest(Point pt) -> int
1646 Test where the given (in client coords) point lies
1648 return _windows
.VScrolledWindow_HitTest(*args
, **kwargs
)
1650 def RefreshAll(*args
, **kwargs
):
1652 return _windows
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1654 def GetLineCount(*args
, **kwargs
):
1655 """GetLineCount() -> size_t"""
1656 return _windows
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1658 def GetFirstVisibleLine(*args
, **kwargs
):
1659 """GetFirstVisibleLine() -> size_t"""
1660 return _windows
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1662 def GetLastVisibleLine(*args
, **kwargs
):
1663 """GetLastVisibleLine() -> size_t"""
1664 return _windows
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1666 def IsVisible(*args
, **kwargs
):
1667 """IsVisible(size_t line) -> bool"""
1668 return _windows
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1671 class VScrolledWindowPtr(VScrolledWindow
):
1672 def __init__(self
, this
):
1674 if not hasattr(self
,"thisown"): self
.thisown
= 0
1675 self
.__class
__ = VScrolledWindow
1676 _windows
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1678 def PreVScrolledWindow(*args
, **kwargs
):
1679 """PreVScrolledWindow() -> VScrolledWindow"""
1680 val
= _windows
.new_PreVScrolledWindow(*args
, **kwargs
)
1684 class VListBox(VScrolledWindow
):
1686 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1687 def __init__(self
, *args
, **kwargs
):
1689 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1690 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1692 newobj
= _windows
.new_VListBox(*args
, **kwargs
)
1693 self
.this
= newobj
.this
1696 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1698 def _setCallbackInfo(*args
, **kwargs
):
1699 """_setCallbackInfo(PyObject self, PyObject _class)"""
1700 return _windows
.VListBox__setCallbackInfo(*args
, **kwargs
)
1702 def Create(*args
, **kwargs
):
1704 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1705 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1707 return _windows
.VListBox_Create(*args
, **kwargs
)
1709 def GetItemCount(*args
, **kwargs
):
1710 """GetItemCount() -> size_t"""
1711 return _windows
.VListBox_GetItemCount(*args
, **kwargs
)
1713 def HasMultipleSelection(*args
, **kwargs
):
1714 """HasMultipleSelection() -> bool"""
1715 return _windows
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1717 def GetSelection(*args
, **kwargs
):
1718 """GetSelection() -> int"""
1719 return _windows
.VListBox_GetSelection(*args
, **kwargs
)
1721 def IsCurrent(*args
, **kwargs
):
1722 """IsCurrent(size_t item) -> bool"""
1723 return _windows
.VListBox_IsCurrent(*args
, **kwargs
)
1725 def IsSelected(*args
, **kwargs
):
1726 """IsSelected(size_t item) -> bool"""
1727 return _windows
.VListBox_IsSelected(*args
, **kwargs
)
1729 def GetSelectedCount(*args
, **kwargs
):
1730 """GetSelectedCount() -> size_t"""
1731 return _windows
.VListBox_GetSelectedCount(*args
, **kwargs
)
1733 def GetFirstSelected(*args
, **kwargs
):
1734 """GetFirstSelected(unsigned long cookie) -> int"""
1735 return _windows
.VListBox_GetFirstSelected(*args
, **kwargs
)
1737 def GetNextSelected(*args
, **kwargs
):
1738 """GetNextSelected(unsigned long cookie) -> int"""
1739 return _windows
.VListBox_GetNextSelected(*args
, **kwargs
)
1741 def GetMargins(*args
, **kwargs
):
1742 """GetMargins() -> Point"""
1743 return _windows
.VListBox_GetMargins(*args
, **kwargs
)
1745 def GetSelectionBackground(*args
, **kwargs
):
1746 """GetSelectionBackground() -> Colour"""
1747 return _windows
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1749 def SetItemCount(*args
, **kwargs
):
1750 """SetItemCount(size_t count)"""
1751 return _windows
.VListBox_SetItemCount(*args
, **kwargs
)
1753 def Clear(*args
, **kwargs
):
1755 return _windows
.VListBox_Clear(*args
, **kwargs
)
1757 def SetSelection(*args
, **kwargs
):
1758 """SetSelection(int selection)"""
1759 return _windows
.VListBox_SetSelection(*args
, **kwargs
)
1761 def Select(*args
, **kwargs
):
1762 """Select(size_t item, bool select=True) -> bool"""
1763 return _windows
.VListBox_Select(*args
, **kwargs
)
1765 def SelectRange(*args
, **kwargs
):
1766 """SelectRange(size_t from, size_t to) -> bool"""
1767 return _windows
.VListBox_SelectRange(*args
, **kwargs
)
1769 def Toggle(*args
, **kwargs
):
1770 """Toggle(size_t item)"""
1771 return _windows
.VListBox_Toggle(*args
, **kwargs
)
1773 def SelectAll(*args
, **kwargs
):
1774 """SelectAll() -> bool"""
1775 return _windows
.VListBox_SelectAll(*args
, **kwargs
)
1777 def DeselectAll(*args
, **kwargs
):
1778 """DeselectAll() -> bool"""
1779 return _windows
.VListBox_DeselectAll(*args
, **kwargs
)
1781 def SetMargins(*args
, **kwargs
):
1782 """SetMargins(Point pt)"""
1783 return _windows
.VListBox_SetMargins(*args
, **kwargs
)
1785 def SetMarginsXY(*args
, **kwargs
):
1786 """SetMarginsXY(int x, int y)"""
1787 return _windows
.VListBox_SetMarginsXY(*args
, **kwargs
)
1789 def SetSelectionBackground(*args
, **kwargs
):
1790 """SetSelectionBackground(Colour col)"""
1791 return _windows
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1794 class VListBoxPtr(VListBox
):
1795 def __init__(self
, this
):
1797 if not hasattr(self
,"thisown"): self
.thisown
= 0
1798 self
.__class
__ = VListBox
1799 _windows
.VListBox_swigregister(VListBoxPtr
)
1800 VListBoxNameStr
= cvar
.VListBoxNameStr
1802 def PreVListBox(*args
, **kwargs
):
1803 """PreVListBox() -> VListBox"""
1804 val
= _windows
.new_PreVListBox(*args
, **kwargs
)
1808 class HtmlListBox(VListBox
):
1810 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1811 def __init__(self
, *args
, **kwargs
):
1813 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1814 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1816 newobj
= _windows
.new_HtmlListBox(*args
, **kwargs
)
1817 self
.this
= newobj
.this
1820 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1822 def _setCallbackInfo(*args
, **kwargs
):
1823 """_setCallbackInfo(PyObject self, PyObject _class)"""
1824 return _windows
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1826 def Create(*args
, **kwargs
):
1828 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1829 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1831 return _windows
.HtmlListBox_Create(*args
, **kwargs
)
1833 def RefreshAll(*args
, **kwargs
):
1835 return _windows
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1837 def SetItemCount(*args
, **kwargs
):
1838 """SetItemCount(size_t count)"""
1839 return _windows
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1842 class HtmlListBoxPtr(HtmlListBox
):
1843 def __init__(self
, this
):
1845 if not hasattr(self
,"thisown"): self
.thisown
= 0
1846 self
.__class
__ = HtmlListBox
1847 _windows
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1849 def PreHtmlListBox(*args
, **kwargs
):
1850 """PreHtmlListBox() -> HtmlListBox"""
1851 val
= _windows
.new_PreHtmlListBox(*args
, **kwargs
)
1855 #---------------------------------------------------------------------------
1857 class TaskBarIcon(core
.EvtHandler
):
1859 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1860 def __init__(self
, *args
, **kwargs
):
1861 """__init__() -> TaskBarIcon"""
1862 newobj
= _windows
.new_TaskBarIcon(*args
, **kwargs
)
1863 self
.this
= newobj
.this
1866 def __del__(self
, destroy
=_windows
.delete_TaskBarIcon
):
1869 if self
.thisown
: destroy(self
)
1872 def Destroy(*args
, **kwargs
):
1876 Deletes the C++ object this Python object is a proxy for.
1878 return _windows
.TaskBarIcon_Destroy(*args
, **kwargs
)
1880 def IsOk(*args
, **kwargs
):
1881 """IsOk() -> bool"""
1882 return _windows
.TaskBarIcon_IsOk(*args
, **kwargs
)
1884 def __nonzero__(self
): return self
.IsOk()
1885 def IsIconInstalled(*args
, **kwargs
):
1886 """IsIconInstalled() -> bool"""
1887 return _windows
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
1889 def SetIcon(*args
, **kwargs
):
1890 """SetIcon(Icon icon, String tooltip=EmptyString) -> bool"""
1891 return _windows
.TaskBarIcon_SetIcon(*args
, **kwargs
)
1893 def RemoveIcon(*args
, **kwargs
):
1894 """RemoveIcon() -> bool"""
1895 return _windows
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
1897 def PopupMenu(*args
, **kwargs
):
1898 """PopupMenu(Menu menu) -> bool"""
1899 return _windows
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
1902 class TaskBarIconPtr(TaskBarIcon
):
1903 def __init__(self
, this
):
1905 if not hasattr(self
,"thisown"): self
.thisown
= 0
1906 self
.__class
__ = TaskBarIcon
1907 _windows
.TaskBarIcon_swigregister(TaskBarIconPtr
)
1909 class TaskBarIconEvent(core
.Event
):
1911 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1912 def __init__(self
, *args
, **kwargs
):
1913 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
1914 newobj
= _windows
.new_TaskBarIconEvent(*args
, **kwargs
)
1915 self
.this
= newobj
.this
1919 class TaskBarIconEventPtr(TaskBarIconEvent
):
1920 def __init__(self
, this
):
1922 if not hasattr(self
,"thisown"): self
.thisown
= 0
1923 self
.__class
__ = TaskBarIconEvent
1924 _windows
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
1926 wxEVT_TASKBAR_MOVE
= _windows
.wxEVT_TASKBAR_MOVE
1927 wxEVT_TASKBAR_LEFT_DOWN
= _windows
.wxEVT_TASKBAR_LEFT_DOWN
1928 wxEVT_TASKBAR_LEFT_UP
= _windows
.wxEVT_TASKBAR_LEFT_UP
1929 wxEVT_TASKBAR_RIGHT_DOWN
= _windows
.wxEVT_TASKBAR_RIGHT_DOWN
1930 wxEVT_TASKBAR_RIGHT_UP
= _windows
.wxEVT_TASKBAR_RIGHT_UP
1931 wxEVT_TASKBAR_LEFT_DCLICK
= _windows
.wxEVT_TASKBAR_LEFT_DCLICK
1932 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows
.wxEVT_TASKBAR_RIGHT_DCLICK
1933 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
1934 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
1935 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
1936 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
1937 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
1938 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
1939 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
1941 #---------------------------------------------------------------------------
1943 class ColourData(core
.Object
):
1944 """This class holds a variety of information related to colour dialogs."""
1946 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1947 def __init__(self
, *args
, **kwargs
):
1949 __init__() -> ColourData
1951 Constructor, sets default values.
1953 newobj
= _windows
.new_ColourData(*args
, **kwargs
)
1954 self
.this
= newobj
.this
1957 def __del__(self
, destroy
=_windows
.delete_ColourData
):
1960 if self
.thisown
: destroy(self
)
1963 def GetChooseFull(*args
, **kwargs
):
1965 GetChooseFull() -> bool
1967 Under Windows, determines whether the Windows colour dialog will display
1968 the full dialog with custom colour selection controls. Has no meaning
1969 under other platforms. The default value is true.
1971 return _windows
.ColourData_GetChooseFull(*args
, **kwargs
)
1973 def GetColour(*args
, **kwargs
):
1975 GetColour() -> Colour
1977 Gets the colour (pre)selected by the dialog.
1979 return _windows
.ColourData_GetColour(*args
, **kwargs
)
1981 def GetCustomColour(*args
, **kwargs
):
1983 GetCustomColour(int i) -> Colour
1985 Gets the i'th custom colour associated with the colour dialog. i should
1986 be an integer between 0 and 15. The default custom colours are all white.
1988 return _windows
.ColourData_GetCustomColour(*args
, **kwargs
)
1990 def SetChooseFull(*args
, **kwargs
):
1992 SetChooseFull(int flag)
1994 Under Windows, tells the Windows colour dialog to display the full dialog
1995 with custom colour selection controls. Under other platforms, has no effect.
1996 The default value is true.
1998 return _windows
.ColourData_SetChooseFull(*args
, **kwargs
)
2000 def SetColour(*args
, **kwargs
):
2002 SetColour(Colour colour)
2004 Sets the default colour for the colour dialog. The default colour is black.
2006 return _windows
.ColourData_SetColour(*args
, **kwargs
)
2008 def SetCustomColour(*args
, **kwargs
):
2010 SetCustomColour(int i, Colour colour)
2012 Sets the i'th custom colour for the colour dialog. i should be an integer
2013 between 0 and 15. The default custom colours are all white.
2015 return _windows
.ColourData_SetCustomColour(*args
, **kwargs
)
2018 class ColourDataPtr(ColourData
):
2019 def __init__(self
, this
):
2021 if not hasattr(self
,"thisown"): self
.thisown
= 0
2022 self
.__class
__ = ColourData
2023 _windows
.ColourData_swigregister(ColourDataPtr
)
2024 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2025 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2026 DirDialogNameStr
= cvar
.DirDialogNameStr
2027 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2028 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2029 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2031 class ColourDialog(Dialog
):
2032 """This class represents the colour chooser dialog."""
2034 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2035 def __init__(self
, *args
, **kwargs
):
2037 __init__(Window parent, ColourData data=None) -> ColourDialog
2039 Constructor. Pass a parent window, and optionally a ColourData, which
2040 will be copied to the colour dialog's internal ColourData instance.
2042 newobj
= _windows
.new_ColourDialog(*args
, **kwargs
)
2043 self
.this
= newobj
.this
2046 self
._setOORInfo
(self
)
2048 def GetColourData(*args
, **kwargs
):
2050 GetColourData() -> ColourData
2052 Returns a reference to the ColourData used by the dialog.
2054 return _windows
.ColourDialog_GetColourData(*args
, **kwargs
)
2057 class ColourDialogPtr(ColourDialog
):
2058 def __init__(self
, this
):
2060 if not hasattr(self
,"thisown"): self
.thisown
= 0
2061 self
.__class
__ = ColourDialog
2062 _windows
.ColourDialog_swigregister(ColourDialogPtr
)
2064 class DirDialog(Dialog
):
2065 """This class represents the directory chooser dialog."""
2067 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2068 def __init__(self
, *args
, **kwargs
):
2070 __init__(Window parent, String message=DirSelectorPromptStr,
2071 String defaultPath=EmptyString, long style=0,
2072 Point pos=DefaultPosition, Size size=DefaultSize,
2073 String name=DirDialogNameStr) -> DirDialog
2075 Constructor. Use ShowModal method to show the dialog.
2077 newobj
= _windows
.new_DirDialog(*args
, **kwargs
)
2078 self
.this
= newobj
.this
2081 self
._setOORInfo
(self
)
2083 def GetPath(*args
, **kwargs
):
2087 Returns the default or user-selected path.
2089 return _windows
.DirDialog_GetPath(*args
, **kwargs
)
2091 def GetMessage(*args
, **kwargs
):
2093 GetMessage() -> String
2095 Returns the message that will be displayed on the dialog.
2097 return _windows
.DirDialog_GetMessage(*args
, **kwargs
)
2099 def GetStyle(*args
, **kwargs
):
2103 Returns the dialog style.
2105 return _windows
.DirDialog_GetStyle(*args
, **kwargs
)
2107 def SetMessage(*args
, **kwargs
):
2109 SetMessage(String message)
2111 Sets the message that will be displayed on the dialog.
2113 return _windows
.DirDialog_SetMessage(*args
, **kwargs
)
2115 def SetPath(*args
, **kwargs
):
2117 SetPath(String path)
2119 Sets the default path.
2121 return _windows
.DirDialog_SetPath(*args
, **kwargs
)
2124 class DirDialogPtr(DirDialog
):
2125 def __init__(self
, this
):
2127 if not hasattr(self
,"thisown"): self
.thisown
= 0
2128 self
.__class
__ = DirDialog
2129 _windows
.DirDialog_swigregister(DirDialogPtr
)
2131 class FileDialog(Dialog
):
2132 """This class represents the file chooser dialog."""
2134 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2135 def __init__(self
, *args
, **kwargs
):
2137 __init__(Window parent, String message=FileSelectorPromptStr,
2138 String defaultDir=EmptyString, String defaultFile=EmptyString,
2139 String wildcard=FileSelectorDefaultWildcardStr,
2140 long style=0, Point pos=DefaultPosition) -> FileDialog
2142 Constructor. Use ShowModal method to show the dialog.
2144 newobj
= _windows
.new_FileDialog(*args
, **kwargs
)
2145 self
.this
= newobj
.this
2148 self
._setOORInfo
(self
)
2150 def SetMessage(*args
, **kwargs
):
2152 SetMessage(String message)
2154 Sets the message that will be displayed on the dialog.
2156 return _windows
.FileDialog_SetMessage(*args
, **kwargs
)
2158 def SetPath(*args
, **kwargs
):
2160 SetPath(String path)
2162 Sets the path (the combined directory and filename that will
2163 be returned when the dialog is dismissed).
2165 return _windows
.FileDialog_SetPath(*args
, **kwargs
)
2167 def SetDirectory(*args
, **kwargs
):
2169 SetDirectory(String dir)
2171 Sets the default directory.
2173 return _windows
.FileDialog_SetDirectory(*args
, **kwargs
)
2175 def SetFilename(*args
, **kwargs
):
2177 SetFilename(String name)
2179 Sets the default filename.
2181 return _windows
.FileDialog_SetFilename(*args
, **kwargs
)
2183 def SetWildcard(*args
, **kwargs
):
2185 SetWildcard(String wildCard)
2187 Sets the wildcard, which can contain multiple file types, for example:
2188 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2190 return _windows
.FileDialog_SetWildcard(*args
, **kwargs
)
2192 def SetStyle(*args
, **kwargs
):
2194 SetStyle(long style)
2196 Sets the dialog style.
2198 return _windows
.FileDialog_SetStyle(*args
, **kwargs
)
2200 def SetFilterIndex(*args
, **kwargs
):
2202 SetFilterIndex(int filterIndex)
2204 Sets the default filter index, starting from zero.
2206 return _windows
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2208 def GetMessage(*args
, **kwargs
):
2210 GetMessage() -> String
2212 Returns the message that will be displayed on the dialog.
2214 return _windows
.FileDialog_GetMessage(*args
, **kwargs
)
2216 def GetPath(*args
, **kwargs
):
2220 Returns the full path (directory and filename) of the selected file.
2222 return _windows
.FileDialog_GetPath(*args
, **kwargs
)
2224 def GetDirectory(*args
, **kwargs
):
2226 GetDirectory() -> String
2228 Returns the default directory.
2230 return _windows
.FileDialog_GetDirectory(*args
, **kwargs
)
2232 def GetFilename(*args
, **kwargs
):
2234 GetFilename() -> String
2236 Returns the default filename.
2238 return _windows
.FileDialog_GetFilename(*args
, **kwargs
)
2240 def GetWildcard(*args
, **kwargs
):
2242 GetWildcard() -> String
2244 Returns the file dialog wildcard.
2246 return _windows
.FileDialog_GetWildcard(*args
, **kwargs
)
2248 def GetStyle(*args
, **kwargs
):
2252 Returns the dialog style.
2254 return _windows
.FileDialog_GetStyle(*args
, **kwargs
)
2256 def GetFilterIndex(*args
, **kwargs
):
2258 GetFilterIndex() -> int
2260 Returns the index into the list of filters supplied, optionally, in
2261 the wildcard parameter. Before the dialog is shown, this is the index
2262 which will be used when the dialog is first displayed. After the dialog
2263 is shown, this is the index selected by the user.
2265 return _windows
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2267 def GetFilenames(*args
, **kwargs
):
2269 GetFilenames() -> PyObject
2271 Returns a list of filenames chosen in the dialog. This function should
2272 only be used with the dialogs which have wx.MULTIPLE style, use
2273 GetFilename for the others.
2275 return _windows
.FileDialog_GetFilenames(*args
, **kwargs
)
2277 def GetPaths(*args
, **kwargs
):
2279 GetPaths() -> PyObject
2281 Fills the array paths with the full paths of the files chosen. This
2282 function should only be used with the dialogs which have wx.MULTIPLE style,
2283 use GetPath for the others.
2285 return _windows
.FileDialog_GetPaths(*args
, **kwargs
)
2288 class FileDialogPtr(FileDialog
):
2289 def __init__(self
, this
):
2291 if not hasattr(self
,"thisown"): self
.thisown
= 0
2292 self
.__class
__ = FileDialog
2293 _windows
.FileDialog_swigregister(FileDialogPtr
)
2295 CHOICEDLG_STYLE
= _windows
.CHOICEDLG_STYLE
2296 class MultiChoiceDialog(Dialog
):
2297 """A simple dialog with a multi selection listbox."""
2299 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2300 def __init__(self
, *args
, **kwargs
):
2302 __init__(Window parent, String message, String caption,
2303 List choices=[], long style=CHOICEDLG_STYLE,
2304 Point pos=DefaultPosition) -> MultiChoiceDialog
2306 Constructor. Use ShowModal method to show the dialog.
2308 newobj
= _windows
.new_MultiChoiceDialog(*args
, **kwargs
)
2309 self
.this
= newobj
.this
2312 self
._setOORInfo
(self
)
2314 def SetSelections(*args
, **kwargs
):
2316 SetSelections(List selections)
2318 Specify the items in the list that shoudl be selected, using a list of integers.
2320 return _windows
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2322 def GetSelections(*args
, **kwargs
):
2324 GetSelections() -> [selections]
2326 Returns a list of integers representing the items that are selected.
2328 return _windows
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2331 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2332 def __init__(self
, this
):
2334 if not hasattr(self
,"thisown"): self
.thisown
= 0
2335 self
.__class
__ = MultiChoiceDialog
2336 _windows
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2338 class SingleChoiceDialog(Dialog
):
2339 """A simple dialog with a single selection listbox."""
2341 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2342 def __init__(self
, *args
, **kwargs
):
2344 __init__(Window parent, String message, String caption,
2345 List choices=[], long style=CHOICEDLG_STYLE,
2346 Point pos=DefaultPosition) -> SingleChoiceDialog
2348 Constructor. Use ShowModal method to show the dialog.
2350 newobj
= _windows
.new_SingleChoiceDialog(*args
, **kwargs
)
2351 self
.this
= newobj
.this
2354 self
._setOORInfo
(self
)
2356 def GetSelection(*args
, **kwargs
):
2358 GetSelection() -> int
2360 Get the index of teh currently selected item.
2362 return _windows
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2364 def GetStringSelection(*args
, **kwargs
):
2366 GetStringSelection() -> String
2368 Returns the string value of the currently selected item
2370 return _windows
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2372 def SetSelection(*args
, **kwargs
):
2374 SetSelection(int sel)
2376 Set the current selected item to sel
2378 return _windows
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2381 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2382 def __init__(self
, this
):
2384 if not hasattr(self
,"thisown"): self
.thisown
= 0
2385 self
.__class
__ = SingleChoiceDialog
2386 _windows
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2388 class TextEntryDialog(Dialog
):
2389 """A dialog with text control, [ok] and [cancel] buttons"""
2391 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2392 def __init__(self
, *args
, **kwargs
):
2394 __init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
2395 String defaultValue=EmptyString,
2396 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2398 Constructor. Use ShowModal method to show the dialog.
2400 newobj
= _windows
.new_TextEntryDialog(*args
, **kwargs
)
2401 self
.this
= newobj
.this
2404 self
._setOORInfo
(self
)
2406 def GetValue(*args
, **kwargs
):
2408 GetValue() -> String
2410 Returns the text that the user has entered if the user has pressed OK,
2411 or the original value if the user has pressed Cancel.
2413 return _windows
.TextEntryDialog_GetValue(*args
, **kwargs
)
2415 def SetValue(*args
, **kwargs
):
2417 SetValue(String value)
2419 Sets the default text value.
2421 return _windows
.TextEntryDialog_SetValue(*args
, **kwargs
)
2424 class TextEntryDialogPtr(TextEntryDialog
):
2425 def __init__(self
, this
):
2427 if not hasattr(self
,"thisown"): self
.thisown
= 0
2428 self
.__class
__ = TextEntryDialog
2429 _windows
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2431 class FontData(core
.Object
):
2432 """This class holds a variety of information related to font dialogs."""
2434 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2435 def __init__(self
, *args
, **kwargs
):
2437 __init__() -> FontData
2439 This class holds a variety of information related to font dialogs.
2441 newobj
= _windows
.new_FontData(*args
, **kwargs
)
2442 self
.this
= newobj
.this
2445 def __del__(self
, destroy
=_windows
.delete_FontData
):
2448 if self
.thisown
: destroy(self
)
2451 def EnableEffects(*args
, **kwargs
):
2453 EnableEffects(bool enable)
2455 Enables or disables 'effects' under MS Windows only. This refers
2456 to the controls for manipulating colour, strikeout and underline
2457 properties. The default value is true.
2459 return _windows
.FontData_EnableEffects(*args
, **kwargs
)
2461 def GetAllowSymbols(*args
, **kwargs
):
2463 GetAllowSymbols() -> bool
2465 Under MS Windows, returns a flag determining whether symbol fonts can be
2466 selected. Has no effect on other platforms. The default value is true.
2468 return _windows
.FontData_GetAllowSymbols(*args
, **kwargs
)
2470 def GetColour(*args
, **kwargs
):
2472 GetColour() -> Colour
2474 Gets the colour associated with the font dialog. The default value is black.
2476 return _windows
.FontData_GetColour(*args
, **kwargs
)
2478 def GetChosenFont(*args
, **kwargs
):
2480 GetChosenFont() -> Font
2482 Gets the font chosen by the user.
2484 return _windows
.FontData_GetChosenFont(*args
, **kwargs
)
2486 def GetEnableEffects(*args
, **kwargs
):
2488 GetEnableEffects() -> bool
2490 Determines whether 'effects' are enabled under Windows.
2492 return _windows
.FontData_GetEnableEffects(*args
, **kwargs
)
2494 def GetInitialFont(*args
, **kwargs
):
2496 GetInitialFont() -> Font
2498 Gets the font that will be initially used by the font dialog. This should have
2499 previously been set by the application.
2501 return _windows
.FontData_GetInitialFont(*args
, **kwargs
)
2503 def GetShowHelp(*args
, **kwargs
):
2505 GetShowHelp() -> bool
2507 Returns true if the Help button will be shown (Windows only). The default
2510 return _windows
.FontData_GetShowHelp(*args
, **kwargs
)
2512 def SetAllowSymbols(*args
, **kwargs
):
2514 SetAllowSymbols(bool allowSymbols)
2516 Under MS Windows, determines whether symbol fonts can be selected. Has no
2517 effect on other platforms. The default value is true.
2519 return _windows
.FontData_SetAllowSymbols(*args
, **kwargs
)
2521 def SetChosenFont(*args
, **kwargs
):
2523 SetChosenFont(Font font)
2525 Sets the font that will be returned to the user (for internal use only).
2527 return _windows
.FontData_SetChosenFont(*args
, **kwargs
)
2529 def SetColour(*args
, **kwargs
):
2531 SetColour(Colour colour)
2533 Sets the colour that will be used for the font foreground colour. The default
2536 return _windows
.FontData_SetColour(*args
, **kwargs
)
2538 def SetInitialFont(*args
, **kwargs
):
2540 SetInitialFont(Font font)
2542 Sets the font that will be initially used by the font dialog.
2544 return _windows
.FontData_SetInitialFont(*args
, **kwargs
)
2546 def SetRange(*args
, **kwargs
):
2548 SetRange(int min, int max)
2550 Sets the valid range for the font point size (Windows only). The default is
2551 0, 0 (unrestricted range).
2553 return _windows
.FontData_SetRange(*args
, **kwargs
)
2555 def SetShowHelp(*args
, **kwargs
):
2557 SetShowHelp(bool showHelp)
2559 Determines whether the Help button will be displayed in the font dialog
2560 (Windows only). The default value is false.
2562 return _windows
.FontData_SetShowHelp(*args
, **kwargs
)
2565 class FontDataPtr(FontData
):
2566 def __init__(self
, this
):
2568 if not hasattr(self
,"thisown"): self
.thisown
= 0
2569 self
.__class
__ = FontData
2570 _windows
.FontData_swigregister(FontDataPtr
)
2572 class FontDialog(Dialog
):
2573 """This class represents the font chooser dialog."""
2575 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2576 def __init__(self
, *args
, **kwargs
):
2578 __init__(Window parent, FontData data) -> FontDialog
2580 Constructor. Pass a parent window and the FontData object to be
2581 used to initialize the dialog controls.
2583 newobj
= _windows
.new_FontDialog(*args
, **kwargs
)
2584 self
.this
= newobj
.this
2587 self
._setOORInfo
(self
)
2589 def GetFontData(*args
, **kwargs
):
2591 GetFontData() -> FontData
2593 Returns a reference to the internal FontData used by the FontDialog.
2595 return _windows
.FontDialog_GetFontData(*args
, **kwargs
)
2598 class FontDialogPtr(FontDialog
):
2599 def __init__(self
, this
):
2601 if not hasattr(self
,"thisown"): self
.thisown
= 0
2602 self
.__class
__ = FontDialog
2603 _windows
.FontDialog_swigregister(FontDialogPtr
)
2605 class MessageDialog(Dialog
):
2607 This class provides a dialog that shows a single or multi-line message, with
2608 a choice of OK, Yes, No and Cancel buttons.
2611 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2612 def __init__(self
, *args
, **kwargs
):
2614 __init__(Window parent, String message, String caption=MessageBoxCaptionStr,
2615 long style=wxOK|wxCANCEL|wxCENTRE,
2616 Point pos=DefaultPosition) -> MessageDialog
2618 This class provides a dialog that shows a single or multi-line message, with
2619 a choice of OK, Yes, No and Cancel buttons.
2621 newobj
= _windows
.new_MessageDialog(*args
, **kwargs
)
2622 self
.this
= newobj
.this
2625 self
._setOORInfo
(self
)
2628 class MessageDialogPtr(MessageDialog
):
2629 def __init__(self
, this
):
2631 if not hasattr(self
,"thisown"): self
.thisown
= 0
2632 self
.__class
__ = MessageDialog
2633 _windows
.MessageDialog_swigregister(MessageDialogPtr
)
2635 class ProgressDialog(Frame
):
2637 A dialog that shows a short message and a progress bar. Optionally, it can
2638 display an ABORT button.
2641 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2642 def __init__(self
, *args
, **kwargs
):
2644 __init__(String title, String message, int maximum=100, Window parent=None,
2645 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2647 Constructor. Creates the dialog, displays it and disables user input for other
2648 windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only.
2650 newobj
= _windows
.new_ProgressDialog(*args
, **kwargs
)
2651 self
.this
= newobj
.this
2654 self
._setOORInfo
(self
)
2656 def Update(*args
, **kwargs
):
2658 Update(int value, String newmsg=EmptyString) -> bool
2660 Updates the dialog, setting the progress bar to the new value and, if given
2661 changes the message above it. Returns true unless the Cancel button has been
2664 If false is returned, the application can either immediately destroy the
2665 dialog or ask the user for the confirmation and if the abort is not confirmed
2666 the dialog may be resumed with Resume function.
2668 return _windows
.ProgressDialog_Update(*args
, **kwargs
)
2670 def Resume(*args
, **kwargs
):
2674 Can be used to continue with the dialog, after the user had chosen to abort.
2676 return _windows
.ProgressDialog_Resume(*args
, **kwargs
)
2679 class ProgressDialogPtr(ProgressDialog
):
2680 def __init__(self
, this
):
2682 if not hasattr(self
,"thisown"): self
.thisown
= 0
2683 self
.__class
__ = ProgressDialog
2684 _windows
.ProgressDialog_swigregister(ProgressDialogPtr
)
2686 FR_DOWN
= _windows
.FR_DOWN
2687 FR_WHOLEWORD
= _windows
.FR_WHOLEWORD
2688 FR_MATCHCASE
= _windows
.FR_MATCHCASE
2689 FR_REPLACEDIALOG
= _windows
.FR_REPLACEDIALOG
2690 FR_NOUPDOWN
= _windows
.FR_NOUPDOWN
2691 FR_NOMATCHCASE
= _windows
.FR_NOMATCHCASE
2692 FR_NOWHOLEWORD
= _windows
.FR_NOWHOLEWORD
2693 wxEVT_COMMAND_FIND
= _windows
.wxEVT_COMMAND_FIND
2694 wxEVT_COMMAND_FIND_NEXT
= _windows
.wxEVT_COMMAND_FIND_NEXT
2695 wxEVT_COMMAND_FIND_REPLACE
= _windows
.wxEVT_COMMAND_FIND_REPLACE
2696 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows
.wxEVT_COMMAND_FIND_REPLACE_ALL
2697 wxEVT_COMMAND_FIND_CLOSE
= _windows
.wxEVT_COMMAND_FIND_CLOSE
2698 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2699 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2700 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2701 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2702 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2704 # For backwards compatibility. Should they be removed?
2705 EVT_COMMAND_FIND
= EVT_FIND
2706 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2707 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2708 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2709 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2711 class FindDialogEvent(core
.CommandEvent
):
2712 """Events for the FindReplaceDialog"""
2714 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2715 def __init__(self
, *args
, **kwargs
):
2717 __init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2719 Events for the FindReplaceDialog
2721 newobj
= _windows
.new_FindDialogEvent(*args
, **kwargs
)
2722 self
.this
= newobj
.this
2725 def GetFlags(*args
, **kwargs
):
2729 Get the currently selected flags: this is the combination of
2730 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2732 return _windows
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2734 def GetFindString(*args
, **kwargs
):
2736 GetFindString() -> String
2738 Return the string to find (never empty).
2740 return _windows
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2742 def GetReplaceString(*args
, **kwargs
):
2744 GetReplaceString() -> String
2746 Return the string to replace the search string with (only
2747 for replace and replace all events).
2749 return _windows
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2751 def GetDialog(*args
, **kwargs
):
2753 GetDialog() -> FindReplaceDialog
2755 Return the pointer to the dialog which generated this event.
2757 return _windows
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2759 def SetFlags(*args
, **kwargs
):
2760 """SetFlags(int flags)"""
2761 return _windows
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2763 def SetFindString(*args
, **kwargs
):
2764 """SetFindString(String str)"""
2765 return _windows
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2767 def SetReplaceString(*args
, **kwargs
):
2768 """SetReplaceString(String str)"""
2769 return _windows
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2772 class FindDialogEventPtr(FindDialogEvent
):
2773 def __init__(self
, this
):
2775 if not hasattr(self
,"thisown"): self
.thisown
= 0
2776 self
.__class
__ = FindDialogEvent
2777 _windows
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2779 class FindReplaceData(core
.Object
):
2781 FindReplaceData holds the data for FindReplaceDialog. It is used to initialize
2782 the dialog with the default values and will keep the last values from the
2783 dialog when it is closed. It is also updated each time a wxFindDialogEvent is
2784 generated so instead of using the wxFindDialogEvent methods you can also
2785 directly query this object.
2787 Note that all SetXXX() methods may only be called before showing the dialog
2788 and calling them has no effect later.
2791 wxFR_DOWN: downward search/replace selected (otherwise, upwards)
2793 wxFR_WHOLEWORD: whole word search/replace selected
2795 wxFR_MATCHCASE: case sensitive search/replace selected (otherwise,
2800 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2801 def __init__(self
, *args
, **kwargs
):
2803 __init__(int flags=0) -> FindReplaceData
2805 Constuctor initializes the flags to default value (0).
2807 newobj
= _windows
.new_FindReplaceData(*args
, **kwargs
)
2808 self
.this
= newobj
.this
2811 def __del__(self
, destroy
=_windows
.delete_FindReplaceData
):
2814 if self
.thisown
: destroy(self
)
2817 def GetFindString(*args
, **kwargs
):
2819 GetFindString() -> String
2821 Get the string to find.
2823 return _windows
.FindReplaceData_GetFindString(*args
, **kwargs
)
2825 def GetReplaceString(*args
, **kwargs
):
2827 GetReplaceString() -> String
2829 Get the replacement string.
2831 return _windows
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2833 def GetFlags(*args
, **kwargs
):
2837 Get the combination of flag values.
2839 return _windows
.FindReplaceData_GetFlags(*args
, **kwargs
)
2841 def SetFlags(*args
, **kwargs
):
2845 Set the flags to use to initialize the controls of the dialog.
2847 return _windows
.FindReplaceData_SetFlags(*args
, **kwargs
)
2849 def SetFindString(*args
, **kwargs
):
2851 SetFindString(String str)
2853 Set the string to find (used as initial value by the dialog).
2855 return _windows
.FindReplaceData_SetFindString(*args
, **kwargs
)
2857 def SetReplaceString(*args
, **kwargs
):
2859 SetReplaceString(String str)
2861 Set the replacement string (used as initial value by the dialog).
2863 return _windows
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2866 class FindReplaceDataPtr(FindReplaceData
):
2867 def __init__(self
, this
):
2869 if not hasattr(self
,"thisown"): self
.thisown
= 0
2870 self
.__class
__ = FindReplaceData
2871 _windows
.FindReplaceData_swigregister(FindReplaceDataPtr
)
2873 class FindReplaceDialog(Dialog
):
2875 FindReplaceDialog is a standard modeless dialog which is used to allow the
2876 user to search for some text (and possibly replace it with something
2877 else). The actual searching is supposed to be done in the owner window which
2878 is the parent of this dialog. Note that it means that unlike for the other
2879 standard dialogs this one must have a parent window. Also note that there is
2880 no way to use this dialog in a modal way; it is always, by design and
2881 implementation, modeless.
2884 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2885 def __init__(self
, *args
, **kwargs
):
2887 __init__(Window parent, FindReplaceData data, String title,
2888 int style=0) -> FindReplaceDialog
2890 Create a FindReplaceDialog. The parent and data parameters must be
2891 non-None. Use Show to display the dialog.
2893 newobj
= _windows
.new_FindReplaceDialog(*args
, **kwargs
)
2894 self
.this
= newobj
.this
2897 self
._setOORInfo
(self
)
2899 def Create(*args
, **kwargs
):
2901 Create(Window parent, FindReplaceData data, String title,
2902 int style=0) -> bool
2904 Create the dialog, for 2-phase create.
2906 return _windows
.FindReplaceDialog_Create(*args
, **kwargs
)
2908 def GetData(*args
, **kwargs
):
2910 GetData() -> FindReplaceData
2912 Get the FindReplaceData object used by this dialog.
2914 return _windows
.FindReplaceDialog_GetData(*args
, **kwargs
)
2916 def SetData(*args
, **kwargs
):
2918 SetData(FindReplaceData data)
2920 Set the FindReplaceData object used by this dialog.
2922 return _windows
.FindReplaceDialog_SetData(*args
, **kwargs
)
2925 class FindReplaceDialogPtr(FindReplaceDialog
):
2926 def __init__(self
, this
):
2928 if not hasattr(self
,"thisown"): self
.thisown
= 0
2929 self
.__class
__ = FindReplaceDialog
2930 _windows
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
2932 def PreFindReplaceDialog(*args
, **kwargs
):
2934 PreFindReplaceDialog() -> FindReplaceDialog
2936 Precreate a FindReplaceDialog for 2-phase creation
2938 val
= _windows
.new_PreFindReplaceDialog(*args
, **kwargs
)
2942 #---------------------------------------------------------------------------
2944 IDM_WINDOWTILE
= _windows
.IDM_WINDOWTILE
2945 IDM_WINDOWTILEHOR
= _windows
.IDM_WINDOWTILEHOR
2946 IDM_WINDOWCASCADE
= _windows
.IDM_WINDOWCASCADE
2947 IDM_WINDOWICONS
= _windows
.IDM_WINDOWICONS
2948 IDM_WINDOWNEXT
= _windows
.IDM_WINDOWNEXT
2949 IDM_WINDOWTILEVERT
= _windows
.IDM_WINDOWTILEVERT
2950 FIRST_MDI_CHILD
= _windows
.FIRST_MDI_CHILD
2951 LAST_MDI_CHILD
= _windows
.LAST_MDI_CHILD
2952 class MDIParentFrame(Frame
):
2954 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2955 def __init__(self
, *args
, **kwargs
):
2957 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
2958 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2959 String name=FrameNameStr) -> MDIParentFrame
2961 newobj
= _windows
.new_MDIParentFrame(*args
, **kwargs
)
2962 self
.this
= newobj
.this
2965 self
._setOORInfo
(self
)
2967 def Create(*args
, **kwargs
):
2969 Create(Window parent, int id, String title, Point pos=DefaultPosition,
2970 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2971 String name=FrameNameStr) -> bool
2973 return _windows
.MDIParentFrame_Create(*args
, **kwargs
)
2975 def ActivateNext(*args
, **kwargs
):
2976 """ActivateNext()"""
2977 return _windows
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
2979 def ActivatePrevious(*args
, **kwargs
):
2980 """ActivatePrevious()"""
2981 return _windows
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
2983 def ArrangeIcons(*args
, **kwargs
):
2984 """ArrangeIcons()"""
2985 return _windows
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
2987 def Cascade(*args
, **kwargs
):
2989 return _windows
.MDIParentFrame_Cascade(*args
, **kwargs
)
2991 def GetActiveChild(*args
, **kwargs
):
2992 """GetActiveChild() -> MDIChildFrame"""
2993 return _windows
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
2995 def GetClientWindow(*args
, **kwargs
):
2996 """GetClientWindow() -> MDIClientWindow"""
2997 return _windows
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
2999 def GetToolBar(*args
, **kwargs
):
3000 """GetToolBar() -> Window"""
3001 return _windows
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3003 def GetWindowMenu(*args
, **kwargs
):
3004 """GetWindowMenu() -> Menu"""
3005 return _windows
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3007 def SetWindowMenu(*args
, **kwargs
):
3008 """SetWindowMenu(Menu menu)"""
3009 return _windows
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3011 def SetToolBar(*args
, **kwargs
):
3012 """SetToolBar(wxToolBar toolbar)"""
3013 return _windows
.MDIParentFrame_SetToolBar(*args
, **kwargs
)
3015 def Tile(*args
, **kwargs
):
3017 return _windows
.MDIParentFrame_Tile(*args
, **kwargs
)
3020 class MDIParentFramePtr(MDIParentFrame
):
3021 def __init__(self
, this
):
3023 if not hasattr(self
,"thisown"): self
.thisown
= 0
3024 self
.__class
__ = MDIParentFrame
3025 _windows
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3027 def PreMDIParentFrame(*args
, **kwargs
):
3028 """PreMDIParentFrame() -> MDIParentFrame"""
3029 val
= _windows
.new_PreMDIParentFrame(*args
, **kwargs
)
3033 class MDIChildFrame(Frame
):
3035 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3036 def __init__(self
, *args
, **kwargs
):
3038 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3039 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3040 String name=FrameNameStr) -> MDIChildFrame
3042 newobj
= _windows
.new_MDIChildFrame(*args
, **kwargs
)
3043 self
.this
= newobj
.this
3046 self
._setOORInfo
(self
)
3048 def Create(*args
, **kwargs
):
3050 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3051 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3052 String name=FrameNameStr) -> bool
3054 return _windows
.MDIChildFrame_Create(*args
, **kwargs
)
3056 def Activate(*args
, **kwargs
):
3058 return _windows
.MDIChildFrame_Activate(*args
, **kwargs
)
3060 def Maximize(*args
, **kwargs
):
3061 """Maximize(bool maximize)"""
3062 return _windows
.MDIChildFrame_Maximize(*args
, **kwargs
)
3064 def Restore(*args
, **kwargs
):
3066 return _windows
.MDIChildFrame_Restore(*args
, **kwargs
)
3069 class MDIChildFramePtr(MDIChildFrame
):
3070 def __init__(self
, this
):
3072 if not hasattr(self
,"thisown"): self
.thisown
= 0
3073 self
.__class
__ = MDIChildFrame
3074 _windows
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3076 def PreMDIChildFrame(*args
, **kwargs
):
3077 """PreMDIChildFrame() -> MDIChildFrame"""
3078 val
= _windows
.new_PreMDIChildFrame(*args
, **kwargs
)
3082 class MDIClientWindow(core
.Window
):
3084 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3085 def __init__(self
, *args
, **kwargs
):
3086 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3087 newobj
= _windows
.new_MDIClientWindow(*args
, **kwargs
)
3088 self
.this
= newobj
.this
3091 self
._setOORInfo
(self
)
3093 def Create(*args
, **kwargs
):
3094 """Create(MDIParentFrame parent, long style=0) -> bool"""
3095 return _windows
.MDIClientWindow_Create(*args
, **kwargs
)
3098 class MDIClientWindowPtr(MDIClientWindow
):
3099 def __init__(self
, this
):
3101 if not hasattr(self
,"thisown"): self
.thisown
= 0
3102 self
.__class
__ = MDIClientWindow
3103 _windows
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3105 def PreMDIClientWindow(*args
, **kwargs
):
3106 """PreMDIClientWindow() -> MDIClientWindow"""
3107 val
= _windows
.new_PreMDIClientWindow(*args
, **kwargs
)
3111 #---------------------------------------------------------------------------
3113 class PyWindow(core
.Window
):
3115 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3116 def __init__(self
, *args
, **kwargs
):
3118 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3119 long style=0, String name=PanelNameStr) -> PyWindow
3121 newobj
= _windows
.new_PyWindow(*args
, **kwargs
)
3122 self
.this
= newobj
.this
3125 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3127 def _setCallbackInfo(*args
, **kwargs
):
3128 """_setCallbackInfo(PyObject self, PyObject _class)"""
3129 return _windows
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3131 def base_DoMoveWindow(*args
, **kwargs
):
3132 """base_DoMoveWindow(int x, int y, int width, int height)"""
3133 return _windows
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3135 def base_DoSetSize(*args
, **kwargs
):
3136 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3137 return _windows
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3139 def base_DoSetClientSize(*args
, **kwargs
):
3140 """base_DoSetClientSize(int width, int height)"""
3141 return _windows
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3143 def base_DoSetVirtualSize(*args
, **kwargs
):
3144 """base_DoSetVirtualSize(int x, int y)"""
3145 return _windows
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3147 def base_DoGetSize(*args
, **kwargs
):
3148 """base_DoGetSize() -> (width, height)"""
3149 return _windows
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3151 def base_DoGetClientSize(*args
, **kwargs
):
3152 """base_DoGetClientSize() -> (width, height)"""
3153 return _windows
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3155 def base_DoGetPosition(*args
, **kwargs
):
3156 """base_DoGetPosition() -> (x,y)"""
3157 return _windows
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3159 def base_DoGetVirtualSize(*args
, **kwargs
):
3160 """base_DoGetVirtualSize() -> Size"""
3161 return _windows
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3163 def base_DoGetBestSize(*args
, **kwargs
):
3164 """base_DoGetBestSize() -> Size"""
3165 return _windows
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3167 def base_InitDialog(*args
, **kwargs
):
3168 """base_InitDialog()"""
3169 return _windows
.PyWindow_base_InitDialog(*args
, **kwargs
)
3171 def base_TransferDataToWindow(*args
, **kwargs
):
3172 """base_TransferDataToWindow() -> bool"""
3173 return _windows
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3175 def base_TransferDataFromWindow(*args
, **kwargs
):
3176 """base_TransferDataFromWindow() -> bool"""
3177 return _windows
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3179 def base_Validate(*args
, **kwargs
):
3180 """base_Validate() -> bool"""
3181 return _windows
.PyWindow_base_Validate(*args
, **kwargs
)
3183 def base_AcceptsFocus(*args
, **kwargs
):
3184 """base_AcceptsFocus() -> bool"""
3185 return _windows
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3187 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3188 """base_AcceptsFocusFromKeyboard() -> bool"""
3189 return _windows
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3191 def base_GetMaxSize(*args
, **kwargs
):
3192 """base_GetMaxSize() -> Size"""
3193 return _windows
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3195 def base_AddChild(*args
, **kwargs
):
3196 """base_AddChild(Window child)"""
3197 return _windows
.PyWindow_base_AddChild(*args
, **kwargs
)
3199 def base_RemoveChild(*args
, **kwargs
):
3200 """base_RemoveChild(Window child)"""
3201 return _windows
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3203 def base_ShouldInheritColours(*args
, **kwargs
):
3204 """base_ShouldInheritColours() -> bool"""
3205 return _windows
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3207 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3208 """base_ApplyParentThemeBackground(Colour c)"""
3209 return _windows
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3212 class PyWindowPtr(PyWindow
):
3213 def __init__(self
, this
):
3215 if not hasattr(self
,"thisown"): self
.thisown
= 0
3216 self
.__class
__ = PyWindow
3217 _windows
.PyWindow_swigregister(PyWindowPtr
)
3219 def PrePyWindow(*args
, **kwargs
):
3220 """PrePyWindow() -> PyWindow"""
3221 val
= _windows
.new_PrePyWindow(*args
, **kwargs
)
3225 class PyPanel(Panel
):
3227 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3228 def __init__(self
, *args
, **kwargs
):
3230 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3231 long style=0, String name=PanelNameStr) -> PyPanel
3233 newobj
= _windows
.new_PyPanel(*args
, **kwargs
)
3234 self
.this
= newobj
.this
3237 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3239 def _setCallbackInfo(*args
, **kwargs
):
3240 """_setCallbackInfo(PyObject self, PyObject _class)"""
3241 return _windows
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3243 def base_DoMoveWindow(*args
, **kwargs
):
3244 """base_DoMoveWindow(int x, int y, int width, int height)"""
3245 return _windows
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3247 def base_DoSetSize(*args
, **kwargs
):
3248 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3249 return _windows
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3251 def base_DoSetClientSize(*args
, **kwargs
):
3252 """base_DoSetClientSize(int width, int height)"""
3253 return _windows
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3255 def base_DoSetVirtualSize(*args
, **kwargs
):
3256 """base_DoSetVirtualSize(int x, int y)"""
3257 return _windows
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3259 def base_DoGetSize(*args
, **kwargs
):
3260 """base_DoGetSize() -> (width, height)"""
3261 return _windows
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3263 def base_DoGetClientSize(*args
, **kwargs
):
3264 """base_DoGetClientSize() -> (width, height)"""
3265 return _windows
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3267 def base_DoGetPosition(*args
, **kwargs
):
3268 """base_DoGetPosition() -> (x,y)"""
3269 return _windows
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3271 def base_DoGetVirtualSize(*args
, **kwargs
):
3272 """base_DoGetVirtualSize() -> Size"""
3273 return _windows
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3275 def base_DoGetBestSize(*args
, **kwargs
):
3276 """base_DoGetBestSize() -> Size"""
3277 return _windows
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3279 def base_InitDialog(*args
, **kwargs
):
3280 """base_InitDialog()"""
3281 return _windows
.PyPanel_base_InitDialog(*args
, **kwargs
)
3283 def base_TransferDataToWindow(*args
, **kwargs
):
3284 """base_TransferDataToWindow() -> bool"""
3285 return _windows
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3287 def base_TransferDataFromWindow(*args
, **kwargs
):
3288 """base_TransferDataFromWindow() -> bool"""
3289 return _windows
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3291 def base_Validate(*args
, **kwargs
):
3292 """base_Validate() -> bool"""
3293 return _windows
.PyPanel_base_Validate(*args
, **kwargs
)
3295 def base_AcceptsFocus(*args
, **kwargs
):
3296 """base_AcceptsFocus() -> bool"""
3297 return _windows
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3299 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3300 """base_AcceptsFocusFromKeyboard() -> bool"""
3301 return _windows
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3303 def base_GetMaxSize(*args
, **kwargs
):
3304 """base_GetMaxSize() -> Size"""
3305 return _windows
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3307 def base_AddChild(*args
, **kwargs
):
3308 """base_AddChild(Window child)"""
3309 return _windows
.PyPanel_base_AddChild(*args
, **kwargs
)
3311 def base_RemoveChild(*args
, **kwargs
):
3312 """base_RemoveChild(Window child)"""
3313 return _windows
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3315 def base_ShouldInheritColours(*args
, **kwargs
):
3316 """base_ShouldInheritColours() -> bool"""
3317 return _windows
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3319 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3320 """base_ApplyParentThemeBackground(Colour c)"""
3321 return _windows
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3324 class PyPanelPtr(PyPanel
):
3325 def __init__(self
, this
):
3327 if not hasattr(self
,"thisown"): self
.thisown
= 0
3328 self
.__class
__ = PyPanel
3329 _windows
.PyPanel_swigregister(PyPanelPtr
)
3331 def PrePyPanel(*args
, **kwargs
):
3332 """PrePyPanel() -> PyPanel"""
3333 val
= _windows
.new_PrePyPanel(*args
, **kwargs
)
3337 class PyScrolledWindow(ScrolledWindow
):
3339 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3340 def __init__(self
, *args
, **kwargs
):
3342 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3343 long style=0, String name=PanelNameStr) -> PyScrolledWindow
3345 newobj
= _windows
.new_PyScrolledWindow(*args
, **kwargs
)
3346 self
.this
= newobj
.this
3349 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3351 def _setCallbackInfo(*args
, **kwargs
):
3352 """_setCallbackInfo(PyObject self, PyObject _class)"""
3353 return _windows
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3355 def base_DoMoveWindow(*args
, **kwargs
):
3356 """base_DoMoveWindow(int x, int y, int width, int height)"""
3357 return _windows
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3359 def base_DoSetSize(*args
, **kwargs
):
3360 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3361 return _windows
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3363 def base_DoSetClientSize(*args
, **kwargs
):
3364 """base_DoSetClientSize(int width, int height)"""
3365 return _windows
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3367 def base_DoSetVirtualSize(*args
, **kwargs
):
3368 """base_DoSetVirtualSize(int x, int y)"""
3369 return _windows
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3371 def base_DoGetSize(*args
, **kwargs
):
3372 """base_DoGetSize() -> (width, height)"""
3373 return _windows
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3375 def base_DoGetClientSize(*args
, **kwargs
):
3376 """base_DoGetClientSize() -> (width, height)"""
3377 return _windows
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3379 def base_DoGetPosition(*args
, **kwargs
):
3380 """base_DoGetPosition() -> (x,y)"""
3381 return _windows
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3383 def base_DoGetVirtualSize(*args
, **kwargs
):
3384 """base_DoGetVirtualSize() -> Size"""
3385 return _windows
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3387 def base_DoGetBestSize(*args
, **kwargs
):
3388 """base_DoGetBestSize() -> Size"""
3389 return _windows
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3391 def base_InitDialog(*args
, **kwargs
):
3392 """base_InitDialog()"""
3393 return _windows
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3395 def base_TransferDataToWindow(*args
, **kwargs
):
3396 """base_TransferDataToWindow() -> bool"""
3397 return _windows
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3399 def base_TransferDataFromWindow(*args
, **kwargs
):
3400 """base_TransferDataFromWindow() -> bool"""
3401 return _windows
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3403 def base_Validate(*args
, **kwargs
):
3404 """base_Validate() -> bool"""
3405 return _windows
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3407 def base_AcceptsFocus(*args
, **kwargs
):
3408 """base_AcceptsFocus() -> bool"""
3409 return _windows
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3411 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3412 """base_AcceptsFocusFromKeyboard() -> bool"""
3413 return _windows
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3415 def base_GetMaxSize(*args
, **kwargs
):
3416 """base_GetMaxSize() -> Size"""
3417 return _windows
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3419 def base_AddChild(*args
, **kwargs
):
3420 """base_AddChild(Window child)"""
3421 return _windows
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3423 def base_RemoveChild(*args
, **kwargs
):
3424 """base_RemoveChild(Window child)"""
3425 return _windows
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3427 def base_ShouldInheritColours(*args
, **kwargs
):
3428 """base_ShouldInheritColours() -> bool"""
3429 return _windows
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3431 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3432 """base_ApplyParentThemeBackground(Colour c)"""
3433 return _windows
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3436 class PyScrolledWindowPtr(PyScrolledWindow
):
3437 def __init__(self
, this
):
3439 if not hasattr(self
,"thisown"): self
.thisown
= 0
3440 self
.__class
__ = PyScrolledWindow
3441 _windows
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3443 def PrePyScrolledWindow(*args
, **kwargs
):
3444 """PrePyScrolledWindow() -> PyScrolledWindow"""
3445 val
= _windows
.new_PrePyScrolledWindow(*args
, **kwargs
)
3449 #---------------------------------------------------------------------------
3451 PRINT_MODE_NONE
= _windows
.PRINT_MODE_NONE
3452 PRINT_MODE_PREVIEW
= _windows
.PRINT_MODE_PREVIEW
3453 PRINT_MODE_FILE
= _windows
.PRINT_MODE_FILE
3454 PRINT_MODE_PRINTER
= _windows
.PRINT_MODE_PRINTER
3455 PRINT_MODE_STREAM
= _windows
.PRINT_MODE_STREAM
3456 class PrintData(core
.Object
):
3458 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3459 def __init__(self
, *args
, **kwargs
):
3460 """__init__() -> PrintData"""
3461 newobj
= _windows
.new_PrintData(*args
, **kwargs
)
3462 self
.this
= newobj
.this
3465 def __del__(self
, destroy
=_windows
.delete_PrintData
):
3468 if self
.thisown
: destroy(self
)
3471 def GetNoCopies(*args
, **kwargs
):
3472 """GetNoCopies() -> int"""
3473 return _windows
.PrintData_GetNoCopies(*args
, **kwargs
)
3475 def GetCollate(*args
, **kwargs
):
3476 """GetCollate() -> bool"""
3477 return _windows
.PrintData_GetCollate(*args
, **kwargs
)
3479 def GetOrientation(*args
, **kwargs
):
3480 """GetOrientation() -> int"""
3481 return _windows
.PrintData_GetOrientation(*args
, **kwargs
)
3483 def Ok(*args
, **kwargs
):
3485 return _windows
.PrintData_Ok(*args
, **kwargs
)
3487 def GetPrinterName(*args
, **kwargs
):
3488 """GetPrinterName() -> String"""
3489 return _windows
.PrintData_GetPrinterName(*args
, **kwargs
)
3491 def GetColour(*args
, **kwargs
):
3492 """GetColour() -> bool"""
3493 return _windows
.PrintData_GetColour(*args
, **kwargs
)
3495 def GetDuplex(*args
, **kwargs
):
3496 """GetDuplex() -> int"""
3497 return _windows
.PrintData_GetDuplex(*args
, **kwargs
)
3499 def GetPaperId(*args
, **kwargs
):
3500 """GetPaperId() -> int"""
3501 return _windows
.PrintData_GetPaperId(*args
, **kwargs
)
3503 def GetPaperSize(*args
, **kwargs
):
3504 """GetPaperSize() -> Size"""
3505 return _windows
.PrintData_GetPaperSize(*args
, **kwargs
)
3507 def GetQuality(*args
, **kwargs
):
3508 """GetQuality() -> int"""
3509 return _windows
.PrintData_GetQuality(*args
, **kwargs
)
3511 def SetNoCopies(*args
, **kwargs
):
3512 """SetNoCopies(int v)"""
3513 return _windows
.PrintData_SetNoCopies(*args
, **kwargs
)
3515 def SetCollate(*args
, **kwargs
):
3516 """SetCollate(bool flag)"""
3517 return _windows
.PrintData_SetCollate(*args
, **kwargs
)
3519 def SetOrientation(*args
, **kwargs
):
3520 """SetOrientation(int orient)"""
3521 return _windows
.PrintData_SetOrientation(*args
, **kwargs
)
3523 def SetPrinterName(*args
, **kwargs
):
3524 """SetPrinterName(String name)"""
3525 return _windows
.PrintData_SetPrinterName(*args
, **kwargs
)
3527 def SetColour(*args
, **kwargs
):
3528 """SetColour(bool colour)"""
3529 return _windows
.PrintData_SetColour(*args
, **kwargs
)
3531 def SetDuplex(*args
, **kwargs
):
3532 """SetDuplex(int duplex)"""
3533 return _windows
.PrintData_SetDuplex(*args
, **kwargs
)
3535 def SetPaperId(*args
, **kwargs
):
3536 """SetPaperId(int sizeId)"""
3537 return _windows
.PrintData_SetPaperId(*args
, **kwargs
)
3539 def SetPaperSize(*args
, **kwargs
):
3540 """SetPaperSize(Size sz)"""
3541 return _windows
.PrintData_SetPaperSize(*args
, **kwargs
)
3543 def SetQuality(*args
, **kwargs
):
3544 """SetQuality(int quality)"""
3545 return _windows
.PrintData_SetQuality(*args
, **kwargs
)
3547 def GetPrinterCommand(*args
, **kwargs
):
3548 """GetPrinterCommand() -> String"""
3549 return _windows
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3551 def GetPrinterOptions(*args
, **kwargs
):
3552 """GetPrinterOptions() -> String"""
3553 return _windows
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3555 def GetPreviewCommand(*args
, **kwargs
):
3556 """GetPreviewCommand() -> String"""
3557 return _windows
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3559 def GetFilename(*args
, **kwargs
):
3560 """GetFilename() -> String"""
3561 return _windows
.PrintData_GetFilename(*args
, **kwargs
)
3563 def GetFontMetricPath(*args
, **kwargs
):
3564 """GetFontMetricPath() -> String"""
3565 return _windows
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3567 def GetPrinterScaleX(*args
, **kwargs
):
3568 """GetPrinterScaleX() -> double"""
3569 return _windows
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3571 def GetPrinterScaleY(*args
, **kwargs
):
3572 """GetPrinterScaleY() -> double"""
3573 return _windows
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3575 def GetPrinterTranslateX(*args
, **kwargs
):
3576 """GetPrinterTranslateX() -> long"""
3577 return _windows
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3579 def GetPrinterTranslateY(*args
, **kwargs
):
3580 """GetPrinterTranslateY() -> long"""
3581 return _windows
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3583 def GetPrintMode(*args
, **kwargs
):
3584 """GetPrintMode() -> int"""
3585 return _windows
.PrintData_GetPrintMode(*args
, **kwargs
)
3587 def SetPrinterCommand(*args
, **kwargs
):
3588 """SetPrinterCommand(String command)"""
3589 return _windows
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3591 def SetPrinterOptions(*args
, **kwargs
):
3592 """SetPrinterOptions(String options)"""
3593 return _windows
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3595 def SetPreviewCommand(*args
, **kwargs
):
3596 """SetPreviewCommand(String command)"""
3597 return _windows
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3599 def SetFilename(*args
, **kwargs
):
3600 """SetFilename(String filename)"""
3601 return _windows
.PrintData_SetFilename(*args
, **kwargs
)
3603 def SetFontMetricPath(*args
, **kwargs
):
3604 """SetFontMetricPath(String path)"""
3605 return _windows
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3607 def SetPrinterScaleX(*args
, **kwargs
):
3608 """SetPrinterScaleX(double x)"""
3609 return _windows
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3611 def SetPrinterScaleY(*args
, **kwargs
):
3612 """SetPrinterScaleY(double y)"""
3613 return _windows
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3615 def SetPrinterScaling(*args
, **kwargs
):
3616 """SetPrinterScaling(double x, double y)"""
3617 return _windows
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3619 def SetPrinterTranslateX(*args
, **kwargs
):
3620 """SetPrinterTranslateX(long x)"""
3621 return _windows
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3623 def SetPrinterTranslateY(*args
, **kwargs
):
3624 """SetPrinterTranslateY(long y)"""
3625 return _windows
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3627 def SetPrinterTranslation(*args
, **kwargs
):
3628 """SetPrinterTranslation(long x, long y)"""
3629 return _windows
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3631 def SetPrintMode(*args
, **kwargs
):
3632 """SetPrintMode(int printMode)"""
3633 return _windows
.PrintData_SetPrintMode(*args
, **kwargs
)
3635 def GetOutputStream(*args
, **kwargs
):
3636 """GetOutputStream() -> OutputStream"""
3637 return _windows
.PrintData_GetOutputStream(*args
, **kwargs
)
3639 def SetOutputStream(*args
, **kwargs
):
3640 """SetOutputStream(OutputStream outputstream)"""
3641 return _windows
.PrintData_SetOutputStream(*args
, **kwargs
)
3643 def __nonzero__(self
): return self
.Ok()
3645 class PrintDataPtr(PrintData
):
3646 def __init__(self
, this
):
3648 if not hasattr(self
,"thisown"): self
.thisown
= 0
3649 self
.__class
__ = PrintData
3650 _windows
.PrintData_swigregister(PrintDataPtr
)
3651 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3652 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3654 class PageSetupDialogData(core
.Object
):
3656 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3657 def __init__(self
, *args
, **kwargs
):
3658 """__init__() -> PageSetupDialogData"""
3659 newobj
= _windows
.new_PageSetupDialogData(*args
, **kwargs
)
3660 self
.this
= newobj
.this
3663 def __del__(self
, destroy
=_windows
.delete_PageSetupDialogData
):
3666 if self
.thisown
: destroy(self
)
3669 def EnableHelp(*args
, **kwargs
):
3670 """EnableHelp(bool flag)"""
3671 return _windows
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3673 def EnableMargins(*args
, **kwargs
):
3674 """EnableMargins(bool flag)"""
3675 return _windows
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3677 def EnableOrientation(*args
, **kwargs
):
3678 """EnableOrientation(bool flag)"""
3679 return _windows
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3681 def EnablePaper(*args
, **kwargs
):
3682 """EnablePaper(bool flag)"""
3683 return _windows
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3685 def EnablePrinter(*args
, **kwargs
):
3686 """EnablePrinter(bool flag)"""
3687 return _windows
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3689 def GetDefaultMinMargins(*args
, **kwargs
):
3690 """GetDefaultMinMargins() -> bool"""
3691 return _windows
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3693 def GetEnableMargins(*args
, **kwargs
):
3694 """GetEnableMargins() -> bool"""
3695 return _windows
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3697 def GetEnableOrientation(*args
, **kwargs
):
3698 """GetEnableOrientation() -> bool"""
3699 return _windows
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3701 def GetEnablePaper(*args
, **kwargs
):
3702 """GetEnablePaper() -> bool"""
3703 return _windows
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3705 def GetEnablePrinter(*args
, **kwargs
):
3706 """GetEnablePrinter() -> bool"""
3707 return _windows
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3709 def GetEnableHelp(*args
, **kwargs
):
3710 """GetEnableHelp() -> bool"""
3711 return _windows
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3713 def GetDefaultInfo(*args
, **kwargs
):
3714 """GetDefaultInfo() -> bool"""
3715 return _windows
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3717 def GetMarginTopLeft(*args
, **kwargs
):
3718 """GetMarginTopLeft() -> Point"""
3719 return _windows
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3721 def GetMarginBottomRight(*args
, **kwargs
):
3722 """GetMarginBottomRight() -> Point"""
3723 return _windows
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3725 def GetMinMarginTopLeft(*args
, **kwargs
):
3726 """GetMinMarginTopLeft() -> Point"""
3727 return _windows
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3729 def GetMinMarginBottomRight(*args
, **kwargs
):
3730 """GetMinMarginBottomRight() -> Point"""
3731 return _windows
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3733 def GetPaperId(*args
, **kwargs
):
3734 """GetPaperId() -> int"""
3735 return _windows
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3737 def GetPaperSize(*args
, **kwargs
):
3738 """GetPaperSize() -> Size"""
3739 return _windows
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3741 def GetPrintData(*args
, **kwargs
):
3742 """GetPrintData() -> PrintData"""
3743 return _windows
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3745 def Ok(*args
, **kwargs
):
3747 return _windows
.PageSetupDialogData_Ok(*args
, **kwargs
)
3749 def SetDefaultInfo(*args
, **kwargs
):
3750 """SetDefaultInfo(bool flag)"""
3751 return _windows
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3753 def SetDefaultMinMargins(*args
, **kwargs
):
3754 """SetDefaultMinMargins(bool flag)"""
3755 return _windows
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3757 def SetMarginTopLeft(*args
, **kwargs
):
3758 """SetMarginTopLeft(Point pt)"""
3759 return _windows
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3761 def SetMarginBottomRight(*args
, **kwargs
):
3762 """SetMarginBottomRight(Point pt)"""
3763 return _windows
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3765 def SetMinMarginTopLeft(*args
, **kwargs
):
3766 """SetMinMarginTopLeft(Point pt)"""
3767 return _windows
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3769 def SetMinMarginBottomRight(*args
, **kwargs
):
3770 """SetMinMarginBottomRight(Point pt)"""
3771 return _windows
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3773 def SetPaperId(*args
, **kwargs
):
3774 """SetPaperId(int id)"""
3775 return _windows
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3777 def SetPaperSize(*args
, **kwargs
):
3778 """SetPaperSize(Size size)"""
3779 return _windows
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3781 def SetPrintData(*args
, **kwargs
):
3782 """SetPrintData(PrintData printData)"""
3783 return _windows
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3785 def __nonzero__(self
): return self
.Ok()
3787 class PageSetupDialogDataPtr(PageSetupDialogData
):
3788 def __init__(self
, this
):
3790 if not hasattr(self
,"thisown"): self
.thisown
= 0
3791 self
.__class
__ = PageSetupDialogData
3792 _windows
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3794 class PageSetupDialog(Dialog
):
3796 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3797 def __init__(self
, *args
, **kwargs
):
3798 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3799 newobj
= _windows
.new_PageSetupDialog(*args
, **kwargs
)
3800 self
.this
= newobj
.this
3803 self
._setOORInfo
(self
)
3805 def GetPageSetupData(*args
, **kwargs
):
3806 """GetPageSetupData() -> PageSetupDialogData"""
3807 return _windows
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3809 def ShowModal(*args
, **kwargs
):
3810 """ShowModal() -> int"""
3811 return _windows
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3814 class PageSetupDialogPtr(PageSetupDialog
):
3815 def __init__(self
, this
):
3817 if not hasattr(self
,"thisown"): self
.thisown
= 0
3818 self
.__class
__ = PageSetupDialog
3819 _windows
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3821 class PrintDialogData(core
.Object
):
3823 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3824 def __init__(self
, *args
):
3826 __init__() -> PrintDialogData
3827 __init__(PrintData printData) -> PrintDialogData
3829 newobj
= _windows
.new_PrintDialogData(*args
)
3830 self
.this
= newobj
.this
3833 def __del__(self
, destroy
=_windows
.delete_PrintDialogData
):
3836 if self
.thisown
: destroy(self
)
3839 def GetFromPage(*args
, **kwargs
):
3840 """GetFromPage() -> int"""
3841 return _windows
.PrintDialogData_GetFromPage(*args
, **kwargs
)
3843 def GetToPage(*args
, **kwargs
):
3844 """GetToPage() -> int"""
3845 return _windows
.PrintDialogData_GetToPage(*args
, **kwargs
)
3847 def GetMinPage(*args
, **kwargs
):
3848 """GetMinPage() -> int"""
3849 return _windows
.PrintDialogData_GetMinPage(*args
, **kwargs
)
3851 def GetMaxPage(*args
, **kwargs
):
3852 """GetMaxPage() -> int"""
3853 return _windows
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
3855 def GetNoCopies(*args
, **kwargs
):
3856 """GetNoCopies() -> int"""
3857 return _windows
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
3859 def GetAllPages(*args
, **kwargs
):
3860 """GetAllPages() -> bool"""
3861 return _windows
.PrintDialogData_GetAllPages(*args
, **kwargs
)
3863 def GetSelection(*args
, **kwargs
):
3864 """GetSelection() -> bool"""
3865 return _windows
.PrintDialogData_GetSelection(*args
, **kwargs
)
3867 def GetCollate(*args
, **kwargs
):
3868 """GetCollate() -> bool"""
3869 return _windows
.PrintDialogData_GetCollate(*args
, **kwargs
)
3871 def GetPrintToFile(*args
, **kwargs
):
3872 """GetPrintToFile() -> bool"""
3873 return _windows
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
3875 def GetSetupDialog(*args
, **kwargs
):
3876 """GetSetupDialog() -> bool"""
3877 return _windows
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
3879 def SetFromPage(*args
, **kwargs
):
3880 """SetFromPage(int v)"""
3881 return _windows
.PrintDialogData_SetFromPage(*args
, **kwargs
)
3883 def SetToPage(*args
, **kwargs
):
3884 """SetToPage(int v)"""
3885 return _windows
.PrintDialogData_SetToPage(*args
, **kwargs
)
3887 def SetMinPage(*args
, **kwargs
):
3888 """SetMinPage(int v)"""
3889 return _windows
.PrintDialogData_SetMinPage(*args
, **kwargs
)
3891 def SetMaxPage(*args
, **kwargs
):
3892 """SetMaxPage(int v)"""
3893 return _windows
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
3895 def SetNoCopies(*args
, **kwargs
):
3896 """SetNoCopies(int v)"""
3897 return _windows
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
3899 def SetAllPages(*args
, **kwargs
):
3900 """SetAllPages(bool flag)"""
3901 return _windows
.PrintDialogData_SetAllPages(*args
, **kwargs
)
3903 def SetSelection(*args
, **kwargs
):
3904 """SetSelection(bool flag)"""
3905 return _windows
.PrintDialogData_SetSelection(*args
, **kwargs
)
3907 def SetCollate(*args
, **kwargs
):
3908 """SetCollate(bool flag)"""
3909 return _windows
.PrintDialogData_SetCollate(*args
, **kwargs
)
3911 def SetPrintToFile(*args
, **kwargs
):
3912 """SetPrintToFile(bool flag)"""
3913 return _windows
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
3915 def SetSetupDialog(*args
, **kwargs
):
3916 """SetSetupDialog(bool flag)"""
3917 return _windows
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
3919 def EnablePrintToFile(*args
, **kwargs
):
3920 """EnablePrintToFile(bool flag)"""
3921 return _windows
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
3923 def EnableSelection(*args
, **kwargs
):
3924 """EnableSelection(bool flag)"""
3925 return _windows
.PrintDialogData_EnableSelection(*args
, **kwargs
)
3927 def EnablePageNumbers(*args
, **kwargs
):
3928 """EnablePageNumbers(bool flag)"""
3929 return _windows
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
3931 def EnableHelp(*args
, **kwargs
):
3932 """EnableHelp(bool flag)"""
3933 return _windows
.PrintDialogData_EnableHelp(*args
, **kwargs
)
3935 def GetEnablePrintToFile(*args
, **kwargs
):
3936 """GetEnablePrintToFile() -> bool"""
3937 return _windows
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
3939 def GetEnableSelection(*args
, **kwargs
):
3940 """GetEnableSelection() -> bool"""
3941 return _windows
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
3943 def GetEnablePageNumbers(*args
, **kwargs
):
3944 """GetEnablePageNumbers() -> bool"""
3945 return _windows
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
3947 def GetEnableHelp(*args
, **kwargs
):
3948 """GetEnableHelp() -> bool"""
3949 return _windows
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
3951 def Ok(*args
, **kwargs
):
3953 return _windows
.PrintDialogData_Ok(*args
, **kwargs
)
3955 def GetPrintData(*args
, **kwargs
):
3956 """GetPrintData() -> PrintData"""
3957 return _windows
.PrintDialogData_GetPrintData(*args
, **kwargs
)
3959 def SetPrintData(*args
, **kwargs
):
3960 """SetPrintData(PrintData printData)"""
3961 return _windows
.PrintDialogData_SetPrintData(*args
, **kwargs
)
3963 def __nonzero__(self
): return self
.Ok()
3965 class PrintDialogDataPtr(PrintDialogData
):
3966 def __init__(self
, this
):
3968 if not hasattr(self
,"thisown"): self
.thisown
= 0
3969 self
.__class
__ = PrintDialogData
3970 _windows
.PrintDialogData_swigregister(PrintDialogDataPtr
)
3972 class PrintDialog(Dialog
):
3974 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3975 def __init__(self
, *args
, **kwargs
):
3976 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
3977 newobj
= _windows
.new_PrintDialog(*args
, **kwargs
)
3978 self
.this
= newobj
.this
3981 self
._setOORInfo
(self
)
3983 def GetPrintDialogData(*args
, **kwargs
):
3984 """GetPrintDialogData() -> PrintDialogData"""
3985 return _windows
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
3987 def GetPrintDC(*args
, **kwargs
):
3988 """GetPrintDC() -> DC"""
3989 return _windows
.PrintDialog_GetPrintDC(*args
, **kwargs
)
3991 def ShowModal(*args
, **kwargs
):
3992 """ShowModal() -> int"""
3993 return _windows
.PrintDialog_ShowModal(*args
, **kwargs
)
3996 class PrintDialogPtr(PrintDialog
):
3997 def __init__(self
, this
):
3999 if not hasattr(self
,"thisown"): self
.thisown
= 0
4000 self
.__class
__ = PrintDialog
4001 _windows
.PrintDialog_swigregister(PrintDialogPtr
)
4003 PRINTER_NO_ERROR
= _windows
.PRINTER_NO_ERROR
4004 PRINTER_CANCELLED
= _windows
.PRINTER_CANCELLED
4005 PRINTER_ERROR
= _windows
.PRINTER_ERROR
4006 class Printer(core
.Object
):
4008 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4009 def __init__(self
, *args
, **kwargs
):
4010 """__init__(PrintDialogData data=None) -> Printer"""
4011 newobj
= _windows
.new_Printer(*args
, **kwargs
)
4012 self
.this
= newobj
.this
4015 def __del__(self
, destroy
=_windows
.delete_Printer
):
4018 if self
.thisown
: destroy(self
)
4021 def CreateAbortWindow(*args
, **kwargs
):
4022 """CreateAbortWindow(Window parent, Printout printout)"""
4023 return _windows
.Printer_CreateAbortWindow(*args
, **kwargs
)
4025 def GetPrintDialogData(*args
, **kwargs
):
4026 """GetPrintDialogData() -> PrintDialogData"""
4027 return _windows
.Printer_GetPrintDialogData(*args
, **kwargs
)
4029 def Print(*args
, **kwargs
):
4030 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
4031 return _windows
.Printer_Print(*args
, **kwargs
)
4033 def PrintDialog(*args
, **kwargs
):
4034 """PrintDialog(Window parent) -> DC"""
4035 return _windows
.Printer_PrintDialog(*args
, **kwargs
)
4037 def ReportError(*args
, **kwargs
):
4038 """ReportError(Window parent, Printout printout, String message)"""
4039 return _windows
.Printer_ReportError(*args
, **kwargs
)
4041 def Setup(*args
, **kwargs
):
4042 """Setup(Window parent) -> bool"""
4043 return _windows
.Printer_Setup(*args
, **kwargs
)
4045 def GetAbort(*args
, **kwargs
):
4046 """GetAbort() -> bool"""
4047 return _windows
.Printer_GetAbort(*args
, **kwargs
)
4049 def GetLastError(*args
, **kwargs
):
4050 """GetLastError() -> int"""
4051 return _windows
.Printer_GetLastError(*args
, **kwargs
)
4053 GetLastError
= staticmethod(GetLastError
)
4055 class PrinterPtr(Printer
):
4056 def __init__(self
, this
):
4058 if not hasattr(self
,"thisown"): self
.thisown
= 0
4059 self
.__class
__ = Printer
4060 _windows
.Printer_swigregister(PrinterPtr
)
4062 def Printer_GetLastError(*args
, **kwargs
):
4063 """Printer_GetLastError() -> int"""
4064 return _windows
.Printer_GetLastError(*args
, **kwargs
)
4066 class Printout(core
.Object
):
4068 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4069 def __init__(self
, *args
, **kwargs
):
4070 """__init__(String title=PrintoutTitleStr) -> Printout"""
4071 newobj
= _windows
.new_Printout(*args
, **kwargs
)
4072 self
.this
= newobj
.this
4075 self
._setCallbackInfo
(self
, Printout
)
4077 def _setCallbackInfo(*args
, **kwargs
):
4078 """_setCallbackInfo(PyObject self, PyObject _class)"""
4079 return _windows
.Printout__setCallbackInfo(*args
, **kwargs
)
4081 def GetTitle(*args
, **kwargs
):
4082 """GetTitle() -> String"""
4083 return _windows
.Printout_GetTitle(*args
, **kwargs
)
4085 def GetDC(*args
, **kwargs
):
4087 return _windows
.Printout_GetDC(*args
, **kwargs
)
4089 def SetDC(*args
, **kwargs
):
4091 return _windows
.Printout_SetDC(*args
, **kwargs
)
4093 def SetPageSizePixels(*args
, **kwargs
):
4094 """SetPageSizePixels(int w, int h)"""
4095 return _windows
.Printout_SetPageSizePixels(*args
, **kwargs
)
4097 def GetPageSizePixels(*args
, **kwargs
):
4098 """GetPageSizePixels() -> (w, h)"""
4099 return _windows
.Printout_GetPageSizePixels(*args
, **kwargs
)
4101 def SetPageSizeMM(*args
, **kwargs
):
4102 """SetPageSizeMM(int w, int h)"""
4103 return _windows
.Printout_SetPageSizeMM(*args
, **kwargs
)
4105 def GetPageSizeMM(*args
, **kwargs
):
4106 """GetPageSizeMM() -> (w, h)"""
4107 return _windows
.Printout_GetPageSizeMM(*args
, **kwargs
)
4109 def SetPPIScreen(*args
, **kwargs
):
4110 """SetPPIScreen(int x, int y)"""
4111 return _windows
.Printout_SetPPIScreen(*args
, **kwargs
)
4113 def GetPPIScreen(*args
, **kwargs
):
4114 """GetPPIScreen() -> (x,y)"""
4115 return _windows
.Printout_GetPPIScreen(*args
, **kwargs
)
4117 def SetPPIPrinter(*args
, **kwargs
):
4118 """SetPPIPrinter(int x, int y)"""
4119 return _windows
.Printout_SetPPIPrinter(*args
, **kwargs
)
4121 def GetPPIPrinter(*args
, **kwargs
):
4122 """GetPPIPrinter() -> (x,y)"""
4123 return _windows
.Printout_GetPPIPrinter(*args
, **kwargs
)
4125 def IsPreview(*args
, **kwargs
):
4126 """IsPreview() -> bool"""
4127 return _windows
.Printout_IsPreview(*args
, **kwargs
)
4129 def SetIsPreview(*args
, **kwargs
):
4130 """SetIsPreview(bool p)"""
4131 return _windows
.Printout_SetIsPreview(*args
, **kwargs
)
4133 def base_OnBeginDocument(*args
, **kwargs
):
4134 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
4135 return _windows
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4137 def base_OnEndDocument(*args
, **kwargs
):
4138 """base_OnEndDocument()"""
4139 return _windows
.Printout_base_OnEndDocument(*args
, **kwargs
)
4141 def base_OnBeginPrinting(*args
, **kwargs
):
4142 """base_OnBeginPrinting()"""
4143 return _windows
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4145 def base_OnEndPrinting(*args
, **kwargs
):
4146 """base_OnEndPrinting()"""
4147 return _windows
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4149 def base_OnPreparePrinting(*args
, **kwargs
):
4150 """base_OnPreparePrinting()"""
4151 return _windows
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4153 def base_HasPage(*args
, **kwargs
):
4154 """base_HasPage(int page) -> bool"""
4155 return _windows
.Printout_base_HasPage(*args
, **kwargs
)
4157 def base_GetPageInfo(*args
, **kwargs
):
4158 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4159 return _windows
.Printout_base_GetPageInfo(*args
, **kwargs
)
4162 class PrintoutPtr(Printout
):
4163 def __init__(self
, this
):
4165 if not hasattr(self
,"thisown"): self
.thisown
= 0
4166 self
.__class
__ = Printout
4167 _windows
.Printout_swigregister(PrintoutPtr
)
4169 class PreviewCanvas(ScrolledWindow
):
4171 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4172 def __init__(self
, *args
, **kwargs
):
4174 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
4175 Size size=DefaultSize, long style=0,
4176 String name=PreviewCanvasNameStr) -> PreviewCanvas
4178 newobj
= _windows
.new_PreviewCanvas(*args
, **kwargs
)
4179 self
.this
= newobj
.this
4182 self
._setOORInfo
(self
)
4185 class PreviewCanvasPtr(PreviewCanvas
):
4186 def __init__(self
, this
):
4188 if not hasattr(self
,"thisown"): self
.thisown
= 0
4189 self
.__class
__ = PreviewCanvas
4190 _windows
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4192 class PreviewFrame(Frame
):
4194 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4195 def __init__(self
, *args
, **kwargs
):
4197 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4198 Size size=DefaultSize,
4199 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4201 newobj
= _windows
.new_PreviewFrame(*args
, **kwargs
)
4202 self
.this
= newobj
.this
4205 self
._setOORInfo
(self
)
4207 def Initialize(*args
, **kwargs
):
4209 return _windows
.PreviewFrame_Initialize(*args
, **kwargs
)
4211 def CreateControlBar(*args
, **kwargs
):
4212 """CreateControlBar()"""
4213 return _windows
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4215 def CreateCanvas(*args
, **kwargs
):
4216 """CreateCanvas()"""
4217 return _windows
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4219 def GetControlBar(*args
, **kwargs
):
4220 """GetControlBar() -> PreviewControlBar"""
4221 return _windows
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4224 class PreviewFramePtr(PreviewFrame
):
4225 def __init__(self
, this
):
4227 if not hasattr(self
,"thisown"): self
.thisown
= 0
4228 self
.__class
__ = PreviewFrame
4229 _windows
.PreviewFrame_swigregister(PreviewFramePtr
)
4231 PREVIEW_PRINT
= _windows
.PREVIEW_PRINT
4232 PREVIEW_PREVIOUS
= _windows
.PREVIEW_PREVIOUS
4233 PREVIEW_NEXT
= _windows
.PREVIEW_NEXT
4234 PREVIEW_ZOOM
= _windows
.PREVIEW_ZOOM
4235 PREVIEW_FIRST
= _windows
.PREVIEW_FIRST
4236 PREVIEW_LAST
= _windows
.PREVIEW_LAST
4237 PREVIEW_GOTO
= _windows
.PREVIEW_GOTO
4238 PREVIEW_DEFAULT
= _windows
.PREVIEW_DEFAULT
4239 ID_PREVIEW_CLOSE
= _windows
.ID_PREVIEW_CLOSE
4240 ID_PREVIEW_NEXT
= _windows
.ID_PREVIEW_NEXT
4241 ID_PREVIEW_PREVIOUS
= _windows
.ID_PREVIEW_PREVIOUS
4242 ID_PREVIEW_PRINT
= _windows
.ID_PREVIEW_PRINT
4243 ID_PREVIEW_ZOOM
= _windows
.ID_PREVIEW_ZOOM
4244 ID_PREVIEW_FIRST
= _windows
.ID_PREVIEW_FIRST
4245 ID_PREVIEW_LAST
= _windows
.ID_PREVIEW_LAST
4246 ID_PREVIEW_GOTO
= _windows
.ID_PREVIEW_GOTO
4247 class PreviewControlBar(Panel
):
4249 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4250 def __init__(self
, *args
, **kwargs
):
4252 __init__(PrintPreview preview, long buttons, Window parent,
4253 Point pos=DefaultPosition, Size size=DefaultSize,
4254 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4256 newobj
= _windows
.new_PreviewControlBar(*args
, **kwargs
)
4257 self
.this
= newobj
.this
4260 self
._setOORInfo
(self
)
4262 def GetZoomControl(*args
, **kwargs
):
4263 """GetZoomControl() -> int"""
4264 return _windows
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4266 def SetZoomControl(*args
, **kwargs
):
4267 """SetZoomControl(int zoom)"""
4268 return _windows
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4270 def GetPrintPreview(*args
, **kwargs
):
4271 """GetPrintPreview() -> PrintPreview"""
4272 return _windows
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4274 def OnNext(*args
, **kwargs
):
4276 return _windows
.PreviewControlBar_OnNext(*args
, **kwargs
)
4278 def OnPrevious(*args
, **kwargs
):
4280 return _windows
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4282 def OnFirst(*args
, **kwargs
):
4284 return _windows
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4286 def OnLast(*args
, **kwargs
):
4288 return _windows
.PreviewControlBar_OnLast(*args
, **kwargs
)
4290 def OnGoto(*args
, **kwargs
):
4292 return _windows
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4295 class PreviewControlBarPtr(PreviewControlBar
):
4296 def __init__(self
, this
):
4298 if not hasattr(self
,"thisown"): self
.thisown
= 0
4299 self
.__class
__ = PreviewControlBar
4300 _windows
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4302 class PrintPreview(core
.Object
):
4304 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4305 def __init__(self
, *args
):
4307 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4308 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4310 newobj
= _windows
.new_PrintPreview(*args
)
4311 self
.this
= newobj
.this
4314 def SetCurrentPage(*args
, **kwargs
):
4315 """SetCurrentPage(int pageNum) -> bool"""
4316 return _windows
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4318 def GetCurrentPage(*args
, **kwargs
):
4319 """GetCurrentPage() -> int"""
4320 return _windows
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4322 def SetPrintout(*args
, **kwargs
):
4323 """SetPrintout(Printout printout)"""
4324 return _windows
.PrintPreview_SetPrintout(*args
, **kwargs
)
4326 def GetPrintout(*args
, **kwargs
):
4327 """GetPrintout() -> Printout"""
4328 return _windows
.PrintPreview_GetPrintout(*args
, **kwargs
)
4330 def GetPrintoutForPrinting(*args
, **kwargs
):
4331 """GetPrintoutForPrinting() -> Printout"""
4332 return _windows
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4334 def SetFrame(*args
, **kwargs
):
4335 """SetFrame(Frame frame)"""
4336 return _windows
.PrintPreview_SetFrame(*args
, **kwargs
)
4338 def SetCanvas(*args
, **kwargs
):
4339 """SetCanvas(PreviewCanvas canvas)"""
4340 return _windows
.PrintPreview_SetCanvas(*args
, **kwargs
)
4342 def GetFrame(*args
, **kwargs
):
4343 """GetFrame() -> Frame"""
4344 return _windows
.PrintPreview_GetFrame(*args
, **kwargs
)
4346 def GetCanvas(*args
, **kwargs
):
4347 """GetCanvas() -> PreviewCanvas"""
4348 return _windows
.PrintPreview_GetCanvas(*args
, **kwargs
)
4350 def PaintPage(*args
, **kwargs
):
4351 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4352 return _windows
.PrintPreview_PaintPage(*args
, **kwargs
)
4354 def DrawBlankPage(*args
, **kwargs
):
4355 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4356 return _windows
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4358 def RenderPage(*args
, **kwargs
):
4359 """RenderPage(int pageNum) -> bool"""
4360 return _windows
.PrintPreview_RenderPage(*args
, **kwargs
)
4362 def AdjustScrollbars(*args
, **kwargs
):
4363 """AdjustScrollbars(PreviewCanvas canvas)"""
4364 return _windows
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4366 def GetPrintDialogData(*args
, **kwargs
):
4367 """GetPrintDialogData() -> PrintDialogData"""
4368 return _windows
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4370 def SetZoom(*args
, **kwargs
):
4371 """SetZoom(int percent)"""
4372 return _windows
.PrintPreview_SetZoom(*args
, **kwargs
)
4374 def GetZoom(*args
, **kwargs
):
4375 """GetZoom() -> int"""
4376 return _windows
.PrintPreview_GetZoom(*args
, **kwargs
)
4378 def GetMaxPage(*args
, **kwargs
):
4379 """GetMaxPage() -> int"""
4380 return _windows
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4382 def GetMinPage(*args
, **kwargs
):
4383 """GetMinPage() -> int"""
4384 return _windows
.PrintPreview_GetMinPage(*args
, **kwargs
)
4386 def Ok(*args
, **kwargs
):
4388 return _windows
.PrintPreview_Ok(*args
, **kwargs
)
4390 def SetOk(*args
, **kwargs
):
4391 """SetOk(bool ok)"""
4392 return _windows
.PrintPreview_SetOk(*args
, **kwargs
)
4394 def Print(*args
, **kwargs
):
4395 """Print(bool interactive) -> bool"""
4396 return _windows
.PrintPreview_Print(*args
, **kwargs
)
4398 def DetermineScaling(*args
, **kwargs
):
4399 """DetermineScaling()"""
4400 return _windows
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4402 def __nonzero__(self
): return self
.Ok()
4404 class PrintPreviewPtr(PrintPreview
):
4405 def __init__(self
, this
):
4407 if not hasattr(self
,"thisown"): self
.thisown
= 0
4408 self
.__class
__ = PrintPreview
4409 _windows
.PrintPreview_swigregister(PrintPreviewPtr
)
4411 class PyPrintPreview(PrintPreview
):
4413 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4414 def __init__(self
, *args
):
4416 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4417 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4419 newobj
= _windows
.new_PyPrintPreview(*args
)
4420 self
.this
= newobj
.this
4423 self
._setCallbackInfo
(self
, PyPrintPreview
)
4425 def _setCallbackInfo(*args
, **kwargs
):
4426 """_setCallbackInfo(PyObject self, PyObject _class)"""
4427 return _windows
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4429 def base_SetCurrentPage(*args
, **kwargs
):
4430 """base_SetCurrentPage(int pageNum) -> bool"""
4431 return _windows
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4433 def base_PaintPage(*args
, **kwargs
):
4434 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4435 return _windows
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4437 def base_DrawBlankPage(*args
, **kwargs
):
4438 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4439 return _windows
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4441 def base_RenderPage(*args
, **kwargs
):
4442 """base_RenderPage(int pageNum) -> bool"""
4443 return _windows
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4445 def base_SetZoom(*args
, **kwargs
):
4446 """base_SetZoom(int percent)"""
4447 return _windows
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4449 def base_Print(*args
, **kwargs
):
4450 """base_Print(bool interactive) -> bool"""
4451 return _windows
.PyPrintPreview_base_Print(*args
, **kwargs
)
4453 def base_DetermineScaling(*args
, **kwargs
):
4454 """base_DetermineScaling()"""
4455 return _windows
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4458 class PyPrintPreviewPtr(PyPrintPreview
):
4459 def __init__(self
, this
):
4461 if not hasattr(self
,"thisown"): self
.thisown
= 0
4462 self
.__class
__ = PyPrintPreview
4463 _windows
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4465 class PyPreviewFrame(PreviewFrame
):
4467 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4468 def __init__(self
, *args
, **kwargs
):
4470 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4471 Size size=DefaultSize,
4472 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4474 newobj
= _windows
.new_PyPreviewFrame(*args
, **kwargs
)
4475 self
.this
= newobj
.this
4478 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4480 def _setCallbackInfo(*args
, **kwargs
):
4481 """_setCallbackInfo(PyObject self, PyObject _class)"""
4482 return _windows
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4484 def SetPreviewCanvas(*args
, **kwargs
):
4485 """SetPreviewCanvas(PreviewCanvas canvas)"""
4486 return _windows
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4488 def SetControlBar(*args
, **kwargs
):
4489 """SetControlBar(PreviewControlBar bar)"""
4490 return _windows
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4492 def base_Initialize(*args
, **kwargs
):
4493 """base_Initialize()"""
4494 return _windows
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4496 def base_CreateCanvas(*args
, **kwargs
):
4497 """base_CreateCanvas()"""
4498 return _windows
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4500 def base_CreateControlBar(*args
, **kwargs
):
4501 """base_CreateControlBar()"""
4502 return _windows
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4505 class PyPreviewFramePtr(PyPreviewFrame
):
4506 def __init__(self
, this
):
4508 if not hasattr(self
,"thisown"): self
.thisown
= 0
4509 self
.__class
__ = PyPreviewFrame
4510 _windows
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4512 class PyPreviewControlBar(PreviewControlBar
):
4514 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4515 def __init__(self
, *args
, **kwargs
):
4517 __init__(PrintPreview preview, long buttons, Window parent,
4518 Point pos=DefaultPosition, Size size=DefaultSize,
4519 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4521 newobj
= _windows
.new_PyPreviewControlBar(*args
, **kwargs
)
4522 self
.this
= newobj
.this
4525 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4527 def _setCallbackInfo(*args
, **kwargs
):
4528 """_setCallbackInfo(PyObject self, PyObject _class)"""
4529 return _windows
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4531 def SetPrintPreview(*args
, **kwargs
):
4532 """SetPrintPreview(PrintPreview preview)"""
4533 return _windows
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4535 def base_CreateButtons(*args
, **kwargs
):
4536 """base_CreateButtons()"""
4537 return _windows
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4539 def base_SetZoomControl(*args
, **kwargs
):
4540 """base_SetZoomControl(int zoom)"""
4541 return _windows
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4544 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4545 def __init__(self
, this
):
4547 if not hasattr(self
,"thisown"): self
.thisown
= 0
4548 self
.__class
__ = PyPreviewControlBar
4549 _windows
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)