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
)
170 class ScrolledWindowPtr(ScrolledWindow
):
171 def __init__(self
, this
):
173 if not hasattr(self
,"thisown"): self
.thisown
= 0
174 self
.__class
__ = ScrolledWindow
175 _windows
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
177 def PreScrolledWindow(*args
, **kwargs
):
178 """PreScrolledWindow() -> ScrolledWindow"""
179 val
= _windows
.new_PreScrolledWindow(*args
, **kwargs
)
183 #---------------------------------------------------------------------------
185 FULLSCREEN_NOMENUBAR
= _windows
.FULLSCREEN_NOMENUBAR
186 FULLSCREEN_NOTOOLBAR
= _windows
.FULLSCREEN_NOTOOLBAR
187 FULLSCREEN_NOSTATUSBAR
= _windows
.FULLSCREEN_NOSTATUSBAR
188 FULLSCREEN_NOBORDER
= _windows
.FULLSCREEN_NOBORDER
189 FULLSCREEN_NOCAPTION
= _windows
.FULLSCREEN_NOCAPTION
190 FULLSCREEN_ALL
= _windows
.FULLSCREEN_ALL
191 TOPLEVEL_EX_DIALOG
= _windows
.TOPLEVEL_EX_DIALOG
192 class TopLevelWindow(core
.Window
):
193 def __init__(self
): raise RuntimeError, "No constructor defined"
195 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
196 def Maximize(*args
, **kwargs
):
197 """Maximize(bool maximize=True)"""
198 return _windows
.TopLevelWindow_Maximize(*args
, **kwargs
)
200 def Restore(*args
, **kwargs
):
202 return _windows
.TopLevelWindow_Restore(*args
, **kwargs
)
204 def Iconize(*args
, **kwargs
):
205 """Iconize(bool iconize=True)"""
206 return _windows
.TopLevelWindow_Iconize(*args
, **kwargs
)
208 def IsMaximized(*args
, **kwargs
):
209 """IsMaximized() -> bool"""
210 return _windows
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
212 def IsIconized(*args
, **kwargs
):
213 """IsIconized() -> bool"""
214 return _windows
.TopLevelWindow_IsIconized(*args
, **kwargs
)
216 def GetIcon(*args
, **kwargs
):
217 """GetIcon() -> Icon"""
218 return _windows
.TopLevelWindow_GetIcon(*args
, **kwargs
)
220 def SetIcon(*args
, **kwargs
):
221 """SetIcon(Icon icon)"""
222 return _windows
.TopLevelWindow_SetIcon(*args
, **kwargs
)
224 def SetIcons(*args
, **kwargs
):
225 """SetIcons(wxIconBundle icons)"""
226 return _windows
.TopLevelWindow_SetIcons(*args
, **kwargs
)
228 def ShowFullScreen(*args
, **kwargs
):
229 """ShowFullScreen(bool show, long style=FULLSCREEN_ALL) -> bool"""
230 return _windows
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
232 def IsFullScreen(*args
, **kwargs
):
233 """IsFullScreen() -> bool"""
234 return _windows
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
236 def SetTitle(*args
, **kwargs
):
238 SetTitle(String title)
240 Sets the window's title. Applicable only to frames and dialogs.
242 return _windows
.TopLevelWindow_SetTitle(*args
, **kwargs
)
244 def GetTitle(*args
, **kwargs
):
248 Gets the window's title. Applicable only to frames and dialogs.
250 return _windows
.TopLevelWindow_GetTitle(*args
, **kwargs
)
252 def SetShape(*args
, **kwargs
):
253 """SetShape(Region region) -> bool"""
254 return _windows
.TopLevelWindow_SetShape(*args
, **kwargs
)
257 class TopLevelWindowPtr(TopLevelWindow
):
258 def __init__(self
, this
):
260 if not hasattr(self
,"thisown"): self
.thisown
= 0
261 self
.__class
__ = TopLevelWindow
262 _windows
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
264 FrameNameStr
= cvar
.FrameNameStr
265 DialogNameStr
= cvar
.DialogNameStr
266 StatusLineNameStr
= cvar
.StatusLineNameStr
267 ToolBarNameStr
= cvar
.ToolBarNameStr
269 #---------------------------------------------------------------------------
271 class Frame(TopLevelWindow
):
273 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
274 def __init__(self
, *args
, **kwargs
):
276 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
277 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
278 String name=FrameNameStr) -> Frame
280 newobj
= _windows
.new_Frame(*args
, **kwargs
)
281 self
.this
= newobj
.this
284 self
._setOORInfo
(self
)
286 def Create(*args
, **kwargs
):
288 Create(Window parent, int id, String title, Point pos=DefaultPosition,
289 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
290 String name=FrameNameStr) -> bool
292 return _windows
.Frame_Create(*args
, **kwargs
)
294 def GetClientAreaOrigin(*args
, **kwargs
):
296 GetClientAreaOrigin() -> Point
298 Get the origin of the client area of the window relative to the
299 window's top left corner (the client area may be shifted because of
300 the borders, scrollbars, other decorations...)
302 return _windows
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
304 def SendSizeEvent(*args
, **kwargs
):
305 """SendSizeEvent()"""
306 return _windows
.Frame_SendSizeEvent(*args
, **kwargs
)
308 def SetMenuBar(*args
, **kwargs
):
309 """SetMenuBar(MenuBar menubar)"""
310 return _windows
.Frame_SetMenuBar(*args
, **kwargs
)
312 def GetMenuBar(*args
, **kwargs
):
313 """GetMenuBar() -> MenuBar"""
314 return _windows
.Frame_GetMenuBar(*args
, **kwargs
)
316 def ProcessCommand(*args
, **kwargs
):
317 """ProcessCommand(int winid) -> bool"""
318 return _windows
.Frame_ProcessCommand(*args
, **kwargs
)
320 Command
= ProcessCommand
321 def CreateStatusBar(*args
, **kwargs
):
323 CreateStatusBar(int number=1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
324 int winid=0, String name=StatusLineNameStr) -> StatusBar
326 return _windows
.Frame_CreateStatusBar(*args
, **kwargs
)
328 def GetStatusBar(*args
, **kwargs
):
329 """GetStatusBar() -> StatusBar"""
330 return _windows
.Frame_GetStatusBar(*args
, **kwargs
)
332 def SetStatusBar(*args
, **kwargs
):
333 """SetStatusBar(StatusBar statBar)"""
334 return _windows
.Frame_SetStatusBar(*args
, **kwargs
)
336 def SetStatusText(*args
, **kwargs
):
337 """SetStatusText(String text, int number=0)"""
338 return _windows
.Frame_SetStatusText(*args
, **kwargs
)
340 def SetStatusWidths(*args
, **kwargs
):
341 """SetStatusWidths(int widths, int widths_field)"""
342 return _windows
.Frame_SetStatusWidths(*args
, **kwargs
)
344 def PushStatusText(*args
, **kwargs
):
345 """PushStatusText(String text, int number=0)"""
346 return _windows
.Frame_PushStatusText(*args
, **kwargs
)
348 def PopStatusText(*args
, **kwargs
):
349 """PopStatusText(int number=0)"""
350 return _windows
.Frame_PopStatusText(*args
, **kwargs
)
352 def SetStatusBarPane(*args
, **kwargs
):
353 """SetStatusBarPane(int n)"""
354 return _windows
.Frame_SetStatusBarPane(*args
, **kwargs
)
356 def GetStatusBarPane(*args
, **kwargs
):
357 """GetStatusBarPane() -> int"""
358 return _windows
.Frame_GetStatusBarPane(*args
, **kwargs
)
360 def CreateToolBar(*args
, **kwargs
):
361 """CreateToolBar(long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
362 return _windows
.Frame_CreateToolBar(*args
, **kwargs
)
364 def GetToolBar(*args
, **kwargs
):
365 """GetToolBar() -> wxToolBar"""
366 return _windows
.Frame_GetToolBar(*args
, **kwargs
)
368 def SetToolBar(*args
, **kwargs
):
369 """SetToolBar(wxToolBar toolbar)"""
370 return _windows
.Frame_SetToolBar(*args
, **kwargs
)
372 def DoGiveHelp(*args
, **kwargs
):
373 """DoGiveHelp(String text, bool show)"""
374 return _windows
.Frame_DoGiveHelp(*args
, **kwargs
)
376 def DoMenuUpdates(*args
, **kwargs
):
377 """DoMenuUpdates(Menu menu=None)"""
378 return _windows
.Frame_DoMenuUpdates(*args
, **kwargs
)
381 class FramePtr(Frame
):
382 def __init__(self
, this
):
384 if not hasattr(self
,"thisown"): self
.thisown
= 0
385 self
.__class
__ = Frame
386 _windows
.Frame_swigregister(FramePtr
)
388 def PreFrame(*args
, **kwargs
):
389 """PreFrame() -> Frame"""
390 val
= _windows
.new_PreFrame(*args
, **kwargs
)
394 #---------------------------------------------------------------------------
396 class Dialog(TopLevelWindow
):
398 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
399 def __init__(self
, *args
, **kwargs
):
401 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
402 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
403 String name=DialogNameStr) -> Dialog
405 newobj
= _windows
.new_Dialog(*args
, **kwargs
)
406 self
.this
= newobj
.this
409 self
._setOORInfo
(self
)
411 def Create(*args
, **kwargs
):
413 Create(Window parent, int id, String title, Point pos=DefaultPosition,
414 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
415 String name=DialogNameStr) -> bool
417 return _windows
.Dialog_Create(*args
, **kwargs
)
419 def SetReturnCode(*args
, **kwargs
):
420 """SetReturnCode(int returnCode)"""
421 return _windows
.Dialog_SetReturnCode(*args
, **kwargs
)
423 def GetReturnCode(*args
, **kwargs
):
424 """GetReturnCode() -> int"""
425 return _windows
.Dialog_GetReturnCode(*args
, **kwargs
)
427 def CreateTextSizer(*args
, **kwargs
):
428 """CreateTextSizer(String message) -> Sizer"""
429 return _windows
.Dialog_CreateTextSizer(*args
, **kwargs
)
431 def CreateButtonSizer(*args
, **kwargs
):
432 """CreateButtonSizer(long flags) -> Sizer"""
433 return _windows
.Dialog_CreateButtonSizer(*args
, **kwargs
)
435 def IsModal(*args
, **kwargs
):
436 """IsModal() -> bool"""
437 return _windows
.Dialog_IsModal(*args
, **kwargs
)
439 def ShowModal(*args
, **kwargs
):
440 """ShowModal() -> int"""
441 return _windows
.Dialog_ShowModal(*args
, **kwargs
)
443 def EndModal(*args
, **kwargs
):
444 """EndModal(int retCode)"""
445 return _windows
.Dialog_EndModal(*args
, **kwargs
)
447 def IsModalShowing(*args
, **kwargs
):
448 """IsModalShowing() -> bool"""
449 return _windows
.Dialog_IsModalShowing(*args
, **kwargs
)
452 class DialogPtr(Dialog
):
453 def __init__(self
, this
):
455 if not hasattr(self
,"thisown"): self
.thisown
= 0
456 self
.__class
__ = Dialog
457 _windows
.Dialog_swigregister(DialogPtr
)
459 def PreDialog(*args
, **kwargs
):
460 """PreDialog() -> Dialog"""
461 val
= _windows
.new_PreDialog(*args
, **kwargs
)
465 #---------------------------------------------------------------------------
467 class MiniFrame(Frame
):
469 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
470 def __init__(self
, *args
, **kwargs
):
472 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
473 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
474 String name=FrameNameStr) -> MiniFrame
476 newobj
= _windows
.new_MiniFrame(*args
, **kwargs
)
477 self
.this
= newobj
.this
480 self
._setOORInfo
(self
)
482 def Create(*args
, **kwargs
):
484 Create(Window parent, int id, String title, Point pos=DefaultPosition,
485 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
486 String name=FrameNameStr) -> bool
488 return _windows
.MiniFrame_Create(*args
, **kwargs
)
491 class MiniFramePtr(MiniFrame
):
492 def __init__(self
, this
):
494 if not hasattr(self
,"thisown"): self
.thisown
= 0
495 self
.__class
__ = MiniFrame
496 _windows
.MiniFrame_swigregister(MiniFramePtr
)
498 def PreMiniFrame(*args
, **kwargs
):
499 """PreMiniFrame() -> MiniFrame"""
500 val
= _windows
.new_PreMiniFrame(*args
, **kwargs
)
504 #---------------------------------------------------------------------------
506 SPLASH_CENTRE_ON_PARENT
= _windows
.SPLASH_CENTRE_ON_PARENT
507 SPLASH_CENTRE_ON_SCREEN
= _windows
.SPLASH_CENTRE_ON_SCREEN
508 SPLASH_NO_CENTRE
= _windows
.SPLASH_NO_CENTRE
509 SPLASH_TIMEOUT
= _windows
.SPLASH_TIMEOUT
510 SPLASH_NO_TIMEOUT
= _windows
.SPLASH_NO_TIMEOUT
511 class SplashScreenWindow(core
.Window
):
513 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
514 def __init__(self
, *args
, **kwargs
):
516 __init__(Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
517 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
519 newobj
= _windows
.new_SplashScreenWindow(*args
, **kwargs
)
520 self
.this
= newobj
.this
523 self
._setOORInfo
(self
)
525 def SetBitmap(*args
, **kwargs
):
526 """SetBitmap(Bitmap bitmap)"""
527 return _windows
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
529 def GetBitmap(*args
, **kwargs
):
530 """GetBitmap() -> Bitmap"""
531 return _windows
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
534 class SplashScreenWindowPtr(SplashScreenWindow
):
535 def __init__(self
, this
):
537 if not hasattr(self
,"thisown"): self
.thisown
= 0
538 self
.__class
__ = SplashScreenWindow
539 _windows
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
541 class SplashScreen(Frame
):
543 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
544 def __init__(self
, *args
, **kwargs
):
546 __init__(Bitmap bitmap, long splashStyle, int milliseconds,
547 Window parent, int id, Point pos=DefaultPosition,
548 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
550 newobj
= _windows
.new_SplashScreen(*args
, **kwargs
)
551 self
.this
= newobj
.this
554 self
._setOORInfo
(self
)
556 def GetSplashStyle(*args
, **kwargs
):
557 """GetSplashStyle() -> long"""
558 return _windows
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
560 def GetSplashWindow(*args
, **kwargs
):
561 """GetSplashWindow() -> SplashScreenWindow"""
562 return _windows
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
564 def GetTimeout(*args
, **kwargs
):
565 """GetTimeout() -> int"""
566 return _windows
.SplashScreen_GetTimeout(*args
, **kwargs
)
569 class SplashScreenPtr(SplashScreen
):
570 def __init__(self
, this
):
572 if not hasattr(self
,"thisown"): self
.thisown
= 0
573 self
.__class
__ = SplashScreen
574 _windows
.SplashScreen_swigregister(SplashScreenPtr
)
576 #---------------------------------------------------------------------------
578 class StatusBar(core
.Window
):
580 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
581 def __init__(self
, *args
, **kwargs
):
583 __init__(Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
584 String name=StatusLineNameStr) -> StatusBar
586 newobj
= _windows
.new_StatusBar(*args
, **kwargs
)
587 self
.this
= newobj
.this
590 self
._setOORInfo
(self
)
592 def Create(*args
, **kwargs
):
593 """Create(Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
594 return _windows
.StatusBar_Create(*args
, **kwargs
)
596 def SetFieldsCount(*args
, **kwargs
):
597 """SetFieldsCount(int number=1)"""
598 return _windows
.StatusBar_SetFieldsCount(*args
, **kwargs
)
600 def GetFieldsCount(*args
, **kwargs
):
601 """GetFieldsCount() -> int"""
602 return _windows
.StatusBar_GetFieldsCount(*args
, **kwargs
)
604 def SetStatusText(*args
, **kwargs
):
605 """SetStatusText(String text, int number=0)"""
606 return _windows
.StatusBar_SetStatusText(*args
, **kwargs
)
608 def GetStatusText(*args
, **kwargs
):
609 """GetStatusText(int number=0) -> String"""
610 return _windows
.StatusBar_GetStatusText(*args
, **kwargs
)
612 def PushStatusText(*args
, **kwargs
):
613 """PushStatusText(String text, int number=0)"""
614 return _windows
.StatusBar_PushStatusText(*args
, **kwargs
)
616 def PopStatusText(*args
, **kwargs
):
617 """PopStatusText(int number=0)"""
618 return _windows
.StatusBar_PopStatusText(*args
, **kwargs
)
620 def SetStatusWidths(*args
, **kwargs
):
621 """SetStatusWidths(int widths, int widths_field)"""
622 return _windows
.StatusBar_SetStatusWidths(*args
, **kwargs
)
624 def GetFieldRect(*args
, **kwargs
):
625 """GetFieldRect(int i) -> Rect"""
626 return _windows
.StatusBar_GetFieldRect(*args
, **kwargs
)
628 def SetMinHeight(*args
, **kwargs
):
629 """SetMinHeight(int height)"""
630 return _windows
.StatusBar_SetMinHeight(*args
, **kwargs
)
632 def GetBorderX(*args
, **kwargs
):
633 """GetBorderX() -> int"""
634 return _windows
.StatusBar_GetBorderX(*args
, **kwargs
)
636 def GetBorderY(*args
, **kwargs
):
637 """GetBorderY() -> int"""
638 return _windows
.StatusBar_GetBorderY(*args
, **kwargs
)
641 class StatusBarPtr(StatusBar
):
642 def __init__(self
, this
):
644 if not hasattr(self
,"thisown"): self
.thisown
= 0
645 self
.__class
__ = StatusBar
646 _windows
.StatusBar_swigregister(StatusBarPtr
)
648 def PreStatusBar(*args
, **kwargs
):
649 """PreStatusBar() -> StatusBar"""
650 val
= _windows
.new_PreStatusBar(*args
, **kwargs
)
654 #---------------------------------------------------------------------------
656 SP_NOBORDER
= _windows
.SP_NOBORDER
657 SP_NOSASH
= _windows
.SP_NOSASH
658 SP_PERMIT_UNSPLIT
= _windows
.SP_PERMIT_UNSPLIT
659 SP_LIVE_UPDATE
= _windows
.SP_LIVE_UPDATE
660 SP_3DSASH
= _windows
.SP_3DSASH
661 SP_3DBORDER
= _windows
.SP_3DBORDER
662 SP_NO_XP_THEME
= _windows
.SP_NO_XP_THEME
663 SP_BORDER
= _windows
.SP_BORDER
664 SP_3D
= _windows
.SP_3D
665 SPLIT_HORIZONTAL
= _windows
.SPLIT_HORIZONTAL
666 SPLIT_VERTICAL
= _windows
.SPLIT_VERTICAL
667 SPLIT_DRAG_NONE
= _windows
.SPLIT_DRAG_NONE
668 SPLIT_DRAG_DRAGGING
= _windows
.SPLIT_DRAG_DRAGGING
669 SPLIT_DRAG_LEFT_DOWN
= _windows
.SPLIT_DRAG_LEFT_DOWN
670 class SplitterWindow(core
.Window
):
672 wx.SplitterWindow manages up to two subwindows or panes,
673 with an optional vertical or horizontal split which can be
674 used with the mouse or programmatically.
678 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
679 def __init__(self
, *args
, **kwargs
):
681 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
682 long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
684 Constructor. Creates and shows a SplitterWindow.
686 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
687 newobj
= _windows
.new_SplitterWindow(*args
, **kwargs
)
688 self
.this
= newobj
.this
691 self
._setOORInfo
(self
)
693 def Create(*args
, **kwargs
):
695 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
696 long style=SP_3D, String name=SplitterNameStr) -> bool
698 Create the GUI part of the SplitterWindow for the 2-phase create.
700 return _windows
.SplitterWindow_Create(*args
, **kwargs
)
702 def GetWindow1(*args
, **kwargs
):
704 GetWindow1() -> Window
706 Gets the only or left/top pane.
708 return _windows
.SplitterWindow_GetWindow1(*args
, **kwargs
)
710 def GetWindow2(*args
, **kwargs
):
712 GetWindow2() -> Window
714 Gets the right/bottom pane.
716 return _windows
.SplitterWindow_GetWindow2(*args
, **kwargs
)
718 def SetSplitMode(*args
, **kwargs
):
720 SetSplitMode(int mode)
722 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
723 wx.SPLIT_HORIZONTAL. This only sets the internal variable;
724 does not update the display.
726 return _windows
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
728 def GetSplitMode(*args
, **kwargs
):
730 GetSplitMode() -> int
734 return _windows
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
736 def Initialize(*args
, **kwargs
):
738 Initialize(Window window)
740 Initializes the splitter window to have one pane. This
741 should be called if you wish to initially view only a single
742 pane in the splitter window.
744 return _windows
.SplitterWindow_Initialize(*args
, **kwargs
)
746 def SplitVertically(*args
, **kwargs
):
748 SplitVertically(Window window1, Window window2, int sashPosition=0) -> bool
750 Initializes the left and right panes of the splitter window.
752 window1 The left pane.
753 window2 The right pane.
754 sashPosition The initial position of the sash. If this
755 value is positive, it specifies the size
756 of the left pane. If it is negative, it is
757 absolute value gives the size of the right
758 pane. Finally, specify 0 (default) to
759 choose the default position (half of the
762 Returns True if successful, False otherwise (the window was
765 SplitVertically should be called if you wish to initially
766 view two panes. It can also be called at any subsequent
767 time, but the application should check that the window is
768 not currently split using IsSplit.
770 return _windows
.SplitterWindow_SplitVertically(*args
, **kwargs
)
772 def SplitHorizontally(*args
, **kwargs
):
774 SplitHorizontally(Window window1, Window window2, int sashPosition=0) -> bool
776 Initializes the top and bottom panes of the splitter window.
778 window1 The top pane.
779 window2 The bottom pane.
780 sashPosition The initial position of the sash. If this
781 value is positive, it specifies the size
782 of the upper pane. If it is negative, it
783 is absolute value gives the size of the
784 lower pane. Finally, specify 0 (default)
785 to choose the default position (half of
786 the total window height).
788 Returns True if successful, False otherwise (the window was
791 SplitHorizontally should be called if you wish to initially
792 view two panes. It can also be called at any subsequent
793 time, but the application should check that the window is
794 not currently split using IsSplit.
796 return _windows
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
798 def Unsplit(*args
, **kwargs
):
800 Unsplit(Window toRemove=None) -> bool
802 Unsplits the window. Pass the pane to remove, or None to
803 remove the right or bottom pane. Returns True if
804 successful, False otherwise (the window was not split).
806 This function will not actually delete the pane being
807 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
808 for the desired behaviour. By default, the pane being
809 removed is only hidden.
811 return _windows
.SplitterWindow_Unsplit(*args
, **kwargs
)
813 def ReplaceWindow(*args
, **kwargs
):
815 ReplaceWindow(Window winOld, Window winNew) -> bool
817 This function replaces one of the windows managed by the
818 SplitterWindow with another one. It is in general better to
819 use it instead of calling Unsplit() and then resplitting the
820 window back because it will provoke much less flicker. It is
821 valid to call this function whether the splitter has two
824 Both parameters should be non-None and winOld must specify
825 one of the windows managed by the splitter. If the
826 parameters are incorrect or the window couldn't be replaced,
827 False is returned. Otherwise the function will return True,
828 but please notice that it will not Destroy the replaced
829 window and you may wish to do it yourself.
831 return _windows
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
833 def UpdateSize(*args
, **kwargs
):
837 Causes any pending sizing of the sash and child panes to
838 take place immediately.
840 Such resizing normally takes place in idle time, in order to
841 wait for layout to be completed. However, this can cause
842 unacceptable flicker as the panes are resized after the
843 window has been shown. To work around this, you can perform
844 window layout (for example by sending a size event to the
845 parent window), and then call this function, before showing
846 the top-level window.
848 return _windows
.SplitterWindow_UpdateSize(*args
, **kwargs
)
850 def IsSplit(*args
, **kwargs
):
856 return _windows
.SplitterWindow_IsSplit(*args
, **kwargs
)
858 def SetSashSize(*args
, **kwargs
):
860 SetSashSize(int width)
864 return _windows
.SplitterWindow_SetSashSize(*args
, **kwargs
)
866 def SetBorderSize(*args
, **kwargs
):
868 SetBorderSize(int width)
872 return _windows
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
874 def GetSashSize(*args
, **kwargs
):
880 return _windows
.SplitterWindow_GetSashSize(*args
, **kwargs
)
882 def GetBorderSize(*args
, **kwargs
):
884 GetBorderSize() -> int
888 return _windows
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
890 def SetSashPosition(*args
, **kwargs
):
892 SetSashPosition(int position, bool redraw=True)
894 Sets the sash position, in pixels. If redraw is Ttrue then
895 the panes are resized and the sash and border are redrawn.
897 return _windows
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
899 def GetSashPosition(*args
, **kwargs
):
901 GetSashPosition() -> int
903 Returns the surrent sash position.
905 return _windows
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
907 def SetMinimumPaneSize(*args
, **kwargs
):
909 SetMinimumPaneSize(int min)
911 Sets the minimum pane size in pixels.
913 The default minimum pane size is zero, which means that
914 either pane can be reduced to zero by dragging the sash,
915 thus removing one of the panes. To prevent this behaviour (and
916 veto out-of-range sash dragging), set a minimum size,
917 for example 20 pixels. If the wx.SP_PERMIT_UNSPLIT style is
918 used when a splitter window is created, the window may be
919 unsplit even if minimum size is non-zero.
921 return _windows
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
923 def GetMinimumPaneSize(*args
, **kwargs
):
925 GetMinimumPaneSize() -> int
927 Gets the minimum pane size in pixels.
929 return _windows
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
931 def SashHitTest(*args
, **kwargs
):
933 SashHitTest(int x, int y, int tolerance=5) -> bool
935 Tests for x, y over the sash
937 return _windows
.SplitterWindow_SashHitTest(*args
, **kwargs
)
939 def SizeWindows(*args
, **kwargs
):
945 return _windows
.SplitterWindow_SizeWindows(*args
, **kwargs
)
947 def SetNeedUpdating(*args
, **kwargs
):
948 """SetNeedUpdating(bool needUpdating)"""
949 return _windows
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
951 def GetNeedUpdating(*args
, **kwargs
):
952 """GetNeedUpdating() -> bool"""
953 return _windows
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
956 class SplitterWindowPtr(SplitterWindow
):
957 def __init__(self
, this
):
959 if not hasattr(self
,"thisown"): self
.thisown
= 0
960 self
.__class
__ = SplitterWindow
961 _windows
.SplitterWindow_swigregister(SplitterWindowPtr
)
962 SplitterNameStr
= cvar
.SplitterNameStr
964 def PreSplitterWindow(*args
, **kwargs
):
966 PreSplitterWindow() -> SplitterWindow
968 Precreate a SplitterWindow for 2-phase creation.
970 val
= _windows
.new_PreSplitterWindow(*args
, **kwargs
)
974 class SplitterEvent(core
.NotifyEvent
):
975 """This class represents the events generated by a splitter control."""
977 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
978 def __init__(self
, *args
, **kwargs
):
980 __init__(wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
982 This class represents the events generated by a splitter control.
984 newobj
= _windows
.new_SplitterEvent(*args
, **kwargs
)
985 self
.this
= newobj
.this
988 def SetSashPosition(*args
, **kwargs
):
990 SetSashPosition(int pos)
992 This funciton is only meaningful during
993 EVT_SPLITTER_SASH_POS_CHANGING and
994 EVT_SPLITTER_SASH_POS_CHANGED events. In the case of
995 _CHANGED events, sets the the new sash position. In the case
996 of _CHANGING events, sets the new tracking bar position so
997 visual feedback during dragging will represent that change
998 that will actually take place. Set to -1 from the event
999 handler code to prevent repositioning.
1001 return _windows
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1003 def GetSashPosition(*args
, **kwargs
):
1005 GetSashPosition() -> int
1007 Returns the new sash position while in
1008 EVT_SPLITTER_SASH_POS_CHANGING and
1009 EVT_SPLITTER_SASH_POS_CHANGED events.
1011 return _windows
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1013 def GetWindowBeingRemoved(*args
, **kwargs
):
1015 GetWindowBeingRemoved() -> Window
1017 Returns a pointer to the window being removed when a
1018 splitter window is unsplit.
1020 return _windows
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1022 def GetX(*args
, **kwargs
):
1026 Returns the x coordinate of the double-click point in a
1027 EVT_SPLITTER_DCLICK event.
1029 return _windows
.SplitterEvent_GetX(*args
, **kwargs
)
1031 def GetY(*args
, **kwargs
):
1035 Returns the y coordinate of the double-click point in a
1036 EVT_SPLITTER_DCLICK event.
1038 return _windows
.SplitterEvent_GetY(*args
, **kwargs
)
1041 class SplitterEventPtr(SplitterEvent
):
1042 def __init__(self
, this
):
1044 if not hasattr(self
,"thisown"): self
.thisown
= 0
1045 self
.__class
__ = SplitterEvent
1046 _windows
.SplitterEvent_swigregister(SplitterEventPtr
)
1048 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1049 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1050 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1051 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1052 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1053 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1054 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1055 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1056 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1058 #---------------------------------------------------------------------------
1060 SASH_DRAG_NONE
= _windows
.SASH_DRAG_NONE
1061 SASH_DRAG_DRAGGING
= _windows
.SASH_DRAG_DRAGGING
1062 SASH_DRAG_LEFT_DOWN
= _windows
.SASH_DRAG_LEFT_DOWN
1063 SW_NOBORDER
= _windows
.SW_NOBORDER
1064 SW_BORDER
= _windows
.SW_BORDER
1065 SW_3DSASH
= _windows
.SW_3DSASH
1066 SW_3DBORDER
= _windows
.SW_3DBORDER
1067 SW_3D
= _windows
.SW_3D
1068 SASH_TOP
= _windows
.SASH_TOP
1069 SASH_RIGHT
= _windows
.SASH_RIGHT
1070 SASH_BOTTOM
= _windows
.SASH_BOTTOM
1071 SASH_LEFT
= _windows
.SASH_LEFT
1072 SASH_NONE
= _windows
.SASH_NONE
1073 class SashWindow(core
.Window
):
1075 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1076 def __init__(self
, *args
, **kwargs
):
1078 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1079 long style=wxCLIP_CHILDREN|wxSW_3D,
1080 String name=SashNameStr) -> SashWindow
1082 newobj
= _windows
.new_SashWindow(*args
, **kwargs
)
1083 self
.this
= newobj
.this
1086 self
._setOORInfo
(self
)
1088 def Create(*args
, **kwargs
):
1090 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1091 long style=wxCLIP_CHILDREN|wxSW_3D,
1092 String name=SashNameStr) -> bool
1094 return _windows
.SashWindow_Create(*args
, **kwargs
)
1096 def SetSashVisible(*args
, **kwargs
):
1097 """SetSashVisible(int edge, bool sash)"""
1098 return _windows
.SashWindow_SetSashVisible(*args
, **kwargs
)
1100 def GetSashVisible(*args
, **kwargs
):
1101 """GetSashVisible(int edge) -> bool"""
1102 return _windows
.SashWindow_GetSashVisible(*args
, **kwargs
)
1104 def SetSashBorder(*args
, **kwargs
):
1105 """SetSashBorder(int edge, bool border)"""
1106 return _windows
.SashWindow_SetSashBorder(*args
, **kwargs
)
1108 def HasBorder(*args
, **kwargs
):
1109 """HasBorder(int edge) -> bool"""
1110 return _windows
.SashWindow_HasBorder(*args
, **kwargs
)
1112 def GetEdgeMargin(*args
, **kwargs
):
1113 """GetEdgeMargin(int edge) -> int"""
1114 return _windows
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1116 def SetDefaultBorderSize(*args
, **kwargs
):
1117 """SetDefaultBorderSize(int width)"""
1118 return _windows
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1120 def GetDefaultBorderSize(*args
, **kwargs
):
1121 """GetDefaultBorderSize() -> int"""
1122 return _windows
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1124 def SetExtraBorderSize(*args
, **kwargs
):
1125 """SetExtraBorderSize(int width)"""
1126 return _windows
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1128 def GetExtraBorderSize(*args
, **kwargs
):
1129 """GetExtraBorderSize() -> int"""
1130 return _windows
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1132 def SetMinimumSizeX(*args
, **kwargs
):
1133 """SetMinimumSizeX(int min)"""
1134 return _windows
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1136 def SetMinimumSizeY(*args
, **kwargs
):
1137 """SetMinimumSizeY(int min)"""
1138 return _windows
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1140 def GetMinimumSizeX(*args
, **kwargs
):
1141 """GetMinimumSizeX() -> int"""
1142 return _windows
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1144 def GetMinimumSizeY(*args
, **kwargs
):
1145 """GetMinimumSizeY() -> int"""
1146 return _windows
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1148 def SetMaximumSizeX(*args
, **kwargs
):
1149 """SetMaximumSizeX(int max)"""
1150 return _windows
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1152 def SetMaximumSizeY(*args
, **kwargs
):
1153 """SetMaximumSizeY(int max)"""
1154 return _windows
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1156 def GetMaximumSizeX(*args
, **kwargs
):
1157 """GetMaximumSizeX() -> int"""
1158 return _windows
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1160 def GetMaximumSizeY(*args
, **kwargs
):
1161 """GetMaximumSizeY() -> int"""
1162 return _windows
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1164 def SashHitTest(*args
, **kwargs
):
1165 """SashHitTest(int x, int y, int tolerance=2) -> int"""
1166 return _windows
.SashWindow_SashHitTest(*args
, **kwargs
)
1168 def SizeWindows(*args
, **kwargs
):
1170 return _windows
.SashWindow_SizeWindows(*args
, **kwargs
)
1173 class SashWindowPtr(SashWindow
):
1174 def __init__(self
, this
):
1176 if not hasattr(self
,"thisown"): self
.thisown
= 0
1177 self
.__class
__ = SashWindow
1178 _windows
.SashWindow_swigregister(SashWindowPtr
)
1179 SashNameStr
= cvar
.SashNameStr
1180 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1182 def PreSashWindow(*args
, **kwargs
):
1183 """PreSashWindow() -> SashWindow"""
1184 val
= _windows
.new_PreSashWindow(*args
, **kwargs
)
1188 SASH_STATUS_OK
= _windows
.SASH_STATUS_OK
1189 SASH_STATUS_OUT_OF_RANGE
= _windows
.SASH_STATUS_OUT_OF_RANGE
1190 class SashEvent(core
.CommandEvent
):
1192 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1193 def __init__(self
, *args
, **kwargs
):
1194 """__init__(int id=0, int edge=SASH_NONE) -> SashEvent"""
1195 newobj
= _windows
.new_SashEvent(*args
, **kwargs
)
1196 self
.this
= newobj
.this
1199 def SetEdge(*args
, **kwargs
):
1200 """SetEdge(int edge)"""
1201 return _windows
.SashEvent_SetEdge(*args
, **kwargs
)
1203 def GetEdge(*args
, **kwargs
):
1204 """GetEdge() -> int"""
1205 return _windows
.SashEvent_GetEdge(*args
, **kwargs
)
1207 def SetDragRect(*args
, **kwargs
):
1208 """SetDragRect(Rect rect)"""
1209 return _windows
.SashEvent_SetDragRect(*args
, **kwargs
)
1211 def GetDragRect(*args
, **kwargs
):
1212 """GetDragRect() -> Rect"""
1213 return _windows
.SashEvent_GetDragRect(*args
, **kwargs
)
1215 def SetDragStatus(*args
, **kwargs
):
1216 """SetDragStatus(int status)"""
1217 return _windows
.SashEvent_SetDragStatus(*args
, **kwargs
)
1219 def GetDragStatus(*args
, **kwargs
):
1220 """GetDragStatus() -> int"""
1221 return _windows
.SashEvent_GetDragStatus(*args
, **kwargs
)
1224 class SashEventPtr(SashEvent
):
1225 def __init__(self
, this
):
1227 if not hasattr(self
,"thisown"): self
.thisown
= 0
1228 self
.__class
__ = SashEvent
1229 _windows
.SashEvent_swigregister(SashEventPtr
)
1231 wxEVT_SASH_DRAGGED
= _windows
.wxEVT_SASH_DRAGGED
1232 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1233 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1235 #---------------------------------------------------------------------------
1237 LAYOUT_HORIZONTAL
= _windows
.LAYOUT_HORIZONTAL
1238 LAYOUT_VERTICAL
= _windows
.LAYOUT_VERTICAL
1239 LAYOUT_NONE
= _windows
.LAYOUT_NONE
1240 LAYOUT_TOP
= _windows
.LAYOUT_TOP
1241 LAYOUT_LEFT
= _windows
.LAYOUT_LEFT
1242 LAYOUT_RIGHT
= _windows
.LAYOUT_RIGHT
1243 LAYOUT_BOTTOM
= _windows
.LAYOUT_BOTTOM
1244 LAYOUT_LENGTH_Y
= _windows
.LAYOUT_LENGTH_Y
1245 LAYOUT_LENGTH_X
= _windows
.LAYOUT_LENGTH_X
1246 LAYOUT_MRU_LENGTH
= _windows
.LAYOUT_MRU_LENGTH
1247 LAYOUT_QUERY
= _windows
.LAYOUT_QUERY
1248 wxEVT_QUERY_LAYOUT_INFO
= _windows
.wxEVT_QUERY_LAYOUT_INFO
1249 wxEVT_CALCULATE_LAYOUT
= _windows
.wxEVT_CALCULATE_LAYOUT
1250 class QueryLayoutInfoEvent(core
.Event
):
1252 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1253 def __init__(self
, *args
, **kwargs
):
1254 """__init__(int id=0) -> QueryLayoutInfoEvent"""
1255 newobj
= _windows
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1256 self
.this
= newobj
.this
1259 def SetRequestedLength(*args
, **kwargs
):
1260 """SetRequestedLength(int length)"""
1261 return _windows
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1263 def GetRequestedLength(*args
, **kwargs
):
1264 """GetRequestedLength() -> int"""
1265 return _windows
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1267 def SetFlags(*args
, **kwargs
):
1268 """SetFlags(int flags)"""
1269 return _windows
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1271 def GetFlags(*args
, **kwargs
):
1272 """GetFlags() -> int"""
1273 return _windows
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1275 def SetSize(*args
, **kwargs
):
1276 """SetSize(Size size)"""
1277 return _windows
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1279 def GetSize(*args
, **kwargs
):
1280 """GetSize() -> Size"""
1281 return _windows
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1283 def SetOrientation(*args
, **kwargs
):
1284 """SetOrientation(int orient)"""
1285 return _windows
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1287 def GetOrientation(*args
, **kwargs
):
1288 """GetOrientation() -> int"""
1289 return _windows
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1291 def SetAlignment(*args
, **kwargs
):
1292 """SetAlignment(int align)"""
1293 return _windows
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1295 def GetAlignment(*args
, **kwargs
):
1296 """GetAlignment() -> int"""
1297 return _windows
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1300 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1301 def __init__(self
, this
):
1303 if not hasattr(self
,"thisown"): self
.thisown
= 0
1304 self
.__class
__ = QueryLayoutInfoEvent
1305 _windows
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1307 class CalculateLayoutEvent(core
.Event
):
1309 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1310 def __init__(self
, *args
, **kwargs
):
1311 """__init__(int id=0) -> CalculateLayoutEvent"""
1312 newobj
= _windows
.new_CalculateLayoutEvent(*args
, **kwargs
)
1313 self
.this
= newobj
.this
1316 def SetFlags(*args
, **kwargs
):
1317 """SetFlags(int flags)"""
1318 return _windows
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1320 def GetFlags(*args
, **kwargs
):
1321 """GetFlags() -> int"""
1322 return _windows
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1324 def SetRect(*args
, **kwargs
):
1325 """SetRect(Rect rect)"""
1326 return _windows
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1328 def GetRect(*args
, **kwargs
):
1329 """GetRect() -> Rect"""
1330 return _windows
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1333 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1334 def __init__(self
, this
):
1336 if not hasattr(self
,"thisown"): self
.thisown
= 0
1337 self
.__class
__ = CalculateLayoutEvent
1338 _windows
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1340 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1341 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1343 class SashLayoutWindow(SashWindow
):
1345 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1346 def __init__(self
, *args
, **kwargs
):
1348 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1349 long style=wxCLIP_CHILDREN|wxSW_3D,
1350 String name=SashLayoutNameStr) -> SashLayoutWindow
1352 newobj
= _windows
.new_SashLayoutWindow(*args
, **kwargs
)
1353 self
.this
= newobj
.this
1356 self
._setOORInfo
(self
)
1358 def Create(*args
, **kwargs
):
1360 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1361 long style=wxCLIP_CHILDREN|wxSW_3D,
1362 String name=SashLayoutNameStr) -> bool
1364 return _windows
.SashLayoutWindow_Create(*args
, **kwargs
)
1366 def GetAlignment(*args
, **kwargs
):
1367 """GetAlignment() -> int"""
1368 return _windows
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1370 def GetOrientation(*args
, **kwargs
):
1371 """GetOrientation() -> int"""
1372 return _windows
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1374 def SetAlignment(*args
, **kwargs
):
1375 """SetAlignment(int alignment)"""
1376 return _windows
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1378 def SetDefaultSize(*args
, **kwargs
):
1379 """SetDefaultSize(Size size)"""
1380 return _windows
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1382 def SetOrientation(*args
, **kwargs
):
1383 """SetOrientation(int orientation)"""
1384 return _windows
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1387 class SashLayoutWindowPtr(SashLayoutWindow
):
1388 def __init__(self
, this
):
1390 if not hasattr(self
,"thisown"): self
.thisown
= 0
1391 self
.__class
__ = SashLayoutWindow
1392 _windows
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1394 def PreSashLayoutWindow(*args
, **kwargs
):
1395 """PreSashLayoutWindow() -> SashLayoutWindow"""
1396 val
= _windows
.new_PreSashLayoutWindow(*args
, **kwargs
)
1400 class LayoutAlgorithm(core
.Object
):
1402 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1403 def __init__(self
, *args
, **kwargs
):
1404 """__init__() -> LayoutAlgorithm"""
1405 newobj
= _windows
.new_LayoutAlgorithm(*args
, **kwargs
)
1406 self
.this
= newobj
.this
1409 def __del__(self
, destroy
=_windows
.delete_LayoutAlgorithm
):
1412 if self
.thisown
: destroy(self
)
1415 def LayoutMDIFrame(*args
, **kwargs
):
1416 """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool"""
1417 return _windows
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1419 def LayoutFrame(*args
, **kwargs
):
1420 """LayoutFrame(Frame frame, Window mainWindow=None) -> bool"""
1421 return _windows
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1423 def LayoutWindow(*args
, **kwargs
):
1424 """LayoutWindow(Window parent, Window mainWindow=None) -> bool"""
1425 return _windows
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1428 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1429 def __init__(self
, this
):
1431 if not hasattr(self
,"thisown"): self
.thisown
= 0
1432 self
.__class
__ = LayoutAlgorithm
1433 _windows
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1435 #---------------------------------------------------------------------------
1437 class PopupWindow(core
.Window
):
1439 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1440 def __init__(self
, *args
, **kwargs
):
1441 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1442 newobj
= _windows
.new_PopupWindow(*args
, **kwargs
)
1443 self
.this
= newobj
.this
1446 self
._setOORInfo
(self
)
1448 def Create(*args
, **kwargs
):
1449 """Create(Window parent, int flags=BORDER_NONE) -> bool"""
1450 return _windows
.PopupWindow_Create(*args
, **kwargs
)
1452 def Position(*args
, **kwargs
):
1453 """Position(Point ptOrigin, Size size)"""
1454 return _windows
.PopupWindow_Position(*args
, **kwargs
)
1457 class PopupWindowPtr(PopupWindow
):
1458 def __init__(self
, this
):
1460 if not hasattr(self
,"thisown"): self
.thisown
= 0
1461 self
.__class
__ = PopupWindow
1462 _windows
.PopupWindow_swigregister(PopupWindowPtr
)
1464 def PrePopupWindow(*args
, **kwargs
):
1465 """PrePopupWindow() -> PopupWindow"""
1466 val
= _windows
.new_PrePopupWindow(*args
, **kwargs
)
1470 #---------------------------------------------------------------------------
1472 class PopupTransientWindow(PopupWindow
):
1474 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1475 def __init__(self
, *args
, **kwargs
):
1476 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1477 newobj
= _windows
.new_PopupTransientWindow(*args
, **kwargs
)
1478 self
.this
= newobj
.this
1481 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1483 def _setCallbackInfo(*args
, **kwargs
):
1484 """_setCallbackInfo(PyObject self, PyObject _class)"""
1485 return _windows
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1487 def Popup(*args
, **kwargs
):
1488 """Popup(Window focus=None)"""
1489 return _windows
.PopupTransientWindow_Popup(*args
, **kwargs
)
1491 def Dismiss(*args
, **kwargs
):
1493 return _windows
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1496 class PopupTransientWindowPtr(PopupTransientWindow
):
1497 def __init__(self
, this
):
1499 if not hasattr(self
,"thisown"): self
.thisown
= 0
1500 self
.__class
__ = PopupTransientWindow
1501 _windows
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1503 def PrePopupTransientWindow(*args
, **kwargs
):
1504 """PrePopupTransientWindow() -> PopupTransientWindow"""
1505 val
= _windows
.new_PrePopupTransientWindow(*args
, **kwargs
)
1509 #---------------------------------------------------------------------------
1511 class TipWindow(PopupTransientWindow
):
1513 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1514 def __init__(self
, *args
, **kwargs
):
1515 """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1516 newobj
= _windows
.new_TipWindow(*args
, **kwargs
)
1517 self
.this
= newobj
.this
1520 self
._setOORInfo
(self
)
1522 def SetBoundingRect(*args
, **kwargs
):
1523 """SetBoundingRect(Rect rectBound)"""
1524 return _windows
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1526 def Close(*args
, **kwargs
):
1528 return _windows
.TipWindow_Close(*args
, **kwargs
)
1531 class TipWindowPtr(TipWindow
):
1532 def __init__(self
, this
):
1534 if not hasattr(self
,"thisown"): self
.thisown
= 0
1535 self
.__class
__ = TipWindow
1536 _windows
.TipWindow_swigregister(TipWindowPtr
)
1538 #---------------------------------------------------------------------------
1540 class VScrolledWindow(Panel
):
1542 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1543 def __init__(self
, *args
, **kwargs
):
1545 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1546 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1548 newobj
= _windows
.new_VScrolledWindow(*args
, **kwargs
)
1549 self
.this
= newobj
.this
1552 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1554 def _setCallbackInfo(*args
, **kwargs
):
1555 """_setCallbackInfo(PyObject self, PyObject _class)"""
1556 return _windows
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1558 def Create(*args
, **kwargs
):
1560 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1561 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1563 return _windows
.VScrolledWindow_Create(*args
, **kwargs
)
1565 def SetLineCount(*args
, **kwargs
):
1566 """SetLineCount(size_t count)"""
1567 return _windows
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1569 def ScrollToLine(*args
, **kwargs
):
1570 """ScrollToLine(size_t line) -> bool"""
1571 return _windows
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1573 def ScrollLines(*args
, **kwargs
):
1575 ScrollLines(int lines) -> bool
1577 If the platform and window class supports it, scrolls the window by
1578 the given number of lines down, if lines is positive, or up if lines
1579 is negative. Returns True if the window was scrolled, False if it was
1580 already on top/bottom and nothing was done.
1582 return _windows
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1584 def ScrollPages(*args
, **kwargs
):
1586 ScrollPages(int pages) -> bool
1588 If the platform and window class supports it, scrolls the window by
1589 the given number of pages down, if pages is positive, or up if pages
1590 is negative. Returns True if the window was scrolled, False if it was
1591 already on top/bottom and nothing was done.
1593 return _windows
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1595 def RefreshLine(*args
, **kwargs
):
1596 """RefreshLine(size_t line)"""
1597 return _windows
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1599 def RefreshLines(*args
, **kwargs
):
1600 """RefreshLines(size_t from, size_t to)"""
1601 return _windows
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1603 def HitTestXT(*args
, **kwargs
):
1605 HitTestXT(int x, int y) -> int
1607 Test where the given (in client coords) point lies
1609 return _windows
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1611 def HitTest(*args
, **kwargs
):
1613 HitTest(Point pt) -> int
1615 Test where the given (in client coords) point lies
1617 return _windows
.VScrolledWindow_HitTest(*args
, **kwargs
)
1619 def RefreshAll(*args
, **kwargs
):
1621 return _windows
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1623 def GetLineCount(*args
, **kwargs
):
1624 """GetLineCount() -> size_t"""
1625 return _windows
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1627 def GetFirstVisibleLine(*args
, **kwargs
):
1628 """GetFirstVisibleLine() -> size_t"""
1629 return _windows
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1631 def GetLastVisibleLine(*args
, **kwargs
):
1632 """GetLastVisibleLine() -> size_t"""
1633 return _windows
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1635 def IsVisible(*args
, **kwargs
):
1636 """IsVisible(size_t line) -> bool"""
1637 return _windows
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1640 class VScrolledWindowPtr(VScrolledWindow
):
1641 def __init__(self
, this
):
1643 if not hasattr(self
,"thisown"): self
.thisown
= 0
1644 self
.__class
__ = VScrolledWindow
1645 _windows
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1647 def PreVScrolledWindow(*args
, **kwargs
):
1648 """PreVScrolledWindow() -> VScrolledWindow"""
1649 val
= _windows
.new_PreVScrolledWindow(*args
, **kwargs
)
1653 class VListBox(VScrolledWindow
):
1655 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1656 def __init__(self
, *args
, **kwargs
):
1658 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1659 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1661 newobj
= _windows
.new_VListBox(*args
, **kwargs
)
1662 self
.this
= newobj
.this
1665 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1667 def _setCallbackInfo(*args
, **kwargs
):
1668 """_setCallbackInfo(PyObject self, PyObject _class)"""
1669 return _windows
.VListBox__setCallbackInfo(*args
, **kwargs
)
1671 def Create(*args
, **kwargs
):
1673 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1674 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1676 return _windows
.VListBox_Create(*args
, **kwargs
)
1678 def GetItemCount(*args
, **kwargs
):
1679 """GetItemCount() -> size_t"""
1680 return _windows
.VListBox_GetItemCount(*args
, **kwargs
)
1682 def HasMultipleSelection(*args
, **kwargs
):
1683 """HasMultipleSelection() -> bool"""
1684 return _windows
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1686 def GetSelection(*args
, **kwargs
):
1687 """GetSelection() -> int"""
1688 return _windows
.VListBox_GetSelection(*args
, **kwargs
)
1690 def IsCurrent(*args
, **kwargs
):
1691 """IsCurrent(size_t item) -> bool"""
1692 return _windows
.VListBox_IsCurrent(*args
, **kwargs
)
1694 def IsSelected(*args
, **kwargs
):
1695 """IsSelected(size_t item) -> bool"""
1696 return _windows
.VListBox_IsSelected(*args
, **kwargs
)
1698 def GetSelectedCount(*args
, **kwargs
):
1699 """GetSelectedCount() -> size_t"""
1700 return _windows
.VListBox_GetSelectedCount(*args
, **kwargs
)
1702 def GetFirstSelected(*args
, **kwargs
):
1703 """GetFirstSelected(unsigned long cookie) -> int"""
1704 return _windows
.VListBox_GetFirstSelected(*args
, **kwargs
)
1706 def GetNextSelected(*args
, **kwargs
):
1707 """GetNextSelected(unsigned long cookie) -> int"""
1708 return _windows
.VListBox_GetNextSelected(*args
, **kwargs
)
1710 def GetMargins(*args
, **kwargs
):
1711 """GetMargins() -> Point"""
1712 return _windows
.VListBox_GetMargins(*args
, **kwargs
)
1714 def GetSelectionBackground(*args
, **kwargs
):
1715 """GetSelectionBackground() -> Colour"""
1716 return _windows
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1718 def SetItemCount(*args
, **kwargs
):
1719 """SetItemCount(size_t count)"""
1720 return _windows
.VListBox_SetItemCount(*args
, **kwargs
)
1722 def Clear(*args
, **kwargs
):
1724 return _windows
.VListBox_Clear(*args
, **kwargs
)
1726 def SetSelection(*args
, **kwargs
):
1727 """SetSelection(int selection)"""
1728 return _windows
.VListBox_SetSelection(*args
, **kwargs
)
1730 def Select(*args
, **kwargs
):
1731 """Select(size_t item, bool select=True) -> bool"""
1732 return _windows
.VListBox_Select(*args
, **kwargs
)
1734 def SelectRange(*args
, **kwargs
):
1735 """SelectRange(size_t from, size_t to) -> bool"""
1736 return _windows
.VListBox_SelectRange(*args
, **kwargs
)
1738 def Toggle(*args
, **kwargs
):
1739 """Toggle(size_t item)"""
1740 return _windows
.VListBox_Toggle(*args
, **kwargs
)
1742 def SelectAll(*args
, **kwargs
):
1743 """SelectAll() -> bool"""
1744 return _windows
.VListBox_SelectAll(*args
, **kwargs
)
1746 def DeselectAll(*args
, **kwargs
):
1747 """DeselectAll() -> bool"""
1748 return _windows
.VListBox_DeselectAll(*args
, **kwargs
)
1750 def SetMargins(*args
, **kwargs
):
1751 """SetMargins(Point pt)"""
1752 return _windows
.VListBox_SetMargins(*args
, **kwargs
)
1754 def SetMarginsXY(*args
, **kwargs
):
1755 """SetMarginsXY(int x, int y)"""
1756 return _windows
.VListBox_SetMarginsXY(*args
, **kwargs
)
1758 def SetSelectionBackground(*args
, **kwargs
):
1759 """SetSelectionBackground(Colour col)"""
1760 return _windows
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1763 class VListBoxPtr(VListBox
):
1764 def __init__(self
, this
):
1766 if not hasattr(self
,"thisown"): self
.thisown
= 0
1767 self
.__class
__ = VListBox
1768 _windows
.VListBox_swigregister(VListBoxPtr
)
1769 VListBoxNameStr
= cvar
.VListBoxNameStr
1771 def PreVListBox(*args
, **kwargs
):
1772 """PreVListBox() -> VListBox"""
1773 val
= _windows
.new_PreVListBox(*args
, **kwargs
)
1777 class HtmlListBox(VListBox
):
1779 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1780 def __init__(self
, *args
, **kwargs
):
1782 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1783 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1785 newobj
= _windows
.new_HtmlListBox(*args
, **kwargs
)
1786 self
.this
= newobj
.this
1789 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1791 def _setCallbackInfo(*args
, **kwargs
):
1792 """_setCallbackInfo(PyObject self, PyObject _class)"""
1793 return _windows
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1795 def Create(*args
, **kwargs
):
1797 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1798 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1800 return _windows
.HtmlListBox_Create(*args
, **kwargs
)
1802 def RefreshAll(*args
, **kwargs
):
1804 return _windows
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1806 def SetItemCount(*args
, **kwargs
):
1807 """SetItemCount(size_t count)"""
1808 return _windows
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1811 class HtmlListBoxPtr(HtmlListBox
):
1812 def __init__(self
, this
):
1814 if not hasattr(self
,"thisown"): self
.thisown
= 0
1815 self
.__class
__ = HtmlListBox
1816 _windows
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1818 def PreHtmlListBox(*args
, **kwargs
):
1819 """PreHtmlListBox() -> HtmlListBox"""
1820 val
= _windows
.new_PreHtmlListBox(*args
, **kwargs
)
1824 #---------------------------------------------------------------------------
1826 class TaskBarIcon(core
.EvtHandler
):
1828 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1829 def __init__(self
, *args
, **kwargs
):
1830 """__init__() -> TaskBarIcon"""
1831 newobj
= _windows
.new_TaskBarIcon(*args
, **kwargs
)
1832 self
.this
= newobj
.this
1835 def __del__(self
, destroy
=_windows
.delete_TaskBarIcon
):
1838 if self
.thisown
: destroy(self
)
1841 def IsOk(*args
, **kwargs
):
1842 """IsOk() -> bool"""
1843 return _windows
.TaskBarIcon_IsOk(*args
, **kwargs
)
1845 def __nonzero__(self
): return self
.IsOk()
1846 def IsIconInstalled(*args
, **kwargs
):
1847 """IsIconInstalled() -> bool"""
1848 return _windows
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
1850 def SetIcon(*args
, **kwargs
):
1851 """SetIcon(Icon icon, String tooltip=EmptyString) -> bool"""
1852 return _windows
.TaskBarIcon_SetIcon(*args
, **kwargs
)
1854 def RemoveIcon(*args
, **kwargs
):
1855 """RemoveIcon() -> bool"""
1856 return _windows
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
1858 def PopupMenu(*args
, **kwargs
):
1859 """PopupMenu(Menu menu) -> bool"""
1860 return _windows
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
1863 class TaskBarIconPtr(TaskBarIcon
):
1864 def __init__(self
, this
):
1866 if not hasattr(self
,"thisown"): self
.thisown
= 0
1867 self
.__class
__ = TaskBarIcon
1868 _windows
.TaskBarIcon_swigregister(TaskBarIconPtr
)
1870 class TaskBarIconEvent(core
.Event
):
1872 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1873 def __init__(self
, *args
, **kwargs
):
1874 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
1875 newobj
= _windows
.new_TaskBarIconEvent(*args
, **kwargs
)
1876 self
.this
= newobj
.this
1880 class TaskBarIconEventPtr(TaskBarIconEvent
):
1881 def __init__(self
, this
):
1883 if not hasattr(self
,"thisown"): self
.thisown
= 0
1884 self
.__class
__ = TaskBarIconEvent
1885 _windows
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
1887 wxEVT_TASKBAR_MOVE
= _windows
.wxEVT_TASKBAR_MOVE
1888 wxEVT_TASKBAR_LEFT_DOWN
= _windows
.wxEVT_TASKBAR_LEFT_DOWN
1889 wxEVT_TASKBAR_LEFT_UP
= _windows
.wxEVT_TASKBAR_LEFT_UP
1890 wxEVT_TASKBAR_RIGHT_DOWN
= _windows
.wxEVT_TASKBAR_RIGHT_DOWN
1891 wxEVT_TASKBAR_RIGHT_UP
= _windows
.wxEVT_TASKBAR_RIGHT_UP
1892 wxEVT_TASKBAR_LEFT_DCLICK
= _windows
.wxEVT_TASKBAR_LEFT_DCLICK
1893 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows
.wxEVT_TASKBAR_RIGHT_DCLICK
1894 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
1895 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
1896 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
1897 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
1898 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
1899 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
1900 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
1902 #---------------------------------------------------------------------------
1904 class ColourData(core
.Object
):
1905 """This class holds a variety of information related to colour dialogs."""
1907 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1908 def __init__(self
, *args
, **kwargs
):
1910 __init__() -> ColourData
1912 Constructor, sets default values.
1914 newobj
= _windows
.new_ColourData(*args
, **kwargs
)
1915 self
.this
= newobj
.this
1918 def __del__(self
, destroy
=_windows
.delete_ColourData
):
1921 if self
.thisown
: destroy(self
)
1924 def GetChooseFull(*args
, **kwargs
):
1926 GetChooseFull() -> bool
1928 Under Windows, determines whether the Windows colour dialog will display
1929 the full dialog with custom colour selection controls. Has no meaning
1930 under other platforms. The default value is true.
1932 return _windows
.ColourData_GetChooseFull(*args
, **kwargs
)
1934 def GetColour(*args
, **kwargs
):
1936 GetColour() -> Colour
1938 Gets the colour (pre)selected by the dialog.
1940 return _windows
.ColourData_GetColour(*args
, **kwargs
)
1942 def GetCustomColour(*args
, **kwargs
):
1944 GetCustomColour(int i) -> Colour
1946 Gets the i'th custom colour associated with the colour dialog. i should
1947 be an integer between 0 and 15. The default custom colours are all white.
1949 return _windows
.ColourData_GetCustomColour(*args
, **kwargs
)
1951 def SetChooseFull(*args
, **kwargs
):
1953 SetChooseFull(int flag)
1955 Under Windows, tells the Windows colour dialog to display the full dialog
1956 with custom colour selection controls. Under other platforms, has no effect.
1957 The default value is true.
1959 return _windows
.ColourData_SetChooseFull(*args
, **kwargs
)
1961 def SetColour(*args
, **kwargs
):
1963 SetColour(Colour colour)
1965 Sets the default colour for the colour dialog. The default colour is black.
1967 return _windows
.ColourData_SetColour(*args
, **kwargs
)
1969 def SetCustomColour(*args
, **kwargs
):
1971 SetCustomColour(int i, Colour colour)
1973 Sets the i'th custom colour for the colour dialog. i should be an integer
1974 between 0 and 15. The default custom colours are all white.
1976 return _windows
.ColourData_SetCustomColour(*args
, **kwargs
)
1979 class ColourDataPtr(ColourData
):
1980 def __init__(self
, this
):
1982 if not hasattr(self
,"thisown"): self
.thisown
= 0
1983 self
.__class
__ = ColourData
1984 _windows
.ColourData_swigregister(ColourDataPtr
)
1985 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
1986 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
1987 DirDialogNameStr
= cvar
.DirDialogNameStr
1988 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
1989 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
1990 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
1992 class ColourDialog(Dialog
):
1993 """This class represents the colour chooser dialog."""
1995 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1996 def __init__(self
, *args
, **kwargs
):
1998 __init__(Window parent, ColourData data=None) -> ColourDialog
2000 Constructor. Pass a parent window, and optionally a ColourData, which
2001 will be copied to the colour dialog's internal ColourData instance.
2003 newobj
= _windows
.new_ColourDialog(*args
, **kwargs
)
2004 self
.this
= newobj
.this
2007 self
._setOORInfo
(self
)
2009 def GetColourData(*args
, **kwargs
):
2011 GetColourData() -> ColourData
2013 Returns a reference to the ColourData used by the dialog.
2015 return _windows
.ColourDialog_GetColourData(*args
, **kwargs
)
2018 class ColourDialogPtr(ColourDialog
):
2019 def __init__(self
, this
):
2021 if not hasattr(self
,"thisown"): self
.thisown
= 0
2022 self
.__class
__ = ColourDialog
2023 _windows
.ColourDialog_swigregister(ColourDialogPtr
)
2025 class DirDialog(Dialog
):
2026 """This class represents the directory chooser dialog."""
2028 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2029 def __init__(self
, *args
, **kwargs
):
2031 __init__(Window parent, String message=DirSelectorPromptStr,
2032 String defaultPath=EmptyString, long style=0,
2033 Point pos=DefaultPosition, Size size=DefaultSize,
2034 String name=DirDialogNameStr) -> DirDialog
2036 Constructor. Use ShowModal method to show the dialog.
2038 newobj
= _windows
.new_DirDialog(*args
, **kwargs
)
2039 self
.this
= newobj
.this
2042 self
._setOORInfo
(self
)
2044 def GetPath(*args
, **kwargs
):
2048 Returns the default or user-selected path.
2050 return _windows
.DirDialog_GetPath(*args
, **kwargs
)
2052 def GetMessage(*args
, **kwargs
):
2054 GetMessage() -> String
2056 Returns the message that will be displayed on the dialog.
2058 return _windows
.DirDialog_GetMessage(*args
, **kwargs
)
2060 def GetStyle(*args
, **kwargs
):
2064 Returns the dialog style.
2066 return _windows
.DirDialog_GetStyle(*args
, **kwargs
)
2068 def SetMessage(*args
, **kwargs
):
2070 SetMessage(String message)
2072 Sets the message that will be displayed on the dialog.
2074 return _windows
.DirDialog_SetMessage(*args
, **kwargs
)
2076 def SetPath(*args
, **kwargs
):
2078 SetPath(String path)
2080 Sets the default path.
2082 return _windows
.DirDialog_SetPath(*args
, **kwargs
)
2085 class DirDialogPtr(DirDialog
):
2086 def __init__(self
, this
):
2088 if not hasattr(self
,"thisown"): self
.thisown
= 0
2089 self
.__class
__ = DirDialog
2090 _windows
.DirDialog_swigregister(DirDialogPtr
)
2092 class FileDialog(Dialog
):
2093 """This class represents the file chooser dialog."""
2095 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2096 def __init__(self
, *args
, **kwargs
):
2098 __init__(Window parent, String message=FileSelectorPromptStr,
2099 String defaultDir=EmptyString, String defaultFile=EmptyString,
2100 String wildcard=FileSelectorDefaultWildcardStr,
2101 long style=0, Point pos=DefaultPosition) -> FileDialog
2103 Constructor. Use ShowModal method to show the dialog.
2105 newobj
= _windows
.new_FileDialog(*args
, **kwargs
)
2106 self
.this
= newobj
.this
2109 self
._setOORInfo
(self
)
2111 def SetMessage(*args
, **kwargs
):
2113 SetMessage(String message)
2115 Sets the message that will be displayed on the dialog.
2117 return _windows
.FileDialog_SetMessage(*args
, **kwargs
)
2119 def SetPath(*args
, **kwargs
):
2121 SetPath(String path)
2123 Sets the path (the combined directory and filename that will
2124 be returned when the dialog is dismissed).
2126 return _windows
.FileDialog_SetPath(*args
, **kwargs
)
2128 def SetDirectory(*args
, **kwargs
):
2130 SetDirectory(String dir)
2132 Sets the default directory.
2134 return _windows
.FileDialog_SetDirectory(*args
, **kwargs
)
2136 def SetFilename(*args
, **kwargs
):
2138 SetFilename(String name)
2140 Sets the default filename.
2142 return _windows
.FileDialog_SetFilename(*args
, **kwargs
)
2144 def SetWildcard(*args
, **kwargs
):
2146 SetWildcard(String wildCard)
2148 Sets the wildcard, which can contain multiple file types, for example:
2149 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2151 return _windows
.FileDialog_SetWildcard(*args
, **kwargs
)
2153 def SetStyle(*args
, **kwargs
):
2155 SetStyle(long style)
2157 Sets the dialog style.
2159 return _windows
.FileDialog_SetStyle(*args
, **kwargs
)
2161 def SetFilterIndex(*args
, **kwargs
):
2163 SetFilterIndex(int filterIndex)
2165 Sets the default filter index, starting from zero.
2167 return _windows
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2169 def GetMessage(*args
, **kwargs
):
2171 GetMessage() -> String
2173 Returns the message that will be displayed on the dialog.
2175 return _windows
.FileDialog_GetMessage(*args
, **kwargs
)
2177 def GetPath(*args
, **kwargs
):
2181 Returns the full path (directory and filename) of the selected file.
2183 return _windows
.FileDialog_GetPath(*args
, **kwargs
)
2185 def GetDirectory(*args
, **kwargs
):
2187 GetDirectory() -> String
2189 Returns the default directory.
2191 return _windows
.FileDialog_GetDirectory(*args
, **kwargs
)
2193 def GetFilename(*args
, **kwargs
):
2195 GetFilename() -> String
2197 Returns the default filename.
2199 return _windows
.FileDialog_GetFilename(*args
, **kwargs
)
2201 def GetWildcard(*args
, **kwargs
):
2203 GetWildcard() -> String
2205 Returns the file dialog wildcard.
2207 return _windows
.FileDialog_GetWildcard(*args
, **kwargs
)
2209 def GetStyle(*args
, **kwargs
):
2213 Returns the dialog style.
2215 return _windows
.FileDialog_GetStyle(*args
, **kwargs
)
2217 def GetFilterIndex(*args
, **kwargs
):
2219 GetFilterIndex() -> int
2221 Returns the index into the list of filters supplied, optionally, in
2222 the wildcard parameter. Before the dialog is shown, this is the index
2223 which will be used when the dialog is first displayed. After the dialog
2224 is shown, this is the index selected by the user.
2226 return _windows
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2228 def GetFilenames(*args
, **kwargs
):
2230 GetFilenames() -> PyObject
2232 Returns a list of filenames chosen in the dialog. This function should
2233 only be used with the dialogs which have wx.MULTIPLE style, use
2234 GetFilename for the others.
2236 return _windows
.FileDialog_GetFilenames(*args
, **kwargs
)
2238 def GetPaths(*args
, **kwargs
):
2240 GetPaths() -> PyObject
2242 Fills the array paths with the full paths of the files chosen. This
2243 function should only be used with the dialogs which have wx.MULTIPLE style,
2244 use GetPath for the others.
2246 return _windows
.FileDialog_GetPaths(*args
, **kwargs
)
2249 class FileDialogPtr(FileDialog
):
2250 def __init__(self
, this
):
2252 if not hasattr(self
,"thisown"): self
.thisown
= 0
2253 self
.__class
__ = FileDialog
2254 _windows
.FileDialog_swigregister(FileDialogPtr
)
2256 CHOICEDLG_STYLE
= _windows
.CHOICEDLG_STYLE
2257 class MultiChoiceDialog(Dialog
):
2258 """A simple dialog with a multi selection listbox."""
2260 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2261 def __init__(self
, *args
, **kwargs
):
2263 __init__(Window parent, String message, String caption,
2264 List choices=[], long style=CHOICEDLG_STYLE,
2265 Point pos=DefaultPosition) -> MultiChoiceDialog
2267 Constructor. Use ShowModal method to show the dialog.
2269 newobj
= _windows
.new_MultiChoiceDialog(*args
, **kwargs
)
2270 self
.this
= newobj
.this
2273 self
._setOORInfo
(self
)
2275 def SetSelections(*args
, **kwargs
):
2277 SetSelections(List selections)
2279 Specify the items in the list that shoudl be selected, using a list of integers.
2281 return _windows
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2283 def GetSelections(*args
, **kwargs
):
2285 GetSelections() -> [selections]
2287 Returns a list of integers representing the items that are selected.
2289 return _windows
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2292 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2293 def __init__(self
, this
):
2295 if not hasattr(self
,"thisown"): self
.thisown
= 0
2296 self
.__class
__ = MultiChoiceDialog
2297 _windows
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2299 class SingleChoiceDialog(Dialog
):
2300 """A simple dialog with a single selection listbox."""
2302 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2303 def __init__(self
, *args
, **kwargs
):
2305 __init__(Window parent, String message, String caption,
2306 List choices=[], long style=CHOICEDLG_STYLE,
2307 Point pos=DefaultPosition) -> SingleChoiceDialog
2309 Constructor. Use ShowModal method to show the dialog.
2311 newobj
= _windows
.new_SingleChoiceDialog(*args
, **kwargs
)
2312 self
.this
= newobj
.this
2315 self
._setOORInfo
(self
)
2317 def GetSelection(*args
, **kwargs
):
2319 GetSelection() -> int
2321 Get the index of teh currently selected item.
2323 return _windows
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2325 def GetStringSelection(*args
, **kwargs
):
2327 GetStringSelection() -> String
2329 Returns the string value of the currently selected item
2331 return _windows
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2333 def SetSelection(*args
, **kwargs
):
2335 SetSelection(int sel)
2337 Set the current selected item to sel
2339 return _windows
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2342 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2343 def __init__(self
, this
):
2345 if not hasattr(self
,"thisown"): self
.thisown
= 0
2346 self
.__class
__ = SingleChoiceDialog
2347 _windows
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2349 class TextEntryDialog(Dialog
):
2350 """A dialog with text control, [ok] and [cancel] buttons"""
2352 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2353 def __init__(self
, *args
, **kwargs
):
2355 __init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
2356 String defaultValue=EmptyString,
2357 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2359 Constructor. Use ShowModal method to show the dialog.
2361 newobj
= _windows
.new_TextEntryDialog(*args
, **kwargs
)
2362 self
.this
= newobj
.this
2365 self
._setOORInfo
(self
)
2367 def GetValue(*args
, **kwargs
):
2369 GetValue() -> String
2371 Returns the text that the user has entered if the user has pressed OK,
2372 or the original value if the user has pressed Cancel.
2374 return _windows
.TextEntryDialog_GetValue(*args
, **kwargs
)
2376 def SetValue(*args
, **kwargs
):
2378 SetValue(String value)
2380 Sets the default text value.
2382 return _windows
.TextEntryDialog_SetValue(*args
, **kwargs
)
2385 class TextEntryDialogPtr(TextEntryDialog
):
2386 def __init__(self
, this
):
2388 if not hasattr(self
,"thisown"): self
.thisown
= 0
2389 self
.__class
__ = TextEntryDialog
2390 _windows
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2392 class FontData(core
.Object
):
2393 """This class holds a variety of information related to font dialogs."""
2395 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2396 def __init__(self
, *args
, **kwargs
):
2398 __init__() -> FontData
2400 This class holds a variety of information related to font dialogs.
2402 newobj
= _windows
.new_FontData(*args
, **kwargs
)
2403 self
.this
= newobj
.this
2406 def __del__(self
, destroy
=_windows
.delete_FontData
):
2409 if self
.thisown
: destroy(self
)
2412 def EnableEffects(*args
, **kwargs
):
2414 EnableEffects(bool enable)
2416 Enables or disables 'effects' under MS Windows only. This refers
2417 to the controls for manipulating colour, strikeout and underline
2418 properties. The default value is true.
2420 return _windows
.FontData_EnableEffects(*args
, **kwargs
)
2422 def GetAllowSymbols(*args
, **kwargs
):
2424 GetAllowSymbols() -> bool
2426 Under MS Windows, returns a flag determining whether symbol fonts can be
2427 selected. Has no effect on other platforms. The default value is true.
2429 return _windows
.FontData_GetAllowSymbols(*args
, **kwargs
)
2431 def GetColour(*args
, **kwargs
):
2433 GetColour() -> Colour
2435 Gets the colour associated with the font dialog. The default value is black.
2437 return _windows
.FontData_GetColour(*args
, **kwargs
)
2439 def GetChosenFont(*args
, **kwargs
):
2441 GetChosenFont() -> Font
2443 Gets the font chosen by the user.
2445 return _windows
.FontData_GetChosenFont(*args
, **kwargs
)
2447 def GetEnableEffects(*args
, **kwargs
):
2449 GetEnableEffects() -> bool
2451 Determines whether 'effects' are enabled under Windows.
2453 return _windows
.FontData_GetEnableEffects(*args
, **kwargs
)
2455 def GetInitialFont(*args
, **kwargs
):
2457 GetInitialFont() -> Font
2459 Gets the font that will be initially used by the font dialog. This should have
2460 previously been set by the application.
2462 return _windows
.FontData_GetInitialFont(*args
, **kwargs
)
2464 def GetShowHelp(*args
, **kwargs
):
2466 GetShowHelp() -> bool
2468 Returns true if the Help button will be shown (Windows only). The default
2471 return _windows
.FontData_GetShowHelp(*args
, **kwargs
)
2473 def SetAllowSymbols(*args
, **kwargs
):
2475 SetAllowSymbols(bool allowSymbols)
2477 Under MS Windows, determines whether symbol fonts can be selected. Has no
2478 effect on other platforms. The default value is true.
2480 return _windows
.FontData_SetAllowSymbols(*args
, **kwargs
)
2482 def SetChosenFont(*args
, **kwargs
):
2484 SetChosenFont(Font font)
2486 Sets the font that will be returned to the user (for internal use only).
2488 return _windows
.FontData_SetChosenFont(*args
, **kwargs
)
2490 def SetColour(*args
, **kwargs
):
2492 SetColour(Colour colour)
2494 Sets the colour that will be used for the font foreground colour. The default
2497 return _windows
.FontData_SetColour(*args
, **kwargs
)
2499 def SetInitialFont(*args
, **kwargs
):
2501 SetInitialFont(Font font)
2503 Sets the font that will be initially used by the font dialog.
2505 return _windows
.FontData_SetInitialFont(*args
, **kwargs
)
2507 def SetRange(*args
, **kwargs
):
2509 SetRange(int min, int max)
2511 Sets the valid range for the font point size (Windows only). The default is
2512 0, 0 (unrestricted range).
2514 return _windows
.FontData_SetRange(*args
, **kwargs
)
2516 def SetShowHelp(*args
, **kwargs
):
2518 SetShowHelp(bool showHelp)
2520 Determines whether the Help button will be displayed in the font dialog
2521 (Windows only). The default value is false.
2523 return _windows
.FontData_SetShowHelp(*args
, **kwargs
)
2526 class FontDataPtr(FontData
):
2527 def __init__(self
, this
):
2529 if not hasattr(self
,"thisown"): self
.thisown
= 0
2530 self
.__class
__ = FontData
2531 _windows
.FontData_swigregister(FontDataPtr
)
2533 class FontDialog(Dialog
):
2534 """This class represents the font chooser dialog."""
2536 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2537 def __init__(self
, *args
, **kwargs
):
2539 __init__(Window parent, FontData data) -> FontDialog
2541 Constructor. Pass a parent window and the FontData object to be
2542 used to initialize the dialog controls.
2544 newobj
= _windows
.new_FontDialog(*args
, **kwargs
)
2545 self
.this
= newobj
.this
2548 self
._setOORInfo
(self
)
2550 def GetFontData(*args
, **kwargs
):
2552 GetFontData() -> FontData
2554 Returns a reference to the internal FontData used by the FontDialog.
2556 return _windows
.FontDialog_GetFontData(*args
, **kwargs
)
2559 class FontDialogPtr(FontDialog
):
2560 def __init__(self
, this
):
2562 if not hasattr(self
,"thisown"): self
.thisown
= 0
2563 self
.__class
__ = FontDialog
2564 _windows
.FontDialog_swigregister(FontDialogPtr
)
2566 class MessageDialog(Dialog
):
2568 This class provides a dialog that shows a single or multi-line message, with
2569 a choice of OK, Yes, No and Cancel buttons.
2572 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2573 def __init__(self
, *args
, **kwargs
):
2575 __init__(Window parent, String message, String caption=MessageBoxCaptionStr,
2576 long style=wxOK|wxCANCEL|wxCENTRE,
2577 Point pos=DefaultPosition) -> MessageDialog
2579 This class provides a dialog that shows a single or multi-line message, with
2580 a choice of OK, Yes, No and Cancel buttons.
2582 newobj
= _windows
.new_MessageDialog(*args
, **kwargs
)
2583 self
.this
= newobj
.this
2586 self
._setOORInfo
(self
)
2589 class MessageDialogPtr(MessageDialog
):
2590 def __init__(self
, this
):
2592 if not hasattr(self
,"thisown"): self
.thisown
= 0
2593 self
.__class
__ = MessageDialog
2594 _windows
.MessageDialog_swigregister(MessageDialogPtr
)
2596 class ProgressDialog(Frame
):
2598 A dialog that shows a short message and a progress bar. Optionally, it can
2599 display an ABORT button.
2602 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2603 def __init__(self
, *args
, **kwargs
):
2605 __init__(String title, String message, int maximum=100, Window parent=None,
2606 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2608 Constructor. Creates the dialog, displays it and disables user input for other
2609 windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only.
2611 newobj
= _windows
.new_ProgressDialog(*args
, **kwargs
)
2612 self
.this
= newobj
.this
2615 self
._setOORInfo
(self
)
2617 def Update(*args
, **kwargs
):
2619 Update(int value, String newmsg=EmptyString) -> bool
2621 Updates the dialog, setting the progress bar to the new value and, if given
2622 changes the message above it. Returns true unless the Cancel button has been
2625 If false is returned, the application can either immediately destroy the
2626 dialog or ask the user for the confirmation and if the abort is not confirmed
2627 the dialog may be resumed with Resume function.
2629 return _windows
.ProgressDialog_Update(*args
, **kwargs
)
2631 def Resume(*args
, **kwargs
):
2635 Can be used to continue with the dialog, after the user had chosen to abort.
2637 return _windows
.ProgressDialog_Resume(*args
, **kwargs
)
2640 class ProgressDialogPtr(ProgressDialog
):
2641 def __init__(self
, this
):
2643 if not hasattr(self
,"thisown"): self
.thisown
= 0
2644 self
.__class
__ = ProgressDialog
2645 _windows
.ProgressDialog_swigregister(ProgressDialogPtr
)
2647 FR_DOWN
= _windows
.FR_DOWN
2648 FR_WHOLEWORD
= _windows
.FR_WHOLEWORD
2649 FR_MATCHCASE
= _windows
.FR_MATCHCASE
2650 FR_REPLACEDIALOG
= _windows
.FR_REPLACEDIALOG
2651 FR_NOUPDOWN
= _windows
.FR_NOUPDOWN
2652 FR_NOMATCHCASE
= _windows
.FR_NOMATCHCASE
2653 FR_NOWHOLEWORD
= _windows
.FR_NOWHOLEWORD
2654 wxEVT_COMMAND_FIND
= _windows
.wxEVT_COMMAND_FIND
2655 wxEVT_COMMAND_FIND_NEXT
= _windows
.wxEVT_COMMAND_FIND_NEXT
2656 wxEVT_COMMAND_FIND_REPLACE
= _windows
.wxEVT_COMMAND_FIND_REPLACE
2657 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows
.wxEVT_COMMAND_FIND_REPLACE_ALL
2658 wxEVT_COMMAND_FIND_CLOSE
= _windows
.wxEVT_COMMAND_FIND_CLOSE
2659 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2660 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2661 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2662 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2663 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2665 # For backwards compatibility. Should they be removed?
2666 EVT_COMMAND_FIND
= EVT_FIND
2667 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2668 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2669 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2670 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2672 class FindDialogEvent(core
.CommandEvent
):
2673 """Events for the FindReplaceDialog"""
2675 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2676 def __init__(self
, *args
, **kwargs
):
2678 __init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2680 Events for the FindReplaceDialog
2682 newobj
= _windows
.new_FindDialogEvent(*args
, **kwargs
)
2683 self
.this
= newobj
.this
2686 def GetFlags(*args
, **kwargs
):
2690 Get the currently selected flags: this is the combination of
2691 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2693 return _windows
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2695 def GetFindString(*args
, **kwargs
):
2697 GetFindString() -> String
2699 Return the string to find (never empty).
2701 return _windows
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2703 def GetReplaceString(*args
, **kwargs
):
2705 GetReplaceString() -> String
2707 Return the string to replace the search string with (only
2708 for replace and replace all events).
2710 return _windows
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2712 def GetDialog(*args
, **kwargs
):
2714 GetDialog() -> FindReplaceDialog
2716 Return the pointer to the dialog which generated this event.
2718 return _windows
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2720 def SetFlags(*args
, **kwargs
):
2721 """SetFlags(int flags)"""
2722 return _windows
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2724 def SetFindString(*args
, **kwargs
):
2725 """SetFindString(String str)"""
2726 return _windows
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2728 def SetReplaceString(*args
, **kwargs
):
2729 """SetReplaceString(String str)"""
2730 return _windows
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2733 class FindDialogEventPtr(FindDialogEvent
):
2734 def __init__(self
, this
):
2736 if not hasattr(self
,"thisown"): self
.thisown
= 0
2737 self
.__class
__ = FindDialogEvent
2738 _windows
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2740 class FindReplaceData(core
.Object
):
2742 FindReplaceData holds the data for FindReplaceDialog. It is used to initialize
2743 the dialog with the default values and will keep the last values from the
2744 dialog when it is closed. It is also updated each time a wxFindDialogEvent is
2745 generated so instead of using the wxFindDialogEvent methods you can also
2746 directly query this object.
2748 Note that all SetXXX() methods may only be called before showing the dialog
2749 and calling them has no effect later.
2752 wxFR_DOWN: downward search/replace selected (otherwise, upwards)
2754 wxFR_WHOLEWORD: whole word search/replace selected
2756 wxFR_MATCHCASE: case sensitive search/replace selected (otherwise,
2761 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2762 def __init__(self
, *args
, **kwargs
):
2764 __init__(int flags=0) -> FindReplaceData
2766 Constuctor initializes the flags to default value (0).
2768 newobj
= _windows
.new_FindReplaceData(*args
, **kwargs
)
2769 self
.this
= newobj
.this
2772 def __del__(self
, destroy
=_windows
.delete_FindReplaceData
):
2775 if self
.thisown
: destroy(self
)
2778 def GetFindString(*args
, **kwargs
):
2780 GetFindString() -> String
2782 Get the string to find.
2784 return _windows
.FindReplaceData_GetFindString(*args
, **kwargs
)
2786 def GetReplaceString(*args
, **kwargs
):
2788 GetReplaceString() -> String
2790 Get the replacement string.
2792 return _windows
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2794 def GetFlags(*args
, **kwargs
):
2798 Get the combination of flag values.
2800 return _windows
.FindReplaceData_GetFlags(*args
, **kwargs
)
2802 def SetFlags(*args
, **kwargs
):
2806 Set the flags to use to initialize the controls of the dialog.
2808 return _windows
.FindReplaceData_SetFlags(*args
, **kwargs
)
2810 def SetFindString(*args
, **kwargs
):
2812 SetFindString(String str)
2814 Set the string to find (used as initial value by the dialog).
2816 return _windows
.FindReplaceData_SetFindString(*args
, **kwargs
)
2818 def SetReplaceString(*args
, **kwargs
):
2820 SetReplaceString(String str)
2822 Set the replacement string (used as initial value by the dialog).
2824 return _windows
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2827 class FindReplaceDataPtr(FindReplaceData
):
2828 def __init__(self
, this
):
2830 if not hasattr(self
,"thisown"): self
.thisown
= 0
2831 self
.__class
__ = FindReplaceData
2832 _windows
.FindReplaceData_swigregister(FindReplaceDataPtr
)
2834 class FindReplaceDialog(Dialog
):
2836 FindReplaceDialog is a standard modeless dialog which is used to allow the
2837 user to search for some text (and possibly replace it with something
2838 else). The actual searching is supposed to be done in the owner window which
2839 is the parent of this dialog. Note that it means that unlike for the other
2840 standard dialogs this one must have a parent window. Also note that there is
2841 no way to use this dialog in a modal way; it is always, by design and
2842 implementation, modeless.
2845 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2846 def __init__(self
, *args
, **kwargs
):
2848 __init__(Window parent, FindReplaceData data, String title,
2849 int style=0) -> FindReplaceDialog
2851 Create a FindReplaceDialog. The parent and data parameters must be
2852 non-None. Use Show to display the dialog.
2854 newobj
= _windows
.new_FindReplaceDialog(*args
, **kwargs
)
2855 self
.this
= newobj
.this
2858 self
._setOORInfo
(self
)
2860 def Create(*args
, **kwargs
):
2862 Create(Window parent, FindReplaceData data, String title,
2863 int style=0) -> bool
2865 Create the dialog, for 2-phase create.
2867 return _windows
.FindReplaceDialog_Create(*args
, **kwargs
)
2869 def GetData(*args
, **kwargs
):
2871 GetData() -> FindReplaceData
2873 Get the FindReplaceData object used by this dialog.
2875 return _windows
.FindReplaceDialog_GetData(*args
, **kwargs
)
2877 def SetData(*args
, **kwargs
):
2879 SetData(FindReplaceData data)
2881 Set the FindReplaceData object used by this dialog.
2883 return _windows
.FindReplaceDialog_SetData(*args
, **kwargs
)
2886 class FindReplaceDialogPtr(FindReplaceDialog
):
2887 def __init__(self
, this
):
2889 if not hasattr(self
,"thisown"): self
.thisown
= 0
2890 self
.__class
__ = FindReplaceDialog
2891 _windows
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
2893 def PreFindReplaceDialog(*args
, **kwargs
):
2895 PreFindReplaceDialog() -> FindReplaceDialog
2897 Precreate a FindReplaceDialog for 2-phase creation
2899 val
= _windows
.new_PreFindReplaceDialog(*args
, **kwargs
)
2903 #---------------------------------------------------------------------------
2905 IDM_WINDOWTILE
= _windows
.IDM_WINDOWTILE
2906 IDM_WINDOWTILEHOR
= _windows
.IDM_WINDOWTILEHOR
2907 IDM_WINDOWCASCADE
= _windows
.IDM_WINDOWCASCADE
2908 IDM_WINDOWICONS
= _windows
.IDM_WINDOWICONS
2909 IDM_WINDOWNEXT
= _windows
.IDM_WINDOWNEXT
2910 IDM_WINDOWTILEVERT
= _windows
.IDM_WINDOWTILEVERT
2911 FIRST_MDI_CHILD
= _windows
.FIRST_MDI_CHILD
2912 LAST_MDI_CHILD
= _windows
.LAST_MDI_CHILD
2913 class MDIParentFrame(Frame
):
2915 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2916 def __init__(self
, *args
, **kwargs
):
2918 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
2919 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2920 String name=FrameNameStr) -> MDIParentFrame
2922 newobj
= _windows
.new_MDIParentFrame(*args
, **kwargs
)
2923 self
.this
= newobj
.this
2926 self
._setOORInfo
(self
)
2928 def Create(*args
, **kwargs
):
2930 Create(Window parent, int id, String title, Point pos=DefaultPosition,
2931 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2932 String name=FrameNameStr) -> bool
2934 return _windows
.MDIParentFrame_Create(*args
, **kwargs
)
2936 def ActivateNext(*args
, **kwargs
):
2937 """ActivateNext()"""
2938 return _windows
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
2940 def ActivatePrevious(*args
, **kwargs
):
2941 """ActivatePrevious()"""
2942 return _windows
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
2944 def ArrangeIcons(*args
, **kwargs
):
2945 """ArrangeIcons()"""
2946 return _windows
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
2948 def Cascade(*args
, **kwargs
):
2950 return _windows
.MDIParentFrame_Cascade(*args
, **kwargs
)
2952 def GetActiveChild(*args
, **kwargs
):
2953 """GetActiveChild() -> MDIChildFrame"""
2954 return _windows
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
2956 def GetClientWindow(*args
, **kwargs
):
2957 """GetClientWindow() -> MDIClientWindow"""
2958 return _windows
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
2960 def GetToolBar(*args
, **kwargs
):
2961 """GetToolBar() -> Window"""
2962 return _windows
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
2964 def Tile(*args
, **kwargs
):
2966 return _windows
.MDIParentFrame_Tile(*args
, **kwargs
)
2969 class MDIParentFramePtr(MDIParentFrame
):
2970 def __init__(self
, this
):
2972 if not hasattr(self
,"thisown"): self
.thisown
= 0
2973 self
.__class
__ = MDIParentFrame
2974 _windows
.MDIParentFrame_swigregister(MDIParentFramePtr
)
2976 def PreMDIParentFrame(*args
, **kwargs
):
2977 """PreMDIParentFrame() -> MDIParentFrame"""
2978 val
= _windows
.new_PreMDIParentFrame(*args
, **kwargs
)
2982 class MDIChildFrame(Frame
):
2984 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2985 def __init__(self
, *args
, **kwargs
):
2987 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2988 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2989 String name=FrameNameStr) -> MDIChildFrame
2991 newobj
= _windows
.new_MDIChildFrame(*args
, **kwargs
)
2992 self
.this
= newobj
.this
2995 self
._setOORInfo
(self
)
2997 def Create(*args
, **kwargs
):
2999 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3000 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3001 String name=FrameNameStr) -> bool
3003 return _windows
.MDIChildFrame_Create(*args
, **kwargs
)
3005 def Activate(*args
, **kwargs
):
3007 return _windows
.MDIChildFrame_Activate(*args
, **kwargs
)
3009 def Maximize(*args
, **kwargs
):
3010 """Maximize(bool maximize)"""
3011 return _windows
.MDIChildFrame_Maximize(*args
, **kwargs
)
3013 def Restore(*args
, **kwargs
):
3015 return _windows
.MDIChildFrame_Restore(*args
, **kwargs
)
3018 class MDIChildFramePtr(MDIChildFrame
):
3019 def __init__(self
, this
):
3021 if not hasattr(self
,"thisown"): self
.thisown
= 0
3022 self
.__class
__ = MDIChildFrame
3023 _windows
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3025 def PreMDIChildFrame(*args
, **kwargs
):
3026 """PreMDIChildFrame() -> MDIChildFrame"""
3027 val
= _windows
.new_PreMDIChildFrame(*args
, **kwargs
)
3031 class MDIClientWindow(core
.Window
):
3033 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3034 def __init__(self
, *args
, **kwargs
):
3035 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3036 newobj
= _windows
.new_MDIClientWindow(*args
, **kwargs
)
3037 self
.this
= newobj
.this
3040 self
._setOORInfo
(self
)
3042 def Create(*args
, **kwargs
):
3043 """Create(MDIParentFrame parent, long style=0) -> bool"""
3044 return _windows
.MDIClientWindow_Create(*args
, **kwargs
)
3047 class MDIClientWindowPtr(MDIClientWindow
):
3048 def __init__(self
, this
):
3050 if not hasattr(self
,"thisown"): self
.thisown
= 0
3051 self
.__class
__ = MDIClientWindow
3052 _windows
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3054 def PreMDIClientWindow(*args
, **kwargs
):
3055 """PreMDIClientWindow() -> MDIClientWindow"""
3056 val
= _windows
.new_PreMDIClientWindow(*args
, **kwargs
)
3060 #---------------------------------------------------------------------------
3062 class PyWindow(core
.Window
):
3064 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3065 def __init__(self
, *args
, **kwargs
):
3067 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3068 long style=0, String name=PanelNameStr) -> PyWindow
3070 newobj
= _windows
.new_PyWindow(*args
, **kwargs
)
3071 self
.this
= newobj
.this
3074 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3076 def _setCallbackInfo(*args
, **kwargs
):
3077 """_setCallbackInfo(PyObject self, PyObject _class)"""
3078 return _windows
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3080 def base_DoMoveWindow(*args
, **kwargs
):
3081 """base_DoMoveWindow(int x, int y, int width, int height)"""
3082 return _windows
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3084 def base_DoSetSize(*args
, **kwargs
):
3085 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3086 return _windows
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3088 def base_DoSetClientSize(*args
, **kwargs
):
3089 """base_DoSetClientSize(int width, int height)"""
3090 return _windows
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3092 def base_DoSetVirtualSize(*args
, **kwargs
):
3093 """base_DoSetVirtualSize(int x, int y)"""
3094 return _windows
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3096 def base_DoGetSize(*args
, **kwargs
):
3097 """base_DoGetSize() -> (width, height)"""
3098 return _windows
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3100 def base_DoGetClientSize(*args
, **kwargs
):
3101 """base_DoGetClientSize() -> (width, height)"""
3102 return _windows
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3104 def base_DoGetPosition(*args
, **kwargs
):
3105 """base_DoGetPosition() -> (x,y)"""
3106 return _windows
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3108 def base_DoGetVirtualSize(*args
, **kwargs
):
3109 """base_DoGetVirtualSize() -> Size"""
3110 return _windows
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3112 def base_DoGetBestSize(*args
, **kwargs
):
3113 """base_DoGetBestSize() -> Size"""
3114 return _windows
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3116 def base_InitDialog(*args
, **kwargs
):
3117 """base_InitDialog()"""
3118 return _windows
.PyWindow_base_InitDialog(*args
, **kwargs
)
3120 def base_TransferDataToWindow(*args
, **kwargs
):
3121 """base_TransferDataToWindow() -> bool"""
3122 return _windows
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3124 def base_TransferDataFromWindow(*args
, **kwargs
):
3125 """base_TransferDataFromWindow() -> bool"""
3126 return _windows
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3128 def base_Validate(*args
, **kwargs
):
3129 """base_Validate() -> bool"""
3130 return _windows
.PyWindow_base_Validate(*args
, **kwargs
)
3132 def base_AcceptsFocus(*args
, **kwargs
):
3133 """base_AcceptsFocus() -> bool"""
3134 return _windows
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3136 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3137 """base_AcceptsFocusFromKeyboard() -> bool"""
3138 return _windows
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3140 def base_GetMaxSize(*args
, **kwargs
):
3141 """base_GetMaxSize() -> Size"""
3142 return _windows
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3144 def base_AddChild(*args
, **kwargs
):
3145 """base_AddChild(Window child)"""
3146 return _windows
.PyWindow_base_AddChild(*args
, **kwargs
)
3148 def base_RemoveChild(*args
, **kwargs
):
3149 """base_RemoveChild(Window child)"""
3150 return _windows
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3152 def base_ShouldInheritColours(*args
, **kwargs
):
3153 """base_ShouldInheritColours() -> bool"""
3154 return _windows
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3156 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3157 """base_ApplyParentThemeBackground(Colour c)"""
3158 return _windows
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3161 class PyWindowPtr(PyWindow
):
3162 def __init__(self
, this
):
3164 if not hasattr(self
,"thisown"): self
.thisown
= 0
3165 self
.__class
__ = PyWindow
3166 _windows
.PyWindow_swigregister(PyWindowPtr
)
3168 def PrePyWindow(*args
, **kwargs
):
3169 """PrePyWindow() -> PyWindow"""
3170 val
= _windows
.new_PrePyWindow(*args
, **kwargs
)
3174 class PyPanel(Panel
):
3176 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3177 def __init__(self
, *args
, **kwargs
):
3179 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3180 long style=0, String name=PanelNameStr) -> PyPanel
3182 newobj
= _windows
.new_PyPanel(*args
, **kwargs
)
3183 self
.this
= newobj
.this
3186 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3188 def _setCallbackInfo(*args
, **kwargs
):
3189 """_setCallbackInfo(PyObject self, PyObject _class)"""
3190 return _windows
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3192 def base_DoMoveWindow(*args
, **kwargs
):
3193 """base_DoMoveWindow(int x, int y, int width, int height)"""
3194 return _windows
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3196 def base_DoSetSize(*args
, **kwargs
):
3197 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3198 return _windows
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3200 def base_DoSetClientSize(*args
, **kwargs
):
3201 """base_DoSetClientSize(int width, int height)"""
3202 return _windows
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3204 def base_DoSetVirtualSize(*args
, **kwargs
):
3205 """base_DoSetVirtualSize(int x, int y)"""
3206 return _windows
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3208 def base_DoGetSize(*args
, **kwargs
):
3209 """base_DoGetSize() -> (width, height)"""
3210 return _windows
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3212 def base_DoGetClientSize(*args
, **kwargs
):
3213 """base_DoGetClientSize() -> (width, height)"""
3214 return _windows
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3216 def base_DoGetPosition(*args
, **kwargs
):
3217 """base_DoGetPosition() -> (x,y)"""
3218 return _windows
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3220 def base_DoGetVirtualSize(*args
, **kwargs
):
3221 """base_DoGetVirtualSize() -> Size"""
3222 return _windows
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3224 def base_DoGetBestSize(*args
, **kwargs
):
3225 """base_DoGetBestSize() -> Size"""
3226 return _windows
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3228 def base_InitDialog(*args
, **kwargs
):
3229 """base_InitDialog()"""
3230 return _windows
.PyPanel_base_InitDialog(*args
, **kwargs
)
3232 def base_TransferDataToWindow(*args
, **kwargs
):
3233 """base_TransferDataToWindow() -> bool"""
3234 return _windows
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3236 def base_TransferDataFromWindow(*args
, **kwargs
):
3237 """base_TransferDataFromWindow() -> bool"""
3238 return _windows
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3240 def base_Validate(*args
, **kwargs
):
3241 """base_Validate() -> bool"""
3242 return _windows
.PyPanel_base_Validate(*args
, **kwargs
)
3244 def base_AcceptsFocus(*args
, **kwargs
):
3245 """base_AcceptsFocus() -> bool"""
3246 return _windows
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3248 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3249 """base_AcceptsFocusFromKeyboard() -> bool"""
3250 return _windows
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3252 def base_GetMaxSize(*args
, **kwargs
):
3253 """base_GetMaxSize() -> Size"""
3254 return _windows
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3256 def base_AddChild(*args
, **kwargs
):
3257 """base_AddChild(Window child)"""
3258 return _windows
.PyPanel_base_AddChild(*args
, **kwargs
)
3260 def base_RemoveChild(*args
, **kwargs
):
3261 """base_RemoveChild(Window child)"""
3262 return _windows
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3264 def base_ShouldInheritColours(*args
, **kwargs
):
3265 """base_ShouldInheritColours() -> bool"""
3266 return _windows
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3268 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3269 """base_ApplyParentThemeBackground(Colour c)"""
3270 return _windows
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3273 class PyPanelPtr(PyPanel
):
3274 def __init__(self
, this
):
3276 if not hasattr(self
,"thisown"): self
.thisown
= 0
3277 self
.__class
__ = PyPanel
3278 _windows
.PyPanel_swigregister(PyPanelPtr
)
3280 def PrePyPanel(*args
, **kwargs
):
3281 """PrePyPanel() -> PyPanel"""
3282 val
= _windows
.new_PrePyPanel(*args
, **kwargs
)
3286 class PyScrolledWindow(ScrolledWindow
):
3288 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3289 def __init__(self
, *args
, **kwargs
):
3291 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3292 long style=0, String name=PanelNameStr) -> PyScrolledWindow
3294 newobj
= _windows
.new_PyScrolledWindow(*args
, **kwargs
)
3295 self
.this
= newobj
.this
3298 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3300 def _setCallbackInfo(*args
, **kwargs
):
3301 """_setCallbackInfo(PyObject self, PyObject _class)"""
3302 return _windows
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3304 def base_DoMoveWindow(*args
, **kwargs
):
3305 """base_DoMoveWindow(int x, int y, int width, int height)"""
3306 return _windows
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3308 def base_DoSetSize(*args
, **kwargs
):
3309 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3310 return _windows
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3312 def base_DoSetClientSize(*args
, **kwargs
):
3313 """base_DoSetClientSize(int width, int height)"""
3314 return _windows
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3316 def base_DoSetVirtualSize(*args
, **kwargs
):
3317 """base_DoSetVirtualSize(int x, int y)"""
3318 return _windows
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3320 def base_DoGetSize(*args
, **kwargs
):
3321 """base_DoGetSize() -> (width, height)"""
3322 return _windows
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3324 def base_DoGetClientSize(*args
, **kwargs
):
3325 """base_DoGetClientSize() -> (width, height)"""
3326 return _windows
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3328 def base_DoGetPosition(*args
, **kwargs
):
3329 """base_DoGetPosition() -> (x,y)"""
3330 return _windows
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3332 def base_DoGetVirtualSize(*args
, **kwargs
):
3333 """base_DoGetVirtualSize() -> Size"""
3334 return _windows
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3336 def base_DoGetBestSize(*args
, **kwargs
):
3337 """base_DoGetBestSize() -> Size"""
3338 return _windows
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3340 def base_InitDialog(*args
, **kwargs
):
3341 """base_InitDialog()"""
3342 return _windows
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3344 def base_TransferDataToWindow(*args
, **kwargs
):
3345 """base_TransferDataToWindow() -> bool"""
3346 return _windows
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3348 def base_TransferDataFromWindow(*args
, **kwargs
):
3349 """base_TransferDataFromWindow() -> bool"""
3350 return _windows
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3352 def base_Validate(*args
, **kwargs
):
3353 """base_Validate() -> bool"""
3354 return _windows
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3356 def base_AcceptsFocus(*args
, **kwargs
):
3357 """base_AcceptsFocus() -> bool"""
3358 return _windows
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3360 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3361 """base_AcceptsFocusFromKeyboard() -> bool"""
3362 return _windows
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3364 def base_GetMaxSize(*args
, **kwargs
):
3365 """base_GetMaxSize() -> Size"""
3366 return _windows
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3368 def base_AddChild(*args
, **kwargs
):
3369 """base_AddChild(Window child)"""
3370 return _windows
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3372 def base_RemoveChild(*args
, **kwargs
):
3373 """base_RemoveChild(Window child)"""
3374 return _windows
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3376 def base_ShouldInheritColours(*args
, **kwargs
):
3377 """base_ShouldInheritColours() -> bool"""
3378 return _windows
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3380 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3381 """base_ApplyParentThemeBackground(Colour c)"""
3382 return _windows
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3385 class PyScrolledWindowPtr(PyScrolledWindow
):
3386 def __init__(self
, this
):
3388 if not hasattr(self
,"thisown"): self
.thisown
= 0
3389 self
.__class
__ = PyScrolledWindow
3390 _windows
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3392 def PrePyScrolledWindow(*args
, **kwargs
):
3393 """PrePyScrolledWindow() -> PyScrolledWindow"""
3394 val
= _windows
.new_PrePyScrolledWindow(*args
, **kwargs
)
3398 #---------------------------------------------------------------------------
3400 PRINT_MODE_NONE
= _windows
.PRINT_MODE_NONE
3401 PRINT_MODE_PREVIEW
= _windows
.PRINT_MODE_PREVIEW
3402 PRINT_MODE_FILE
= _windows
.PRINT_MODE_FILE
3403 PRINT_MODE_PRINTER
= _windows
.PRINT_MODE_PRINTER
3404 PRINT_MODE_STREAM
= _windows
.PRINT_MODE_STREAM
3405 class PrintData(core
.Object
):
3407 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3408 def __init__(self
, *args
, **kwargs
):
3409 """__init__() -> PrintData"""
3410 newobj
= _windows
.new_PrintData(*args
, **kwargs
)
3411 self
.this
= newobj
.this
3414 def __del__(self
, destroy
=_windows
.delete_PrintData
):
3417 if self
.thisown
: destroy(self
)
3420 def GetNoCopies(*args
, **kwargs
):
3421 """GetNoCopies() -> int"""
3422 return _windows
.PrintData_GetNoCopies(*args
, **kwargs
)
3424 def GetCollate(*args
, **kwargs
):
3425 """GetCollate() -> bool"""
3426 return _windows
.PrintData_GetCollate(*args
, **kwargs
)
3428 def GetOrientation(*args
, **kwargs
):
3429 """GetOrientation() -> int"""
3430 return _windows
.PrintData_GetOrientation(*args
, **kwargs
)
3432 def Ok(*args
, **kwargs
):
3434 return _windows
.PrintData_Ok(*args
, **kwargs
)
3436 def GetPrinterName(*args
, **kwargs
):
3437 """GetPrinterName() -> String"""
3438 return _windows
.PrintData_GetPrinterName(*args
, **kwargs
)
3440 def GetColour(*args
, **kwargs
):
3441 """GetColour() -> bool"""
3442 return _windows
.PrintData_GetColour(*args
, **kwargs
)
3444 def GetDuplex(*args
, **kwargs
):
3445 """GetDuplex() -> int"""
3446 return _windows
.PrintData_GetDuplex(*args
, **kwargs
)
3448 def GetPaperId(*args
, **kwargs
):
3449 """GetPaperId() -> int"""
3450 return _windows
.PrintData_GetPaperId(*args
, **kwargs
)
3452 def GetPaperSize(*args
, **kwargs
):
3453 """GetPaperSize() -> Size"""
3454 return _windows
.PrintData_GetPaperSize(*args
, **kwargs
)
3456 def GetQuality(*args
, **kwargs
):
3457 """GetQuality() -> int"""
3458 return _windows
.PrintData_GetQuality(*args
, **kwargs
)
3460 def SetNoCopies(*args
, **kwargs
):
3461 """SetNoCopies(int v)"""
3462 return _windows
.PrintData_SetNoCopies(*args
, **kwargs
)
3464 def SetCollate(*args
, **kwargs
):
3465 """SetCollate(bool flag)"""
3466 return _windows
.PrintData_SetCollate(*args
, **kwargs
)
3468 def SetOrientation(*args
, **kwargs
):
3469 """SetOrientation(int orient)"""
3470 return _windows
.PrintData_SetOrientation(*args
, **kwargs
)
3472 def SetPrinterName(*args
, **kwargs
):
3473 """SetPrinterName(String name)"""
3474 return _windows
.PrintData_SetPrinterName(*args
, **kwargs
)
3476 def SetColour(*args
, **kwargs
):
3477 """SetColour(bool colour)"""
3478 return _windows
.PrintData_SetColour(*args
, **kwargs
)
3480 def SetDuplex(*args
, **kwargs
):
3481 """SetDuplex(int duplex)"""
3482 return _windows
.PrintData_SetDuplex(*args
, **kwargs
)
3484 def SetPaperId(*args
, **kwargs
):
3485 """SetPaperId(int sizeId)"""
3486 return _windows
.PrintData_SetPaperId(*args
, **kwargs
)
3488 def SetPaperSize(*args
, **kwargs
):
3489 """SetPaperSize(Size sz)"""
3490 return _windows
.PrintData_SetPaperSize(*args
, **kwargs
)
3492 def SetQuality(*args
, **kwargs
):
3493 """SetQuality(int quality)"""
3494 return _windows
.PrintData_SetQuality(*args
, **kwargs
)
3496 def GetPrinterCommand(*args
, **kwargs
):
3497 """GetPrinterCommand() -> String"""
3498 return _windows
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3500 def GetPrinterOptions(*args
, **kwargs
):
3501 """GetPrinterOptions() -> String"""
3502 return _windows
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3504 def GetPreviewCommand(*args
, **kwargs
):
3505 """GetPreviewCommand() -> String"""
3506 return _windows
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3508 def GetFilename(*args
, **kwargs
):
3509 """GetFilename() -> String"""
3510 return _windows
.PrintData_GetFilename(*args
, **kwargs
)
3512 def GetFontMetricPath(*args
, **kwargs
):
3513 """GetFontMetricPath() -> String"""
3514 return _windows
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3516 def GetPrinterScaleX(*args
, **kwargs
):
3517 """GetPrinterScaleX() -> double"""
3518 return _windows
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3520 def GetPrinterScaleY(*args
, **kwargs
):
3521 """GetPrinterScaleY() -> double"""
3522 return _windows
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3524 def GetPrinterTranslateX(*args
, **kwargs
):
3525 """GetPrinterTranslateX() -> long"""
3526 return _windows
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3528 def GetPrinterTranslateY(*args
, **kwargs
):
3529 """GetPrinterTranslateY() -> long"""
3530 return _windows
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3532 def GetPrintMode(*args
, **kwargs
):
3533 """GetPrintMode() -> int"""
3534 return _windows
.PrintData_GetPrintMode(*args
, **kwargs
)
3536 def SetPrinterCommand(*args
, **kwargs
):
3537 """SetPrinterCommand(String command)"""
3538 return _windows
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3540 def SetPrinterOptions(*args
, **kwargs
):
3541 """SetPrinterOptions(String options)"""
3542 return _windows
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3544 def SetPreviewCommand(*args
, **kwargs
):
3545 """SetPreviewCommand(String command)"""
3546 return _windows
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3548 def SetFilename(*args
, **kwargs
):
3549 """SetFilename(String filename)"""
3550 return _windows
.PrintData_SetFilename(*args
, **kwargs
)
3552 def SetFontMetricPath(*args
, **kwargs
):
3553 """SetFontMetricPath(String path)"""
3554 return _windows
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3556 def SetPrinterScaleX(*args
, **kwargs
):
3557 """SetPrinterScaleX(double x)"""
3558 return _windows
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3560 def SetPrinterScaleY(*args
, **kwargs
):
3561 """SetPrinterScaleY(double y)"""
3562 return _windows
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3564 def SetPrinterScaling(*args
, **kwargs
):
3565 """SetPrinterScaling(double x, double y)"""
3566 return _windows
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3568 def SetPrinterTranslateX(*args
, **kwargs
):
3569 """SetPrinterTranslateX(long x)"""
3570 return _windows
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3572 def SetPrinterTranslateY(*args
, **kwargs
):
3573 """SetPrinterTranslateY(long y)"""
3574 return _windows
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3576 def SetPrinterTranslation(*args
, **kwargs
):
3577 """SetPrinterTranslation(long x, long y)"""
3578 return _windows
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3580 def SetPrintMode(*args
, **kwargs
):
3581 """SetPrintMode(int printMode)"""
3582 return _windows
.PrintData_SetPrintMode(*args
, **kwargs
)
3584 def GetOutputStream(*args
, **kwargs
):
3585 """GetOutputStream() -> OutputStream"""
3586 return _windows
.PrintData_GetOutputStream(*args
, **kwargs
)
3588 def SetOutputStream(*args
, **kwargs
):
3589 """SetOutputStream(OutputStream outputstream)"""
3590 return _windows
.PrintData_SetOutputStream(*args
, **kwargs
)
3592 def __nonzero__(self
): return self
.Ok()
3594 class PrintDataPtr(PrintData
):
3595 def __init__(self
, this
):
3597 if not hasattr(self
,"thisown"): self
.thisown
= 0
3598 self
.__class
__ = PrintData
3599 _windows
.PrintData_swigregister(PrintDataPtr
)
3600 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3601 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3603 class PageSetupDialogData(core
.Object
):
3605 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3606 def __init__(self
, *args
, **kwargs
):
3607 """__init__() -> PageSetupDialogData"""
3608 newobj
= _windows
.new_PageSetupDialogData(*args
, **kwargs
)
3609 self
.this
= newobj
.this
3612 def __del__(self
, destroy
=_windows
.delete_PageSetupDialogData
):
3615 if self
.thisown
: destroy(self
)
3618 def EnableHelp(*args
, **kwargs
):
3619 """EnableHelp(bool flag)"""
3620 return _windows
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3622 def EnableMargins(*args
, **kwargs
):
3623 """EnableMargins(bool flag)"""
3624 return _windows
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3626 def EnableOrientation(*args
, **kwargs
):
3627 """EnableOrientation(bool flag)"""
3628 return _windows
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3630 def EnablePaper(*args
, **kwargs
):
3631 """EnablePaper(bool flag)"""
3632 return _windows
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3634 def EnablePrinter(*args
, **kwargs
):
3635 """EnablePrinter(bool flag)"""
3636 return _windows
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3638 def GetDefaultMinMargins(*args
, **kwargs
):
3639 """GetDefaultMinMargins() -> bool"""
3640 return _windows
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3642 def GetEnableMargins(*args
, **kwargs
):
3643 """GetEnableMargins() -> bool"""
3644 return _windows
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3646 def GetEnableOrientation(*args
, **kwargs
):
3647 """GetEnableOrientation() -> bool"""
3648 return _windows
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3650 def GetEnablePaper(*args
, **kwargs
):
3651 """GetEnablePaper() -> bool"""
3652 return _windows
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3654 def GetEnablePrinter(*args
, **kwargs
):
3655 """GetEnablePrinter() -> bool"""
3656 return _windows
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3658 def GetEnableHelp(*args
, **kwargs
):
3659 """GetEnableHelp() -> bool"""
3660 return _windows
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3662 def GetDefaultInfo(*args
, **kwargs
):
3663 """GetDefaultInfo() -> bool"""
3664 return _windows
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3666 def GetMarginTopLeft(*args
, **kwargs
):
3667 """GetMarginTopLeft() -> Point"""
3668 return _windows
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3670 def GetMarginBottomRight(*args
, **kwargs
):
3671 """GetMarginBottomRight() -> Point"""
3672 return _windows
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3674 def GetMinMarginTopLeft(*args
, **kwargs
):
3675 """GetMinMarginTopLeft() -> Point"""
3676 return _windows
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3678 def GetMinMarginBottomRight(*args
, **kwargs
):
3679 """GetMinMarginBottomRight() -> Point"""
3680 return _windows
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3682 def GetPaperId(*args
, **kwargs
):
3683 """GetPaperId() -> int"""
3684 return _windows
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3686 def GetPaperSize(*args
, **kwargs
):
3687 """GetPaperSize() -> Size"""
3688 return _windows
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3690 def GetPrintData(*args
, **kwargs
):
3691 """GetPrintData() -> PrintData"""
3692 return _windows
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3694 def Ok(*args
, **kwargs
):
3696 return _windows
.PageSetupDialogData_Ok(*args
, **kwargs
)
3698 def SetDefaultInfo(*args
, **kwargs
):
3699 """SetDefaultInfo(bool flag)"""
3700 return _windows
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3702 def SetDefaultMinMargins(*args
, **kwargs
):
3703 """SetDefaultMinMargins(bool flag)"""
3704 return _windows
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3706 def SetMarginTopLeft(*args
, **kwargs
):
3707 """SetMarginTopLeft(Point pt)"""
3708 return _windows
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3710 def SetMarginBottomRight(*args
, **kwargs
):
3711 """SetMarginBottomRight(Point pt)"""
3712 return _windows
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3714 def SetMinMarginTopLeft(*args
, **kwargs
):
3715 """SetMinMarginTopLeft(Point pt)"""
3716 return _windows
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3718 def SetMinMarginBottomRight(*args
, **kwargs
):
3719 """SetMinMarginBottomRight(Point pt)"""
3720 return _windows
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3722 def SetPaperId(*args
, **kwargs
):
3723 """SetPaperId(int id)"""
3724 return _windows
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3726 def SetPaperSize(*args
, **kwargs
):
3727 """SetPaperSize(Size size)"""
3728 return _windows
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3730 def SetPrintData(*args
, **kwargs
):
3731 """SetPrintData(PrintData printData)"""
3732 return _windows
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3734 def __nonzero__(self
): return self
.Ok()
3736 class PageSetupDialogDataPtr(PageSetupDialogData
):
3737 def __init__(self
, this
):
3739 if not hasattr(self
,"thisown"): self
.thisown
= 0
3740 self
.__class
__ = PageSetupDialogData
3741 _windows
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3743 class PageSetupDialog(Dialog
):
3745 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3746 def __init__(self
, *args
, **kwargs
):
3747 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3748 newobj
= _windows
.new_PageSetupDialog(*args
, **kwargs
)
3749 self
.this
= newobj
.this
3752 self
._setOORInfo
(self
)
3754 def GetPageSetupData(*args
, **kwargs
):
3755 """GetPageSetupData() -> PageSetupDialogData"""
3756 return _windows
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3758 def ShowModal(*args
, **kwargs
):
3759 """ShowModal() -> int"""
3760 return _windows
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3763 class PageSetupDialogPtr(PageSetupDialog
):
3764 def __init__(self
, this
):
3766 if not hasattr(self
,"thisown"): self
.thisown
= 0
3767 self
.__class
__ = PageSetupDialog
3768 _windows
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3770 class PrintDialogData(core
.Object
):
3772 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3773 def __init__(self
, *args
):
3775 __init__() -> PrintDialogData
3776 __init__(PrintData printData) -> PrintDialogData
3778 newobj
= _windows
.new_PrintDialogData(*args
)
3779 self
.this
= newobj
.this
3782 def __del__(self
, destroy
=_windows
.delete_PrintDialogData
):
3785 if self
.thisown
: destroy(self
)
3788 def GetFromPage(*args
, **kwargs
):
3789 """GetFromPage() -> int"""
3790 return _windows
.PrintDialogData_GetFromPage(*args
, **kwargs
)
3792 def GetToPage(*args
, **kwargs
):
3793 """GetToPage() -> int"""
3794 return _windows
.PrintDialogData_GetToPage(*args
, **kwargs
)
3796 def GetMinPage(*args
, **kwargs
):
3797 """GetMinPage() -> int"""
3798 return _windows
.PrintDialogData_GetMinPage(*args
, **kwargs
)
3800 def GetMaxPage(*args
, **kwargs
):
3801 """GetMaxPage() -> int"""
3802 return _windows
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
3804 def GetNoCopies(*args
, **kwargs
):
3805 """GetNoCopies() -> int"""
3806 return _windows
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
3808 def GetAllPages(*args
, **kwargs
):
3809 """GetAllPages() -> bool"""
3810 return _windows
.PrintDialogData_GetAllPages(*args
, **kwargs
)
3812 def GetSelection(*args
, **kwargs
):
3813 """GetSelection() -> bool"""
3814 return _windows
.PrintDialogData_GetSelection(*args
, **kwargs
)
3816 def GetCollate(*args
, **kwargs
):
3817 """GetCollate() -> bool"""
3818 return _windows
.PrintDialogData_GetCollate(*args
, **kwargs
)
3820 def GetPrintToFile(*args
, **kwargs
):
3821 """GetPrintToFile() -> bool"""
3822 return _windows
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
3824 def GetSetupDialog(*args
, **kwargs
):
3825 """GetSetupDialog() -> bool"""
3826 return _windows
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
3828 def SetFromPage(*args
, **kwargs
):
3829 """SetFromPage(int v)"""
3830 return _windows
.PrintDialogData_SetFromPage(*args
, **kwargs
)
3832 def SetToPage(*args
, **kwargs
):
3833 """SetToPage(int v)"""
3834 return _windows
.PrintDialogData_SetToPage(*args
, **kwargs
)
3836 def SetMinPage(*args
, **kwargs
):
3837 """SetMinPage(int v)"""
3838 return _windows
.PrintDialogData_SetMinPage(*args
, **kwargs
)
3840 def SetMaxPage(*args
, **kwargs
):
3841 """SetMaxPage(int v)"""
3842 return _windows
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
3844 def SetNoCopies(*args
, **kwargs
):
3845 """SetNoCopies(int v)"""
3846 return _windows
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
3848 def SetAllPages(*args
, **kwargs
):
3849 """SetAllPages(bool flag)"""
3850 return _windows
.PrintDialogData_SetAllPages(*args
, **kwargs
)
3852 def SetSelection(*args
, **kwargs
):
3853 """SetSelection(bool flag)"""
3854 return _windows
.PrintDialogData_SetSelection(*args
, **kwargs
)
3856 def SetCollate(*args
, **kwargs
):
3857 """SetCollate(bool flag)"""
3858 return _windows
.PrintDialogData_SetCollate(*args
, **kwargs
)
3860 def SetPrintToFile(*args
, **kwargs
):
3861 """SetPrintToFile(bool flag)"""
3862 return _windows
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
3864 def SetSetupDialog(*args
, **kwargs
):
3865 """SetSetupDialog(bool flag)"""
3866 return _windows
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
3868 def EnablePrintToFile(*args
, **kwargs
):
3869 """EnablePrintToFile(bool flag)"""
3870 return _windows
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
3872 def EnableSelection(*args
, **kwargs
):
3873 """EnableSelection(bool flag)"""
3874 return _windows
.PrintDialogData_EnableSelection(*args
, **kwargs
)
3876 def EnablePageNumbers(*args
, **kwargs
):
3877 """EnablePageNumbers(bool flag)"""
3878 return _windows
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
3880 def EnableHelp(*args
, **kwargs
):
3881 """EnableHelp(bool flag)"""
3882 return _windows
.PrintDialogData_EnableHelp(*args
, **kwargs
)
3884 def GetEnablePrintToFile(*args
, **kwargs
):
3885 """GetEnablePrintToFile() -> bool"""
3886 return _windows
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
3888 def GetEnableSelection(*args
, **kwargs
):
3889 """GetEnableSelection() -> bool"""
3890 return _windows
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
3892 def GetEnablePageNumbers(*args
, **kwargs
):
3893 """GetEnablePageNumbers() -> bool"""
3894 return _windows
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
3896 def GetEnableHelp(*args
, **kwargs
):
3897 """GetEnableHelp() -> bool"""
3898 return _windows
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
3900 def Ok(*args
, **kwargs
):
3902 return _windows
.PrintDialogData_Ok(*args
, **kwargs
)
3904 def GetPrintData(*args
, **kwargs
):
3905 """GetPrintData() -> PrintData"""
3906 return _windows
.PrintDialogData_GetPrintData(*args
, **kwargs
)
3908 def SetPrintData(*args
, **kwargs
):
3909 """SetPrintData(PrintData printData)"""
3910 return _windows
.PrintDialogData_SetPrintData(*args
, **kwargs
)
3912 def __nonzero__(self
): return self
.Ok()
3914 class PrintDialogDataPtr(PrintDialogData
):
3915 def __init__(self
, this
):
3917 if not hasattr(self
,"thisown"): self
.thisown
= 0
3918 self
.__class
__ = PrintDialogData
3919 _windows
.PrintDialogData_swigregister(PrintDialogDataPtr
)
3921 class PrintDialog(Dialog
):
3923 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3924 def __init__(self
, *args
, **kwargs
):
3925 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
3926 newobj
= _windows
.new_PrintDialog(*args
, **kwargs
)
3927 self
.this
= newobj
.this
3930 self
._setOORInfo
(self
)
3932 def GetPrintDialogData(*args
, **kwargs
):
3933 """GetPrintDialogData() -> PrintDialogData"""
3934 return _windows
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
3936 def GetPrintDC(*args
, **kwargs
):
3937 """GetPrintDC() -> DC"""
3938 return _windows
.PrintDialog_GetPrintDC(*args
, **kwargs
)
3940 def ShowModal(*args
, **kwargs
):
3941 """ShowModal() -> int"""
3942 return _windows
.PrintDialog_ShowModal(*args
, **kwargs
)
3945 class PrintDialogPtr(PrintDialog
):
3946 def __init__(self
, this
):
3948 if not hasattr(self
,"thisown"): self
.thisown
= 0
3949 self
.__class
__ = PrintDialog
3950 _windows
.PrintDialog_swigregister(PrintDialogPtr
)
3952 PRINTER_NO_ERROR
= _windows
.PRINTER_NO_ERROR
3953 PRINTER_CANCELLED
= _windows
.PRINTER_CANCELLED
3954 PRINTER_ERROR
= _windows
.PRINTER_ERROR
3955 class Printer(core
.Object
):
3957 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3958 def __init__(self
, *args
, **kwargs
):
3959 """__init__(PrintDialogData data=None) -> Printer"""
3960 newobj
= _windows
.new_Printer(*args
, **kwargs
)
3961 self
.this
= newobj
.this
3964 def __del__(self
, destroy
=_windows
.delete_Printer
):
3967 if self
.thisown
: destroy(self
)
3970 def CreateAbortWindow(*args
, **kwargs
):
3971 """CreateAbortWindow(Window parent, Printout printout)"""
3972 return _windows
.Printer_CreateAbortWindow(*args
, **kwargs
)
3974 def GetPrintDialogData(*args
, **kwargs
):
3975 """GetPrintDialogData() -> PrintDialogData"""
3976 return _windows
.Printer_GetPrintDialogData(*args
, **kwargs
)
3978 def Print(*args
, **kwargs
):
3979 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
3980 return _windows
.Printer_Print(*args
, **kwargs
)
3982 def PrintDialog(*args
, **kwargs
):
3983 """PrintDialog(Window parent) -> DC"""
3984 return _windows
.Printer_PrintDialog(*args
, **kwargs
)
3986 def ReportError(*args
, **kwargs
):
3987 """ReportError(Window parent, Printout printout, String message)"""
3988 return _windows
.Printer_ReportError(*args
, **kwargs
)
3990 def Setup(*args
, **kwargs
):
3991 """Setup(Window parent) -> bool"""
3992 return _windows
.Printer_Setup(*args
, **kwargs
)
3994 def GetAbort(*args
, **kwargs
):
3995 """GetAbort() -> bool"""
3996 return _windows
.Printer_GetAbort(*args
, **kwargs
)
3998 def GetLastError(*args
, **kwargs
):
3999 """GetLastError() -> int"""
4000 return _windows
.Printer_GetLastError(*args
, **kwargs
)
4002 GetLastError
= staticmethod(GetLastError
)
4004 class PrinterPtr(Printer
):
4005 def __init__(self
, this
):
4007 if not hasattr(self
,"thisown"): self
.thisown
= 0
4008 self
.__class
__ = Printer
4009 _windows
.Printer_swigregister(PrinterPtr
)
4011 def Printer_GetLastError(*args
, **kwargs
):
4012 """Printer_GetLastError() -> int"""
4013 return _windows
.Printer_GetLastError(*args
, **kwargs
)
4015 class Printout(core
.Object
):
4017 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4018 def __init__(self
, *args
, **kwargs
):
4019 """__init__(String title=PrintoutTitleStr) -> Printout"""
4020 newobj
= _windows
.new_Printout(*args
, **kwargs
)
4021 self
.this
= newobj
.this
4024 self
._setCallbackInfo
(self
, Printout
)
4026 def _setCallbackInfo(*args
, **kwargs
):
4027 """_setCallbackInfo(PyObject self, PyObject _class)"""
4028 return _windows
.Printout__setCallbackInfo(*args
, **kwargs
)
4030 def GetTitle(*args
, **kwargs
):
4031 """GetTitle() -> String"""
4032 return _windows
.Printout_GetTitle(*args
, **kwargs
)
4034 def GetDC(*args
, **kwargs
):
4036 return _windows
.Printout_GetDC(*args
, **kwargs
)
4038 def SetDC(*args
, **kwargs
):
4040 return _windows
.Printout_SetDC(*args
, **kwargs
)
4042 def SetPageSizePixels(*args
, **kwargs
):
4043 """SetPageSizePixels(int w, int h)"""
4044 return _windows
.Printout_SetPageSizePixels(*args
, **kwargs
)
4046 def GetPageSizePixels(*args
, **kwargs
):
4047 """GetPageSizePixels() -> (w, h)"""
4048 return _windows
.Printout_GetPageSizePixels(*args
, **kwargs
)
4050 def SetPageSizeMM(*args
, **kwargs
):
4051 """SetPageSizeMM(int w, int h)"""
4052 return _windows
.Printout_SetPageSizeMM(*args
, **kwargs
)
4054 def GetPageSizeMM(*args
, **kwargs
):
4055 """GetPageSizeMM() -> (w, h)"""
4056 return _windows
.Printout_GetPageSizeMM(*args
, **kwargs
)
4058 def SetPPIScreen(*args
, **kwargs
):
4059 """SetPPIScreen(int x, int y)"""
4060 return _windows
.Printout_SetPPIScreen(*args
, **kwargs
)
4062 def GetPPIScreen(*args
, **kwargs
):
4063 """GetPPIScreen() -> (x,y)"""
4064 return _windows
.Printout_GetPPIScreen(*args
, **kwargs
)
4066 def SetPPIPrinter(*args
, **kwargs
):
4067 """SetPPIPrinter(int x, int y)"""
4068 return _windows
.Printout_SetPPIPrinter(*args
, **kwargs
)
4070 def GetPPIPrinter(*args
, **kwargs
):
4071 """GetPPIPrinter() -> (x,y)"""
4072 return _windows
.Printout_GetPPIPrinter(*args
, **kwargs
)
4074 def IsPreview(*args
, **kwargs
):
4075 """IsPreview() -> bool"""
4076 return _windows
.Printout_IsPreview(*args
, **kwargs
)
4078 def SetIsPreview(*args
, **kwargs
):
4079 """SetIsPreview(bool p)"""
4080 return _windows
.Printout_SetIsPreview(*args
, **kwargs
)
4082 def base_OnBeginDocument(*args
, **kwargs
):
4083 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
4084 return _windows
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4086 def base_OnEndDocument(*args
, **kwargs
):
4087 """base_OnEndDocument()"""
4088 return _windows
.Printout_base_OnEndDocument(*args
, **kwargs
)
4090 def base_OnBeginPrinting(*args
, **kwargs
):
4091 """base_OnBeginPrinting()"""
4092 return _windows
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4094 def base_OnEndPrinting(*args
, **kwargs
):
4095 """base_OnEndPrinting()"""
4096 return _windows
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4098 def base_OnPreparePrinting(*args
, **kwargs
):
4099 """base_OnPreparePrinting()"""
4100 return _windows
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4102 def base_HasPage(*args
, **kwargs
):
4103 """base_HasPage(int page) -> bool"""
4104 return _windows
.Printout_base_HasPage(*args
, **kwargs
)
4106 def base_GetPageInfo(*args
, **kwargs
):
4107 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4108 return _windows
.Printout_base_GetPageInfo(*args
, **kwargs
)
4111 class PrintoutPtr(Printout
):
4112 def __init__(self
, this
):
4114 if not hasattr(self
,"thisown"): self
.thisown
= 0
4115 self
.__class
__ = Printout
4116 _windows
.Printout_swigregister(PrintoutPtr
)
4118 class PreviewCanvas(ScrolledWindow
):
4120 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4121 def __init__(self
, *args
, **kwargs
):
4123 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
4124 Size size=DefaultSize, long style=0,
4125 String name=PreviewCanvasNameStr) -> PreviewCanvas
4127 newobj
= _windows
.new_PreviewCanvas(*args
, **kwargs
)
4128 self
.this
= newobj
.this
4131 self
._setOORInfo
(self
)
4134 class PreviewCanvasPtr(PreviewCanvas
):
4135 def __init__(self
, this
):
4137 if not hasattr(self
,"thisown"): self
.thisown
= 0
4138 self
.__class
__ = PreviewCanvas
4139 _windows
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4141 class PreviewFrame(Frame
):
4143 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4144 def __init__(self
, *args
, **kwargs
):
4146 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4147 Size size=DefaultSize,
4148 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4150 newobj
= _windows
.new_PreviewFrame(*args
, **kwargs
)
4151 self
.this
= newobj
.this
4154 self
._setOORInfo
(self
)
4156 def Initialize(*args
, **kwargs
):
4158 return _windows
.PreviewFrame_Initialize(*args
, **kwargs
)
4160 def CreateControlBar(*args
, **kwargs
):
4161 """CreateControlBar()"""
4162 return _windows
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4164 def CreateCanvas(*args
, **kwargs
):
4165 """CreateCanvas()"""
4166 return _windows
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4168 def GetControlBar(*args
, **kwargs
):
4169 """GetControlBar() -> PreviewControlBar"""
4170 return _windows
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4173 class PreviewFramePtr(PreviewFrame
):
4174 def __init__(self
, this
):
4176 if not hasattr(self
,"thisown"): self
.thisown
= 0
4177 self
.__class
__ = PreviewFrame
4178 _windows
.PreviewFrame_swigregister(PreviewFramePtr
)
4180 PREVIEW_PRINT
= _windows
.PREVIEW_PRINT
4181 PREVIEW_PREVIOUS
= _windows
.PREVIEW_PREVIOUS
4182 PREVIEW_NEXT
= _windows
.PREVIEW_NEXT
4183 PREVIEW_ZOOM
= _windows
.PREVIEW_ZOOM
4184 PREVIEW_FIRST
= _windows
.PREVIEW_FIRST
4185 PREVIEW_LAST
= _windows
.PREVIEW_LAST
4186 PREVIEW_GOTO
= _windows
.PREVIEW_GOTO
4187 PREVIEW_DEFAULT
= _windows
.PREVIEW_DEFAULT
4188 ID_PREVIEW_CLOSE
= _windows
.ID_PREVIEW_CLOSE
4189 ID_PREVIEW_NEXT
= _windows
.ID_PREVIEW_NEXT
4190 ID_PREVIEW_PREVIOUS
= _windows
.ID_PREVIEW_PREVIOUS
4191 ID_PREVIEW_PRINT
= _windows
.ID_PREVIEW_PRINT
4192 ID_PREVIEW_ZOOM
= _windows
.ID_PREVIEW_ZOOM
4193 ID_PREVIEW_FIRST
= _windows
.ID_PREVIEW_FIRST
4194 ID_PREVIEW_LAST
= _windows
.ID_PREVIEW_LAST
4195 ID_PREVIEW_GOTO
= _windows
.ID_PREVIEW_GOTO
4196 class PreviewControlBar(Panel
):
4198 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4199 def __init__(self
, *args
, **kwargs
):
4201 __init__(PrintPreview preview, long buttons, Window parent,
4202 Point pos=DefaultPosition, Size size=DefaultSize,
4203 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4205 newobj
= _windows
.new_PreviewControlBar(*args
, **kwargs
)
4206 self
.this
= newobj
.this
4209 self
._setOORInfo
(self
)
4211 def GetZoomControl(*args
, **kwargs
):
4212 """GetZoomControl() -> int"""
4213 return _windows
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4215 def SetZoomControl(*args
, **kwargs
):
4216 """SetZoomControl(int zoom)"""
4217 return _windows
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4219 def GetPrintPreview(*args
, **kwargs
):
4220 """GetPrintPreview() -> PrintPreview"""
4221 return _windows
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4223 def OnNext(*args
, **kwargs
):
4225 return _windows
.PreviewControlBar_OnNext(*args
, **kwargs
)
4227 def OnPrevious(*args
, **kwargs
):
4229 return _windows
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4231 def OnFirst(*args
, **kwargs
):
4233 return _windows
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4235 def OnLast(*args
, **kwargs
):
4237 return _windows
.PreviewControlBar_OnLast(*args
, **kwargs
)
4239 def OnGoto(*args
, **kwargs
):
4241 return _windows
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4244 class PreviewControlBarPtr(PreviewControlBar
):
4245 def __init__(self
, this
):
4247 if not hasattr(self
,"thisown"): self
.thisown
= 0
4248 self
.__class
__ = PreviewControlBar
4249 _windows
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4251 class PrintPreview(core
.Object
):
4253 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4254 def __init__(self
, *args
):
4256 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4257 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4259 newobj
= _windows
.new_PrintPreview(*args
)
4260 self
.this
= newobj
.this
4263 def SetCurrentPage(*args
, **kwargs
):
4264 """SetCurrentPage(int pageNum) -> bool"""
4265 return _windows
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4267 def GetCurrentPage(*args
, **kwargs
):
4268 """GetCurrentPage() -> int"""
4269 return _windows
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4271 def SetPrintout(*args
, **kwargs
):
4272 """SetPrintout(Printout printout)"""
4273 return _windows
.PrintPreview_SetPrintout(*args
, **kwargs
)
4275 def GetPrintout(*args
, **kwargs
):
4276 """GetPrintout() -> Printout"""
4277 return _windows
.PrintPreview_GetPrintout(*args
, **kwargs
)
4279 def GetPrintoutForPrinting(*args
, **kwargs
):
4280 """GetPrintoutForPrinting() -> Printout"""
4281 return _windows
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4283 def SetFrame(*args
, **kwargs
):
4284 """SetFrame(Frame frame)"""
4285 return _windows
.PrintPreview_SetFrame(*args
, **kwargs
)
4287 def SetCanvas(*args
, **kwargs
):
4288 """SetCanvas(PreviewCanvas canvas)"""
4289 return _windows
.PrintPreview_SetCanvas(*args
, **kwargs
)
4291 def GetFrame(*args
, **kwargs
):
4292 """GetFrame() -> Frame"""
4293 return _windows
.PrintPreview_GetFrame(*args
, **kwargs
)
4295 def GetCanvas(*args
, **kwargs
):
4296 """GetCanvas() -> PreviewCanvas"""
4297 return _windows
.PrintPreview_GetCanvas(*args
, **kwargs
)
4299 def PaintPage(*args
, **kwargs
):
4300 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4301 return _windows
.PrintPreview_PaintPage(*args
, **kwargs
)
4303 def DrawBlankPage(*args
, **kwargs
):
4304 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4305 return _windows
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4307 def RenderPage(*args
, **kwargs
):
4308 """RenderPage(int pageNum) -> bool"""
4309 return _windows
.PrintPreview_RenderPage(*args
, **kwargs
)
4311 def AdjustScrollbars(*args
, **kwargs
):
4312 """AdjustScrollbars(PreviewCanvas canvas)"""
4313 return _windows
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4315 def GetPrintDialogData(*args
, **kwargs
):
4316 """GetPrintDialogData() -> PrintDialogData"""
4317 return _windows
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4319 def SetZoom(*args
, **kwargs
):
4320 """SetZoom(int percent)"""
4321 return _windows
.PrintPreview_SetZoom(*args
, **kwargs
)
4323 def GetZoom(*args
, **kwargs
):
4324 """GetZoom() -> int"""
4325 return _windows
.PrintPreview_GetZoom(*args
, **kwargs
)
4327 def GetMaxPage(*args
, **kwargs
):
4328 """GetMaxPage() -> int"""
4329 return _windows
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4331 def GetMinPage(*args
, **kwargs
):
4332 """GetMinPage() -> int"""
4333 return _windows
.PrintPreview_GetMinPage(*args
, **kwargs
)
4335 def Ok(*args
, **kwargs
):
4337 return _windows
.PrintPreview_Ok(*args
, **kwargs
)
4339 def SetOk(*args
, **kwargs
):
4340 """SetOk(bool ok)"""
4341 return _windows
.PrintPreview_SetOk(*args
, **kwargs
)
4343 def Print(*args
, **kwargs
):
4344 """Print(bool interactive) -> bool"""
4345 return _windows
.PrintPreview_Print(*args
, **kwargs
)
4347 def DetermineScaling(*args
, **kwargs
):
4348 """DetermineScaling()"""
4349 return _windows
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4351 def __nonzero__(self
): return self
.Ok()
4353 class PrintPreviewPtr(PrintPreview
):
4354 def __init__(self
, this
):
4356 if not hasattr(self
,"thisown"): self
.thisown
= 0
4357 self
.__class
__ = PrintPreview
4358 _windows
.PrintPreview_swigregister(PrintPreviewPtr
)
4360 class PyPrintPreview(PrintPreview
):
4362 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4363 def __init__(self
, *args
):
4365 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4366 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4368 newobj
= _windows
.new_PyPrintPreview(*args
)
4369 self
.this
= newobj
.this
4372 self
._setCallbackInfo
(self
, PyPrintPreview
)
4374 def _setCallbackInfo(*args
, **kwargs
):
4375 """_setCallbackInfo(PyObject self, PyObject _class)"""
4376 return _windows
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4378 def base_SetCurrentPage(*args
, **kwargs
):
4379 """base_SetCurrentPage(int pageNum) -> bool"""
4380 return _windows
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4382 def base_PaintPage(*args
, **kwargs
):
4383 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4384 return _windows
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4386 def base_DrawBlankPage(*args
, **kwargs
):
4387 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4388 return _windows
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4390 def base_RenderPage(*args
, **kwargs
):
4391 """base_RenderPage(int pageNum) -> bool"""
4392 return _windows
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4394 def base_SetZoom(*args
, **kwargs
):
4395 """base_SetZoom(int percent)"""
4396 return _windows
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4398 def base_Print(*args
, **kwargs
):
4399 """base_Print(bool interactive) -> bool"""
4400 return _windows
.PyPrintPreview_base_Print(*args
, **kwargs
)
4402 def base_DetermineScaling(*args
, **kwargs
):
4403 """base_DetermineScaling()"""
4404 return _windows
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4407 class PyPrintPreviewPtr(PyPrintPreview
):
4408 def __init__(self
, this
):
4410 if not hasattr(self
,"thisown"): self
.thisown
= 0
4411 self
.__class
__ = PyPrintPreview
4412 _windows
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4414 class PyPreviewFrame(PreviewFrame
):
4416 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4417 def __init__(self
, *args
, **kwargs
):
4419 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4420 Size size=DefaultSize,
4421 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4423 newobj
= _windows
.new_PyPreviewFrame(*args
, **kwargs
)
4424 self
.this
= newobj
.this
4427 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4429 def _setCallbackInfo(*args
, **kwargs
):
4430 """_setCallbackInfo(PyObject self, PyObject _class)"""
4431 return _windows
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4433 def SetPreviewCanvas(*args
, **kwargs
):
4434 """SetPreviewCanvas(PreviewCanvas canvas)"""
4435 return _windows
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4437 def SetControlBar(*args
, **kwargs
):
4438 """SetControlBar(PreviewControlBar bar)"""
4439 return _windows
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4441 def base_Initialize(*args
, **kwargs
):
4442 """base_Initialize()"""
4443 return _windows
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4445 def base_CreateCanvas(*args
, **kwargs
):
4446 """base_CreateCanvas()"""
4447 return _windows
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4449 def base_CreateControlBar(*args
, **kwargs
):
4450 """base_CreateControlBar()"""
4451 return _windows
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4454 class PyPreviewFramePtr(PyPreviewFrame
):
4455 def __init__(self
, this
):
4457 if not hasattr(self
,"thisown"): self
.thisown
= 0
4458 self
.__class
__ = PyPreviewFrame
4459 _windows
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4461 class PyPreviewControlBar(PreviewControlBar
):
4463 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4464 def __init__(self
, *args
, **kwargs
):
4466 __init__(PrintPreview preview, long buttons, Window parent,
4467 Point pos=DefaultPosition, Size size=DefaultSize,
4468 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4470 newobj
= _windows
.new_PyPreviewControlBar(*args
, **kwargs
)
4471 self
.this
= newobj
.this
4474 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4476 def _setCallbackInfo(*args
, **kwargs
):
4477 """_setCallbackInfo(PyObject self, PyObject _class)"""
4478 return _windows
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4480 def SetPrintPreview(*args
, **kwargs
):
4481 """SetPrintPreview(PrintPreview preview)"""
4482 return _windows
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4484 def base_CreateButtons(*args
, **kwargs
):
4485 """base_CreateButtons()"""
4486 return _windows
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4488 def base_SetZoomControl(*args
, **kwargs
):
4489 """base_SetZoomControl(int zoom)"""
4490 return _windows
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4493 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4494 def __init__(self
, this
):
4496 if not hasattr(self
,"thisown"): self
.thisown
= 0
4497 self
.__class
__ = PyPreviewControlBar
4498 _windows
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)