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, Point pos=DefaultPosition, Size size=DefaultSize,
28 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 FULLSCREEN_NOMENUBAR
= _windows
.FULLSCREEN_NOMENUBAR
199 FULLSCREEN_NOTOOLBAR
= _windows
.FULLSCREEN_NOTOOLBAR
200 FULLSCREEN_NOSTATUSBAR
= _windows
.FULLSCREEN_NOSTATUSBAR
201 FULLSCREEN_NOBORDER
= _windows
.FULLSCREEN_NOBORDER
202 FULLSCREEN_NOCAPTION
= _windows
.FULLSCREEN_NOCAPTION
203 FULLSCREEN_ALL
= _windows
.FULLSCREEN_ALL
204 TOPLEVEL_EX_DIALOG
= _windows
.TOPLEVEL_EX_DIALOG
205 class TopLevelWindow(core
.Window
):
206 def __init__(self
): raise RuntimeError, "No constructor defined"
208 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
209 def Maximize(*args
, **kwargs
):
210 """Maximize(bool maximize=True)"""
211 return _windows
.TopLevelWindow_Maximize(*args
, **kwargs
)
213 def Restore(*args
, **kwargs
):
215 return _windows
.TopLevelWindow_Restore(*args
, **kwargs
)
217 def Iconize(*args
, **kwargs
):
218 """Iconize(bool iconize=True)"""
219 return _windows
.TopLevelWindow_Iconize(*args
, **kwargs
)
221 def IsMaximized(*args
, **kwargs
):
222 """IsMaximized() -> bool"""
223 return _windows
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
225 def IsIconized(*args
, **kwargs
):
226 """IsIconized() -> bool"""
227 return _windows
.TopLevelWindow_IsIconized(*args
, **kwargs
)
229 def GetIcon(*args
, **kwargs
):
230 """GetIcon() -> Icon"""
231 return _windows
.TopLevelWindow_GetIcon(*args
, **kwargs
)
233 def SetIcon(*args
, **kwargs
):
234 """SetIcon(Icon icon)"""
235 return _windows
.TopLevelWindow_SetIcon(*args
, **kwargs
)
237 def SetIcons(*args
, **kwargs
):
238 """SetIcons(wxIconBundle icons)"""
239 return _windows
.TopLevelWindow_SetIcons(*args
, **kwargs
)
241 def ShowFullScreen(*args
, **kwargs
):
242 """ShowFullScreen(bool show, long style=FULLSCREEN_ALL) -> bool"""
243 return _windows
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
245 def IsFullScreen(*args
, **kwargs
):
246 """IsFullScreen() -> bool"""
247 return _windows
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
249 def SetTitle(*args
, **kwargs
):
251 SetTitle(String title)
253 Sets the window's title. Applicable only to frames and dialogs.
255 return _windows
.TopLevelWindow_SetTitle(*args
, **kwargs
)
257 def GetTitle(*args
, **kwargs
):
261 Gets the window's title. Applicable only to frames and dialogs.
263 return _windows
.TopLevelWindow_GetTitle(*args
, **kwargs
)
265 def SetShape(*args
, **kwargs
):
266 """SetShape(Region region) -> bool"""
267 return _windows
.TopLevelWindow_SetShape(*args
, **kwargs
)
270 class TopLevelWindowPtr(TopLevelWindow
):
271 def __init__(self
, this
):
273 if not hasattr(self
,"thisown"): self
.thisown
= 0
274 self
.__class
__ = TopLevelWindow
275 _windows
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
277 FrameNameStr
= cvar
.FrameNameStr
278 DialogNameStr
= cvar
.DialogNameStr
279 StatusLineNameStr
= cvar
.StatusLineNameStr
280 ToolBarNameStr
= cvar
.ToolBarNameStr
282 #---------------------------------------------------------------------------
284 class Frame(TopLevelWindow
):
286 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
287 def __init__(self
, *args
, **kwargs
):
289 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
290 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
291 String name=FrameNameStr) -> Frame
293 newobj
= _windows
.new_Frame(*args
, **kwargs
)
294 self
.this
= newobj
.this
297 self
._setOORInfo
(self
)
299 def Create(*args
, **kwargs
):
301 Create(Window parent, int id, String title, Point pos=DefaultPosition,
302 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
303 String name=FrameNameStr) -> bool
305 return _windows
.Frame_Create(*args
, **kwargs
)
307 def GetClientAreaOrigin(*args
, **kwargs
):
309 GetClientAreaOrigin() -> Point
311 Get the origin of the client area of the window relative to the
312 window's top left corner (the client area may be shifted because of
313 the borders, scrollbars, other decorations...)
315 return _windows
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
317 def SendSizeEvent(*args
, **kwargs
):
318 """SendSizeEvent()"""
319 return _windows
.Frame_SendSizeEvent(*args
, **kwargs
)
321 def SetMenuBar(*args
, **kwargs
):
322 """SetMenuBar(MenuBar menubar)"""
323 return _windows
.Frame_SetMenuBar(*args
, **kwargs
)
325 def GetMenuBar(*args
, **kwargs
):
326 """GetMenuBar() -> MenuBar"""
327 return _windows
.Frame_GetMenuBar(*args
, **kwargs
)
329 def ProcessCommand(*args
, **kwargs
):
330 """ProcessCommand(int winid) -> bool"""
331 return _windows
.Frame_ProcessCommand(*args
, **kwargs
)
333 Command
= ProcessCommand
334 def CreateStatusBar(*args
, **kwargs
):
336 CreateStatusBar(int number=1, long style=ST_SIZEGRIP, int winid=0,
337 String name=StatusLineNameStr) -> StatusBar
339 return _windows
.Frame_CreateStatusBar(*args
, **kwargs
)
341 def GetStatusBar(*args
, **kwargs
):
342 """GetStatusBar() -> StatusBar"""
343 return _windows
.Frame_GetStatusBar(*args
, **kwargs
)
345 def SetStatusBar(*args
, **kwargs
):
346 """SetStatusBar(StatusBar statBar)"""
347 return _windows
.Frame_SetStatusBar(*args
, **kwargs
)
349 def SetStatusText(*args
, **kwargs
):
350 """SetStatusText(String text, int number=0)"""
351 return _windows
.Frame_SetStatusText(*args
, **kwargs
)
353 def SetStatusWidths(*args
, **kwargs
):
354 """SetStatusWidths(int widths, int widths_field)"""
355 return _windows
.Frame_SetStatusWidths(*args
, **kwargs
)
357 def PushStatusText(*args
, **kwargs
):
358 """PushStatusText(String text, int number=0)"""
359 return _windows
.Frame_PushStatusText(*args
, **kwargs
)
361 def PopStatusText(*args
, **kwargs
):
362 """PopStatusText(int number=0)"""
363 return _windows
.Frame_PopStatusText(*args
, **kwargs
)
365 def SetStatusBarPane(*args
, **kwargs
):
366 """SetStatusBarPane(int n)"""
367 return _windows
.Frame_SetStatusBarPane(*args
, **kwargs
)
369 def GetStatusBarPane(*args
, **kwargs
):
370 """GetStatusBarPane() -> int"""
371 return _windows
.Frame_GetStatusBarPane(*args
, **kwargs
)
373 def CreateToolBar(*args
, **kwargs
):
374 """CreateToolBar(long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
375 return _windows
.Frame_CreateToolBar(*args
, **kwargs
)
377 def GetToolBar(*args
, **kwargs
):
378 """GetToolBar() -> wxToolBar"""
379 return _windows
.Frame_GetToolBar(*args
, **kwargs
)
381 def SetToolBar(*args
, **kwargs
):
382 """SetToolBar(wxToolBar toolbar)"""
383 return _windows
.Frame_SetToolBar(*args
, **kwargs
)
385 def DoGiveHelp(*args
, **kwargs
):
386 """DoGiveHelp(String text, bool show)"""
387 return _windows
.Frame_DoGiveHelp(*args
, **kwargs
)
389 def DoMenuUpdates(*args
, **kwargs
):
390 """DoMenuUpdates(Menu menu=None)"""
391 return _windows
.Frame_DoMenuUpdates(*args
, **kwargs
)
394 class FramePtr(Frame
):
395 def __init__(self
, this
):
397 if not hasattr(self
,"thisown"): self
.thisown
= 0
398 self
.__class
__ = Frame
399 _windows
.Frame_swigregister(FramePtr
)
401 def PreFrame(*args
, **kwargs
):
402 """PreFrame() -> Frame"""
403 val
= _windows
.new_PreFrame(*args
, **kwargs
)
407 #---------------------------------------------------------------------------
409 class Dialog(TopLevelWindow
):
411 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
412 def __init__(self
, *args
, **kwargs
):
414 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
415 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
416 String name=DialogNameStr) -> Dialog
418 newobj
= _windows
.new_Dialog(*args
, **kwargs
)
419 self
.this
= newobj
.this
422 self
._setOORInfo
(self
)
424 def Create(*args
, **kwargs
):
426 Create(Window parent, int id, String title, Point pos=DefaultPosition,
427 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
428 String name=DialogNameStr) -> bool
430 return _windows
.Dialog_Create(*args
, **kwargs
)
432 def SetReturnCode(*args
, **kwargs
):
433 """SetReturnCode(int returnCode)"""
434 return _windows
.Dialog_SetReturnCode(*args
, **kwargs
)
436 def GetReturnCode(*args
, **kwargs
):
437 """GetReturnCode() -> int"""
438 return _windows
.Dialog_GetReturnCode(*args
, **kwargs
)
440 def CreateTextSizer(*args
, **kwargs
):
441 """CreateTextSizer(String message) -> Sizer"""
442 return _windows
.Dialog_CreateTextSizer(*args
, **kwargs
)
444 def CreateButtonSizer(*args
, **kwargs
):
445 """CreateButtonSizer(long flags) -> Sizer"""
446 return _windows
.Dialog_CreateButtonSizer(*args
, **kwargs
)
448 def IsModal(*args
, **kwargs
):
449 """IsModal() -> bool"""
450 return _windows
.Dialog_IsModal(*args
, **kwargs
)
452 def ShowModal(*args
, **kwargs
):
453 """ShowModal() -> int"""
454 return _windows
.Dialog_ShowModal(*args
, **kwargs
)
456 def EndModal(*args
, **kwargs
):
457 """EndModal(int retCode)"""
458 return _windows
.Dialog_EndModal(*args
, **kwargs
)
460 def IsModalShowing(*args
, **kwargs
):
461 """IsModalShowing() -> bool"""
462 return _windows
.Dialog_IsModalShowing(*args
, **kwargs
)
465 class DialogPtr(Dialog
):
466 def __init__(self
, this
):
468 if not hasattr(self
,"thisown"): self
.thisown
= 0
469 self
.__class
__ = Dialog
470 _windows
.Dialog_swigregister(DialogPtr
)
472 def PreDialog(*args
, **kwargs
):
473 """PreDialog() -> Dialog"""
474 val
= _windows
.new_PreDialog(*args
, **kwargs
)
478 #---------------------------------------------------------------------------
480 class MiniFrame(Frame
):
482 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
483 def __init__(self
, *args
, **kwargs
):
485 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
486 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
487 String name=FrameNameStr) -> MiniFrame
489 newobj
= _windows
.new_MiniFrame(*args
, **kwargs
)
490 self
.this
= newobj
.this
493 self
._setOORInfo
(self
)
495 def Create(*args
, **kwargs
):
497 Create(Window parent, int id, String title, Point pos=DefaultPosition,
498 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
499 String name=FrameNameStr) -> bool
501 return _windows
.MiniFrame_Create(*args
, **kwargs
)
504 class MiniFramePtr(MiniFrame
):
505 def __init__(self
, this
):
507 if not hasattr(self
,"thisown"): self
.thisown
= 0
508 self
.__class
__ = MiniFrame
509 _windows
.MiniFrame_swigregister(MiniFramePtr
)
511 def PreMiniFrame(*args
, **kwargs
):
512 """PreMiniFrame() -> MiniFrame"""
513 val
= _windows
.new_PreMiniFrame(*args
, **kwargs
)
517 #---------------------------------------------------------------------------
519 SPLASH_CENTRE_ON_PARENT
= _windows
.SPLASH_CENTRE_ON_PARENT
520 SPLASH_CENTRE_ON_SCREEN
= _windows
.SPLASH_CENTRE_ON_SCREEN
521 SPLASH_NO_CENTRE
= _windows
.SPLASH_NO_CENTRE
522 SPLASH_TIMEOUT
= _windows
.SPLASH_TIMEOUT
523 SPLASH_NO_TIMEOUT
= _windows
.SPLASH_NO_TIMEOUT
524 class SplashScreenWindow(core
.Window
):
526 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
527 def __init__(self
, *args
, **kwargs
):
529 __init__(Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
530 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
532 newobj
= _windows
.new_SplashScreenWindow(*args
, **kwargs
)
533 self
.this
= newobj
.this
536 self
._setOORInfo
(self
)
538 def SetBitmap(*args
, **kwargs
):
539 """SetBitmap(Bitmap bitmap)"""
540 return _windows
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
542 def GetBitmap(*args
, **kwargs
):
543 """GetBitmap() -> Bitmap"""
544 return _windows
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
547 class SplashScreenWindowPtr(SplashScreenWindow
):
548 def __init__(self
, this
):
550 if not hasattr(self
,"thisown"): self
.thisown
= 0
551 self
.__class
__ = SplashScreenWindow
552 _windows
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
554 class SplashScreen(Frame
):
556 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
557 def __init__(self
, *args
, **kwargs
):
559 __init__(Bitmap bitmap, long splashStyle, int milliseconds,
560 Window parent, int id, Point pos=DefaultPosition,
561 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
563 newobj
= _windows
.new_SplashScreen(*args
, **kwargs
)
564 self
.this
= newobj
.this
567 self
._setOORInfo
(self
)
569 def GetSplashStyle(*args
, **kwargs
):
570 """GetSplashStyle() -> long"""
571 return _windows
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
573 def GetSplashWindow(*args
, **kwargs
):
574 """GetSplashWindow() -> SplashScreenWindow"""
575 return _windows
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
577 def GetTimeout(*args
, **kwargs
):
578 """GetTimeout() -> int"""
579 return _windows
.SplashScreen_GetTimeout(*args
, **kwargs
)
582 class SplashScreenPtr(SplashScreen
):
583 def __init__(self
, this
):
585 if not hasattr(self
,"thisown"): self
.thisown
= 0
586 self
.__class
__ = SplashScreen
587 _windows
.SplashScreen_swigregister(SplashScreenPtr
)
589 #---------------------------------------------------------------------------
591 class StatusBar(core
.Window
):
593 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
594 def __init__(self
, *args
, **kwargs
):
595 """__init__(Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
596 newobj
= _windows
.new_StatusBar(*args
, **kwargs
)
597 self
.this
= newobj
.this
600 self
._setOORInfo
(self
)
602 def Create(*args
, **kwargs
):
603 """Create(Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
604 return _windows
.StatusBar_Create(*args
, **kwargs
)
606 def SetFieldsCount(*args
, **kwargs
):
607 """SetFieldsCount(int number=1)"""
608 return _windows
.StatusBar_SetFieldsCount(*args
, **kwargs
)
610 def GetFieldsCount(*args
, **kwargs
):
611 """GetFieldsCount() -> int"""
612 return _windows
.StatusBar_GetFieldsCount(*args
, **kwargs
)
614 def SetStatusText(*args
, **kwargs
):
615 """SetStatusText(String text, int number=0)"""
616 return _windows
.StatusBar_SetStatusText(*args
, **kwargs
)
618 def GetStatusText(*args
, **kwargs
):
619 """GetStatusText(int number=0) -> String"""
620 return _windows
.StatusBar_GetStatusText(*args
, **kwargs
)
622 def PushStatusText(*args
, **kwargs
):
623 """PushStatusText(String text, int number=0)"""
624 return _windows
.StatusBar_PushStatusText(*args
, **kwargs
)
626 def PopStatusText(*args
, **kwargs
):
627 """PopStatusText(int number=0)"""
628 return _windows
.StatusBar_PopStatusText(*args
, **kwargs
)
630 def SetStatusWidths(*args
, **kwargs
):
631 """SetStatusWidths(int widths, int widths_field)"""
632 return _windows
.StatusBar_SetStatusWidths(*args
, **kwargs
)
634 def GetFieldRect(*args
, **kwargs
):
635 """GetFieldRect(int i) -> Rect"""
636 return _windows
.StatusBar_GetFieldRect(*args
, **kwargs
)
638 def SetMinHeight(*args
, **kwargs
):
639 """SetMinHeight(int height)"""
640 return _windows
.StatusBar_SetMinHeight(*args
, **kwargs
)
642 def GetBorderX(*args
, **kwargs
):
643 """GetBorderX() -> int"""
644 return _windows
.StatusBar_GetBorderX(*args
, **kwargs
)
646 def GetBorderY(*args
, **kwargs
):
647 """GetBorderY() -> int"""
648 return _windows
.StatusBar_GetBorderY(*args
, **kwargs
)
651 class StatusBarPtr(StatusBar
):
652 def __init__(self
, this
):
654 if not hasattr(self
,"thisown"): self
.thisown
= 0
655 self
.__class
__ = StatusBar
656 _windows
.StatusBar_swigregister(StatusBarPtr
)
658 def PreStatusBar(*args
, **kwargs
):
659 """PreStatusBar() -> StatusBar"""
660 val
= _windows
.new_PreStatusBar(*args
, **kwargs
)
664 #---------------------------------------------------------------------------
666 SP_NOBORDER
= _windows
.SP_NOBORDER
667 SP_NOSASH
= _windows
.SP_NOSASH
668 SP_PERMIT_UNSPLIT
= _windows
.SP_PERMIT_UNSPLIT
669 SP_LIVE_UPDATE
= _windows
.SP_LIVE_UPDATE
670 SP_3DSASH
= _windows
.SP_3DSASH
671 SP_3DBORDER
= _windows
.SP_3DBORDER
672 SP_NO_XP_THEME
= _windows
.SP_NO_XP_THEME
673 SP_BORDER
= _windows
.SP_BORDER
674 SP_3D
= _windows
.SP_3D
675 SPLIT_HORIZONTAL
= _windows
.SPLIT_HORIZONTAL
676 SPLIT_VERTICAL
= _windows
.SPLIT_VERTICAL
677 SPLIT_DRAG_NONE
= _windows
.SPLIT_DRAG_NONE
678 SPLIT_DRAG_DRAGGING
= _windows
.SPLIT_DRAG_DRAGGING
679 SPLIT_DRAG_LEFT_DOWN
= _windows
.SPLIT_DRAG_LEFT_DOWN
680 class SplitterWindow(core
.Window
):
682 wx.SplitterWindow manages up to two subwindows or panes,
683 with an optional vertical or horizontal split which can be
684 used with the mouse or programmatically.
688 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
689 def __init__(self
, *args
, **kwargs
):
691 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
692 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
694 Constructor. Creates and shows a SplitterWindow.
696 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
697 newobj
= _windows
.new_SplitterWindow(*args
, **kwargs
)
698 self
.this
= newobj
.this
701 self
._setOORInfo
(self
)
703 def Create(*args
, **kwargs
):
705 Create(Window parent, int id=-1, Point pos=DefaultPosition,
706 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
708 Create the GUI part of the SplitterWindow for the 2-phase create.
710 return _windows
.SplitterWindow_Create(*args
, **kwargs
)
712 def GetWindow1(*args
, **kwargs
):
714 GetWindow1() -> Window
716 Gets the only or left/top pane.
718 return _windows
.SplitterWindow_GetWindow1(*args
, **kwargs
)
720 def GetWindow2(*args
, **kwargs
):
722 GetWindow2() -> Window
724 Gets the right/bottom pane.
726 return _windows
.SplitterWindow_GetWindow2(*args
, **kwargs
)
728 def SetSplitMode(*args
, **kwargs
):
730 SetSplitMode(int mode)
732 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
733 wx.SPLIT_HORIZONTAL. This only sets the internal variable;
734 does not update the display.
736 return _windows
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
738 def GetSplitMode(*args
, **kwargs
):
740 GetSplitMode() -> int
744 return _windows
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
746 def Initialize(*args
, **kwargs
):
748 Initialize(Window window)
750 Initializes the splitter window to have one pane. This
751 should be called if you wish to initially view only a single
752 pane in the splitter window.
754 return _windows
.SplitterWindow_Initialize(*args
, **kwargs
)
756 def SplitVertically(*args
, **kwargs
):
758 SplitVertically(Window window1, Window window2, int sashPosition=0) -> bool
760 Initializes the left and right panes of the splitter window.
762 window1 The left pane.
763 window2 The right pane.
764 sashPosition The initial position of the sash. If this
765 value is positive, it specifies the size
766 of the left pane. If it is negative, it is
767 absolute value gives the size of the right
768 pane. Finally, specify 0 (default) to
769 choose the default position (half of the
772 Returns True if successful, False otherwise (the window was
775 SplitVertically should be called if you wish to initially
776 view two panes. It can also be called at any subsequent
777 time, but the application should check that the window is
778 not currently split using IsSplit.
780 return _windows
.SplitterWindow_SplitVertically(*args
, **kwargs
)
782 def SplitHorizontally(*args
, **kwargs
):
784 SplitHorizontally(Window window1, Window window2, int sashPosition=0) -> bool
786 Initializes the top and bottom panes of the splitter window.
788 window1 The top pane.
789 window2 The bottom pane.
790 sashPosition The initial position of the sash. If this
791 value is positive, it specifies the size
792 of the upper pane. If it is negative, it
793 is absolute value gives the size of the
794 lower pane. Finally, specify 0 (default)
795 to choose the default position (half of
796 the total window height).
798 Returns True if successful, False otherwise (the window was
801 SplitHorizontally should be called if you wish to initially
802 view two panes. It can also be called at any subsequent
803 time, but the application should check that the window is
804 not currently split using IsSplit.
806 return _windows
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
808 def Unsplit(*args
, **kwargs
):
810 Unsplit(Window toRemove=None) -> bool
812 Unsplits the window. Pass the pane to remove, or None to
813 remove the right or bottom pane. Returns True if
814 successful, False otherwise (the window was not split).
816 This function will not actually delete the pane being
817 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
818 for the desired behaviour. By default, the pane being
819 removed is only hidden.
821 return _windows
.SplitterWindow_Unsplit(*args
, **kwargs
)
823 def ReplaceWindow(*args
, **kwargs
):
825 ReplaceWindow(Window winOld, Window winNew) -> bool
827 This function replaces one of the windows managed by the
828 SplitterWindow with another one. It is in general better to
829 use it instead of calling Unsplit() and then resplitting the
830 window back because it will provoke much less flicker. It is
831 valid to call this function whether the splitter has two
834 Both parameters should be non-None and winOld must specify
835 one of the windows managed by the splitter. If the
836 parameters are incorrect or the window couldn't be replaced,
837 False is returned. Otherwise the function will return True,
838 but please notice that it will not Destroy the replaced
839 window and you may wish to do it yourself.
841 return _windows
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
843 def UpdateSize(*args
, **kwargs
):
847 Causes any pending sizing of the sash and child panes to
848 take place immediately.
850 Such resizing normally takes place in idle time, in order to
851 wait for layout to be completed. However, this can cause
852 unacceptable flicker as the panes are resized after the
853 window has been shown. To work around this, you can perform
854 window layout (for example by sending a size event to the
855 parent window), and then call this function, before showing
856 the top-level window.
858 return _windows
.SplitterWindow_UpdateSize(*args
, **kwargs
)
860 def IsSplit(*args
, **kwargs
):
866 return _windows
.SplitterWindow_IsSplit(*args
, **kwargs
)
868 def SetSashSize(*args
, **kwargs
):
870 SetSashSize(int width)
874 return _windows
.SplitterWindow_SetSashSize(*args
, **kwargs
)
876 def SetBorderSize(*args
, **kwargs
):
878 SetBorderSize(int width)
882 return _windows
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
884 def GetSashSize(*args
, **kwargs
):
890 return _windows
.SplitterWindow_GetSashSize(*args
, **kwargs
)
892 def GetBorderSize(*args
, **kwargs
):
894 GetBorderSize() -> int
898 return _windows
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
900 def SetSashPosition(*args
, **kwargs
):
902 SetSashPosition(int position, bool redraw=True)
904 Sets the sash position, in pixels. If redraw is Ttrue then
905 the panes are resized and the sash and border are redrawn.
907 return _windows
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
909 def GetSashPosition(*args
, **kwargs
):
911 GetSashPosition() -> int
913 Returns the surrent sash position.
915 return _windows
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
917 def SetMinimumPaneSize(*args
, **kwargs
):
919 SetMinimumPaneSize(int min)
921 Sets the minimum pane size in pixels.
923 The default minimum pane size is zero, which means that
924 either pane can be reduced to zero by dragging the sash,
925 thus removing one of the panes. To prevent this behaviour (and
926 veto out-of-range sash dragging), set a minimum size,
927 for example 20 pixels. If the wx.SP_PERMIT_UNSPLIT style is
928 used when a splitter window is created, the window may be
929 unsplit even if minimum size is non-zero.
931 return _windows
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
933 def GetMinimumPaneSize(*args
, **kwargs
):
935 GetMinimumPaneSize() -> int
937 Gets the minimum pane size in pixels.
939 return _windows
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
941 def SashHitTest(*args
, **kwargs
):
943 SashHitTest(int x, int y, int tolerance=5) -> bool
945 Tests for x, y over the sash
947 return _windows
.SplitterWindow_SashHitTest(*args
, **kwargs
)
949 def SizeWindows(*args
, **kwargs
):
955 return _windows
.SplitterWindow_SizeWindows(*args
, **kwargs
)
957 def SetNeedUpdating(*args
, **kwargs
):
958 """SetNeedUpdating(bool needUpdating)"""
959 return _windows
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
961 def GetNeedUpdating(*args
, **kwargs
):
962 """GetNeedUpdating() -> bool"""
963 return _windows
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
966 class SplitterWindowPtr(SplitterWindow
):
967 def __init__(self
, this
):
969 if not hasattr(self
,"thisown"): self
.thisown
= 0
970 self
.__class
__ = SplitterWindow
971 _windows
.SplitterWindow_swigregister(SplitterWindowPtr
)
972 SplitterNameStr
= cvar
.SplitterNameStr
974 def PreSplitterWindow(*args
, **kwargs
):
976 PreSplitterWindow() -> SplitterWindow
978 Precreate a SplitterWindow for 2-phase creation.
980 val
= _windows
.new_PreSplitterWindow(*args
, **kwargs
)
984 class SplitterEvent(core
.NotifyEvent
):
985 """This class represents the events generated by a splitter control."""
987 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
988 def __init__(self
, *args
, **kwargs
):
990 __init__(wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
992 This class represents the events generated by a splitter control.
994 newobj
= _windows
.new_SplitterEvent(*args
, **kwargs
)
995 self
.this
= newobj
.this
998 def SetSashPosition(*args
, **kwargs
):
1000 SetSashPosition(int pos)
1002 This funciton is only meaningful during
1003 EVT_SPLITTER_SASH_POS_CHANGING and
1004 EVT_SPLITTER_SASH_POS_CHANGED events. In the case of
1005 _CHANGED events, sets the the new sash position. In the case
1006 of _CHANGING events, sets the new tracking bar position so
1007 visual feedback during dragging will represent that change
1008 that will actually take place. Set to -1 from the event
1009 handler code to prevent repositioning.
1011 return _windows
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1013 def GetSashPosition(*args
, **kwargs
):
1015 GetSashPosition() -> int
1017 Returns the new sash position while in
1018 EVT_SPLITTER_SASH_POS_CHANGING and
1019 EVT_SPLITTER_SASH_POS_CHANGED events.
1021 return _windows
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1023 def GetWindowBeingRemoved(*args
, **kwargs
):
1025 GetWindowBeingRemoved() -> Window
1027 Returns a pointer to the window being removed when a
1028 splitter window is unsplit.
1030 return _windows
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1032 def GetX(*args
, **kwargs
):
1036 Returns the x coordinate of the double-click point in a
1037 EVT_SPLITTER_DCLICK event.
1039 return _windows
.SplitterEvent_GetX(*args
, **kwargs
)
1041 def GetY(*args
, **kwargs
):
1045 Returns the y coordinate of the double-click point in a
1046 EVT_SPLITTER_DCLICK event.
1048 return _windows
.SplitterEvent_GetY(*args
, **kwargs
)
1051 class SplitterEventPtr(SplitterEvent
):
1052 def __init__(self
, this
):
1054 if not hasattr(self
,"thisown"): self
.thisown
= 0
1055 self
.__class
__ = SplitterEvent
1056 _windows
.SplitterEvent_swigregister(SplitterEventPtr
)
1058 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1059 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1060 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1061 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1062 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1063 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1064 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1065 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1066 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1068 #---------------------------------------------------------------------------
1070 SASH_DRAG_NONE
= _windows
.SASH_DRAG_NONE
1071 SASH_DRAG_DRAGGING
= _windows
.SASH_DRAG_DRAGGING
1072 SASH_DRAG_LEFT_DOWN
= _windows
.SASH_DRAG_LEFT_DOWN
1073 SW_NOBORDER
= _windows
.SW_NOBORDER
1074 SW_BORDER
= _windows
.SW_BORDER
1075 SW_3DSASH
= _windows
.SW_3DSASH
1076 SW_3DBORDER
= _windows
.SW_3DBORDER
1077 SW_3D
= _windows
.SW_3D
1078 SASH_TOP
= _windows
.SASH_TOP
1079 SASH_RIGHT
= _windows
.SASH_RIGHT
1080 SASH_BOTTOM
= _windows
.SASH_BOTTOM
1081 SASH_LEFT
= _windows
.SASH_LEFT
1082 SASH_NONE
= _windows
.SASH_NONE
1083 class SashWindow(core
.Window
):
1085 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1086 def __init__(self
, *args
, **kwargs
):
1088 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1089 long style=wxCLIP_CHILDREN|wxSW_3D,
1090 String name=SashNameStr) -> SashWindow
1092 newobj
= _windows
.new_SashWindow(*args
, **kwargs
)
1093 self
.this
= newobj
.this
1096 self
._setOORInfo
(self
)
1098 def Create(*args
, **kwargs
):
1100 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1101 long style=wxCLIP_CHILDREN|wxSW_3D,
1102 String name=SashNameStr) -> bool
1104 return _windows
.SashWindow_Create(*args
, **kwargs
)
1106 def SetSashVisible(*args
, **kwargs
):
1107 """SetSashVisible(int edge, bool sash)"""
1108 return _windows
.SashWindow_SetSashVisible(*args
, **kwargs
)
1110 def GetSashVisible(*args
, **kwargs
):
1111 """GetSashVisible(int edge) -> bool"""
1112 return _windows
.SashWindow_GetSashVisible(*args
, **kwargs
)
1114 def SetSashBorder(*args
, **kwargs
):
1115 """SetSashBorder(int edge, bool border)"""
1116 return _windows
.SashWindow_SetSashBorder(*args
, **kwargs
)
1118 def HasBorder(*args
, **kwargs
):
1119 """HasBorder(int edge) -> bool"""
1120 return _windows
.SashWindow_HasBorder(*args
, **kwargs
)
1122 def GetEdgeMargin(*args
, **kwargs
):
1123 """GetEdgeMargin(int edge) -> int"""
1124 return _windows
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1126 def SetDefaultBorderSize(*args
, **kwargs
):
1127 """SetDefaultBorderSize(int width)"""
1128 return _windows
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1130 def GetDefaultBorderSize(*args
, **kwargs
):
1131 """GetDefaultBorderSize() -> int"""
1132 return _windows
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1134 def SetExtraBorderSize(*args
, **kwargs
):
1135 """SetExtraBorderSize(int width)"""
1136 return _windows
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1138 def GetExtraBorderSize(*args
, **kwargs
):
1139 """GetExtraBorderSize() -> int"""
1140 return _windows
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1142 def SetMinimumSizeX(*args
, **kwargs
):
1143 """SetMinimumSizeX(int min)"""
1144 return _windows
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1146 def SetMinimumSizeY(*args
, **kwargs
):
1147 """SetMinimumSizeY(int min)"""
1148 return _windows
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1150 def GetMinimumSizeX(*args
, **kwargs
):
1151 """GetMinimumSizeX() -> int"""
1152 return _windows
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1154 def GetMinimumSizeY(*args
, **kwargs
):
1155 """GetMinimumSizeY() -> int"""
1156 return _windows
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1158 def SetMaximumSizeX(*args
, **kwargs
):
1159 """SetMaximumSizeX(int max)"""
1160 return _windows
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1162 def SetMaximumSizeY(*args
, **kwargs
):
1163 """SetMaximumSizeY(int max)"""
1164 return _windows
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1166 def GetMaximumSizeX(*args
, **kwargs
):
1167 """GetMaximumSizeX() -> int"""
1168 return _windows
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1170 def GetMaximumSizeY(*args
, **kwargs
):
1171 """GetMaximumSizeY() -> int"""
1172 return _windows
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1174 def SashHitTest(*args
, **kwargs
):
1175 """SashHitTest(int x, int y, int tolerance=2) -> int"""
1176 return _windows
.SashWindow_SashHitTest(*args
, **kwargs
)
1178 def SizeWindows(*args
, **kwargs
):
1180 return _windows
.SashWindow_SizeWindows(*args
, **kwargs
)
1183 class SashWindowPtr(SashWindow
):
1184 def __init__(self
, this
):
1186 if not hasattr(self
,"thisown"): self
.thisown
= 0
1187 self
.__class
__ = SashWindow
1188 _windows
.SashWindow_swigregister(SashWindowPtr
)
1189 SashNameStr
= cvar
.SashNameStr
1190 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1192 def PreSashWindow(*args
, **kwargs
):
1193 """PreSashWindow() -> SashWindow"""
1194 val
= _windows
.new_PreSashWindow(*args
, **kwargs
)
1198 SASH_STATUS_OK
= _windows
.SASH_STATUS_OK
1199 SASH_STATUS_OUT_OF_RANGE
= _windows
.SASH_STATUS_OUT_OF_RANGE
1200 class SashEvent(core
.CommandEvent
):
1202 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1203 def __init__(self
, *args
, **kwargs
):
1204 """__init__(int id=0, int edge=SASH_NONE) -> SashEvent"""
1205 newobj
= _windows
.new_SashEvent(*args
, **kwargs
)
1206 self
.this
= newobj
.this
1209 def SetEdge(*args
, **kwargs
):
1210 """SetEdge(int edge)"""
1211 return _windows
.SashEvent_SetEdge(*args
, **kwargs
)
1213 def GetEdge(*args
, **kwargs
):
1214 """GetEdge() -> int"""
1215 return _windows
.SashEvent_GetEdge(*args
, **kwargs
)
1217 def SetDragRect(*args
, **kwargs
):
1218 """SetDragRect(Rect rect)"""
1219 return _windows
.SashEvent_SetDragRect(*args
, **kwargs
)
1221 def GetDragRect(*args
, **kwargs
):
1222 """GetDragRect() -> Rect"""
1223 return _windows
.SashEvent_GetDragRect(*args
, **kwargs
)
1225 def SetDragStatus(*args
, **kwargs
):
1226 """SetDragStatus(int status)"""
1227 return _windows
.SashEvent_SetDragStatus(*args
, **kwargs
)
1229 def GetDragStatus(*args
, **kwargs
):
1230 """GetDragStatus() -> int"""
1231 return _windows
.SashEvent_GetDragStatus(*args
, **kwargs
)
1234 class SashEventPtr(SashEvent
):
1235 def __init__(self
, this
):
1237 if not hasattr(self
,"thisown"): self
.thisown
= 0
1238 self
.__class
__ = SashEvent
1239 _windows
.SashEvent_swigregister(SashEventPtr
)
1241 wxEVT_SASH_DRAGGED
= _windows
.wxEVT_SASH_DRAGGED
1242 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1243 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1245 #---------------------------------------------------------------------------
1247 LAYOUT_HORIZONTAL
= _windows
.LAYOUT_HORIZONTAL
1248 LAYOUT_VERTICAL
= _windows
.LAYOUT_VERTICAL
1249 LAYOUT_NONE
= _windows
.LAYOUT_NONE
1250 LAYOUT_TOP
= _windows
.LAYOUT_TOP
1251 LAYOUT_LEFT
= _windows
.LAYOUT_LEFT
1252 LAYOUT_RIGHT
= _windows
.LAYOUT_RIGHT
1253 LAYOUT_BOTTOM
= _windows
.LAYOUT_BOTTOM
1254 LAYOUT_LENGTH_Y
= _windows
.LAYOUT_LENGTH_Y
1255 LAYOUT_LENGTH_X
= _windows
.LAYOUT_LENGTH_X
1256 LAYOUT_MRU_LENGTH
= _windows
.LAYOUT_MRU_LENGTH
1257 LAYOUT_QUERY
= _windows
.LAYOUT_QUERY
1258 wxEVT_QUERY_LAYOUT_INFO
= _windows
.wxEVT_QUERY_LAYOUT_INFO
1259 wxEVT_CALCULATE_LAYOUT
= _windows
.wxEVT_CALCULATE_LAYOUT
1260 class QueryLayoutInfoEvent(core
.Event
):
1262 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1263 def __init__(self
, *args
, **kwargs
):
1264 """__init__(int id=0) -> QueryLayoutInfoEvent"""
1265 newobj
= _windows
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1266 self
.this
= newobj
.this
1269 def SetRequestedLength(*args
, **kwargs
):
1270 """SetRequestedLength(int length)"""
1271 return _windows
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1273 def GetRequestedLength(*args
, **kwargs
):
1274 """GetRequestedLength() -> int"""
1275 return _windows
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1277 def SetFlags(*args
, **kwargs
):
1278 """SetFlags(int flags)"""
1279 return _windows
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1281 def GetFlags(*args
, **kwargs
):
1282 """GetFlags() -> int"""
1283 return _windows
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1285 def SetSize(*args
, **kwargs
):
1286 """SetSize(Size size)"""
1287 return _windows
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1289 def GetSize(*args
, **kwargs
):
1290 """GetSize() -> Size"""
1291 return _windows
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1293 def SetOrientation(*args
, **kwargs
):
1294 """SetOrientation(int orient)"""
1295 return _windows
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1297 def GetOrientation(*args
, **kwargs
):
1298 """GetOrientation() -> int"""
1299 return _windows
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1301 def SetAlignment(*args
, **kwargs
):
1302 """SetAlignment(int align)"""
1303 return _windows
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1305 def GetAlignment(*args
, **kwargs
):
1306 """GetAlignment() -> int"""
1307 return _windows
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1310 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1311 def __init__(self
, this
):
1313 if not hasattr(self
,"thisown"): self
.thisown
= 0
1314 self
.__class
__ = QueryLayoutInfoEvent
1315 _windows
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1317 class CalculateLayoutEvent(core
.Event
):
1319 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1320 def __init__(self
, *args
, **kwargs
):
1321 """__init__(int id=0) -> CalculateLayoutEvent"""
1322 newobj
= _windows
.new_CalculateLayoutEvent(*args
, **kwargs
)
1323 self
.this
= newobj
.this
1326 def SetFlags(*args
, **kwargs
):
1327 """SetFlags(int flags)"""
1328 return _windows
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1330 def GetFlags(*args
, **kwargs
):
1331 """GetFlags() -> int"""
1332 return _windows
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1334 def SetRect(*args
, **kwargs
):
1335 """SetRect(Rect rect)"""
1336 return _windows
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1338 def GetRect(*args
, **kwargs
):
1339 """GetRect() -> Rect"""
1340 return _windows
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1343 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1344 def __init__(self
, this
):
1346 if not hasattr(self
,"thisown"): self
.thisown
= 0
1347 self
.__class
__ = CalculateLayoutEvent
1348 _windows
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1350 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1351 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1353 class SashLayoutWindow(SashWindow
):
1355 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1356 def __init__(self
, *args
, **kwargs
):
1358 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1359 long style=wxCLIP_CHILDREN|wxSW_3D,
1360 String name=SashLayoutNameStr) -> SashLayoutWindow
1362 newobj
= _windows
.new_SashLayoutWindow(*args
, **kwargs
)
1363 self
.this
= newobj
.this
1366 self
._setOORInfo
(self
)
1368 def Create(*args
, **kwargs
):
1370 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1371 long style=wxCLIP_CHILDREN|wxSW_3D,
1372 String name=SashLayoutNameStr) -> bool
1374 return _windows
.SashLayoutWindow_Create(*args
, **kwargs
)
1376 def GetAlignment(*args
, **kwargs
):
1377 """GetAlignment() -> int"""
1378 return _windows
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1380 def GetOrientation(*args
, **kwargs
):
1381 """GetOrientation() -> int"""
1382 return _windows
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1384 def SetAlignment(*args
, **kwargs
):
1385 """SetAlignment(int alignment)"""
1386 return _windows
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1388 def SetDefaultSize(*args
, **kwargs
):
1389 """SetDefaultSize(Size size)"""
1390 return _windows
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1392 def SetOrientation(*args
, **kwargs
):
1393 """SetOrientation(int orientation)"""
1394 return _windows
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1397 class SashLayoutWindowPtr(SashLayoutWindow
):
1398 def __init__(self
, this
):
1400 if not hasattr(self
,"thisown"): self
.thisown
= 0
1401 self
.__class
__ = SashLayoutWindow
1402 _windows
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1404 def PreSashLayoutWindow(*args
, **kwargs
):
1405 """PreSashLayoutWindow() -> SashLayoutWindow"""
1406 val
= _windows
.new_PreSashLayoutWindow(*args
, **kwargs
)
1410 class LayoutAlgorithm(core
.Object
):
1412 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1413 def __init__(self
, *args
, **kwargs
):
1414 """__init__() -> LayoutAlgorithm"""
1415 newobj
= _windows
.new_LayoutAlgorithm(*args
, **kwargs
)
1416 self
.this
= newobj
.this
1419 def __del__(self
, destroy
=_windows
.delete_LayoutAlgorithm
):
1422 if self
.thisown
: destroy(self
)
1425 def LayoutMDIFrame(*args
, **kwargs
):
1426 """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool"""
1427 return _windows
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1429 def LayoutFrame(*args
, **kwargs
):
1430 """LayoutFrame(Frame frame, Window mainWindow=None) -> bool"""
1431 return _windows
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1433 def LayoutWindow(*args
, **kwargs
):
1434 """LayoutWindow(Window parent, Window mainWindow=None) -> bool"""
1435 return _windows
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1438 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1439 def __init__(self
, this
):
1441 if not hasattr(self
,"thisown"): self
.thisown
= 0
1442 self
.__class
__ = LayoutAlgorithm
1443 _windows
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1445 #---------------------------------------------------------------------------
1447 class PopupWindow(core
.Window
):
1449 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1450 def __init__(self
, *args
, **kwargs
):
1451 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1452 newobj
= _windows
.new_PopupWindow(*args
, **kwargs
)
1453 self
.this
= newobj
.this
1456 self
._setOORInfo
(self
)
1458 def Create(*args
, **kwargs
):
1459 """Create(Window parent, int flags=BORDER_NONE) -> bool"""
1460 return _windows
.PopupWindow_Create(*args
, **kwargs
)
1462 def Position(*args
, **kwargs
):
1463 """Position(Point ptOrigin, Size size)"""
1464 return _windows
.PopupWindow_Position(*args
, **kwargs
)
1467 class PopupWindowPtr(PopupWindow
):
1468 def __init__(self
, this
):
1470 if not hasattr(self
,"thisown"): self
.thisown
= 0
1471 self
.__class
__ = PopupWindow
1472 _windows
.PopupWindow_swigregister(PopupWindowPtr
)
1474 def PrePopupWindow(*args
, **kwargs
):
1475 """PrePopupWindow() -> PopupWindow"""
1476 val
= _windows
.new_PrePopupWindow(*args
, **kwargs
)
1480 #---------------------------------------------------------------------------
1482 class PopupTransientWindow(PopupWindow
):
1484 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1485 def __init__(self
, *args
, **kwargs
):
1486 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1487 newobj
= _windows
.new_PopupTransientWindow(*args
, **kwargs
)
1488 self
.this
= newobj
.this
1491 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1493 def _setCallbackInfo(*args
, **kwargs
):
1494 """_setCallbackInfo(PyObject self, PyObject _class)"""
1495 return _windows
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1497 def Popup(*args
, **kwargs
):
1498 """Popup(Window focus=None)"""
1499 return _windows
.PopupTransientWindow_Popup(*args
, **kwargs
)
1501 def Dismiss(*args
, **kwargs
):
1503 return _windows
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1506 class PopupTransientWindowPtr(PopupTransientWindow
):
1507 def __init__(self
, this
):
1509 if not hasattr(self
,"thisown"): self
.thisown
= 0
1510 self
.__class
__ = PopupTransientWindow
1511 _windows
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1513 def PrePopupTransientWindow(*args
, **kwargs
):
1514 """PrePopupTransientWindow() -> PopupTransientWindow"""
1515 val
= _windows
.new_PrePopupTransientWindow(*args
, **kwargs
)
1519 #---------------------------------------------------------------------------
1521 class TipWindow(PopupTransientWindow
):
1523 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1524 def __init__(self
, *args
, **kwargs
):
1525 """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1526 newobj
= _windows
.new_TipWindow(*args
, **kwargs
)
1527 self
.this
= newobj
.this
1530 self
._setOORInfo
(self
)
1532 def SetBoundingRect(*args
, **kwargs
):
1533 """SetBoundingRect(Rect rectBound)"""
1534 return _windows
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1536 def Close(*args
, **kwargs
):
1538 return _windows
.TipWindow_Close(*args
, **kwargs
)
1541 class TipWindowPtr(TipWindow
):
1542 def __init__(self
, this
):
1544 if not hasattr(self
,"thisown"): self
.thisown
= 0
1545 self
.__class
__ = TipWindow
1546 _windows
.TipWindow_swigregister(TipWindowPtr
)
1548 #---------------------------------------------------------------------------
1550 class VScrolledWindow(Panel
):
1552 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1553 def __init__(self
, *args
, **kwargs
):
1555 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1556 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1558 newobj
= _windows
.new_VScrolledWindow(*args
, **kwargs
)
1559 self
.this
= newobj
.this
1562 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1564 def _setCallbackInfo(*args
, **kwargs
):
1565 """_setCallbackInfo(PyObject self, PyObject _class)"""
1566 return _windows
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1568 def Create(*args
, **kwargs
):
1570 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1571 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1573 return _windows
.VScrolledWindow_Create(*args
, **kwargs
)
1575 def SetLineCount(*args
, **kwargs
):
1576 """SetLineCount(size_t count)"""
1577 return _windows
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1579 def ScrollToLine(*args
, **kwargs
):
1580 """ScrollToLine(size_t line) -> bool"""
1581 return _windows
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1583 def ScrollLines(*args
, **kwargs
):
1585 ScrollLines(int lines) -> bool
1587 If the platform and window class supports it, scrolls the window by
1588 the given number of lines down, if lines is positive, or up if lines
1589 is negative. Returns True if the window was scrolled, False if it was
1590 already on top/bottom and nothing was done.
1592 return _windows
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1594 def ScrollPages(*args
, **kwargs
):
1596 ScrollPages(int pages) -> bool
1598 If the platform and window class supports it, scrolls the window by
1599 the given number of pages down, if pages is positive, or up if pages
1600 is negative. Returns True if the window was scrolled, False if it was
1601 already on top/bottom and nothing was done.
1603 return _windows
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1605 def RefreshLine(*args
, **kwargs
):
1606 """RefreshLine(size_t line)"""
1607 return _windows
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1609 def RefreshLines(*args
, **kwargs
):
1610 """RefreshLines(size_t from, size_t to)"""
1611 return _windows
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1613 def HitTestXT(*args
, **kwargs
):
1615 HitTestXT(int x, int y) -> int
1617 Test where the given (in client coords) point lies
1619 return _windows
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1621 def HitTest(*args
, **kwargs
):
1623 HitTest(Point pt) -> int
1625 Test where the given (in client coords) point lies
1627 return _windows
.VScrolledWindow_HitTest(*args
, **kwargs
)
1629 def RefreshAll(*args
, **kwargs
):
1631 return _windows
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1633 def GetLineCount(*args
, **kwargs
):
1634 """GetLineCount() -> size_t"""
1635 return _windows
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1637 def GetFirstVisibleLine(*args
, **kwargs
):
1638 """GetFirstVisibleLine() -> size_t"""
1639 return _windows
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1641 def GetLastVisibleLine(*args
, **kwargs
):
1642 """GetLastVisibleLine() -> size_t"""
1643 return _windows
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1645 def IsVisible(*args
, **kwargs
):
1646 """IsVisible(size_t line) -> bool"""
1647 return _windows
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1650 class VScrolledWindowPtr(VScrolledWindow
):
1651 def __init__(self
, this
):
1653 if not hasattr(self
,"thisown"): self
.thisown
= 0
1654 self
.__class
__ = VScrolledWindow
1655 _windows
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1657 def PreVScrolledWindow(*args
, **kwargs
):
1658 """PreVScrolledWindow() -> VScrolledWindow"""
1659 val
= _windows
.new_PreVScrolledWindow(*args
, **kwargs
)
1663 class VListBox(VScrolledWindow
):
1665 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1666 def __init__(self
, *args
, **kwargs
):
1668 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1669 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1671 newobj
= _windows
.new_VListBox(*args
, **kwargs
)
1672 self
.this
= newobj
.this
1675 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1677 def _setCallbackInfo(*args
, **kwargs
):
1678 """_setCallbackInfo(PyObject self, PyObject _class)"""
1679 return _windows
.VListBox__setCallbackInfo(*args
, **kwargs
)
1681 def Create(*args
, **kwargs
):
1683 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1684 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1686 return _windows
.VListBox_Create(*args
, **kwargs
)
1688 def GetItemCount(*args
, **kwargs
):
1689 """GetItemCount() -> size_t"""
1690 return _windows
.VListBox_GetItemCount(*args
, **kwargs
)
1692 def HasMultipleSelection(*args
, **kwargs
):
1693 """HasMultipleSelection() -> bool"""
1694 return _windows
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1696 def GetSelection(*args
, **kwargs
):
1697 """GetSelection() -> int"""
1698 return _windows
.VListBox_GetSelection(*args
, **kwargs
)
1700 def IsCurrent(*args
, **kwargs
):
1701 """IsCurrent(size_t item) -> bool"""
1702 return _windows
.VListBox_IsCurrent(*args
, **kwargs
)
1704 def IsSelected(*args
, **kwargs
):
1705 """IsSelected(size_t item) -> bool"""
1706 return _windows
.VListBox_IsSelected(*args
, **kwargs
)
1708 def GetSelectedCount(*args
, **kwargs
):
1709 """GetSelectedCount() -> size_t"""
1710 return _windows
.VListBox_GetSelectedCount(*args
, **kwargs
)
1712 def GetFirstSelected(*args
, **kwargs
):
1713 """GetFirstSelected(unsigned long cookie) -> int"""
1714 return _windows
.VListBox_GetFirstSelected(*args
, **kwargs
)
1716 def GetNextSelected(*args
, **kwargs
):
1717 """GetNextSelected(unsigned long cookie) -> int"""
1718 return _windows
.VListBox_GetNextSelected(*args
, **kwargs
)
1720 def GetMargins(*args
, **kwargs
):
1721 """GetMargins() -> Point"""
1722 return _windows
.VListBox_GetMargins(*args
, **kwargs
)
1724 def GetSelectionBackground(*args
, **kwargs
):
1725 """GetSelectionBackground() -> Colour"""
1726 return _windows
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1728 def SetItemCount(*args
, **kwargs
):
1729 """SetItemCount(size_t count)"""
1730 return _windows
.VListBox_SetItemCount(*args
, **kwargs
)
1732 def Clear(*args
, **kwargs
):
1734 return _windows
.VListBox_Clear(*args
, **kwargs
)
1736 def SetSelection(*args
, **kwargs
):
1737 """SetSelection(int selection)"""
1738 return _windows
.VListBox_SetSelection(*args
, **kwargs
)
1740 def Select(*args
, **kwargs
):
1741 """Select(size_t item, bool select=True) -> bool"""
1742 return _windows
.VListBox_Select(*args
, **kwargs
)
1744 def SelectRange(*args
, **kwargs
):
1745 """SelectRange(size_t from, size_t to) -> bool"""
1746 return _windows
.VListBox_SelectRange(*args
, **kwargs
)
1748 def Toggle(*args
, **kwargs
):
1749 """Toggle(size_t item)"""
1750 return _windows
.VListBox_Toggle(*args
, **kwargs
)
1752 def SelectAll(*args
, **kwargs
):
1753 """SelectAll() -> bool"""
1754 return _windows
.VListBox_SelectAll(*args
, **kwargs
)
1756 def DeselectAll(*args
, **kwargs
):
1757 """DeselectAll() -> bool"""
1758 return _windows
.VListBox_DeselectAll(*args
, **kwargs
)
1760 def SetMargins(*args
, **kwargs
):
1761 """SetMargins(Point pt)"""
1762 return _windows
.VListBox_SetMargins(*args
, **kwargs
)
1764 def SetMarginsXY(*args
, **kwargs
):
1765 """SetMarginsXY(int x, int y)"""
1766 return _windows
.VListBox_SetMarginsXY(*args
, **kwargs
)
1768 def SetSelectionBackground(*args
, **kwargs
):
1769 """SetSelectionBackground(Colour col)"""
1770 return _windows
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1773 class VListBoxPtr(VListBox
):
1774 def __init__(self
, this
):
1776 if not hasattr(self
,"thisown"): self
.thisown
= 0
1777 self
.__class
__ = VListBox
1778 _windows
.VListBox_swigregister(VListBoxPtr
)
1779 VListBoxNameStr
= cvar
.VListBoxNameStr
1781 def PreVListBox(*args
, **kwargs
):
1782 """PreVListBox() -> VListBox"""
1783 val
= _windows
.new_PreVListBox(*args
, **kwargs
)
1787 class HtmlListBox(VListBox
):
1789 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1790 def __init__(self
, *args
, **kwargs
):
1792 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1793 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1795 newobj
= _windows
.new_HtmlListBox(*args
, **kwargs
)
1796 self
.this
= newobj
.this
1799 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1801 def _setCallbackInfo(*args
, **kwargs
):
1802 """_setCallbackInfo(PyObject self, PyObject _class)"""
1803 return _windows
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1805 def Create(*args
, **kwargs
):
1807 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1808 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1810 return _windows
.HtmlListBox_Create(*args
, **kwargs
)
1812 def RefreshAll(*args
, **kwargs
):
1814 return _windows
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1816 def SetItemCount(*args
, **kwargs
):
1817 """SetItemCount(size_t count)"""
1818 return _windows
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1821 class HtmlListBoxPtr(HtmlListBox
):
1822 def __init__(self
, this
):
1824 if not hasattr(self
,"thisown"): self
.thisown
= 0
1825 self
.__class
__ = HtmlListBox
1826 _windows
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1828 def PreHtmlListBox(*args
, **kwargs
):
1829 """PreHtmlListBox() -> HtmlListBox"""
1830 val
= _windows
.new_PreHtmlListBox(*args
, **kwargs
)
1834 #---------------------------------------------------------------------------
1836 class TaskBarIcon(core
.EvtHandler
):
1838 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1839 def __init__(self
, *args
, **kwargs
):
1840 """__init__() -> TaskBarIcon"""
1841 newobj
= _windows
.new_TaskBarIcon(*args
, **kwargs
)
1842 self
.this
= newobj
.this
1845 def __del__(self
, destroy
=_windows
.delete_TaskBarIcon
):
1848 if self
.thisown
: destroy(self
)
1851 def Destroy(*args
, **kwargs
):
1855 Deletes the C++ object this Python object is a proxy for.
1857 return _windows
.TaskBarIcon_Destroy(*args
, **kwargs
)
1859 def IsOk(*args
, **kwargs
):
1860 """IsOk() -> bool"""
1861 return _windows
.TaskBarIcon_IsOk(*args
, **kwargs
)
1863 def __nonzero__(self
): return self
.IsOk()
1864 def IsIconInstalled(*args
, **kwargs
):
1865 """IsIconInstalled() -> bool"""
1866 return _windows
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
1868 def SetIcon(*args
, **kwargs
):
1869 """SetIcon(Icon icon, String tooltip=EmptyString) -> bool"""
1870 return _windows
.TaskBarIcon_SetIcon(*args
, **kwargs
)
1872 def RemoveIcon(*args
, **kwargs
):
1873 """RemoveIcon() -> bool"""
1874 return _windows
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
1876 def PopupMenu(*args
, **kwargs
):
1877 """PopupMenu(Menu menu) -> bool"""
1878 return _windows
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
1881 class TaskBarIconPtr(TaskBarIcon
):
1882 def __init__(self
, this
):
1884 if not hasattr(self
,"thisown"): self
.thisown
= 0
1885 self
.__class
__ = TaskBarIcon
1886 _windows
.TaskBarIcon_swigregister(TaskBarIconPtr
)
1888 class TaskBarIconEvent(core
.Event
):
1890 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1891 def __init__(self
, *args
, **kwargs
):
1892 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
1893 newobj
= _windows
.new_TaskBarIconEvent(*args
, **kwargs
)
1894 self
.this
= newobj
.this
1898 class TaskBarIconEventPtr(TaskBarIconEvent
):
1899 def __init__(self
, this
):
1901 if not hasattr(self
,"thisown"): self
.thisown
= 0
1902 self
.__class
__ = TaskBarIconEvent
1903 _windows
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
1905 wxEVT_TASKBAR_MOVE
= _windows
.wxEVT_TASKBAR_MOVE
1906 wxEVT_TASKBAR_LEFT_DOWN
= _windows
.wxEVT_TASKBAR_LEFT_DOWN
1907 wxEVT_TASKBAR_LEFT_UP
= _windows
.wxEVT_TASKBAR_LEFT_UP
1908 wxEVT_TASKBAR_RIGHT_DOWN
= _windows
.wxEVT_TASKBAR_RIGHT_DOWN
1909 wxEVT_TASKBAR_RIGHT_UP
= _windows
.wxEVT_TASKBAR_RIGHT_UP
1910 wxEVT_TASKBAR_LEFT_DCLICK
= _windows
.wxEVT_TASKBAR_LEFT_DCLICK
1911 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows
.wxEVT_TASKBAR_RIGHT_DCLICK
1912 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
1913 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
1914 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
1915 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
1916 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
1917 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
1918 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
1920 #---------------------------------------------------------------------------
1922 class ColourData(core
.Object
):
1923 """This class holds a variety of information related to colour dialogs."""
1925 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1926 def __init__(self
, *args
, **kwargs
):
1928 __init__() -> ColourData
1930 Constructor, sets default values.
1932 newobj
= _windows
.new_ColourData(*args
, **kwargs
)
1933 self
.this
= newobj
.this
1936 def __del__(self
, destroy
=_windows
.delete_ColourData
):
1939 if self
.thisown
: destroy(self
)
1942 def GetChooseFull(*args
, **kwargs
):
1944 GetChooseFull() -> bool
1946 Under Windows, determines whether the Windows colour dialog will display
1947 the full dialog with custom colour selection controls. Has no meaning
1948 under other platforms. The default value is true.
1950 return _windows
.ColourData_GetChooseFull(*args
, **kwargs
)
1952 def GetColour(*args
, **kwargs
):
1954 GetColour() -> Colour
1956 Gets the colour (pre)selected by the dialog.
1958 return _windows
.ColourData_GetColour(*args
, **kwargs
)
1960 def GetCustomColour(*args
, **kwargs
):
1962 GetCustomColour(int i) -> Colour
1964 Gets the i'th custom colour associated with the colour dialog. i should
1965 be an integer between 0 and 15. The default custom colours are all white.
1967 return _windows
.ColourData_GetCustomColour(*args
, **kwargs
)
1969 def SetChooseFull(*args
, **kwargs
):
1971 SetChooseFull(int flag)
1973 Under Windows, tells the Windows colour dialog to display the full dialog
1974 with custom colour selection controls. Under other platforms, has no effect.
1975 The default value is true.
1977 return _windows
.ColourData_SetChooseFull(*args
, **kwargs
)
1979 def SetColour(*args
, **kwargs
):
1981 SetColour(Colour colour)
1983 Sets the default colour for the colour dialog. The default colour is black.
1985 return _windows
.ColourData_SetColour(*args
, **kwargs
)
1987 def SetCustomColour(*args
, **kwargs
):
1989 SetCustomColour(int i, Colour colour)
1991 Sets the i'th custom colour for the colour dialog. i should be an integer
1992 between 0 and 15. The default custom colours are all white.
1994 return _windows
.ColourData_SetCustomColour(*args
, **kwargs
)
1997 class ColourDataPtr(ColourData
):
1998 def __init__(self
, this
):
2000 if not hasattr(self
,"thisown"): self
.thisown
= 0
2001 self
.__class
__ = ColourData
2002 _windows
.ColourData_swigregister(ColourDataPtr
)
2003 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2004 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2005 DirDialogNameStr
= cvar
.DirDialogNameStr
2006 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2007 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2008 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2010 class ColourDialog(Dialog
):
2011 """This class represents the colour chooser dialog."""
2013 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2014 def __init__(self
, *args
, **kwargs
):
2016 __init__(Window parent, ColourData data=None) -> ColourDialog
2018 Constructor. Pass a parent window, and optionally a ColourData, which
2019 will be copied to the colour dialog's internal ColourData instance.
2021 newobj
= _windows
.new_ColourDialog(*args
, **kwargs
)
2022 self
.this
= newobj
.this
2025 self
._setOORInfo
(self
)
2027 def GetColourData(*args
, **kwargs
):
2029 GetColourData() -> ColourData
2031 Returns a reference to the ColourData used by the dialog.
2033 return _windows
.ColourDialog_GetColourData(*args
, **kwargs
)
2036 class ColourDialogPtr(ColourDialog
):
2037 def __init__(self
, this
):
2039 if not hasattr(self
,"thisown"): self
.thisown
= 0
2040 self
.__class
__ = ColourDialog
2041 _windows
.ColourDialog_swigregister(ColourDialogPtr
)
2043 class DirDialog(Dialog
):
2044 """This class represents the directory chooser dialog."""
2046 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2047 def __init__(self
, *args
, **kwargs
):
2049 __init__(Window parent, String message=DirSelectorPromptStr,
2050 String defaultPath=EmptyString, long style=0,
2051 Point pos=DefaultPosition, Size size=DefaultSize,
2052 String name=DirDialogNameStr) -> DirDialog
2054 Constructor. Use ShowModal method to show the dialog.
2056 newobj
= _windows
.new_DirDialog(*args
, **kwargs
)
2057 self
.this
= newobj
.this
2060 self
._setOORInfo
(self
)
2062 def GetPath(*args
, **kwargs
):
2066 Returns the default or user-selected path.
2068 return _windows
.DirDialog_GetPath(*args
, **kwargs
)
2070 def GetMessage(*args
, **kwargs
):
2072 GetMessage() -> String
2074 Returns the message that will be displayed on the dialog.
2076 return _windows
.DirDialog_GetMessage(*args
, **kwargs
)
2078 def GetStyle(*args
, **kwargs
):
2082 Returns the dialog style.
2084 return _windows
.DirDialog_GetStyle(*args
, **kwargs
)
2086 def SetMessage(*args
, **kwargs
):
2088 SetMessage(String message)
2090 Sets the message that will be displayed on the dialog.
2092 return _windows
.DirDialog_SetMessage(*args
, **kwargs
)
2094 def SetPath(*args
, **kwargs
):
2096 SetPath(String path)
2098 Sets the default path.
2100 return _windows
.DirDialog_SetPath(*args
, **kwargs
)
2103 class DirDialogPtr(DirDialog
):
2104 def __init__(self
, this
):
2106 if not hasattr(self
,"thisown"): self
.thisown
= 0
2107 self
.__class
__ = DirDialog
2108 _windows
.DirDialog_swigregister(DirDialogPtr
)
2110 class FileDialog(Dialog
):
2111 """This class represents the file chooser dialog."""
2113 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2114 def __init__(self
, *args
, **kwargs
):
2116 __init__(Window parent, String message=FileSelectorPromptStr,
2117 String defaultDir=EmptyString, String defaultFile=EmptyString,
2118 String wildcard=FileSelectorDefaultWildcardStr,
2119 long style=0, Point pos=DefaultPosition) -> FileDialog
2121 Constructor. Use ShowModal method to show the dialog.
2123 newobj
= _windows
.new_FileDialog(*args
, **kwargs
)
2124 self
.this
= newobj
.this
2127 self
._setOORInfo
(self
)
2129 def SetMessage(*args
, **kwargs
):
2131 SetMessage(String message)
2133 Sets the message that will be displayed on the dialog.
2135 return _windows
.FileDialog_SetMessage(*args
, **kwargs
)
2137 def SetPath(*args
, **kwargs
):
2139 SetPath(String path)
2141 Sets the path (the combined directory and filename that will
2142 be returned when the dialog is dismissed).
2144 return _windows
.FileDialog_SetPath(*args
, **kwargs
)
2146 def SetDirectory(*args
, **kwargs
):
2148 SetDirectory(String dir)
2150 Sets the default directory.
2152 return _windows
.FileDialog_SetDirectory(*args
, **kwargs
)
2154 def SetFilename(*args
, **kwargs
):
2156 SetFilename(String name)
2158 Sets the default filename.
2160 return _windows
.FileDialog_SetFilename(*args
, **kwargs
)
2162 def SetWildcard(*args
, **kwargs
):
2164 SetWildcard(String wildCard)
2166 Sets the wildcard, which can contain multiple file types, for example:
2167 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2169 return _windows
.FileDialog_SetWildcard(*args
, **kwargs
)
2171 def SetStyle(*args
, **kwargs
):
2173 SetStyle(long style)
2175 Sets the dialog style.
2177 return _windows
.FileDialog_SetStyle(*args
, **kwargs
)
2179 def SetFilterIndex(*args
, **kwargs
):
2181 SetFilterIndex(int filterIndex)
2183 Sets the default filter index, starting from zero.
2185 return _windows
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2187 def GetMessage(*args
, **kwargs
):
2189 GetMessage() -> String
2191 Returns the message that will be displayed on the dialog.
2193 return _windows
.FileDialog_GetMessage(*args
, **kwargs
)
2195 def GetPath(*args
, **kwargs
):
2199 Returns the full path (directory and filename) of the selected file.
2201 return _windows
.FileDialog_GetPath(*args
, **kwargs
)
2203 def GetDirectory(*args
, **kwargs
):
2205 GetDirectory() -> String
2207 Returns the default directory.
2209 return _windows
.FileDialog_GetDirectory(*args
, **kwargs
)
2211 def GetFilename(*args
, **kwargs
):
2213 GetFilename() -> String
2215 Returns the default filename.
2217 return _windows
.FileDialog_GetFilename(*args
, **kwargs
)
2219 def GetWildcard(*args
, **kwargs
):
2221 GetWildcard() -> String
2223 Returns the file dialog wildcard.
2225 return _windows
.FileDialog_GetWildcard(*args
, **kwargs
)
2227 def GetStyle(*args
, **kwargs
):
2231 Returns the dialog style.
2233 return _windows
.FileDialog_GetStyle(*args
, **kwargs
)
2235 def GetFilterIndex(*args
, **kwargs
):
2237 GetFilterIndex() -> int
2239 Returns the index into the list of filters supplied, optionally, in
2240 the wildcard parameter. Before the dialog is shown, this is the index
2241 which will be used when the dialog is first displayed. After the dialog
2242 is shown, this is the index selected by the user.
2244 return _windows
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2246 def GetFilenames(*args
, **kwargs
):
2248 GetFilenames() -> PyObject
2250 Returns a list of filenames chosen in the dialog. This function should
2251 only be used with the dialogs which have wx.MULTIPLE style, use
2252 GetFilename for the others.
2254 return _windows
.FileDialog_GetFilenames(*args
, **kwargs
)
2256 def GetPaths(*args
, **kwargs
):
2258 GetPaths() -> PyObject
2260 Fills the array paths with the full paths of the files chosen. This
2261 function should only be used with the dialogs which have wx.MULTIPLE style,
2262 use GetPath for the others.
2264 return _windows
.FileDialog_GetPaths(*args
, **kwargs
)
2267 class FileDialogPtr(FileDialog
):
2268 def __init__(self
, this
):
2270 if not hasattr(self
,"thisown"): self
.thisown
= 0
2271 self
.__class
__ = FileDialog
2272 _windows
.FileDialog_swigregister(FileDialogPtr
)
2274 CHOICEDLG_STYLE
= _windows
.CHOICEDLG_STYLE
2275 class MultiChoiceDialog(Dialog
):
2276 """A simple dialog with a multi selection listbox."""
2278 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2279 def __init__(self
, *args
, **kwargs
):
2281 __init__(Window parent, String message, String caption,
2282 List choices=[], long style=CHOICEDLG_STYLE,
2283 Point pos=DefaultPosition) -> MultiChoiceDialog
2285 Constructor. Use ShowModal method to show the dialog.
2287 newobj
= _windows
.new_MultiChoiceDialog(*args
, **kwargs
)
2288 self
.this
= newobj
.this
2291 self
._setOORInfo
(self
)
2293 def SetSelections(*args
, **kwargs
):
2295 SetSelections(List selections)
2297 Specify the items in the list that shoudl be selected, using a list of integers.
2299 return _windows
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2301 def GetSelections(*args
, **kwargs
):
2303 GetSelections() -> [selections]
2305 Returns a list of integers representing the items that are selected.
2307 return _windows
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2310 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2311 def __init__(self
, this
):
2313 if not hasattr(self
,"thisown"): self
.thisown
= 0
2314 self
.__class
__ = MultiChoiceDialog
2315 _windows
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2317 class SingleChoiceDialog(Dialog
):
2318 """A simple dialog with a single selection listbox."""
2320 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2321 def __init__(self
, *args
, **kwargs
):
2323 __init__(Window parent, String message, String caption,
2324 List choices=[], long style=CHOICEDLG_STYLE,
2325 Point pos=DefaultPosition) -> SingleChoiceDialog
2327 Constructor. Use ShowModal method to show the dialog.
2329 newobj
= _windows
.new_SingleChoiceDialog(*args
, **kwargs
)
2330 self
.this
= newobj
.this
2333 self
._setOORInfo
(self
)
2335 def GetSelection(*args
, **kwargs
):
2337 GetSelection() -> int
2339 Get the index of teh currently selected item.
2341 return _windows
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2343 def GetStringSelection(*args
, **kwargs
):
2345 GetStringSelection() -> String
2347 Returns the string value of the currently selected item
2349 return _windows
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2351 def SetSelection(*args
, **kwargs
):
2353 SetSelection(int sel)
2355 Set the current selected item to sel
2357 return _windows
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2360 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2361 def __init__(self
, this
):
2363 if not hasattr(self
,"thisown"): self
.thisown
= 0
2364 self
.__class
__ = SingleChoiceDialog
2365 _windows
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2367 class TextEntryDialog(Dialog
):
2368 """A dialog with text control, [ok] and [cancel] buttons"""
2370 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2371 def __init__(self
, *args
, **kwargs
):
2373 __init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
2374 String defaultValue=EmptyString,
2375 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2377 Constructor. Use ShowModal method to show the dialog.
2379 newobj
= _windows
.new_TextEntryDialog(*args
, **kwargs
)
2380 self
.this
= newobj
.this
2383 self
._setOORInfo
(self
)
2385 def GetValue(*args
, **kwargs
):
2387 GetValue() -> String
2389 Returns the text that the user has entered if the user has pressed OK,
2390 or the original value if the user has pressed Cancel.
2392 return _windows
.TextEntryDialog_GetValue(*args
, **kwargs
)
2394 def SetValue(*args
, **kwargs
):
2396 SetValue(String value)
2398 Sets the default text value.
2400 return _windows
.TextEntryDialog_SetValue(*args
, **kwargs
)
2403 class TextEntryDialogPtr(TextEntryDialog
):
2404 def __init__(self
, this
):
2406 if not hasattr(self
,"thisown"): self
.thisown
= 0
2407 self
.__class
__ = TextEntryDialog
2408 _windows
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2410 class FontData(core
.Object
):
2411 """This class holds a variety of information related to font dialogs."""
2413 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2414 def __init__(self
, *args
, **kwargs
):
2416 __init__() -> FontData
2418 This class holds a variety of information related to font dialogs.
2420 newobj
= _windows
.new_FontData(*args
, **kwargs
)
2421 self
.this
= newobj
.this
2424 def __del__(self
, destroy
=_windows
.delete_FontData
):
2427 if self
.thisown
: destroy(self
)
2430 def EnableEffects(*args
, **kwargs
):
2432 EnableEffects(bool enable)
2434 Enables or disables 'effects' under MS Windows only. This refers
2435 to the controls for manipulating colour, strikeout and underline
2436 properties. The default value is true.
2438 return _windows
.FontData_EnableEffects(*args
, **kwargs
)
2440 def GetAllowSymbols(*args
, **kwargs
):
2442 GetAllowSymbols() -> bool
2444 Under MS Windows, returns a flag determining whether symbol fonts can be
2445 selected. Has no effect on other platforms. The default value is true.
2447 return _windows
.FontData_GetAllowSymbols(*args
, **kwargs
)
2449 def GetColour(*args
, **kwargs
):
2451 GetColour() -> Colour
2453 Gets the colour associated with the font dialog. The default value is black.
2455 return _windows
.FontData_GetColour(*args
, **kwargs
)
2457 def GetChosenFont(*args
, **kwargs
):
2459 GetChosenFont() -> Font
2461 Gets the font chosen by the user.
2463 return _windows
.FontData_GetChosenFont(*args
, **kwargs
)
2465 def GetEnableEffects(*args
, **kwargs
):
2467 GetEnableEffects() -> bool
2469 Determines whether 'effects' are enabled under Windows.
2471 return _windows
.FontData_GetEnableEffects(*args
, **kwargs
)
2473 def GetInitialFont(*args
, **kwargs
):
2475 GetInitialFont() -> Font
2477 Gets the font that will be initially used by the font dialog. This should have
2478 previously been set by the application.
2480 return _windows
.FontData_GetInitialFont(*args
, **kwargs
)
2482 def GetShowHelp(*args
, **kwargs
):
2484 GetShowHelp() -> bool
2486 Returns true if the Help button will be shown (Windows only). The default
2489 return _windows
.FontData_GetShowHelp(*args
, **kwargs
)
2491 def SetAllowSymbols(*args
, **kwargs
):
2493 SetAllowSymbols(bool allowSymbols)
2495 Under MS Windows, determines whether symbol fonts can be selected. Has no
2496 effect on other platforms. The default value is true.
2498 return _windows
.FontData_SetAllowSymbols(*args
, **kwargs
)
2500 def SetChosenFont(*args
, **kwargs
):
2502 SetChosenFont(Font font)
2504 Sets the font that will be returned to the user (for internal use only).
2506 return _windows
.FontData_SetChosenFont(*args
, **kwargs
)
2508 def SetColour(*args
, **kwargs
):
2510 SetColour(Colour colour)
2512 Sets the colour that will be used for the font foreground colour. The default
2515 return _windows
.FontData_SetColour(*args
, **kwargs
)
2517 def SetInitialFont(*args
, **kwargs
):
2519 SetInitialFont(Font font)
2521 Sets the font that will be initially used by the font dialog.
2523 return _windows
.FontData_SetInitialFont(*args
, **kwargs
)
2525 def SetRange(*args
, **kwargs
):
2527 SetRange(int min, int max)
2529 Sets the valid range for the font point size (Windows only). The default is
2530 0, 0 (unrestricted range).
2532 return _windows
.FontData_SetRange(*args
, **kwargs
)
2534 def SetShowHelp(*args
, **kwargs
):
2536 SetShowHelp(bool showHelp)
2538 Determines whether the Help button will be displayed in the font dialog
2539 (Windows only). The default value is false.
2541 return _windows
.FontData_SetShowHelp(*args
, **kwargs
)
2544 class FontDataPtr(FontData
):
2545 def __init__(self
, this
):
2547 if not hasattr(self
,"thisown"): self
.thisown
= 0
2548 self
.__class
__ = FontData
2549 _windows
.FontData_swigregister(FontDataPtr
)
2551 class FontDialog(Dialog
):
2552 """This class represents the font chooser dialog."""
2554 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2555 def __init__(self
, *args
, **kwargs
):
2557 __init__(Window parent, FontData data) -> FontDialog
2559 Constructor. Pass a parent window and the FontData object to be
2560 used to initialize the dialog controls.
2562 newobj
= _windows
.new_FontDialog(*args
, **kwargs
)
2563 self
.this
= newobj
.this
2566 self
._setOORInfo
(self
)
2568 def GetFontData(*args
, **kwargs
):
2570 GetFontData() -> FontData
2572 Returns a reference to the internal FontData used by the FontDialog.
2574 return _windows
.FontDialog_GetFontData(*args
, **kwargs
)
2577 class FontDialogPtr(FontDialog
):
2578 def __init__(self
, this
):
2580 if not hasattr(self
,"thisown"): self
.thisown
= 0
2581 self
.__class
__ = FontDialog
2582 _windows
.FontDialog_swigregister(FontDialogPtr
)
2584 class MessageDialog(Dialog
):
2586 This class provides a dialog that shows a single or multi-line message, with
2587 a choice of OK, Yes, No and Cancel buttons.
2590 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2591 def __init__(self
, *args
, **kwargs
):
2593 __init__(Window parent, String message, String caption=MessageBoxCaptionStr,
2594 long style=wxOK|wxCANCEL|wxCENTRE,
2595 Point pos=DefaultPosition) -> MessageDialog
2597 This class provides a dialog that shows a single or multi-line message, with
2598 a choice of OK, Yes, No and Cancel buttons.
2600 newobj
= _windows
.new_MessageDialog(*args
, **kwargs
)
2601 self
.this
= newobj
.this
2604 self
._setOORInfo
(self
)
2607 class MessageDialogPtr(MessageDialog
):
2608 def __init__(self
, this
):
2610 if not hasattr(self
,"thisown"): self
.thisown
= 0
2611 self
.__class
__ = MessageDialog
2612 _windows
.MessageDialog_swigregister(MessageDialogPtr
)
2614 class ProgressDialog(Frame
):
2616 A dialog that shows a short message and a progress bar. Optionally, it can
2617 display an ABORT button.
2620 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2621 def __init__(self
, *args
, **kwargs
):
2623 __init__(String title, String message, int maximum=100, Window parent=None,
2624 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2626 Constructor. Creates the dialog, displays it and disables user input for other
2627 windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only.
2629 newobj
= _windows
.new_ProgressDialog(*args
, **kwargs
)
2630 self
.this
= newobj
.this
2633 self
._setOORInfo
(self
)
2635 def Update(*args
, **kwargs
):
2637 Update(int value, String newmsg=EmptyString) -> bool
2639 Updates the dialog, setting the progress bar to the new value and, if given
2640 changes the message above it. Returns true unless the Cancel button has been
2643 If false is returned, the application can either immediately destroy the
2644 dialog or ask the user for the confirmation and if the abort is not confirmed
2645 the dialog may be resumed with Resume function.
2647 return _windows
.ProgressDialog_Update(*args
, **kwargs
)
2649 def Resume(*args
, **kwargs
):
2653 Can be used to continue with the dialog, after the user had chosen to abort.
2655 return _windows
.ProgressDialog_Resume(*args
, **kwargs
)
2658 class ProgressDialogPtr(ProgressDialog
):
2659 def __init__(self
, this
):
2661 if not hasattr(self
,"thisown"): self
.thisown
= 0
2662 self
.__class
__ = ProgressDialog
2663 _windows
.ProgressDialog_swigregister(ProgressDialogPtr
)
2665 FR_DOWN
= _windows
.FR_DOWN
2666 FR_WHOLEWORD
= _windows
.FR_WHOLEWORD
2667 FR_MATCHCASE
= _windows
.FR_MATCHCASE
2668 FR_REPLACEDIALOG
= _windows
.FR_REPLACEDIALOG
2669 FR_NOUPDOWN
= _windows
.FR_NOUPDOWN
2670 FR_NOMATCHCASE
= _windows
.FR_NOMATCHCASE
2671 FR_NOWHOLEWORD
= _windows
.FR_NOWHOLEWORD
2672 wxEVT_COMMAND_FIND
= _windows
.wxEVT_COMMAND_FIND
2673 wxEVT_COMMAND_FIND_NEXT
= _windows
.wxEVT_COMMAND_FIND_NEXT
2674 wxEVT_COMMAND_FIND_REPLACE
= _windows
.wxEVT_COMMAND_FIND_REPLACE
2675 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows
.wxEVT_COMMAND_FIND_REPLACE_ALL
2676 wxEVT_COMMAND_FIND_CLOSE
= _windows
.wxEVT_COMMAND_FIND_CLOSE
2677 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2678 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2679 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2680 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2681 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2683 # For backwards compatibility. Should they be removed?
2684 EVT_COMMAND_FIND
= EVT_FIND
2685 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2686 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2687 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2688 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2690 class FindDialogEvent(core
.CommandEvent
):
2691 """Events for the FindReplaceDialog"""
2693 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2694 def __init__(self
, *args
, **kwargs
):
2696 __init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2698 Events for the FindReplaceDialog
2700 newobj
= _windows
.new_FindDialogEvent(*args
, **kwargs
)
2701 self
.this
= newobj
.this
2704 def GetFlags(*args
, **kwargs
):
2708 Get the currently selected flags: this is the combination of
2709 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2711 return _windows
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2713 def GetFindString(*args
, **kwargs
):
2715 GetFindString() -> String
2717 Return the string to find (never empty).
2719 return _windows
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2721 def GetReplaceString(*args
, **kwargs
):
2723 GetReplaceString() -> String
2725 Return the string to replace the search string with (only
2726 for replace and replace all events).
2728 return _windows
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2730 def GetDialog(*args
, **kwargs
):
2732 GetDialog() -> FindReplaceDialog
2734 Return the pointer to the dialog which generated this event.
2736 return _windows
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2738 def SetFlags(*args
, **kwargs
):
2739 """SetFlags(int flags)"""
2740 return _windows
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2742 def SetFindString(*args
, **kwargs
):
2743 """SetFindString(String str)"""
2744 return _windows
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2746 def SetReplaceString(*args
, **kwargs
):
2747 """SetReplaceString(String str)"""
2748 return _windows
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2751 class FindDialogEventPtr(FindDialogEvent
):
2752 def __init__(self
, this
):
2754 if not hasattr(self
,"thisown"): self
.thisown
= 0
2755 self
.__class
__ = FindDialogEvent
2756 _windows
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2758 class FindReplaceData(core
.Object
):
2760 FindReplaceData holds the data for FindReplaceDialog. It is used to initialize
2761 the dialog with the default values and will keep the last values from the
2762 dialog when it is closed. It is also updated each time a wxFindDialogEvent is
2763 generated so instead of using the wxFindDialogEvent methods you can also
2764 directly query this object.
2766 Note that all SetXXX() methods may only be called before showing the dialog
2767 and calling them has no effect later.
2770 wxFR_DOWN: downward search/replace selected (otherwise, upwards)
2772 wxFR_WHOLEWORD: whole word search/replace selected
2774 wxFR_MATCHCASE: case sensitive search/replace selected (otherwise,
2779 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2780 def __init__(self
, *args
, **kwargs
):
2782 __init__(int flags=0) -> FindReplaceData
2784 Constuctor initializes the flags to default value (0).
2786 newobj
= _windows
.new_FindReplaceData(*args
, **kwargs
)
2787 self
.this
= newobj
.this
2790 def __del__(self
, destroy
=_windows
.delete_FindReplaceData
):
2793 if self
.thisown
: destroy(self
)
2796 def GetFindString(*args
, **kwargs
):
2798 GetFindString() -> String
2800 Get the string to find.
2802 return _windows
.FindReplaceData_GetFindString(*args
, **kwargs
)
2804 def GetReplaceString(*args
, **kwargs
):
2806 GetReplaceString() -> String
2808 Get the replacement string.
2810 return _windows
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2812 def GetFlags(*args
, **kwargs
):
2816 Get the combination of flag values.
2818 return _windows
.FindReplaceData_GetFlags(*args
, **kwargs
)
2820 def SetFlags(*args
, **kwargs
):
2824 Set the flags to use to initialize the controls of the dialog.
2826 return _windows
.FindReplaceData_SetFlags(*args
, **kwargs
)
2828 def SetFindString(*args
, **kwargs
):
2830 SetFindString(String str)
2832 Set the string to find (used as initial value by the dialog).
2834 return _windows
.FindReplaceData_SetFindString(*args
, **kwargs
)
2836 def SetReplaceString(*args
, **kwargs
):
2838 SetReplaceString(String str)
2840 Set the replacement string (used as initial value by the dialog).
2842 return _windows
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2845 class FindReplaceDataPtr(FindReplaceData
):
2846 def __init__(self
, this
):
2848 if not hasattr(self
,"thisown"): self
.thisown
= 0
2849 self
.__class
__ = FindReplaceData
2850 _windows
.FindReplaceData_swigregister(FindReplaceDataPtr
)
2852 class FindReplaceDialog(Dialog
):
2854 FindReplaceDialog is a standard modeless dialog which is used to allow the
2855 user to search for some text (and possibly replace it with something
2856 else). The actual searching is supposed to be done in the owner window which
2857 is the parent of this dialog. Note that it means that unlike for the other
2858 standard dialogs this one must have a parent window. Also note that there is
2859 no way to use this dialog in a modal way; it is always, by design and
2860 implementation, modeless.
2863 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2864 def __init__(self
, *args
, **kwargs
):
2866 __init__(Window parent, FindReplaceData data, String title,
2867 int style=0) -> FindReplaceDialog
2869 Create a FindReplaceDialog. The parent and data parameters must be
2870 non-None. Use Show to display the dialog.
2872 newobj
= _windows
.new_FindReplaceDialog(*args
, **kwargs
)
2873 self
.this
= newobj
.this
2876 self
._setOORInfo
(self
)
2878 def Create(*args
, **kwargs
):
2880 Create(Window parent, FindReplaceData data, String title,
2881 int style=0) -> bool
2883 Create the dialog, for 2-phase create.
2885 return _windows
.FindReplaceDialog_Create(*args
, **kwargs
)
2887 def GetData(*args
, **kwargs
):
2889 GetData() -> FindReplaceData
2891 Get the FindReplaceData object used by this dialog.
2893 return _windows
.FindReplaceDialog_GetData(*args
, **kwargs
)
2895 def SetData(*args
, **kwargs
):
2897 SetData(FindReplaceData data)
2899 Set the FindReplaceData object used by this dialog.
2901 return _windows
.FindReplaceDialog_SetData(*args
, **kwargs
)
2904 class FindReplaceDialogPtr(FindReplaceDialog
):
2905 def __init__(self
, this
):
2907 if not hasattr(self
,"thisown"): self
.thisown
= 0
2908 self
.__class
__ = FindReplaceDialog
2909 _windows
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
2911 def PreFindReplaceDialog(*args
, **kwargs
):
2913 PreFindReplaceDialog() -> FindReplaceDialog
2915 Precreate a FindReplaceDialog for 2-phase creation
2917 val
= _windows
.new_PreFindReplaceDialog(*args
, **kwargs
)
2921 #---------------------------------------------------------------------------
2923 IDM_WINDOWTILE
= _windows
.IDM_WINDOWTILE
2924 IDM_WINDOWTILEHOR
= _windows
.IDM_WINDOWTILEHOR
2925 IDM_WINDOWCASCADE
= _windows
.IDM_WINDOWCASCADE
2926 IDM_WINDOWICONS
= _windows
.IDM_WINDOWICONS
2927 IDM_WINDOWNEXT
= _windows
.IDM_WINDOWNEXT
2928 IDM_WINDOWTILEVERT
= _windows
.IDM_WINDOWTILEVERT
2929 FIRST_MDI_CHILD
= _windows
.FIRST_MDI_CHILD
2930 LAST_MDI_CHILD
= _windows
.LAST_MDI_CHILD
2931 class MDIParentFrame(Frame
):
2933 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2934 def __init__(self
, *args
, **kwargs
):
2936 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
2937 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2938 String name=FrameNameStr) -> MDIParentFrame
2940 newobj
= _windows
.new_MDIParentFrame(*args
, **kwargs
)
2941 self
.this
= newobj
.this
2944 self
._setOORInfo
(self
)
2946 def Create(*args
, **kwargs
):
2948 Create(Window parent, int id, String title, Point pos=DefaultPosition,
2949 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2950 String name=FrameNameStr) -> bool
2952 return _windows
.MDIParentFrame_Create(*args
, **kwargs
)
2954 def ActivateNext(*args
, **kwargs
):
2955 """ActivateNext()"""
2956 return _windows
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
2958 def ActivatePrevious(*args
, **kwargs
):
2959 """ActivatePrevious()"""
2960 return _windows
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
2962 def ArrangeIcons(*args
, **kwargs
):
2963 """ArrangeIcons()"""
2964 return _windows
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
2966 def Cascade(*args
, **kwargs
):
2968 return _windows
.MDIParentFrame_Cascade(*args
, **kwargs
)
2970 def GetActiveChild(*args
, **kwargs
):
2971 """GetActiveChild() -> MDIChildFrame"""
2972 return _windows
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
2974 def GetClientWindow(*args
, **kwargs
):
2975 """GetClientWindow() -> MDIClientWindow"""
2976 return _windows
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
2978 def GetToolBar(*args
, **kwargs
):
2979 """GetToolBar() -> Window"""
2980 return _windows
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
2982 def GetWindowMenu(*args
, **kwargs
):
2983 """GetWindowMenu() -> Menu"""
2984 return _windows
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
2986 def SetWindowMenu(*args
, **kwargs
):
2987 """SetWindowMenu(Menu menu)"""
2988 return _windows
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
2990 def SetToolBar(*args
, **kwargs
):
2991 """SetToolBar(wxToolBar toolbar)"""
2992 return _windows
.MDIParentFrame_SetToolBar(*args
, **kwargs
)
2994 def Tile(*args
, **kwargs
):
2996 return _windows
.MDIParentFrame_Tile(*args
, **kwargs
)
2999 class MDIParentFramePtr(MDIParentFrame
):
3000 def __init__(self
, this
):
3002 if not hasattr(self
,"thisown"): self
.thisown
= 0
3003 self
.__class
__ = MDIParentFrame
3004 _windows
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3006 def PreMDIParentFrame(*args
, **kwargs
):
3007 """PreMDIParentFrame() -> MDIParentFrame"""
3008 val
= _windows
.new_PreMDIParentFrame(*args
, **kwargs
)
3012 class MDIChildFrame(Frame
):
3014 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3015 def __init__(self
, *args
, **kwargs
):
3017 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3018 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3019 String name=FrameNameStr) -> MDIChildFrame
3021 newobj
= _windows
.new_MDIChildFrame(*args
, **kwargs
)
3022 self
.this
= newobj
.this
3025 self
._setOORInfo
(self
)
3027 def Create(*args
, **kwargs
):
3029 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3030 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3031 String name=FrameNameStr) -> bool
3033 return _windows
.MDIChildFrame_Create(*args
, **kwargs
)
3035 def Activate(*args
, **kwargs
):
3037 return _windows
.MDIChildFrame_Activate(*args
, **kwargs
)
3039 def Maximize(*args
, **kwargs
):
3040 """Maximize(bool maximize)"""
3041 return _windows
.MDIChildFrame_Maximize(*args
, **kwargs
)
3043 def Restore(*args
, **kwargs
):
3045 return _windows
.MDIChildFrame_Restore(*args
, **kwargs
)
3048 class MDIChildFramePtr(MDIChildFrame
):
3049 def __init__(self
, this
):
3051 if not hasattr(self
,"thisown"): self
.thisown
= 0
3052 self
.__class
__ = MDIChildFrame
3053 _windows
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3055 def PreMDIChildFrame(*args
, **kwargs
):
3056 """PreMDIChildFrame() -> MDIChildFrame"""
3057 val
= _windows
.new_PreMDIChildFrame(*args
, **kwargs
)
3061 class MDIClientWindow(core
.Window
):
3063 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3064 def __init__(self
, *args
, **kwargs
):
3065 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3066 newobj
= _windows
.new_MDIClientWindow(*args
, **kwargs
)
3067 self
.this
= newobj
.this
3070 self
._setOORInfo
(self
)
3072 def Create(*args
, **kwargs
):
3073 """Create(MDIParentFrame parent, long style=0) -> bool"""
3074 return _windows
.MDIClientWindow_Create(*args
, **kwargs
)
3077 class MDIClientWindowPtr(MDIClientWindow
):
3078 def __init__(self
, this
):
3080 if not hasattr(self
,"thisown"): self
.thisown
= 0
3081 self
.__class
__ = MDIClientWindow
3082 _windows
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3084 def PreMDIClientWindow(*args
, **kwargs
):
3085 """PreMDIClientWindow() -> MDIClientWindow"""
3086 val
= _windows
.new_PreMDIClientWindow(*args
, **kwargs
)
3090 #---------------------------------------------------------------------------
3092 class PyWindow(core
.Window
):
3094 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3095 def __init__(self
, *args
, **kwargs
):
3097 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3098 long style=0, String name=PanelNameStr) -> PyWindow
3100 newobj
= _windows
.new_PyWindow(*args
, **kwargs
)
3101 self
.this
= newobj
.this
3104 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3106 def _setCallbackInfo(*args
, **kwargs
):
3107 """_setCallbackInfo(PyObject self, PyObject _class)"""
3108 return _windows
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3110 def base_DoMoveWindow(*args
, **kwargs
):
3111 """base_DoMoveWindow(int x, int y, int width, int height)"""
3112 return _windows
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3114 def base_DoSetSize(*args
, **kwargs
):
3115 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3116 return _windows
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3118 def base_DoSetClientSize(*args
, **kwargs
):
3119 """base_DoSetClientSize(int width, int height)"""
3120 return _windows
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3122 def base_DoSetVirtualSize(*args
, **kwargs
):
3123 """base_DoSetVirtualSize(int x, int y)"""
3124 return _windows
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3126 def base_DoGetSize(*args
, **kwargs
):
3127 """base_DoGetSize() -> (width, height)"""
3128 return _windows
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3130 def base_DoGetClientSize(*args
, **kwargs
):
3131 """base_DoGetClientSize() -> (width, height)"""
3132 return _windows
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3134 def base_DoGetPosition(*args
, **kwargs
):
3135 """base_DoGetPosition() -> (x,y)"""
3136 return _windows
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3138 def base_DoGetVirtualSize(*args
, **kwargs
):
3139 """base_DoGetVirtualSize() -> Size"""
3140 return _windows
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3142 def base_DoGetBestSize(*args
, **kwargs
):
3143 """base_DoGetBestSize() -> Size"""
3144 return _windows
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3146 def base_InitDialog(*args
, **kwargs
):
3147 """base_InitDialog()"""
3148 return _windows
.PyWindow_base_InitDialog(*args
, **kwargs
)
3150 def base_TransferDataToWindow(*args
, **kwargs
):
3151 """base_TransferDataToWindow() -> bool"""
3152 return _windows
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3154 def base_TransferDataFromWindow(*args
, **kwargs
):
3155 """base_TransferDataFromWindow() -> bool"""
3156 return _windows
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3158 def base_Validate(*args
, **kwargs
):
3159 """base_Validate() -> bool"""
3160 return _windows
.PyWindow_base_Validate(*args
, **kwargs
)
3162 def base_AcceptsFocus(*args
, **kwargs
):
3163 """base_AcceptsFocus() -> bool"""
3164 return _windows
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3166 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3167 """base_AcceptsFocusFromKeyboard() -> bool"""
3168 return _windows
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3170 def base_GetMaxSize(*args
, **kwargs
):
3171 """base_GetMaxSize() -> Size"""
3172 return _windows
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3174 def base_AddChild(*args
, **kwargs
):
3175 """base_AddChild(Window child)"""
3176 return _windows
.PyWindow_base_AddChild(*args
, **kwargs
)
3178 def base_RemoveChild(*args
, **kwargs
):
3179 """base_RemoveChild(Window child)"""
3180 return _windows
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3182 def base_ShouldInheritColours(*args
, **kwargs
):
3183 """base_ShouldInheritColours() -> bool"""
3184 return _windows
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3186 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3187 """base_ApplyParentThemeBackground(Colour c)"""
3188 return _windows
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3191 class PyWindowPtr(PyWindow
):
3192 def __init__(self
, this
):
3194 if not hasattr(self
,"thisown"): self
.thisown
= 0
3195 self
.__class
__ = PyWindow
3196 _windows
.PyWindow_swigregister(PyWindowPtr
)
3198 def PrePyWindow(*args
, **kwargs
):
3199 """PrePyWindow() -> PyWindow"""
3200 val
= _windows
.new_PrePyWindow(*args
, **kwargs
)
3204 class PyPanel(Panel
):
3206 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3207 def __init__(self
, *args
, **kwargs
):
3209 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3210 long style=0, String name=PanelNameStr) -> PyPanel
3212 newobj
= _windows
.new_PyPanel(*args
, **kwargs
)
3213 self
.this
= newobj
.this
3216 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3218 def _setCallbackInfo(*args
, **kwargs
):
3219 """_setCallbackInfo(PyObject self, PyObject _class)"""
3220 return _windows
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3222 def base_DoMoveWindow(*args
, **kwargs
):
3223 """base_DoMoveWindow(int x, int y, int width, int height)"""
3224 return _windows
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3226 def base_DoSetSize(*args
, **kwargs
):
3227 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3228 return _windows
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3230 def base_DoSetClientSize(*args
, **kwargs
):
3231 """base_DoSetClientSize(int width, int height)"""
3232 return _windows
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3234 def base_DoSetVirtualSize(*args
, **kwargs
):
3235 """base_DoSetVirtualSize(int x, int y)"""
3236 return _windows
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3238 def base_DoGetSize(*args
, **kwargs
):
3239 """base_DoGetSize() -> (width, height)"""
3240 return _windows
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3242 def base_DoGetClientSize(*args
, **kwargs
):
3243 """base_DoGetClientSize() -> (width, height)"""
3244 return _windows
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3246 def base_DoGetPosition(*args
, **kwargs
):
3247 """base_DoGetPosition() -> (x,y)"""
3248 return _windows
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3250 def base_DoGetVirtualSize(*args
, **kwargs
):
3251 """base_DoGetVirtualSize() -> Size"""
3252 return _windows
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3254 def base_DoGetBestSize(*args
, **kwargs
):
3255 """base_DoGetBestSize() -> Size"""
3256 return _windows
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3258 def base_InitDialog(*args
, **kwargs
):
3259 """base_InitDialog()"""
3260 return _windows
.PyPanel_base_InitDialog(*args
, **kwargs
)
3262 def base_TransferDataToWindow(*args
, **kwargs
):
3263 """base_TransferDataToWindow() -> bool"""
3264 return _windows
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3266 def base_TransferDataFromWindow(*args
, **kwargs
):
3267 """base_TransferDataFromWindow() -> bool"""
3268 return _windows
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3270 def base_Validate(*args
, **kwargs
):
3271 """base_Validate() -> bool"""
3272 return _windows
.PyPanel_base_Validate(*args
, **kwargs
)
3274 def base_AcceptsFocus(*args
, **kwargs
):
3275 """base_AcceptsFocus() -> bool"""
3276 return _windows
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3278 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3279 """base_AcceptsFocusFromKeyboard() -> bool"""
3280 return _windows
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3282 def base_GetMaxSize(*args
, **kwargs
):
3283 """base_GetMaxSize() -> Size"""
3284 return _windows
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3286 def base_AddChild(*args
, **kwargs
):
3287 """base_AddChild(Window child)"""
3288 return _windows
.PyPanel_base_AddChild(*args
, **kwargs
)
3290 def base_RemoveChild(*args
, **kwargs
):
3291 """base_RemoveChild(Window child)"""
3292 return _windows
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3294 def base_ShouldInheritColours(*args
, **kwargs
):
3295 """base_ShouldInheritColours() -> bool"""
3296 return _windows
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3298 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3299 """base_ApplyParentThemeBackground(Colour c)"""
3300 return _windows
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3303 class PyPanelPtr(PyPanel
):
3304 def __init__(self
, this
):
3306 if not hasattr(self
,"thisown"): self
.thisown
= 0
3307 self
.__class
__ = PyPanel
3308 _windows
.PyPanel_swigregister(PyPanelPtr
)
3310 def PrePyPanel(*args
, **kwargs
):
3311 """PrePyPanel() -> PyPanel"""
3312 val
= _windows
.new_PrePyPanel(*args
, **kwargs
)
3316 class PyScrolledWindow(ScrolledWindow
):
3318 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3319 def __init__(self
, *args
, **kwargs
):
3321 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3322 long style=0, String name=PanelNameStr) -> PyScrolledWindow
3324 newobj
= _windows
.new_PyScrolledWindow(*args
, **kwargs
)
3325 self
.this
= newobj
.this
3328 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3330 def _setCallbackInfo(*args
, **kwargs
):
3331 """_setCallbackInfo(PyObject self, PyObject _class)"""
3332 return _windows
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3334 def base_DoMoveWindow(*args
, **kwargs
):
3335 """base_DoMoveWindow(int x, int y, int width, int height)"""
3336 return _windows
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3338 def base_DoSetSize(*args
, **kwargs
):
3339 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3340 return _windows
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3342 def base_DoSetClientSize(*args
, **kwargs
):
3343 """base_DoSetClientSize(int width, int height)"""
3344 return _windows
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3346 def base_DoSetVirtualSize(*args
, **kwargs
):
3347 """base_DoSetVirtualSize(int x, int y)"""
3348 return _windows
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3350 def base_DoGetSize(*args
, **kwargs
):
3351 """base_DoGetSize() -> (width, height)"""
3352 return _windows
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3354 def base_DoGetClientSize(*args
, **kwargs
):
3355 """base_DoGetClientSize() -> (width, height)"""
3356 return _windows
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3358 def base_DoGetPosition(*args
, **kwargs
):
3359 """base_DoGetPosition() -> (x,y)"""
3360 return _windows
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3362 def base_DoGetVirtualSize(*args
, **kwargs
):
3363 """base_DoGetVirtualSize() -> Size"""
3364 return _windows
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3366 def base_DoGetBestSize(*args
, **kwargs
):
3367 """base_DoGetBestSize() -> Size"""
3368 return _windows
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3370 def base_InitDialog(*args
, **kwargs
):
3371 """base_InitDialog()"""
3372 return _windows
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3374 def base_TransferDataToWindow(*args
, **kwargs
):
3375 """base_TransferDataToWindow() -> bool"""
3376 return _windows
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3378 def base_TransferDataFromWindow(*args
, **kwargs
):
3379 """base_TransferDataFromWindow() -> bool"""
3380 return _windows
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3382 def base_Validate(*args
, **kwargs
):
3383 """base_Validate() -> bool"""
3384 return _windows
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3386 def base_AcceptsFocus(*args
, **kwargs
):
3387 """base_AcceptsFocus() -> bool"""
3388 return _windows
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3390 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3391 """base_AcceptsFocusFromKeyboard() -> bool"""
3392 return _windows
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3394 def base_GetMaxSize(*args
, **kwargs
):
3395 """base_GetMaxSize() -> Size"""
3396 return _windows
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3398 def base_AddChild(*args
, **kwargs
):
3399 """base_AddChild(Window child)"""
3400 return _windows
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3402 def base_RemoveChild(*args
, **kwargs
):
3403 """base_RemoveChild(Window child)"""
3404 return _windows
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3406 def base_ShouldInheritColours(*args
, **kwargs
):
3407 """base_ShouldInheritColours() -> bool"""
3408 return _windows
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3410 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3411 """base_ApplyParentThemeBackground(Colour c)"""
3412 return _windows
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3415 class PyScrolledWindowPtr(PyScrolledWindow
):
3416 def __init__(self
, this
):
3418 if not hasattr(self
,"thisown"): self
.thisown
= 0
3419 self
.__class
__ = PyScrolledWindow
3420 _windows
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3422 def PrePyScrolledWindow(*args
, **kwargs
):
3423 """PrePyScrolledWindow() -> PyScrolledWindow"""
3424 val
= _windows
.new_PrePyScrolledWindow(*args
, **kwargs
)
3428 #---------------------------------------------------------------------------
3430 PRINT_MODE_NONE
= _windows
.PRINT_MODE_NONE
3431 PRINT_MODE_PREVIEW
= _windows
.PRINT_MODE_PREVIEW
3432 PRINT_MODE_FILE
= _windows
.PRINT_MODE_FILE
3433 PRINT_MODE_PRINTER
= _windows
.PRINT_MODE_PRINTER
3434 PRINT_MODE_STREAM
= _windows
.PRINT_MODE_STREAM
3435 class PrintData(core
.Object
):
3437 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3438 def __init__(self
, *args
, **kwargs
):
3439 """__init__() -> PrintData"""
3440 newobj
= _windows
.new_PrintData(*args
, **kwargs
)
3441 self
.this
= newobj
.this
3444 def __del__(self
, destroy
=_windows
.delete_PrintData
):
3447 if self
.thisown
: destroy(self
)
3450 def GetNoCopies(*args
, **kwargs
):
3451 """GetNoCopies() -> int"""
3452 return _windows
.PrintData_GetNoCopies(*args
, **kwargs
)
3454 def GetCollate(*args
, **kwargs
):
3455 """GetCollate() -> bool"""
3456 return _windows
.PrintData_GetCollate(*args
, **kwargs
)
3458 def GetOrientation(*args
, **kwargs
):
3459 """GetOrientation() -> int"""
3460 return _windows
.PrintData_GetOrientation(*args
, **kwargs
)
3462 def Ok(*args
, **kwargs
):
3464 return _windows
.PrintData_Ok(*args
, **kwargs
)
3466 def GetPrinterName(*args
, **kwargs
):
3467 """GetPrinterName() -> String"""
3468 return _windows
.PrintData_GetPrinterName(*args
, **kwargs
)
3470 def GetColour(*args
, **kwargs
):
3471 """GetColour() -> bool"""
3472 return _windows
.PrintData_GetColour(*args
, **kwargs
)
3474 def GetDuplex(*args
, **kwargs
):
3475 """GetDuplex() -> int"""
3476 return _windows
.PrintData_GetDuplex(*args
, **kwargs
)
3478 def GetPaperId(*args
, **kwargs
):
3479 """GetPaperId() -> int"""
3480 return _windows
.PrintData_GetPaperId(*args
, **kwargs
)
3482 def GetPaperSize(*args
, **kwargs
):
3483 """GetPaperSize() -> Size"""
3484 return _windows
.PrintData_GetPaperSize(*args
, **kwargs
)
3486 def GetQuality(*args
, **kwargs
):
3487 """GetQuality() -> int"""
3488 return _windows
.PrintData_GetQuality(*args
, **kwargs
)
3490 def SetNoCopies(*args
, **kwargs
):
3491 """SetNoCopies(int v)"""
3492 return _windows
.PrintData_SetNoCopies(*args
, **kwargs
)
3494 def SetCollate(*args
, **kwargs
):
3495 """SetCollate(bool flag)"""
3496 return _windows
.PrintData_SetCollate(*args
, **kwargs
)
3498 def SetOrientation(*args
, **kwargs
):
3499 """SetOrientation(int orient)"""
3500 return _windows
.PrintData_SetOrientation(*args
, **kwargs
)
3502 def SetPrinterName(*args
, **kwargs
):
3503 """SetPrinterName(String name)"""
3504 return _windows
.PrintData_SetPrinterName(*args
, **kwargs
)
3506 def SetColour(*args
, **kwargs
):
3507 """SetColour(bool colour)"""
3508 return _windows
.PrintData_SetColour(*args
, **kwargs
)
3510 def SetDuplex(*args
, **kwargs
):
3511 """SetDuplex(int duplex)"""
3512 return _windows
.PrintData_SetDuplex(*args
, **kwargs
)
3514 def SetPaperId(*args
, **kwargs
):
3515 """SetPaperId(int sizeId)"""
3516 return _windows
.PrintData_SetPaperId(*args
, **kwargs
)
3518 def SetPaperSize(*args
, **kwargs
):
3519 """SetPaperSize(Size sz)"""
3520 return _windows
.PrintData_SetPaperSize(*args
, **kwargs
)
3522 def SetQuality(*args
, **kwargs
):
3523 """SetQuality(int quality)"""
3524 return _windows
.PrintData_SetQuality(*args
, **kwargs
)
3526 def GetPrinterCommand(*args
, **kwargs
):
3527 """GetPrinterCommand() -> String"""
3528 return _windows
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3530 def GetPrinterOptions(*args
, **kwargs
):
3531 """GetPrinterOptions() -> String"""
3532 return _windows
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3534 def GetPreviewCommand(*args
, **kwargs
):
3535 """GetPreviewCommand() -> String"""
3536 return _windows
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3538 def GetFilename(*args
, **kwargs
):
3539 """GetFilename() -> String"""
3540 return _windows
.PrintData_GetFilename(*args
, **kwargs
)
3542 def GetFontMetricPath(*args
, **kwargs
):
3543 """GetFontMetricPath() -> String"""
3544 return _windows
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3546 def GetPrinterScaleX(*args
, **kwargs
):
3547 """GetPrinterScaleX() -> double"""
3548 return _windows
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3550 def GetPrinterScaleY(*args
, **kwargs
):
3551 """GetPrinterScaleY() -> double"""
3552 return _windows
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3554 def GetPrinterTranslateX(*args
, **kwargs
):
3555 """GetPrinterTranslateX() -> long"""
3556 return _windows
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3558 def GetPrinterTranslateY(*args
, **kwargs
):
3559 """GetPrinterTranslateY() -> long"""
3560 return _windows
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3562 def GetPrintMode(*args
, **kwargs
):
3563 """GetPrintMode() -> int"""
3564 return _windows
.PrintData_GetPrintMode(*args
, **kwargs
)
3566 def SetPrinterCommand(*args
, **kwargs
):
3567 """SetPrinterCommand(String command)"""
3568 return _windows
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3570 def SetPrinterOptions(*args
, **kwargs
):
3571 """SetPrinterOptions(String options)"""
3572 return _windows
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3574 def SetPreviewCommand(*args
, **kwargs
):
3575 """SetPreviewCommand(String command)"""
3576 return _windows
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3578 def SetFilename(*args
, **kwargs
):
3579 """SetFilename(String filename)"""
3580 return _windows
.PrintData_SetFilename(*args
, **kwargs
)
3582 def SetFontMetricPath(*args
, **kwargs
):
3583 """SetFontMetricPath(String path)"""
3584 return _windows
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3586 def SetPrinterScaleX(*args
, **kwargs
):
3587 """SetPrinterScaleX(double x)"""
3588 return _windows
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3590 def SetPrinterScaleY(*args
, **kwargs
):
3591 """SetPrinterScaleY(double y)"""
3592 return _windows
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3594 def SetPrinterScaling(*args
, **kwargs
):
3595 """SetPrinterScaling(double x, double y)"""
3596 return _windows
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3598 def SetPrinterTranslateX(*args
, **kwargs
):
3599 """SetPrinterTranslateX(long x)"""
3600 return _windows
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3602 def SetPrinterTranslateY(*args
, **kwargs
):
3603 """SetPrinterTranslateY(long y)"""
3604 return _windows
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3606 def SetPrinterTranslation(*args
, **kwargs
):
3607 """SetPrinterTranslation(long x, long y)"""
3608 return _windows
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3610 def SetPrintMode(*args
, **kwargs
):
3611 """SetPrintMode(int printMode)"""
3612 return _windows
.PrintData_SetPrintMode(*args
, **kwargs
)
3614 def GetOutputStream(*args
, **kwargs
):
3615 """GetOutputStream() -> OutputStream"""
3616 return _windows
.PrintData_GetOutputStream(*args
, **kwargs
)
3618 def SetOutputStream(*args
, **kwargs
):
3619 """SetOutputStream(OutputStream outputstream)"""
3620 return _windows
.PrintData_SetOutputStream(*args
, **kwargs
)
3622 def __nonzero__(self
): return self
.Ok()
3624 class PrintDataPtr(PrintData
):
3625 def __init__(self
, this
):
3627 if not hasattr(self
,"thisown"): self
.thisown
= 0
3628 self
.__class
__ = PrintData
3629 _windows
.PrintData_swigregister(PrintDataPtr
)
3630 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3631 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3633 class PageSetupDialogData(core
.Object
):
3635 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3636 def __init__(self
, *args
, **kwargs
):
3637 """__init__() -> PageSetupDialogData"""
3638 newobj
= _windows
.new_PageSetupDialogData(*args
, **kwargs
)
3639 self
.this
= newobj
.this
3642 def __del__(self
, destroy
=_windows
.delete_PageSetupDialogData
):
3645 if self
.thisown
: destroy(self
)
3648 def EnableHelp(*args
, **kwargs
):
3649 """EnableHelp(bool flag)"""
3650 return _windows
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3652 def EnableMargins(*args
, **kwargs
):
3653 """EnableMargins(bool flag)"""
3654 return _windows
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3656 def EnableOrientation(*args
, **kwargs
):
3657 """EnableOrientation(bool flag)"""
3658 return _windows
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3660 def EnablePaper(*args
, **kwargs
):
3661 """EnablePaper(bool flag)"""
3662 return _windows
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3664 def EnablePrinter(*args
, **kwargs
):
3665 """EnablePrinter(bool flag)"""
3666 return _windows
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3668 def GetDefaultMinMargins(*args
, **kwargs
):
3669 """GetDefaultMinMargins() -> bool"""
3670 return _windows
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3672 def GetEnableMargins(*args
, **kwargs
):
3673 """GetEnableMargins() -> bool"""
3674 return _windows
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3676 def GetEnableOrientation(*args
, **kwargs
):
3677 """GetEnableOrientation() -> bool"""
3678 return _windows
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3680 def GetEnablePaper(*args
, **kwargs
):
3681 """GetEnablePaper() -> bool"""
3682 return _windows
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3684 def GetEnablePrinter(*args
, **kwargs
):
3685 """GetEnablePrinter() -> bool"""
3686 return _windows
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3688 def GetEnableHelp(*args
, **kwargs
):
3689 """GetEnableHelp() -> bool"""
3690 return _windows
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3692 def GetDefaultInfo(*args
, **kwargs
):
3693 """GetDefaultInfo() -> bool"""
3694 return _windows
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3696 def GetMarginTopLeft(*args
, **kwargs
):
3697 """GetMarginTopLeft() -> Point"""
3698 return _windows
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3700 def GetMarginBottomRight(*args
, **kwargs
):
3701 """GetMarginBottomRight() -> Point"""
3702 return _windows
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3704 def GetMinMarginTopLeft(*args
, **kwargs
):
3705 """GetMinMarginTopLeft() -> Point"""
3706 return _windows
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3708 def GetMinMarginBottomRight(*args
, **kwargs
):
3709 """GetMinMarginBottomRight() -> Point"""
3710 return _windows
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3712 def GetPaperId(*args
, **kwargs
):
3713 """GetPaperId() -> int"""
3714 return _windows
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3716 def GetPaperSize(*args
, **kwargs
):
3717 """GetPaperSize() -> Size"""
3718 return _windows
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3720 def GetPrintData(*args
, **kwargs
):
3721 """GetPrintData() -> PrintData"""
3722 return _windows
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3724 def Ok(*args
, **kwargs
):
3726 return _windows
.PageSetupDialogData_Ok(*args
, **kwargs
)
3728 def SetDefaultInfo(*args
, **kwargs
):
3729 """SetDefaultInfo(bool flag)"""
3730 return _windows
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3732 def SetDefaultMinMargins(*args
, **kwargs
):
3733 """SetDefaultMinMargins(bool flag)"""
3734 return _windows
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3736 def SetMarginTopLeft(*args
, **kwargs
):
3737 """SetMarginTopLeft(Point pt)"""
3738 return _windows
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3740 def SetMarginBottomRight(*args
, **kwargs
):
3741 """SetMarginBottomRight(Point pt)"""
3742 return _windows
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3744 def SetMinMarginTopLeft(*args
, **kwargs
):
3745 """SetMinMarginTopLeft(Point pt)"""
3746 return _windows
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3748 def SetMinMarginBottomRight(*args
, **kwargs
):
3749 """SetMinMarginBottomRight(Point pt)"""
3750 return _windows
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3752 def SetPaperId(*args
, **kwargs
):
3753 """SetPaperId(int id)"""
3754 return _windows
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3756 def SetPaperSize(*args
, **kwargs
):
3757 """SetPaperSize(Size size)"""
3758 return _windows
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3760 def SetPrintData(*args
, **kwargs
):
3761 """SetPrintData(PrintData printData)"""
3762 return _windows
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3764 def __nonzero__(self
): return self
.Ok()
3766 class PageSetupDialogDataPtr(PageSetupDialogData
):
3767 def __init__(self
, this
):
3769 if not hasattr(self
,"thisown"): self
.thisown
= 0
3770 self
.__class
__ = PageSetupDialogData
3771 _windows
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3773 class PageSetupDialog(Dialog
):
3775 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3776 def __init__(self
, *args
, **kwargs
):
3777 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3778 newobj
= _windows
.new_PageSetupDialog(*args
, **kwargs
)
3779 self
.this
= newobj
.this
3782 self
._setOORInfo
(self
)
3784 def GetPageSetupData(*args
, **kwargs
):
3785 """GetPageSetupData() -> PageSetupDialogData"""
3786 return _windows
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3788 def ShowModal(*args
, **kwargs
):
3789 """ShowModal() -> int"""
3790 return _windows
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3793 class PageSetupDialogPtr(PageSetupDialog
):
3794 def __init__(self
, this
):
3796 if not hasattr(self
,"thisown"): self
.thisown
= 0
3797 self
.__class
__ = PageSetupDialog
3798 _windows
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3800 class PrintDialogData(core
.Object
):
3802 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3803 def __init__(self
, *args
):
3805 __init__() -> PrintDialogData
3806 __init__(PrintData printData) -> PrintDialogData
3808 newobj
= _windows
.new_PrintDialogData(*args
)
3809 self
.this
= newobj
.this
3812 def __del__(self
, destroy
=_windows
.delete_PrintDialogData
):
3815 if self
.thisown
: destroy(self
)
3818 def GetFromPage(*args
, **kwargs
):
3819 """GetFromPage() -> int"""
3820 return _windows
.PrintDialogData_GetFromPage(*args
, **kwargs
)
3822 def GetToPage(*args
, **kwargs
):
3823 """GetToPage() -> int"""
3824 return _windows
.PrintDialogData_GetToPage(*args
, **kwargs
)
3826 def GetMinPage(*args
, **kwargs
):
3827 """GetMinPage() -> int"""
3828 return _windows
.PrintDialogData_GetMinPage(*args
, **kwargs
)
3830 def GetMaxPage(*args
, **kwargs
):
3831 """GetMaxPage() -> int"""
3832 return _windows
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
3834 def GetNoCopies(*args
, **kwargs
):
3835 """GetNoCopies() -> int"""
3836 return _windows
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
3838 def GetAllPages(*args
, **kwargs
):
3839 """GetAllPages() -> bool"""
3840 return _windows
.PrintDialogData_GetAllPages(*args
, **kwargs
)
3842 def GetSelection(*args
, **kwargs
):
3843 """GetSelection() -> bool"""
3844 return _windows
.PrintDialogData_GetSelection(*args
, **kwargs
)
3846 def GetCollate(*args
, **kwargs
):
3847 """GetCollate() -> bool"""
3848 return _windows
.PrintDialogData_GetCollate(*args
, **kwargs
)
3850 def GetPrintToFile(*args
, **kwargs
):
3851 """GetPrintToFile() -> bool"""
3852 return _windows
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
3854 def GetSetupDialog(*args
, **kwargs
):
3855 """GetSetupDialog() -> bool"""
3856 return _windows
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
3858 def SetFromPage(*args
, **kwargs
):
3859 """SetFromPage(int v)"""
3860 return _windows
.PrintDialogData_SetFromPage(*args
, **kwargs
)
3862 def SetToPage(*args
, **kwargs
):
3863 """SetToPage(int v)"""
3864 return _windows
.PrintDialogData_SetToPage(*args
, **kwargs
)
3866 def SetMinPage(*args
, **kwargs
):
3867 """SetMinPage(int v)"""
3868 return _windows
.PrintDialogData_SetMinPage(*args
, **kwargs
)
3870 def SetMaxPage(*args
, **kwargs
):
3871 """SetMaxPage(int v)"""
3872 return _windows
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
3874 def SetNoCopies(*args
, **kwargs
):
3875 """SetNoCopies(int v)"""
3876 return _windows
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
3878 def SetAllPages(*args
, **kwargs
):
3879 """SetAllPages(bool flag)"""
3880 return _windows
.PrintDialogData_SetAllPages(*args
, **kwargs
)
3882 def SetSelection(*args
, **kwargs
):
3883 """SetSelection(bool flag)"""
3884 return _windows
.PrintDialogData_SetSelection(*args
, **kwargs
)
3886 def SetCollate(*args
, **kwargs
):
3887 """SetCollate(bool flag)"""
3888 return _windows
.PrintDialogData_SetCollate(*args
, **kwargs
)
3890 def SetPrintToFile(*args
, **kwargs
):
3891 """SetPrintToFile(bool flag)"""
3892 return _windows
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
3894 def SetSetupDialog(*args
, **kwargs
):
3895 """SetSetupDialog(bool flag)"""
3896 return _windows
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
3898 def EnablePrintToFile(*args
, **kwargs
):
3899 """EnablePrintToFile(bool flag)"""
3900 return _windows
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
3902 def EnableSelection(*args
, **kwargs
):
3903 """EnableSelection(bool flag)"""
3904 return _windows
.PrintDialogData_EnableSelection(*args
, **kwargs
)
3906 def EnablePageNumbers(*args
, **kwargs
):
3907 """EnablePageNumbers(bool flag)"""
3908 return _windows
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
3910 def EnableHelp(*args
, **kwargs
):
3911 """EnableHelp(bool flag)"""
3912 return _windows
.PrintDialogData_EnableHelp(*args
, **kwargs
)
3914 def GetEnablePrintToFile(*args
, **kwargs
):
3915 """GetEnablePrintToFile() -> bool"""
3916 return _windows
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
3918 def GetEnableSelection(*args
, **kwargs
):
3919 """GetEnableSelection() -> bool"""
3920 return _windows
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
3922 def GetEnablePageNumbers(*args
, **kwargs
):
3923 """GetEnablePageNumbers() -> bool"""
3924 return _windows
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
3926 def GetEnableHelp(*args
, **kwargs
):
3927 """GetEnableHelp() -> bool"""
3928 return _windows
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
3930 def Ok(*args
, **kwargs
):
3932 return _windows
.PrintDialogData_Ok(*args
, **kwargs
)
3934 def GetPrintData(*args
, **kwargs
):
3935 """GetPrintData() -> PrintData"""
3936 return _windows
.PrintDialogData_GetPrintData(*args
, **kwargs
)
3938 def SetPrintData(*args
, **kwargs
):
3939 """SetPrintData(PrintData printData)"""
3940 return _windows
.PrintDialogData_SetPrintData(*args
, **kwargs
)
3942 def __nonzero__(self
): return self
.Ok()
3944 class PrintDialogDataPtr(PrintDialogData
):
3945 def __init__(self
, this
):
3947 if not hasattr(self
,"thisown"): self
.thisown
= 0
3948 self
.__class
__ = PrintDialogData
3949 _windows
.PrintDialogData_swigregister(PrintDialogDataPtr
)
3951 class PrintDialog(Dialog
):
3953 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3954 def __init__(self
, *args
, **kwargs
):
3955 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
3956 newobj
= _windows
.new_PrintDialog(*args
, **kwargs
)
3957 self
.this
= newobj
.this
3960 self
._setOORInfo
(self
)
3962 def GetPrintDialogData(*args
, **kwargs
):
3963 """GetPrintDialogData() -> PrintDialogData"""
3964 return _windows
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
3966 def GetPrintDC(*args
, **kwargs
):
3967 """GetPrintDC() -> DC"""
3968 return _windows
.PrintDialog_GetPrintDC(*args
, **kwargs
)
3970 def ShowModal(*args
, **kwargs
):
3971 """ShowModal() -> int"""
3972 return _windows
.PrintDialog_ShowModal(*args
, **kwargs
)
3975 class PrintDialogPtr(PrintDialog
):
3976 def __init__(self
, this
):
3978 if not hasattr(self
,"thisown"): self
.thisown
= 0
3979 self
.__class
__ = PrintDialog
3980 _windows
.PrintDialog_swigregister(PrintDialogPtr
)
3982 PRINTER_NO_ERROR
= _windows
.PRINTER_NO_ERROR
3983 PRINTER_CANCELLED
= _windows
.PRINTER_CANCELLED
3984 PRINTER_ERROR
= _windows
.PRINTER_ERROR
3985 class Printer(core
.Object
):
3987 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3988 def __init__(self
, *args
, **kwargs
):
3989 """__init__(PrintDialogData data=None) -> Printer"""
3990 newobj
= _windows
.new_Printer(*args
, **kwargs
)
3991 self
.this
= newobj
.this
3994 def __del__(self
, destroy
=_windows
.delete_Printer
):
3997 if self
.thisown
: destroy(self
)
4000 def CreateAbortWindow(*args
, **kwargs
):
4001 """CreateAbortWindow(Window parent, Printout printout)"""
4002 return _windows
.Printer_CreateAbortWindow(*args
, **kwargs
)
4004 def GetPrintDialogData(*args
, **kwargs
):
4005 """GetPrintDialogData() -> PrintDialogData"""
4006 return _windows
.Printer_GetPrintDialogData(*args
, **kwargs
)
4008 def Print(*args
, **kwargs
):
4009 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
4010 return _windows
.Printer_Print(*args
, **kwargs
)
4012 def PrintDialog(*args
, **kwargs
):
4013 """PrintDialog(Window parent) -> DC"""
4014 return _windows
.Printer_PrintDialog(*args
, **kwargs
)
4016 def ReportError(*args
, **kwargs
):
4017 """ReportError(Window parent, Printout printout, String message)"""
4018 return _windows
.Printer_ReportError(*args
, **kwargs
)
4020 def Setup(*args
, **kwargs
):
4021 """Setup(Window parent) -> bool"""
4022 return _windows
.Printer_Setup(*args
, **kwargs
)
4024 def GetAbort(*args
, **kwargs
):
4025 """GetAbort() -> bool"""
4026 return _windows
.Printer_GetAbort(*args
, **kwargs
)
4028 def GetLastError(*args
, **kwargs
):
4029 """GetLastError() -> int"""
4030 return _windows
.Printer_GetLastError(*args
, **kwargs
)
4032 GetLastError
= staticmethod(GetLastError
)
4034 class PrinterPtr(Printer
):
4035 def __init__(self
, this
):
4037 if not hasattr(self
,"thisown"): self
.thisown
= 0
4038 self
.__class
__ = Printer
4039 _windows
.Printer_swigregister(PrinterPtr
)
4041 def Printer_GetLastError(*args
, **kwargs
):
4042 """Printer_GetLastError() -> int"""
4043 return _windows
.Printer_GetLastError(*args
, **kwargs
)
4045 class Printout(core
.Object
):
4047 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4048 def __init__(self
, *args
, **kwargs
):
4049 """__init__(String title=PrintoutTitleStr) -> Printout"""
4050 newobj
= _windows
.new_Printout(*args
, **kwargs
)
4051 self
.this
= newobj
.this
4054 self
._setCallbackInfo
(self
, Printout
)
4056 def _setCallbackInfo(*args
, **kwargs
):
4057 """_setCallbackInfo(PyObject self, PyObject _class)"""
4058 return _windows
.Printout__setCallbackInfo(*args
, **kwargs
)
4060 def GetTitle(*args
, **kwargs
):
4061 """GetTitle() -> String"""
4062 return _windows
.Printout_GetTitle(*args
, **kwargs
)
4064 def GetDC(*args
, **kwargs
):
4066 return _windows
.Printout_GetDC(*args
, **kwargs
)
4068 def SetDC(*args
, **kwargs
):
4070 return _windows
.Printout_SetDC(*args
, **kwargs
)
4072 def SetPageSizePixels(*args
, **kwargs
):
4073 """SetPageSizePixels(int w, int h)"""
4074 return _windows
.Printout_SetPageSizePixels(*args
, **kwargs
)
4076 def GetPageSizePixels(*args
, **kwargs
):
4077 """GetPageSizePixels() -> (w, h)"""
4078 return _windows
.Printout_GetPageSizePixels(*args
, **kwargs
)
4080 def SetPageSizeMM(*args
, **kwargs
):
4081 """SetPageSizeMM(int w, int h)"""
4082 return _windows
.Printout_SetPageSizeMM(*args
, **kwargs
)
4084 def GetPageSizeMM(*args
, **kwargs
):
4085 """GetPageSizeMM() -> (w, h)"""
4086 return _windows
.Printout_GetPageSizeMM(*args
, **kwargs
)
4088 def SetPPIScreen(*args
, **kwargs
):
4089 """SetPPIScreen(int x, int y)"""
4090 return _windows
.Printout_SetPPIScreen(*args
, **kwargs
)
4092 def GetPPIScreen(*args
, **kwargs
):
4093 """GetPPIScreen() -> (x,y)"""
4094 return _windows
.Printout_GetPPIScreen(*args
, **kwargs
)
4096 def SetPPIPrinter(*args
, **kwargs
):
4097 """SetPPIPrinter(int x, int y)"""
4098 return _windows
.Printout_SetPPIPrinter(*args
, **kwargs
)
4100 def GetPPIPrinter(*args
, **kwargs
):
4101 """GetPPIPrinter() -> (x,y)"""
4102 return _windows
.Printout_GetPPIPrinter(*args
, **kwargs
)
4104 def IsPreview(*args
, **kwargs
):
4105 """IsPreview() -> bool"""
4106 return _windows
.Printout_IsPreview(*args
, **kwargs
)
4108 def SetIsPreview(*args
, **kwargs
):
4109 """SetIsPreview(bool p)"""
4110 return _windows
.Printout_SetIsPreview(*args
, **kwargs
)
4112 def base_OnBeginDocument(*args
, **kwargs
):
4113 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
4114 return _windows
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4116 def base_OnEndDocument(*args
, **kwargs
):
4117 """base_OnEndDocument()"""
4118 return _windows
.Printout_base_OnEndDocument(*args
, **kwargs
)
4120 def base_OnBeginPrinting(*args
, **kwargs
):
4121 """base_OnBeginPrinting()"""
4122 return _windows
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4124 def base_OnEndPrinting(*args
, **kwargs
):
4125 """base_OnEndPrinting()"""
4126 return _windows
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4128 def base_OnPreparePrinting(*args
, **kwargs
):
4129 """base_OnPreparePrinting()"""
4130 return _windows
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4132 def base_HasPage(*args
, **kwargs
):
4133 """base_HasPage(int page) -> bool"""
4134 return _windows
.Printout_base_HasPage(*args
, **kwargs
)
4136 def base_GetPageInfo(*args
, **kwargs
):
4137 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4138 return _windows
.Printout_base_GetPageInfo(*args
, **kwargs
)
4141 class PrintoutPtr(Printout
):
4142 def __init__(self
, this
):
4144 if not hasattr(self
,"thisown"): self
.thisown
= 0
4145 self
.__class
__ = Printout
4146 _windows
.Printout_swigregister(PrintoutPtr
)
4148 class PreviewCanvas(ScrolledWindow
):
4150 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4151 def __init__(self
, *args
, **kwargs
):
4153 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
4154 Size size=DefaultSize, long style=0,
4155 String name=PreviewCanvasNameStr) -> PreviewCanvas
4157 newobj
= _windows
.new_PreviewCanvas(*args
, **kwargs
)
4158 self
.this
= newobj
.this
4161 self
._setOORInfo
(self
)
4164 class PreviewCanvasPtr(PreviewCanvas
):
4165 def __init__(self
, this
):
4167 if not hasattr(self
,"thisown"): self
.thisown
= 0
4168 self
.__class
__ = PreviewCanvas
4169 _windows
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4171 class PreviewFrame(Frame
):
4173 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4174 def __init__(self
, *args
, **kwargs
):
4176 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4177 Size size=DefaultSize,
4178 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4180 newobj
= _windows
.new_PreviewFrame(*args
, **kwargs
)
4181 self
.this
= newobj
.this
4184 self
._setOORInfo
(self
)
4186 def Initialize(*args
, **kwargs
):
4188 return _windows
.PreviewFrame_Initialize(*args
, **kwargs
)
4190 def CreateControlBar(*args
, **kwargs
):
4191 """CreateControlBar()"""
4192 return _windows
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4194 def CreateCanvas(*args
, **kwargs
):
4195 """CreateCanvas()"""
4196 return _windows
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4198 def GetControlBar(*args
, **kwargs
):
4199 """GetControlBar() -> PreviewControlBar"""
4200 return _windows
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4203 class PreviewFramePtr(PreviewFrame
):
4204 def __init__(self
, this
):
4206 if not hasattr(self
,"thisown"): self
.thisown
= 0
4207 self
.__class
__ = PreviewFrame
4208 _windows
.PreviewFrame_swigregister(PreviewFramePtr
)
4210 PREVIEW_PRINT
= _windows
.PREVIEW_PRINT
4211 PREVIEW_PREVIOUS
= _windows
.PREVIEW_PREVIOUS
4212 PREVIEW_NEXT
= _windows
.PREVIEW_NEXT
4213 PREVIEW_ZOOM
= _windows
.PREVIEW_ZOOM
4214 PREVIEW_FIRST
= _windows
.PREVIEW_FIRST
4215 PREVIEW_LAST
= _windows
.PREVIEW_LAST
4216 PREVIEW_GOTO
= _windows
.PREVIEW_GOTO
4217 PREVIEW_DEFAULT
= _windows
.PREVIEW_DEFAULT
4218 ID_PREVIEW_CLOSE
= _windows
.ID_PREVIEW_CLOSE
4219 ID_PREVIEW_NEXT
= _windows
.ID_PREVIEW_NEXT
4220 ID_PREVIEW_PREVIOUS
= _windows
.ID_PREVIEW_PREVIOUS
4221 ID_PREVIEW_PRINT
= _windows
.ID_PREVIEW_PRINT
4222 ID_PREVIEW_ZOOM
= _windows
.ID_PREVIEW_ZOOM
4223 ID_PREVIEW_FIRST
= _windows
.ID_PREVIEW_FIRST
4224 ID_PREVIEW_LAST
= _windows
.ID_PREVIEW_LAST
4225 ID_PREVIEW_GOTO
= _windows
.ID_PREVIEW_GOTO
4226 class PreviewControlBar(Panel
):
4228 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4229 def __init__(self
, *args
, **kwargs
):
4231 __init__(PrintPreview preview, long buttons, Window parent,
4232 Point pos=DefaultPosition, Size size=DefaultSize,
4233 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4235 newobj
= _windows
.new_PreviewControlBar(*args
, **kwargs
)
4236 self
.this
= newobj
.this
4239 self
._setOORInfo
(self
)
4241 def GetZoomControl(*args
, **kwargs
):
4242 """GetZoomControl() -> int"""
4243 return _windows
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4245 def SetZoomControl(*args
, **kwargs
):
4246 """SetZoomControl(int zoom)"""
4247 return _windows
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4249 def GetPrintPreview(*args
, **kwargs
):
4250 """GetPrintPreview() -> PrintPreview"""
4251 return _windows
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4253 def OnNext(*args
, **kwargs
):
4255 return _windows
.PreviewControlBar_OnNext(*args
, **kwargs
)
4257 def OnPrevious(*args
, **kwargs
):
4259 return _windows
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4261 def OnFirst(*args
, **kwargs
):
4263 return _windows
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4265 def OnLast(*args
, **kwargs
):
4267 return _windows
.PreviewControlBar_OnLast(*args
, **kwargs
)
4269 def OnGoto(*args
, **kwargs
):
4271 return _windows
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4274 class PreviewControlBarPtr(PreviewControlBar
):
4275 def __init__(self
, this
):
4277 if not hasattr(self
,"thisown"): self
.thisown
= 0
4278 self
.__class
__ = PreviewControlBar
4279 _windows
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4281 class PrintPreview(core
.Object
):
4283 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4284 def __init__(self
, *args
):
4286 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4287 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4289 newobj
= _windows
.new_PrintPreview(*args
)
4290 self
.this
= newobj
.this
4293 def SetCurrentPage(*args
, **kwargs
):
4294 """SetCurrentPage(int pageNum) -> bool"""
4295 return _windows
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4297 def GetCurrentPage(*args
, **kwargs
):
4298 """GetCurrentPage() -> int"""
4299 return _windows
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4301 def SetPrintout(*args
, **kwargs
):
4302 """SetPrintout(Printout printout)"""
4303 return _windows
.PrintPreview_SetPrintout(*args
, **kwargs
)
4305 def GetPrintout(*args
, **kwargs
):
4306 """GetPrintout() -> Printout"""
4307 return _windows
.PrintPreview_GetPrintout(*args
, **kwargs
)
4309 def GetPrintoutForPrinting(*args
, **kwargs
):
4310 """GetPrintoutForPrinting() -> Printout"""
4311 return _windows
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4313 def SetFrame(*args
, **kwargs
):
4314 """SetFrame(Frame frame)"""
4315 return _windows
.PrintPreview_SetFrame(*args
, **kwargs
)
4317 def SetCanvas(*args
, **kwargs
):
4318 """SetCanvas(PreviewCanvas canvas)"""
4319 return _windows
.PrintPreview_SetCanvas(*args
, **kwargs
)
4321 def GetFrame(*args
, **kwargs
):
4322 """GetFrame() -> Frame"""
4323 return _windows
.PrintPreview_GetFrame(*args
, **kwargs
)
4325 def GetCanvas(*args
, **kwargs
):
4326 """GetCanvas() -> PreviewCanvas"""
4327 return _windows
.PrintPreview_GetCanvas(*args
, **kwargs
)
4329 def PaintPage(*args
, **kwargs
):
4330 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4331 return _windows
.PrintPreview_PaintPage(*args
, **kwargs
)
4333 def DrawBlankPage(*args
, **kwargs
):
4334 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4335 return _windows
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4337 def RenderPage(*args
, **kwargs
):
4338 """RenderPage(int pageNum) -> bool"""
4339 return _windows
.PrintPreview_RenderPage(*args
, **kwargs
)
4341 def AdjustScrollbars(*args
, **kwargs
):
4342 """AdjustScrollbars(PreviewCanvas canvas)"""
4343 return _windows
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4345 def GetPrintDialogData(*args
, **kwargs
):
4346 """GetPrintDialogData() -> PrintDialogData"""
4347 return _windows
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4349 def SetZoom(*args
, **kwargs
):
4350 """SetZoom(int percent)"""
4351 return _windows
.PrintPreview_SetZoom(*args
, **kwargs
)
4353 def GetZoom(*args
, **kwargs
):
4354 """GetZoom() -> int"""
4355 return _windows
.PrintPreview_GetZoom(*args
, **kwargs
)
4357 def GetMaxPage(*args
, **kwargs
):
4358 """GetMaxPage() -> int"""
4359 return _windows
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4361 def GetMinPage(*args
, **kwargs
):
4362 """GetMinPage() -> int"""
4363 return _windows
.PrintPreview_GetMinPage(*args
, **kwargs
)
4365 def Ok(*args
, **kwargs
):
4367 return _windows
.PrintPreview_Ok(*args
, **kwargs
)
4369 def SetOk(*args
, **kwargs
):
4370 """SetOk(bool ok)"""
4371 return _windows
.PrintPreview_SetOk(*args
, **kwargs
)
4373 def Print(*args
, **kwargs
):
4374 """Print(bool interactive) -> bool"""
4375 return _windows
.PrintPreview_Print(*args
, **kwargs
)
4377 def DetermineScaling(*args
, **kwargs
):
4378 """DetermineScaling()"""
4379 return _windows
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4381 def __nonzero__(self
): return self
.Ok()
4383 class PrintPreviewPtr(PrintPreview
):
4384 def __init__(self
, this
):
4386 if not hasattr(self
,"thisown"): self
.thisown
= 0
4387 self
.__class
__ = PrintPreview
4388 _windows
.PrintPreview_swigregister(PrintPreviewPtr
)
4390 class PyPrintPreview(PrintPreview
):
4392 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4393 def __init__(self
, *args
):
4395 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4396 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4398 newobj
= _windows
.new_PyPrintPreview(*args
)
4399 self
.this
= newobj
.this
4402 self
._setCallbackInfo
(self
, PyPrintPreview
)
4404 def _setCallbackInfo(*args
, **kwargs
):
4405 """_setCallbackInfo(PyObject self, PyObject _class)"""
4406 return _windows
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4408 def base_SetCurrentPage(*args
, **kwargs
):
4409 """base_SetCurrentPage(int pageNum) -> bool"""
4410 return _windows
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4412 def base_PaintPage(*args
, **kwargs
):
4413 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4414 return _windows
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4416 def base_DrawBlankPage(*args
, **kwargs
):
4417 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4418 return _windows
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4420 def base_RenderPage(*args
, **kwargs
):
4421 """base_RenderPage(int pageNum) -> bool"""
4422 return _windows
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4424 def base_SetZoom(*args
, **kwargs
):
4425 """base_SetZoom(int percent)"""
4426 return _windows
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4428 def base_Print(*args
, **kwargs
):
4429 """base_Print(bool interactive) -> bool"""
4430 return _windows
.PyPrintPreview_base_Print(*args
, **kwargs
)
4432 def base_DetermineScaling(*args
, **kwargs
):
4433 """base_DetermineScaling()"""
4434 return _windows
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4437 class PyPrintPreviewPtr(PyPrintPreview
):
4438 def __init__(self
, this
):
4440 if not hasattr(self
,"thisown"): self
.thisown
= 0
4441 self
.__class
__ = PyPrintPreview
4442 _windows
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4444 class PyPreviewFrame(PreviewFrame
):
4446 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4447 def __init__(self
, *args
, **kwargs
):
4449 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4450 Size size=DefaultSize,
4451 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4453 newobj
= _windows
.new_PyPreviewFrame(*args
, **kwargs
)
4454 self
.this
= newobj
.this
4457 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4459 def _setCallbackInfo(*args
, **kwargs
):
4460 """_setCallbackInfo(PyObject self, PyObject _class)"""
4461 return _windows
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4463 def SetPreviewCanvas(*args
, **kwargs
):
4464 """SetPreviewCanvas(PreviewCanvas canvas)"""
4465 return _windows
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4467 def SetControlBar(*args
, **kwargs
):
4468 """SetControlBar(PreviewControlBar bar)"""
4469 return _windows
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4471 def base_Initialize(*args
, **kwargs
):
4472 """base_Initialize()"""
4473 return _windows
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4475 def base_CreateCanvas(*args
, **kwargs
):
4476 """base_CreateCanvas()"""
4477 return _windows
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4479 def base_CreateControlBar(*args
, **kwargs
):
4480 """base_CreateControlBar()"""
4481 return _windows
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4484 class PyPreviewFramePtr(PyPreviewFrame
):
4485 def __init__(self
, this
):
4487 if not hasattr(self
,"thisown"): self
.thisown
= 0
4488 self
.__class
__ = PyPreviewFrame
4489 _windows
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4491 class PyPreviewControlBar(PreviewControlBar
):
4493 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4494 def __init__(self
, *args
, **kwargs
):
4496 __init__(PrintPreview preview, long buttons, Window parent,
4497 Point pos=DefaultPosition, Size size=DefaultSize,
4498 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4500 newobj
= _windows
.new_PyPreviewControlBar(*args
, **kwargs
)
4501 self
.this
= newobj
.this
4504 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4506 def _setCallbackInfo(*args
, **kwargs
):
4507 """_setCallbackInfo(PyObject self, PyObject _class)"""
4508 return _windows
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4510 def SetPrintPreview(*args
, **kwargs
):
4511 """SetPrintPreview(PrintPreview preview)"""
4512 return _windows
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4514 def base_CreateButtons(*args
, **kwargs
):
4515 """base_CreateButtons()"""
4516 return _windows
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4518 def base_SetZoomControl(*args
, **kwargs
):
4519 """base_SetZoomControl(int zoom)"""
4520 return _windows
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4523 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4524 def __init__(self
, this
):
4526 if not hasattr(self
,"thisown"): self
.thisown
= 0
4527 self
.__class
__ = PyPreviewControlBar
4528 _windows
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)