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=-1, Point pos=DefaultPosition,
28 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
29 String name=PanelNameStr) -> bool
31 Create the GUI part of the Window for 2-phase creation mode.
33 return _windows
.Panel_Create(*args
, **kwargs
)
35 def InitDialog(*args
, **kwargs
):
39 Sends an EVT_INIT_DIALOG event, whose handler usually transfers
40 data to the dialog via validators.
42 return _windows
.Panel_InitDialog(*args
, **kwargs
)
45 class PanelPtr(Panel
):
46 def __init__(self
, this
):
48 if not hasattr(self
,"thisown"): self
.thisown
= 0
49 self
.__class
__ = Panel
50 _windows
.Panel_swigregister(PanelPtr
)
52 def PrePanel(*args
, **kwargs
):
53 """PrePanel() -> Panel"""
54 val
= _windows
.new_PrePanel(*args
, **kwargs
)
58 #---------------------------------------------------------------------------
60 class ScrolledWindow(Panel
):
62 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
63 def __init__(self
, *args
, **kwargs
):
65 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
66 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
67 String name=PanelNameStr) -> ScrolledWindow
69 newobj
= _windows
.new_ScrolledWindow(*args
, **kwargs
)
70 self
.this
= newobj
.this
73 self
._setOORInfo
(self
)
75 def Create(*args
, **kwargs
):
77 Create(Window parent, int id=-1, Point pos=DefaultPosition,
78 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
79 String name=PanelNameStr) -> bool
81 Create the GUI part of the Window for 2-phase creation mode.
83 return _windows
.ScrolledWindow_Create(*args
, **kwargs
)
85 def SetScrollbars(*args
, **kwargs
):
87 SetScrollbars(int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
88 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
90 return _windows
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
92 def Scroll(*args
, **kwargs
):
93 """Scroll(int x, int y)"""
94 return _windows
.ScrolledWindow_Scroll(*args
, **kwargs
)
96 def GetScrollPageSize(*args
, **kwargs
):
97 """GetScrollPageSize(int orient) -> int"""
98 return _windows
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
100 def SetScrollPageSize(*args
, **kwargs
):
101 """SetScrollPageSize(int orient, int pageSize)"""
102 return _windows
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
104 def SetScrollRate(*args
, **kwargs
):
105 """SetScrollRate(int xstep, int ystep)"""
106 return _windows
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
108 def GetScrollPixelsPerUnit(*args
, **kwargs
):
110 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
112 Get the size of one logical unit in physical units.
114 return _windows
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
116 def EnableScrolling(*args
, **kwargs
):
117 """EnableScrolling(bool x_scrolling, bool y_scrolling)"""
118 return _windows
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
120 def GetViewStart(*args
, **kwargs
):
122 GetViewStart() -> (x,y)
126 return _windows
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
128 def SetScale(*args
, **kwargs
):
129 """SetScale(double xs, double ys)"""
130 return _windows
.ScrolledWindow_SetScale(*args
, **kwargs
)
132 def GetScaleX(*args
, **kwargs
):
133 """GetScaleX() -> double"""
134 return _windows
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
136 def GetScaleY(*args
, **kwargs
):
137 """GetScaleY() -> double"""
138 return _windows
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
140 def CalcScrolledPosition(*args
):
142 CalcScrolledPosition(Point pt) -> Point
143 CalcScrolledPosition(int x, int y) -> (sx, sy)
145 Translate between scrolled and unscrolled coordinates.
147 return _windows
.ScrolledWindow_CalcScrolledPosition(*args
)
149 def CalcUnscrolledPosition(*args
):
151 CalcUnscrolledPosition(Point pt) -> Point
152 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
154 Translate between scrolled and unscrolled coordinates.
156 return _windows
.ScrolledWindow_CalcUnscrolledPosition(*args
)
158 def AdjustScrollbars(*args
, **kwargs
):
159 """AdjustScrollbars()"""
160 return _windows
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
162 def CalcScrollInc(*args
, **kwargs
):
163 """CalcScrollInc(ScrollWinEvent event) -> int"""
164 return _windows
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
166 def SetTargetWindow(*args
, **kwargs
):
167 """SetTargetWindow(Window target)"""
168 return _windows
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
170 def GetTargetWindow(*args
, **kwargs
):
171 """GetTargetWindow() -> Window"""
172 return _windows
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
174 def SetTargetRect(*args
, **kwargs
):
175 """SetTargetRect(Rect rect)"""
176 return _windows
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
178 def GetTargetRect(*args
, **kwargs
):
179 """GetTargetRect() -> Rect"""
180 return _windows
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
183 class ScrolledWindowPtr(ScrolledWindow
):
184 def __init__(self
, this
):
186 if not hasattr(self
,"thisown"): self
.thisown
= 0
187 self
.__class
__ = ScrolledWindow
188 _windows
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
190 def PreScrolledWindow(*args
, **kwargs
):
191 """PreScrolledWindow() -> ScrolledWindow"""
192 val
= _windows
.new_PreScrolledWindow(*args
, **kwargs
)
196 #---------------------------------------------------------------------------
198 STAY_ON_TOP
= _windows
.STAY_ON_TOP
199 ICONIZE
= _windows
.ICONIZE
200 MINIMIZE
= _windows
.MINIMIZE
201 MAXIMIZE
= _windows
.MAXIMIZE
202 CLOSE_BOX
= _windows
.CLOSE_BOX
203 THICK_FRAME
= _windows
.THICK_FRAME
204 SYSTEM_MENU
= _windows
.SYSTEM_MENU
205 MINIMIZE_BOX
= _windows
.MINIMIZE_BOX
206 MAXIMIZE_BOX
= _windows
.MAXIMIZE_BOX
207 TINY_CAPTION_HORIZ
= _windows
.TINY_CAPTION_HORIZ
208 TINY_CAPTION_VERT
= _windows
.TINY_CAPTION_VERT
209 RESIZE_BOX
= _windows
.RESIZE_BOX
210 RESIZE_BORDER
= _windows
.RESIZE_BORDER
211 DIALOG_NO_PARENT
= _windows
.DIALOG_NO_PARENT
212 DEFAULT_FRAME_STYLE
= _windows
.DEFAULT_FRAME_STYLE
213 DEFAULT_DIALOG_STYLE
= _windows
.DEFAULT_DIALOG_STYLE
214 FRAME_TOOL_WINDOW
= _windows
.FRAME_TOOL_WINDOW
215 FRAME_FLOAT_ON_PARENT
= _windows
.FRAME_FLOAT_ON_PARENT
216 FRAME_NO_WINDOW_MENU
= _windows
.FRAME_NO_WINDOW_MENU
217 FRAME_NO_TASKBAR
= _windows
.FRAME_NO_TASKBAR
218 FRAME_SHAPED
= _windows
.FRAME_SHAPED
219 FULLSCREEN_NOMENUBAR
= _windows
.FULLSCREEN_NOMENUBAR
220 FULLSCREEN_NOTOOLBAR
= _windows
.FULLSCREEN_NOTOOLBAR
221 FULLSCREEN_NOSTATUSBAR
= _windows
.FULLSCREEN_NOSTATUSBAR
222 FULLSCREEN_NOBORDER
= _windows
.FULLSCREEN_NOBORDER
223 FULLSCREEN_NOCAPTION
= _windows
.FULLSCREEN_NOCAPTION
224 FULLSCREEN_ALL
= _windows
.FULLSCREEN_ALL
225 TOPLEVEL_EX_DIALOG
= _windows
.TOPLEVEL_EX_DIALOG
226 class TopLevelWindow(core
.Window
):
227 def __init__(self
): raise RuntimeError, "No constructor defined"
229 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
230 def Maximize(*args
, **kwargs
):
231 """Maximize(bool maximize=True)"""
232 return _windows
.TopLevelWindow_Maximize(*args
, **kwargs
)
234 def Restore(*args
, **kwargs
):
236 return _windows
.TopLevelWindow_Restore(*args
, **kwargs
)
238 def Iconize(*args
, **kwargs
):
239 """Iconize(bool iconize=True)"""
240 return _windows
.TopLevelWindow_Iconize(*args
, **kwargs
)
242 def IsMaximized(*args
, **kwargs
):
243 """IsMaximized() -> bool"""
244 return _windows
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
246 def IsIconized(*args
, **kwargs
):
247 """IsIconized() -> bool"""
248 return _windows
.TopLevelWindow_IsIconized(*args
, **kwargs
)
250 def GetIcon(*args
, **kwargs
):
251 """GetIcon() -> Icon"""
252 return _windows
.TopLevelWindow_GetIcon(*args
, **kwargs
)
254 def SetIcon(*args
, **kwargs
):
255 """SetIcon(Icon icon)"""
256 return _windows
.TopLevelWindow_SetIcon(*args
, **kwargs
)
258 def SetIcons(*args
, **kwargs
):
259 """SetIcons(wxIconBundle icons)"""
260 return _windows
.TopLevelWindow_SetIcons(*args
, **kwargs
)
262 def ShowFullScreen(*args
, **kwargs
):
263 """ShowFullScreen(bool show, long style=FULLSCREEN_ALL) -> bool"""
264 return _windows
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
266 def IsFullScreen(*args
, **kwargs
):
267 """IsFullScreen() -> bool"""
268 return _windows
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
270 def SetTitle(*args
, **kwargs
):
272 SetTitle(String title)
274 Sets the window's title. Applicable only to frames and dialogs.
276 return _windows
.TopLevelWindow_SetTitle(*args
, **kwargs
)
278 def GetTitle(*args
, **kwargs
):
282 Gets the window's title. Applicable only to frames and dialogs.
284 return _windows
.TopLevelWindow_GetTitle(*args
, **kwargs
)
286 def SetShape(*args
, **kwargs
):
287 """SetShape(Region region) -> bool"""
288 return _windows
.TopLevelWindow_SetShape(*args
, **kwargs
)
290 def MacSetMetalAppearance(*args
, **kwargs
):
291 """MacSetMetalAppearance(bool on)"""
292 return _windows
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
294 def MacGetMetalAppearance(*args
, **kwargs
):
295 """MacGetMetalAppearance() -> bool"""
296 return _windows
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
299 class TopLevelWindowPtr(TopLevelWindow
):
300 def __init__(self
, this
):
302 if not hasattr(self
,"thisown"): self
.thisown
= 0
303 self
.__class
__ = TopLevelWindow
304 _windows
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
306 FrameNameStr
= cvar
.FrameNameStr
307 DialogNameStr
= cvar
.DialogNameStr
308 StatusLineNameStr
= cvar
.StatusLineNameStr
309 ToolBarNameStr
= cvar
.ToolBarNameStr
311 #---------------------------------------------------------------------------
313 class Frame(TopLevelWindow
):
315 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
316 def __init__(self
, *args
, **kwargs
):
318 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
319 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
320 String name=FrameNameStr) -> Frame
322 newobj
= _windows
.new_Frame(*args
, **kwargs
)
323 self
.this
= newobj
.this
326 self
._setOORInfo
(self
)
328 def Create(*args
, **kwargs
):
330 Create(Window parent, int id, String title, Point pos=DefaultPosition,
331 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
332 String name=FrameNameStr) -> bool
334 return _windows
.Frame_Create(*args
, **kwargs
)
336 def GetClientAreaOrigin(*args
, **kwargs
):
338 GetClientAreaOrigin() -> Point
340 Get the origin of the client area of the window relative to the
341 window's top left corner (the client area may be shifted because of
342 the borders, scrollbars, other decorations...)
344 return _windows
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
346 def SendSizeEvent(*args
, **kwargs
):
347 """SendSizeEvent()"""
348 return _windows
.Frame_SendSizeEvent(*args
, **kwargs
)
350 def SetMenuBar(*args
, **kwargs
):
351 """SetMenuBar(MenuBar menubar)"""
352 return _windows
.Frame_SetMenuBar(*args
, **kwargs
)
354 def GetMenuBar(*args
, **kwargs
):
355 """GetMenuBar() -> MenuBar"""
356 return _windows
.Frame_GetMenuBar(*args
, **kwargs
)
358 def ProcessCommand(*args
, **kwargs
):
359 """ProcessCommand(int winid) -> bool"""
360 return _windows
.Frame_ProcessCommand(*args
, **kwargs
)
362 Command
= ProcessCommand
363 def CreateStatusBar(*args
, **kwargs
):
365 CreateStatusBar(int number=1, long style=ST_SIZEGRIP, int winid=0,
366 String name=StatusLineNameStr) -> StatusBar
368 return _windows
.Frame_CreateStatusBar(*args
, **kwargs
)
370 def GetStatusBar(*args
, **kwargs
):
371 """GetStatusBar() -> StatusBar"""
372 return _windows
.Frame_GetStatusBar(*args
, **kwargs
)
374 def SetStatusBar(*args
, **kwargs
):
375 """SetStatusBar(StatusBar statBar)"""
376 return _windows
.Frame_SetStatusBar(*args
, **kwargs
)
378 def SetStatusText(*args
, **kwargs
):
379 """SetStatusText(String text, int number=0)"""
380 return _windows
.Frame_SetStatusText(*args
, **kwargs
)
382 def SetStatusWidths(*args
, **kwargs
):
383 """SetStatusWidths(int widths, int widths_field)"""
384 return _windows
.Frame_SetStatusWidths(*args
, **kwargs
)
386 def PushStatusText(*args
, **kwargs
):
387 """PushStatusText(String text, int number=0)"""
388 return _windows
.Frame_PushStatusText(*args
, **kwargs
)
390 def PopStatusText(*args
, **kwargs
):
391 """PopStatusText(int number=0)"""
392 return _windows
.Frame_PopStatusText(*args
, **kwargs
)
394 def SetStatusBarPane(*args
, **kwargs
):
395 """SetStatusBarPane(int n)"""
396 return _windows
.Frame_SetStatusBarPane(*args
, **kwargs
)
398 def GetStatusBarPane(*args
, **kwargs
):
399 """GetStatusBarPane() -> int"""
400 return _windows
.Frame_GetStatusBarPane(*args
, **kwargs
)
402 def CreateToolBar(*args
, **kwargs
):
403 """CreateToolBar(long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
404 return _windows
.Frame_CreateToolBar(*args
, **kwargs
)
406 def GetToolBar(*args
, **kwargs
):
407 """GetToolBar() -> wxToolBar"""
408 return _windows
.Frame_GetToolBar(*args
, **kwargs
)
410 def SetToolBar(*args
, **kwargs
):
411 """SetToolBar(wxToolBar toolbar)"""
412 return _windows
.Frame_SetToolBar(*args
, **kwargs
)
414 def DoGiveHelp(*args
, **kwargs
):
415 """DoGiveHelp(String text, bool show)"""
416 return _windows
.Frame_DoGiveHelp(*args
, **kwargs
)
418 def DoMenuUpdates(*args
, **kwargs
):
419 """DoMenuUpdates(Menu menu=None)"""
420 return _windows
.Frame_DoMenuUpdates(*args
, **kwargs
)
423 class FramePtr(Frame
):
424 def __init__(self
, this
):
426 if not hasattr(self
,"thisown"): self
.thisown
= 0
427 self
.__class
__ = Frame
428 _windows
.Frame_swigregister(FramePtr
)
430 def PreFrame(*args
, **kwargs
):
431 """PreFrame() -> Frame"""
432 val
= _windows
.new_PreFrame(*args
, **kwargs
)
436 #---------------------------------------------------------------------------
438 class Dialog(TopLevelWindow
):
440 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
441 def __init__(self
, *args
, **kwargs
):
443 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
444 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
445 String name=DialogNameStr) -> Dialog
447 newobj
= _windows
.new_Dialog(*args
, **kwargs
)
448 self
.this
= newobj
.this
451 self
._setOORInfo
(self
)
453 def Create(*args
, **kwargs
):
455 Create(Window parent, int id, String title, Point pos=DefaultPosition,
456 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
457 String name=DialogNameStr) -> bool
459 return _windows
.Dialog_Create(*args
, **kwargs
)
461 def SetReturnCode(*args
, **kwargs
):
462 """SetReturnCode(int returnCode)"""
463 return _windows
.Dialog_SetReturnCode(*args
, **kwargs
)
465 def GetReturnCode(*args
, **kwargs
):
466 """GetReturnCode() -> int"""
467 return _windows
.Dialog_GetReturnCode(*args
, **kwargs
)
469 def CreateTextSizer(*args
, **kwargs
):
470 """CreateTextSizer(String message) -> Sizer"""
471 return _windows
.Dialog_CreateTextSizer(*args
, **kwargs
)
473 def CreateButtonSizer(*args
, **kwargs
):
474 """CreateButtonSizer(long flags) -> Sizer"""
475 return _windows
.Dialog_CreateButtonSizer(*args
, **kwargs
)
477 def IsModal(*args
, **kwargs
):
478 """IsModal() -> bool"""
479 return _windows
.Dialog_IsModal(*args
, **kwargs
)
481 def ShowModal(*args
, **kwargs
):
482 """ShowModal() -> int"""
483 return _windows
.Dialog_ShowModal(*args
, **kwargs
)
485 def EndModal(*args
, **kwargs
):
486 """EndModal(int retCode)"""
487 return _windows
.Dialog_EndModal(*args
, **kwargs
)
489 def IsModalShowing(*args
, **kwargs
):
490 """IsModalShowing() -> bool"""
491 return _windows
.Dialog_IsModalShowing(*args
, **kwargs
)
494 class DialogPtr(Dialog
):
495 def __init__(self
, this
):
497 if not hasattr(self
,"thisown"): self
.thisown
= 0
498 self
.__class
__ = Dialog
499 _windows
.Dialog_swigregister(DialogPtr
)
501 def PreDialog(*args
, **kwargs
):
502 """PreDialog() -> Dialog"""
503 val
= _windows
.new_PreDialog(*args
, **kwargs
)
507 #---------------------------------------------------------------------------
509 class MiniFrame(Frame
):
511 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
512 def __init__(self
, *args
, **kwargs
):
514 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
515 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
516 String name=FrameNameStr) -> MiniFrame
518 newobj
= _windows
.new_MiniFrame(*args
, **kwargs
)
519 self
.this
= newobj
.this
522 self
._setOORInfo
(self
)
524 def Create(*args
, **kwargs
):
526 Create(Window parent, int id, String title, Point pos=DefaultPosition,
527 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
528 String name=FrameNameStr) -> bool
530 return _windows
.MiniFrame_Create(*args
, **kwargs
)
533 class MiniFramePtr(MiniFrame
):
534 def __init__(self
, this
):
536 if not hasattr(self
,"thisown"): self
.thisown
= 0
537 self
.__class
__ = MiniFrame
538 _windows
.MiniFrame_swigregister(MiniFramePtr
)
540 def PreMiniFrame(*args
, **kwargs
):
541 """PreMiniFrame() -> MiniFrame"""
542 val
= _windows
.new_PreMiniFrame(*args
, **kwargs
)
546 #---------------------------------------------------------------------------
548 SPLASH_CENTRE_ON_PARENT
= _windows
.SPLASH_CENTRE_ON_PARENT
549 SPLASH_CENTRE_ON_SCREEN
= _windows
.SPLASH_CENTRE_ON_SCREEN
550 SPLASH_NO_CENTRE
= _windows
.SPLASH_NO_CENTRE
551 SPLASH_TIMEOUT
= _windows
.SPLASH_TIMEOUT
552 SPLASH_NO_TIMEOUT
= _windows
.SPLASH_NO_TIMEOUT
553 class SplashScreenWindow(core
.Window
):
555 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
556 def __init__(self
, *args
, **kwargs
):
558 __init__(Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
559 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
561 newobj
= _windows
.new_SplashScreenWindow(*args
, **kwargs
)
562 self
.this
= newobj
.this
565 self
._setOORInfo
(self
)
567 def SetBitmap(*args
, **kwargs
):
568 """SetBitmap(Bitmap bitmap)"""
569 return _windows
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
571 def GetBitmap(*args
, **kwargs
):
572 """GetBitmap() -> Bitmap"""
573 return _windows
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
576 class SplashScreenWindowPtr(SplashScreenWindow
):
577 def __init__(self
, this
):
579 if not hasattr(self
,"thisown"): self
.thisown
= 0
580 self
.__class
__ = SplashScreenWindow
581 _windows
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
583 class SplashScreen(Frame
):
585 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
586 def __init__(self
, *args
, **kwargs
):
588 __init__(Bitmap bitmap, long splashStyle, int milliseconds,
589 Window parent, int id, Point pos=DefaultPosition,
590 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
592 newobj
= _windows
.new_SplashScreen(*args
, **kwargs
)
593 self
.this
= newobj
.this
596 self
._setOORInfo
(self
)
598 def GetSplashStyle(*args
, **kwargs
):
599 """GetSplashStyle() -> long"""
600 return _windows
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
602 def GetSplashWindow(*args
, **kwargs
):
603 """GetSplashWindow() -> SplashScreenWindow"""
604 return _windows
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
606 def GetTimeout(*args
, **kwargs
):
607 """GetTimeout() -> int"""
608 return _windows
.SplashScreen_GetTimeout(*args
, **kwargs
)
611 class SplashScreenPtr(SplashScreen
):
612 def __init__(self
, this
):
614 if not hasattr(self
,"thisown"): self
.thisown
= 0
615 self
.__class
__ = SplashScreen
616 _windows
.SplashScreen_swigregister(SplashScreenPtr
)
618 #---------------------------------------------------------------------------
620 class StatusBar(core
.Window
):
622 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
623 def __init__(self
, *args
, **kwargs
):
624 """__init__(Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
625 newobj
= _windows
.new_StatusBar(*args
, **kwargs
)
626 self
.this
= newobj
.this
629 self
._setOORInfo
(self
)
631 def Create(*args
, **kwargs
):
632 """Create(Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
633 return _windows
.StatusBar_Create(*args
, **kwargs
)
635 def SetFieldsCount(*args
, **kwargs
):
636 """SetFieldsCount(int number=1)"""
637 return _windows
.StatusBar_SetFieldsCount(*args
, **kwargs
)
639 def GetFieldsCount(*args
, **kwargs
):
640 """GetFieldsCount() -> int"""
641 return _windows
.StatusBar_GetFieldsCount(*args
, **kwargs
)
643 def SetStatusText(*args
, **kwargs
):
644 """SetStatusText(String text, int number=0)"""
645 return _windows
.StatusBar_SetStatusText(*args
, **kwargs
)
647 def GetStatusText(*args
, **kwargs
):
648 """GetStatusText(int number=0) -> String"""
649 return _windows
.StatusBar_GetStatusText(*args
, **kwargs
)
651 def PushStatusText(*args
, **kwargs
):
652 """PushStatusText(String text, int number=0)"""
653 return _windows
.StatusBar_PushStatusText(*args
, **kwargs
)
655 def PopStatusText(*args
, **kwargs
):
656 """PopStatusText(int number=0)"""
657 return _windows
.StatusBar_PopStatusText(*args
, **kwargs
)
659 def SetStatusWidths(*args
, **kwargs
):
660 """SetStatusWidths(int widths, int widths_field)"""
661 return _windows
.StatusBar_SetStatusWidths(*args
, **kwargs
)
663 def GetFieldRect(*args
, **kwargs
):
664 """GetFieldRect(int i) -> Rect"""
665 return _windows
.StatusBar_GetFieldRect(*args
, **kwargs
)
667 def SetMinHeight(*args
, **kwargs
):
668 """SetMinHeight(int height)"""
669 return _windows
.StatusBar_SetMinHeight(*args
, **kwargs
)
671 def GetBorderX(*args
, **kwargs
):
672 """GetBorderX() -> int"""
673 return _windows
.StatusBar_GetBorderX(*args
, **kwargs
)
675 def GetBorderY(*args
, **kwargs
):
676 """GetBorderY() -> int"""
677 return _windows
.StatusBar_GetBorderY(*args
, **kwargs
)
680 class StatusBarPtr(StatusBar
):
681 def __init__(self
, this
):
683 if not hasattr(self
,"thisown"): self
.thisown
= 0
684 self
.__class
__ = StatusBar
685 _windows
.StatusBar_swigregister(StatusBarPtr
)
687 def PreStatusBar(*args
, **kwargs
):
688 """PreStatusBar() -> StatusBar"""
689 val
= _windows
.new_PreStatusBar(*args
, **kwargs
)
693 #---------------------------------------------------------------------------
695 SP_NOBORDER
= _windows
.SP_NOBORDER
696 SP_NOSASH
= _windows
.SP_NOSASH
697 SP_PERMIT_UNSPLIT
= _windows
.SP_PERMIT_UNSPLIT
698 SP_LIVE_UPDATE
= _windows
.SP_LIVE_UPDATE
699 SP_3DSASH
= _windows
.SP_3DSASH
700 SP_3DBORDER
= _windows
.SP_3DBORDER
701 SP_NO_XP_THEME
= _windows
.SP_NO_XP_THEME
702 SP_BORDER
= _windows
.SP_BORDER
703 SP_3D
= _windows
.SP_3D
704 SPLIT_HORIZONTAL
= _windows
.SPLIT_HORIZONTAL
705 SPLIT_VERTICAL
= _windows
.SPLIT_VERTICAL
706 SPLIT_DRAG_NONE
= _windows
.SPLIT_DRAG_NONE
707 SPLIT_DRAG_DRAGGING
= _windows
.SPLIT_DRAG_DRAGGING
708 SPLIT_DRAG_LEFT_DOWN
= _windows
.SPLIT_DRAG_LEFT_DOWN
709 class SplitterWindow(core
.Window
):
711 wx.SplitterWindow manages up to two subwindows or panes,
712 with an optional vertical or horizontal split which can be
713 used with the mouse or programmatically.
717 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
718 def __init__(self
, *args
, **kwargs
):
720 __init__(Window parent, int id=-1, Point pos=DefaultPosition,
721 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
723 Constructor. Creates and shows a SplitterWindow.
725 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
726 newobj
= _windows
.new_SplitterWindow(*args
, **kwargs
)
727 self
.this
= newobj
.this
730 self
._setOORInfo
(self
)
732 def Create(*args
, **kwargs
):
734 Create(Window parent, int id=-1, Point pos=DefaultPosition,
735 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
737 Create the GUI part of the SplitterWindow for the 2-phase create.
739 return _windows
.SplitterWindow_Create(*args
, **kwargs
)
741 def GetWindow1(*args
, **kwargs
):
743 GetWindow1() -> Window
745 Gets the only or left/top pane.
747 return _windows
.SplitterWindow_GetWindow1(*args
, **kwargs
)
749 def GetWindow2(*args
, **kwargs
):
751 GetWindow2() -> Window
753 Gets the right/bottom pane.
755 return _windows
.SplitterWindow_GetWindow2(*args
, **kwargs
)
757 def SetSplitMode(*args
, **kwargs
):
759 SetSplitMode(int mode)
761 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
762 wx.SPLIT_HORIZONTAL. This only sets the internal variable;
763 does not update the display.
765 return _windows
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
767 def GetSplitMode(*args
, **kwargs
):
769 GetSplitMode() -> int
773 return _windows
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
775 def Initialize(*args
, **kwargs
):
777 Initialize(Window window)
779 Initializes the splitter window to have one pane. This
780 should be called if you wish to initially view only a single
781 pane in the splitter window.
783 return _windows
.SplitterWindow_Initialize(*args
, **kwargs
)
785 def SplitVertically(*args
, **kwargs
):
787 SplitVertically(Window window1, Window window2, int sashPosition=0) -> bool
789 Initializes the left and right panes of the splitter window.
791 window1 The left pane.
792 window2 The right pane.
793 sashPosition The initial position of the sash. If this
794 value is positive, it specifies the size
795 of the left pane. If it is negative, it is
796 absolute value gives the size of the right
797 pane. Finally, specify 0 (default) to
798 choose the default position (half of the
801 Returns True if successful, False otherwise (the window was
804 SplitVertically should be called if you wish to initially
805 view two panes. It can also be called at any subsequent
806 time, but the application should check that the window is
807 not currently split using IsSplit.
809 return _windows
.SplitterWindow_SplitVertically(*args
, **kwargs
)
811 def SplitHorizontally(*args
, **kwargs
):
813 SplitHorizontally(Window window1, Window window2, int sashPosition=0) -> bool
815 Initializes the top and bottom panes of the splitter window.
817 window1 The top pane.
818 window2 The bottom pane.
819 sashPosition The initial position of the sash. If this
820 value is positive, it specifies the size
821 of the upper pane. If it is negative, it
822 is absolute value gives the size of the
823 lower pane. Finally, specify 0 (default)
824 to choose the default position (half of
825 the total window height).
827 Returns True if successful, False otherwise (the window was
830 SplitHorizontally should be called if you wish to initially
831 view two panes. It can also be called at any subsequent
832 time, but the application should check that the window is
833 not currently split using IsSplit.
835 return _windows
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
837 def Unsplit(*args
, **kwargs
):
839 Unsplit(Window toRemove=None) -> bool
841 Unsplits the window. Pass the pane to remove, or None to
842 remove the right or bottom pane. Returns True if
843 successful, False otherwise (the window was not split).
845 This function will not actually delete the pane being
846 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
847 for the desired behaviour. By default, the pane being
848 removed is only hidden.
850 return _windows
.SplitterWindow_Unsplit(*args
, **kwargs
)
852 def ReplaceWindow(*args
, **kwargs
):
854 ReplaceWindow(Window winOld, Window winNew) -> bool
856 This function replaces one of the windows managed by the
857 SplitterWindow with another one. It is in general better to
858 use it instead of calling Unsplit() and then resplitting the
859 window back because it will provoke much less flicker. It is
860 valid to call this function whether the splitter has two
863 Both parameters should be non-None and winOld must specify
864 one of the windows managed by the splitter. If the
865 parameters are incorrect or the window couldn't be replaced,
866 False is returned. Otherwise the function will return True,
867 but please notice that it will not Destroy the replaced
868 window and you may wish to do it yourself.
870 return _windows
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
872 def UpdateSize(*args
, **kwargs
):
876 Causes any pending sizing of the sash and child panes to
877 take place immediately.
879 Such resizing normally takes place in idle time, in order to
880 wait for layout to be completed. However, this can cause
881 unacceptable flicker as the panes are resized after the
882 window has been shown. To work around this, you can perform
883 window layout (for example by sending a size event to the
884 parent window), and then call this function, before showing
885 the top-level window.
887 return _windows
.SplitterWindow_UpdateSize(*args
, **kwargs
)
889 def IsSplit(*args
, **kwargs
):
895 return _windows
.SplitterWindow_IsSplit(*args
, **kwargs
)
897 def SetSashSize(*args
, **kwargs
):
899 SetSashSize(int width)
903 return _windows
.SplitterWindow_SetSashSize(*args
, **kwargs
)
905 def SetBorderSize(*args
, **kwargs
):
907 SetBorderSize(int width)
911 return _windows
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
913 def GetSashSize(*args
, **kwargs
):
919 return _windows
.SplitterWindow_GetSashSize(*args
, **kwargs
)
921 def GetBorderSize(*args
, **kwargs
):
923 GetBorderSize() -> int
927 return _windows
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
929 def SetSashPosition(*args
, **kwargs
):
931 SetSashPosition(int position, bool redraw=True)
933 Sets the sash position, in pixels. If redraw is Ttrue then
934 the panes are resized and the sash and border are redrawn.
936 return _windows
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
938 def GetSashPosition(*args
, **kwargs
):
940 GetSashPosition() -> int
942 Returns the surrent sash position.
944 return _windows
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
946 def SetMinimumPaneSize(*args
, **kwargs
):
948 SetMinimumPaneSize(int min)
950 Sets the minimum pane size in pixels.
952 The default minimum pane size is zero, which means that
953 either pane can be reduced to zero by dragging the sash,
954 thus removing one of the panes. To prevent this behaviour (and
955 veto out-of-range sash dragging), set a minimum size,
956 for example 20 pixels. If the wx.SP_PERMIT_UNSPLIT style is
957 used when a splitter window is created, the window may be
958 unsplit even if minimum size is non-zero.
960 return _windows
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
962 def GetMinimumPaneSize(*args
, **kwargs
):
964 GetMinimumPaneSize() -> int
966 Gets the minimum pane size in pixels.
968 return _windows
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
970 def SashHitTest(*args
, **kwargs
):
972 SashHitTest(int x, int y, int tolerance=5) -> bool
974 Tests for x, y over the sash
976 return _windows
.SplitterWindow_SashHitTest(*args
, **kwargs
)
978 def SizeWindows(*args
, **kwargs
):
984 return _windows
.SplitterWindow_SizeWindows(*args
, **kwargs
)
986 def SetNeedUpdating(*args
, **kwargs
):
987 """SetNeedUpdating(bool needUpdating)"""
988 return _windows
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
990 def GetNeedUpdating(*args
, **kwargs
):
991 """GetNeedUpdating() -> bool"""
992 return _windows
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
995 class SplitterWindowPtr(SplitterWindow
):
996 def __init__(self
, this
):
998 if not hasattr(self
,"thisown"): self
.thisown
= 0
999 self
.__class
__ = SplitterWindow
1000 _windows
.SplitterWindow_swigregister(SplitterWindowPtr
)
1001 SplitterNameStr
= cvar
.SplitterNameStr
1003 def PreSplitterWindow(*args
, **kwargs
):
1005 PreSplitterWindow() -> SplitterWindow
1007 Precreate a SplitterWindow for 2-phase creation.
1009 val
= _windows
.new_PreSplitterWindow(*args
, **kwargs
)
1013 class SplitterEvent(core
.NotifyEvent
):
1014 """This class represents the events generated by a splitter control."""
1016 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1017 def __init__(self
, *args
, **kwargs
):
1019 __init__(wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1021 This class represents the events generated by a splitter control.
1023 newobj
= _windows
.new_SplitterEvent(*args
, **kwargs
)
1024 self
.this
= newobj
.this
1027 def SetSashPosition(*args
, **kwargs
):
1029 SetSashPosition(int pos)
1031 This funciton is only meaningful during
1032 EVT_SPLITTER_SASH_POS_CHANGING and
1033 EVT_SPLITTER_SASH_POS_CHANGED events. In the case of
1034 _CHANGED events, sets the the new sash position. In the case
1035 of _CHANGING events, sets the new tracking bar position so
1036 visual feedback during dragging will represent that change
1037 that will actually take place. Set to -1 from the event
1038 handler code to prevent repositioning.
1040 return _windows
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1042 def GetSashPosition(*args
, **kwargs
):
1044 GetSashPosition() -> int
1046 Returns the new sash position while in
1047 EVT_SPLITTER_SASH_POS_CHANGING and
1048 EVT_SPLITTER_SASH_POS_CHANGED events.
1050 return _windows
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1052 def GetWindowBeingRemoved(*args
, **kwargs
):
1054 GetWindowBeingRemoved() -> Window
1056 Returns a pointer to the window being removed when a
1057 splitter window is unsplit.
1059 return _windows
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1061 def GetX(*args
, **kwargs
):
1065 Returns the x coordinate of the double-click point in a
1066 EVT_SPLITTER_DCLICK event.
1068 return _windows
.SplitterEvent_GetX(*args
, **kwargs
)
1070 def GetY(*args
, **kwargs
):
1074 Returns the y coordinate of the double-click point in a
1075 EVT_SPLITTER_DCLICK event.
1077 return _windows
.SplitterEvent_GetY(*args
, **kwargs
)
1080 class SplitterEventPtr(SplitterEvent
):
1081 def __init__(self
, this
):
1083 if not hasattr(self
,"thisown"): self
.thisown
= 0
1084 self
.__class
__ = SplitterEvent
1085 _windows
.SplitterEvent_swigregister(SplitterEventPtr
)
1087 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1088 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1089 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1090 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1091 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1092 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1093 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1094 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1095 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1097 #---------------------------------------------------------------------------
1099 SASH_DRAG_NONE
= _windows
.SASH_DRAG_NONE
1100 SASH_DRAG_DRAGGING
= _windows
.SASH_DRAG_DRAGGING
1101 SASH_DRAG_LEFT_DOWN
= _windows
.SASH_DRAG_LEFT_DOWN
1102 SW_NOBORDER
= _windows
.SW_NOBORDER
1103 SW_BORDER
= _windows
.SW_BORDER
1104 SW_3DSASH
= _windows
.SW_3DSASH
1105 SW_3DBORDER
= _windows
.SW_3DBORDER
1106 SW_3D
= _windows
.SW_3D
1107 SASH_TOP
= _windows
.SASH_TOP
1108 SASH_RIGHT
= _windows
.SASH_RIGHT
1109 SASH_BOTTOM
= _windows
.SASH_BOTTOM
1110 SASH_LEFT
= _windows
.SASH_LEFT
1111 SASH_NONE
= _windows
.SASH_NONE
1112 class SashWindow(core
.Window
):
1114 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1115 def __init__(self
, *args
, **kwargs
):
1117 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1118 long style=wxCLIP_CHILDREN|wxSW_3D,
1119 String name=SashNameStr) -> SashWindow
1121 newobj
= _windows
.new_SashWindow(*args
, **kwargs
)
1122 self
.this
= newobj
.this
1125 self
._setOORInfo
(self
)
1127 def Create(*args
, **kwargs
):
1129 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1130 long style=wxCLIP_CHILDREN|wxSW_3D,
1131 String name=SashNameStr) -> bool
1133 return _windows
.SashWindow_Create(*args
, **kwargs
)
1135 def SetSashVisible(*args
, **kwargs
):
1136 """SetSashVisible(int edge, bool sash)"""
1137 return _windows
.SashWindow_SetSashVisible(*args
, **kwargs
)
1139 def GetSashVisible(*args
, **kwargs
):
1140 """GetSashVisible(int edge) -> bool"""
1141 return _windows
.SashWindow_GetSashVisible(*args
, **kwargs
)
1143 def SetSashBorder(*args
, **kwargs
):
1144 """SetSashBorder(int edge, bool border)"""
1145 return _windows
.SashWindow_SetSashBorder(*args
, **kwargs
)
1147 def HasBorder(*args
, **kwargs
):
1148 """HasBorder(int edge) -> bool"""
1149 return _windows
.SashWindow_HasBorder(*args
, **kwargs
)
1151 def GetEdgeMargin(*args
, **kwargs
):
1152 """GetEdgeMargin(int edge) -> int"""
1153 return _windows
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1155 def SetDefaultBorderSize(*args
, **kwargs
):
1156 """SetDefaultBorderSize(int width)"""
1157 return _windows
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1159 def GetDefaultBorderSize(*args
, **kwargs
):
1160 """GetDefaultBorderSize() -> int"""
1161 return _windows
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1163 def SetExtraBorderSize(*args
, **kwargs
):
1164 """SetExtraBorderSize(int width)"""
1165 return _windows
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1167 def GetExtraBorderSize(*args
, **kwargs
):
1168 """GetExtraBorderSize() -> int"""
1169 return _windows
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1171 def SetMinimumSizeX(*args
, **kwargs
):
1172 """SetMinimumSizeX(int min)"""
1173 return _windows
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1175 def SetMinimumSizeY(*args
, **kwargs
):
1176 """SetMinimumSizeY(int min)"""
1177 return _windows
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1179 def GetMinimumSizeX(*args
, **kwargs
):
1180 """GetMinimumSizeX() -> int"""
1181 return _windows
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1183 def GetMinimumSizeY(*args
, **kwargs
):
1184 """GetMinimumSizeY() -> int"""
1185 return _windows
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1187 def SetMaximumSizeX(*args
, **kwargs
):
1188 """SetMaximumSizeX(int max)"""
1189 return _windows
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1191 def SetMaximumSizeY(*args
, **kwargs
):
1192 """SetMaximumSizeY(int max)"""
1193 return _windows
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1195 def GetMaximumSizeX(*args
, **kwargs
):
1196 """GetMaximumSizeX() -> int"""
1197 return _windows
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1199 def GetMaximumSizeY(*args
, **kwargs
):
1200 """GetMaximumSizeY() -> int"""
1201 return _windows
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1203 def SashHitTest(*args
, **kwargs
):
1204 """SashHitTest(int x, int y, int tolerance=2) -> int"""
1205 return _windows
.SashWindow_SashHitTest(*args
, **kwargs
)
1207 def SizeWindows(*args
, **kwargs
):
1209 return _windows
.SashWindow_SizeWindows(*args
, **kwargs
)
1212 class SashWindowPtr(SashWindow
):
1213 def __init__(self
, this
):
1215 if not hasattr(self
,"thisown"): self
.thisown
= 0
1216 self
.__class
__ = SashWindow
1217 _windows
.SashWindow_swigregister(SashWindowPtr
)
1218 SashNameStr
= cvar
.SashNameStr
1219 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1221 def PreSashWindow(*args
, **kwargs
):
1222 """PreSashWindow() -> SashWindow"""
1223 val
= _windows
.new_PreSashWindow(*args
, **kwargs
)
1227 SASH_STATUS_OK
= _windows
.SASH_STATUS_OK
1228 SASH_STATUS_OUT_OF_RANGE
= _windows
.SASH_STATUS_OUT_OF_RANGE
1229 class SashEvent(core
.CommandEvent
):
1231 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1232 def __init__(self
, *args
, **kwargs
):
1233 """__init__(int id=0, int edge=SASH_NONE) -> SashEvent"""
1234 newobj
= _windows
.new_SashEvent(*args
, **kwargs
)
1235 self
.this
= newobj
.this
1238 def SetEdge(*args
, **kwargs
):
1239 """SetEdge(int edge)"""
1240 return _windows
.SashEvent_SetEdge(*args
, **kwargs
)
1242 def GetEdge(*args
, **kwargs
):
1243 """GetEdge() -> int"""
1244 return _windows
.SashEvent_GetEdge(*args
, **kwargs
)
1246 def SetDragRect(*args
, **kwargs
):
1247 """SetDragRect(Rect rect)"""
1248 return _windows
.SashEvent_SetDragRect(*args
, **kwargs
)
1250 def GetDragRect(*args
, **kwargs
):
1251 """GetDragRect() -> Rect"""
1252 return _windows
.SashEvent_GetDragRect(*args
, **kwargs
)
1254 def SetDragStatus(*args
, **kwargs
):
1255 """SetDragStatus(int status)"""
1256 return _windows
.SashEvent_SetDragStatus(*args
, **kwargs
)
1258 def GetDragStatus(*args
, **kwargs
):
1259 """GetDragStatus() -> int"""
1260 return _windows
.SashEvent_GetDragStatus(*args
, **kwargs
)
1263 class SashEventPtr(SashEvent
):
1264 def __init__(self
, this
):
1266 if not hasattr(self
,"thisown"): self
.thisown
= 0
1267 self
.__class
__ = SashEvent
1268 _windows
.SashEvent_swigregister(SashEventPtr
)
1270 wxEVT_SASH_DRAGGED
= _windows
.wxEVT_SASH_DRAGGED
1271 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1272 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1274 #---------------------------------------------------------------------------
1276 LAYOUT_HORIZONTAL
= _windows
.LAYOUT_HORIZONTAL
1277 LAYOUT_VERTICAL
= _windows
.LAYOUT_VERTICAL
1278 LAYOUT_NONE
= _windows
.LAYOUT_NONE
1279 LAYOUT_TOP
= _windows
.LAYOUT_TOP
1280 LAYOUT_LEFT
= _windows
.LAYOUT_LEFT
1281 LAYOUT_RIGHT
= _windows
.LAYOUT_RIGHT
1282 LAYOUT_BOTTOM
= _windows
.LAYOUT_BOTTOM
1283 LAYOUT_LENGTH_Y
= _windows
.LAYOUT_LENGTH_Y
1284 LAYOUT_LENGTH_X
= _windows
.LAYOUT_LENGTH_X
1285 LAYOUT_MRU_LENGTH
= _windows
.LAYOUT_MRU_LENGTH
1286 LAYOUT_QUERY
= _windows
.LAYOUT_QUERY
1287 wxEVT_QUERY_LAYOUT_INFO
= _windows
.wxEVT_QUERY_LAYOUT_INFO
1288 wxEVT_CALCULATE_LAYOUT
= _windows
.wxEVT_CALCULATE_LAYOUT
1289 class QueryLayoutInfoEvent(core
.Event
):
1291 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1292 def __init__(self
, *args
, **kwargs
):
1293 """__init__(int id=0) -> QueryLayoutInfoEvent"""
1294 newobj
= _windows
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1295 self
.this
= newobj
.this
1298 def SetRequestedLength(*args
, **kwargs
):
1299 """SetRequestedLength(int length)"""
1300 return _windows
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1302 def GetRequestedLength(*args
, **kwargs
):
1303 """GetRequestedLength() -> int"""
1304 return _windows
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1306 def SetFlags(*args
, **kwargs
):
1307 """SetFlags(int flags)"""
1308 return _windows
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1310 def GetFlags(*args
, **kwargs
):
1311 """GetFlags() -> int"""
1312 return _windows
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1314 def SetSize(*args
, **kwargs
):
1315 """SetSize(Size size)"""
1316 return _windows
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1318 def GetSize(*args
, **kwargs
):
1319 """GetSize() -> Size"""
1320 return _windows
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1322 def SetOrientation(*args
, **kwargs
):
1323 """SetOrientation(int orient)"""
1324 return _windows
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1326 def GetOrientation(*args
, **kwargs
):
1327 """GetOrientation() -> int"""
1328 return _windows
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1330 def SetAlignment(*args
, **kwargs
):
1331 """SetAlignment(int align)"""
1332 return _windows
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1334 def GetAlignment(*args
, **kwargs
):
1335 """GetAlignment() -> int"""
1336 return _windows
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1339 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1340 def __init__(self
, this
):
1342 if not hasattr(self
,"thisown"): self
.thisown
= 0
1343 self
.__class
__ = QueryLayoutInfoEvent
1344 _windows
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1346 class CalculateLayoutEvent(core
.Event
):
1348 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1349 def __init__(self
, *args
, **kwargs
):
1350 """__init__(int id=0) -> CalculateLayoutEvent"""
1351 newobj
= _windows
.new_CalculateLayoutEvent(*args
, **kwargs
)
1352 self
.this
= newobj
.this
1355 def SetFlags(*args
, **kwargs
):
1356 """SetFlags(int flags)"""
1357 return _windows
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1359 def GetFlags(*args
, **kwargs
):
1360 """GetFlags() -> int"""
1361 return _windows
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1363 def SetRect(*args
, **kwargs
):
1364 """SetRect(Rect rect)"""
1365 return _windows
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1367 def GetRect(*args
, **kwargs
):
1368 """GetRect() -> Rect"""
1369 return _windows
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1372 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1373 def __init__(self
, this
):
1375 if not hasattr(self
,"thisown"): self
.thisown
= 0
1376 self
.__class
__ = CalculateLayoutEvent
1377 _windows
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1379 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1380 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1382 class SashLayoutWindow(SashWindow
):
1384 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1385 def __init__(self
, *args
, **kwargs
):
1387 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1388 long style=wxCLIP_CHILDREN|wxSW_3D,
1389 String name=SashLayoutNameStr) -> SashLayoutWindow
1391 newobj
= _windows
.new_SashLayoutWindow(*args
, **kwargs
)
1392 self
.this
= newobj
.this
1395 self
._setOORInfo
(self
)
1397 def Create(*args
, **kwargs
):
1399 Create(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1400 long style=wxCLIP_CHILDREN|wxSW_3D,
1401 String name=SashLayoutNameStr) -> bool
1403 return _windows
.SashLayoutWindow_Create(*args
, **kwargs
)
1405 def GetAlignment(*args
, **kwargs
):
1406 """GetAlignment() -> int"""
1407 return _windows
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1409 def GetOrientation(*args
, **kwargs
):
1410 """GetOrientation() -> int"""
1411 return _windows
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1413 def SetAlignment(*args
, **kwargs
):
1414 """SetAlignment(int alignment)"""
1415 return _windows
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1417 def SetDefaultSize(*args
, **kwargs
):
1418 """SetDefaultSize(Size size)"""
1419 return _windows
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1421 def SetOrientation(*args
, **kwargs
):
1422 """SetOrientation(int orientation)"""
1423 return _windows
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1426 class SashLayoutWindowPtr(SashLayoutWindow
):
1427 def __init__(self
, this
):
1429 if not hasattr(self
,"thisown"): self
.thisown
= 0
1430 self
.__class
__ = SashLayoutWindow
1431 _windows
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1433 def PreSashLayoutWindow(*args
, **kwargs
):
1434 """PreSashLayoutWindow() -> SashLayoutWindow"""
1435 val
= _windows
.new_PreSashLayoutWindow(*args
, **kwargs
)
1439 class LayoutAlgorithm(core
.Object
):
1441 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1442 def __init__(self
, *args
, **kwargs
):
1443 """__init__() -> LayoutAlgorithm"""
1444 newobj
= _windows
.new_LayoutAlgorithm(*args
, **kwargs
)
1445 self
.this
= newobj
.this
1448 def __del__(self
, destroy
=_windows
.delete_LayoutAlgorithm
):
1451 if self
.thisown
: destroy(self
)
1454 def LayoutMDIFrame(*args
, **kwargs
):
1455 """LayoutMDIFrame(MDIParentFrame frame, Rect rect=None) -> bool"""
1456 return _windows
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1458 def LayoutFrame(*args
, **kwargs
):
1459 """LayoutFrame(Frame frame, Window mainWindow=None) -> bool"""
1460 return _windows
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1462 def LayoutWindow(*args
, **kwargs
):
1463 """LayoutWindow(Window parent, Window mainWindow=None) -> bool"""
1464 return _windows
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1467 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1468 def __init__(self
, this
):
1470 if not hasattr(self
,"thisown"): self
.thisown
= 0
1471 self
.__class
__ = LayoutAlgorithm
1472 _windows
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1474 class PopupWindow(core
.Window
):
1476 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1477 def __init__(self
, *args
, **kwargs
):
1478 """__init__(Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1479 newobj
= _windows
.new_PopupWindow(*args
, **kwargs
)
1480 self
.this
= newobj
.this
1484 class PopupWindowPtr(PopupWindow
):
1485 def __init__(self
, this
):
1487 if not hasattr(self
,"thisown"): self
.thisown
= 0
1488 self
.__class
__ = PopupWindow
1489 _windows
.PopupWindow_swigregister(PopupWindowPtr
)
1491 def PrePopupWindow(*args
, **kwargs
):
1492 """PrePopupWindow() -> PopupWindow"""
1493 val
= _windows
.new_PrePopupWindow(*args
, **kwargs
)
1497 class PopupTransientWindow(PopupWindow
):
1499 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1500 def __init__(self
, *args
, **kwargs
):
1501 """__init__(Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1502 newobj
= _windows
.new_PopupTransientWindow(*args
, **kwargs
)
1503 self
.this
= newobj
.this
1507 class PopupTransientWindowPtr(PopupTransientWindow
):
1508 def __init__(self
, this
):
1510 if not hasattr(self
,"thisown"): self
.thisown
= 0
1511 self
.__class
__ = PopupTransientWindow
1512 _windows
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1514 def PrePopupTransientWindow(*args
, **kwargs
):
1515 """PrePopupTransientWindow() -> PopupTransientWindow"""
1516 val
= _windows
.new_PrePopupTransientWindow(*args
, **kwargs
)
1520 #---------------------------------------------------------------------------
1522 class TipWindow(Frame
):
1524 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1525 def __init__(self
, *args
, **kwargs
):
1526 """__init__(Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1527 newobj
= _windows
.new_TipWindow(*args
, **kwargs
)
1528 self
.this
= newobj
.this
1531 self
._setOORInfo
(self
)
1533 def SetBoundingRect(*args
, **kwargs
):
1534 """SetBoundingRect(Rect rectBound)"""
1535 return _windows
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1537 def Close(*args
, **kwargs
):
1539 return _windows
.TipWindow_Close(*args
, **kwargs
)
1542 class TipWindowPtr(TipWindow
):
1543 def __init__(self
, this
):
1545 if not hasattr(self
,"thisown"): self
.thisown
= 0
1546 self
.__class
__ = TipWindow
1547 _windows
.TipWindow_swigregister(TipWindowPtr
)
1549 #---------------------------------------------------------------------------
1551 class VScrolledWindow(Panel
):
1553 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1554 def __init__(self
, *args
, **kwargs
):
1556 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1557 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1559 newobj
= _windows
.new_VScrolledWindow(*args
, **kwargs
)
1560 self
.this
= newobj
.this
1563 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1565 def _setCallbackInfo(*args
, **kwargs
):
1566 """_setCallbackInfo(PyObject self, PyObject _class)"""
1567 return _windows
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1569 def Create(*args
, **kwargs
):
1571 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1572 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1574 return _windows
.VScrolledWindow_Create(*args
, **kwargs
)
1576 def SetLineCount(*args
, **kwargs
):
1577 """SetLineCount(size_t count)"""
1578 return _windows
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1580 def ScrollToLine(*args
, **kwargs
):
1581 """ScrollToLine(size_t line) -> bool"""
1582 return _windows
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1584 def ScrollLines(*args
, **kwargs
):
1586 ScrollLines(int lines) -> bool
1588 If the platform and window class supports it, scrolls the window by
1589 the given number of lines down, if lines is positive, or up if lines
1590 is negative. Returns True if the window was scrolled, False if it was
1591 already on top/bottom and nothing was done.
1593 return _windows
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1595 def ScrollPages(*args
, **kwargs
):
1597 ScrollPages(int pages) -> bool
1599 If the platform and window class supports it, scrolls the window by
1600 the given number of pages down, if pages is positive, or up if pages
1601 is negative. Returns True if the window was scrolled, False if it was
1602 already on top/bottom and nothing was done.
1604 return _windows
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1606 def RefreshLine(*args
, **kwargs
):
1607 """RefreshLine(size_t line)"""
1608 return _windows
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1610 def RefreshLines(*args
, **kwargs
):
1611 """RefreshLines(size_t from, size_t to)"""
1612 return _windows
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1614 def HitTestXT(*args
, **kwargs
):
1616 HitTestXT(int x, int y) -> int
1618 Test where the given (in client coords) point lies
1620 return _windows
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1622 def HitTest(*args
, **kwargs
):
1624 HitTest(Point pt) -> int
1626 Test where the given (in client coords) point lies
1628 return _windows
.VScrolledWindow_HitTest(*args
, **kwargs
)
1630 def RefreshAll(*args
, **kwargs
):
1632 return _windows
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1634 def GetLineCount(*args
, **kwargs
):
1635 """GetLineCount() -> size_t"""
1636 return _windows
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1638 def GetFirstVisibleLine(*args
, **kwargs
):
1639 """GetFirstVisibleLine() -> size_t"""
1640 return _windows
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1642 def GetLastVisibleLine(*args
, **kwargs
):
1643 """GetLastVisibleLine() -> size_t"""
1644 return _windows
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1646 def IsVisible(*args
, **kwargs
):
1647 """IsVisible(size_t line) -> bool"""
1648 return _windows
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1651 class VScrolledWindowPtr(VScrolledWindow
):
1652 def __init__(self
, this
):
1654 if not hasattr(self
,"thisown"): self
.thisown
= 0
1655 self
.__class
__ = VScrolledWindow
1656 _windows
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1658 def PreVScrolledWindow(*args
, **kwargs
):
1659 """PreVScrolledWindow() -> VScrolledWindow"""
1660 val
= _windows
.new_PreVScrolledWindow(*args
, **kwargs
)
1664 class VListBox(VScrolledWindow
):
1666 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1667 def __init__(self
, *args
, **kwargs
):
1669 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1670 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1672 newobj
= _windows
.new_VListBox(*args
, **kwargs
)
1673 self
.this
= newobj
.this
1676 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1678 def _setCallbackInfo(*args
, **kwargs
):
1679 """_setCallbackInfo(PyObject self, PyObject _class)"""
1680 return _windows
.VListBox__setCallbackInfo(*args
, **kwargs
)
1682 def Create(*args
, **kwargs
):
1684 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1685 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1687 return _windows
.VListBox_Create(*args
, **kwargs
)
1689 def GetItemCount(*args
, **kwargs
):
1690 """GetItemCount() -> size_t"""
1691 return _windows
.VListBox_GetItemCount(*args
, **kwargs
)
1693 def HasMultipleSelection(*args
, **kwargs
):
1694 """HasMultipleSelection() -> bool"""
1695 return _windows
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1697 def GetSelection(*args
, **kwargs
):
1698 """GetSelection() -> int"""
1699 return _windows
.VListBox_GetSelection(*args
, **kwargs
)
1701 def IsCurrent(*args
, **kwargs
):
1702 """IsCurrent(size_t item) -> bool"""
1703 return _windows
.VListBox_IsCurrent(*args
, **kwargs
)
1705 def IsSelected(*args
, **kwargs
):
1706 """IsSelected(size_t item) -> bool"""
1707 return _windows
.VListBox_IsSelected(*args
, **kwargs
)
1709 def GetSelectedCount(*args
, **kwargs
):
1710 """GetSelectedCount() -> size_t"""
1711 return _windows
.VListBox_GetSelectedCount(*args
, **kwargs
)
1713 def GetFirstSelected(*args
, **kwargs
):
1714 """GetFirstSelected(unsigned long cookie) -> int"""
1715 return _windows
.VListBox_GetFirstSelected(*args
, **kwargs
)
1717 def GetNextSelected(*args
, **kwargs
):
1718 """GetNextSelected(unsigned long cookie) -> int"""
1719 return _windows
.VListBox_GetNextSelected(*args
, **kwargs
)
1721 def GetMargins(*args
, **kwargs
):
1722 """GetMargins() -> Point"""
1723 return _windows
.VListBox_GetMargins(*args
, **kwargs
)
1725 def GetSelectionBackground(*args
, **kwargs
):
1726 """GetSelectionBackground() -> Colour"""
1727 return _windows
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1729 def SetItemCount(*args
, **kwargs
):
1730 """SetItemCount(size_t count)"""
1731 return _windows
.VListBox_SetItemCount(*args
, **kwargs
)
1733 def Clear(*args
, **kwargs
):
1735 return _windows
.VListBox_Clear(*args
, **kwargs
)
1737 def SetSelection(*args
, **kwargs
):
1738 """SetSelection(int selection)"""
1739 return _windows
.VListBox_SetSelection(*args
, **kwargs
)
1741 def Select(*args
, **kwargs
):
1742 """Select(size_t item, bool select=True) -> bool"""
1743 return _windows
.VListBox_Select(*args
, **kwargs
)
1745 def SelectRange(*args
, **kwargs
):
1746 """SelectRange(size_t from, size_t to) -> bool"""
1747 return _windows
.VListBox_SelectRange(*args
, **kwargs
)
1749 def Toggle(*args
, **kwargs
):
1750 """Toggle(size_t item)"""
1751 return _windows
.VListBox_Toggle(*args
, **kwargs
)
1753 def SelectAll(*args
, **kwargs
):
1754 """SelectAll() -> bool"""
1755 return _windows
.VListBox_SelectAll(*args
, **kwargs
)
1757 def DeselectAll(*args
, **kwargs
):
1758 """DeselectAll() -> bool"""
1759 return _windows
.VListBox_DeselectAll(*args
, **kwargs
)
1761 def SetMargins(*args
, **kwargs
):
1762 """SetMargins(Point pt)"""
1763 return _windows
.VListBox_SetMargins(*args
, **kwargs
)
1765 def SetMarginsXY(*args
, **kwargs
):
1766 """SetMarginsXY(int x, int y)"""
1767 return _windows
.VListBox_SetMarginsXY(*args
, **kwargs
)
1769 def SetSelectionBackground(*args
, **kwargs
):
1770 """SetSelectionBackground(Colour col)"""
1771 return _windows
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1774 class VListBoxPtr(VListBox
):
1775 def __init__(self
, this
):
1777 if not hasattr(self
,"thisown"): self
.thisown
= 0
1778 self
.__class
__ = VListBox
1779 _windows
.VListBox_swigregister(VListBoxPtr
)
1780 VListBoxNameStr
= cvar
.VListBoxNameStr
1782 def PreVListBox(*args
, **kwargs
):
1783 """PreVListBox() -> VListBox"""
1784 val
= _windows
.new_PreVListBox(*args
, **kwargs
)
1788 class HtmlListBox(VListBox
):
1790 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1791 def __init__(self
, *args
, **kwargs
):
1793 __init__(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1794 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1796 newobj
= _windows
.new_HtmlListBox(*args
, **kwargs
)
1797 self
.this
= newobj
.this
1800 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1802 def _setCallbackInfo(*args
, **kwargs
):
1803 """_setCallbackInfo(PyObject self, PyObject _class)"""
1804 return _windows
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1806 def Create(*args
, **kwargs
):
1808 Create(Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1809 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1811 return _windows
.HtmlListBox_Create(*args
, **kwargs
)
1813 def RefreshAll(*args
, **kwargs
):
1815 return _windows
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1817 def SetItemCount(*args
, **kwargs
):
1818 """SetItemCount(size_t count)"""
1819 return _windows
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1822 class HtmlListBoxPtr(HtmlListBox
):
1823 def __init__(self
, this
):
1825 if not hasattr(self
,"thisown"): self
.thisown
= 0
1826 self
.__class
__ = HtmlListBox
1827 _windows
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1829 def PreHtmlListBox(*args
, **kwargs
):
1830 """PreHtmlListBox() -> HtmlListBox"""
1831 val
= _windows
.new_PreHtmlListBox(*args
, **kwargs
)
1835 #---------------------------------------------------------------------------
1837 class TaskBarIcon(core
.EvtHandler
):
1839 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1840 def __init__(self
, *args
, **kwargs
):
1841 """__init__() -> TaskBarIcon"""
1842 newobj
= _windows
.new_TaskBarIcon(*args
, **kwargs
)
1843 self
.this
= newobj
.this
1846 def __del__(self
, destroy
=_windows
.delete_TaskBarIcon
):
1849 if self
.thisown
: destroy(self
)
1852 def Destroy(*args
, **kwargs
):
1856 Deletes the C++ object this Python object is a proxy for.
1858 return _windows
.TaskBarIcon_Destroy(*args
, **kwargs
)
1861 class TaskBarIconPtr(TaskBarIcon
):
1862 def __init__(self
, this
):
1864 if not hasattr(self
,"thisown"): self
.thisown
= 0
1865 self
.__class
__ = TaskBarIcon
1866 _windows
.TaskBarIcon_swigregister(TaskBarIconPtr
)
1868 class TaskBarIconEvent(core
.Event
):
1870 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1871 def __init__(self
, *args
, **kwargs
):
1872 """__init__(wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
1873 newobj
= _windows
.new_TaskBarIconEvent(*args
, **kwargs
)
1874 self
.this
= newobj
.this
1878 class TaskBarIconEventPtr(TaskBarIconEvent
):
1879 def __init__(self
, this
):
1881 if not hasattr(self
,"thisown"): self
.thisown
= 0
1882 self
.__class
__ = TaskBarIconEvent
1883 _windows
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
1885 wxEVT_TASKBAR_MOVE
= _windows
.wxEVT_TASKBAR_MOVE
1886 wxEVT_TASKBAR_LEFT_DOWN
= _windows
.wxEVT_TASKBAR_LEFT_DOWN
1887 wxEVT_TASKBAR_LEFT_UP
= _windows
.wxEVT_TASKBAR_LEFT_UP
1888 wxEVT_TASKBAR_RIGHT_DOWN
= _windows
.wxEVT_TASKBAR_RIGHT_DOWN
1889 wxEVT_TASKBAR_RIGHT_UP
= _windows
.wxEVT_TASKBAR_RIGHT_UP
1890 wxEVT_TASKBAR_LEFT_DCLICK
= _windows
.wxEVT_TASKBAR_LEFT_DCLICK
1891 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows
.wxEVT_TASKBAR_RIGHT_DCLICK
1892 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
1893 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
1894 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
1895 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
1896 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
1897 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
1898 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
1900 #---------------------------------------------------------------------------
1902 class ColourData(core
.Object
):
1903 """This class holds a variety of information related to colour dialogs."""
1905 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1906 def __init__(self
, *args
, **kwargs
):
1908 __init__() -> ColourData
1910 Constructor, sets default values.
1912 newobj
= _windows
.new_ColourData(*args
, **kwargs
)
1913 self
.this
= newobj
.this
1916 def __del__(self
, destroy
=_windows
.delete_ColourData
):
1919 if self
.thisown
: destroy(self
)
1922 def GetChooseFull(*args
, **kwargs
):
1924 GetChooseFull() -> bool
1926 Under Windows, determines whether the Windows colour dialog will display
1927 the full dialog with custom colour selection controls. Has no meaning
1928 under other platforms. The default value is true.
1930 return _windows
.ColourData_GetChooseFull(*args
, **kwargs
)
1932 def GetColour(*args
, **kwargs
):
1934 GetColour() -> Colour
1936 Gets the colour (pre)selected by the dialog.
1938 return _windows
.ColourData_GetColour(*args
, **kwargs
)
1940 def GetCustomColour(*args
, **kwargs
):
1942 GetCustomColour(int i) -> Colour
1944 Gets the i'th custom colour associated with the colour dialog. i should
1945 be an integer between 0 and 15. The default custom colours are all white.
1947 return _windows
.ColourData_GetCustomColour(*args
, **kwargs
)
1949 def SetChooseFull(*args
, **kwargs
):
1951 SetChooseFull(int flag)
1953 Under Windows, tells the Windows colour dialog to display the full dialog
1954 with custom colour selection controls. Under other platforms, has no effect.
1955 The default value is true.
1957 return _windows
.ColourData_SetChooseFull(*args
, **kwargs
)
1959 def SetColour(*args
, **kwargs
):
1961 SetColour(Colour colour)
1963 Sets the default colour for the colour dialog. The default colour is black.
1965 return _windows
.ColourData_SetColour(*args
, **kwargs
)
1967 def SetCustomColour(*args
, **kwargs
):
1969 SetCustomColour(int i, Colour colour)
1971 Sets the i'th custom colour for the colour dialog. i should be an integer
1972 between 0 and 15. The default custom colours are all white.
1974 return _windows
.ColourData_SetCustomColour(*args
, **kwargs
)
1977 class ColourDataPtr(ColourData
):
1978 def __init__(self
, this
):
1980 if not hasattr(self
,"thisown"): self
.thisown
= 0
1981 self
.__class
__ = ColourData
1982 _windows
.ColourData_swigregister(ColourDataPtr
)
1983 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
1984 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
1985 DirDialogNameStr
= cvar
.DirDialogNameStr
1986 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
1987 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
1988 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
1990 class ColourDialog(Dialog
):
1991 """This class represents the colour chooser dialog."""
1993 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1994 def __init__(self
, *args
, **kwargs
):
1996 __init__(Window parent, ColourData data=None) -> ColourDialog
1998 Constructor. Pass a parent window, and optionally a ColourData, which
1999 will be copied to the colour dialog's internal ColourData instance.
2001 newobj
= _windows
.new_ColourDialog(*args
, **kwargs
)
2002 self
.this
= newobj
.this
2005 self
._setOORInfo
(self
)
2007 def GetColourData(*args
, **kwargs
):
2009 GetColourData() -> ColourData
2011 Returns a reference to the ColourData used by the dialog.
2013 return _windows
.ColourDialog_GetColourData(*args
, **kwargs
)
2016 class ColourDialogPtr(ColourDialog
):
2017 def __init__(self
, this
):
2019 if not hasattr(self
,"thisown"): self
.thisown
= 0
2020 self
.__class
__ = ColourDialog
2021 _windows
.ColourDialog_swigregister(ColourDialogPtr
)
2023 class DirDialog(Dialog
):
2024 """This class represents the directory chooser dialog."""
2026 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2027 def __init__(self
, *args
, **kwargs
):
2029 __init__(Window parent, String message=DirSelectorPromptStr,
2030 String defaultPath=EmptyString, long style=0,
2031 Point pos=DefaultPosition, Size size=DefaultSize,
2032 String name=DirDialogNameStr) -> DirDialog
2034 Constructor. Use ShowModal method to show the dialog.
2036 newobj
= _windows
.new_DirDialog(*args
, **kwargs
)
2037 self
.this
= newobj
.this
2040 self
._setOORInfo
(self
)
2042 def GetPath(*args
, **kwargs
):
2046 Returns the default or user-selected path.
2048 return _windows
.DirDialog_GetPath(*args
, **kwargs
)
2050 def GetMessage(*args
, **kwargs
):
2052 GetMessage() -> String
2054 Returns the message that will be displayed on the dialog.
2056 return _windows
.DirDialog_GetMessage(*args
, **kwargs
)
2058 def GetStyle(*args
, **kwargs
):
2062 Returns the dialog style.
2064 return _windows
.DirDialog_GetStyle(*args
, **kwargs
)
2066 def SetMessage(*args
, **kwargs
):
2068 SetMessage(String message)
2070 Sets the message that will be displayed on the dialog.
2072 return _windows
.DirDialog_SetMessage(*args
, **kwargs
)
2074 def SetPath(*args
, **kwargs
):
2076 SetPath(String path)
2078 Sets the default path.
2080 return _windows
.DirDialog_SetPath(*args
, **kwargs
)
2083 class DirDialogPtr(DirDialog
):
2084 def __init__(self
, this
):
2086 if not hasattr(self
,"thisown"): self
.thisown
= 0
2087 self
.__class
__ = DirDialog
2088 _windows
.DirDialog_swigregister(DirDialogPtr
)
2090 class FileDialog(Dialog
):
2091 """This class represents the file chooser dialog."""
2093 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2094 def __init__(self
, *args
, **kwargs
):
2096 __init__(Window parent, String message=FileSelectorPromptStr,
2097 String defaultDir=EmptyString, String defaultFile=EmptyString,
2098 String wildcard=FileSelectorDefaultWildcardStr,
2099 long style=0, Point pos=DefaultPosition) -> FileDialog
2101 Constructor. Use ShowModal method to show the dialog.
2103 newobj
= _windows
.new_FileDialog(*args
, **kwargs
)
2104 self
.this
= newobj
.this
2107 self
._setOORInfo
(self
)
2109 def SetMessage(*args
, **kwargs
):
2111 SetMessage(String message)
2113 Sets the message that will be displayed on the dialog.
2115 return _windows
.FileDialog_SetMessage(*args
, **kwargs
)
2117 def SetPath(*args
, **kwargs
):
2119 SetPath(String path)
2121 Sets the path (the combined directory and filename that will
2122 be returned when the dialog is dismissed).
2124 return _windows
.FileDialog_SetPath(*args
, **kwargs
)
2126 def SetDirectory(*args
, **kwargs
):
2128 SetDirectory(String dir)
2130 Sets the default directory.
2132 return _windows
.FileDialog_SetDirectory(*args
, **kwargs
)
2134 def SetFilename(*args
, **kwargs
):
2136 SetFilename(String name)
2138 Sets the default filename.
2140 return _windows
.FileDialog_SetFilename(*args
, **kwargs
)
2142 def SetWildcard(*args
, **kwargs
):
2144 SetWildcard(String wildCard)
2146 Sets the wildcard, which can contain multiple file types, for example:
2147 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2149 return _windows
.FileDialog_SetWildcard(*args
, **kwargs
)
2151 def SetStyle(*args
, **kwargs
):
2153 SetStyle(long style)
2155 Sets the dialog style.
2157 return _windows
.FileDialog_SetStyle(*args
, **kwargs
)
2159 def SetFilterIndex(*args
, **kwargs
):
2161 SetFilterIndex(int filterIndex)
2163 Sets the default filter index, starting from zero.
2165 return _windows
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2167 def GetMessage(*args
, **kwargs
):
2169 GetMessage() -> String
2171 Returns the message that will be displayed on the dialog.
2173 return _windows
.FileDialog_GetMessage(*args
, **kwargs
)
2175 def GetPath(*args
, **kwargs
):
2179 Returns the full path (directory and filename) of the selected file.
2181 return _windows
.FileDialog_GetPath(*args
, **kwargs
)
2183 def GetDirectory(*args
, **kwargs
):
2185 GetDirectory() -> String
2187 Returns the default directory.
2189 return _windows
.FileDialog_GetDirectory(*args
, **kwargs
)
2191 def GetFilename(*args
, **kwargs
):
2193 GetFilename() -> String
2195 Returns the default filename.
2197 return _windows
.FileDialog_GetFilename(*args
, **kwargs
)
2199 def GetWildcard(*args
, **kwargs
):
2201 GetWildcard() -> String
2203 Returns the file dialog wildcard.
2205 return _windows
.FileDialog_GetWildcard(*args
, **kwargs
)
2207 def GetStyle(*args
, **kwargs
):
2211 Returns the dialog style.
2213 return _windows
.FileDialog_GetStyle(*args
, **kwargs
)
2215 def GetFilterIndex(*args
, **kwargs
):
2217 GetFilterIndex() -> int
2219 Returns the index into the list of filters supplied, optionally, in
2220 the wildcard parameter. Before the dialog is shown, this is the index
2221 which will be used when the dialog is first displayed. After the dialog
2222 is shown, this is the index selected by the user.
2224 return _windows
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2226 def GetFilenames(*args
, **kwargs
):
2228 GetFilenames() -> PyObject
2230 Returns a list of filenames chosen in the dialog. This function should
2231 only be used with the dialogs which have wx.MULTIPLE style, use
2232 GetFilename for the others.
2234 return _windows
.FileDialog_GetFilenames(*args
, **kwargs
)
2236 def GetPaths(*args
, **kwargs
):
2238 GetPaths() -> PyObject
2240 Fills the array paths with the full paths of the files chosen. This
2241 function should only be used with the dialogs which have wx.MULTIPLE style,
2242 use GetPath for the others.
2244 return _windows
.FileDialog_GetPaths(*args
, **kwargs
)
2247 class FileDialogPtr(FileDialog
):
2248 def __init__(self
, this
):
2250 if not hasattr(self
,"thisown"): self
.thisown
= 0
2251 self
.__class
__ = FileDialog
2252 _windows
.FileDialog_swigregister(FileDialogPtr
)
2254 CHOICEDLG_STYLE
= _windows
.CHOICEDLG_STYLE
2255 class MultiChoiceDialog(Dialog
):
2256 """A simple dialog with a multi selection listbox."""
2258 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2259 def __init__(self
, *args
, **kwargs
):
2261 __init__(Window parent, String message, String caption,
2262 List choices=[], long style=CHOICEDLG_STYLE,
2263 Point pos=DefaultPosition) -> MultiChoiceDialog
2265 Constructor. Use ShowModal method to show the dialog.
2267 newobj
= _windows
.new_MultiChoiceDialog(*args
, **kwargs
)
2268 self
.this
= newobj
.this
2271 self
._setOORInfo
(self
)
2273 def SetSelections(*args
, **kwargs
):
2275 SetSelections(List selections)
2277 Specify the items in the list that shoudl be selected, using a list of integers.
2279 return _windows
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2281 def GetSelections(*args
, **kwargs
):
2283 GetSelections() -> [selections]
2285 Returns a list of integers representing the items that are selected.
2287 return _windows
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2290 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2291 def __init__(self
, this
):
2293 if not hasattr(self
,"thisown"): self
.thisown
= 0
2294 self
.__class
__ = MultiChoiceDialog
2295 _windows
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2297 class SingleChoiceDialog(Dialog
):
2298 """A simple dialog with a single selection listbox."""
2300 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2301 def __init__(self
, *args
, **kwargs
):
2303 __init__(Window parent, String message, String caption,
2304 List choices=[], long style=CHOICEDLG_STYLE,
2305 Point pos=DefaultPosition) -> SingleChoiceDialog
2307 Constructor. Use ShowModal method to show the dialog.
2309 newobj
= _windows
.new_SingleChoiceDialog(*args
, **kwargs
)
2310 self
.this
= newobj
.this
2313 self
._setOORInfo
(self
)
2315 def GetSelection(*args
, **kwargs
):
2317 GetSelection() -> int
2319 Get the index of teh currently selected item.
2321 return _windows
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2323 def GetStringSelection(*args
, **kwargs
):
2325 GetStringSelection() -> String
2327 Returns the string value of the currently selected item
2329 return _windows
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2331 def SetSelection(*args
, **kwargs
):
2333 SetSelection(int sel)
2335 Set the current selected item to sel
2337 return _windows
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2340 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2341 def __init__(self
, this
):
2343 if not hasattr(self
,"thisown"): self
.thisown
= 0
2344 self
.__class
__ = SingleChoiceDialog
2345 _windows
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2347 class TextEntryDialog(Dialog
):
2348 """A dialog with text control, [ok] and [cancel] buttons"""
2350 return "<%s.%s; proxy of C++ wxTextEntryDialog 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=GetTextFromUserPromptStr,
2354 String defaultValue=EmptyString,
2355 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2357 Constructor. Use ShowModal method to show the dialog.
2359 newobj
= _windows
.new_TextEntryDialog(*args
, **kwargs
)
2360 self
.this
= newobj
.this
2363 self
._setOORInfo
(self
)
2365 def GetValue(*args
, **kwargs
):
2367 GetValue() -> String
2369 Returns the text that the user has entered if the user has pressed OK,
2370 or the original value if the user has pressed Cancel.
2372 return _windows
.TextEntryDialog_GetValue(*args
, **kwargs
)
2374 def SetValue(*args
, **kwargs
):
2376 SetValue(String value)
2378 Sets the default text value.
2380 return _windows
.TextEntryDialog_SetValue(*args
, **kwargs
)
2383 class TextEntryDialogPtr(TextEntryDialog
):
2384 def __init__(self
, this
):
2386 if not hasattr(self
,"thisown"): self
.thisown
= 0
2387 self
.__class
__ = TextEntryDialog
2388 _windows
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2390 class FontData(core
.Object
):
2391 """This class holds a variety of information related to font dialogs."""
2393 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2394 def __init__(self
, *args
, **kwargs
):
2396 __init__() -> FontData
2398 This class holds a variety of information related to font dialogs.
2400 newobj
= _windows
.new_FontData(*args
, **kwargs
)
2401 self
.this
= newobj
.this
2404 def __del__(self
, destroy
=_windows
.delete_FontData
):
2407 if self
.thisown
: destroy(self
)
2410 def EnableEffects(*args
, **kwargs
):
2412 EnableEffects(bool enable)
2414 Enables or disables 'effects' under MS Windows only. This refers
2415 to the controls for manipulating colour, strikeout and underline
2416 properties. The default value is true.
2418 return _windows
.FontData_EnableEffects(*args
, **kwargs
)
2420 def GetAllowSymbols(*args
, **kwargs
):
2422 GetAllowSymbols() -> bool
2424 Under MS Windows, returns a flag determining whether symbol fonts can be
2425 selected. Has no effect on other platforms. The default value is true.
2427 return _windows
.FontData_GetAllowSymbols(*args
, **kwargs
)
2429 def GetColour(*args
, **kwargs
):
2431 GetColour() -> Colour
2433 Gets the colour associated with the font dialog. The default value is black.
2435 return _windows
.FontData_GetColour(*args
, **kwargs
)
2437 def GetChosenFont(*args
, **kwargs
):
2439 GetChosenFont() -> Font
2441 Gets the font chosen by the user.
2443 return _windows
.FontData_GetChosenFont(*args
, **kwargs
)
2445 def GetEnableEffects(*args
, **kwargs
):
2447 GetEnableEffects() -> bool
2449 Determines whether 'effects' are enabled under Windows.
2451 return _windows
.FontData_GetEnableEffects(*args
, **kwargs
)
2453 def GetInitialFont(*args
, **kwargs
):
2455 GetInitialFont() -> Font
2457 Gets the font that will be initially used by the font dialog. This should have
2458 previously been set by the application.
2460 return _windows
.FontData_GetInitialFont(*args
, **kwargs
)
2462 def GetShowHelp(*args
, **kwargs
):
2464 GetShowHelp() -> bool
2466 Returns true if the Help button will be shown (Windows only). The default
2469 return _windows
.FontData_GetShowHelp(*args
, **kwargs
)
2471 def SetAllowSymbols(*args
, **kwargs
):
2473 SetAllowSymbols(bool allowSymbols)
2475 Under MS Windows, determines whether symbol fonts can be selected. Has no
2476 effect on other platforms. The default value is true.
2478 return _windows
.FontData_SetAllowSymbols(*args
, **kwargs
)
2480 def SetChosenFont(*args
, **kwargs
):
2482 SetChosenFont(Font font)
2484 Sets the font that will be returned to the user (for internal use only).
2486 return _windows
.FontData_SetChosenFont(*args
, **kwargs
)
2488 def SetColour(*args
, **kwargs
):
2490 SetColour(Colour colour)
2492 Sets the colour that will be used for the font foreground colour. The default
2495 return _windows
.FontData_SetColour(*args
, **kwargs
)
2497 def SetInitialFont(*args
, **kwargs
):
2499 SetInitialFont(Font font)
2501 Sets the font that will be initially used by the font dialog.
2503 return _windows
.FontData_SetInitialFont(*args
, **kwargs
)
2505 def SetRange(*args
, **kwargs
):
2507 SetRange(int min, int max)
2509 Sets the valid range for the font point size (Windows only). The default is
2510 0, 0 (unrestricted range).
2512 return _windows
.FontData_SetRange(*args
, **kwargs
)
2514 def SetShowHelp(*args
, **kwargs
):
2516 SetShowHelp(bool showHelp)
2518 Determines whether the Help button will be displayed in the font dialog
2519 (Windows only). The default value is false.
2521 return _windows
.FontData_SetShowHelp(*args
, **kwargs
)
2524 class FontDataPtr(FontData
):
2525 def __init__(self
, this
):
2527 if not hasattr(self
,"thisown"): self
.thisown
= 0
2528 self
.__class
__ = FontData
2529 _windows
.FontData_swigregister(FontDataPtr
)
2531 class FontDialog(Dialog
):
2532 """This class represents the font chooser dialog."""
2534 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2535 def __init__(self
, *args
, **kwargs
):
2537 __init__(Window parent, FontData data) -> FontDialog
2539 Constructor. Pass a parent window and the FontData object to be
2540 used to initialize the dialog controls.
2542 newobj
= _windows
.new_FontDialog(*args
, **kwargs
)
2543 self
.this
= newobj
.this
2546 self
._setOORInfo
(self
)
2548 def GetFontData(*args
, **kwargs
):
2550 GetFontData() -> FontData
2552 Returns a reference to the internal FontData used by the FontDialog.
2554 return _windows
.FontDialog_GetFontData(*args
, **kwargs
)
2557 class FontDialogPtr(FontDialog
):
2558 def __init__(self
, this
):
2560 if not hasattr(self
,"thisown"): self
.thisown
= 0
2561 self
.__class
__ = FontDialog
2562 _windows
.FontDialog_swigregister(FontDialogPtr
)
2564 class MessageDialog(Dialog
):
2566 This class provides a dialog that shows a single or multi-line message, with
2567 a choice of OK, Yes, No and Cancel buttons.
2570 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2571 def __init__(self
, *args
, **kwargs
):
2573 __init__(Window parent, String message, String caption=MessageBoxCaptionStr,
2574 long style=wxOK|wxCANCEL|wxCENTRE,
2575 Point pos=DefaultPosition) -> MessageDialog
2577 This class provides a dialog that shows a single or multi-line message, with
2578 a choice of OK, Yes, No and Cancel buttons.
2580 newobj
= _windows
.new_MessageDialog(*args
, **kwargs
)
2581 self
.this
= newobj
.this
2584 self
._setOORInfo
(self
)
2587 class MessageDialogPtr(MessageDialog
):
2588 def __init__(self
, this
):
2590 if not hasattr(self
,"thisown"): self
.thisown
= 0
2591 self
.__class
__ = MessageDialog
2592 _windows
.MessageDialog_swigregister(MessageDialogPtr
)
2594 class ProgressDialog(Frame
):
2596 A dialog that shows a short message and a progress bar. Optionally, it can
2597 display an ABORT button.
2600 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2601 def __init__(self
, *args
, **kwargs
):
2603 __init__(String title, String message, int maximum=100, Window parent=None,
2604 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2606 Constructor. Creates the dialog, displays it and disables user input for other
2607 windows, or, if wxPD_APP_MODAL flag is not given, for its parent window only.
2609 newobj
= _windows
.new_ProgressDialog(*args
, **kwargs
)
2610 self
.this
= newobj
.this
2613 self
._setOORInfo
(self
)
2615 def Update(*args
, **kwargs
):
2617 Update(int value, String newmsg=EmptyString) -> bool
2619 Updates the dialog, setting the progress bar to the new value and, if given
2620 changes the message above it. Returns true unless the Cancel button has been
2623 If false is returned, the application can either immediately destroy the
2624 dialog or ask the user for the confirmation and if the abort is not confirmed
2625 the dialog may be resumed with Resume function.
2627 return _windows
.ProgressDialog_Update(*args
, **kwargs
)
2629 def Resume(*args
, **kwargs
):
2633 Can be used to continue with the dialog, after the user had chosen to abort.
2635 return _windows
.ProgressDialog_Resume(*args
, **kwargs
)
2638 class ProgressDialogPtr(ProgressDialog
):
2639 def __init__(self
, this
):
2641 if not hasattr(self
,"thisown"): self
.thisown
= 0
2642 self
.__class
__ = ProgressDialog
2643 _windows
.ProgressDialog_swigregister(ProgressDialogPtr
)
2645 FR_DOWN
= _windows
.FR_DOWN
2646 FR_WHOLEWORD
= _windows
.FR_WHOLEWORD
2647 FR_MATCHCASE
= _windows
.FR_MATCHCASE
2648 FR_REPLACEDIALOG
= _windows
.FR_REPLACEDIALOG
2649 FR_NOUPDOWN
= _windows
.FR_NOUPDOWN
2650 FR_NOMATCHCASE
= _windows
.FR_NOMATCHCASE
2651 FR_NOWHOLEWORD
= _windows
.FR_NOWHOLEWORD
2652 wxEVT_COMMAND_FIND
= _windows
.wxEVT_COMMAND_FIND
2653 wxEVT_COMMAND_FIND_NEXT
= _windows
.wxEVT_COMMAND_FIND_NEXT
2654 wxEVT_COMMAND_FIND_REPLACE
= _windows
.wxEVT_COMMAND_FIND_REPLACE
2655 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows
.wxEVT_COMMAND_FIND_REPLACE_ALL
2656 wxEVT_COMMAND_FIND_CLOSE
= _windows
.wxEVT_COMMAND_FIND_CLOSE
2657 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2658 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2659 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2660 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2661 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2663 # For backwards compatibility. Should they be removed?
2664 EVT_COMMAND_FIND
= EVT_FIND
2665 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2666 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2667 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2668 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2670 class FindDialogEvent(core
.CommandEvent
):
2671 """Events for the FindReplaceDialog"""
2673 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2674 def __init__(self
, *args
, **kwargs
):
2676 __init__(wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2678 Events for the FindReplaceDialog
2680 newobj
= _windows
.new_FindDialogEvent(*args
, **kwargs
)
2681 self
.this
= newobj
.this
2684 def GetFlags(*args
, **kwargs
):
2688 Get the currently selected flags: this is the combination of
2689 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2691 return _windows
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2693 def GetFindString(*args
, **kwargs
):
2695 GetFindString() -> String
2697 Return the string to find (never empty).
2699 return _windows
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2701 def GetReplaceString(*args
, **kwargs
):
2703 GetReplaceString() -> String
2705 Return the string to replace the search string with (only
2706 for replace and replace all events).
2708 return _windows
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2710 def GetDialog(*args
, **kwargs
):
2712 GetDialog() -> FindReplaceDialog
2714 Return the pointer to the dialog which generated this event.
2716 return _windows
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2718 def SetFlags(*args
, **kwargs
):
2719 """SetFlags(int flags)"""
2720 return _windows
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2722 def SetFindString(*args
, **kwargs
):
2723 """SetFindString(String str)"""
2724 return _windows
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2726 def SetReplaceString(*args
, **kwargs
):
2727 """SetReplaceString(String str)"""
2728 return _windows
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2731 class FindDialogEventPtr(FindDialogEvent
):
2732 def __init__(self
, this
):
2734 if not hasattr(self
,"thisown"): self
.thisown
= 0
2735 self
.__class
__ = FindDialogEvent
2736 _windows
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2738 class FindReplaceData(core
.Object
):
2740 FindReplaceData holds the data for FindReplaceDialog. It is used to initialize
2741 the dialog with the default values and will keep the last values from the
2742 dialog when it is closed. It is also updated each time a wxFindDialogEvent is
2743 generated so instead of using the wxFindDialogEvent methods you can also
2744 directly query this object.
2746 Note that all SetXXX() methods may only be called before showing the dialog
2747 and calling them has no effect later.
2750 wxFR_DOWN: downward search/replace selected (otherwise, upwards)
2752 wxFR_WHOLEWORD: whole word search/replace selected
2754 wxFR_MATCHCASE: case sensitive search/replace selected (otherwise,
2759 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2760 def __init__(self
, *args
, **kwargs
):
2762 __init__(int flags=0) -> FindReplaceData
2764 Constuctor initializes the flags to default value (0).
2766 newobj
= _windows
.new_FindReplaceData(*args
, **kwargs
)
2767 self
.this
= newobj
.this
2770 def __del__(self
, destroy
=_windows
.delete_FindReplaceData
):
2773 if self
.thisown
: destroy(self
)
2776 def GetFindString(*args
, **kwargs
):
2778 GetFindString() -> String
2780 Get the string to find.
2782 return _windows
.FindReplaceData_GetFindString(*args
, **kwargs
)
2784 def GetReplaceString(*args
, **kwargs
):
2786 GetReplaceString() -> String
2788 Get the replacement string.
2790 return _windows
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2792 def GetFlags(*args
, **kwargs
):
2796 Get the combination of flag values.
2798 return _windows
.FindReplaceData_GetFlags(*args
, **kwargs
)
2800 def SetFlags(*args
, **kwargs
):
2804 Set the flags to use to initialize the controls of the dialog.
2806 return _windows
.FindReplaceData_SetFlags(*args
, **kwargs
)
2808 def SetFindString(*args
, **kwargs
):
2810 SetFindString(String str)
2812 Set the string to find (used as initial value by the dialog).
2814 return _windows
.FindReplaceData_SetFindString(*args
, **kwargs
)
2816 def SetReplaceString(*args
, **kwargs
):
2818 SetReplaceString(String str)
2820 Set the replacement string (used as initial value by the dialog).
2822 return _windows
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
2825 class FindReplaceDataPtr(FindReplaceData
):
2826 def __init__(self
, this
):
2828 if not hasattr(self
,"thisown"): self
.thisown
= 0
2829 self
.__class
__ = FindReplaceData
2830 _windows
.FindReplaceData_swigregister(FindReplaceDataPtr
)
2832 class FindReplaceDialog(Dialog
):
2834 FindReplaceDialog is a standard modeless dialog which is used to allow the
2835 user to search for some text (and possibly replace it with something
2836 else). The actual searching is supposed to be done in the owner window which
2837 is the parent of this dialog. Note that it means that unlike for the other
2838 standard dialogs this one must have a parent window. Also note that there is
2839 no way to use this dialog in a modal way; it is always, by design and
2840 implementation, modeless.
2843 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2844 def __init__(self
, *args
, **kwargs
):
2846 __init__(Window parent, FindReplaceData data, String title,
2847 int style=0) -> FindReplaceDialog
2849 Create a FindReplaceDialog. The parent and data parameters must be
2850 non-None. Use Show to display the dialog.
2852 newobj
= _windows
.new_FindReplaceDialog(*args
, **kwargs
)
2853 self
.this
= newobj
.this
2856 self
._setOORInfo
(self
)
2858 def Create(*args
, **kwargs
):
2860 Create(Window parent, FindReplaceData data, String title,
2861 int style=0) -> bool
2863 Create the dialog, for 2-phase create.
2865 return _windows
.FindReplaceDialog_Create(*args
, **kwargs
)
2867 def GetData(*args
, **kwargs
):
2869 GetData() -> FindReplaceData
2871 Get the FindReplaceData object used by this dialog.
2873 return _windows
.FindReplaceDialog_GetData(*args
, **kwargs
)
2875 def SetData(*args
, **kwargs
):
2877 SetData(FindReplaceData data)
2879 Set the FindReplaceData object used by this dialog.
2881 return _windows
.FindReplaceDialog_SetData(*args
, **kwargs
)
2884 class FindReplaceDialogPtr(FindReplaceDialog
):
2885 def __init__(self
, this
):
2887 if not hasattr(self
,"thisown"): self
.thisown
= 0
2888 self
.__class
__ = FindReplaceDialog
2889 _windows
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
2891 def PreFindReplaceDialog(*args
, **kwargs
):
2893 PreFindReplaceDialog() -> FindReplaceDialog
2895 Precreate a FindReplaceDialog for 2-phase creation
2897 val
= _windows
.new_PreFindReplaceDialog(*args
, **kwargs
)
2901 #---------------------------------------------------------------------------
2903 IDM_WINDOWTILE
= _windows
.IDM_WINDOWTILE
2904 IDM_WINDOWTILEHOR
= _windows
.IDM_WINDOWTILEHOR
2905 IDM_WINDOWCASCADE
= _windows
.IDM_WINDOWCASCADE
2906 IDM_WINDOWICONS
= _windows
.IDM_WINDOWICONS
2907 IDM_WINDOWNEXT
= _windows
.IDM_WINDOWNEXT
2908 IDM_WINDOWTILEVERT
= _windows
.IDM_WINDOWTILEVERT
2909 FIRST_MDI_CHILD
= _windows
.FIRST_MDI_CHILD
2910 LAST_MDI_CHILD
= _windows
.LAST_MDI_CHILD
2911 class MDIParentFrame(Frame
):
2913 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2914 def __init__(self
, *args
, **kwargs
):
2916 __init__(Window parent, int id, String title, Point pos=DefaultPosition,
2917 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2918 String name=FrameNameStr) -> MDIParentFrame
2920 newobj
= _windows
.new_MDIParentFrame(*args
, **kwargs
)
2921 self
.this
= newobj
.this
2924 self
._setOORInfo
(self
)
2926 def Create(*args
, **kwargs
):
2928 Create(Window parent, int id, String title, Point pos=DefaultPosition,
2929 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
2930 String name=FrameNameStr) -> bool
2932 return _windows
.MDIParentFrame_Create(*args
, **kwargs
)
2934 def ActivateNext(*args
, **kwargs
):
2935 """ActivateNext()"""
2936 return _windows
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
2938 def ActivatePrevious(*args
, **kwargs
):
2939 """ActivatePrevious()"""
2940 return _windows
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
2942 def ArrangeIcons(*args
, **kwargs
):
2943 """ArrangeIcons()"""
2944 return _windows
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
2946 def Cascade(*args
, **kwargs
):
2948 return _windows
.MDIParentFrame_Cascade(*args
, **kwargs
)
2950 def GetActiveChild(*args
, **kwargs
):
2951 """GetActiveChild() -> MDIChildFrame"""
2952 return _windows
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
2954 def GetClientWindow(*args
, **kwargs
):
2955 """GetClientWindow() -> MDIClientWindow"""
2956 return _windows
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
2958 def GetToolBar(*args
, **kwargs
):
2959 """GetToolBar() -> Window"""
2960 return _windows
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
2962 def Tile(*args
, **kwargs
):
2964 return _windows
.MDIParentFrame_Tile(*args
, **kwargs
)
2967 class MDIParentFramePtr(MDIParentFrame
):
2968 def __init__(self
, this
):
2970 if not hasattr(self
,"thisown"): self
.thisown
= 0
2971 self
.__class
__ = MDIParentFrame
2972 _windows
.MDIParentFrame_swigregister(MDIParentFramePtr
)
2974 def PreMDIParentFrame(*args
, **kwargs
):
2975 """PreMDIParentFrame() -> MDIParentFrame"""
2976 val
= _windows
.new_PreMDIParentFrame(*args
, **kwargs
)
2980 class MDIChildFrame(Frame
):
2982 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2983 def __init__(self
, *args
, **kwargs
):
2985 __init__(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2986 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2987 String name=FrameNameStr) -> MDIChildFrame
2989 newobj
= _windows
.new_MDIChildFrame(*args
, **kwargs
)
2990 self
.this
= newobj
.this
2993 self
._setOORInfo
(self
)
2995 def Create(*args
, **kwargs
):
2997 Create(MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
2998 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
2999 String name=FrameNameStr) -> bool
3001 return _windows
.MDIChildFrame_Create(*args
, **kwargs
)
3003 def Activate(*args
, **kwargs
):
3005 return _windows
.MDIChildFrame_Activate(*args
, **kwargs
)
3007 def Maximize(*args
, **kwargs
):
3008 """Maximize(bool maximize)"""
3009 return _windows
.MDIChildFrame_Maximize(*args
, **kwargs
)
3011 def Restore(*args
, **kwargs
):
3013 return _windows
.MDIChildFrame_Restore(*args
, **kwargs
)
3016 class MDIChildFramePtr(MDIChildFrame
):
3017 def __init__(self
, this
):
3019 if not hasattr(self
,"thisown"): self
.thisown
= 0
3020 self
.__class
__ = MDIChildFrame
3021 _windows
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3023 def PreMDIChildFrame(*args
, **kwargs
):
3024 """PreMDIChildFrame() -> MDIChildFrame"""
3025 val
= _windows
.new_PreMDIChildFrame(*args
, **kwargs
)
3029 class MDIClientWindow(core
.Window
):
3031 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3032 def __init__(self
, *args
, **kwargs
):
3033 """__init__(MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3034 newobj
= _windows
.new_MDIClientWindow(*args
, **kwargs
)
3035 self
.this
= newobj
.this
3038 self
._setOORInfo
(self
)
3040 def Create(*args
, **kwargs
):
3041 """Create(MDIParentFrame parent, long style=0) -> bool"""
3042 return _windows
.MDIClientWindow_Create(*args
, **kwargs
)
3045 class MDIClientWindowPtr(MDIClientWindow
):
3046 def __init__(self
, this
):
3048 if not hasattr(self
,"thisown"): self
.thisown
= 0
3049 self
.__class
__ = MDIClientWindow
3050 _windows
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3052 def PreMDIClientWindow(*args
, **kwargs
):
3053 """PreMDIClientWindow() -> MDIClientWindow"""
3054 val
= _windows
.new_PreMDIClientWindow(*args
, **kwargs
)
3058 #---------------------------------------------------------------------------
3060 class PyWindow(core
.Window
):
3062 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3063 def __init__(self
, *args
, **kwargs
):
3065 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3066 long style=0, String name=PanelNameStr) -> PyWindow
3068 newobj
= _windows
.new_PyWindow(*args
, **kwargs
)
3069 self
.this
= newobj
.this
3072 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3074 def _setCallbackInfo(*args
, **kwargs
):
3075 """_setCallbackInfo(PyObject self, PyObject _class)"""
3076 return _windows
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3078 def base_DoMoveWindow(*args
, **kwargs
):
3079 """base_DoMoveWindow(int x, int y, int width, int height)"""
3080 return _windows
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3082 def base_DoSetSize(*args
, **kwargs
):
3083 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3084 return _windows
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3086 def base_DoSetClientSize(*args
, **kwargs
):
3087 """base_DoSetClientSize(int width, int height)"""
3088 return _windows
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3090 def base_DoSetVirtualSize(*args
, **kwargs
):
3091 """base_DoSetVirtualSize(int x, int y)"""
3092 return _windows
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3094 def base_DoGetSize(*args
, **kwargs
):
3095 """base_DoGetSize() -> (width, height)"""
3096 return _windows
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3098 def base_DoGetClientSize(*args
, **kwargs
):
3099 """base_DoGetClientSize() -> (width, height)"""
3100 return _windows
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3102 def base_DoGetPosition(*args
, **kwargs
):
3103 """base_DoGetPosition() -> (x,y)"""
3104 return _windows
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3106 def base_DoGetVirtualSize(*args
, **kwargs
):
3107 """base_DoGetVirtualSize() -> Size"""
3108 return _windows
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3110 def base_DoGetBestSize(*args
, **kwargs
):
3111 """base_DoGetBestSize() -> Size"""
3112 return _windows
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3114 def base_InitDialog(*args
, **kwargs
):
3115 """base_InitDialog()"""
3116 return _windows
.PyWindow_base_InitDialog(*args
, **kwargs
)
3118 def base_TransferDataToWindow(*args
, **kwargs
):
3119 """base_TransferDataToWindow() -> bool"""
3120 return _windows
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3122 def base_TransferDataFromWindow(*args
, **kwargs
):
3123 """base_TransferDataFromWindow() -> bool"""
3124 return _windows
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3126 def base_Validate(*args
, **kwargs
):
3127 """base_Validate() -> bool"""
3128 return _windows
.PyWindow_base_Validate(*args
, **kwargs
)
3130 def base_AcceptsFocus(*args
, **kwargs
):
3131 """base_AcceptsFocus() -> bool"""
3132 return _windows
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3134 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3135 """base_AcceptsFocusFromKeyboard() -> bool"""
3136 return _windows
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3138 def base_GetMaxSize(*args
, **kwargs
):
3139 """base_GetMaxSize() -> Size"""
3140 return _windows
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3142 def base_AddChild(*args
, **kwargs
):
3143 """base_AddChild(Window child)"""
3144 return _windows
.PyWindow_base_AddChild(*args
, **kwargs
)
3146 def base_RemoveChild(*args
, **kwargs
):
3147 """base_RemoveChild(Window child)"""
3148 return _windows
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3150 def base_ShouldInheritColours(*args
, **kwargs
):
3151 """base_ShouldInheritColours() -> bool"""
3152 return _windows
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3154 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3155 """base_ApplyParentThemeBackground(Colour c)"""
3156 return _windows
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3159 class PyWindowPtr(PyWindow
):
3160 def __init__(self
, this
):
3162 if not hasattr(self
,"thisown"): self
.thisown
= 0
3163 self
.__class
__ = PyWindow
3164 _windows
.PyWindow_swigregister(PyWindowPtr
)
3166 def PrePyWindow(*args
, **kwargs
):
3167 """PrePyWindow() -> PyWindow"""
3168 val
= _windows
.new_PrePyWindow(*args
, **kwargs
)
3172 class PyPanel(Panel
):
3174 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3175 def __init__(self
, *args
, **kwargs
):
3177 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3178 long style=0, String name=PanelNameStr) -> PyPanel
3180 newobj
= _windows
.new_PyPanel(*args
, **kwargs
)
3181 self
.this
= newobj
.this
3184 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3186 def _setCallbackInfo(*args
, **kwargs
):
3187 """_setCallbackInfo(PyObject self, PyObject _class)"""
3188 return _windows
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3190 def base_DoMoveWindow(*args
, **kwargs
):
3191 """base_DoMoveWindow(int x, int y, int width, int height)"""
3192 return _windows
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3194 def base_DoSetSize(*args
, **kwargs
):
3195 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3196 return _windows
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3198 def base_DoSetClientSize(*args
, **kwargs
):
3199 """base_DoSetClientSize(int width, int height)"""
3200 return _windows
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3202 def base_DoSetVirtualSize(*args
, **kwargs
):
3203 """base_DoSetVirtualSize(int x, int y)"""
3204 return _windows
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3206 def base_DoGetSize(*args
, **kwargs
):
3207 """base_DoGetSize() -> (width, height)"""
3208 return _windows
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3210 def base_DoGetClientSize(*args
, **kwargs
):
3211 """base_DoGetClientSize() -> (width, height)"""
3212 return _windows
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3214 def base_DoGetPosition(*args
, **kwargs
):
3215 """base_DoGetPosition() -> (x,y)"""
3216 return _windows
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3218 def base_DoGetVirtualSize(*args
, **kwargs
):
3219 """base_DoGetVirtualSize() -> Size"""
3220 return _windows
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3222 def base_DoGetBestSize(*args
, **kwargs
):
3223 """base_DoGetBestSize() -> Size"""
3224 return _windows
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3226 def base_InitDialog(*args
, **kwargs
):
3227 """base_InitDialog()"""
3228 return _windows
.PyPanel_base_InitDialog(*args
, **kwargs
)
3230 def base_TransferDataToWindow(*args
, **kwargs
):
3231 """base_TransferDataToWindow() -> bool"""
3232 return _windows
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3234 def base_TransferDataFromWindow(*args
, **kwargs
):
3235 """base_TransferDataFromWindow() -> bool"""
3236 return _windows
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3238 def base_Validate(*args
, **kwargs
):
3239 """base_Validate() -> bool"""
3240 return _windows
.PyPanel_base_Validate(*args
, **kwargs
)
3242 def base_AcceptsFocus(*args
, **kwargs
):
3243 """base_AcceptsFocus() -> bool"""
3244 return _windows
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3246 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3247 """base_AcceptsFocusFromKeyboard() -> bool"""
3248 return _windows
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3250 def base_GetMaxSize(*args
, **kwargs
):
3251 """base_GetMaxSize() -> Size"""
3252 return _windows
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3254 def base_AddChild(*args
, **kwargs
):
3255 """base_AddChild(Window child)"""
3256 return _windows
.PyPanel_base_AddChild(*args
, **kwargs
)
3258 def base_RemoveChild(*args
, **kwargs
):
3259 """base_RemoveChild(Window child)"""
3260 return _windows
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3262 def base_ShouldInheritColours(*args
, **kwargs
):
3263 """base_ShouldInheritColours() -> bool"""
3264 return _windows
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3266 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3267 """base_ApplyParentThemeBackground(Colour c)"""
3268 return _windows
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3271 class PyPanelPtr(PyPanel
):
3272 def __init__(self
, this
):
3274 if not hasattr(self
,"thisown"): self
.thisown
= 0
3275 self
.__class
__ = PyPanel
3276 _windows
.PyPanel_swigregister(PyPanelPtr
)
3278 def PrePyPanel(*args
, **kwargs
):
3279 """PrePyPanel() -> PyPanel"""
3280 val
= _windows
.new_PrePyPanel(*args
, **kwargs
)
3284 class PyScrolledWindow(ScrolledWindow
):
3286 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3287 def __init__(self
, *args
, **kwargs
):
3289 __init__(Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3290 long style=0, String name=PanelNameStr) -> PyScrolledWindow
3292 newobj
= _windows
.new_PyScrolledWindow(*args
, **kwargs
)
3293 self
.this
= newobj
.this
3296 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3298 def _setCallbackInfo(*args
, **kwargs
):
3299 """_setCallbackInfo(PyObject self, PyObject _class)"""
3300 return _windows
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3302 def base_DoMoveWindow(*args
, **kwargs
):
3303 """base_DoMoveWindow(int x, int y, int width, int height)"""
3304 return _windows
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3306 def base_DoSetSize(*args
, **kwargs
):
3307 """base_DoSetSize(int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3308 return _windows
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3310 def base_DoSetClientSize(*args
, **kwargs
):
3311 """base_DoSetClientSize(int width, int height)"""
3312 return _windows
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3314 def base_DoSetVirtualSize(*args
, **kwargs
):
3315 """base_DoSetVirtualSize(int x, int y)"""
3316 return _windows
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3318 def base_DoGetSize(*args
, **kwargs
):
3319 """base_DoGetSize() -> (width, height)"""
3320 return _windows
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3322 def base_DoGetClientSize(*args
, **kwargs
):
3323 """base_DoGetClientSize() -> (width, height)"""
3324 return _windows
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3326 def base_DoGetPosition(*args
, **kwargs
):
3327 """base_DoGetPosition() -> (x,y)"""
3328 return _windows
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3330 def base_DoGetVirtualSize(*args
, **kwargs
):
3331 """base_DoGetVirtualSize() -> Size"""
3332 return _windows
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3334 def base_DoGetBestSize(*args
, **kwargs
):
3335 """base_DoGetBestSize() -> Size"""
3336 return _windows
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3338 def base_InitDialog(*args
, **kwargs
):
3339 """base_InitDialog()"""
3340 return _windows
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3342 def base_TransferDataToWindow(*args
, **kwargs
):
3343 """base_TransferDataToWindow() -> bool"""
3344 return _windows
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3346 def base_TransferDataFromWindow(*args
, **kwargs
):
3347 """base_TransferDataFromWindow() -> bool"""
3348 return _windows
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3350 def base_Validate(*args
, **kwargs
):
3351 """base_Validate() -> bool"""
3352 return _windows
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3354 def base_AcceptsFocus(*args
, **kwargs
):
3355 """base_AcceptsFocus() -> bool"""
3356 return _windows
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3358 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3359 """base_AcceptsFocusFromKeyboard() -> bool"""
3360 return _windows
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3362 def base_GetMaxSize(*args
, **kwargs
):
3363 """base_GetMaxSize() -> Size"""
3364 return _windows
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3366 def base_AddChild(*args
, **kwargs
):
3367 """base_AddChild(Window child)"""
3368 return _windows
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3370 def base_RemoveChild(*args
, **kwargs
):
3371 """base_RemoveChild(Window child)"""
3372 return _windows
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3374 def base_ShouldInheritColours(*args
, **kwargs
):
3375 """base_ShouldInheritColours() -> bool"""
3376 return _windows
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3378 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3379 """base_ApplyParentThemeBackground(Colour c)"""
3380 return _windows
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3383 class PyScrolledWindowPtr(PyScrolledWindow
):
3384 def __init__(self
, this
):
3386 if not hasattr(self
,"thisown"): self
.thisown
= 0
3387 self
.__class
__ = PyScrolledWindow
3388 _windows
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3390 def PrePyScrolledWindow(*args
, **kwargs
):
3391 """PrePyScrolledWindow() -> PyScrolledWindow"""
3392 val
= _windows
.new_PrePyScrolledWindow(*args
, **kwargs
)
3396 #---------------------------------------------------------------------------
3398 PRINT_MODE_NONE
= _windows
.PRINT_MODE_NONE
3399 PRINT_MODE_PREVIEW
= _windows
.PRINT_MODE_PREVIEW
3400 PRINT_MODE_FILE
= _windows
.PRINT_MODE_FILE
3401 PRINT_MODE_PRINTER
= _windows
.PRINT_MODE_PRINTER
3402 PRINT_MODE_STREAM
= _windows
.PRINT_MODE_STREAM
3403 class PrintData(core
.Object
):
3405 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3406 def __init__(self
, *args
, **kwargs
):
3407 """__init__() -> PrintData"""
3408 newobj
= _windows
.new_PrintData(*args
, **kwargs
)
3409 self
.this
= newobj
.this
3412 def __del__(self
, destroy
=_windows
.delete_PrintData
):
3415 if self
.thisown
: destroy(self
)
3418 def GetNoCopies(*args
, **kwargs
):
3419 """GetNoCopies() -> int"""
3420 return _windows
.PrintData_GetNoCopies(*args
, **kwargs
)
3422 def GetCollate(*args
, **kwargs
):
3423 """GetCollate() -> bool"""
3424 return _windows
.PrintData_GetCollate(*args
, **kwargs
)
3426 def GetOrientation(*args
, **kwargs
):
3427 """GetOrientation() -> int"""
3428 return _windows
.PrintData_GetOrientation(*args
, **kwargs
)
3430 def Ok(*args
, **kwargs
):
3432 return _windows
.PrintData_Ok(*args
, **kwargs
)
3434 def GetPrinterName(*args
, **kwargs
):
3435 """GetPrinterName() -> String"""
3436 return _windows
.PrintData_GetPrinterName(*args
, **kwargs
)
3438 def GetColour(*args
, **kwargs
):
3439 """GetColour() -> bool"""
3440 return _windows
.PrintData_GetColour(*args
, **kwargs
)
3442 def GetDuplex(*args
, **kwargs
):
3443 """GetDuplex() -> int"""
3444 return _windows
.PrintData_GetDuplex(*args
, **kwargs
)
3446 def GetPaperId(*args
, **kwargs
):
3447 """GetPaperId() -> int"""
3448 return _windows
.PrintData_GetPaperId(*args
, **kwargs
)
3450 def GetPaperSize(*args
, **kwargs
):
3451 """GetPaperSize() -> Size"""
3452 return _windows
.PrintData_GetPaperSize(*args
, **kwargs
)
3454 def GetQuality(*args
, **kwargs
):
3455 """GetQuality() -> int"""
3456 return _windows
.PrintData_GetQuality(*args
, **kwargs
)
3458 def SetNoCopies(*args
, **kwargs
):
3459 """SetNoCopies(int v)"""
3460 return _windows
.PrintData_SetNoCopies(*args
, **kwargs
)
3462 def SetCollate(*args
, **kwargs
):
3463 """SetCollate(bool flag)"""
3464 return _windows
.PrintData_SetCollate(*args
, **kwargs
)
3466 def SetOrientation(*args
, **kwargs
):
3467 """SetOrientation(int orient)"""
3468 return _windows
.PrintData_SetOrientation(*args
, **kwargs
)
3470 def SetPrinterName(*args
, **kwargs
):
3471 """SetPrinterName(String name)"""
3472 return _windows
.PrintData_SetPrinterName(*args
, **kwargs
)
3474 def SetColour(*args
, **kwargs
):
3475 """SetColour(bool colour)"""
3476 return _windows
.PrintData_SetColour(*args
, **kwargs
)
3478 def SetDuplex(*args
, **kwargs
):
3479 """SetDuplex(int duplex)"""
3480 return _windows
.PrintData_SetDuplex(*args
, **kwargs
)
3482 def SetPaperId(*args
, **kwargs
):
3483 """SetPaperId(int sizeId)"""
3484 return _windows
.PrintData_SetPaperId(*args
, **kwargs
)
3486 def SetPaperSize(*args
, **kwargs
):
3487 """SetPaperSize(Size sz)"""
3488 return _windows
.PrintData_SetPaperSize(*args
, **kwargs
)
3490 def SetQuality(*args
, **kwargs
):
3491 """SetQuality(int quality)"""
3492 return _windows
.PrintData_SetQuality(*args
, **kwargs
)
3494 def GetPrinterCommand(*args
, **kwargs
):
3495 """GetPrinterCommand() -> String"""
3496 return _windows
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3498 def GetPrinterOptions(*args
, **kwargs
):
3499 """GetPrinterOptions() -> String"""
3500 return _windows
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3502 def GetPreviewCommand(*args
, **kwargs
):
3503 """GetPreviewCommand() -> String"""
3504 return _windows
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3506 def GetFilename(*args
, **kwargs
):
3507 """GetFilename() -> String"""
3508 return _windows
.PrintData_GetFilename(*args
, **kwargs
)
3510 def GetFontMetricPath(*args
, **kwargs
):
3511 """GetFontMetricPath() -> String"""
3512 return _windows
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3514 def GetPrinterScaleX(*args
, **kwargs
):
3515 """GetPrinterScaleX() -> double"""
3516 return _windows
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3518 def GetPrinterScaleY(*args
, **kwargs
):
3519 """GetPrinterScaleY() -> double"""
3520 return _windows
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3522 def GetPrinterTranslateX(*args
, **kwargs
):
3523 """GetPrinterTranslateX() -> long"""
3524 return _windows
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3526 def GetPrinterTranslateY(*args
, **kwargs
):
3527 """GetPrinterTranslateY() -> long"""
3528 return _windows
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3530 def GetPrintMode(*args
, **kwargs
):
3531 """GetPrintMode() -> int"""
3532 return _windows
.PrintData_GetPrintMode(*args
, **kwargs
)
3534 def SetPrinterCommand(*args
, **kwargs
):
3535 """SetPrinterCommand(String command)"""
3536 return _windows
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3538 def SetPrinterOptions(*args
, **kwargs
):
3539 """SetPrinterOptions(String options)"""
3540 return _windows
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3542 def SetPreviewCommand(*args
, **kwargs
):
3543 """SetPreviewCommand(String command)"""
3544 return _windows
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3546 def SetFilename(*args
, **kwargs
):
3547 """SetFilename(String filename)"""
3548 return _windows
.PrintData_SetFilename(*args
, **kwargs
)
3550 def SetFontMetricPath(*args
, **kwargs
):
3551 """SetFontMetricPath(String path)"""
3552 return _windows
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3554 def SetPrinterScaleX(*args
, **kwargs
):
3555 """SetPrinterScaleX(double x)"""
3556 return _windows
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3558 def SetPrinterScaleY(*args
, **kwargs
):
3559 """SetPrinterScaleY(double y)"""
3560 return _windows
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3562 def SetPrinterScaling(*args
, **kwargs
):
3563 """SetPrinterScaling(double x, double y)"""
3564 return _windows
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3566 def SetPrinterTranslateX(*args
, **kwargs
):
3567 """SetPrinterTranslateX(long x)"""
3568 return _windows
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3570 def SetPrinterTranslateY(*args
, **kwargs
):
3571 """SetPrinterTranslateY(long y)"""
3572 return _windows
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3574 def SetPrinterTranslation(*args
, **kwargs
):
3575 """SetPrinterTranslation(long x, long y)"""
3576 return _windows
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3578 def SetPrintMode(*args
, **kwargs
):
3579 """SetPrintMode(int printMode)"""
3580 return _windows
.PrintData_SetPrintMode(*args
, **kwargs
)
3582 def GetOutputStream(*args
, **kwargs
):
3583 """GetOutputStream() -> OutputStream"""
3584 return _windows
.PrintData_GetOutputStream(*args
, **kwargs
)
3586 def SetOutputStream(*args
, **kwargs
):
3587 """SetOutputStream(OutputStream outputstream)"""
3588 return _windows
.PrintData_SetOutputStream(*args
, **kwargs
)
3590 def __nonzero__(self
): return self
.Ok()
3592 class PrintDataPtr(PrintData
):
3593 def __init__(self
, this
):
3595 if not hasattr(self
,"thisown"): self
.thisown
= 0
3596 self
.__class
__ = PrintData
3597 _windows
.PrintData_swigregister(PrintDataPtr
)
3598 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3599 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3601 class PageSetupDialogData(core
.Object
):
3603 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3604 def __init__(self
, *args
, **kwargs
):
3605 """__init__() -> PageSetupDialogData"""
3606 newobj
= _windows
.new_PageSetupDialogData(*args
, **kwargs
)
3607 self
.this
= newobj
.this
3610 def __del__(self
, destroy
=_windows
.delete_PageSetupDialogData
):
3613 if self
.thisown
: destroy(self
)
3616 def EnableHelp(*args
, **kwargs
):
3617 """EnableHelp(bool flag)"""
3618 return _windows
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3620 def EnableMargins(*args
, **kwargs
):
3621 """EnableMargins(bool flag)"""
3622 return _windows
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3624 def EnableOrientation(*args
, **kwargs
):
3625 """EnableOrientation(bool flag)"""
3626 return _windows
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3628 def EnablePaper(*args
, **kwargs
):
3629 """EnablePaper(bool flag)"""
3630 return _windows
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3632 def EnablePrinter(*args
, **kwargs
):
3633 """EnablePrinter(bool flag)"""
3634 return _windows
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3636 def GetDefaultMinMargins(*args
, **kwargs
):
3637 """GetDefaultMinMargins() -> bool"""
3638 return _windows
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3640 def GetEnableMargins(*args
, **kwargs
):
3641 """GetEnableMargins() -> bool"""
3642 return _windows
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3644 def GetEnableOrientation(*args
, **kwargs
):
3645 """GetEnableOrientation() -> bool"""
3646 return _windows
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3648 def GetEnablePaper(*args
, **kwargs
):
3649 """GetEnablePaper() -> bool"""
3650 return _windows
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3652 def GetEnablePrinter(*args
, **kwargs
):
3653 """GetEnablePrinter() -> bool"""
3654 return _windows
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3656 def GetEnableHelp(*args
, **kwargs
):
3657 """GetEnableHelp() -> bool"""
3658 return _windows
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3660 def GetDefaultInfo(*args
, **kwargs
):
3661 """GetDefaultInfo() -> bool"""
3662 return _windows
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3664 def GetMarginTopLeft(*args
, **kwargs
):
3665 """GetMarginTopLeft() -> Point"""
3666 return _windows
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3668 def GetMarginBottomRight(*args
, **kwargs
):
3669 """GetMarginBottomRight() -> Point"""
3670 return _windows
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3672 def GetMinMarginTopLeft(*args
, **kwargs
):
3673 """GetMinMarginTopLeft() -> Point"""
3674 return _windows
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3676 def GetMinMarginBottomRight(*args
, **kwargs
):
3677 """GetMinMarginBottomRight() -> Point"""
3678 return _windows
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3680 def GetPaperId(*args
, **kwargs
):
3681 """GetPaperId() -> int"""
3682 return _windows
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3684 def GetPaperSize(*args
, **kwargs
):
3685 """GetPaperSize() -> Size"""
3686 return _windows
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3688 def GetPrintData(*args
, **kwargs
):
3689 """GetPrintData() -> PrintData"""
3690 return _windows
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3692 def Ok(*args
, **kwargs
):
3694 return _windows
.PageSetupDialogData_Ok(*args
, **kwargs
)
3696 def SetDefaultInfo(*args
, **kwargs
):
3697 """SetDefaultInfo(bool flag)"""
3698 return _windows
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3700 def SetDefaultMinMargins(*args
, **kwargs
):
3701 """SetDefaultMinMargins(bool flag)"""
3702 return _windows
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3704 def SetMarginTopLeft(*args
, **kwargs
):
3705 """SetMarginTopLeft(Point pt)"""
3706 return _windows
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3708 def SetMarginBottomRight(*args
, **kwargs
):
3709 """SetMarginBottomRight(Point pt)"""
3710 return _windows
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3712 def SetMinMarginTopLeft(*args
, **kwargs
):
3713 """SetMinMarginTopLeft(Point pt)"""
3714 return _windows
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3716 def SetMinMarginBottomRight(*args
, **kwargs
):
3717 """SetMinMarginBottomRight(Point pt)"""
3718 return _windows
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3720 def SetPaperId(*args
, **kwargs
):
3721 """SetPaperId(int id)"""
3722 return _windows
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3724 def SetPaperSize(*args
, **kwargs
):
3725 """SetPaperSize(Size size)"""
3726 return _windows
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3728 def SetPrintData(*args
, **kwargs
):
3729 """SetPrintData(PrintData printData)"""
3730 return _windows
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3732 def __nonzero__(self
): return self
.Ok()
3734 class PageSetupDialogDataPtr(PageSetupDialogData
):
3735 def __init__(self
, this
):
3737 if not hasattr(self
,"thisown"): self
.thisown
= 0
3738 self
.__class
__ = PageSetupDialogData
3739 _windows
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3741 class PageSetupDialog(Dialog
):
3743 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3744 def __init__(self
, *args
, **kwargs
):
3745 """__init__(Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3746 newobj
= _windows
.new_PageSetupDialog(*args
, **kwargs
)
3747 self
.this
= newobj
.this
3750 self
._setOORInfo
(self
)
3752 def GetPageSetupData(*args
, **kwargs
):
3753 """GetPageSetupData() -> PageSetupDialogData"""
3754 return _windows
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3756 def ShowModal(*args
, **kwargs
):
3757 """ShowModal() -> int"""
3758 return _windows
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3761 class PageSetupDialogPtr(PageSetupDialog
):
3762 def __init__(self
, this
):
3764 if not hasattr(self
,"thisown"): self
.thisown
= 0
3765 self
.__class
__ = PageSetupDialog
3766 _windows
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3768 class PrintDialogData(core
.Object
):
3770 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3771 def __init__(self
, *args
):
3773 __init__() -> PrintDialogData
3774 __init__(PrintData printData) -> PrintDialogData
3776 newobj
= _windows
.new_PrintDialogData(*args
)
3777 self
.this
= newobj
.this
3780 def __del__(self
, destroy
=_windows
.delete_PrintDialogData
):
3783 if self
.thisown
: destroy(self
)
3786 def GetFromPage(*args
, **kwargs
):
3787 """GetFromPage() -> int"""
3788 return _windows
.PrintDialogData_GetFromPage(*args
, **kwargs
)
3790 def GetToPage(*args
, **kwargs
):
3791 """GetToPage() -> int"""
3792 return _windows
.PrintDialogData_GetToPage(*args
, **kwargs
)
3794 def GetMinPage(*args
, **kwargs
):
3795 """GetMinPage() -> int"""
3796 return _windows
.PrintDialogData_GetMinPage(*args
, **kwargs
)
3798 def GetMaxPage(*args
, **kwargs
):
3799 """GetMaxPage() -> int"""
3800 return _windows
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
3802 def GetNoCopies(*args
, **kwargs
):
3803 """GetNoCopies() -> int"""
3804 return _windows
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
3806 def GetAllPages(*args
, **kwargs
):
3807 """GetAllPages() -> bool"""
3808 return _windows
.PrintDialogData_GetAllPages(*args
, **kwargs
)
3810 def GetSelection(*args
, **kwargs
):
3811 """GetSelection() -> bool"""
3812 return _windows
.PrintDialogData_GetSelection(*args
, **kwargs
)
3814 def GetCollate(*args
, **kwargs
):
3815 """GetCollate() -> bool"""
3816 return _windows
.PrintDialogData_GetCollate(*args
, **kwargs
)
3818 def GetPrintToFile(*args
, **kwargs
):
3819 """GetPrintToFile() -> bool"""
3820 return _windows
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
3822 def GetSetupDialog(*args
, **kwargs
):
3823 """GetSetupDialog() -> bool"""
3824 return _windows
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
3826 def SetFromPage(*args
, **kwargs
):
3827 """SetFromPage(int v)"""
3828 return _windows
.PrintDialogData_SetFromPage(*args
, **kwargs
)
3830 def SetToPage(*args
, **kwargs
):
3831 """SetToPage(int v)"""
3832 return _windows
.PrintDialogData_SetToPage(*args
, **kwargs
)
3834 def SetMinPage(*args
, **kwargs
):
3835 """SetMinPage(int v)"""
3836 return _windows
.PrintDialogData_SetMinPage(*args
, **kwargs
)
3838 def SetMaxPage(*args
, **kwargs
):
3839 """SetMaxPage(int v)"""
3840 return _windows
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
3842 def SetNoCopies(*args
, **kwargs
):
3843 """SetNoCopies(int v)"""
3844 return _windows
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
3846 def SetAllPages(*args
, **kwargs
):
3847 """SetAllPages(bool flag)"""
3848 return _windows
.PrintDialogData_SetAllPages(*args
, **kwargs
)
3850 def SetSelection(*args
, **kwargs
):
3851 """SetSelection(bool flag)"""
3852 return _windows
.PrintDialogData_SetSelection(*args
, **kwargs
)
3854 def SetCollate(*args
, **kwargs
):
3855 """SetCollate(bool flag)"""
3856 return _windows
.PrintDialogData_SetCollate(*args
, **kwargs
)
3858 def SetPrintToFile(*args
, **kwargs
):
3859 """SetPrintToFile(bool flag)"""
3860 return _windows
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
3862 def SetSetupDialog(*args
, **kwargs
):
3863 """SetSetupDialog(bool flag)"""
3864 return _windows
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
3866 def EnablePrintToFile(*args
, **kwargs
):
3867 """EnablePrintToFile(bool flag)"""
3868 return _windows
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
3870 def EnableSelection(*args
, **kwargs
):
3871 """EnableSelection(bool flag)"""
3872 return _windows
.PrintDialogData_EnableSelection(*args
, **kwargs
)
3874 def EnablePageNumbers(*args
, **kwargs
):
3875 """EnablePageNumbers(bool flag)"""
3876 return _windows
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
3878 def EnableHelp(*args
, **kwargs
):
3879 """EnableHelp(bool flag)"""
3880 return _windows
.PrintDialogData_EnableHelp(*args
, **kwargs
)
3882 def GetEnablePrintToFile(*args
, **kwargs
):
3883 """GetEnablePrintToFile() -> bool"""
3884 return _windows
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
3886 def GetEnableSelection(*args
, **kwargs
):
3887 """GetEnableSelection() -> bool"""
3888 return _windows
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
3890 def GetEnablePageNumbers(*args
, **kwargs
):
3891 """GetEnablePageNumbers() -> bool"""
3892 return _windows
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
3894 def GetEnableHelp(*args
, **kwargs
):
3895 """GetEnableHelp() -> bool"""
3896 return _windows
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
3898 def Ok(*args
, **kwargs
):
3900 return _windows
.PrintDialogData_Ok(*args
, **kwargs
)
3902 def GetPrintData(*args
, **kwargs
):
3903 """GetPrintData() -> PrintData"""
3904 return _windows
.PrintDialogData_GetPrintData(*args
, **kwargs
)
3906 def SetPrintData(*args
, **kwargs
):
3907 """SetPrintData(PrintData printData)"""
3908 return _windows
.PrintDialogData_SetPrintData(*args
, **kwargs
)
3910 def __nonzero__(self
): return self
.Ok()
3912 class PrintDialogDataPtr(PrintDialogData
):
3913 def __init__(self
, this
):
3915 if not hasattr(self
,"thisown"): self
.thisown
= 0
3916 self
.__class
__ = PrintDialogData
3917 _windows
.PrintDialogData_swigregister(PrintDialogDataPtr
)
3919 class PrintDialog(Dialog
):
3921 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3922 def __init__(self
, *args
, **kwargs
):
3923 """__init__(Window parent, PrintDialogData data=None) -> PrintDialog"""
3924 newobj
= _windows
.new_PrintDialog(*args
, **kwargs
)
3925 self
.this
= newobj
.this
3928 self
._setOORInfo
(self
)
3930 def GetPrintDialogData(*args
, **kwargs
):
3931 """GetPrintDialogData() -> PrintDialogData"""
3932 return _windows
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
3934 def GetPrintDC(*args
, **kwargs
):
3935 """GetPrintDC() -> DC"""
3936 return _windows
.PrintDialog_GetPrintDC(*args
, **kwargs
)
3938 def ShowModal(*args
, **kwargs
):
3939 """ShowModal() -> int"""
3940 return _windows
.PrintDialog_ShowModal(*args
, **kwargs
)
3943 class PrintDialogPtr(PrintDialog
):
3944 def __init__(self
, this
):
3946 if not hasattr(self
,"thisown"): self
.thisown
= 0
3947 self
.__class
__ = PrintDialog
3948 _windows
.PrintDialog_swigregister(PrintDialogPtr
)
3950 PRINTER_NO_ERROR
= _windows
.PRINTER_NO_ERROR
3951 PRINTER_CANCELLED
= _windows
.PRINTER_CANCELLED
3952 PRINTER_ERROR
= _windows
.PRINTER_ERROR
3953 class Printer(core
.Object
):
3955 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3956 def __init__(self
, *args
, **kwargs
):
3957 """__init__(PrintDialogData data=None) -> Printer"""
3958 newobj
= _windows
.new_Printer(*args
, **kwargs
)
3959 self
.this
= newobj
.this
3962 def __del__(self
, destroy
=_windows
.delete_Printer
):
3965 if self
.thisown
: destroy(self
)
3968 def CreateAbortWindow(*args
, **kwargs
):
3969 """CreateAbortWindow(Window parent, Printout printout)"""
3970 return _windows
.Printer_CreateAbortWindow(*args
, **kwargs
)
3972 def GetPrintDialogData(*args
, **kwargs
):
3973 """GetPrintDialogData() -> PrintDialogData"""
3974 return _windows
.Printer_GetPrintDialogData(*args
, **kwargs
)
3976 def Print(*args
, **kwargs
):
3977 """Print(Window parent, Printout printout, int prompt=True) -> bool"""
3978 return _windows
.Printer_Print(*args
, **kwargs
)
3980 def PrintDialog(*args
, **kwargs
):
3981 """PrintDialog(Window parent) -> DC"""
3982 return _windows
.Printer_PrintDialog(*args
, **kwargs
)
3984 def ReportError(*args
, **kwargs
):
3985 """ReportError(Window parent, Printout printout, String message)"""
3986 return _windows
.Printer_ReportError(*args
, **kwargs
)
3988 def Setup(*args
, **kwargs
):
3989 """Setup(Window parent) -> bool"""
3990 return _windows
.Printer_Setup(*args
, **kwargs
)
3992 def GetAbort(*args
, **kwargs
):
3993 """GetAbort() -> bool"""
3994 return _windows
.Printer_GetAbort(*args
, **kwargs
)
3996 def GetLastError(*args
, **kwargs
):
3997 """GetLastError() -> int"""
3998 return _windows
.Printer_GetLastError(*args
, **kwargs
)
4000 GetLastError
= staticmethod(GetLastError
)
4002 class PrinterPtr(Printer
):
4003 def __init__(self
, this
):
4005 if not hasattr(self
,"thisown"): self
.thisown
= 0
4006 self
.__class
__ = Printer
4007 _windows
.Printer_swigregister(PrinterPtr
)
4009 def Printer_GetLastError(*args
, **kwargs
):
4010 """Printer_GetLastError() -> int"""
4011 return _windows
.Printer_GetLastError(*args
, **kwargs
)
4013 class Printout(core
.Object
):
4015 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4016 def __init__(self
, *args
, **kwargs
):
4017 """__init__(String title=PrintoutTitleStr) -> Printout"""
4018 newobj
= _windows
.new_Printout(*args
, **kwargs
)
4019 self
.this
= newobj
.this
4022 self
._setCallbackInfo
(self
, Printout
)
4024 def _setCallbackInfo(*args
, **kwargs
):
4025 """_setCallbackInfo(PyObject self, PyObject _class)"""
4026 return _windows
.Printout__setCallbackInfo(*args
, **kwargs
)
4028 def GetTitle(*args
, **kwargs
):
4029 """GetTitle() -> String"""
4030 return _windows
.Printout_GetTitle(*args
, **kwargs
)
4032 def GetDC(*args
, **kwargs
):
4034 return _windows
.Printout_GetDC(*args
, **kwargs
)
4036 def SetDC(*args
, **kwargs
):
4038 return _windows
.Printout_SetDC(*args
, **kwargs
)
4040 def SetPageSizePixels(*args
, **kwargs
):
4041 """SetPageSizePixels(int w, int h)"""
4042 return _windows
.Printout_SetPageSizePixels(*args
, **kwargs
)
4044 def GetPageSizePixels(*args
, **kwargs
):
4045 """GetPageSizePixels() -> (w, h)"""
4046 return _windows
.Printout_GetPageSizePixels(*args
, **kwargs
)
4048 def SetPageSizeMM(*args
, **kwargs
):
4049 """SetPageSizeMM(int w, int h)"""
4050 return _windows
.Printout_SetPageSizeMM(*args
, **kwargs
)
4052 def GetPageSizeMM(*args
, **kwargs
):
4053 """GetPageSizeMM() -> (w, h)"""
4054 return _windows
.Printout_GetPageSizeMM(*args
, **kwargs
)
4056 def SetPPIScreen(*args
, **kwargs
):
4057 """SetPPIScreen(int x, int y)"""
4058 return _windows
.Printout_SetPPIScreen(*args
, **kwargs
)
4060 def GetPPIScreen(*args
, **kwargs
):
4061 """GetPPIScreen() -> (x,y)"""
4062 return _windows
.Printout_GetPPIScreen(*args
, **kwargs
)
4064 def SetPPIPrinter(*args
, **kwargs
):
4065 """SetPPIPrinter(int x, int y)"""
4066 return _windows
.Printout_SetPPIPrinter(*args
, **kwargs
)
4068 def GetPPIPrinter(*args
, **kwargs
):
4069 """GetPPIPrinter() -> (x,y)"""
4070 return _windows
.Printout_GetPPIPrinter(*args
, **kwargs
)
4072 def IsPreview(*args
, **kwargs
):
4073 """IsPreview() -> bool"""
4074 return _windows
.Printout_IsPreview(*args
, **kwargs
)
4076 def SetIsPreview(*args
, **kwargs
):
4077 """SetIsPreview(bool p)"""
4078 return _windows
.Printout_SetIsPreview(*args
, **kwargs
)
4080 def base_OnBeginDocument(*args
, **kwargs
):
4081 """base_OnBeginDocument(int startPage, int endPage) -> bool"""
4082 return _windows
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4084 def base_OnEndDocument(*args
, **kwargs
):
4085 """base_OnEndDocument()"""
4086 return _windows
.Printout_base_OnEndDocument(*args
, **kwargs
)
4088 def base_OnBeginPrinting(*args
, **kwargs
):
4089 """base_OnBeginPrinting()"""
4090 return _windows
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4092 def base_OnEndPrinting(*args
, **kwargs
):
4093 """base_OnEndPrinting()"""
4094 return _windows
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4096 def base_OnPreparePrinting(*args
, **kwargs
):
4097 """base_OnPreparePrinting()"""
4098 return _windows
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4100 def base_HasPage(*args
, **kwargs
):
4101 """base_HasPage(int page) -> bool"""
4102 return _windows
.Printout_base_HasPage(*args
, **kwargs
)
4104 def base_GetPageInfo(*args
, **kwargs
):
4105 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4106 return _windows
.Printout_base_GetPageInfo(*args
, **kwargs
)
4109 class PrintoutPtr(Printout
):
4110 def __init__(self
, this
):
4112 if not hasattr(self
,"thisown"): self
.thisown
= 0
4113 self
.__class
__ = Printout
4114 _windows
.Printout_swigregister(PrintoutPtr
)
4116 class PreviewCanvas(ScrolledWindow
):
4118 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4119 def __init__(self
, *args
, **kwargs
):
4121 __init__(PrintPreview preview, Window parent, Point pos=DefaultPosition,
4122 Size size=DefaultSize, long style=0,
4123 String name=PreviewCanvasNameStr) -> PreviewCanvas
4125 newobj
= _windows
.new_PreviewCanvas(*args
, **kwargs
)
4126 self
.this
= newobj
.this
4129 self
._setOORInfo
(self
)
4132 class PreviewCanvasPtr(PreviewCanvas
):
4133 def __init__(self
, this
):
4135 if not hasattr(self
,"thisown"): self
.thisown
= 0
4136 self
.__class
__ = PreviewCanvas
4137 _windows
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4139 class PreviewFrame(Frame
):
4141 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4142 def __init__(self
, *args
, **kwargs
):
4144 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4145 Size size=DefaultSize,
4146 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4148 newobj
= _windows
.new_PreviewFrame(*args
, **kwargs
)
4149 self
.this
= newobj
.this
4152 self
._setOORInfo
(self
)
4154 def Initialize(*args
, **kwargs
):
4156 return _windows
.PreviewFrame_Initialize(*args
, **kwargs
)
4158 def CreateControlBar(*args
, **kwargs
):
4159 """CreateControlBar()"""
4160 return _windows
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4162 def CreateCanvas(*args
, **kwargs
):
4163 """CreateCanvas()"""
4164 return _windows
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4166 def GetControlBar(*args
, **kwargs
):
4167 """GetControlBar() -> PreviewControlBar"""
4168 return _windows
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4171 class PreviewFramePtr(PreviewFrame
):
4172 def __init__(self
, this
):
4174 if not hasattr(self
,"thisown"): self
.thisown
= 0
4175 self
.__class
__ = PreviewFrame
4176 _windows
.PreviewFrame_swigregister(PreviewFramePtr
)
4178 PREVIEW_PRINT
= _windows
.PREVIEW_PRINT
4179 PREVIEW_PREVIOUS
= _windows
.PREVIEW_PREVIOUS
4180 PREVIEW_NEXT
= _windows
.PREVIEW_NEXT
4181 PREVIEW_ZOOM
= _windows
.PREVIEW_ZOOM
4182 PREVIEW_FIRST
= _windows
.PREVIEW_FIRST
4183 PREVIEW_LAST
= _windows
.PREVIEW_LAST
4184 PREVIEW_GOTO
= _windows
.PREVIEW_GOTO
4185 PREVIEW_DEFAULT
= _windows
.PREVIEW_DEFAULT
4186 ID_PREVIEW_CLOSE
= _windows
.ID_PREVIEW_CLOSE
4187 ID_PREVIEW_NEXT
= _windows
.ID_PREVIEW_NEXT
4188 ID_PREVIEW_PREVIOUS
= _windows
.ID_PREVIEW_PREVIOUS
4189 ID_PREVIEW_PRINT
= _windows
.ID_PREVIEW_PRINT
4190 ID_PREVIEW_ZOOM
= _windows
.ID_PREVIEW_ZOOM
4191 ID_PREVIEW_FIRST
= _windows
.ID_PREVIEW_FIRST
4192 ID_PREVIEW_LAST
= _windows
.ID_PREVIEW_LAST
4193 ID_PREVIEW_GOTO
= _windows
.ID_PREVIEW_GOTO
4194 class PreviewControlBar(Panel
):
4196 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4197 def __init__(self
, *args
, **kwargs
):
4199 __init__(PrintPreview preview, long buttons, Window parent,
4200 Point pos=DefaultPosition, Size size=DefaultSize,
4201 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4203 newobj
= _windows
.new_PreviewControlBar(*args
, **kwargs
)
4204 self
.this
= newobj
.this
4207 self
._setOORInfo
(self
)
4209 def GetZoomControl(*args
, **kwargs
):
4210 """GetZoomControl() -> int"""
4211 return _windows
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4213 def SetZoomControl(*args
, **kwargs
):
4214 """SetZoomControl(int zoom)"""
4215 return _windows
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4217 def GetPrintPreview(*args
, **kwargs
):
4218 """GetPrintPreview() -> PrintPreview"""
4219 return _windows
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4221 def OnNext(*args
, **kwargs
):
4223 return _windows
.PreviewControlBar_OnNext(*args
, **kwargs
)
4225 def OnPrevious(*args
, **kwargs
):
4227 return _windows
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4229 def OnFirst(*args
, **kwargs
):
4231 return _windows
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4233 def OnLast(*args
, **kwargs
):
4235 return _windows
.PreviewControlBar_OnLast(*args
, **kwargs
)
4237 def OnGoto(*args
, **kwargs
):
4239 return _windows
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4242 class PreviewControlBarPtr(PreviewControlBar
):
4243 def __init__(self
, this
):
4245 if not hasattr(self
,"thisown"): self
.thisown
= 0
4246 self
.__class
__ = PreviewControlBar
4247 _windows
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4249 class PrintPreview(core
.Object
):
4251 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4252 def __init__(self
, *args
):
4254 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4255 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4257 newobj
= _windows
.new_PrintPreview(*args
)
4258 self
.this
= newobj
.this
4261 def SetCurrentPage(*args
, **kwargs
):
4262 """SetCurrentPage(int pageNum) -> bool"""
4263 return _windows
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4265 def GetCurrentPage(*args
, **kwargs
):
4266 """GetCurrentPage() -> int"""
4267 return _windows
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4269 def SetPrintout(*args
, **kwargs
):
4270 """SetPrintout(Printout printout)"""
4271 return _windows
.PrintPreview_SetPrintout(*args
, **kwargs
)
4273 def GetPrintout(*args
, **kwargs
):
4274 """GetPrintout() -> Printout"""
4275 return _windows
.PrintPreview_GetPrintout(*args
, **kwargs
)
4277 def GetPrintoutForPrinting(*args
, **kwargs
):
4278 """GetPrintoutForPrinting() -> Printout"""
4279 return _windows
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4281 def SetFrame(*args
, **kwargs
):
4282 """SetFrame(Frame frame)"""
4283 return _windows
.PrintPreview_SetFrame(*args
, **kwargs
)
4285 def SetCanvas(*args
, **kwargs
):
4286 """SetCanvas(PreviewCanvas canvas)"""
4287 return _windows
.PrintPreview_SetCanvas(*args
, **kwargs
)
4289 def GetFrame(*args
, **kwargs
):
4290 """GetFrame() -> Frame"""
4291 return _windows
.PrintPreview_GetFrame(*args
, **kwargs
)
4293 def GetCanvas(*args
, **kwargs
):
4294 """GetCanvas() -> PreviewCanvas"""
4295 return _windows
.PrintPreview_GetCanvas(*args
, **kwargs
)
4297 def PaintPage(*args
, **kwargs
):
4298 """PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4299 return _windows
.PrintPreview_PaintPage(*args
, **kwargs
)
4301 def DrawBlankPage(*args
, **kwargs
):
4302 """DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4303 return _windows
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4305 def RenderPage(*args
, **kwargs
):
4306 """RenderPage(int pageNum) -> bool"""
4307 return _windows
.PrintPreview_RenderPage(*args
, **kwargs
)
4309 def AdjustScrollbars(*args
, **kwargs
):
4310 """AdjustScrollbars(PreviewCanvas canvas)"""
4311 return _windows
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4313 def GetPrintDialogData(*args
, **kwargs
):
4314 """GetPrintDialogData() -> PrintDialogData"""
4315 return _windows
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4317 def SetZoom(*args
, **kwargs
):
4318 """SetZoom(int percent)"""
4319 return _windows
.PrintPreview_SetZoom(*args
, **kwargs
)
4321 def GetZoom(*args
, **kwargs
):
4322 """GetZoom() -> int"""
4323 return _windows
.PrintPreview_GetZoom(*args
, **kwargs
)
4325 def GetMaxPage(*args
, **kwargs
):
4326 """GetMaxPage() -> int"""
4327 return _windows
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4329 def GetMinPage(*args
, **kwargs
):
4330 """GetMinPage() -> int"""
4331 return _windows
.PrintPreview_GetMinPage(*args
, **kwargs
)
4333 def Ok(*args
, **kwargs
):
4335 return _windows
.PrintPreview_Ok(*args
, **kwargs
)
4337 def SetOk(*args
, **kwargs
):
4338 """SetOk(bool ok)"""
4339 return _windows
.PrintPreview_SetOk(*args
, **kwargs
)
4341 def Print(*args
, **kwargs
):
4342 """Print(bool interactive) -> bool"""
4343 return _windows
.PrintPreview_Print(*args
, **kwargs
)
4345 def DetermineScaling(*args
, **kwargs
):
4346 """DetermineScaling()"""
4347 return _windows
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4349 def __nonzero__(self
): return self
.Ok()
4351 class PrintPreviewPtr(PrintPreview
):
4352 def __init__(self
, this
):
4354 if not hasattr(self
,"thisown"): self
.thisown
= 0
4355 self
.__class
__ = PrintPreview
4356 _windows
.PrintPreview_swigregister(PrintPreviewPtr
)
4358 class PyPrintPreview(PrintPreview
):
4360 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4361 def __init__(self
, *args
):
4363 __init__(Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4364 __init__(Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4366 newobj
= _windows
.new_PyPrintPreview(*args
)
4367 self
.this
= newobj
.this
4370 self
._setCallbackInfo
(self
, PyPrintPreview
)
4372 def _setCallbackInfo(*args
, **kwargs
):
4373 """_setCallbackInfo(PyObject self, PyObject _class)"""
4374 return _windows
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4376 def base_SetCurrentPage(*args
, **kwargs
):
4377 """base_SetCurrentPage(int pageNum) -> bool"""
4378 return _windows
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4380 def base_PaintPage(*args
, **kwargs
):
4381 """base_PaintPage(PreviewCanvas canvas, DC dc) -> bool"""
4382 return _windows
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4384 def base_DrawBlankPage(*args
, **kwargs
):
4385 """base_DrawBlankPage(PreviewCanvas canvas, DC dc) -> bool"""
4386 return _windows
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4388 def base_RenderPage(*args
, **kwargs
):
4389 """base_RenderPage(int pageNum) -> bool"""
4390 return _windows
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4392 def base_SetZoom(*args
, **kwargs
):
4393 """base_SetZoom(int percent)"""
4394 return _windows
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4396 def base_Print(*args
, **kwargs
):
4397 """base_Print(bool interactive) -> bool"""
4398 return _windows
.PyPrintPreview_base_Print(*args
, **kwargs
)
4400 def base_DetermineScaling(*args
, **kwargs
):
4401 """base_DetermineScaling()"""
4402 return _windows
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4405 class PyPrintPreviewPtr(PyPrintPreview
):
4406 def __init__(self
, this
):
4408 if not hasattr(self
,"thisown"): self
.thisown
= 0
4409 self
.__class
__ = PyPrintPreview
4410 _windows
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4412 class PyPreviewFrame(PreviewFrame
):
4414 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4415 def __init__(self
, *args
, **kwargs
):
4417 __init__(PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4418 Size size=DefaultSize,
4419 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4421 newobj
= _windows
.new_PyPreviewFrame(*args
, **kwargs
)
4422 self
.this
= newobj
.this
4425 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4427 def _setCallbackInfo(*args
, **kwargs
):
4428 """_setCallbackInfo(PyObject self, PyObject _class)"""
4429 return _windows
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4431 def SetPreviewCanvas(*args
, **kwargs
):
4432 """SetPreviewCanvas(PreviewCanvas canvas)"""
4433 return _windows
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4435 def SetControlBar(*args
, **kwargs
):
4436 """SetControlBar(PreviewControlBar bar)"""
4437 return _windows
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4439 def base_Initialize(*args
, **kwargs
):
4440 """base_Initialize()"""
4441 return _windows
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4443 def base_CreateCanvas(*args
, **kwargs
):
4444 """base_CreateCanvas()"""
4445 return _windows
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4447 def base_CreateControlBar(*args
, **kwargs
):
4448 """base_CreateControlBar()"""
4449 return _windows
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4452 class PyPreviewFramePtr(PyPreviewFrame
):
4453 def __init__(self
, this
):
4455 if not hasattr(self
,"thisown"): self
.thisown
= 0
4456 self
.__class
__ = PyPreviewFrame
4457 _windows
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4459 class PyPreviewControlBar(PreviewControlBar
):
4461 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4462 def __init__(self
, *args
, **kwargs
):
4464 __init__(PrintPreview preview, long buttons, Window parent,
4465 Point pos=DefaultPosition, Size size=DefaultSize,
4466 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4468 newobj
= _windows
.new_PyPreviewControlBar(*args
, **kwargs
)
4469 self
.this
= newobj
.this
4472 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4474 def _setCallbackInfo(*args
, **kwargs
):
4475 """_setCallbackInfo(PyObject self, PyObject _class)"""
4476 return _windows
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4478 def SetPrintPreview(*args
, **kwargs
):
4479 """SetPrintPreview(PrintPreview preview)"""
4480 return _windows
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4482 def base_CreateButtons(*args
, **kwargs
):
4483 """base_CreateButtons()"""
4484 return _windows
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4486 def base_SetZoomControl(*args
, **kwargs
):
4487 """base_SetZoomControl(int zoom)"""
4488 return _windows
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4491 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4492 def __init__(self
, this
):
4494 if not hasattr(self
,"thisown"): self
.thisown
= 0
4495 self
.__class
__ = PyPreviewControlBar
4496 _windows
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)