1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 class Panel(core
.Window
):
12 return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
13 def __init__(self
, *args
, **kwargs
):
15 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
16 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
17 String name=PanelNameStr) -> Panel
19 newobj
= _windows
.new_Panel(*args
, **kwargs
)
20 self
.this
= newobj
.this
23 self
._setOORInfo
(self
)
25 def Create(*args
, **kwargs
):
27 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
28 long style=wxTAB_TRAVERSAL|wxNO_BORDER,
29 String name=PanelNameStr) -> bool
31 Create the GUI part of the Window for 2-phase creation mode.
33 return _windows
.Panel_Create(*args
, **kwargs
)
35 def InitDialog(*args
, **kwargs
):
39 Sends an EVT_INIT_DIALOG event, whose handler usually transfers
40 data to the dialog via validators.
42 return _windows
.Panel_InitDialog(*args
, **kwargs
)
45 class PanelPtr(Panel
):
46 def __init__(self
, this
):
48 if not hasattr(self
,"thisown"): self
.thisown
= 0
49 self
.__class
__ = Panel
50 _windows
.Panel_swigregister(PanelPtr
)
52 def PrePanel(*args
, **kwargs
):
53 """PrePanel() -> Panel"""
54 val
= _windows
.new_PrePanel(*args
, **kwargs
)
58 #---------------------------------------------------------------------------
60 class ScrolledWindow(Panel
):
62 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
63 def __init__(self
, *args
, **kwargs
):
65 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
66 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
67 String name=PanelNameStr) -> ScrolledWindow
69 newobj
= _windows
.new_ScrolledWindow(*args
, **kwargs
)
70 self
.this
= newobj
.this
73 self
._setOORInfo
(self
)
75 def Create(*args
, **kwargs
):
77 Create(Window parent, int id=-1, Point pos=DefaultPosition,
78 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
79 String name=PanelNameStr) -> bool
81 Create the GUI part of the Window for 2-phase creation mode.
83 return _windows
.ScrolledWindow_Create(*args
, **kwargs
)
85 def SetScrollbars(*args
, **kwargs
):
87 SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
88 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
90 return _windows
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
92 def Scroll(*args
, **kwargs
):
93 """Scroll(int x, int y)"""
94 return _windows
.ScrolledWindow_Scroll(*args
, **kwargs
)
96 def GetScrollPageSize(*args
, **kwargs
):
97 """GetScrollPageSize(int orient) -> int"""
98 return _windows
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
100 def SetScrollPageSize(*args
, **kwargs
):
101 """SetScrollPageSize(int orient, int pageSize)"""
102 return _windows
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
104 def SetScrollRate(*args
, **kwargs
):
105 """SetScrollRate(int xstep, int ystep)"""
106 return _windows
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
108 def GetScrollPixelsPerUnit(*args
, **kwargs
):
110 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
112 Get the size of one logical unit in physical units.
114 return _windows
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
116 def EnableScrolling(*args
, **kwargs
):
117 """EnableScrolling(bool x_scrolling, bool y_scrolling)"""
118 return _windows
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
120 def GetViewStart(*args
, **kwargs
):
122 GetViewStart() -> (x,y)
126 return _windows
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
128 def SetScale(*args
, **kwargs
):
129 """SetScale(double xs, double ys)"""
130 return _windows
.ScrolledWindow_SetScale(*args
, **kwargs
)
132 def GetScaleX(*args
, **kwargs
):
133 """GetScaleX() -> double"""
134 return _windows
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
136 def GetScaleY(*args
, **kwargs
):
137 """GetScaleY() -> double"""
138 return _windows
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
140 def CalcScrolledPosition(*args
):
142 CalcScrolledPosition(Point pt) -> Point
143 CalcScrolledPosition(int x, int y) -> (sx, sy)
145 Translate between scrolled and unscrolled coordinates.
147 return _windows
.ScrolledWindow_CalcScrolledPosition(*args
)
149 def CalcUnscrolledPosition(*args
):
151 CalcUnscrolledPosition(Point pt) -> Point
152 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
154 Translate between scrolled and unscrolled coordinates.
156 return _windows
.ScrolledWindow_CalcUnscrolledPosition(*args
)
158 def AdjustScrollbars(*args
, **kwargs
):
159 """AdjustScrollbars()"""
160 return _windows
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
162 def CalcScrollInc(*args
, **kwargs
):
163 """CalcScrollInc(ScrollWinEvent event) -> int"""
164 return _windows
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
166 def SetTargetWindow(*args
, **kwargs
):
167 """SetTargetWindow(Window target)"""
168 return _windows
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
170 def GetTargetWindow(*args
, **kwargs
):
171 """GetTargetWindow() -> Window"""
172 return _windows
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
175 class ScrolledWindowPtr(ScrolledWindow
):
176 def __init__(self
, this
):
178 if not hasattr(self
,"thisown"): self
.thisown
= 0
179 self
.__class
__ = ScrolledWindow
180 _windows
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
182 def PreScrolledWindow(*args
, **kwargs
):
183 """PreScrolledWindow() -> ScrolledWindow"""
184 val
= _windows
.new_PreScrolledWindow(*args
, **kwargs
)
188 #---------------------------------------------------------------------------
190 FULLSCREEN_NOMENUBAR
= _windows
.FULLSCREEN_NOMENUBAR
191 FULLSCREEN_NOTOOLBAR
= _windows
.FULLSCREEN_NOTOOLBAR
192 FULLSCREEN_NOSTATUSBAR
= _windows
.FULLSCREEN_NOSTATUSBAR
193 FULLSCREEN_NOBORDER
= _windows
.FULLSCREEN_NOBORDER
194 FULLSCREEN_NOCAPTION
= _windows
.FULLSCREEN_NOCAPTION
195 FULLSCREEN_ALL
= _windows
.FULLSCREEN_ALL
196 TOPLEVEL_EX_DIALOG
= _windows
.TOPLEVEL_EX_DIALOG
197 class TopLevelWindow(core
.Window
):
198 def __init__(self
): raise RuntimeError, "No constructor defined"
200 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
201 def Maximize(*args
, **kwargs
):
202 """Maximize(bool maximize=True)"""
203 return _windows
.TopLevelWindow_Maximize(*args
, **kwargs
)
205 def Restore(*args
, **kwargs
):
207 return _windows
.TopLevelWindow_Restore(*args
, **kwargs
)
209 def Iconize(*args
, **kwargs
):
210 """Iconize(bool iconize=True)"""
211 return _windows
.TopLevelWindow_Iconize(*args
, **kwargs
)
213 def IsMaximized(*args
, **kwargs
):
214 """IsMaximized() -> bool"""
215 return _windows
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
217 def IsIconized(*args
, **kwargs
):
218 """IsIconized() -> bool"""
219 return _windows
.TopLevelWindow_IsIconized(*args
, **kwargs
)
221 def GetIcon(*args
, **kwargs
):
222 """GetIcon() -> Icon"""
223 return _windows
.TopLevelWindow_GetIcon(*args
, **kwargs
)
225 def SetIcon(*args
, **kwargs
):
226 """SetIcon(Icon icon)"""
227 return _windows
.TopLevelWindow_SetIcon(*args
, **kwargs
)
229 def SetIcons(*args
, **kwargs
):
230 """SetIcons(wxIconBundle icons)"""
231 return _windows
.TopLevelWindow_SetIcons(*args
, **kwargs
)
233 def ShowFullScreen(*args
, **kwargs
):
234 """ShowFullScreen(bool show, long style=FULLSCREEN_ALL) -> bool"""
235 return _windows
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
237 def IsFullScreen(*args
, **kwargs
):
238 """IsFullScreen() -> bool"""
239 return _windows
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
241 def SetTitle(*args
, **kwargs
):
243 SetTitle(String title)
245 Sets the window's title. Applicable only to frames and dialogs.
247 return _windows
.TopLevelWindow_SetTitle(*args
, **kwargs
)
249 def GetTitle(*args
, **kwargs
):
253 Gets the window's title. Applicable only to frames and dialogs.
255 return _windows
.TopLevelWindow_GetTitle(*args
, **kwargs
)
257 def SetShape(*args
, **kwargs
):
258 """SetShape(Region region) -> bool"""
259 return _windows
.TopLevelWindow_SetShape(*args
, **kwargs
)
262 class TopLevelWindowPtr(TopLevelWindow
):
263 def __init__(self
, this
):
265 if not hasattr(self
,"thisown"): self
.thisown
= 0
266 self
.__class
__ = TopLevelWindow
267 _windows
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
269 FrameNameStr
= cvar
.FrameNameStr
270 DialogNameStr
= cvar
.DialogNameStr
271 StatusLineNameStr
= cvar
.StatusLineNameStr
272 ToolBarNameStr
= cvar
.ToolBarNameStr
274 #---------------------------------------------------------------------------
276 class Frame(TopLevelWindow
):
278 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
279 def __init__(self
, *args
, **kwargs
):
281 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
282 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
283 String name=FrameNameStr) -> Frame
285 newobj
= _windows
.new_Frame(*args
, **kwargs
)
286 self
.this
= newobj
.this
289 self
._setOORInfo
(self
)
291 def Create(*args
, **kwargs
):
293 Create(Window parent, int id, String title, Point pos=DefaultPosition,
294 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
295 String name=FrameNameStr) -> bool
297 return _windows
.Frame_Create(*args
, **kwargs
)
299 def GetClientAreaOrigin(*args
, **kwargs
):
301 GetClientAreaOrigin() -> Point
303 Get the origin of the client area of the window relative to the
304 window's top left corner (the client area may be shifted because of
305 the borders, scrollbars, other decorations...)
307 return _windows
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
309 def SendSizeEvent(*args
, **kwargs
):
310 """SendSizeEvent()"""
311 return _windows
.Frame_SendSizeEvent(*args
, **kwargs
)
313 def SetMenuBar(*args
, **kwargs
):
314 """SetMenuBar(MenuBar menubar)"""
315 return _windows
.Frame_SetMenuBar(*args
, **kwargs
)
317 def GetMenuBar(*args
, **kwargs
):
318 """GetMenuBar() -> MenuBar"""
319 return _windows
.Frame_GetMenuBar(*args
, **kwargs
)
321 def ProcessCommand(*args
, **kwargs
):
322 """ProcessCommand(int winid) -> bool"""
323 return _windows
.Frame_ProcessCommand(*args
, **kwargs
)
325 Command
= ProcessCommand
326 def CreateStatusBar(*args
, **kwargs
):
328 CreateStatusBar(int number=1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
329 int winid=0, String name=StatusLineNameStr) -> StatusBar
331 return _windows
.Frame_CreateStatusBar(*args
, **kwargs
)
333 def GetStatusBar(*args
, **kwargs
):
334 """GetStatusBar() -> StatusBar"""
335 return _windows
.Frame_GetStatusBar(*args
, **kwargs
)
337 def SetStatusBar(*args
, **kwargs
):
338 """SetStatusBar(StatusBar statBar)"""
339 return _windows
.Frame_SetStatusBar(*args
, **kwargs
)
341 def SetStatusText(*args
, **kwargs
):
342 """SetStatusText(String text, int number=0)"""
343 return _windows
.Frame_SetStatusText(*args
, **kwargs
)
345 def SetStatusWidths(*args
, **kwargs
):
346 """SetStatusWidths(int widths, int widths_field)"""
347 return _windows
.Frame_SetStatusWidths(*args
, **kwargs
)
349 def PushStatusText(*args
, **kwargs
):
350 """PushStatusText(String text, int number=0)"""
351 return _windows
.Frame_PushStatusText(*args
, **kwargs
)
353 def PopStatusText(*args
, **kwargs
):
354 """PopStatusText(int number=0)"""
355 return _windows
.Frame_PopStatusText(*args
, **kwargs
)
357 def SetStatusBarPane(*args
, **kwargs
):
358 """SetStatusBarPane(int n)"""
359 return _windows
.Frame_SetStatusBarPane(*args
, **kwargs
)
361 def GetStatusBarPane(*args
, **kwargs
):
362 """GetStatusBarPane() -> int"""
363 return _windows
.Frame_GetStatusBarPane(*args
, **kwargs
)
365 def CreateToolBar(*args
, **kwargs
):
366 """CreateToolBar(long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
367 return _windows
.Frame_CreateToolBar(*args
, **kwargs
)
369 def GetToolBar(*args
, **kwargs
):
370 """GetToolBar() -> wxToolBar"""
371 return _windows
.Frame_GetToolBar(*args
, **kwargs
)
373 def SetToolBar(*args
, **kwargs
):
374 """SetToolBar(wxToolBar toolbar)"""
375 return _windows
.Frame_SetToolBar(*args
, **kwargs
)
377 def DoGiveHelp(*args
, **kwargs
):
378 """DoGiveHelp(String text, bool show)"""
379 return _windows
.Frame_DoGiveHelp(*args
, **kwargs
)
381 def DoMenuUpdates(*args
, **kwargs
):
382 """DoMenuUpdates(Menu menu=None)"""
383 return _windows
.Frame_DoMenuUpdates(*args
, **kwargs
)
386 class FramePtr(Frame
):
387 def __init__(self
, this
):
389 if not hasattr(self
,"thisown"): self
.thisown
= 0
390 self
.__class
__ = Frame
391 _windows
.Frame_swigregister(FramePtr
)
393 def PreFrame(*args
, **kwargs
):
394 """PreFrame() -> Frame"""
395 val
= _windows
.new_PreFrame(*args
, **kwargs
)
399 #---------------------------------------------------------------------------
401 class Dialog(TopLevelWindow
):
403 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
404 def __init__(self
, *args
, **kwargs
):
406 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
407 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
408 String name=DialogNameStr) -> Dialog
410 newobj
= _windows
.new_Dialog(*args
, **kwargs
)
411 self
.this
= newobj
.this
414 self
._setOORInfo
(self
)
416 def Create(*args
, **kwargs
):
418 Create(Window parent, int id, String title, Point pos=DefaultPosition,
419 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
420 String name=DialogNameStr) -> bool
422 return _windows
.Dialog_Create(*args
, **kwargs
)
424 def SetReturnCode(*args
, **kwargs
):
425 """SetReturnCode(int returnCode)"""
426 return _windows
.Dialog_SetReturnCode(*args
, **kwargs
)
428 def GetReturnCode(*args
, **kwargs
):
429 """GetReturnCode() -> int"""
430 return _windows
.Dialog_GetReturnCode(*args
, **kwargs
)
432 def CreateTextSizer(*args
, **kwargs
):
433 """CreateTextSizer(String message) -> Sizer"""
434 return _windows
.Dialog_CreateTextSizer(*args
, **kwargs
)
436 def CreateButtonSizer(*args
, **kwargs
):
437 """CreateButtonSizer(long flags) -> Sizer"""
438 return _windows
.Dialog_CreateButtonSizer(*args
, **kwargs
)
440 def IsModal(*args
, **kwargs
):
441 """IsModal() -> bool"""
442 return _windows
.Dialog_IsModal(*args
, **kwargs
)
444 def ShowModal(*args
, **kwargs
):
445 """ShowModal() -> int"""
446 return _windows
.Dialog_ShowModal(*args
, **kwargs
)
448 def EndModal(*args
, **kwargs
):
449 """EndModal(int retCode)"""
450 return _windows
.Dialog_EndModal(*args
, **kwargs
)
452 def IsModalShowing(*args
, **kwargs
):
453 """IsModalShowing() -> bool"""
454 return _windows
.Dialog_IsModalShowing(*args
, **kwargs
)
457 class DialogPtr(Dialog
):
458 def __init__(self
, this
):
460 if not hasattr(self
,"thisown"): self
.thisown
= 0
461 self
.__class
__ = Dialog
462 _windows
.Dialog_swigregister(DialogPtr
)
464 def PreDialog(*args
, **kwargs
):
465 """PreDialog() -> Dialog"""
466 val
= _windows
.new_PreDialog(*args
, **kwargs
)
470 #---------------------------------------------------------------------------
472 class MiniFrame(Frame
):
474 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
475 def __init__(self
, *args
, **kwargs
):
477 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
478 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
479 String name=FrameNameStr) -> MiniFrame
481 newobj
= _windows
.new_MiniFrame(*args
, **kwargs
)
482 self
.this
= newobj
.this
485 self
._setOORInfo
(self
)
487 def Create(*args
, **kwargs
):
489 Create(Window parent, int id, String title, Point pos=DefaultPosition,
490 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
491 String name=FrameNameStr) -> bool
493 return _windows
.MiniFrame_Create(*args
, **kwargs
)
496 class MiniFramePtr(MiniFrame
):
497 def __init__(self
, this
):
499 if not hasattr(self
,"thisown"): self
.thisown
= 0
500 self
.__class
__ = MiniFrame
501 _windows
.MiniFrame_swigregister(MiniFramePtr
)
503 def PreMiniFrame(*args
, **kwargs
):
504 """PreMiniFrame() -> MiniFrame"""
505 val
= _windows
.new_PreMiniFrame(*args
, **kwargs
)
509 #---------------------------------------------------------------------------
511 SPLASH_CENTRE_ON_PARENT
= _windows
.SPLASH_CENTRE_ON_PARENT
512 SPLASH_CENTRE_ON_SCREEN
= _windows
.SPLASH_CENTRE_ON_SCREEN
513 SPLASH_NO_CENTRE
= _windows
.SPLASH_NO_CENTRE
514 SPLASH_TIMEOUT
= _windows
.SPLASH_TIMEOUT
515 SPLASH_NO_TIMEOUT
= _windows
.SPLASH_NO_TIMEOUT
516 class SplashScreenWindow(core
.Window
):
518 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
519 def __init__(self
, *args
, **kwargs
):
521 __init__(Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
522 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
524 newobj
= _windows
.new_SplashScreenWindow(*args
, **kwargs
)
525 self
.this
= newobj
.this
528 self
._setOORInfo
(self
)
530 def SetBitmap(*args
, **kwargs
):
531 """SetBitmap(Bitmap bitmap)"""
532 return _windows
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
534 def GetBitmap(*args
, **kwargs
):
535 """GetBitmap() -> Bitmap"""
536 return _windows
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
539 class SplashScreenWindowPtr(SplashScreenWindow
):
540 def __init__(self
, this
):
542 if not hasattr(self
,"thisown"): self
.thisown
= 0
543 self
.__class
__ = SplashScreenWindow
544 _windows
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
546 class SplashScreen(Frame
):
548 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
549 def __init__(self
, *args
, **kwargs
):
551 __init__(Bitmap bitmap, long splashStyle, int milliseconds,
552 Window parent, int id, Point pos=DefaultPosition,
553 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
555 newobj
= _windows
.new_SplashScreen(*args
, **kwargs
)
556 self
.this
= newobj
.this
559 self
._setOORInfo
(self
)
561 def GetSplashStyle(*args
, **kwargs
):
562 """GetSplashStyle() -> long"""
563 return _windows
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
565 def GetSplashWindow(*args
, **kwargs
):
566 """GetSplashWindow() -> SplashScreenWindow"""
567 return _windows
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
569 def GetTimeout(*args
, **kwargs
):
570 """GetTimeout() -> int"""
571 return _windows
.SplashScreen_GetTimeout(*args
, **kwargs
)
574 class SplashScreenPtr(SplashScreen
):
575 def __init__(self
, this
):
577 if not hasattr(self
,"thisown"): self
.thisown
= 0
578 self
.__class
__ = SplashScreen
579 _windows
.SplashScreen_swigregister(SplashScreenPtr
)
581 #---------------------------------------------------------------------------
583 class StatusBar(core
.Window
):
585 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
586 def __init__(self
, *args
, **kwargs
):
588 __init__(Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
589 String name=StatusLineNameStr) -> StatusBar
591 newobj
= _windows
.new_StatusBar(*args
, **kwargs
)
592 self
.this
= newobj
.this
595 self
._setOORInfo
(self
)
597 def Create(*args
, **kwargs
):
598 """Create(Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
599 return _windows
.StatusBar_Create(*args
, **kwargs
)
601 def SetFieldsCount(*args
, **kwargs
):
602 """SetFieldsCount(int number=1)"""
603 return _windows
.StatusBar_SetFieldsCount(*args
, **kwargs
)
605 def GetFieldsCount(*args
, **kwargs
):
606 """GetFieldsCount() -> int"""
607 return _windows
.StatusBar_GetFieldsCount(*args
, **kwargs
)
609 def SetStatusText(*args
, **kwargs
):
610 """SetStatusText(String text, int number=0)"""
611 return _windows
.StatusBar_SetStatusText(*args
, **kwargs
)
613 def GetStatusText(*args
, **kwargs
):
614 """GetStatusText(int number=0) -> String"""
615 return _windows
.StatusBar_GetStatusText(*args
, **kwargs
)
617 def PushStatusText(*args
, **kwargs
):
618 """PushStatusText(String text, int number=0)"""
619 return _windows
.StatusBar_PushStatusText(*args
, **kwargs
)
621 def PopStatusText(*args
, **kwargs
):
622 """PopStatusText(int number=0)"""
623 return _windows
.StatusBar_PopStatusText(*args
, **kwargs
)
625 def SetStatusWidths(*args
, **kwargs
):
626 """SetStatusWidths(int widths, int widths_field)"""
627 return _windows
.StatusBar_SetStatusWidths(*args
, **kwargs
)
629 def GetFieldRect(*args
, **kwargs
):
630 """GetFieldRect(int i) -> Rect"""
631 return _windows
.StatusBar_GetFieldRect(*args
, **kwargs
)
633 def SetMinHeight(*args
, **kwargs
):
634 """SetMinHeight(int height)"""
635 return _windows
.StatusBar_SetMinHeight(*args
, **kwargs
)
637 def GetBorderX(*args
, **kwargs
):
638 """GetBorderX() -> int"""
639 return _windows
.StatusBar_GetBorderX(*args
, **kwargs
)
641 def GetBorderY(*args
, **kwargs
):
642 """GetBorderY() -> int"""
643 return _windows
.StatusBar_GetBorderY(*args
, **kwargs
)
646 class StatusBarPtr(StatusBar
):
647 def __init__(self
, this
):
649 if not hasattr(self
,"thisown"): self
.thisown
= 0
650 self
.__class
__ = StatusBar
651 _windows
.StatusBar_swigregister(StatusBarPtr
)
653 def PreStatusBar(*args
, **kwargs
):
654 """PreStatusBar() -> StatusBar"""
655 val
= _windows
.new_PreStatusBar(*args
, **kwargs
)
659 #---------------------------------------------------------------------------
661 SP_NOBORDER
= _windows
.SP_NOBORDER
662 SP_NOSASH
= _windows
.SP_NOSASH
663 SP_PERMIT_UNSPLIT
= _windows
.SP_PERMIT_UNSPLIT
664 SP_LIVE_UPDATE
= _windows
.SP_LIVE_UPDATE
665 SP_3DSASH
= _windows
.SP_3DSASH
666 SP_3DBORDER
= _windows
.SP_3DBORDER
667 SP_NO_XP_THEME
= _windows
.SP_NO_XP_THEME
668 SP_BORDER
= _windows
.SP_BORDER
669 SP_3D
= _windows
.SP_3D
670 SPLIT_HORIZONTAL
= _windows
.SPLIT_HORIZONTAL
671 SPLIT_VERTICAL
= _windows
.SPLIT_VERTICAL
672 SPLIT_DRAG_NONE
= _windows
.SPLIT_DRAG_NONE
673 SPLIT_DRAG_DRAGGING
= _windows
.SPLIT_DRAG_DRAGGING
674 SPLIT_DRAG_LEFT_DOWN
= _windows
.SPLIT_DRAG_LEFT_DOWN
675 class SplitterWindow(core
.Window
):
677 wx.SplitterWindow manages up to two subwindows or panes,
678 with an optional vertical or horizontal split which can be
679 used with the mouse or programmatically.
683 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
684 def __init__(self
, *args
, **kwargs
):
686 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
687 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
689 Constructor. Creates and shows a SplitterWindow.
691 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
692 newobj
= _windows
.new_SplitterWindow(*args
, **kwargs
)
693 self
.this
= newobj
.this
696 self
._setOORInfo
(self
)
698 def Create(*args
, **kwargs
):
700 Create(Window parent, int id=-1, Point pos=DefaultPosition,
701 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
703 Create the GUI part of the SplitterWindow for the 2-phase create.
705 return _windows
.SplitterWindow_Create(*args
, **kwargs
)
707 def GetWindow1(*args
, **kwargs
):
709 GetWindow1() -> Window
711 Gets the only or left/top pane.
713 return _windows
.SplitterWindow_GetWindow1(*args
, **kwargs
)
715 def GetWindow2(*args
, **kwargs
):
717 GetWindow2() -> Window
719 Gets the right/bottom pane.
721 return _windows
.SplitterWindow_GetWindow2(*args
, **kwargs
)
723 def SetSplitMode(*args
, **kwargs
):
725 SetSplitMode(int mode)
727 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
728 wx.SPLIT_HORIZONTAL. This only sets the internal variable;
729 does not update the display.
731 return _windows
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
733 def GetSplitMode(*args
, **kwargs
):
735 GetSplitMode() -> int
739 return _windows
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
741 def Initialize(*args
, **kwargs
):
743 Initialize(Window window)
745 Initializes the splitter window to have one pane. This
746 should be called if you wish to initially view only a single
747 pane in the splitter window.
749 return _windows
.SplitterWindow_Initialize(*args
, **kwargs
)
751 def SplitVertically(*args
, **kwargs
):
753 SplitVertically(Window window1, Window window2, int sashPosition=0) -> bool
755 Initializes the left and right panes of the splitter window.
757 window1 The left pane.
758 window2 The right pane.
759 sashPosition The initial position of the sash. If this
760 value is positive, it specifies the size
761 of the left pane. If it is negative, it is
762 absolute value gives the size of the right
763 pane. Finally, specify 0 (default) to
764 choose the default position (half of the
767 Returns True if successful, False otherwise (the window was
770 SplitVertically should be called if you wish to initially
771 view two panes. It can also be called at any subsequent
772 time, but the application should check that the window is
773 not currently split using IsSplit.
775 return _windows
.SplitterWindow_SplitVertically(*args
, **kwargs
)
777 def SplitHorizontally(*args
, **kwargs
):
779 SplitHorizontally(Window window1, Window window2, int sashPosition=0) -> bool
781 Initializes the top and bottom panes of the splitter window.
783 window1 The top pane.
784 window2 The bottom pane.
785 sashPosition The initial position of the sash. If this
786 value is positive, it specifies the size
787 of the upper pane. If it is negative, it
788 is absolute value gives the size of the
789 lower pane. Finally, specify 0 (default)
790 to choose the default position (half of
791 the total window height).
793 Returns True if successful, False otherwise (the window was
796 SplitHorizontally should be called if you wish to initially
797 view two panes. It can also be called at any subsequent
798 time, but the application should check that the window is
799 not currently split using IsSplit.
801 return _windows
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
803 def Unsplit(*args
, **kwargs
):
805 Unsplit(Window toRemove=None) -> bool
807 Unsplits the window. Pass the pane to remove, or None to
808 remove the right or bottom pane. Returns True if
809 successful, False otherwise (the window was not split).
811 This function will not actually delete the pane being
812 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
813 for the desired behaviour. By default, the pane being
814 removed is only hidden.
816 return _windows
.SplitterWindow_Unsplit(*args
, **kwargs
)
818 def ReplaceWindow(*args
, **kwargs
):
820 ReplaceWindow(Window winOld, Window winNew) -> bool
822 This function replaces one of the windows managed by the
823 SplitterWindow with another one. It is in general better to
824 use it instead of calling Unsplit() and then resplitting the
825 window back because it will provoke much less flicker. It is
826 valid to call this function whether the splitter has two
829 Both parameters should be non-None and winOld must specify
830 one of the windows managed by the splitter. If the
831 parameters are incorrect or the window couldn't be replaced,
832 False is returned. Otherwise the function will return True,
833 but please notice that it will not Destroy the replaced
834 window and you may wish to do it yourself.
836 return _windows
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
838 def UpdateSize(*args
, **kwargs
):
842 Causes any pending sizing of the sash and child panes to
843 take place immediately.
845 Such resizing normally takes place in idle time, in order to
846 wait for layout to be completed. However, this can cause
847 unacceptable flicker as the panes are resized after the
848 window has been shown. To work around this, you can perform
849 window layout (for example by sending a size event to the
850 parent window), and then call this function, before showing
851 the top-level window.
853 return _windows
.SplitterWindow_UpdateSize(*args
, **kwargs
)
855 def IsSplit(*args
, **kwargs
):
861 return _windows
.SplitterWindow_IsSplit(*args
, **kwargs
)
863 def SetSashSize(*args
, **kwargs
):
865 SetSashSize(int width)
869 return _windows
.SplitterWindow_SetSashSize(*args
, **kwargs
)
871 def SetBorderSize(*args
, **kwargs
):
873 SetBorderSize(int width)
877 return _windows
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
879 def GetSashSize(*args
, **kwargs
):
885 return _windows
.SplitterWindow_GetSashSize(*args
, **kwargs
)
887 def GetBorderSize(*args
, **kwargs
):
889 GetBorderSize() -> int
893 return _windows
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
895 def SetSashPosition(*args
, **kwargs
):
897 SetSashPosition(int position, bool redraw=True)
899 Sets the sash position, in pixels. If redraw is Ttrue then
900 the panes are resized and the sash and border are redrawn.
902 return _windows
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
904 def GetSashPosition(*args
, **kwargs
):
906 GetSashPosition() -> int
908 Returns the surrent sash position.
910 return _windows
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
912 def SetMinimumPaneSize(*args
, **kwargs
):
914 SetMinimumPaneSize(int min)
916 Sets the minimum pane size in pixels.
918 The default minimum pane size is zero, which means that
919 either pane can be reduced to zero by dragging the sash,
920 thus removing one of the panes. To prevent this behaviour (and
921 veto out-of-range sash dragging), set a minimum size,
922 for example 20 pixels. If the wx.SP_PERMIT_UNSPLIT style is
923 used when a splitter window is created, the window may be
924 unsplit even if minimum size is non-zero.
926 return _windows
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
928 def GetMinimumPaneSize(*args
, **kwargs
):
930 GetMinimumPaneSize() -> int
932 Gets the minimum pane size in pixels.
934 return _windows
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
936 def SashHitTest(*args
, **kwargs
):
938 SashHitTest(int x, int y, int tolerance=5) -> bool
940 Tests for x, y over the sash
942 return _windows
.SplitterWindow_SashHitTest(*args
, **kwargs
)
944 def SizeWindows(*args
, **kwargs
):
950 return _windows
.SplitterWindow_SizeWindows(*args
, **kwargs
)
952 def SetNeedUpdating(*args
, **kwargs
):
953 """SetNeedUpdating(bool needUpdating)"""
954 return _windows
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
956 def GetNeedUpdating(*args
, **kwargs
):
957 """GetNeedUpdating() -> bool"""
958 return _windows
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
961 class SplitterWindowPtr(SplitterWindow
):
962 def __init__(self
, this
):
964 if not hasattr(self
,"thisown"): self
.thisown
= 0
965 self
.__class
__ = SplitterWindow
966 _windows
.SplitterWindow_swigregister(SplitterWindowPtr
)
967 SplitterNameStr
= cvar
.SplitterNameStr
969 def PreSplitterWindow(*args
, **kwargs
):
971 PreSplitterWindow() -> SplitterWindow
973 Precreate a SplitterWindow for 2-phase creation.
975 val
= _windows
.new_PreSplitterWindow(*args
, **kwargs
)
979 class SplitterEvent(core
.NotifyEvent
):
980 """This class represents the events generated by a splitter control."""
982 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
983 def __init__(self
, *args
, **kwargs
):
985 __init__(wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
987 This class represents the events generated by a splitter control.
989 newobj
= _windows
.new_SplitterEvent(*args
, **kwargs
)
990 self
.this
= newobj
.this
993 def SetSashPosition(*args
, **kwargs
):
995 SetSashPosition(int pos)
997 This funciton is only meaningful during
998 EVT_SPLITTER_SASH_POS_CHANGING and
999 EVT_SPLITTER_SASH_POS_CHANGED events. In the case of
1000 _CHANGED events, sets the the new sash position. In the case
1001 of _CHANGING events, sets the new tracking bar position so
1002 visual feedback during dragging will represent that change
1003 that will actually take place. Set to -1 from the event
1004 handler code to prevent repositioning.
1006 return _windows
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1008 def GetSashPosition(*args
, **kwargs
):
1010 GetSashPosition() -> int
1012 Returns the new sash position while in
1013 EVT_SPLITTER_SASH_POS_CHANGING and
1014 EVT_SPLITTER_SASH_POS_CHANGED events.
1016 return _windows
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1018 def GetWindowBeingRemoved(*args
, **kwargs
):
1020 GetWindowBeingRemoved() -> Window
1022 Returns a pointer to the window being removed when a
1023 splitter window is unsplit.
1025 return _windows
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1027 def GetX(*args
, **kwargs
):
1031 Returns the x coordinate of the double-click point in a
1032 EVT_SPLITTER_DCLICK event.
1034 return _windows
.SplitterEvent_GetX(*args
, **kwargs
)
1036 def GetY(*args
, **kwargs
):
1040 Returns the y coordinate of the double-click point in a
1041 EVT_SPLITTER_DCLICK event.
1043 return _windows
.SplitterEvent_GetY(*args
, **kwargs
)
1046 class SplitterEventPtr(SplitterEvent
):
1047 def __init__(self
, this
):
1049 if not hasattr(self
,"thisown"): self
.thisown
= 0
1050 self
.__class
__ = SplitterEvent
1051 _windows
.SplitterEvent_swigregister(SplitterEventPtr
)
1053 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1054 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1055 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1056 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1057 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1058 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1059 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1060 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1061 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1063 #---------------------------------------------------------------------------
1065 SASH_DRAG_NONE
= _windows
.SASH_DRAG_NONE
1066 SASH_DRAG_DRAGGING
= _windows
.SASH_DRAG_DRAGGING
1067 SASH_DRAG_LEFT_DOWN
= _windows
.SASH_DRAG_LEFT_DOWN
1068 SW_NOBORDER
= _windows
.SW_NOBORDER
1069 SW_BORDER
= _windows
.SW_BORDER
1070 SW_3DSASH
= _windows
.SW_3DSASH
1071 SW_3DBORDER
= _windows
.SW_3DBORDER
1072 SW_3D
= _windows
.SW_3D
1073 SASH_TOP
= _windows
.SASH_TOP
1074 SASH_RIGHT
= _windows
.SASH_RIGHT
1075 SASH_BOTTOM
= _windows
.SASH_BOTTOM
1076 SASH_LEFT
= _windows
.SASH_LEFT
1077 SASH_NONE
= _windows
.SASH_NONE
1078 class SashWindow(core
.Window
):
1080 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1081 def __init__(self
, *args
, **kwargs
):
1083 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1084 long style=wxCLIP_CHILDREN|wxSW_3D,
1085 String name=SashNameStr) -> SashWindow
1087 newobj
= _windows
.new_SashWindow(*args
, **kwargs
)
1088 self
.this
= newobj
.this
1091 self
._setOORInfo
(self
)
1093 def Create(*args
, **kwargs
):
1095 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1096 long style=wxCLIP_CHILDREN|wxSW_3D,
1097 String name=SashNameStr) -> bool
1099 return _windows
.SashWindow_Create(*args
, **kwargs
)
1101 def SetSashVisible(*args
, **kwargs
):
1102 """SetSashVisible(int edge, bool sash)"""
1103 return _windows
.SashWindow_SetSashVisible(*args
, **kwargs
)
1105 def GetSashVisible(*args
, **kwargs
):
1106 """GetSashVisible(int edge) -> bool"""
1107 return _windows
.SashWindow_GetSashVisible(*args
, **kwargs
)
1109 def SetSashBorder(*args
, **kwargs
):
1110 """SetSashBorder(int edge, bool border)"""
1111 return _windows
.SashWindow_SetSashBorder(*args
, **kwargs
)
1113 def HasBorder(*args
, **kwargs
):
1114 """HasBorder(int edge) -> bool"""
1115 return _windows
.SashWindow_HasBorder(*args
, **kwargs
)
1117 def GetEdgeMargin(*args
, **kwargs
):
1118 """GetEdgeMargin(int edge) -> int"""
1119 return _windows
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1121 def SetDefaultBorderSize(*args
, **kwargs
):
1122 """SetDefaultBorderSize(int width)"""
1123 return _windows
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1125 def GetDefaultBorderSize(*args
, **kwargs
):
1126 """GetDefaultBorderSize() -> int"""
1127 return _windows
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1129 def SetExtraBorderSize(*args
, **kwargs
):
1130 """SetExtraBorderSize(int width)"""
1131 return _windows
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1133 def GetExtraBorderSize(*args
, **kwargs
):
1134 """GetExtraBorderSize() -> int"""
1135 return _windows
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1137 def SetMinimumSizeX(*args
, **kwargs
):
1138 """SetMinimumSizeX(int min)"""
1139 return _windows
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1141 def SetMinimumSizeY(*args
, **kwargs
):
1142 """SetMinimumSizeY(int min)"""
1143 return _windows
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1145 def GetMinimumSizeX(*args
, **kwargs
):
1146 """GetMinimumSizeX() -> int"""
1147 return _windows
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1149 def GetMinimumSizeY(*args
, **kwargs
):
1150 """GetMinimumSizeY() -> int"""
1151 return _windows
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1153 def SetMaximumSizeX(*args
, **kwargs
):
1154 """SetMaximumSizeX(int max)"""
1155 return _windows
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1157 def SetMaximumSizeY(*args
, **kwargs
):
1158 """SetMaximumSizeY(int max)"""
1159 return _windows
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1161 def GetMaximumSizeX(*args
, **kwargs
):
1162 """GetMaximumSizeX() -> int"""
1163 return _windows
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1165 def GetMaximumSizeY(*args
, **kwargs
):
1166 """GetMaximumSizeY() -> int"""
1167 return _windows
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1169 def SashHitTest(*args
, **kwargs
):
1170 """SashHitTest(int x, int y, int tolerance=2) -> int"""
1171 return _windows
.SashWindow_SashHitTest(*args
, **kwargs
)
1173 def SizeWindows(*args
, **kwargs
):
1175 return _windows
.SashWindow_SizeWindows(*args
, **kwargs
)
1178 class SashWindowPtr(SashWindow
):
1179 def __init__(self
, this
):
1181 if not hasattr(self
,"thisown"): self
.thisown
= 0
1182 self
.__class
__ = SashWindow
1183 _windows
.SashWindow_swigregister(SashWindowPtr
)
1184 SashNameStr
= cvar
.SashNameStr
1185 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1187 def PreSashWindow(*args
, **kwargs
):
1188 """PreSashWindow() -> SashWindow"""
1189 val
= _windows
.new_PreSashWindow(*args
, **kwargs
)
1193 SASH_STATUS_OK
= _windows
.SASH_STATUS_OK
1194 SASH_STATUS_OUT_OF_RANGE
= _windows
.SASH_STATUS_OUT_OF_RANGE
1195 class SashEvent(core
.CommandEvent
):
1197 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1198 def __init__(self
, *args
, **kwargs
):
1199 """__init__(int id=0, int edge=SASH_NONE) -> SashEvent"""
1200 newobj
= _windows
.new_SashEvent(*args
, **kwargs
)
1201 self
.this
= newobj
.this
1204 def SetEdge(*args
, **kwargs
):
1205 """SetEdge(int edge)"""
1206 return _windows
.SashEvent_SetEdge(*args
, **kwargs
)
1208 def GetEdge(*args
, **kwargs
):
1209 """GetEdge() -> int"""
1210 return _windows
.SashEvent_GetEdge(*args
, **kwargs
)
1212 def SetDragRect(*args
, **kwargs
):
1213 """SetDragRect(Rect rect)"""
1214 return _windows
.SashEvent_SetDragRect(*args
, **kwargs
)
1216 def GetDragRect(*args
, **kwargs
):
1217 """GetDragRect() -> Rect"""
1218 return _windows
.SashEvent_GetDragRect(*args
, **kwargs
)
1220 def SetDragStatus(*args
, **kwargs
):
1221 """SetDragStatus(int status)"""
1222 return _windows
.SashEvent_SetDragStatus(*args
, **kwargs
)
1224 def GetDragStatus(*args
, **kwargs
):
1225 """GetDragStatus() -> int"""
1226 return _windows
.SashEvent_GetDragStatus(*args
, **kwargs
)
1229 class SashEventPtr(SashEvent
):
1230 def __init__(self
, this
):
1232 if not hasattr(self
,"thisown"): self
.thisown
= 0
1233 self
.__class
__ = SashEvent
1234 _windows
.SashEvent_swigregister(SashEventPtr
)
1236 wxEVT_SASH_DRAGGED
= _windows
.wxEVT_SASH_DRAGGED
1237 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1238 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1240 #---------------------------------------------------------------------------
1242 LAYOUT_HORIZONTAL
= _windows
.LAYOUT_HORIZONTAL
1243 LAYOUT_VERTICAL
= _windows
.LAYOUT_VERTICAL
1244 LAYOUT_NONE
= _windows
.LAYOUT_NONE
1245 LAYOUT_TOP
= _windows
.LAYOUT_TOP
1246 LAYOUT_LEFT
= _windows
.LAYOUT_LEFT
1247 LAYOUT_RIGHT
= _windows
.LAYOUT_RIGHT
1248 LAYOUT_BOTTOM
= _windows
.LAYOUT_BOTTOM
1249 LAYOUT_LENGTH_Y
= _windows
.LAYOUT_LENGTH_Y
1250 LAYOUT_LENGTH_X
= _windows
.LAYOUT_LENGTH_X
1251 LAYOUT_MRU_LENGTH
= _windows
.LAYOUT_MRU_LENGTH
1252 LAYOUT_QUERY
= _windows
.LAYOUT_QUERY
1253 wxEVT_QUERY_LAYOUT_INFO
= _windows
.wxEVT_QUERY_LAYOUT_INFO
1254 wxEVT_CALCULATE_LAYOUT
= _windows
.wxEVT_CALCULATE_LAYOUT
1255 class QueryLayoutInfoEvent(core
.Event
):
1257 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1258 def __init__(self
, *args
, **kwargs
):
1259 """__init__(int id=0) -> QueryLayoutInfoEvent"""
1260 newobj
= _windows
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1261 self
.this
= newobj
.this
1264 def SetRequestedLength(*args
, **kwargs
):
1265 """SetRequestedLength(int length)"""
1266 return _windows
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1268 def GetRequestedLength(*args
, **kwargs
):
1269 """GetRequestedLength() -> int"""
1270 return _windows
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1272 def SetFlags(*args
, **kwargs
):
1273 """SetFlags(int flags)"""
1274 return _windows
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1276 def GetFlags(*args
, **kwargs
):
1277 """GetFlags() -> int"""
1278 return _windows
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1280 def SetSize(*args
, **kwargs
):
1281 """SetSize(Size size)"""
1282 return _windows
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1284 def GetSize(*args
, **kwargs
):
1285 """GetSize() -> Size"""
1286 return _windows
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1288 def SetOrientation(*args
, **kwargs
):
1289 """SetOrientation(int orient)"""
1290 return _windows
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1292 def GetOrientation(*args
, **kwargs
):
1293 """GetOrientation() -> int"""
1294 return _windows
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1296 def SetAlignment(*args
, **kwargs
):
1297 """SetAlignment(int align)"""
1298 return _windows
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1300 def GetAlignment(*args
, **kwargs
):
1301 """GetAlignment() -> int"""
1302 return _windows
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1305 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1306 def __init__(self
, this
):
1308 if not hasattr(self
,"thisown"): self
.thisown
= 0
1309 self
.__class
__ = QueryLayoutInfoEvent
1310 _windows
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1312 class CalculateLayoutEvent(core
.Event
):
1314 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1315 def __init__(self
, *args
, **kwargs
):
1316 """__init__(int id=0) -> CalculateLayoutEvent"""
1317 newobj
= _windows
.new_CalculateLayoutEvent(*args
, **kwargs
)
1318 self
.this
= newobj
.this
1321 def SetFlags(*args
, **kwargs
):
1322 """SetFlags(int flags)"""
1323 return _windows
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1325 def GetFlags(*args
, **kwargs
):
1326 """GetFlags() -> int"""
1327 return _windows
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1329 def SetRect(*args
, **kwargs
):
1330 """SetRect(Rect rect)"""
1331 return _windows
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1333 def GetRect(*args
, **kwargs
):
1334 """GetRect() -> Rect"""
1335 return _windows
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1338 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1339 def __init__(self
, this
):
1341 if not hasattr(self
,"thisown"): self
.thisown
= 0
1342 self
.__class
__ = CalculateLayoutEvent
1343 _windows
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1345 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1346 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1348 class SashLayoutWindow(SashWindow
):
1350 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1351 def __init__(self
, *args
, **kwargs
):
1353 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1354 long style=wxCLIP_CHILDREN|wxSW_3D,
1355 String name=SashLayoutNameStr) -> SashLayoutWindow
1357 newobj
= _windows
.new_SashLayoutWindow(*args
, **kwargs
)
1358 self
.this
= newobj
.this
1361 self
._setOORInfo
(self
)
1363 def Create(*args
, **kwargs
):
1365 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1366 long style=wxCLIP_CHILDREN|wxSW_3D,
1367 String name=SashLayoutNameStr) -> bool
1369 return _windows
.SashLayoutWindow_Create(*args
, **kwargs
)
1371 def GetAlignment(*args
, **kwargs
):
1372 """GetAlignment() -> int"""
1373 return _windows
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1375 def GetOrientation(*args
, **kwargs
):
1376 """GetOrientation() -> int"""
1377 return _windows
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1379 def SetAlignment(*args
, **kwargs
):
1380 """SetAlignment(int alignment)"""
1381 return _windows
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1383 def SetDefaultSize(*args
, **kwargs
):
1384 """SetDefaultSize(Size size)"""
1385 return _windows
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1387 def SetOrientation(*args
, **kwargs
):
1388 """SetOrientation(int orientation)"""
1389 return _windows
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1392 class SashLayoutWindowPtr(SashLayoutWindow
):
1393 def __init__(self
, this
):
1395 if not hasattr(self
,"thisown"): self
.thisown
= 0
1396 self
.__class
__ = SashLayoutWindow
1397 _windows
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1399 def PreSashLayoutWindow(*args
, **kwargs
):
1400 """PreSashLayoutWindow() -> SashLayoutWindow"""
1401 val
= _windows
.new_PreSashLayoutWindow(*args
, **kwargs
)
1405 class LayoutAlgorithm(core
.Object
):
1407 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1408 def __init__(self
, *args
, **kwargs
):
1409 """__init__() -> LayoutAlgorithm"""
1410 newobj
= _windows
.new_LayoutAlgorithm(*args
, **kwargs
)
1411 self
.this
= newobj
.this
1414 def __del__(self
, destroy
=_windows
.delete_LayoutAlgorithm
):
1417 if self
.thisown
: destroy(self
)
1420 def LayoutMDIFrame(*args
, **kwargs
):
1421 """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool"""
1422 return _windows
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1424 def LayoutFrame(*args
, **kwargs
):
1425 """LayoutFrame(Frame frame, Window mainWindow=None) -> bool"""
1426 return _windows
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1428 def LayoutWindow(*args
, **kwargs
):
1429 """LayoutWindow(Window parent, Window mainWindow=None) -> bool"""
1430 return _windows
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1433 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1434 def __init__(self
, this
):
1436 if not hasattr(self
,"thisown"): self
.thisown
= 0
1437 self
.__class
__ = LayoutAlgorithm
1438 _windows
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1440 #---------------------------------------------------------------------------
1442 class PopupWindow(core
.Window
):
1444 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1445 def __init__(self
, *args
, **kwargs
):
1446 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1447 newobj
= _windows
.new_PopupWindow(*args
, **kwargs
)
1448 self
.this
= newobj
.this
1451 self
._setOORInfo
(self
)
1453 def Create(*args
, **kwargs
):
1454 """Create(Window parent, int flags=BORDER_NONE) -> bool"""
1455 return _windows
.PopupWindow_Create(*args
, **kwargs
)
1457 def Position(*args
, **kwargs
):
1458 """Position(Point ptOrigin, Size size)"""
1459 return _windows
.PopupWindow_Position(*args
, **kwargs
)
1462 class PopupWindowPtr(PopupWindow
):
1463 def __init__(self
, this
):
1465 if not hasattr(self
,"thisown"): self
.thisown
= 0
1466 self
.__class
__ = PopupWindow
1467 _windows
.PopupWindow_swigregister(PopupWindowPtr
)
1469 def PrePopupWindow(*args
, **kwargs
):
1470 """PrePopupWindow() -> PopupWindow"""
1471 val
= _windows
.new_PrePopupWindow(*args
, **kwargs
)
1475 #---------------------------------------------------------------------------
1477 class PopupTransientWindow(PopupWindow
):
1479 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1480 def __init__(self
, *args
, **kwargs
):
1481 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1482 newobj
= _windows
.new_PopupTransientWindow(*args
, **kwargs
)
1483 self
.this
= newobj
.this
1486 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1488 def _setCallbackInfo(*args
, **kwargs
):
1489 """_setCallbackInfo(PyObject self, PyObject _class)"""
1490 return _windows
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1492 def Popup(*args
, **kwargs
):
1493 """Popup(Window focus=None)"""
1494 return _windows
.PopupTransientWindow_Popup(*args
, **kwargs
)
1496 def Dismiss(*args
, **kwargs
):
1498 return _windows
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1501 class PopupTransientWindowPtr(PopupTransientWindow
):
1502 def __init__(self
, this
):
1504 if not hasattr(self
,"thisown"): self
.thisown
= 0
1505 self
.__class
__ = PopupTransientWindow
1506 _windows
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1508 def PrePopupTransientWindow(*args
, **kwargs
):
1509 """PrePopupTransientWindow() -> PopupTransientWindow"""
1510 val
= _windows
.new_PrePopupTransientWindow(*args
, **kwargs
)
1514 #---------------------------------------------------------------------------
1516 class TipWindow(PopupTransientWindow
):
1518 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1519 def __init__(self
, *args
, **kwargs
):
1520 """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1521 newobj
= _windows
.new_TipWindow(*args
, **kwargs
)
1522 self
.this
= newobj
.this
1525 self
._setOORInfo
(self
)
1527 def SetBoundingRect(*args
, **kwargs
):
1528 """SetBoundingRect(Rect rectBound)"""
1529 return _windows
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1531 def Close(*args
, **kwargs
):
1533 return _windows
.TipWindow_Close(*args
, **kwargs
)
1536 class TipWindowPtr(TipWindow
):
1537 def __init__(self
, this
):
1539 if not hasattr(self
,"thisown"): self
.thisown
= 0
1540 self
.__class
__ = TipWindow
1541 _windows
.TipWindow_swigregister(TipWindowPtr
)
1543 #---------------------------------------------------------------------------
1545 class VScrolledWindow(Panel
):
1547 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1548 def __init__(self
, *args
, **kwargs
):
1550 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1551 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1553 newobj
= _windows
.new_VScrolledWindow(*args
, **kwargs
)
1554 self
.this
= newobj
.this
1557 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1559 def _setCallbackInfo(*args
, **kwargs
):
1560 """_setCallbackInfo(PyObject self, PyObject _class)"""
1561 return _windows
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1563 def Create(*args
, **kwargs
):
1565 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1566 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1568 return _windows
.VScrolledWindow_Create(*args
, **kwargs
)
1570 def SetLineCount(*args
, **kwargs
):
1571 """SetLineCount(size_t count)"""
1572 return _windows
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1574 def ScrollToLine(*args
, **kwargs
):
1575 """ScrollToLine(size_t line) -> bool"""
1576 return _windows
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1578 def ScrollLines(*args
, **kwargs
):
1580 ScrollLines(int lines) -> bool
1582 If the platform and window class supports it, scrolls the window by
1583 the given number of lines down, if lines is positive, or up if lines
1584 is negative. Returns True if the window was scrolled, False if it was
1585 already on top/bottom and nothing was done.
1587 return _windows
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1589 def ScrollPages(*args
, **kwargs
):
1591 ScrollPages(int pages) -> bool
1593 If the platform and window class supports it, scrolls the window by
1594 the given number of pages down, if pages is positive, or up if pages
1595 is negative. Returns True if the window was scrolled, False if it was
1596 already on top/bottom and nothing was done.
1598 return _windows
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1600 def RefreshLine(*args
, **kwargs
):
1601 """RefreshLine(size_t line)"""
1602 return _windows
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1604 def RefreshLines(*args
, **kwargs
):
1605 """RefreshLines(size_t from, size_t to)"""
1606 return _windows
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1608 def HitTestXT(*args
, **kwargs
):
1610 HitTestXT(int x, int y) -> int
1612 Test where the given (in client coords) point lies
1614 return _windows
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1616 def HitTest(*args
, **kwargs
):
1618 HitTest(Point pt) -> int
1620 Test where the given (in client coords) point lies
1622 return _windows
.VScrolledWindow_HitTest(*args
, **kwargs
)
1624 def RefreshAll(*args
, **kwargs
):
1626 return _windows
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1628 def GetLineCount(*args
, **kwargs
):
1629 """GetLineCount() -> size_t"""
1630 return _windows
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1632 def GetFirstVisibleLine(*args
, **kwargs
):
1633 """GetFirstVisibleLine() -> size_t"""
1634 return _windows
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1636 def GetLastVisibleLine(*args
, **kwargs
):
1637 """GetLastVisibleLine() -> size_t"""
1638 return _windows
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1640 def IsVisible(*args
, **kwargs
):
1641 """IsVisible(size_t line) -> bool"""
1642 return _windows
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1645 class VScrolledWindowPtr(VScrolledWindow
):
1646 def __init__(self
, this
):
1648 if not hasattr(self
,"thisown"): self
.thisown
= 0
1649 self
.__class
__ = VScrolledWindow
1650 _windows
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1652 def PreVScrolledWindow(*args
, **kwargs
):
1653 """PreVScrolledWindow() -> VScrolledWindow"""
1654 val
= _windows
.new_PreVScrolledWindow(*args
, **kwargs
)
1658 class VListBox(VScrolledWindow
):
1660 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1661 def __init__(self
, *args
, **kwargs
):
1663 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1664 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1666 newobj
= _windows
.new_VListBox(*args
, **kwargs
)
1667 self
.this
= newobj
.this
1670 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1672 def _setCallbackInfo(*args
, **kwargs
):
1673 """_setCallbackInfo(PyObject self, PyObject _class)"""
1674 return _windows
.VListBox__setCallbackInfo(*args
, **kwargs
)
1676 def Create(*args
, **kwargs
):
1678 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1679 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1681 return _windows
.VListBox_Create(*args
, **kwargs
)
1683 def GetItemCount(*args
, **kwargs
):
1684 """GetItemCount() -> size_t"""
1685 return _windows
.VListBox_GetItemCount(*args
, **kwargs
)
1687 def HasMultipleSelection(*args
, **kwargs
):
1688 """HasMultipleSelection() -> bool"""
1689 return _windows
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1691 def GetSelection(*args
, **kwargs
):
1692 """GetSelection() -> int"""
1693 return _windows
.VListBox_GetSelection(*args
, **kwargs
)
1695 def IsCurrent(*args
, **kwargs
):
1696 """IsCurrent(size_t item) -> bool"""
1697 return _windows
.VListBox_IsCurrent(*args
, **kwargs
)
1699 def IsSelected(*args
, **kwargs
):
1700 """IsSelected(size_t item) -> bool"""
1701 return _windows
.VListBox_IsSelected(*args
, **kwargs
)
1703 def GetSelectedCount(*args
, **kwargs
):
1704 """GetSelectedCount() -> size_t"""
1705 return _windows
.VListBox_GetSelectedCount(*args
, **kwargs
)
1707 def GetFirstSelected(*args
, **kwargs
):
1708 """GetFirstSelected(unsigned long cookie) -> int"""
1709 return _windows
.VListBox_GetFirstSelected(*args
, **kwargs
)
1711 def GetNextSelected(*args
, **kwargs
):
1712 """GetNextSelected(unsigned long cookie) -> int"""
1713 return _windows
.VListBox_GetNextSelected(*args
, **kwargs
)
1715 def GetMargins(*args
, **kwargs
):
1716 """GetMargins() -> Point"""
1717 return _windows
.VListBox_GetMargins(*args
, **kwargs
)
1719 def GetSelectionBackground(*args
, **kwargs
):
1720 """GetSelectionBackground() -> Colour"""
1721 return _windows
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1723 def SetItemCount(*args
, **kwargs
):
1724 """SetItemCount(size_t count)"""
1725 return _windows
.VListBox_SetItemCount(*args
, **kwargs
)
1727 def Clear(*args
, **kwargs
):
1729 return _windows
.VListBox_Clear(*args
, **kwargs
)
1731 def SetSelection(*args
, **kwargs
):
1732 """SetSelection(int selection)"""
1733 return _windows
.VListBox_SetSelection(*args
, **kwargs
)
1735 def Select(*args
, **kwargs
):
1736 """Select(size_t item, bool select=True) -> bool"""
1737 return _windows
.VListBox_Select(*args
, **kwargs
)
1739 def SelectRange(*args
, **kwargs
):
1740 """SelectRange(size_t from, size_t to) -> bool"""
1741 return _windows
.VListBox_SelectRange(*args
, **kwargs
)
1743 def Toggle(*args
, **kwargs
):
1744 """Toggle(size_t item)"""
1745 return _windows
.VListBox_Toggle(*args
, **kwargs
)
1747 def SelectAll(*args
, **kwargs
):
1748 """SelectAll() -> bool"""
1749 return _windows
.VListBox_SelectAll(*args
, **kwargs
)
1751 def DeselectAll(*args
, **kwargs
):
1752 """DeselectAll() -> bool"""
1753 return _windows
.VListBox_DeselectAll(*args
, **kwargs
)
1755 def SetMargins(*args
, **kwargs
):
1756 """SetMargins(Point pt)"""
1757 return _windows
.VListBox_SetMargins(*args
, **kwargs
)
1759 def SetMarginsXY(*args
, **kwargs
):
1760 """SetMarginsXY(int x, int y)"""
1761 return _windows
.VListBox_SetMarginsXY(*args
, **kwargs
)
1763 def SetSelectionBackground(*args
, **kwargs
):
1764 """SetSelectionBackground(Colour col)"""
1765 return _windows
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1768 class VListBoxPtr(VListBox
):
1769 def __init__(self
, this
):
1771 if not hasattr(self
,"thisown"): self
.thisown
= 0
1772 self
.__class
__ = VListBox
1773 _windows
.VListBox_swigregister(VListBoxPtr
)
1774 VListBoxNameStr
= cvar
.VListBoxNameStr
1776 def PreVListBox(*args
, **kwargs
):
1777 """PreVListBox() -> VListBox"""
1778 val
= _windows
.new_PreVListBox(*args
, **kwargs
)
1782 class HtmlListBox(VListBox
):
1784 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1785 def __init__(self
, *args
, **kwargs
):
1787 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1788 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1790 newobj
= _windows
.new_HtmlListBox(*args
, **kwargs
)
1791 self
.this
= newobj
.this
1794 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1796 def _setCallbackInfo(*args
, **kwargs
):
1797 """_setCallbackInfo(PyObject self, PyObject _class)"""
1798 return _windows
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1800 def Create(*args
, **kwargs
):
1802 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1803 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1805 return _windows
.HtmlListBox_Create(*args
, **kwargs
)
1807 def RefreshAll(*args
, **kwargs
):
1809 return _windows
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1811 def SetItemCount(*args
, **kwargs
):
1812 """SetItemCount(size_t count)"""
1813 return _windows
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1816 class HtmlListBoxPtr(HtmlListBox
):
1817 def __init__(self
, this
):
1819 if not hasattr(self
,"thisown"): self
.thisown
= 0
1820 self
.__class
__ = HtmlListBox
1821 _windows
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1823 def PreHtmlListBox(*args
, **kwargs
):
1824 """PreHtmlListBox() -> HtmlListBox"""
1825 val
= _windows
.new_PreHtmlListBox(*args
, **kwargs
)
1829 #---------------------------------------------------------------------------
1831 class TaskBarIcon(core
.EvtHandler
):
1833 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1834 def __init__(self
, *args
, **kwargs
):
1835 """__init__() -> TaskBarIcon"""
1836 newobj
= _windows
.new_TaskBarIcon(*args
, **kwargs
)
1837 self
.this
= newobj
.this
1840 def __del__(self
, destroy
=_windows
.delete_TaskBarIcon
):
1843 if self
.thisown
: destroy(self
)
1846 def Destroy(*args
, **kwargs
):
1850 Deletes the C++ object this Python object is a proxy for.
1852 return _windows
.TaskBarIcon_Destroy(*args
, **kwargs
)
1854 def IsOk(*args
, **kwargs
):
1855 """IsOk() -> bool"""
1856 return _windows
.TaskBarIcon_IsOk(*args
, **kwargs
)
1858 def __nonzero__(self
): return self
.IsOk()
1859 def IsIconInstalled(*args
, **kwargs
):
1860 """IsIconInstalled() -> bool"""
1861 return _windows
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
1863 def SetIcon(*args
, **kwargs
):
1864 """SetIcon(Icon icon, String tooltip=EmptyString) -> bool"""
1865 return _windows
.TaskBarIcon_SetIcon(*args
, **kwargs
)
1867 def RemoveIcon(*args
, **kwargs
):
1868 """RemoveIcon() -> bool"""
1869 return _windows
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
1871 def PopupMenu(*args
, **kwargs
):
1872 """PopupMenu(Menu menu) -> bool"""
1873 return _windows
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
1876 class TaskBarIconPtr(TaskBarIcon
):
1877 def __init__(self
, this
):
1879 if not hasattr(self
,"thisown"): self
.thisown
= 0
1880 self
.__class
__ = TaskBarIcon
1881 _windows
.TaskBarIcon_swigregister(TaskBarIconPtr
)
1883 class TaskBarIconEvent(core
.Event
):
1885 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1886 def __init__(self
, *args
, **kwargs
):
1887 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
1888 newobj
= _windows
.new_TaskBarIconEvent(*args
, **kwargs
)
1889 self
.this
= newobj
.this
1893 class TaskBarIconEventPtr(TaskBarIconEvent
):
1894 def __init__(self
, this
):
1896 if not hasattr(self
,"thisown"): self
.thisown
= 0
1897 self
.__class
__ = TaskBarIconEvent
1898 _windows
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
1900 wxEVT_TASKBAR_MOVE
= _windows
.wxEVT_TASKBAR_MOVE
1901 wxEVT_TASKBAR_LEFT_DOWN
= _windows
.wxEVT_TASKBAR_LEFT_DOWN
1902 wxEVT_TASKBAR_LEFT_UP
= _windows
.wxEVT_TASKBAR_LEFT_UP
1903 wxEVT_TASKBAR_RIGHT_DOWN
= _windows
.wxEVT_TASKBAR_RIGHT_DOWN
1904 wxEVT_TASKBAR_RIGHT_UP
= _windows
.wxEVT_TASKBAR_RIGHT_UP
1905 wxEVT_TASKBAR_LEFT_DCLICK
= _windows
.wxEVT_TASKBAR_LEFT_DCLICK
1906 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows
.wxEVT_TASKBAR_RIGHT_DCLICK
1907 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
1908 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
1909 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
1910 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
1911 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
1912 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
1913 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
1915 #---------------------------------------------------------------------------
1917 class ColourData(core
.Object
):
1918 """This class holds a variety of information related to colour dialogs."""
1920 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1921 def __init__(self
, *args
, **kwargs
):
1923 __init__() -> ColourData
1925 Constructor, sets default values.
1927 newobj
= _windows
.new_ColourData(*args
, **kwargs
)
1928 self
.this
= newobj
.this
1931 def __del__(self
, destroy
=_windows
.delete_ColourData
):
1934 if self
.thisown
: destroy(self
)
1937 def GetChooseFull(*args
, **kwargs
):
1939 GetChooseFull() -> bool
1941 Under Windows, determines whether the Windows colour dialog will display
1942 the full dialog with custom colour selection controls. Has no meaning
1943 under other platforms. The default value is true.
1945 return _windows
.ColourData_GetChooseFull(*args
, **kwargs
)
1947 def GetColour(*args
, **kwargs
):
1949 GetColour() -> Colour
1951 Gets the colour (pre)selected by the dialog.
1953 return _windows
.ColourData_GetColour(*args
, **kwargs
)
1955 def GetCustomColour(*args
, **kwargs
):
1957 GetCustomColour(int i) -> Colour
1959 Gets the i'th custom colour associated with the colour dialog. i should
1960 be an integer between 0 and 15. The default custom colours are all white.
1962 return _windows
.ColourData_GetCustomColour(*args
, **kwargs
)
1964 def SetChooseFull(*args
, **kwargs
):
1966 SetChooseFull(int flag)
1968 Under Windows, tells the Windows colour dialog to display the full dialog
1969 with custom colour selection controls. Under other platforms, has no effect.
1970 The default value is true.
1972 return _windows
.ColourData_SetChooseFull(*args
, **kwargs
)
1974 def SetColour(*args
, **kwargs
):
1976 SetColour(Colour colour)
1978 Sets the default colour for the colour dialog. The default colour is black.
1980 return _windows
.ColourData_SetColour(*args
, **kwargs
)
1982 def SetCustomColour(*args
, **kwargs
):
1984 SetCustomColour(int i, Colour colour)
1986 Sets the i'th custom colour for the colour dialog. i should be an integer
1987 between 0 and 15. The default custom colours are all white.
1989 return _windows
.ColourData_SetCustomColour(*args
, **kwargs
)
1992 class ColourDataPtr(ColourData
):
1993 def __init__(self
, this
):
1995 if not hasattr(self
,"thisown"): self
.thisown
= 0
1996 self
.__class
__ = ColourData
1997 _windows
.ColourData_swigregister(ColourDataPtr
)
1998 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
1999 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2000 DirDialogNameStr
= cvar
.DirDialogNameStr
2001 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2002 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2003 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2005 class ColourDialog(Dialog
):
2006 """This class represents the colour chooser dialog."""
2008 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2009 def __init__(self
, *args
, **kwargs
):
2011 __init__(Window parent, ColourData data=None) -> ColourDialog
2013 Constructor. Pass a parent window, and optionally a ColourData, which
2014 will be copied to the colour dialog's internal ColourData instance.
2016 newobj
= _windows
.new_ColourDialog(*args
, **kwargs
)
2017 self
.this
= newobj
.this
2020 self
._setOORInfo
(self
)
2022 def GetColourData(*args
, **kwargs
):
2024 GetColourData() -> ColourData
2026 Returns a reference to the ColourData used by the dialog.
2028 return _windows
.ColourDialog_GetColourData(*args
, **kwargs
)
2031 class ColourDialogPtr(ColourDialog
):
2032 def __init__(self
, this
):
2034 if not hasattr(self
,"thisown"): self
.thisown
= 0
2035 self
.__class
__ = ColourDialog
2036 _windows
.ColourDialog_swigregister(ColourDialogPtr
)
2038 class DirDialog(Dialog
):
2039 """This class represents the directory chooser dialog."""
2041 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2042 def __init__(self
, *args
, **kwargs
):
2044 __init__(Window parent, String message=DirSelectorPromptStr,
2045 String defaultPath=EmptyString, long style=0,
2046 Point pos=DefaultPosition, Size size=DefaultSize,
2047 String name=DirDialogNameStr) -> DirDialog
2049 Constructor. Use ShowModal method to show the dialog.
2051 newobj
= _windows
.new_DirDialog(*args
, **kwargs
)
2052 self
.this
= newobj
.this
2055 self
._setOORInfo
(self
)
2057 def GetPath(*args
, **kwargs
):
2061 Returns the default or user-selected path.
2063 return _windows
.DirDialog_GetPath(*args
, **kwargs
)
2065 def GetMessage(*args
, **kwargs
):
2067 GetMessage() -> String
2069 Returns the message that will be displayed on the dialog.
2071 return _windows
.DirDialog_GetMessage(*args
, **kwargs
)
2073 def GetStyle(*args
, **kwargs
):
2077 Returns the dialog style.
2079 return _windows
.DirDialog_GetStyle(*args
, **kwargs
)
2081 def SetMessage(*args
, **kwargs
):
2083 SetMessage(String message)
2085 Sets the message that will be displayed on the dialog.
2087 return _windows
.DirDialog_SetMessage(*args
, **kwargs
)
2089 def SetPath(*args
, **kwargs
):
2091 SetPath(String path)
2093 Sets the default path.
2095 return _windows
.DirDialog_SetPath(*args
, **kwargs
)
2098 class DirDialogPtr(DirDialog
):
2099 def __init__(self
, this
):
2101 if not hasattr(self
,"thisown"): self
.thisown
= 0
2102 self
.__class
__ = DirDialog
2103 _windows
.DirDialog_swigregister(DirDialogPtr
)
2105 class FileDialog(Dialog
):
2106 """This class represents the file chooser dialog."""
2108 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2109 def __init__(self
, *args
, **kwargs
):
2111 __init__(Window parent, String message=FileSelectorPromptStr,
2112 String defaultDir=EmptyString, String defaultFile=EmptyString,
2113 String wildcard=FileSelectorDefaultWildcardStr,
2114 long style=0, Point pos=DefaultPosition) -> FileDialog
2116 Constructor. Use ShowModal method to show the dialog.
2118 newobj
= _windows
.new_FileDialog(*args
, **kwargs
)
2119 self
.this
= newobj
.this
2122 self
._setOORInfo
(self
)
2124 def SetMessage(*args
, **kwargs
):
2126 SetMessage(String message)
2128 Sets the message that will be displayed on the dialog.
2130 return _windows
.FileDialog_SetMessage(*args
, **kwargs
)
2132 def SetPath(*args
, **kwargs
):
2134 SetPath(String path)
2136 Sets the path (the combined directory and filename that will
2137 be returned when the dialog is dismissed).
2139 return _windows
.FileDialog_SetPath(*args
, **kwargs
)
2141 def SetDirectory(*args
, **kwargs
):
2143 SetDirectory(String dir)
2145 Sets the default directory.
2147 return _windows
.FileDialog_SetDirectory(*args
, **kwargs
)
2149 def SetFilename(*args
, **kwargs
):
2151 SetFilename(String name)
2153 Sets the default filename.
2155 return _windows
.FileDialog_SetFilename(*args
, **kwargs
)
2157 def SetWildcard(*args
, **kwargs
):
2159 SetWildcard(String wildCard)
2161 Sets the wildcard, which can contain multiple file types, for example:
2162 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2164 return _windows
.FileDialog_SetWildcard(*args
, **kwargs
)
2166 def SetStyle(*args
, **kwargs
):
2168 SetStyle(long style)
2170 Sets the dialog style.
2172 return _windows
.FileDialog_SetStyle(*args
, **kwargs
)
2174 def SetFilterIndex(*args
, **kwargs
):
2176 SetFilterIndex(int filterIndex)
2178 Sets the default filter index, starting from zero.
2180 return _windows
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2182 def GetMessage(*args
, **kwargs
):
2184 GetMessage() -> String
2186 Returns the message that will be displayed on the dialog.
2188 return _windows
.FileDialog_GetMessage(*args
, **kwargs
)
2190 def GetPath(*args
, **kwargs
):
2194 Returns the full path (directory and filename) of the selected file.
2196 return _windows
.FileDialog_GetPath(*args
, **kwargs
)
2198 def GetDirectory(*args
, **kwargs
):
2200 GetDirectory() -> String
2202 Returns the default directory.
2204 return _windows
.FileDialog_GetDirectory(*args
, **kwargs
)
2206 def GetFilename(*args
, **kwargs
):
2208 GetFilename() -> String
2210 Returns the default filename.
2212 return _windows
.FileDialog_GetFilename(*args
, **kwargs
)
2214 def GetWildcard(*args
, **kwargs
):
2216 GetWildcard() -> String
2218 Returns the file dialog wildcard.
2220 return _windows
.FileDialog_GetWildcard(*args
, **kwargs
)
2222 def GetStyle(*args
, **kwargs
):
2226 Returns the dialog style.
2228 return _windows
.FileDialog_GetStyle(*args
, **kwargs
)
2230 def GetFilterIndex(*args
, **kwargs
):
2232 GetFilterIndex() -> int
2234 Returns the index into the list of filters supplied, optionally, in
2235 the wildcard parameter. Before the dialog is shown, this is the index
2236 which will be used when the dialog is first displayed. After the dialog
2237 is shown, this is the index selected by the user.
2239 return _windows
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2241 def GetFilenames(*args
, **kwargs
):
2243 GetFilenames() -> PyObject
2245 Returns a list of filenames chosen in the dialog. This function should
2246 only be used with the dialogs which have wx.MULTIPLE style, use
2247 GetFilename for the others.
2249 return _windows
.FileDialog_GetFilenames(*args
, **kwargs
)
2251 def GetPaths(*args
, **kwargs
):
2253 GetPaths() -> PyObject
2255 Fills the array paths with the full paths of the files chosen. This
2256 function should only be used with the dialogs which have wx.MULTIPLE style,
2257 use GetPath for the others.
2259 return _windows
.FileDialog_GetPaths(*args
, **kwargs
)
2262 class FileDialogPtr(FileDialog
):
2263 def __init__(self
, this
):
2265 if not hasattr(self
,"thisown"): self
.thisown
= 0
2266 self
.__class
__ = FileDialog
2267 _windows
.FileDialog_swigregister(FileDialogPtr
)
2269 CHOICEDLG_STYLE
= _windows
.CHOICEDLG_STYLE
2270 class MultiChoiceDialog(Dialog
):
2271 """A simple dialog with a multi selection listbox."""
2273 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2274 def __init__(self
, *args
, **kwargs
):
2276 __init__(Window parent, String message, String caption,
2277 List choices=[], long style=CHOICEDLG_STYLE,
2278 Point pos=DefaultPosition) -> MultiChoiceDialog
2280 Constructor. Use ShowModal method to show the dialog.
2282 newobj
= _windows
.new_MultiChoiceDialog(*args
, **kwargs
)
2283 self
.this
= newobj
.this
2286 self
._setOORInfo
(self
)
2288 def SetSelections(*args
, **kwargs
):
2290 SetSelections(List selections)
2292 Specify the items in the list that shoudl be selected, using a list of integers.
2294 return _windows
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2296 def GetSelections(*args
, **kwargs
):
2298 GetSelections() -> [selections]
2300 Returns a list of integers representing the items that are selected.
2302 return _windows
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2305 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2306 def __init__(self
, this
):
2308 if not hasattr(self
,"thisown"): self
.thisown
= 0
2309 self
.__class
__ = MultiChoiceDialog
2310 _windows
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2312 class SingleChoiceDialog(Dialog
):
2313 """A simple dialog with a single selection listbox."""
2315 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2316 def __init__(self
, *args
, **kwargs
):
2318 __init__(Window parent, String message, String caption,
2319 List choices=[], long style=CHOICEDLG_STYLE,
2320 Point pos=DefaultPosition) -> SingleChoiceDialog
2322 Constructor. Use ShowModal method to show the dialog.
2324 newobj
= _windows
.new_SingleChoiceDialog(*args
, **kwargs
)
2325 self
.this
= newobj
.this
2328 self
._setOORInfo
(self
)
2330 def GetSelection(*args
, **kwargs
):
2332 GetSelection() -> int
2334 Get the index of teh currently selected item.
2336 return _windows
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2338 def GetStringSelection(*args
, **kwargs
):
2340 GetStringSelection() -> String
2342 Returns the string value of the currently selected item
2344 return _windows
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2346 def SetSelection(*args
, **kwargs
):
2348 SetSelection(int sel)
2350 Set the current selected item to sel
2352 return _windows
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2355 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2356 def __init__(self
, this
):
2358 if not hasattr(self
,"thisown"): self
.thisown
= 0
2359 self
.__class
__ = SingleChoiceDialog
2360 _windows
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2362 class TextEntryDialog(Dialog
):
2363 """A dialog with text control, [ok] and [cancel] buttons"""
2365 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2366 def __init__(self
, *args
, **kwargs
):
2368 __init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
2369 String defaultValue=EmptyString,
2370 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2372 Constructor. Use ShowModal method to show the dialog.
2374 newobj
= _windows
.new_TextEntryDialog(*args
, **kwargs
)
2375 self
.this
= newobj
.this
2378 self
._setOORInfo
(self
)
2380 def GetValue(*args
, **kwargs
):
2382 GetValue() -> String
2384 Returns the text that the user has entered if the user has pressed OK,
2385 or the original value if the user has pressed Cancel.
2387 return _windows
.TextEntryDialog_GetValue(*args
, **kwargs
)
2389 def SetValue(*args
, **kwargs
):
2391 SetValue(String value)
2393 Sets the default text value.
2395 return _windows
.TextEntryDialog_SetValue(*args
, **kwargs
)
2398 class TextEntryDialogPtr(TextEntryDialog
):
2399 def __init__(self
, this
):
2401 if not hasattr(self
,"thisown"): self
.thisown
= 0
2402 self
.__class
__ = TextEntryDialog
2403 _windows
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2405 class FontData(core
.Object
):
2406 """This class holds a variety of information related to font dialogs."""
2408 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2409 def __init__(self
, *args
, **kwargs
):
2411 __init__() -> FontData
2413 This class holds a variety of information related to font dialogs.
2415 newobj
= _windows
.new_FontData(*args
, **kwargs
)
2416 self
.this
= newobj
.this
2419 def __del__(self
, destroy
=_windows
.delete_FontData
):
2422 if self
.thisown
: destroy(self
)
2425 def EnableEffects(*args
, **kwargs
):
2427 EnableEffects(bool enable)
2429 Enables or disables 'effects' under MS Windows only. This refers
2430 to the controls for manipulating colour, strikeout and underline
2431 properties. The default value is true.
2433 return _windows
.FontData_EnableEffects(*args
, **kwargs
)
2435 def GetAllowSymbols(*args
, **kwargs
):
2437 GetAllowSymbols() -> bool
2439 Under MS Windows, returns a flag determining whether symbol fonts can be
2440 selected. Has no effect on other platforms. The default value is true.
2442 return _windows
.FontData_GetAllowSymbols(*args
, **kwargs
)
2444 def GetColour(*args
, **kwargs
):
2446 GetColour() -> Colour
2448 Gets the colour associated with the font dialog. The default value is black.
2450 return _windows
.FontData_GetColour(*args
, **kwargs
)
2452 def GetChosenFont(*args
, **kwargs
):
2454 GetChosenFont() -> Font
2456 Gets the font chosen by the user.
2458 return _windows
.FontData_GetChosenFont(*args
, **kwargs
)
2460 def GetEnableEffects(*args
, **kwargs
):
2462 GetEnableEffects() -> bool
2464 Determines whether 'effects' are enabled under Windows.
2466 return _windows
.FontData_GetEnableEffects(*args
, **kwargs
)
2468 def GetInitialFont(*args
, **kwargs
):
2470 GetInitialFont() -> Font
2472 Gets the font that will be initially used by the font dialog. This should have
2473 previously been set by the application.
2475 return _windows
.FontData_GetInitialFont(*args
, **kwargs
)
2477 def GetShowHelp(*args
, **kwargs
):
2479 GetShowHelp() -> bool
2481 Returns true if the Help button will be shown (Windows only). The default
2484 return _windows
.FontData_GetShowHelp(*args
, **kwargs
)
2486 def SetAllowSymbols(*args
, **kwargs
):
2488 SetAllowSymbols(bool allowSymbols)
2490 Under MS Windows, determines whether symbol fonts can be selected. Has no
2491 effect on other platforms. The default value is true.
2493 return _windows
.FontData_SetAllowSymbols(*args
, **kwargs
)
2495 def SetChosenFont(*args
, **kwargs
):
2497 SetChosenFont(Font font)
2499 Sets the font that will be returned to the user (for internal use only).
2501 return _windows
.FontData_SetChosenFont(*args
, **kwargs
)
2503 def SetColour(*args
, **kwargs
):
2505 SetColour(Colour colour)
2507 Sets the colour that will be used for the font foreground colour. The default
2510 return _windows
.FontData_SetColour(*args
, **kwargs
)
2512 def SetInitialFont(*args
, **kwargs
):
2514 SetInitialFont(Font font)
2516 Sets the font that will be initially used by the font dialog.
2518 return _windows
.FontData_SetInitialFont(*args
, **kwargs
)
2520 def SetRange(*args
, **kwargs
):
2522 SetRange(int min, int max)
2524 Sets the valid range for the font point size (Windows only). The default is
2525 0, 0 (unrestricted range).
2527 return _windows
.FontData_SetRange(*args
, **kwargs
)
2529 def SetShowHelp(*args
, **kwargs
):
2531 SetShowHelp(bool showHelp)
2533 Determines whether the Help button will be displayed in the font dialog
2534 (Windows only). The default value is false.
2536 return _windows
.FontData_SetShowHelp(*args
, **kwargs
)
2539 class FontDataPtr(FontData
):
2540 def __init__(self
, this
):
2542 if not hasattr(self
,"thisown"): self
.thisown
= 0
2543 self
.__class
__ = FontData
2544 _windows
.FontData_swigregister(FontDataPtr
)
2546 class FontDialog(Dialog
):
2547 """This class represents the font chooser dialog."""
2549 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2550 def __init__(self
, *args
, **kwargs
):
2552 __init__(Window parent, FontData data) -> FontDialog
2554 Constructor. Pass a parent window and the FontData object to be
2555 used to initialize the dialog controls.
2557 newobj
= _windows
.new_FontDialog(*args
, **kwargs
)
2558 self
.this
= newobj
.this
2561 self
._setOORInfo
(self
)
2563 def GetFontData(*args
, **kwargs
):
2565 GetFontData() -> FontData
2567 Returns a reference to the internal FontData used by the FontDialog.
2569 return _windows
.FontDialog_GetFontData(*args
, **kwargs
)
2572 class FontDialogPtr(FontDialog
):
2573 def __init__(self
, this
):
2575 if not hasattr(self
,"thisown"): self
.thisown
= 0
2576 self
.__class
__ = FontDialog
2577 _windows
.FontDialog_swigregister(FontDialogPtr
)
2579 class MessageDialog(Dialog
):
2581 This class provides a dialog that shows a single or multi-line message, with
2582 a choice of OK, Yes, No and Cancel buttons.
2585 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2586 def __init__(self
, *args
, **kwargs
):
2588 __init__(Window parent, String message, String caption=MessageBoxCaptionStr,
2589 long style=wxOK|wxCANCEL|wxCENTRE,
2590 Point pos=DefaultPosition) -> MessageDialog
2592 This class provides a dialog that shows a single or multi-line message, with
2593 a choice of OK, Yes, No and Cancel buttons.
2595 newobj
= _windows
.new_MessageDialog(*args
, **kwargs
)
2596 self
.this
= newobj
.this
2599 self
._setOORInfo
(self
)
2602 class MessageDialogPtr(MessageDialog
):
2603 def __init__(self
, this
):
2605 if not hasattr(self
,"thisown"): self
.thisown
= 0
2606 self
.__class
__ = MessageDialog
2607 _windows
.MessageDialog_swigregister(MessageDialogPtr
)
2609 class ProgressDialog(Frame
):
2611 A dialog that shows a short message and a progress bar. Optionally, it can
2612 display an ABORT button.
2615 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2616 def __init__(self
, *args
, **kwargs
):
2618 __init__(String title, String message, int maximum=100, Window parent=None,
2619 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2621 Constructor. Creates the dialog, displays it and disables user input for other
2622 windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only.
2624 newobj
= _windows
.new_ProgressDialog(*args
, **kwargs
)
2625 self
.this
= newobj
.this
2628 self
._setOORInfo
(self
)
2630 def Update(*args
, **kwargs
):
2632 Update(int value, String newmsg=EmptyString) -> bool
2634 Updates the dialog, setting the progress bar to the new value and, if given
2635 changes the message above it. Returns true unless the Cancel button has been
2638 If false is returned, the application can either immediately destroy the
2639 dialog or ask the user for the confirmation and if the abort is not confirmed
2640 the dialog may be resumed with Resume function.
2642 return _windows
.ProgressDialog_Update(*args
, **kwargs
)
2644 def Resume(*args
, **kwargs
):
2648 Can be used to continue with the dialog, after the user had chosen to abort.
2650 return _windows
.ProgressDialog_Resume(*args
, **kwargs
)
2653 class ProgressDialogPtr(ProgressDialog
):
2654 def __init__(self
, this
):
2656 if not hasattr(self
,"thisown"): self
.thisown
= 0
2657 self
.__class
__ = ProgressDialog
2658 _windows
.ProgressDialog_swigregister(ProgressDialogPtr
)
2660 FR_DOWN
= _windows
.FR_DOWN
2661 FR_WHOLEWORD
= _windows
.FR_WHOLEWORD
2662 FR_MATCHCASE
= _windows
.FR_MATCHCASE
2663 FR_REPLACEDIALOG
= _windows
.FR_REPLACEDIALOG
2664 FR_NOUPDOWN
= _windows
.FR_NOUPDOWN
2665 FR_NOMATCHCASE
= _windows
.FR_NOMATCHCASE
2666 FR_NOWHOLEWORD
= _windows
.FR_NOWHOLEWORD
2667 wxEVT_COMMAND_FIND
= _windows
.wxEVT_COMMAND_FIND
2668 wxEVT_COMMAND_FIND_NEXT
= _windows
.wxEVT_COMMAND_FIND_NEXT
2669 wxEVT_COMMAND_FIND_REPLACE
= _windows
.wxEVT_COMMAND_FIND_REPLACE
2670 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows
.wxEVT_COMMAND_FIND_REPLACE_ALL
2671 wxEVT_COMMAND_FIND_CLOSE
= _windows
.wxEVT_COMMAND_FIND_CLOSE
2672 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2673 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2674 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2675 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2676 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2678 # For backwards compatibility. Should they be removed?
2679 EVT_COMMAND_FIND
= EVT_FIND
2680 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2681 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2682 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2683 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2685 class FindDialogEvent(core
.CommandEvent
):
2686 """Events for the FindReplaceDialog"""
2688 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2689 def __init__(self
, *args
, **kwargs
):
2691 __init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2693 Events for the FindReplaceDialog
2695 newobj
= _windows
.new_FindDialogEvent(*args
, **kwargs
)
2696 self
.this
= newobj
.this
2699 def GetFlags(*args
, **kwargs
):
2703 Get the currently selected flags: this is the combination of
2704 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2706 return _windows
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2708 def GetFindString(*args
, **kwargs
):
2710 GetFindString() -> String
2712 Return the string to find (never empty).
2714 return _windows
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2716 def GetReplaceString(*args
, **kwargs
):
2718 GetReplaceString() -> String
2720 Return the string to replace the search string with (only
2721 for replace and replace all events).
2723 return _windows
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2725 def GetDialog(*args
, **kwargs
):
2727 GetDialog() -> FindReplaceDialog
2729 Return the pointer to the dialog which generated this event.
2731 return _windows
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2733 def SetFlags(*args
, **kwargs
):
2734 """SetFlags(int flags)"""
2735 return _windows
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2737 def SetFindString(*args
, **kwargs
):
2738 """SetFindString(String str)"""
2739 return _windows
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2741 def SetReplaceString(*args
, **kwargs
):
2742 """SetReplaceString(String str)"""
2743 return _windows
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2746 class FindDialogEventPtr(FindDialogEvent
):
2747 def __init__(self
, this
):
2749 if not hasattr(self
,"thisown"): self
.thisown
= 0
2750 self
.__class
__ = FindDialogEvent
2751 _windows
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2753 class FindReplaceData(core
.Object
):
2755 FindReplaceData holds the data for FindReplaceDialog. It is used to initialize
2756 the dialog with the default values and will keep the last values from the
2757 dialog when it is closed. It is also updated each time a wxFindDialogEvent is
2758 generated so instead of using the wxFindDialogEvent methods you can also
2759 directly query this object.
2761 Note that all SetXXX() methods may only be called before showing the dialog
2762 and calling them has no effect later.
2765 wxFR_DOWN: downward search/replace selected (otherwise, upwards)
2767 wxFR_WHOLEWORD: whole word search/replace selected
2769 wxFR_MATCHCASE: case sensitive search/replace selected (otherwise,
2774 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2775 def __init__(self
, *args
, **kwargs
):
2777 __init__(int flags=0) -> FindReplaceData
2779 Constuctor initializes the flags to default value (0).
2781 newobj
= _windows
.new_FindReplaceData(*args
, **kwargs
)
2782 self
.this
= newobj
.this
2785 def __del__(self
, destroy
=_windows
.delete_FindReplaceData
):
2788 if self
.thisown
: destroy(self
)
2791 def GetFindString(*args
, **kwargs
):
2793 GetFindString() -> String
2795 Get the string to find.
2797 return _windows
.FindReplaceData_GetFindString(*args
, **kwargs
)
2799 def GetReplaceString(*args
, **kwargs
):
2801 GetReplaceString() -> String
2803 Get the replacement string.
2805 return _windows
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2807 def GetFlags(*args
, **kwargs
):
2811 Get the combination of flag values.
2813 return _windows
.FindReplaceData_GetFlags(*args
, **kwargs
)
2815 def SetFlags(*args
, **kwargs
):
2819 Set the flags to use to initialize the controls of the dialog.
2821 return _windows
.FindReplaceData_SetFlags(*args
, **kwargs
)
2823 def SetFindString(*args
, **kwargs
):
2825 SetFindString(String str)
2827 Set the string to find (used as initial value by the dialog).
2829 return _windows
.FindReplaceData_SetFindString(*args
, **kwargs
)
2831 def SetReplaceString(*args
, **kwargs
):
2833 SetReplaceString(String str)
2835 Set the replacement string (used as initial value by the dialog).
2837 return _windows
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2840 class FindReplaceDataPtr(FindReplaceData
):
2841 def __init__(self
, this
):
2843 if not hasattr(self
,"thisown"): self
.thisown
= 0
2844 self
.__class
__ = FindReplaceData
2845 _windows
.FindReplaceData_swigregister(FindReplaceDataPtr
)
2847 class FindReplaceDialog(Dialog
):
2849 FindReplaceDialog is a standard modeless dialog which is used to allow the
2850 user to search for some text (and possibly replace it with something
2851 else). The actual searching is supposed to be done in the owner window which
2852 is the parent of this dialog. Note that it means that unlike for the other
2853 standard dialogs this one must have a parent window. Also note that there is
2854 no way to use this dialog in a modal way; it is always, by design and
2855 implementation, modeless.
2858 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2859 def __init__(self
, *args
, **kwargs
):
2861 __init__(Window parent, FindReplaceData data, String title,
2862 int style=0) -> FindReplaceDialog
2864 Create a FindReplaceDialog. The parent and data parameters must be
2865 non-None. Use Show to display the dialog.
2867 newobj
= _windows
.new_FindReplaceDialog(*args
, **kwargs
)
2868 self
.this
= newobj
.this
2871 self
._setOORInfo
(self
)
2873 def Create(*args
, **kwargs
):
2875 Create(Window parent, FindReplaceData data, String title,
2876 int style=0) -> bool
2878 Create the dialog, for 2-phase create.
2880 return _windows
.FindReplaceDialog_Create(*args
, **kwargs
)
2882 def GetData(*args
, **kwargs
):
2884 GetData() -> FindReplaceData
2886 Get the FindReplaceData object used by this dialog.
2888 return _windows
.FindReplaceDialog_GetData(*args
, **kwargs
)
2890 def SetData(*args
, **kwargs
):
2892 SetData(FindReplaceData data)
2894 Set the FindReplaceData object used by this dialog.
2896 return _windows
.FindReplaceDialog_SetData(*args
, **kwargs
)
2899 class FindReplaceDialogPtr(FindReplaceDialog
):
2900 def __init__(self
, this
):
2902 if not hasattr(self
,"thisown"): self
.thisown
= 0
2903 self
.__class
__ = FindReplaceDialog
2904 _windows
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
2906 def PreFindReplaceDialog(*args
, **kwargs
):
2908 PreFindReplaceDialog() -> FindReplaceDialog
2910 Precreate a FindReplaceDialog for 2-phase creation
2912 val
= _windows
.new_PreFindReplaceDialog(*args
, **kwargs
)
2916 #---------------------------------------------------------------------------
2918 IDM_WINDOWTILE
= _windows
.IDM_WINDOWTILE
2919 IDM_WINDOWTILEHOR
= _windows
.IDM_WINDOWTILEHOR
2920 IDM_WINDOWCASCADE
= _windows
.IDM_WINDOWCASCADE
2921 IDM_WINDOWICONS
= _windows
.IDM_WINDOWICONS
2922 IDM_WINDOWNEXT
= _windows
.IDM_WINDOWNEXT
2923 IDM_WINDOWTILEVERT
= _windows
.IDM_WINDOWTILEVERT
2924 FIRST_MDI_CHILD
= _windows
.FIRST_MDI_CHILD
2925 LAST_MDI_CHILD
= _windows
.LAST_MDI_CHILD
2926 class MDIParentFrame(Frame
):
2928 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2929 def __init__(self
, *args
, **kwargs
):
2931 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
2932 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2933 String name=FrameNameStr) -> MDIParentFrame
2935 newobj
= _windows
.new_MDIParentFrame(*args
, **kwargs
)
2936 self
.this
= newobj
.this
2939 self
._setOORInfo
(self
)
2941 def Create(*args
, **kwargs
):
2943 Create(Window parent, int id, String title, Point pos=DefaultPosition,
2944 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2945 String name=FrameNameStr) -> bool
2947 return _windows
.MDIParentFrame_Create(*args
, **kwargs
)
2949 def ActivateNext(*args
, **kwargs
):
2950 """ActivateNext()"""
2951 return _windows
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
2953 def ActivatePrevious(*args
, **kwargs
):
2954 """ActivatePrevious()"""
2955 return _windows
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
2957 def ArrangeIcons(*args
, **kwargs
):
2958 """ArrangeIcons()"""
2959 return _windows
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
2961 def Cascade(*args
, **kwargs
):
2963 return _windows
.MDIParentFrame_Cascade(*args
, **kwargs
)
2965 def GetActiveChild(*args
, **kwargs
):
2966 """GetActiveChild() -> MDIChildFrame"""
2967 return _windows
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
2969 def GetClientWindow(*args
, **kwargs
):
2970 """GetClientWindow() -> MDIClientWindow"""
2971 return _windows
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
2973 def GetToolBar(*args
, **kwargs
):
2974 """GetToolBar() -> Window"""
2975 return _windows
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
2977 def Tile(*args
, **kwargs
):
2979 return _windows
.MDIParentFrame_Tile(*args
, **kwargs
)
2982 class MDIParentFramePtr(MDIParentFrame
):
2983 def __init__(self
, this
):
2985 if not hasattr(self
,"thisown"): self
.thisown
= 0
2986 self
.__class
__ = MDIParentFrame
2987 _windows
.MDIParentFrame_swigregister(MDIParentFramePtr
)
2989 def PreMDIParentFrame(*args
, **kwargs
):
2990 """PreMDIParentFrame() -> MDIParentFrame"""
2991 val
= _windows
.new_PreMDIParentFrame(*args
, **kwargs
)
2995 class MDIChildFrame(Frame
):
2997 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2998 def __init__(self
, *args
, **kwargs
):
3000 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3001 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3002 String name=FrameNameStr) -> MDIChildFrame
3004 newobj
= _windows
.new_MDIChildFrame(*args
, **kwargs
)
3005 self
.this
= newobj
.this
3008 self
._setOORInfo
(self
)
3010 def Create(*args
, **kwargs
):
3012 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3013 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3014 String name=FrameNameStr) -> bool
3016 return _windows
.MDIChildFrame_Create(*args
, **kwargs
)
3018 def Activate(*args
, **kwargs
):
3020 return _windows
.MDIChildFrame_Activate(*args
, **kwargs
)
3022 def Maximize(*args
, **kwargs
):
3023 """Maximize(bool maximize)"""
3024 return _windows
.MDIChildFrame_Maximize(*args
, **kwargs
)
3026 def Restore(*args
, **kwargs
):
3028 return _windows
.MDIChildFrame_Restore(*args
, **kwargs
)
3031 class MDIChildFramePtr(MDIChildFrame
):
3032 def __init__(self
, this
):
3034 if not hasattr(self
,"thisown"): self
.thisown
= 0
3035 self
.__class
__ = MDIChildFrame
3036 _windows
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3038 def PreMDIChildFrame(*args
, **kwargs
):
3039 """PreMDIChildFrame() -> MDIChildFrame"""
3040 val
= _windows
.new_PreMDIChildFrame(*args
, **kwargs
)
3044 class MDIClientWindow(core
.Window
):
3046 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3047 def __init__(self
, *args
, **kwargs
):
3048 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3049 newobj
= _windows
.new_MDIClientWindow(*args
, **kwargs
)
3050 self
.this
= newobj
.this
3053 self
._setOORInfo
(self
)
3055 def Create(*args
, **kwargs
):
3056 """Create(MDIParentFrame parent, long style=0) -> bool"""
3057 return _windows
.MDIClientWindow_Create(*args
, **kwargs
)
3060 class MDIClientWindowPtr(MDIClientWindow
):
3061 def __init__(self
, this
):
3063 if not hasattr(self
,"thisown"): self
.thisown
= 0
3064 self
.__class
__ = MDIClientWindow
3065 _windows
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3067 def PreMDIClientWindow(*args
, **kwargs
):
3068 """PreMDIClientWindow() -> MDIClientWindow"""
3069 val
= _windows
.new_PreMDIClientWindow(*args
, **kwargs
)
3073 #---------------------------------------------------------------------------
3075 class PyWindow(core
.Window
):
3077 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3078 def __init__(self
, *args
, **kwargs
):
3080 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3081 long style=0, String name=PanelNameStr) -> PyWindow
3083 newobj
= _windows
.new_PyWindow(*args
, **kwargs
)
3084 self
.this
= newobj
.this
3087 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3089 def _setCallbackInfo(*args
, **kwargs
):
3090 """_setCallbackInfo(PyObject self, PyObject _class)"""
3091 return _windows
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3093 def base_DoMoveWindow(*args
, **kwargs
):
3094 """base_DoMoveWindow(int x, int y, int width, int height)"""
3095 return _windows
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3097 def base_DoSetSize(*args
, **kwargs
):
3098 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3099 return _windows
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3101 def base_DoSetClientSize(*args
, **kwargs
):
3102 """base_DoSetClientSize(int width, int height)"""
3103 return _windows
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3105 def base_DoSetVirtualSize(*args
, **kwargs
):
3106 """base_DoSetVirtualSize(int x, int y)"""
3107 return _windows
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3109 def base_DoGetSize(*args
, **kwargs
):
3110 """base_DoGetSize() -> (width, height)"""
3111 return _windows
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3113 def base_DoGetClientSize(*args
, **kwargs
):
3114 """base_DoGetClientSize() -> (width, height)"""
3115 return _windows
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3117 def base_DoGetPosition(*args
, **kwargs
):
3118 """base_DoGetPosition() -> (x,y)"""
3119 return _windows
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3121 def base_DoGetVirtualSize(*args
, **kwargs
):
3122 """base_DoGetVirtualSize() -> Size"""
3123 return _windows
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3125 def base_DoGetBestSize(*args
, **kwargs
):
3126 """base_DoGetBestSize() -> Size"""
3127 return _windows
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3129 def base_InitDialog(*args
, **kwargs
):
3130 """base_InitDialog()"""
3131 return _windows
.PyWindow_base_InitDialog(*args
, **kwargs
)
3133 def base_TransferDataToWindow(*args
, **kwargs
):
3134 """base_TransferDataToWindow() -> bool"""
3135 return _windows
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3137 def base_TransferDataFromWindow(*args
, **kwargs
):
3138 """base_TransferDataFromWindow() -> bool"""
3139 return _windows
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3141 def base_Validate(*args
, **kwargs
):
3142 """base_Validate() -> bool"""
3143 return _windows
.PyWindow_base_Validate(*args
, **kwargs
)
3145 def base_AcceptsFocus(*args
, **kwargs
):
3146 """base_AcceptsFocus() -> bool"""
3147 return _windows
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3149 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3150 """base_AcceptsFocusFromKeyboard() -> bool"""
3151 return _windows
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3153 def base_GetMaxSize(*args
, **kwargs
):
3154 """base_GetMaxSize() -> Size"""
3155 return _windows
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3157 def base_AddChild(*args
, **kwargs
):
3158 """base_AddChild(Window child)"""
3159 return _windows
.PyWindow_base_AddChild(*args
, **kwargs
)
3161 def base_RemoveChild(*args
, **kwargs
):
3162 """base_RemoveChild(Window child)"""
3163 return _windows
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3165 def base_ShouldInheritColours(*args
, **kwargs
):
3166 """base_ShouldInheritColours() -> bool"""
3167 return _windows
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3169 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3170 """base_ApplyParentThemeBackground(Colour c)"""
3171 return _windows
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3174 class PyWindowPtr(PyWindow
):
3175 def __init__(self
, this
):
3177 if not hasattr(self
,"thisown"): self
.thisown
= 0
3178 self
.__class
__ = PyWindow
3179 _windows
.PyWindow_swigregister(PyWindowPtr
)
3181 def PrePyWindow(*args
, **kwargs
):
3182 """PrePyWindow() -> PyWindow"""
3183 val
= _windows
.new_PrePyWindow(*args
, **kwargs
)
3187 class PyPanel(Panel
):
3189 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3190 def __init__(self
, *args
, **kwargs
):
3192 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3193 long style=0, String name=PanelNameStr) -> PyPanel
3195 newobj
= _windows
.new_PyPanel(*args
, **kwargs
)
3196 self
.this
= newobj
.this
3199 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3201 def _setCallbackInfo(*args
, **kwargs
):
3202 """_setCallbackInfo(PyObject self, PyObject _class)"""
3203 return _windows
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3205 def base_DoMoveWindow(*args
, **kwargs
):
3206 """base_DoMoveWindow(int x, int y, int width, int height)"""
3207 return _windows
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3209 def base_DoSetSize(*args
, **kwargs
):
3210 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3211 return _windows
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3213 def base_DoSetClientSize(*args
, **kwargs
):
3214 """base_DoSetClientSize(int width, int height)"""
3215 return _windows
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3217 def base_DoSetVirtualSize(*args
, **kwargs
):
3218 """base_DoSetVirtualSize(int x, int y)"""
3219 return _windows
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3221 def base_DoGetSize(*args
, **kwargs
):
3222 """base_DoGetSize() -> (width, height)"""
3223 return _windows
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3225 def base_DoGetClientSize(*args
, **kwargs
):
3226 """base_DoGetClientSize() -> (width, height)"""
3227 return _windows
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3229 def base_DoGetPosition(*args
, **kwargs
):
3230 """base_DoGetPosition() -> (x,y)"""
3231 return _windows
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3233 def base_DoGetVirtualSize(*args
, **kwargs
):
3234 """base_DoGetVirtualSize() -> Size"""
3235 return _windows
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3237 def base_DoGetBestSize(*args
, **kwargs
):
3238 """base_DoGetBestSize() -> Size"""
3239 return _windows
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3241 def base_InitDialog(*args
, **kwargs
):
3242 """base_InitDialog()"""
3243 return _windows
.PyPanel_base_InitDialog(*args
, **kwargs
)
3245 def base_TransferDataToWindow(*args
, **kwargs
):
3246 """base_TransferDataToWindow() -> bool"""
3247 return _windows
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3249 def base_TransferDataFromWindow(*args
, **kwargs
):
3250 """base_TransferDataFromWindow() -> bool"""
3251 return _windows
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3253 def base_Validate(*args
, **kwargs
):
3254 """base_Validate() -> bool"""
3255 return _windows
.PyPanel_base_Validate(*args
, **kwargs
)
3257 def base_AcceptsFocus(*args
, **kwargs
):
3258 """base_AcceptsFocus() -> bool"""
3259 return _windows
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3261 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3262 """base_AcceptsFocusFromKeyboard() -> bool"""
3263 return _windows
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3265 def base_GetMaxSize(*args
, **kwargs
):
3266 """base_GetMaxSize() -> Size"""
3267 return _windows
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3269 def base_AddChild(*args
, **kwargs
):
3270 """base_AddChild(Window child)"""
3271 return _windows
.PyPanel_base_AddChild(*args
, **kwargs
)
3273 def base_RemoveChild(*args
, **kwargs
):
3274 """base_RemoveChild(Window child)"""
3275 return _windows
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3277 def base_ShouldInheritColours(*args
, **kwargs
):
3278 """base_ShouldInheritColours() -> bool"""
3279 return _windows
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3281 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3282 """base_ApplyParentThemeBackground(Colour c)"""
3283 return _windows
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3286 class PyPanelPtr(PyPanel
):
3287 def __init__(self
, this
):
3289 if not hasattr(self
,"thisown"): self
.thisown
= 0
3290 self
.__class
__ = PyPanel
3291 _windows
.PyPanel_swigregister(PyPanelPtr
)
3293 def PrePyPanel(*args
, **kwargs
):
3294 """PrePyPanel() -> PyPanel"""
3295 val
= _windows
.new_PrePyPanel(*args
, **kwargs
)
3299 class PyScrolledWindow(ScrolledWindow
):
3301 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3302 def __init__(self
, *args
, **kwargs
):
3304 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3305 long style=0, String name=PanelNameStr) -> PyScrolledWindow
3307 newobj
= _windows
.new_PyScrolledWindow(*args
, **kwargs
)
3308 self
.this
= newobj
.this
3311 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3313 def _setCallbackInfo(*args
, **kwargs
):
3314 """_setCallbackInfo(PyObject self, PyObject _class)"""
3315 return _windows
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3317 def base_DoMoveWindow(*args
, **kwargs
):
3318 """base_DoMoveWindow(int x, int y, int width, int height)"""
3319 return _windows
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3321 def base_DoSetSize(*args
, **kwargs
):
3322 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3323 return _windows
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3325 def base_DoSetClientSize(*args
, **kwargs
):
3326 """base_DoSetClientSize(int width, int height)"""
3327 return _windows
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3329 def base_DoSetVirtualSize(*args
, **kwargs
):
3330 """base_DoSetVirtualSize(int x, int y)"""
3331 return _windows
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3333 def base_DoGetSize(*args
, **kwargs
):
3334 """base_DoGetSize() -> (width, height)"""
3335 return _windows
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3337 def base_DoGetClientSize(*args
, **kwargs
):
3338 """base_DoGetClientSize() -> (width, height)"""
3339 return _windows
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3341 def base_DoGetPosition(*args
, **kwargs
):
3342 """base_DoGetPosition() -> (x,y)"""
3343 return _windows
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3345 def base_DoGetVirtualSize(*args
, **kwargs
):
3346 """base_DoGetVirtualSize() -> Size"""
3347 return _windows
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3349 def base_DoGetBestSize(*args
, **kwargs
):
3350 """base_DoGetBestSize() -> Size"""
3351 return _windows
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3353 def base_InitDialog(*args
, **kwargs
):
3354 """base_InitDialog()"""
3355 return _windows
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3357 def base_TransferDataToWindow(*args
, **kwargs
):
3358 """base_TransferDataToWindow() -> bool"""
3359 return _windows
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3361 def base_TransferDataFromWindow(*args
, **kwargs
):
3362 """base_TransferDataFromWindow() -> bool"""
3363 return _windows
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3365 def base_Validate(*args
, **kwargs
):
3366 """base_Validate() -> bool"""
3367 return _windows
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3369 def base_AcceptsFocus(*args
, **kwargs
):
3370 """base_AcceptsFocus() -> bool"""
3371 return _windows
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3373 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3374 """base_AcceptsFocusFromKeyboard() -> bool"""
3375 return _windows
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3377 def base_GetMaxSize(*args
, **kwargs
):
3378 """base_GetMaxSize() -> Size"""
3379 return _windows
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3381 def base_AddChild(*args
, **kwargs
):
3382 """base_AddChild(Window child)"""
3383 return _windows
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3385 def base_RemoveChild(*args
, **kwargs
):
3386 """base_RemoveChild(Window child)"""
3387 return _windows
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3389 def base_ShouldInheritColours(*args
, **kwargs
):
3390 """base_ShouldInheritColours() -> bool"""
3391 return _windows
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3393 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3394 """base_ApplyParentThemeBackground(Colour c)"""
3395 return _windows
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3398 class PyScrolledWindowPtr(PyScrolledWindow
):
3399 def __init__(self
, this
):
3401 if not hasattr(self
,"thisown"): self
.thisown
= 0
3402 self
.__class
__ = PyScrolledWindow
3403 _windows
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3405 def PrePyScrolledWindow(*args
, **kwargs
):
3406 """PrePyScrolledWindow() -> PyScrolledWindow"""
3407 val
= _windows
.new_PrePyScrolledWindow(*args
, **kwargs
)
3411 #---------------------------------------------------------------------------
3413 PRINT_MODE_NONE
= _windows
.PRINT_MODE_NONE
3414 PRINT_MODE_PREVIEW
= _windows
.PRINT_MODE_PREVIEW
3415 PRINT_MODE_FILE
= _windows
.PRINT_MODE_FILE
3416 PRINT_MODE_PRINTER
= _windows
.PRINT_MODE_PRINTER
3417 PRINT_MODE_STREAM
= _windows
.PRINT_MODE_STREAM
3418 class PrintData(core
.Object
):
3420 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3421 def __init__(self
, *args
, **kwargs
):
3422 """__init__() -> PrintData"""
3423 newobj
= _windows
.new_PrintData(*args
, **kwargs
)
3424 self
.this
= newobj
.this
3427 def __del__(self
, destroy
=_windows
.delete_PrintData
):
3430 if self
.thisown
: destroy(self
)
3433 def GetNoCopies(*args
, **kwargs
):
3434 """GetNoCopies() -> int"""
3435 return _windows
.PrintData_GetNoCopies(*args
, **kwargs
)
3437 def GetCollate(*args
, **kwargs
):
3438 """GetCollate() -> bool"""
3439 return _windows
.PrintData_GetCollate(*args
, **kwargs
)
3441 def GetOrientation(*args
, **kwargs
):
3442 """GetOrientation() -> int"""
3443 return _windows
.PrintData_GetOrientation(*args
, **kwargs
)
3445 def Ok(*args
, **kwargs
):
3447 return _windows
.PrintData_Ok(*args
, **kwargs
)
3449 def GetPrinterName(*args
, **kwargs
):
3450 """GetPrinterName() -> String"""
3451 return _windows
.PrintData_GetPrinterName(*args
, **kwargs
)
3453 def GetColour(*args
, **kwargs
):
3454 """GetColour() -> bool"""
3455 return _windows
.PrintData_GetColour(*args
, **kwargs
)
3457 def GetDuplex(*args
, **kwargs
):
3458 """GetDuplex() -> int"""
3459 return _windows
.PrintData_GetDuplex(*args
, **kwargs
)
3461 def GetPaperId(*args
, **kwargs
):
3462 """GetPaperId() -> int"""
3463 return _windows
.PrintData_GetPaperId(*args
, **kwargs
)
3465 def GetPaperSize(*args
, **kwargs
):
3466 """GetPaperSize() -> Size"""
3467 return _windows
.PrintData_GetPaperSize(*args
, **kwargs
)
3469 def GetQuality(*args
, **kwargs
):
3470 """GetQuality() -> int"""
3471 return _windows
.PrintData_GetQuality(*args
, **kwargs
)
3473 def SetNoCopies(*args
, **kwargs
):
3474 """SetNoCopies(int v)"""
3475 return _windows
.PrintData_SetNoCopies(*args
, **kwargs
)
3477 def SetCollate(*args
, **kwargs
):
3478 """SetCollate(bool flag)"""
3479 return _windows
.PrintData_SetCollate(*args
, **kwargs
)
3481 def SetOrientation(*args
, **kwargs
):
3482 """SetOrientation(int orient)"""
3483 return _windows
.PrintData_SetOrientation(*args
, **kwargs
)
3485 def SetPrinterName(*args
, **kwargs
):
3486 """SetPrinterName(String name)"""
3487 return _windows
.PrintData_SetPrinterName(*args
, **kwargs
)
3489 def SetColour(*args
, **kwargs
):
3490 """SetColour(bool colour)"""
3491 return _windows
.PrintData_SetColour(*args
, **kwargs
)
3493 def SetDuplex(*args
, **kwargs
):
3494 """SetDuplex(int duplex)"""
3495 return _windows
.PrintData_SetDuplex(*args
, **kwargs
)
3497 def SetPaperId(*args
, **kwargs
):
3498 """SetPaperId(int sizeId)"""
3499 return _windows
.PrintData_SetPaperId(*args
, **kwargs
)
3501 def SetPaperSize(*args
, **kwargs
):
3502 """SetPaperSize(Size sz)"""
3503 return _windows
.PrintData_SetPaperSize(*args
, **kwargs
)
3505 def SetQuality(*args
, **kwargs
):
3506 """SetQuality(int quality)"""
3507 return _windows
.PrintData_SetQuality(*args
, **kwargs
)
3509 def GetPrinterCommand(*args
, **kwargs
):
3510 """GetPrinterCommand() -> String"""
3511 return _windows
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3513 def GetPrinterOptions(*args
, **kwargs
):
3514 """GetPrinterOptions() -> String"""
3515 return _windows
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3517 def GetPreviewCommand(*args
, **kwargs
):
3518 """GetPreviewCommand() -> String"""
3519 return _windows
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3521 def GetFilename(*args
, **kwargs
):
3522 """GetFilename() -> String"""
3523 return _windows
.PrintData_GetFilename(*args
, **kwargs
)
3525 def GetFontMetricPath(*args
, **kwargs
):
3526 """GetFontMetricPath() -> String"""
3527 return _windows
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3529 def GetPrinterScaleX(*args
, **kwargs
):
3530 """GetPrinterScaleX() -> double"""
3531 return _windows
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3533 def GetPrinterScaleY(*args
, **kwargs
):
3534 """GetPrinterScaleY() -> double"""
3535 return _windows
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3537 def GetPrinterTranslateX(*args
, **kwargs
):
3538 """GetPrinterTranslateX() -> long"""
3539 return _windows
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3541 def GetPrinterTranslateY(*args
, **kwargs
):
3542 """GetPrinterTranslateY() -> long"""
3543 return _windows
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3545 def GetPrintMode(*args
, **kwargs
):
3546 """GetPrintMode() -> int"""
3547 return _windows
.PrintData_GetPrintMode(*args
, **kwargs
)
3549 def SetPrinterCommand(*args
, **kwargs
):
3550 """SetPrinterCommand(String command)"""
3551 return _windows
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3553 def SetPrinterOptions(*args
, **kwargs
):
3554 """SetPrinterOptions(String options)"""
3555 return _windows
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3557 def SetPreviewCommand(*args
, **kwargs
):
3558 """SetPreviewCommand(String command)"""
3559 return _windows
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3561 def SetFilename(*args
, **kwargs
):
3562 """SetFilename(String filename)"""
3563 return _windows
.PrintData_SetFilename(*args
, **kwargs
)
3565 def SetFontMetricPath(*args
, **kwargs
):
3566 """SetFontMetricPath(String path)"""
3567 return _windows
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3569 def SetPrinterScaleX(*args
, **kwargs
):
3570 """SetPrinterScaleX(double x)"""
3571 return _windows
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3573 def SetPrinterScaleY(*args
, **kwargs
):
3574 """SetPrinterScaleY(double y)"""
3575 return _windows
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3577 def SetPrinterScaling(*args
, **kwargs
):
3578 """SetPrinterScaling(double x, double y)"""
3579 return _windows
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3581 def SetPrinterTranslateX(*args
, **kwargs
):
3582 """SetPrinterTranslateX(long x)"""
3583 return _windows
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3585 def SetPrinterTranslateY(*args
, **kwargs
):
3586 """SetPrinterTranslateY(long y)"""
3587 return _windows
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3589 def SetPrinterTranslation(*args
, **kwargs
):
3590 """SetPrinterTranslation(long x, long y)"""
3591 return _windows
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3593 def SetPrintMode(*args
, **kwargs
):
3594 """SetPrintMode(int printMode)"""
3595 return _windows
.PrintData_SetPrintMode(*args
, **kwargs
)
3597 def GetOutputStream(*args
, **kwargs
):
3598 """GetOutputStream() -> OutputStream"""
3599 return _windows
.PrintData_GetOutputStream(*args
, **kwargs
)
3601 def SetOutputStream(*args
, **kwargs
):
3602 """SetOutputStream(OutputStream outputstream)"""
3603 return _windows
.PrintData_SetOutputStream(*args
, **kwargs
)
3605 def __nonzero__(self
): return self
.Ok()
3607 class PrintDataPtr(PrintData
):
3608 def __init__(self
, this
):
3610 if not hasattr(self
,"thisown"): self
.thisown
= 0
3611 self
.__class
__ = PrintData
3612 _windows
.PrintData_swigregister(PrintDataPtr
)
3613 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3614 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3616 class PageSetupDialogData(core
.Object
):
3618 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3619 def __init__(self
, *args
, **kwargs
):
3620 """__init__() -> PageSetupDialogData"""
3621 newobj
= _windows
.new_PageSetupDialogData(*args
, **kwargs
)
3622 self
.this
= newobj
.this
3625 def __del__(self
, destroy
=_windows
.delete_PageSetupDialogData
):
3628 if self
.thisown
: destroy(self
)
3631 def EnableHelp(*args
, **kwargs
):
3632 """EnableHelp(bool flag)"""
3633 return _windows
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3635 def EnableMargins(*args
, **kwargs
):
3636 """EnableMargins(bool flag)"""
3637 return _windows
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3639 def EnableOrientation(*args
, **kwargs
):
3640 """EnableOrientation(bool flag)"""
3641 return _windows
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3643 def EnablePaper(*args
, **kwargs
):
3644 """EnablePaper(bool flag)"""
3645 return _windows
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3647 def EnablePrinter(*args
, **kwargs
):
3648 """EnablePrinter(bool flag)"""
3649 return _windows
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3651 def GetDefaultMinMargins(*args
, **kwargs
):
3652 """GetDefaultMinMargins() -> bool"""
3653 return _windows
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3655 def GetEnableMargins(*args
, **kwargs
):
3656 """GetEnableMargins() -> bool"""
3657 return _windows
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3659 def GetEnableOrientation(*args
, **kwargs
):
3660 """GetEnableOrientation() -> bool"""
3661 return _windows
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3663 def GetEnablePaper(*args
, **kwargs
):
3664 """GetEnablePaper() -> bool"""
3665 return _windows
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3667 def GetEnablePrinter(*args
, **kwargs
):
3668 """GetEnablePrinter() -> bool"""
3669 return _windows
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3671 def GetEnableHelp(*args
, **kwargs
):
3672 """GetEnableHelp() -> bool"""
3673 return _windows
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3675 def GetDefaultInfo(*args
, **kwargs
):
3676 """GetDefaultInfo() -> bool"""
3677 return _windows
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3679 def GetMarginTopLeft(*args
, **kwargs
):
3680 """GetMarginTopLeft() -> Point"""
3681 return _windows
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3683 def GetMarginBottomRight(*args
, **kwargs
):
3684 """GetMarginBottomRight() -> Point"""
3685 return _windows
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3687 def GetMinMarginTopLeft(*args
, **kwargs
):
3688 """GetMinMarginTopLeft() -> Point"""
3689 return _windows
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3691 def GetMinMarginBottomRight(*args
, **kwargs
):
3692 """GetMinMarginBottomRight() -> Point"""
3693 return _windows
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3695 def GetPaperId(*args
, **kwargs
):
3696 """GetPaperId() -> int"""
3697 return _windows
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3699 def GetPaperSize(*args
, **kwargs
):
3700 """GetPaperSize() -> Size"""
3701 return _windows
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3703 def GetPrintData(*args
, **kwargs
):
3704 """GetPrintData() -> PrintData"""
3705 return _windows
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3707 def Ok(*args
, **kwargs
):
3709 return _windows
.PageSetupDialogData_Ok(*args
, **kwargs
)
3711 def SetDefaultInfo(*args
, **kwargs
):
3712 """SetDefaultInfo(bool flag)"""
3713 return _windows
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3715 def SetDefaultMinMargins(*args
, **kwargs
):
3716 """SetDefaultMinMargins(bool flag)"""
3717 return _windows
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3719 def SetMarginTopLeft(*args
, **kwargs
):
3720 """SetMarginTopLeft(Point pt)"""
3721 return _windows
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3723 def SetMarginBottomRight(*args
, **kwargs
):
3724 """SetMarginBottomRight(Point pt)"""
3725 return _windows
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3727 def SetMinMarginTopLeft(*args
, **kwargs
):
3728 """SetMinMarginTopLeft(Point pt)"""
3729 return _windows
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3731 def SetMinMarginBottomRight(*args
, **kwargs
):
3732 """SetMinMarginBottomRight(Point pt)"""
3733 return _windows
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3735 def SetPaperId(*args
, **kwargs
):
3736 """SetPaperId(int id)"""
3737 return _windows
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3739 def SetPaperSize(*args
, **kwargs
):
3740 """SetPaperSize(Size size)"""
3741 return _windows
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3743 def SetPrintData(*args
, **kwargs
):
3744 """SetPrintData(PrintData printData)"""
3745 return _windows
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3747 def __nonzero__(self
): return self
.Ok()
3749 class PageSetupDialogDataPtr(PageSetupDialogData
):
3750 def __init__(self
, this
):
3752 if not hasattr(self
,"thisown"): self
.thisown
= 0
3753 self
.__class
__ = PageSetupDialogData
3754 _windows
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3756 class PageSetupDialog(Dialog
):
3758 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3759 def __init__(self
, *args
, **kwargs
):
3760 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3761 newobj
= _windows
.new_PageSetupDialog(*args
, **kwargs
)
3762 self
.this
= newobj
.this
3765 self
._setOORInfo
(self
)
3767 def GetPageSetupData(*args
, **kwargs
):
3768 """GetPageSetupData() -> PageSetupDialogData"""
3769 return _windows
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3771 def ShowModal(*args
, **kwargs
):
3772 """ShowModal() -> int"""
3773 return _windows
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3776 class PageSetupDialogPtr(PageSetupDialog
):
3777 def __init__(self
, this
):
3779 if not hasattr(self
,"thisown"): self
.thisown
= 0
3780 self
.__class
__ = PageSetupDialog
3781 _windows
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3783 class PrintDialogData(core
.Object
):
3785 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3786 def __init__(self
, *args
):
3788 __init__() -> PrintDialogData
3789 __init__(PrintData printData) -> PrintDialogData
3791 newobj
= _windows
.new_PrintDialogData(*args
)
3792 self
.this
= newobj
.this
3795 def __del__(self
, destroy
=_windows
.delete_PrintDialogData
):
3798 if self
.thisown
: destroy(self
)
3801 def GetFromPage(*args
, **kwargs
):
3802 """GetFromPage() -> int"""
3803 return _windows
.PrintDialogData_GetFromPage(*args
, **kwargs
)
3805 def GetToPage(*args
, **kwargs
):
3806 """GetToPage() -> int"""
3807 return _windows
.PrintDialogData_GetToPage(*args
, **kwargs
)
3809 def GetMinPage(*args
, **kwargs
):
3810 """GetMinPage() -> int"""
3811 return _windows
.PrintDialogData_GetMinPage(*args
, **kwargs
)
3813 def GetMaxPage(*args
, **kwargs
):
3814 """GetMaxPage() -> int"""
3815 return _windows
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
3817 def GetNoCopies(*args
, **kwargs
):
3818 """GetNoCopies() -> int"""
3819 return _windows
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
3821 def GetAllPages(*args
, **kwargs
):
3822 """GetAllPages() -> bool"""
3823 return _windows
.PrintDialogData_GetAllPages(*args
, **kwargs
)
3825 def GetSelection(*args
, **kwargs
):
3826 """GetSelection() -> bool"""
3827 return _windows
.PrintDialogData_GetSelection(*args
, **kwargs
)
3829 def GetCollate(*args
, **kwargs
):
3830 """GetCollate() -> bool"""
3831 return _windows
.PrintDialogData_GetCollate(*args
, **kwargs
)
3833 def GetPrintToFile(*args
, **kwargs
):
3834 """GetPrintToFile() -> bool"""
3835 return _windows
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
3837 def GetSetupDialog(*args
, **kwargs
):
3838 """GetSetupDialog() -> bool"""
3839 return _windows
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
3841 def SetFromPage(*args
, **kwargs
):
3842 """SetFromPage(int v)"""
3843 return _windows
.PrintDialogData_SetFromPage(*args
, **kwargs
)
3845 def SetToPage(*args
, **kwargs
):
3846 """SetToPage(int v)"""
3847 return _windows
.PrintDialogData_SetToPage(*args
, **kwargs
)
3849 def SetMinPage(*args
, **kwargs
):
3850 """SetMinPage(int v)"""
3851 return _windows
.PrintDialogData_SetMinPage(*args
, **kwargs
)
3853 def SetMaxPage(*args
, **kwargs
):
3854 """SetMaxPage(int v)"""
3855 return _windows
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
3857 def SetNoCopies(*args
, **kwargs
):
3858 """SetNoCopies(int v)"""
3859 return _windows
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
3861 def SetAllPages(*args
, **kwargs
):
3862 """SetAllPages(bool flag)"""
3863 return _windows
.PrintDialogData_SetAllPages(*args
, **kwargs
)
3865 def SetSelection(*args
, **kwargs
):
3866 """SetSelection(bool flag)"""
3867 return _windows
.PrintDialogData_SetSelection(*args
, **kwargs
)
3869 def SetCollate(*args
, **kwargs
):
3870 """SetCollate(bool flag)"""
3871 return _windows
.PrintDialogData_SetCollate(*args
, **kwargs
)
3873 def SetPrintToFile(*args
, **kwargs
):
3874 """SetPrintToFile(bool flag)"""
3875 return _windows
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
3877 def SetSetupDialog(*args
, **kwargs
):
3878 """SetSetupDialog(bool flag)"""
3879 return _windows
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
3881 def EnablePrintToFile(*args
, **kwargs
):
3882 """EnablePrintToFile(bool flag)"""
3883 return _windows
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
3885 def EnableSelection(*args
, **kwargs
):
3886 """EnableSelection(bool flag)"""
3887 return _windows
.PrintDialogData_EnableSelection(*args
, **kwargs
)
3889 def EnablePageNumbers(*args
, **kwargs
):
3890 """EnablePageNumbers(bool flag)"""
3891 return _windows
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
3893 def EnableHelp(*args
, **kwargs
):
3894 """EnableHelp(bool flag)"""
3895 return _windows
.PrintDialogData_EnableHelp(*args
, **kwargs
)
3897 def GetEnablePrintToFile(*args
, **kwargs
):
3898 """GetEnablePrintToFile() -> bool"""
3899 return _windows
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
3901 def GetEnableSelection(*args
, **kwargs
):
3902 """GetEnableSelection() -> bool"""
3903 return _windows
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
3905 def GetEnablePageNumbers(*args
, **kwargs
):
3906 """GetEnablePageNumbers() -> bool"""
3907 return _windows
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
3909 def GetEnableHelp(*args
, **kwargs
):
3910 """GetEnableHelp() -> bool"""
3911 return _windows
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
3913 def Ok(*args
, **kwargs
):
3915 return _windows
.PrintDialogData_Ok(*args
, **kwargs
)
3917 def GetPrintData(*args
, **kwargs
):
3918 """GetPrintData() -> PrintData"""
3919 return _windows
.PrintDialogData_GetPrintData(*args
, **kwargs
)
3921 def SetPrintData(*args
, **kwargs
):
3922 """SetPrintData(PrintData printData)"""
3923 return _windows
.PrintDialogData_SetPrintData(*args
, **kwargs
)
3925 def __nonzero__(self
): return self
.Ok()
3927 class PrintDialogDataPtr(PrintDialogData
):
3928 def __init__(self
, this
):
3930 if not hasattr(self
,"thisown"): self
.thisown
= 0
3931 self
.__class
__ = PrintDialogData
3932 _windows
.PrintDialogData_swigregister(PrintDialogDataPtr
)
3934 class PrintDialog(Dialog
):
3936 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3937 def __init__(self
, *args
, **kwargs
):
3938 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
3939 newobj
= _windows
.new_PrintDialog(*args
, **kwargs
)
3940 self
.this
= newobj
.this
3943 self
._setOORInfo
(self
)
3945 def GetPrintDialogData(*args
, **kwargs
):
3946 """GetPrintDialogData() -> PrintDialogData"""
3947 return _windows
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
3949 def GetPrintDC(*args
, **kwargs
):
3950 """GetPrintDC() -> DC"""
3951 return _windows
.PrintDialog_GetPrintDC(*args
, **kwargs
)
3953 def ShowModal(*args
, **kwargs
):
3954 """ShowModal() -> int"""
3955 return _windows
.PrintDialog_ShowModal(*args
, **kwargs
)
3958 class PrintDialogPtr(PrintDialog
):
3959 def __init__(self
, this
):
3961 if not hasattr(self
,"thisown"): self
.thisown
= 0
3962 self
.__class
__ = PrintDialog
3963 _windows
.PrintDialog_swigregister(PrintDialogPtr
)
3965 PRINTER_NO_ERROR
= _windows
.PRINTER_NO_ERROR
3966 PRINTER_CANCELLED
= _windows
.PRINTER_CANCELLED
3967 PRINTER_ERROR
= _windows
.PRINTER_ERROR
3968 class Printer(core
.Object
):
3970 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3971 def __init__(self
, *args
, **kwargs
):
3972 """__init__(PrintDialogData data=None) -> Printer"""
3973 newobj
= _windows
.new_Printer(*args
, **kwargs
)
3974 self
.this
= newobj
.this
3977 def __del__(self
, destroy
=_windows
.delete_Printer
):
3980 if self
.thisown
: destroy(self
)
3983 def CreateAbortWindow(*args
, **kwargs
):
3984 """CreateAbortWindow(Window parent, Printout printout)"""
3985 return _windows
.Printer_CreateAbortWindow(*args
, **kwargs
)
3987 def GetPrintDialogData(*args
, **kwargs
):
3988 """GetPrintDialogData() -> PrintDialogData"""
3989 return _windows
.Printer_GetPrintDialogData(*args
, **kwargs
)
3991 def Print(*args
, **kwargs
):
3992 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
3993 return _windows
.Printer_Print(*args
, **kwargs
)
3995 def PrintDialog(*args
, **kwargs
):
3996 """PrintDialog(Window parent) -> DC"""
3997 return _windows
.Printer_PrintDialog(*args
, **kwargs
)
3999 def ReportError(*args
, **kwargs
):
4000 """ReportError(Window parent, Printout printout, String message)"""
4001 return _windows
.Printer_ReportError(*args
, **kwargs
)
4003 def Setup(*args
, **kwargs
):
4004 """Setup(Window parent) -> bool"""
4005 return _windows
.Printer_Setup(*args
, **kwargs
)
4007 def GetAbort(*args
, **kwargs
):
4008 """GetAbort() -> bool"""
4009 return _windows
.Printer_GetAbort(*args
, **kwargs
)
4011 def GetLastError(*args
, **kwargs
):
4012 """GetLastError() -> int"""
4013 return _windows
.Printer_GetLastError(*args
, **kwargs
)
4015 GetLastError
= staticmethod(GetLastError
)
4017 class PrinterPtr(Printer
):
4018 def __init__(self
, this
):
4020 if not hasattr(self
,"thisown"): self
.thisown
= 0
4021 self
.__class
__ = Printer
4022 _windows
.Printer_swigregister(PrinterPtr
)
4024 def Printer_GetLastError(*args
, **kwargs
):
4025 """Printer_GetLastError() -> int"""
4026 return _windows
.Printer_GetLastError(*args
, **kwargs
)
4028 class Printout(core
.Object
):
4030 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4031 def __init__(self
, *args
, **kwargs
):
4032 """__init__(String title=PrintoutTitleStr) -> Printout"""
4033 newobj
= _windows
.new_Printout(*args
, **kwargs
)
4034 self
.this
= newobj
.this
4037 self
._setCallbackInfo
(self
, Printout
)
4039 def _setCallbackInfo(*args
, **kwargs
):
4040 """_setCallbackInfo(PyObject self, PyObject _class)"""
4041 return _windows
.Printout__setCallbackInfo(*args
, **kwargs
)
4043 def GetTitle(*args
, **kwargs
):
4044 """GetTitle() -> String"""
4045 return _windows
.Printout_GetTitle(*args
, **kwargs
)
4047 def GetDC(*args
, **kwargs
):
4049 return _windows
.Printout_GetDC(*args
, **kwargs
)
4051 def SetDC(*args
, **kwargs
):
4053 return _windows
.Printout_SetDC(*args
, **kwargs
)
4055 def SetPageSizePixels(*args
, **kwargs
):
4056 """SetPageSizePixels(int w, int h)"""
4057 return _windows
.Printout_SetPageSizePixels(*args
, **kwargs
)
4059 def GetPageSizePixels(*args
, **kwargs
):
4060 """GetPageSizePixels() -> (w, h)"""
4061 return _windows
.Printout_GetPageSizePixels(*args
, **kwargs
)
4063 def SetPageSizeMM(*args
, **kwargs
):
4064 """SetPageSizeMM(int w, int h)"""
4065 return _windows
.Printout_SetPageSizeMM(*args
, **kwargs
)
4067 def GetPageSizeMM(*args
, **kwargs
):
4068 """GetPageSizeMM() -> (w, h)"""
4069 return _windows
.Printout_GetPageSizeMM(*args
, **kwargs
)
4071 def SetPPIScreen(*args
, **kwargs
):
4072 """SetPPIScreen(int x, int y)"""
4073 return _windows
.Printout_SetPPIScreen(*args
, **kwargs
)
4075 def GetPPIScreen(*args
, **kwargs
):
4076 """GetPPIScreen() -> (x,y)"""
4077 return _windows
.Printout_GetPPIScreen(*args
, **kwargs
)
4079 def SetPPIPrinter(*args
, **kwargs
):
4080 """SetPPIPrinter(int x, int y)"""
4081 return _windows
.Printout_SetPPIPrinter(*args
, **kwargs
)
4083 def GetPPIPrinter(*args
, **kwargs
):
4084 """GetPPIPrinter() -> (x,y)"""
4085 return _windows
.Printout_GetPPIPrinter(*args
, **kwargs
)
4087 def IsPreview(*args
, **kwargs
):
4088 """IsPreview() -> bool"""
4089 return _windows
.Printout_IsPreview(*args
, **kwargs
)
4091 def SetIsPreview(*args
, **kwargs
):
4092 """SetIsPreview(bool p)"""
4093 return _windows
.Printout_SetIsPreview(*args
, **kwargs
)
4095 def base_OnBeginDocument(*args
, **kwargs
):
4096 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
4097 return _windows
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4099 def base_OnEndDocument(*args
, **kwargs
):
4100 """base_OnEndDocument()"""
4101 return _windows
.Printout_base_OnEndDocument(*args
, **kwargs
)
4103 def base_OnBeginPrinting(*args
, **kwargs
):
4104 """base_OnBeginPrinting()"""
4105 return _windows
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4107 def base_OnEndPrinting(*args
, **kwargs
):
4108 """base_OnEndPrinting()"""
4109 return _windows
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4111 def base_OnPreparePrinting(*args
, **kwargs
):
4112 """base_OnPreparePrinting()"""
4113 return _windows
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4115 def base_HasPage(*args
, **kwargs
):
4116 """base_HasPage(int page) -> bool"""
4117 return _windows
.Printout_base_HasPage(*args
, **kwargs
)
4119 def base_GetPageInfo(*args
, **kwargs
):
4120 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4121 return _windows
.Printout_base_GetPageInfo(*args
, **kwargs
)
4124 class PrintoutPtr(Printout
):
4125 def __init__(self
, this
):
4127 if not hasattr(self
,"thisown"): self
.thisown
= 0
4128 self
.__class
__ = Printout
4129 _windows
.Printout_swigregister(PrintoutPtr
)
4131 class PreviewCanvas(ScrolledWindow
):
4133 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4134 def __init__(self
, *args
, **kwargs
):
4136 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
4137 Size size=DefaultSize, long style=0,
4138 String name=PreviewCanvasNameStr) -> PreviewCanvas
4140 newobj
= _windows
.new_PreviewCanvas(*args
, **kwargs
)
4141 self
.this
= newobj
.this
4144 self
._setOORInfo
(self
)
4147 class PreviewCanvasPtr(PreviewCanvas
):
4148 def __init__(self
, this
):
4150 if not hasattr(self
,"thisown"): self
.thisown
= 0
4151 self
.__class
__ = PreviewCanvas
4152 _windows
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4154 class PreviewFrame(Frame
):
4156 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4157 def __init__(self
, *args
, **kwargs
):
4159 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4160 Size size=DefaultSize,
4161 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4163 newobj
= _windows
.new_PreviewFrame(*args
, **kwargs
)
4164 self
.this
= newobj
.this
4167 self
._setOORInfo
(self
)
4169 def Initialize(*args
, **kwargs
):
4171 return _windows
.PreviewFrame_Initialize(*args
, **kwargs
)
4173 def CreateControlBar(*args
, **kwargs
):
4174 """CreateControlBar()"""
4175 return _windows
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4177 def CreateCanvas(*args
, **kwargs
):
4178 """CreateCanvas()"""
4179 return _windows
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4181 def GetControlBar(*args
, **kwargs
):
4182 """GetControlBar() -> PreviewControlBar"""
4183 return _windows
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4186 class PreviewFramePtr(PreviewFrame
):
4187 def __init__(self
, this
):
4189 if not hasattr(self
,"thisown"): self
.thisown
= 0
4190 self
.__class
__ = PreviewFrame
4191 _windows
.PreviewFrame_swigregister(PreviewFramePtr
)
4193 PREVIEW_PRINT
= _windows
.PREVIEW_PRINT
4194 PREVIEW_PREVIOUS
= _windows
.PREVIEW_PREVIOUS
4195 PREVIEW_NEXT
= _windows
.PREVIEW_NEXT
4196 PREVIEW_ZOOM
= _windows
.PREVIEW_ZOOM
4197 PREVIEW_FIRST
= _windows
.PREVIEW_FIRST
4198 PREVIEW_LAST
= _windows
.PREVIEW_LAST
4199 PREVIEW_GOTO
= _windows
.PREVIEW_GOTO
4200 PREVIEW_DEFAULT
= _windows
.PREVIEW_DEFAULT
4201 ID_PREVIEW_CLOSE
= _windows
.ID_PREVIEW_CLOSE
4202 ID_PREVIEW_NEXT
= _windows
.ID_PREVIEW_NEXT
4203 ID_PREVIEW_PREVIOUS
= _windows
.ID_PREVIEW_PREVIOUS
4204 ID_PREVIEW_PRINT
= _windows
.ID_PREVIEW_PRINT
4205 ID_PREVIEW_ZOOM
= _windows
.ID_PREVIEW_ZOOM
4206 ID_PREVIEW_FIRST
= _windows
.ID_PREVIEW_FIRST
4207 ID_PREVIEW_LAST
= _windows
.ID_PREVIEW_LAST
4208 ID_PREVIEW_GOTO
= _windows
.ID_PREVIEW_GOTO
4209 class PreviewControlBar(Panel
):
4211 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4212 def __init__(self
, *args
, **kwargs
):
4214 __init__(PrintPreview preview, long buttons, Window parent,
4215 Point pos=DefaultPosition, Size size=DefaultSize,
4216 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4218 newobj
= _windows
.new_PreviewControlBar(*args
, **kwargs
)
4219 self
.this
= newobj
.this
4222 self
._setOORInfo
(self
)
4224 def GetZoomControl(*args
, **kwargs
):
4225 """GetZoomControl() -> int"""
4226 return _windows
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4228 def SetZoomControl(*args
, **kwargs
):
4229 """SetZoomControl(int zoom)"""
4230 return _windows
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4232 def GetPrintPreview(*args
, **kwargs
):
4233 """GetPrintPreview() -> PrintPreview"""
4234 return _windows
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4236 def OnNext(*args
, **kwargs
):
4238 return _windows
.PreviewControlBar_OnNext(*args
, **kwargs
)
4240 def OnPrevious(*args
, **kwargs
):
4242 return _windows
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4244 def OnFirst(*args
, **kwargs
):
4246 return _windows
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4248 def OnLast(*args
, **kwargs
):
4250 return _windows
.PreviewControlBar_OnLast(*args
, **kwargs
)
4252 def OnGoto(*args
, **kwargs
):
4254 return _windows
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4257 class PreviewControlBarPtr(PreviewControlBar
):
4258 def __init__(self
, this
):
4260 if not hasattr(self
,"thisown"): self
.thisown
= 0
4261 self
.__class
__ = PreviewControlBar
4262 _windows
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4264 class PrintPreview(core
.Object
):
4266 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4267 def __init__(self
, *args
):
4269 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4270 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4272 newobj
= _windows
.new_PrintPreview(*args
)
4273 self
.this
= newobj
.this
4276 def SetCurrentPage(*args
, **kwargs
):
4277 """SetCurrentPage(int pageNum) -> bool"""
4278 return _windows
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4280 def GetCurrentPage(*args
, **kwargs
):
4281 """GetCurrentPage() -> int"""
4282 return _windows
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4284 def SetPrintout(*args
, **kwargs
):
4285 """SetPrintout(Printout printout)"""
4286 return _windows
.PrintPreview_SetPrintout(*args
, **kwargs
)
4288 def GetPrintout(*args
, **kwargs
):
4289 """GetPrintout() -> Printout"""
4290 return _windows
.PrintPreview_GetPrintout(*args
, **kwargs
)
4292 def GetPrintoutForPrinting(*args
, **kwargs
):
4293 """GetPrintoutForPrinting() -> Printout"""
4294 return _windows
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4296 def SetFrame(*args
, **kwargs
):
4297 """SetFrame(Frame frame)"""
4298 return _windows
.PrintPreview_SetFrame(*args
, **kwargs
)
4300 def SetCanvas(*args
, **kwargs
):
4301 """SetCanvas(PreviewCanvas canvas)"""
4302 return _windows
.PrintPreview_SetCanvas(*args
, **kwargs
)
4304 def GetFrame(*args
, **kwargs
):
4305 """GetFrame() -> Frame"""
4306 return _windows
.PrintPreview_GetFrame(*args
, **kwargs
)
4308 def GetCanvas(*args
, **kwargs
):
4309 """GetCanvas() -> PreviewCanvas"""
4310 return _windows
.PrintPreview_GetCanvas(*args
, **kwargs
)
4312 def PaintPage(*args
, **kwargs
):
4313 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4314 return _windows
.PrintPreview_PaintPage(*args
, **kwargs
)
4316 def DrawBlankPage(*args
, **kwargs
):
4317 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4318 return _windows
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4320 def RenderPage(*args
, **kwargs
):
4321 """RenderPage(int pageNum) -> bool"""
4322 return _windows
.PrintPreview_RenderPage(*args
, **kwargs
)
4324 def AdjustScrollbars(*args
, **kwargs
):
4325 """AdjustScrollbars(PreviewCanvas canvas)"""
4326 return _windows
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4328 def GetPrintDialogData(*args
, **kwargs
):
4329 """GetPrintDialogData() -> PrintDialogData"""
4330 return _windows
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4332 def SetZoom(*args
, **kwargs
):
4333 """SetZoom(int percent)"""
4334 return _windows
.PrintPreview_SetZoom(*args
, **kwargs
)
4336 def GetZoom(*args
, **kwargs
):
4337 """GetZoom() -> int"""
4338 return _windows
.PrintPreview_GetZoom(*args
, **kwargs
)
4340 def GetMaxPage(*args
, **kwargs
):
4341 """GetMaxPage() -> int"""
4342 return _windows
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4344 def GetMinPage(*args
, **kwargs
):
4345 """GetMinPage() -> int"""
4346 return _windows
.PrintPreview_GetMinPage(*args
, **kwargs
)
4348 def Ok(*args
, **kwargs
):
4350 return _windows
.PrintPreview_Ok(*args
, **kwargs
)
4352 def SetOk(*args
, **kwargs
):
4353 """SetOk(bool ok)"""
4354 return _windows
.PrintPreview_SetOk(*args
, **kwargs
)
4356 def Print(*args
, **kwargs
):
4357 """Print(bool interactive) -> bool"""
4358 return _windows
.PrintPreview_Print(*args
, **kwargs
)
4360 def DetermineScaling(*args
, **kwargs
):
4361 """DetermineScaling()"""
4362 return _windows
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4364 def __nonzero__(self
): return self
.Ok()
4366 class PrintPreviewPtr(PrintPreview
):
4367 def __init__(self
, this
):
4369 if not hasattr(self
,"thisown"): self
.thisown
= 0
4370 self
.__class
__ = PrintPreview
4371 _windows
.PrintPreview_swigregister(PrintPreviewPtr
)
4373 class PyPrintPreview(PrintPreview
):
4375 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4376 def __init__(self
, *args
):
4378 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4379 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4381 newobj
= _windows
.new_PyPrintPreview(*args
)
4382 self
.this
= newobj
.this
4385 self
._setCallbackInfo
(self
, PyPrintPreview
)
4387 def _setCallbackInfo(*args
, **kwargs
):
4388 """_setCallbackInfo(PyObject self, PyObject _class)"""
4389 return _windows
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4391 def base_SetCurrentPage(*args
, **kwargs
):
4392 """base_SetCurrentPage(int pageNum) -> bool"""
4393 return _windows
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4395 def base_PaintPage(*args
, **kwargs
):
4396 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4397 return _windows
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4399 def base_DrawBlankPage(*args
, **kwargs
):
4400 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4401 return _windows
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4403 def base_RenderPage(*args
, **kwargs
):
4404 """base_RenderPage(int pageNum) -> bool"""
4405 return _windows
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4407 def base_SetZoom(*args
, **kwargs
):
4408 """base_SetZoom(int percent)"""
4409 return _windows
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4411 def base_Print(*args
, **kwargs
):
4412 """base_Print(bool interactive) -> bool"""
4413 return _windows
.PyPrintPreview_base_Print(*args
, **kwargs
)
4415 def base_DetermineScaling(*args
, **kwargs
):
4416 """base_DetermineScaling()"""
4417 return _windows
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4420 class PyPrintPreviewPtr(PyPrintPreview
):
4421 def __init__(self
, this
):
4423 if not hasattr(self
,"thisown"): self
.thisown
= 0
4424 self
.__class
__ = PyPrintPreview
4425 _windows
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4427 class PyPreviewFrame(PreviewFrame
):
4429 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4430 def __init__(self
, *args
, **kwargs
):
4432 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4433 Size size=DefaultSize,
4434 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4436 newobj
= _windows
.new_PyPreviewFrame(*args
, **kwargs
)
4437 self
.this
= newobj
.this
4440 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4442 def _setCallbackInfo(*args
, **kwargs
):
4443 """_setCallbackInfo(PyObject self, PyObject _class)"""
4444 return _windows
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4446 def SetPreviewCanvas(*args
, **kwargs
):
4447 """SetPreviewCanvas(PreviewCanvas canvas)"""
4448 return _windows
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4450 def SetControlBar(*args
, **kwargs
):
4451 """SetControlBar(PreviewControlBar bar)"""
4452 return _windows
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4454 def base_Initialize(*args
, **kwargs
):
4455 """base_Initialize()"""
4456 return _windows
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4458 def base_CreateCanvas(*args
, **kwargs
):
4459 """base_CreateCanvas()"""
4460 return _windows
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4462 def base_CreateControlBar(*args
, **kwargs
):
4463 """base_CreateControlBar()"""
4464 return _windows
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4467 class PyPreviewFramePtr(PyPreviewFrame
):
4468 def __init__(self
, this
):
4470 if not hasattr(self
,"thisown"): self
.thisown
= 0
4471 self
.__class
__ = PyPreviewFrame
4472 _windows
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4474 class PyPreviewControlBar(PreviewControlBar
):
4476 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4477 def __init__(self
, *args
, **kwargs
):
4479 __init__(PrintPreview preview, long buttons, Window parent,
4480 Point pos=DefaultPosition, Size size=DefaultSize,
4481 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4483 newobj
= _windows
.new_PyPreviewControlBar(*args
, **kwargs
)
4484 self
.this
= newobj
.this
4487 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4489 def _setCallbackInfo(*args
, **kwargs
):
4490 """_setCallbackInfo(PyObject self, PyObject _class)"""
4491 return _windows
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4493 def SetPrintPreview(*args
, **kwargs
):
4494 """SetPrintPreview(PrintPreview preview)"""
4495 return _windows
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4497 def base_CreateButtons(*args
, **kwargs
):
4498 """base_CreateButtons()"""
4499 return _windows
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4501 def base_SetZoomControl(*args
, **kwargs
):
4502 """base_SetZoomControl(int zoom)"""
4503 return _windows
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4506 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4507 def __init__(self
, this
):
4509 if not hasattr(self
,"thisown"): self
.thisown
= 0
4510 self
.__class
__ = PyPreviewControlBar
4511 _windows
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)