1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 class Panel(core
.Window
):
12 return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
13 def __init__(self
, *args
, **kwargs
):
15 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
16 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
17 String name=PanelNameStr) -> Panel
19 newobj
= _windows
.new_Panel(*args
, **kwargs
)
20 self
.this
= newobj
.this
23 self
._setOORInfo
(self
)
25 def Create(*args
, **kwargs
):
27 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
28 long style=wxTAB_TRAVERSAL|wxNO_BORDER,
29 String name=PanelNameStr) -> bool
31 Create the GUI part of the Window for 2-phase creation mode.
33 return _windows
.Panel_Create(*args
, **kwargs
)
35 def InitDialog(*args
, **kwargs
):
37 return _windows
.Panel_InitDialog(*args
, **kwargs
)
40 class PanelPtr(Panel
):
41 def __init__(self
, this
):
43 if not hasattr(self
,"thisown"): self
.thisown
= 0
44 self
.__class
__ = Panel
45 _windows
.Panel_swigregister(PanelPtr
)
47 def PrePanel(*args
, **kwargs
):
48 """PrePanel() -> Panel"""
49 val
= _windows
.new_PrePanel(*args
, **kwargs
)
53 #---------------------------------------------------------------------------
55 class ScrolledWindow(Panel
):
57 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
58 def __init__(self
, *args
, **kwargs
):
60 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
61 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
62 String name=PanelNameStr) -> ScrolledWindow
64 newobj
= _windows
.new_ScrolledWindow(*args
, **kwargs
)
65 self
.this
= newobj
.this
68 self
._setOORInfo
(self
)
70 def Create(*args
, **kwargs
):
72 Create(Window parent, int id=-1, Point pos=DefaultPosition,
73 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
74 String name=PanelNameStr) -> bool
76 Create the GUI part of the Window for 2-phase creation mode.
78 return _windows
.ScrolledWindow_Create(*args
, **kwargs
)
80 def SetScrollbars(*args
, **kwargs
):
82 SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
83 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
85 return _windows
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
87 def Scroll(*args
, **kwargs
):
88 """Scroll(int x, int y)"""
89 return _windows
.ScrolledWindow_Scroll(*args
, **kwargs
)
91 def GetScrollPageSize(*args
, **kwargs
):
92 """GetScrollPageSize(int orient) -> int"""
93 return _windows
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
95 def SetScrollPageSize(*args
, **kwargs
):
96 """SetScrollPageSize(int orient, int pageSize)"""
97 return _windows
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
99 def SetScrollRate(*args
, **kwargs
):
100 """SetScrollRate(int xstep, int ystep)"""
101 return _windows
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
103 def GetScrollPixelsPerUnit(*args
, **kwargs
):
105 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
107 Get the size of one logical unit in physical units.
109 return _windows
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
111 def EnableScrolling(*args
, **kwargs
):
112 """EnableScrolling(bool x_scrolling, bool y_scrolling)"""
113 return _windows
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
115 def GetViewStart(*args
, **kwargs
):
117 GetViewStart() -> (x,y)
121 return _windows
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
123 def SetScale(*args
, **kwargs
):
124 """SetScale(double xs, double ys)"""
125 return _windows
.ScrolledWindow_SetScale(*args
, **kwargs
)
127 def GetScaleX(*args
, **kwargs
):
128 """GetScaleX() -> double"""
129 return _windows
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
131 def GetScaleY(*args
, **kwargs
):
132 """GetScaleY() -> double"""
133 return _windows
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
135 def CalcScrolledPosition(*args
):
137 CalcScrolledPosition(Point pt) -> Point
138 CalcScrolledPosition(int x, int y) -> (sx, sy)
140 Translate between scrolled and unscrolled coordinates.
142 return _windows
.ScrolledWindow_CalcScrolledPosition(*args
)
144 def CalcUnscrolledPosition(*args
):
146 CalcUnscrolledPosition(Point pt) -> Point
147 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
149 Translate between scrolled and unscrolled coordinates.
151 return _windows
.ScrolledWindow_CalcUnscrolledPosition(*args
)
153 def AdjustScrollbars(*args
, **kwargs
):
154 """AdjustScrollbars()"""
155 return _windows
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
157 def CalcScrollInc(*args
, **kwargs
):
158 """CalcScrollInc(ScrollWinEvent event) -> int"""
159 return _windows
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
161 def SetTargetWindow(*args
, **kwargs
):
162 """SetTargetWindow(Window target)"""
163 return _windows
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
165 def GetTargetWindow(*args
, **kwargs
):
166 """GetTargetWindow() -> Window"""
167 return _windows
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
170 class ScrolledWindowPtr(ScrolledWindow
):
171 def __init__(self
, this
):
173 if not hasattr(self
,"thisown"): self
.thisown
= 0
174 self
.__class
__ = ScrolledWindow
175 _windows
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
177 def PreScrolledWindow(*args
, **kwargs
):
178 """PreScrolledWindow() -> ScrolledWindow"""
179 val
= _windows
.new_PreScrolledWindow(*args
, **kwargs
)
183 #---------------------------------------------------------------------------
185 FULLSCREEN_NOMENUBAR
= _windows
.FULLSCREEN_NOMENUBAR
186 FULLSCREEN_NOTOOLBAR
= _windows
.FULLSCREEN_NOTOOLBAR
187 FULLSCREEN_NOSTATUSBAR
= _windows
.FULLSCREEN_NOSTATUSBAR
188 FULLSCREEN_NOBORDER
= _windows
.FULLSCREEN_NOBORDER
189 FULLSCREEN_NOCAPTION
= _windows
.FULLSCREEN_NOCAPTION
190 FULLSCREEN_ALL
= _windows
.FULLSCREEN_ALL
191 TOPLEVEL_EX_DIALOG
= _windows
.TOPLEVEL_EX_DIALOG
192 class TopLevelWindow(core
.Window
):
193 def __init__(self
): raise RuntimeError, "No constructor defined"
195 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
196 def Maximize(*args
, **kwargs
):
197 """Maximize(bool maximize=True)"""
198 return _windows
.TopLevelWindow_Maximize(*args
, **kwargs
)
200 def Restore(*args
, **kwargs
):
202 return _windows
.TopLevelWindow_Restore(*args
, **kwargs
)
204 def Iconize(*args
, **kwargs
):
205 """Iconize(bool iconize=True)"""
206 return _windows
.TopLevelWindow_Iconize(*args
, **kwargs
)
208 def IsMaximized(*args
, **kwargs
):
209 """IsMaximized() -> bool"""
210 return _windows
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
212 def IsIconized(*args
, **kwargs
):
213 """IsIconized() -> bool"""
214 return _windows
.TopLevelWindow_IsIconized(*args
, **kwargs
)
216 def GetIcon(*args
, **kwargs
):
217 """GetIcon() -> Icon"""
218 return _windows
.TopLevelWindow_GetIcon(*args
, **kwargs
)
220 def SetIcon(*args
, **kwargs
):
221 """SetIcon(Icon icon)"""
222 return _windows
.TopLevelWindow_SetIcon(*args
, **kwargs
)
224 def SetIcons(*args
, **kwargs
):
225 """SetIcons(wxIconBundle icons)"""
226 return _windows
.TopLevelWindow_SetIcons(*args
, **kwargs
)
228 def ShowFullScreen(*args
, **kwargs
):
229 """ShowFullScreen(bool show, long style=FULLSCREEN_ALL) -> bool"""
230 return _windows
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
232 def IsFullScreen(*args
, **kwargs
):
233 """IsFullScreen() -> bool"""
234 return _windows
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
236 def SetTitle(*args
, **kwargs
):
238 SetTitle(String title)
240 Sets the window's title. Applicable only to frames and dialogs.
242 return _windows
.TopLevelWindow_SetTitle(*args
, **kwargs
)
244 def GetTitle(*args
, **kwargs
):
248 Gets the window's title. Applicable only to frames and dialogs.
250 return _windows
.TopLevelWindow_GetTitle(*args
, **kwargs
)
252 def SetShape(*args
, **kwargs
):
253 """SetShape(Region region) -> bool"""
254 return _windows
.TopLevelWindow_SetShape(*args
, **kwargs
)
257 class TopLevelWindowPtr(TopLevelWindow
):
258 def __init__(self
, this
):
260 if not hasattr(self
,"thisown"): self
.thisown
= 0
261 self
.__class
__ = TopLevelWindow
262 _windows
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
264 FrameNameStr
= cvar
.FrameNameStr
265 DialogNameStr
= cvar
.DialogNameStr
266 StatusLineNameStr
= cvar
.StatusLineNameStr
267 ToolBarNameStr
= cvar
.ToolBarNameStr
269 #---------------------------------------------------------------------------
271 class Frame(TopLevelWindow
):
273 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
274 def __init__(self
, *args
, **kwargs
):
276 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
277 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
278 String name=FrameNameStr) -> Frame
280 newobj
= _windows
.new_Frame(*args
, **kwargs
)
281 self
.this
= newobj
.this
284 self
._setOORInfo
(self
)
286 def Create(*args
, **kwargs
):
288 Create(Window parent, int id, String title, Point pos=DefaultPosition,
289 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
290 String name=FrameNameStr) -> bool
292 return _windows
.Frame_Create(*args
, **kwargs
)
294 def GetClientAreaOrigin(*args
, **kwargs
):
296 GetClientAreaOrigin() -> Point
298 Get the origin of the client area of the window relative to the
299 window's top left corner (the client area may be shifted because of
300 the borders, scrollbars, other decorations...)
302 return _windows
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
304 def SendSizeEvent(*args
, **kwargs
):
305 """SendSizeEvent()"""
306 return _windows
.Frame_SendSizeEvent(*args
, **kwargs
)
308 def SetMenuBar(*args
, **kwargs
):
309 """SetMenuBar(MenuBar menubar)"""
310 return _windows
.Frame_SetMenuBar(*args
, **kwargs
)
312 def GetMenuBar(*args
, **kwargs
):
313 """GetMenuBar() -> MenuBar"""
314 return _windows
.Frame_GetMenuBar(*args
, **kwargs
)
316 def ProcessCommand(*args
, **kwargs
):
317 """ProcessCommand(int winid) -> bool"""
318 return _windows
.Frame_ProcessCommand(*args
, **kwargs
)
320 Command
= ProcessCommand
321 def CreateStatusBar(*args
, **kwargs
):
323 CreateStatusBar(int number=1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
324 int winid=0, String name=StatusLineNameStr) -> StatusBar
326 return _windows
.Frame_CreateStatusBar(*args
, **kwargs
)
328 def GetStatusBar(*args
, **kwargs
):
329 """GetStatusBar() -> StatusBar"""
330 return _windows
.Frame_GetStatusBar(*args
, **kwargs
)
332 def SetStatusBar(*args
, **kwargs
):
333 """SetStatusBar(StatusBar statBar)"""
334 return _windows
.Frame_SetStatusBar(*args
, **kwargs
)
336 def SetStatusText(*args
, **kwargs
):
337 """SetStatusText(String text, int number=0)"""
338 return _windows
.Frame_SetStatusText(*args
, **kwargs
)
340 def SetStatusWidths(*args
, **kwargs
):
341 """SetStatusWidths(int widths, int widths_field)"""
342 return _windows
.Frame_SetStatusWidths(*args
, **kwargs
)
344 def PushStatusText(*args
, **kwargs
):
345 """PushStatusText(String text, int number=0)"""
346 return _windows
.Frame_PushStatusText(*args
, **kwargs
)
348 def PopStatusText(*args
, **kwargs
):
349 """PopStatusText(int number=0)"""
350 return _windows
.Frame_PopStatusText(*args
, **kwargs
)
352 def SetStatusBarPane(*args
, **kwargs
):
353 """SetStatusBarPane(int n)"""
354 return _windows
.Frame_SetStatusBarPane(*args
, **kwargs
)
356 def GetStatusBarPane(*args
, **kwargs
):
357 """GetStatusBarPane() -> int"""
358 return _windows
.Frame_GetStatusBarPane(*args
, **kwargs
)
360 def CreateToolBar(*args
, **kwargs
):
361 """CreateToolBar(long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
362 return _windows
.Frame_CreateToolBar(*args
, **kwargs
)
364 def GetToolBar(*args
, **kwargs
):
365 """GetToolBar() -> wxToolBar"""
366 return _windows
.Frame_GetToolBar(*args
, **kwargs
)
368 def SetToolBar(*args
, **kwargs
):
369 """SetToolBar(wxToolBar toolbar)"""
370 return _windows
.Frame_SetToolBar(*args
, **kwargs
)
372 def DoGiveHelp(*args
, **kwargs
):
373 """DoGiveHelp(String text, bool show)"""
374 return _windows
.Frame_DoGiveHelp(*args
, **kwargs
)
376 def DoMenuUpdates(*args
, **kwargs
):
377 """DoMenuUpdates(Menu menu=None)"""
378 return _windows
.Frame_DoMenuUpdates(*args
, **kwargs
)
381 class FramePtr(Frame
):
382 def __init__(self
, this
):
384 if not hasattr(self
,"thisown"): self
.thisown
= 0
385 self
.__class
__ = Frame
386 _windows
.Frame_swigregister(FramePtr
)
388 def PreFrame(*args
, **kwargs
):
389 """PreFrame() -> Frame"""
390 val
= _windows
.new_PreFrame(*args
, **kwargs
)
394 #---------------------------------------------------------------------------
396 class Dialog(TopLevelWindow
):
398 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
399 def __init__(self
, *args
, **kwargs
):
401 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
402 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
403 String name=DialogNameStr) -> Dialog
405 newobj
= _windows
.new_Dialog(*args
, **kwargs
)
406 self
.this
= newobj
.this
409 self
._setOORInfo
(self
)
411 def Create(*args
, **kwargs
):
413 Create(Window parent, int id, String title, Point pos=DefaultPosition,
414 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
415 String name=DialogNameStr) -> bool
417 return _windows
.Dialog_Create(*args
, **kwargs
)
419 def SetReturnCode(*args
, **kwargs
):
420 """SetReturnCode(int returnCode)"""
421 return _windows
.Dialog_SetReturnCode(*args
, **kwargs
)
423 def GetReturnCode(*args
, **kwargs
):
424 """GetReturnCode() -> int"""
425 return _windows
.Dialog_GetReturnCode(*args
, **kwargs
)
427 def CreateTextSizer(*args
, **kwargs
):
428 """CreateTextSizer(String message) -> Sizer"""
429 return _windows
.Dialog_CreateTextSizer(*args
, **kwargs
)
431 def CreateButtonSizer(*args
, **kwargs
):
432 """CreateButtonSizer(long flags) -> Sizer"""
433 return _windows
.Dialog_CreateButtonSizer(*args
, **kwargs
)
435 def IsModal(*args
, **kwargs
):
436 """IsModal() -> bool"""
437 return _windows
.Dialog_IsModal(*args
, **kwargs
)
439 def ShowModal(*args
, **kwargs
):
440 """ShowModal() -> int"""
441 return _windows
.Dialog_ShowModal(*args
, **kwargs
)
443 def EndModal(*args
, **kwargs
):
444 """EndModal(int retCode)"""
445 return _windows
.Dialog_EndModal(*args
, **kwargs
)
447 def IsModalShowing(*args
, **kwargs
):
448 """IsModalShowing() -> bool"""
449 return _windows
.Dialog_IsModalShowing(*args
, **kwargs
)
452 class DialogPtr(Dialog
):
453 def __init__(self
, this
):
455 if not hasattr(self
,"thisown"): self
.thisown
= 0
456 self
.__class
__ = Dialog
457 _windows
.Dialog_swigregister(DialogPtr
)
459 def PreDialog(*args
, **kwargs
):
460 """PreDialog() -> Dialog"""
461 val
= _windows
.new_PreDialog(*args
, **kwargs
)
465 #---------------------------------------------------------------------------
467 class MiniFrame(Frame
):
469 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
470 def __init__(self
, *args
, **kwargs
):
472 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
473 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
474 String name=FrameNameStr) -> MiniFrame
476 newobj
= _windows
.new_MiniFrame(*args
, **kwargs
)
477 self
.this
= newobj
.this
480 self
._setOORInfo
(self
)
482 def Create(*args
, **kwargs
):
484 Create(Window parent, int id, String title, Point pos=DefaultPosition,
485 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
486 String name=FrameNameStr) -> bool
488 return _windows
.MiniFrame_Create(*args
, **kwargs
)
491 class MiniFramePtr(MiniFrame
):
492 def __init__(self
, this
):
494 if not hasattr(self
,"thisown"): self
.thisown
= 0
495 self
.__class
__ = MiniFrame
496 _windows
.MiniFrame_swigregister(MiniFramePtr
)
498 def PreMiniFrame(*args
, **kwargs
):
499 """PreMiniFrame() -> MiniFrame"""
500 val
= _windows
.new_PreMiniFrame(*args
, **kwargs
)
504 #---------------------------------------------------------------------------
506 SPLASH_CENTRE_ON_PARENT
= _windows
.SPLASH_CENTRE_ON_PARENT
507 SPLASH_CENTRE_ON_SCREEN
= _windows
.SPLASH_CENTRE_ON_SCREEN
508 SPLASH_NO_CENTRE
= _windows
.SPLASH_NO_CENTRE
509 SPLASH_TIMEOUT
= _windows
.SPLASH_TIMEOUT
510 SPLASH_NO_TIMEOUT
= _windows
.SPLASH_NO_TIMEOUT
511 class SplashScreenWindow(core
.Window
):
513 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
514 def __init__(self
, *args
, **kwargs
):
516 __init__(Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
517 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
519 newobj
= _windows
.new_SplashScreenWindow(*args
, **kwargs
)
520 self
.this
= newobj
.this
523 self
._setOORInfo
(self
)
525 def SetBitmap(*args
, **kwargs
):
526 """SetBitmap(Bitmap bitmap)"""
527 return _windows
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
529 def GetBitmap(*args
, **kwargs
):
530 """GetBitmap() -> Bitmap"""
531 return _windows
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
534 class SplashScreenWindowPtr(SplashScreenWindow
):
535 def __init__(self
, this
):
537 if not hasattr(self
,"thisown"): self
.thisown
= 0
538 self
.__class
__ = SplashScreenWindow
539 _windows
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
541 class SplashScreen(Frame
):
543 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
544 def __init__(self
, *args
, **kwargs
):
546 __init__(Bitmap bitmap, long splashStyle, int milliseconds,
547 Window parent, int id, Point pos=DefaultPosition,
548 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
550 newobj
= _windows
.new_SplashScreen(*args
, **kwargs
)
551 self
.this
= newobj
.this
554 self
._setOORInfo
(self
)
556 def GetSplashStyle(*args
, **kwargs
):
557 """GetSplashStyle() -> long"""
558 return _windows
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
560 def GetSplashWindow(*args
, **kwargs
):
561 """GetSplashWindow() -> SplashScreenWindow"""
562 return _windows
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
564 def GetTimeout(*args
, **kwargs
):
565 """GetTimeout() -> int"""
566 return _windows
.SplashScreen_GetTimeout(*args
, **kwargs
)
569 class SplashScreenPtr(SplashScreen
):
570 def __init__(self
, this
):
572 if not hasattr(self
,"thisown"): self
.thisown
= 0
573 self
.__class
__ = SplashScreen
574 _windows
.SplashScreen_swigregister(SplashScreenPtr
)
576 #---------------------------------------------------------------------------
578 class StatusBar(core
.Window
):
580 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
581 def __init__(self
, *args
, **kwargs
):
583 __init__(Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
584 String name=StatusLineNameStr) -> StatusBar
586 newobj
= _windows
.new_StatusBar(*args
, **kwargs
)
587 self
.this
= newobj
.this
590 self
._setOORInfo
(self
)
592 def Create(*args
, **kwargs
):
593 """Create(Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
594 return _windows
.StatusBar_Create(*args
, **kwargs
)
596 def SetFieldsCount(*args
, **kwargs
):
597 """SetFieldsCount(int number=1)"""
598 return _windows
.StatusBar_SetFieldsCount(*args
, **kwargs
)
600 def GetFieldsCount(*args
, **kwargs
):
601 """GetFieldsCount() -> int"""
602 return _windows
.StatusBar_GetFieldsCount(*args
, **kwargs
)
604 def SetStatusText(*args
, **kwargs
):
605 """SetStatusText(String text, int number=0)"""
606 return _windows
.StatusBar_SetStatusText(*args
, **kwargs
)
608 def GetStatusText(*args
, **kwargs
):
609 """GetStatusText(int number=0) -> String"""
610 return _windows
.StatusBar_GetStatusText(*args
, **kwargs
)
612 def PushStatusText(*args
, **kwargs
):
613 """PushStatusText(String text, int number=0)"""
614 return _windows
.StatusBar_PushStatusText(*args
, **kwargs
)
616 def PopStatusText(*args
, **kwargs
):
617 """PopStatusText(int number=0)"""
618 return _windows
.StatusBar_PopStatusText(*args
, **kwargs
)
620 def SetStatusWidths(*args
, **kwargs
):
621 """SetStatusWidths(int widths, int widths_field)"""
622 return _windows
.StatusBar_SetStatusWidths(*args
, **kwargs
)
624 def GetFieldRect(*args
, **kwargs
):
625 """GetFieldRect(int i) -> Rect"""
626 return _windows
.StatusBar_GetFieldRect(*args
, **kwargs
)
628 def SetMinHeight(*args
, **kwargs
):
629 """SetMinHeight(int height)"""
630 return _windows
.StatusBar_SetMinHeight(*args
, **kwargs
)
632 def GetBorderX(*args
, **kwargs
):
633 """GetBorderX() -> int"""
634 return _windows
.StatusBar_GetBorderX(*args
, **kwargs
)
636 def GetBorderY(*args
, **kwargs
):
637 """GetBorderY() -> int"""
638 return _windows
.StatusBar_GetBorderY(*args
, **kwargs
)
641 class StatusBarPtr(StatusBar
):
642 def __init__(self
, this
):
644 if not hasattr(self
,"thisown"): self
.thisown
= 0
645 self
.__class
__ = StatusBar
646 _windows
.StatusBar_swigregister(StatusBarPtr
)
648 def PreStatusBar(*args
, **kwargs
):
649 """PreStatusBar() -> StatusBar"""
650 val
= _windows
.new_PreStatusBar(*args
, **kwargs
)
654 #---------------------------------------------------------------------------
656 SP_NOBORDER
= _windows
.SP_NOBORDER
657 SP_NOSASH
= _windows
.SP_NOSASH
658 SP_PERMIT_UNSPLIT
= _windows
.SP_PERMIT_UNSPLIT
659 SP_LIVE_UPDATE
= _windows
.SP_LIVE_UPDATE
660 SP_3DSASH
= _windows
.SP_3DSASH
661 SP_3DBORDER
= _windows
.SP_3DBORDER
662 SP_NO_XP_THEME
= _windows
.SP_NO_XP_THEME
663 SP_BORDER
= _windows
.SP_BORDER
664 SP_3D
= _windows
.SP_3D
665 SPLIT_HORIZONTAL
= _windows
.SPLIT_HORIZONTAL
666 SPLIT_VERTICAL
= _windows
.SPLIT_VERTICAL
667 SPLIT_DRAG_NONE
= _windows
.SPLIT_DRAG_NONE
668 SPLIT_DRAG_DRAGGING
= _windows
.SPLIT_DRAG_DRAGGING
669 SPLIT_DRAG_LEFT_DOWN
= _windows
.SPLIT_DRAG_LEFT_DOWN
670 class SplitterWindow(core
.Window
):
672 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
673 def __init__(self
, *args
, **kwargs
):
675 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
676 long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
678 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
679 newobj
= _windows
.new_SplitterWindow(*args
, **kwargs
)
680 self
.this
= newobj
.this
683 self
._setOORInfo
(self
)
685 def Create(*args
, **kwargs
):
687 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
688 long style=SP_3D, String name=SplitterNameStr) -> bool
690 return _windows
.SplitterWindow_Create(*args
, **kwargs
)
692 def GetWindow1(*args
, **kwargs
):
693 """GetWindow1() -> Window"""
694 return _windows
.SplitterWindow_GetWindow1(*args
, **kwargs
)
696 def GetWindow2(*args
, **kwargs
):
697 """GetWindow2() -> Window"""
698 return _windows
.SplitterWindow_GetWindow2(*args
, **kwargs
)
700 def SetSplitMode(*args
, **kwargs
):
701 """SetSplitMode(int mode)"""
702 return _windows
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
704 def GetSplitMode(*args
, **kwargs
):
705 """GetSplitMode() -> int"""
706 return _windows
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
708 def Initialize(*args
, **kwargs
):
709 """Initialize(Window window)"""
710 return _windows
.SplitterWindow_Initialize(*args
, **kwargs
)
712 def SplitVertically(*args
, **kwargs
):
713 """SplitVertically(Window window1, Window window2, int sashPosition=0) -> bool"""
714 return _windows
.SplitterWindow_SplitVertically(*args
, **kwargs
)
716 def SplitHorizontally(*args
, **kwargs
):
717 """SplitHorizontally(Window window1, Window window2, int sashPosition=0) -> bool"""
718 return _windows
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
720 def Unsplit(*args
, **kwargs
):
721 """Unsplit(Window toRemove=None) -> bool"""
722 return _windows
.SplitterWindow_Unsplit(*args
, **kwargs
)
724 def ReplaceWindow(*args
, **kwargs
):
725 """ReplaceWindow(Window winOld, Window winNew) -> bool"""
726 return _windows
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
728 def IsSplit(*args
, **kwargs
):
729 """IsSplit() -> bool"""
730 return _windows
.SplitterWindow_IsSplit(*args
, **kwargs
)
732 def SetSashSize(*args
, **kwargs
):
733 """SetSashSize(int width)"""
734 return _windows
.SplitterWindow_SetSashSize(*args
, **kwargs
)
736 def SetBorderSize(*args
, **kwargs
):
737 """SetBorderSize(int width)"""
738 return _windows
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
740 def GetSashSize(*args
, **kwargs
):
741 """GetSashSize() -> int"""
742 return _windows
.SplitterWindow_GetSashSize(*args
, **kwargs
)
744 def GetBorderSize(*args
, **kwargs
):
745 """GetBorderSize() -> int"""
746 return _windows
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
748 def SetSashPosition(*args
, **kwargs
):
749 """SetSashPosition(int position, bool redraw=True)"""
750 return _windows
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
752 def GetSashPosition(*args
, **kwargs
):
753 """GetSashPosition() -> int"""
754 return _windows
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
756 def SetMinimumPaneSize(*args
, **kwargs
):
757 """SetMinimumPaneSize(int min)"""
758 return _windows
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
760 def GetMinimumPaneSize(*args
, **kwargs
):
761 """GetMinimumPaneSize() -> int"""
762 return _windows
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
764 def SashHitTest(*args
, **kwargs
):
765 """SashHitTest(int x, int y, int tolerance=5) -> bool"""
766 return _windows
.SplitterWindow_SashHitTest(*args
, **kwargs
)
768 def SizeWindows(*args
, **kwargs
):
770 return _windows
.SplitterWindow_SizeWindows(*args
, **kwargs
)
772 def SetNeedUpdating(*args
, **kwargs
):
773 """SetNeedUpdating(bool needUpdating)"""
774 return _windows
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
776 def GetNeedUpdating(*args
, **kwargs
):
777 """GetNeedUpdating() -> bool"""
778 return _windows
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
781 class SplitterWindowPtr(SplitterWindow
):
782 def __init__(self
, this
):
784 if not hasattr(self
,"thisown"): self
.thisown
= 0
785 self
.__class
__ = SplitterWindow
786 _windows
.SplitterWindow_swigregister(SplitterWindowPtr
)
787 SplitterNameStr
= cvar
.SplitterNameStr
789 def PreSplitterWindow(*args
, **kwargs
):
790 """PreSplitterWindow() -> SplitterWindow"""
791 val
= _windows
.new_PreSplitterWindow(*args
, **kwargs
)
795 class SplitterEvent(core
.NotifyEvent
):
797 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
798 def __init__(self
, *args
, **kwargs
):
799 """__init__(wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent"""
800 newobj
= _windows
.new_SplitterEvent(*args
, **kwargs
)
801 self
.this
= newobj
.this
804 def SetSashPosition(*args
, **kwargs
):
805 """SetSashPosition(int pos)"""
806 return _windows
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
808 def GetSashPosition(*args
, **kwargs
):
809 """GetSashPosition() -> int"""
810 return _windows
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
812 def GetWindowBeingRemoved(*args
, **kwargs
):
813 """GetWindowBeingRemoved() -> Window"""
814 return _windows
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
816 def GetX(*args
, **kwargs
):
818 return _windows
.SplitterEvent_GetX(*args
, **kwargs
)
820 def GetY(*args
, **kwargs
):
822 return _windows
.SplitterEvent_GetY(*args
, **kwargs
)
825 class SplitterEventPtr(SplitterEvent
):
826 def __init__(self
, this
):
828 if not hasattr(self
,"thisown"): self
.thisown
= 0
829 self
.__class
__ = SplitterEvent
830 _windows
.SplitterEvent_swigregister(SplitterEventPtr
)
832 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
833 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
834 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
835 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows
.wxEVT_COMMAND_SPLITTER_UNSPLIT
836 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
837 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
838 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
839 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
841 #---------------------------------------------------------------------------
843 SASH_DRAG_NONE
= _windows
.SASH_DRAG_NONE
844 SASH_DRAG_DRAGGING
= _windows
.SASH_DRAG_DRAGGING
845 SASH_DRAG_LEFT_DOWN
= _windows
.SASH_DRAG_LEFT_DOWN
846 SW_NOBORDER
= _windows
.SW_NOBORDER
847 SW_BORDER
= _windows
.SW_BORDER
848 SW_3DSASH
= _windows
.SW_3DSASH
849 SW_3DBORDER
= _windows
.SW_3DBORDER
850 SW_3D
= _windows
.SW_3D
851 SASH_TOP
= _windows
.SASH_TOP
852 SASH_RIGHT
= _windows
.SASH_RIGHT
853 SASH_BOTTOM
= _windows
.SASH_BOTTOM
854 SASH_LEFT
= _windows
.SASH_LEFT
855 SASH_NONE
= _windows
.SASH_NONE
856 class SashWindow(core
.Window
):
858 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
859 def __init__(self
, *args
, **kwargs
):
861 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
862 long style=wxCLIP_CHILDREN|wxSW_3D,
863 String name=SashNameStr) -> SashWindow
865 newobj
= _windows
.new_SashWindow(*args
, **kwargs
)
866 self
.this
= newobj
.this
869 self
._setOORInfo
(self
)
871 def Create(*args
, **kwargs
):
873 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
874 long style=wxCLIP_CHILDREN|wxSW_3D,
875 String name=SashNameStr) -> bool
877 return _windows
.SashWindow_Create(*args
, **kwargs
)
879 def SetSashVisible(*args
, **kwargs
):
880 """SetSashVisible(int edge, bool sash)"""
881 return _windows
.SashWindow_SetSashVisible(*args
, **kwargs
)
883 def GetSashVisible(*args
, **kwargs
):
884 """GetSashVisible(int edge) -> bool"""
885 return _windows
.SashWindow_GetSashVisible(*args
, **kwargs
)
887 def SetSashBorder(*args
, **kwargs
):
888 """SetSashBorder(int edge, bool border)"""
889 return _windows
.SashWindow_SetSashBorder(*args
, **kwargs
)
891 def HasBorder(*args
, **kwargs
):
892 """HasBorder(int edge) -> bool"""
893 return _windows
.SashWindow_HasBorder(*args
, **kwargs
)
895 def GetEdgeMargin(*args
, **kwargs
):
896 """GetEdgeMargin(int edge) -> int"""
897 return _windows
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
899 def SetDefaultBorderSize(*args
, **kwargs
):
900 """SetDefaultBorderSize(int width)"""
901 return _windows
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
903 def GetDefaultBorderSize(*args
, **kwargs
):
904 """GetDefaultBorderSize() -> int"""
905 return _windows
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
907 def SetExtraBorderSize(*args
, **kwargs
):
908 """SetExtraBorderSize(int width)"""
909 return _windows
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
911 def GetExtraBorderSize(*args
, **kwargs
):
912 """GetExtraBorderSize() -> int"""
913 return _windows
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
915 def SetMinimumSizeX(*args
, **kwargs
):
916 """SetMinimumSizeX(int min)"""
917 return _windows
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
919 def SetMinimumSizeY(*args
, **kwargs
):
920 """SetMinimumSizeY(int min)"""
921 return _windows
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
923 def GetMinimumSizeX(*args
, **kwargs
):
924 """GetMinimumSizeX() -> int"""
925 return _windows
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
927 def GetMinimumSizeY(*args
, **kwargs
):
928 """GetMinimumSizeY() -> int"""
929 return _windows
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
931 def SetMaximumSizeX(*args
, **kwargs
):
932 """SetMaximumSizeX(int max)"""
933 return _windows
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
935 def SetMaximumSizeY(*args
, **kwargs
):
936 """SetMaximumSizeY(int max)"""
937 return _windows
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
939 def GetMaximumSizeX(*args
, **kwargs
):
940 """GetMaximumSizeX() -> int"""
941 return _windows
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
943 def GetMaximumSizeY(*args
, **kwargs
):
944 """GetMaximumSizeY() -> int"""
945 return _windows
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
947 def SashHitTest(*args
, **kwargs
):
948 """SashHitTest(int x, int y, int tolerance=2) -> int"""
949 return _windows
.SashWindow_SashHitTest(*args
, **kwargs
)
951 def SizeWindows(*args
, **kwargs
):
953 return _windows
.SashWindow_SizeWindows(*args
, **kwargs
)
956 class SashWindowPtr(SashWindow
):
957 def __init__(self
, this
):
959 if not hasattr(self
,"thisown"): self
.thisown
= 0
960 self
.__class
__ = SashWindow
961 _windows
.SashWindow_swigregister(SashWindowPtr
)
962 SashNameStr
= cvar
.SashNameStr
963 SashLayoutNameStr
= cvar
.SashLayoutNameStr
965 def PreSashWindow(*args
, **kwargs
):
966 """PreSashWindow() -> SashWindow"""
967 val
= _windows
.new_PreSashWindow(*args
, **kwargs
)
971 SASH_STATUS_OK
= _windows
.SASH_STATUS_OK
972 SASH_STATUS_OUT_OF_RANGE
= _windows
.SASH_STATUS_OUT_OF_RANGE
973 class SashEvent(core
.CommandEvent
):
975 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
976 def __init__(self
, *args
, **kwargs
):
977 """__init__(int id=0, int edge=SASH_NONE) -> SashEvent"""
978 newobj
= _windows
.new_SashEvent(*args
, **kwargs
)
979 self
.this
= newobj
.this
982 def SetEdge(*args
, **kwargs
):
983 """SetEdge(int edge)"""
984 return _windows
.SashEvent_SetEdge(*args
, **kwargs
)
986 def GetEdge(*args
, **kwargs
):
987 """GetEdge() -> int"""
988 return _windows
.SashEvent_GetEdge(*args
, **kwargs
)
990 def SetDragRect(*args
, **kwargs
):
991 """SetDragRect(Rect rect)"""
992 return _windows
.SashEvent_SetDragRect(*args
, **kwargs
)
994 def GetDragRect(*args
, **kwargs
):
995 """GetDragRect() -> Rect"""
996 return _windows
.SashEvent_GetDragRect(*args
, **kwargs
)
998 def SetDragStatus(*args
, **kwargs
):
999 """SetDragStatus(int status)"""
1000 return _windows
.SashEvent_SetDragStatus(*args
, **kwargs
)
1002 def GetDragStatus(*args
, **kwargs
):
1003 """GetDragStatus() -> int"""
1004 return _windows
.SashEvent_GetDragStatus(*args
, **kwargs
)
1007 class SashEventPtr(SashEvent
):
1008 def __init__(self
, this
):
1010 if not hasattr(self
,"thisown"): self
.thisown
= 0
1011 self
.__class
__ = SashEvent
1012 _windows
.SashEvent_swigregister(SashEventPtr
)
1014 wxEVT_SASH_DRAGGED
= _windows
.wxEVT_SASH_DRAGGED
1015 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1016 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1018 #---------------------------------------------------------------------------
1020 LAYOUT_HORIZONTAL
= _windows
.LAYOUT_HORIZONTAL
1021 LAYOUT_VERTICAL
= _windows
.LAYOUT_VERTICAL
1022 LAYOUT_NONE
= _windows
.LAYOUT_NONE
1023 LAYOUT_TOP
= _windows
.LAYOUT_TOP
1024 LAYOUT_LEFT
= _windows
.LAYOUT_LEFT
1025 LAYOUT_RIGHT
= _windows
.LAYOUT_RIGHT
1026 LAYOUT_BOTTOM
= _windows
.LAYOUT_BOTTOM
1027 LAYOUT_LENGTH_Y
= _windows
.LAYOUT_LENGTH_Y
1028 LAYOUT_LENGTH_X
= _windows
.LAYOUT_LENGTH_X
1029 LAYOUT_MRU_LENGTH
= _windows
.LAYOUT_MRU_LENGTH
1030 LAYOUT_QUERY
= _windows
.LAYOUT_QUERY
1031 wxEVT_QUERY_LAYOUT_INFO
= _windows
.wxEVT_QUERY_LAYOUT_INFO
1032 wxEVT_CALCULATE_LAYOUT
= _windows
.wxEVT_CALCULATE_LAYOUT
1033 class QueryLayoutInfoEvent(core
.Event
):
1035 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1036 def __init__(self
, *args
, **kwargs
):
1037 """__init__(int id=0) -> QueryLayoutInfoEvent"""
1038 newobj
= _windows
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1039 self
.this
= newobj
.this
1042 def SetRequestedLength(*args
, **kwargs
):
1043 """SetRequestedLength(int length)"""
1044 return _windows
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1046 def GetRequestedLength(*args
, **kwargs
):
1047 """GetRequestedLength() -> int"""
1048 return _windows
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1050 def SetFlags(*args
, **kwargs
):
1051 """SetFlags(int flags)"""
1052 return _windows
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1054 def GetFlags(*args
, **kwargs
):
1055 """GetFlags() -> int"""
1056 return _windows
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1058 def SetSize(*args
, **kwargs
):
1059 """SetSize(Size size)"""
1060 return _windows
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1062 def GetSize(*args
, **kwargs
):
1063 """GetSize() -> Size"""
1064 return _windows
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1066 def SetOrientation(*args
, **kwargs
):
1067 """SetOrientation(int orient)"""
1068 return _windows
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1070 def GetOrientation(*args
, **kwargs
):
1071 """GetOrientation() -> int"""
1072 return _windows
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1074 def SetAlignment(*args
, **kwargs
):
1075 """SetAlignment(int align)"""
1076 return _windows
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1078 def GetAlignment(*args
, **kwargs
):
1079 """GetAlignment() -> int"""
1080 return _windows
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1083 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1084 def __init__(self
, this
):
1086 if not hasattr(self
,"thisown"): self
.thisown
= 0
1087 self
.__class
__ = QueryLayoutInfoEvent
1088 _windows
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1090 class CalculateLayoutEvent(core
.Event
):
1092 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1093 def __init__(self
, *args
, **kwargs
):
1094 """__init__(int id=0) -> CalculateLayoutEvent"""
1095 newobj
= _windows
.new_CalculateLayoutEvent(*args
, **kwargs
)
1096 self
.this
= newobj
.this
1099 def SetFlags(*args
, **kwargs
):
1100 """SetFlags(int flags)"""
1101 return _windows
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1103 def GetFlags(*args
, **kwargs
):
1104 """GetFlags() -> int"""
1105 return _windows
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1107 def SetRect(*args
, **kwargs
):
1108 """SetRect(Rect rect)"""
1109 return _windows
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1111 def GetRect(*args
, **kwargs
):
1112 """GetRect() -> Rect"""
1113 return _windows
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1116 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1117 def __init__(self
, this
):
1119 if not hasattr(self
,"thisown"): self
.thisown
= 0
1120 self
.__class
__ = CalculateLayoutEvent
1121 _windows
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1123 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1124 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1126 class SashLayoutWindow(SashWindow
):
1128 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1129 def __init__(self
, *args
, **kwargs
):
1131 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1132 long style=wxCLIP_CHILDREN|wxSW_3D,
1133 String name=SashLayoutNameStr) -> SashLayoutWindow
1135 newobj
= _windows
.new_SashLayoutWindow(*args
, **kwargs
)
1136 self
.this
= newobj
.this
1139 self
._setOORInfo
(self
)
1141 def Create(*args
, **kwargs
):
1143 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1144 long style=wxCLIP_CHILDREN|wxSW_3D,
1145 String name=SashLayoutNameStr) -> bool
1147 return _windows
.SashLayoutWindow_Create(*args
, **kwargs
)
1149 def GetAlignment(*args
, **kwargs
):
1150 """GetAlignment() -> int"""
1151 return _windows
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1153 def GetOrientation(*args
, **kwargs
):
1154 """GetOrientation() -> int"""
1155 return _windows
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1157 def SetAlignment(*args
, **kwargs
):
1158 """SetAlignment(int alignment)"""
1159 return _windows
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1161 def SetDefaultSize(*args
, **kwargs
):
1162 """SetDefaultSize(Size size)"""
1163 return _windows
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1165 def SetOrientation(*args
, **kwargs
):
1166 """SetOrientation(int orientation)"""
1167 return _windows
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1170 class SashLayoutWindowPtr(SashLayoutWindow
):
1171 def __init__(self
, this
):
1173 if not hasattr(self
,"thisown"): self
.thisown
= 0
1174 self
.__class
__ = SashLayoutWindow
1175 _windows
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1177 def PreSashLayoutWindow(*args
, **kwargs
):
1178 """PreSashLayoutWindow() -> SashLayoutWindow"""
1179 val
= _windows
.new_PreSashLayoutWindow(*args
, **kwargs
)
1183 class LayoutAlgorithm(core
.Object
):
1185 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1186 def __init__(self
, *args
, **kwargs
):
1187 """__init__() -> LayoutAlgorithm"""
1188 newobj
= _windows
.new_LayoutAlgorithm(*args
, **kwargs
)
1189 self
.this
= newobj
.this
1192 def __del__(self
, destroy
=_windows
.delete_LayoutAlgorithm
):
1195 if self
.thisown
: destroy(self
)
1198 def LayoutMDIFrame(*args
, **kwargs
):
1199 """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool"""
1200 return _windows
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1202 def LayoutFrame(*args
, **kwargs
):
1203 """LayoutFrame(Frame frame, Window mainWindow=None) -> bool"""
1204 return _windows
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1206 def LayoutWindow(*args
, **kwargs
):
1207 """LayoutWindow(Window parent, Window mainWindow=None) -> bool"""
1208 return _windows
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1211 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1212 def __init__(self
, this
):
1214 if not hasattr(self
,"thisown"): self
.thisown
= 0
1215 self
.__class
__ = LayoutAlgorithm
1216 _windows
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1218 #---------------------------------------------------------------------------
1220 class PopupWindow(core
.Window
):
1222 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1223 def __init__(self
, *args
, **kwargs
):
1224 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1225 newobj
= _windows
.new_PopupWindow(*args
, **kwargs
)
1226 self
.this
= newobj
.this
1229 self
._setOORInfo
(self
)
1231 def Create(*args
, **kwargs
):
1232 """Create(Window parent, int flags=BORDER_NONE) -> bool"""
1233 return _windows
.PopupWindow_Create(*args
, **kwargs
)
1235 def Position(*args
, **kwargs
):
1236 """Position(Point ptOrigin, Size size)"""
1237 return _windows
.PopupWindow_Position(*args
, **kwargs
)
1240 class PopupWindowPtr(PopupWindow
):
1241 def __init__(self
, this
):
1243 if not hasattr(self
,"thisown"): self
.thisown
= 0
1244 self
.__class
__ = PopupWindow
1245 _windows
.PopupWindow_swigregister(PopupWindowPtr
)
1247 def PrePopupWindow(*args
, **kwargs
):
1248 """PrePopupWindow() -> PopupWindow"""
1249 val
= _windows
.new_PrePopupWindow(*args
, **kwargs
)
1253 #---------------------------------------------------------------------------
1255 class PopupTransientWindow(PopupWindow
):
1257 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1258 def __init__(self
, *args
, **kwargs
):
1259 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1260 newobj
= _windows
.new_PopupTransientWindow(*args
, **kwargs
)
1261 self
.this
= newobj
.this
1264 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1266 def _setCallbackInfo(*args
, **kwargs
):
1267 """_setCallbackInfo(PyObject self, PyObject _class)"""
1268 return _windows
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1270 def Popup(*args
, **kwargs
):
1271 """Popup(Window focus=None)"""
1272 return _windows
.PopupTransientWindow_Popup(*args
, **kwargs
)
1274 def Dismiss(*args
, **kwargs
):
1276 return _windows
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1279 class PopupTransientWindowPtr(PopupTransientWindow
):
1280 def __init__(self
, this
):
1282 if not hasattr(self
,"thisown"): self
.thisown
= 0
1283 self
.__class
__ = PopupTransientWindow
1284 _windows
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1286 def PrePopupTransientWindow(*args
, **kwargs
):
1287 """PrePopupTransientWindow() -> PopupTransientWindow"""
1288 val
= _windows
.new_PrePopupTransientWindow(*args
, **kwargs
)
1292 #---------------------------------------------------------------------------
1294 class TipWindow(PopupTransientWindow
):
1296 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1297 def __init__(self
, *args
, **kwargs
):
1298 """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1299 newobj
= _windows
.new_TipWindow(*args
, **kwargs
)
1300 self
.this
= newobj
.this
1303 self
._setOORInfo
(self
)
1305 def SetBoundingRect(*args
, **kwargs
):
1306 """SetBoundingRect(Rect rectBound)"""
1307 return _windows
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1309 def Close(*args
, **kwargs
):
1311 return _windows
.TipWindow_Close(*args
, **kwargs
)
1314 class TipWindowPtr(TipWindow
):
1315 def __init__(self
, this
):
1317 if not hasattr(self
,"thisown"): self
.thisown
= 0
1318 self
.__class
__ = TipWindow
1319 _windows
.TipWindow_swigregister(TipWindowPtr
)
1321 #---------------------------------------------------------------------------
1323 class VScrolledWindow(Panel
):
1325 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1326 def __init__(self
, *args
, **kwargs
):
1328 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1329 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1331 newobj
= _windows
.new_VScrolledWindow(*args
, **kwargs
)
1332 self
.this
= newobj
.this
1335 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1337 def _setCallbackInfo(*args
, **kwargs
):
1338 """_setCallbackInfo(PyObject self, PyObject _class)"""
1339 return _windows
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1341 def Create(*args
, **kwargs
):
1343 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1344 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1346 return _windows
.VScrolledWindow_Create(*args
, **kwargs
)
1348 def SetLineCount(*args
, **kwargs
):
1349 """SetLineCount(size_t count)"""
1350 return _windows
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1352 def ScrollToLine(*args
, **kwargs
):
1353 """ScrollToLine(size_t line) -> bool"""
1354 return _windows
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1356 def ScrollLines(*args
, **kwargs
):
1358 ScrollLines(int lines) -> bool
1360 If the platform and window class supports it, scrolls the window by
1361 the given number of lines down, if lines is positive, or up if lines
1362 is negative. Returns True if the window was scrolled, False if it was
1363 already on top/bottom and nothing was done.
1365 return _windows
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1367 def ScrollPages(*args
, **kwargs
):
1369 ScrollPages(int pages) -> bool
1371 If the platform and window class supports it, scrolls the window by
1372 the given number of pages down, if pages is positive, or up if pages
1373 is negative. Returns True if the window was scrolled, False if it was
1374 already on top/bottom and nothing was done.
1376 return _windows
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1378 def RefreshLine(*args
, **kwargs
):
1379 """RefreshLine(size_t line)"""
1380 return _windows
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1382 def RefreshLines(*args
, **kwargs
):
1383 """RefreshLines(size_t from, size_t to)"""
1384 return _windows
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1386 def HitTestXT(*args
, **kwargs
):
1388 HitTestXT(int x, int y) -> int
1390 Test where the given (in client coords) point lies
1392 return _windows
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1394 def HitTest(*args
, **kwargs
):
1396 HitTest(Point pt) -> int
1398 Test where the given (in client coords) point lies
1400 return _windows
.VScrolledWindow_HitTest(*args
, **kwargs
)
1402 def RefreshAll(*args
, **kwargs
):
1404 return _windows
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1406 def GetLineCount(*args
, **kwargs
):
1407 """GetLineCount() -> size_t"""
1408 return _windows
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1410 def GetFirstVisibleLine(*args
, **kwargs
):
1411 """GetFirstVisibleLine() -> size_t"""
1412 return _windows
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1414 def GetLastVisibleLine(*args
, **kwargs
):
1415 """GetLastVisibleLine() -> size_t"""
1416 return _windows
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1418 def IsVisible(*args
, **kwargs
):
1419 """IsVisible(size_t line) -> bool"""
1420 return _windows
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1423 class VScrolledWindowPtr(VScrolledWindow
):
1424 def __init__(self
, this
):
1426 if not hasattr(self
,"thisown"): self
.thisown
= 0
1427 self
.__class
__ = VScrolledWindow
1428 _windows
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1430 def PreVScrolledWindow(*args
, **kwargs
):
1431 """PreVScrolledWindow() -> VScrolledWindow"""
1432 val
= _windows
.new_PreVScrolledWindow(*args
, **kwargs
)
1436 class VListBox(VScrolledWindow
):
1438 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1439 def __init__(self
, *args
, **kwargs
):
1441 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1442 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1444 newobj
= _windows
.new_VListBox(*args
, **kwargs
)
1445 self
.this
= newobj
.this
1448 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1450 def _setCallbackInfo(*args
, **kwargs
):
1451 """_setCallbackInfo(PyObject self, PyObject _class)"""
1452 return _windows
.VListBox__setCallbackInfo(*args
, **kwargs
)
1454 def Create(*args
, **kwargs
):
1456 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1457 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1459 return _windows
.VListBox_Create(*args
, **kwargs
)
1461 def GetItemCount(*args
, **kwargs
):
1462 """GetItemCount() -> size_t"""
1463 return _windows
.VListBox_GetItemCount(*args
, **kwargs
)
1465 def HasMultipleSelection(*args
, **kwargs
):
1466 """HasMultipleSelection() -> bool"""
1467 return _windows
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1469 def GetSelection(*args
, **kwargs
):
1470 """GetSelection() -> int"""
1471 return _windows
.VListBox_GetSelection(*args
, **kwargs
)
1473 def IsCurrent(*args
, **kwargs
):
1474 """IsCurrent(size_t item) -> bool"""
1475 return _windows
.VListBox_IsCurrent(*args
, **kwargs
)
1477 def IsSelected(*args
, **kwargs
):
1478 """IsSelected(size_t item) -> bool"""
1479 return _windows
.VListBox_IsSelected(*args
, **kwargs
)
1481 def GetSelectedCount(*args
, **kwargs
):
1482 """GetSelectedCount() -> size_t"""
1483 return _windows
.VListBox_GetSelectedCount(*args
, **kwargs
)
1485 def GetFirstSelected(*args
, **kwargs
):
1486 """GetFirstSelected(unsigned long cookie) -> int"""
1487 return _windows
.VListBox_GetFirstSelected(*args
, **kwargs
)
1489 def GetNextSelected(*args
, **kwargs
):
1490 """GetNextSelected(unsigned long cookie) -> int"""
1491 return _windows
.VListBox_GetNextSelected(*args
, **kwargs
)
1493 def GetMargins(*args
, **kwargs
):
1494 """GetMargins() -> Point"""
1495 return _windows
.VListBox_GetMargins(*args
, **kwargs
)
1497 def GetSelectionBackground(*args
, **kwargs
):
1498 """GetSelectionBackground() -> Colour"""
1499 return _windows
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1501 def SetItemCount(*args
, **kwargs
):
1502 """SetItemCount(size_t count)"""
1503 return _windows
.VListBox_SetItemCount(*args
, **kwargs
)
1505 def Clear(*args
, **kwargs
):
1507 return _windows
.VListBox_Clear(*args
, **kwargs
)
1509 def SetSelection(*args
, **kwargs
):
1510 """SetSelection(int selection)"""
1511 return _windows
.VListBox_SetSelection(*args
, **kwargs
)
1513 def Select(*args
, **kwargs
):
1514 """Select(size_t item, bool select=True) -> bool"""
1515 return _windows
.VListBox_Select(*args
, **kwargs
)
1517 def SelectRange(*args
, **kwargs
):
1518 """SelectRange(size_t from, size_t to) -> bool"""
1519 return _windows
.VListBox_SelectRange(*args
, **kwargs
)
1521 def Toggle(*args
, **kwargs
):
1522 """Toggle(size_t item)"""
1523 return _windows
.VListBox_Toggle(*args
, **kwargs
)
1525 def SelectAll(*args
, **kwargs
):
1526 """SelectAll() -> bool"""
1527 return _windows
.VListBox_SelectAll(*args
, **kwargs
)
1529 def DeselectAll(*args
, **kwargs
):
1530 """DeselectAll() -> bool"""
1531 return _windows
.VListBox_DeselectAll(*args
, **kwargs
)
1533 def SetMargins(*args
, **kwargs
):
1534 """SetMargins(Point pt)"""
1535 return _windows
.VListBox_SetMargins(*args
, **kwargs
)
1537 def SetMarginsXY(*args
, **kwargs
):
1538 """SetMarginsXY(int x, int y)"""
1539 return _windows
.VListBox_SetMarginsXY(*args
, **kwargs
)
1541 def SetSelectionBackground(*args
, **kwargs
):
1542 """SetSelectionBackground(Colour col)"""
1543 return _windows
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1546 class VListBoxPtr(VListBox
):
1547 def __init__(self
, this
):
1549 if not hasattr(self
,"thisown"): self
.thisown
= 0
1550 self
.__class
__ = VListBox
1551 _windows
.VListBox_swigregister(VListBoxPtr
)
1552 VListBoxNameStr
= cvar
.VListBoxNameStr
1554 def PreVListBox(*args
, **kwargs
):
1555 """PreVListBox() -> VListBox"""
1556 val
= _windows
.new_PreVListBox(*args
, **kwargs
)
1560 class HtmlListBox(VListBox
):
1562 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1563 def __init__(self
, *args
, **kwargs
):
1565 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1566 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1568 newobj
= _windows
.new_HtmlListBox(*args
, **kwargs
)
1569 self
.this
= newobj
.this
1572 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1574 def _setCallbackInfo(*args
, **kwargs
):
1575 """_setCallbackInfo(PyObject self, PyObject _class)"""
1576 return _windows
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1578 def Create(*args
, **kwargs
):
1580 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1581 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1583 return _windows
.HtmlListBox_Create(*args
, **kwargs
)
1585 def RefreshAll(*args
, **kwargs
):
1587 return _windows
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1589 def SetItemCount(*args
, **kwargs
):
1590 """SetItemCount(size_t count)"""
1591 return _windows
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1594 class HtmlListBoxPtr(HtmlListBox
):
1595 def __init__(self
, this
):
1597 if not hasattr(self
,"thisown"): self
.thisown
= 0
1598 self
.__class
__ = HtmlListBox
1599 _windows
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1601 def PreHtmlListBox(*args
, **kwargs
):
1602 """PreHtmlListBox() -> HtmlListBox"""
1603 val
= _windows
.new_PreHtmlListBox(*args
, **kwargs
)
1607 #---------------------------------------------------------------------------
1609 class TaskBarIcon(core
.EvtHandler
):
1611 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1612 def __init__(self
, *args
, **kwargs
):
1613 """__init__() -> TaskBarIcon"""
1614 newobj
= _windows
.new_TaskBarIcon(*args
, **kwargs
)
1615 self
.this
= newobj
.this
1618 def __del__(self
, destroy
=_windows
.delete_TaskBarIcon
):
1621 if self
.thisown
: destroy(self
)
1624 def IsOk(*args
, **kwargs
):
1625 """IsOk() -> bool"""
1626 return _windows
.TaskBarIcon_IsOk(*args
, **kwargs
)
1628 def __nonzero__(self
): return self
.IsOk()
1629 def IsIconInstalled(*args
, **kwargs
):
1630 """IsIconInstalled() -> bool"""
1631 return _windows
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
1633 def SetIcon(*args
, **kwargs
):
1634 """SetIcon(Icon icon, String tooltip=EmptyString) -> bool"""
1635 return _windows
.TaskBarIcon_SetIcon(*args
, **kwargs
)
1637 def RemoveIcon(*args
, **kwargs
):
1638 """RemoveIcon() -> bool"""
1639 return _windows
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
1641 def PopupMenu(*args
, **kwargs
):
1642 """PopupMenu(Menu menu) -> bool"""
1643 return _windows
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
1646 class TaskBarIconPtr(TaskBarIcon
):
1647 def __init__(self
, this
):
1649 if not hasattr(self
,"thisown"): self
.thisown
= 0
1650 self
.__class
__ = TaskBarIcon
1651 _windows
.TaskBarIcon_swigregister(TaskBarIconPtr
)
1653 class TaskBarIconEvent(core
.Event
):
1655 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1656 def __init__(self
, *args
, **kwargs
):
1657 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
1658 newobj
= _windows
.new_TaskBarIconEvent(*args
, **kwargs
)
1659 self
.this
= newobj
.this
1663 class TaskBarIconEventPtr(TaskBarIconEvent
):
1664 def __init__(self
, this
):
1666 if not hasattr(self
,"thisown"): self
.thisown
= 0
1667 self
.__class
__ = TaskBarIconEvent
1668 _windows
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
1670 wxEVT_TASKBAR_MOVE
= _windows
.wxEVT_TASKBAR_MOVE
1671 wxEVT_TASKBAR_LEFT_DOWN
= _windows
.wxEVT_TASKBAR_LEFT_DOWN
1672 wxEVT_TASKBAR_LEFT_UP
= _windows
.wxEVT_TASKBAR_LEFT_UP
1673 wxEVT_TASKBAR_RIGHT_DOWN
= _windows
.wxEVT_TASKBAR_RIGHT_DOWN
1674 wxEVT_TASKBAR_RIGHT_UP
= _windows
.wxEVT_TASKBAR_RIGHT_UP
1675 wxEVT_TASKBAR_LEFT_DCLICK
= _windows
.wxEVT_TASKBAR_LEFT_DCLICK
1676 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows
.wxEVT_TASKBAR_RIGHT_DCLICK
1677 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
1678 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
1679 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
1680 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
1681 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
1682 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
1683 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
1685 #---------------------------------------------------------------------------
1687 class ColourData(core
.Object
):
1688 """This class holds a variety of information related to colour dialogs."""
1690 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1691 def __init__(self
, *args
, **kwargs
):
1693 __init__() -> ColourData
1695 Constructor, sets default values.
1697 newobj
= _windows
.new_ColourData(*args
, **kwargs
)
1698 self
.this
= newobj
.this
1701 def __del__(self
, destroy
=_windows
.delete_ColourData
):
1704 if self
.thisown
: destroy(self
)
1707 def GetChooseFull(*args
, **kwargs
):
1709 GetChooseFull() -> bool
1711 Under Windows, determines whether the Windows colour dialog will display
1712 the full dialog with custom colour selection controls. Has no meaning
1713 under other platforms. The default value is true.
1715 return _windows
.ColourData_GetChooseFull(*args
, **kwargs
)
1717 def GetColour(*args
, **kwargs
):
1719 GetColour() -> Colour
1721 Gets the colour (pre)selected by the dialog.
1723 return _windows
.ColourData_GetColour(*args
, **kwargs
)
1725 def GetCustomColour(*args
, **kwargs
):
1727 GetCustomColour(int i) -> Colour
1729 Gets the i'th custom colour associated with the colour dialog. i should
1730 be an integer between 0 and 15. The default custom colours are all white.
1732 return _windows
.ColourData_GetCustomColour(*args
, **kwargs
)
1734 def SetChooseFull(*args
, **kwargs
):
1736 SetChooseFull(int flag)
1738 Under Windows, tells the Windows colour dialog to display the full dialog
1739 with custom colour selection controls. Under other platforms, has no effect.
1740 The default value is true.
1742 return _windows
.ColourData_SetChooseFull(*args
, **kwargs
)
1744 def SetColour(*args
, **kwargs
):
1746 SetColour(Colour colour)
1748 Sets the default colour for the colour dialog. The default colour is black.
1750 return _windows
.ColourData_SetColour(*args
, **kwargs
)
1752 def SetCustomColour(*args
, **kwargs
):
1754 SetCustomColour(int i, Colour colour)
1756 Sets the i'th custom colour for the colour dialog. i should be an integer
1757 between 0 and 15. The default custom colours are all white.
1759 return _windows
.ColourData_SetCustomColour(*args
, **kwargs
)
1762 class ColourDataPtr(ColourData
):
1763 def __init__(self
, this
):
1765 if not hasattr(self
,"thisown"): self
.thisown
= 0
1766 self
.__class
__ = ColourData
1767 _windows
.ColourData_swigregister(ColourDataPtr
)
1768 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
1769 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
1770 DirDialogNameStr
= cvar
.DirDialogNameStr
1771 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
1772 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
1773 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
1775 class ColourDialog(Dialog
):
1776 """This class represents the colour chooser dialog."""
1778 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1779 def __init__(self
, *args
, **kwargs
):
1781 __init__(Window parent, ColourData data=None) -> ColourDialog
1783 Constructor. Pass a parent window, and optionally a ColourData, which
1784 will be copied to the colour dialog's internal ColourData instance.
1786 newobj
= _windows
.new_ColourDialog(*args
, **kwargs
)
1787 self
.this
= newobj
.this
1790 self
._setOORInfo
(self
)
1792 def GetColourData(*args
, **kwargs
):
1794 GetColourData() -> ColourData
1796 Returns a reference to the ColourData used by the dialog.
1798 return _windows
.ColourDialog_GetColourData(*args
, **kwargs
)
1801 class ColourDialogPtr(ColourDialog
):
1802 def __init__(self
, this
):
1804 if not hasattr(self
,"thisown"): self
.thisown
= 0
1805 self
.__class
__ = ColourDialog
1806 _windows
.ColourDialog_swigregister(ColourDialogPtr
)
1808 class DirDialog(Dialog
):
1809 """This class represents the directory chooser dialog."""
1811 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1812 def __init__(self
, *args
, **kwargs
):
1814 __init__(Window parent, String message=DirSelectorPromptStr,
1815 String defaultPath=EmptyString, long style=0,
1816 Point pos=DefaultPosition, Size size=DefaultSize,
1817 String name=DirDialogNameStr) -> DirDialog
1819 Constructor. Use ShowModal method to show the dialog.
1821 newobj
= _windows
.new_DirDialog(*args
, **kwargs
)
1822 self
.this
= newobj
.this
1825 self
._setOORInfo
(self
)
1827 def GetPath(*args
, **kwargs
):
1831 Returns the default or user-selected path.
1833 return _windows
.DirDialog_GetPath(*args
, **kwargs
)
1835 def GetMessage(*args
, **kwargs
):
1837 GetMessage() -> String
1839 Returns the message that will be displayed on the dialog.
1841 return _windows
.DirDialog_GetMessage(*args
, **kwargs
)
1843 def GetStyle(*args
, **kwargs
):
1847 Returns the dialog style.
1849 return _windows
.DirDialog_GetStyle(*args
, **kwargs
)
1851 def SetMessage(*args
, **kwargs
):
1853 SetMessage(String message)
1855 Sets the message that will be displayed on the dialog.
1857 return _windows
.DirDialog_SetMessage(*args
, **kwargs
)
1859 def SetPath(*args
, **kwargs
):
1861 SetPath(String path)
1863 Sets the default path.
1865 return _windows
.DirDialog_SetPath(*args
, **kwargs
)
1868 class DirDialogPtr(DirDialog
):
1869 def __init__(self
, this
):
1871 if not hasattr(self
,"thisown"): self
.thisown
= 0
1872 self
.__class
__ = DirDialog
1873 _windows
.DirDialog_swigregister(DirDialogPtr
)
1875 class FileDialog(Dialog
):
1876 """This class represents the file chooser dialog."""
1878 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1879 def __init__(self
, *args
, **kwargs
):
1881 __init__(Window parent, String message=FileSelectorPromptStr,
1882 String defaultDir=EmptyString, String defaultFile=EmptyString,
1883 String wildcard=FileSelectorDefaultWildcardStr,
1884 long style=0, Point pos=DefaultPosition) -> FileDialog
1886 Constructor. Use ShowModal method to show the dialog.
1888 newobj
= _windows
.new_FileDialog(*args
, **kwargs
)
1889 self
.this
= newobj
.this
1892 self
._setOORInfo
(self
)
1894 def SetMessage(*args
, **kwargs
):
1896 SetMessage(String message)
1898 Sets the message that will be displayed on the dialog.
1900 return _windows
.FileDialog_SetMessage(*args
, **kwargs
)
1902 def SetPath(*args
, **kwargs
):
1904 SetPath(String path)
1906 Sets the path (the combined directory and filename that will
1907 be returned when the dialog is dismissed).
1909 return _windows
.FileDialog_SetPath(*args
, **kwargs
)
1911 def SetDirectory(*args
, **kwargs
):
1913 SetDirectory(String dir)
1915 Sets the default directory.
1917 return _windows
.FileDialog_SetDirectory(*args
, **kwargs
)
1919 def SetFilename(*args
, **kwargs
):
1921 SetFilename(String name)
1923 Sets the default filename.
1925 return _windows
.FileDialog_SetFilename(*args
, **kwargs
)
1927 def SetWildcard(*args
, **kwargs
):
1929 SetWildcard(String wildCard)
1931 Sets the wildcard, which can contain multiple file types, for example:
1932 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
1934 return _windows
.FileDialog_SetWildcard(*args
, **kwargs
)
1936 def SetStyle(*args
, **kwargs
):
1938 SetStyle(long style)
1940 Sets the dialog style.
1942 return _windows
.FileDialog_SetStyle(*args
, **kwargs
)
1944 def SetFilterIndex(*args
, **kwargs
):
1946 SetFilterIndex(int filterIndex)
1948 Sets the default filter index, starting from zero.
1950 return _windows
.FileDialog_SetFilterIndex(*args
, **kwargs
)
1952 def GetMessage(*args
, **kwargs
):
1954 GetMessage() -> String
1956 Returns the message that will be displayed on the dialog.
1958 return _windows
.FileDialog_GetMessage(*args
, **kwargs
)
1960 def GetPath(*args
, **kwargs
):
1964 Returns the full path (directory and filename) of the selected file.
1966 return _windows
.FileDialog_GetPath(*args
, **kwargs
)
1968 def GetDirectory(*args
, **kwargs
):
1970 GetDirectory() -> String
1972 Returns the default directory.
1974 return _windows
.FileDialog_GetDirectory(*args
, **kwargs
)
1976 def GetFilename(*args
, **kwargs
):
1978 GetFilename() -> String
1980 Returns the default filename.
1982 return _windows
.FileDialog_GetFilename(*args
, **kwargs
)
1984 def GetWildcard(*args
, **kwargs
):
1986 GetWildcard() -> String
1988 Returns the file dialog wildcard.
1990 return _windows
.FileDialog_GetWildcard(*args
, **kwargs
)
1992 def GetStyle(*args
, **kwargs
):
1996 Returns the dialog style.
1998 return _windows
.FileDialog_GetStyle(*args
, **kwargs
)
2000 def GetFilterIndex(*args
, **kwargs
):
2002 GetFilterIndex() -> int
2004 Returns the index into the list of filters supplied, optionally, in
2005 the wildcard parameter. Before the dialog is shown, this is the index
2006 which will be used when the dialog is first displayed. After the dialog
2007 is shown, this is the index selected by the user.
2009 return _windows
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2011 def GetFilenames(*args
, **kwargs
):
2013 GetFilenames() -> PyObject
2015 Returns a list of filenames chosen in the dialog. This function should
2016 only be used with the dialogs which have wx.MULTIPLE style, use
2017 GetFilename for the others.
2019 return _windows
.FileDialog_GetFilenames(*args
, **kwargs
)
2021 def GetPaths(*args
, **kwargs
):
2023 GetPaths() -> PyObject
2025 Fills the array paths with the full paths of the files chosen. This
2026 function should only be used with the dialogs which have wx.MULTIPLE style,
2027 use GetPath for the others.
2029 return _windows
.FileDialog_GetPaths(*args
, **kwargs
)
2032 class FileDialogPtr(FileDialog
):
2033 def __init__(self
, this
):
2035 if not hasattr(self
,"thisown"): self
.thisown
= 0
2036 self
.__class
__ = FileDialog
2037 _windows
.FileDialog_swigregister(FileDialogPtr
)
2039 CHOICEDLG_STYLE
= _windows
.CHOICEDLG_STYLE
2040 class MultiChoiceDialog(Dialog
):
2041 """A simple dialog with a multi selection listbox."""
2043 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2044 def __init__(self
, *args
, **kwargs
):
2046 __init__(Window parent, String message, String caption,
2047 List choices=[], long style=CHOICEDLG_STYLE,
2048 Point pos=DefaultPosition) -> MultiChoiceDialog
2050 Constructor. Use ShowModal method to show the dialog.
2052 newobj
= _windows
.new_MultiChoiceDialog(*args
, **kwargs
)
2053 self
.this
= newobj
.this
2056 self
._setOORInfo
(self
)
2058 def SetSelections(*args
, **kwargs
):
2060 SetSelections(List selections)
2062 Specify the items in the list that shoudl be selected, using a list of integers.
2064 return _windows
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2066 def GetSelections(*args
, **kwargs
):
2068 GetSelections() -> [selections]
2070 Returns a list of integers representing the items that are selected.
2072 return _windows
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2075 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2076 def __init__(self
, this
):
2078 if not hasattr(self
,"thisown"): self
.thisown
= 0
2079 self
.__class
__ = MultiChoiceDialog
2080 _windows
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2082 class SingleChoiceDialog(Dialog
):
2083 """A simple dialog with a single selection listbox."""
2085 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2086 def __init__(self
, *args
, **kwargs
):
2088 __init__(Window parent, String message, String caption,
2089 List choices=[], long style=CHOICEDLG_STYLE,
2090 Point pos=DefaultPosition) -> SingleChoiceDialog
2092 Constructor. Use ShowModal method to show the dialog.
2094 newobj
= _windows
.new_SingleChoiceDialog(*args
, **kwargs
)
2095 self
.this
= newobj
.this
2098 self
._setOORInfo
(self
)
2100 def GetSelection(*args
, **kwargs
):
2102 GetSelection() -> int
2104 Get the index of teh currently selected item.
2106 return _windows
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2108 def GetStringSelection(*args
, **kwargs
):
2110 GetStringSelection() -> String
2112 Returns the string value of the currently selected item
2114 return _windows
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2116 def SetSelection(*args
, **kwargs
):
2118 SetSelection(int sel)
2120 Set the current selected item to sel
2122 return _windows
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2125 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2126 def __init__(self
, this
):
2128 if not hasattr(self
,"thisown"): self
.thisown
= 0
2129 self
.__class
__ = SingleChoiceDialog
2130 _windows
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2132 class TextEntryDialog(Dialog
):
2133 """A dialog with text control, [ok] and [cancel] buttons"""
2135 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2136 def __init__(self
, *args
, **kwargs
):
2138 __init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
2139 String defaultValue=EmptyString,
2140 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2142 Constructor. Use ShowModal method to show the dialog.
2144 newobj
= _windows
.new_TextEntryDialog(*args
, **kwargs
)
2145 self
.this
= newobj
.this
2148 self
._setOORInfo
(self
)
2150 def GetValue(*args
, **kwargs
):
2152 GetValue() -> String
2154 Returns the text that the user has entered if the user has pressed OK,
2155 or the original value if the user has pressed Cancel.
2157 return _windows
.TextEntryDialog_GetValue(*args
, **kwargs
)
2159 def SetValue(*args
, **kwargs
):
2161 SetValue(String value)
2163 Sets the default text value.
2165 return _windows
.TextEntryDialog_SetValue(*args
, **kwargs
)
2168 class TextEntryDialogPtr(TextEntryDialog
):
2169 def __init__(self
, this
):
2171 if not hasattr(self
,"thisown"): self
.thisown
= 0
2172 self
.__class
__ = TextEntryDialog
2173 _windows
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2175 class FontData(core
.Object
):
2176 """This class holds a variety of information related to font dialogs."""
2178 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2179 def __init__(self
, *args
, **kwargs
):
2181 __init__() -> FontData
2183 This class holds a variety of information related to font dialogs.
2185 newobj
= _windows
.new_FontData(*args
, **kwargs
)
2186 self
.this
= newobj
.this
2189 def __del__(self
, destroy
=_windows
.delete_FontData
):
2192 if self
.thisown
: destroy(self
)
2195 def EnableEffects(*args
, **kwargs
):
2197 EnableEffects(bool enable)
2199 Enables or disables 'effects' under MS Windows only. This refers
2200 to the controls for manipulating colour, strikeout and underline
2201 properties. The default value is true.
2203 return _windows
.FontData_EnableEffects(*args
, **kwargs
)
2205 def GetAllowSymbols(*args
, **kwargs
):
2207 GetAllowSymbols() -> bool
2209 Under MS Windows, returns a flag determining whether symbol fonts can be
2210 selected. Has no effect on other platforms. The default value is true.
2212 return _windows
.FontData_GetAllowSymbols(*args
, **kwargs
)
2214 def GetColour(*args
, **kwargs
):
2216 GetColour() -> Colour
2218 Gets the colour associated with the font dialog. The default value is black.
2220 return _windows
.FontData_GetColour(*args
, **kwargs
)
2222 def GetChosenFont(*args
, **kwargs
):
2224 GetChosenFont() -> Font
2226 Gets the font chosen by the user.
2228 return _windows
.FontData_GetChosenFont(*args
, **kwargs
)
2230 def GetEnableEffects(*args
, **kwargs
):
2232 GetEnableEffects() -> bool
2234 Determines whether 'effects' are enabled under Windows.
2236 return _windows
.FontData_GetEnableEffects(*args
, **kwargs
)
2238 def GetInitialFont(*args
, **kwargs
):
2240 GetInitialFont() -> Font
2242 Gets the font that will be initially used by the font dialog. This should have
2243 previously been set by the application.
2245 return _windows
.FontData_GetInitialFont(*args
, **kwargs
)
2247 def GetShowHelp(*args
, **kwargs
):
2249 GetShowHelp() -> bool
2251 Returns true if the Help button will be shown (Windows only). The default
2254 return _windows
.FontData_GetShowHelp(*args
, **kwargs
)
2256 def SetAllowSymbols(*args
, **kwargs
):
2258 SetAllowSymbols(bool allowSymbols)
2260 Under MS Windows, determines whether symbol fonts can be selected. Has no
2261 effect on other platforms. The default value is true.
2263 return _windows
.FontData_SetAllowSymbols(*args
, **kwargs
)
2265 def SetChosenFont(*args
, **kwargs
):
2267 SetChosenFont(Font font)
2269 Sets the font that will be returned to the user (for internal use only).
2271 return _windows
.FontData_SetChosenFont(*args
, **kwargs
)
2273 def SetColour(*args
, **kwargs
):
2275 SetColour(Colour colour)
2277 Sets the colour that will be used for the font foreground colour. The default
2280 return _windows
.FontData_SetColour(*args
, **kwargs
)
2282 def SetInitialFont(*args
, **kwargs
):
2284 SetInitialFont(Font font)
2286 Sets the font that will be initially used by the font dialog.
2288 return _windows
.FontData_SetInitialFont(*args
, **kwargs
)
2290 def SetRange(*args
, **kwargs
):
2292 SetRange(int min, int max)
2294 Sets the valid range for the font point size (Windows only). The default is
2295 0, 0 (unrestricted range).
2297 return _windows
.FontData_SetRange(*args
, **kwargs
)
2299 def SetShowHelp(*args
, **kwargs
):
2301 SetShowHelp(bool showHelp)
2303 Determines whether the Help button will be displayed in the font dialog
2304 (Windows only). The default value is false.
2306 return _windows
.FontData_SetShowHelp(*args
, **kwargs
)
2309 class FontDataPtr(FontData
):
2310 def __init__(self
, this
):
2312 if not hasattr(self
,"thisown"): self
.thisown
= 0
2313 self
.__class
__ = FontData
2314 _windows
.FontData_swigregister(FontDataPtr
)
2316 class FontDialog(Dialog
):
2317 """This class represents the font chooser dialog."""
2319 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2320 def __init__(self
, *args
, **kwargs
):
2322 __init__(Window parent, FontData data) -> FontDialog
2324 Constructor. Pass a parent window and the FontData object to be
2325 used to initialize the dialog controls.
2327 newobj
= _windows
.new_FontDialog(*args
, **kwargs
)
2328 self
.this
= newobj
.this
2331 self
._setOORInfo
(self
)
2333 def GetFontData(*args
, **kwargs
):
2335 GetFontData() -> FontData
2337 Returns a reference to the internal FontData used by the FontDialog.
2339 return _windows
.FontDialog_GetFontData(*args
, **kwargs
)
2342 class FontDialogPtr(FontDialog
):
2343 def __init__(self
, this
):
2345 if not hasattr(self
,"thisown"): self
.thisown
= 0
2346 self
.__class
__ = FontDialog
2347 _windows
.FontDialog_swigregister(FontDialogPtr
)
2349 class MessageDialog(Dialog
):
2351 This class provides a dialog that shows a single or multi-line message, with
2352 a choice of OK, Yes, No and Cancel buttons.
2355 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2356 def __init__(self
, *args
, **kwargs
):
2358 __init__(Window parent, String message, String caption=MessageBoxCaptionStr,
2359 long style=wxOK|wxCANCEL|wxCENTRE,
2360 Point pos=DefaultPosition) -> MessageDialog
2362 This class provides a dialog that shows a single or multi-line message, with
2363 a choice of OK, Yes, No and Cancel buttons.
2365 newobj
= _windows
.new_MessageDialog(*args
, **kwargs
)
2366 self
.this
= newobj
.this
2369 self
._setOORInfo
(self
)
2372 class MessageDialogPtr(MessageDialog
):
2373 def __init__(self
, this
):
2375 if not hasattr(self
,"thisown"): self
.thisown
= 0
2376 self
.__class
__ = MessageDialog
2377 _windows
.MessageDialog_swigregister(MessageDialogPtr
)
2379 class ProgressDialog(Frame
):
2381 A dialog that shows a short message and a progress bar. Optionally, it can
2382 display an ABORT button.
2385 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2386 def __init__(self
, *args
, **kwargs
):
2388 __init__(String title, String message, int maximum=100, Window parent=None,
2389 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2391 Constructor. Creates the dialog, displays it and disables user input for other
2392 windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only.
2394 newobj
= _windows
.new_ProgressDialog(*args
, **kwargs
)
2395 self
.this
= newobj
.this
2398 self
._setOORInfo
(self
)
2400 def Update(*args
, **kwargs
):
2402 Update(int value, String newmsg=EmptyString) -> bool
2404 Updates the dialog, setting the progress bar to the new value and, if given
2405 changes the message above it. Returns true unless the Cancel button has been
2408 If false is returned, the application can either immediately destroy the
2409 dialog or ask the user for the confirmation and if the abort is not confirmed
2410 the dialog may be resumed with Resume function.
2412 return _windows
.ProgressDialog_Update(*args
, **kwargs
)
2414 def Resume(*args
, **kwargs
):
2418 Can be used to continue with the dialog, after the user had chosen to abort.
2420 return _windows
.ProgressDialog_Resume(*args
, **kwargs
)
2423 class ProgressDialogPtr(ProgressDialog
):
2424 def __init__(self
, this
):
2426 if not hasattr(self
,"thisown"): self
.thisown
= 0
2427 self
.__class
__ = ProgressDialog
2428 _windows
.ProgressDialog_swigregister(ProgressDialogPtr
)
2430 FR_DOWN
= _windows
.FR_DOWN
2431 FR_WHOLEWORD
= _windows
.FR_WHOLEWORD
2432 FR_MATCHCASE
= _windows
.FR_MATCHCASE
2433 FR_REPLACEDIALOG
= _windows
.FR_REPLACEDIALOG
2434 FR_NOUPDOWN
= _windows
.FR_NOUPDOWN
2435 FR_NOMATCHCASE
= _windows
.FR_NOMATCHCASE
2436 FR_NOWHOLEWORD
= _windows
.FR_NOWHOLEWORD
2437 wxEVT_COMMAND_FIND
= _windows
.wxEVT_COMMAND_FIND
2438 wxEVT_COMMAND_FIND_NEXT
= _windows
.wxEVT_COMMAND_FIND_NEXT
2439 wxEVT_COMMAND_FIND_REPLACE
= _windows
.wxEVT_COMMAND_FIND_REPLACE
2440 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows
.wxEVT_COMMAND_FIND_REPLACE_ALL
2441 wxEVT_COMMAND_FIND_CLOSE
= _windows
.wxEVT_COMMAND_FIND_CLOSE
2442 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2443 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2444 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2445 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2446 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2448 # For backwards compatibility. Should they be removed?
2449 EVT_COMMAND_FIND
= EVT_FIND
2450 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2451 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2452 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2453 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2455 class FindDialogEvent(core
.CommandEvent
):
2456 """Events for the FindReplaceDialog"""
2458 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2459 def __init__(self
, *args
, **kwargs
):
2461 __init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2463 Events for the FindReplaceDialog
2465 newobj
= _windows
.new_FindDialogEvent(*args
, **kwargs
)
2466 self
.this
= newobj
.this
2469 def GetFlags(*args
, **kwargs
):
2473 Get the currently selected flags: this is the combination of
2474 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2476 return _windows
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2478 def GetFindString(*args
, **kwargs
):
2480 GetFindString() -> String
2482 Return the string to find (never empty).
2484 return _windows
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2486 def GetReplaceString(*args
, **kwargs
):
2488 GetReplaceString() -> String
2490 Return the string to replace the search string with (only
2491 for replace and replace all events).
2493 return _windows
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2495 def GetDialog(*args
, **kwargs
):
2497 GetDialog() -> FindReplaceDialog
2499 Return the pointer to the dialog which generated this event.
2501 return _windows
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2503 def SetFlags(*args
, **kwargs
):
2504 """SetFlags(int flags)"""
2505 return _windows
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2507 def SetFindString(*args
, **kwargs
):
2508 """SetFindString(String str)"""
2509 return _windows
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2511 def SetReplaceString(*args
, **kwargs
):
2512 """SetReplaceString(String str)"""
2513 return _windows
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2516 class FindDialogEventPtr(FindDialogEvent
):
2517 def __init__(self
, this
):
2519 if not hasattr(self
,"thisown"): self
.thisown
= 0
2520 self
.__class
__ = FindDialogEvent
2521 _windows
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2523 class FindReplaceData(core
.Object
):
2525 FindReplaceData holds the data for FindReplaceDialog. It is used to initialize
2526 the dialog with the default values and will keep the last values from the
2527 dialog when it is closed. It is also updated each time a wxFindDialogEvent is
2528 generated so instead of using the wxFindDialogEvent methods you can also
2529 directly query this object.
2531 Note that all SetXXX() methods may only be called before showing the dialog
2532 and calling them has no effect later.
2535 wxFR_DOWN: downward search/replace selected (otherwise, upwards)
2537 wxFR_WHOLEWORD: whole word search/replace selected
2539 wxFR_MATCHCASE: case sensitive search/replace selected (otherwise,
2544 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2545 def __init__(self
, *args
, **kwargs
):
2547 __init__(int flags=0) -> FindReplaceData
2549 Constuctor initializes the flags to default value (0).
2551 newobj
= _windows
.new_FindReplaceData(*args
, **kwargs
)
2552 self
.this
= newobj
.this
2555 def __del__(self
, destroy
=_windows
.delete_FindReplaceData
):
2558 if self
.thisown
: destroy(self
)
2561 def GetFindString(*args
, **kwargs
):
2563 GetFindString() -> String
2565 Get the string to find.
2567 return _windows
.FindReplaceData_GetFindString(*args
, **kwargs
)
2569 def GetReplaceString(*args
, **kwargs
):
2571 GetReplaceString() -> String
2573 Get the replacement string.
2575 return _windows
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2577 def GetFlags(*args
, **kwargs
):
2581 Get the combination of flag values.
2583 return _windows
.FindReplaceData_GetFlags(*args
, **kwargs
)
2585 def SetFlags(*args
, **kwargs
):
2589 Set the flags to use to initialize the controls of the dialog.
2591 return _windows
.FindReplaceData_SetFlags(*args
, **kwargs
)
2593 def SetFindString(*args
, **kwargs
):
2595 SetFindString(String str)
2597 Set the string to find (used as initial value by the dialog).
2599 return _windows
.FindReplaceData_SetFindString(*args
, **kwargs
)
2601 def SetReplaceString(*args
, **kwargs
):
2603 SetReplaceString(String str)
2605 Set the replacement string (used as initial value by the dialog).
2607 return _windows
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2610 class FindReplaceDataPtr(FindReplaceData
):
2611 def __init__(self
, this
):
2613 if not hasattr(self
,"thisown"): self
.thisown
= 0
2614 self
.__class
__ = FindReplaceData
2615 _windows
.FindReplaceData_swigregister(FindReplaceDataPtr
)
2617 class FindReplaceDialog(Dialog
):
2619 FindReplaceDialog is a standard modeless dialog which is used to allow the
2620 user to search for some text (and possibly replace it with something
2621 else). The actual searching is supposed to be done in the owner window which
2622 is the parent of this dialog. Note that it means that unlike for the other
2623 standard dialogs this one must have a parent window. Also note that there is
2624 no way to use this dialog in a modal way; it is always, by design and
2625 implementation, modeless.
2628 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2629 def __init__(self
, *args
, **kwargs
):
2631 __init__(Window parent, FindReplaceData data, String title,
2632 int style=0) -> FindReplaceDialog
2634 Create a FindReplaceDialog. The parent and data parameters must be
2635 non-None. Use Show to display the dialog.
2637 newobj
= _windows
.new_FindReplaceDialog(*args
, **kwargs
)
2638 self
.this
= newobj
.this
2641 self
._setOORInfo
(self
)
2643 def Create(*args
, **kwargs
):
2645 Create(Window parent, FindReplaceData data, String title,
2646 int style=0) -> bool
2648 Create the dialog, for 2-phase create.
2650 return _windows
.FindReplaceDialog_Create(*args
, **kwargs
)
2652 def GetData(*args
, **kwargs
):
2654 GetData() -> FindReplaceData
2656 Get the FindReplaceData object used by this dialog.
2658 return _windows
.FindReplaceDialog_GetData(*args
, **kwargs
)
2660 def SetData(*args
, **kwargs
):
2662 SetData(FindReplaceData data)
2664 Set the FindReplaceData object used by this dialog.
2666 return _windows
.FindReplaceDialog_SetData(*args
, **kwargs
)
2669 class FindReplaceDialogPtr(FindReplaceDialog
):
2670 def __init__(self
, this
):
2672 if not hasattr(self
,"thisown"): self
.thisown
= 0
2673 self
.__class
__ = FindReplaceDialog
2674 _windows
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
2676 def PreFindReplaceDialog(*args
, **kwargs
):
2678 PreFindReplaceDialog() -> FindReplaceDialog
2680 Precreate a FindReplaceDialog for 2-phase creation
2682 val
= _windows
.new_PreFindReplaceDialog(*args
, **kwargs
)
2686 #---------------------------------------------------------------------------
2688 IDM_WINDOWTILE
= _windows
.IDM_WINDOWTILE
2689 IDM_WINDOWTILEHOR
= _windows
.IDM_WINDOWTILEHOR
2690 IDM_WINDOWCASCADE
= _windows
.IDM_WINDOWCASCADE
2691 IDM_WINDOWICONS
= _windows
.IDM_WINDOWICONS
2692 IDM_WINDOWNEXT
= _windows
.IDM_WINDOWNEXT
2693 IDM_WINDOWTILEVERT
= _windows
.IDM_WINDOWTILEVERT
2694 FIRST_MDI_CHILD
= _windows
.FIRST_MDI_CHILD
2695 LAST_MDI_CHILD
= _windows
.LAST_MDI_CHILD
2696 class MDIParentFrame(Frame
):
2698 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2699 def __init__(self
, *args
, **kwargs
):
2701 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
2702 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2703 String name=FrameNameStr) -> MDIParentFrame
2705 newobj
= _windows
.new_MDIParentFrame(*args
, **kwargs
)
2706 self
.this
= newobj
.this
2709 self
._setOORInfo
(self
)
2711 def Create(*args
, **kwargs
):
2713 Create(Window parent, int id, String title, Point pos=DefaultPosition,
2714 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2715 String name=FrameNameStr) -> bool
2717 return _windows
.MDIParentFrame_Create(*args
, **kwargs
)
2719 def ActivateNext(*args
, **kwargs
):
2720 """ActivateNext()"""
2721 return _windows
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
2723 def ActivatePrevious(*args
, **kwargs
):
2724 """ActivatePrevious()"""
2725 return _windows
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
2727 def ArrangeIcons(*args
, **kwargs
):
2728 """ArrangeIcons()"""
2729 return _windows
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
2731 def Cascade(*args
, **kwargs
):
2733 return _windows
.MDIParentFrame_Cascade(*args
, **kwargs
)
2735 def GetActiveChild(*args
, **kwargs
):
2736 """GetActiveChild() -> MDIChildFrame"""
2737 return _windows
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
2739 def GetClientWindow(*args
, **kwargs
):
2740 """GetClientWindow() -> MDIClientWindow"""
2741 return _windows
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
2743 def GetToolBar(*args
, **kwargs
):
2744 """GetToolBar() -> Window"""
2745 return _windows
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
2747 def Tile(*args
, **kwargs
):
2749 return _windows
.MDIParentFrame_Tile(*args
, **kwargs
)
2752 class MDIParentFramePtr(MDIParentFrame
):
2753 def __init__(self
, this
):
2755 if not hasattr(self
,"thisown"): self
.thisown
= 0
2756 self
.__class
__ = MDIParentFrame
2757 _windows
.MDIParentFrame_swigregister(MDIParentFramePtr
)
2759 def PreMDIParentFrame(*args
, **kwargs
):
2760 """PreMDIParentFrame() -> MDIParentFrame"""
2761 val
= _windows
.new_PreMDIParentFrame(*args
, **kwargs
)
2765 class MDIChildFrame(Frame
):
2767 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2768 def __init__(self
, *args
, **kwargs
):
2770 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2771 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2772 String name=FrameNameStr) -> MDIChildFrame
2774 newobj
= _windows
.new_MDIChildFrame(*args
, **kwargs
)
2775 self
.this
= newobj
.this
2778 self
._setOORInfo
(self
)
2780 def Create(*args
, **kwargs
):
2782 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2783 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2784 String name=FrameNameStr) -> bool
2786 return _windows
.MDIChildFrame_Create(*args
, **kwargs
)
2788 def Activate(*args
, **kwargs
):
2790 return _windows
.MDIChildFrame_Activate(*args
, **kwargs
)
2792 def Maximize(*args
, **kwargs
):
2793 """Maximize(bool maximize)"""
2794 return _windows
.MDIChildFrame_Maximize(*args
, **kwargs
)
2796 def Restore(*args
, **kwargs
):
2798 return _windows
.MDIChildFrame_Restore(*args
, **kwargs
)
2801 class MDIChildFramePtr(MDIChildFrame
):
2802 def __init__(self
, this
):
2804 if not hasattr(self
,"thisown"): self
.thisown
= 0
2805 self
.__class
__ = MDIChildFrame
2806 _windows
.MDIChildFrame_swigregister(MDIChildFramePtr
)
2808 def PreMDIChildFrame(*args
, **kwargs
):
2809 """PreMDIChildFrame() -> MDIChildFrame"""
2810 val
= _windows
.new_PreMDIChildFrame(*args
, **kwargs
)
2814 class MDIClientWindow(core
.Window
):
2816 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2817 def __init__(self
, *args
, **kwargs
):
2818 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
2819 newobj
= _windows
.new_MDIClientWindow(*args
, **kwargs
)
2820 self
.this
= newobj
.this
2823 self
._setOORInfo
(self
)
2825 def Create(*args
, **kwargs
):
2826 """Create(MDIParentFrame parent, long style=0) -> bool"""
2827 return _windows
.MDIClientWindow_Create(*args
, **kwargs
)
2830 class MDIClientWindowPtr(MDIClientWindow
):
2831 def __init__(self
, this
):
2833 if not hasattr(self
,"thisown"): self
.thisown
= 0
2834 self
.__class
__ = MDIClientWindow
2835 _windows
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
2837 def PreMDIClientWindow(*args
, **kwargs
):
2838 """PreMDIClientWindow() -> MDIClientWindow"""
2839 val
= _windows
.new_PreMDIClientWindow(*args
, **kwargs
)
2843 #---------------------------------------------------------------------------
2845 class PyWindow(core
.Window
):
2847 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2848 def __init__(self
, *args
, **kwargs
):
2850 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2851 long style=0, String name=PanelNameStr) -> PyWindow
2853 newobj
= _windows
.new_PyWindow(*args
, **kwargs
)
2854 self
.this
= newobj
.this
2857 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
2859 def _setCallbackInfo(*args
, **kwargs
):
2860 """_setCallbackInfo(PyObject self, PyObject _class)"""
2861 return _windows
.PyWindow__setCallbackInfo(*args
, **kwargs
)
2863 def base_DoMoveWindow(*args
, **kwargs
):
2864 """base_DoMoveWindow(int x, int y, int width, int height)"""
2865 return _windows
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
2867 def base_DoSetSize(*args
, **kwargs
):
2868 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2869 return _windows
.PyWindow_base_DoSetSize(*args
, **kwargs
)
2871 def base_DoSetClientSize(*args
, **kwargs
):
2872 """base_DoSetClientSize(int width, int height)"""
2873 return _windows
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
2875 def base_DoSetVirtualSize(*args
, **kwargs
):
2876 """base_DoSetVirtualSize(int x, int y)"""
2877 return _windows
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
2879 def base_DoGetSize(*args
, **kwargs
):
2880 """base_DoGetSize() -> (width, height)"""
2881 return _windows
.PyWindow_base_DoGetSize(*args
, **kwargs
)
2883 def base_DoGetClientSize(*args
, **kwargs
):
2884 """base_DoGetClientSize() -> (width, height)"""
2885 return _windows
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
2887 def base_DoGetPosition(*args
, **kwargs
):
2888 """base_DoGetPosition() -> (x,y)"""
2889 return _windows
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
2891 def base_DoGetVirtualSize(*args
, **kwargs
):
2892 """base_DoGetVirtualSize() -> Size"""
2893 return _windows
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
2895 def base_DoGetBestSize(*args
, **kwargs
):
2896 """base_DoGetBestSize() -> Size"""
2897 return _windows
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
2899 def base_InitDialog(*args
, **kwargs
):
2900 """base_InitDialog()"""
2901 return _windows
.PyWindow_base_InitDialog(*args
, **kwargs
)
2903 def base_TransferDataToWindow(*args
, **kwargs
):
2904 """base_TransferDataToWindow() -> bool"""
2905 return _windows
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
2907 def base_TransferDataFromWindow(*args
, **kwargs
):
2908 """base_TransferDataFromWindow() -> bool"""
2909 return _windows
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
2911 def base_Validate(*args
, **kwargs
):
2912 """base_Validate() -> bool"""
2913 return _windows
.PyWindow_base_Validate(*args
, **kwargs
)
2915 def base_AcceptsFocus(*args
, **kwargs
):
2916 """base_AcceptsFocus() -> bool"""
2917 return _windows
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
2919 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
2920 """base_AcceptsFocusFromKeyboard() -> bool"""
2921 return _windows
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
2923 def base_GetMaxSize(*args
, **kwargs
):
2924 """base_GetMaxSize() -> Size"""
2925 return _windows
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
2927 def base_AddChild(*args
, **kwargs
):
2928 """base_AddChild(Window child)"""
2929 return _windows
.PyWindow_base_AddChild(*args
, **kwargs
)
2931 def base_RemoveChild(*args
, **kwargs
):
2932 """base_RemoveChild(Window child)"""
2933 return _windows
.PyWindow_base_RemoveChild(*args
, **kwargs
)
2936 class PyWindowPtr(PyWindow
):
2937 def __init__(self
, this
):
2939 if not hasattr(self
,"thisown"): self
.thisown
= 0
2940 self
.__class
__ = PyWindow
2941 _windows
.PyWindow_swigregister(PyWindowPtr
)
2943 class PyPanel(Panel
):
2945 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2946 def __init__(self
, *args
, **kwargs
):
2948 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2949 long style=0, String name=PanelNameStr) -> PyPanel
2951 newobj
= _windows
.new_PyPanel(*args
, **kwargs
)
2952 self
.this
= newobj
.this
2955 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
2957 def _setCallbackInfo(*args
, **kwargs
):
2958 """_setCallbackInfo(PyObject self, PyObject _class)"""
2959 return _windows
.PyPanel__setCallbackInfo(*args
, **kwargs
)
2961 def base_DoMoveWindow(*args
, **kwargs
):
2962 """base_DoMoveWindow(int x, int y, int width, int height)"""
2963 return _windows
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
2965 def base_DoSetSize(*args
, **kwargs
):
2966 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2967 return _windows
.PyPanel_base_DoSetSize(*args
, **kwargs
)
2969 def base_DoSetClientSize(*args
, **kwargs
):
2970 """base_DoSetClientSize(int width, int height)"""
2971 return _windows
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
2973 def base_DoSetVirtualSize(*args
, **kwargs
):
2974 """base_DoSetVirtualSize(int x, int y)"""
2975 return _windows
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
2977 def base_DoGetSize(*args
, **kwargs
):
2978 """base_DoGetSize() -> (width, height)"""
2979 return _windows
.PyPanel_base_DoGetSize(*args
, **kwargs
)
2981 def base_DoGetClientSize(*args
, **kwargs
):
2982 """base_DoGetClientSize() -> (width, height)"""
2983 return _windows
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
2985 def base_DoGetPosition(*args
, **kwargs
):
2986 """base_DoGetPosition() -> (x,y)"""
2987 return _windows
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
2989 def base_DoGetVirtualSize(*args
, **kwargs
):
2990 """base_DoGetVirtualSize() -> Size"""
2991 return _windows
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
2993 def base_DoGetBestSize(*args
, **kwargs
):
2994 """base_DoGetBestSize() -> Size"""
2995 return _windows
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
2997 def base_InitDialog(*args
, **kwargs
):
2998 """base_InitDialog()"""
2999 return _windows
.PyPanel_base_InitDialog(*args
, **kwargs
)
3001 def base_TransferDataToWindow(*args
, **kwargs
):
3002 """base_TransferDataToWindow() -> bool"""
3003 return _windows
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3005 def base_TransferDataFromWindow(*args
, **kwargs
):
3006 """base_TransferDataFromWindow() -> bool"""
3007 return _windows
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3009 def base_Validate(*args
, **kwargs
):
3010 """base_Validate() -> bool"""
3011 return _windows
.PyPanel_base_Validate(*args
, **kwargs
)
3013 def base_AcceptsFocus(*args
, **kwargs
):
3014 """base_AcceptsFocus() -> bool"""
3015 return _windows
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3017 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3018 """base_AcceptsFocusFromKeyboard() -> bool"""
3019 return _windows
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3021 def base_GetMaxSize(*args
, **kwargs
):
3022 """base_GetMaxSize() -> Size"""
3023 return _windows
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3025 def base_AddChild(*args
, **kwargs
):
3026 """base_AddChild(Window child)"""
3027 return _windows
.PyPanel_base_AddChild(*args
, **kwargs
)
3029 def base_RemoveChild(*args
, **kwargs
):
3030 """base_RemoveChild(Window child)"""
3031 return _windows
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3034 class PyPanelPtr(PyPanel
):
3035 def __init__(self
, this
):
3037 if not hasattr(self
,"thisown"): self
.thisown
= 0
3038 self
.__class
__ = PyPanel
3039 _windows
.PyPanel_swigregister(PyPanelPtr
)
3041 #---------------------------------------------------------------------------
3043 PRINT_MODE_NONE
= _windows
.PRINT_MODE_NONE
3044 PRINT_MODE_PREVIEW
= _windows
.PRINT_MODE_PREVIEW
3045 PRINT_MODE_FILE
= _windows
.PRINT_MODE_FILE
3046 PRINT_MODE_PRINTER
= _windows
.PRINT_MODE_PRINTER
3047 PRINT_MODE_STREAM
= _windows
.PRINT_MODE_STREAM
3048 class PrintData(core
.Object
):
3050 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3051 def __init__(self
, *args
, **kwargs
):
3052 """__init__() -> PrintData"""
3053 newobj
= _windows
.new_PrintData(*args
, **kwargs
)
3054 self
.this
= newobj
.this
3057 def __del__(self
, destroy
=_windows
.delete_PrintData
):
3060 if self
.thisown
: destroy(self
)
3063 def GetNoCopies(*args
, **kwargs
):
3064 """GetNoCopies() -> int"""
3065 return _windows
.PrintData_GetNoCopies(*args
, **kwargs
)
3067 def GetCollate(*args
, **kwargs
):
3068 """GetCollate() -> bool"""
3069 return _windows
.PrintData_GetCollate(*args
, **kwargs
)
3071 def GetOrientation(*args
, **kwargs
):
3072 """GetOrientation() -> int"""
3073 return _windows
.PrintData_GetOrientation(*args
, **kwargs
)
3075 def Ok(*args
, **kwargs
):
3077 return _windows
.PrintData_Ok(*args
, **kwargs
)
3079 def GetPrinterName(*args
, **kwargs
):
3080 """GetPrinterName() -> String"""
3081 return _windows
.PrintData_GetPrinterName(*args
, **kwargs
)
3083 def GetColour(*args
, **kwargs
):
3084 """GetColour() -> bool"""
3085 return _windows
.PrintData_GetColour(*args
, **kwargs
)
3087 def GetDuplex(*args
, **kwargs
):
3088 """GetDuplex() -> int"""
3089 return _windows
.PrintData_GetDuplex(*args
, **kwargs
)
3091 def GetPaperId(*args
, **kwargs
):
3092 """GetPaperId() -> int"""
3093 return _windows
.PrintData_GetPaperId(*args
, **kwargs
)
3095 def GetPaperSize(*args
, **kwargs
):
3096 """GetPaperSize() -> Size"""
3097 return _windows
.PrintData_GetPaperSize(*args
, **kwargs
)
3099 def GetQuality(*args
, **kwargs
):
3100 """GetQuality() -> int"""
3101 return _windows
.PrintData_GetQuality(*args
, **kwargs
)
3103 def SetNoCopies(*args
, **kwargs
):
3104 """SetNoCopies(int v)"""
3105 return _windows
.PrintData_SetNoCopies(*args
, **kwargs
)
3107 def SetCollate(*args
, **kwargs
):
3108 """SetCollate(bool flag)"""
3109 return _windows
.PrintData_SetCollate(*args
, **kwargs
)
3111 def SetOrientation(*args
, **kwargs
):
3112 """SetOrientation(int orient)"""
3113 return _windows
.PrintData_SetOrientation(*args
, **kwargs
)
3115 def SetPrinterName(*args
, **kwargs
):
3116 """SetPrinterName(String name)"""
3117 return _windows
.PrintData_SetPrinterName(*args
, **kwargs
)
3119 def SetColour(*args
, **kwargs
):
3120 """SetColour(bool colour)"""
3121 return _windows
.PrintData_SetColour(*args
, **kwargs
)
3123 def SetDuplex(*args
, **kwargs
):
3124 """SetDuplex(int duplex)"""
3125 return _windows
.PrintData_SetDuplex(*args
, **kwargs
)
3127 def SetPaperId(*args
, **kwargs
):
3128 """SetPaperId(int sizeId)"""
3129 return _windows
.PrintData_SetPaperId(*args
, **kwargs
)
3131 def SetPaperSize(*args
, **kwargs
):
3132 """SetPaperSize(Size sz)"""
3133 return _windows
.PrintData_SetPaperSize(*args
, **kwargs
)
3135 def SetQuality(*args
, **kwargs
):
3136 """SetQuality(int quality)"""
3137 return _windows
.PrintData_SetQuality(*args
, **kwargs
)
3139 def GetPrinterCommand(*args
, **kwargs
):
3140 """GetPrinterCommand() -> String"""
3141 return _windows
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3143 def GetPrinterOptions(*args
, **kwargs
):
3144 """GetPrinterOptions() -> String"""
3145 return _windows
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3147 def GetPreviewCommand(*args
, **kwargs
):
3148 """GetPreviewCommand() -> String"""
3149 return _windows
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3151 def GetFilename(*args
, **kwargs
):
3152 """GetFilename() -> String"""
3153 return _windows
.PrintData_GetFilename(*args
, **kwargs
)
3155 def GetFontMetricPath(*args
, **kwargs
):
3156 """GetFontMetricPath() -> String"""
3157 return _windows
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3159 def GetPrinterScaleX(*args
, **kwargs
):
3160 """GetPrinterScaleX() -> double"""
3161 return _windows
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3163 def GetPrinterScaleY(*args
, **kwargs
):
3164 """GetPrinterScaleY() -> double"""
3165 return _windows
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3167 def GetPrinterTranslateX(*args
, **kwargs
):
3168 """GetPrinterTranslateX() -> long"""
3169 return _windows
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3171 def GetPrinterTranslateY(*args
, **kwargs
):
3172 """GetPrinterTranslateY() -> long"""
3173 return _windows
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3175 def GetPrintMode(*args
, **kwargs
):
3176 """GetPrintMode() -> int"""
3177 return _windows
.PrintData_GetPrintMode(*args
, **kwargs
)
3179 def SetPrinterCommand(*args
, **kwargs
):
3180 """SetPrinterCommand(String command)"""
3181 return _windows
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3183 def SetPrinterOptions(*args
, **kwargs
):
3184 """SetPrinterOptions(String options)"""
3185 return _windows
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3187 def SetPreviewCommand(*args
, **kwargs
):
3188 """SetPreviewCommand(String command)"""
3189 return _windows
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3191 def SetFilename(*args
, **kwargs
):
3192 """SetFilename(String filename)"""
3193 return _windows
.PrintData_SetFilename(*args
, **kwargs
)
3195 def SetFontMetricPath(*args
, **kwargs
):
3196 """SetFontMetricPath(String path)"""
3197 return _windows
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3199 def SetPrinterScaleX(*args
, **kwargs
):
3200 """SetPrinterScaleX(double x)"""
3201 return _windows
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3203 def SetPrinterScaleY(*args
, **kwargs
):
3204 """SetPrinterScaleY(double y)"""
3205 return _windows
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3207 def SetPrinterScaling(*args
, **kwargs
):
3208 """SetPrinterScaling(double x, double y)"""
3209 return _windows
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3211 def SetPrinterTranslateX(*args
, **kwargs
):
3212 """SetPrinterTranslateX(long x)"""
3213 return _windows
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3215 def SetPrinterTranslateY(*args
, **kwargs
):
3216 """SetPrinterTranslateY(long y)"""
3217 return _windows
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3219 def SetPrinterTranslation(*args
, **kwargs
):
3220 """SetPrinterTranslation(long x, long y)"""
3221 return _windows
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3223 def SetPrintMode(*args
, **kwargs
):
3224 """SetPrintMode(int printMode)"""
3225 return _windows
.PrintData_SetPrintMode(*args
, **kwargs
)
3227 def GetOutputStream(*args
, **kwargs
):
3228 """GetOutputStream() -> OutputStream"""
3229 return _windows
.PrintData_GetOutputStream(*args
, **kwargs
)
3231 def SetOutputStream(*args
, **kwargs
):
3232 """SetOutputStream(OutputStream outputstream)"""
3233 return _windows
.PrintData_SetOutputStream(*args
, **kwargs
)
3235 def __nonzero__(self
): return self
.Ok()
3237 class PrintDataPtr(PrintData
):
3238 def __init__(self
, this
):
3240 if not hasattr(self
,"thisown"): self
.thisown
= 0
3241 self
.__class
__ = PrintData
3242 _windows
.PrintData_swigregister(PrintDataPtr
)
3243 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3244 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3246 class PageSetupDialogData(core
.Object
):
3248 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3249 def __init__(self
, *args
, **kwargs
):
3250 """__init__() -> PageSetupDialogData"""
3251 newobj
= _windows
.new_PageSetupDialogData(*args
, **kwargs
)
3252 self
.this
= newobj
.this
3255 def __del__(self
, destroy
=_windows
.delete_PageSetupDialogData
):
3258 if self
.thisown
: destroy(self
)
3261 def EnableHelp(*args
, **kwargs
):
3262 """EnableHelp(bool flag)"""
3263 return _windows
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3265 def EnableMargins(*args
, **kwargs
):
3266 """EnableMargins(bool flag)"""
3267 return _windows
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3269 def EnableOrientation(*args
, **kwargs
):
3270 """EnableOrientation(bool flag)"""
3271 return _windows
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3273 def EnablePaper(*args
, **kwargs
):
3274 """EnablePaper(bool flag)"""
3275 return _windows
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3277 def EnablePrinter(*args
, **kwargs
):
3278 """EnablePrinter(bool flag)"""
3279 return _windows
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3281 def GetDefaultMinMargins(*args
, **kwargs
):
3282 """GetDefaultMinMargins() -> bool"""
3283 return _windows
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3285 def GetEnableMargins(*args
, **kwargs
):
3286 """GetEnableMargins() -> bool"""
3287 return _windows
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3289 def GetEnableOrientation(*args
, **kwargs
):
3290 """GetEnableOrientation() -> bool"""
3291 return _windows
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3293 def GetEnablePaper(*args
, **kwargs
):
3294 """GetEnablePaper() -> bool"""
3295 return _windows
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3297 def GetEnablePrinter(*args
, **kwargs
):
3298 """GetEnablePrinter() -> bool"""
3299 return _windows
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3301 def GetEnableHelp(*args
, **kwargs
):
3302 """GetEnableHelp() -> bool"""
3303 return _windows
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3305 def GetDefaultInfo(*args
, **kwargs
):
3306 """GetDefaultInfo() -> bool"""
3307 return _windows
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3309 def GetMarginTopLeft(*args
, **kwargs
):
3310 """GetMarginTopLeft() -> Point"""
3311 return _windows
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3313 def GetMarginBottomRight(*args
, **kwargs
):
3314 """GetMarginBottomRight() -> Point"""
3315 return _windows
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3317 def GetMinMarginTopLeft(*args
, **kwargs
):
3318 """GetMinMarginTopLeft() -> Point"""
3319 return _windows
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3321 def GetMinMarginBottomRight(*args
, **kwargs
):
3322 """GetMinMarginBottomRight() -> Point"""
3323 return _windows
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3325 def GetPaperId(*args
, **kwargs
):
3326 """GetPaperId() -> int"""
3327 return _windows
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3329 def GetPaperSize(*args
, **kwargs
):
3330 """GetPaperSize() -> Size"""
3331 return _windows
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3333 def GetPrintData(*args
, **kwargs
):
3334 """GetPrintData() -> PrintData"""
3335 return _windows
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3337 def Ok(*args
, **kwargs
):
3339 return _windows
.PageSetupDialogData_Ok(*args
, **kwargs
)
3341 def SetDefaultInfo(*args
, **kwargs
):
3342 """SetDefaultInfo(bool flag)"""
3343 return _windows
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3345 def SetDefaultMinMargins(*args
, **kwargs
):
3346 """SetDefaultMinMargins(bool flag)"""
3347 return _windows
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3349 def SetMarginTopLeft(*args
, **kwargs
):
3350 """SetMarginTopLeft(Point pt)"""
3351 return _windows
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3353 def SetMarginBottomRight(*args
, **kwargs
):
3354 """SetMarginBottomRight(Point pt)"""
3355 return _windows
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3357 def SetMinMarginTopLeft(*args
, **kwargs
):
3358 """SetMinMarginTopLeft(Point pt)"""
3359 return _windows
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3361 def SetMinMarginBottomRight(*args
, **kwargs
):
3362 """SetMinMarginBottomRight(Point pt)"""
3363 return _windows
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3365 def SetPaperId(*args
, **kwargs
):
3366 """SetPaperId(int id)"""
3367 return _windows
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3369 def SetPaperSize(*args
, **kwargs
):
3370 """SetPaperSize(Size size)"""
3371 return _windows
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3373 def SetPrintData(*args
, **kwargs
):
3374 """SetPrintData(PrintData printData)"""
3375 return _windows
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3377 def __nonzero__(self
): return self
.Ok()
3379 class PageSetupDialogDataPtr(PageSetupDialogData
):
3380 def __init__(self
, this
):
3382 if not hasattr(self
,"thisown"): self
.thisown
= 0
3383 self
.__class
__ = PageSetupDialogData
3384 _windows
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3386 class PageSetupDialog(Dialog
):
3388 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3389 def __init__(self
, *args
, **kwargs
):
3390 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3391 newobj
= _windows
.new_PageSetupDialog(*args
, **kwargs
)
3392 self
.this
= newobj
.this
3395 self
._setOORInfo
(self
)
3397 def GetPageSetupData(*args
, **kwargs
):
3398 """GetPageSetupData() -> PageSetupDialogData"""
3399 return _windows
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3401 def ShowModal(*args
, **kwargs
):
3402 """ShowModal() -> int"""
3403 return _windows
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3406 class PageSetupDialogPtr(PageSetupDialog
):
3407 def __init__(self
, this
):
3409 if not hasattr(self
,"thisown"): self
.thisown
= 0
3410 self
.__class
__ = PageSetupDialog
3411 _windows
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3413 class PrintDialogData(core
.Object
):
3415 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3416 def __init__(self
, *args
):
3418 __init__() -> PrintDialogData
3419 __init__(PrintData printData) -> PrintDialogData
3421 newobj
= _windows
.new_PrintDialogData(*args
)
3422 self
.this
= newobj
.this
3425 def __del__(self
, destroy
=_windows
.delete_PrintDialogData
):
3428 if self
.thisown
: destroy(self
)
3431 def GetFromPage(*args
, **kwargs
):
3432 """GetFromPage() -> int"""
3433 return _windows
.PrintDialogData_GetFromPage(*args
, **kwargs
)
3435 def GetToPage(*args
, **kwargs
):
3436 """GetToPage() -> int"""
3437 return _windows
.PrintDialogData_GetToPage(*args
, **kwargs
)
3439 def GetMinPage(*args
, **kwargs
):
3440 """GetMinPage() -> int"""
3441 return _windows
.PrintDialogData_GetMinPage(*args
, **kwargs
)
3443 def GetMaxPage(*args
, **kwargs
):
3444 """GetMaxPage() -> int"""
3445 return _windows
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
3447 def GetNoCopies(*args
, **kwargs
):
3448 """GetNoCopies() -> int"""
3449 return _windows
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
3451 def GetAllPages(*args
, **kwargs
):
3452 """GetAllPages() -> bool"""
3453 return _windows
.PrintDialogData_GetAllPages(*args
, **kwargs
)
3455 def GetSelection(*args
, **kwargs
):
3456 """GetSelection() -> bool"""
3457 return _windows
.PrintDialogData_GetSelection(*args
, **kwargs
)
3459 def GetCollate(*args
, **kwargs
):
3460 """GetCollate() -> bool"""
3461 return _windows
.PrintDialogData_GetCollate(*args
, **kwargs
)
3463 def GetPrintToFile(*args
, **kwargs
):
3464 """GetPrintToFile() -> bool"""
3465 return _windows
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
3467 def GetSetupDialog(*args
, **kwargs
):
3468 """GetSetupDialog() -> bool"""
3469 return _windows
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
3471 def SetFromPage(*args
, **kwargs
):
3472 """SetFromPage(int v)"""
3473 return _windows
.PrintDialogData_SetFromPage(*args
, **kwargs
)
3475 def SetToPage(*args
, **kwargs
):
3476 """SetToPage(int v)"""
3477 return _windows
.PrintDialogData_SetToPage(*args
, **kwargs
)
3479 def SetMinPage(*args
, **kwargs
):
3480 """SetMinPage(int v)"""
3481 return _windows
.PrintDialogData_SetMinPage(*args
, **kwargs
)
3483 def SetMaxPage(*args
, **kwargs
):
3484 """SetMaxPage(int v)"""
3485 return _windows
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
3487 def SetNoCopies(*args
, **kwargs
):
3488 """SetNoCopies(int v)"""
3489 return _windows
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
3491 def SetAllPages(*args
, **kwargs
):
3492 """SetAllPages(bool flag)"""
3493 return _windows
.PrintDialogData_SetAllPages(*args
, **kwargs
)
3495 def SetSelection(*args
, **kwargs
):
3496 """SetSelection(bool flag)"""
3497 return _windows
.PrintDialogData_SetSelection(*args
, **kwargs
)
3499 def SetCollate(*args
, **kwargs
):
3500 """SetCollate(bool flag)"""
3501 return _windows
.PrintDialogData_SetCollate(*args
, **kwargs
)
3503 def SetPrintToFile(*args
, **kwargs
):
3504 """SetPrintToFile(bool flag)"""
3505 return _windows
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
3507 def SetSetupDialog(*args
, **kwargs
):
3508 """SetSetupDialog(bool flag)"""
3509 return _windows
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
3511 def EnablePrintToFile(*args
, **kwargs
):
3512 """EnablePrintToFile(bool flag)"""
3513 return _windows
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
3515 def EnableSelection(*args
, **kwargs
):
3516 """EnableSelection(bool flag)"""
3517 return _windows
.PrintDialogData_EnableSelection(*args
, **kwargs
)
3519 def EnablePageNumbers(*args
, **kwargs
):
3520 """EnablePageNumbers(bool flag)"""
3521 return _windows
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
3523 def EnableHelp(*args
, **kwargs
):
3524 """EnableHelp(bool flag)"""
3525 return _windows
.PrintDialogData_EnableHelp(*args
, **kwargs
)
3527 def GetEnablePrintToFile(*args
, **kwargs
):
3528 """GetEnablePrintToFile() -> bool"""
3529 return _windows
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
3531 def GetEnableSelection(*args
, **kwargs
):
3532 """GetEnableSelection() -> bool"""
3533 return _windows
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
3535 def GetEnablePageNumbers(*args
, **kwargs
):
3536 """GetEnablePageNumbers() -> bool"""
3537 return _windows
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
3539 def GetEnableHelp(*args
, **kwargs
):
3540 """GetEnableHelp() -> bool"""
3541 return _windows
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
3543 def Ok(*args
, **kwargs
):
3545 return _windows
.PrintDialogData_Ok(*args
, **kwargs
)
3547 def GetPrintData(*args
, **kwargs
):
3548 """GetPrintData() -> PrintData"""
3549 return _windows
.PrintDialogData_GetPrintData(*args
, **kwargs
)
3551 def SetPrintData(*args
, **kwargs
):
3552 """SetPrintData(PrintData printData)"""
3553 return _windows
.PrintDialogData_SetPrintData(*args
, **kwargs
)
3555 def __nonzero__(self
): return self
.Ok()
3557 class PrintDialogDataPtr(PrintDialogData
):
3558 def __init__(self
, this
):
3560 if not hasattr(self
,"thisown"): self
.thisown
= 0
3561 self
.__class
__ = PrintDialogData
3562 _windows
.PrintDialogData_swigregister(PrintDialogDataPtr
)
3564 class PrintDialog(Dialog
):
3566 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3567 def __init__(self
, *args
, **kwargs
):
3568 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
3569 newobj
= _windows
.new_PrintDialog(*args
, **kwargs
)
3570 self
.this
= newobj
.this
3573 self
._setOORInfo
(self
)
3575 def GetPrintDialogData(*args
, **kwargs
):
3576 """GetPrintDialogData() -> PrintDialogData"""
3577 return _windows
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
3579 def GetPrintDC(*args
, **kwargs
):
3580 """GetPrintDC() -> DC"""
3581 return _windows
.PrintDialog_GetPrintDC(*args
, **kwargs
)
3583 def ShowModal(*args
, **kwargs
):
3584 """ShowModal() -> int"""
3585 return _windows
.PrintDialog_ShowModal(*args
, **kwargs
)
3588 class PrintDialogPtr(PrintDialog
):
3589 def __init__(self
, this
):
3591 if not hasattr(self
,"thisown"): self
.thisown
= 0
3592 self
.__class
__ = PrintDialog
3593 _windows
.PrintDialog_swigregister(PrintDialogPtr
)
3595 PRINTER_NO_ERROR
= _windows
.PRINTER_NO_ERROR
3596 PRINTER_CANCELLED
= _windows
.PRINTER_CANCELLED
3597 PRINTER_ERROR
= _windows
.PRINTER_ERROR
3598 class Printer(core
.Object
):
3600 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3601 def __init__(self
, *args
, **kwargs
):
3602 """__init__(PrintDialogData data=None) -> Printer"""
3603 newobj
= _windows
.new_Printer(*args
, **kwargs
)
3604 self
.this
= newobj
.this
3607 def __del__(self
, destroy
=_windows
.delete_Printer
):
3610 if self
.thisown
: destroy(self
)
3613 def CreateAbortWindow(*args
, **kwargs
):
3614 """CreateAbortWindow(Window parent, Printout printout)"""
3615 return _windows
.Printer_CreateAbortWindow(*args
, **kwargs
)
3617 def GetPrintDialogData(*args
, **kwargs
):
3618 """GetPrintDialogData() -> PrintDialogData"""
3619 return _windows
.Printer_GetPrintDialogData(*args
, **kwargs
)
3621 def Print(*args
, **kwargs
):
3622 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
3623 return _windows
.Printer_Print(*args
, **kwargs
)
3625 def PrintDialog(*args
, **kwargs
):
3626 """PrintDialog(Window parent) -> DC"""
3627 return _windows
.Printer_PrintDialog(*args
, **kwargs
)
3629 def ReportError(*args
, **kwargs
):
3630 """ReportError(Window parent, Printout printout, String message)"""
3631 return _windows
.Printer_ReportError(*args
, **kwargs
)
3633 def Setup(*args
, **kwargs
):
3634 """Setup(Window parent) -> bool"""
3635 return _windows
.Printer_Setup(*args
, **kwargs
)
3637 def GetAbort(*args
, **kwargs
):
3638 """GetAbort() -> bool"""
3639 return _windows
.Printer_GetAbort(*args
, **kwargs
)
3641 def GetLastError(*args
, **kwargs
):
3642 """GetLastError() -> int"""
3643 return _windows
.Printer_GetLastError(*args
, **kwargs
)
3645 GetLastError
= staticmethod(GetLastError
)
3647 class PrinterPtr(Printer
):
3648 def __init__(self
, this
):
3650 if not hasattr(self
,"thisown"): self
.thisown
= 0
3651 self
.__class
__ = Printer
3652 _windows
.Printer_swigregister(PrinterPtr
)
3654 def Printer_GetLastError(*args
, **kwargs
):
3655 """Printer_GetLastError() -> int"""
3656 return _windows
.Printer_GetLastError(*args
, **kwargs
)
3658 class Printout(core
.Object
):
3660 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3661 def __init__(self
, *args
, **kwargs
):
3662 """__init__(String title=PrintoutTitleStr) -> Printout"""
3663 newobj
= _windows
.new_Printout(*args
, **kwargs
)
3664 self
.this
= newobj
.this
3667 self
._setCallbackInfo
(self
, Printout
)
3669 def _setCallbackInfo(*args
, **kwargs
):
3670 """_setCallbackInfo(PyObject self, PyObject _class)"""
3671 return _windows
.Printout__setCallbackInfo(*args
, **kwargs
)
3673 def GetTitle(*args
, **kwargs
):
3674 """GetTitle() -> String"""
3675 return _windows
.Printout_GetTitle(*args
, **kwargs
)
3677 def GetDC(*args
, **kwargs
):
3679 return _windows
.Printout_GetDC(*args
, **kwargs
)
3681 def SetDC(*args
, **kwargs
):
3683 return _windows
.Printout_SetDC(*args
, **kwargs
)
3685 def SetPageSizePixels(*args
, **kwargs
):
3686 """SetPageSizePixels(int w, int h)"""
3687 return _windows
.Printout_SetPageSizePixels(*args
, **kwargs
)
3689 def GetPageSizePixels(*args
, **kwargs
):
3690 """GetPageSizePixels() -> (w, h)"""
3691 return _windows
.Printout_GetPageSizePixels(*args
, **kwargs
)
3693 def SetPageSizeMM(*args
, **kwargs
):
3694 """SetPageSizeMM(int w, int h)"""
3695 return _windows
.Printout_SetPageSizeMM(*args
, **kwargs
)
3697 def GetPageSizeMM(*args
, **kwargs
):
3698 """GetPageSizeMM() -> (w, h)"""
3699 return _windows
.Printout_GetPageSizeMM(*args
, **kwargs
)
3701 def SetPPIScreen(*args
, **kwargs
):
3702 """SetPPIScreen(int x, int y)"""
3703 return _windows
.Printout_SetPPIScreen(*args
, **kwargs
)
3705 def GetPPIScreen(*args
, **kwargs
):
3706 """GetPPIScreen() -> (x,y)"""
3707 return _windows
.Printout_GetPPIScreen(*args
, **kwargs
)
3709 def SetPPIPrinter(*args
, **kwargs
):
3710 """SetPPIPrinter(int x, int y)"""
3711 return _windows
.Printout_SetPPIPrinter(*args
, **kwargs
)
3713 def GetPPIPrinter(*args
, **kwargs
):
3714 """GetPPIPrinter() -> (x,y)"""
3715 return _windows
.Printout_GetPPIPrinter(*args
, **kwargs
)
3717 def IsPreview(*args
, **kwargs
):
3718 """IsPreview() -> bool"""
3719 return _windows
.Printout_IsPreview(*args
, **kwargs
)
3721 def SetIsPreview(*args
, **kwargs
):
3722 """SetIsPreview(bool p)"""
3723 return _windows
.Printout_SetIsPreview(*args
, **kwargs
)
3725 def base_OnBeginDocument(*args
, **kwargs
):
3726 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
3727 return _windows
.Printout_base_OnBeginDocument(*args
, **kwargs
)
3729 def base_OnEndDocument(*args
, **kwargs
):
3730 """base_OnEndDocument()"""
3731 return _windows
.Printout_base_OnEndDocument(*args
, **kwargs
)
3733 def base_OnBeginPrinting(*args
, **kwargs
):
3734 """base_OnBeginPrinting()"""
3735 return _windows
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
3737 def base_OnEndPrinting(*args
, **kwargs
):
3738 """base_OnEndPrinting()"""
3739 return _windows
.Printout_base_OnEndPrinting(*args
, **kwargs
)
3741 def base_OnPreparePrinting(*args
, **kwargs
):
3742 """base_OnPreparePrinting()"""
3743 return _windows
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
3745 def base_HasPage(*args
, **kwargs
):
3746 """base_HasPage(int page) -> bool"""
3747 return _windows
.Printout_base_HasPage(*args
, **kwargs
)
3749 def base_GetPageInfo(*args
, **kwargs
):
3750 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
3751 return _windows
.Printout_base_GetPageInfo(*args
, **kwargs
)
3754 class PrintoutPtr(Printout
):
3755 def __init__(self
, this
):
3757 if not hasattr(self
,"thisown"): self
.thisown
= 0
3758 self
.__class
__ = Printout
3759 _windows
.Printout_swigregister(PrintoutPtr
)
3761 class PreviewCanvas(ScrolledWindow
):
3763 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3764 def __init__(self
, *args
, **kwargs
):
3766 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
3767 Size size=DefaultSize, long style=0,
3768 String name=PreviewCanvasNameStr) -> PreviewCanvas
3770 newobj
= _windows
.new_PreviewCanvas(*args
, **kwargs
)
3771 self
.this
= newobj
.this
3774 self
._setOORInfo
(self
)
3777 class PreviewCanvasPtr(PreviewCanvas
):
3778 def __init__(self
, this
):
3780 if not hasattr(self
,"thisown"): self
.thisown
= 0
3781 self
.__class
__ = PreviewCanvas
3782 _windows
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
3784 class PreviewFrame(Frame
):
3786 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3787 def __init__(self
, *args
, **kwargs
):
3789 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
3790 Size size=DefaultSize,
3791 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
3793 newobj
= _windows
.new_PreviewFrame(*args
, **kwargs
)
3794 self
.this
= newobj
.this
3797 self
._setOORInfo
(self
)
3799 def Initialize(*args
, **kwargs
):
3801 return _windows
.PreviewFrame_Initialize(*args
, **kwargs
)
3803 def CreateControlBar(*args
, **kwargs
):
3804 """CreateControlBar()"""
3805 return _windows
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
3807 def CreateCanvas(*args
, **kwargs
):
3808 """CreateCanvas()"""
3809 return _windows
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
3811 def GetControlBar(*args
, **kwargs
):
3812 """GetControlBar() -> PreviewControlBar"""
3813 return _windows
.PreviewFrame_GetControlBar(*args
, **kwargs
)
3816 class PreviewFramePtr(PreviewFrame
):
3817 def __init__(self
, this
):
3819 if not hasattr(self
,"thisown"): self
.thisown
= 0
3820 self
.__class
__ = PreviewFrame
3821 _windows
.PreviewFrame_swigregister(PreviewFramePtr
)
3823 PREVIEW_PRINT
= _windows
.PREVIEW_PRINT
3824 PREVIEW_PREVIOUS
= _windows
.PREVIEW_PREVIOUS
3825 PREVIEW_NEXT
= _windows
.PREVIEW_NEXT
3826 PREVIEW_ZOOM
= _windows
.PREVIEW_ZOOM
3827 PREVIEW_FIRST
= _windows
.PREVIEW_FIRST
3828 PREVIEW_LAST
= _windows
.PREVIEW_LAST
3829 PREVIEW_GOTO
= _windows
.PREVIEW_GOTO
3830 PREVIEW_DEFAULT
= _windows
.PREVIEW_DEFAULT
3831 ID_PREVIEW_CLOSE
= _windows
.ID_PREVIEW_CLOSE
3832 ID_PREVIEW_NEXT
= _windows
.ID_PREVIEW_NEXT
3833 ID_PREVIEW_PREVIOUS
= _windows
.ID_PREVIEW_PREVIOUS
3834 ID_PREVIEW_PRINT
= _windows
.ID_PREVIEW_PRINT
3835 ID_PREVIEW_ZOOM
= _windows
.ID_PREVIEW_ZOOM
3836 ID_PREVIEW_FIRST
= _windows
.ID_PREVIEW_FIRST
3837 ID_PREVIEW_LAST
= _windows
.ID_PREVIEW_LAST
3838 ID_PREVIEW_GOTO
= _windows
.ID_PREVIEW_GOTO
3839 class PreviewControlBar(Panel
):
3841 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3842 def __init__(self
, *args
, **kwargs
):
3844 __init__(PrintPreview preview, long buttons, Window parent,
3845 Point pos=DefaultPosition, Size size=DefaultSize,
3846 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
3848 newobj
= _windows
.new_PreviewControlBar(*args
, **kwargs
)
3849 self
.this
= newobj
.this
3852 self
._setOORInfo
(self
)
3854 def GetZoomControl(*args
, **kwargs
):
3855 """GetZoomControl() -> int"""
3856 return _windows
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
3858 def SetZoomControl(*args
, **kwargs
):
3859 """SetZoomControl(int zoom)"""
3860 return _windows
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
3862 def GetPrintPreview(*args
, **kwargs
):
3863 """GetPrintPreview() -> PrintPreview"""
3864 return _windows
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
3866 def OnNext(*args
, **kwargs
):
3868 return _windows
.PreviewControlBar_OnNext(*args
, **kwargs
)
3870 def OnPrevious(*args
, **kwargs
):
3872 return _windows
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
3874 def OnFirst(*args
, **kwargs
):
3876 return _windows
.PreviewControlBar_OnFirst(*args
, **kwargs
)
3878 def OnLast(*args
, **kwargs
):
3880 return _windows
.PreviewControlBar_OnLast(*args
, **kwargs
)
3882 def OnGoto(*args
, **kwargs
):
3884 return _windows
.PreviewControlBar_OnGoto(*args
, **kwargs
)
3887 class PreviewControlBarPtr(PreviewControlBar
):
3888 def __init__(self
, this
):
3890 if not hasattr(self
,"thisown"): self
.thisown
= 0
3891 self
.__class
__ = PreviewControlBar
3892 _windows
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
3894 class PrintPreview(core
.Object
):
3896 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3897 def __init__(self
, *args
):
3899 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
3900 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
3902 newobj
= _windows
.new_PrintPreview(*args
)
3903 self
.this
= newobj
.this
3906 def SetCurrentPage(*args
, **kwargs
):
3907 """SetCurrentPage(int pageNum) -> bool"""
3908 return _windows
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
3910 def GetCurrentPage(*args
, **kwargs
):
3911 """GetCurrentPage() -> int"""
3912 return _windows
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
3914 def SetPrintout(*args
, **kwargs
):
3915 """SetPrintout(Printout printout)"""
3916 return _windows
.PrintPreview_SetPrintout(*args
, **kwargs
)
3918 def GetPrintout(*args
, **kwargs
):
3919 """GetPrintout() -> Printout"""
3920 return _windows
.PrintPreview_GetPrintout(*args
, **kwargs
)
3922 def GetPrintoutForPrinting(*args
, **kwargs
):
3923 """GetPrintoutForPrinting() -> Printout"""
3924 return _windows
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
3926 def SetFrame(*args
, **kwargs
):
3927 """SetFrame(Frame frame)"""
3928 return _windows
.PrintPreview_SetFrame(*args
, **kwargs
)
3930 def SetCanvas(*args
, **kwargs
):
3931 """SetCanvas(PreviewCanvas canvas)"""
3932 return _windows
.PrintPreview_SetCanvas(*args
, **kwargs
)
3934 def GetFrame(*args
, **kwargs
):
3935 """GetFrame() -> Frame"""
3936 return _windows
.PrintPreview_GetFrame(*args
, **kwargs
)
3938 def GetCanvas(*args
, **kwargs
):
3939 """GetCanvas() -> PreviewCanvas"""
3940 return _windows
.PrintPreview_GetCanvas(*args
, **kwargs
)
3942 def PaintPage(*args
, **kwargs
):
3943 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
3944 return _windows
.PrintPreview_PaintPage(*args
, **kwargs
)
3946 def DrawBlankPage(*args
, **kwargs
):
3947 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
3948 return _windows
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
3950 def RenderPage(*args
, **kwargs
):
3951 """RenderPage(int pageNum) -> bool"""
3952 return _windows
.PrintPreview_RenderPage(*args
, **kwargs
)
3954 def AdjustScrollbars(*args
, **kwargs
):
3955 """AdjustScrollbars(PreviewCanvas canvas)"""
3956 return _windows
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
3958 def GetPrintDialogData(*args
, **kwargs
):
3959 """GetPrintDialogData() -> PrintDialogData"""
3960 return _windows
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
3962 def SetZoom(*args
, **kwargs
):
3963 """SetZoom(int percent)"""
3964 return _windows
.PrintPreview_SetZoom(*args
, **kwargs
)
3966 def GetZoom(*args
, **kwargs
):
3967 """GetZoom() -> int"""
3968 return _windows
.PrintPreview_GetZoom(*args
, **kwargs
)
3970 def GetMaxPage(*args
, **kwargs
):
3971 """GetMaxPage() -> int"""
3972 return _windows
.PrintPreview_GetMaxPage(*args
, **kwargs
)
3974 def GetMinPage(*args
, **kwargs
):
3975 """GetMinPage() -> int"""
3976 return _windows
.PrintPreview_GetMinPage(*args
, **kwargs
)
3978 def Ok(*args
, **kwargs
):
3980 return _windows
.PrintPreview_Ok(*args
, **kwargs
)
3982 def SetOk(*args
, **kwargs
):
3983 """SetOk(bool ok)"""
3984 return _windows
.PrintPreview_SetOk(*args
, **kwargs
)
3986 def Print(*args
, **kwargs
):
3987 """Print(bool interactive) -> bool"""
3988 return _windows
.PrintPreview_Print(*args
, **kwargs
)
3990 def DetermineScaling(*args
, **kwargs
):
3991 """DetermineScaling()"""
3992 return _windows
.PrintPreview_DetermineScaling(*args
, **kwargs
)
3994 def __nonzero__(self
): return self
.Ok()
3996 class PrintPreviewPtr(PrintPreview
):
3997 def __init__(self
, this
):
3999 if not hasattr(self
,"thisown"): self
.thisown
= 0
4000 self
.__class
__ = PrintPreview
4001 _windows
.PrintPreview_swigregister(PrintPreviewPtr
)
4003 class PyPrintPreview(PrintPreview
):
4005 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4006 def __init__(self
, *args
):
4008 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4009 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4011 newobj
= _windows
.new_PyPrintPreview(*args
)
4012 self
.this
= newobj
.this
4015 self
._setCallbackInfo
(self
, PyPrintPreview
)
4017 def _setCallbackInfo(*args
, **kwargs
):
4018 """_setCallbackInfo(PyObject self, PyObject _class)"""
4019 return _windows
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4021 def base_SetCurrentPage(*args
, **kwargs
):
4022 """base_SetCurrentPage(int pageNum) -> bool"""
4023 return _windows
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4025 def base_PaintPage(*args
, **kwargs
):
4026 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4027 return _windows
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4029 def base_DrawBlankPage(*args
, **kwargs
):
4030 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4031 return _windows
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4033 def base_RenderPage(*args
, **kwargs
):
4034 """base_RenderPage(int pageNum) -> bool"""
4035 return _windows
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4037 def base_SetZoom(*args
, **kwargs
):
4038 """base_SetZoom(int percent)"""
4039 return _windows
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4041 def base_Print(*args
, **kwargs
):
4042 """base_Print(bool interactive) -> bool"""
4043 return _windows
.PyPrintPreview_base_Print(*args
, **kwargs
)
4045 def base_DetermineScaling(*args
, **kwargs
):
4046 """base_DetermineScaling()"""
4047 return _windows
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4050 class PyPrintPreviewPtr(PyPrintPreview
):
4051 def __init__(self
, this
):
4053 if not hasattr(self
,"thisown"): self
.thisown
= 0
4054 self
.__class
__ = PyPrintPreview
4055 _windows
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4057 class PyPreviewFrame(PreviewFrame
):
4059 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4060 def __init__(self
, *args
, **kwargs
):
4062 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4063 Size size=DefaultSize,
4064 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4066 newobj
= _windows
.new_PyPreviewFrame(*args
, **kwargs
)
4067 self
.this
= newobj
.this
4070 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4072 def _setCallbackInfo(*args
, **kwargs
):
4073 """_setCallbackInfo(PyObject self, PyObject _class)"""
4074 return _windows
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4076 def SetPreviewCanvas(*args
, **kwargs
):
4077 """SetPreviewCanvas(PreviewCanvas canvas)"""
4078 return _windows
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4080 def SetControlBar(*args
, **kwargs
):
4081 """SetControlBar(PreviewControlBar bar)"""
4082 return _windows
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4084 def base_Initialize(*args
, **kwargs
):
4085 """base_Initialize()"""
4086 return _windows
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4088 def base_CreateCanvas(*args
, **kwargs
):
4089 """base_CreateCanvas()"""
4090 return _windows
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4092 def base_CreateControlBar(*args
, **kwargs
):
4093 """base_CreateControlBar()"""
4094 return _windows
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4097 class PyPreviewFramePtr(PyPreviewFrame
):
4098 def __init__(self
, this
):
4100 if not hasattr(self
,"thisown"): self
.thisown
= 0
4101 self
.__class
__ = PyPreviewFrame
4102 _windows
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4104 class PyPreviewControlBar(PreviewControlBar
):
4106 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4107 def __init__(self
, *args
, **kwargs
):
4109 __init__(PrintPreview preview, long buttons, Window parent,
4110 Point pos=DefaultPosition, Size size=DefaultSize,
4111 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4113 newobj
= _windows
.new_PyPreviewControlBar(*args
, **kwargs
)
4114 self
.this
= newobj
.this
4117 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4119 def _setCallbackInfo(*args
, **kwargs
):
4120 """_setCallbackInfo(PyObject self, PyObject _class)"""
4121 return _windows
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4123 def SetPrintPreview(*args
, **kwargs
):
4124 """SetPrintPreview(PrintPreview preview)"""
4125 return _windows
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4127 def base_CreateButtons(*args
, **kwargs
):
4128 """base_CreateButtons()"""
4129 return _windows
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4131 def base_SetZoomControl(*args
, **kwargs
):
4132 """base_SetZoomControl(int zoom)"""
4133 return _windows
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4136 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4137 def __init__(self
, this
):
4139 if not hasattr(self
,"thisown"): self
.thisown
= 0
4140 self
.__class
__ = PyPreviewControlBar
4141 _windows
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)