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=ST_SIZEGRIP, int winid=0,
324 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
):
582 """__init__(Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
583 newobj
= _windows
.new_StatusBar(*args
, **kwargs
)
584 self
.this
= newobj
.this
587 self
._setOORInfo
(self
)
589 def Create(*args
, **kwargs
):
590 """Create(Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
591 return _windows
.StatusBar_Create(*args
, **kwargs
)
593 def SetFieldsCount(*args
, **kwargs
):
594 """SetFieldsCount(int number=1)"""
595 return _windows
.StatusBar_SetFieldsCount(*args
, **kwargs
)
597 def GetFieldsCount(*args
, **kwargs
):
598 """GetFieldsCount() -> int"""
599 return _windows
.StatusBar_GetFieldsCount(*args
, **kwargs
)
601 def SetStatusText(*args
, **kwargs
):
602 """SetStatusText(String text, int number=0)"""
603 return _windows
.StatusBar_SetStatusText(*args
, **kwargs
)
605 def GetStatusText(*args
, **kwargs
):
606 """GetStatusText(int number=0) -> String"""
607 return _windows
.StatusBar_GetStatusText(*args
, **kwargs
)
609 def PushStatusText(*args
, **kwargs
):
610 """PushStatusText(String text, int number=0)"""
611 return _windows
.StatusBar_PushStatusText(*args
, **kwargs
)
613 def PopStatusText(*args
, **kwargs
):
614 """PopStatusText(int number=0)"""
615 return _windows
.StatusBar_PopStatusText(*args
, **kwargs
)
617 def SetStatusWidths(*args
, **kwargs
):
618 """SetStatusWidths(int widths, int widths_field)"""
619 return _windows
.StatusBar_SetStatusWidths(*args
, **kwargs
)
621 def GetFieldRect(*args
, **kwargs
):
622 """GetFieldRect(int i) -> Rect"""
623 return _windows
.StatusBar_GetFieldRect(*args
, **kwargs
)
625 def SetMinHeight(*args
, **kwargs
):
626 """SetMinHeight(int height)"""
627 return _windows
.StatusBar_SetMinHeight(*args
, **kwargs
)
629 def GetBorderX(*args
, **kwargs
):
630 """GetBorderX() -> int"""
631 return _windows
.StatusBar_GetBorderX(*args
, **kwargs
)
633 def GetBorderY(*args
, **kwargs
):
634 """GetBorderY() -> int"""
635 return _windows
.StatusBar_GetBorderY(*args
, **kwargs
)
638 class StatusBarPtr(StatusBar
):
639 def __init__(self
, this
):
641 if not hasattr(self
,"thisown"): self
.thisown
= 0
642 self
.__class
__ = StatusBar
643 _windows
.StatusBar_swigregister(StatusBarPtr
)
645 def PreStatusBar(*args
, **kwargs
):
646 """PreStatusBar() -> StatusBar"""
647 val
= _windows
.new_PreStatusBar(*args
, **kwargs
)
651 #---------------------------------------------------------------------------
653 SP_NOBORDER
= _windows
.SP_NOBORDER
654 SP_NOSASH
= _windows
.SP_NOSASH
655 SP_PERMIT_UNSPLIT
= _windows
.SP_PERMIT_UNSPLIT
656 SP_LIVE_UPDATE
= _windows
.SP_LIVE_UPDATE
657 SP_3DSASH
= _windows
.SP_3DSASH
658 SP_3DBORDER
= _windows
.SP_3DBORDER
659 SP_BORDER
= _windows
.SP_BORDER
660 SP_3D
= _windows
.SP_3D
661 SPLIT_HORIZONTAL
= _windows
.SPLIT_HORIZONTAL
662 SPLIT_VERTICAL
= _windows
.SPLIT_VERTICAL
663 SPLIT_DRAG_NONE
= _windows
.SPLIT_DRAG_NONE
664 SPLIT_DRAG_DRAGGING
= _windows
.SPLIT_DRAG_DRAGGING
665 SPLIT_DRAG_LEFT_DOWN
= _windows
.SPLIT_DRAG_LEFT_DOWN
666 class SplitterWindow(core
.Window
):
668 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
669 def __init__(self
, *args
, **kwargs
):
671 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
672 long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
674 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point']
675 newobj
= _windows
.new_SplitterWindow(*args
, **kwargs
)
676 self
.this
= newobj
.this
679 self
._setOORInfo
(self
)
681 def Create(*args
, **kwargs
):
683 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
684 long style=SP_3D, String name=SplitterNameStr) -> bool
686 return _windows
.SplitterWindow_Create(*args
, **kwargs
)
688 def GetWindow1(*args
, **kwargs
):
689 """GetWindow1() -> Window"""
690 return _windows
.SplitterWindow_GetWindow1(*args
, **kwargs
)
692 def GetWindow2(*args
, **kwargs
):
693 """GetWindow2() -> Window"""
694 return _windows
.SplitterWindow_GetWindow2(*args
, **kwargs
)
696 def SetSplitMode(*args
, **kwargs
):
697 """SetSplitMode(int mode)"""
698 return _windows
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
700 def GetSplitMode(*args
, **kwargs
):
701 """GetSplitMode() -> int"""
702 return _windows
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
704 def Initialize(*args
, **kwargs
):
705 """Initialize(Window window)"""
706 return _windows
.SplitterWindow_Initialize(*args
, **kwargs
)
708 def SplitVertically(*args
, **kwargs
):
709 """SplitVertically(Window window1, Window window2, int sashPosition=0) -> bool"""
710 return _windows
.SplitterWindow_SplitVertically(*args
, **kwargs
)
712 def SplitHorizontally(*args
, **kwargs
):
713 """SplitHorizontally(Window window1, Window window2, int sashPosition=0) -> bool"""
714 return _windows
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
716 def Unsplit(*args
, **kwargs
):
717 """Unsplit(Window toRemove=None) -> bool"""
718 return _windows
.SplitterWindow_Unsplit(*args
, **kwargs
)
720 def ReplaceWindow(*args
, **kwargs
):
721 """ReplaceWindow(Window winOld, Window winNew) -> bool"""
722 return _windows
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
724 def IsSplit(*args
, **kwargs
):
725 """IsSplit() -> bool"""
726 return _windows
.SplitterWindow_IsSplit(*args
, **kwargs
)
728 def SetSashSize(*args
, **kwargs
):
729 """SetSashSize(int width)"""
730 return _windows
.SplitterWindow_SetSashSize(*args
, **kwargs
)
732 def SetBorderSize(*args
, **kwargs
):
733 """SetBorderSize(int width)"""
734 return _windows
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
736 def GetSashSize(*args
, **kwargs
):
737 """GetSashSize() -> int"""
738 return _windows
.SplitterWindow_GetSashSize(*args
, **kwargs
)
740 def GetBorderSize(*args
, **kwargs
):
741 """GetBorderSize() -> int"""
742 return _windows
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
744 def SetSashPosition(*args
, **kwargs
):
745 """SetSashPosition(int position, bool redraw=True)"""
746 return _windows
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
748 def GetSashPosition(*args
, **kwargs
):
749 """GetSashPosition() -> int"""
750 return _windows
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
752 def SetMinimumPaneSize(*args
, **kwargs
):
753 """SetMinimumPaneSize(int min)"""
754 return _windows
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
756 def GetMinimumPaneSize(*args
, **kwargs
):
757 """GetMinimumPaneSize() -> int"""
758 return _windows
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
760 def SashHitTest(*args
, **kwargs
):
761 """SashHitTest(int x, int y, int tolerance=5) -> bool"""
762 return _windows
.SplitterWindow_SashHitTest(*args
, **kwargs
)
764 def SizeWindows(*args
, **kwargs
):
766 return _windows
.SplitterWindow_SizeWindows(*args
, **kwargs
)
768 def SetNeedUpdating(*args
, **kwargs
):
769 """SetNeedUpdating(bool needUpdating)"""
770 return _windows
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
772 def GetNeedUpdating(*args
, **kwargs
):
773 """GetNeedUpdating() -> bool"""
774 return _windows
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
777 class SplitterWindowPtr(SplitterWindow
):
778 def __init__(self
, this
):
780 if not hasattr(self
,"thisown"): self
.thisown
= 0
781 self
.__class
__ = SplitterWindow
782 _windows
.SplitterWindow_swigregister(SplitterWindowPtr
)
783 SplitterNameStr
= cvar
.SplitterNameStr
785 def PreSplitterWindow(*args
, **kwargs
):
786 """PreSplitterWindow() -> SplitterWindow"""
787 val
= _windows
.new_PreSplitterWindow(*args
, **kwargs
)
791 class SplitterEvent(core
.NotifyEvent
):
793 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
794 def __init__(self
, *args
, **kwargs
):
795 """__init__(wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent"""
796 newobj
= _windows
.new_SplitterEvent(*args
, **kwargs
)
797 self
.this
= newobj
.this
800 def SetSashPosition(*args
, **kwargs
):
801 """SetSashPosition(int pos)"""
802 return _windows
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
804 def GetSashPosition(*args
, **kwargs
):
805 """GetSashPosition() -> int"""
806 return _windows
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
808 def GetWindowBeingRemoved(*args
, **kwargs
):
809 """GetWindowBeingRemoved() -> Window"""
810 return _windows
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
812 def GetX(*args
, **kwargs
):
814 return _windows
.SplitterEvent_GetX(*args
, **kwargs
)
816 def GetY(*args
, **kwargs
):
818 return _windows
.SplitterEvent_GetY(*args
, **kwargs
)
821 class SplitterEventPtr(SplitterEvent
):
822 def __init__(self
, this
):
824 if not hasattr(self
,"thisown"): self
.thisown
= 0
825 self
.__class
__ = SplitterEvent
826 _windows
.SplitterEvent_swigregister(SplitterEventPtr
)
828 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
829 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
830 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
831 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows
.wxEVT_COMMAND_SPLITTER_UNSPLIT
832 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
833 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
834 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
835 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
837 #---------------------------------------------------------------------------
839 SASH_DRAG_NONE
= _windows
.SASH_DRAG_NONE
840 SASH_DRAG_DRAGGING
= _windows
.SASH_DRAG_DRAGGING
841 SASH_DRAG_LEFT_DOWN
= _windows
.SASH_DRAG_LEFT_DOWN
842 SW_NOBORDER
= _windows
.SW_NOBORDER
843 SW_BORDER
= _windows
.SW_BORDER
844 SW_3DSASH
= _windows
.SW_3DSASH
845 SW_3DBORDER
= _windows
.SW_3DBORDER
846 SW_3D
= _windows
.SW_3D
847 SASH_TOP
= _windows
.SASH_TOP
848 SASH_RIGHT
= _windows
.SASH_RIGHT
849 SASH_BOTTOM
= _windows
.SASH_BOTTOM
850 SASH_LEFT
= _windows
.SASH_LEFT
851 SASH_NONE
= _windows
.SASH_NONE
852 class SashWindow(core
.Window
):
854 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
855 def __init__(self
, *args
, **kwargs
):
857 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
858 long style=wxCLIP_CHILDREN|wxSW_3D,
859 String name=SashNameStr) -> SashWindow
861 newobj
= _windows
.new_SashWindow(*args
, **kwargs
)
862 self
.this
= newobj
.this
865 self
._setOORInfo
(self
)
867 def Create(*args
, **kwargs
):
869 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
870 long style=wxCLIP_CHILDREN|wxSW_3D,
871 String name=SashNameStr) -> bool
873 return _windows
.SashWindow_Create(*args
, **kwargs
)
875 def SetSashVisible(*args
, **kwargs
):
876 """SetSashVisible(int edge, bool sash)"""
877 return _windows
.SashWindow_SetSashVisible(*args
, **kwargs
)
879 def GetSashVisible(*args
, **kwargs
):
880 """GetSashVisible(int edge) -> bool"""
881 return _windows
.SashWindow_GetSashVisible(*args
, **kwargs
)
883 def SetSashBorder(*args
, **kwargs
):
884 """SetSashBorder(int edge, bool border)"""
885 return _windows
.SashWindow_SetSashBorder(*args
, **kwargs
)
887 def HasBorder(*args
, **kwargs
):
888 """HasBorder(int edge) -> bool"""
889 return _windows
.SashWindow_HasBorder(*args
, **kwargs
)
891 def GetEdgeMargin(*args
, **kwargs
):
892 """GetEdgeMargin(int edge) -> int"""
893 return _windows
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
895 def SetDefaultBorderSize(*args
, **kwargs
):
896 """SetDefaultBorderSize(int width)"""
897 return _windows
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
899 def GetDefaultBorderSize(*args
, **kwargs
):
900 """GetDefaultBorderSize() -> int"""
901 return _windows
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
903 def SetExtraBorderSize(*args
, **kwargs
):
904 """SetExtraBorderSize(int width)"""
905 return _windows
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
907 def GetExtraBorderSize(*args
, **kwargs
):
908 """GetExtraBorderSize() -> int"""
909 return _windows
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
911 def SetMinimumSizeX(*args
, **kwargs
):
912 """SetMinimumSizeX(int min)"""
913 return _windows
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
915 def SetMinimumSizeY(*args
, **kwargs
):
916 """SetMinimumSizeY(int min)"""
917 return _windows
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
919 def GetMinimumSizeX(*args
, **kwargs
):
920 """GetMinimumSizeX() -> int"""
921 return _windows
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
923 def GetMinimumSizeY(*args
, **kwargs
):
924 """GetMinimumSizeY() -> int"""
925 return _windows
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
927 def SetMaximumSizeX(*args
, **kwargs
):
928 """SetMaximumSizeX(int max)"""
929 return _windows
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
931 def SetMaximumSizeY(*args
, **kwargs
):
932 """SetMaximumSizeY(int max)"""
933 return _windows
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
935 def GetMaximumSizeX(*args
, **kwargs
):
936 """GetMaximumSizeX() -> int"""
937 return _windows
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
939 def GetMaximumSizeY(*args
, **kwargs
):
940 """GetMaximumSizeY() -> int"""
941 return _windows
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
943 def SashHitTest(*args
, **kwargs
):
944 """SashHitTest(int x, int y, int tolerance=2) -> int"""
945 return _windows
.SashWindow_SashHitTest(*args
, **kwargs
)
947 def SizeWindows(*args
, **kwargs
):
949 return _windows
.SashWindow_SizeWindows(*args
, **kwargs
)
952 class SashWindowPtr(SashWindow
):
953 def __init__(self
, this
):
955 if not hasattr(self
,"thisown"): self
.thisown
= 0
956 self
.__class
__ = SashWindow
957 _windows
.SashWindow_swigregister(SashWindowPtr
)
958 SashNameStr
= cvar
.SashNameStr
959 SashLayoutNameStr
= cvar
.SashLayoutNameStr
961 def PreSashWindow(*args
, **kwargs
):
962 """PreSashWindow() -> SashWindow"""
963 val
= _windows
.new_PreSashWindow(*args
, **kwargs
)
967 SASH_STATUS_OK
= _windows
.SASH_STATUS_OK
968 SASH_STATUS_OUT_OF_RANGE
= _windows
.SASH_STATUS_OUT_OF_RANGE
969 class SashEvent(core
.CommandEvent
):
971 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
972 def __init__(self
, *args
, **kwargs
):
973 """__init__(int id=0, int edge=SASH_NONE) -> SashEvent"""
974 newobj
= _windows
.new_SashEvent(*args
, **kwargs
)
975 self
.this
= newobj
.this
978 def SetEdge(*args
, **kwargs
):
979 """SetEdge(int edge)"""
980 return _windows
.SashEvent_SetEdge(*args
, **kwargs
)
982 def GetEdge(*args
, **kwargs
):
983 """GetEdge() -> int"""
984 return _windows
.SashEvent_GetEdge(*args
, **kwargs
)
986 def SetDragRect(*args
, **kwargs
):
987 """SetDragRect(Rect rect)"""
988 return _windows
.SashEvent_SetDragRect(*args
, **kwargs
)
990 def GetDragRect(*args
, **kwargs
):
991 """GetDragRect() -> Rect"""
992 return _windows
.SashEvent_GetDragRect(*args
, **kwargs
)
994 def SetDragStatus(*args
, **kwargs
):
995 """SetDragStatus(int status)"""
996 return _windows
.SashEvent_SetDragStatus(*args
, **kwargs
)
998 def GetDragStatus(*args
, **kwargs
):
999 """GetDragStatus() -> int"""
1000 return _windows
.SashEvent_GetDragStatus(*args
, **kwargs
)
1003 class SashEventPtr(SashEvent
):
1004 def __init__(self
, this
):
1006 if not hasattr(self
,"thisown"): self
.thisown
= 0
1007 self
.__class
__ = SashEvent
1008 _windows
.SashEvent_swigregister(SashEventPtr
)
1010 wxEVT_SASH_DRAGGED
= _windows
.wxEVT_SASH_DRAGGED
1011 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1012 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1014 #---------------------------------------------------------------------------
1016 LAYOUT_HORIZONTAL
= _windows
.LAYOUT_HORIZONTAL
1017 LAYOUT_VERTICAL
= _windows
.LAYOUT_VERTICAL
1018 LAYOUT_NONE
= _windows
.LAYOUT_NONE
1019 LAYOUT_TOP
= _windows
.LAYOUT_TOP
1020 LAYOUT_LEFT
= _windows
.LAYOUT_LEFT
1021 LAYOUT_RIGHT
= _windows
.LAYOUT_RIGHT
1022 LAYOUT_BOTTOM
= _windows
.LAYOUT_BOTTOM
1023 LAYOUT_LENGTH_Y
= _windows
.LAYOUT_LENGTH_Y
1024 LAYOUT_LENGTH_X
= _windows
.LAYOUT_LENGTH_X
1025 LAYOUT_MRU_LENGTH
= _windows
.LAYOUT_MRU_LENGTH
1026 LAYOUT_QUERY
= _windows
.LAYOUT_QUERY
1027 wxEVT_QUERY_LAYOUT_INFO
= _windows
.wxEVT_QUERY_LAYOUT_INFO
1028 wxEVT_CALCULATE_LAYOUT
= _windows
.wxEVT_CALCULATE_LAYOUT
1029 class QueryLayoutInfoEvent(core
.Event
):
1031 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1032 def __init__(self
, *args
, **kwargs
):
1033 """__init__(int id=0) -> QueryLayoutInfoEvent"""
1034 newobj
= _windows
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1035 self
.this
= newobj
.this
1038 def SetRequestedLength(*args
, **kwargs
):
1039 """SetRequestedLength(int length)"""
1040 return _windows
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1042 def GetRequestedLength(*args
, **kwargs
):
1043 """GetRequestedLength() -> int"""
1044 return _windows
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1046 def SetFlags(*args
, **kwargs
):
1047 """SetFlags(int flags)"""
1048 return _windows
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1050 def GetFlags(*args
, **kwargs
):
1051 """GetFlags() -> int"""
1052 return _windows
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1054 def SetSize(*args
, **kwargs
):
1055 """SetSize(Size size)"""
1056 return _windows
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1058 def GetSize(*args
, **kwargs
):
1059 """GetSize() -> Size"""
1060 return _windows
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1062 def SetOrientation(*args
, **kwargs
):
1063 """SetOrientation(int orient)"""
1064 return _windows
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1066 def GetOrientation(*args
, **kwargs
):
1067 """GetOrientation() -> int"""
1068 return _windows
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1070 def SetAlignment(*args
, **kwargs
):
1071 """SetAlignment(int align)"""
1072 return _windows
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1074 def GetAlignment(*args
, **kwargs
):
1075 """GetAlignment() -> int"""
1076 return _windows
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1079 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1080 def __init__(self
, this
):
1082 if not hasattr(self
,"thisown"): self
.thisown
= 0
1083 self
.__class
__ = QueryLayoutInfoEvent
1084 _windows
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1086 class CalculateLayoutEvent(core
.Event
):
1088 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1089 def __init__(self
, *args
, **kwargs
):
1090 """__init__(int id=0) -> CalculateLayoutEvent"""
1091 newobj
= _windows
.new_CalculateLayoutEvent(*args
, **kwargs
)
1092 self
.this
= newobj
.this
1095 def SetFlags(*args
, **kwargs
):
1096 """SetFlags(int flags)"""
1097 return _windows
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1099 def GetFlags(*args
, **kwargs
):
1100 """GetFlags() -> int"""
1101 return _windows
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1103 def SetRect(*args
, **kwargs
):
1104 """SetRect(Rect rect)"""
1105 return _windows
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1107 def GetRect(*args
, **kwargs
):
1108 """GetRect() -> Rect"""
1109 return _windows
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1112 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1113 def __init__(self
, this
):
1115 if not hasattr(self
,"thisown"): self
.thisown
= 0
1116 self
.__class
__ = CalculateLayoutEvent
1117 _windows
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1119 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1120 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1122 class SashLayoutWindow(SashWindow
):
1124 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1125 def __init__(self
, *args
, **kwargs
):
1127 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1128 long style=wxCLIP_CHILDREN|wxSW_3D,
1129 String name=SashLayoutNameStr) -> SashLayoutWindow
1131 newobj
= _windows
.new_SashLayoutWindow(*args
, **kwargs
)
1132 self
.this
= newobj
.this
1135 self
._setOORInfo
(self
)
1137 def Create(*args
, **kwargs
):
1139 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1140 long style=wxCLIP_CHILDREN|wxSW_3D,
1141 String name=SashLayoutNameStr) -> bool
1143 return _windows
.SashLayoutWindow_Create(*args
, **kwargs
)
1145 def GetAlignment(*args
, **kwargs
):
1146 """GetAlignment() -> int"""
1147 return _windows
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1149 def GetOrientation(*args
, **kwargs
):
1150 """GetOrientation() -> int"""
1151 return _windows
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1153 def SetAlignment(*args
, **kwargs
):
1154 """SetAlignment(int alignment)"""
1155 return _windows
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1157 def SetDefaultSize(*args
, **kwargs
):
1158 """SetDefaultSize(Size size)"""
1159 return _windows
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1161 def SetOrientation(*args
, **kwargs
):
1162 """SetOrientation(int orientation)"""
1163 return _windows
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1166 class SashLayoutWindowPtr(SashLayoutWindow
):
1167 def __init__(self
, this
):
1169 if not hasattr(self
,"thisown"): self
.thisown
= 0
1170 self
.__class
__ = SashLayoutWindow
1171 _windows
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1173 def PreSashLayoutWindow(*args
, **kwargs
):
1174 """PreSashLayoutWindow() -> SashLayoutWindow"""
1175 val
= _windows
.new_PreSashLayoutWindow(*args
, **kwargs
)
1179 class LayoutAlgorithm(core
.Object
):
1181 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1182 def __init__(self
, *args
, **kwargs
):
1183 """__init__() -> LayoutAlgorithm"""
1184 newobj
= _windows
.new_LayoutAlgorithm(*args
, **kwargs
)
1185 self
.this
= newobj
.this
1188 def __del__(self
, destroy
=_windows
.delete_LayoutAlgorithm
):
1191 if self
.thisown
: destroy(self
)
1194 def LayoutMDIFrame(*args
, **kwargs
):
1195 """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool"""
1196 return _windows
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1198 def LayoutFrame(*args
, **kwargs
):
1199 """LayoutFrame(Frame frame, Window mainWindow=None) -> bool"""
1200 return _windows
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1202 def LayoutWindow(*args
, **kwargs
):
1203 """LayoutWindow(Window parent, Window mainWindow=None) -> bool"""
1204 return _windows
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1207 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1208 def __init__(self
, this
):
1210 if not hasattr(self
,"thisown"): self
.thisown
= 0
1211 self
.__class
__ = LayoutAlgorithm
1212 _windows
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1214 #---------------------------------------------------------------------------
1216 class PopupWindow(core
.Window
):
1218 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1219 def __init__(self
, *args
, **kwargs
):
1220 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1221 newobj
= _windows
.new_PopupWindow(*args
, **kwargs
)
1222 self
.this
= newobj
.this
1225 self
._setOORInfo
(self
)
1227 def Create(*args
, **kwargs
):
1228 """Create(Window parent, int flags=BORDER_NONE) -> bool"""
1229 return _windows
.PopupWindow_Create(*args
, **kwargs
)
1231 def Position(*args
, **kwargs
):
1232 """Position(Point ptOrigin, Size size)"""
1233 return _windows
.PopupWindow_Position(*args
, **kwargs
)
1236 class PopupWindowPtr(PopupWindow
):
1237 def __init__(self
, this
):
1239 if not hasattr(self
,"thisown"): self
.thisown
= 0
1240 self
.__class
__ = PopupWindow
1241 _windows
.PopupWindow_swigregister(PopupWindowPtr
)
1243 def PrePopupWindow(*args
, **kwargs
):
1244 """PrePopupWindow() -> PopupWindow"""
1245 val
= _windows
.new_PrePopupWindow(*args
, **kwargs
)
1249 #---------------------------------------------------------------------------
1251 class PopupTransientWindow(PopupWindow
):
1253 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1254 def __init__(self
, *args
, **kwargs
):
1255 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1256 newobj
= _windows
.new_PopupTransientWindow(*args
, **kwargs
)
1257 self
.this
= newobj
.this
1260 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1262 def _setCallbackInfo(*args
, **kwargs
):
1263 """_setCallbackInfo(PyObject self, PyObject _class)"""
1264 return _windows
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1266 def Popup(*args
, **kwargs
):
1267 """Popup(Window focus=None)"""
1268 return _windows
.PopupTransientWindow_Popup(*args
, **kwargs
)
1270 def Dismiss(*args
, **kwargs
):
1272 return _windows
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1275 class PopupTransientWindowPtr(PopupTransientWindow
):
1276 def __init__(self
, this
):
1278 if not hasattr(self
,"thisown"): self
.thisown
= 0
1279 self
.__class
__ = PopupTransientWindow
1280 _windows
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1282 def PrePopupTransientWindow(*args
, **kwargs
):
1283 """PrePopupTransientWindow() -> PopupTransientWindow"""
1284 val
= _windows
.new_PrePopupTransientWindow(*args
, **kwargs
)
1288 #---------------------------------------------------------------------------
1290 class TipWindow(PopupTransientWindow
):
1292 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1293 def __init__(self
, *args
, **kwargs
):
1294 """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1295 newobj
= _windows
.new_TipWindow(*args
, **kwargs
)
1296 self
.this
= newobj
.this
1299 self
._setOORInfo
(self
)
1301 def SetBoundingRect(*args
, **kwargs
):
1302 """SetBoundingRect(Rect rectBound)"""
1303 return _windows
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1305 def Close(*args
, **kwargs
):
1307 return _windows
.TipWindow_Close(*args
, **kwargs
)
1310 class TipWindowPtr(TipWindow
):
1311 def __init__(self
, this
):
1313 if not hasattr(self
,"thisown"): self
.thisown
= 0
1314 self
.__class
__ = TipWindow
1315 _windows
.TipWindow_swigregister(TipWindowPtr
)
1317 #---------------------------------------------------------------------------
1319 class VScrolledWindow(Panel
):
1321 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1322 def __init__(self
, *args
, **kwargs
):
1324 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1325 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1327 newobj
= _windows
.new_VScrolledWindow(*args
, **kwargs
)
1328 self
.this
= newobj
.this
1331 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1333 def _setCallbackInfo(*args
, **kwargs
):
1334 """_setCallbackInfo(PyObject self, PyObject _class)"""
1335 return _windows
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1337 def Create(*args
, **kwargs
):
1339 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1340 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1342 return _windows
.VScrolledWindow_Create(*args
, **kwargs
)
1344 def SetLineCount(*args
, **kwargs
):
1345 """SetLineCount(size_t count)"""
1346 return _windows
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1348 def ScrollToLine(*args
, **kwargs
):
1349 """ScrollToLine(size_t line) -> bool"""
1350 return _windows
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1352 def ScrollLines(*args
, **kwargs
):
1354 ScrollLines(int lines) -> bool
1356 If the platform and window class supports it, scrolls the window by
1357 the given number of lines down, if lines is positive, or up if lines
1358 is negative. Returns True if the window was scrolled, False if it was
1359 already on top/bottom and nothing was done.
1361 return _windows
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1363 def ScrollPages(*args
, **kwargs
):
1365 ScrollPages(int pages) -> bool
1367 If the platform and window class supports it, scrolls the window by
1368 the given number of pages down, if pages is positive, or up if pages
1369 is negative. Returns True if the window was scrolled, False if it was
1370 already on top/bottom and nothing was done.
1372 return _windows
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1374 def RefreshLine(*args
, **kwargs
):
1375 """RefreshLine(size_t line)"""
1376 return _windows
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1378 def RefreshLines(*args
, **kwargs
):
1379 """RefreshLines(size_t from, size_t to)"""
1380 return _windows
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1382 def HitTestXT(*args
, **kwargs
):
1384 HitTestXT(int x, int y) -> int
1386 Test where the given (in client coords) point lies
1388 return _windows
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1390 def HitTest(*args
, **kwargs
):
1392 HitTest(Point pt) -> int
1394 Test where the given (in client coords) point lies
1396 return _windows
.VScrolledWindow_HitTest(*args
, **kwargs
)
1398 def RefreshAll(*args
, **kwargs
):
1400 return _windows
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1402 def GetLineCount(*args
, **kwargs
):
1403 """GetLineCount() -> size_t"""
1404 return _windows
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1406 def GetFirstVisibleLine(*args
, **kwargs
):
1407 """GetFirstVisibleLine() -> size_t"""
1408 return _windows
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1410 def GetLastVisibleLine(*args
, **kwargs
):
1411 """GetLastVisibleLine() -> size_t"""
1412 return _windows
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1414 def IsVisible(*args
, **kwargs
):
1415 """IsVisible(size_t line) -> bool"""
1416 return _windows
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1419 class VScrolledWindowPtr(VScrolledWindow
):
1420 def __init__(self
, this
):
1422 if not hasattr(self
,"thisown"): self
.thisown
= 0
1423 self
.__class
__ = VScrolledWindow
1424 _windows
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1426 def PreVScrolledWindow(*args
, **kwargs
):
1427 """PreVScrolledWindow() -> VScrolledWindow"""
1428 val
= _windows
.new_PreVScrolledWindow(*args
, **kwargs
)
1432 class VListBox(VScrolledWindow
):
1434 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1435 def __init__(self
, *args
, **kwargs
):
1437 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1438 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1440 newobj
= _windows
.new_VListBox(*args
, **kwargs
)
1441 self
.this
= newobj
.this
1444 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1446 def _setCallbackInfo(*args
, **kwargs
):
1447 """_setCallbackInfo(PyObject self, PyObject _class)"""
1448 return _windows
.VListBox__setCallbackInfo(*args
, **kwargs
)
1450 def Create(*args
, **kwargs
):
1452 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1453 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1455 return _windows
.VListBox_Create(*args
, **kwargs
)
1457 def GetItemCount(*args
, **kwargs
):
1458 """GetItemCount() -> size_t"""
1459 return _windows
.VListBox_GetItemCount(*args
, **kwargs
)
1461 def HasMultipleSelection(*args
, **kwargs
):
1462 """HasMultipleSelection() -> bool"""
1463 return _windows
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1465 def GetSelection(*args
, **kwargs
):
1466 """GetSelection() -> int"""
1467 return _windows
.VListBox_GetSelection(*args
, **kwargs
)
1469 def IsCurrent(*args
, **kwargs
):
1470 """IsCurrent(size_t item) -> bool"""
1471 return _windows
.VListBox_IsCurrent(*args
, **kwargs
)
1473 def IsSelected(*args
, **kwargs
):
1474 """IsSelected(size_t item) -> bool"""
1475 return _windows
.VListBox_IsSelected(*args
, **kwargs
)
1477 def GetSelectedCount(*args
, **kwargs
):
1478 """GetSelectedCount() -> size_t"""
1479 return _windows
.VListBox_GetSelectedCount(*args
, **kwargs
)
1481 def GetFirstSelected(*args
, **kwargs
):
1482 """GetFirstSelected(unsigned long cookie) -> int"""
1483 return _windows
.VListBox_GetFirstSelected(*args
, **kwargs
)
1485 def GetNextSelected(*args
, **kwargs
):
1486 """GetNextSelected(unsigned long cookie) -> int"""
1487 return _windows
.VListBox_GetNextSelected(*args
, **kwargs
)
1489 def GetMargins(*args
, **kwargs
):
1490 """GetMargins() -> Point"""
1491 return _windows
.VListBox_GetMargins(*args
, **kwargs
)
1493 def GetSelectionBackground(*args
, **kwargs
):
1494 """GetSelectionBackground() -> Colour"""
1495 return _windows
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1497 def SetItemCount(*args
, **kwargs
):
1498 """SetItemCount(size_t count)"""
1499 return _windows
.VListBox_SetItemCount(*args
, **kwargs
)
1501 def Clear(*args
, **kwargs
):
1503 return _windows
.VListBox_Clear(*args
, **kwargs
)
1505 def SetSelection(*args
, **kwargs
):
1506 """SetSelection(int selection)"""
1507 return _windows
.VListBox_SetSelection(*args
, **kwargs
)
1509 def Select(*args
, **kwargs
):
1510 """Select(size_t item, bool select=True) -> bool"""
1511 return _windows
.VListBox_Select(*args
, **kwargs
)
1513 def SelectRange(*args
, **kwargs
):
1514 """SelectRange(size_t from, size_t to) -> bool"""
1515 return _windows
.VListBox_SelectRange(*args
, **kwargs
)
1517 def Toggle(*args
, **kwargs
):
1518 """Toggle(size_t item)"""
1519 return _windows
.VListBox_Toggle(*args
, **kwargs
)
1521 def SelectAll(*args
, **kwargs
):
1522 """SelectAll() -> bool"""
1523 return _windows
.VListBox_SelectAll(*args
, **kwargs
)
1525 def DeselectAll(*args
, **kwargs
):
1526 """DeselectAll() -> bool"""
1527 return _windows
.VListBox_DeselectAll(*args
, **kwargs
)
1529 def SetMargins(*args
, **kwargs
):
1530 """SetMargins(Point pt)"""
1531 return _windows
.VListBox_SetMargins(*args
, **kwargs
)
1533 def SetMarginsXY(*args
, **kwargs
):
1534 """SetMarginsXY(int x, int y)"""
1535 return _windows
.VListBox_SetMarginsXY(*args
, **kwargs
)
1537 def SetSelectionBackground(*args
, **kwargs
):
1538 """SetSelectionBackground(Colour col)"""
1539 return _windows
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1542 class VListBoxPtr(VListBox
):
1543 def __init__(self
, this
):
1545 if not hasattr(self
,"thisown"): self
.thisown
= 0
1546 self
.__class
__ = VListBox
1547 _windows
.VListBox_swigregister(VListBoxPtr
)
1548 VListBoxNameStr
= cvar
.VListBoxNameStr
1550 def PreVListBox(*args
, **kwargs
):
1551 """PreVListBox() -> VListBox"""
1552 val
= _windows
.new_PreVListBox(*args
, **kwargs
)
1556 class HtmlListBox(VListBox
):
1558 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1559 def __init__(self
, *args
, **kwargs
):
1561 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1562 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1564 newobj
= _windows
.new_HtmlListBox(*args
, **kwargs
)
1565 self
.this
= newobj
.this
1568 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1570 def _setCallbackInfo(*args
, **kwargs
):
1571 """_setCallbackInfo(PyObject self, PyObject _class)"""
1572 return _windows
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1574 def Create(*args
, **kwargs
):
1576 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1577 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1579 return _windows
.HtmlListBox_Create(*args
, **kwargs
)
1581 def RefreshAll(*args
, **kwargs
):
1583 return _windows
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1585 def SetItemCount(*args
, **kwargs
):
1586 """SetItemCount(size_t count)"""
1587 return _windows
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1590 class HtmlListBoxPtr(HtmlListBox
):
1591 def __init__(self
, this
):
1593 if not hasattr(self
,"thisown"): self
.thisown
= 0
1594 self
.__class
__ = HtmlListBox
1595 _windows
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1597 def PreHtmlListBox(*args
, **kwargs
):
1598 """PreHtmlListBox() -> HtmlListBox"""
1599 val
= _windows
.new_PreHtmlListBox(*args
, **kwargs
)
1603 #---------------------------------------------------------------------------
1605 class TaskBarIcon(core
.EvtHandler
):
1607 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1608 def __init__(self
, *args
, **kwargs
):
1609 """__init__() -> TaskBarIcon"""
1610 newobj
= _windows
.new_TaskBarIcon(*args
, **kwargs
)
1611 self
.this
= newobj
.this
1614 def __del__(self
, destroy
=_windows
.delete_TaskBarIcon
):
1617 if self
.thisown
: destroy(self
)
1620 def IsOk(*args
, **kwargs
):
1621 """IsOk() -> bool"""
1622 return _windows
.TaskBarIcon_IsOk(*args
, **kwargs
)
1624 def IsIconInstalled(*args
, **kwargs
):
1625 """IsIconInstalled() -> bool"""
1626 return _windows
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
1628 def SetIcon(*args
, **kwargs
):
1629 """SetIcon(Icon icon, String tooltip=EmptyString) -> bool"""
1630 return _windows
.TaskBarIcon_SetIcon(*args
, **kwargs
)
1632 def RemoveIcon(*args
, **kwargs
):
1633 """RemoveIcon() -> bool"""
1634 return _windows
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
1636 def PopupMenu(*args
, **kwargs
):
1637 """PopupMenu(Menu menu) -> bool"""
1638 return _windows
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
1641 class TaskBarIconPtr(TaskBarIcon
):
1642 def __init__(self
, this
):
1644 if not hasattr(self
,"thisown"): self
.thisown
= 0
1645 self
.__class
__ = TaskBarIcon
1646 _windows
.TaskBarIcon_swigregister(TaskBarIconPtr
)
1648 class TaskBarIconEvent(core
.Event
):
1650 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1651 def __init__(self
, *args
, **kwargs
):
1652 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
1653 newobj
= _windows
.new_TaskBarIconEvent(*args
, **kwargs
)
1654 self
.this
= newobj
.this
1658 class TaskBarIconEventPtr(TaskBarIconEvent
):
1659 def __init__(self
, this
):
1661 if not hasattr(self
,"thisown"): self
.thisown
= 0
1662 self
.__class
__ = TaskBarIconEvent
1663 _windows
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
1665 wxEVT_TASKBAR_MOVE
= _windows
.wxEVT_TASKBAR_MOVE
1666 wxEVT_TASKBAR_LEFT_DOWN
= _windows
.wxEVT_TASKBAR_LEFT_DOWN
1667 wxEVT_TASKBAR_LEFT_UP
= _windows
.wxEVT_TASKBAR_LEFT_UP
1668 wxEVT_TASKBAR_RIGHT_DOWN
= _windows
.wxEVT_TASKBAR_RIGHT_DOWN
1669 wxEVT_TASKBAR_RIGHT_UP
= _windows
.wxEVT_TASKBAR_RIGHT_UP
1670 wxEVT_TASKBAR_LEFT_DCLICK
= _windows
.wxEVT_TASKBAR_LEFT_DCLICK
1671 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows
.wxEVT_TASKBAR_RIGHT_DCLICK
1672 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
1673 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
1674 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
1675 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
1676 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
1677 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
1678 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
1680 #---------------------------------------------------------------------------
1682 class ColourData(core
.Object
):
1683 """This class holds a variety of information related to colour dialogs."""
1685 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1686 def __init__(self
, *args
, **kwargs
):
1688 __init__() -> ColourData
1690 Constructor, sets default values.
1692 newobj
= _windows
.new_ColourData(*args
, **kwargs
)
1693 self
.this
= newobj
.this
1696 def __del__(self
, destroy
=_windows
.delete_ColourData
):
1699 if self
.thisown
: destroy(self
)
1702 def GetChooseFull(*args
, **kwargs
):
1704 GetChooseFull() -> bool
1706 Under Windows, determines whether the Windows colour dialog will display
1707 the full dialog with custom colour selection controls. Has no meaning
1708 under other platforms. The default value is true.
1710 return _windows
.ColourData_GetChooseFull(*args
, **kwargs
)
1712 def GetColour(*args
, **kwargs
):
1714 GetColour() -> Colour
1716 Gets the colour (pre)selected by the dialog.
1718 return _windows
.ColourData_GetColour(*args
, **kwargs
)
1720 def GetCustomColour(*args
, **kwargs
):
1722 GetCustomColour(int i) -> Colour
1724 Gets the i'th custom colour associated with the colour dialog. i should
1725 be an integer between 0 and 15. The default custom colours are all white.
1727 return _windows
.ColourData_GetCustomColour(*args
, **kwargs
)
1729 def SetChooseFull(*args
, **kwargs
):
1731 SetChooseFull(int flag)
1733 Under Windows, tells the Windows colour dialog to display the full dialog
1734 with custom colour selection controls. Under other platforms, has no effect.
1735 The default value is true.
1737 return _windows
.ColourData_SetChooseFull(*args
, **kwargs
)
1739 def SetColour(*args
, **kwargs
):
1741 SetColour(Colour colour)
1743 Sets the default colour for the colour dialog. The default colour is black.
1745 return _windows
.ColourData_SetColour(*args
, **kwargs
)
1747 def SetCustomColour(*args
, **kwargs
):
1749 SetCustomColour(int i, Colour colour)
1751 Sets the i'th custom colour for the colour dialog. i should be an integer
1752 between 0 and 15. The default custom colours are all white.
1754 return _windows
.ColourData_SetCustomColour(*args
, **kwargs
)
1757 class ColourDataPtr(ColourData
):
1758 def __init__(self
, this
):
1760 if not hasattr(self
,"thisown"): self
.thisown
= 0
1761 self
.__class
__ = ColourData
1762 _windows
.ColourData_swigregister(ColourDataPtr
)
1763 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
1764 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
1765 DirDialogNameStr
= cvar
.DirDialogNameStr
1766 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
1767 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
1768 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
1770 class ColourDialog(Dialog
):
1771 """This class represents the colour chooser dialog."""
1773 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1774 def __init__(self
, *args
, **kwargs
):
1776 __init__(Window parent, ColourData data=None) -> ColourDialog
1778 Constructor. Pass a parent window, and optionally a ColourData, which
1779 will be copied to the colour dialog's internal ColourData instance.
1781 newobj
= _windows
.new_ColourDialog(*args
, **kwargs
)
1782 self
.this
= newobj
.this
1785 self
._setOORInfo
(self
)
1787 def GetColourData(*args
, **kwargs
):
1789 GetColourData() -> ColourData
1791 Returns a reference to the ColourData used by the dialog.
1793 return _windows
.ColourDialog_GetColourData(*args
, **kwargs
)
1796 class ColourDialogPtr(ColourDialog
):
1797 def __init__(self
, this
):
1799 if not hasattr(self
,"thisown"): self
.thisown
= 0
1800 self
.__class
__ = ColourDialog
1801 _windows
.ColourDialog_swigregister(ColourDialogPtr
)
1803 class DirDialog(Dialog
):
1804 """This class represents the directory chooser dialog."""
1806 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1807 def __init__(self
, *args
, **kwargs
):
1809 __init__(Window parent, String message=DirSelectorPromptStr,
1810 String defaultPath=EmptyString, long style=0,
1811 Point pos=DefaultPosition, Size size=DefaultSize,
1812 String name=DirDialogNameStr) -> DirDialog
1814 Constructor. Use ShowModal method to show the dialog.
1816 newobj
= _windows
.new_DirDialog(*args
, **kwargs
)
1817 self
.this
= newobj
.this
1820 self
._setOORInfo
(self
)
1822 def GetPath(*args
, **kwargs
):
1826 Returns the default or user-selected path.
1828 return _windows
.DirDialog_GetPath(*args
, **kwargs
)
1830 def GetMessage(*args
, **kwargs
):
1832 GetMessage() -> String
1834 Returns the message that will be displayed on the dialog.
1836 return _windows
.DirDialog_GetMessage(*args
, **kwargs
)
1838 def GetStyle(*args
, **kwargs
):
1842 Returns the dialog style.
1844 return _windows
.DirDialog_GetStyle(*args
, **kwargs
)
1846 def SetMessage(*args
, **kwargs
):
1848 SetMessage(String message)
1850 Sets the message that will be displayed on the dialog.
1852 return _windows
.DirDialog_SetMessage(*args
, **kwargs
)
1854 def SetPath(*args
, **kwargs
):
1856 SetPath(String path)
1858 Sets the default path.
1860 return _windows
.DirDialog_SetPath(*args
, **kwargs
)
1863 class DirDialogPtr(DirDialog
):
1864 def __init__(self
, this
):
1866 if not hasattr(self
,"thisown"): self
.thisown
= 0
1867 self
.__class
__ = DirDialog
1868 _windows
.DirDialog_swigregister(DirDialogPtr
)
1870 class FileDialog(Dialog
):
1871 """This class represents the file chooser dialog."""
1873 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1874 def __init__(self
, *args
, **kwargs
):
1876 __init__(Window parent, String message=FileSelectorPromptStr,
1877 String defaultDir=EmptyString, String defaultFile=EmptyString,
1878 String wildcard=FileSelectorDefaultWildcardStr,
1879 long style=0, Point pos=DefaultPosition) -> FileDialog
1881 Constructor. Use ShowModal method to show the dialog.
1883 newobj
= _windows
.new_FileDialog(*args
, **kwargs
)
1884 self
.this
= newobj
.this
1887 self
._setOORInfo
(self
)
1889 def SetMessage(*args
, **kwargs
):
1891 SetMessage(String message)
1893 Sets the message that will be displayed on the dialog.
1895 return _windows
.FileDialog_SetMessage(*args
, **kwargs
)
1897 def SetPath(*args
, **kwargs
):
1899 SetPath(String path)
1901 Sets the path (the combined directory and filename that will
1902 be returned when the dialog is dismissed).
1904 return _windows
.FileDialog_SetPath(*args
, **kwargs
)
1906 def SetDirectory(*args
, **kwargs
):
1908 SetDirectory(String dir)
1910 Sets the default directory.
1912 return _windows
.FileDialog_SetDirectory(*args
, **kwargs
)
1914 def SetFilename(*args
, **kwargs
):
1916 SetFilename(String name)
1918 Sets the default filename.
1920 return _windows
.FileDialog_SetFilename(*args
, **kwargs
)
1922 def SetWildcard(*args
, **kwargs
):
1924 SetWildcard(String wildCard)
1926 Sets the wildcard, which can contain multiple file types, for example:
1927 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
1929 return _windows
.FileDialog_SetWildcard(*args
, **kwargs
)
1931 def SetStyle(*args
, **kwargs
):
1933 SetStyle(long style)
1935 Sets the dialog style.
1937 return _windows
.FileDialog_SetStyle(*args
, **kwargs
)
1939 def SetFilterIndex(*args
, **kwargs
):
1941 SetFilterIndex(int filterIndex)
1943 Sets the default filter index, starting from zero.
1945 return _windows
.FileDialog_SetFilterIndex(*args
, **kwargs
)
1947 def GetMessage(*args
, **kwargs
):
1949 GetMessage() -> String
1951 Returns the message that will be displayed on the dialog.
1953 return _windows
.FileDialog_GetMessage(*args
, **kwargs
)
1955 def GetPath(*args
, **kwargs
):
1959 Returns the full path (directory and filename) of the selected file.
1961 return _windows
.FileDialog_GetPath(*args
, **kwargs
)
1963 def GetDirectory(*args
, **kwargs
):
1965 GetDirectory() -> String
1967 Returns the default directory.
1969 return _windows
.FileDialog_GetDirectory(*args
, **kwargs
)
1971 def GetFilename(*args
, **kwargs
):
1973 GetFilename() -> String
1975 Returns the default filename.
1977 return _windows
.FileDialog_GetFilename(*args
, **kwargs
)
1979 def GetWildcard(*args
, **kwargs
):
1981 GetWildcard() -> String
1983 Returns the file dialog wildcard.
1985 return _windows
.FileDialog_GetWildcard(*args
, **kwargs
)
1987 def GetStyle(*args
, **kwargs
):
1991 Returns the dialog style.
1993 return _windows
.FileDialog_GetStyle(*args
, **kwargs
)
1995 def GetFilterIndex(*args
, **kwargs
):
1997 GetFilterIndex() -> int
1999 Returns the index into the list of filters supplied, optionally, in
2000 the wildcard parameter. Before the dialog is shown, this is the index
2001 which will be used when the dialog is first displayed. After the dialog
2002 is shown, this is the index selected by the user.
2004 return _windows
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2006 def GetFilenames(*args
, **kwargs
):
2008 GetFilenames() -> PyObject
2010 Returns a list of filenames chosen in the dialog. This function should
2011 only be used with the dialogs which have wx.MULTIPLE style, use
2012 GetFilename for the others.
2014 return _windows
.FileDialog_GetFilenames(*args
, **kwargs
)
2016 def GetPaths(*args
, **kwargs
):
2018 GetPaths() -> PyObject
2020 Fills the array paths with the full paths of the files chosen. This
2021 function should only be used with the dialogs which have wx.MULTIPLE style,
2022 use GetPath for the others.
2024 return _windows
.FileDialog_GetPaths(*args
, **kwargs
)
2027 class FileDialogPtr(FileDialog
):
2028 def __init__(self
, this
):
2030 if not hasattr(self
,"thisown"): self
.thisown
= 0
2031 self
.__class
__ = FileDialog
2032 _windows
.FileDialog_swigregister(FileDialogPtr
)
2034 CHOICEDLG_STYLE
= _windows
.CHOICEDLG_STYLE
2035 class MultiChoiceDialog(Dialog
):
2036 """A simple dialog with a multi selection listbox."""
2038 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2039 def __init__(self
, *args
, **kwargs
):
2041 __init__(Window parent, String message, String caption,
2042 List choices=[], long style=CHOICEDLG_STYLE,
2043 Point pos=DefaultPosition) -> MultiChoiceDialog
2045 Constructor. Use ShowModal method to show the dialog.
2047 newobj
= _windows
.new_MultiChoiceDialog(*args
, **kwargs
)
2048 self
.this
= newobj
.this
2051 self
._setOORInfo
(self
)
2053 def SetSelections(*args
, **kwargs
):
2055 SetSelections(List selections)
2057 Specify the items in the list that shoudl be selected, using a list of integers.
2059 return _windows
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2061 def GetSelections(*args
, **kwargs
):
2063 GetSelections() -> [selections]
2065 Returns a list of integers representing the items that are selected.
2067 return _windows
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2070 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2071 def __init__(self
, this
):
2073 if not hasattr(self
,"thisown"): self
.thisown
= 0
2074 self
.__class
__ = MultiChoiceDialog
2075 _windows
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2077 class SingleChoiceDialog(Dialog
):
2078 """A simple dialog with a single selection listbox."""
2080 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2081 def __init__(self
, *args
, **kwargs
):
2083 __init__(Window parent, String message, String caption,
2084 List choices=[], long style=CHOICEDLG_STYLE,
2085 Point pos=DefaultPosition) -> SingleChoiceDialog
2087 Constructor. Use ShowModal method to show the dialog.
2089 newobj
= _windows
.new_SingleChoiceDialog(*args
, **kwargs
)
2090 self
.this
= newobj
.this
2093 self
._setOORInfo
(self
)
2095 def GetSelection(*args
, **kwargs
):
2097 GetSelection() -> int
2099 Get the index of teh currently selected item.
2101 return _windows
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2103 def GetStringSelection(*args
, **kwargs
):
2105 GetStringSelection() -> String
2107 Returns the string value of the currently selected item
2109 return _windows
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2111 def SetSelection(*args
, **kwargs
):
2113 SetSelection(int sel)
2115 Set the current selected item to sel
2117 return _windows
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2120 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2121 def __init__(self
, this
):
2123 if not hasattr(self
,"thisown"): self
.thisown
= 0
2124 self
.__class
__ = SingleChoiceDialog
2125 _windows
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2127 class TextEntryDialog(Dialog
):
2128 """A dialog with text control, [ok] and [cancel] buttons"""
2130 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2131 def __init__(self
, *args
, **kwargs
):
2133 __init__(Window parent, String message, String caption=GetTextFromUserPromptStr,
2134 String defaultValue=EmptyString,
2135 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2137 Constructor. Use ShowModal method to show the dialog.
2139 newobj
= _windows
.new_TextEntryDialog(*args
, **kwargs
)
2140 self
.this
= newobj
.this
2143 self
._setOORInfo
(self
)
2145 def GetValue(*args
, **kwargs
):
2147 GetValue() -> String
2149 Returns the text that the user has entered if the user has pressed OK,
2150 or the original value if the user has pressed Cancel.
2152 return _windows
.TextEntryDialog_GetValue(*args
, **kwargs
)
2154 def SetValue(*args
, **kwargs
):
2156 SetValue(String value)
2158 Sets the default text value.
2160 return _windows
.TextEntryDialog_SetValue(*args
, **kwargs
)
2163 class TextEntryDialogPtr(TextEntryDialog
):
2164 def __init__(self
, this
):
2166 if not hasattr(self
,"thisown"): self
.thisown
= 0
2167 self
.__class
__ = TextEntryDialog
2168 _windows
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2170 class FontData(core
.Object
):
2171 """This class holds a variety of information related to font dialogs."""
2173 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2174 def __init__(self
, *args
, **kwargs
):
2176 __init__() -> FontData
2178 This class holds a variety of information related to font dialogs.
2180 newobj
= _windows
.new_FontData(*args
, **kwargs
)
2181 self
.this
= newobj
.this
2184 def __del__(self
, destroy
=_windows
.delete_FontData
):
2187 if self
.thisown
: destroy(self
)
2190 def EnableEffects(*args
, **kwargs
):
2192 EnableEffects(bool enable)
2194 Enables or disables 'effects' under MS Windows only. This refers
2195 to the controls for manipulating colour, strikeout and underline
2196 properties. The default value is true.
2198 return _windows
.FontData_EnableEffects(*args
, **kwargs
)
2200 def GetAllowSymbols(*args
, **kwargs
):
2202 GetAllowSymbols() -> bool
2204 Under MS Windows, returns a flag determining whether symbol fonts can be
2205 selected. Has no effect on other platforms. The default value is true.
2207 return _windows
.FontData_GetAllowSymbols(*args
, **kwargs
)
2209 def GetColour(*args
, **kwargs
):
2211 GetColour() -> Colour
2213 Gets the colour associated with the font dialog. The default value is black.
2215 return _windows
.FontData_GetColour(*args
, **kwargs
)
2217 def GetChosenFont(*args
, **kwargs
):
2219 GetChosenFont() -> Font
2221 Gets the font chosen by the user.
2223 return _windows
.FontData_GetChosenFont(*args
, **kwargs
)
2225 def GetEnableEffects(*args
, **kwargs
):
2227 GetEnableEffects() -> bool
2229 Determines whether 'effects' are enabled under Windows.
2231 return _windows
.FontData_GetEnableEffects(*args
, **kwargs
)
2233 def GetInitialFont(*args
, **kwargs
):
2235 GetInitialFont() -> Font
2237 Gets the font that will be initially used by the font dialog. This should have
2238 previously been set by the application.
2240 return _windows
.FontData_GetInitialFont(*args
, **kwargs
)
2242 def GetShowHelp(*args
, **kwargs
):
2244 GetShowHelp() -> bool
2246 Returns true if the Help button will be shown (Windows only). The default
2249 return _windows
.FontData_GetShowHelp(*args
, **kwargs
)
2251 def SetAllowSymbols(*args
, **kwargs
):
2253 SetAllowSymbols(bool allowSymbols)
2255 Under MS Windows, determines whether symbol fonts can be selected. Has no
2256 effect on other platforms. The default value is true.
2258 return _windows
.FontData_SetAllowSymbols(*args
, **kwargs
)
2260 def SetChosenFont(*args
, **kwargs
):
2262 SetChosenFont(Font font)
2264 Sets the font that will be returned to the user (for internal use only).
2266 return _windows
.FontData_SetChosenFont(*args
, **kwargs
)
2268 def SetColour(*args
, **kwargs
):
2270 SetColour(Colour colour)
2272 Sets the colour that will be used for the font foreground colour. The default
2275 return _windows
.FontData_SetColour(*args
, **kwargs
)
2277 def SetInitialFont(*args
, **kwargs
):
2279 SetInitialFont(Font font)
2281 Sets the font that will be initially used by the font dialog.
2283 return _windows
.FontData_SetInitialFont(*args
, **kwargs
)
2285 def SetRange(*args
, **kwargs
):
2287 SetRange(int min, int max)
2289 Sets the valid range for the font point size (Windows only). The default is
2290 0, 0 (unrestricted range).
2292 return _windows
.FontData_SetRange(*args
, **kwargs
)
2294 def SetShowHelp(*args
, **kwargs
):
2296 SetShowHelp(bool showHelp)
2298 Determines whether the Help button will be displayed in the font dialog
2299 (Windows only). The default value is false.
2301 return _windows
.FontData_SetShowHelp(*args
, **kwargs
)
2304 class FontDataPtr(FontData
):
2305 def __init__(self
, this
):
2307 if not hasattr(self
,"thisown"): self
.thisown
= 0
2308 self
.__class
__ = FontData
2309 _windows
.FontData_swigregister(FontDataPtr
)
2311 class FontDialog(Dialog
):
2312 """This class represents the font chooser dialog."""
2314 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2315 def __init__(self
, *args
, **kwargs
):
2317 __init__(Window parent, FontData data) -> FontDialog
2319 Constructor. Pass a parent window and the FontData object to be
2320 used to initialize the dialog controls.
2322 newobj
= _windows
.new_FontDialog(*args
, **kwargs
)
2323 self
.this
= newobj
.this
2326 self
._setOORInfo
(self
)
2328 def GetFontData(*args
, **kwargs
):
2330 GetFontData() -> FontData
2332 Returns a reference to the internal FontData used by the FontDialog.
2334 return _windows
.FontDialog_GetFontData(*args
, **kwargs
)
2337 class FontDialogPtr(FontDialog
):
2338 def __init__(self
, this
):
2340 if not hasattr(self
,"thisown"): self
.thisown
= 0
2341 self
.__class
__ = FontDialog
2342 _windows
.FontDialog_swigregister(FontDialogPtr
)
2344 class MessageDialog(Dialog
):
2346 This class provides a dialog that shows a single or multi-line message, with
2347 a choice of OK, Yes, No and Cancel buttons.
2350 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2351 def __init__(self
, *args
, **kwargs
):
2353 __init__(Window parent, String message, String caption=MessageBoxCaptionStr,
2354 long style=wxOK|wxCANCEL|wxCENTRE,
2355 Point pos=DefaultPosition) -> MessageDialog
2357 This class provides a dialog that shows a single or multi-line message, with
2358 a choice of OK, Yes, No and Cancel buttons.
2360 newobj
= _windows
.new_MessageDialog(*args
, **kwargs
)
2361 self
.this
= newobj
.this
2364 self
._setOORInfo
(self
)
2367 class MessageDialogPtr(MessageDialog
):
2368 def __init__(self
, this
):
2370 if not hasattr(self
,"thisown"): self
.thisown
= 0
2371 self
.__class
__ = MessageDialog
2372 _windows
.MessageDialog_swigregister(MessageDialogPtr
)
2374 class ProgressDialog(Frame
):
2376 A dialog that shows a short message and a progress bar. Optionally, it can
2377 display an ABORT button.
2380 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2381 def __init__(self
, *args
, **kwargs
):
2383 __init__(String title, String message, int maximum=100, Window parent=None,
2384 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2386 Constructor. Creates the dialog, displays it and disables user input for other
2387 windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only.
2389 newobj
= _windows
.new_ProgressDialog(*args
, **kwargs
)
2390 self
.this
= newobj
.this
2393 self
._setOORInfo
(self
)
2395 def Update(*args
, **kwargs
):
2397 Update(int value, String newmsg=EmptyString) -> bool
2399 Updates the dialog, setting the progress bar to the new value and, if given
2400 changes the message above it. Returns true unless the Cancel button has been
2403 If false is returned, the application can either immediately destroy the
2404 dialog or ask the user for the confirmation and if the abort is not confirmed
2405 the dialog may be resumed with Resume function.
2407 return _windows
.ProgressDialog_Update(*args
, **kwargs
)
2409 def Resume(*args
, **kwargs
):
2413 Can be used to continue with the dialog, after the user had chosen to abort.
2415 return _windows
.ProgressDialog_Resume(*args
, **kwargs
)
2418 class ProgressDialogPtr(ProgressDialog
):
2419 def __init__(self
, this
):
2421 if not hasattr(self
,"thisown"): self
.thisown
= 0
2422 self
.__class
__ = ProgressDialog
2423 _windows
.ProgressDialog_swigregister(ProgressDialogPtr
)
2425 FR_DOWN
= _windows
.FR_DOWN
2426 FR_WHOLEWORD
= _windows
.FR_WHOLEWORD
2427 FR_MATCHCASE
= _windows
.FR_MATCHCASE
2428 FR_REPLACEDIALOG
= _windows
.FR_REPLACEDIALOG
2429 FR_NOUPDOWN
= _windows
.FR_NOUPDOWN
2430 FR_NOMATCHCASE
= _windows
.FR_NOMATCHCASE
2431 FR_NOWHOLEWORD
= _windows
.FR_NOWHOLEWORD
2432 wxEVT_COMMAND_FIND
= _windows
.wxEVT_COMMAND_FIND
2433 wxEVT_COMMAND_FIND_NEXT
= _windows
.wxEVT_COMMAND_FIND_NEXT
2434 wxEVT_COMMAND_FIND_REPLACE
= _windows
.wxEVT_COMMAND_FIND_REPLACE
2435 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows
.wxEVT_COMMAND_FIND_REPLACE_ALL
2436 wxEVT_COMMAND_FIND_CLOSE
= _windows
.wxEVT_COMMAND_FIND_CLOSE
2437 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2438 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2439 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2440 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2441 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2443 # For backwards compatibility. Should they be removed?
2444 EVT_COMMAND_FIND
= EVT_FIND
2445 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2446 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2447 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2448 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2450 class FindDialogEvent(core
.CommandEvent
):
2451 """Events for the FindReplaceDialog"""
2453 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2454 def __init__(self
, *args
, **kwargs
):
2456 __init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2458 Events for the FindReplaceDialog
2460 newobj
= _windows
.new_FindDialogEvent(*args
, **kwargs
)
2461 self
.this
= newobj
.this
2464 def GetFlags(*args
, **kwargs
):
2468 Get the currently selected flags: this is the combination of
2469 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2471 return _windows
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2473 def GetFindString(*args
, **kwargs
):
2475 GetFindString() -> String
2477 Return the string to find (never empty).
2479 return _windows
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2481 def GetReplaceString(*args
, **kwargs
):
2483 GetReplaceString() -> String
2485 Return the string to replace the search string with (only
2486 for replace and replace all events).
2488 return _windows
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2490 def GetDialog(*args
, **kwargs
):
2492 GetDialog() -> FindReplaceDialog
2494 Return the pointer to the dialog which generated this event.
2496 return _windows
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2498 def SetFlags(*args
, **kwargs
):
2499 """SetFlags(int flags)"""
2500 return _windows
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2502 def SetFindString(*args
, **kwargs
):
2503 """SetFindString(String str)"""
2504 return _windows
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2506 def SetReplaceString(*args
, **kwargs
):
2507 """SetReplaceString(String str)"""
2508 return _windows
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2511 class FindDialogEventPtr(FindDialogEvent
):
2512 def __init__(self
, this
):
2514 if not hasattr(self
,"thisown"): self
.thisown
= 0
2515 self
.__class
__ = FindDialogEvent
2516 _windows
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2518 class FindReplaceData(core
.Object
):
2520 FindReplaceData holds the data for FindReplaceDialog. It is used to initialize
2521 the dialog with the default values and will keep the last values from the
2522 dialog when it is closed. It is also updated each time a wxFindDialogEvent is
2523 generated so instead of using the wxFindDialogEvent methods you can also
2524 directly query this object.
2526 Note that all SetXXX() methods may only be called before showing the dialog
2527 and calling them has no effect later.
2530 wxFR_DOWN: downward search/replace selected (otherwise, upwards)
2532 wxFR_WHOLEWORD: whole word search/replace selected
2534 wxFR_MATCHCASE: case sensitive search/replace selected (otherwise,
2539 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2540 def __init__(self
, *args
, **kwargs
):
2542 __init__(int flags=0) -> FindReplaceData
2544 Constuctor initializes the flags to default value (0).
2546 newobj
= _windows
.new_FindReplaceData(*args
, **kwargs
)
2547 self
.this
= newobj
.this
2550 def __del__(self
, destroy
=_windows
.delete_FindReplaceData
):
2553 if self
.thisown
: destroy(self
)
2556 def GetFindString(*args
, **kwargs
):
2558 GetFindString() -> String
2560 Get the string to find.
2562 return _windows
.FindReplaceData_GetFindString(*args
, **kwargs
)
2564 def GetReplaceString(*args
, **kwargs
):
2566 GetReplaceString() -> String
2568 Get the replacement string.
2570 return _windows
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2572 def GetFlags(*args
, **kwargs
):
2576 Get the combination of flag values.
2578 return _windows
.FindReplaceData_GetFlags(*args
, **kwargs
)
2580 def SetFlags(*args
, **kwargs
):
2584 Set the flags to use to initialize the controls of the dialog.
2586 return _windows
.FindReplaceData_SetFlags(*args
, **kwargs
)
2588 def SetFindString(*args
, **kwargs
):
2590 SetFindString(String str)
2592 Set the string to find (used as initial value by the dialog).
2594 return _windows
.FindReplaceData_SetFindString(*args
, **kwargs
)
2596 def SetReplaceString(*args
, **kwargs
):
2598 SetReplaceString(String str)
2600 Set the replacement string (used as initial value by the dialog).
2602 return _windows
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2605 class FindReplaceDataPtr(FindReplaceData
):
2606 def __init__(self
, this
):
2608 if not hasattr(self
,"thisown"): self
.thisown
= 0
2609 self
.__class
__ = FindReplaceData
2610 _windows
.FindReplaceData_swigregister(FindReplaceDataPtr
)
2612 class FindReplaceDialog(Dialog
):
2614 FindReplaceDialog is a standard modeless dialog which is used to allow the
2615 user to search for some text (and possibly replace it with something
2616 else). The actual searching is supposed to be done in the owner window which
2617 is the parent of this dialog. Note that it means that unlike for the other
2618 standard dialogs this one must have a parent window. Also note that there is
2619 no way to use this dialog in a modal way; it is always, by design and
2620 implementation, modeless.
2623 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2624 def __init__(self
, *args
, **kwargs
):
2626 __init__(Window parent, FindReplaceData data, String title,
2627 int style=0) -> FindReplaceDialog
2629 Create a FindReplaceDialog. The parent and data parameters must be
2630 non-None. Use Show to display the dialog.
2632 newobj
= _windows
.new_FindReplaceDialog(*args
, **kwargs
)
2633 self
.this
= newobj
.this
2636 self
._setOORInfo
(self
)
2638 def Create(*args
, **kwargs
):
2640 Create(Window parent, FindReplaceData data, String title,
2641 int style=0) -> bool
2643 Create the dialog, for 2-phase create.
2645 return _windows
.FindReplaceDialog_Create(*args
, **kwargs
)
2647 def GetData(*args
, **kwargs
):
2649 GetData() -> FindReplaceData
2651 Get the FindReplaceData object used by this dialog.
2653 return _windows
.FindReplaceDialog_GetData(*args
, **kwargs
)
2655 def SetData(*args
, **kwargs
):
2657 SetData(FindReplaceData data)
2659 Set the FindReplaceData object used by this dialog.
2661 return _windows
.FindReplaceDialog_SetData(*args
, **kwargs
)
2664 class FindReplaceDialogPtr(FindReplaceDialog
):
2665 def __init__(self
, this
):
2667 if not hasattr(self
,"thisown"): self
.thisown
= 0
2668 self
.__class
__ = FindReplaceDialog
2669 _windows
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
2671 def PreFindReplaceDialog(*args
, **kwargs
):
2673 PreFindReplaceDialog() -> FindReplaceDialog
2675 Precreate a FindReplaceDialog for 2-phase creation
2677 val
= _windows
.new_PreFindReplaceDialog(*args
, **kwargs
)
2681 #---------------------------------------------------------------------------
2683 IDM_WINDOWTILE
= _windows
.IDM_WINDOWTILE
2684 IDM_WINDOWTILEHOR
= _windows
.IDM_WINDOWTILEHOR
2685 IDM_WINDOWCASCADE
= _windows
.IDM_WINDOWCASCADE
2686 IDM_WINDOWICONS
= _windows
.IDM_WINDOWICONS
2687 IDM_WINDOWNEXT
= _windows
.IDM_WINDOWNEXT
2688 IDM_WINDOWTILEVERT
= _windows
.IDM_WINDOWTILEVERT
2689 FIRST_MDI_CHILD
= _windows
.FIRST_MDI_CHILD
2690 LAST_MDI_CHILD
= _windows
.LAST_MDI_CHILD
2691 class MDIParentFrame(Frame
):
2693 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2694 def __init__(self
, *args
, **kwargs
):
2696 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
2697 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2698 String name=FrameNameStr) -> MDIParentFrame
2700 newobj
= _windows
.new_MDIParentFrame(*args
, **kwargs
)
2701 self
.this
= newobj
.this
2704 self
._setOORInfo
(self
)
2706 def Create(*args
, **kwargs
):
2708 Create(Window parent, int id, String title, Point pos=DefaultPosition,
2709 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2710 String name=FrameNameStr) -> bool
2712 return _windows
.MDIParentFrame_Create(*args
, **kwargs
)
2714 def ActivateNext(*args
, **kwargs
):
2715 """ActivateNext()"""
2716 return _windows
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
2718 def ActivatePrevious(*args
, **kwargs
):
2719 """ActivatePrevious()"""
2720 return _windows
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
2722 def ArrangeIcons(*args
, **kwargs
):
2723 """ArrangeIcons()"""
2724 return _windows
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
2726 def Cascade(*args
, **kwargs
):
2728 return _windows
.MDIParentFrame_Cascade(*args
, **kwargs
)
2730 def GetActiveChild(*args
, **kwargs
):
2731 """GetActiveChild() -> MDIChildFrame"""
2732 return _windows
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
2734 def GetClientWindow(*args
, **kwargs
):
2735 """GetClientWindow() -> MDIClientWindow"""
2736 return _windows
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
2738 def GetToolBar(*args
, **kwargs
):
2739 """GetToolBar() -> Window"""
2740 return _windows
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
2742 def Tile(*args
, **kwargs
):
2744 return _windows
.MDIParentFrame_Tile(*args
, **kwargs
)
2747 class MDIParentFramePtr(MDIParentFrame
):
2748 def __init__(self
, this
):
2750 if not hasattr(self
,"thisown"): self
.thisown
= 0
2751 self
.__class
__ = MDIParentFrame
2752 _windows
.MDIParentFrame_swigregister(MDIParentFramePtr
)
2754 def PreMDIParentFrame(*args
, **kwargs
):
2755 """PreMDIParentFrame() -> MDIParentFrame"""
2756 val
= _windows
.new_PreMDIParentFrame(*args
, **kwargs
)
2760 class MDIChildFrame(Frame
):
2762 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2763 def __init__(self
, *args
, **kwargs
):
2765 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2766 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2767 String name=FrameNameStr) -> MDIChildFrame
2769 newobj
= _windows
.new_MDIChildFrame(*args
, **kwargs
)
2770 self
.this
= newobj
.this
2773 self
._setOORInfo
(self
)
2775 def Create(*args
, **kwargs
):
2777 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2778 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2779 String name=FrameNameStr) -> bool
2781 return _windows
.MDIChildFrame_Create(*args
, **kwargs
)
2783 def Activate(*args
, **kwargs
):
2785 return _windows
.MDIChildFrame_Activate(*args
, **kwargs
)
2787 def Maximize(*args
, **kwargs
):
2788 """Maximize(bool maximize)"""
2789 return _windows
.MDIChildFrame_Maximize(*args
, **kwargs
)
2791 def Restore(*args
, **kwargs
):
2793 return _windows
.MDIChildFrame_Restore(*args
, **kwargs
)
2796 class MDIChildFramePtr(MDIChildFrame
):
2797 def __init__(self
, this
):
2799 if not hasattr(self
,"thisown"): self
.thisown
= 0
2800 self
.__class
__ = MDIChildFrame
2801 _windows
.MDIChildFrame_swigregister(MDIChildFramePtr
)
2803 def PreMDIChildFrame(*args
, **kwargs
):
2804 """PreMDIChildFrame() -> MDIChildFrame"""
2805 val
= _windows
.new_PreMDIChildFrame(*args
, **kwargs
)
2809 class MDIClientWindow(core
.Window
):
2811 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2812 def __init__(self
, *args
, **kwargs
):
2813 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
2814 newobj
= _windows
.new_MDIClientWindow(*args
, **kwargs
)
2815 self
.this
= newobj
.this
2818 self
._setOORInfo
(self
)
2820 def Create(*args
, **kwargs
):
2821 """Create(MDIParentFrame parent, long style=0) -> bool"""
2822 return _windows
.MDIClientWindow_Create(*args
, **kwargs
)
2825 class MDIClientWindowPtr(MDIClientWindow
):
2826 def __init__(self
, this
):
2828 if not hasattr(self
,"thisown"): self
.thisown
= 0
2829 self
.__class
__ = MDIClientWindow
2830 _windows
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
2832 def PreMDIClientWindow(*args
, **kwargs
):
2833 """PreMDIClientWindow() -> MDIClientWindow"""
2834 val
= _windows
.new_PreMDIClientWindow(*args
, **kwargs
)
2838 #---------------------------------------------------------------------------
2840 class PyWindow(core
.Window
):
2842 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2843 def __init__(self
, *args
, **kwargs
):
2845 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2846 long style=0, String name=PanelNameStr) -> PyWindow
2848 newobj
= _windows
.new_PyWindow(*args
, **kwargs
)
2849 self
.this
= newobj
.this
2852 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
2854 def _setCallbackInfo(*args
, **kwargs
):
2855 """_setCallbackInfo(PyObject self, PyObject _class)"""
2856 return _windows
.PyWindow__setCallbackInfo(*args
, **kwargs
)
2858 def base_DoMoveWindow(*args
, **kwargs
):
2859 """base_DoMoveWindow(int x, int y, int width, int height)"""
2860 return _windows
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
2862 def base_DoSetSize(*args
, **kwargs
):
2863 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2864 return _windows
.PyWindow_base_DoSetSize(*args
, **kwargs
)
2866 def base_DoSetClientSize(*args
, **kwargs
):
2867 """base_DoSetClientSize(int width, int height)"""
2868 return _windows
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
2870 def base_DoSetVirtualSize(*args
, **kwargs
):
2871 """base_DoSetVirtualSize(int x, int y)"""
2872 return _windows
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
2874 def base_DoGetSize(*args
, **kwargs
):
2875 """base_DoGetSize() -> (width, height)"""
2876 return _windows
.PyWindow_base_DoGetSize(*args
, **kwargs
)
2878 def base_DoGetClientSize(*args
, **kwargs
):
2879 """base_DoGetClientSize() -> (width, height)"""
2880 return _windows
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
2882 def base_DoGetPosition(*args
, **kwargs
):
2883 """base_DoGetPosition() -> (x,y)"""
2884 return _windows
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
2886 def base_DoGetVirtualSize(*args
, **kwargs
):
2887 """base_DoGetVirtualSize() -> Size"""
2888 return _windows
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
2890 def base_DoGetBestSize(*args
, **kwargs
):
2891 """base_DoGetBestSize() -> Size"""
2892 return _windows
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
2894 def base_InitDialog(*args
, **kwargs
):
2895 """base_InitDialog()"""
2896 return _windows
.PyWindow_base_InitDialog(*args
, **kwargs
)
2898 def base_TransferDataToWindow(*args
, **kwargs
):
2899 """base_TransferDataToWindow() -> bool"""
2900 return _windows
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
2902 def base_TransferDataFromWindow(*args
, **kwargs
):
2903 """base_TransferDataFromWindow() -> bool"""
2904 return _windows
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
2906 def base_Validate(*args
, **kwargs
):
2907 """base_Validate() -> bool"""
2908 return _windows
.PyWindow_base_Validate(*args
, **kwargs
)
2910 def base_AcceptsFocus(*args
, **kwargs
):
2911 """base_AcceptsFocus() -> bool"""
2912 return _windows
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
2914 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
2915 """base_AcceptsFocusFromKeyboard() -> bool"""
2916 return _windows
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
2918 def base_GetMaxSize(*args
, **kwargs
):
2919 """base_GetMaxSize() -> Size"""
2920 return _windows
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
2922 def base_AddChild(*args
, **kwargs
):
2923 """base_AddChild(Window child)"""
2924 return _windows
.PyWindow_base_AddChild(*args
, **kwargs
)
2926 def base_RemoveChild(*args
, **kwargs
):
2927 """base_RemoveChild(Window child)"""
2928 return _windows
.PyWindow_base_RemoveChild(*args
, **kwargs
)
2931 class PyWindowPtr(PyWindow
):
2932 def __init__(self
, this
):
2934 if not hasattr(self
,"thisown"): self
.thisown
= 0
2935 self
.__class
__ = PyWindow
2936 _windows
.PyWindow_swigregister(PyWindowPtr
)
2938 class PyPanel(Panel
):
2940 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2941 def __init__(self
, *args
, **kwargs
):
2943 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
2944 long style=0, String name=PanelNameStr) -> PyPanel
2946 newobj
= _windows
.new_PyPanel(*args
, **kwargs
)
2947 self
.this
= newobj
.this
2950 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
2952 def _setCallbackInfo(*args
, **kwargs
):
2953 """_setCallbackInfo(PyObject self, PyObject _class)"""
2954 return _windows
.PyPanel__setCallbackInfo(*args
, **kwargs
)
2956 def base_DoMoveWindow(*args
, **kwargs
):
2957 """base_DoMoveWindow(int x, int y, int width, int height)"""
2958 return _windows
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
2960 def base_DoSetSize(*args
, **kwargs
):
2961 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
2962 return _windows
.PyPanel_base_DoSetSize(*args
, **kwargs
)
2964 def base_DoSetClientSize(*args
, **kwargs
):
2965 """base_DoSetClientSize(int width, int height)"""
2966 return _windows
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
2968 def base_DoSetVirtualSize(*args
, **kwargs
):
2969 """base_DoSetVirtualSize(int x, int y)"""
2970 return _windows
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
2972 def base_DoGetSize(*args
, **kwargs
):
2973 """base_DoGetSize() -> (width, height)"""
2974 return _windows
.PyPanel_base_DoGetSize(*args
, **kwargs
)
2976 def base_DoGetClientSize(*args
, **kwargs
):
2977 """base_DoGetClientSize() -> (width, height)"""
2978 return _windows
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
2980 def base_DoGetPosition(*args
, **kwargs
):
2981 """base_DoGetPosition() -> (x,y)"""
2982 return _windows
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
2984 def base_DoGetVirtualSize(*args
, **kwargs
):
2985 """base_DoGetVirtualSize() -> Size"""
2986 return _windows
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
2988 def base_DoGetBestSize(*args
, **kwargs
):
2989 """base_DoGetBestSize() -> Size"""
2990 return _windows
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
2992 def base_InitDialog(*args
, **kwargs
):
2993 """base_InitDialog()"""
2994 return _windows
.PyPanel_base_InitDialog(*args
, **kwargs
)
2996 def base_TransferDataToWindow(*args
, **kwargs
):
2997 """base_TransferDataToWindow() -> bool"""
2998 return _windows
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3000 def base_TransferDataFromWindow(*args
, **kwargs
):
3001 """base_TransferDataFromWindow() -> bool"""
3002 return _windows
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3004 def base_Validate(*args
, **kwargs
):
3005 """base_Validate() -> bool"""
3006 return _windows
.PyPanel_base_Validate(*args
, **kwargs
)
3008 def base_AcceptsFocus(*args
, **kwargs
):
3009 """base_AcceptsFocus() -> bool"""
3010 return _windows
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3012 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3013 """base_AcceptsFocusFromKeyboard() -> bool"""
3014 return _windows
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3016 def base_GetMaxSize(*args
, **kwargs
):
3017 """base_GetMaxSize() -> Size"""
3018 return _windows
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3020 def base_AddChild(*args
, **kwargs
):
3021 """base_AddChild(Window child)"""
3022 return _windows
.PyPanel_base_AddChild(*args
, **kwargs
)
3024 def base_RemoveChild(*args
, **kwargs
):
3025 """base_RemoveChild(Window child)"""
3026 return _windows
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3029 class PyPanelPtr(PyPanel
):
3030 def __init__(self
, this
):
3032 if not hasattr(self
,"thisown"): self
.thisown
= 0
3033 self
.__class
__ = PyPanel
3034 _windows
.PyPanel_swigregister(PyPanelPtr
)
3036 #---------------------------------------------------------------------------
3038 PRINT_MODE_NONE
= _windows
.PRINT_MODE_NONE
3039 PRINT_MODE_PREVIEW
= _windows
.PRINT_MODE_PREVIEW
3040 PRINT_MODE_FILE
= _windows
.PRINT_MODE_FILE
3041 PRINT_MODE_PRINTER
= _windows
.PRINT_MODE_PRINTER
3042 PRINT_MODE_STREAM
= _windows
.PRINT_MODE_STREAM
3043 class PrintData(core
.Object
):
3045 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3046 def __init__(self
, *args
, **kwargs
):
3047 """__init__() -> PrintData"""
3048 newobj
= _windows
.new_PrintData(*args
, **kwargs
)
3049 self
.this
= newobj
.this
3052 def __del__(self
, destroy
=_windows
.delete_PrintData
):
3055 if self
.thisown
: destroy(self
)
3058 def GetNoCopies(*args
, **kwargs
):
3059 """GetNoCopies() -> int"""
3060 return _windows
.PrintData_GetNoCopies(*args
, **kwargs
)
3062 def GetCollate(*args
, **kwargs
):
3063 """GetCollate() -> bool"""
3064 return _windows
.PrintData_GetCollate(*args
, **kwargs
)
3066 def GetOrientation(*args
, **kwargs
):
3067 """GetOrientation() -> int"""
3068 return _windows
.PrintData_GetOrientation(*args
, **kwargs
)
3070 def Ok(*args
, **kwargs
):
3072 return _windows
.PrintData_Ok(*args
, **kwargs
)
3074 def GetPrinterName(*args
, **kwargs
):
3075 """GetPrinterName() -> String"""
3076 return _windows
.PrintData_GetPrinterName(*args
, **kwargs
)
3078 def GetColour(*args
, **kwargs
):
3079 """GetColour() -> bool"""
3080 return _windows
.PrintData_GetColour(*args
, **kwargs
)
3082 def GetDuplex(*args
, **kwargs
):
3083 """GetDuplex() -> int"""
3084 return _windows
.PrintData_GetDuplex(*args
, **kwargs
)
3086 def GetPaperId(*args
, **kwargs
):
3087 """GetPaperId() -> int"""
3088 return _windows
.PrintData_GetPaperId(*args
, **kwargs
)
3090 def GetPaperSize(*args
, **kwargs
):
3091 """GetPaperSize() -> Size"""
3092 return _windows
.PrintData_GetPaperSize(*args
, **kwargs
)
3094 def GetQuality(*args
, **kwargs
):
3095 """GetQuality() -> int"""
3096 return _windows
.PrintData_GetQuality(*args
, **kwargs
)
3098 def SetNoCopies(*args
, **kwargs
):
3099 """SetNoCopies(int v)"""
3100 return _windows
.PrintData_SetNoCopies(*args
, **kwargs
)
3102 def SetCollate(*args
, **kwargs
):
3103 """SetCollate(bool flag)"""
3104 return _windows
.PrintData_SetCollate(*args
, **kwargs
)
3106 def SetOrientation(*args
, **kwargs
):
3107 """SetOrientation(int orient)"""
3108 return _windows
.PrintData_SetOrientation(*args
, **kwargs
)
3110 def SetPrinterName(*args
, **kwargs
):
3111 """SetPrinterName(String name)"""
3112 return _windows
.PrintData_SetPrinterName(*args
, **kwargs
)
3114 def SetColour(*args
, **kwargs
):
3115 """SetColour(bool colour)"""
3116 return _windows
.PrintData_SetColour(*args
, **kwargs
)
3118 def SetDuplex(*args
, **kwargs
):
3119 """SetDuplex(int duplex)"""
3120 return _windows
.PrintData_SetDuplex(*args
, **kwargs
)
3122 def SetPaperId(*args
, **kwargs
):
3123 """SetPaperId(int sizeId)"""
3124 return _windows
.PrintData_SetPaperId(*args
, **kwargs
)
3126 def SetPaperSize(*args
, **kwargs
):
3127 """SetPaperSize(Size sz)"""
3128 return _windows
.PrintData_SetPaperSize(*args
, **kwargs
)
3130 def SetQuality(*args
, **kwargs
):
3131 """SetQuality(int quality)"""
3132 return _windows
.PrintData_SetQuality(*args
, **kwargs
)
3134 def GetPrinterCommand(*args
, **kwargs
):
3135 """GetPrinterCommand() -> String"""
3136 return _windows
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3138 def GetPrinterOptions(*args
, **kwargs
):
3139 """GetPrinterOptions() -> String"""
3140 return _windows
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3142 def GetPreviewCommand(*args
, **kwargs
):
3143 """GetPreviewCommand() -> String"""
3144 return _windows
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3146 def GetFilename(*args
, **kwargs
):
3147 """GetFilename() -> String"""
3148 return _windows
.PrintData_GetFilename(*args
, **kwargs
)
3150 def GetFontMetricPath(*args
, **kwargs
):
3151 """GetFontMetricPath() -> String"""
3152 return _windows
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3154 def GetPrinterScaleX(*args
, **kwargs
):
3155 """GetPrinterScaleX() -> double"""
3156 return _windows
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3158 def GetPrinterScaleY(*args
, **kwargs
):
3159 """GetPrinterScaleY() -> double"""
3160 return _windows
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3162 def GetPrinterTranslateX(*args
, **kwargs
):
3163 """GetPrinterTranslateX() -> long"""
3164 return _windows
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3166 def GetPrinterTranslateY(*args
, **kwargs
):
3167 """GetPrinterTranslateY() -> long"""
3168 return _windows
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3170 def GetPrintMode(*args
, **kwargs
):
3171 """GetPrintMode() -> int"""
3172 return _windows
.PrintData_GetPrintMode(*args
, **kwargs
)
3174 def SetPrinterCommand(*args
, **kwargs
):
3175 """SetPrinterCommand(String command)"""
3176 return _windows
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3178 def SetPrinterOptions(*args
, **kwargs
):
3179 """SetPrinterOptions(String options)"""
3180 return _windows
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3182 def SetPreviewCommand(*args
, **kwargs
):
3183 """SetPreviewCommand(String command)"""
3184 return _windows
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3186 def SetFilename(*args
, **kwargs
):
3187 """SetFilename(String filename)"""
3188 return _windows
.PrintData_SetFilename(*args
, **kwargs
)
3190 def SetFontMetricPath(*args
, **kwargs
):
3191 """SetFontMetricPath(String path)"""
3192 return _windows
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3194 def SetPrinterScaleX(*args
, **kwargs
):
3195 """SetPrinterScaleX(double x)"""
3196 return _windows
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3198 def SetPrinterScaleY(*args
, **kwargs
):
3199 """SetPrinterScaleY(double y)"""
3200 return _windows
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3202 def SetPrinterScaling(*args
, **kwargs
):
3203 """SetPrinterScaling(double x, double y)"""
3204 return _windows
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3206 def SetPrinterTranslateX(*args
, **kwargs
):
3207 """SetPrinterTranslateX(long x)"""
3208 return _windows
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3210 def SetPrinterTranslateY(*args
, **kwargs
):
3211 """SetPrinterTranslateY(long y)"""
3212 return _windows
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3214 def SetPrinterTranslation(*args
, **kwargs
):
3215 """SetPrinterTranslation(long x, long y)"""
3216 return _windows
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3218 def SetPrintMode(*args
, **kwargs
):
3219 """SetPrintMode(int printMode)"""
3220 return _windows
.PrintData_SetPrintMode(*args
, **kwargs
)
3222 def GetOutputStream(*args
, **kwargs
):
3223 """GetOutputStream() -> OutputStream"""
3224 return _windows
.PrintData_GetOutputStream(*args
, **kwargs
)
3226 def SetOutputStream(*args
, **kwargs
):
3227 """SetOutputStream(OutputStream outputstream)"""
3228 return _windows
.PrintData_SetOutputStream(*args
, **kwargs
)
3230 def __nonzero__(self
): return self
.Ok()
3232 class PrintDataPtr(PrintData
):
3233 def __init__(self
, this
):
3235 if not hasattr(self
,"thisown"): self
.thisown
= 0
3236 self
.__class
__ = PrintData
3237 _windows
.PrintData_swigregister(PrintDataPtr
)
3238 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3239 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3241 class PageSetupDialogData(core
.Object
):
3243 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3244 def __init__(self
, *args
, **kwargs
):
3245 """__init__() -> PageSetupDialogData"""
3246 newobj
= _windows
.new_PageSetupDialogData(*args
, **kwargs
)
3247 self
.this
= newobj
.this
3250 def __del__(self
, destroy
=_windows
.delete_PageSetupDialogData
):
3253 if self
.thisown
: destroy(self
)
3256 def EnableHelp(*args
, **kwargs
):
3257 """EnableHelp(bool flag)"""
3258 return _windows
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3260 def EnableMargins(*args
, **kwargs
):
3261 """EnableMargins(bool flag)"""
3262 return _windows
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3264 def EnableOrientation(*args
, **kwargs
):
3265 """EnableOrientation(bool flag)"""
3266 return _windows
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3268 def EnablePaper(*args
, **kwargs
):
3269 """EnablePaper(bool flag)"""
3270 return _windows
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3272 def EnablePrinter(*args
, **kwargs
):
3273 """EnablePrinter(bool flag)"""
3274 return _windows
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3276 def GetDefaultMinMargins(*args
, **kwargs
):
3277 """GetDefaultMinMargins() -> bool"""
3278 return _windows
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3280 def GetEnableMargins(*args
, **kwargs
):
3281 """GetEnableMargins() -> bool"""
3282 return _windows
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3284 def GetEnableOrientation(*args
, **kwargs
):
3285 """GetEnableOrientation() -> bool"""
3286 return _windows
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3288 def GetEnablePaper(*args
, **kwargs
):
3289 """GetEnablePaper() -> bool"""
3290 return _windows
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3292 def GetEnablePrinter(*args
, **kwargs
):
3293 """GetEnablePrinter() -> bool"""
3294 return _windows
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3296 def GetEnableHelp(*args
, **kwargs
):
3297 """GetEnableHelp() -> bool"""
3298 return _windows
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3300 def GetDefaultInfo(*args
, **kwargs
):
3301 """GetDefaultInfo() -> bool"""
3302 return _windows
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3304 def GetMarginTopLeft(*args
, **kwargs
):
3305 """GetMarginTopLeft() -> Point"""
3306 return _windows
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3308 def GetMarginBottomRight(*args
, **kwargs
):
3309 """GetMarginBottomRight() -> Point"""
3310 return _windows
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3312 def GetMinMarginTopLeft(*args
, **kwargs
):
3313 """GetMinMarginTopLeft() -> Point"""
3314 return _windows
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3316 def GetMinMarginBottomRight(*args
, **kwargs
):
3317 """GetMinMarginBottomRight() -> Point"""
3318 return _windows
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3320 def GetPaperId(*args
, **kwargs
):
3321 """GetPaperId() -> int"""
3322 return _windows
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3324 def GetPaperSize(*args
, **kwargs
):
3325 """GetPaperSize() -> Size"""
3326 return _windows
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3328 def GetPrintData(*args
, **kwargs
):
3329 """GetPrintData() -> PrintData"""
3330 return _windows
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3332 def Ok(*args
, **kwargs
):
3334 return _windows
.PageSetupDialogData_Ok(*args
, **kwargs
)
3336 def SetDefaultInfo(*args
, **kwargs
):
3337 """SetDefaultInfo(bool flag)"""
3338 return _windows
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3340 def SetDefaultMinMargins(*args
, **kwargs
):
3341 """SetDefaultMinMargins(bool flag)"""
3342 return _windows
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3344 def SetMarginTopLeft(*args
, **kwargs
):
3345 """SetMarginTopLeft(Point pt)"""
3346 return _windows
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3348 def SetMarginBottomRight(*args
, **kwargs
):
3349 """SetMarginBottomRight(Point pt)"""
3350 return _windows
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3352 def SetMinMarginTopLeft(*args
, **kwargs
):
3353 """SetMinMarginTopLeft(Point pt)"""
3354 return _windows
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3356 def SetMinMarginBottomRight(*args
, **kwargs
):
3357 """SetMinMarginBottomRight(Point pt)"""
3358 return _windows
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3360 def SetPaperId(*args
, **kwargs
):
3361 """SetPaperId(int id)"""
3362 return _windows
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3364 def SetPaperSize(*args
, **kwargs
):
3365 """SetPaperSize(Size size)"""
3366 return _windows
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3368 def SetPrintData(*args
, **kwargs
):
3369 """SetPrintData(PrintData printData)"""
3370 return _windows
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3372 def __nonzero__(self
): return self
.Ok()
3374 class PageSetupDialogDataPtr(PageSetupDialogData
):
3375 def __init__(self
, this
):
3377 if not hasattr(self
,"thisown"): self
.thisown
= 0
3378 self
.__class
__ = PageSetupDialogData
3379 _windows
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3381 class PageSetupDialog(Dialog
):
3383 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3384 def __init__(self
, *args
, **kwargs
):
3385 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3386 newobj
= _windows
.new_PageSetupDialog(*args
, **kwargs
)
3387 self
.this
= newobj
.this
3390 self
._setOORInfo
(self
)
3392 def GetPageSetupData(*args
, **kwargs
):
3393 """GetPageSetupData() -> PageSetupDialogData"""
3394 return _windows
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3396 def ShowModal(*args
, **kwargs
):
3397 """ShowModal() -> int"""
3398 return _windows
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3401 class PageSetupDialogPtr(PageSetupDialog
):
3402 def __init__(self
, this
):
3404 if not hasattr(self
,"thisown"): self
.thisown
= 0
3405 self
.__class
__ = PageSetupDialog
3406 _windows
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3408 class PrintDialogData(core
.Object
):
3410 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3411 def __init__(self
, *args
, **kwargs
):
3412 """__init__() -> PrintDialogData"""
3413 newobj
= _windows
.new_PrintDialogData(*args
, **kwargs
)
3414 self
.this
= newobj
.this
3417 def __del__(self
, destroy
=_windows
.delete_PrintDialogData
):
3420 if self
.thisown
: destroy(self
)
3423 def GetFromPage(*args
, **kwargs
):
3424 """GetFromPage() -> int"""
3425 return _windows
.PrintDialogData_GetFromPage(*args
, **kwargs
)
3427 def GetToPage(*args
, **kwargs
):
3428 """GetToPage() -> int"""
3429 return _windows
.PrintDialogData_GetToPage(*args
, **kwargs
)
3431 def GetMinPage(*args
, **kwargs
):
3432 """GetMinPage() -> int"""
3433 return _windows
.PrintDialogData_GetMinPage(*args
, **kwargs
)
3435 def GetMaxPage(*args
, **kwargs
):
3436 """GetMaxPage() -> int"""
3437 return _windows
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
3439 def GetNoCopies(*args
, **kwargs
):
3440 """GetNoCopies() -> int"""
3441 return _windows
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
3443 def GetAllPages(*args
, **kwargs
):
3444 """GetAllPages() -> bool"""
3445 return _windows
.PrintDialogData_GetAllPages(*args
, **kwargs
)
3447 def GetSelection(*args
, **kwargs
):
3448 """GetSelection() -> bool"""
3449 return _windows
.PrintDialogData_GetSelection(*args
, **kwargs
)
3451 def GetCollate(*args
, **kwargs
):
3452 """GetCollate() -> bool"""
3453 return _windows
.PrintDialogData_GetCollate(*args
, **kwargs
)
3455 def GetPrintToFile(*args
, **kwargs
):
3456 """GetPrintToFile() -> bool"""
3457 return _windows
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
3459 def GetSetupDialog(*args
, **kwargs
):
3460 """GetSetupDialog() -> bool"""
3461 return _windows
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
3463 def SetFromPage(*args
, **kwargs
):
3464 """SetFromPage(int v)"""
3465 return _windows
.PrintDialogData_SetFromPage(*args
, **kwargs
)
3467 def SetToPage(*args
, **kwargs
):
3468 """SetToPage(int v)"""
3469 return _windows
.PrintDialogData_SetToPage(*args
, **kwargs
)
3471 def SetMinPage(*args
, **kwargs
):
3472 """SetMinPage(int v)"""
3473 return _windows
.PrintDialogData_SetMinPage(*args
, **kwargs
)
3475 def SetMaxPage(*args
, **kwargs
):
3476 """SetMaxPage(int v)"""
3477 return _windows
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
3479 def SetNoCopies(*args
, **kwargs
):
3480 """SetNoCopies(int v)"""
3481 return _windows
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
3483 def SetAllPages(*args
, **kwargs
):
3484 """SetAllPages(bool flag)"""
3485 return _windows
.PrintDialogData_SetAllPages(*args
, **kwargs
)
3487 def SetSelection(*args
, **kwargs
):
3488 """SetSelection(bool flag)"""
3489 return _windows
.PrintDialogData_SetSelection(*args
, **kwargs
)
3491 def SetCollate(*args
, **kwargs
):
3492 """SetCollate(bool flag)"""
3493 return _windows
.PrintDialogData_SetCollate(*args
, **kwargs
)
3495 def SetPrintToFile(*args
, **kwargs
):
3496 """SetPrintToFile(bool flag)"""
3497 return _windows
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
3499 def SetSetupDialog(*args
, **kwargs
):
3500 """SetSetupDialog(bool flag)"""
3501 return _windows
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
3503 def EnablePrintToFile(*args
, **kwargs
):
3504 """EnablePrintToFile(bool flag)"""
3505 return _windows
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
3507 def EnableSelection(*args
, **kwargs
):
3508 """EnableSelection(bool flag)"""
3509 return _windows
.PrintDialogData_EnableSelection(*args
, **kwargs
)
3511 def EnablePageNumbers(*args
, **kwargs
):
3512 """EnablePageNumbers(bool flag)"""
3513 return _windows
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
3515 def EnableHelp(*args
, **kwargs
):
3516 """EnableHelp(bool flag)"""
3517 return _windows
.PrintDialogData_EnableHelp(*args
, **kwargs
)
3519 def GetEnablePrintToFile(*args
, **kwargs
):
3520 """GetEnablePrintToFile() -> bool"""
3521 return _windows
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
3523 def GetEnableSelection(*args
, **kwargs
):
3524 """GetEnableSelection() -> bool"""
3525 return _windows
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
3527 def GetEnablePageNumbers(*args
, **kwargs
):
3528 """GetEnablePageNumbers() -> bool"""
3529 return _windows
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
3531 def GetEnableHelp(*args
, **kwargs
):
3532 """GetEnableHelp() -> bool"""
3533 return _windows
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
3535 def Ok(*args
, **kwargs
):
3537 return _windows
.PrintDialogData_Ok(*args
, **kwargs
)
3539 def GetPrintData(*args
, **kwargs
):
3540 """GetPrintData() -> PrintData"""
3541 return _windows
.PrintDialogData_GetPrintData(*args
, **kwargs
)
3543 def SetPrintData(*args
, **kwargs
):
3544 """SetPrintData(PrintData printData)"""
3545 return _windows
.PrintDialogData_SetPrintData(*args
, **kwargs
)
3547 def __nonzero__(self
): return self
.Ok()
3549 class PrintDialogDataPtr(PrintDialogData
):
3550 def __init__(self
, this
):
3552 if not hasattr(self
,"thisown"): self
.thisown
= 0
3553 self
.__class
__ = PrintDialogData
3554 _windows
.PrintDialogData_swigregister(PrintDialogDataPtr
)
3556 class PrintDialog(Dialog
):
3558 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3559 def __init__(self
, *args
, **kwargs
):
3560 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
3561 newobj
= _windows
.new_PrintDialog(*args
, **kwargs
)
3562 self
.this
= newobj
.this
3565 self
._setOORInfo
(self
)
3567 def GetPrintDialogData(*args
, **kwargs
):
3568 """GetPrintDialogData() -> PrintDialogData"""
3569 return _windows
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
3571 def GetPrintDC(*args
, **kwargs
):
3572 """GetPrintDC() -> DC"""
3573 return _windows
.PrintDialog_GetPrintDC(*args
, **kwargs
)
3575 def ShowModal(*args
, **kwargs
):
3576 """ShowModal() -> int"""
3577 return _windows
.PrintDialog_ShowModal(*args
, **kwargs
)
3580 class PrintDialogPtr(PrintDialog
):
3581 def __init__(self
, this
):
3583 if not hasattr(self
,"thisown"): self
.thisown
= 0
3584 self
.__class
__ = PrintDialog
3585 _windows
.PrintDialog_swigregister(PrintDialogPtr
)
3587 PRINTER_NO_ERROR
= _windows
.PRINTER_NO_ERROR
3588 PRINTER_CANCELLED
= _windows
.PRINTER_CANCELLED
3589 PRINTER_ERROR
= _windows
.PRINTER_ERROR
3590 class Printer(core
.Object
):
3592 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3593 def __init__(self
, *args
, **kwargs
):
3594 """__init__(PrintDialogData data=None) -> Printer"""
3595 newobj
= _windows
.new_Printer(*args
, **kwargs
)
3596 self
.this
= newobj
.this
3599 def __del__(self
, destroy
=_windows
.delete_Printer
):
3602 if self
.thisown
: destroy(self
)
3605 def CreateAbortWindow(*args
, **kwargs
):
3606 """CreateAbortWindow(Window parent, Printout printout)"""
3607 return _windows
.Printer_CreateAbortWindow(*args
, **kwargs
)
3609 def GetPrintDialogData(*args
, **kwargs
):
3610 """GetPrintDialogData() -> PrintDialogData"""
3611 return _windows
.Printer_GetPrintDialogData(*args
, **kwargs
)
3613 def Print(*args
, **kwargs
):
3614 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
3615 return _windows
.Printer_Print(*args
, **kwargs
)
3617 def PrintDialog(*args
, **kwargs
):
3618 """PrintDialog(Window parent) -> DC"""
3619 return _windows
.Printer_PrintDialog(*args
, **kwargs
)
3621 def ReportError(*args
, **kwargs
):
3622 """ReportError(Window parent, Printout printout, String message)"""
3623 return _windows
.Printer_ReportError(*args
, **kwargs
)
3625 def Setup(*args
, **kwargs
):
3626 """Setup(Window parent) -> bool"""
3627 return _windows
.Printer_Setup(*args
, **kwargs
)
3629 def GetAbort(*args
, **kwargs
):
3630 """GetAbort() -> bool"""
3631 return _windows
.Printer_GetAbort(*args
, **kwargs
)
3633 def GetLastError(*args
, **kwargs
):
3634 """GetLastError() -> int"""
3635 return _windows
.Printer_GetLastError(*args
, **kwargs
)
3637 GetLastError
= staticmethod(GetLastError
)
3639 class PrinterPtr(Printer
):
3640 def __init__(self
, this
):
3642 if not hasattr(self
,"thisown"): self
.thisown
= 0
3643 self
.__class
__ = Printer
3644 _windows
.Printer_swigregister(PrinterPtr
)
3646 def Printer_GetLastError(*args
, **kwargs
):
3647 """Printer_GetLastError() -> int"""
3648 return _windows
.Printer_GetLastError(*args
, **kwargs
)
3650 class Printout(core
.Object
):
3652 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3653 def __init__(self
, *args
, **kwargs
):
3654 """__init__(String title=PrintoutTitleStr) -> Printout"""
3655 newobj
= _windows
.new_Printout(*args
, **kwargs
)
3656 self
.this
= newobj
.this
3659 self
._setCallbackInfo
(self
, Printout
)
3661 def _setCallbackInfo(*args
, **kwargs
):
3662 """_setCallbackInfo(PyObject self, PyObject _class)"""
3663 return _windows
.Printout__setCallbackInfo(*args
, **kwargs
)
3665 def GetTitle(*args
, **kwargs
):
3666 """GetTitle() -> String"""
3667 return _windows
.Printout_GetTitle(*args
, **kwargs
)
3669 def GetDC(*args
, **kwargs
):
3671 return _windows
.Printout_GetDC(*args
, **kwargs
)
3673 def SetDC(*args
, **kwargs
):
3675 return _windows
.Printout_SetDC(*args
, **kwargs
)
3677 def SetPageSizePixels(*args
, **kwargs
):
3678 """SetPageSizePixels(int w, int h)"""
3679 return _windows
.Printout_SetPageSizePixels(*args
, **kwargs
)
3681 def GetPageSizePixels(*args
, **kwargs
):
3682 """GetPageSizePixels() -> (w, h)"""
3683 return _windows
.Printout_GetPageSizePixels(*args
, **kwargs
)
3685 def SetPageSizeMM(*args
, **kwargs
):
3686 """SetPageSizeMM(int w, int h)"""
3687 return _windows
.Printout_SetPageSizeMM(*args
, **kwargs
)
3689 def GetPageSizeMM(*args
, **kwargs
):
3690 """GetPageSizeMM() -> (w, h)"""
3691 return _windows
.Printout_GetPageSizeMM(*args
, **kwargs
)
3693 def SetPPIScreen(*args
, **kwargs
):
3694 """SetPPIScreen(int x, int y)"""
3695 return _windows
.Printout_SetPPIScreen(*args
, **kwargs
)
3697 def GetPPIScreen(*args
, **kwargs
):
3698 """GetPPIScreen() -> (x,y)"""
3699 return _windows
.Printout_GetPPIScreen(*args
, **kwargs
)
3701 def SetPPIPrinter(*args
, **kwargs
):
3702 """SetPPIPrinter(int x, int y)"""
3703 return _windows
.Printout_SetPPIPrinter(*args
, **kwargs
)
3705 def GetPPIPrinter(*args
, **kwargs
):
3706 """GetPPIPrinter() -> (x,y)"""
3707 return _windows
.Printout_GetPPIPrinter(*args
, **kwargs
)
3709 def IsPreview(*args
, **kwargs
):
3710 """IsPreview() -> bool"""
3711 return _windows
.Printout_IsPreview(*args
, **kwargs
)
3713 def SetIsPreview(*args
, **kwargs
):
3714 """SetIsPreview(bool p)"""
3715 return _windows
.Printout_SetIsPreview(*args
, **kwargs
)
3717 def base_OnBeginDocument(*args
, **kwargs
):
3718 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
3719 return _windows
.Printout_base_OnBeginDocument(*args
, **kwargs
)
3721 def base_OnEndDocument(*args
, **kwargs
):
3722 """base_OnEndDocument()"""
3723 return _windows
.Printout_base_OnEndDocument(*args
, **kwargs
)
3725 def base_OnBeginPrinting(*args
, **kwargs
):
3726 """base_OnBeginPrinting()"""
3727 return _windows
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
3729 def base_OnEndPrinting(*args
, **kwargs
):
3730 """base_OnEndPrinting()"""
3731 return _windows
.Printout_base_OnEndPrinting(*args
, **kwargs
)
3733 def base_OnPreparePrinting(*args
, **kwargs
):
3734 """base_OnPreparePrinting()"""
3735 return _windows
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
3737 def base_HasPage(*args
, **kwargs
):
3738 """base_HasPage(int page) -> bool"""
3739 return _windows
.Printout_base_HasPage(*args
, **kwargs
)
3741 def base_GetPageInfo(*args
, **kwargs
):
3742 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
3743 return _windows
.Printout_base_GetPageInfo(*args
, **kwargs
)
3746 class PrintoutPtr(Printout
):
3747 def __init__(self
, this
):
3749 if not hasattr(self
,"thisown"): self
.thisown
= 0
3750 self
.__class
__ = Printout
3751 _windows
.Printout_swigregister(PrintoutPtr
)
3753 class PreviewCanvas(ScrolledWindow
):
3755 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3756 def __init__(self
, *args
, **kwargs
):
3758 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
3759 Size size=DefaultSize, long style=0,
3760 String name=PreviewCanvasNameStr) -> PreviewCanvas
3762 newobj
= _windows
.new_PreviewCanvas(*args
, **kwargs
)
3763 self
.this
= newobj
.this
3766 self
._setOORInfo
(self
)
3769 class PreviewCanvasPtr(PreviewCanvas
):
3770 def __init__(self
, this
):
3772 if not hasattr(self
,"thisown"): self
.thisown
= 0
3773 self
.__class
__ = PreviewCanvas
3774 _windows
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
3776 class PreviewFrame(Frame
):
3778 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3779 def __init__(self
, *args
, **kwargs
):
3781 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
3782 Size size=DefaultSize,
3783 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
3785 newobj
= _windows
.new_PreviewFrame(*args
, **kwargs
)
3786 self
.this
= newobj
.this
3789 self
._setOORInfo
(self
)
3791 def Initialize(*args
, **kwargs
):
3793 return _windows
.PreviewFrame_Initialize(*args
, **kwargs
)
3795 def CreateControlBar(*args
, **kwargs
):
3796 """CreateControlBar()"""
3797 return _windows
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
3799 def CreateCanvas(*args
, **kwargs
):
3800 """CreateCanvas()"""
3801 return _windows
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
3803 def GetControlBar(*args
, **kwargs
):
3804 """GetControlBar() -> PreviewControlBar"""
3805 return _windows
.PreviewFrame_GetControlBar(*args
, **kwargs
)
3808 class PreviewFramePtr(PreviewFrame
):
3809 def __init__(self
, this
):
3811 if not hasattr(self
,"thisown"): self
.thisown
= 0
3812 self
.__class
__ = PreviewFrame
3813 _windows
.PreviewFrame_swigregister(PreviewFramePtr
)
3815 PREVIEW_PRINT
= _windows
.PREVIEW_PRINT
3816 PREVIEW_PREVIOUS
= _windows
.PREVIEW_PREVIOUS
3817 PREVIEW_NEXT
= _windows
.PREVIEW_NEXT
3818 PREVIEW_ZOOM
= _windows
.PREVIEW_ZOOM
3819 PREVIEW_FIRST
= _windows
.PREVIEW_FIRST
3820 PREVIEW_LAST
= _windows
.PREVIEW_LAST
3821 PREVIEW_GOTO
= _windows
.PREVIEW_GOTO
3822 PREVIEW_DEFAULT
= _windows
.PREVIEW_DEFAULT
3823 ID_PREVIEW_CLOSE
= _windows
.ID_PREVIEW_CLOSE
3824 ID_PREVIEW_NEXT
= _windows
.ID_PREVIEW_NEXT
3825 ID_PREVIEW_PREVIOUS
= _windows
.ID_PREVIEW_PREVIOUS
3826 ID_PREVIEW_PRINT
= _windows
.ID_PREVIEW_PRINT
3827 ID_PREVIEW_ZOOM
= _windows
.ID_PREVIEW_ZOOM
3828 ID_PREVIEW_FIRST
= _windows
.ID_PREVIEW_FIRST
3829 ID_PREVIEW_LAST
= _windows
.ID_PREVIEW_LAST
3830 ID_PREVIEW_GOTO
= _windows
.ID_PREVIEW_GOTO
3831 class PreviewControlBar(Panel
):
3833 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3834 def __init__(self
, *args
, **kwargs
):
3836 __init__(PrintPreview preview, long buttons, Window parent,
3837 Point pos=DefaultPosition, Size size=DefaultSize,
3838 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
3840 newobj
= _windows
.new_PreviewControlBar(*args
, **kwargs
)
3841 self
.this
= newobj
.this
3844 self
._setOORInfo
(self
)
3846 def GetZoomControl(*args
, **kwargs
):
3847 """GetZoomControl() -> int"""
3848 return _windows
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
3850 def SetZoomControl(*args
, **kwargs
):
3851 """SetZoomControl(int zoom)"""
3852 return _windows
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
3854 def GetPrintPreview(*args
, **kwargs
):
3855 """GetPrintPreview() -> PrintPreview"""
3856 return _windows
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
3858 def OnNext(*args
, **kwargs
):
3860 return _windows
.PreviewControlBar_OnNext(*args
, **kwargs
)
3862 def OnPrevious(*args
, **kwargs
):
3864 return _windows
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
3866 def OnFirst(*args
, **kwargs
):
3868 return _windows
.PreviewControlBar_OnFirst(*args
, **kwargs
)
3870 def OnLast(*args
, **kwargs
):
3872 return _windows
.PreviewControlBar_OnLast(*args
, **kwargs
)
3874 def OnGoto(*args
, **kwargs
):
3876 return _windows
.PreviewControlBar_OnGoto(*args
, **kwargs
)
3879 class PreviewControlBarPtr(PreviewControlBar
):
3880 def __init__(self
, this
):
3882 if not hasattr(self
,"thisown"): self
.thisown
= 0
3883 self
.__class
__ = PreviewControlBar
3884 _windows
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
3886 class PrintPreview(core
.Object
):
3888 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3889 def __init__(self
, *args
, **kwargs
):
3890 """__init__(Printout printout, Printout printoutForPrinting, PrintData data=None) -> PrintPreview"""
3891 newobj
= _windows
.new_PrintPreview(*args
, **kwargs
)
3892 self
.this
= newobj
.this
3895 def SetCurrentPage(*args
, **kwargs
):
3896 """SetCurrentPage(int pageNum) -> bool"""
3897 return _windows
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
3899 def GetCurrentPage(*args
, **kwargs
):
3900 """GetCurrentPage() -> int"""
3901 return _windows
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
3903 def SetPrintout(*args
, **kwargs
):
3904 """SetPrintout(Printout printout)"""
3905 return _windows
.PrintPreview_SetPrintout(*args
, **kwargs
)
3907 def GetPrintout(*args
, **kwargs
):
3908 """GetPrintout() -> Printout"""
3909 return _windows
.PrintPreview_GetPrintout(*args
, **kwargs
)
3911 def GetPrintoutForPrinting(*args
, **kwargs
):
3912 """GetPrintoutForPrinting() -> Printout"""
3913 return _windows
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
3915 def SetFrame(*args
, **kwargs
):
3916 """SetFrame(Frame frame)"""
3917 return _windows
.PrintPreview_SetFrame(*args
, **kwargs
)
3919 def SetCanvas(*args
, **kwargs
):
3920 """SetCanvas(PreviewCanvas canvas)"""
3921 return _windows
.PrintPreview_SetCanvas(*args
, **kwargs
)
3923 def GetFrame(*args
, **kwargs
):
3924 """GetFrame() -> Frame"""
3925 return _windows
.PrintPreview_GetFrame(*args
, **kwargs
)
3927 def GetCanvas(*args
, **kwargs
):
3928 """GetCanvas() -> PreviewCanvas"""
3929 return _windows
.PrintPreview_GetCanvas(*args
, **kwargs
)
3931 def PaintPage(*args
, **kwargs
):
3932 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
3933 return _windows
.PrintPreview_PaintPage(*args
, **kwargs
)
3935 def DrawBlankPage(*args
, **kwargs
):
3936 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
3937 return _windows
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
3939 def RenderPage(*args
, **kwargs
):
3940 """RenderPage(int pageNum) -> bool"""
3941 return _windows
.PrintPreview_RenderPage(*args
, **kwargs
)
3943 def AdjustScrollbars(*args
, **kwargs
):
3944 """AdjustScrollbars(PreviewCanvas canvas)"""
3945 return _windows
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
3947 def GetPrintDialogData(*args
, **kwargs
):
3948 """GetPrintDialogData() -> PrintDialogData"""
3949 return _windows
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
3951 def SetZoom(*args
, **kwargs
):
3952 """SetZoom(int percent)"""
3953 return _windows
.PrintPreview_SetZoom(*args
, **kwargs
)
3955 def GetZoom(*args
, **kwargs
):
3956 """GetZoom() -> int"""
3957 return _windows
.PrintPreview_GetZoom(*args
, **kwargs
)
3959 def GetMaxPage(*args
, **kwargs
):
3960 """GetMaxPage() -> int"""
3961 return _windows
.PrintPreview_GetMaxPage(*args
, **kwargs
)
3963 def GetMinPage(*args
, **kwargs
):
3964 """GetMinPage() -> int"""
3965 return _windows
.PrintPreview_GetMinPage(*args
, **kwargs
)
3967 def Ok(*args
, **kwargs
):
3969 return _windows
.PrintPreview_Ok(*args
, **kwargs
)
3971 def SetOk(*args
, **kwargs
):
3972 """SetOk(bool ok)"""
3973 return _windows
.PrintPreview_SetOk(*args
, **kwargs
)
3975 def Print(*args
, **kwargs
):
3976 """Print(bool interactive) -> bool"""
3977 return _windows
.PrintPreview_Print(*args
, **kwargs
)
3979 def DetermineScaling(*args
, **kwargs
):
3980 """DetermineScaling()"""
3981 return _windows
.PrintPreview_DetermineScaling(*args
, **kwargs
)
3983 def __nonzero__(self
): return self
.Ok()
3985 class PrintPreviewPtr(PrintPreview
):
3986 def __init__(self
, this
):
3988 if not hasattr(self
,"thisown"): self
.thisown
= 0
3989 self
.__class
__ = PrintPreview
3990 _windows
.PrintPreview_swigregister(PrintPreviewPtr
)
3992 class PyPrintPreview(PrintPreview
):
3994 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3995 def __init__(self
, *args
, **kwargs
):
3996 """__init__(Printout printout, Printout printoutForPrinting, PrintData data=None) -> PyPrintPreview"""
3997 newobj
= _windows
.new_PyPrintPreview(*args
, **kwargs
)
3998 self
.this
= newobj
.this
4001 self
._setCallbackInfo
(self
, PyPrintPreview
)
4003 def _setCallbackInfo(*args
, **kwargs
):
4004 """_setCallbackInfo(PyObject self, PyObject _class)"""
4005 return _windows
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4007 def base_SetCurrentPage(*args
, **kwargs
):
4008 """base_SetCurrentPage(int pageNum) -> bool"""
4009 return _windows
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4011 def base_PaintPage(*args
, **kwargs
):
4012 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4013 return _windows
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4015 def base_DrawBlankPage(*args
, **kwargs
):
4016 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4017 return _windows
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4019 def base_RenderPage(*args
, **kwargs
):
4020 """base_RenderPage(int pageNum) -> bool"""
4021 return _windows
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4023 def base_SetZoom(*args
, **kwargs
):
4024 """base_SetZoom(int percent)"""
4025 return _windows
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4027 def base_Print(*args
, **kwargs
):
4028 """base_Print(bool interactive) -> bool"""
4029 return _windows
.PyPrintPreview_base_Print(*args
, **kwargs
)
4031 def base_DetermineScaling(*args
, **kwargs
):
4032 """base_DetermineScaling()"""
4033 return _windows
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4036 class PyPrintPreviewPtr(PyPrintPreview
):
4037 def __init__(self
, this
):
4039 if not hasattr(self
,"thisown"): self
.thisown
= 0
4040 self
.__class
__ = PyPrintPreview
4041 _windows
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4043 class PyPreviewFrame(PreviewFrame
):
4045 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4046 def __init__(self
, *args
, **kwargs
):
4048 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4049 Size size=DefaultSize,
4050 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4052 newobj
= _windows
.new_PyPreviewFrame(*args
, **kwargs
)
4053 self
.this
= newobj
.this
4056 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4058 def _setCallbackInfo(*args
, **kwargs
):
4059 """_setCallbackInfo(PyObject self, PyObject _class)"""
4060 return _windows
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4062 def SetPreviewCanvas(*args
, **kwargs
):
4063 """SetPreviewCanvas(PreviewCanvas canvas)"""
4064 return _windows
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4066 def SetControlBar(*args
, **kwargs
):
4067 """SetControlBar(PreviewControlBar bar)"""
4068 return _windows
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4070 def base_Initialize(*args
, **kwargs
):
4071 """base_Initialize()"""
4072 return _windows
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4074 def base_CreateCanvas(*args
, **kwargs
):
4075 """base_CreateCanvas()"""
4076 return _windows
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4078 def base_CreateControlBar(*args
, **kwargs
):
4079 """base_CreateControlBar()"""
4080 return _windows
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4083 class PyPreviewFramePtr(PyPreviewFrame
):
4084 def __init__(self
, this
):
4086 if not hasattr(self
,"thisown"): self
.thisown
= 0
4087 self
.__class
__ = PyPreviewFrame
4088 _windows
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4090 class PyPreviewControlBar(PreviewControlBar
):
4092 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4093 def __init__(self
, *args
, **kwargs
):
4095 __init__(PrintPreview preview, long buttons, Window parent,
4096 Point pos=DefaultPosition, Size size=DefaultSize,
4097 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4099 newobj
= _windows
.new_PyPreviewControlBar(*args
, **kwargs
)
4100 self
.this
= newobj
.this
4103 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4105 def _setCallbackInfo(*args
, **kwargs
):
4106 """_setCallbackInfo(PyObject self, PyObject _class)"""
4107 return _windows
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4109 def SetPrintPreview(*args
, **kwargs
):
4110 """SetPrintPreview(PrintPreview preview)"""
4111 return _windows
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4113 def base_CreateButtons(*args
, **kwargs
):
4114 """base_CreateButtons()"""
4115 return _windows
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4117 def base_SetZoomControl(*args
, **kwargs
):
4118 """base_SetZoomControl(int zoom)"""
4119 return _windows
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4122 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4123 def __init__(self
, this
):
4125 if not hasattr(self
,"thisown"): self
.thisown
= 0
4126 self
.__class
__ = PyPreviewControlBar
4127 _windows
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)