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__(self, 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(self, 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
)
44 def GetClassDefaultAttributes(*args
, **kwargs
):
46 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
48 Get the default attributes for this class. This is useful if
49 you want to use the same font or colour in your own control as
50 in a standard control -- which is a much better idea than hard
51 coding specific colours or fonts which might look completely out
52 of place on the users system, especially if it uses themes.
54 The variant parameter is only relevant under Mac currently and is
55 ignore under other platforms. Under Mac, it will change the size of the
56 returned font. See SetWindowVariant for more about this.
58 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
60 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
62 class PanelPtr(Panel
):
63 def __init__(self
, this
):
65 if not hasattr(self
,"thisown"): self
.thisown
= 0
66 self
.__class
__ = Panel
67 _windows_
.Panel_swigregister(PanelPtr
)
69 def PrePanel(*args
, **kwargs
):
70 """PrePanel() -> Panel"""
71 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
75 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
77 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
79 Get the default attributes for this class. This is useful if
80 you want to use the same font or colour in your own control as
81 in a standard control -- which is a much better idea than hard
82 coding specific colours or fonts which might look completely out
83 of place on the users system, especially if it uses themes.
85 The variant parameter is only relevant under Mac currently and is
86 ignore under other platforms. Under Mac, it will change the size of the
87 returned font. See SetWindowVariant for more about this.
89 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
91 #---------------------------------------------------------------------------
93 class ScrolledWindow(Panel
):
95 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
96 def __init__(self
, *args
, **kwargs
):
98 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
99 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
100 String name=PanelNameStr) -> ScrolledWindow
102 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
103 self
.this
= newobj
.this
106 self
._setOORInfo
(self
)
108 def Create(*args
, **kwargs
):
110 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
111 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
112 String name=PanelNameStr) -> bool
114 Create the GUI part of the Window for 2-phase creation mode.
116 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
118 def SetScrollbars(*args
, **kwargs
):
120 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
121 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
123 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
125 def Scroll(*args
, **kwargs
):
126 """Scroll(self, int x, int y)"""
127 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
129 def GetScrollPageSize(*args
, **kwargs
):
130 """GetScrollPageSize(self, int orient) -> int"""
131 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
133 def SetScrollPageSize(*args
, **kwargs
):
134 """SetScrollPageSize(self, int orient, int pageSize)"""
135 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
137 def SetScrollRate(*args
, **kwargs
):
138 """SetScrollRate(self, int xstep, int ystep)"""
139 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
141 def GetScrollPixelsPerUnit(*args
, **kwargs
):
143 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
145 Get the size of one logical unit in physical units.
147 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
149 def EnableScrolling(*args
, **kwargs
):
150 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
151 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
153 def GetViewStart(*args
, **kwargs
):
155 GetViewStart() -> (x,y)
159 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
161 def SetScale(*args
, **kwargs
):
162 """SetScale(self, double xs, double ys)"""
163 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
165 def GetScaleX(*args
, **kwargs
):
166 """GetScaleX(self) -> double"""
167 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
169 def GetScaleY(*args
, **kwargs
):
170 """GetScaleY(self) -> double"""
171 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
173 def CalcScrolledPosition(*args
):
175 CalcScrolledPosition(self, Point pt) -> Point
176 CalcScrolledPosition(int x, int y) -> (sx, sy)
178 Translate between scrolled and unscrolled coordinates.
180 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
182 def CalcUnscrolledPosition(*args
):
184 CalcUnscrolledPosition(self, Point pt) -> Point
185 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
187 Translate between scrolled and unscrolled coordinates.
189 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
191 def AdjustScrollbars(*args
, **kwargs
):
192 """AdjustScrollbars(self)"""
193 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
195 def CalcScrollInc(*args
, **kwargs
):
196 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
197 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
199 def SetTargetWindow(*args
, **kwargs
):
200 """SetTargetWindow(self, Window target)"""
201 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
203 def GetTargetWindow(*args
, **kwargs
):
204 """GetTargetWindow(self) -> Window"""
205 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
207 def SetTargetRect(*args
, **kwargs
):
208 """SetTargetRect(self, Rect rect)"""
209 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
211 def GetTargetRect(*args
, **kwargs
):
212 """GetTargetRect(self) -> Rect"""
213 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
215 def GetClassDefaultAttributes(*args
, **kwargs
):
217 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
219 Get the default attributes for this class. This is useful if
220 you want to use the same font or colour in your own control as
221 in a standard control -- which is a much better idea than hard
222 coding specific colours or fonts which might look completely out
223 of place on the users system, especially if it uses themes.
225 The variant parameter is only relevant under Mac currently and is
226 ignore under other platforms. Under Mac, it will change the size of the
227 returned font. See SetWindowVariant for more about this.
229 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
231 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
233 class ScrolledWindowPtr(ScrolledWindow
):
234 def __init__(self
, this
):
236 if not hasattr(self
,"thisown"): self
.thisown
= 0
237 self
.__class
__ = ScrolledWindow
238 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
240 def PreScrolledWindow(*args
, **kwargs
):
241 """PreScrolledWindow() -> ScrolledWindow"""
242 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
246 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
248 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
250 Get the default attributes for this class. This is useful if
251 you want to use the same font or colour in your own control as
252 in a standard control -- which is a much better idea than hard
253 coding specific colours or fonts which might look completely out
254 of place on the users system, especially if it uses themes.
256 The variant parameter is only relevant under Mac currently and is
257 ignore under other platforms. Under Mac, it will change the size of the
258 returned font. See SetWindowVariant for more about this.
260 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
262 #---------------------------------------------------------------------------
264 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
265 ICONIZE
= _windows_
.ICONIZE
266 MINIMIZE
= _windows_
.MINIMIZE
267 MAXIMIZE
= _windows_
.MAXIMIZE
268 CLOSE_BOX
= _windows_
.CLOSE_BOX
269 THICK_FRAME
= _windows_
.THICK_FRAME
270 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
271 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
272 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
273 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
274 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
275 RESIZE_BOX
= _windows_
.RESIZE_BOX
276 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
277 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
278 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
279 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
280 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
281 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
282 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
283 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
284 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
285 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
286 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
287 USER_COLOURS
= _windows_
.USER_COLOURS
288 NO_3D
= _windows_
.NO_3D
289 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
290 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
291 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
292 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
293 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
294 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
295 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
296 class TopLevelWindow(_core
.Window
):
297 def __init__(self
): raise RuntimeError, "No constructor defined"
299 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
300 def Maximize(*args
, **kwargs
):
301 """Maximize(self, bool maximize=True)"""
302 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
304 def Restore(*args
, **kwargs
):
306 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
308 def Iconize(*args
, **kwargs
):
309 """Iconize(self, bool iconize=True)"""
310 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
312 def IsMaximized(*args
, **kwargs
):
313 """IsMaximized(self) -> bool"""
314 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
316 def IsIconized(*args
, **kwargs
):
317 """IsIconized(self) -> bool"""
318 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
320 def GetIcon(*args
, **kwargs
):
321 """GetIcon(self) -> Icon"""
322 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
324 def SetIcon(*args
, **kwargs
):
325 """SetIcon(self, Icon icon)"""
326 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
328 def SetIcons(*args
, **kwargs
):
329 """SetIcons(self, wxIconBundle icons)"""
330 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
332 def ShowFullScreen(*args
, **kwargs
):
333 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
334 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
336 def IsFullScreen(*args
, **kwargs
):
337 """IsFullScreen(self) -> bool"""
338 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
340 def SetTitle(*args
, **kwargs
):
342 SetTitle(self, String title)
344 Sets the window's title. Applicable only to frames and dialogs.
346 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
348 def GetTitle(*args
, **kwargs
):
350 GetTitle(self) -> String
352 Gets the window's title. Applicable only to frames and dialogs.
354 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
356 def SetShape(*args
, **kwargs
):
357 """SetShape(self, Region region) -> bool"""
358 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
361 class TopLevelWindowPtr(TopLevelWindow
):
362 def __init__(self
, this
):
364 if not hasattr(self
,"thisown"): self
.thisown
= 0
365 self
.__class
__ = TopLevelWindow
366 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
367 cvar
= _windows_
.cvar
368 FrameNameStr
= cvar
.FrameNameStr
369 DialogNameStr
= cvar
.DialogNameStr
370 StatusLineNameStr
= cvar
.StatusLineNameStr
371 ToolBarNameStr
= cvar
.ToolBarNameStr
373 #---------------------------------------------------------------------------
375 class Frame(TopLevelWindow
):
377 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
378 def __init__(self
, *args
, **kwargs
):
380 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
381 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
382 String name=FrameNameStr) -> Frame
384 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
385 self
.this
= newobj
.this
388 self
._setOORInfo
(self
)
390 def Create(*args
, **kwargs
):
392 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
393 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
394 String name=FrameNameStr) -> bool
396 return _windows_
.Frame_Create(*args
, **kwargs
)
398 def GetClientAreaOrigin(*args
, **kwargs
):
400 GetClientAreaOrigin(self) -> Point
402 Get the origin of the client area of the window relative to the
403 window's top left corner (the client area may be shifted because of
404 the borders, scrollbars, other decorations...)
406 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
408 def SendSizeEvent(*args
, **kwargs
):
409 """SendSizeEvent(self)"""
410 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
412 def SetMenuBar(*args
, **kwargs
):
413 """SetMenuBar(self, MenuBar menubar)"""
414 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
416 def GetMenuBar(*args
, **kwargs
):
417 """GetMenuBar(self) -> MenuBar"""
418 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
420 def ProcessCommand(*args
, **kwargs
):
421 """ProcessCommand(self, int winid) -> bool"""
422 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
424 Command
= ProcessCommand
425 def CreateStatusBar(*args
, **kwargs
):
427 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
428 String name=StatusLineNameStr) -> StatusBar
430 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
432 def GetStatusBar(*args
, **kwargs
):
433 """GetStatusBar(self) -> StatusBar"""
434 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
436 def SetStatusBar(*args
, **kwargs
):
437 """SetStatusBar(self, StatusBar statBar)"""
438 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
440 def SetStatusText(*args
, **kwargs
):
441 """SetStatusText(self, String text, int number=0)"""
442 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
444 def SetStatusWidths(*args
, **kwargs
):
445 """SetStatusWidths(self, int widths, int widths_field)"""
446 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
448 def PushStatusText(*args
, **kwargs
):
449 """PushStatusText(self, String text, int number=0)"""
450 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
452 def PopStatusText(*args
, **kwargs
):
453 """PopStatusText(self, int number=0)"""
454 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
456 def SetStatusBarPane(*args
, **kwargs
):
457 """SetStatusBarPane(self, int n)"""
458 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
460 def GetStatusBarPane(*args
, **kwargs
):
461 """GetStatusBarPane(self) -> int"""
462 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
464 def CreateToolBar(*args
, **kwargs
):
465 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
466 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
468 def GetToolBar(*args
, **kwargs
):
469 """GetToolBar(self) -> wxToolBar"""
470 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
472 def SetToolBar(*args
, **kwargs
):
473 """SetToolBar(self, wxToolBar toolbar)"""
474 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
476 def DoGiveHelp(*args
, **kwargs
):
477 """DoGiveHelp(self, String text, bool show)"""
478 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
480 def DoMenuUpdates(*args
, **kwargs
):
481 """DoMenuUpdates(self, Menu menu=None)"""
482 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
484 def GetClassDefaultAttributes(*args
, **kwargs
):
486 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
488 Get the default attributes for this class. This is useful if
489 you want to use the same font or colour in your own control as
490 in a standard control -- which is a much better idea than hard
491 coding specific colours or fonts which might look completely out
492 of place on the users system, especially if it uses themes.
494 The variant parameter is only relevant under Mac currently and is
495 ignore under other platforms. Under Mac, it will change the size of the
496 returned font. See SetWindowVariant for more about this.
498 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
500 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
502 class FramePtr(Frame
):
503 def __init__(self
, this
):
505 if not hasattr(self
,"thisown"): self
.thisown
= 0
506 self
.__class
__ = Frame
507 _windows_
.Frame_swigregister(FramePtr
)
509 def PreFrame(*args
, **kwargs
):
510 """PreFrame() -> Frame"""
511 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
515 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
517 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
519 Get the default attributes for this class. This is useful if
520 you want to use the same font or colour in your own control as
521 in a standard control -- which is a much better idea than hard
522 coding specific colours or fonts which might look completely out
523 of place on the users system, especially if it uses themes.
525 The variant parameter is only relevant under Mac currently and is
526 ignore under other platforms. Under Mac, it will change the size of the
527 returned font. See SetWindowVariant for more about this.
529 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
531 #---------------------------------------------------------------------------
533 class Dialog(TopLevelWindow
):
535 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
536 def __init__(self
, *args
, **kwargs
):
538 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
539 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
540 String name=DialogNameStr) -> Dialog
542 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
543 self
.this
= newobj
.this
546 self
._setOORInfo
(self
)
548 def Create(*args
, **kwargs
):
550 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
551 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
552 String name=DialogNameStr) -> bool
554 return _windows_
.Dialog_Create(*args
, **kwargs
)
556 def SetReturnCode(*args
, **kwargs
):
557 """SetReturnCode(self, int returnCode)"""
558 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
560 def GetReturnCode(*args
, **kwargs
):
561 """GetReturnCode(self) -> int"""
562 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
564 def CreateTextSizer(*args
, **kwargs
):
565 """CreateTextSizer(self, String message) -> Sizer"""
566 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
568 def CreateButtonSizer(*args
, **kwargs
):
569 """CreateButtonSizer(self, long flags) -> Sizer"""
570 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
572 def IsModal(*args
, **kwargs
):
573 """IsModal(self) -> bool"""
574 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
576 def ShowModal(*args
, **kwargs
):
577 """ShowModal(self) -> int"""
578 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
580 def EndModal(*args
, **kwargs
):
581 """EndModal(self, int retCode)"""
582 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
584 def GetClassDefaultAttributes(*args
, **kwargs
):
586 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
588 Get the default attributes for this class. This is useful if
589 you want to use the same font or colour in your own control as
590 in a standard control -- which is a much better idea than hard
591 coding specific colours or fonts which might look completely out
592 of place on the users system, especially if it uses themes.
594 The variant parameter is only relevant under Mac currently and is
595 ignore under other platforms. Under Mac, it will change the size of the
596 returned font. See SetWindowVariant for more about this.
598 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
600 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
602 class DialogPtr(Dialog
):
603 def __init__(self
, this
):
605 if not hasattr(self
,"thisown"): self
.thisown
= 0
606 self
.__class
__ = Dialog
607 _windows_
.Dialog_swigregister(DialogPtr
)
609 def PreDialog(*args
, **kwargs
):
610 """PreDialog() -> Dialog"""
611 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
615 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
617 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
619 Get the default attributes for this class. This is useful if
620 you want to use the same font or colour in your own control as
621 in a standard control -- which is a much better idea than hard
622 coding specific colours or fonts which might look completely out
623 of place on the users system, especially if it uses themes.
625 The variant parameter is only relevant under Mac currently and is
626 ignore under other platforms. Under Mac, it will change the size of the
627 returned font. See SetWindowVariant for more about this.
629 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
631 #---------------------------------------------------------------------------
633 class MiniFrame(Frame
):
635 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
636 def __init__(self
, *args
, **kwargs
):
638 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
639 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
640 String name=FrameNameStr) -> MiniFrame
642 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
643 self
.this
= newobj
.this
646 self
._setOORInfo
(self
)
648 def Create(*args
, **kwargs
):
650 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
651 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
652 String name=FrameNameStr) -> bool
654 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
657 class MiniFramePtr(MiniFrame
):
658 def __init__(self
, this
):
660 if not hasattr(self
,"thisown"): self
.thisown
= 0
661 self
.__class
__ = MiniFrame
662 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
664 def PreMiniFrame(*args
, **kwargs
):
665 """PreMiniFrame() -> MiniFrame"""
666 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
670 #---------------------------------------------------------------------------
672 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
673 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
674 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
675 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
676 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
677 class SplashScreenWindow(_core
.Window
):
679 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
680 def __init__(self
, *args
, **kwargs
):
682 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
683 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
685 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
686 self
.this
= newobj
.this
689 self
._setOORInfo
(self
)
691 def SetBitmap(*args
, **kwargs
):
692 """SetBitmap(self, Bitmap bitmap)"""
693 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
695 def GetBitmap(*args
, **kwargs
):
696 """GetBitmap(self) -> Bitmap"""
697 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
700 class SplashScreenWindowPtr(SplashScreenWindow
):
701 def __init__(self
, this
):
703 if not hasattr(self
,"thisown"): self
.thisown
= 0
704 self
.__class
__ = SplashScreenWindow
705 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
707 class SplashScreen(Frame
):
709 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
710 def __init__(self
, *args
, **kwargs
):
712 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
713 Window parent, int id, Point pos=DefaultPosition,
714 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
716 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
717 self
.this
= newobj
.this
720 self
._setOORInfo
(self
)
722 def GetSplashStyle(*args
, **kwargs
):
723 """GetSplashStyle(self) -> long"""
724 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
726 def GetSplashWindow(*args
, **kwargs
):
727 """GetSplashWindow(self) -> SplashScreenWindow"""
728 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
730 def GetTimeout(*args
, **kwargs
):
731 """GetTimeout(self) -> int"""
732 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
735 class SplashScreenPtr(SplashScreen
):
736 def __init__(self
, this
):
738 if not hasattr(self
,"thisown"): self
.thisown
= 0
739 self
.__class
__ = SplashScreen
740 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
742 #---------------------------------------------------------------------------
744 class StatusBar(_core
.Window
):
746 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
747 def __init__(self
, *args
, **kwargs
):
748 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
749 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
750 self
.this
= newobj
.this
753 self
._setOORInfo
(self
)
755 def Create(*args
, **kwargs
):
756 """Create(self, Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
757 return _windows_
.StatusBar_Create(*args
, **kwargs
)
759 def SetFieldsCount(*args
, **kwargs
):
760 """SetFieldsCount(self, int number=1)"""
761 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
763 def GetFieldsCount(*args
, **kwargs
):
764 """GetFieldsCount(self) -> int"""
765 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
767 def SetStatusText(*args
, **kwargs
):
768 """SetStatusText(self, String text, int number=0)"""
769 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
771 def GetStatusText(*args
, **kwargs
):
772 """GetStatusText(self, int number=0) -> String"""
773 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
775 def PushStatusText(*args
, **kwargs
):
776 """PushStatusText(self, String text, int number=0)"""
777 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
779 def PopStatusText(*args
, **kwargs
):
780 """PopStatusText(self, int number=0)"""
781 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
783 def SetStatusWidths(*args
, **kwargs
):
784 """SetStatusWidths(self, int widths, int widths_field)"""
785 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
787 def GetFieldRect(*args
, **kwargs
):
788 """GetFieldRect(self, int i) -> Rect"""
789 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
791 def SetMinHeight(*args
, **kwargs
):
792 """SetMinHeight(self, int height)"""
793 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
795 def GetBorderX(*args
, **kwargs
):
796 """GetBorderX(self) -> int"""
797 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
799 def GetBorderY(*args
, **kwargs
):
800 """GetBorderY(self) -> int"""
801 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
803 def GetClassDefaultAttributes(*args
, **kwargs
):
805 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
807 Get the default attributes for this class. This is useful if
808 you want to use the same font or colour in your own control as
809 in a standard control -- which is a much better idea than hard
810 coding specific colours or fonts which might look completely out
811 of place on the users system, especially if it uses themes.
813 The variant parameter is only relevant under Mac currently and is
814 ignore under other platforms. Under Mac, it will change the size of the
815 returned font. See SetWindowVariant for more about this.
817 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
819 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
821 class StatusBarPtr(StatusBar
):
822 def __init__(self
, this
):
824 if not hasattr(self
,"thisown"): self
.thisown
= 0
825 self
.__class
__ = StatusBar
826 _windows_
.StatusBar_swigregister(StatusBarPtr
)
828 def PreStatusBar(*args
, **kwargs
):
829 """PreStatusBar() -> StatusBar"""
830 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
834 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
836 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
838 Get the default attributes for this class. This is useful if
839 you want to use the same font or colour in your own control as
840 in a standard control -- which is a much better idea than hard
841 coding specific colours or fonts which might look completely out
842 of place on the users system, especially if it uses themes.
844 The variant parameter is only relevant under Mac currently and is
845 ignore under other platforms. Under Mac, it will change the size of the
846 returned font. See SetWindowVariant for more about this.
848 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
850 #---------------------------------------------------------------------------
852 SP_NOBORDER
= _windows_
.SP_NOBORDER
853 SP_NOSASH
= _windows_
.SP_NOSASH
854 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
855 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
856 SP_3DSASH
= _windows_
.SP_3DSASH
857 SP_3DBORDER
= _windows_
.SP_3DBORDER
858 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
859 SP_BORDER
= _windows_
.SP_BORDER
860 SP_3D
= _windows_
.SP_3D
861 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
862 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
863 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
864 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
865 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
866 class SplitterWindow(_core
.Window
):
868 wx.SplitterWindow manages up to two subwindows or panes,
869 with an optional vertical or horizontal split which can be
870 used with the mouse or programmatically.
874 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
875 def __init__(self
, *args
, **kwargs
):
877 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
878 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
880 Constructor. Creates and shows a SplitterWindow.
882 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
883 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
884 self
.this
= newobj
.this
887 self
._setOORInfo
(self
)
889 def Create(*args
, **kwargs
):
891 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
892 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
894 Create the GUI part of the SplitterWindow for the 2-phase create.
896 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
898 def GetWindow1(*args
, **kwargs
):
900 GetWindow1(self) -> Window
902 Gets the only or left/top pane.
904 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
906 def GetWindow2(*args
, **kwargs
):
908 GetWindow2(self) -> Window
910 Gets the right/bottom pane.
912 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
914 def SetSplitMode(*args
, **kwargs
):
916 SetSplitMode(self, int mode)
918 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
919 wx.SPLIT_HORIZONTAL. This only sets the internal variable;
920 does not update the display.
922 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
924 def GetSplitMode(*args
, **kwargs
):
926 GetSplitMode(self) -> int
930 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
932 def Initialize(*args
, **kwargs
):
934 Initialize(self, Window window)
936 Initializes the splitter window to have one pane. This
937 should be called if you wish to initially view only a single
938 pane in the splitter window.
940 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
942 def SplitVertically(*args
, **kwargs
):
944 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
946 Initializes the left and right panes of the splitter window.
948 window1 The left pane.
949 window2 The right pane.
950 sashPosition The initial position of the sash. If this
951 value is positive, it specifies the size
952 of the left pane. If it is negative, it is
953 absolute value gives the size of the right
954 pane. Finally, specify 0 (default) to
955 choose the default position (half of the
958 Returns True if successful, False otherwise (the window was
961 SplitVertically should be called if you wish to initially
962 view two panes. It can also be called at any subsequent
963 time, but the application should check that the window is
964 not currently split using IsSplit.
966 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
968 def SplitHorizontally(*args
, **kwargs
):
970 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
972 Initializes the top and bottom panes of the splitter window.
974 window1 The top pane.
975 window2 The bottom pane.
976 sashPosition The initial position of the sash. If this
977 value is positive, it specifies the size
978 of the upper pane. If it is negative, it
979 is absolute value gives the size of the
980 lower pane. Finally, specify 0 (default)
981 to choose the default position (half of
982 the total window height).
984 Returns True if successful, False otherwise (the window was
987 SplitHorizontally should be called if you wish to initially
988 view two panes. It can also be called at any subsequent
989 time, but the application should check that the window is
990 not currently split using IsSplit.
992 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
994 def Unsplit(*args
, **kwargs
):
996 Unsplit(self, Window toRemove=None) -> bool
998 Unsplits the window. Pass the pane to remove, or None to
999 remove the right or bottom pane. Returns True if
1000 successful, False otherwise (the window was not split).
1002 This function will not actually delete the pane being
1003 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1004 for the desired behaviour. By default, the pane being
1005 removed is only hidden.
1007 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1009 def ReplaceWindow(*args
, **kwargs
):
1011 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1013 This function replaces one of the windows managed by the
1014 SplitterWindow with another one. It is in general better to
1015 use it instead of calling Unsplit() and then resplitting the
1016 window back because it will provoke much less flicker. It is
1017 valid to call this function whether the splitter has two
1018 windows or only one.
1020 Both parameters should be non-None and winOld must specify
1021 one of the windows managed by the splitter. If the
1022 parameters are incorrect or the window couldn't be replaced,
1023 False is returned. Otherwise the function will return True,
1024 but please notice that it will not Destroy the replaced
1025 window and you may wish to do it yourself.
1027 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1029 def UpdateSize(*args
, **kwargs
):
1033 Causes any pending sizing of the sash and child panes to
1034 take place immediately.
1036 Such resizing normally takes place in idle time, in order to
1037 wait for layout to be completed. However, this can cause
1038 unacceptable flicker as the panes are resized after the
1039 window has been shown. To work around this, you can perform
1040 window layout (for example by sending a size event to the
1041 parent window), and then call this function, before showing
1042 the top-level window.
1044 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1046 def IsSplit(*args
, **kwargs
):
1048 IsSplit(self) -> bool
1050 Is the window split?
1052 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1054 def SetSashSize(*args
, **kwargs
):
1056 SetSashSize(self, int width)
1060 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1062 def SetBorderSize(*args
, **kwargs
):
1064 SetBorderSize(self, int width)
1066 Sets the border size
1068 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1070 def GetSashSize(*args
, **kwargs
):
1072 GetSashSize(self) -> int
1076 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1078 def GetBorderSize(*args
, **kwargs
):
1080 GetBorderSize(self) -> int
1082 Gets the border size
1084 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1086 def SetSashPosition(*args
, **kwargs
):
1088 SetSashPosition(self, int position, bool redraw=True)
1090 Sets the sash position, in pixels. If redraw is Ttrue then
1091 the panes are resized and the sash and border are redrawn.
1093 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1095 def GetSashPosition(*args
, **kwargs
):
1097 GetSashPosition(self) -> int
1099 Returns the surrent sash position.
1101 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1103 def SetMinimumPaneSize(*args
, **kwargs
):
1105 SetMinimumPaneSize(self, int min)
1107 Sets the minimum pane size in pixels.
1109 The default minimum pane size is zero, which means that
1110 either pane can be reduced to zero by dragging the sash,
1111 thus removing one of the panes. To prevent this behaviour (and
1112 veto out-of-range sash dragging), set a minimum size,
1113 for example 20 pixels. If the wx.SP_PERMIT_UNSPLIT style is
1114 used when a splitter window is created, the window may be
1115 unsplit even if minimum size is non-zero.
1117 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1119 def GetMinimumPaneSize(*args
, **kwargs
):
1121 GetMinimumPaneSize(self) -> int
1123 Gets the minimum pane size in pixels.
1125 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1127 def SashHitTest(*args
, **kwargs
):
1129 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1131 Tests for x, y over the sash
1133 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1135 def SizeWindows(*args
, **kwargs
):
1141 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1143 def SetNeedUpdating(*args
, **kwargs
):
1144 """SetNeedUpdating(self, bool needUpdating)"""
1145 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1147 def GetNeedUpdating(*args
, **kwargs
):
1148 """GetNeedUpdating(self) -> bool"""
1149 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1151 def GetClassDefaultAttributes(*args
, **kwargs
):
1153 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1155 Get the default attributes for this class. This is useful if
1156 you want to use the same font or colour in your own control as
1157 in a standard control -- which is a much better idea than hard
1158 coding specific colours or fonts which might look completely out
1159 of place on the users system, especially if it uses themes.
1161 The variant parameter is only relevant under Mac currently and is
1162 ignore under other platforms. Under Mac, it will change the size of the
1163 returned font. See SetWindowVariant for more about this.
1165 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1167 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1169 class SplitterWindowPtr(SplitterWindow
):
1170 def __init__(self
, this
):
1172 if not hasattr(self
,"thisown"): self
.thisown
= 0
1173 self
.__class
__ = SplitterWindow
1174 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1175 SplitterNameStr
= cvar
.SplitterNameStr
1177 def PreSplitterWindow(*args
, **kwargs
):
1179 PreSplitterWindow() -> SplitterWindow
1181 Precreate a SplitterWindow for 2-phase creation.
1183 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1187 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1189 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1191 Get the default attributes for this class. This is useful if
1192 you want to use the same font or colour in your own control as
1193 in a standard control -- which is a much better idea than hard
1194 coding specific colours or fonts which might look completely out
1195 of place on the users system, especially if it uses themes.
1197 The variant parameter is only relevant under Mac currently and is
1198 ignore under other platforms. Under Mac, it will change the size of the
1199 returned font. See SetWindowVariant for more about this.
1201 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1203 class SplitterEvent(_core
.NotifyEvent
):
1204 """This class represents the events generated by a splitter control."""
1206 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1207 def __init__(self
, *args
, **kwargs
):
1209 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1211 This class represents the events generated by a splitter control.
1213 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1214 self
.this
= newobj
.this
1217 def SetSashPosition(*args
, **kwargs
):
1219 SetSashPosition(self, int pos)
1221 This funciton is only meaningful during
1222 EVT_SPLITTER_SASH_POS_CHANGING and
1223 EVT_SPLITTER_SASH_POS_CHANGED events. In the case of
1224 _CHANGED events, sets the the new sash position. In the case
1225 of _CHANGING events, sets the new tracking bar position so
1226 visual feedback during dragging will represent that change
1227 that will actually take place. Set to -1 from the event
1228 handler code to prevent repositioning.
1230 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1232 def GetSashPosition(*args
, **kwargs
):
1234 GetSashPosition(self) -> int
1236 Returns the new sash position while in
1237 EVT_SPLITTER_SASH_POS_CHANGING and
1238 EVT_SPLITTER_SASH_POS_CHANGED events.
1240 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1242 def GetWindowBeingRemoved(*args
, **kwargs
):
1244 GetWindowBeingRemoved(self) -> Window
1246 Returns a pointer to the window being removed when a
1247 splitter window is unsplit.
1249 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1251 def GetX(*args
, **kwargs
):
1255 Returns the x coordinate of the double-click point in a
1256 EVT_SPLITTER_DCLICK event.
1258 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1260 def GetY(*args
, **kwargs
):
1264 Returns the y coordinate of the double-click point in a
1265 EVT_SPLITTER_DCLICK event.
1267 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1270 class SplitterEventPtr(SplitterEvent
):
1271 def __init__(self
, this
):
1273 if not hasattr(self
,"thisown"): self
.thisown
= 0
1274 self
.__class
__ = SplitterEvent
1275 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1277 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1278 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1279 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1280 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1281 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1282 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1283 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1284 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1285 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1287 #---------------------------------------------------------------------------
1289 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1290 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1291 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1292 SW_NOBORDER
= _windows_
.SW_NOBORDER
1293 SW_BORDER
= _windows_
.SW_BORDER
1294 SW_3DSASH
= _windows_
.SW_3DSASH
1295 SW_3DBORDER
= _windows_
.SW_3DBORDER
1296 SW_3D
= _windows_
.SW_3D
1297 SASH_TOP
= _windows_
.SASH_TOP
1298 SASH_RIGHT
= _windows_
.SASH_RIGHT
1299 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1300 SASH_LEFT
= _windows_
.SASH_LEFT
1301 SASH_NONE
= _windows_
.SASH_NONE
1302 class SashWindow(_core
.Window
):
1304 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1305 def __init__(self
, *args
, **kwargs
):
1307 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1308 long style=wxCLIP_CHILDREN|wxSW_3D,
1309 String name=SashNameStr) -> SashWindow
1311 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1312 self
.this
= newobj
.this
1315 self
._setOORInfo
(self
)
1317 def Create(*args
, **kwargs
):
1319 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1320 long style=wxCLIP_CHILDREN|wxSW_3D,
1321 String name=SashNameStr) -> bool
1323 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1325 def SetSashVisible(*args
, **kwargs
):
1326 """SetSashVisible(self, int edge, bool sash)"""
1327 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1329 def GetSashVisible(*args
, **kwargs
):
1330 """GetSashVisible(self, int edge) -> bool"""
1331 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1333 def SetSashBorder(*args
, **kwargs
):
1334 """SetSashBorder(self, int edge, bool border)"""
1335 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1337 def HasBorder(*args
, **kwargs
):
1338 """HasBorder(self, int edge) -> bool"""
1339 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1341 def GetEdgeMargin(*args
, **kwargs
):
1342 """GetEdgeMargin(self, int edge) -> int"""
1343 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1345 def SetDefaultBorderSize(*args
, **kwargs
):
1346 """SetDefaultBorderSize(self, int width)"""
1347 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1349 def GetDefaultBorderSize(*args
, **kwargs
):
1350 """GetDefaultBorderSize(self) -> int"""
1351 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1353 def SetExtraBorderSize(*args
, **kwargs
):
1354 """SetExtraBorderSize(self, int width)"""
1355 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1357 def GetExtraBorderSize(*args
, **kwargs
):
1358 """GetExtraBorderSize(self) -> int"""
1359 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1361 def SetMinimumSizeX(*args
, **kwargs
):
1362 """SetMinimumSizeX(self, int min)"""
1363 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1365 def SetMinimumSizeY(*args
, **kwargs
):
1366 """SetMinimumSizeY(self, int min)"""
1367 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1369 def GetMinimumSizeX(*args
, **kwargs
):
1370 """GetMinimumSizeX(self) -> int"""
1371 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1373 def GetMinimumSizeY(*args
, **kwargs
):
1374 """GetMinimumSizeY(self) -> int"""
1375 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1377 def SetMaximumSizeX(*args
, **kwargs
):
1378 """SetMaximumSizeX(self, int max)"""
1379 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1381 def SetMaximumSizeY(*args
, **kwargs
):
1382 """SetMaximumSizeY(self, int max)"""
1383 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1385 def GetMaximumSizeX(*args
, **kwargs
):
1386 """GetMaximumSizeX(self) -> int"""
1387 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1389 def GetMaximumSizeY(*args
, **kwargs
):
1390 """GetMaximumSizeY(self) -> int"""
1391 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1393 def SashHitTest(*args
, **kwargs
):
1394 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1395 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1397 def SizeWindows(*args
, **kwargs
):
1398 """SizeWindows(self)"""
1399 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1402 class SashWindowPtr(SashWindow
):
1403 def __init__(self
, this
):
1405 if not hasattr(self
,"thisown"): self
.thisown
= 0
1406 self
.__class
__ = SashWindow
1407 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1408 SashNameStr
= cvar
.SashNameStr
1409 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1411 def PreSashWindow(*args
, **kwargs
):
1412 """PreSashWindow() -> SashWindow"""
1413 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1417 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1418 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1419 class SashEvent(_core
.CommandEvent
):
1421 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1422 def __init__(self
, *args
, **kwargs
):
1423 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1424 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1425 self
.this
= newobj
.this
1428 def SetEdge(*args
, **kwargs
):
1429 """SetEdge(self, int edge)"""
1430 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1432 def GetEdge(*args
, **kwargs
):
1433 """GetEdge(self) -> int"""
1434 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1436 def SetDragRect(*args
, **kwargs
):
1437 """SetDragRect(self, Rect rect)"""
1438 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1440 def GetDragRect(*args
, **kwargs
):
1441 """GetDragRect(self) -> Rect"""
1442 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1444 def SetDragStatus(*args
, **kwargs
):
1445 """SetDragStatus(self, int status)"""
1446 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1448 def GetDragStatus(*args
, **kwargs
):
1449 """GetDragStatus(self) -> int"""
1450 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1453 class SashEventPtr(SashEvent
):
1454 def __init__(self
, this
):
1456 if not hasattr(self
,"thisown"): self
.thisown
= 0
1457 self
.__class
__ = SashEvent
1458 _windows_
.SashEvent_swigregister(SashEventPtr
)
1460 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1461 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1462 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1464 #---------------------------------------------------------------------------
1466 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1467 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1468 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1469 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1470 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1471 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1472 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1473 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1474 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1475 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1476 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1477 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1478 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1479 class QueryLayoutInfoEvent(_core
.Event
):
1481 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1482 def __init__(self
, *args
, **kwargs
):
1483 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1484 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1485 self
.this
= newobj
.this
1488 def SetRequestedLength(*args
, **kwargs
):
1489 """SetRequestedLength(self, int length)"""
1490 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1492 def GetRequestedLength(*args
, **kwargs
):
1493 """GetRequestedLength(self) -> int"""
1494 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1496 def SetFlags(*args
, **kwargs
):
1497 """SetFlags(self, int flags)"""
1498 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1500 def GetFlags(*args
, **kwargs
):
1501 """GetFlags(self) -> int"""
1502 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1504 def SetSize(*args
, **kwargs
):
1505 """SetSize(self, Size size)"""
1506 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1508 def GetSize(*args
, **kwargs
):
1509 """GetSize(self) -> Size"""
1510 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1512 def SetOrientation(*args
, **kwargs
):
1513 """SetOrientation(self, int orient)"""
1514 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1516 def GetOrientation(*args
, **kwargs
):
1517 """GetOrientation(self) -> int"""
1518 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1520 def SetAlignment(*args
, **kwargs
):
1521 """SetAlignment(self, int align)"""
1522 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1524 def GetAlignment(*args
, **kwargs
):
1525 """GetAlignment(self) -> int"""
1526 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1529 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1530 def __init__(self
, this
):
1532 if not hasattr(self
,"thisown"): self
.thisown
= 0
1533 self
.__class
__ = QueryLayoutInfoEvent
1534 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1536 class CalculateLayoutEvent(_core
.Event
):
1538 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1539 def __init__(self
, *args
, **kwargs
):
1540 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1541 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1542 self
.this
= newobj
.this
1545 def SetFlags(*args
, **kwargs
):
1546 """SetFlags(self, int flags)"""
1547 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1549 def GetFlags(*args
, **kwargs
):
1550 """GetFlags(self) -> int"""
1551 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1553 def SetRect(*args
, **kwargs
):
1554 """SetRect(self, Rect rect)"""
1555 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1557 def GetRect(*args
, **kwargs
):
1558 """GetRect(self) -> Rect"""
1559 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1562 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1563 def __init__(self
, this
):
1565 if not hasattr(self
,"thisown"): self
.thisown
= 0
1566 self
.__class
__ = CalculateLayoutEvent
1567 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1569 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1570 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1572 class SashLayoutWindow(SashWindow
):
1574 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1575 def __init__(self
, *args
, **kwargs
):
1577 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1578 long style=wxCLIP_CHILDREN|wxSW_3D,
1579 String name=SashLayoutNameStr) -> SashLayoutWindow
1581 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1582 self
.this
= newobj
.this
1585 self
._setOORInfo
(self
)
1587 def Create(*args
, **kwargs
):
1589 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1590 long style=wxCLIP_CHILDREN|wxSW_3D,
1591 String name=SashLayoutNameStr) -> bool
1593 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1595 def GetAlignment(*args
, **kwargs
):
1596 """GetAlignment(self) -> int"""
1597 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1599 def GetOrientation(*args
, **kwargs
):
1600 """GetOrientation(self) -> int"""
1601 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1603 def SetAlignment(*args
, **kwargs
):
1604 """SetAlignment(self, int alignment)"""
1605 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1607 def SetDefaultSize(*args
, **kwargs
):
1608 """SetDefaultSize(self, Size size)"""
1609 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1611 def SetOrientation(*args
, **kwargs
):
1612 """SetOrientation(self, int orientation)"""
1613 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1616 class SashLayoutWindowPtr(SashLayoutWindow
):
1617 def __init__(self
, this
):
1619 if not hasattr(self
,"thisown"): self
.thisown
= 0
1620 self
.__class
__ = SashLayoutWindow
1621 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1623 def PreSashLayoutWindow(*args
, **kwargs
):
1624 """PreSashLayoutWindow() -> SashLayoutWindow"""
1625 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1629 class LayoutAlgorithm(_core
.Object
):
1631 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1632 def __init__(self
, *args
, **kwargs
):
1633 """__init__(self) -> LayoutAlgorithm"""
1634 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1635 self
.this
= newobj
.this
1638 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1641 if self
.thisown
: destroy(self
)
1644 def LayoutMDIFrame(*args
, **kwargs
):
1645 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1646 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1648 def LayoutFrame(*args
, **kwargs
):
1649 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1650 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1652 def LayoutWindow(*args
, **kwargs
):
1653 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1654 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1657 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1658 def __init__(self
, this
):
1660 if not hasattr(self
,"thisown"): self
.thisown
= 0
1661 self
.__class
__ = LayoutAlgorithm
1662 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1664 #---------------------------------------------------------------------------
1666 class PopupWindow(_core
.Window
):
1668 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1669 def __init__(self
, *args
, **kwargs
):
1670 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1671 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1672 self
.this
= newobj
.this
1675 self
._setOORInfo
(self
)
1677 def Create(*args
, **kwargs
):
1678 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1679 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1681 def Position(*args
, **kwargs
):
1682 """Position(self, Point ptOrigin, Size size)"""
1683 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1686 class PopupWindowPtr(PopupWindow
):
1687 def __init__(self
, this
):
1689 if not hasattr(self
,"thisown"): self
.thisown
= 0
1690 self
.__class
__ = PopupWindow
1691 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1693 def PrePopupWindow(*args
, **kwargs
):
1694 """PrePopupWindow() -> PopupWindow"""
1695 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1699 #---------------------------------------------------------------------------
1701 class PopupTransientWindow(PopupWindow
):
1703 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1704 def __init__(self
, *args
, **kwargs
):
1705 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1706 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1707 self
.this
= newobj
.this
1710 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1712 def _setCallbackInfo(*args
, **kwargs
):
1713 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1714 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1716 def Popup(*args
, **kwargs
):
1717 """Popup(self, Window focus=None)"""
1718 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1720 def Dismiss(*args
, **kwargs
):
1722 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1725 class PopupTransientWindowPtr(PopupTransientWindow
):
1726 def __init__(self
, this
):
1728 if not hasattr(self
,"thisown"): self
.thisown
= 0
1729 self
.__class
__ = PopupTransientWindow
1730 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1732 def PrePopupTransientWindow(*args
, **kwargs
):
1733 """PrePopupTransientWindow() -> PopupTransientWindow"""
1734 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1738 #---------------------------------------------------------------------------
1740 class TipWindow(PopupTransientWindow
):
1742 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1743 def __init__(self
, *args
, **kwargs
):
1744 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1745 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1746 self
.this
= newobj
.this
1749 self
._setOORInfo
(self
)
1751 def SetBoundingRect(*args
, **kwargs
):
1752 """SetBoundingRect(self, Rect rectBound)"""
1753 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1755 def Close(*args
, **kwargs
):
1757 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1760 class TipWindowPtr(TipWindow
):
1761 def __init__(self
, this
):
1763 if not hasattr(self
,"thisown"): self
.thisown
= 0
1764 self
.__class
__ = TipWindow
1765 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1767 #---------------------------------------------------------------------------
1769 class VScrolledWindow(Panel
):
1771 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1772 def __init__(self
, *args
, **kwargs
):
1774 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1775 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1777 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1778 self
.this
= newobj
.this
1781 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1783 def _setCallbackInfo(*args
, **kwargs
):
1784 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1785 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1787 def Create(*args
, **kwargs
):
1789 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1790 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1792 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1794 def SetLineCount(*args
, **kwargs
):
1795 """SetLineCount(self, size_t count)"""
1796 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1798 def ScrollToLine(*args
, **kwargs
):
1799 """ScrollToLine(self, size_t line) -> bool"""
1800 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1802 def ScrollLines(*args
, **kwargs
):
1804 ScrollLines(self, int lines) -> bool
1806 If the platform and window class supports it, scrolls the window by
1807 the given number of lines down, if lines is positive, or up if lines
1808 is negative. Returns True if the window was scrolled, False if it was
1809 already on top/bottom and nothing was done.
1811 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1813 def ScrollPages(*args
, **kwargs
):
1815 ScrollPages(self, int pages) -> bool
1817 If the platform and window class supports it, scrolls the window by
1818 the given number of pages down, if pages is positive, or up if pages
1819 is negative. Returns True if the window was scrolled, False if it was
1820 already on top/bottom and nothing was done.
1822 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1824 def RefreshLine(*args
, **kwargs
):
1825 """RefreshLine(self, size_t line)"""
1826 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1828 def RefreshLines(*args
, **kwargs
):
1829 """RefreshLines(self, size_t from, size_t to)"""
1830 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1832 def HitTestXT(*args
, **kwargs
):
1834 HitTestXT(self, int x, int y) -> int
1836 Test where the given (in client coords) point lies
1838 return _windows_
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1840 def HitTest(*args
, **kwargs
):
1842 HitTest(self, Point pt) -> int
1844 Test where the given (in client coords) point lies
1846 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1848 def RefreshAll(*args
, **kwargs
):
1849 """RefreshAll(self)"""
1850 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1852 def GetLineCount(*args
, **kwargs
):
1853 """GetLineCount(self) -> size_t"""
1854 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1856 def GetFirstVisibleLine(*args
, **kwargs
):
1857 """GetFirstVisibleLine(self) -> size_t"""
1858 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1860 def GetLastVisibleLine(*args
, **kwargs
):
1861 """GetLastVisibleLine(self) -> size_t"""
1862 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1864 def IsVisible(*args
, **kwargs
):
1865 """IsVisible(self, size_t line) -> bool"""
1866 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1869 class VScrolledWindowPtr(VScrolledWindow
):
1870 def __init__(self
, this
):
1872 if not hasattr(self
,"thisown"): self
.thisown
= 0
1873 self
.__class
__ = VScrolledWindow
1874 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1876 def PreVScrolledWindow(*args
, **kwargs
):
1877 """PreVScrolledWindow() -> VScrolledWindow"""
1878 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1882 class VListBox(VScrolledWindow
):
1884 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1885 def __init__(self
, *args
, **kwargs
):
1887 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1888 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1890 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1891 self
.this
= newobj
.this
1894 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1896 def _setCallbackInfo(*args
, **kwargs
):
1897 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1898 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1900 def Create(*args
, **kwargs
):
1902 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1903 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1905 return _windows_
.VListBox_Create(*args
, **kwargs
)
1907 def GetItemCount(*args
, **kwargs
):
1908 """GetItemCount(self) -> size_t"""
1909 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1911 def HasMultipleSelection(*args
, **kwargs
):
1912 """HasMultipleSelection(self) -> bool"""
1913 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1915 def GetSelection(*args
, **kwargs
):
1916 """GetSelection(self) -> int"""
1917 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1919 def IsCurrent(*args
, **kwargs
):
1920 """IsCurrent(self, size_t item) -> bool"""
1921 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1923 def IsSelected(*args
, **kwargs
):
1924 """IsSelected(self, size_t item) -> bool"""
1925 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1927 def GetSelectedCount(*args
, **kwargs
):
1928 """GetSelectedCount(self) -> size_t"""
1929 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1931 def GetFirstSelected(*args
, **kwargs
):
1932 """GetFirstSelected(self, unsigned long cookie) -> int"""
1933 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1935 def GetNextSelected(*args
, **kwargs
):
1936 """GetNextSelected(self, unsigned long cookie) -> int"""
1937 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1939 def GetMargins(*args
, **kwargs
):
1940 """GetMargins(self) -> Point"""
1941 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1943 def GetSelectionBackground(*args
, **kwargs
):
1944 """GetSelectionBackground(self) -> Colour"""
1945 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1947 def SetItemCount(*args
, **kwargs
):
1948 """SetItemCount(self, size_t count)"""
1949 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1951 def Clear(*args
, **kwargs
):
1953 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1955 def SetSelection(*args
, **kwargs
):
1956 """SetSelection(self, int selection)"""
1957 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1959 def Select(*args
, **kwargs
):
1960 """Select(self, size_t item, bool select=True) -> bool"""
1961 return _windows_
.VListBox_Select(*args
, **kwargs
)
1963 def SelectRange(*args
, **kwargs
):
1964 """SelectRange(self, size_t from, size_t to) -> bool"""
1965 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1967 def Toggle(*args
, **kwargs
):
1968 """Toggle(self, size_t item)"""
1969 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1971 def SelectAll(*args
, **kwargs
):
1972 """SelectAll(self) -> bool"""
1973 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1975 def DeselectAll(*args
, **kwargs
):
1976 """DeselectAll(self) -> bool"""
1977 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1979 def SetMargins(*args
, **kwargs
):
1980 """SetMargins(self, Point pt)"""
1981 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1983 def SetMarginsXY(*args
, **kwargs
):
1984 """SetMarginsXY(self, int x, int y)"""
1985 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1987 def SetSelectionBackground(*args
, **kwargs
):
1988 """SetSelectionBackground(self, Colour col)"""
1989 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1992 class VListBoxPtr(VListBox
):
1993 def __init__(self
, this
):
1995 if not hasattr(self
,"thisown"): self
.thisown
= 0
1996 self
.__class
__ = VListBox
1997 _windows_
.VListBox_swigregister(VListBoxPtr
)
1998 VListBoxNameStr
= cvar
.VListBoxNameStr
2000 def PreVListBox(*args
, **kwargs
):
2001 """PreVListBox() -> VListBox"""
2002 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2006 class HtmlListBox(VListBox
):
2008 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2009 def __init__(self
, *args
, **kwargs
):
2011 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2012 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2014 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2015 self
.this
= newobj
.this
2018 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2020 def _setCallbackInfo(*args
, **kwargs
):
2021 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2022 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2024 def Create(*args
, **kwargs
):
2026 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2027 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2029 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2031 def RefreshAll(*args
, **kwargs
):
2032 """RefreshAll(self)"""
2033 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2035 def SetItemCount(*args
, **kwargs
):
2036 """SetItemCount(self, size_t count)"""
2037 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2039 def GetFileSystem(*args
, **kwargs
):
2040 """GetFileSystem(self) -> FileSystem"""
2041 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2044 class HtmlListBoxPtr(HtmlListBox
):
2045 def __init__(self
, this
):
2047 if not hasattr(self
,"thisown"): self
.thisown
= 0
2048 self
.__class
__ = HtmlListBox
2049 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2051 def PreHtmlListBox(*args
, **kwargs
):
2052 """PreHtmlListBox() -> HtmlListBox"""
2053 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2057 #---------------------------------------------------------------------------
2059 class TaskBarIcon(_core
.EvtHandler
):
2061 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2062 def __init__(self
, *args
, **kwargs
):
2063 """__init__(self) -> TaskBarIcon"""
2064 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2065 self
.this
= newobj
.this
2068 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2071 if self
.thisown
: destroy(self
)
2074 def Destroy(*args
, **kwargs
):
2078 Deletes the C++ object this Python object is a proxy for.
2080 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2082 def IsOk(*args
, **kwargs
):
2083 """IsOk(self) -> bool"""
2084 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2086 def __nonzero__(self
): return self
.IsOk()
2087 def IsIconInstalled(*args
, **kwargs
):
2088 """IsIconInstalled(self) -> bool"""
2089 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2091 def SetIcon(*args
, **kwargs
):
2092 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2093 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2095 def RemoveIcon(*args
, **kwargs
):
2096 """RemoveIcon(self) -> bool"""
2097 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2099 def PopupMenu(*args
, **kwargs
):
2100 """PopupMenu(self, Menu menu) -> bool"""
2101 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2104 class TaskBarIconPtr(TaskBarIcon
):
2105 def __init__(self
, this
):
2107 if not hasattr(self
,"thisown"): self
.thisown
= 0
2108 self
.__class
__ = TaskBarIcon
2109 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2111 class TaskBarIconEvent(_core
.Event
):
2113 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2114 def __init__(self
, *args
, **kwargs
):
2115 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2116 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2117 self
.this
= newobj
.this
2121 class TaskBarIconEventPtr(TaskBarIconEvent
):
2122 def __init__(self
, this
):
2124 if not hasattr(self
,"thisown"): self
.thisown
= 0
2125 self
.__class
__ = TaskBarIconEvent
2126 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2128 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2129 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2130 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2131 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2132 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2133 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2134 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2135 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2136 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2137 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2138 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2139 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2140 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2141 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2143 #---------------------------------------------------------------------------
2145 class ColourData(_core
.Object
):
2147 This class holds a variety of information related to the colour
2148 chooser dialog, used to transfer settings and results to and from the
2152 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2153 def __init__(self
, *args
, **kwargs
):
2155 __init__(self) -> ColourData
2157 Constructor, sets default values.
2159 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2160 self
.this
= newobj
.this
2163 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2166 if self
.thisown
: destroy(self
)
2169 def GetChooseFull(*args
, **kwargs
):
2171 GetChooseFull(self) -> bool
2173 Under Windows, determines whether the Windows colour dialog will
2174 display the full dialog with custom colour selection controls. Has no
2175 meaning under other platforms. The default value is true.
2177 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2179 def GetColour(*args
, **kwargs
):
2181 GetColour(self) -> Colour
2183 Gets the colour (pre)selected by the dialog.
2185 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2187 def GetCustomColour(*args
, **kwargs
):
2189 GetCustomColour(self, int i) -> Colour
2191 Gets the i'th custom colour associated with the colour dialog. i
2192 should be an integer between 0 and 15. The default custom colours are
2195 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2197 def SetChooseFull(*args
, **kwargs
):
2199 SetChooseFull(self, int flag)
2201 Under Windows, tells the Windows colour dialog to display the full
2202 dialog with custom colour selection controls. Under other platforms,
2203 has no effect. The default value is true.
2205 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2207 def SetColour(*args
, **kwargs
):
2209 SetColour(self, Colour colour)
2211 Sets the default colour for the colour dialog. The default colour is
2214 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2216 def SetCustomColour(*args
, **kwargs
):
2218 SetCustomColour(self, int i, Colour colour)
2220 Sets the i'th custom colour for the colour dialog. i should be an
2221 integer between 0 and 15. The default custom colours are all white.
2223 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2226 class ColourDataPtr(ColourData
):
2227 def __init__(self
, this
):
2229 if not hasattr(self
,"thisown"): self
.thisown
= 0
2230 self
.__class
__ = ColourData
2231 _windows_
.ColourData_swigregister(ColourDataPtr
)
2232 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2233 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2234 DirDialogNameStr
= cvar
.DirDialogNameStr
2235 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2236 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2237 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2239 class ColourDialog(Dialog
):
2240 """This class represents the colour chooser dialog."""
2242 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2243 def __init__(self
, *args
, **kwargs
):
2245 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2247 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2248 which will be copied to the colour dialog's internal ColourData
2251 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2252 self
.this
= newobj
.this
2255 self
._setOORInfo
(self
)
2257 def GetColourData(*args
, **kwargs
):
2259 GetColourData(self) -> ColourData
2261 Returns a reference to the `wx.ColourData` used by the dialog.
2263 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2266 class ColourDialogPtr(ColourDialog
):
2267 def __init__(self
, this
):
2269 if not hasattr(self
,"thisown"): self
.thisown
= 0
2270 self
.__class
__ = ColourDialog
2271 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2273 class DirDialog(Dialog
):
2275 wx.DirDialog allows the user to select a directory by browising the
2281 ==================== ==========================================
2282 wx.DD_NEW_DIR_BUTTON Add 'Create new directory' button and allow
2283 directory names to be editable. On Windows
2284 the new directory button is only available
2285 with recent versions of the common dialogs.
2286 ==================== ==========================================
2290 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2291 def __init__(self
, *args
, **kwargs
):
2293 __init__(self, Window parent, String message=DirSelectorPromptStr,
2294 String defaultPath=EmptyString, long style=0,
2295 Point pos=DefaultPosition, Size size=DefaultSize,
2296 String name=DirDialogNameStr) -> DirDialog
2298 Constructor. Use ShowModal method to show the dialog.
2300 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2301 self
.this
= newobj
.this
2304 self
._setOORInfo
(self
)
2306 def GetPath(*args
, **kwargs
):
2308 GetPath(self) -> String
2310 Returns the default or user-selected path.
2312 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2314 def GetMessage(*args
, **kwargs
):
2316 GetMessage(self) -> String
2318 Returns the message that will be displayed on the dialog.
2320 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2322 def GetStyle(*args
, **kwargs
):
2324 GetStyle(self) -> long
2326 Returns the dialog style.
2328 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2330 def SetMessage(*args
, **kwargs
):
2332 SetMessage(self, String message)
2334 Sets the message that will be displayed on the dialog.
2336 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2338 def SetPath(*args
, **kwargs
):
2340 SetPath(self, String path)
2342 Sets the default path.
2344 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2347 class DirDialogPtr(DirDialog
):
2348 def __init__(self
, this
):
2350 if not hasattr(self
,"thisown"): self
.thisown
= 0
2351 self
.__class
__ = DirDialog
2352 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2354 class FileDialog(Dialog
):
2356 wx.FileDialog allows the user to select one or more files from the
2359 In Windows, this is the common file selector dialog. On X based
2360 platforms a generic alternative is used. The path and filename are
2361 distinct elements of a full file pathname. If path is "", the
2362 current directory will be used. If filename is "", no default
2363 filename will be supplied. The wildcard determines what files are
2364 displayed in the file selector, and file extension supplies a type
2365 extension for the required filename.
2367 Both the X and Windows versions implement a wildcard filter. Typing a
2368 filename containing wildcards (*, ?) in the filename text item, and
2369 clicking on Ok, will result in only those files matching the pattern
2370 being displayed. The wildcard may be a specification for multiple
2371 types of file with a description for each, such as::
2373 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2378 ================== ==========================================
2379 wx.OPEN This is an open dialog.
2381 wx.SAVE This is a save dialog.
2383 wx.HIDE_READONLY For open dialog only: hide the checkbox
2384 allowing to open the file in read-only mode.
2386 wx.OVERWRITE_PROMPT For save dialog only: prompt for a confirmation
2387 if a file will be overwritten.
2389 wx.MULTIPLE For open dialog only: allows selecting multiple
2392 wx.CHANGE_DIR Change the current working directory to the
2393 directory where the file(s) chosen by the user
2395 ================== ==========================================
2399 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2400 def __init__(self
, *args
, **kwargs
):
2402 __init__(self, Window parent, String message=FileSelectorPromptStr,
2403 String defaultDir=EmptyString, String defaultFile=EmptyString,
2404 String wildcard=FileSelectorDefaultWildcardStr,
2405 long style=0, Point pos=DefaultPosition) -> FileDialog
2407 Constructor. Use ShowModal method to show the dialog.
2409 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2410 self
.this
= newobj
.this
2413 self
._setOORInfo
(self
)
2415 def SetMessage(*args
, **kwargs
):
2417 SetMessage(self, String message)
2419 Sets the message that will be displayed on the dialog.
2421 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2423 def SetPath(*args
, **kwargs
):
2425 SetPath(self, String path)
2427 Sets the path (the combined directory and filename that will be
2428 returned when the dialog is dismissed).
2430 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2432 def SetDirectory(*args
, **kwargs
):
2434 SetDirectory(self, String dir)
2436 Sets the default directory.
2438 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2440 def SetFilename(*args
, **kwargs
):
2442 SetFilename(self, String name)
2444 Sets the default filename.
2446 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2448 def SetWildcard(*args
, **kwargs
):
2450 SetWildcard(self, String wildCard)
2452 Sets the wildcard, which can contain multiple file types, for
2455 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2458 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2460 def SetStyle(*args
, **kwargs
):
2462 SetStyle(self, long style)
2464 Sets the dialog style.
2466 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2468 def SetFilterIndex(*args
, **kwargs
):
2470 SetFilterIndex(self, int filterIndex)
2472 Sets the default filter index, starting from zero.
2474 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2476 def GetMessage(*args
, **kwargs
):
2478 GetMessage(self) -> String
2480 Returns the message that will be displayed on the dialog.
2482 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2484 def GetPath(*args
, **kwargs
):
2486 GetPath(self) -> String
2488 Returns the full path (directory and filename) of the selected file.
2490 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2492 def GetDirectory(*args
, **kwargs
):
2494 GetDirectory(self) -> String
2496 Returns the default directory.
2498 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2500 def GetFilename(*args
, **kwargs
):
2502 GetFilename(self) -> String
2504 Returns the default filename.
2506 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2508 def GetWildcard(*args
, **kwargs
):
2510 GetWildcard(self) -> String
2512 Returns the file dialog wildcard.
2514 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2516 def GetStyle(*args
, **kwargs
):
2518 GetStyle(self) -> long
2520 Returns the dialog style.
2522 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2524 def GetFilterIndex(*args
, **kwargs
):
2526 GetFilterIndex(self) -> int
2528 Returns the index into the list of filters supplied, optionally, in
2529 the wildcard parameter. Before the dialog is shown, this is the index
2530 which will be used when the dialog is first displayed. After the
2531 dialog is shown, this is the index selected by the user.
2533 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2535 def GetFilenames(*args
, **kwargs
):
2537 GetFilenames(self) -> PyObject
2539 Returns a list of filenames chosen in the dialog. This function
2540 should only be used with the dialogs which have wx.MULTIPLE style, use
2541 GetFilename for the others.
2543 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2545 def GetPaths(*args
, **kwargs
):
2547 GetPaths(self) -> PyObject
2549 Fills the array paths with the full paths of the files chosen. This
2550 function should only be used with the dialogs which have wx.MULTIPLE
2551 style, use GetPath for the others.
2553 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2556 class FileDialogPtr(FileDialog
):
2557 def __init__(self
, this
):
2559 if not hasattr(self
,"thisown"): self
.thisown
= 0
2560 self
.__class
__ = FileDialog
2561 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2563 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2564 class MultiChoiceDialog(Dialog
):
2565 """A simple dialog with a multi selection listbox."""
2567 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2568 def __init__(self
, *args
, **kwargs
):
2570 __init__(Window parent, String message, String caption,
2571 List choices=[], long style=CHOICEDLG_STYLE,
2572 Point pos=DefaultPosition) -> MultiChoiceDialog
2574 Constructor. Use ShowModal method to show the dialog.
2576 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2577 self
.this
= newobj
.this
2580 self
._setOORInfo
(self
)
2582 def SetSelections(*args
, **kwargs
):
2584 SetSelections(List selections)
2586 Specify the items in the list that should be selected, using a list of
2589 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2591 def GetSelections(*args
, **kwargs
):
2593 GetSelections() -> [selections]
2595 Returns a list of integers representing the items that are selected.
2597 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2600 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2601 def __init__(self
, this
):
2603 if not hasattr(self
,"thisown"): self
.thisown
= 0
2604 self
.__class
__ = MultiChoiceDialog
2605 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2607 class SingleChoiceDialog(Dialog
):
2608 """A simple dialog with a single selection listbox."""
2610 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2611 def __init__(self
, *args
, **kwargs
):
2613 __init__(Window parent, String message, String caption,
2614 List choices=[], long style=CHOICEDLG_STYLE,
2615 Point pos=DefaultPosition) -> SingleChoiceDialog
2617 Constructor. Use ShowModal method to show the dialog.
2619 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2620 self
.this
= newobj
.this
2623 self
._setOORInfo
(self
)
2625 def GetSelection(*args
, **kwargs
):
2627 GetSelection(self) -> int
2629 Get the index of teh currently selected item.
2631 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2633 def GetStringSelection(*args
, **kwargs
):
2635 GetStringSelection(self) -> String
2637 Returns the string value of the currently selected item
2639 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2641 def SetSelection(*args
, **kwargs
):
2643 SetSelection(self, int sel)
2645 Set the current selected item to sel
2647 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2650 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2651 def __init__(self
, this
):
2653 if not hasattr(self
,"thisown"): self
.thisown
= 0
2654 self
.__class
__ = SingleChoiceDialog
2655 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2657 class TextEntryDialog(Dialog
):
2658 """A dialog with text control, [ok] and [cancel] buttons"""
2660 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2661 def __init__(self
, *args
, **kwargs
):
2663 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2664 String defaultValue=EmptyString,
2665 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2667 Constructor. Use ShowModal method to show the dialog.
2669 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2670 self
.this
= newobj
.this
2673 self
._setOORInfo
(self
)
2675 def GetValue(*args
, **kwargs
):
2677 GetValue(self) -> String
2679 Returns the text that the user has entered if the user has pressed OK,
2680 or the original value if the user has pressed Cancel.
2682 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2684 def SetValue(*args
, **kwargs
):
2686 SetValue(self, String value)
2688 Sets the default text value.
2690 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2693 class TextEntryDialogPtr(TextEntryDialog
):
2694 def __init__(self
, this
):
2696 if not hasattr(self
,"thisown"): self
.thisown
= 0
2697 self
.__class
__ = TextEntryDialog
2698 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2700 class FontData(_core
.Object
):
2702 This class holds a variety of information related to font dialogs and
2703 is used to transfer settings to and results from a `wx.FontDialog`.
2706 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2707 def __init__(self
, *args
, **kwargs
):
2709 __init__(self) -> FontData
2711 This class holds a variety of information related to font dialogs and
2712 is used to transfer settings to and results from a `wx.FontDialog`.
2714 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2715 self
.this
= newobj
.this
2718 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2721 if self
.thisown
: destroy(self
)
2724 def EnableEffects(*args
, **kwargs
):
2726 EnableEffects(self, bool enable)
2728 Enables or disables 'effects' under MS Windows only. This refers to
2729 the controls for manipulating colour, strikeout and underline
2730 properties. The default value is true.
2732 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2734 def GetAllowSymbols(*args
, **kwargs
):
2736 GetAllowSymbols(self) -> bool
2738 Under MS Windows, returns a flag determining whether symbol fonts can
2739 be selected. Has no effect on other platforms. The default value is
2742 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2744 def GetColour(*args
, **kwargs
):
2746 GetColour(self) -> Colour
2748 Gets the colour associated with the font dialog. The default value is
2751 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2753 def GetChosenFont(*args
, **kwargs
):
2755 GetChosenFont(self) -> Font
2757 Gets the font chosen by the user.
2759 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2761 def GetEnableEffects(*args
, **kwargs
):
2763 GetEnableEffects(self) -> bool
2765 Determines whether 'effects' are enabled under Windows.
2767 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2769 def GetInitialFont(*args
, **kwargs
):
2771 GetInitialFont(self) -> Font
2773 Gets the font that will be initially used by the font dialog. This
2774 should have previously been set by the application.
2776 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2778 def GetShowHelp(*args
, **kwargs
):
2780 GetShowHelp(self) -> bool
2782 Returns true if the Help button will be shown (Windows only). The
2783 default value is false.
2785 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2787 def SetAllowSymbols(*args
, **kwargs
):
2789 SetAllowSymbols(self, bool allowSymbols)
2791 Under MS Windows, determines whether symbol fonts can be selected. Has
2792 no effect on other platforms. The default value is true.
2794 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2796 def SetChosenFont(*args
, **kwargs
):
2798 SetChosenFont(self, Font font)
2800 Sets the font that will be returned to the user (normally for internal
2803 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2805 def SetColour(*args
, **kwargs
):
2807 SetColour(self, Colour colour)
2809 Sets the colour that will be used for the font foreground colour. The
2810 default colour is black.
2812 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2814 def SetInitialFont(*args
, **kwargs
):
2816 SetInitialFont(self, Font font)
2818 Sets the font that will be initially used by the font dialog.
2820 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2822 def SetRange(*args
, **kwargs
):
2824 SetRange(self, int min, int max)
2826 Sets the valid range for the font point size (Windows only). The
2827 default is 0, 0 (unrestricted range).
2829 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2831 def SetShowHelp(*args
, **kwargs
):
2833 SetShowHelp(self, bool showHelp)
2835 Determines whether the Help button will be displayed in the font
2836 dialog (Windows only). The default value is false.
2838 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2841 class FontDataPtr(FontData
):
2842 def __init__(self
, this
):
2844 if not hasattr(self
,"thisown"): self
.thisown
= 0
2845 self
.__class
__ = FontData
2846 _windows_
.FontData_swigregister(FontDataPtr
)
2848 class FontDialog(Dialog
):
2850 wx.FontDialog allows the user to select a system font and its attributes.
2856 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2857 def __init__(self
, *args
, **kwargs
):
2859 __init__(self, Window parent, FontData data) -> FontDialog
2861 Constructor. Pass a parent window and the `wx.FontData` object to be
2862 used to initialize the dialog controls. Call `ShowModal` to display
2863 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2864 results with via the `wx.FontData` returned by `GetFontData`.
2866 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2867 self
.this
= newobj
.this
2870 self
._setOORInfo
(self
)
2872 def GetFontData(*args
, **kwargs
):
2874 GetFontData(self) -> FontData
2876 Returns a reference to the internal `wx.FontData` used by the
2879 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2882 class FontDialogPtr(FontDialog
):
2883 def __init__(self
, this
):
2885 if not hasattr(self
,"thisown"): self
.thisown
= 0
2886 self
.__class
__ = FontDialog
2887 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2889 class MessageDialog(Dialog
):
2891 This class provides a simple dialog that shows a single or multi-line
2892 message, with a choice of OK, Yes, No and/or Cancel buttons.
2897 ================= =============================================
2898 wx.OK Show an OK button.
2899 wx.CANCEL Show a Cancel button.
2900 wx.YES_NO Show Yes and No buttons.
2901 wx.YES_DEFAULT Used with wxYES_NO, makes Yes button the
2902 default - which is the default behaviour.
2903 wx.NO_DEFAULT Used with wxYES_NO, makes No button the default.
2904 wx.ICON_EXCLAMATION Shows an exclamation mark icon.
2905 wx.ICON_HAND Shows an error icon.
2906 wx.ICON_ERROR Shows an error icon - the same as wxICON_HAND.
2907 wx.ICON_QUESTION Shows a question mark icon.
2908 wx.ICON_INFORMATION Shows an information (i) icon.
2909 wx.STAY_ON_TOP The message box stays on top of all other
2910 window, even those of the other applications
2912 ================= =============================================
2916 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2917 def __init__(self
, *args
, **kwargs
):
2919 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2920 long style=wxOK|wxCANCEL|wxCENTRE,
2921 Point pos=DefaultPosition) -> MessageDialog
2923 Constructor, use `ShowModal` to display the dialog.
2925 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2926 self
.this
= newobj
.this
2929 self
._setOORInfo
(self
)
2932 class MessageDialogPtr(MessageDialog
):
2933 def __init__(self
, this
):
2935 if not hasattr(self
,"thisown"): self
.thisown
= 0
2936 self
.__class
__ = MessageDialog
2937 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2939 class ProgressDialog(Frame
):
2941 A dialog that shows a short message and a progress bar. Optionally, it
2942 can display an ABORT button.
2946 ================= =============================================
2947 wx.PD_APP_MODAL Make the progress dialog modal. If this flag is
2948 not given, it is only "locally" modal -
2949 that is the input to the parent window is
2950 disabled, but not to the other ones.
2952 wx.PD_AUTO_HIDE Causes the progress dialog to disappear from
2953 screen as soon as the maximum value of the
2954 progress meter has been reached.
2956 wx.PD_CAN_ABORT This flag tells the dialog that it should have
2957 a "Cancel" button which the user may press. If
2958 this happens, the next call to Update() will
2961 wx.PD_ELAPSED_TIME This flag tells the dialog that it should show
2962 elapsed time (since creating the dialog).
2964 wx.PD_ESTIMATED_TIME This flag tells the dialog that it should show
2967 wx.PD_REMAINING_TIME This flag tells the dialog that it should show
2969 ================= =============================================
2973 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2974 def __init__(self
, *args
, **kwargs
):
2976 __init__(self, String title, String message, int maximum=100, Window parent=None,
2977 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2979 Constructor. Creates the dialog, displays it and disables user input
2980 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2983 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2984 self
.this
= newobj
.this
2987 self
._setOORInfo
(self
)
2989 def Update(*args
, **kwargs
):
2991 Update(self, int value, String newmsg=EmptyString) -> bool
2993 Updates the dialog, setting the progress bar to the new value and, if
2994 given changes the message above it. Returns true unless the Cancel
2995 button has been pressed.
2997 If false is returned, the application can either immediately destroy
2998 the dialog or ask the user for the confirmation and if the abort is
2999 not confirmed the dialog may be resumed with Resume function.
3001 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
3003 def Resume(*args
, **kwargs
):
3007 Can be used to continue with the dialog, after the user had chosen to
3010 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
3013 class ProgressDialogPtr(ProgressDialog
):
3014 def __init__(self
, this
):
3016 if not hasattr(self
,"thisown"): self
.thisown
= 0
3017 self
.__class
__ = ProgressDialog
3018 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
3020 FR_DOWN
= _windows_
.FR_DOWN
3021 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
3022 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
3023 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
3024 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
3025 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
3026 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
3027 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
3028 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
3029 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
3030 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
3031 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
3032 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
3033 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
3034 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
3035 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
3036 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
3038 # For backwards compatibility. Should they be removed?
3039 EVT_COMMAND_FIND
= EVT_FIND
3040 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
3041 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
3042 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
3043 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
3045 class FindDialogEvent(_core
.CommandEvent
):
3046 """Events for the FindReplaceDialog"""
3048 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3049 def __init__(self
, *args
, **kwargs
):
3051 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3053 Events for the FindReplaceDialog
3055 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
3056 self
.this
= newobj
.this
3059 def GetFlags(*args
, **kwargs
):
3061 GetFlags(self) -> int
3063 Get the currently selected flags: this is the combination of
3064 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3066 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
3068 def GetFindString(*args
, **kwargs
):
3070 GetFindString(self) -> String
3072 Return the string to find (never empty).
3074 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
3076 def GetReplaceString(*args
, **kwargs
):
3078 GetReplaceString(self) -> String
3080 Return the string to replace the search string with (only for replace
3081 and replace all events).
3083 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
3085 def GetDialog(*args
, **kwargs
):
3087 GetDialog(self) -> FindReplaceDialog
3089 Return the pointer to the dialog which generated this event.
3091 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
3093 def SetFlags(*args
, **kwargs
):
3094 """SetFlags(self, int flags)"""
3095 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3097 def SetFindString(*args
, **kwargs
):
3098 """SetFindString(self, String str)"""
3099 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3101 def SetReplaceString(*args
, **kwargs
):
3102 """SetReplaceString(self, String str)"""
3103 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3106 class FindDialogEventPtr(FindDialogEvent
):
3107 def __init__(self
, this
):
3109 if not hasattr(self
,"thisown"): self
.thisown
= 0
3110 self
.__class
__ = FindDialogEvent
3111 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3113 class FindReplaceData(_core
.Object
):
3115 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3116 to initialize the dialog with the default values and will keep the
3117 last values from the dialog when it is closed. It is also updated each
3118 time a `wx.FindDialogEvent` is generated so instead of using the
3119 `wx.FindDialogEvent` methods you can also directly query this object.
3121 Note that all SetXXX() methods may only be called before showing the
3122 dialog and calling them has no effect later.
3126 ================ ===============================================
3127 wx.FR_DOWN Downward search/replace selected (otherwise,
3130 wx.FR_WHOLEWORD Whole word search/replace selected
3132 wx.FR_MATCHCASE Case sensitive search/replace selected
3133 (otherwise, case insensitive)
3134 ================ ===============================================
3138 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3139 def __init__(self
, *args
, **kwargs
):
3141 __init__(self, int flags=0) -> FindReplaceData
3143 Constuctor initializes the flags to default value (0).
3145 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3146 self
.this
= newobj
.this
3149 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3152 if self
.thisown
: destroy(self
)
3155 def GetFindString(*args
, **kwargs
):
3157 GetFindString(self) -> String
3159 Get the string to find.
3161 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3163 def GetReplaceString(*args
, **kwargs
):
3165 GetReplaceString(self) -> String
3167 Get the replacement string.
3169 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3171 def GetFlags(*args
, **kwargs
):
3173 GetFlags(self) -> int
3175 Get the combination of flag values.
3177 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3179 def SetFlags(*args
, **kwargs
):
3181 SetFlags(self, int flags)
3183 Set the flags to use to initialize the controls of the dialog.
3185 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3187 def SetFindString(*args
, **kwargs
):
3189 SetFindString(self, String str)
3191 Set the string to find (used as initial value by the dialog).
3193 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3195 def SetReplaceString(*args
, **kwargs
):
3197 SetReplaceString(self, String str)
3199 Set the replacement string (used as initial value by the dialog).
3201 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3204 class FindReplaceDataPtr(FindReplaceData
):
3205 def __init__(self
, this
):
3207 if not hasattr(self
,"thisown"): self
.thisown
= 0
3208 self
.__class
__ = FindReplaceData
3209 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3211 class FindReplaceDialog(Dialog
):
3213 wx.FindReplaceDialog is a standard modeless dialog which is used to
3214 allow the user to search for some text (and possibly replace it with
3215 something else). The actual searching is supposed to be done in the
3216 owner window which is the parent of this dialog. Note that it means
3217 that unlike for the other standard dialogs this one must have a parent
3218 window. Also note that there is no way to use this dialog in a modal
3219 way; it is always, by design and implementation, modeless.
3225 ===================== =========================================
3226 wx.FR_REPLACEDIALOG replace dialog (otherwise find dialog)
3228 wx.FR_NOUPDOWN don't allow changing the search direction
3230 wx.FR_NOMATCHCASE don't allow case sensitive searching
3232 wx.FR_NOWHOLEWORD don't allow whole word searching
3233 ===================== =========================================
3237 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3238 def __init__(self
, *args
, **kwargs
):
3240 __init__(self, Window parent, FindReplaceData data, String title,
3241 int style=0) -> FindReplaceDialog
3243 Create a FindReplaceDialog. The parent and data parameters must be
3244 non-None. Use Show to display the dialog.
3246 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3247 self
.this
= newobj
.this
3250 self
._setOORInfo
(self
)
3252 def Create(*args
, **kwargs
):
3254 Create(self, Window parent, FindReplaceData data, String title,
3255 int style=0) -> bool
3257 Create the dialog, for 2-phase create.
3259 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3261 def GetData(*args
, **kwargs
):
3263 GetData(self) -> FindReplaceData
3265 Get the FindReplaceData object used by this dialog.
3267 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3269 def SetData(*args
, **kwargs
):
3271 SetData(self, FindReplaceData data)
3273 Set the FindReplaceData object used by this dialog.
3275 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3278 class FindReplaceDialogPtr(FindReplaceDialog
):
3279 def __init__(self
, this
):
3281 if not hasattr(self
,"thisown"): self
.thisown
= 0
3282 self
.__class
__ = FindReplaceDialog
3283 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3285 def PreFindReplaceDialog(*args
, **kwargs
):
3287 PreFindReplaceDialog() -> FindReplaceDialog
3289 Precreate a FindReplaceDialog for 2-phase creation
3291 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3295 #---------------------------------------------------------------------------
3297 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3298 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3299 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3300 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3301 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3302 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3303 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3304 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3305 class MDIParentFrame(Frame
):
3307 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3308 def __init__(self
, *args
, **kwargs
):
3310 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
3311 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3312 String name=FrameNameStr) -> MDIParentFrame
3314 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3315 self
.this
= newobj
.this
3318 self
._setOORInfo
(self
)
3320 def Create(*args
, **kwargs
):
3322 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
3323 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3324 String name=FrameNameStr) -> bool
3326 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3328 def ActivateNext(*args
, **kwargs
):
3329 """ActivateNext(self)"""
3330 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3332 def ActivatePrevious(*args
, **kwargs
):
3333 """ActivatePrevious(self)"""
3334 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3336 def ArrangeIcons(*args
, **kwargs
):
3337 """ArrangeIcons(self)"""
3338 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3340 def Cascade(*args
, **kwargs
):
3342 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3344 def GetActiveChild(*args
, **kwargs
):
3345 """GetActiveChild(self) -> MDIChildFrame"""
3346 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3348 def GetClientWindow(*args
, **kwargs
):
3349 """GetClientWindow(self) -> MDIClientWindow"""
3350 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3352 def GetToolBar(*args
, **kwargs
):
3353 """GetToolBar(self) -> Window"""
3354 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3356 def GetWindowMenu(*args
, **kwargs
):
3357 """GetWindowMenu(self) -> Menu"""
3358 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3360 def SetWindowMenu(*args
, **kwargs
):
3361 """SetWindowMenu(self, Menu menu)"""
3362 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3364 def SetToolBar(*args
, **kwargs
):
3365 """SetToolBar(self, wxToolBar toolbar)"""
3366 return _windows_
.MDIParentFrame_SetToolBar(*args
, **kwargs
)
3368 def Tile(*args
, **kwargs
):
3370 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3373 class MDIParentFramePtr(MDIParentFrame
):
3374 def __init__(self
, this
):
3376 if not hasattr(self
,"thisown"): self
.thisown
= 0
3377 self
.__class
__ = MDIParentFrame
3378 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3380 def PreMDIParentFrame(*args
, **kwargs
):
3381 """PreMDIParentFrame() -> MDIParentFrame"""
3382 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3386 class MDIChildFrame(Frame
):
3388 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3389 def __init__(self
, *args
, **kwargs
):
3391 __init__(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3392 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3393 String name=FrameNameStr) -> MDIChildFrame
3395 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3396 self
.this
= newobj
.this
3399 self
._setOORInfo
(self
)
3401 def Create(*args
, **kwargs
):
3403 Create(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3404 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3405 String name=FrameNameStr) -> bool
3407 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3409 def Activate(*args
, **kwargs
):
3410 """Activate(self)"""
3411 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3413 def Maximize(*args
, **kwargs
):
3414 """Maximize(self, bool maximize)"""
3415 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3417 def Restore(*args
, **kwargs
):
3419 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3422 class MDIChildFramePtr(MDIChildFrame
):
3423 def __init__(self
, this
):
3425 if not hasattr(self
,"thisown"): self
.thisown
= 0
3426 self
.__class
__ = MDIChildFrame
3427 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3429 def PreMDIChildFrame(*args
, **kwargs
):
3430 """PreMDIChildFrame() -> MDIChildFrame"""
3431 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3435 class MDIClientWindow(_core
.Window
):
3437 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3438 def __init__(self
, *args
, **kwargs
):
3439 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3440 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3441 self
.this
= newobj
.this
3444 self
._setOORInfo
(self
)
3446 def Create(*args
, **kwargs
):
3447 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3448 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3451 class MDIClientWindowPtr(MDIClientWindow
):
3452 def __init__(self
, this
):
3454 if not hasattr(self
,"thisown"): self
.thisown
= 0
3455 self
.__class
__ = MDIClientWindow
3456 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3458 def PreMDIClientWindow(*args
, **kwargs
):
3459 """PreMDIClientWindow() -> MDIClientWindow"""
3460 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3464 #---------------------------------------------------------------------------
3466 class PyWindow(_core
.Window
):
3468 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3469 def __init__(self
, *args
, **kwargs
):
3471 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3472 long style=0, String name=PanelNameStr) -> PyWindow
3474 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3475 self
.this
= newobj
.this
3478 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3480 def _setCallbackInfo(*args
, **kwargs
):
3481 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3482 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3484 def base_DoMoveWindow(*args
, **kwargs
):
3485 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3486 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3488 def base_DoSetSize(*args
, **kwargs
):
3489 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3490 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3492 def base_DoSetClientSize(*args
, **kwargs
):
3493 """base_DoSetClientSize(self, int width, int height)"""
3494 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3496 def base_DoSetVirtualSize(*args
, **kwargs
):
3497 """base_DoSetVirtualSize(self, int x, int y)"""
3498 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3500 def base_DoGetSize(*args
, **kwargs
):
3501 """base_DoGetSize() -> (width, height)"""
3502 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3504 def base_DoGetClientSize(*args
, **kwargs
):
3505 """base_DoGetClientSize() -> (width, height)"""
3506 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3508 def base_DoGetPosition(*args
, **kwargs
):
3509 """base_DoGetPosition() -> (x,y)"""
3510 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3512 def base_DoGetVirtualSize(*args
, **kwargs
):
3513 """base_DoGetVirtualSize(self) -> Size"""
3514 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3516 def base_DoGetBestSize(*args
, **kwargs
):
3517 """base_DoGetBestSize(self) -> Size"""
3518 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3520 def base_InitDialog(*args
, **kwargs
):
3521 """base_InitDialog(self)"""
3522 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3524 def base_TransferDataToWindow(*args
, **kwargs
):
3525 """base_TransferDataToWindow(self) -> bool"""
3526 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3528 def base_TransferDataFromWindow(*args
, **kwargs
):
3529 """base_TransferDataFromWindow(self) -> bool"""
3530 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3532 def base_Validate(*args
, **kwargs
):
3533 """base_Validate(self) -> bool"""
3534 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3536 def base_AcceptsFocus(*args
, **kwargs
):
3537 """base_AcceptsFocus(self) -> bool"""
3538 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3540 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3541 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3542 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3544 def base_GetMaxSize(*args
, **kwargs
):
3545 """base_GetMaxSize(self) -> Size"""
3546 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3548 def base_AddChild(*args
, **kwargs
):
3549 """base_AddChild(self, Window child)"""
3550 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3552 def base_RemoveChild(*args
, **kwargs
):
3553 """base_RemoveChild(self, Window child)"""
3554 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3556 def base_ShouldInheritColours(*args
, **kwargs
):
3557 """base_ShouldInheritColours(self) -> bool"""
3558 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3560 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3561 """base_ApplyParentThemeBackground(self, Colour c)"""
3562 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3565 class PyWindowPtr(PyWindow
):
3566 def __init__(self
, this
):
3568 if not hasattr(self
,"thisown"): self
.thisown
= 0
3569 self
.__class
__ = PyWindow
3570 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3572 def PrePyWindow(*args
, **kwargs
):
3573 """PrePyWindow() -> PyWindow"""
3574 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3578 class PyPanel(Panel
):
3580 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3581 def __init__(self
, *args
, **kwargs
):
3583 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3584 long style=0, String name=PanelNameStr) -> PyPanel
3586 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3587 self
.this
= newobj
.this
3590 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3592 def _setCallbackInfo(*args
, **kwargs
):
3593 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3594 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3596 def base_DoMoveWindow(*args
, **kwargs
):
3597 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3598 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3600 def base_DoSetSize(*args
, **kwargs
):
3601 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3602 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3604 def base_DoSetClientSize(*args
, **kwargs
):
3605 """base_DoSetClientSize(self, int width, int height)"""
3606 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3608 def base_DoSetVirtualSize(*args
, **kwargs
):
3609 """base_DoSetVirtualSize(self, int x, int y)"""
3610 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3612 def base_DoGetSize(*args
, **kwargs
):
3613 """base_DoGetSize() -> (width, height)"""
3614 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3616 def base_DoGetClientSize(*args
, **kwargs
):
3617 """base_DoGetClientSize() -> (width, height)"""
3618 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3620 def base_DoGetPosition(*args
, **kwargs
):
3621 """base_DoGetPosition() -> (x,y)"""
3622 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3624 def base_DoGetVirtualSize(*args
, **kwargs
):
3625 """base_DoGetVirtualSize(self) -> Size"""
3626 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3628 def base_DoGetBestSize(*args
, **kwargs
):
3629 """base_DoGetBestSize(self) -> Size"""
3630 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3632 def base_InitDialog(*args
, **kwargs
):
3633 """base_InitDialog(self)"""
3634 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3636 def base_TransferDataToWindow(*args
, **kwargs
):
3637 """base_TransferDataToWindow(self) -> bool"""
3638 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3640 def base_TransferDataFromWindow(*args
, **kwargs
):
3641 """base_TransferDataFromWindow(self) -> bool"""
3642 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3644 def base_Validate(*args
, **kwargs
):
3645 """base_Validate(self) -> bool"""
3646 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3648 def base_AcceptsFocus(*args
, **kwargs
):
3649 """base_AcceptsFocus(self) -> bool"""
3650 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3652 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3653 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3654 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3656 def base_GetMaxSize(*args
, **kwargs
):
3657 """base_GetMaxSize(self) -> Size"""
3658 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3660 def base_AddChild(*args
, **kwargs
):
3661 """base_AddChild(self, Window child)"""
3662 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3664 def base_RemoveChild(*args
, **kwargs
):
3665 """base_RemoveChild(self, Window child)"""
3666 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3668 def base_ShouldInheritColours(*args
, **kwargs
):
3669 """base_ShouldInheritColours(self) -> bool"""
3670 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3672 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3673 """base_ApplyParentThemeBackground(self, Colour c)"""
3674 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3677 class PyPanelPtr(PyPanel
):
3678 def __init__(self
, this
):
3680 if not hasattr(self
,"thisown"): self
.thisown
= 0
3681 self
.__class
__ = PyPanel
3682 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3684 def PrePyPanel(*args
, **kwargs
):
3685 """PrePyPanel() -> PyPanel"""
3686 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3690 class PyScrolledWindow(ScrolledWindow
):
3692 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3693 def __init__(self
, *args
, **kwargs
):
3695 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3696 long style=0, String name=PanelNameStr) -> PyScrolledWindow
3698 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3699 self
.this
= newobj
.this
3702 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3704 def _setCallbackInfo(*args
, **kwargs
):
3705 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3706 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3708 def base_DoMoveWindow(*args
, **kwargs
):
3709 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3710 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3712 def base_DoSetSize(*args
, **kwargs
):
3713 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3714 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3716 def base_DoSetClientSize(*args
, **kwargs
):
3717 """base_DoSetClientSize(self, int width, int height)"""
3718 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3720 def base_DoSetVirtualSize(*args
, **kwargs
):
3721 """base_DoSetVirtualSize(self, int x, int y)"""
3722 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3724 def base_DoGetSize(*args
, **kwargs
):
3725 """base_DoGetSize() -> (width, height)"""
3726 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3728 def base_DoGetClientSize(*args
, **kwargs
):
3729 """base_DoGetClientSize() -> (width, height)"""
3730 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3732 def base_DoGetPosition(*args
, **kwargs
):
3733 """base_DoGetPosition() -> (x,y)"""
3734 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3736 def base_DoGetVirtualSize(*args
, **kwargs
):
3737 """base_DoGetVirtualSize(self) -> Size"""
3738 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3740 def base_DoGetBestSize(*args
, **kwargs
):
3741 """base_DoGetBestSize(self) -> Size"""
3742 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3744 def base_InitDialog(*args
, **kwargs
):
3745 """base_InitDialog(self)"""
3746 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3748 def base_TransferDataToWindow(*args
, **kwargs
):
3749 """base_TransferDataToWindow(self) -> bool"""
3750 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3752 def base_TransferDataFromWindow(*args
, **kwargs
):
3753 """base_TransferDataFromWindow(self) -> bool"""
3754 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3756 def base_Validate(*args
, **kwargs
):
3757 """base_Validate(self) -> bool"""
3758 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3760 def base_AcceptsFocus(*args
, **kwargs
):
3761 """base_AcceptsFocus(self) -> bool"""
3762 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3764 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3765 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3766 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3768 def base_GetMaxSize(*args
, **kwargs
):
3769 """base_GetMaxSize(self) -> Size"""
3770 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3772 def base_AddChild(*args
, **kwargs
):
3773 """base_AddChild(self, Window child)"""
3774 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3776 def base_RemoveChild(*args
, **kwargs
):
3777 """base_RemoveChild(self, Window child)"""
3778 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3780 def base_ShouldInheritColours(*args
, **kwargs
):
3781 """base_ShouldInheritColours(self) -> bool"""
3782 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3784 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3785 """base_ApplyParentThemeBackground(self, Colour c)"""
3786 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3789 class PyScrolledWindowPtr(PyScrolledWindow
):
3790 def __init__(self
, this
):
3792 if not hasattr(self
,"thisown"): self
.thisown
= 0
3793 self
.__class
__ = PyScrolledWindow
3794 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3796 def PrePyScrolledWindow(*args
, **kwargs
):
3797 """PrePyScrolledWindow() -> PyScrolledWindow"""
3798 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3802 #---------------------------------------------------------------------------
3804 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3805 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3806 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3807 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3808 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3809 class PrintData(_core
.Object
):
3811 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3812 def __init__(self
, *args
, **kwargs
):
3813 """__init__(self) -> PrintData"""
3814 newobj
= _windows_
.new_PrintData(*args
, **kwargs
)
3815 self
.this
= newobj
.this
3818 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3821 if self
.thisown
: destroy(self
)
3824 def GetNoCopies(*args
, **kwargs
):
3825 """GetNoCopies(self) -> int"""
3826 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3828 def GetCollate(*args
, **kwargs
):
3829 """GetCollate(self) -> bool"""
3830 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3832 def GetOrientation(*args
, **kwargs
):
3833 """GetOrientation(self) -> int"""
3834 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3836 def Ok(*args
, **kwargs
):
3837 """Ok(self) -> bool"""
3838 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3840 def GetPrinterName(*args
, **kwargs
):
3841 """GetPrinterName(self) -> String"""
3842 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3844 def GetColour(*args
, **kwargs
):
3845 """GetColour(self) -> bool"""
3846 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3848 def GetDuplex(*args
, **kwargs
):
3849 """GetDuplex(self) -> int"""
3850 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3852 def GetPaperId(*args
, **kwargs
):
3853 """GetPaperId(self) -> int"""
3854 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3856 def GetPaperSize(*args
, **kwargs
):
3857 """GetPaperSize(self) -> Size"""
3858 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3860 def GetQuality(*args
, **kwargs
):
3861 """GetQuality(self) -> int"""
3862 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3864 def SetNoCopies(*args
, **kwargs
):
3865 """SetNoCopies(self, int v)"""
3866 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3868 def SetCollate(*args
, **kwargs
):
3869 """SetCollate(self, bool flag)"""
3870 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3872 def SetOrientation(*args
, **kwargs
):
3873 """SetOrientation(self, int orient)"""
3874 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3876 def SetPrinterName(*args
, **kwargs
):
3877 """SetPrinterName(self, String name)"""
3878 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3880 def SetColour(*args
, **kwargs
):
3881 """SetColour(self, bool colour)"""
3882 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3884 def SetDuplex(*args
, **kwargs
):
3885 """SetDuplex(self, int duplex)"""
3886 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3888 def SetPaperId(*args
, **kwargs
):
3889 """SetPaperId(self, int sizeId)"""
3890 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3892 def SetPaperSize(*args
, **kwargs
):
3893 """SetPaperSize(self, Size sz)"""
3894 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3896 def SetQuality(*args
, **kwargs
):
3897 """SetQuality(self, int quality)"""
3898 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3900 def GetPrinterCommand(*args
, **kwargs
):
3901 """GetPrinterCommand(self) -> String"""
3902 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3904 def GetPrinterOptions(*args
, **kwargs
):
3905 """GetPrinterOptions(self) -> String"""
3906 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3908 def GetPreviewCommand(*args
, **kwargs
):
3909 """GetPreviewCommand(self) -> String"""
3910 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3912 def GetFilename(*args
, **kwargs
):
3913 """GetFilename(self) -> String"""
3914 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3916 def GetFontMetricPath(*args
, **kwargs
):
3917 """GetFontMetricPath(self) -> String"""
3918 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3920 def GetPrinterScaleX(*args
, **kwargs
):
3921 """GetPrinterScaleX(self) -> double"""
3922 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3924 def GetPrinterScaleY(*args
, **kwargs
):
3925 """GetPrinterScaleY(self) -> double"""
3926 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3928 def GetPrinterTranslateX(*args
, **kwargs
):
3929 """GetPrinterTranslateX(self) -> long"""
3930 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3932 def GetPrinterTranslateY(*args
, **kwargs
):
3933 """GetPrinterTranslateY(self) -> long"""
3934 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3936 def GetPrintMode(*args
, **kwargs
):
3937 """GetPrintMode(self) -> int"""
3938 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3940 def SetPrinterCommand(*args
, **kwargs
):
3941 """SetPrinterCommand(self, String command)"""
3942 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3944 def SetPrinterOptions(*args
, **kwargs
):
3945 """SetPrinterOptions(self, String options)"""
3946 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3948 def SetPreviewCommand(*args
, **kwargs
):
3949 """SetPreviewCommand(self, String command)"""
3950 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3952 def SetFilename(*args
, **kwargs
):
3953 """SetFilename(self, String filename)"""
3954 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3956 def SetFontMetricPath(*args
, **kwargs
):
3957 """SetFontMetricPath(self, String path)"""
3958 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3960 def SetPrinterScaleX(*args
, **kwargs
):
3961 """SetPrinterScaleX(self, double x)"""
3962 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3964 def SetPrinterScaleY(*args
, **kwargs
):
3965 """SetPrinterScaleY(self, double y)"""
3966 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3968 def SetPrinterScaling(*args
, **kwargs
):
3969 """SetPrinterScaling(self, double x, double y)"""
3970 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3972 def SetPrinterTranslateX(*args
, **kwargs
):
3973 """SetPrinterTranslateX(self, long x)"""
3974 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3976 def SetPrinterTranslateY(*args
, **kwargs
):
3977 """SetPrinterTranslateY(self, long y)"""
3978 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3980 def SetPrinterTranslation(*args
, **kwargs
):
3981 """SetPrinterTranslation(self, long x, long y)"""
3982 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3984 def SetPrintMode(*args
, **kwargs
):
3985 """SetPrintMode(self, int printMode)"""
3986 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3988 def GetOutputStream(*args
, **kwargs
):
3989 """GetOutputStream(self) -> OutputStream"""
3990 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3992 def SetOutputStream(*args
, **kwargs
):
3993 """SetOutputStream(self, OutputStream outputstream)"""
3994 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3996 def __nonzero__(self
): return self
.Ok()
3998 class PrintDataPtr(PrintData
):
3999 def __init__(self
, this
):
4001 if not hasattr(self
,"thisown"): self
.thisown
= 0
4002 self
.__class
__ = PrintData
4003 _windows_
.PrintData_swigregister(PrintDataPtr
)
4004 PrintoutTitleStr
= cvar
.PrintoutTitleStr
4005 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
4007 class PageSetupDialogData(_core
.Object
):
4009 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4010 def __init__(self
, *args
, **kwargs
):
4011 """__init__(self) -> PageSetupDialogData"""
4012 newobj
= _windows_
.new_PageSetupDialogData(*args
, **kwargs
)
4013 self
.this
= newobj
.this
4016 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
4019 if self
.thisown
: destroy(self
)
4022 def EnableHelp(*args
, **kwargs
):
4023 """EnableHelp(self, bool flag)"""
4024 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
4026 def EnableMargins(*args
, **kwargs
):
4027 """EnableMargins(self, bool flag)"""
4028 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
4030 def EnableOrientation(*args
, **kwargs
):
4031 """EnableOrientation(self, bool flag)"""
4032 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
4034 def EnablePaper(*args
, **kwargs
):
4035 """EnablePaper(self, bool flag)"""
4036 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
4038 def EnablePrinter(*args
, **kwargs
):
4039 """EnablePrinter(self, bool flag)"""
4040 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
4042 def GetDefaultMinMargins(*args
, **kwargs
):
4043 """GetDefaultMinMargins(self) -> bool"""
4044 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
4046 def GetEnableMargins(*args
, **kwargs
):
4047 """GetEnableMargins(self) -> bool"""
4048 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
4050 def GetEnableOrientation(*args
, **kwargs
):
4051 """GetEnableOrientation(self) -> bool"""
4052 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4054 def GetEnablePaper(*args
, **kwargs
):
4055 """GetEnablePaper(self) -> bool"""
4056 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4058 def GetEnablePrinter(*args
, **kwargs
):
4059 """GetEnablePrinter(self) -> bool"""
4060 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4062 def GetEnableHelp(*args
, **kwargs
):
4063 """GetEnableHelp(self) -> bool"""
4064 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4066 def GetDefaultInfo(*args
, **kwargs
):
4067 """GetDefaultInfo(self) -> bool"""
4068 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4070 def GetMarginTopLeft(*args
, **kwargs
):
4071 """GetMarginTopLeft(self) -> Point"""
4072 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4074 def GetMarginBottomRight(*args
, **kwargs
):
4075 """GetMarginBottomRight(self) -> Point"""
4076 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4078 def GetMinMarginTopLeft(*args
, **kwargs
):
4079 """GetMinMarginTopLeft(self) -> Point"""
4080 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4082 def GetMinMarginBottomRight(*args
, **kwargs
):
4083 """GetMinMarginBottomRight(self) -> Point"""
4084 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4086 def GetPaperId(*args
, **kwargs
):
4087 """GetPaperId(self) -> int"""
4088 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4090 def GetPaperSize(*args
, **kwargs
):
4091 """GetPaperSize(self) -> Size"""
4092 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4094 def GetPrintData(*args
, **kwargs
):
4095 """GetPrintData(self) -> PrintData"""
4096 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4098 def Ok(*args
, **kwargs
):
4099 """Ok(self) -> bool"""
4100 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4102 def SetDefaultInfo(*args
, **kwargs
):
4103 """SetDefaultInfo(self, bool flag)"""
4104 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4106 def SetDefaultMinMargins(*args
, **kwargs
):
4107 """SetDefaultMinMargins(self, bool flag)"""
4108 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4110 def SetMarginTopLeft(*args
, **kwargs
):
4111 """SetMarginTopLeft(self, Point pt)"""
4112 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4114 def SetMarginBottomRight(*args
, **kwargs
):
4115 """SetMarginBottomRight(self, Point pt)"""
4116 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4118 def SetMinMarginTopLeft(*args
, **kwargs
):
4119 """SetMinMarginTopLeft(self, Point pt)"""
4120 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4122 def SetMinMarginBottomRight(*args
, **kwargs
):
4123 """SetMinMarginBottomRight(self, Point pt)"""
4124 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4126 def SetPaperId(*args
, **kwargs
):
4127 """SetPaperId(self, int id)"""
4128 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4130 def SetPaperSize(*args
, **kwargs
):
4131 """SetPaperSize(self, Size size)"""
4132 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4134 def SetPrintData(*args
, **kwargs
):
4135 """SetPrintData(self, PrintData printData)"""
4136 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4138 def __nonzero__(self
): return self
.Ok()
4140 class PageSetupDialogDataPtr(PageSetupDialogData
):
4141 def __init__(self
, this
):
4143 if not hasattr(self
,"thisown"): self
.thisown
= 0
4144 self
.__class
__ = PageSetupDialogData
4145 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4147 class PageSetupDialog(Dialog
):
4149 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4150 def __init__(self
, *args
, **kwargs
):
4151 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4152 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4153 self
.this
= newobj
.this
4156 self
._setOORInfo
(self
)
4158 def GetPageSetupData(*args
, **kwargs
):
4159 """GetPageSetupData(self) -> PageSetupDialogData"""
4160 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4162 def ShowModal(*args
, **kwargs
):
4163 """ShowModal(self) -> int"""
4164 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4167 class PageSetupDialogPtr(PageSetupDialog
):
4168 def __init__(self
, this
):
4170 if not hasattr(self
,"thisown"): self
.thisown
= 0
4171 self
.__class
__ = PageSetupDialog
4172 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4174 class PrintDialogData(_core
.Object
):
4176 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4177 def __init__(self
, *args
):
4179 __init__(self) -> PrintDialogData
4180 __init__(self, PrintData printData) -> PrintDialogData
4182 newobj
= _windows_
.new_PrintDialogData(*args
)
4183 self
.this
= newobj
.this
4186 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4189 if self
.thisown
: destroy(self
)
4192 def GetFromPage(*args
, **kwargs
):
4193 """GetFromPage(self) -> int"""
4194 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4196 def GetToPage(*args
, **kwargs
):
4197 """GetToPage(self) -> int"""
4198 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4200 def GetMinPage(*args
, **kwargs
):
4201 """GetMinPage(self) -> int"""
4202 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4204 def GetMaxPage(*args
, **kwargs
):
4205 """GetMaxPage(self) -> int"""
4206 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4208 def GetNoCopies(*args
, **kwargs
):
4209 """GetNoCopies(self) -> int"""
4210 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4212 def GetAllPages(*args
, **kwargs
):
4213 """GetAllPages(self) -> bool"""
4214 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4216 def GetSelection(*args
, **kwargs
):
4217 """GetSelection(self) -> bool"""
4218 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4220 def GetCollate(*args
, **kwargs
):
4221 """GetCollate(self) -> bool"""
4222 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4224 def GetPrintToFile(*args
, **kwargs
):
4225 """GetPrintToFile(self) -> bool"""
4226 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4228 def GetSetupDialog(*args
, **kwargs
):
4229 """GetSetupDialog(self) -> bool"""
4230 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4232 def SetFromPage(*args
, **kwargs
):
4233 """SetFromPage(self, int v)"""
4234 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4236 def SetToPage(*args
, **kwargs
):
4237 """SetToPage(self, int v)"""
4238 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4240 def SetMinPage(*args
, **kwargs
):
4241 """SetMinPage(self, int v)"""
4242 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4244 def SetMaxPage(*args
, **kwargs
):
4245 """SetMaxPage(self, int v)"""
4246 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4248 def SetNoCopies(*args
, **kwargs
):
4249 """SetNoCopies(self, int v)"""
4250 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4252 def SetAllPages(*args
, **kwargs
):
4253 """SetAllPages(self, bool flag)"""
4254 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4256 def SetSelection(*args
, **kwargs
):
4257 """SetSelection(self, bool flag)"""
4258 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4260 def SetCollate(*args
, **kwargs
):
4261 """SetCollate(self, bool flag)"""
4262 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4264 def SetPrintToFile(*args
, **kwargs
):
4265 """SetPrintToFile(self, bool flag)"""
4266 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4268 def SetSetupDialog(*args
, **kwargs
):
4269 """SetSetupDialog(self, bool flag)"""
4270 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4272 def EnablePrintToFile(*args
, **kwargs
):
4273 """EnablePrintToFile(self, bool flag)"""
4274 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4276 def EnableSelection(*args
, **kwargs
):
4277 """EnableSelection(self, bool flag)"""
4278 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4280 def EnablePageNumbers(*args
, **kwargs
):
4281 """EnablePageNumbers(self, bool flag)"""
4282 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4284 def EnableHelp(*args
, **kwargs
):
4285 """EnableHelp(self, bool flag)"""
4286 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4288 def GetEnablePrintToFile(*args
, **kwargs
):
4289 """GetEnablePrintToFile(self) -> bool"""
4290 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4292 def GetEnableSelection(*args
, **kwargs
):
4293 """GetEnableSelection(self) -> bool"""
4294 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4296 def GetEnablePageNumbers(*args
, **kwargs
):
4297 """GetEnablePageNumbers(self) -> bool"""
4298 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4300 def GetEnableHelp(*args
, **kwargs
):
4301 """GetEnableHelp(self) -> bool"""
4302 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4304 def Ok(*args
, **kwargs
):
4305 """Ok(self) -> bool"""
4306 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4308 def GetPrintData(*args
, **kwargs
):
4309 """GetPrintData(self) -> PrintData"""
4310 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4312 def SetPrintData(*args
, **kwargs
):
4313 """SetPrintData(self, PrintData printData)"""
4314 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4316 def __nonzero__(self
): return self
.Ok()
4318 class PrintDialogDataPtr(PrintDialogData
):
4319 def __init__(self
, this
):
4321 if not hasattr(self
,"thisown"): self
.thisown
= 0
4322 self
.__class
__ = PrintDialogData
4323 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4325 class PrintDialog(Dialog
):
4327 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4328 def __init__(self
, *args
, **kwargs
):
4329 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4330 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4331 self
.this
= newobj
.this
4334 self
._setOORInfo
(self
)
4336 def GetPrintDialogData(*args
, **kwargs
):
4337 """GetPrintDialogData(self) -> PrintDialogData"""
4338 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4340 def GetPrintDC(*args
, **kwargs
):
4341 """GetPrintDC(self) -> DC"""
4342 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4344 def ShowModal(*args
, **kwargs
):
4345 """ShowModal(self) -> int"""
4346 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4349 class PrintDialogPtr(PrintDialog
):
4350 def __init__(self
, this
):
4352 if not hasattr(self
,"thisown"): self
.thisown
= 0
4353 self
.__class
__ = PrintDialog
4354 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4356 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4357 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4358 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4359 class Printer(_core
.Object
):
4361 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4362 def __init__(self
, *args
, **kwargs
):
4363 """__init__(self, PrintDialogData data=None) -> Printer"""
4364 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4365 self
.this
= newobj
.this
4368 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4371 if self
.thisown
: destroy(self
)
4374 def CreateAbortWindow(*args
, **kwargs
):
4375 """CreateAbortWindow(self, Window parent, Printout printout)"""
4376 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4378 def GetPrintDialogData(*args
, **kwargs
):
4379 """GetPrintDialogData(self) -> PrintDialogData"""
4380 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4382 def Print(*args
, **kwargs
):
4383 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4384 return _windows_
.Printer_Print(*args
, **kwargs
)
4386 def PrintDialog(*args
, **kwargs
):
4387 """PrintDialog(self, Window parent) -> DC"""
4388 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4390 def ReportError(*args
, **kwargs
):
4391 """ReportError(self, Window parent, Printout printout, String message)"""
4392 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4394 def Setup(*args
, **kwargs
):
4395 """Setup(self, Window parent) -> bool"""
4396 return _windows_
.Printer_Setup(*args
, **kwargs
)
4398 def GetAbort(*args
, **kwargs
):
4399 """GetAbort(self) -> bool"""
4400 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4402 def GetLastError(*args
, **kwargs
):
4403 """GetLastError() -> int"""
4404 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4406 GetLastError
= staticmethod(GetLastError
)
4408 class PrinterPtr(Printer
):
4409 def __init__(self
, this
):
4411 if not hasattr(self
,"thisown"): self
.thisown
= 0
4412 self
.__class
__ = Printer
4413 _windows_
.Printer_swigregister(PrinterPtr
)
4415 def Printer_GetLastError(*args
, **kwargs
):
4416 """Printer_GetLastError() -> int"""
4417 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4419 class Printout(_core
.Object
):
4421 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4422 def __init__(self
, *args
, **kwargs
):
4423 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4424 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4425 self
.this
= newobj
.this
4428 self
._setCallbackInfo
(self
, Printout
)
4430 def _setCallbackInfo(*args
, **kwargs
):
4431 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4432 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4434 def GetTitle(*args
, **kwargs
):
4435 """GetTitle(self) -> String"""
4436 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4438 def GetDC(*args
, **kwargs
):
4439 """GetDC(self) -> DC"""
4440 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4442 def SetDC(*args
, **kwargs
):
4443 """SetDC(self, DC dc)"""
4444 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4446 def SetPageSizePixels(*args
, **kwargs
):
4447 """SetPageSizePixels(self, int w, int h)"""
4448 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4450 def GetPageSizePixels(*args
, **kwargs
):
4451 """GetPageSizePixels() -> (w, h)"""
4452 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4454 def SetPageSizeMM(*args
, **kwargs
):
4455 """SetPageSizeMM(self, int w, int h)"""
4456 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4458 def GetPageSizeMM(*args
, **kwargs
):
4459 """GetPageSizeMM() -> (w, h)"""
4460 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4462 def SetPPIScreen(*args
, **kwargs
):
4463 """SetPPIScreen(self, int x, int y)"""
4464 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4466 def GetPPIScreen(*args
, **kwargs
):
4467 """GetPPIScreen() -> (x,y)"""
4468 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4470 def SetPPIPrinter(*args
, **kwargs
):
4471 """SetPPIPrinter(self, int x, int y)"""
4472 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4474 def GetPPIPrinter(*args
, **kwargs
):
4475 """GetPPIPrinter() -> (x,y)"""
4476 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4478 def IsPreview(*args
, **kwargs
):
4479 """IsPreview(self) -> bool"""
4480 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4482 def SetIsPreview(*args
, **kwargs
):
4483 """SetIsPreview(self, bool p)"""
4484 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4486 def base_OnBeginDocument(*args
, **kwargs
):
4487 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4488 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4490 def base_OnEndDocument(*args
, **kwargs
):
4491 """base_OnEndDocument(self)"""
4492 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4494 def base_OnBeginPrinting(*args
, **kwargs
):
4495 """base_OnBeginPrinting(self)"""
4496 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4498 def base_OnEndPrinting(*args
, **kwargs
):
4499 """base_OnEndPrinting(self)"""
4500 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4502 def base_OnPreparePrinting(*args
, **kwargs
):
4503 """base_OnPreparePrinting(self)"""
4504 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4506 def base_HasPage(*args
, **kwargs
):
4507 """base_HasPage(self, int page) -> bool"""
4508 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4510 def base_GetPageInfo(*args
, **kwargs
):
4511 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4512 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4515 class PrintoutPtr(Printout
):
4516 def __init__(self
, this
):
4518 if not hasattr(self
,"thisown"): self
.thisown
= 0
4519 self
.__class
__ = Printout
4520 _windows_
.Printout_swigregister(PrintoutPtr
)
4522 class PreviewCanvas(ScrolledWindow
):
4524 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4525 def __init__(self
, *args
, **kwargs
):
4527 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4528 Size size=DefaultSize, long style=0,
4529 String name=PreviewCanvasNameStr) -> PreviewCanvas
4531 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4532 self
.this
= newobj
.this
4535 self
._setOORInfo
(self
)
4538 class PreviewCanvasPtr(PreviewCanvas
):
4539 def __init__(self
, this
):
4541 if not hasattr(self
,"thisown"): self
.thisown
= 0
4542 self
.__class
__ = PreviewCanvas
4543 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4545 class PreviewFrame(Frame
):
4547 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4548 def __init__(self
, *args
, **kwargs
):
4550 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4551 Size size=DefaultSize,
4552 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4554 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4555 self
.this
= newobj
.this
4558 self
._setOORInfo
(self
)
4560 def Initialize(*args
, **kwargs
):
4561 """Initialize(self)"""
4562 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4564 def CreateControlBar(*args
, **kwargs
):
4565 """CreateControlBar(self)"""
4566 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4568 def CreateCanvas(*args
, **kwargs
):
4569 """CreateCanvas(self)"""
4570 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4572 def GetControlBar(*args
, **kwargs
):
4573 """GetControlBar(self) -> PreviewControlBar"""
4574 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4577 class PreviewFramePtr(PreviewFrame
):
4578 def __init__(self
, this
):
4580 if not hasattr(self
,"thisown"): self
.thisown
= 0
4581 self
.__class
__ = PreviewFrame
4582 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4584 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4585 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4586 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4587 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4588 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4589 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4590 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4591 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4592 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4593 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4594 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4595 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4596 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4597 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4598 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4599 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4600 class PreviewControlBar(Panel
):
4602 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4603 def __init__(self
, *args
, **kwargs
):
4605 __init__(self, PrintPreview preview, long buttons, Window parent,
4606 Point pos=DefaultPosition, Size size=DefaultSize,
4607 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4609 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4610 self
.this
= newobj
.this
4613 self
._setOORInfo
(self
)
4615 def GetZoomControl(*args
, **kwargs
):
4616 """GetZoomControl(self) -> int"""
4617 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4619 def SetZoomControl(*args
, **kwargs
):
4620 """SetZoomControl(self, int zoom)"""
4621 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4623 def GetPrintPreview(*args
, **kwargs
):
4624 """GetPrintPreview(self) -> PrintPreview"""
4625 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4627 def OnNext(*args
, **kwargs
):
4629 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4631 def OnPrevious(*args
, **kwargs
):
4632 """OnPrevious(self)"""
4633 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4635 def OnFirst(*args
, **kwargs
):
4637 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4639 def OnLast(*args
, **kwargs
):
4641 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4643 def OnGoto(*args
, **kwargs
):
4645 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4648 class PreviewControlBarPtr(PreviewControlBar
):
4649 def __init__(self
, this
):
4651 if not hasattr(self
,"thisown"): self
.thisown
= 0
4652 self
.__class
__ = PreviewControlBar
4653 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4655 class PrintPreview(_core
.Object
):
4657 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4658 def __init__(self
, *args
):
4660 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4661 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4663 newobj
= _windows_
.new_PrintPreview(*args
)
4664 self
.this
= newobj
.this
4667 def SetCurrentPage(*args
, **kwargs
):
4668 """SetCurrentPage(self, int pageNum) -> bool"""
4669 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4671 def GetCurrentPage(*args
, **kwargs
):
4672 """GetCurrentPage(self) -> int"""
4673 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4675 def SetPrintout(*args
, **kwargs
):
4676 """SetPrintout(self, Printout printout)"""
4677 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4679 def GetPrintout(*args
, **kwargs
):
4680 """GetPrintout(self) -> Printout"""
4681 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4683 def GetPrintoutForPrinting(*args
, **kwargs
):
4684 """GetPrintoutForPrinting(self) -> Printout"""
4685 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4687 def SetFrame(*args
, **kwargs
):
4688 """SetFrame(self, Frame frame)"""
4689 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4691 def SetCanvas(*args
, **kwargs
):
4692 """SetCanvas(self, PreviewCanvas canvas)"""
4693 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4695 def GetFrame(*args
, **kwargs
):
4696 """GetFrame(self) -> Frame"""
4697 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4699 def GetCanvas(*args
, **kwargs
):
4700 """GetCanvas(self) -> PreviewCanvas"""
4701 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4703 def PaintPage(*args
, **kwargs
):
4704 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4705 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4707 def DrawBlankPage(*args
, **kwargs
):
4708 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4709 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4711 def RenderPage(*args
, **kwargs
):
4712 """RenderPage(self, int pageNum) -> bool"""
4713 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4715 def AdjustScrollbars(*args
, **kwargs
):
4716 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4717 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4719 def GetPrintDialogData(*args
, **kwargs
):
4720 """GetPrintDialogData(self) -> PrintDialogData"""
4721 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4723 def SetZoom(*args
, **kwargs
):
4724 """SetZoom(self, int percent)"""
4725 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4727 def GetZoom(*args
, **kwargs
):
4728 """GetZoom(self) -> int"""
4729 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4731 def GetMaxPage(*args
, **kwargs
):
4732 """GetMaxPage(self) -> int"""
4733 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4735 def GetMinPage(*args
, **kwargs
):
4736 """GetMinPage(self) -> int"""
4737 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4739 def Ok(*args
, **kwargs
):
4740 """Ok(self) -> bool"""
4741 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4743 def SetOk(*args
, **kwargs
):
4744 """SetOk(self, bool ok)"""
4745 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4747 def Print(*args
, **kwargs
):
4748 """Print(self, bool interactive) -> bool"""
4749 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4751 def DetermineScaling(*args
, **kwargs
):
4752 """DetermineScaling(self)"""
4753 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4755 def __nonzero__(self
): return self
.Ok()
4757 class PrintPreviewPtr(PrintPreview
):
4758 def __init__(self
, this
):
4760 if not hasattr(self
,"thisown"): self
.thisown
= 0
4761 self
.__class
__ = PrintPreview
4762 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4764 class PyPrintPreview(PrintPreview
):
4766 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4767 def __init__(self
, *args
):
4769 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4770 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4772 newobj
= _windows_
.new_PyPrintPreview(*args
)
4773 self
.this
= newobj
.this
4776 self
._setCallbackInfo
(self
, PyPrintPreview
)
4778 def _setCallbackInfo(*args
, **kwargs
):
4779 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4780 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4782 def base_SetCurrentPage(*args
, **kwargs
):
4783 """base_SetCurrentPage(self, int pageNum) -> bool"""
4784 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4786 def base_PaintPage(*args
, **kwargs
):
4787 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4788 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4790 def base_DrawBlankPage(*args
, **kwargs
):
4791 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4792 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4794 def base_RenderPage(*args
, **kwargs
):
4795 """base_RenderPage(self, int pageNum) -> bool"""
4796 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4798 def base_SetZoom(*args
, **kwargs
):
4799 """base_SetZoom(self, int percent)"""
4800 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4802 def base_Print(*args
, **kwargs
):
4803 """base_Print(self, bool interactive) -> bool"""
4804 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4806 def base_DetermineScaling(*args
, **kwargs
):
4807 """base_DetermineScaling(self)"""
4808 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4811 class PyPrintPreviewPtr(PyPrintPreview
):
4812 def __init__(self
, this
):
4814 if not hasattr(self
,"thisown"): self
.thisown
= 0
4815 self
.__class
__ = PyPrintPreview
4816 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4818 class PyPreviewFrame(PreviewFrame
):
4820 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4821 def __init__(self
, *args
, **kwargs
):
4823 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4824 Size size=DefaultSize,
4825 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4827 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4828 self
.this
= newobj
.this
4831 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4833 def _setCallbackInfo(*args
, **kwargs
):
4834 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4835 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4837 def SetPreviewCanvas(*args
, **kwargs
):
4838 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4839 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4841 def SetControlBar(*args
, **kwargs
):
4842 """SetControlBar(self, PreviewControlBar bar)"""
4843 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4845 def base_Initialize(*args
, **kwargs
):
4846 """base_Initialize(self)"""
4847 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4849 def base_CreateCanvas(*args
, **kwargs
):
4850 """base_CreateCanvas(self)"""
4851 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4853 def base_CreateControlBar(*args
, **kwargs
):
4854 """base_CreateControlBar(self)"""
4855 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4858 class PyPreviewFramePtr(PyPreviewFrame
):
4859 def __init__(self
, this
):
4861 if not hasattr(self
,"thisown"): self
.thisown
= 0
4862 self
.__class
__ = PyPreviewFrame
4863 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4865 class PyPreviewControlBar(PreviewControlBar
):
4867 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4868 def __init__(self
, *args
, **kwargs
):
4870 __init__(self, PrintPreview preview, long buttons, Window parent,
4871 Point pos=DefaultPosition, Size size=DefaultSize,
4872 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4874 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4875 self
.this
= newobj
.this
4878 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4880 def _setCallbackInfo(*args
, **kwargs
):
4881 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4882 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4884 def SetPrintPreview(*args
, **kwargs
):
4885 """SetPrintPreview(self, PrintPreview preview)"""
4886 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4888 def base_CreateButtons(*args
, **kwargs
):
4889 """base_CreateButtons(self)"""
4890 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4892 def base_SetZoomControl(*args
, **kwargs
):
4893 """base_SetZoomControl(self, int zoom)"""
4894 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4897 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4898 def __init__(self
, this
):
4900 if not hasattr(self
,"thisown"): self
.thisown
= 0
4901 self
.__class
__ = PyPreviewControlBar
4902 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)