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 )
840 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
842 #---------------------------------------------------------------------------
844 SASH_DRAG_NONE
= _windows
.SASH_DRAG_NONE
845 SASH_DRAG_DRAGGING
= _windows
.SASH_DRAG_DRAGGING
846 SASH_DRAG_LEFT_DOWN
= _windows
.SASH_DRAG_LEFT_DOWN
847 SW_NOBORDER
= _windows
.SW_NOBORDER
848 SW_BORDER
= _windows
.SW_BORDER
849 SW_3DSASH
= _windows
.SW_3DSASH
850 SW_3DBORDER
= _windows
.SW_3DBORDER
851 SW_3D
= _windows
.SW_3D
852 SASH_TOP
= _windows
.SASH_TOP
853 SASH_RIGHT
= _windows
.SASH_RIGHT
854 SASH_BOTTOM
= _windows
.SASH_BOTTOM
855 SASH_LEFT
= _windows
.SASH_LEFT
856 SASH_NONE
= _windows
.SASH_NONE
857 class SashWindow(core
.Window
):
859 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
860 def __init__(self
, *args
, **kwargs
):
862 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
863 long style=wxCLIP_CHILDREN|wxSW_3D,
864 String name=SashNameStr) -> SashWindow
866 newobj
= _windows
.new_SashWindow(*args
, **kwargs
)
867 self
.this
= newobj
.this
870 self
._setOORInfo
(self
)
872 def Create(*args
, **kwargs
):
874 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
875 long style=wxCLIP_CHILDREN|wxSW_3D,
876 String name=SashNameStr) -> bool
878 return _windows
.SashWindow_Create(*args
, **kwargs
)
880 def SetSashVisible(*args
, **kwargs
):
881 """SetSashVisible(int edge, bool sash)"""
882 return _windows
.SashWindow_SetSashVisible(*args
, **kwargs
)
884 def GetSashVisible(*args
, **kwargs
):
885 """GetSashVisible(int edge) -> bool"""
886 return _windows
.SashWindow_GetSashVisible(*args
, **kwargs
)
888 def SetSashBorder(*args
, **kwargs
):
889 """SetSashBorder(int edge, bool border)"""
890 return _windows
.SashWindow_SetSashBorder(*args
, **kwargs
)
892 def HasBorder(*args
, **kwargs
):
893 """HasBorder(int edge) -> bool"""
894 return _windows
.SashWindow_HasBorder(*args
, **kwargs
)
896 def GetEdgeMargin(*args
, **kwargs
):
897 """GetEdgeMargin(int edge) -> int"""
898 return _windows
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
900 def SetDefaultBorderSize(*args
, **kwargs
):
901 """SetDefaultBorderSize(int width)"""
902 return _windows
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
904 def GetDefaultBorderSize(*args
, **kwargs
):
905 """GetDefaultBorderSize() -> int"""
906 return _windows
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
908 def SetExtraBorderSize(*args
, **kwargs
):
909 """SetExtraBorderSize(int width)"""
910 return _windows
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
912 def GetExtraBorderSize(*args
, **kwargs
):
913 """GetExtraBorderSize() -> int"""
914 return _windows
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
916 def SetMinimumSizeX(*args
, **kwargs
):
917 """SetMinimumSizeX(int min)"""
918 return _windows
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
920 def SetMinimumSizeY(*args
, **kwargs
):
921 """SetMinimumSizeY(int min)"""
922 return _windows
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
924 def GetMinimumSizeX(*args
, **kwargs
):
925 """GetMinimumSizeX() -> int"""
926 return _windows
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
928 def GetMinimumSizeY(*args
, **kwargs
):
929 """GetMinimumSizeY() -> int"""
930 return _windows
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
932 def SetMaximumSizeX(*args
, **kwargs
):
933 """SetMaximumSizeX(int max)"""
934 return _windows
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
936 def SetMaximumSizeY(*args
, **kwargs
):
937 """SetMaximumSizeY(int max)"""
938 return _windows
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
940 def GetMaximumSizeX(*args
, **kwargs
):
941 """GetMaximumSizeX() -> int"""
942 return _windows
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
944 def GetMaximumSizeY(*args
, **kwargs
):
945 """GetMaximumSizeY() -> int"""
946 return _windows
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
948 def SashHitTest(*args
, **kwargs
):
949 """SashHitTest(int x, int y, int tolerance=2) -> int"""
950 return _windows
.SashWindow_SashHitTest(*args
, **kwargs
)
952 def SizeWindows(*args
, **kwargs
):
954 return _windows
.SashWindow_SizeWindows(*args
, **kwargs
)
957 class SashWindowPtr(SashWindow
):
958 def __init__(self
, this
):
960 if not hasattr(self
,"thisown"): self
.thisown
= 0
961 self
.__class
__ = SashWindow
962 _windows
.SashWindow_swigregister(SashWindowPtr
)
963 SashNameStr
= cvar
.SashNameStr
964 SashLayoutNameStr
= cvar
.SashLayoutNameStr
966 def PreSashWindow(*args
, **kwargs
):
967 """PreSashWindow() -> SashWindow"""
968 val
= _windows
.new_PreSashWindow(*args
, **kwargs
)
972 SASH_STATUS_OK
= _windows
.SASH_STATUS_OK
973 SASH_STATUS_OUT_OF_RANGE
= _windows
.SASH_STATUS_OUT_OF_RANGE
974 class SashEvent(core
.CommandEvent
):
976 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
977 def __init__(self
, *args
, **kwargs
):
978 """__init__(int id=0, int edge=SASH_NONE) -> SashEvent"""
979 newobj
= _windows
.new_SashEvent(*args
, **kwargs
)
980 self
.this
= newobj
.this
983 def SetEdge(*args
, **kwargs
):
984 """SetEdge(int edge)"""
985 return _windows
.SashEvent_SetEdge(*args
, **kwargs
)
987 def GetEdge(*args
, **kwargs
):
988 """GetEdge() -> int"""
989 return _windows
.SashEvent_GetEdge(*args
, **kwargs
)
991 def SetDragRect(*args
, **kwargs
):
992 """SetDragRect(Rect rect)"""
993 return _windows
.SashEvent_SetDragRect(*args
, **kwargs
)
995 def GetDragRect(*args
, **kwargs
):
996 """GetDragRect() -> Rect"""
997 return _windows
.SashEvent_GetDragRect(*args
, **kwargs
)
999 def SetDragStatus(*args
, **kwargs
):
1000 """SetDragStatus(int status)"""
1001 return _windows
.SashEvent_SetDragStatus(*args
, **kwargs
)
1003 def GetDragStatus(*args
, **kwargs
):
1004 """GetDragStatus() -> int"""
1005 return _windows
.SashEvent_GetDragStatus(*args
, **kwargs
)
1008 class SashEventPtr(SashEvent
):
1009 def __init__(self
, this
):
1011 if not hasattr(self
,"thisown"): self
.thisown
= 0
1012 self
.__class
__ = SashEvent
1013 _windows
.SashEvent_swigregister(SashEventPtr
)
1015 wxEVT_SASH_DRAGGED
= _windows
.wxEVT_SASH_DRAGGED
1016 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1017 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1019 #---------------------------------------------------------------------------
1021 LAYOUT_HORIZONTAL
= _windows
.LAYOUT_HORIZONTAL
1022 LAYOUT_VERTICAL
= _windows
.LAYOUT_VERTICAL
1023 LAYOUT_NONE
= _windows
.LAYOUT_NONE
1024 LAYOUT_TOP
= _windows
.LAYOUT_TOP
1025 LAYOUT_LEFT
= _windows
.LAYOUT_LEFT
1026 LAYOUT_RIGHT
= _windows
.LAYOUT_RIGHT
1027 LAYOUT_BOTTOM
= _windows
.LAYOUT_BOTTOM
1028 LAYOUT_LENGTH_Y
= _windows
.LAYOUT_LENGTH_Y
1029 LAYOUT_LENGTH_X
= _windows
.LAYOUT_LENGTH_X
1030 LAYOUT_MRU_LENGTH
= _windows
.LAYOUT_MRU_LENGTH
1031 LAYOUT_QUERY
= _windows
.LAYOUT_QUERY
1032 wxEVT_QUERY_LAYOUT_INFO
= _windows
.wxEVT_QUERY_LAYOUT_INFO
1033 wxEVT_CALCULATE_LAYOUT
= _windows
.wxEVT_CALCULATE_LAYOUT
1034 class QueryLayoutInfoEvent(core
.Event
):
1036 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1037 def __init__(self
, *args
, **kwargs
):
1038 """__init__(int id=0) -> QueryLayoutInfoEvent"""
1039 newobj
= _windows
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1040 self
.this
= newobj
.this
1043 def SetRequestedLength(*args
, **kwargs
):
1044 """SetRequestedLength(int length)"""
1045 return _windows
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1047 def GetRequestedLength(*args
, **kwargs
):
1048 """GetRequestedLength() -> int"""
1049 return _windows
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1051 def SetFlags(*args
, **kwargs
):
1052 """SetFlags(int flags)"""
1053 return _windows
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1055 def GetFlags(*args
, **kwargs
):
1056 """GetFlags() -> int"""
1057 return _windows
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1059 def SetSize(*args
, **kwargs
):
1060 """SetSize(Size size)"""
1061 return _windows
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1063 def GetSize(*args
, **kwargs
):
1064 """GetSize() -> Size"""
1065 return _windows
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1067 def SetOrientation(*args
, **kwargs
):
1068 """SetOrientation(int orient)"""
1069 return _windows
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1071 def GetOrientation(*args
, **kwargs
):
1072 """GetOrientation() -> int"""
1073 return _windows
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1075 def SetAlignment(*args
, **kwargs
):
1076 """SetAlignment(int align)"""
1077 return _windows
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1079 def GetAlignment(*args
, **kwargs
):
1080 """GetAlignment() -> int"""
1081 return _windows
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1084 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1085 def __init__(self
, this
):
1087 if not hasattr(self
,"thisown"): self
.thisown
= 0
1088 self
.__class
__ = QueryLayoutInfoEvent
1089 _windows
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1091 class CalculateLayoutEvent(core
.Event
):
1093 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1094 def __init__(self
, *args
, **kwargs
):
1095 """__init__(int id=0) -> CalculateLayoutEvent"""
1096 newobj
= _windows
.new_CalculateLayoutEvent(*args
, **kwargs
)
1097 self
.this
= newobj
.this
1100 def SetFlags(*args
, **kwargs
):
1101 """SetFlags(int flags)"""
1102 return _windows
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1104 def GetFlags(*args
, **kwargs
):
1105 """GetFlags() -> int"""
1106 return _windows
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1108 def SetRect(*args
, **kwargs
):
1109 """SetRect(Rect rect)"""
1110 return _windows
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1112 def GetRect(*args
, **kwargs
):
1113 """GetRect() -> Rect"""
1114 return _windows
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1117 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1118 def __init__(self
, this
):
1120 if not hasattr(self
,"thisown"): self
.thisown
= 0
1121 self
.__class
__ = CalculateLayoutEvent
1122 _windows
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1124 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1125 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1127 class SashLayoutWindow(SashWindow
):
1129 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1130 def __init__(self
, *args
, **kwargs
):
1132 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1133 long style=wxCLIP_CHILDREN|wxSW_3D,
1134 String name=SashLayoutNameStr) -> SashLayoutWindow
1136 newobj
= _windows
.new_SashLayoutWindow(*args
, **kwargs
)
1137 self
.this
= newobj
.this
1140 self
._setOORInfo
(self
)
1142 def Create(*args
, **kwargs
):
1144 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1145 long style=wxCLIP_CHILDREN|wxSW_3D,
1146 String name=SashLayoutNameStr) -> bool
1148 return _windows
.SashLayoutWindow_Create(*args
, **kwargs
)
1150 def GetAlignment(*args
, **kwargs
):
1151 """GetAlignment() -> int"""
1152 return _windows
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1154 def GetOrientation(*args
, **kwargs
):
1155 """GetOrientation() -> int"""
1156 return _windows
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1158 def SetAlignment(*args
, **kwargs
):
1159 """SetAlignment(int alignment)"""
1160 return _windows
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1162 def SetDefaultSize(*args
, **kwargs
):
1163 """SetDefaultSize(Size size)"""
1164 return _windows
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1166 def SetOrientation(*args
, **kwargs
):
1167 """SetOrientation(int orientation)"""
1168 return _windows
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1171 class SashLayoutWindowPtr(SashLayoutWindow
):
1172 def __init__(self
, this
):
1174 if not hasattr(self
,"thisown"): self
.thisown
= 0
1175 self
.__class
__ = SashLayoutWindow
1176 _windows
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1178 def PreSashLayoutWindow(*args
, **kwargs
):
1179 """PreSashLayoutWindow() -> SashLayoutWindow"""
1180 val
= _windows
.new_PreSashLayoutWindow(*args
, **kwargs
)
1184 class LayoutAlgorithm(core
.Object
):
1186 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1187 def __init__(self
, *args
, **kwargs
):
1188 """__init__() -> LayoutAlgorithm"""
1189 newobj
= _windows
.new_LayoutAlgorithm(*args
, **kwargs
)
1190 self
.this
= newobj
.this
1193 def __del__(self
, destroy
=_windows
.delete_LayoutAlgorithm
):
1196 if self
.thisown
: destroy(self
)
1199 def LayoutMDIFrame(*args
, **kwargs
):
1200 """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool"""
1201 return _windows
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1203 def LayoutFrame(*args
, **kwargs
):
1204 """LayoutFrame(Frame frame, Window mainWindow=None) -> bool"""
1205 return _windows
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1207 def LayoutWindow(*args
, **kwargs
):
1208 """LayoutWindow(Window parent, Window mainWindow=None) -> bool"""
1209 return _windows
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1212 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1213 def __init__(self
, this
):
1215 if not hasattr(self
,"thisown"): self
.thisown
= 0
1216 self
.__class
__ = LayoutAlgorithm
1217 _windows
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1219 #---------------------------------------------------------------------------
1221 class PopupWindow(core
.Window
):
1223 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1224 def __init__(self
, *args
, **kwargs
):
1225 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1226 newobj
= _windows
.new_PopupWindow(*args
, **kwargs
)
1227 self
.this
= newobj
.this
1230 self
._setOORInfo
(self
)
1232 def Create(*args
, **kwargs
):
1233 """Create(Window parent, int flags=BORDER_NONE) -> bool"""
1234 return _windows
.PopupWindow_Create(*args
, **kwargs
)
1236 def Position(*args
, **kwargs
):
1237 """Position(Point ptOrigin, Size size)"""
1238 return _windows
.PopupWindow_Position(*args
, **kwargs
)
1241 class PopupWindowPtr(PopupWindow
):
1242 def __init__(self
, this
):
1244 if not hasattr(self
,"thisown"): self
.thisown
= 0
1245 self
.__class
__ = PopupWindow
1246 _windows
.PopupWindow_swigregister(PopupWindowPtr
)
1248 def PrePopupWindow(*args
, **kwargs
):
1249 """PrePopupWindow() -> PopupWindow"""
1250 val
= _windows
.new_PrePopupWindow(*args
, **kwargs
)
1254 #---------------------------------------------------------------------------
1256 class PopupTransientWindow(PopupWindow
):
1258 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1259 def __init__(self
, *args
, **kwargs
):
1260 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1261 newobj
= _windows
.new_PopupTransientWindow(*args
, **kwargs
)
1262 self
.this
= newobj
.this
1265 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1267 def _setCallbackInfo(*args
, **kwargs
):
1268 """_setCallbackInfo(PyObject self, PyObject _class)"""
1269 return _windows
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1271 def Popup(*args
, **kwargs
):
1272 """Popup(Window focus=None)"""
1273 return _windows
.PopupTransientWindow_Popup(*args
, **kwargs
)
1275 def Dismiss(*args
, **kwargs
):
1277 return _windows
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1280 class PopupTransientWindowPtr(PopupTransientWindow
):
1281 def __init__(self
, this
):
1283 if not hasattr(self
,"thisown"): self
.thisown
= 0
1284 self
.__class
__ = PopupTransientWindow
1285 _windows
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1287 def PrePopupTransientWindow(*args
, **kwargs
):
1288 """PrePopupTransientWindow() -> PopupTransientWindow"""
1289 val
= _windows
.new_PrePopupTransientWindow(*args
, **kwargs
)
1293 #---------------------------------------------------------------------------
1295 class TipWindow(PopupTransientWindow
):
1297 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1298 def __init__(self
, *args
, **kwargs
):
1299 """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1300 newobj
= _windows
.new_TipWindow(*args
, **kwargs
)
1301 self
.this
= newobj
.this
1304 self
._setOORInfo
(self
)
1306 def SetBoundingRect(*args
, **kwargs
):
1307 """SetBoundingRect(Rect rectBound)"""
1308 return _windows
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1310 def Close(*args
, **kwargs
):
1312 return _windows
.TipWindow_Close(*args
, **kwargs
)
1315 class TipWindowPtr(TipWindow
):
1316 def __init__(self
, this
):
1318 if not hasattr(self
,"thisown"): self
.thisown
= 0
1319 self
.__class
__ = TipWindow
1320 _windows
.TipWindow_swigregister(TipWindowPtr
)
1322 #---------------------------------------------------------------------------
1324 class VScrolledWindow(Panel
):
1326 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1327 def __init__(self
, *args
, **kwargs
):
1329 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1330 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1332 newobj
= _windows
.new_VScrolledWindow(*args
, **kwargs
)
1333 self
.this
= newobj
.this
1336 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1338 def _setCallbackInfo(*args
, **kwargs
):
1339 """_setCallbackInfo(PyObject self, PyObject _class)"""
1340 return _windows
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1342 def Create(*args
, **kwargs
):
1344 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1345 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1347 return _windows
.VScrolledWindow_Create(*args
, **kwargs
)
1349 def SetLineCount(*args
, **kwargs
):
1350 """SetLineCount(size_t count)"""
1351 return _windows
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1353 def ScrollToLine(*args
, **kwargs
):
1354 """ScrollToLine(size_t line) -> bool"""
1355 return _windows
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1357 def ScrollLines(*args
, **kwargs
):
1359 ScrollLines(int lines) -> bool
1361 If the platform and window class supports it, scrolls the window by
1362 the given number of lines down, if lines is positive, or up if lines
1363 is negative. Returns True if the window was scrolled, False if it was
1364 already on top/bottom and nothing was done.
1366 return _windows
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1368 def ScrollPages(*args
, **kwargs
):
1370 ScrollPages(int pages) -> bool
1372 If the platform and window class supports it, scrolls the window by
1373 the given number of pages down, if pages is positive, or up if pages
1374 is negative. Returns True if the window was scrolled, False if it was
1375 already on top/bottom and nothing was done.
1377 return _windows
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1379 def RefreshLine(*args
, **kwargs
):
1380 """RefreshLine(size_t line)"""
1381 return _windows
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1383 def RefreshLines(*args
, **kwargs
):
1384 """RefreshLines(size_t from, size_t to)"""
1385 return _windows
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1387 def HitTestXT(*args
, **kwargs
):
1389 HitTestXT(int x, int y) -> int
1391 Test where the given (in client coords) point lies
1393 return _windows
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1395 def HitTest(*args
, **kwargs
):
1397 HitTest(Point pt) -> int
1399 Test where the given (in client coords) point lies
1401 return _windows
.VScrolledWindow_HitTest(*args
, **kwargs
)
1403 def RefreshAll(*args
, **kwargs
):
1405 return _windows
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1407 def GetLineCount(*args
, **kwargs
):
1408 """GetLineCount() -> size_t"""
1409 return _windows
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1411 def GetFirstVisibleLine(*args
, **kwargs
):
1412 """GetFirstVisibleLine() -> size_t"""
1413 return _windows
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1415 def GetLastVisibleLine(*args
, **kwargs
):
1416 """GetLastVisibleLine() -> size_t"""
1417 return _windows
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1419 def IsVisible(*args
, **kwargs
):
1420 """IsVisible(size_t line) -> bool"""
1421 return _windows
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1424 class VScrolledWindowPtr(VScrolledWindow
):
1425 def __init__(self
, this
):
1427 if not hasattr(self
,"thisown"): self
.thisown
= 0
1428 self
.__class
__ = VScrolledWindow
1429 _windows
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1431 def PreVScrolledWindow(*args
, **kwargs
):
1432 """PreVScrolledWindow() -> VScrolledWindow"""
1433 val
= _windows
.new_PreVScrolledWindow(*args
, **kwargs
)
1437 class VListBox(VScrolledWindow
):
1439 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1440 def __init__(self
, *args
, **kwargs
):
1442 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1443 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1445 newobj
= _windows
.new_VListBox(*args
, **kwargs
)
1446 self
.this
= newobj
.this
1449 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1451 def _setCallbackInfo(*args
, **kwargs
):
1452 """_setCallbackInfo(PyObject self, PyObject _class)"""
1453 return _windows
.VListBox__setCallbackInfo(*args
, **kwargs
)
1455 def Create(*args
, **kwargs
):
1457 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1458 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1460 return _windows
.VListBox_Create(*args
, **kwargs
)
1462 def GetItemCount(*args
, **kwargs
):
1463 """GetItemCount() -> size_t"""
1464 return _windows
.VListBox_GetItemCount(*args
, **kwargs
)
1466 def HasMultipleSelection(*args
, **kwargs
):
1467 """HasMultipleSelection() -> bool"""
1468 return _windows
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1470 def GetSelection(*args
, **kwargs
):
1471 """GetSelection() -> int"""
1472 return _windows
.VListBox_GetSelection(*args
, **kwargs
)
1474 def IsCurrent(*args
, **kwargs
):
1475 """IsCurrent(size_t item) -> bool"""
1476 return _windows
.VListBox_IsCurrent(*args
, **kwargs
)
1478 def IsSelected(*args
, **kwargs
):
1479 """IsSelected(size_t item) -> bool"""
1480 return _windows
.VListBox_IsSelected(*args
, **kwargs
)
1482 def GetSelectedCount(*args
, **kwargs
):
1483 """GetSelectedCount() -> size_t"""
1484 return _windows
.VListBox_GetSelectedCount(*args
, **kwargs
)
1486 def GetFirstSelected(*args
, **kwargs
):
1487 """GetFirstSelected(unsigned long cookie) -> int"""
1488 return _windows
.VListBox_GetFirstSelected(*args
, **kwargs
)
1490 def GetNextSelected(*args
, **kwargs
):
1491 """GetNextSelected(unsigned long cookie) -> int"""
1492 return _windows
.VListBox_GetNextSelected(*args
, **kwargs
)
1494 def GetMargins(*args
, **kwargs
):
1495 """GetMargins() -> Point"""
1496 return _windows
.VListBox_GetMargins(*args
, **kwargs
)
1498 def GetSelectionBackground(*args
, **kwargs
):
1499 """GetSelectionBackground() -> Colour"""
1500 return _windows
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1502 def SetItemCount(*args
, **kwargs
):
1503 """SetItemCount(size_t count)"""
1504 return _windows
.VListBox_SetItemCount(*args
, **kwargs
)
1506 def Clear(*args
, **kwargs
):
1508 return _windows
.VListBox_Clear(*args
, **kwargs
)
1510 def SetSelection(*args
, **kwargs
):
1511 """SetSelection(int selection)"""
1512 return _windows
.VListBox_SetSelection(*args
, **kwargs
)
1514 def Select(*args
, **kwargs
):
1515 """Select(size_t item, bool select=True) -> bool"""
1516 return _windows
.VListBox_Select(*args
, **kwargs
)
1518 def SelectRange(*args
, **kwargs
):
1519 """SelectRange(size_t from, size_t to) -> bool"""
1520 return _windows
.VListBox_SelectRange(*args
, **kwargs
)
1522 def Toggle(*args
, **kwargs
):
1523 """Toggle(size_t item)"""
1524 return _windows
.VListBox_Toggle(*args
, **kwargs
)
1526 def SelectAll(*args
, **kwargs
):
1527 """SelectAll() -> bool"""
1528 return _windows
.VListBox_SelectAll(*args
, **kwargs
)
1530 def DeselectAll(*args
, **kwargs
):
1531 """DeselectAll() -> bool"""
1532 return _windows
.VListBox_DeselectAll(*args
, **kwargs
)
1534 def SetMargins(*args
, **kwargs
):
1535 """SetMargins(Point pt)"""
1536 return _windows
.VListBox_SetMargins(*args
, **kwargs
)
1538 def SetMarginsXY(*args
, **kwargs
):
1539 """SetMarginsXY(int x, int y)"""
1540 return _windows
.VListBox_SetMarginsXY(*args
, **kwargs
)
1542 def SetSelectionBackground(*args
, **kwargs
):
1543 """SetSelectionBackground(Colour col)"""
1544 return _windows
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1547 class VListBoxPtr(VListBox
):
1548 def __init__(self
, this
):
1550 if not hasattr(self
,"thisown"): self
.thisown
= 0
1551 self
.__class
__ = VListBox
1552 _windows
.VListBox_swigregister(VListBoxPtr
)
1553 VListBoxNameStr
= cvar
.VListBoxNameStr
1555 def PreVListBox(*args
, **kwargs
):
1556 """PreVListBox() -> VListBox"""
1557 val
= _windows
.new_PreVListBox(*args
, **kwargs
)
1561 class HtmlListBox(VListBox
):
1563 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1564 def __init__(self
, *args
, **kwargs
):
1566 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1567 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1569 newobj
= _windows
.new_HtmlListBox(*args
, **kwargs
)
1570 self
.this
= newobj
.this
1573 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1575 def _setCallbackInfo(*args
, **kwargs
):
1576 """_setCallbackInfo(PyObject self, PyObject _class)"""
1577 return _windows
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1579 def Create(*args
, **kwargs
):
1581 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1582 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1584 return _windows
.HtmlListBox_Create(*args
, **kwargs
)
1586 def RefreshAll(*args
, **kwargs
):
1588 return _windows
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1590 def SetItemCount(*args
, **kwargs
):
1591 """SetItemCount(size_t count)"""
1592 return _windows
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1595 class HtmlListBoxPtr(HtmlListBox
):
1596 def __init__(self
, this
):
1598 if not hasattr(self
,"thisown"): self
.thisown
= 0
1599 self
.__class
__ = HtmlListBox
1600 _windows
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1602 def PreHtmlListBox(*args
, **kwargs
):
1603 """PreHtmlListBox() -> HtmlListBox"""
1604 val
= _windows
.new_PreHtmlListBox(*args
, **kwargs
)
1608 #---------------------------------------------------------------------------
1610 class TaskBarIcon(core
.EvtHandler
):
1612 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1613 def __init__(self
, *args
, **kwargs
):
1614 """__init__() -> TaskBarIcon"""
1615 newobj
= _windows
.new_TaskBarIcon(*args
, **kwargs
)
1616 self
.this
= newobj
.this
1619 def __del__(self
, destroy
=_windows
.delete_TaskBarIcon
):
1622 if self
.thisown
: destroy(self
)
1625 def IsOk(*args
, **kwargs
):
1626 """IsOk() -> bool"""
1627 return _windows
.TaskBarIcon_IsOk(*args
, **kwargs
)
1629 def __nonzero__(self
): return self
.IsOk()
1630 def IsIconInstalled(*args
, **kwargs
):
1631 """IsIconInstalled() -> bool"""
1632 return _windows
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
1634 def SetIcon(*args
, **kwargs
):
1635 """SetIcon(Icon icon, String tooltip=EmptyString) -> bool"""
1636 return _windows
.TaskBarIcon_SetIcon(*args
, **kwargs
)
1638 def RemoveIcon(*args
, **kwargs
):
1639 """RemoveIcon() -> bool"""
1640 return _windows
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
1642 def PopupMenu(*args
, **kwargs
):
1643 """PopupMenu(Menu menu) -> bool"""
1644 return _windows
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
1647 class TaskBarIconPtr(TaskBarIcon
):
1648 def __init__(self
, this
):
1650 if not hasattr(self
,"thisown"): self
.thisown
= 0
1651 self
.__class
__ = TaskBarIcon
1652 _windows
.TaskBarIcon_swigregister(TaskBarIconPtr
)
1654 class TaskBarIconEvent(core
.Event
):
1656 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1657 def __init__(self
, *args
, **kwargs
):
1658 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
1659 newobj
= _windows
.new_TaskBarIconEvent(*args
, **kwargs
)
1660 self
.this
= newobj
.this
1664 class TaskBarIconEventPtr(TaskBarIconEvent
):
1665 def __init__(self
, this
):
1667 if not hasattr(self
,"thisown"): self
.thisown
= 0
1668 self
.__class
__ = TaskBarIconEvent
1669 _windows
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
1671 wxEVT_TASKBAR_MOVE
= _windows
.wxEVT_TASKBAR_MOVE
1672 wxEVT_TASKBAR_LEFT_DOWN
= _windows
.wxEVT_TASKBAR_LEFT_DOWN
1673 wxEVT_TASKBAR_LEFT_UP
= _windows
.wxEVT_TASKBAR_LEFT_UP
1674 wxEVT_TASKBAR_RIGHT_DOWN
= _windows
.wxEVT_TASKBAR_RIGHT_DOWN
1675 wxEVT_TASKBAR_RIGHT_UP
= _windows
.wxEVT_TASKBAR_RIGHT_UP
1676 wxEVT_TASKBAR_LEFT_DCLICK
= _windows
.wxEVT_TASKBAR_LEFT_DCLICK
1677 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows
.wxEVT_TASKBAR_RIGHT_DCLICK
1678 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
1679 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
1680 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
1681 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
1682 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
1683 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
1684 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
1686 #---------------------------------------------------------------------------
1688 class ColourData(core
.Object
):
1689 """This class holds a variety of information related to colour dialogs."""
1691 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1692 def __init__(self
, *args
, **kwargs
):
1694 __init__() -> ColourData
1696 Constructor, sets default values.
1698 newobj
= _windows
.new_ColourData(*args
, **kwargs
)
1699 self
.this
= newobj
.this
1702 def __del__(self
, destroy
=_windows
.delete_ColourData
):
1705 if self
.thisown
: destroy(self
)
1708 def GetChooseFull(*args
, **kwargs
):
1710 GetChooseFull() -> bool
1712 Under Windows, determines whether the Windows colour dialog will display
1713 the full dialog with custom colour selection controls. Has no meaning
1714 under other platforms. The default value is true.
1716 return _windows
.ColourData_GetChooseFull(*args
, **kwargs
)
1718 def GetColour(*args
, **kwargs
):
1720 GetColour() -> Colour
1722 Gets the colour (pre)selected by the dialog.
1724 return _windows
.ColourData_GetColour(*args
, **kwargs
)
1726 def GetCustomColour(*args
, **kwargs
):
1728 GetCustomColour(int i) -> Colour
1730 Gets the i'th custom colour associated with the colour dialog. i should
1731 be an integer between 0 and 15. The default custom colours are all white.
1733 return _windows
.ColourData_GetCustomColour(*args
, **kwargs
)
1735 def SetChooseFull(*args
, **kwargs
):
1737 SetChooseFull(int flag)
1739 Under Windows, tells the Windows colour dialog to display the full dialog
1740 with custom colour selection controls. Under other platforms, has no effect.
1741 The default value is true.
1743 return _windows
.ColourData_SetChooseFull(*args
, **kwargs
)
1745 def SetColour(*args
, **kwargs
):
1747 SetColour(Colour colour)
1749 Sets the default colour for the colour dialog. The default colour is black.
1751 return _windows
.ColourData_SetColour(*args
, **kwargs
)
1753 def SetCustomColour(*args
, **kwargs
):
1755 SetCustomColour(int i, Colour colour)
1757 Sets the i'th custom colour for the colour dialog. i should be an integer
1758 between 0 and 15. The default custom colours are all white.
1760 return _windows
.ColourData_SetCustomColour(*args
, **kwargs
)
1763 class ColourDataPtr(ColourData
):
1764 def __init__(self
, this
):
1766 if not hasattr(self
,"thisown"): self
.thisown
= 0
1767 self
.__class
__ = ColourData
1768 _windows
.ColourData_swigregister(ColourDataPtr
)
1769 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
1770 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
1771 DirDialogNameStr
= cvar
.DirDialogNameStr
1772 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
1773 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
1774 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
1776 class ColourDialog(Dialog
):
1777 """This class represents the colour chooser dialog."""
1779 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1780 def __init__(self
, *args
, **kwargs
):
1782 __init__(Window parent, ColourData data=None) -> ColourDialog
1784 Constructor. Pass a parent window, and optionally a ColourData, which
1785 will be copied to the colour dialog's internal ColourData instance.
1787 newobj
= _windows
.new_ColourDialog(*args
, **kwargs
)
1788 self
.this
= newobj
.this
1791 self
._setOORInfo
(self
)
1793 def GetColourData(*args
, **kwargs
):
1795 GetColourData() -> ColourData
1797 Returns a reference to the ColourData used by the dialog.
1799 return _windows
.ColourDialog_GetColourData(*args
, **kwargs
)
1802 class ColourDialogPtr(ColourDialog
):
1803 def __init__(self
, this
):
1805 if not hasattr(self
,"thisown"): self
.thisown
= 0
1806 self
.__class
__ = ColourDialog
1807 _windows
.ColourDialog_swigregister(ColourDialogPtr
)
1809 class DirDialog(Dialog
):
1810 """This class represents the directory chooser dialog."""
1812 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1813 def __init__(self
, *args
, **kwargs
):
1815 __init__(Window parent, String message=DirSelectorPromptStr,
1816 String defaultPath=EmptyString, long style=0,
1817 Point pos=DefaultPosition, Size size=DefaultSize,
1818 String name=DirDialogNameStr) -> DirDialog
1820 Constructor. Use ShowModal method to show the dialog.
1822 newobj
= _windows
.new_DirDialog(*args
, **kwargs
)
1823 self
.this
= newobj
.this
1826 self
._setOORInfo
(self
)
1828 def GetPath(*args
, **kwargs
):
1832 Returns the default or user-selected path.
1834 return _windows
.DirDialog_GetPath(*args
, **kwargs
)
1836 def GetMessage(*args
, **kwargs
):
1838 GetMessage() -> String
1840 Returns the message that will be displayed on the dialog.
1842 return _windows
.DirDialog_GetMessage(*args
, **kwargs
)
1844 def GetStyle(*args
, **kwargs
):
1848 Returns the dialog style.
1850 return _windows
.DirDialog_GetStyle(*args
, **kwargs
)
1852 def SetMessage(*args
, **kwargs
):
1854 SetMessage(String message)
1856 Sets the message that will be displayed on the dialog.
1858 return _windows
.DirDialog_SetMessage(*args
, **kwargs
)
1860 def SetPath(*args
, **kwargs
):
1862 SetPath(String path)
1864 Sets the default path.
1866 return _windows
.DirDialog_SetPath(*args
, **kwargs
)
1869 class DirDialogPtr(DirDialog
):
1870 def __init__(self
, this
):
1872 if not hasattr(self
,"thisown"): self
.thisown
= 0
1873 self
.__class
__ = DirDialog
1874 _windows
.DirDialog_swigregister(DirDialogPtr
)
1876 class FileDialog(Dialog
):
1877 """This class represents the file chooser dialog."""
1879 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1880 def __init__(self
, *args
, **kwargs
):
1882 __init__(Window parent, String message=FileSelectorPromptStr,
1883 String defaultDir=EmptyString, String defaultFile=EmptyString,
1884 String wildcard=FileSelectorDefaultWildcardStr,
1885 long style=0, Point pos=DefaultPosition) -> FileDialog
1887 Constructor. Use ShowModal method to show the dialog.
1889 newobj
= _windows
.new_FileDialog(*args
, **kwargs
)
1890 self
.this
= newobj
.this
1893 self
._setOORInfo
(self
)
1895 def SetMessage(*args
, **kwargs
):
1897 SetMessage(String message)
1899 Sets the message that will be displayed on the dialog.
1901 return _windows
.FileDialog_SetMessage(*args
, **kwargs
)
1903 def SetPath(*args
, **kwargs
):
1905 SetPath(String path)
1907 Sets the path (the combined directory and filename that will
1908 be returned when the dialog is dismissed).
1910 return _windows
.FileDialog_SetPath(*args
, **kwargs
)
1912 def SetDirectory(*args
, **kwargs
):
1914 SetDirectory(String dir)
1916 Sets the default directory.
1918 return _windows
.FileDialog_SetDirectory(*args
, **kwargs
)
1920 def SetFilename(*args
, **kwargs
):
1922 SetFilename(String name)
1924 Sets the default filename.
1926 return _windows
.FileDialog_SetFilename(*args
, **kwargs
)
1928 def SetWildcard(*args
, **kwargs
):
1930 SetWildcard(String wildCard)
1932 Sets the wildcard, which can contain multiple file types, for example:
1933 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
1935 return _windows
.FileDialog_SetWildcard(*args
, **kwargs
)
1937 def SetStyle(*args
, **kwargs
):
1939 SetStyle(long style)
1941 Sets the dialog style.
1943 return _windows
.FileDialog_SetStyle(*args
, **kwargs
)
1945 def SetFilterIndex(*args
, **kwargs
):
1947 SetFilterIndex(int filterIndex)
1949 Sets the default filter index, starting from zero.
1951 return _windows
.FileDialog_SetFilterIndex(*args
, **kwargs
)
1953 def GetMessage(*args
, **kwargs
):
1955 GetMessage() -> String
1957 Returns the message that will be displayed on the dialog.
1959 return _windows
.FileDialog_GetMessage(*args
, **kwargs
)
1961 def GetPath(*args
, **kwargs
):
1965 Returns the full path (directory and filename) of the selected file.
1967 return _windows
.FileDialog_GetPath(*args
, **kwargs
)
1969 def GetDirectory(*args
, **kwargs
):
1971 GetDirectory() -> String
1973 Returns the default directory.
1975 return _windows
.FileDialog_GetDirectory(*args
, **kwargs
)
1977 def GetFilename(*args
, **kwargs
):
1979 GetFilename() -> String
1981 Returns the default filename.
1983 return _windows
.FileDialog_GetFilename(*args
, **kwargs
)
1985 def GetWildcard(*args
, **kwargs
):
1987 GetWildcard() -> String
1989 Returns the file dialog wildcard.
1991 return _windows
.FileDialog_GetWildcard(*args
, **kwargs
)
1993 def GetStyle(*args
, **kwargs
):
1997 Returns the dialog style.
1999 return _windows
.FileDialog_GetStyle(*args
, **kwargs
)
2001 def GetFilterIndex(*args
, **kwargs
):
2003 GetFilterIndex() -> int
2005 Returns the index into the list of filters supplied, optionally, in
2006 the wildcard parameter. Before the dialog is shown, this is the index
2007 which will be used when the dialog is first displayed. After the dialog
2008 is shown, this is the index selected by the user.
2010 return _windows
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2012 def GetFilenames(*args
, **kwargs
):
2014 GetFilenames() -> PyObject
2016 Returns a list of filenames chosen in the dialog. This function should
2017 only be used with the dialogs which have wx.MULTIPLE style, use
2018 GetFilename for the others.
2020 return _windows
.FileDialog_GetFilenames(*args
, **kwargs
)
2022 def GetPaths(*args
, **kwargs
):
2024 GetPaths() -> PyObject
2026 Fills the array paths with the full paths of the files chosen. This
2027 function should only be used with the dialogs which have wx.MULTIPLE style,
2028 use GetPath for the others.
2030 return _windows
.FileDialog_GetPaths(*args
, **kwargs
)
2033 class FileDialogPtr(FileDialog
):
2034 def __init__(self
, this
):
2036 if not hasattr(self
,"thisown"): self
.thisown
= 0
2037 self
.__class
__ = FileDialog
2038 _windows
.FileDialog_swigregister(FileDialogPtr
)
2040 CHOICEDLG_STYLE
= _windows
.CHOICEDLG_STYLE
2041 class MultiChoiceDialog(Dialog
):
2042 """A simple dialog with a multi selection listbox."""
2044 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2045 def __init__(self
, *args
, **kwargs
):
2047 __init__(Window parent, String message, String caption,
2048 List choices=[], long style=CHOICEDLG_STYLE,
2049 Point pos=DefaultPosition) -> MultiChoiceDialog
2051 Constructor. Use ShowModal method to show the dialog.
2053 newobj
= _windows
.new_MultiChoiceDialog(*args
, **kwargs
)
2054 self
.this
= newobj
.this
2057 self
._setOORInfo
(self
)
2059 def SetSelections(*args
, **kwargs
):
2061 SetSelections(List selections)
2063 Specify the items in the list that shoudl be selected, using a list of integers.
2065 return _windows
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2067 def GetSelections(*args
, **kwargs
):
2069 GetSelections() -> [selections]
2071 Returns a list of integers representing the items that are selected.
2073 return _windows
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2076 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2077 def __init__(self
, this
):
2079 if not hasattr(self
,"thisown"): self
.thisown
= 0
2080 self
.__class
__ = MultiChoiceDialog
2081 _windows
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2083 class SingleChoiceDialog(Dialog
):
2084 """A simple dialog with a single selection listbox."""
2086 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2087 def __init__(self
, *args
, **kwargs
):
2089 __init__(Window parent, String message, String caption,
2090 List choices=[], long style=CHOICEDLG_STYLE,
2091 Point pos=DefaultPosition) -> SingleChoiceDialog
2093 Constructor. Use ShowModal method to show the dialog.
2095 newobj
= _windows
.new_SingleChoiceDialog(*args
, **kwargs
)
2096 self
.this
= newobj
.this
2099 self
._setOORInfo
(self
)
2101 def GetSelection(*args
, **kwargs
):
2103 GetSelection() -> int
2105 Get the index of teh currently selected item.
2107 return _windows
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2109 def GetStringSelection(*args
, **kwargs
):
2111 GetStringSelection() -> String
2113 Returns the string value of the currently selected item
2115 return _windows
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2117 def SetSelection(*args
, **kwargs
):
2119 SetSelection(int sel)
2121 Set the current selected item to sel
2123 return _windows
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2126 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2127 def __init__(self
, this
):
2129 if not hasattr(self
,"thisown"): self
.thisown
= 0
2130 self
.__class
__ = SingleChoiceDialog
2131 _windows
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2133 class TextEntryDialog(Dialog
):
2134 """A dialog with text control, [ok] and [cancel] buttons"""
2136 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2137 def __init__(self
, *args
, **kwargs
):
2139 __init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
2140 String defaultValue=EmptyString,
2141 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2143 Constructor. Use ShowModal method to show the dialog.
2145 newobj
= _windows
.new_TextEntryDialog(*args
, **kwargs
)
2146 self
.this
= newobj
.this
2149 self
._setOORInfo
(self
)
2151 def GetValue(*args
, **kwargs
):
2153 GetValue() -> String
2155 Returns the text that the user has entered if the user has pressed OK,
2156 or the original value if the user has pressed Cancel.
2158 return _windows
.TextEntryDialog_GetValue(*args
, **kwargs
)
2160 def SetValue(*args
, **kwargs
):
2162 SetValue(String value)
2164 Sets the default text value.
2166 return _windows
.TextEntryDialog_SetValue(*args
, **kwargs
)
2169 class TextEntryDialogPtr(TextEntryDialog
):
2170 def __init__(self
, this
):
2172 if not hasattr(self
,"thisown"): self
.thisown
= 0
2173 self
.__class
__ = TextEntryDialog
2174 _windows
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2176 class FontData(core
.Object
):
2177 """This class holds a variety of information related to font dialogs."""
2179 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2180 def __init__(self
, *args
, **kwargs
):
2182 __init__() -> FontData
2184 This class holds a variety of information related to font dialogs.
2186 newobj
= _windows
.new_FontData(*args
, **kwargs
)
2187 self
.this
= newobj
.this
2190 def __del__(self
, destroy
=_windows
.delete_FontData
):
2193 if self
.thisown
: destroy(self
)
2196 def EnableEffects(*args
, **kwargs
):
2198 EnableEffects(bool enable)
2200 Enables or disables 'effects' under MS Windows only. This refers
2201 to the controls for manipulating colour, strikeout and underline
2202 properties. The default value is true.
2204 return _windows
.FontData_EnableEffects(*args
, **kwargs
)
2206 def GetAllowSymbols(*args
, **kwargs
):
2208 GetAllowSymbols() -> bool
2210 Under MS Windows, returns a flag determining whether symbol fonts can be
2211 selected. Has no effect on other platforms. The default value is true.
2213 return _windows
.FontData_GetAllowSymbols(*args
, **kwargs
)
2215 def GetColour(*args
, **kwargs
):
2217 GetColour() -> Colour
2219 Gets the colour associated with the font dialog. The default value is black.
2221 return _windows
.FontData_GetColour(*args
, **kwargs
)
2223 def GetChosenFont(*args
, **kwargs
):
2225 GetChosenFont() -> Font
2227 Gets the font chosen by the user.
2229 return _windows
.FontData_GetChosenFont(*args
, **kwargs
)
2231 def GetEnableEffects(*args
, **kwargs
):
2233 GetEnableEffects() -> bool
2235 Determines whether 'effects' are enabled under Windows.
2237 return _windows
.FontData_GetEnableEffects(*args
, **kwargs
)
2239 def GetInitialFont(*args
, **kwargs
):
2241 GetInitialFont() -> Font
2243 Gets the font that will be initially used by the font dialog. This should have
2244 previously been set by the application.
2246 return _windows
.FontData_GetInitialFont(*args
, **kwargs
)
2248 def GetShowHelp(*args
, **kwargs
):
2250 GetShowHelp() -> bool
2252 Returns true if the Help button will be shown (Windows only). The default
2255 return _windows
.FontData_GetShowHelp(*args
, **kwargs
)
2257 def SetAllowSymbols(*args
, **kwargs
):
2259 SetAllowSymbols(bool allowSymbols)
2261 Under MS Windows, determines whether symbol fonts can be selected. Has no
2262 effect on other platforms. The default value is true.
2264 return _windows
.FontData_SetAllowSymbols(*args
, **kwargs
)
2266 def SetChosenFont(*args
, **kwargs
):
2268 SetChosenFont(Font font)
2270 Sets the font that will be returned to the user (for internal use only).
2272 return _windows
.FontData_SetChosenFont(*args
, **kwargs
)
2274 def SetColour(*args
, **kwargs
):
2276 SetColour(Colour colour)
2278 Sets the colour that will be used for the font foreground colour. The default
2281 return _windows
.FontData_SetColour(*args
, **kwargs
)
2283 def SetInitialFont(*args
, **kwargs
):
2285 SetInitialFont(Font font)
2287 Sets the font that will be initially used by the font dialog.
2289 return _windows
.FontData_SetInitialFont(*args
, **kwargs
)
2291 def SetRange(*args
, **kwargs
):
2293 SetRange(int min, int max)
2295 Sets the valid range for the font point size (Windows only). The default is
2296 0, 0 (unrestricted range).
2298 return _windows
.FontData_SetRange(*args
, **kwargs
)
2300 def SetShowHelp(*args
, **kwargs
):
2302 SetShowHelp(bool showHelp)
2304 Determines whether the Help button will be displayed in the font dialog
2305 (Windows only). The default value is false.
2307 return _windows
.FontData_SetShowHelp(*args
, **kwargs
)
2310 class FontDataPtr(FontData
):
2311 def __init__(self
, this
):
2313 if not hasattr(self
,"thisown"): self
.thisown
= 0
2314 self
.__class
__ = FontData
2315 _windows
.FontData_swigregister(FontDataPtr
)
2317 class FontDialog(Dialog
):
2318 """This class represents the font chooser dialog."""
2320 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2321 def __init__(self
, *args
, **kwargs
):
2323 __init__(Window parent, FontData data) -> FontDialog
2325 Constructor. Pass a parent window and the FontData object to be
2326 used to initialize the dialog controls.
2328 newobj
= _windows
.new_FontDialog(*args
, **kwargs
)
2329 self
.this
= newobj
.this
2332 self
._setOORInfo
(self
)
2334 def GetFontData(*args
, **kwargs
):
2336 GetFontData() -> FontData
2338 Returns a reference to the internal FontData used by the FontDialog.
2340 return _windows
.FontDialog_GetFontData(*args
, **kwargs
)
2343 class FontDialogPtr(FontDialog
):
2344 def __init__(self
, this
):
2346 if not hasattr(self
,"thisown"): self
.thisown
= 0
2347 self
.__class
__ = FontDialog
2348 _windows
.FontDialog_swigregister(FontDialogPtr
)
2350 class MessageDialog(Dialog
):
2352 This class provides a dialog that shows a single or multi-line message, with
2353 a choice of OK, Yes, No and Cancel buttons.
2356 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2357 def __init__(self
, *args
, **kwargs
):
2359 __init__(Window parent, String message, String caption=MessageBoxCaptionStr,
2360 long style=wxOK|wxCANCEL|wxCENTRE,
2361 Point pos=DefaultPosition) -> MessageDialog
2363 This class provides a dialog that shows a single or multi-line message, with
2364 a choice of OK, Yes, No and Cancel buttons.
2366 newobj
= _windows
.new_MessageDialog(*args
, **kwargs
)
2367 self
.this
= newobj
.this
2370 self
._setOORInfo
(self
)
2373 class MessageDialogPtr(MessageDialog
):
2374 def __init__(self
, this
):
2376 if not hasattr(self
,"thisown"): self
.thisown
= 0
2377 self
.__class
__ = MessageDialog
2378 _windows
.MessageDialog_swigregister(MessageDialogPtr
)
2380 class ProgressDialog(Frame
):
2382 A dialog that shows a short message and a progress bar. Optionally, it can
2383 display an ABORT button.
2386 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2387 def __init__(self
, *args
, **kwargs
):
2389 __init__(String title, String message, int maximum=100, Window parent=None,
2390 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2392 Constructor. Creates the dialog, displays it and disables user input for other
2393 windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only.
2395 newobj
= _windows
.new_ProgressDialog(*args
, **kwargs
)
2396 self
.this
= newobj
.this
2399 self
._setOORInfo
(self
)
2401 def Update(*args
, **kwargs
):
2403 Update(int value, String newmsg=EmptyString) -> bool
2405 Updates the dialog, setting the progress bar to the new value and, if given
2406 changes the message above it. Returns true unless the Cancel button has been
2409 If false is returned, the application can either immediately destroy the
2410 dialog or ask the user for the confirmation and if the abort is not confirmed
2411 the dialog may be resumed with Resume function.
2413 return _windows
.ProgressDialog_Update(*args
, **kwargs
)
2415 def Resume(*args
, **kwargs
):
2419 Can be used to continue with the dialog, after the user had chosen to abort.
2421 return _windows
.ProgressDialog_Resume(*args
, **kwargs
)
2424 class ProgressDialogPtr(ProgressDialog
):
2425 def __init__(self
, this
):
2427 if not hasattr(self
,"thisown"): self
.thisown
= 0
2428 self
.__class
__ = ProgressDialog
2429 _windows
.ProgressDialog_swigregister(ProgressDialogPtr
)
2431 FR_DOWN
= _windows
.FR_DOWN
2432 FR_WHOLEWORD
= _windows
.FR_WHOLEWORD
2433 FR_MATCHCASE
= _windows
.FR_MATCHCASE
2434 FR_REPLACEDIALOG
= _windows
.FR_REPLACEDIALOG
2435 FR_NOUPDOWN
= _windows
.FR_NOUPDOWN
2436 FR_NOMATCHCASE
= _windows
.FR_NOMATCHCASE
2437 FR_NOWHOLEWORD
= _windows
.FR_NOWHOLEWORD
2438 wxEVT_COMMAND_FIND
= _windows
.wxEVT_COMMAND_FIND
2439 wxEVT_COMMAND_FIND_NEXT
= _windows
.wxEVT_COMMAND_FIND_NEXT
2440 wxEVT_COMMAND_FIND_REPLACE
= _windows
.wxEVT_COMMAND_FIND_REPLACE
2441 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows
.wxEVT_COMMAND_FIND_REPLACE_ALL
2442 wxEVT_COMMAND_FIND_CLOSE
= _windows
.wxEVT_COMMAND_FIND_CLOSE
2443 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2444 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2445 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2446 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2447 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2449 # For backwards compatibility. Should they be removed?
2450 EVT_COMMAND_FIND
= EVT_FIND
2451 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2452 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2453 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2454 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2456 class FindDialogEvent(core
.CommandEvent
):
2457 """Events for the FindReplaceDialog"""
2459 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2460 def __init__(self
, *args
, **kwargs
):
2462 __init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2464 Events for the FindReplaceDialog
2466 newobj
= _windows
.new_FindDialogEvent(*args
, **kwargs
)
2467 self
.this
= newobj
.this
2470 def GetFlags(*args
, **kwargs
):
2474 Get the currently selected flags: this is the combination of
2475 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2477 return _windows
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2479 def GetFindString(*args
, **kwargs
):
2481 GetFindString() -> String
2483 Return the string to find (never empty).
2485 return _windows
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2487 def GetReplaceString(*args
, **kwargs
):
2489 GetReplaceString() -> String
2491 Return the string to replace the search string with (only
2492 for replace and replace all events).
2494 return _windows
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2496 def GetDialog(*args
, **kwargs
):
2498 GetDialog() -> FindReplaceDialog
2500 Return the pointer to the dialog which generated this event.
2502 return _windows
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2504 def SetFlags(*args
, **kwargs
):
2505 """SetFlags(int flags)"""
2506 return _windows
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2508 def SetFindString(*args
, **kwargs
):
2509 """SetFindString(String str)"""
2510 return _windows
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2512 def SetReplaceString(*args
, **kwargs
):
2513 """SetReplaceString(String str)"""
2514 return _windows
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2517 class FindDialogEventPtr(FindDialogEvent
):
2518 def __init__(self
, this
):
2520 if not hasattr(self
,"thisown"): self
.thisown
= 0
2521 self
.__class
__ = FindDialogEvent
2522 _windows
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2524 class FindReplaceData(core
.Object
):
2526 FindReplaceData holds the data for FindReplaceDialog. It is used to initialize
2527 the dialog with the default values and will keep the last values from the
2528 dialog when it is closed. It is also updated each time a wxFindDialogEvent is
2529 generated so instead of using the wxFindDialogEvent methods you can also
2530 directly query this object.
2532 Note that all SetXXX() methods may only be called before showing the dialog
2533 and calling them has no effect later.
2536 wxFR_DOWN: downward search/replace selected (otherwise, upwards)
2538 wxFR_WHOLEWORD: whole word search/replace selected
2540 wxFR_MATCHCASE: case sensitive search/replace selected (otherwise,
2545 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2546 def __init__(self
, *args
, **kwargs
):
2548 __init__(int flags=0) -> FindReplaceData
2550 Constuctor initializes the flags to default value (0).
2552 newobj
= _windows
.new_FindReplaceData(*args
, **kwargs
)
2553 self
.this
= newobj
.this
2556 def __del__(self
, destroy
=_windows
.delete_FindReplaceData
):
2559 if self
.thisown
: destroy(self
)
2562 def GetFindString(*args
, **kwargs
):
2564 GetFindString() -> String
2566 Get the string to find.
2568 return _windows
.FindReplaceData_GetFindString(*args
, **kwargs
)
2570 def GetReplaceString(*args
, **kwargs
):
2572 GetReplaceString() -> String
2574 Get the replacement string.
2576 return _windows
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2578 def GetFlags(*args
, **kwargs
):
2582 Get the combination of flag values.
2584 return _windows
.FindReplaceData_GetFlags(*args
, **kwargs
)
2586 def SetFlags(*args
, **kwargs
):
2590 Set the flags to use to initialize the controls of the dialog.
2592 return _windows
.FindReplaceData_SetFlags(*args
, **kwargs
)
2594 def SetFindString(*args
, **kwargs
):
2596 SetFindString(String str)
2598 Set the string to find (used as initial value by the dialog).
2600 return _windows
.FindReplaceData_SetFindString(*args
, **kwargs
)
2602 def SetReplaceString(*args
, **kwargs
):
2604 SetReplaceString(String str)
2606 Set the replacement string (used as initial value by the dialog).
2608 return _windows
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2611 class FindReplaceDataPtr(FindReplaceData
):
2612 def __init__(self
, this
):
2614 if not hasattr(self
,"thisown"): self
.thisown
= 0
2615 self
.__class
__ = FindReplaceData
2616 _windows
.FindReplaceData_swigregister(FindReplaceDataPtr
)
2618 class FindReplaceDialog(Dialog
):
2620 FindReplaceDialog is a standard modeless dialog which is used to allow the
2621 user to search for some text (and possibly replace it with something
2622 else). The actual searching is supposed to be done in the owner window which
2623 is the parent of this dialog. Note that it means that unlike for the other
2624 standard dialogs this one must have a parent window. Also note that there is
2625 no way to use this dialog in a modal way; it is always, by design and
2626 implementation, modeless.
2629 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2630 def __init__(self
, *args
, **kwargs
):
2632 __init__(Window parent, FindReplaceData data, String title,
2633 int style=0) -> FindReplaceDialog
2635 Create a FindReplaceDialog. The parent and data parameters must be
2636 non-None. Use Show to display the dialog.
2638 newobj
= _windows
.new_FindReplaceDialog(*args
, **kwargs
)
2639 self
.this
= newobj
.this
2642 self
._setOORInfo
(self
)
2644 def Create(*args
, **kwargs
):
2646 Create(Window parent, FindReplaceData data, String title,
2647 int style=0) -> bool
2649 Create the dialog, for 2-phase create.
2651 return _windows
.FindReplaceDialog_Create(*args
, **kwargs
)
2653 def GetData(*args
, **kwargs
):
2655 GetData() -> FindReplaceData
2657 Get the FindReplaceData object used by this dialog.
2659 return _windows
.FindReplaceDialog_GetData(*args
, **kwargs
)
2661 def SetData(*args
, **kwargs
):
2663 SetData(FindReplaceData data)
2665 Set the FindReplaceData object used by this dialog.
2667 return _windows
.FindReplaceDialog_SetData(*args
, **kwargs
)
2670 class FindReplaceDialogPtr(FindReplaceDialog
):
2671 def __init__(self
, this
):
2673 if not hasattr(self
,"thisown"): self
.thisown
= 0
2674 self
.__class
__ = FindReplaceDialog
2675 _windows
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
2677 def PreFindReplaceDialog(*args
, **kwargs
):
2679 PreFindReplaceDialog() -> FindReplaceDialog
2681 Precreate a FindReplaceDialog for 2-phase creation
2683 val
= _windows
.new_PreFindReplaceDialog(*args
, **kwargs
)
2687 #---------------------------------------------------------------------------
2689 IDM_WINDOWTILE
= _windows
.IDM_WINDOWTILE
2690 IDM_WINDOWTILEHOR
= _windows
.IDM_WINDOWTILEHOR
2691 IDM_WINDOWCASCADE
= _windows
.IDM_WINDOWCASCADE
2692 IDM_WINDOWICONS
= _windows
.IDM_WINDOWICONS
2693 IDM_WINDOWNEXT
= _windows
.IDM_WINDOWNEXT
2694 IDM_WINDOWTILEVERT
= _windows
.IDM_WINDOWTILEVERT
2695 FIRST_MDI_CHILD
= _windows
.FIRST_MDI_CHILD
2696 LAST_MDI_CHILD
= _windows
.LAST_MDI_CHILD
2697 class MDIParentFrame(Frame
):
2699 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2700 def __init__(self
, *args
, **kwargs
):
2702 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
2703 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2704 String name=FrameNameStr) -> MDIParentFrame
2706 newobj
= _windows
.new_MDIParentFrame(*args
, **kwargs
)
2707 self
.this
= newobj
.this
2710 self
._setOORInfo
(self
)
2712 def Create(*args
, **kwargs
):
2714 Create(Window parent, int id, String title, Point pos=DefaultPosition,
2715 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2716 String name=FrameNameStr) -> bool
2718 return _windows
.MDIParentFrame_Create(*args
, **kwargs
)
2720 def ActivateNext(*args
, **kwargs
):
2721 """ActivateNext()"""
2722 return _windows
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
2724 def ActivatePrevious(*args
, **kwargs
):
2725 """ActivatePrevious()"""
2726 return _windows
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
2728 def ArrangeIcons(*args
, **kwargs
):
2729 """ArrangeIcons()"""
2730 return _windows
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
2732 def Cascade(*args
, **kwargs
):
2734 return _windows
.MDIParentFrame_Cascade(*args
, **kwargs
)
2736 def GetActiveChild(*args
, **kwargs
):
2737 """GetActiveChild() -> MDIChildFrame"""
2738 return _windows
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
2740 def GetClientWindow(*args
, **kwargs
):
2741 """GetClientWindow() -> MDIClientWindow"""
2742 return _windows
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
2744 def GetToolBar(*args
, **kwargs
):
2745 """GetToolBar() -> Window"""
2746 return _windows
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
2748 def Tile(*args
, **kwargs
):
2750 return _windows
.MDIParentFrame_Tile(*args
, **kwargs
)
2753 class MDIParentFramePtr(MDIParentFrame
):
2754 def __init__(self
, this
):
2756 if not hasattr(self
,"thisown"): self
.thisown
= 0
2757 self
.__class
__ = MDIParentFrame
2758 _windows
.MDIParentFrame_swigregister(MDIParentFramePtr
)
2760 def PreMDIParentFrame(*args
, **kwargs
):
2761 """PreMDIParentFrame() -> MDIParentFrame"""
2762 val
= _windows
.new_PreMDIParentFrame(*args
, **kwargs
)
2766 class MDIChildFrame(Frame
):
2768 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2769 def __init__(self
, *args
, **kwargs
):
2771 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2772 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2773 String name=FrameNameStr) -> MDIChildFrame
2775 newobj
= _windows
.new_MDIChildFrame(*args
, **kwargs
)
2776 self
.this
= newobj
.this
2779 self
._setOORInfo
(self
)
2781 def Create(*args
, **kwargs
):
2783 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2784 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2785 String name=FrameNameStr) -> bool
2787 return _windows
.MDIChildFrame_Create(*args
, **kwargs
)
2789 def Activate(*args
, **kwargs
):
2791 return _windows
.MDIChildFrame_Activate(*args
, **kwargs
)
2793 def Maximize(*args
, **kwargs
):
2794 """Maximize(bool maximize)"""
2795 return _windows
.MDIChildFrame_Maximize(*args
, **kwargs
)
2797 def Restore(*args
, **kwargs
):
2799 return _windows
.MDIChildFrame_Restore(*args
, **kwargs
)
2802 class MDIChildFramePtr(MDIChildFrame
):
2803 def __init__(self
, this
):
2805 if not hasattr(self
,"thisown"): self
.thisown
= 0
2806 self
.__class
__ = MDIChildFrame
2807 _windows
.MDIChildFrame_swigregister(MDIChildFramePtr
)
2809 def PreMDIChildFrame(*args
, **kwargs
):
2810 """PreMDIChildFrame() -> MDIChildFrame"""
2811 val
= _windows
.new_PreMDIChildFrame(*args
, **kwargs
)
2815 class MDIClientWindow(core
.Window
):
2817 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2818 def __init__(self
, *args
, **kwargs
):
2819 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
2820 newobj
= _windows
.new_MDIClientWindow(*args
, **kwargs
)
2821 self
.this
= newobj
.this
2824 self
._setOORInfo
(self
)
2826 def Create(*args
, **kwargs
):
2827 """Create(MDIParentFrame parent, long style=0) -> bool"""
2828 return _windows
.MDIClientWindow_Create(*args
, **kwargs
)
2831 class MDIClientWindowPtr(MDIClientWindow
):
2832 def __init__(self
, this
):
2834 if not hasattr(self
,"thisown"): self
.thisown
= 0
2835 self
.__class
__ = MDIClientWindow
2836 _windows
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
2838 def PreMDIClientWindow(*args
, **kwargs
):
2839 """PreMDIClientWindow() -> MDIClientWindow"""
2840 val
= _windows
.new_PreMDIClientWindow(*args
, **kwargs
)
2844 #---------------------------------------------------------------------------
2846 class PyWindow(core
.Window
):
2848 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2849 def __init__(self
, *args
, **kwargs
):
2851 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2852 long style=0, String name=PanelNameStr) -> PyWindow
2854 newobj
= _windows
.new_PyWindow(*args
, **kwargs
)
2855 self
.this
= newobj
.this
2858 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
2860 def _setCallbackInfo(*args
, **kwargs
):
2861 """_setCallbackInfo(PyObject self, PyObject _class)"""
2862 return _windows
.PyWindow__setCallbackInfo(*args
, **kwargs
)
2864 def base_DoMoveWindow(*args
, **kwargs
):
2865 """base_DoMoveWindow(int x, int y, int width, int height)"""
2866 return _windows
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
2868 def base_DoSetSize(*args
, **kwargs
):
2869 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2870 return _windows
.PyWindow_base_DoSetSize(*args
, **kwargs
)
2872 def base_DoSetClientSize(*args
, **kwargs
):
2873 """base_DoSetClientSize(int width, int height)"""
2874 return _windows
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
2876 def base_DoSetVirtualSize(*args
, **kwargs
):
2877 """base_DoSetVirtualSize(int x, int y)"""
2878 return _windows
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
2880 def base_DoGetSize(*args
, **kwargs
):
2881 """base_DoGetSize() -> (width, height)"""
2882 return _windows
.PyWindow_base_DoGetSize(*args
, **kwargs
)
2884 def base_DoGetClientSize(*args
, **kwargs
):
2885 """base_DoGetClientSize() -> (width, height)"""
2886 return _windows
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
2888 def base_DoGetPosition(*args
, **kwargs
):
2889 """base_DoGetPosition() -> (x,y)"""
2890 return _windows
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
2892 def base_DoGetVirtualSize(*args
, **kwargs
):
2893 """base_DoGetVirtualSize() -> Size"""
2894 return _windows
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
2896 def base_DoGetBestSize(*args
, **kwargs
):
2897 """base_DoGetBestSize() -> Size"""
2898 return _windows
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
2900 def base_InitDialog(*args
, **kwargs
):
2901 """base_InitDialog()"""
2902 return _windows
.PyWindow_base_InitDialog(*args
, **kwargs
)
2904 def base_TransferDataToWindow(*args
, **kwargs
):
2905 """base_TransferDataToWindow() -> bool"""
2906 return _windows
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
2908 def base_TransferDataFromWindow(*args
, **kwargs
):
2909 """base_TransferDataFromWindow() -> bool"""
2910 return _windows
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
2912 def base_Validate(*args
, **kwargs
):
2913 """base_Validate() -> bool"""
2914 return _windows
.PyWindow_base_Validate(*args
, **kwargs
)
2916 def base_AcceptsFocus(*args
, **kwargs
):
2917 """base_AcceptsFocus() -> bool"""
2918 return _windows
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
2920 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
2921 """base_AcceptsFocusFromKeyboard() -> bool"""
2922 return _windows
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
2924 def base_GetMaxSize(*args
, **kwargs
):
2925 """base_GetMaxSize() -> Size"""
2926 return _windows
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
2928 def base_AddChild(*args
, **kwargs
):
2929 """base_AddChild(Window child)"""
2930 return _windows
.PyWindow_base_AddChild(*args
, **kwargs
)
2932 def base_RemoveChild(*args
, **kwargs
):
2933 """base_RemoveChild(Window child)"""
2934 return _windows
.PyWindow_base_RemoveChild(*args
, **kwargs
)
2937 class PyWindowPtr(PyWindow
):
2938 def __init__(self
, this
):
2940 if not hasattr(self
,"thisown"): self
.thisown
= 0
2941 self
.__class
__ = PyWindow
2942 _windows
.PyWindow_swigregister(PyWindowPtr
)
2944 class PyPanel(Panel
):
2946 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2947 def __init__(self
, *args
, **kwargs
):
2949 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2950 long style=0, String name=PanelNameStr) -> PyPanel
2952 newobj
= _windows
.new_PyPanel(*args
, **kwargs
)
2953 self
.this
= newobj
.this
2956 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
2958 def _setCallbackInfo(*args
, **kwargs
):
2959 """_setCallbackInfo(PyObject self, PyObject _class)"""
2960 return _windows
.PyPanel__setCallbackInfo(*args
, **kwargs
)
2962 def base_DoMoveWindow(*args
, **kwargs
):
2963 """base_DoMoveWindow(int x, int y, int width, int height)"""
2964 return _windows
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
2966 def base_DoSetSize(*args
, **kwargs
):
2967 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2968 return _windows
.PyPanel_base_DoSetSize(*args
, **kwargs
)
2970 def base_DoSetClientSize(*args
, **kwargs
):
2971 """base_DoSetClientSize(int width, int height)"""
2972 return _windows
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
2974 def base_DoSetVirtualSize(*args
, **kwargs
):
2975 """base_DoSetVirtualSize(int x, int y)"""
2976 return _windows
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
2978 def base_DoGetSize(*args
, **kwargs
):
2979 """base_DoGetSize() -> (width, height)"""
2980 return _windows
.PyPanel_base_DoGetSize(*args
, **kwargs
)
2982 def base_DoGetClientSize(*args
, **kwargs
):
2983 """base_DoGetClientSize() -> (width, height)"""
2984 return _windows
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
2986 def base_DoGetPosition(*args
, **kwargs
):
2987 """base_DoGetPosition() -> (x,y)"""
2988 return _windows
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
2990 def base_DoGetVirtualSize(*args
, **kwargs
):
2991 """base_DoGetVirtualSize() -> Size"""
2992 return _windows
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
2994 def base_DoGetBestSize(*args
, **kwargs
):
2995 """base_DoGetBestSize() -> Size"""
2996 return _windows
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
2998 def base_InitDialog(*args
, **kwargs
):
2999 """base_InitDialog()"""
3000 return _windows
.PyPanel_base_InitDialog(*args
, **kwargs
)
3002 def base_TransferDataToWindow(*args
, **kwargs
):
3003 """base_TransferDataToWindow() -> bool"""
3004 return _windows
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3006 def base_TransferDataFromWindow(*args
, **kwargs
):
3007 """base_TransferDataFromWindow() -> bool"""
3008 return _windows
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3010 def base_Validate(*args
, **kwargs
):
3011 """base_Validate() -> bool"""
3012 return _windows
.PyPanel_base_Validate(*args
, **kwargs
)
3014 def base_AcceptsFocus(*args
, **kwargs
):
3015 """base_AcceptsFocus() -> bool"""
3016 return _windows
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3018 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3019 """base_AcceptsFocusFromKeyboard() -> bool"""
3020 return _windows
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3022 def base_GetMaxSize(*args
, **kwargs
):
3023 """base_GetMaxSize() -> Size"""
3024 return _windows
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3026 def base_AddChild(*args
, **kwargs
):
3027 """base_AddChild(Window child)"""
3028 return _windows
.PyPanel_base_AddChild(*args
, **kwargs
)
3030 def base_RemoveChild(*args
, **kwargs
):
3031 """base_RemoveChild(Window child)"""
3032 return _windows
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3035 class PyPanelPtr(PyPanel
):
3036 def __init__(self
, this
):
3038 if not hasattr(self
,"thisown"): self
.thisown
= 0
3039 self
.__class
__ = PyPanel
3040 _windows
.PyPanel_swigregister(PyPanelPtr
)
3042 #---------------------------------------------------------------------------
3044 PRINT_MODE_NONE
= _windows
.PRINT_MODE_NONE
3045 PRINT_MODE_PREVIEW
= _windows
.PRINT_MODE_PREVIEW
3046 PRINT_MODE_FILE
= _windows
.PRINT_MODE_FILE
3047 PRINT_MODE_PRINTER
= _windows
.PRINT_MODE_PRINTER
3048 PRINT_MODE_STREAM
= _windows
.PRINT_MODE_STREAM
3049 class PrintData(core
.Object
):
3051 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3052 def __init__(self
, *args
, **kwargs
):
3053 """__init__() -> PrintData"""
3054 newobj
= _windows
.new_PrintData(*args
, **kwargs
)
3055 self
.this
= newobj
.this
3058 def __del__(self
, destroy
=_windows
.delete_PrintData
):
3061 if self
.thisown
: destroy(self
)
3064 def GetNoCopies(*args
, **kwargs
):
3065 """GetNoCopies() -> int"""
3066 return _windows
.PrintData_GetNoCopies(*args
, **kwargs
)
3068 def GetCollate(*args
, **kwargs
):
3069 """GetCollate() -> bool"""
3070 return _windows
.PrintData_GetCollate(*args
, **kwargs
)
3072 def GetOrientation(*args
, **kwargs
):
3073 """GetOrientation() -> int"""
3074 return _windows
.PrintData_GetOrientation(*args
, **kwargs
)
3076 def Ok(*args
, **kwargs
):
3078 return _windows
.PrintData_Ok(*args
, **kwargs
)
3080 def GetPrinterName(*args
, **kwargs
):
3081 """GetPrinterName() -> String"""
3082 return _windows
.PrintData_GetPrinterName(*args
, **kwargs
)
3084 def GetColour(*args
, **kwargs
):
3085 """GetColour() -> bool"""
3086 return _windows
.PrintData_GetColour(*args
, **kwargs
)
3088 def GetDuplex(*args
, **kwargs
):
3089 """GetDuplex() -> int"""
3090 return _windows
.PrintData_GetDuplex(*args
, **kwargs
)
3092 def GetPaperId(*args
, **kwargs
):
3093 """GetPaperId() -> int"""
3094 return _windows
.PrintData_GetPaperId(*args
, **kwargs
)
3096 def GetPaperSize(*args
, **kwargs
):
3097 """GetPaperSize() -> Size"""
3098 return _windows
.PrintData_GetPaperSize(*args
, **kwargs
)
3100 def GetQuality(*args
, **kwargs
):
3101 """GetQuality() -> int"""
3102 return _windows
.PrintData_GetQuality(*args
, **kwargs
)
3104 def SetNoCopies(*args
, **kwargs
):
3105 """SetNoCopies(int v)"""
3106 return _windows
.PrintData_SetNoCopies(*args
, **kwargs
)
3108 def SetCollate(*args
, **kwargs
):
3109 """SetCollate(bool flag)"""
3110 return _windows
.PrintData_SetCollate(*args
, **kwargs
)
3112 def SetOrientation(*args
, **kwargs
):
3113 """SetOrientation(int orient)"""
3114 return _windows
.PrintData_SetOrientation(*args
, **kwargs
)
3116 def SetPrinterName(*args
, **kwargs
):
3117 """SetPrinterName(String name)"""
3118 return _windows
.PrintData_SetPrinterName(*args
, **kwargs
)
3120 def SetColour(*args
, **kwargs
):
3121 """SetColour(bool colour)"""
3122 return _windows
.PrintData_SetColour(*args
, **kwargs
)
3124 def SetDuplex(*args
, **kwargs
):
3125 """SetDuplex(int duplex)"""
3126 return _windows
.PrintData_SetDuplex(*args
, **kwargs
)
3128 def SetPaperId(*args
, **kwargs
):
3129 """SetPaperId(int sizeId)"""
3130 return _windows
.PrintData_SetPaperId(*args
, **kwargs
)
3132 def SetPaperSize(*args
, **kwargs
):
3133 """SetPaperSize(Size sz)"""
3134 return _windows
.PrintData_SetPaperSize(*args
, **kwargs
)
3136 def SetQuality(*args
, **kwargs
):
3137 """SetQuality(int quality)"""
3138 return _windows
.PrintData_SetQuality(*args
, **kwargs
)
3140 def GetPrinterCommand(*args
, **kwargs
):
3141 """GetPrinterCommand() -> String"""
3142 return _windows
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3144 def GetPrinterOptions(*args
, **kwargs
):
3145 """GetPrinterOptions() -> String"""
3146 return _windows
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3148 def GetPreviewCommand(*args
, **kwargs
):
3149 """GetPreviewCommand() -> String"""
3150 return _windows
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3152 def GetFilename(*args
, **kwargs
):
3153 """GetFilename() -> String"""
3154 return _windows
.PrintData_GetFilename(*args
, **kwargs
)
3156 def GetFontMetricPath(*args
, **kwargs
):
3157 """GetFontMetricPath() -> String"""
3158 return _windows
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3160 def GetPrinterScaleX(*args
, **kwargs
):
3161 """GetPrinterScaleX() -> double"""
3162 return _windows
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3164 def GetPrinterScaleY(*args
, **kwargs
):
3165 """GetPrinterScaleY() -> double"""
3166 return _windows
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3168 def GetPrinterTranslateX(*args
, **kwargs
):
3169 """GetPrinterTranslateX() -> long"""
3170 return _windows
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3172 def GetPrinterTranslateY(*args
, **kwargs
):
3173 """GetPrinterTranslateY() -> long"""
3174 return _windows
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3176 def GetPrintMode(*args
, **kwargs
):
3177 """GetPrintMode() -> int"""
3178 return _windows
.PrintData_GetPrintMode(*args
, **kwargs
)
3180 def SetPrinterCommand(*args
, **kwargs
):
3181 """SetPrinterCommand(String command)"""
3182 return _windows
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3184 def SetPrinterOptions(*args
, **kwargs
):
3185 """SetPrinterOptions(String options)"""
3186 return _windows
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3188 def SetPreviewCommand(*args
, **kwargs
):
3189 """SetPreviewCommand(String command)"""
3190 return _windows
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3192 def SetFilename(*args
, **kwargs
):
3193 """SetFilename(String filename)"""
3194 return _windows
.PrintData_SetFilename(*args
, **kwargs
)
3196 def SetFontMetricPath(*args
, **kwargs
):
3197 """SetFontMetricPath(String path)"""
3198 return _windows
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3200 def SetPrinterScaleX(*args
, **kwargs
):
3201 """SetPrinterScaleX(double x)"""
3202 return _windows
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3204 def SetPrinterScaleY(*args
, **kwargs
):
3205 """SetPrinterScaleY(double y)"""
3206 return _windows
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3208 def SetPrinterScaling(*args
, **kwargs
):
3209 """SetPrinterScaling(double x, double y)"""
3210 return _windows
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3212 def SetPrinterTranslateX(*args
, **kwargs
):
3213 """SetPrinterTranslateX(long x)"""
3214 return _windows
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3216 def SetPrinterTranslateY(*args
, **kwargs
):
3217 """SetPrinterTranslateY(long y)"""
3218 return _windows
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3220 def SetPrinterTranslation(*args
, **kwargs
):
3221 """SetPrinterTranslation(long x, long y)"""
3222 return _windows
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3224 def SetPrintMode(*args
, **kwargs
):
3225 """SetPrintMode(int printMode)"""
3226 return _windows
.PrintData_SetPrintMode(*args
, **kwargs
)
3228 def GetOutputStream(*args
, **kwargs
):
3229 """GetOutputStream() -> OutputStream"""
3230 return _windows
.PrintData_GetOutputStream(*args
, **kwargs
)
3232 def SetOutputStream(*args
, **kwargs
):
3233 """SetOutputStream(OutputStream outputstream)"""
3234 return _windows
.PrintData_SetOutputStream(*args
, **kwargs
)
3236 def __nonzero__(self
): return self
.Ok()
3238 class PrintDataPtr(PrintData
):
3239 def __init__(self
, this
):
3241 if not hasattr(self
,"thisown"): self
.thisown
= 0
3242 self
.__class
__ = PrintData
3243 _windows
.PrintData_swigregister(PrintDataPtr
)
3244 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3245 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3247 class PageSetupDialogData(core
.Object
):
3249 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3250 def __init__(self
, *args
, **kwargs
):
3251 """__init__() -> PageSetupDialogData"""
3252 newobj
= _windows
.new_PageSetupDialogData(*args
, **kwargs
)
3253 self
.this
= newobj
.this
3256 def __del__(self
, destroy
=_windows
.delete_PageSetupDialogData
):
3259 if self
.thisown
: destroy(self
)
3262 def EnableHelp(*args
, **kwargs
):
3263 """EnableHelp(bool flag)"""
3264 return _windows
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3266 def EnableMargins(*args
, **kwargs
):
3267 """EnableMargins(bool flag)"""
3268 return _windows
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3270 def EnableOrientation(*args
, **kwargs
):
3271 """EnableOrientation(bool flag)"""
3272 return _windows
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3274 def EnablePaper(*args
, **kwargs
):
3275 """EnablePaper(bool flag)"""
3276 return _windows
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3278 def EnablePrinter(*args
, **kwargs
):
3279 """EnablePrinter(bool flag)"""
3280 return _windows
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3282 def GetDefaultMinMargins(*args
, **kwargs
):
3283 """GetDefaultMinMargins() -> bool"""
3284 return _windows
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3286 def GetEnableMargins(*args
, **kwargs
):
3287 """GetEnableMargins() -> bool"""
3288 return _windows
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3290 def GetEnableOrientation(*args
, **kwargs
):
3291 """GetEnableOrientation() -> bool"""
3292 return _windows
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3294 def GetEnablePaper(*args
, **kwargs
):
3295 """GetEnablePaper() -> bool"""
3296 return _windows
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3298 def GetEnablePrinter(*args
, **kwargs
):
3299 """GetEnablePrinter() -> bool"""
3300 return _windows
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3302 def GetEnableHelp(*args
, **kwargs
):
3303 """GetEnableHelp() -> bool"""
3304 return _windows
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3306 def GetDefaultInfo(*args
, **kwargs
):
3307 """GetDefaultInfo() -> bool"""
3308 return _windows
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3310 def GetMarginTopLeft(*args
, **kwargs
):
3311 """GetMarginTopLeft() -> Point"""
3312 return _windows
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3314 def GetMarginBottomRight(*args
, **kwargs
):
3315 """GetMarginBottomRight() -> Point"""
3316 return _windows
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3318 def GetMinMarginTopLeft(*args
, **kwargs
):
3319 """GetMinMarginTopLeft() -> Point"""
3320 return _windows
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3322 def GetMinMarginBottomRight(*args
, **kwargs
):
3323 """GetMinMarginBottomRight() -> Point"""
3324 return _windows
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3326 def GetPaperId(*args
, **kwargs
):
3327 """GetPaperId() -> int"""
3328 return _windows
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3330 def GetPaperSize(*args
, **kwargs
):
3331 """GetPaperSize() -> Size"""
3332 return _windows
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3334 def GetPrintData(*args
, **kwargs
):
3335 """GetPrintData() -> PrintData"""
3336 return _windows
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3338 def Ok(*args
, **kwargs
):
3340 return _windows
.PageSetupDialogData_Ok(*args
, **kwargs
)
3342 def SetDefaultInfo(*args
, **kwargs
):
3343 """SetDefaultInfo(bool flag)"""
3344 return _windows
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3346 def SetDefaultMinMargins(*args
, **kwargs
):
3347 """SetDefaultMinMargins(bool flag)"""
3348 return _windows
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3350 def SetMarginTopLeft(*args
, **kwargs
):
3351 """SetMarginTopLeft(Point pt)"""
3352 return _windows
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3354 def SetMarginBottomRight(*args
, **kwargs
):
3355 """SetMarginBottomRight(Point pt)"""
3356 return _windows
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3358 def SetMinMarginTopLeft(*args
, **kwargs
):
3359 """SetMinMarginTopLeft(Point pt)"""
3360 return _windows
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3362 def SetMinMarginBottomRight(*args
, **kwargs
):
3363 """SetMinMarginBottomRight(Point pt)"""
3364 return _windows
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3366 def SetPaperId(*args
, **kwargs
):
3367 """SetPaperId(int id)"""
3368 return _windows
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3370 def SetPaperSize(*args
, **kwargs
):
3371 """SetPaperSize(Size size)"""
3372 return _windows
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3374 def SetPrintData(*args
, **kwargs
):
3375 """SetPrintData(PrintData printData)"""
3376 return _windows
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3378 def __nonzero__(self
): return self
.Ok()
3380 class PageSetupDialogDataPtr(PageSetupDialogData
):
3381 def __init__(self
, this
):
3383 if not hasattr(self
,"thisown"): self
.thisown
= 0
3384 self
.__class
__ = PageSetupDialogData
3385 _windows
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3387 class PageSetupDialog(Dialog
):
3389 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3390 def __init__(self
, *args
, **kwargs
):
3391 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3392 newobj
= _windows
.new_PageSetupDialog(*args
, **kwargs
)
3393 self
.this
= newobj
.this
3396 self
._setOORInfo
(self
)
3398 def GetPageSetupData(*args
, **kwargs
):
3399 """GetPageSetupData() -> PageSetupDialogData"""
3400 return _windows
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3402 def ShowModal(*args
, **kwargs
):
3403 """ShowModal() -> int"""
3404 return _windows
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3407 class PageSetupDialogPtr(PageSetupDialog
):
3408 def __init__(self
, this
):
3410 if not hasattr(self
,"thisown"): self
.thisown
= 0
3411 self
.__class
__ = PageSetupDialog
3412 _windows
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3414 class PrintDialogData(core
.Object
):
3416 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3417 def __init__(self
, *args
):
3419 __init__() -> PrintDialogData
3420 __init__(PrintData printData) -> PrintDialogData
3422 newobj
= _windows
.new_PrintDialogData(*args
)
3423 self
.this
= newobj
.this
3426 def __del__(self
, destroy
=_windows
.delete_PrintDialogData
):
3429 if self
.thisown
: destroy(self
)
3432 def GetFromPage(*args
, **kwargs
):
3433 """GetFromPage() -> int"""
3434 return _windows
.PrintDialogData_GetFromPage(*args
, **kwargs
)
3436 def GetToPage(*args
, **kwargs
):
3437 """GetToPage() -> int"""
3438 return _windows
.PrintDialogData_GetToPage(*args
, **kwargs
)
3440 def GetMinPage(*args
, **kwargs
):
3441 """GetMinPage() -> int"""
3442 return _windows
.PrintDialogData_GetMinPage(*args
, **kwargs
)
3444 def GetMaxPage(*args
, **kwargs
):
3445 """GetMaxPage() -> int"""
3446 return _windows
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
3448 def GetNoCopies(*args
, **kwargs
):
3449 """GetNoCopies() -> int"""
3450 return _windows
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
3452 def GetAllPages(*args
, **kwargs
):
3453 """GetAllPages() -> bool"""
3454 return _windows
.PrintDialogData_GetAllPages(*args
, **kwargs
)
3456 def GetSelection(*args
, **kwargs
):
3457 """GetSelection() -> bool"""
3458 return _windows
.PrintDialogData_GetSelection(*args
, **kwargs
)
3460 def GetCollate(*args
, **kwargs
):
3461 """GetCollate() -> bool"""
3462 return _windows
.PrintDialogData_GetCollate(*args
, **kwargs
)
3464 def GetPrintToFile(*args
, **kwargs
):
3465 """GetPrintToFile() -> bool"""
3466 return _windows
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
3468 def GetSetupDialog(*args
, **kwargs
):
3469 """GetSetupDialog() -> bool"""
3470 return _windows
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
3472 def SetFromPage(*args
, **kwargs
):
3473 """SetFromPage(int v)"""
3474 return _windows
.PrintDialogData_SetFromPage(*args
, **kwargs
)
3476 def SetToPage(*args
, **kwargs
):
3477 """SetToPage(int v)"""
3478 return _windows
.PrintDialogData_SetToPage(*args
, **kwargs
)
3480 def SetMinPage(*args
, **kwargs
):
3481 """SetMinPage(int v)"""
3482 return _windows
.PrintDialogData_SetMinPage(*args
, **kwargs
)
3484 def SetMaxPage(*args
, **kwargs
):
3485 """SetMaxPage(int v)"""
3486 return _windows
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
3488 def SetNoCopies(*args
, **kwargs
):
3489 """SetNoCopies(int v)"""
3490 return _windows
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
3492 def SetAllPages(*args
, **kwargs
):
3493 """SetAllPages(bool flag)"""
3494 return _windows
.PrintDialogData_SetAllPages(*args
, **kwargs
)
3496 def SetSelection(*args
, **kwargs
):
3497 """SetSelection(bool flag)"""
3498 return _windows
.PrintDialogData_SetSelection(*args
, **kwargs
)
3500 def SetCollate(*args
, **kwargs
):
3501 """SetCollate(bool flag)"""
3502 return _windows
.PrintDialogData_SetCollate(*args
, **kwargs
)
3504 def SetPrintToFile(*args
, **kwargs
):
3505 """SetPrintToFile(bool flag)"""
3506 return _windows
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
3508 def SetSetupDialog(*args
, **kwargs
):
3509 """SetSetupDialog(bool flag)"""
3510 return _windows
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
3512 def EnablePrintToFile(*args
, **kwargs
):
3513 """EnablePrintToFile(bool flag)"""
3514 return _windows
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
3516 def EnableSelection(*args
, **kwargs
):
3517 """EnableSelection(bool flag)"""
3518 return _windows
.PrintDialogData_EnableSelection(*args
, **kwargs
)
3520 def EnablePageNumbers(*args
, **kwargs
):
3521 """EnablePageNumbers(bool flag)"""
3522 return _windows
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
3524 def EnableHelp(*args
, **kwargs
):
3525 """EnableHelp(bool flag)"""
3526 return _windows
.PrintDialogData_EnableHelp(*args
, **kwargs
)
3528 def GetEnablePrintToFile(*args
, **kwargs
):
3529 """GetEnablePrintToFile() -> bool"""
3530 return _windows
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
3532 def GetEnableSelection(*args
, **kwargs
):
3533 """GetEnableSelection() -> bool"""
3534 return _windows
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
3536 def GetEnablePageNumbers(*args
, **kwargs
):
3537 """GetEnablePageNumbers() -> bool"""
3538 return _windows
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
3540 def GetEnableHelp(*args
, **kwargs
):
3541 """GetEnableHelp() -> bool"""
3542 return _windows
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
3544 def Ok(*args
, **kwargs
):
3546 return _windows
.PrintDialogData_Ok(*args
, **kwargs
)
3548 def GetPrintData(*args
, **kwargs
):
3549 """GetPrintData() -> PrintData"""
3550 return _windows
.PrintDialogData_GetPrintData(*args
, **kwargs
)
3552 def SetPrintData(*args
, **kwargs
):
3553 """SetPrintData(PrintData printData)"""
3554 return _windows
.PrintDialogData_SetPrintData(*args
, **kwargs
)
3556 def __nonzero__(self
): return self
.Ok()
3558 class PrintDialogDataPtr(PrintDialogData
):
3559 def __init__(self
, this
):
3561 if not hasattr(self
,"thisown"): self
.thisown
= 0
3562 self
.__class
__ = PrintDialogData
3563 _windows
.PrintDialogData_swigregister(PrintDialogDataPtr
)
3565 class PrintDialog(Dialog
):
3567 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3568 def __init__(self
, *args
, **kwargs
):
3569 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
3570 newobj
= _windows
.new_PrintDialog(*args
, **kwargs
)
3571 self
.this
= newobj
.this
3574 self
._setOORInfo
(self
)
3576 def GetPrintDialogData(*args
, **kwargs
):
3577 """GetPrintDialogData() -> PrintDialogData"""
3578 return _windows
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
3580 def GetPrintDC(*args
, **kwargs
):
3581 """GetPrintDC() -> DC"""
3582 return _windows
.PrintDialog_GetPrintDC(*args
, **kwargs
)
3584 def ShowModal(*args
, **kwargs
):
3585 """ShowModal() -> int"""
3586 return _windows
.PrintDialog_ShowModal(*args
, **kwargs
)
3589 class PrintDialogPtr(PrintDialog
):
3590 def __init__(self
, this
):
3592 if not hasattr(self
,"thisown"): self
.thisown
= 0
3593 self
.__class
__ = PrintDialog
3594 _windows
.PrintDialog_swigregister(PrintDialogPtr
)
3596 PRINTER_NO_ERROR
= _windows
.PRINTER_NO_ERROR
3597 PRINTER_CANCELLED
= _windows
.PRINTER_CANCELLED
3598 PRINTER_ERROR
= _windows
.PRINTER_ERROR
3599 class Printer(core
.Object
):
3601 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3602 def __init__(self
, *args
, **kwargs
):
3603 """__init__(PrintDialogData data=None) -> Printer"""
3604 newobj
= _windows
.new_Printer(*args
, **kwargs
)
3605 self
.this
= newobj
.this
3608 def __del__(self
, destroy
=_windows
.delete_Printer
):
3611 if self
.thisown
: destroy(self
)
3614 def CreateAbortWindow(*args
, **kwargs
):
3615 """CreateAbortWindow(Window parent, Printout printout)"""
3616 return _windows
.Printer_CreateAbortWindow(*args
, **kwargs
)
3618 def GetPrintDialogData(*args
, **kwargs
):
3619 """GetPrintDialogData() -> PrintDialogData"""
3620 return _windows
.Printer_GetPrintDialogData(*args
, **kwargs
)
3622 def Print(*args
, **kwargs
):
3623 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
3624 return _windows
.Printer_Print(*args
, **kwargs
)
3626 def PrintDialog(*args
, **kwargs
):
3627 """PrintDialog(Window parent) -> DC"""
3628 return _windows
.Printer_PrintDialog(*args
, **kwargs
)
3630 def ReportError(*args
, **kwargs
):
3631 """ReportError(Window parent, Printout printout, String message)"""
3632 return _windows
.Printer_ReportError(*args
, **kwargs
)
3634 def Setup(*args
, **kwargs
):
3635 """Setup(Window parent) -> bool"""
3636 return _windows
.Printer_Setup(*args
, **kwargs
)
3638 def GetAbort(*args
, **kwargs
):
3639 """GetAbort() -> bool"""
3640 return _windows
.Printer_GetAbort(*args
, **kwargs
)
3642 def GetLastError(*args
, **kwargs
):
3643 """GetLastError() -> int"""
3644 return _windows
.Printer_GetLastError(*args
, **kwargs
)
3646 GetLastError
= staticmethod(GetLastError
)
3648 class PrinterPtr(Printer
):
3649 def __init__(self
, this
):
3651 if not hasattr(self
,"thisown"): self
.thisown
= 0
3652 self
.__class
__ = Printer
3653 _windows
.Printer_swigregister(PrinterPtr
)
3655 def Printer_GetLastError(*args
, **kwargs
):
3656 """Printer_GetLastError() -> int"""
3657 return _windows
.Printer_GetLastError(*args
, **kwargs
)
3659 class Printout(core
.Object
):
3661 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3662 def __init__(self
, *args
, **kwargs
):
3663 """__init__(String title=PrintoutTitleStr) -> Printout"""
3664 newobj
= _windows
.new_Printout(*args
, **kwargs
)
3665 self
.this
= newobj
.this
3668 self
._setCallbackInfo
(self
, Printout
)
3670 def _setCallbackInfo(*args
, **kwargs
):
3671 """_setCallbackInfo(PyObject self, PyObject _class)"""
3672 return _windows
.Printout__setCallbackInfo(*args
, **kwargs
)
3674 def GetTitle(*args
, **kwargs
):
3675 """GetTitle() -> String"""
3676 return _windows
.Printout_GetTitle(*args
, **kwargs
)
3678 def GetDC(*args
, **kwargs
):
3680 return _windows
.Printout_GetDC(*args
, **kwargs
)
3682 def SetDC(*args
, **kwargs
):
3684 return _windows
.Printout_SetDC(*args
, **kwargs
)
3686 def SetPageSizePixels(*args
, **kwargs
):
3687 """SetPageSizePixels(int w, int h)"""
3688 return _windows
.Printout_SetPageSizePixels(*args
, **kwargs
)
3690 def GetPageSizePixels(*args
, **kwargs
):
3691 """GetPageSizePixels() -> (w, h)"""
3692 return _windows
.Printout_GetPageSizePixels(*args
, **kwargs
)
3694 def SetPageSizeMM(*args
, **kwargs
):
3695 """SetPageSizeMM(int w, int h)"""
3696 return _windows
.Printout_SetPageSizeMM(*args
, **kwargs
)
3698 def GetPageSizeMM(*args
, **kwargs
):
3699 """GetPageSizeMM() -> (w, h)"""
3700 return _windows
.Printout_GetPageSizeMM(*args
, **kwargs
)
3702 def SetPPIScreen(*args
, **kwargs
):
3703 """SetPPIScreen(int x, int y)"""
3704 return _windows
.Printout_SetPPIScreen(*args
, **kwargs
)
3706 def GetPPIScreen(*args
, **kwargs
):
3707 """GetPPIScreen() -> (x,y)"""
3708 return _windows
.Printout_GetPPIScreen(*args
, **kwargs
)
3710 def SetPPIPrinter(*args
, **kwargs
):
3711 """SetPPIPrinter(int x, int y)"""
3712 return _windows
.Printout_SetPPIPrinter(*args
, **kwargs
)
3714 def GetPPIPrinter(*args
, **kwargs
):
3715 """GetPPIPrinter() -> (x,y)"""
3716 return _windows
.Printout_GetPPIPrinter(*args
, **kwargs
)
3718 def IsPreview(*args
, **kwargs
):
3719 """IsPreview() -> bool"""
3720 return _windows
.Printout_IsPreview(*args
, **kwargs
)
3722 def SetIsPreview(*args
, **kwargs
):
3723 """SetIsPreview(bool p)"""
3724 return _windows
.Printout_SetIsPreview(*args
, **kwargs
)
3726 def base_OnBeginDocument(*args
, **kwargs
):
3727 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
3728 return _windows
.Printout_base_OnBeginDocument(*args
, **kwargs
)
3730 def base_OnEndDocument(*args
, **kwargs
):
3731 """base_OnEndDocument()"""
3732 return _windows
.Printout_base_OnEndDocument(*args
, **kwargs
)
3734 def base_OnBeginPrinting(*args
, **kwargs
):
3735 """base_OnBeginPrinting()"""
3736 return _windows
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
3738 def base_OnEndPrinting(*args
, **kwargs
):
3739 """base_OnEndPrinting()"""
3740 return _windows
.Printout_base_OnEndPrinting(*args
, **kwargs
)
3742 def base_OnPreparePrinting(*args
, **kwargs
):
3743 """base_OnPreparePrinting()"""
3744 return _windows
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
3746 def base_HasPage(*args
, **kwargs
):
3747 """base_HasPage(int page) -> bool"""
3748 return _windows
.Printout_base_HasPage(*args
, **kwargs
)
3750 def base_GetPageInfo(*args
, **kwargs
):
3751 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
3752 return _windows
.Printout_base_GetPageInfo(*args
, **kwargs
)
3755 class PrintoutPtr(Printout
):
3756 def __init__(self
, this
):
3758 if not hasattr(self
,"thisown"): self
.thisown
= 0
3759 self
.__class
__ = Printout
3760 _windows
.Printout_swigregister(PrintoutPtr
)
3762 class PreviewCanvas(ScrolledWindow
):
3764 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3765 def __init__(self
, *args
, **kwargs
):
3767 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
3768 Size size=DefaultSize, long style=0,
3769 String name=PreviewCanvasNameStr) -> PreviewCanvas
3771 newobj
= _windows
.new_PreviewCanvas(*args
, **kwargs
)
3772 self
.this
= newobj
.this
3775 self
._setOORInfo
(self
)
3778 class PreviewCanvasPtr(PreviewCanvas
):
3779 def __init__(self
, this
):
3781 if not hasattr(self
,"thisown"): self
.thisown
= 0
3782 self
.__class
__ = PreviewCanvas
3783 _windows
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
3785 class PreviewFrame(Frame
):
3787 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3788 def __init__(self
, *args
, **kwargs
):
3790 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
3791 Size size=DefaultSize,
3792 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
3794 newobj
= _windows
.new_PreviewFrame(*args
, **kwargs
)
3795 self
.this
= newobj
.this
3798 self
._setOORInfo
(self
)
3800 def Initialize(*args
, **kwargs
):
3802 return _windows
.PreviewFrame_Initialize(*args
, **kwargs
)
3804 def CreateControlBar(*args
, **kwargs
):
3805 """CreateControlBar()"""
3806 return _windows
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
3808 def CreateCanvas(*args
, **kwargs
):
3809 """CreateCanvas()"""
3810 return _windows
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
3812 def GetControlBar(*args
, **kwargs
):
3813 """GetControlBar() -> PreviewControlBar"""
3814 return _windows
.PreviewFrame_GetControlBar(*args
, **kwargs
)
3817 class PreviewFramePtr(PreviewFrame
):
3818 def __init__(self
, this
):
3820 if not hasattr(self
,"thisown"): self
.thisown
= 0
3821 self
.__class
__ = PreviewFrame
3822 _windows
.PreviewFrame_swigregister(PreviewFramePtr
)
3824 PREVIEW_PRINT
= _windows
.PREVIEW_PRINT
3825 PREVIEW_PREVIOUS
= _windows
.PREVIEW_PREVIOUS
3826 PREVIEW_NEXT
= _windows
.PREVIEW_NEXT
3827 PREVIEW_ZOOM
= _windows
.PREVIEW_ZOOM
3828 PREVIEW_FIRST
= _windows
.PREVIEW_FIRST
3829 PREVIEW_LAST
= _windows
.PREVIEW_LAST
3830 PREVIEW_GOTO
= _windows
.PREVIEW_GOTO
3831 PREVIEW_DEFAULT
= _windows
.PREVIEW_DEFAULT
3832 ID_PREVIEW_CLOSE
= _windows
.ID_PREVIEW_CLOSE
3833 ID_PREVIEW_NEXT
= _windows
.ID_PREVIEW_NEXT
3834 ID_PREVIEW_PREVIOUS
= _windows
.ID_PREVIEW_PREVIOUS
3835 ID_PREVIEW_PRINT
= _windows
.ID_PREVIEW_PRINT
3836 ID_PREVIEW_ZOOM
= _windows
.ID_PREVIEW_ZOOM
3837 ID_PREVIEW_FIRST
= _windows
.ID_PREVIEW_FIRST
3838 ID_PREVIEW_LAST
= _windows
.ID_PREVIEW_LAST
3839 ID_PREVIEW_GOTO
= _windows
.ID_PREVIEW_GOTO
3840 class PreviewControlBar(Panel
):
3842 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3843 def __init__(self
, *args
, **kwargs
):
3845 __init__(PrintPreview preview, long buttons, Window parent,
3846 Point pos=DefaultPosition, Size size=DefaultSize,
3847 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
3849 newobj
= _windows
.new_PreviewControlBar(*args
, **kwargs
)
3850 self
.this
= newobj
.this
3853 self
._setOORInfo
(self
)
3855 def GetZoomControl(*args
, **kwargs
):
3856 """GetZoomControl() -> int"""
3857 return _windows
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
3859 def SetZoomControl(*args
, **kwargs
):
3860 """SetZoomControl(int zoom)"""
3861 return _windows
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
3863 def GetPrintPreview(*args
, **kwargs
):
3864 """GetPrintPreview() -> PrintPreview"""
3865 return _windows
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
3867 def OnNext(*args
, **kwargs
):
3869 return _windows
.PreviewControlBar_OnNext(*args
, **kwargs
)
3871 def OnPrevious(*args
, **kwargs
):
3873 return _windows
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
3875 def OnFirst(*args
, **kwargs
):
3877 return _windows
.PreviewControlBar_OnFirst(*args
, **kwargs
)
3879 def OnLast(*args
, **kwargs
):
3881 return _windows
.PreviewControlBar_OnLast(*args
, **kwargs
)
3883 def OnGoto(*args
, **kwargs
):
3885 return _windows
.PreviewControlBar_OnGoto(*args
, **kwargs
)
3888 class PreviewControlBarPtr(PreviewControlBar
):
3889 def __init__(self
, this
):
3891 if not hasattr(self
,"thisown"): self
.thisown
= 0
3892 self
.__class
__ = PreviewControlBar
3893 _windows
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
3895 class PrintPreview(core
.Object
):
3897 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3898 def __init__(self
, *args
):
3900 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
3901 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
3903 newobj
= _windows
.new_PrintPreview(*args
)
3904 self
.this
= newobj
.this
3907 def SetCurrentPage(*args
, **kwargs
):
3908 """SetCurrentPage(int pageNum) -> bool"""
3909 return _windows
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
3911 def GetCurrentPage(*args
, **kwargs
):
3912 """GetCurrentPage() -> int"""
3913 return _windows
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
3915 def SetPrintout(*args
, **kwargs
):
3916 """SetPrintout(Printout printout)"""
3917 return _windows
.PrintPreview_SetPrintout(*args
, **kwargs
)
3919 def GetPrintout(*args
, **kwargs
):
3920 """GetPrintout() -> Printout"""
3921 return _windows
.PrintPreview_GetPrintout(*args
, **kwargs
)
3923 def GetPrintoutForPrinting(*args
, **kwargs
):
3924 """GetPrintoutForPrinting() -> Printout"""
3925 return _windows
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
3927 def SetFrame(*args
, **kwargs
):
3928 """SetFrame(Frame frame)"""
3929 return _windows
.PrintPreview_SetFrame(*args
, **kwargs
)
3931 def SetCanvas(*args
, **kwargs
):
3932 """SetCanvas(PreviewCanvas canvas)"""
3933 return _windows
.PrintPreview_SetCanvas(*args
, **kwargs
)
3935 def GetFrame(*args
, **kwargs
):
3936 """GetFrame() -> Frame"""
3937 return _windows
.PrintPreview_GetFrame(*args
, **kwargs
)
3939 def GetCanvas(*args
, **kwargs
):
3940 """GetCanvas() -> PreviewCanvas"""
3941 return _windows
.PrintPreview_GetCanvas(*args
, **kwargs
)
3943 def PaintPage(*args
, **kwargs
):
3944 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
3945 return _windows
.PrintPreview_PaintPage(*args
, **kwargs
)
3947 def DrawBlankPage(*args
, **kwargs
):
3948 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
3949 return _windows
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
3951 def RenderPage(*args
, **kwargs
):
3952 """RenderPage(int pageNum) -> bool"""
3953 return _windows
.PrintPreview_RenderPage(*args
, **kwargs
)
3955 def AdjustScrollbars(*args
, **kwargs
):
3956 """AdjustScrollbars(PreviewCanvas canvas)"""
3957 return _windows
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
3959 def GetPrintDialogData(*args
, **kwargs
):
3960 """GetPrintDialogData() -> PrintDialogData"""
3961 return _windows
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
3963 def SetZoom(*args
, **kwargs
):
3964 """SetZoom(int percent)"""
3965 return _windows
.PrintPreview_SetZoom(*args
, **kwargs
)
3967 def GetZoom(*args
, **kwargs
):
3968 """GetZoom() -> int"""
3969 return _windows
.PrintPreview_GetZoom(*args
, **kwargs
)
3971 def GetMaxPage(*args
, **kwargs
):
3972 """GetMaxPage() -> int"""
3973 return _windows
.PrintPreview_GetMaxPage(*args
, **kwargs
)
3975 def GetMinPage(*args
, **kwargs
):
3976 """GetMinPage() -> int"""
3977 return _windows
.PrintPreview_GetMinPage(*args
, **kwargs
)
3979 def Ok(*args
, **kwargs
):
3981 return _windows
.PrintPreview_Ok(*args
, **kwargs
)
3983 def SetOk(*args
, **kwargs
):
3984 """SetOk(bool ok)"""
3985 return _windows
.PrintPreview_SetOk(*args
, **kwargs
)
3987 def Print(*args
, **kwargs
):
3988 """Print(bool interactive) -> bool"""
3989 return _windows
.PrintPreview_Print(*args
, **kwargs
)
3991 def DetermineScaling(*args
, **kwargs
):
3992 """DetermineScaling()"""
3993 return _windows
.PrintPreview_DetermineScaling(*args
, **kwargs
)
3995 def __nonzero__(self
): return self
.Ok()
3997 class PrintPreviewPtr(PrintPreview
):
3998 def __init__(self
, this
):
4000 if not hasattr(self
,"thisown"): self
.thisown
= 0
4001 self
.__class
__ = PrintPreview
4002 _windows
.PrintPreview_swigregister(PrintPreviewPtr
)
4004 class PyPrintPreview(PrintPreview
):
4006 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4007 def __init__(self
, *args
):
4009 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4010 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4012 newobj
= _windows
.new_PyPrintPreview(*args
)
4013 self
.this
= newobj
.this
4016 self
._setCallbackInfo
(self
, PyPrintPreview
)
4018 def _setCallbackInfo(*args
, **kwargs
):
4019 """_setCallbackInfo(PyObject self, PyObject _class)"""
4020 return _windows
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4022 def base_SetCurrentPage(*args
, **kwargs
):
4023 """base_SetCurrentPage(int pageNum) -> bool"""
4024 return _windows
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4026 def base_PaintPage(*args
, **kwargs
):
4027 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4028 return _windows
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4030 def base_DrawBlankPage(*args
, **kwargs
):
4031 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4032 return _windows
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4034 def base_RenderPage(*args
, **kwargs
):
4035 """base_RenderPage(int pageNum) -> bool"""
4036 return _windows
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4038 def base_SetZoom(*args
, **kwargs
):
4039 """base_SetZoom(int percent)"""
4040 return _windows
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4042 def base_Print(*args
, **kwargs
):
4043 """base_Print(bool interactive) -> bool"""
4044 return _windows
.PyPrintPreview_base_Print(*args
, **kwargs
)
4046 def base_DetermineScaling(*args
, **kwargs
):
4047 """base_DetermineScaling()"""
4048 return _windows
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4051 class PyPrintPreviewPtr(PyPrintPreview
):
4052 def __init__(self
, this
):
4054 if not hasattr(self
,"thisown"): self
.thisown
= 0
4055 self
.__class
__ = PyPrintPreview
4056 _windows
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4058 class PyPreviewFrame(PreviewFrame
):
4060 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4061 def __init__(self
, *args
, **kwargs
):
4063 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4064 Size size=DefaultSize,
4065 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4067 newobj
= _windows
.new_PyPreviewFrame(*args
, **kwargs
)
4068 self
.this
= newobj
.this
4071 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4073 def _setCallbackInfo(*args
, **kwargs
):
4074 """_setCallbackInfo(PyObject self, PyObject _class)"""
4075 return _windows
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4077 def SetPreviewCanvas(*args
, **kwargs
):
4078 """SetPreviewCanvas(PreviewCanvas canvas)"""
4079 return _windows
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4081 def SetControlBar(*args
, **kwargs
):
4082 """SetControlBar(PreviewControlBar bar)"""
4083 return _windows
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4085 def base_Initialize(*args
, **kwargs
):
4086 """base_Initialize()"""
4087 return _windows
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4089 def base_CreateCanvas(*args
, **kwargs
):
4090 """base_CreateCanvas()"""
4091 return _windows
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4093 def base_CreateControlBar(*args
, **kwargs
):
4094 """base_CreateControlBar()"""
4095 return _windows
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4098 class PyPreviewFramePtr(PyPreviewFrame
):
4099 def __init__(self
, this
):
4101 if not hasattr(self
,"thisown"): self
.thisown
= 0
4102 self
.__class
__ = PyPreviewFrame
4103 _windows
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4105 class PyPreviewControlBar(PreviewControlBar
):
4107 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4108 def __init__(self
, *args
, **kwargs
):
4110 __init__(PrintPreview preview, long buttons, Window parent,
4111 Point pos=DefaultPosition, Size size=DefaultSize,
4112 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4114 newobj
= _windows
.new_PyPreviewControlBar(*args
, **kwargs
)
4115 self
.this
= newobj
.this
4118 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4120 def _setCallbackInfo(*args
, **kwargs
):
4121 """_setCallbackInfo(PyObject self, PyObject _class)"""
4122 return _windows
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4124 def SetPrintPreview(*args
, **kwargs
):
4125 """SetPrintPreview(PrintPreview preview)"""
4126 return _windows
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4128 def base_CreateButtons(*args
, **kwargs
):
4129 """base_CreateButtons()"""
4130 return _windows
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4132 def base_SetZoomControl(*args
, **kwargs
):
4133 """base_SetZoomControl(int zoom)"""
4134 return _windows
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4137 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4138 def __init__(self
, this
):
4140 if not hasattr(self
,"thisown"): self
.thisown
= 0
4141 self
.__class
__ = PyPreviewControlBar
4142 _windows
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)