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
):
37 return _windows
.Panel_InitDialog(*args
, **kwargs
)
40 class PanelPtr(Panel
):
41 def __init__(self
, this
):
43 if not hasattr(self
,"thisown"): self
.thisown
= 0
44 self
.__class
__ = Panel
45 _windows
.Panel_swigregister(PanelPtr
)
47 def PrePanel(*args
, **kwargs
):
48 """PrePanel() -> Panel"""
49 val
= _windows
.new_PrePanel(*args
, **kwargs
)
53 #---------------------------------------------------------------------------
55 class ScrolledWindow(Panel
):
57 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
58 def __init__(self
, *args
, **kwargs
):
60 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
61 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
62 String name=PanelNameStr) -> ScrolledWindow
64 newobj
= _windows
.new_ScrolledWindow(*args
, **kwargs
)
65 self
.this
= newobj
.this
68 self
._setOORInfo
(self
)
70 def Create(*args
, **kwargs
):
72 Create(Window parent, int id=-1, Point pos=DefaultPosition,
73 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
74 String name=PanelNameStr) -> bool
76 Create the GUI part of the Window for 2-phase creation mode.
78 return _windows
.ScrolledWindow_Create(*args
, **kwargs
)
80 def SetScrollbars(*args
, **kwargs
):
82 SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
83 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
85 return _windows
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
87 def Scroll(*args
, **kwargs
):
88 """Scroll(int x, int y)"""
89 return _windows
.ScrolledWindow_Scroll(*args
, **kwargs
)
91 def GetScrollPageSize(*args
, **kwargs
):
92 """GetScrollPageSize(int orient) -> int"""
93 return _windows
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
95 def SetScrollPageSize(*args
, **kwargs
):
96 """SetScrollPageSize(int orient, int pageSize)"""
97 return _windows
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
99 def SetScrollRate(*args
, **kwargs
):
100 """SetScrollRate(int xstep, int ystep)"""
101 return _windows
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
103 def GetScrollPixelsPerUnit(*args
, **kwargs
):
105 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
107 Get the size of one logical unit in physical units.
109 return _windows
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
111 def EnableScrolling(*args
, **kwargs
):
112 """EnableScrolling(bool x_scrolling, bool y_scrolling)"""
113 return _windows
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
115 def GetViewStart(*args
, **kwargs
):
117 GetViewStart() -> (x,y)
121 return _windows
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
123 def SetScale(*args
, **kwargs
):
124 """SetScale(double xs, double ys)"""
125 return _windows
.ScrolledWindow_SetScale(*args
, **kwargs
)
127 def GetScaleX(*args
, **kwargs
):
128 """GetScaleX() -> double"""
129 return _windows
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
131 def GetScaleY(*args
, **kwargs
):
132 """GetScaleY() -> double"""
133 return _windows
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
135 def CalcScrolledPosition(*args
):
137 CalcScrolledPosition(Point pt) -> Point
138 CalcScrolledPosition(int x, int y) -> (sx, sy)
140 Translate between scrolled and unscrolled coordinates.
142 return _windows
.ScrolledWindow_CalcScrolledPosition(*args
)
144 def CalcUnscrolledPosition(*args
):
146 CalcUnscrolledPosition(Point pt) -> Point
147 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
149 Translate between scrolled and unscrolled coordinates.
151 return _windows
.ScrolledWindow_CalcUnscrolledPosition(*args
)
153 def AdjustScrollbars(*args
, **kwargs
):
154 """AdjustScrollbars()"""
155 return _windows
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
157 def CalcScrollInc(*args
, **kwargs
):
158 """CalcScrollInc(ScrollWinEvent event) -> int"""
159 return _windows
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
161 def SetTargetWindow(*args
, **kwargs
):
162 """SetTargetWindow(Window target)"""
163 return _windows
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
165 def GetTargetWindow(*args
, **kwargs
):
166 """GetTargetWindow() -> Window"""
167 return _windows
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
169 def SetTargetRect(*args
, **kwargs
):
170 """SetTargetRect(Rect rect)"""
171 return _windows
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
173 def GetTargetRect(*args
, **kwargs
):
174 """GetTargetRect() -> Rect"""
175 return _windows
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
178 class ScrolledWindowPtr(ScrolledWindow
):
179 def __init__(self
, this
):
181 if not hasattr(self
,"thisown"): self
.thisown
= 0
182 self
.__class
__ = ScrolledWindow
183 _windows
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
185 def PreScrolledWindow(*args
, **kwargs
):
186 """PreScrolledWindow() -> ScrolledWindow"""
187 val
= _windows
.new_PreScrolledWindow(*args
, **kwargs
)
191 #---------------------------------------------------------------------------
193 FULLSCREEN_NOMENUBAR
= _windows
.FULLSCREEN_NOMENUBAR
194 FULLSCREEN_NOTOOLBAR
= _windows
.FULLSCREEN_NOTOOLBAR
195 FULLSCREEN_NOSTATUSBAR
= _windows
.FULLSCREEN_NOSTATUSBAR
196 FULLSCREEN_NOBORDER
= _windows
.FULLSCREEN_NOBORDER
197 FULLSCREEN_NOCAPTION
= _windows
.FULLSCREEN_NOCAPTION
198 FULLSCREEN_ALL
= _windows
.FULLSCREEN_ALL
199 TOPLEVEL_EX_DIALOG
= _windows
.TOPLEVEL_EX_DIALOG
200 class TopLevelWindow(core
.Window
):
201 def __init__(self
): raise RuntimeError, "No constructor defined"
203 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
204 def Maximize(*args
, **kwargs
):
205 """Maximize(bool maximize=True)"""
206 return _windows
.TopLevelWindow_Maximize(*args
, **kwargs
)
208 def Restore(*args
, **kwargs
):
210 return _windows
.TopLevelWindow_Restore(*args
, **kwargs
)
212 def Iconize(*args
, **kwargs
):
213 """Iconize(bool iconize=True)"""
214 return _windows
.TopLevelWindow_Iconize(*args
, **kwargs
)
216 def IsMaximized(*args
, **kwargs
):
217 """IsMaximized() -> bool"""
218 return _windows
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
220 def IsIconized(*args
, **kwargs
):
221 """IsIconized() -> bool"""
222 return _windows
.TopLevelWindow_IsIconized(*args
, **kwargs
)
224 def GetIcon(*args
, **kwargs
):
225 """GetIcon() -> Icon"""
226 return _windows
.TopLevelWindow_GetIcon(*args
, **kwargs
)
228 def SetIcon(*args
, **kwargs
):
229 """SetIcon(Icon icon)"""
230 return _windows
.TopLevelWindow_SetIcon(*args
, **kwargs
)
232 def SetIcons(*args
, **kwargs
):
233 """SetIcons(wxIconBundle icons)"""
234 return _windows
.TopLevelWindow_SetIcons(*args
, **kwargs
)
236 def ShowFullScreen(*args
, **kwargs
):
237 """ShowFullScreen(bool show, long style=FULLSCREEN_ALL) -> bool"""
238 return _windows
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
240 def IsFullScreen(*args
, **kwargs
):
241 """IsFullScreen() -> bool"""
242 return _windows
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
244 def SetTitle(*args
, **kwargs
):
246 SetTitle(String title)
248 Sets the window's title. Applicable only to frames and dialogs.
250 return _windows
.TopLevelWindow_SetTitle(*args
, **kwargs
)
252 def GetTitle(*args
, **kwargs
):
256 Gets the window's title. Applicable only to frames and dialogs.
258 return _windows
.TopLevelWindow_GetTitle(*args
, **kwargs
)
260 def SetShape(*args
, **kwargs
):
261 """SetShape(Region region) -> bool"""
262 return _windows
.TopLevelWindow_SetShape(*args
, **kwargs
)
265 class TopLevelWindowPtr(TopLevelWindow
):
266 def __init__(self
, this
):
268 if not hasattr(self
,"thisown"): self
.thisown
= 0
269 self
.__class
__ = TopLevelWindow
270 _windows
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
272 FrameNameStr
= cvar
.FrameNameStr
273 DialogNameStr
= cvar
.DialogNameStr
274 StatusLineNameStr
= cvar
.StatusLineNameStr
275 ToolBarNameStr
= cvar
.ToolBarNameStr
277 #---------------------------------------------------------------------------
279 class Frame(TopLevelWindow
):
281 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
282 def __init__(self
, *args
, **kwargs
):
284 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
285 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
286 String name=FrameNameStr) -> Frame
288 newobj
= _windows
.new_Frame(*args
, **kwargs
)
289 self
.this
= newobj
.this
292 self
._setOORInfo
(self
)
294 def Create(*args
, **kwargs
):
296 Create(Window parent, int id, String title, Point pos=DefaultPosition,
297 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
298 String name=FrameNameStr) -> bool
300 return _windows
.Frame_Create(*args
, **kwargs
)
302 def GetClientAreaOrigin(*args
, **kwargs
):
304 GetClientAreaOrigin() -> Point
306 Get the origin of the client area of the window relative to the
307 window's top left corner (the client area may be shifted because of
308 the borders, scrollbars, other decorations...)
310 return _windows
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
312 def SendSizeEvent(*args
, **kwargs
):
313 """SendSizeEvent()"""
314 return _windows
.Frame_SendSizeEvent(*args
, **kwargs
)
316 def SetMenuBar(*args
, **kwargs
):
317 """SetMenuBar(MenuBar menubar)"""
318 return _windows
.Frame_SetMenuBar(*args
, **kwargs
)
320 def GetMenuBar(*args
, **kwargs
):
321 """GetMenuBar() -> MenuBar"""
322 return _windows
.Frame_GetMenuBar(*args
, **kwargs
)
324 def ProcessCommand(*args
, **kwargs
):
325 """ProcessCommand(int winid) -> bool"""
326 return _windows
.Frame_ProcessCommand(*args
, **kwargs
)
328 Command
= ProcessCommand
329 def CreateStatusBar(*args
, **kwargs
):
331 CreateStatusBar(int number=1, long style=ST_SIZEGRIP, int winid=0,
332 String name=StatusLineNameStr) -> StatusBar
334 return _windows
.Frame_CreateStatusBar(*args
, **kwargs
)
336 def GetStatusBar(*args
, **kwargs
):
337 """GetStatusBar() -> StatusBar"""
338 return _windows
.Frame_GetStatusBar(*args
, **kwargs
)
340 def SetStatusBar(*args
, **kwargs
):
341 """SetStatusBar(StatusBar statBar)"""
342 return _windows
.Frame_SetStatusBar(*args
, **kwargs
)
344 def SetStatusText(*args
, **kwargs
):
345 """SetStatusText(String text, int number=0)"""
346 return _windows
.Frame_SetStatusText(*args
, **kwargs
)
348 def SetStatusWidths(*args
, **kwargs
):
349 """SetStatusWidths(int widths, int widths_field)"""
350 return _windows
.Frame_SetStatusWidths(*args
, **kwargs
)
352 def PushStatusText(*args
, **kwargs
):
353 """PushStatusText(String text, int number=0)"""
354 return _windows
.Frame_PushStatusText(*args
, **kwargs
)
356 def PopStatusText(*args
, **kwargs
):
357 """PopStatusText(int number=0)"""
358 return _windows
.Frame_PopStatusText(*args
, **kwargs
)
360 def SetStatusBarPane(*args
, **kwargs
):
361 """SetStatusBarPane(int n)"""
362 return _windows
.Frame_SetStatusBarPane(*args
, **kwargs
)
364 def GetStatusBarPane(*args
, **kwargs
):
365 """GetStatusBarPane() -> int"""
366 return _windows
.Frame_GetStatusBarPane(*args
, **kwargs
)
368 def CreateToolBar(*args
, **kwargs
):
369 """CreateToolBar(long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
370 return _windows
.Frame_CreateToolBar(*args
, **kwargs
)
372 def GetToolBar(*args
, **kwargs
):
373 """GetToolBar() -> wxToolBar"""
374 return _windows
.Frame_GetToolBar(*args
, **kwargs
)
376 def SetToolBar(*args
, **kwargs
):
377 """SetToolBar(wxToolBar toolbar)"""
378 return _windows
.Frame_SetToolBar(*args
, **kwargs
)
380 def DoGiveHelp(*args
, **kwargs
):
381 """DoGiveHelp(String text, bool show)"""
382 return _windows
.Frame_DoGiveHelp(*args
, **kwargs
)
384 def DoMenuUpdates(*args
, **kwargs
):
385 """DoMenuUpdates(Menu menu=None)"""
386 return _windows
.Frame_DoMenuUpdates(*args
, **kwargs
)
389 class FramePtr(Frame
):
390 def __init__(self
, this
):
392 if not hasattr(self
,"thisown"): self
.thisown
= 0
393 self
.__class
__ = Frame
394 _windows
.Frame_swigregister(FramePtr
)
396 def PreFrame(*args
, **kwargs
):
397 """PreFrame() -> Frame"""
398 val
= _windows
.new_PreFrame(*args
, **kwargs
)
402 #---------------------------------------------------------------------------
404 class Dialog(TopLevelWindow
):
406 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
407 def __init__(self
, *args
, **kwargs
):
409 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
410 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
411 String name=DialogNameStr) -> Dialog
413 newobj
= _windows
.new_Dialog(*args
, **kwargs
)
414 self
.this
= newobj
.this
417 self
._setOORInfo
(self
)
419 def Create(*args
, **kwargs
):
421 Create(Window parent, int id, String title, Point pos=DefaultPosition,
422 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
423 String name=DialogNameStr) -> bool
425 return _windows
.Dialog_Create(*args
, **kwargs
)
427 def SetReturnCode(*args
, **kwargs
):
428 """SetReturnCode(int returnCode)"""
429 return _windows
.Dialog_SetReturnCode(*args
, **kwargs
)
431 def GetReturnCode(*args
, **kwargs
):
432 """GetReturnCode() -> int"""
433 return _windows
.Dialog_GetReturnCode(*args
, **kwargs
)
435 def CreateTextSizer(*args
, **kwargs
):
436 """CreateTextSizer(String message) -> Sizer"""
437 return _windows
.Dialog_CreateTextSizer(*args
, **kwargs
)
439 def CreateButtonSizer(*args
, **kwargs
):
440 """CreateButtonSizer(long flags) -> Sizer"""
441 return _windows
.Dialog_CreateButtonSizer(*args
, **kwargs
)
443 def IsModal(*args
, **kwargs
):
444 """IsModal() -> bool"""
445 return _windows
.Dialog_IsModal(*args
, **kwargs
)
447 def ShowModal(*args
, **kwargs
):
448 """ShowModal() -> int"""
449 return _windows
.Dialog_ShowModal(*args
, **kwargs
)
451 def EndModal(*args
, **kwargs
):
452 """EndModal(int retCode)"""
453 return _windows
.Dialog_EndModal(*args
, **kwargs
)
455 def IsModalShowing(*args
, **kwargs
):
456 """IsModalShowing() -> bool"""
457 return _windows
.Dialog_IsModalShowing(*args
, **kwargs
)
460 class DialogPtr(Dialog
):
461 def __init__(self
, this
):
463 if not hasattr(self
,"thisown"): self
.thisown
= 0
464 self
.__class
__ = Dialog
465 _windows
.Dialog_swigregister(DialogPtr
)
467 def PreDialog(*args
, **kwargs
):
468 """PreDialog() -> Dialog"""
469 val
= _windows
.new_PreDialog(*args
, **kwargs
)
473 #---------------------------------------------------------------------------
475 class MiniFrame(Frame
):
477 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
478 def __init__(self
, *args
, **kwargs
):
480 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
481 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
482 String name=FrameNameStr) -> MiniFrame
484 newobj
= _windows
.new_MiniFrame(*args
, **kwargs
)
485 self
.this
= newobj
.this
488 self
._setOORInfo
(self
)
490 def Create(*args
, **kwargs
):
492 Create(Window parent, int id, String title, Point pos=DefaultPosition,
493 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
494 String name=FrameNameStr) -> bool
496 return _windows
.MiniFrame_Create(*args
, **kwargs
)
499 class MiniFramePtr(MiniFrame
):
500 def __init__(self
, this
):
502 if not hasattr(self
,"thisown"): self
.thisown
= 0
503 self
.__class
__ = MiniFrame
504 _windows
.MiniFrame_swigregister(MiniFramePtr
)
506 def PreMiniFrame(*args
, **kwargs
):
507 """PreMiniFrame() -> MiniFrame"""
508 val
= _windows
.new_PreMiniFrame(*args
, **kwargs
)
512 #---------------------------------------------------------------------------
514 SPLASH_CENTRE_ON_PARENT
= _windows
.SPLASH_CENTRE_ON_PARENT
515 SPLASH_CENTRE_ON_SCREEN
= _windows
.SPLASH_CENTRE_ON_SCREEN
516 SPLASH_NO_CENTRE
= _windows
.SPLASH_NO_CENTRE
517 SPLASH_TIMEOUT
= _windows
.SPLASH_TIMEOUT
518 SPLASH_NO_TIMEOUT
= _windows
.SPLASH_NO_TIMEOUT
519 class SplashScreenWindow(core
.Window
):
521 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
522 def __init__(self
, *args
, **kwargs
):
524 __init__(Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
525 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
527 newobj
= _windows
.new_SplashScreenWindow(*args
, **kwargs
)
528 self
.this
= newobj
.this
531 self
._setOORInfo
(self
)
533 def SetBitmap(*args
, **kwargs
):
534 """SetBitmap(Bitmap bitmap)"""
535 return _windows
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
537 def GetBitmap(*args
, **kwargs
):
538 """GetBitmap() -> Bitmap"""
539 return _windows
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
542 class SplashScreenWindowPtr(SplashScreenWindow
):
543 def __init__(self
, this
):
545 if not hasattr(self
,"thisown"): self
.thisown
= 0
546 self
.__class
__ = SplashScreenWindow
547 _windows
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
549 class SplashScreen(Frame
):
551 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
552 def __init__(self
, *args
, **kwargs
):
554 __init__(Bitmap bitmap, long splashStyle, int milliseconds,
555 Window parent, int id, Point pos=DefaultPosition,
556 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
558 newobj
= _windows
.new_SplashScreen(*args
, **kwargs
)
559 self
.this
= newobj
.this
562 self
._setOORInfo
(self
)
564 def GetSplashStyle(*args
, **kwargs
):
565 """GetSplashStyle() -> long"""
566 return _windows
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
568 def GetSplashWindow(*args
, **kwargs
):
569 """GetSplashWindow() -> SplashScreenWindow"""
570 return _windows
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
572 def GetTimeout(*args
, **kwargs
):
573 """GetTimeout() -> int"""
574 return _windows
.SplashScreen_GetTimeout(*args
, **kwargs
)
577 class SplashScreenPtr(SplashScreen
):
578 def __init__(self
, this
):
580 if not hasattr(self
,"thisown"): self
.thisown
= 0
581 self
.__class
__ = SplashScreen
582 _windows
.SplashScreen_swigregister(SplashScreenPtr
)
584 #---------------------------------------------------------------------------
586 class StatusBar(core
.Window
):
588 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
589 def __init__(self
, *args
, **kwargs
):
590 """__init__(Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
591 newobj
= _windows
.new_StatusBar(*args
, **kwargs
)
592 self
.this
= newobj
.this
595 self
._setOORInfo
(self
)
597 def Create(*args
, **kwargs
):
598 """Create(Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
599 return _windows
.StatusBar_Create(*args
, **kwargs
)
601 def SetFieldsCount(*args
, **kwargs
):
602 """SetFieldsCount(int number=1)"""
603 return _windows
.StatusBar_SetFieldsCount(*args
, **kwargs
)
605 def GetFieldsCount(*args
, **kwargs
):
606 """GetFieldsCount() -> int"""
607 return _windows
.StatusBar_GetFieldsCount(*args
, **kwargs
)
609 def SetStatusText(*args
, **kwargs
):
610 """SetStatusText(String text, int number=0)"""
611 return _windows
.StatusBar_SetStatusText(*args
, **kwargs
)
613 def GetStatusText(*args
, **kwargs
):
614 """GetStatusText(int number=0) -> String"""
615 return _windows
.StatusBar_GetStatusText(*args
, **kwargs
)
617 def PushStatusText(*args
, **kwargs
):
618 """PushStatusText(String text, int number=0)"""
619 return _windows
.StatusBar_PushStatusText(*args
, **kwargs
)
621 def PopStatusText(*args
, **kwargs
):
622 """PopStatusText(int number=0)"""
623 return _windows
.StatusBar_PopStatusText(*args
, **kwargs
)
625 def SetStatusWidths(*args
, **kwargs
):
626 """SetStatusWidths(int widths, int widths_field)"""
627 return _windows
.StatusBar_SetStatusWidths(*args
, **kwargs
)
629 def GetFieldRect(*args
, **kwargs
):
630 """GetFieldRect(int i) -> Rect"""
631 return _windows
.StatusBar_GetFieldRect(*args
, **kwargs
)
633 def SetMinHeight(*args
, **kwargs
):
634 """SetMinHeight(int height)"""
635 return _windows
.StatusBar_SetMinHeight(*args
, **kwargs
)
637 def GetBorderX(*args
, **kwargs
):
638 """GetBorderX() -> int"""
639 return _windows
.StatusBar_GetBorderX(*args
, **kwargs
)
641 def GetBorderY(*args
, **kwargs
):
642 """GetBorderY() -> int"""
643 return _windows
.StatusBar_GetBorderY(*args
, **kwargs
)
646 class StatusBarPtr(StatusBar
):
647 def __init__(self
, this
):
649 if not hasattr(self
,"thisown"): self
.thisown
= 0
650 self
.__class
__ = StatusBar
651 _windows
.StatusBar_swigregister(StatusBarPtr
)
653 def PreStatusBar(*args
, **kwargs
):
654 """PreStatusBar() -> StatusBar"""
655 val
= _windows
.new_PreStatusBar(*args
, **kwargs
)
659 #---------------------------------------------------------------------------
661 SP_NOBORDER
= _windows
.SP_NOBORDER
662 SP_NOSASH
= _windows
.SP_NOSASH
663 SP_PERMIT_UNSPLIT
= _windows
.SP_PERMIT_UNSPLIT
664 SP_LIVE_UPDATE
= _windows
.SP_LIVE_UPDATE
665 SP_3DSASH
= _windows
.SP_3DSASH
666 SP_3DBORDER
= _windows
.SP_3DBORDER
667 SP_NO_XP_THEME
= _windows
.SP_NO_XP_THEME
668 SP_BORDER
= _windows
.SP_BORDER
669 SP_3D
= _windows
.SP_3D
670 SPLIT_HORIZONTAL
= _windows
.SPLIT_HORIZONTAL
671 SPLIT_VERTICAL
= _windows
.SPLIT_VERTICAL
672 SPLIT_DRAG_NONE
= _windows
.SPLIT_DRAG_NONE
673 SPLIT_DRAG_DRAGGING
= _windows
.SPLIT_DRAG_DRAGGING
674 SPLIT_DRAG_LEFT_DOWN
= _windows
.SPLIT_DRAG_LEFT_DOWN
675 class SplitterWindow(core
.Window
):
677 wx.SplitterWindow manages up to two subwindows or panes,
678 with an optional vertical or horizontal split which can be
679 used with the mouse or programmatically.
683 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
684 def __init__(self
, *args
, **kwargs
):
686 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
687 long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
689 Constructor. Creates and shows a SplitterWindow.
691 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
692 newobj
= _windows
.new_SplitterWindow(*args
, **kwargs
)
693 self
.this
= newobj
.this
696 self
._setOORInfo
(self
)
698 def Create(*args
, **kwargs
):
700 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
701 long style=SP_3D, String name=SplitterNameStr) -> bool
703 Create the GUI part of the SplitterWindow for the 2-phase create.
705 return _windows
.SplitterWindow_Create(*args
, **kwargs
)
707 def GetWindow1(*args
, **kwargs
):
709 GetWindow1() -> Window
711 Gets the only or left/top pane.
713 return _windows
.SplitterWindow_GetWindow1(*args
, **kwargs
)
715 def GetWindow2(*args
, **kwargs
):
717 GetWindow2() -> Window
719 Gets the right/bottom pane.
721 return _windows
.SplitterWindow_GetWindow2(*args
, **kwargs
)
723 def SetSplitMode(*args
, **kwargs
):
725 SetSplitMode(int mode)
727 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
728 wx.SPLIT_HORIZONTAL. This only sets the internal variable;
729 does not update the display.
731 return _windows
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
733 def GetSplitMode(*args
, **kwargs
):
735 GetSplitMode() -> int
739 return _windows
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
741 def Initialize(*args
, **kwargs
):
743 Initialize(Window window)
745 Initializes the splitter window to have one pane. This
746 should be called if you wish to initially view only a single
747 pane in the splitter window.
749 return _windows
.SplitterWindow_Initialize(*args
, **kwargs
)
751 def SplitVertically(*args
, **kwargs
):
753 SplitVertically(Window window1, Window window2, int sashPosition=0) -> bool
755 Initializes the left and right panes of the splitter window.
757 window1 The left pane.
758 window2 The right pane.
759 sashPosition The initial position of the sash. If this
760 value is positive, it specifies the size
761 of the left pane. If it is negative, it is
762 absolute value gives the size of the right
763 pane. Finally, specify 0 (default) to
764 choose the default position (half of the
767 Returns True if successful, False otherwise (the window was
770 SplitVertically should be called if you wish to initially
771 view two panes. It can also be called at any subsequent
772 time, but the application should check that the window is
773 not currently split using IsSplit.
775 return _windows
.SplitterWindow_SplitVertically(*args
, **kwargs
)
777 def SplitHorizontally(*args
, **kwargs
):
779 SplitHorizontally(Window window1, Window window2, int sashPosition=0) -> bool
781 Initializes the top and bottom panes of the splitter window.
783 window1 The top pane.
784 window2 The bottom pane.
785 sashPosition The initial position of the sash. If this
786 value is positive, it specifies the size
787 of the upper pane. If it is negative, it
788 is absolute value gives the size of the
789 lower pane. Finally, specify 0 (default)
790 to choose the default position (half of
791 the total window height).
793 Returns True if successful, False otherwise (the window was
796 SplitHorizontally should be called if you wish to initially
797 view two panes. It can also be called at any subsequent
798 time, but the application should check that the window is
799 not currently split using IsSplit.
801 return _windows
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
803 def Unsplit(*args
, **kwargs
):
805 Unsplit(Window toRemove=None) -> bool
807 Unsplits the window. Pass the pane to remove, or None to
808 remove the right or bottom pane. Returns True if
809 successful, False otherwise (the window was not split).
811 This function will not actually delete the pane being
812 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
813 for the desired behaviour. By default, the pane being
814 removed is only hidden.
816 return _windows
.SplitterWindow_Unsplit(*args
, **kwargs
)
818 def ReplaceWindow(*args
, **kwargs
):
820 ReplaceWindow(Window winOld, Window winNew) -> bool
822 This function replaces one of the windows managed by the
823 SplitterWindow with another one. It is in general better to
824 use it instead of calling Unsplit() and then resplitting the
825 window back because it will provoke much less flicker. It is
826 valid to call this function whether the splitter has two
829 Both parameters should be non-None and winOld must specify
830 one of the windows managed by the splitter. If the
831 parameters are incorrect or the window couldn't be replaced,
832 False is returned. Otherwise the function will return True,
833 but please notice that it will not Destroy the replaced
834 window and you may wish to do it yourself.
836 return _windows
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
838 def UpdateSize(*args
, **kwargs
):
842 Causes any pending sizing of the sash and child panes to
843 take place immediately.
845 Such resizing normally takes place in idle time, in order to
846 wait for layout to be completed. However, this can cause
847 unacceptable flicker as the panes are resized after the
848 window has been shown. To work around this, you can perform
849 window layout (for example by sending a size event to the
850 parent window), and then call this function, before showing
851 the top-level window.
853 return _windows
.SplitterWindow_UpdateSize(*args
, **kwargs
)
855 def IsSplit(*args
, **kwargs
):
861 return _windows
.SplitterWindow_IsSplit(*args
, **kwargs
)
863 def SetSashSize(*args
, **kwargs
):
865 SetSashSize(int width)
869 return _windows
.SplitterWindow_SetSashSize(*args
, **kwargs
)
871 def SetBorderSize(*args
, **kwargs
):
873 SetBorderSize(int width)
877 return _windows
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
879 def GetSashSize(*args
, **kwargs
):
885 return _windows
.SplitterWindow_GetSashSize(*args
, **kwargs
)
887 def GetBorderSize(*args
, **kwargs
):
889 GetBorderSize() -> int
893 return _windows
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
895 def SetSashPosition(*args
, **kwargs
):
897 SetSashPosition(int position, bool redraw=True)
899 Sets the sash position, in pixels. If redraw is Ttrue then
900 the panes are resized and the sash and border are redrawn.
902 return _windows
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
904 def GetSashPosition(*args
, **kwargs
):
906 GetSashPosition() -> int
908 Returns the surrent sash position.
910 return _windows
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
912 def SetMinimumPaneSize(*args
, **kwargs
):
914 SetMinimumPaneSize(int min)
916 Sets the minimum pane size in pixels.
918 The default minimum pane size is zero, which means that
919 either pane can be reduced to zero by dragging the sash,
920 thus removing one of the panes. To prevent this behaviour (and
921 veto out-of-range sash dragging), set a minimum size,
922 for example 20 pixels. If the wx.SP_PERMIT_UNSPLIT style is
923 used when a splitter window is created, the window may be
924 unsplit even if minimum size is non-zero.
926 return _windows
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
928 def GetMinimumPaneSize(*args
, **kwargs
):
930 GetMinimumPaneSize() -> int
932 Gets the minimum pane size in pixels.
934 return _windows
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
936 def SashHitTest(*args
, **kwargs
):
938 SashHitTest(int x, int y, int tolerance=5) -> bool
940 Tests for x, y over the sash
942 return _windows
.SplitterWindow_SashHitTest(*args
, **kwargs
)
944 def SizeWindows(*args
, **kwargs
):
950 return _windows
.SplitterWindow_SizeWindows(*args
, **kwargs
)
952 def SetNeedUpdating(*args
, **kwargs
):
953 """SetNeedUpdating(bool needUpdating)"""
954 return _windows
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
956 def GetNeedUpdating(*args
, **kwargs
):
957 """GetNeedUpdating() -> bool"""
958 return _windows
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
961 class SplitterWindowPtr(SplitterWindow
):
962 def __init__(self
, this
):
964 if not hasattr(self
,"thisown"): self
.thisown
= 0
965 self
.__class
__ = SplitterWindow
966 _windows
.SplitterWindow_swigregister(SplitterWindowPtr
)
967 SplitterNameStr
= cvar
.SplitterNameStr
969 def PreSplitterWindow(*args
, **kwargs
):
971 PreSplitterWindow() -> SplitterWindow
973 Precreate a SplitterWindow for 2-phase creation.
975 val
= _windows
.new_PreSplitterWindow(*args
, **kwargs
)
979 class SplitterEvent(core
.NotifyEvent
):
980 """This class represents the events generated by a splitter control."""
982 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
983 def __init__(self
, *args
, **kwargs
):
985 __init__(wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
987 This class represents the events generated by a splitter control.
989 newobj
= _windows
.new_SplitterEvent(*args
, **kwargs
)
990 self
.this
= newobj
.this
993 def SetSashPosition(*args
, **kwargs
):
995 SetSashPosition(int pos)
997 This funciton is only meaningful during
998 EVT_SPLITTER_SASH_POS_CHANGING and
999 EVT_SPLITTER_SASH_POS_CHANGED events. In the case of
1000 _CHANGED events, sets the the new sash position. In the case
1001 of _CHANGING events, sets the new tracking bar position so
1002 visual feedback during dragging will represent that change
1003 that will actually take place. Set to -1 from the event
1004 handler code to prevent repositioning.
1006 return _windows
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1008 def GetSashPosition(*args
, **kwargs
):
1010 GetSashPosition() -> int
1012 Returns the new sash position while in
1013 EVT_SPLITTER_SASH_POS_CHANGING and
1014 EVT_SPLITTER_SASH_POS_CHANGED events.
1016 return _windows
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1018 def GetWindowBeingRemoved(*args
, **kwargs
):
1020 GetWindowBeingRemoved() -> Window
1022 Returns a pointer to the window being removed when a
1023 splitter window is unsplit.
1025 return _windows
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1027 def GetX(*args
, **kwargs
):
1031 Returns the x coordinate of the double-click point in a
1032 EVT_SPLITTER_DCLICK event.
1034 return _windows
.SplitterEvent_GetX(*args
, **kwargs
)
1036 def GetY(*args
, **kwargs
):
1040 Returns the y coordinate of the double-click point in a
1041 EVT_SPLITTER_DCLICK event.
1043 return _windows
.SplitterEvent_GetY(*args
, **kwargs
)
1046 class SplitterEventPtr(SplitterEvent
):
1047 def __init__(self
, this
):
1049 if not hasattr(self
,"thisown"): self
.thisown
= 0
1050 self
.__class
__ = SplitterEvent
1051 _windows
.SplitterEvent_swigregister(SplitterEventPtr
)
1053 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1054 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1055 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1056 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1057 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1058 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1059 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1060 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1061 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1063 #---------------------------------------------------------------------------
1065 SASH_DRAG_NONE
= _windows
.SASH_DRAG_NONE
1066 SASH_DRAG_DRAGGING
= _windows
.SASH_DRAG_DRAGGING
1067 SASH_DRAG_LEFT_DOWN
= _windows
.SASH_DRAG_LEFT_DOWN
1068 SW_NOBORDER
= _windows
.SW_NOBORDER
1069 SW_BORDER
= _windows
.SW_BORDER
1070 SW_3DSASH
= _windows
.SW_3DSASH
1071 SW_3DBORDER
= _windows
.SW_3DBORDER
1072 SW_3D
= _windows
.SW_3D
1073 SASH_TOP
= _windows
.SASH_TOP
1074 SASH_RIGHT
= _windows
.SASH_RIGHT
1075 SASH_BOTTOM
= _windows
.SASH_BOTTOM
1076 SASH_LEFT
= _windows
.SASH_LEFT
1077 SASH_NONE
= _windows
.SASH_NONE
1078 class SashWindow(core
.Window
):
1080 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1081 def __init__(self
, *args
, **kwargs
):
1083 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1084 long style=wxCLIP_CHILDREN|wxSW_3D,
1085 String name=SashNameStr) -> SashWindow
1087 newobj
= _windows
.new_SashWindow(*args
, **kwargs
)
1088 self
.this
= newobj
.this
1091 self
._setOORInfo
(self
)
1093 def Create(*args
, **kwargs
):
1095 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1096 long style=wxCLIP_CHILDREN|wxSW_3D,
1097 String name=SashNameStr) -> bool
1099 return _windows
.SashWindow_Create(*args
, **kwargs
)
1101 def SetSashVisible(*args
, **kwargs
):
1102 """SetSashVisible(int edge, bool sash)"""
1103 return _windows
.SashWindow_SetSashVisible(*args
, **kwargs
)
1105 def GetSashVisible(*args
, **kwargs
):
1106 """GetSashVisible(int edge) -> bool"""
1107 return _windows
.SashWindow_GetSashVisible(*args
, **kwargs
)
1109 def SetSashBorder(*args
, **kwargs
):
1110 """SetSashBorder(int edge, bool border)"""
1111 return _windows
.SashWindow_SetSashBorder(*args
, **kwargs
)
1113 def HasBorder(*args
, **kwargs
):
1114 """HasBorder(int edge) -> bool"""
1115 return _windows
.SashWindow_HasBorder(*args
, **kwargs
)
1117 def GetEdgeMargin(*args
, **kwargs
):
1118 """GetEdgeMargin(int edge) -> int"""
1119 return _windows
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1121 def SetDefaultBorderSize(*args
, **kwargs
):
1122 """SetDefaultBorderSize(int width)"""
1123 return _windows
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1125 def GetDefaultBorderSize(*args
, **kwargs
):
1126 """GetDefaultBorderSize() -> int"""
1127 return _windows
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1129 def SetExtraBorderSize(*args
, **kwargs
):
1130 """SetExtraBorderSize(int width)"""
1131 return _windows
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1133 def GetExtraBorderSize(*args
, **kwargs
):
1134 """GetExtraBorderSize() -> int"""
1135 return _windows
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1137 def SetMinimumSizeX(*args
, **kwargs
):
1138 """SetMinimumSizeX(int min)"""
1139 return _windows
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1141 def SetMinimumSizeY(*args
, **kwargs
):
1142 """SetMinimumSizeY(int min)"""
1143 return _windows
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1145 def GetMinimumSizeX(*args
, **kwargs
):
1146 """GetMinimumSizeX() -> int"""
1147 return _windows
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1149 def GetMinimumSizeY(*args
, **kwargs
):
1150 """GetMinimumSizeY() -> int"""
1151 return _windows
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1153 def SetMaximumSizeX(*args
, **kwargs
):
1154 """SetMaximumSizeX(int max)"""
1155 return _windows
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1157 def SetMaximumSizeY(*args
, **kwargs
):
1158 """SetMaximumSizeY(int max)"""
1159 return _windows
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1161 def GetMaximumSizeX(*args
, **kwargs
):
1162 """GetMaximumSizeX() -> int"""
1163 return _windows
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1165 def GetMaximumSizeY(*args
, **kwargs
):
1166 """GetMaximumSizeY() -> int"""
1167 return _windows
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1169 def SashHitTest(*args
, **kwargs
):
1170 """SashHitTest(int x, int y, int tolerance=2) -> int"""
1171 return _windows
.SashWindow_SashHitTest(*args
, **kwargs
)
1173 def SizeWindows(*args
, **kwargs
):
1175 return _windows
.SashWindow_SizeWindows(*args
, **kwargs
)
1178 class SashWindowPtr(SashWindow
):
1179 def __init__(self
, this
):
1181 if not hasattr(self
,"thisown"): self
.thisown
= 0
1182 self
.__class
__ = SashWindow
1183 _windows
.SashWindow_swigregister(SashWindowPtr
)
1184 SashNameStr
= cvar
.SashNameStr
1185 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1187 def PreSashWindow(*args
, **kwargs
):
1188 """PreSashWindow() -> SashWindow"""
1189 val
= _windows
.new_PreSashWindow(*args
, **kwargs
)
1193 SASH_STATUS_OK
= _windows
.SASH_STATUS_OK
1194 SASH_STATUS_OUT_OF_RANGE
= _windows
.SASH_STATUS_OUT_OF_RANGE
1195 class SashEvent(core
.CommandEvent
):
1197 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1198 def __init__(self
, *args
, **kwargs
):
1199 """__init__(int id=0, int edge=SASH_NONE) -> SashEvent"""
1200 newobj
= _windows
.new_SashEvent(*args
, **kwargs
)
1201 self
.this
= newobj
.this
1204 def SetEdge(*args
, **kwargs
):
1205 """SetEdge(int edge)"""
1206 return _windows
.SashEvent_SetEdge(*args
, **kwargs
)
1208 def GetEdge(*args
, **kwargs
):
1209 """GetEdge() -> int"""
1210 return _windows
.SashEvent_GetEdge(*args
, **kwargs
)
1212 def SetDragRect(*args
, **kwargs
):
1213 """SetDragRect(Rect rect)"""
1214 return _windows
.SashEvent_SetDragRect(*args
, **kwargs
)
1216 def GetDragRect(*args
, **kwargs
):
1217 """GetDragRect() -> Rect"""
1218 return _windows
.SashEvent_GetDragRect(*args
, **kwargs
)
1220 def SetDragStatus(*args
, **kwargs
):
1221 """SetDragStatus(int status)"""
1222 return _windows
.SashEvent_SetDragStatus(*args
, **kwargs
)
1224 def GetDragStatus(*args
, **kwargs
):
1225 """GetDragStatus() -> int"""
1226 return _windows
.SashEvent_GetDragStatus(*args
, **kwargs
)
1229 class SashEventPtr(SashEvent
):
1230 def __init__(self
, this
):
1232 if not hasattr(self
,"thisown"): self
.thisown
= 0
1233 self
.__class
__ = SashEvent
1234 _windows
.SashEvent_swigregister(SashEventPtr
)
1236 wxEVT_SASH_DRAGGED
= _windows
.wxEVT_SASH_DRAGGED
1237 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1238 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1240 #---------------------------------------------------------------------------
1242 LAYOUT_HORIZONTAL
= _windows
.LAYOUT_HORIZONTAL
1243 LAYOUT_VERTICAL
= _windows
.LAYOUT_VERTICAL
1244 LAYOUT_NONE
= _windows
.LAYOUT_NONE
1245 LAYOUT_TOP
= _windows
.LAYOUT_TOP
1246 LAYOUT_LEFT
= _windows
.LAYOUT_LEFT
1247 LAYOUT_RIGHT
= _windows
.LAYOUT_RIGHT
1248 LAYOUT_BOTTOM
= _windows
.LAYOUT_BOTTOM
1249 LAYOUT_LENGTH_Y
= _windows
.LAYOUT_LENGTH_Y
1250 LAYOUT_LENGTH_X
= _windows
.LAYOUT_LENGTH_X
1251 LAYOUT_MRU_LENGTH
= _windows
.LAYOUT_MRU_LENGTH
1252 LAYOUT_QUERY
= _windows
.LAYOUT_QUERY
1253 wxEVT_QUERY_LAYOUT_INFO
= _windows
.wxEVT_QUERY_LAYOUT_INFO
1254 wxEVT_CALCULATE_LAYOUT
= _windows
.wxEVT_CALCULATE_LAYOUT
1255 class QueryLayoutInfoEvent(core
.Event
):
1257 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1258 def __init__(self
, *args
, **kwargs
):
1259 """__init__(int id=0) -> QueryLayoutInfoEvent"""
1260 newobj
= _windows
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1261 self
.this
= newobj
.this
1264 def SetRequestedLength(*args
, **kwargs
):
1265 """SetRequestedLength(int length)"""
1266 return _windows
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1268 def GetRequestedLength(*args
, **kwargs
):
1269 """GetRequestedLength() -> int"""
1270 return _windows
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1272 def SetFlags(*args
, **kwargs
):
1273 """SetFlags(int flags)"""
1274 return _windows
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1276 def GetFlags(*args
, **kwargs
):
1277 """GetFlags() -> int"""
1278 return _windows
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1280 def SetSize(*args
, **kwargs
):
1281 """SetSize(Size size)"""
1282 return _windows
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1284 def GetSize(*args
, **kwargs
):
1285 """GetSize() -> Size"""
1286 return _windows
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1288 def SetOrientation(*args
, **kwargs
):
1289 """SetOrientation(int orient)"""
1290 return _windows
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1292 def GetOrientation(*args
, **kwargs
):
1293 """GetOrientation() -> int"""
1294 return _windows
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1296 def SetAlignment(*args
, **kwargs
):
1297 """SetAlignment(int align)"""
1298 return _windows
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1300 def GetAlignment(*args
, **kwargs
):
1301 """GetAlignment() -> int"""
1302 return _windows
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1305 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1306 def __init__(self
, this
):
1308 if not hasattr(self
,"thisown"): self
.thisown
= 0
1309 self
.__class
__ = QueryLayoutInfoEvent
1310 _windows
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1312 class CalculateLayoutEvent(core
.Event
):
1314 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1315 def __init__(self
, *args
, **kwargs
):
1316 """__init__(int id=0) -> CalculateLayoutEvent"""
1317 newobj
= _windows
.new_CalculateLayoutEvent(*args
, **kwargs
)
1318 self
.this
= newobj
.this
1321 def SetFlags(*args
, **kwargs
):
1322 """SetFlags(int flags)"""
1323 return _windows
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1325 def GetFlags(*args
, **kwargs
):
1326 """GetFlags() -> int"""
1327 return _windows
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1329 def SetRect(*args
, **kwargs
):
1330 """SetRect(Rect rect)"""
1331 return _windows
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1333 def GetRect(*args
, **kwargs
):
1334 """GetRect() -> Rect"""
1335 return _windows
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1338 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1339 def __init__(self
, this
):
1341 if not hasattr(self
,"thisown"): self
.thisown
= 0
1342 self
.__class
__ = CalculateLayoutEvent
1343 _windows
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1345 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1346 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1348 class SashLayoutWindow(SashWindow
):
1350 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1351 def __init__(self
, *args
, **kwargs
):
1353 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1354 long style=wxCLIP_CHILDREN|wxSW_3D,
1355 String name=SashLayoutNameStr) -> SashLayoutWindow
1357 newobj
= _windows
.new_SashLayoutWindow(*args
, **kwargs
)
1358 self
.this
= newobj
.this
1361 self
._setOORInfo
(self
)
1363 def Create(*args
, **kwargs
):
1365 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1366 long style=wxCLIP_CHILDREN|wxSW_3D,
1367 String name=SashLayoutNameStr) -> bool
1369 return _windows
.SashLayoutWindow_Create(*args
, **kwargs
)
1371 def GetAlignment(*args
, **kwargs
):
1372 """GetAlignment() -> int"""
1373 return _windows
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1375 def GetOrientation(*args
, **kwargs
):
1376 """GetOrientation() -> int"""
1377 return _windows
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1379 def SetAlignment(*args
, **kwargs
):
1380 """SetAlignment(int alignment)"""
1381 return _windows
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1383 def SetDefaultSize(*args
, **kwargs
):
1384 """SetDefaultSize(Size size)"""
1385 return _windows
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1387 def SetOrientation(*args
, **kwargs
):
1388 """SetOrientation(int orientation)"""
1389 return _windows
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1392 class SashLayoutWindowPtr(SashLayoutWindow
):
1393 def __init__(self
, this
):
1395 if not hasattr(self
,"thisown"): self
.thisown
= 0
1396 self
.__class
__ = SashLayoutWindow
1397 _windows
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1399 def PreSashLayoutWindow(*args
, **kwargs
):
1400 """PreSashLayoutWindow() -> SashLayoutWindow"""
1401 val
= _windows
.new_PreSashLayoutWindow(*args
, **kwargs
)
1405 class LayoutAlgorithm(core
.Object
):
1407 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1408 def __init__(self
, *args
, **kwargs
):
1409 """__init__() -> LayoutAlgorithm"""
1410 newobj
= _windows
.new_LayoutAlgorithm(*args
, **kwargs
)
1411 self
.this
= newobj
.this
1414 def __del__(self
, destroy
=_windows
.delete_LayoutAlgorithm
):
1417 if self
.thisown
: destroy(self
)
1420 def LayoutMDIFrame(*args
, **kwargs
):
1421 """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool"""
1422 return _windows
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1424 def LayoutFrame(*args
, **kwargs
):
1425 """LayoutFrame(Frame frame, Window mainWindow=None) -> bool"""
1426 return _windows
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1428 def LayoutWindow(*args
, **kwargs
):
1429 """LayoutWindow(Window parent, Window mainWindow=None) -> bool"""
1430 return _windows
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1433 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1434 def __init__(self
, this
):
1436 if not hasattr(self
,"thisown"): self
.thisown
= 0
1437 self
.__class
__ = LayoutAlgorithm
1438 _windows
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1440 class PopupWindow(core
.Window
):
1442 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1443 def __init__(self
, *args
, **kwargs
):
1444 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1445 newobj
= _windows
.new_PopupWindow(*args
, **kwargs
)
1446 self
.this
= newobj
.this
1450 class PopupWindowPtr(PopupWindow
):
1451 def __init__(self
, this
):
1453 if not hasattr(self
,"thisown"): self
.thisown
= 0
1454 self
.__class
__ = PopupWindow
1455 _windows
.PopupWindow_swigregister(PopupWindowPtr
)
1457 def PrePopupWindow(*args
, **kwargs
):
1458 """PrePopupWindow() -> PopupWindow"""
1459 val
= _windows
.new_PrePopupWindow(*args
, **kwargs
)
1463 class PopupTransientWindow(PopupWindow
):
1465 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1466 def __init__(self
, *args
, **kwargs
):
1467 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1468 newobj
= _windows
.new_PopupTransientWindow(*args
, **kwargs
)
1469 self
.this
= newobj
.this
1473 class PopupTransientWindowPtr(PopupTransientWindow
):
1474 def __init__(self
, this
):
1476 if not hasattr(self
,"thisown"): self
.thisown
= 0
1477 self
.__class
__ = PopupTransientWindow
1478 _windows
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1480 def PrePopupTransientWindow(*args
, **kwargs
):
1481 """PrePopupTransientWindow() -> PopupTransientWindow"""
1482 val
= _windows
.new_PrePopupTransientWindow(*args
, **kwargs
)
1486 #---------------------------------------------------------------------------
1488 class TipWindow(Frame
):
1490 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1491 def __init__(self
, *args
, **kwargs
):
1492 """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1493 newobj
= _windows
.new_TipWindow(*args
, **kwargs
)
1494 self
.this
= newobj
.this
1497 self
._setOORInfo
(self
)
1499 def SetBoundingRect(*args
, **kwargs
):
1500 """SetBoundingRect(Rect rectBound)"""
1501 return _windows
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1503 def Close(*args
, **kwargs
):
1505 return _windows
.TipWindow_Close(*args
, **kwargs
)
1508 class TipWindowPtr(TipWindow
):
1509 def __init__(self
, this
):
1511 if not hasattr(self
,"thisown"): self
.thisown
= 0
1512 self
.__class
__ = TipWindow
1513 _windows
.TipWindow_swigregister(TipWindowPtr
)
1515 #---------------------------------------------------------------------------
1517 class VScrolledWindow(Panel
):
1519 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1520 def __init__(self
, *args
, **kwargs
):
1522 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1523 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1525 newobj
= _windows
.new_VScrolledWindow(*args
, **kwargs
)
1526 self
.this
= newobj
.this
1529 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1531 def _setCallbackInfo(*args
, **kwargs
):
1532 """_setCallbackInfo(PyObject self, PyObject _class)"""
1533 return _windows
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1535 def Create(*args
, **kwargs
):
1537 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1538 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1540 return _windows
.VScrolledWindow_Create(*args
, **kwargs
)
1542 def SetLineCount(*args
, **kwargs
):
1543 """SetLineCount(size_t count)"""
1544 return _windows
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1546 def ScrollToLine(*args
, **kwargs
):
1547 """ScrollToLine(size_t line) -> bool"""
1548 return _windows
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1550 def ScrollLines(*args
, **kwargs
):
1552 ScrollLines(int lines) -> bool
1554 If the platform and window class supports it, scrolls the window by
1555 the given number of lines down, if lines is positive, or up if lines
1556 is negative. Returns True if the window was scrolled, False if it was
1557 already on top/bottom and nothing was done.
1559 return _windows
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1561 def ScrollPages(*args
, **kwargs
):
1563 ScrollPages(int pages) -> bool
1565 If the platform and window class supports it, scrolls the window by
1566 the given number of pages down, if pages is positive, or up if pages
1567 is negative. Returns True if the window was scrolled, False if it was
1568 already on top/bottom and nothing was done.
1570 return _windows
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1572 def RefreshLine(*args
, **kwargs
):
1573 """RefreshLine(size_t line)"""
1574 return _windows
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1576 def RefreshLines(*args
, **kwargs
):
1577 """RefreshLines(size_t from, size_t to)"""
1578 return _windows
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1580 def HitTestXT(*args
, **kwargs
):
1582 HitTestXT(int x, int y) -> int
1584 Test where the given (in client coords) point lies
1586 return _windows
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1588 def HitTest(*args
, **kwargs
):
1590 HitTest(Point pt) -> int
1592 Test where the given (in client coords) point lies
1594 return _windows
.VScrolledWindow_HitTest(*args
, **kwargs
)
1596 def RefreshAll(*args
, **kwargs
):
1598 return _windows
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1600 def GetLineCount(*args
, **kwargs
):
1601 """GetLineCount() -> size_t"""
1602 return _windows
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1604 def GetFirstVisibleLine(*args
, **kwargs
):
1605 """GetFirstVisibleLine() -> size_t"""
1606 return _windows
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1608 def GetLastVisibleLine(*args
, **kwargs
):
1609 """GetLastVisibleLine() -> size_t"""
1610 return _windows
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1612 def IsVisible(*args
, **kwargs
):
1613 """IsVisible(size_t line) -> bool"""
1614 return _windows
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1617 class VScrolledWindowPtr(VScrolledWindow
):
1618 def __init__(self
, this
):
1620 if not hasattr(self
,"thisown"): self
.thisown
= 0
1621 self
.__class
__ = VScrolledWindow
1622 _windows
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1624 def PreVScrolledWindow(*args
, **kwargs
):
1625 """PreVScrolledWindow() -> VScrolledWindow"""
1626 val
= _windows
.new_PreVScrolledWindow(*args
, **kwargs
)
1630 class VListBox(VScrolledWindow
):
1632 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1633 def __init__(self
, *args
, **kwargs
):
1635 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1636 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1638 newobj
= _windows
.new_VListBox(*args
, **kwargs
)
1639 self
.this
= newobj
.this
1642 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1644 def _setCallbackInfo(*args
, **kwargs
):
1645 """_setCallbackInfo(PyObject self, PyObject _class)"""
1646 return _windows
.VListBox__setCallbackInfo(*args
, **kwargs
)
1648 def Create(*args
, **kwargs
):
1650 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1651 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1653 return _windows
.VListBox_Create(*args
, **kwargs
)
1655 def GetItemCount(*args
, **kwargs
):
1656 """GetItemCount() -> size_t"""
1657 return _windows
.VListBox_GetItemCount(*args
, **kwargs
)
1659 def HasMultipleSelection(*args
, **kwargs
):
1660 """HasMultipleSelection() -> bool"""
1661 return _windows
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1663 def GetSelection(*args
, **kwargs
):
1664 """GetSelection() -> int"""
1665 return _windows
.VListBox_GetSelection(*args
, **kwargs
)
1667 def IsCurrent(*args
, **kwargs
):
1668 """IsCurrent(size_t item) -> bool"""
1669 return _windows
.VListBox_IsCurrent(*args
, **kwargs
)
1671 def IsSelected(*args
, **kwargs
):
1672 """IsSelected(size_t item) -> bool"""
1673 return _windows
.VListBox_IsSelected(*args
, **kwargs
)
1675 def GetSelectedCount(*args
, **kwargs
):
1676 """GetSelectedCount() -> size_t"""
1677 return _windows
.VListBox_GetSelectedCount(*args
, **kwargs
)
1679 def GetFirstSelected(*args
, **kwargs
):
1680 """GetFirstSelected(unsigned long cookie) -> int"""
1681 return _windows
.VListBox_GetFirstSelected(*args
, **kwargs
)
1683 def GetNextSelected(*args
, **kwargs
):
1684 """GetNextSelected(unsigned long cookie) -> int"""
1685 return _windows
.VListBox_GetNextSelected(*args
, **kwargs
)
1687 def GetMargins(*args
, **kwargs
):
1688 """GetMargins() -> Point"""
1689 return _windows
.VListBox_GetMargins(*args
, **kwargs
)
1691 def GetSelectionBackground(*args
, **kwargs
):
1692 """GetSelectionBackground() -> Colour"""
1693 return _windows
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1695 def SetItemCount(*args
, **kwargs
):
1696 """SetItemCount(size_t count)"""
1697 return _windows
.VListBox_SetItemCount(*args
, **kwargs
)
1699 def Clear(*args
, **kwargs
):
1701 return _windows
.VListBox_Clear(*args
, **kwargs
)
1703 def SetSelection(*args
, **kwargs
):
1704 """SetSelection(int selection)"""
1705 return _windows
.VListBox_SetSelection(*args
, **kwargs
)
1707 def Select(*args
, **kwargs
):
1708 """Select(size_t item, bool select=True) -> bool"""
1709 return _windows
.VListBox_Select(*args
, **kwargs
)
1711 def SelectRange(*args
, **kwargs
):
1712 """SelectRange(size_t from, size_t to) -> bool"""
1713 return _windows
.VListBox_SelectRange(*args
, **kwargs
)
1715 def Toggle(*args
, **kwargs
):
1716 """Toggle(size_t item)"""
1717 return _windows
.VListBox_Toggle(*args
, **kwargs
)
1719 def SelectAll(*args
, **kwargs
):
1720 """SelectAll() -> bool"""
1721 return _windows
.VListBox_SelectAll(*args
, **kwargs
)
1723 def DeselectAll(*args
, **kwargs
):
1724 """DeselectAll() -> bool"""
1725 return _windows
.VListBox_DeselectAll(*args
, **kwargs
)
1727 def SetMargins(*args
, **kwargs
):
1728 """SetMargins(Point pt)"""
1729 return _windows
.VListBox_SetMargins(*args
, **kwargs
)
1731 def SetMarginsXY(*args
, **kwargs
):
1732 """SetMarginsXY(int x, int y)"""
1733 return _windows
.VListBox_SetMarginsXY(*args
, **kwargs
)
1735 def SetSelectionBackground(*args
, **kwargs
):
1736 """SetSelectionBackground(Colour col)"""
1737 return _windows
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1740 class VListBoxPtr(VListBox
):
1741 def __init__(self
, this
):
1743 if not hasattr(self
,"thisown"): self
.thisown
= 0
1744 self
.__class
__ = VListBox
1745 _windows
.VListBox_swigregister(VListBoxPtr
)
1746 VListBoxNameStr
= cvar
.VListBoxNameStr
1748 def PreVListBox(*args
, **kwargs
):
1749 """PreVListBox() -> VListBox"""
1750 val
= _windows
.new_PreVListBox(*args
, **kwargs
)
1754 class HtmlListBox(VListBox
):
1756 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1757 def __init__(self
, *args
, **kwargs
):
1759 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1760 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1762 newobj
= _windows
.new_HtmlListBox(*args
, **kwargs
)
1763 self
.this
= newobj
.this
1766 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1768 def _setCallbackInfo(*args
, **kwargs
):
1769 """_setCallbackInfo(PyObject self, PyObject _class)"""
1770 return _windows
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1772 def Create(*args
, **kwargs
):
1774 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1775 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1777 return _windows
.HtmlListBox_Create(*args
, **kwargs
)
1779 def RefreshAll(*args
, **kwargs
):
1781 return _windows
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1783 def SetItemCount(*args
, **kwargs
):
1784 """SetItemCount(size_t count)"""
1785 return _windows
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1788 class HtmlListBoxPtr(HtmlListBox
):
1789 def __init__(self
, this
):
1791 if not hasattr(self
,"thisown"): self
.thisown
= 0
1792 self
.__class
__ = HtmlListBox
1793 _windows
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1795 def PreHtmlListBox(*args
, **kwargs
):
1796 """PreHtmlListBox() -> HtmlListBox"""
1797 val
= _windows
.new_PreHtmlListBox(*args
, **kwargs
)
1801 #---------------------------------------------------------------------------
1803 class TaskBarIcon(core
.EvtHandler
):
1805 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1806 def __init__(self
, *args
, **kwargs
):
1807 """__init__() -> TaskBarIcon"""
1808 newobj
= _windows
.new_TaskBarIcon(*args
, **kwargs
)
1809 self
.this
= newobj
.this
1812 def __del__(self
, destroy
=_windows
.delete_TaskBarIcon
):
1815 if self
.thisown
: destroy(self
)
1819 class TaskBarIconPtr(TaskBarIcon
):
1820 def __init__(self
, this
):
1822 if not hasattr(self
,"thisown"): self
.thisown
= 0
1823 self
.__class
__ = TaskBarIcon
1824 _windows
.TaskBarIcon_swigregister(TaskBarIconPtr
)
1826 class TaskBarIconEvent(core
.Event
):
1828 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1829 def __init__(self
, *args
, **kwargs
):
1830 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
1831 newobj
= _windows
.new_TaskBarIconEvent(*args
, **kwargs
)
1832 self
.this
= newobj
.this
1836 class TaskBarIconEventPtr(TaskBarIconEvent
):
1837 def __init__(self
, this
):
1839 if not hasattr(self
,"thisown"): self
.thisown
= 0
1840 self
.__class
__ = TaskBarIconEvent
1841 _windows
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
1843 wxEVT_TASKBAR_MOVE
= _windows
.wxEVT_TASKBAR_MOVE
1844 wxEVT_TASKBAR_LEFT_DOWN
= _windows
.wxEVT_TASKBAR_LEFT_DOWN
1845 wxEVT_TASKBAR_LEFT_UP
= _windows
.wxEVT_TASKBAR_LEFT_UP
1846 wxEVT_TASKBAR_RIGHT_DOWN
= _windows
.wxEVT_TASKBAR_RIGHT_DOWN
1847 wxEVT_TASKBAR_RIGHT_UP
= _windows
.wxEVT_TASKBAR_RIGHT_UP
1848 wxEVT_TASKBAR_LEFT_DCLICK
= _windows
.wxEVT_TASKBAR_LEFT_DCLICK
1849 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows
.wxEVT_TASKBAR_RIGHT_DCLICK
1850 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
1851 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
1852 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
1853 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
1854 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
1855 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
1856 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
1858 #---------------------------------------------------------------------------
1860 class ColourData(core
.Object
):
1861 """This class holds a variety of information related to colour dialogs."""
1863 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1864 def __init__(self
, *args
, **kwargs
):
1866 __init__() -> ColourData
1868 Constructor, sets default values.
1870 newobj
= _windows
.new_ColourData(*args
, **kwargs
)
1871 self
.this
= newobj
.this
1874 def __del__(self
, destroy
=_windows
.delete_ColourData
):
1877 if self
.thisown
: destroy(self
)
1880 def GetChooseFull(*args
, **kwargs
):
1882 GetChooseFull() -> bool
1884 Under Windows, determines whether the Windows colour dialog will display
1885 the full dialog with custom colour selection controls. Has no meaning
1886 under other platforms. The default value is true.
1888 return _windows
.ColourData_GetChooseFull(*args
, **kwargs
)
1890 def GetColour(*args
, **kwargs
):
1892 GetColour() -> Colour
1894 Gets the colour (pre)selected by the dialog.
1896 return _windows
.ColourData_GetColour(*args
, **kwargs
)
1898 def GetCustomColour(*args
, **kwargs
):
1900 GetCustomColour(int i) -> Colour
1902 Gets the i'th custom colour associated with the colour dialog. i should
1903 be an integer between 0 and 15. The default custom colours are all white.
1905 return _windows
.ColourData_GetCustomColour(*args
, **kwargs
)
1907 def SetChooseFull(*args
, **kwargs
):
1909 SetChooseFull(int flag)
1911 Under Windows, tells the Windows colour dialog to display the full dialog
1912 with custom colour selection controls. Under other platforms, has no effect.
1913 The default value is true.
1915 return _windows
.ColourData_SetChooseFull(*args
, **kwargs
)
1917 def SetColour(*args
, **kwargs
):
1919 SetColour(Colour colour)
1921 Sets the default colour for the colour dialog. The default colour is black.
1923 return _windows
.ColourData_SetColour(*args
, **kwargs
)
1925 def SetCustomColour(*args
, **kwargs
):
1927 SetCustomColour(int i, Colour colour)
1929 Sets the i'th custom colour for the colour dialog. i should be an integer
1930 between 0 and 15. The default custom colours are all white.
1932 return _windows
.ColourData_SetCustomColour(*args
, **kwargs
)
1935 class ColourDataPtr(ColourData
):
1936 def __init__(self
, this
):
1938 if not hasattr(self
,"thisown"): self
.thisown
= 0
1939 self
.__class
__ = ColourData
1940 _windows
.ColourData_swigregister(ColourDataPtr
)
1941 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
1942 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
1943 DirDialogNameStr
= cvar
.DirDialogNameStr
1944 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
1945 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
1946 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
1948 class ColourDialog(Dialog
):
1949 """This class represents the colour chooser dialog."""
1951 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1952 def __init__(self
, *args
, **kwargs
):
1954 __init__(Window parent, ColourData data=None) -> ColourDialog
1956 Constructor. Pass a parent window, and optionally a ColourData, which
1957 will be copied to the colour dialog's internal ColourData instance.
1959 newobj
= _windows
.new_ColourDialog(*args
, **kwargs
)
1960 self
.this
= newobj
.this
1963 self
._setOORInfo
(self
)
1965 def GetColourData(*args
, **kwargs
):
1967 GetColourData() -> ColourData
1969 Returns a reference to the ColourData used by the dialog.
1971 return _windows
.ColourDialog_GetColourData(*args
, **kwargs
)
1974 class ColourDialogPtr(ColourDialog
):
1975 def __init__(self
, this
):
1977 if not hasattr(self
,"thisown"): self
.thisown
= 0
1978 self
.__class
__ = ColourDialog
1979 _windows
.ColourDialog_swigregister(ColourDialogPtr
)
1981 class DirDialog(Dialog
):
1982 """This class represents the directory chooser dialog."""
1984 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1985 def __init__(self
, *args
, **kwargs
):
1987 __init__(Window parent, String message=DirSelectorPromptStr,
1988 String defaultPath=EmptyString, long style=0,
1989 Point pos=DefaultPosition, Size size=DefaultSize,
1990 String name=DirDialogNameStr) -> DirDialog
1992 Constructor. Use ShowModal method to show the dialog.
1994 newobj
= _windows
.new_DirDialog(*args
, **kwargs
)
1995 self
.this
= newobj
.this
1998 self
._setOORInfo
(self
)
2000 def GetPath(*args
, **kwargs
):
2004 Returns the default or user-selected path.
2006 return _windows
.DirDialog_GetPath(*args
, **kwargs
)
2008 def GetMessage(*args
, **kwargs
):
2010 GetMessage() -> String
2012 Returns the message that will be displayed on the dialog.
2014 return _windows
.DirDialog_GetMessage(*args
, **kwargs
)
2016 def GetStyle(*args
, **kwargs
):
2020 Returns the dialog style.
2022 return _windows
.DirDialog_GetStyle(*args
, **kwargs
)
2024 def SetMessage(*args
, **kwargs
):
2026 SetMessage(String message)
2028 Sets the message that will be displayed on the dialog.
2030 return _windows
.DirDialog_SetMessage(*args
, **kwargs
)
2032 def SetPath(*args
, **kwargs
):
2034 SetPath(String path)
2036 Sets the default path.
2038 return _windows
.DirDialog_SetPath(*args
, **kwargs
)
2041 class DirDialogPtr(DirDialog
):
2042 def __init__(self
, this
):
2044 if not hasattr(self
,"thisown"): self
.thisown
= 0
2045 self
.__class
__ = DirDialog
2046 _windows
.DirDialog_swigregister(DirDialogPtr
)
2048 class FileDialog(Dialog
):
2049 """This class represents the file chooser dialog."""
2051 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2052 def __init__(self
, *args
, **kwargs
):
2054 __init__(Window parent, String message=FileSelectorPromptStr,
2055 String defaultDir=EmptyString, String defaultFile=EmptyString,
2056 String wildcard=FileSelectorDefaultWildcardStr,
2057 long style=0, Point pos=DefaultPosition) -> FileDialog
2059 Constructor. Use ShowModal method to show the dialog.
2061 newobj
= _windows
.new_FileDialog(*args
, **kwargs
)
2062 self
.this
= newobj
.this
2065 self
._setOORInfo
(self
)
2067 def SetMessage(*args
, **kwargs
):
2069 SetMessage(String message)
2071 Sets the message that will be displayed on the dialog.
2073 return _windows
.FileDialog_SetMessage(*args
, **kwargs
)
2075 def SetPath(*args
, **kwargs
):
2077 SetPath(String path)
2079 Sets the path (the combined directory and filename that will
2080 be returned when the dialog is dismissed).
2082 return _windows
.FileDialog_SetPath(*args
, **kwargs
)
2084 def SetDirectory(*args
, **kwargs
):
2086 SetDirectory(String dir)
2088 Sets the default directory.
2090 return _windows
.FileDialog_SetDirectory(*args
, **kwargs
)
2092 def SetFilename(*args
, **kwargs
):
2094 SetFilename(String name)
2096 Sets the default filename.
2098 return _windows
.FileDialog_SetFilename(*args
, **kwargs
)
2100 def SetWildcard(*args
, **kwargs
):
2102 SetWildcard(String wildCard)
2104 Sets the wildcard, which can contain multiple file types, for example:
2105 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2107 return _windows
.FileDialog_SetWildcard(*args
, **kwargs
)
2109 def SetStyle(*args
, **kwargs
):
2111 SetStyle(long style)
2113 Sets the dialog style.
2115 return _windows
.FileDialog_SetStyle(*args
, **kwargs
)
2117 def SetFilterIndex(*args
, **kwargs
):
2119 SetFilterIndex(int filterIndex)
2121 Sets the default filter index, starting from zero.
2123 return _windows
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2125 def GetMessage(*args
, **kwargs
):
2127 GetMessage() -> String
2129 Returns the message that will be displayed on the dialog.
2131 return _windows
.FileDialog_GetMessage(*args
, **kwargs
)
2133 def GetPath(*args
, **kwargs
):
2137 Returns the full path (directory and filename) of the selected file.
2139 return _windows
.FileDialog_GetPath(*args
, **kwargs
)
2141 def GetDirectory(*args
, **kwargs
):
2143 GetDirectory() -> String
2145 Returns the default directory.
2147 return _windows
.FileDialog_GetDirectory(*args
, **kwargs
)
2149 def GetFilename(*args
, **kwargs
):
2151 GetFilename() -> String
2153 Returns the default filename.
2155 return _windows
.FileDialog_GetFilename(*args
, **kwargs
)
2157 def GetWildcard(*args
, **kwargs
):
2159 GetWildcard() -> String
2161 Returns the file dialog wildcard.
2163 return _windows
.FileDialog_GetWildcard(*args
, **kwargs
)
2165 def GetStyle(*args
, **kwargs
):
2169 Returns the dialog style.
2171 return _windows
.FileDialog_GetStyle(*args
, **kwargs
)
2173 def GetFilterIndex(*args
, **kwargs
):
2175 GetFilterIndex() -> int
2177 Returns the index into the list of filters supplied, optionally, in
2178 the wildcard parameter. Before the dialog is shown, this is the index
2179 which will be used when the dialog is first displayed. After the dialog
2180 is shown, this is the index selected by the user.
2182 return _windows
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2184 def GetFilenames(*args
, **kwargs
):
2186 GetFilenames() -> PyObject
2188 Returns a list of filenames chosen in the dialog. This function should
2189 only be used with the dialogs which have wx.MULTIPLE style, use
2190 GetFilename for the others.
2192 return _windows
.FileDialog_GetFilenames(*args
, **kwargs
)
2194 def GetPaths(*args
, **kwargs
):
2196 GetPaths() -> PyObject
2198 Fills the array paths with the full paths of the files chosen. This
2199 function should only be used with the dialogs which have wx.MULTIPLE style,
2200 use GetPath for the others.
2202 return _windows
.FileDialog_GetPaths(*args
, **kwargs
)
2205 class FileDialogPtr(FileDialog
):
2206 def __init__(self
, this
):
2208 if not hasattr(self
,"thisown"): self
.thisown
= 0
2209 self
.__class
__ = FileDialog
2210 _windows
.FileDialog_swigregister(FileDialogPtr
)
2212 CHOICEDLG_STYLE
= _windows
.CHOICEDLG_STYLE
2213 class MultiChoiceDialog(Dialog
):
2214 """A simple dialog with a multi selection listbox."""
2216 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2217 def __init__(self
, *args
, **kwargs
):
2219 __init__(Window parent, String message, String caption,
2220 List choices=[], long style=CHOICEDLG_STYLE,
2221 Point pos=DefaultPosition) -> MultiChoiceDialog
2223 Constructor. Use ShowModal method to show the dialog.
2225 newobj
= _windows
.new_MultiChoiceDialog(*args
, **kwargs
)
2226 self
.this
= newobj
.this
2229 self
._setOORInfo
(self
)
2231 def SetSelections(*args
, **kwargs
):
2233 SetSelections(List selections)
2235 Specify the items in the list that shoudl be selected, using a list of integers.
2237 return _windows
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2239 def GetSelections(*args
, **kwargs
):
2241 GetSelections() -> [selections]
2243 Returns a list of integers representing the items that are selected.
2245 return _windows
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2248 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2249 def __init__(self
, this
):
2251 if not hasattr(self
,"thisown"): self
.thisown
= 0
2252 self
.__class
__ = MultiChoiceDialog
2253 _windows
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2255 class SingleChoiceDialog(Dialog
):
2256 """A simple dialog with a single selection listbox."""
2258 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2259 def __init__(self
, *args
, **kwargs
):
2261 __init__(Window parent, String message, String caption,
2262 List choices=[], long style=CHOICEDLG_STYLE,
2263 Point pos=DefaultPosition) -> SingleChoiceDialog
2265 Constructor. Use ShowModal method to show the dialog.
2267 newobj
= _windows
.new_SingleChoiceDialog(*args
, **kwargs
)
2268 self
.this
= newobj
.this
2271 self
._setOORInfo
(self
)
2273 def GetSelection(*args
, **kwargs
):
2275 GetSelection() -> int
2277 Get the index of teh currently selected item.
2279 return _windows
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2281 def GetStringSelection(*args
, **kwargs
):
2283 GetStringSelection() -> String
2285 Returns the string value of the currently selected item
2287 return _windows
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2289 def SetSelection(*args
, **kwargs
):
2291 SetSelection(int sel)
2293 Set the current selected item to sel
2295 return _windows
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2298 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2299 def __init__(self
, this
):
2301 if not hasattr(self
,"thisown"): self
.thisown
= 0
2302 self
.__class
__ = SingleChoiceDialog
2303 _windows
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2305 class TextEntryDialog(Dialog
):
2306 """A dialog with text control, [ok] and [cancel] buttons"""
2308 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2309 def __init__(self
, *args
, **kwargs
):
2311 __init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
2312 String defaultValue=EmptyString,
2313 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2315 Constructor. Use ShowModal method to show the dialog.
2317 newobj
= _windows
.new_TextEntryDialog(*args
, **kwargs
)
2318 self
.this
= newobj
.this
2321 self
._setOORInfo
(self
)
2323 def GetValue(*args
, **kwargs
):
2325 GetValue() -> String
2327 Returns the text that the user has entered if the user has pressed OK,
2328 or the original value if the user has pressed Cancel.
2330 return _windows
.TextEntryDialog_GetValue(*args
, **kwargs
)
2332 def SetValue(*args
, **kwargs
):
2334 SetValue(String value)
2336 Sets the default text value.
2338 return _windows
.TextEntryDialog_SetValue(*args
, **kwargs
)
2341 class TextEntryDialogPtr(TextEntryDialog
):
2342 def __init__(self
, this
):
2344 if not hasattr(self
,"thisown"): self
.thisown
= 0
2345 self
.__class
__ = TextEntryDialog
2346 _windows
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2348 class FontData(core
.Object
):
2349 """This class holds a variety of information related to font dialogs."""
2351 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2352 def __init__(self
, *args
, **kwargs
):
2354 __init__() -> FontData
2356 This class holds a variety of information related to font dialogs.
2358 newobj
= _windows
.new_FontData(*args
, **kwargs
)
2359 self
.this
= newobj
.this
2362 def __del__(self
, destroy
=_windows
.delete_FontData
):
2365 if self
.thisown
: destroy(self
)
2368 def EnableEffects(*args
, **kwargs
):
2370 EnableEffects(bool enable)
2372 Enables or disables 'effects' under MS Windows only. This refers
2373 to the controls for manipulating colour, strikeout and underline
2374 properties. The default value is true.
2376 return _windows
.FontData_EnableEffects(*args
, **kwargs
)
2378 def GetAllowSymbols(*args
, **kwargs
):
2380 GetAllowSymbols() -> bool
2382 Under MS Windows, returns a flag determining whether symbol fonts can be
2383 selected. Has no effect on other platforms. The default value is true.
2385 return _windows
.FontData_GetAllowSymbols(*args
, **kwargs
)
2387 def GetColour(*args
, **kwargs
):
2389 GetColour() -> Colour
2391 Gets the colour associated with the font dialog. The default value is black.
2393 return _windows
.FontData_GetColour(*args
, **kwargs
)
2395 def GetChosenFont(*args
, **kwargs
):
2397 GetChosenFont() -> Font
2399 Gets the font chosen by the user.
2401 return _windows
.FontData_GetChosenFont(*args
, **kwargs
)
2403 def GetEnableEffects(*args
, **kwargs
):
2405 GetEnableEffects() -> bool
2407 Determines whether 'effects' are enabled under Windows.
2409 return _windows
.FontData_GetEnableEffects(*args
, **kwargs
)
2411 def GetInitialFont(*args
, **kwargs
):
2413 GetInitialFont() -> Font
2415 Gets the font that will be initially used by the font dialog. This should have
2416 previously been set by the application.
2418 return _windows
.FontData_GetInitialFont(*args
, **kwargs
)
2420 def GetShowHelp(*args
, **kwargs
):
2422 GetShowHelp() -> bool
2424 Returns true if the Help button will be shown (Windows only). The default
2427 return _windows
.FontData_GetShowHelp(*args
, **kwargs
)
2429 def SetAllowSymbols(*args
, **kwargs
):
2431 SetAllowSymbols(bool allowSymbols)
2433 Under MS Windows, determines whether symbol fonts can be selected. Has no
2434 effect on other platforms. The default value is true.
2436 return _windows
.FontData_SetAllowSymbols(*args
, **kwargs
)
2438 def SetChosenFont(*args
, **kwargs
):
2440 SetChosenFont(Font font)
2442 Sets the font that will be returned to the user (for internal use only).
2444 return _windows
.FontData_SetChosenFont(*args
, **kwargs
)
2446 def SetColour(*args
, **kwargs
):
2448 SetColour(Colour colour)
2450 Sets the colour that will be used for the font foreground colour. The default
2453 return _windows
.FontData_SetColour(*args
, **kwargs
)
2455 def SetInitialFont(*args
, **kwargs
):
2457 SetInitialFont(Font font)
2459 Sets the font that will be initially used by the font dialog.
2461 return _windows
.FontData_SetInitialFont(*args
, **kwargs
)
2463 def SetRange(*args
, **kwargs
):
2465 SetRange(int min, int max)
2467 Sets the valid range for the font point size (Windows only). The default is
2468 0, 0 (unrestricted range).
2470 return _windows
.FontData_SetRange(*args
, **kwargs
)
2472 def SetShowHelp(*args
, **kwargs
):
2474 SetShowHelp(bool showHelp)
2476 Determines whether the Help button will be displayed in the font dialog
2477 (Windows only). The default value is false.
2479 return _windows
.FontData_SetShowHelp(*args
, **kwargs
)
2482 class FontDataPtr(FontData
):
2483 def __init__(self
, this
):
2485 if not hasattr(self
,"thisown"): self
.thisown
= 0
2486 self
.__class
__ = FontData
2487 _windows
.FontData_swigregister(FontDataPtr
)
2489 class FontDialog(Dialog
):
2490 """This class represents the font chooser dialog."""
2492 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2493 def __init__(self
, *args
, **kwargs
):
2495 __init__(Window parent, FontData data) -> FontDialog
2497 Constructor. Pass a parent window and the FontData object to be
2498 used to initialize the dialog controls.
2500 newobj
= _windows
.new_FontDialog(*args
, **kwargs
)
2501 self
.this
= newobj
.this
2504 self
._setOORInfo
(self
)
2506 def GetFontData(*args
, **kwargs
):
2508 GetFontData() -> FontData
2510 Returns a reference to the internal FontData used by the FontDialog.
2512 return _windows
.FontDialog_GetFontData(*args
, **kwargs
)
2515 class FontDialogPtr(FontDialog
):
2516 def __init__(self
, this
):
2518 if not hasattr(self
,"thisown"): self
.thisown
= 0
2519 self
.__class
__ = FontDialog
2520 _windows
.FontDialog_swigregister(FontDialogPtr
)
2522 class MessageDialog(Dialog
):
2524 This class provides a dialog that shows a single or multi-line message, with
2525 a choice of OK, Yes, No and Cancel buttons.
2528 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2529 def __init__(self
, *args
, **kwargs
):
2531 __init__(Window parent, String message, String caption=MessageBoxCaptionStr,
2532 long style=wxOK|wxCANCEL|wxCENTRE,
2533 Point pos=DefaultPosition) -> MessageDialog
2535 This class provides a dialog that shows a single or multi-line message, with
2536 a choice of OK, Yes, No and Cancel buttons.
2538 newobj
= _windows
.new_MessageDialog(*args
, **kwargs
)
2539 self
.this
= newobj
.this
2542 self
._setOORInfo
(self
)
2545 class MessageDialogPtr(MessageDialog
):
2546 def __init__(self
, this
):
2548 if not hasattr(self
,"thisown"): self
.thisown
= 0
2549 self
.__class
__ = MessageDialog
2550 _windows
.MessageDialog_swigregister(MessageDialogPtr
)
2552 class ProgressDialog(Frame
):
2554 A dialog that shows a short message and a progress bar. Optionally, it can
2555 display an ABORT button.
2558 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2559 def __init__(self
, *args
, **kwargs
):
2561 __init__(String title, String message, int maximum=100, Window parent=None,
2562 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2564 Constructor. Creates the dialog, displays it and disables user input for other
2565 windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only.
2567 newobj
= _windows
.new_ProgressDialog(*args
, **kwargs
)
2568 self
.this
= newobj
.this
2571 self
._setOORInfo
(self
)
2573 def Update(*args
, **kwargs
):
2575 Update(int value, String newmsg=EmptyString) -> bool
2577 Updates the dialog, setting the progress bar to the new value and, if given
2578 changes the message above it. Returns true unless the Cancel button has been
2581 If false is returned, the application can either immediately destroy the
2582 dialog or ask the user for the confirmation and if the abort is not confirmed
2583 the dialog may be resumed with Resume function.
2585 return _windows
.ProgressDialog_Update(*args
, **kwargs
)
2587 def Resume(*args
, **kwargs
):
2591 Can be used to continue with the dialog, after the user had chosen to abort.
2593 return _windows
.ProgressDialog_Resume(*args
, **kwargs
)
2596 class ProgressDialogPtr(ProgressDialog
):
2597 def __init__(self
, this
):
2599 if not hasattr(self
,"thisown"): self
.thisown
= 0
2600 self
.__class
__ = ProgressDialog
2601 _windows
.ProgressDialog_swigregister(ProgressDialogPtr
)
2603 FR_DOWN
= _windows
.FR_DOWN
2604 FR_WHOLEWORD
= _windows
.FR_WHOLEWORD
2605 FR_MATCHCASE
= _windows
.FR_MATCHCASE
2606 FR_REPLACEDIALOG
= _windows
.FR_REPLACEDIALOG
2607 FR_NOUPDOWN
= _windows
.FR_NOUPDOWN
2608 FR_NOMATCHCASE
= _windows
.FR_NOMATCHCASE
2609 FR_NOWHOLEWORD
= _windows
.FR_NOWHOLEWORD
2610 wxEVT_COMMAND_FIND
= _windows
.wxEVT_COMMAND_FIND
2611 wxEVT_COMMAND_FIND_NEXT
= _windows
.wxEVT_COMMAND_FIND_NEXT
2612 wxEVT_COMMAND_FIND_REPLACE
= _windows
.wxEVT_COMMAND_FIND_REPLACE
2613 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows
.wxEVT_COMMAND_FIND_REPLACE_ALL
2614 wxEVT_COMMAND_FIND_CLOSE
= _windows
.wxEVT_COMMAND_FIND_CLOSE
2615 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2616 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2617 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2618 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2619 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2621 # For backwards compatibility. Should they be removed?
2622 EVT_COMMAND_FIND
= EVT_FIND
2623 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2624 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2625 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2626 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2628 class FindDialogEvent(core
.CommandEvent
):
2629 """Events for the FindReplaceDialog"""
2631 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2632 def __init__(self
, *args
, **kwargs
):
2634 __init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2636 Events for the FindReplaceDialog
2638 newobj
= _windows
.new_FindDialogEvent(*args
, **kwargs
)
2639 self
.this
= newobj
.this
2642 def GetFlags(*args
, **kwargs
):
2646 Get the currently selected flags: this is the combination of
2647 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2649 return _windows
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2651 def GetFindString(*args
, **kwargs
):
2653 GetFindString() -> String
2655 Return the string to find (never empty).
2657 return _windows
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2659 def GetReplaceString(*args
, **kwargs
):
2661 GetReplaceString() -> String
2663 Return the string to replace the search string with (only
2664 for replace and replace all events).
2666 return _windows
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2668 def GetDialog(*args
, **kwargs
):
2670 GetDialog() -> FindReplaceDialog
2672 Return the pointer to the dialog which generated this event.
2674 return _windows
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2676 def SetFlags(*args
, **kwargs
):
2677 """SetFlags(int flags)"""
2678 return _windows
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2680 def SetFindString(*args
, **kwargs
):
2681 """SetFindString(String str)"""
2682 return _windows
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2684 def SetReplaceString(*args
, **kwargs
):
2685 """SetReplaceString(String str)"""
2686 return _windows
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2689 class FindDialogEventPtr(FindDialogEvent
):
2690 def __init__(self
, this
):
2692 if not hasattr(self
,"thisown"): self
.thisown
= 0
2693 self
.__class
__ = FindDialogEvent
2694 _windows
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2696 class FindReplaceData(core
.Object
):
2698 FindReplaceData holds the data for FindReplaceDialog. It is used to initialize
2699 the dialog with the default values and will keep the last values from the
2700 dialog when it is closed. It is also updated each time a wxFindDialogEvent is
2701 generated so instead of using the wxFindDialogEvent methods you can also
2702 directly query this object.
2704 Note that all SetXXX() methods may only be called before showing the dialog
2705 and calling them has no effect later.
2708 wxFR_DOWN: downward search/replace selected (otherwise, upwards)
2710 wxFR_WHOLEWORD: whole word search/replace selected
2712 wxFR_MATCHCASE: case sensitive search/replace selected (otherwise,
2717 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2718 def __init__(self
, *args
, **kwargs
):
2720 __init__(int flags=0) -> FindReplaceData
2722 Constuctor initializes the flags to default value (0).
2724 newobj
= _windows
.new_FindReplaceData(*args
, **kwargs
)
2725 self
.this
= newobj
.this
2728 def __del__(self
, destroy
=_windows
.delete_FindReplaceData
):
2731 if self
.thisown
: destroy(self
)
2734 def GetFindString(*args
, **kwargs
):
2736 GetFindString() -> String
2738 Get the string to find.
2740 return _windows
.FindReplaceData_GetFindString(*args
, **kwargs
)
2742 def GetReplaceString(*args
, **kwargs
):
2744 GetReplaceString() -> String
2746 Get the replacement string.
2748 return _windows
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2750 def GetFlags(*args
, **kwargs
):
2754 Get the combination of flag values.
2756 return _windows
.FindReplaceData_GetFlags(*args
, **kwargs
)
2758 def SetFlags(*args
, **kwargs
):
2762 Set the flags to use to initialize the controls of the dialog.
2764 return _windows
.FindReplaceData_SetFlags(*args
, **kwargs
)
2766 def SetFindString(*args
, **kwargs
):
2768 SetFindString(String str)
2770 Set the string to find (used as initial value by the dialog).
2772 return _windows
.FindReplaceData_SetFindString(*args
, **kwargs
)
2774 def SetReplaceString(*args
, **kwargs
):
2776 SetReplaceString(String str)
2778 Set the replacement string (used as initial value by the dialog).
2780 return _windows
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2783 class FindReplaceDataPtr(FindReplaceData
):
2784 def __init__(self
, this
):
2786 if not hasattr(self
,"thisown"): self
.thisown
= 0
2787 self
.__class
__ = FindReplaceData
2788 _windows
.FindReplaceData_swigregister(FindReplaceDataPtr
)
2790 class FindReplaceDialog(Dialog
):
2792 FindReplaceDialog is a standard modeless dialog which is used to allow the
2793 user to search for some text (and possibly replace it with something
2794 else). The actual searching is supposed to be done in the owner window which
2795 is the parent of this dialog. Note that it means that unlike for the other
2796 standard dialogs this one must have a parent window. Also note that there is
2797 no way to use this dialog in a modal way; it is always, by design and
2798 implementation, modeless.
2801 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2802 def __init__(self
, *args
, **kwargs
):
2804 __init__(Window parent, FindReplaceData data, String title,
2805 int style=0) -> FindReplaceDialog
2807 Create a FindReplaceDialog. The parent and data parameters must be
2808 non-None. Use Show to display the dialog.
2810 newobj
= _windows
.new_FindReplaceDialog(*args
, **kwargs
)
2811 self
.this
= newobj
.this
2814 self
._setOORInfo
(self
)
2816 def Create(*args
, **kwargs
):
2818 Create(Window parent, FindReplaceData data, String title,
2819 int style=0) -> bool
2821 Create the dialog, for 2-phase create.
2823 return _windows
.FindReplaceDialog_Create(*args
, **kwargs
)
2825 def GetData(*args
, **kwargs
):
2827 GetData() -> FindReplaceData
2829 Get the FindReplaceData object used by this dialog.
2831 return _windows
.FindReplaceDialog_GetData(*args
, **kwargs
)
2833 def SetData(*args
, **kwargs
):
2835 SetData(FindReplaceData data)
2837 Set the FindReplaceData object used by this dialog.
2839 return _windows
.FindReplaceDialog_SetData(*args
, **kwargs
)
2842 class FindReplaceDialogPtr(FindReplaceDialog
):
2843 def __init__(self
, this
):
2845 if not hasattr(self
,"thisown"): self
.thisown
= 0
2846 self
.__class
__ = FindReplaceDialog
2847 _windows
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
2849 def PreFindReplaceDialog(*args
, **kwargs
):
2851 PreFindReplaceDialog() -> FindReplaceDialog
2853 Precreate a FindReplaceDialog for 2-phase creation
2855 val
= _windows
.new_PreFindReplaceDialog(*args
, **kwargs
)
2859 #---------------------------------------------------------------------------
2861 IDM_WINDOWTILE
= _windows
.IDM_WINDOWTILE
2862 IDM_WINDOWTILEHOR
= _windows
.IDM_WINDOWTILEHOR
2863 IDM_WINDOWCASCADE
= _windows
.IDM_WINDOWCASCADE
2864 IDM_WINDOWICONS
= _windows
.IDM_WINDOWICONS
2865 IDM_WINDOWNEXT
= _windows
.IDM_WINDOWNEXT
2866 IDM_WINDOWTILEVERT
= _windows
.IDM_WINDOWTILEVERT
2867 FIRST_MDI_CHILD
= _windows
.FIRST_MDI_CHILD
2868 LAST_MDI_CHILD
= _windows
.LAST_MDI_CHILD
2869 class MDIParentFrame(Frame
):
2871 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2872 def __init__(self
, *args
, **kwargs
):
2874 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
2875 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2876 String name=FrameNameStr) -> MDIParentFrame
2878 newobj
= _windows
.new_MDIParentFrame(*args
, **kwargs
)
2879 self
.this
= newobj
.this
2882 self
._setOORInfo
(self
)
2884 def Create(*args
, **kwargs
):
2886 Create(Window parent, int id, String title, Point pos=DefaultPosition,
2887 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2888 String name=FrameNameStr) -> bool
2890 return _windows
.MDIParentFrame_Create(*args
, **kwargs
)
2892 def ActivateNext(*args
, **kwargs
):
2893 """ActivateNext()"""
2894 return _windows
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
2896 def ActivatePrevious(*args
, **kwargs
):
2897 """ActivatePrevious()"""
2898 return _windows
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
2900 def ArrangeIcons(*args
, **kwargs
):
2901 """ArrangeIcons()"""
2902 return _windows
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
2904 def Cascade(*args
, **kwargs
):
2906 return _windows
.MDIParentFrame_Cascade(*args
, **kwargs
)
2908 def GetActiveChild(*args
, **kwargs
):
2909 """GetActiveChild() -> MDIChildFrame"""
2910 return _windows
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
2912 def GetClientWindow(*args
, **kwargs
):
2913 """GetClientWindow() -> MDIClientWindow"""
2914 return _windows
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
2916 def GetToolBar(*args
, **kwargs
):
2917 """GetToolBar() -> Window"""
2918 return _windows
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
2920 def Tile(*args
, **kwargs
):
2922 return _windows
.MDIParentFrame_Tile(*args
, **kwargs
)
2925 class MDIParentFramePtr(MDIParentFrame
):
2926 def __init__(self
, this
):
2928 if not hasattr(self
,"thisown"): self
.thisown
= 0
2929 self
.__class
__ = MDIParentFrame
2930 _windows
.MDIParentFrame_swigregister(MDIParentFramePtr
)
2932 def PreMDIParentFrame(*args
, **kwargs
):
2933 """PreMDIParentFrame() -> MDIParentFrame"""
2934 val
= _windows
.new_PreMDIParentFrame(*args
, **kwargs
)
2938 class MDIChildFrame(Frame
):
2940 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2941 def __init__(self
, *args
, **kwargs
):
2943 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2944 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2945 String name=FrameNameStr) -> MDIChildFrame
2947 newobj
= _windows
.new_MDIChildFrame(*args
, **kwargs
)
2948 self
.this
= newobj
.this
2951 self
._setOORInfo
(self
)
2953 def Create(*args
, **kwargs
):
2955 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2956 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2957 String name=FrameNameStr) -> bool
2959 return _windows
.MDIChildFrame_Create(*args
, **kwargs
)
2961 def Activate(*args
, **kwargs
):
2963 return _windows
.MDIChildFrame_Activate(*args
, **kwargs
)
2965 def Maximize(*args
, **kwargs
):
2966 """Maximize(bool maximize)"""
2967 return _windows
.MDIChildFrame_Maximize(*args
, **kwargs
)
2969 def Restore(*args
, **kwargs
):
2971 return _windows
.MDIChildFrame_Restore(*args
, **kwargs
)
2974 class MDIChildFramePtr(MDIChildFrame
):
2975 def __init__(self
, this
):
2977 if not hasattr(self
,"thisown"): self
.thisown
= 0
2978 self
.__class
__ = MDIChildFrame
2979 _windows
.MDIChildFrame_swigregister(MDIChildFramePtr
)
2981 def PreMDIChildFrame(*args
, **kwargs
):
2982 """PreMDIChildFrame() -> MDIChildFrame"""
2983 val
= _windows
.new_PreMDIChildFrame(*args
, **kwargs
)
2987 class MDIClientWindow(core
.Window
):
2989 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2990 def __init__(self
, *args
, **kwargs
):
2991 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
2992 newobj
= _windows
.new_MDIClientWindow(*args
, **kwargs
)
2993 self
.this
= newobj
.this
2996 self
._setOORInfo
(self
)
2998 def Create(*args
, **kwargs
):
2999 """Create(MDIParentFrame parent, long style=0) -> bool"""
3000 return _windows
.MDIClientWindow_Create(*args
, **kwargs
)
3003 class MDIClientWindowPtr(MDIClientWindow
):
3004 def __init__(self
, this
):
3006 if not hasattr(self
,"thisown"): self
.thisown
= 0
3007 self
.__class
__ = MDIClientWindow
3008 _windows
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3010 def PreMDIClientWindow(*args
, **kwargs
):
3011 """PreMDIClientWindow() -> MDIClientWindow"""
3012 val
= _windows
.new_PreMDIClientWindow(*args
, **kwargs
)
3016 #---------------------------------------------------------------------------
3018 class PyWindow(core
.Window
):
3020 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3021 def __init__(self
, *args
, **kwargs
):
3023 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3024 long style=0, String name=PanelNameStr) -> PyWindow
3026 newobj
= _windows
.new_PyWindow(*args
, **kwargs
)
3027 self
.this
= newobj
.this
3030 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3032 def _setCallbackInfo(*args
, **kwargs
):
3033 """_setCallbackInfo(PyObject self, PyObject _class)"""
3034 return _windows
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3036 def base_DoMoveWindow(*args
, **kwargs
):
3037 """base_DoMoveWindow(int x, int y, int width, int height)"""
3038 return _windows
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3040 def base_DoSetSize(*args
, **kwargs
):
3041 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3042 return _windows
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3044 def base_DoSetClientSize(*args
, **kwargs
):
3045 """base_DoSetClientSize(int width, int height)"""
3046 return _windows
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3048 def base_DoSetVirtualSize(*args
, **kwargs
):
3049 """base_DoSetVirtualSize(int x, int y)"""
3050 return _windows
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3052 def base_DoGetSize(*args
, **kwargs
):
3053 """base_DoGetSize() -> (width, height)"""
3054 return _windows
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3056 def base_DoGetClientSize(*args
, **kwargs
):
3057 """base_DoGetClientSize() -> (width, height)"""
3058 return _windows
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3060 def base_DoGetPosition(*args
, **kwargs
):
3061 """base_DoGetPosition() -> (x,y)"""
3062 return _windows
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3064 def base_DoGetVirtualSize(*args
, **kwargs
):
3065 """base_DoGetVirtualSize() -> Size"""
3066 return _windows
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3068 def base_DoGetBestSize(*args
, **kwargs
):
3069 """base_DoGetBestSize() -> Size"""
3070 return _windows
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3072 def base_InitDialog(*args
, **kwargs
):
3073 """base_InitDialog()"""
3074 return _windows
.PyWindow_base_InitDialog(*args
, **kwargs
)
3076 def base_TransferDataToWindow(*args
, **kwargs
):
3077 """base_TransferDataToWindow() -> bool"""
3078 return _windows
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3080 def base_TransferDataFromWindow(*args
, **kwargs
):
3081 """base_TransferDataFromWindow() -> bool"""
3082 return _windows
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3084 def base_Validate(*args
, **kwargs
):
3085 """base_Validate() -> bool"""
3086 return _windows
.PyWindow_base_Validate(*args
, **kwargs
)
3088 def base_AcceptsFocus(*args
, **kwargs
):
3089 """base_AcceptsFocus() -> bool"""
3090 return _windows
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3092 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3093 """base_AcceptsFocusFromKeyboard() -> bool"""
3094 return _windows
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3096 def base_GetMaxSize(*args
, **kwargs
):
3097 """base_GetMaxSize() -> Size"""
3098 return _windows
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3100 def base_AddChild(*args
, **kwargs
):
3101 """base_AddChild(Window child)"""
3102 return _windows
.PyWindow_base_AddChild(*args
, **kwargs
)
3104 def base_RemoveChild(*args
, **kwargs
):
3105 """base_RemoveChild(Window child)"""
3106 return _windows
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3109 class PyWindowPtr(PyWindow
):
3110 def __init__(self
, this
):
3112 if not hasattr(self
,"thisown"): self
.thisown
= 0
3113 self
.__class
__ = PyWindow
3114 _windows
.PyWindow_swigregister(PyWindowPtr
)
3116 class PyPanel(Panel
):
3118 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3119 def __init__(self
, *args
, **kwargs
):
3121 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3122 long style=0, String name=PanelNameStr) -> PyPanel
3124 newobj
= _windows
.new_PyPanel(*args
, **kwargs
)
3125 self
.this
= newobj
.this
3128 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3130 def _setCallbackInfo(*args
, **kwargs
):
3131 """_setCallbackInfo(PyObject self, PyObject _class)"""
3132 return _windows
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3134 def base_DoMoveWindow(*args
, **kwargs
):
3135 """base_DoMoveWindow(int x, int y, int width, int height)"""
3136 return _windows
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3138 def base_DoSetSize(*args
, **kwargs
):
3139 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3140 return _windows
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3142 def base_DoSetClientSize(*args
, **kwargs
):
3143 """base_DoSetClientSize(int width, int height)"""
3144 return _windows
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3146 def base_DoSetVirtualSize(*args
, **kwargs
):
3147 """base_DoSetVirtualSize(int x, int y)"""
3148 return _windows
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3150 def base_DoGetSize(*args
, **kwargs
):
3151 """base_DoGetSize() -> (width, height)"""
3152 return _windows
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3154 def base_DoGetClientSize(*args
, **kwargs
):
3155 """base_DoGetClientSize() -> (width, height)"""
3156 return _windows
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3158 def base_DoGetPosition(*args
, **kwargs
):
3159 """base_DoGetPosition() -> (x,y)"""
3160 return _windows
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3162 def base_DoGetVirtualSize(*args
, **kwargs
):
3163 """base_DoGetVirtualSize() -> Size"""
3164 return _windows
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3166 def base_DoGetBestSize(*args
, **kwargs
):
3167 """base_DoGetBestSize() -> Size"""
3168 return _windows
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3170 def base_InitDialog(*args
, **kwargs
):
3171 """base_InitDialog()"""
3172 return _windows
.PyPanel_base_InitDialog(*args
, **kwargs
)
3174 def base_TransferDataToWindow(*args
, **kwargs
):
3175 """base_TransferDataToWindow() -> bool"""
3176 return _windows
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3178 def base_TransferDataFromWindow(*args
, **kwargs
):
3179 """base_TransferDataFromWindow() -> bool"""
3180 return _windows
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3182 def base_Validate(*args
, **kwargs
):
3183 """base_Validate() -> bool"""
3184 return _windows
.PyPanel_base_Validate(*args
, **kwargs
)
3186 def base_AcceptsFocus(*args
, **kwargs
):
3187 """base_AcceptsFocus() -> bool"""
3188 return _windows
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3190 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3191 """base_AcceptsFocusFromKeyboard() -> bool"""
3192 return _windows
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3194 def base_GetMaxSize(*args
, **kwargs
):
3195 """base_GetMaxSize() -> Size"""
3196 return _windows
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3198 def base_AddChild(*args
, **kwargs
):
3199 """base_AddChild(Window child)"""
3200 return _windows
.PyPanel_base_AddChild(*args
, **kwargs
)
3202 def base_RemoveChild(*args
, **kwargs
):
3203 """base_RemoveChild(Window child)"""
3204 return _windows
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3207 class PyPanelPtr(PyPanel
):
3208 def __init__(self
, this
):
3210 if not hasattr(self
,"thisown"): self
.thisown
= 0
3211 self
.__class
__ = PyPanel
3212 _windows
.PyPanel_swigregister(PyPanelPtr
)
3214 #---------------------------------------------------------------------------
3216 PRINT_MODE_NONE
= _windows
.PRINT_MODE_NONE
3217 PRINT_MODE_PREVIEW
= _windows
.PRINT_MODE_PREVIEW
3218 PRINT_MODE_FILE
= _windows
.PRINT_MODE_FILE
3219 PRINT_MODE_PRINTER
= _windows
.PRINT_MODE_PRINTER
3220 PRINT_MODE_STREAM
= _windows
.PRINT_MODE_STREAM
3221 class PrintData(core
.Object
):
3223 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3224 def __init__(self
, *args
, **kwargs
):
3225 """__init__() -> PrintData"""
3226 newobj
= _windows
.new_PrintData(*args
, **kwargs
)
3227 self
.this
= newobj
.this
3230 def __del__(self
, destroy
=_windows
.delete_PrintData
):
3233 if self
.thisown
: destroy(self
)
3236 def GetNoCopies(*args
, **kwargs
):
3237 """GetNoCopies() -> int"""
3238 return _windows
.PrintData_GetNoCopies(*args
, **kwargs
)
3240 def GetCollate(*args
, **kwargs
):
3241 """GetCollate() -> bool"""
3242 return _windows
.PrintData_GetCollate(*args
, **kwargs
)
3244 def GetOrientation(*args
, **kwargs
):
3245 """GetOrientation() -> int"""
3246 return _windows
.PrintData_GetOrientation(*args
, **kwargs
)
3248 def Ok(*args
, **kwargs
):
3250 return _windows
.PrintData_Ok(*args
, **kwargs
)
3252 def GetPrinterName(*args
, **kwargs
):
3253 """GetPrinterName() -> String"""
3254 return _windows
.PrintData_GetPrinterName(*args
, **kwargs
)
3256 def GetColour(*args
, **kwargs
):
3257 """GetColour() -> bool"""
3258 return _windows
.PrintData_GetColour(*args
, **kwargs
)
3260 def GetDuplex(*args
, **kwargs
):
3261 """GetDuplex() -> int"""
3262 return _windows
.PrintData_GetDuplex(*args
, **kwargs
)
3264 def GetPaperId(*args
, **kwargs
):
3265 """GetPaperId() -> int"""
3266 return _windows
.PrintData_GetPaperId(*args
, **kwargs
)
3268 def GetPaperSize(*args
, **kwargs
):
3269 """GetPaperSize() -> Size"""
3270 return _windows
.PrintData_GetPaperSize(*args
, **kwargs
)
3272 def GetQuality(*args
, **kwargs
):
3273 """GetQuality() -> int"""
3274 return _windows
.PrintData_GetQuality(*args
, **kwargs
)
3276 def SetNoCopies(*args
, **kwargs
):
3277 """SetNoCopies(int v)"""
3278 return _windows
.PrintData_SetNoCopies(*args
, **kwargs
)
3280 def SetCollate(*args
, **kwargs
):
3281 """SetCollate(bool flag)"""
3282 return _windows
.PrintData_SetCollate(*args
, **kwargs
)
3284 def SetOrientation(*args
, **kwargs
):
3285 """SetOrientation(int orient)"""
3286 return _windows
.PrintData_SetOrientation(*args
, **kwargs
)
3288 def SetPrinterName(*args
, **kwargs
):
3289 """SetPrinterName(String name)"""
3290 return _windows
.PrintData_SetPrinterName(*args
, **kwargs
)
3292 def SetColour(*args
, **kwargs
):
3293 """SetColour(bool colour)"""
3294 return _windows
.PrintData_SetColour(*args
, **kwargs
)
3296 def SetDuplex(*args
, **kwargs
):
3297 """SetDuplex(int duplex)"""
3298 return _windows
.PrintData_SetDuplex(*args
, **kwargs
)
3300 def SetPaperId(*args
, **kwargs
):
3301 """SetPaperId(int sizeId)"""
3302 return _windows
.PrintData_SetPaperId(*args
, **kwargs
)
3304 def SetPaperSize(*args
, **kwargs
):
3305 """SetPaperSize(Size sz)"""
3306 return _windows
.PrintData_SetPaperSize(*args
, **kwargs
)
3308 def SetQuality(*args
, **kwargs
):
3309 """SetQuality(int quality)"""
3310 return _windows
.PrintData_SetQuality(*args
, **kwargs
)
3312 def GetPrinterCommand(*args
, **kwargs
):
3313 """GetPrinterCommand() -> String"""
3314 return _windows
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3316 def GetPrinterOptions(*args
, **kwargs
):
3317 """GetPrinterOptions() -> String"""
3318 return _windows
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3320 def GetPreviewCommand(*args
, **kwargs
):
3321 """GetPreviewCommand() -> String"""
3322 return _windows
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3324 def GetFilename(*args
, **kwargs
):
3325 """GetFilename() -> String"""
3326 return _windows
.PrintData_GetFilename(*args
, **kwargs
)
3328 def GetFontMetricPath(*args
, **kwargs
):
3329 """GetFontMetricPath() -> String"""
3330 return _windows
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3332 def GetPrinterScaleX(*args
, **kwargs
):
3333 """GetPrinterScaleX() -> double"""
3334 return _windows
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3336 def GetPrinterScaleY(*args
, **kwargs
):
3337 """GetPrinterScaleY() -> double"""
3338 return _windows
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3340 def GetPrinterTranslateX(*args
, **kwargs
):
3341 """GetPrinterTranslateX() -> long"""
3342 return _windows
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3344 def GetPrinterTranslateY(*args
, **kwargs
):
3345 """GetPrinterTranslateY() -> long"""
3346 return _windows
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3348 def GetPrintMode(*args
, **kwargs
):
3349 """GetPrintMode() -> int"""
3350 return _windows
.PrintData_GetPrintMode(*args
, **kwargs
)
3352 def SetPrinterCommand(*args
, **kwargs
):
3353 """SetPrinterCommand(String command)"""
3354 return _windows
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3356 def SetPrinterOptions(*args
, **kwargs
):
3357 """SetPrinterOptions(String options)"""
3358 return _windows
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3360 def SetPreviewCommand(*args
, **kwargs
):
3361 """SetPreviewCommand(String command)"""
3362 return _windows
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3364 def SetFilename(*args
, **kwargs
):
3365 """SetFilename(String filename)"""
3366 return _windows
.PrintData_SetFilename(*args
, **kwargs
)
3368 def SetFontMetricPath(*args
, **kwargs
):
3369 """SetFontMetricPath(String path)"""
3370 return _windows
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3372 def SetPrinterScaleX(*args
, **kwargs
):
3373 """SetPrinterScaleX(double x)"""
3374 return _windows
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3376 def SetPrinterScaleY(*args
, **kwargs
):
3377 """SetPrinterScaleY(double y)"""
3378 return _windows
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3380 def SetPrinterScaling(*args
, **kwargs
):
3381 """SetPrinterScaling(double x, double y)"""
3382 return _windows
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3384 def SetPrinterTranslateX(*args
, **kwargs
):
3385 """SetPrinterTranslateX(long x)"""
3386 return _windows
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3388 def SetPrinterTranslateY(*args
, **kwargs
):
3389 """SetPrinterTranslateY(long y)"""
3390 return _windows
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3392 def SetPrinterTranslation(*args
, **kwargs
):
3393 """SetPrinterTranslation(long x, long y)"""
3394 return _windows
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3396 def SetPrintMode(*args
, **kwargs
):
3397 """SetPrintMode(int printMode)"""
3398 return _windows
.PrintData_SetPrintMode(*args
, **kwargs
)
3400 def GetOutputStream(*args
, **kwargs
):
3401 """GetOutputStream() -> OutputStream"""
3402 return _windows
.PrintData_GetOutputStream(*args
, **kwargs
)
3404 def SetOutputStream(*args
, **kwargs
):
3405 """SetOutputStream(OutputStream outputstream)"""
3406 return _windows
.PrintData_SetOutputStream(*args
, **kwargs
)
3408 def __nonzero__(self
): return self
.Ok()
3410 class PrintDataPtr(PrintData
):
3411 def __init__(self
, this
):
3413 if not hasattr(self
,"thisown"): self
.thisown
= 0
3414 self
.__class
__ = PrintData
3415 _windows
.PrintData_swigregister(PrintDataPtr
)
3416 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3417 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3419 class PageSetupDialogData(core
.Object
):
3421 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3422 def __init__(self
, *args
, **kwargs
):
3423 """__init__() -> PageSetupDialogData"""
3424 newobj
= _windows
.new_PageSetupDialogData(*args
, **kwargs
)
3425 self
.this
= newobj
.this
3428 def __del__(self
, destroy
=_windows
.delete_PageSetupDialogData
):
3431 if self
.thisown
: destroy(self
)
3434 def EnableHelp(*args
, **kwargs
):
3435 """EnableHelp(bool flag)"""
3436 return _windows
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3438 def EnableMargins(*args
, **kwargs
):
3439 """EnableMargins(bool flag)"""
3440 return _windows
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3442 def EnableOrientation(*args
, **kwargs
):
3443 """EnableOrientation(bool flag)"""
3444 return _windows
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3446 def EnablePaper(*args
, **kwargs
):
3447 """EnablePaper(bool flag)"""
3448 return _windows
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3450 def EnablePrinter(*args
, **kwargs
):
3451 """EnablePrinter(bool flag)"""
3452 return _windows
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3454 def GetDefaultMinMargins(*args
, **kwargs
):
3455 """GetDefaultMinMargins() -> bool"""
3456 return _windows
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3458 def GetEnableMargins(*args
, **kwargs
):
3459 """GetEnableMargins() -> bool"""
3460 return _windows
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3462 def GetEnableOrientation(*args
, **kwargs
):
3463 """GetEnableOrientation() -> bool"""
3464 return _windows
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3466 def GetEnablePaper(*args
, **kwargs
):
3467 """GetEnablePaper() -> bool"""
3468 return _windows
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3470 def GetEnablePrinter(*args
, **kwargs
):
3471 """GetEnablePrinter() -> bool"""
3472 return _windows
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3474 def GetEnableHelp(*args
, **kwargs
):
3475 """GetEnableHelp() -> bool"""
3476 return _windows
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3478 def GetDefaultInfo(*args
, **kwargs
):
3479 """GetDefaultInfo() -> bool"""
3480 return _windows
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3482 def GetMarginTopLeft(*args
, **kwargs
):
3483 """GetMarginTopLeft() -> Point"""
3484 return _windows
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3486 def GetMarginBottomRight(*args
, **kwargs
):
3487 """GetMarginBottomRight() -> Point"""
3488 return _windows
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3490 def GetMinMarginTopLeft(*args
, **kwargs
):
3491 """GetMinMarginTopLeft() -> Point"""
3492 return _windows
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3494 def GetMinMarginBottomRight(*args
, **kwargs
):
3495 """GetMinMarginBottomRight() -> Point"""
3496 return _windows
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3498 def GetPaperId(*args
, **kwargs
):
3499 """GetPaperId() -> int"""
3500 return _windows
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3502 def GetPaperSize(*args
, **kwargs
):
3503 """GetPaperSize() -> Size"""
3504 return _windows
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3506 def GetPrintData(*args
, **kwargs
):
3507 """GetPrintData() -> PrintData"""
3508 return _windows
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3510 def Ok(*args
, **kwargs
):
3512 return _windows
.PageSetupDialogData_Ok(*args
, **kwargs
)
3514 def SetDefaultInfo(*args
, **kwargs
):
3515 """SetDefaultInfo(bool flag)"""
3516 return _windows
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3518 def SetDefaultMinMargins(*args
, **kwargs
):
3519 """SetDefaultMinMargins(bool flag)"""
3520 return _windows
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3522 def SetMarginTopLeft(*args
, **kwargs
):
3523 """SetMarginTopLeft(Point pt)"""
3524 return _windows
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3526 def SetMarginBottomRight(*args
, **kwargs
):
3527 """SetMarginBottomRight(Point pt)"""
3528 return _windows
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3530 def SetMinMarginTopLeft(*args
, **kwargs
):
3531 """SetMinMarginTopLeft(Point pt)"""
3532 return _windows
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3534 def SetMinMarginBottomRight(*args
, **kwargs
):
3535 """SetMinMarginBottomRight(Point pt)"""
3536 return _windows
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3538 def SetPaperId(*args
, **kwargs
):
3539 """SetPaperId(int id)"""
3540 return _windows
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3542 def SetPaperSize(*args
, **kwargs
):
3543 """SetPaperSize(Size size)"""
3544 return _windows
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3546 def SetPrintData(*args
, **kwargs
):
3547 """SetPrintData(PrintData printData)"""
3548 return _windows
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3550 def __nonzero__(self
): return self
.Ok()
3552 class PageSetupDialogDataPtr(PageSetupDialogData
):
3553 def __init__(self
, this
):
3555 if not hasattr(self
,"thisown"): self
.thisown
= 0
3556 self
.__class
__ = PageSetupDialogData
3557 _windows
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3559 class PageSetupDialog(Dialog
):
3561 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3562 def __init__(self
, *args
, **kwargs
):
3563 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3564 newobj
= _windows
.new_PageSetupDialog(*args
, **kwargs
)
3565 self
.this
= newobj
.this
3568 self
._setOORInfo
(self
)
3570 def GetPageSetupData(*args
, **kwargs
):
3571 """GetPageSetupData() -> PageSetupDialogData"""
3572 return _windows
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3574 def ShowModal(*args
, **kwargs
):
3575 """ShowModal() -> int"""
3576 return _windows
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3579 class PageSetupDialogPtr(PageSetupDialog
):
3580 def __init__(self
, this
):
3582 if not hasattr(self
,"thisown"): self
.thisown
= 0
3583 self
.__class
__ = PageSetupDialog
3584 _windows
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3586 class PrintDialogData(core
.Object
):
3588 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3589 def __init__(self
, *args
):
3591 __init__() -> PrintDialogData
3592 __init__(PrintData printData) -> PrintDialogData
3594 newobj
= _windows
.new_PrintDialogData(*args
)
3595 self
.this
= newobj
.this
3598 def __del__(self
, destroy
=_windows
.delete_PrintDialogData
):
3601 if self
.thisown
: destroy(self
)
3604 def GetFromPage(*args
, **kwargs
):
3605 """GetFromPage() -> int"""
3606 return _windows
.PrintDialogData_GetFromPage(*args
, **kwargs
)
3608 def GetToPage(*args
, **kwargs
):
3609 """GetToPage() -> int"""
3610 return _windows
.PrintDialogData_GetToPage(*args
, **kwargs
)
3612 def GetMinPage(*args
, **kwargs
):
3613 """GetMinPage() -> int"""
3614 return _windows
.PrintDialogData_GetMinPage(*args
, **kwargs
)
3616 def GetMaxPage(*args
, **kwargs
):
3617 """GetMaxPage() -> int"""
3618 return _windows
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
3620 def GetNoCopies(*args
, **kwargs
):
3621 """GetNoCopies() -> int"""
3622 return _windows
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
3624 def GetAllPages(*args
, **kwargs
):
3625 """GetAllPages() -> bool"""
3626 return _windows
.PrintDialogData_GetAllPages(*args
, **kwargs
)
3628 def GetSelection(*args
, **kwargs
):
3629 """GetSelection() -> bool"""
3630 return _windows
.PrintDialogData_GetSelection(*args
, **kwargs
)
3632 def GetCollate(*args
, **kwargs
):
3633 """GetCollate() -> bool"""
3634 return _windows
.PrintDialogData_GetCollate(*args
, **kwargs
)
3636 def GetPrintToFile(*args
, **kwargs
):
3637 """GetPrintToFile() -> bool"""
3638 return _windows
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
3640 def GetSetupDialog(*args
, **kwargs
):
3641 """GetSetupDialog() -> bool"""
3642 return _windows
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
3644 def SetFromPage(*args
, **kwargs
):
3645 """SetFromPage(int v)"""
3646 return _windows
.PrintDialogData_SetFromPage(*args
, **kwargs
)
3648 def SetToPage(*args
, **kwargs
):
3649 """SetToPage(int v)"""
3650 return _windows
.PrintDialogData_SetToPage(*args
, **kwargs
)
3652 def SetMinPage(*args
, **kwargs
):
3653 """SetMinPage(int v)"""
3654 return _windows
.PrintDialogData_SetMinPage(*args
, **kwargs
)
3656 def SetMaxPage(*args
, **kwargs
):
3657 """SetMaxPage(int v)"""
3658 return _windows
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
3660 def SetNoCopies(*args
, **kwargs
):
3661 """SetNoCopies(int v)"""
3662 return _windows
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
3664 def SetAllPages(*args
, **kwargs
):
3665 """SetAllPages(bool flag)"""
3666 return _windows
.PrintDialogData_SetAllPages(*args
, **kwargs
)
3668 def SetSelection(*args
, **kwargs
):
3669 """SetSelection(bool flag)"""
3670 return _windows
.PrintDialogData_SetSelection(*args
, **kwargs
)
3672 def SetCollate(*args
, **kwargs
):
3673 """SetCollate(bool flag)"""
3674 return _windows
.PrintDialogData_SetCollate(*args
, **kwargs
)
3676 def SetPrintToFile(*args
, **kwargs
):
3677 """SetPrintToFile(bool flag)"""
3678 return _windows
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
3680 def SetSetupDialog(*args
, **kwargs
):
3681 """SetSetupDialog(bool flag)"""
3682 return _windows
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
3684 def EnablePrintToFile(*args
, **kwargs
):
3685 """EnablePrintToFile(bool flag)"""
3686 return _windows
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
3688 def EnableSelection(*args
, **kwargs
):
3689 """EnableSelection(bool flag)"""
3690 return _windows
.PrintDialogData_EnableSelection(*args
, **kwargs
)
3692 def EnablePageNumbers(*args
, **kwargs
):
3693 """EnablePageNumbers(bool flag)"""
3694 return _windows
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
3696 def EnableHelp(*args
, **kwargs
):
3697 """EnableHelp(bool flag)"""
3698 return _windows
.PrintDialogData_EnableHelp(*args
, **kwargs
)
3700 def GetEnablePrintToFile(*args
, **kwargs
):
3701 """GetEnablePrintToFile() -> bool"""
3702 return _windows
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
3704 def GetEnableSelection(*args
, **kwargs
):
3705 """GetEnableSelection() -> bool"""
3706 return _windows
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
3708 def GetEnablePageNumbers(*args
, **kwargs
):
3709 """GetEnablePageNumbers() -> bool"""
3710 return _windows
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
3712 def GetEnableHelp(*args
, **kwargs
):
3713 """GetEnableHelp() -> bool"""
3714 return _windows
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
3716 def Ok(*args
, **kwargs
):
3718 return _windows
.PrintDialogData_Ok(*args
, **kwargs
)
3720 def GetPrintData(*args
, **kwargs
):
3721 """GetPrintData() -> PrintData"""
3722 return _windows
.PrintDialogData_GetPrintData(*args
, **kwargs
)
3724 def SetPrintData(*args
, **kwargs
):
3725 """SetPrintData(PrintData printData)"""
3726 return _windows
.PrintDialogData_SetPrintData(*args
, **kwargs
)
3728 def __nonzero__(self
): return self
.Ok()
3730 class PrintDialogDataPtr(PrintDialogData
):
3731 def __init__(self
, this
):
3733 if not hasattr(self
,"thisown"): self
.thisown
= 0
3734 self
.__class
__ = PrintDialogData
3735 _windows
.PrintDialogData_swigregister(PrintDialogDataPtr
)
3737 class PrintDialog(Dialog
):
3739 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3740 def __init__(self
, *args
, **kwargs
):
3741 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
3742 newobj
= _windows
.new_PrintDialog(*args
, **kwargs
)
3743 self
.this
= newobj
.this
3746 self
._setOORInfo
(self
)
3748 def GetPrintDialogData(*args
, **kwargs
):
3749 """GetPrintDialogData() -> PrintDialogData"""
3750 return _windows
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
3752 def GetPrintDC(*args
, **kwargs
):
3753 """GetPrintDC() -> DC"""
3754 return _windows
.PrintDialog_GetPrintDC(*args
, **kwargs
)
3756 def ShowModal(*args
, **kwargs
):
3757 """ShowModal() -> int"""
3758 return _windows
.PrintDialog_ShowModal(*args
, **kwargs
)
3761 class PrintDialogPtr(PrintDialog
):
3762 def __init__(self
, this
):
3764 if not hasattr(self
,"thisown"): self
.thisown
= 0
3765 self
.__class
__ = PrintDialog
3766 _windows
.PrintDialog_swigregister(PrintDialogPtr
)
3768 PRINTER_NO_ERROR
= _windows
.PRINTER_NO_ERROR
3769 PRINTER_CANCELLED
= _windows
.PRINTER_CANCELLED
3770 PRINTER_ERROR
= _windows
.PRINTER_ERROR
3771 class Printer(core
.Object
):
3773 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3774 def __init__(self
, *args
, **kwargs
):
3775 """__init__(PrintDialogData data=None) -> Printer"""
3776 newobj
= _windows
.new_Printer(*args
, **kwargs
)
3777 self
.this
= newobj
.this
3780 def __del__(self
, destroy
=_windows
.delete_Printer
):
3783 if self
.thisown
: destroy(self
)
3786 def CreateAbortWindow(*args
, **kwargs
):
3787 """CreateAbortWindow(Window parent, Printout printout)"""
3788 return _windows
.Printer_CreateAbortWindow(*args
, **kwargs
)
3790 def GetPrintDialogData(*args
, **kwargs
):
3791 """GetPrintDialogData() -> PrintDialogData"""
3792 return _windows
.Printer_GetPrintDialogData(*args
, **kwargs
)
3794 def Print(*args
, **kwargs
):
3795 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
3796 return _windows
.Printer_Print(*args
, **kwargs
)
3798 def PrintDialog(*args
, **kwargs
):
3799 """PrintDialog(Window parent) -> DC"""
3800 return _windows
.Printer_PrintDialog(*args
, **kwargs
)
3802 def ReportError(*args
, **kwargs
):
3803 """ReportError(Window parent, Printout printout, String message)"""
3804 return _windows
.Printer_ReportError(*args
, **kwargs
)
3806 def Setup(*args
, **kwargs
):
3807 """Setup(Window parent) -> bool"""
3808 return _windows
.Printer_Setup(*args
, **kwargs
)
3810 def GetAbort(*args
, **kwargs
):
3811 """GetAbort() -> bool"""
3812 return _windows
.Printer_GetAbort(*args
, **kwargs
)
3814 def GetLastError(*args
, **kwargs
):
3815 """GetLastError() -> int"""
3816 return _windows
.Printer_GetLastError(*args
, **kwargs
)
3818 GetLastError
= staticmethod(GetLastError
)
3820 class PrinterPtr(Printer
):
3821 def __init__(self
, this
):
3823 if not hasattr(self
,"thisown"): self
.thisown
= 0
3824 self
.__class
__ = Printer
3825 _windows
.Printer_swigregister(PrinterPtr
)
3827 def Printer_GetLastError(*args
, **kwargs
):
3828 """Printer_GetLastError() -> int"""
3829 return _windows
.Printer_GetLastError(*args
, **kwargs
)
3831 class Printout(core
.Object
):
3833 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3834 def __init__(self
, *args
, **kwargs
):
3835 """__init__(String title=PrintoutTitleStr) -> Printout"""
3836 newobj
= _windows
.new_Printout(*args
, **kwargs
)
3837 self
.this
= newobj
.this
3840 self
._setCallbackInfo
(self
, Printout
)
3842 def _setCallbackInfo(*args
, **kwargs
):
3843 """_setCallbackInfo(PyObject self, PyObject _class)"""
3844 return _windows
.Printout__setCallbackInfo(*args
, **kwargs
)
3846 def GetTitle(*args
, **kwargs
):
3847 """GetTitle() -> String"""
3848 return _windows
.Printout_GetTitle(*args
, **kwargs
)
3850 def GetDC(*args
, **kwargs
):
3852 return _windows
.Printout_GetDC(*args
, **kwargs
)
3854 def SetDC(*args
, **kwargs
):
3856 return _windows
.Printout_SetDC(*args
, **kwargs
)
3858 def SetPageSizePixels(*args
, **kwargs
):
3859 """SetPageSizePixels(int w, int h)"""
3860 return _windows
.Printout_SetPageSizePixels(*args
, **kwargs
)
3862 def GetPageSizePixels(*args
, **kwargs
):
3863 """GetPageSizePixels() -> (w, h)"""
3864 return _windows
.Printout_GetPageSizePixels(*args
, **kwargs
)
3866 def SetPageSizeMM(*args
, **kwargs
):
3867 """SetPageSizeMM(int w, int h)"""
3868 return _windows
.Printout_SetPageSizeMM(*args
, **kwargs
)
3870 def GetPageSizeMM(*args
, **kwargs
):
3871 """GetPageSizeMM() -> (w, h)"""
3872 return _windows
.Printout_GetPageSizeMM(*args
, **kwargs
)
3874 def SetPPIScreen(*args
, **kwargs
):
3875 """SetPPIScreen(int x, int y)"""
3876 return _windows
.Printout_SetPPIScreen(*args
, **kwargs
)
3878 def GetPPIScreen(*args
, **kwargs
):
3879 """GetPPIScreen() -> (x,y)"""
3880 return _windows
.Printout_GetPPIScreen(*args
, **kwargs
)
3882 def SetPPIPrinter(*args
, **kwargs
):
3883 """SetPPIPrinter(int x, int y)"""
3884 return _windows
.Printout_SetPPIPrinter(*args
, **kwargs
)
3886 def GetPPIPrinter(*args
, **kwargs
):
3887 """GetPPIPrinter() -> (x,y)"""
3888 return _windows
.Printout_GetPPIPrinter(*args
, **kwargs
)
3890 def IsPreview(*args
, **kwargs
):
3891 """IsPreview() -> bool"""
3892 return _windows
.Printout_IsPreview(*args
, **kwargs
)
3894 def SetIsPreview(*args
, **kwargs
):
3895 """SetIsPreview(bool p)"""
3896 return _windows
.Printout_SetIsPreview(*args
, **kwargs
)
3898 def base_OnBeginDocument(*args
, **kwargs
):
3899 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
3900 return _windows
.Printout_base_OnBeginDocument(*args
, **kwargs
)
3902 def base_OnEndDocument(*args
, **kwargs
):
3903 """base_OnEndDocument()"""
3904 return _windows
.Printout_base_OnEndDocument(*args
, **kwargs
)
3906 def base_OnBeginPrinting(*args
, **kwargs
):
3907 """base_OnBeginPrinting()"""
3908 return _windows
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
3910 def base_OnEndPrinting(*args
, **kwargs
):
3911 """base_OnEndPrinting()"""
3912 return _windows
.Printout_base_OnEndPrinting(*args
, **kwargs
)
3914 def base_OnPreparePrinting(*args
, **kwargs
):
3915 """base_OnPreparePrinting()"""
3916 return _windows
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
3918 def base_HasPage(*args
, **kwargs
):
3919 """base_HasPage(int page) -> bool"""
3920 return _windows
.Printout_base_HasPage(*args
, **kwargs
)
3922 def base_GetPageInfo(*args
, **kwargs
):
3923 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
3924 return _windows
.Printout_base_GetPageInfo(*args
, **kwargs
)
3927 class PrintoutPtr(Printout
):
3928 def __init__(self
, this
):
3930 if not hasattr(self
,"thisown"): self
.thisown
= 0
3931 self
.__class
__ = Printout
3932 _windows
.Printout_swigregister(PrintoutPtr
)
3934 class PreviewCanvas(ScrolledWindow
):
3936 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3937 def __init__(self
, *args
, **kwargs
):
3939 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
3940 Size size=DefaultSize, long style=0,
3941 String name=PreviewCanvasNameStr) -> PreviewCanvas
3943 newobj
= _windows
.new_PreviewCanvas(*args
, **kwargs
)
3944 self
.this
= newobj
.this
3947 self
._setOORInfo
(self
)
3950 class PreviewCanvasPtr(PreviewCanvas
):
3951 def __init__(self
, this
):
3953 if not hasattr(self
,"thisown"): self
.thisown
= 0
3954 self
.__class
__ = PreviewCanvas
3955 _windows
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
3957 class PreviewFrame(Frame
):
3959 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3960 def __init__(self
, *args
, **kwargs
):
3962 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
3963 Size size=DefaultSize,
3964 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
3966 newobj
= _windows
.new_PreviewFrame(*args
, **kwargs
)
3967 self
.this
= newobj
.this
3970 self
._setOORInfo
(self
)
3972 def Initialize(*args
, **kwargs
):
3974 return _windows
.PreviewFrame_Initialize(*args
, **kwargs
)
3976 def CreateControlBar(*args
, **kwargs
):
3977 """CreateControlBar()"""
3978 return _windows
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
3980 def CreateCanvas(*args
, **kwargs
):
3981 """CreateCanvas()"""
3982 return _windows
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
3984 def GetControlBar(*args
, **kwargs
):
3985 """GetControlBar() -> PreviewControlBar"""
3986 return _windows
.PreviewFrame_GetControlBar(*args
, **kwargs
)
3989 class PreviewFramePtr(PreviewFrame
):
3990 def __init__(self
, this
):
3992 if not hasattr(self
,"thisown"): self
.thisown
= 0
3993 self
.__class
__ = PreviewFrame
3994 _windows
.PreviewFrame_swigregister(PreviewFramePtr
)
3996 PREVIEW_PRINT
= _windows
.PREVIEW_PRINT
3997 PREVIEW_PREVIOUS
= _windows
.PREVIEW_PREVIOUS
3998 PREVIEW_NEXT
= _windows
.PREVIEW_NEXT
3999 PREVIEW_ZOOM
= _windows
.PREVIEW_ZOOM
4000 PREVIEW_FIRST
= _windows
.PREVIEW_FIRST
4001 PREVIEW_LAST
= _windows
.PREVIEW_LAST
4002 PREVIEW_GOTO
= _windows
.PREVIEW_GOTO
4003 PREVIEW_DEFAULT
= _windows
.PREVIEW_DEFAULT
4004 ID_PREVIEW_CLOSE
= _windows
.ID_PREVIEW_CLOSE
4005 ID_PREVIEW_NEXT
= _windows
.ID_PREVIEW_NEXT
4006 ID_PREVIEW_PREVIOUS
= _windows
.ID_PREVIEW_PREVIOUS
4007 ID_PREVIEW_PRINT
= _windows
.ID_PREVIEW_PRINT
4008 ID_PREVIEW_ZOOM
= _windows
.ID_PREVIEW_ZOOM
4009 ID_PREVIEW_FIRST
= _windows
.ID_PREVIEW_FIRST
4010 ID_PREVIEW_LAST
= _windows
.ID_PREVIEW_LAST
4011 ID_PREVIEW_GOTO
= _windows
.ID_PREVIEW_GOTO
4012 class PreviewControlBar(Panel
):
4014 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4015 def __init__(self
, *args
, **kwargs
):
4017 __init__(PrintPreview preview, long buttons, Window parent,
4018 Point pos=DefaultPosition, Size size=DefaultSize,
4019 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4021 newobj
= _windows
.new_PreviewControlBar(*args
, **kwargs
)
4022 self
.this
= newobj
.this
4025 self
._setOORInfo
(self
)
4027 def GetZoomControl(*args
, **kwargs
):
4028 """GetZoomControl() -> int"""
4029 return _windows
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4031 def SetZoomControl(*args
, **kwargs
):
4032 """SetZoomControl(int zoom)"""
4033 return _windows
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4035 def GetPrintPreview(*args
, **kwargs
):
4036 """GetPrintPreview() -> PrintPreview"""
4037 return _windows
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4039 def OnNext(*args
, **kwargs
):
4041 return _windows
.PreviewControlBar_OnNext(*args
, **kwargs
)
4043 def OnPrevious(*args
, **kwargs
):
4045 return _windows
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4047 def OnFirst(*args
, **kwargs
):
4049 return _windows
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4051 def OnLast(*args
, **kwargs
):
4053 return _windows
.PreviewControlBar_OnLast(*args
, **kwargs
)
4055 def OnGoto(*args
, **kwargs
):
4057 return _windows
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4060 class PreviewControlBarPtr(PreviewControlBar
):
4061 def __init__(self
, this
):
4063 if not hasattr(self
,"thisown"): self
.thisown
= 0
4064 self
.__class
__ = PreviewControlBar
4065 _windows
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4067 class PrintPreview(core
.Object
):
4069 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4070 def __init__(self
, *args
):
4072 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4073 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4075 newobj
= _windows
.new_PrintPreview(*args
)
4076 self
.this
= newobj
.this
4079 def SetCurrentPage(*args
, **kwargs
):
4080 """SetCurrentPage(int pageNum) -> bool"""
4081 return _windows
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4083 def GetCurrentPage(*args
, **kwargs
):
4084 """GetCurrentPage() -> int"""
4085 return _windows
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4087 def SetPrintout(*args
, **kwargs
):
4088 """SetPrintout(Printout printout)"""
4089 return _windows
.PrintPreview_SetPrintout(*args
, **kwargs
)
4091 def GetPrintout(*args
, **kwargs
):
4092 """GetPrintout() -> Printout"""
4093 return _windows
.PrintPreview_GetPrintout(*args
, **kwargs
)
4095 def GetPrintoutForPrinting(*args
, **kwargs
):
4096 """GetPrintoutForPrinting() -> Printout"""
4097 return _windows
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4099 def SetFrame(*args
, **kwargs
):
4100 """SetFrame(Frame frame)"""
4101 return _windows
.PrintPreview_SetFrame(*args
, **kwargs
)
4103 def SetCanvas(*args
, **kwargs
):
4104 """SetCanvas(PreviewCanvas canvas)"""
4105 return _windows
.PrintPreview_SetCanvas(*args
, **kwargs
)
4107 def GetFrame(*args
, **kwargs
):
4108 """GetFrame() -> Frame"""
4109 return _windows
.PrintPreview_GetFrame(*args
, **kwargs
)
4111 def GetCanvas(*args
, **kwargs
):
4112 """GetCanvas() -> PreviewCanvas"""
4113 return _windows
.PrintPreview_GetCanvas(*args
, **kwargs
)
4115 def PaintPage(*args
, **kwargs
):
4116 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4117 return _windows
.PrintPreview_PaintPage(*args
, **kwargs
)
4119 def DrawBlankPage(*args
, **kwargs
):
4120 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4121 return _windows
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4123 def RenderPage(*args
, **kwargs
):
4124 """RenderPage(int pageNum) -> bool"""
4125 return _windows
.PrintPreview_RenderPage(*args
, **kwargs
)
4127 def AdjustScrollbars(*args
, **kwargs
):
4128 """AdjustScrollbars(PreviewCanvas canvas)"""
4129 return _windows
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4131 def GetPrintDialogData(*args
, **kwargs
):
4132 """GetPrintDialogData() -> PrintDialogData"""
4133 return _windows
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4135 def SetZoom(*args
, **kwargs
):
4136 """SetZoom(int percent)"""
4137 return _windows
.PrintPreview_SetZoom(*args
, **kwargs
)
4139 def GetZoom(*args
, **kwargs
):
4140 """GetZoom() -> int"""
4141 return _windows
.PrintPreview_GetZoom(*args
, **kwargs
)
4143 def GetMaxPage(*args
, **kwargs
):
4144 """GetMaxPage() -> int"""
4145 return _windows
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4147 def GetMinPage(*args
, **kwargs
):
4148 """GetMinPage() -> int"""
4149 return _windows
.PrintPreview_GetMinPage(*args
, **kwargs
)
4151 def Ok(*args
, **kwargs
):
4153 return _windows
.PrintPreview_Ok(*args
, **kwargs
)
4155 def SetOk(*args
, **kwargs
):
4156 """SetOk(bool ok)"""
4157 return _windows
.PrintPreview_SetOk(*args
, **kwargs
)
4159 def Print(*args
, **kwargs
):
4160 """Print(bool interactive) -> bool"""
4161 return _windows
.PrintPreview_Print(*args
, **kwargs
)
4163 def DetermineScaling(*args
, **kwargs
):
4164 """DetermineScaling()"""
4165 return _windows
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4167 def __nonzero__(self
): return self
.Ok()
4169 class PrintPreviewPtr(PrintPreview
):
4170 def __init__(self
, this
):
4172 if not hasattr(self
,"thisown"): self
.thisown
= 0
4173 self
.__class
__ = PrintPreview
4174 _windows
.PrintPreview_swigregister(PrintPreviewPtr
)
4176 class PyPrintPreview(PrintPreview
):
4178 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4179 def __init__(self
, *args
):
4181 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4182 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4184 newobj
= _windows
.new_PyPrintPreview(*args
)
4185 self
.this
= newobj
.this
4188 self
._setCallbackInfo
(self
, PyPrintPreview
)
4190 def _setCallbackInfo(*args
, **kwargs
):
4191 """_setCallbackInfo(PyObject self, PyObject _class)"""
4192 return _windows
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4194 def base_SetCurrentPage(*args
, **kwargs
):
4195 """base_SetCurrentPage(int pageNum) -> bool"""
4196 return _windows
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4198 def base_PaintPage(*args
, **kwargs
):
4199 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4200 return _windows
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4202 def base_DrawBlankPage(*args
, **kwargs
):
4203 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4204 return _windows
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4206 def base_RenderPage(*args
, **kwargs
):
4207 """base_RenderPage(int pageNum) -> bool"""
4208 return _windows
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4210 def base_SetZoom(*args
, **kwargs
):
4211 """base_SetZoom(int percent)"""
4212 return _windows
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4214 def base_Print(*args
, **kwargs
):
4215 """base_Print(bool interactive) -> bool"""
4216 return _windows
.PyPrintPreview_base_Print(*args
, **kwargs
)
4218 def base_DetermineScaling(*args
, **kwargs
):
4219 """base_DetermineScaling()"""
4220 return _windows
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4223 class PyPrintPreviewPtr(PyPrintPreview
):
4224 def __init__(self
, this
):
4226 if not hasattr(self
,"thisown"): self
.thisown
= 0
4227 self
.__class
__ = PyPrintPreview
4228 _windows
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4230 class PyPreviewFrame(PreviewFrame
):
4232 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4233 def __init__(self
, *args
, **kwargs
):
4235 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4236 Size size=DefaultSize,
4237 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4239 newobj
= _windows
.new_PyPreviewFrame(*args
, **kwargs
)
4240 self
.this
= newobj
.this
4243 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4245 def _setCallbackInfo(*args
, **kwargs
):
4246 """_setCallbackInfo(PyObject self, PyObject _class)"""
4247 return _windows
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4249 def SetPreviewCanvas(*args
, **kwargs
):
4250 """SetPreviewCanvas(PreviewCanvas canvas)"""
4251 return _windows
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4253 def SetControlBar(*args
, **kwargs
):
4254 """SetControlBar(PreviewControlBar bar)"""
4255 return _windows
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4257 def base_Initialize(*args
, **kwargs
):
4258 """base_Initialize()"""
4259 return _windows
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4261 def base_CreateCanvas(*args
, **kwargs
):
4262 """base_CreateCanvas()"""
4263 return _windows
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4265 def base_CreateControlBar(*args
, **kwargs
):
4266 """base_CreateControlBar()"""
4267 return _windows
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4270 class PyPreviewFramePtr(PyPreviewFrame
):
4271 def __init__(self
, this
):
4273 if not hasattr(self
,"thisown"): self
.thisown
= 0
4274 self
.__class
__ = PyPreviewFrame
4275 _windows
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4277 class PyPreviewControlBar(PreviewControlBar
):
4279 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4280 def __init__(self
, *args
, **kwargs
):
4282 __init__(PrintPreview preview, long buttons, Window parent,
4283 Point pos=DefaultPosition, Size size=DefaultSize,
4284 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4286 newobj
= _windows
.new_PyPreviewControlBar(*args
, **kwargs
)
4287 self
.this
= newobj
.this
4290 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4292 def _setCallbackInfo(*args
, **kwargs
):
4293 """_setCallbackInfo(PyObject self, PyObject _class)"""
4294 return _windows
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4296 def SetPrintPreview(*args
, **kwargs
):
4297 """SetPrintPreview(PrintPreview preview)"""
4298 return _windows
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4300 def base_CreateButtons(*args
, **kwargs
):
4301 """base_CreateButtons()"""
4302 return _windows
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4304 def base_SetZoomControl(*args
, **kwargs
):
4305 """base_SetZoomControl(int zoom)"""
4306 return _windows
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4309 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4310 def __init__(self
, this
):
4312 if not hasattr(self
,"thisown"): self
.thisown
= 0
4313 self
.__class
__ = PyPreviewControlBar
4314 _windows
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)