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 GetClassDefaultAttributes(*args
, **kwargs
):
209 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
211 Get the default attributes for this class. This is useful if
212 you want to use the same font or colour in your own control as
213 in a standard control -- which is a much better idea than hard
214 coding specific colours or fonts which might look completely out
215 of place on the users system, especially if it uses themes.
217 The variant parameter is only relevant under Mac currently and is
218 ignore under other platforms. Under Mac, it will change the size of the
219 returned font. See SetWindowVariant for more about this.
221 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
223 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
225 class ScrolledWindowPtr(ScrolledWindow
):
226 def __init__(self
, this
):
228 if not hasattr(self
,"thisown"): self
.thisown
= 0
229 self
.__class
__ = ScrolledWindow
230 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
232 def PreScrolledWindow(*args
, **kwargs
):
233 """PreScrolledWindow() -> ScrolledWindow"""
234 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
238 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
240 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
242 Get the default attributes for this class. This is useful if
243 you want to use the same font or colour in your own control as
244 in a standard control -- which is a much better idea than hard
245 coding specific colours or fonts which might look completely out
246 of place on the users system, especially if it uses themes.
248 The variant parameter is only relevant under Mac currently and is
249 ignore under other platforms. Under Mac, it will change the size of the
250 returned font. See SetWindowVariant for more about this.
252 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
254 #---------------------------------------------------------------------------
256 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
257 ICONIZE
= _windows_
.ICONIZE
258 MINIMIZE
= _windows_
.MINIMIZE
259 MAXIMIZE
= _windows_
.MAXIMIZE
260 CLOSE_BOX
= _windows_
.CLOSE_BOX
261 THICK_FRAME
= _windows_
.THICK_FRAME
262 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
263 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
264 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
265 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
266 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
267 RESIZE_BOX
= _windows_
.RESIZE_BOX
268 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
269 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
270 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
271 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
272 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
273 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
274 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
275 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
276 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
277 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
278 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
279 USER_COLOURS
= _windows_
.USER_COLOURS
280 NO_3D
= _windows_
.NO_3D
281 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
282 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
283 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
284 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
285 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
286 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
287 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
288 class TopLevelWindow(_core
.Window
):
289 def __init__(self
): raise RuntimeError, "No constructor defined"
291 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
292 def Maximize(*args
, **kwargs
):
293 """Maximize(self, bool maximize=True)"""
294 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
296 def Restore(*args
, **kwargs
):
298 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
300 def Iconize(*args
, **kwargs
):
301 """Iconize(self, bool iconize=True)"""
302 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
304 def IsMaximized(*args
, **kwargs
):
305 """IsMaximized(self) -> bool"""
306 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
308 def IsIconized(*args
, **kwargs
):
309 """IsIconized(self) -> bool"""
310 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
312 def GetIcon(*args
, **kwargs
):
313 """GetIcon(self) -> Icon"""
314 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
316 def SetIcon(*args
, **kwargs
):
317 """SetIcon(self, Icon icon)"""
318 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
320 def SetIcons(*args
, **kwargs
):
321 """SetIcons(self, wxIconBundle icons)"""
322 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
324 def ShowFullScreen(*args
, **kwargs
):
325 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
326 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
328 def IsFullScreen(*args
, **kwargs
):
329 """IsFullScreen(self) -> bool"""
330 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
332 def SetTitle(*args
, **kwargs
):
334 SetTitle(self, String title)
336 Sets the window's title. Applicable only to frames and dialogs.
338 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
340 def GetTitle(*args
, **kwargs
):
342 GetTitle(self) -> String
344 Gets the window's title. Applicable only to frames and dialogs.
346 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
348 def SetShape(*args
, **kwargs
):
349 """SetShape(self, Region region) -> bool"""
350 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
353 class TopLevelWindowPtr(TopLevelWindow
):
354 def __init__(self
, this
):
356 if not hasattr(self
,"thisown"): self
.thisown
= 0
357 self
.__class
__ = TopLevelWindow
358 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
359 cvar
= _windows_
.cvar
360 FrameNameStr
= cvar
.FrameNameStr
361 DialogNameStr
= cvar
.DialogNameStr
362 StatusLineNameStr
= cvar
.StatusLineNameStr
363 ToolBarNameStr
= cvar
.ToolBarNameStr
365 #---------------------------------------------------------------------------
367 class Frame(TopLevelWindow
):
369 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
370 def __init__(self
, *args
, **kwargs
):
372 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
373 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
374 String name=FrameNameStr) -> Frame
376 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
377 self
.this
= newobj
.this
380 self
._setOORInfo
(self
)
382 def Create(*args
, **kwargs
):
384 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
385 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
386 String name=FrameNameStr) -> bool
388 return _windows_
.Frame_Create(*args
, **kwargs
)
390 def GetClientAreaOrigin(*args
, **kwargs
):
392 GetClientAreaOrigin(self) -> Point
394 Get the origin of the client area of the window relative to the
395 window's top left corner (the client area may be shifted because of
396 the borders, scrollbars, other decorations...)
398 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
400 def SendSizeEvent(*args
, **kwargs
):
401 """SendSizeEvent(self)"""
402 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
404 def SetMenuBar(*args
, **kwargs
):
405 """SetMenuBar(self, MenuBar menubar)"""
406 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
408 def GetMenuBar(*args
, **kwargs
):
409 """GetMenuBar(self) -> MenuBar"""
410 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
412 def ProcessCommand(*args
, **kwargs
):
413 """ProcessCommand(self, int winid) -> bool"""
414 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
416 Command
= ProcessCommand
417 def CreateStatusBar(*args
, **kwargs
):
419 CreateStatusBar(self, int number=1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
420 int winid=0, String name=StatusLineNameStr) -> StatusBar
422 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
424 def GetStatusBar(*args
, **kwargs
):
425 """GetStatusBar(self) -> StatusBar"""
426 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
428 def SetStatusBar(*args
, **kwargs
):
429 """SetStatusBar(self, StatusBar statBar)"""
430 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
432 def SetStatusText(*args
, **kwargs
):
433 """SetStatusText(self, String text, int number=0)"""
434 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
436 def SetStatusWidths(*args
, **kwargs
):
437 """SetStatusWidths(self, int widths, int widths_field)"""
438 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
440 def PushStatusText(*args
, **kwargs
):
441 """PushStatusText(self, String text, int number=0)"""
442 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
444 def PopStatusText(*args
, **kwargs
):
445 """PopStatusText(self, int number=0)"""
446 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
448 def SetStatusBarPane(*args
, **kwargs
):
449 """SetStatusBarPane(self, int n)"""
450 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
452 def GetStatusBarPane(*args
, **kwargs
):
453 """GetStatusBarPane(self) -> int"""
454 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
456 def CreateToolBar(*args
, **kwargs
):
457 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
458 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
460 def GetToolBar(*args
, **kwargs
):
461 """GetToolBar(self) -> wxToolBar"""
462 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
464 def SetToolBar(*args
, **kwargs
):
465 """SetToolBar(self, wxToolBar toolbar)"""
466 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
468 def DoGiveHelp(*args
, **kwargs
):
469 """DoGiveHelp(self, String text, bool show)"""
470 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
472 def DoMenuUpdates(*args
, **kwargs
):
473 """DoMenuUpdates(self, Menu menu=None)"""
474 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
476 def GetClassDefaultAttributes(*args
, **kwargs
):
478 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
480 Get the default attributes for this class. This is useful if
481 you want to use the same font or colour in your own control as
482 in a standard control -- which is a much better idea than hard
483 coding specific colours or fonts which might look completely out
484 of place on the users system, especially if it uses themes.
486 The variant parameter is only relevant under Mac currently and is
487 ignore under other platforms. Under Mac, it will change the size of the
488 returned font. See SetWindowVariant for more about this.
490 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
492 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
494 class FramePtr(Frame
):
495 def __init__(self
, this
):
497 if not hasattr(self
,"thisown"): self
.thisown
= 0
498 self
.__class
__ = Frame
499 _windows_
.Frame_swigregister(FramePtr
)
501 def PreFrame(*args
, **kwargs
):
502 """PreFrame() -> Frame"""
503 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
507 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
509 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
511 Get the default attributes for this class. This is useful if
512 you want to use the same font or colour in your own control as
513 in a standard control -- which is a much better idea than hard
514 coding specific colours or fonts which might look completely out
515 of place on the users system, especially if it uses themes.
517 The variant parameter is only relevant under Mac currently and is
518 ignore under other platforms. Under Mac, it will change the size of the
519 returned font. See SetWindowVariant for more about this.
521 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
523 #---------------------------------------------------------------------------
525 class Dialog(TopLevelWindow
):
527 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
528 def __init__(self
, *args
, **kwargs
):
530 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
531 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
532 String name=DialogNameStr) -> Dialog
534 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
535 self
.this
= newobj
.this
538 self
._setOORInfo
(self
)
540 def Create(*args
, **kwargs
):
542 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
543 Size size=DefaultSize, long style=DEFAULT_DIALOG_STYLE,
544 String name=DialogNameStr) -> bool
546 return _windows_
.Dialog_Create(*args
, **kwargs
)
548 def SetReturnCode(*args
, **kwargs
):
549 """SetReturnCode(self, int returnCode)"""
550 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
552 def GetReturnCode(*args
, **kwargs
):
553 """GetReturnCode(self) -> int"""
554 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
556 def CreateTextSizer(*args
, **kwargs
):
557 """CreateTextSizer(self, String message) -> Sizer"""
558 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
560 def CreateButtonSizer(*args
, **kwargs
):
561 """CreateButtonSizer(self, long flags) -> Sizer"""
562 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
564 def IsModal(*args
, **kwargs
):
565 """IsModal(self) -> bool"""
566 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
568 def ShowModal(*args
, **kwargs
):
569 """ShowModal(self) -> int"""
570 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
572 def EndModal(*args
, **kwargs
):
573 """EndModal(self, int retCode)"""
574 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
576 def GetClassDefaultAttributes(*args
, **kwargs
):
578 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
580 Get the default attributes for this class. This is useful if
581 you want to use the same font or colour in your own control as
582 in a standard control -- which is a much better idea than hard
583 coding specific colours or fonts which might look completely out
584 of place on the users system, especially if it uses themes.
586 The variant parameter is only relevant under Mac currently and is
587 ignore under other platforms. Under Mac, it will change the size of the
588 returned font. See SetWindowVariant for more about this.
590 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
592 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
594 class DialogPtr(Dialog
):
595 def __init__(self
, this
):
597 if not hasattr(self
,"thisown"): self
.thisown
= 0
598 self
.__class
__ = Dialog
599 _windows_
.Dialog_swigregister(DialogPtr
)
601 def PreDialog(*args
, **kwargs
):
602 """PreDialog() -> Dialog"""
603 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
607 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
609 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
611 Get the default attributes for this class. This is useful if
612 you want to use the same font or colour in your own control as
613 in a standard control -- which is a much better idea than hard
614 coding specific colours or fonts which might look completely out
615 of place on the users system, especially if it uses themes.
617 The variant parameter is only relevant under Mac currently and is
618 ignore under other platforms. Under Mac, it will change the size of the
619 returned font. See SetWindowVariant for more about this.
621 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
623 #---------------------------------------------------------------------------
625 class MiniFrame(Frame
):
627 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
628 def __init__(self
, *args
, **kwargs
):
630 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
631 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
632 String name=FrameNameStr) -> MiniFrame
634 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
635 self
.this
= newobj
.this
638 self
._setOORInfo
(self
)
640 def Create(*args
, **kwargs
):
642 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
643 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
644 String name=FrameNameStr) -> bool
646 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
649 class MiniFramePtr(MiniFrame
):
650 def __init__(self
, this
):
652 if not hasattr(self
,"thisown"): self
.thisown
= 0
653 self
.__class
__ = MiniFrame
654 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
656 def PreMiniFrame(*args
, **kwargs
):
657 """PreMiniFrame() -> MiniFrame"""
658 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
662 #---------------------------------------------------------------------------
664 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
665 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
666 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
667 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
668 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
669 class SplashScreenWindow(_core
.Window
):
671 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
672 def __init__(self
, *args
, **kwargs
):
674 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
675 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
677 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
678 self
.this
= newobj
.this
681 self
._setOORInfo
(self
)
683 def SetBitmap(*args
, **kwargs
):
684 """SetBitmap(self, Bitmap bitmap)"""
685 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
687 def GetBitmap(*args
, **kwargs
):
688 """GetBitmap(self) -> Bitmap"""
689 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
692 class SplashScreenWindowPtr(SplashScreenWindow
):
693 def __init__(self
, this
):
695 if not hasattr(self
,"thisown"): self
.thisown
= 0
696 self
.__class
__ = SplashScreenWindow
697 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
699 class SplashScreen(Frame
):
701 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
702 def __init__(self
, *args
, **kwargs
):
704 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
705 Window parent, int id, Point pos=DefaultPosition,
706 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
708 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
709 self
.this
= newobj
.this
712 self
._setOORInfo
(self
)
714 def GetSplashStyle(*args
, **kwargs
):
715 """GetSplashStyle(self) -> long"""
716 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
718 def GetSplashWindow(*args
, **kwargs
):
719 """GetSplashWindow(self) -> SplashScreenWindow"""
720 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
722 def GetTimeout(*args
, **kwargs
):
723 """GetTimeout(self) -> int"""
724 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
727 class SplashScreenPtr(SplashScreen
):
728 def __init__(self
, this
):
730 if not hasattr(self
,"thisown"): self
.thisown
= 0
731 self
.__class
__ = SplashScreen
732 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
734 #---------------------------------------------------------------------------
736 class StatusBar(_core
.Window
):
738 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
739 def __init__(self
, *args
, **kwargs
):
741 __init__(self, Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
742 String name=StatusLineNameStr) -> StatusBar
744 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
745 self
.this
= newobj
.this
748 self
._setOORInfo
(self
)
750 def Create(*args
, **kwargs
):
751 """Create(self, Window parent, int id, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
752 return _windows_
.StatusBar_Create(*args
, **kwargs
)
754 def SetFieldsCount(*args
, **kwargs
):
755 """SetFieldsCount(self, int number=1)"""
756 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
758 def GetFieldsCount(*args
, **kwargs
):
759 """GetFieldsCount(self) -> int"""
760 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
762 def SetStatusText(*args
, **kwargs
):
763 """SetStatusText(self, String text, int number=0)"""
764 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
766 def GetStatusText(*args
, **kwargs
):
767 """GetStatusText(self, int number=0) -> String"""
768 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
770 def PushStatusText(*args
, **kwargs
):
771 """PushStatusText(self, String text, int number=0)"""
772 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
774 def PopStatusText(*args
, **kwargs
):
775 """PopStatusText(self, int number=0)"""
776 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
778 def SetStatusWidths(*args
, **kwargs
):
779 """SetStatusWidths(self, int widths, int widths_field)"""
780 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
782 def GetFieldRect(*args
, **kwargs
):
783 """GetFieldRect(self, int i) -> Rect"""
784 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
786 def SetMinHeight(*args
, **kwargs
):
787 """SetMinHeight(self, int height)"""
788 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
790 def GetBorderX(*args
, **kwargs
):
791 """GetBorderX(self) -> int"""
792 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
794 def GetBorderY(*args
, **kwargs
):
795 """GetBorderY(self) -> int"""
796 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
798 def GetClassDefaultAttributes(*args
, **kwargs
):
800 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
802 Get the default attributes for this class. This is useful if
803 you want to use the same font or colour in your own control as
804 in a standard control -- which is a much better idea than hard
805 coding specific colours or fonts which might look completely out
806 of place on the users system, especially if it uses themes.
808 The variant parameter is only relevant under Mac currently and is
809 ignore under other platforms. Under Mac, it will change the size of the
810 returned font. See SetWindowVariant for more about this.
812 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
814 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
816 class StatusBarPtr(StatusBar
):
817 def __init__(self
, this
):
819 if not hasattr(self
,"thisown"): self
.thisown
= 0
820 self
.__class
__ = StatusBar
821 _windows_
.StatusBar_swigregister(StatusBarPtr
)
823 def PreStatusBar(*args
, **kwargs
):
824 """PreStatusBar() -> StatusBar"""
825 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
829 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
831 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
833 Get the default attributes for this class. This is useful if
834 you want to use the same font or colour in your own control as
835 in a standard control -- which is a much better idea than hard
836 coding specific colours or fonts which might look completely out
837 of place on the users system, especially if it uses themes.
839 The variant parameter is only relevant under Mac currently and is
840 ignore under other platforms. Under Mac, it will change the size of the
841 returned font. See SetWindowVariant for more about this.
843 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
845 #---------------------------------------------------------------------------
847 SP_NOBORDER
= _windows_
.SP_NOBORDER
848 SP_NOSASH
= _windows_
.SP_NOSASH
849 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
850 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
851 SP_3DSASH
= _windows_
.SP_3DSASH
852 SP_3DBORDER
= _windows_
.SP_3DBORDER
853 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
854 SP_BORDER
= _windows_
.SP_BORDER
855 SP_3D
= _windows_
.SP_3D
856 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
857 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
858 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
859 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
860 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
861 class SplitterWindow(_core
.Window
):
863 wx.SplitterWindow manages up to two subwindows or panes,
864 with an optional vertical or horizontal split which can be
865 used with the mouse or programmatically.
869 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
870 def __init__(self
, *args
, **kwargs
):
872 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
873 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
875 Constructor. Creates and shows a SplitterWindow.
877 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
878 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
879 self
.this
= newobj
.this
882 self
._setOORInfo
(self
)
884 def Create(*args
, **kwargs
):
886 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
887 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
889 Create the GUI part of the SplitterWindow for the 2-phase create.
891 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
893 def GetWindow1(*args
, **kwargs
):
895 GetWindow1(self) -> Window
897 Gets the only or left/top pane.
899 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
901 def GetWindow2(*args
, **kwargs
):
903 GetWindow2(self) -> Window
905 Gets the right/bottom pane.
907 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
909 def SetSplitMode(*args
, **kwargs
):
911 SetSplitMode(self, int mode)
913 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
914 wx.SPLIT_HORIZONTAL. This only sets the internal variable;
915 does not update the display.
917 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
919 def GetSplitMode(*args
, **kwargs
):
921 GetSplitMode(self) -> int
925 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
927 def Initialize(*args
, **kwargs
):
929 Initialize(self, Window window)
931 Initializes the splitter window to have one pane. This
932 should be called if you wish to initially view only a single
933 pane in the splitter window.
935 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
937 def SplitVertically(*args
, **kwargs
):
939 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
941 Initializes the left and right panes of the splitter window.
943 window1 The left pane.
944 window2 The right pane.
945 sashPosition The initial position of the sash. If this
946 value is positive, it specifies the size
947 of the left pane. If it is negative, it is
948 absolute value gives the size of the right
949 pane. Finally, specify 0 (default) to
950 choose the default position (half of the
953 Returns True if successful, False otherwise (the window was
956 SplitVertically should be called if you wish to initially
957 view two panes. It can also be called at any subsequent
958 time, but the application should check that the window is
959 not currently split using IsSplit.
961 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
963 def SplitHorizontally(*args
, **kwargs
):
965 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
967 Initializes the top and bottom panes of the splitter window.
969 window1 The top pane.
970 window2 The bottom pane.
971 sashPosition The initial position of the sash. If this
972 value is positive, it specifies the size
973 of the upper pane. If it is negative, it
974 is absolute value gives the size of the
975 lower pane. Finally, specify 0 (default)
976 to choose the default position (half of
977 the total window height).
979 Returns True if successful, False otherwise (the window was
982 SplitHorizontally should be called if you wish to initially
983 view two panes. It can also be called at any subsequent
984 time, but the application should check that the window is
985 not currently split using IsSplit.
987 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
989 def Unsplit(*args
, **kwargs
):
991 Unsplit(self, Window toRemove=None) -> bool
993 Unsplits the window. Pass the pane to remove, or None to
994 remove the right or bottom pane. Returns True if
995 successful, False otherwise (the window was not split).
997 This function will not actually delete the pane being
998 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
999 for the desired behaviour. By default, the pane being
1000 removed is only hidden.
1002 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1004 def ReplaceWindow(*args
, **kwargs
):
1006 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1008 This function replaces one of the windows managed by the
1009 SplitterWindow with another one. It is in general better to
1010 use it instead of calling Unsplit() and then resplitting the
1011 window back because it will provoke much less flicker. It is
1012 valid to call this function whether the splitter has two
1013 windows or only one.
1015 Both parameters should be non-None and winOld must specify
1016 one of the windows managed by the splitter. If the
1017 parameters are incorrect or the window couldn't be replaced,
1018 False is returned. Otherwise the function will return True,
1019 but please notice that it will not Destroy the replaced
1020 window and you may wish to do it yourself.
1022 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1024 def UpdateSize(*args
, **kwargs
):
1028 Causes any pending sizing of the sash and child panes to
1029 take place immediately.
1031 Such resizing normally takes place in idle time, in order to
1032 wait for layout to be completed. However, this can cause
1033 unacceptable flicker as the panes are resized after the
1034 window has been shown. To work around this, you can perform
1035 window layout (for example by sending a size event to the
1036 parent window), and then call this function, before showing
1037 the top-level window.
1039 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1041 def IsSplit(*args
, **kwargs
):
1043 IsSplit(self) -> bool
1045 Is the window split?
1047 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1049 def SetSashSize(*args
, **kwargs
):
1051 SetSashSize(self, int width)
1055 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1057 def SetBorderSize(*args
, **kwargs
):
1059 SetBorderSize(self, int width)
1061 Sets the border size
1063 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1065 def GetSashSize(*args
, **kwargs
):
1067 GetSashSize(self) -> int
1071 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1073 def GetBorderSize(*args
, **kwargs
):
1075 GetBorderSize(self) -> int
1077 Gets the border size
1079 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1081 def SetSashPosition(*args
, **kwargs
):
1083 SetSashPosition(self, int position, bool redraw=True)
1085 Sets the sash position, in pixels. If redraw is Ttrue then
1086 the panes are resized and the sash and border are redrawn.
1088 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1090 def GetSashPosition(*args
, **kwargs
):
1092 GetSashPosition(self) -> int
1094 Returns the surrent sash position.
1096 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1098 def SetMinimumPaneSize(*args
, **kwargs
):
1100 SetMinimumPaneSize(self, int min)
1102 Sets the minimum pane size in pixels.
1104 The default minimum pane size is zero, which means that
1105 either pane can be reduced to zero by dragging the sash,
1106 thus removing one of the panes. To prevent this behaviour (and
1107 veto out-of-range sash dragging), set a minimum size,
1108 for example 20 pixels. If the wx.SP_PERMIT_UNSPLIT style is
1109 used when a splitter window is created, the window may be
1110 unsplit even if minimum size is non-zero.
1112 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1114 def GetMinimumPaneSize(*args
, **kwargs
):
1116 GetMinimumPaneSize(self) -> int
1118 Gets the minimum pane size in pixels.
1120 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1122 def SashHitTest(*args
, **kwargs
):
1124 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1126 Tests for x, y over the sash
1128 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1130 def SizeWindows(*args
, **kwargs
):
1136 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1138 def SetNeedUpdating(*args
, **kwargs
):
1139 """SetNeedUpdating(self, bool needUpdating)"""
1140 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1142 def GetNeedUpdating(*args
, **kwargs
):
1143 """GetNeedUpdating(self) -> bool"""
1144 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1146 def GetClassDefaultAttributes(*args
, **kwargs
):
1148 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1150 Get the default attributes for this class. This is useful if
1151 you want to use the same font or colour in your own control as
1152 in a standard control -- which is a much better idea than hard
1153 coding specific colours or fonts which might look completely out
1154 of place on the users system, especially if it uses themes.
1156 The variant parameter is only relevant under Mac currently and is
1157 ignore under other platforms. Under Mac, it will change the size of the
1158 returned font. See SetWindowVariant for more about this.
1160 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1162 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1164 class SplitterWindowPtr(SplitterWindow
):
1165 def __init__(self
, this
):
1167 if not hasattr(self
,"thisown"): self
.thisown
= 0
1168 self
.__class
__ = SplitterWindow
1169 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1170 SplitterNameStr
= cvar
.SplitterNameStr
1172 def PreSplitterWindow(*args
, **kwargs
):
1174 PreSplitterWindow() -> SplitterWindow
1176 Precreate a SplitterWindow for 2-phase creation.
1178 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1182 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1184 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1186 Get the default attributes for this class. This is useful if
1187 you want to use the same font or colour in your own control as
1188 in a standard control -- which is a much better idea than hard
1189 coding specific colours or fonts which might look completely out
1190 of place on the users system, especially if it uses themes.
1192 The variant parameter is only relevant under Mac currently and is
1193 ignore under other platforms. Under Mac, it will change the size of the
1194 returned font. See SetWindowVariant for more about this.
1196 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1198 class SplitterEvent(_core
.NotifyEvent
):
1199 """This class represents the events generated by a splitter control."""
1201 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1202 def __init__(self
, *args
, **kwargs
):
1204 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1206 This class represents the events generated by a splitter control.
1208 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1209 self
.this
= newobj
.this
1212 def SetSashPosition(*args
, **kwargs
):
1214 SetSashPosition(self, int pos)
1216 This funciton is only meaningful during
1217 EVT_SPLITTER_SASH_POS_CHANGING and
1218 EVT_SPLITTER_SASH_POS_CHANGED events. In the case of
1219 _CHANGED events, sets the the new sash position. In the case
1220 of _CHANGING events, sets the new tracking bar position so
1221 visual feedback during dragging will represent that change
1222 that will actually take place. Set to -1 from the event
1223 handler code to prevent repositioning.
1225 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1227 def GetSashPosition(*args
, **kwargs
):
1229 GetSashPosition(self) -> int
1231 Returns the new sash position while in
1232 EVT_SPLITTER_SASH_POS_CHANGING and
1233 EVT_SPLITTER_SASH_POS_CHANGED events.
1235 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1237 def GetWindowBeingRemoved(*args
, **kwargs
):
1239 GetWindowBeingRemoved(self) -> Window
1241 Returns a pointer to the window being removed when a
1242 splitter window is unsplit.
1244 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1246 def GetX(*args
, **kwargs
):
1250 Returns the x coordinate of the double-click point in a
1251 EVT_SPLITTER_DCLICK event.
1253 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1255 def GetY(*args
, **kwargs
):
1259 Returns the y coordinate of the double-click point in a
1260 EVT_SPLITTER_DCLICK event.
1262 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1265 class SplitterEventPtr(SplitterEvent
):
1266 def __init__(self
, this
):
1268 if not hasattr(self
,"thisown"): self
.thisown
= 0
1269 self
.__class
__ = SplitterEvent
1270 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1272 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1273 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1274 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1275 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1276 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1277 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1278 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1279 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1280 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1282 #---------------------------------------------------------------------------
1284 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1285 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1286 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1287 SW_NOBORDER
= _windows_
.SW_NOBORDER
1288 SW_BORDER
= _windows_
.SW_BORDER
1289 SW_3DSASH
= _windows_
.SW_3DSASH
1290 SW_3DBORDER
= _windows_
.SW_3DBORDER
1291 SW_3D
= _windows_
.SW_3D
1292 SASH_TOP
= _windows_
.SASH_TOP
1293 SASH_RIGHT
= _windows_
.SASH_RIGHT
1294 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1295 SASH_LEFT
= _windows_
.SASH_LEFT
1296 SASH_NONE
= _windows_
.SASH_NONE
1297 class SashWindow(_core
.Window
):
1299 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1300 def __init__(self
, *args
, **kwargs
):
1302 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1303 long style=wxCLIP_CHILDREN|wxSW_3D,
1304 String name=SashNameStr) -> SashWindow
1306 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1307 self
.this
= newobj
.this
1310 self
._setOORInfo
(self
)
1312 def Create(*args
, **kwargs
):
1314 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1315 long style=wxCLIP_CHILDREN|wxSW_3D,
1316 String name=SashNameStr) -> bool
1318 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1320 def SetSashVisible(*args
, **kwargs
):
1321 """SetSashVisible(self, int edge, bool sash)"""
1322 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1324 def GetSashVisible(*args
, **kwargs
):
1325 """GetSashVisible(self, int edge) -> bool"""
1326 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1328 def SetSashBorder(*args
, **kwargs
):
1329 """SetSashBorder(self, int edge, bool border)"""
1330 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1332 def HasBorder(*args
, **kwargs
):
1333 """HasBorder(self, int edge) -> bool"""
1334 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1336 def GetEdgeMargin(*args
, **kwargs
):
1337 """GetEdgeMargin(self, int edge) -> int"""
1338 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1340 def SetDefaultBorderSize(*args
, **kwargs
):
1341 """SetDefaultBorderSize(self, int width)"""
1342 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1344 def GetDefaultBorderSize(*args
, **kwargs
):
1345 """GetDefaultBorderSize(self) -> int"""
1346 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1348 def SetExtraBorderSize(*args
, **kwargs
):
1349 """SetExtraBorderSize(self, int width)"""
1350 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1352 def GetExtraBorderSize(*args
, **kwargs
):
1353 """GetExtraBorderSize(self) -> int"""
1354 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1356 def SetMinimumSizeX(*args
, **kwargs
):
1357 """SetMinimumSizeX(self, int min)"""
1358 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1360 def SetMinimumSizeY(*args
, **kwargs
):
1361 """SetMinimumSizeY(self, int min)"""
1362 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1364 def GetMinimumSizeX(*args
, **kwargs
):
1365 """GetMinimumSizeX(self) -> int"""
1366 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1368 def GetMinimumSizeY(*args
, **kwargs
):
1369 """GetMinimumSizeY(self) -> int"""
1370 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1372 def SetMaximumSizeX(*args
, **kwargs
):
1373 """SetMaximumSizeX(self, int max)"""
1374 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1376 def SetMaximumSizeY(*args
, **kwargs
):
1377 """SetMaximumSizeY(self, int max)"""
1378 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1380 def GetMaximumSizeX(*args
, **kwargs
):
1381 """GetMaximumSizeX(self) -> int"""
1382 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1384 def GetMaximumSizeY(*args
, **kwargs
):
1385 """GetMaximumSizeY(self) -> int"""
1386 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1388 def SashHitTest(*args
, **kwargs
):
1389 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1390 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1392 def SizeWindows(*args
, **kwargs
):
1393 """SizeWindows(self)"""
1394 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1397 class SashWindowPtr(SashWindow
):
1398 def __init__(self
, this
):
1400 if not hasattr(self
,"thisown"): self
.thisown
= 0
1401 self
.__class
__ = SashWindow
1402 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1403 SashNameStr
= cvar
.SashNameStr
1404 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1406 def PreSashWindow(*args
, **kwargs
):
1407 """PreSashWindow() -> SashWindow"""
1408 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1412 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1413 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1414 class SashEvent(_core
.CommandEvent
):
1416 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1417 def __init__(self
, *args
, **kwargs
):
1418 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1419 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1420 self
.this
= newobj
.this
1423 def SetEdge(*args
, **kwargs
):
1424 """SetEdge(self, int edge)"""
1425 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1427 def GetEdge(*args
, **kwargs
):
1428 """GetEdge(self) -> int"""
1429 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1431 def SetDragRect(*args
, **kwargs
):
1432 """SetDragRect(self, Rect rect)"""
1433 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1435 def GetDragRect(*args
, **kwargs
):
1436 """GetDragRect(self) -> Rect"""
1437 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1439 def SetDragStatus(*args
, **kwargs
):
1440 """SetDragStatus(self, int status)"""
1441 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1443 def GetDragStatus(*args
, **kwargs
):
1444 """GetDragStatus(self) -> int"""
1445 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1448 class SashEventPtr(SashEvent
):
1449 def __init__(self
, this
):
1451 if not hasattr(self
,"thisown"): self
.thisown
= 0
1452 self
.__class
__ = SashEvent
1453 _windows_
.SashEvent_swigregister(SashEventPtr
)
1455 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1456 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1457 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1459 #---------------------------------------------------------------------------
1461 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1462 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1463 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1464 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1465 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1466 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1467 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1468 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1469 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1470 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1471 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1472 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1473 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1474 class QueryLayoutInfoEvent(_core
.Event
):
1476 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1477 def __init__(self
, *args
, **kwargs
):
1478 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1479 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1480 self
.this
= newobj
.this
1483 def SetRequestedLength(*args
, **kwargs
):
1484 """SetRequestedLength(self, int length)"""
1485 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1487 def GetRequestedLength(*args
, **kwargs
):
1488 """GetRequestedLength(self) -> int"""
1489 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1491 def SetFlags(*args
, **kwargs
):
1492 """SetFlags(self, int flags)"""
1493 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1495 def GetFlags(*args
, **kwargs
):
1496 """GetFlags(self) -> int"""
1497 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1499 def SetSize(*args
, **kwargs
):
1500 """SetSize(self, Size size)"""
1501 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1503 def GetSize(*args
, **kwargs
):
1504 """GetSize(self) -> Size"""
1505 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1507 def SetOrientation(*args
, **kwargs
):
1508 """SetOrientation(self, int orient)"""
1509 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1511 def GetOrientation(*args
, **kwargs
):
1512 """GetOrientation(self) -> int"""
1513 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1515 def SetAlignment(*args
, **kwargs
):
1516 """SetAlignment(self, int align)"""
1517 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1519 def GetAlignment(*args
, **kwargs
):
1520 """GetAlignment(self) -> int"""
1521 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1524 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1525 def __init__(self
, this
):
1527 if not hasattr(self
,"thisown"): self
.thisown
= 0
1528 self
.__class
__ = QueryLayoutInfoEvent
1529 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1531 class CalculateLayoutEvent(_core
.Event
):
1533 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1534 def __init__(self
, *args
, **kwargs
):
1535 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1536 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1537 self
.this
= newobj
.this
1540 def SetFlags(*args
, **kwargs
):
1541 """SetFlags(self, int flags)"""
1542 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1544 def GetFlags(*args
, **kwargs
):
1545 """GetFlags(self) -> int"""
1546 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1548 def SetRect(*args
, **kwargs
):
1549 """SetRect(self, Rect rect)"""
1550 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1552 def GetRect(*args
, **kwargs
):
1553 """GetRect(self) -> Rect"""
1554 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1557 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1558 def __init__(self
, this
):
1560 if not hasattr(self
,"thisown"): self
.thisown
= 0
1561 self
.__class
__ = CalculateLayoutEvent
1562 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1564 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1565 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1567 class SashLayoutWindow(SashWindow
):
1569 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1570 def __init__(self
, *args
, **kwargs
):
1572 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1573 long style=wxCLIP_CHILDREN|wxSW_3D,
1574 String name=SashLayoutNameStr) -> SashLayoutWindow
1576 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1577 self
.this
= newobj
.this
1580 self
._setOORInfo
(self
)
1582 def Create(*args
, **kwargs
):
1584 Create(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
1585 long style=wxCLIP_CHILDREN|wxSW_3D,
1586 String name=SashLayoutNameStr) -> bool
1588 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1590 def GetAlignment(*args
, **kwargs
):
1591 """GetAlignment(self) -> int"""
1592 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1594 def GetOrientation(*args
, **kwargs
):
1595 """GetOrientation(self) -> int"""
1596 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1598 def SetAlignment(*args
, **kwargs
):
1599 """SetAlignment(self, int alignment)"""
1600 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1602 def SetDefaultSize(*args
, **kwargs
):
1603 """SetDefaultSize(self, Size size)"""
1604 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1606 def SetOrientation(*args
, **kwargs
):
1607 """SetOrientation(self, int orientation)"""
1608 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1611 class SashLayoutWindowPtr(SashLayoutWindow
):
1612 def __init__(self
, this
):
1614 if not hasattr(self
,"thisown"): self
.thisown
= 0
1615 self
.__class
__ = SashLayoutWindow
1616 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1618 def PreSashLayoutWindow(*args
, **kwargs
):
1619 """PreSashLayoutWindow() -> SashLayoutWindow"""
1620 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1624 class LayoutAlgorithm(_core
.Object
):
1626 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1627 def __init__(self
, *args
, **kwargs
):
1628 """__init__(self) -> LayoutAlgorithm"""
1629 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1630 self
.this
= newobj
.this
1633 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1636 if self
.thisown
: destroy(self
)
1639 def LayoutMDIFrame(*args
, **kwargs
):
1640 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1641 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1643 def LayoutFrame(*args
, **kwargs
):
1644 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1645 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1647 def LayoutWindow(*args
, **kwargs
):
1648 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1649 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1652 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1653 def __init__(self
, this
):
1655 if not hasattr(self
,"thisown"): self
.thisown
= 0
1656 self
.__class
__ = LayoutAlgorithm
1657 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1659 #---------------------------------------------------------------------------
1661 class PopupWindow(_core
.Window
):
1663 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1664 def __init__(self
, *args
, **kwargs
):
1665 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1666 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1667 self
.this
= newobj
.this
1670 self
._setOORInfo
(self
)
1672 def Create(*args
, **kwargs
):
1673 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1674 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1676 def Position(*args
, **kwargs
):
1677 """Position(self, Point ptOrigin, Size size)"""
1678 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1681 class PopupWindowPtr(PopupWindow
):
1682 def __init__(self
, this
):
1684 if not hasattr(self
,"thisown"): self
.thisown
= 0
1685 self
.__class
__ = PopupWindow
1686 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1688 def PrePopupWindow(*args
, **kwargs
):
1689 """PrePopupWindow() -> PopupWindow"""
1690 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1694 #---------------------------------------------------------------------------
1696 class PopupTransientWindow(PopupWindow
):
1698 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1699 def __init__(self
, *args
, **kwargs
):
1700 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1701 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1702 self
.this
= newobj
.this
1705 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1707 def _setCallbackInfo(*args
, **kwargs
):
1708 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1709 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1711 def Popup(*args
, **kwargs
):
1712 """Popup(self, Window focus=None)"""
1713 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1715 def Dismiss(*args
, **kwargs
):
1717 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1720 class PopupTransientWindowPtr(PopupTransientWindow
):
1721 def __init__(self
, this
):
1723 if not hasattr(self
,"thisown"): self
.thisown
= 0
1724 self
.__class
__ = PopupTransientWindow
1725 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1727 def PrePopupTransientWindow(*args
, **kwargs
):
1728 """PrePopupTransientWindow() -> PopupTransientWindow"""
1729 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1733 #---------------------------------------------------------------------------
1735 class TipWindow(PopupTransientWindow
):
1737 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1738 def __init__(self
, *args
, **kwargs
):
1739 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1740 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1741 self
.this
= newobj
.this
1744 self
._setOORInfo
(self
)
1746 def SetBoundingRect(*args
, **kwargs
):
1747 """SetBoundingRect(self, Rect rectBound)"""
1748 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1750 def Close(*args
, **kwargs
):
1752 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1755 class TipWindowPtr(TipWindow
):
1756 def __init__(self
, this
):
1758 if not hasattr(self
,"thisown"): self
.thisown
= 0
1759 self
.__class
__ = TipWindow
1760 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1762 #---------------------------------------------------------------------------
1764 class VScrolledWindow(Panel
):
1766 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1767 def __init__(self
, *args
, **kwargs
):
1769 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1770 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1772 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1773 self
.this
= newobj
.this
1776 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1778 def _setCallbackInfo(*args
, **kwargs
):
1779 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1780 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1782 def Create(*args
, **kwargs
):
1784 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1785 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1787 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1789 def SetLineCount(*args
, **kwargs
):
1790 """SetLineCount(self, size_t count)"""
1791 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1793 def ScrollToLine(*args
, **kwargs
):
1794 """ScrollToLine(self, size_t line) -> bool"""
1795 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1797 def ScrollLines(*args
, **kwargs
):
1799 ScrollLines(self, int lines) -> bool
1801 If the platform and window class supports it, scrolls the window by
1802 the given number of lines down, if lines is positive, or up if lines
1803 is negative. Returns True if the window was scrolled, False if it was
1804 already on top/bottom and nothing was done.
1806 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1808 def ScrollPages(*args
, **kwargs
):
1810 ScrollPages(self, int pages) -> bool
1812 If the platform and window class supports it, scrolls the window by
1813 the given number of pages down, if pages is positive, or up if pages
1814 is negative. Returns True if the window was scrolled, False if it was
1815 already on top/bottom and nothing was done.
1817 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1819 def RefreshLine(*args
, **kwargs
):
1820 """RefreshLine(self, size_t line)"""
1821 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1823 def RefreshLines(*args
, **kwargs
):
1824 """RefreshLines(self, size_t from, size_t to)"""
1825 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1827 def HitTestXT(*args
, **kwargs
):
1829 HitTestXT(self, int x, int y) -> int
1831 Test where the given (in client coords) point lies
1833 return _windows_
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1835 def HitTest(*args
, **kwargs
):
1837 HitTest(self, Point pt) -> int
1839 Test where the given (in client coords) point lies
1841 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1843 def RefreshAll(*args
, **kwargs
):
1844 """RefreshAll(self)"""
1845 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1847 def GetLineCount(*args
, **kwargs
):
1848 """GetLineCount(self) -> size_t"""
1849 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1851 def GetFirstVisibleLine(*args
, **kwargs
):
1852 """GetFirstVisibleLine(self) -> size_t"""
1853 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1855 def GetLastVisibleLine(*args
, **kwargs
):
1856 """GetLastVisibleLine(self) -> size_t"""
1857 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1859 def IsVisible(*args
, **kwargs
):
1860 """IsVisible(self, size_t line) -> bool"""
1861 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1864 class VScrolledWindowPtr(VScrolledWindow
):
1865 def __init__(self
, this
):
1867 if not hasattr(self
,"thisown"): self
.thisown
= 0
1868 self
.__class
__ = VScrolledWindow
1869 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1871 def PreVScrolledWindow(*args
, **kwargs
):
1872 """PreVScrolledWindow() -> VScrolledWindow"""
1873 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1877 class VListBox(VScrolledWindow
):
1879 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1880 def __init__(self
, *args
, **kwargs
):
1882 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1883 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1885 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1886 self
.this
= newobj
.this
1889 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1891 def _setCallbackInfo(*args
, **kwargs
):
1892 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1893 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1895 def Create(*args
, **kwargs
):
1897 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1898 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1900 return _windows_
.VListBox_Create(*args
, **kwargs
)
1902 def GetItemCount(*args
, **kwargs
):
1903 """GetItemCount(self) -> size_t"""
1904 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1906 def HasMultipleSelection(*args
, **kwargs
):
1907 """HasMultipleSelection(self) -> bool"""
1908 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1910 def GetSelection(*args
, **kwargs
):
1911 """GetSelection(self) -> int"""
1912 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1914 def IsCurrent(*args
, **kwargs
):
1915 """IsCurrent(self, size_t item) -> bool"""
1916 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1918 def IsSelected(*args
, **kwargs
):
1919 """IsSelected(self, size_t item) -> bool"""
1920 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1922 def GetSelectedCount(*args
, **kwargs
):
1923 """GetSelectedCount(self) -> size_t"""
1924 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1926 def GetFirstSelected(*args
, **kwargs
):
1927 """GetFirstSelected(self, unsigned long cookie) -> int"""
1928 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1930 def GetNextSelected(*args
, **kwargs
):
1931 """GetNextSelected(self, unsigned long cookie) -> int"""
1932 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1934 def GetMargins(*args
, **kwargs
):
1935 """GetMargins(self) -> Point"""
1936 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1938 def GetSelectionBackground(*args
, **kwargs
):
1939 """GetSelectionBackground(self) -> Colour"""
1940 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1942 def SetItemCount(*args
, **kwargs
):
1943 """SetItemCount(self, size_t count)"""
1944 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1946 def Clear(*args
, **kwargs
):
1948 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1950 def SetSelection(*args
, **kwargs
):
1951 """SetSelection(self, int selection)"""
1952 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1954 def Select(*args
, **kwargs
):
1955 """Select(self, size_t item, bool select=True) -> bool"""
1956 return _windows_
.VListBox_Select(*args
, **kwargs
)
1958 def SelectRange(*args
, **kwargs
):
1959 """SelectRange(self, size_t from, size_t to) -> bool"""
1960 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1962 def Toggle(*args
, **kwargs
):
1963 """Toggle(self, size_t item)"""
1964 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1966 def SelectAll(*args
, **kwargs
):
1967 """SelectAll(self) -> bool"""
1968 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1970 def DeselectAll(*args
, **kwargs
):
1971 """DeselectAll(self) -> bool"""
1972 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1974 def SetMargins(*args
, **kwargs
):
1975 """SetMargins(self, Point pt)"""
1976 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1978 def SetMarginsXY(*args
, **kwargs
):
1979 """SetMarginsXY(self, int x, int y)"""
1980 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1982 def SetSelectionBackground(*args
, **kwargs
):
1983 """SetSelectionBackground(self, Colour col)"""
1984 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1987 class VListBoxPtr(VListBox
):
1988 def __init__(self
, this
):
1990 if not hasattr(self
,"thisown"): self
.thisown
= 0
1991 self
.__class
__ = VListBox
1992 _windows_
.VListBox_swigregister(VListBoxPtr
)
1993 VListBoxNameStr
= cvar
.VListBoxNameStr
1995 def PreVListBox(*args
, **kwargs
):
1996 """PreVListBox() -> VListBox"""
1997 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2001 class HtmlListBox(VListBox
):
2003 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2004 def __init__(self
, *args
, **kwargs
):
2006 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2007 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2009 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2010 self
.this
= newobj
.this
2013 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2015 def _setCallbackInfo(*args
, **kwargs
):
2016 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2017 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2019 def Create(*args
, **kwargs
):
2021 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2022 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2024 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2026 def RefreshAll(*args
, **kwargs
):
2027 """RefreshAll(self)"""
2028 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2030 def SetItemCount(*args
, **kwargs
):
2031 """SetItemCount(self, size_t count)"""
2032 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2034 def GetFileSystem(*args
, **kwargs
):
2035 """GetFileSystem(self) -> FileSystem"""
2036 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2039 class HtmlListBoxPtr(HtmlListBox
):
2040 def __init__(self
, this
):
2042 if not hasattr(self
,"thisown"): self
.thisown
= 0
2043 self
.__class
__ = HtmlListBox
2044 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2046 def PreHtmlListBox(*args
, **kwargs
):
2047 """PreHtmlListBox() -> HtmlListBox"""
2048 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2052 #---------------------------------------------------------------------------
2054 class TaskBarIcon(_core
.EvtHandler
):
2056 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2057 def __init__(self
, *args
, **kwargs
):
2058 """__init__(self) -> TaskBarIcon"""
2059 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2060 self
.this
= newobj
.this
2063 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2066 if self
.thisown
: destroy(self
)
2069 def Destroy(*args
, **kwargs
):
2073 Deletes the C++ object this Python object is a proxy for.
2075 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2077 def IsOk(*args
, **kwargs
):
2078 """IsOk(self) -> bool"""
2079 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2081 def __nonzero__(self
): return self
.IsOk()
2082 def IsIconInstalled(*args
, **kwargs
):
2083 """IsIconInstalled(self) -> bool"""
2084 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2086 def SetIcon(*args
, **kwargs
):
2087 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2088 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2090 def RemoveIcon(*args
, **kwargs
):
2091 """RemoveIcon(self) -> bool"""
2092 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2094 def PopupMenu(*args
, **kwargs
):
2095 """PopupMenu(self, Menu menu) -> bool"""
2096 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2099 class TaskBarIconPtr(TaskBarIcon
):
2100 def __init__(self
, this
):
2102 if not hasattr(self
,"thisown"): self
.thisown
= 0
2103 self
.__class
__ = TaskBarIcon
2104 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2106 class TaskBarIconEvent(_core
.Event
):
2108 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2109 def __init__(self
, *args
, **kwargs
):
2110 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2111 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2112 self
.this
= newobj
.this
2116 class TaskBarIconEventPtr(TaskBarIconEvent
):
2117 def __init__(self
, this
):
2119 if not hasattr(self
,"thisown"): self
.thisown
= 0
2120 self
.__class
__ = TaskBarIconEvent
2121 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2123 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2124 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2125 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2126 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2127 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2128 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2129 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2130 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2131 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2132 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2133 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2134 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2135 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2136 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2138 #---------------------------------------------------------------------------
2140 class ColourData(_core
.Object
):
2142 This class holds a variety of information related to the colour
2143 chooser dialog, used to transfer settings and results to and from the
2147 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2148 def __init__(self
, *args
, **kwargs
):
2150 __init__(self) -> ColourData
2152 Constructor, sets default values.
2154 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2155 self
.this
= newobj
.this
2158 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2161 if self
.thisown
: destroy(self
)
2164 def GetChooseFull(*args
, **kwargs
):
2166 GetChooseFull(self) -> bool
2168 Under Windows, determines whether the Windows colour dialog will
2169 display the full dialog with custom colour selection controls. Has no
2170 meaning under other platforms. The default value is true.
2172 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2174 def GetColour(*args
, **kwargs
):
2176 GetColour(self) -> Colour
2178 Gets the colour (pre)selected by the dialog.
2180 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2182 def GetCustomColour(*args
, **kwargs
):
2184 GetCustomColour(self, int i) -> Colour
2186 Gets the i'th custom colour associated with the colour dialog. i
2187 should be an integer between 0 and 15. The default custom colours are
2190 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2192 def SetChooseFull(*args
, **kwargs
):
2194 SetChooseFull(self, int flag)
2196 Under Windows, tells the Windows colour dialog to display the full
2197 dialog with custom colour selection controls. Under other platforms,
2198 has no effect. The default value is true.
2200 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2202 def SetColour(*args
, **kwargs
):
2204 SetColour(self, Colour colour)
2206 Sets the default colour for the colour dialog. The default colour is
2209 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2211 def SetCustomColour(*args
, **kwargs
):
2213 SetCustomColour(self, int i, Colour colour)
2215 Sets the i'th custom colour for the colour dialog. i should be an
2216 integer between 0 and 15. The default custom colours are all white.
2218 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2221 class ColourDataPtr(ColourData
):
2222 def __init__(self
, this
):
2224 if not hasattr(self
,"thisown"): self
.thisown
= 0
2225 self
.__class
__ = ColourData
2226 _windows_
.ColourData_swigregister(ColourDataPtr
)
2227 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2228 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2229 DirDialogNameStr
= cvar
.DirDialogNameStr
2230 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2231 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2232 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2234 class ColourDialog(Dialog
):
2235 """This class represents the colour chooser dialog."""
2237 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2238 def __init__(self
, *args
, **kwargs
):
2240 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2242 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2243 which will be copied to the colour dialog's internal ColourData
2246 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2247 self
.this
= newobj
.this
2250 self
._setOORInfo
(self
)
2252 def GetColourData(*args
, **kwargs
):
2254 GetColourData(self) -> ColourData
2256 Returns a reference to the `wx.ColourData` used by the dialog.
2258 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2261 class ColourDialogPtr(ColourDialog
):
2262 def __init__(self
, this
):
2264 if not hasattr(self
,"thisown"): self
.thisown
= 0
2265 self
.__class
__ = ColourDialog
2266 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2268 class DirDialog(Dialog
):
2270 wx.DirDialog allows the user to select a directory by browising the
2276 ==================== ==========================================
2277 wx.DD_NEW_DIR_BUTTON Add 'Create new directory' button and allow
2278 directory names to be editable. On Windows
2279 the new directory button is only available
2280 with recent versions of the common dialogs.
2281 ==================== ==========================================
2285 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2286 def __init__(self
, *args
, **kwargs
):
2288 __init__(self, Window parent, String message=DirSelectorPromptStr,
2289 String defaultPath=EmptyString, long style=0,
2290 Point pos=DefaultPosition, Size size=DefaultSize,
2291 String name=DirDialogNameStr) -> DirDialog
2293 Constructor. Use ShowModal method to show the dialog.
2295 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2296 self
.this
= newobj
.this
2299 self
._setOORInfo
(self
)
2301 def GetPath(*args
, **kwargs
):
2303 GetPath(self) -> String
2305 Returns the default or user-selected path.
2307 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2309 def GetMessage(*args
, **kwargs
):
2311 GetMessage(self) -> String
2313 Returns the message that will be displayed on the dialog.
2315 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2317 def GetStyle(*args
, **kwargs
):
2319 GetStyle(self) -> long
2321 Returns the dialog style.
2323 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2325 def SetMessage(*args
, **kwargs
):
2327 SetMessage(self, String message)
2329 Sets the message that will be displayed on the dialog.
2331 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2333 def SetPath(*args
, **kwargs
):
2335 SetPath(self, String path)
2337 Sets the default path.
2339 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2342 class DirDialogPtr(DirDialog
):
2343 def __init__(self
, this
):
2345 if not hasattr(self
,"thisown"): self
.thisown
= 0
2346 self
.__class
__ = DirDialog
2347 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2349 class FileDialog(Dialog
):
2351 wx.FileDialog allows the user to select one or more files from the
2354 In Windows, this is the common file selector dialog. On X based
2355 platforms a generic alternative is used. The path and filename are
2356 distinct elements of a full file pathname. If path is "", the
2357 current directory will be used. If filename is "", no default
2358 filename will be supplied. The wildcard determines what files are
2359 displayed in the file selector, and file extension supplies a type
2360 extension for the required filename.
2362 Both the X and Windows versions implement a wildcard filter. Typing a
2363 filename containing wildcards (*, ?) in the filename text item, and
2364 clicking on Ok, will result in only those files matching the pattern
2365 being displayed. The wildcard may be a specification for multiple
2366 types of file with a description for each, such as::
2368 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2373 ================== ==========================================
2374 wx.OPEN This is an open dialog.
2376 wx.SAVE This is a save dialog.
2378 wx.HIDE_READONLY For open dialog only: hide the checkbox
2379 allowing to open the file in read-only mode.
2381 wx.OVERWRITE_PROMPT For save dialog only: prompt for a confirmation
2382 if a file will be overwritten.
2384 wx.MULTIPLE For open dialog only: allows selecting multiple
2387 wx.CHANGE_DIR Change the current working directory to the
2388 directory where the file(s) chosen by the user
2390 ================== ==========================================
2394 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2395 def __init__(self
, *args
, **kwargs
):
2397 __init__(self, Window parent, String message=FileSelectorPromptStr,
2398 String defaultDir=EmptyString, String defaultFile=EmptyString,
2399 String wildcard=FileSelectorDefaultWildcardStr,
2400 long style=0, Point pos=DefaultPosition) -> FileDialog
2402 Constructor. Use ShowModal method to show the dialog.
2404 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2405 self
.this
= newobj
.this
2408 self
._setOORInfo
(self
)
2410 def SetMessage(*args
, **kwargs
):
2412 SetMessage(self, String message)
2414 Sets the message that will be displayed on the dialog.
2416 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2418 def SetPath(*args
, **kwargs
):
2420 SetPath(self, String path)
2422 Sets the path (the combined directory and filename that will be
2423 returned when the dialog is dismissed).
2425 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2427 def SetDirectory(*args
, **kwargs
):
2429 SetDirectory(self, String dir)
2431 Sets the default directory.
2433 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2435 def SetFilename(*args
, **kwargs
):
2437 SetFilename(self, String name)
2439 Sets the default filename.
2441 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2443 def SetWildcard(*args
, **kwargs
):
2445 SetWildcard(self, String wildCard)
2447 Sets the wildcard, which can contain multiple file types, for
2450 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2453 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2455 def SetStyle(*args
, **kwargs
):
2457 SetStyle(self, long style)
2459 Sets the dialog style.
2461 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2463 def SetFilterIndex(*args
, **kwargs
):
2465 SetFilterIndex(self, int filterIndex)
2467 Sets the default filter index, starting from zero.
2469 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2471 def GetMessage(*args
, **kwargs
):
2473 GetMessage(self) -> String
2475 Returns the message that will be displayed on the dialog.
2477 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2479 def GetPath(*args
, **kwargs
):
2481 GetPath(self) -> String
2483 Returns the full path (directory and filename) of the selected file.
2485 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2487 def GetDirectory(*args
, **kwargs
):
2489 GetDirectory(self) -> String
2491 Returns the default directory.
2493 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2495 def GetFilename(*args
, **kwargs
):
2497 GetFilename(self) -> String
2499 Returns the default filename.
2501 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2503 def GetWildcard(*args
, **kwargs
):
2505 GetWildcard(self) -> String
2507 Returns the file dialog wildcard.
2509 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2511 def GetStyle(*args
, **kwargs
):
2513 GetStyle(self) -> long
2515 Returns the dialog style.
2517 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2519 def GetFilterIndex(*args
, **kwargs
):
2521 GetFilterIndex(self) -> int
2523 Returns the index into the list of filters supplied, optionally, in
2524 the wildcard parameter. Before the dialog is shown, this is the index
2525 which will be used when the dialog is first displayed. After the
2526 dialog is shown, this is the index selected by the user.
2528 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2530 def GetFilenames(*args
, **kwargs
):
2532 GetFilenames(self) -> PyObject
2534 Returns a list of filenames chosen in the dialog. This function
2535 should only be used with the dialogs which have wx.MULTIPLE style, use
2536 GetFilename for the others.
2538 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2540 def GetPaths(*args
, **kwargs
):
2542 GetPaths(self) -> PyObject
2544 Fills the array paths with the full paths of the files chosen. This
2545 function should only be used with the dialogs which have wx.MULTIPLE
2546 style, use GetPath for the others.
2548 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2551 class FileDialogPtr(FileDialog
):
2552 def __init__(self
, this
):
2554 if not hasattr(self
,"thisown"): self
.thisown
= 0
2555 self
.__class
__ = FileDialog
2556 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2558 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2559 class MultiChoiceDialog(Dialog
):
2560 """A simple dialog with a multi selection listbox."""
2562 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2563 def __init__(self
, *args
, **kwargs
):
2565 __init__(Window parent, String message, String caption,
2566 List choices=[], long style=CHOICEDLG_STYLE,
2567 Point pos=DefaultPosition) -> MultiChoiceDialog
2569 Constructor. Use ShowModal method to show the dialog.
2571 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2572 self
.this
= newobj
.this
2575 self
._setOORInfo
(self
)
2577 def SetSelections(*args
, **kwargs
):
2579 SetSelections(List selections)
2581 Specify the items in the list that should be selected, using a list of
2584 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2586 def GetSelections(*args
, **kwargs
):
2588 GetSelections() -> [selections]
2590 Returns a list of integers representing the items that are selected.
2592 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2595 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2596 def __init__(self
, this
):
2598 if not hasattr(self
,"thisown"): self
.thisown
= 0
2599 self
.__class
__ = MultiChoiceDialog
2600 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2602 class SingleChoiceDialog(Dialog
):
2603 """A simple dialog with a single selection listbox."""
2605 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2606 def __init__(self
, *args
, **kwargs
):
2608 __init__(Window parent, String message, String caption,
2609 List choices=[], long style=CHOICEDLG_STYLE,
2610 Point pos=DefaultPosition) -> SingleChoiceDialog
2612 Constructor. Use ShowModal method to show the dialog.
2614 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2615 self
.this
= newobj
.this
2618 self
._setOORInfo
(self
)
2620 def GetSelection(*args
, **kwargs
):
2622 GetSelection(self) -> int
2624 Get the index of teh currently selected item.
2626 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2628 def GetStringSelection(*args
, **kwargs
):
2630 GetStringSelection(self) -> String
2632 Returns the string value of the currently selected item
2634 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2636 def SetSelection(*args
, **kwargs
):
2638 SetSelection(self, int sel)
2640 Set the current selected item to sel
2642 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2645 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2646 def __init__(self
, this
):
2648 if not hasattr(self
,"thisown"): self
.thisown
= 0
2649 self
.__class
__ = SingleChoiceDialog
2650 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2652 class TextEntryDialog(Dialog
):
2653 """A dialog with text control, [ok] and [cancel] buttons"""
2655 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2656 def __init__(self
, *args
, **kwargs
):
2658 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2659 String defaultValue=EmptyString,
2660 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2662 Constructor. Use ShowModal method to show the dialog.
2664 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2665 self
.this
= newobj
.this
2668 self
._setOORInfo
(self
)
2670 def GetValue(*args
, **kwargs
):
2672 GetValue(self) -> String
2674 Returns the text that the user has entered if the user has pressed OK,
2675 or the original value if the user has pressed Cancel.
2677 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2679 def SetValue(*args
, **kwargs
):
2681 SetValue(self, String value)
2683 Sets the default text value.
2685 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2688 class TextEntryDialogPtr(TextEntryDialog
):
2689 def __init__(self
, this
):
2691 if not hasattr(self
,"thisown"): self
.thisown
= 0
2692 self
.__class
__ = TextEntryDialog
2693 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2695 class FontData(_core
.Object
):
2697 This class holds a variety of information related to font dialogs and
2698 is used to transfer settings to and results from a `wx.FontDialog`.
2701 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2702 def __init__(self
, *args
, **kwargs
):
2704 __init__(self) -> FontData
2706 This class holds a variety of information related to font dialogs and
2707 is used to transfer settings to and results from a `wx.FontDialog`.
2709 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2710 self
.this
= newobj
.this
2713 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2716 if self
.thisown
: destroy(self
)
2719 def EnableEffects(*args
, **kwargs
):
2721 EnableEffects(self, bool enable)
2723 Enables or disables 'effects' under MS Windows only. This refers to
2724 the controls for manipulating colour, strikeout and underline
2725 properties. The default value is true.
2727 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2729 def GetAllowSymbols(*args
, **kwargs
):
2731 GetAllowSymbols(self) -> bool
2733 Under MS Windows, returns a flag determining whether symbol fonts can
2734 be selected. Has no effect on other platforms. The default value is
2737 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2739 def GetColour(*args
, **kwargs
):
2741 GetColour(self) -> Colour
2743 Gets the colour associated with the font dialog. The default value is
2746 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2748 def GetChosenFont(*args
, **kwargs
):
2750 GetChosenFont(self) -> Font
2752 Gets the font chosen by the user.
2754 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2756 def GetEnableEffects(*args
, **kwargs
):
2758 GetEnableEffects(self) -> bool
2760 Determines whether 'effects' are enabled under Windows.
2762 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2764 def GetInitialFont(*args
, **kwargs
):
2766 GetInitialFont(self) -> Font
2768 Gets the font that will be initially used by the font dialog. This
2769 should have previously been set by the application.
2771 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2773 def GetShowHelp(*args
, **kwargs
):
2775 GetShowHelp(self) -> bool
2777 Returns true if the Help button will be shown (Windows only). The
2778 default value is false.
2780 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2782 def SetAllowSymbols(*args
, **kwargs
):
2784 SetAllowSymbols(self, bool allowSymbols)
2786 Under MS Windows, determines whether symbol fonts can be selected. Has
2787 no effect on other platforms. The default value is true.
2789 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2791 def SetChosenFont(*args
, **kwargs
):
2793 SetChosenFont(self, Font font)
2795 Sets the font that will be returned to the user (normally for internal
2798 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2800 def SetColour(*args
, **kwargs
):
2802 SetColour(self, Colour colour)
2804 Sets the colour that will be used for the font foreground colour. The
2805 default colour is black.
2807 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2809 def SetInitialFont(*args
, **kwargs
):
2811 SetInitialFont(self, Font font)
2813 Sets the font that will be initially used by the font dialog.
2815 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2817 def SetRange(*args
, **kwargs
):
2819 SetRange(self, int min, int max)
2821 Sets the valid range for the font point size (Windows only). The
2822 default is 0, 0 (unrestricted range).
2824 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2826 def SetShowHelp(*args
, **kwargs
):
2828 SetShowHelp(self, bool showHelp)
2830 Determines whether the Help button will be displayed in the font
2831 dialog (Windows only). The default value is false.
2833 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2836 class FontDataPtr(FontData
):
2837 def __init__(self
, this
):
2839 if not hasattr(self
,"thisown"): self
.thisown
= 0
2840 self
.__class
__ = FontData
2841 _windows_
.FontData_swigregister(FontDataPtr
)
2843 class FontDialog(Dialog
):
2845 wx.FontDialog allows the user to select a system font and its attributes.
2851 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2852 def __init__(self
, *args
, **kwargs
):
2854 __init__(self, Window parent, FontData data) -> FontDialog
2856 Constructor. Pass a parent window and the `wx.FontData` object to be
2857 used to initialize the dialog controls. Call `ShowModal` to display
2858 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2859 results with via the `wx.FontData` returned by `GetFontData`.
2861 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2862 self
.this
= newobj
.this
2865 self
._setOORInfo
(self
)
2867 def GetFontData(*args
, **kwargs
):
2869 GetFontData(self) -> FontData
2871 Returns a reference to the internal `wx.FontData` used by the
2874 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2877 class FontDialogPtr(FontDialog
):
2878 def __init__(self
, this
):
2880 if not hasattr(self
,"thisown"): self
.thisown
= 0
2881 self
.__class
__ = FontDialog
2882 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2884 class MessageDialog(Dialog
):
2886 This class provides a simple dialog that shows a single or multi-line
2887 message, with a choice of OK, Yes, No and/or Cancel buttons.
2892 ================= =============================================
2893 wx.OK Show an OK button.
2894 wx.CANCEL Show a Cancel button.
2895 wx.YES_NO Show Yes and No buttons.
2896 wx.YES_DEFAULT Used with wxYES_NO, makes Yes button the
2897 default - which is the default behaviour.
2898 wx.NO_DEFAULT Used with wxYES_NO, makes No button the default.
2899 wx.ICON_EXCLAMATION Shows an exclamation mark icon.
2900 wx.ICON_HAND Shows an error icon.
2901 wx.ICON_ERROR Shows an error icon - the same as wxICON_HAND.
2902 wx.ICON_QUESTION Shows a question mark icon.
2903 wx.ICON_INFORMATION Shows an information (i) icon.
2904 wx.STAY_ON_TOP The message box stays on top of all other
2905 window, even those of the other applications
2907 ================= =============================================
2911 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2912 def __init__(self
, *args
, **kwargs
):
2914 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2915 long style=wxOK|wxCANCEL|wxCENTRE,
2916 Point pos=DefaultPosition) -> MessageDialog
2918 Constructor, use `ShowModal` to display the dialog.
2920 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2921 self
.this
= newobj
.this
2924 self
._setOORInfo
(self
)
2927 class MessageDialogPtr(MessageDialog
):
2928 def __init__(self
, this
):
2930 if not hasattr(self
,"thisown"): self
.thisown
= 0
2931 self
.__class
__ = MessageDialog
2932 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2934 class ProgressDialog(Frame
):
2936 A dialog that shows a short message and a progress bar. Optionally, it
2937 can display an ABORT button.
2941 ================= =============================================
2942 wx.PD_APP_MODAL Make the progress dialog modal. If this flag is
2943 not given, it is only "locally" modal -
2944 that is the input to the parent window is
2945 disabled, but not to the other ones.
2947 wx.PD_AUTO_HIDE Causes the progress dialog to disappear from
2948 screen as soon as the maximum value of the
2949 progress meter has been reached.
2951 wx.PD_CAN_ABORT This flag tells the dialog that it should have
2952 a "Cancel" button which the user may press. If
2953 this happens, the next call to Update() will
2956 wx.PD_ELAPSED_TIME This flag tells the dialog that it should show
2957 elapsed time (since creating the dialog).
2959 wx.PD_ESTIMATED_TIME This flag tells the dialog that it should show
2962 wx.PD_REMAINING_TIME This flag tells the dialog that it should show
2964 ================= =============================================
2968 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2969 def __init__(self
, *args
, **kwargs
):
2971 __init__(self, String title, String message, int maximum=100, Window parent=None,
2972 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2974 Constructor. Creates the dialog, displays it and disables user input
2975 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2978 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2979 self
.this
= newobj
.this
2982 self
._setOORInfo
(self
)
2984 def Update(*args
, **kwargs
):
2986 Update(self, int value, String newmsg=EmptyString) -> bool
2988 Updates the dialog, setting the progress bar to the new value and, if
2989 given changes the message above it. Returns true unless the Cancel
2990 button has been pressed.
2992 If false is returned, the application can either immediately destroy
2993 the dialog or ask the user for the confirmation and if the abort is
2994 not confirmed the dialog may be resumed with Resume function.
2996 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2998 def Resume(*args
, **kwargs
):
3002 Can be used to continue with the dialog, after the user had chosen to
3005 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
3008 class ProgressDialogPtr(ProgressDialog
):
3009 def __init__(self
, this
):
3011 if not hasattr(self
,"thisown"): self
.thisown
= 0
3012 self
.__class
__ = ProgressDialog
3013 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
3015 FR_DOWN
= _windows_
.FR_DOWN
3016 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
3017 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
3018 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
3019 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
3020 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
3021 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
3022 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
3023 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
3024 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
3025 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
3026 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
3027 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
3028 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
3029 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
3030 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
3031 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
3033 # For backwards compatibility. Should they be removed?
3034 EVT_COMMAND_FIND
= EVT_FIND
3035 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
3036 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
3037 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
3038 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
3040 class FindDialogEvent(_core
.CommandEvent
):
3041 """Events for the FindReplaceDialog"""
3043 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3044 def __init__(self
, *args
, **kwargs
):
3046 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
3048 Events for the FindReplaceDialog
3050 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
3051 self
.this
= newobj
.this
3054 def GetFlags(*args
, **kwargs
):
3056 GetFlags(self) -> int
3058 Get the currently selected flags: this is the combination of
3059 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
3061 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
3063 def GetFindString(*args
, **kwargs
):
3065 GetFindString(self) -> String
3067 Return the string to find (never empty).
3069 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
3071 def GetReplaceString(*args
, **kwargs
):
3073 GetReplaceString(self) -> String
3075 Return the string to replace the search string with (only for replace
3076 and replace all events).
3078 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
3080 def GetDialog(*args
, **kwargs
):
3082 GetDialog(self) -> FindReplaceDialog
3084 Return the pointer to the dialog which generated this event.
3086 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
3088 def SetFlags(*args
, **kwargs
):
3089 """SetFlags(self, int flags)"""
3090 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3092 def SetFindString(*args
, **kwargs
):
3093 """SetFindString(self, String str)"""
3094 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3096 def SetReplaceString(*args
, **kwargs
):
3097 """SetReplaceString(self, String str)"""
3098 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3101 class FindDialogEventPtr(FindDialogEvent
):
3102 def __init__(self
, this
):
3104 if not hasattr(self
,"thisown"): self
.thisown
= 0
3105 self
.__class
__ = FindDialogEvent
3106 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3108 class FindReplaceData(_core
.Object
):
3110 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3111 to initialize the dialog with the default values and will keep the
3112 last values from the dialog when it is closed. It is also updated each
3113 time a `wx.FindDialogEvent` is generated so instead of using the
3114 `wx.FindDialogEvent` methods you can also directly query this object.
3116 Note that all SetXXX() methods may only be called before showing the
3117 dialog and calling them has no effect later.
3121 ================ ===============================================
3122 wx.FR_DOWN Downward search/replace selected (otherwise,
3125 wx.FR_WHOLEWORD Whole word search/replace selected
3127 wx.FR_MATCHCASE Case sensitive search/replace selected
3128 (otherwise, case insensitive)
3129 ================ ===============================================
3133 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3134 def __init__(self
, *args
, **kwargs
):
3136 __init__(self, int flags=0) -> FindReplaceData
3138 Constuctor initializes the flags to default value (0).
3140 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3141 self
.this
= newobj
.this
3144 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3147 if self
.thisown
: destroy(self
)
3150 def GetFindString(*args
, **kwargs
):
3152 GetFindString(self) -> String
3154 Get the string to find.
3156 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3158 def GetReplaceString(*args
, **kwargs
):
3160 GetReplaceString(self) -> String
3162 Get the replacement string.
3164 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3166 def GetFlags(*args
, **kwargs
):
3168 GetFlags(self) -> int
3170 Get the combination of flag values.
3172 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3174 def SetFlags(*args
, **kwargs
):
3176 SetFlags(self, int flags)
3178 Set the flags to use to initialize the controls of the dialog.
3180 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3182 def SetFindString(*args
, **kwargs
):
3184 SetFindString(self, String str)
3186 Set the string to find (used as initial value by the dialog).
3188 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3190 def SetReplaceString(*args
, **kwargs
):
3192 SetReplaceString(self, String str)
3194 Set the replacement string (used as initial value by the dialog).
3196 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3199 class FindReplaceDataPtr(FindReplaceData
):
3200 def __init__(self
, this
):
3202 if not hasattr(self
,"thisown"): self
.thisown
= 0
3203 self
.__class
__ = FindReplaceData
3204 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3206 class FindReplaceDialog(Dialog
):
3208 wx.FindReplaceDialog is a standard modeless dialog which is used to
3209 allow the user to search for some text (and possibly replace it with
3210 something else). The actual searching is supposed to be done in the
3211 owner window which is the parent of this dialog. Note that it means
3212 that unlike for the other standard dialogs this one must have a parent
3213 window. Also note that there is no way to use this dialog in a modal
3214 way; it is always, by design and implementation, modeless.
3220 ===================== =========================================
3221 wx.FR_REPLACEDIALOG replace dialog (otherwise find dialog)
3223 wx.FR_NOUPDOWN don't allow changing the search direction
3225 wx.FR_NOMATCHCASE don't allow case sensitive searching
3227 wx.FR_NOWHOLEWORD don't allow whole word searching
3228 ===================== =========================================
3232 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3233 def __init__(self
, *args
, **kwargs
):
3235 __init__(self, Window parent, FindReplaceData data, String title,
3236 int style=0) -> FindReplaceDialog
3238 Create a FindReplaceDialog. The parent and data parameters must be
3239 non-None. Use Show to display the dialog.
3241 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3242 self
.this
= newobj
.this
3245 self
._setOORInfo
(self
)
3247 def Create(*args
, **kwargs
):
3249 Create(self, Window parent, FindReplaceData data, String title,
3250 int style=0) -> bool
3252 Create the dialog, for 2-phase create.
3254 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3256 def GetData(*args
, **kwargs
):
3258 GetData(self) -> FindReplaceData
3260 Get the FindReplaceData object used by this dialog.
3262 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3264 def SetData(*args
, **kwargs
):
3266 SetData(self, FindReplaceData data)
3268 Set the FindReplaceData object used by this dialog.
3270 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3273 class FindReplaceDialogPtr(FindReplaceDialog
):
3274 def __init__(self
, this
):
3276 if not hasattr(self
,"thisown"): self
.thisown
= 0
3277 self
.__class
__ = FindReplaceDialog
3278 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3280 def PreFindReplaceDialog(*args
, **kwargs
):
3282 PreFindReplaceDialog() -> FindReplaceDialog
3284 Precreate a FindReplaceDialog for 2-phase creation
3286 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3290 #---------------------------------------------------------------------------
3292 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3293 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3294 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3295 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3296 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3297 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3298 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3299 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3300 class MDIParentFrame(Frame
):
3302 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3303 def __init__(self
, *args
, **kwargs
):
3305 __init__(self, Window parent, int id, String title, Point pos=DefaultPosition,
3306 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3307 String name=FrameNameStr) -> MDIParentFrame
3309 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3310 self
.this
= newobj
.this
3313 self
._setOORInfo
(self
)
3315 def Create(*args
, **kwargs
):
3317 Create(self, Window parent, int id, String title, Point pos=DefaultPosition,
3318 Size size=DefaultSize, long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3319 String name=FrameNameStr) -> bool
3321 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3323 def ActivateNext(*args
, **kwargs
):
3324 """ActivateNext(self)"""
3325 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3327 def ActivatePrevious(*args
, **kwargs
):
3328 """ActivatePrevious(self)"""
3329 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3331 def ArrangeIcons(*args
, **kwargs
):
3332 """ArrangeIcons(self)"""
3333 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3335 def Cascade(*args
, **kwargs
):
3337 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3339 def GetActiveChild(*args
, **kwargs
):
3340 """GetActiveChild(self) -> MDIChildFrame"""
3341 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3343 def GetClientWindow(*args
, **kwargs
):
3344 """GetClientWindow(self) -> MDIClientWindow"""
3345 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3347 def GetToolBar(*args
, **kwargs
):
3348 """GetToolBar(self) -> Window"""
3349 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3351 def Tile(*args
, **kwargs
):
3353 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3356 class MDIParentFramePtr(MDIParentFrame
):
3357 def __init__(self
, this
):
3359 if not hasattr(self
,"thisown"): self
.thisown
= 0
3360 self
.__class
__ = MDIParentFrame
3361 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3363 def PreMDIParentFrame(*args
, **kwargs
):
3364 """PreMDIParentFrame() -> MDIParentFrame"""
3365 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3369 class MDIChildFrame(Frame
):
3371 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3372 def __init__(self
, *args
, **kwargs
):
3374 __init__(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3375 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3376 String name=FrameNameStr) -> MDIChildFrame
3378 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3379 self
.this
= newobj
.this
3382 self
._setOORInfo
(self
)
3384 def Create(*args
, **kwargs
):
3386 Create(self, MDIParentFrame parent, int id, String title, Point pos=DefaultPosition,
3387 Size size=DefaultSize, long style=DEFAULT_FRAME_STYLE,
3388 String name=FrameNameStr) -> bool
3390 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3392 def Activate(*args
, **kwargs
):
3393 """Activate(self)"""
3394 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3396 def Maximize(*args
, **kwargs
):
3397 """Maximize(self, bool maximize)"""
3398 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3400 def Restore(*args
, **kwargs
):
3402 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3405 class MDIChildFramePtr(MDIChildFrame
):
3406 def __init__(self
, this
):
3408 if not hasattr(self
,"thisown"): self
.thisown
= 0
3409 self
.__class
__ = MDIChildFrame
3410 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3412 def PreMDIChildFrame(*args
, **kwargs
):
3413 """PreMDIChildFrame() -> MDIChildFrame"""
3414 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3418 class MDIClientWindow(_core
.Window
):
3420 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3421 def __init__(self
, *args
, **kwargs
):
3422 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3423 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3424 self
.this
= newobj
.this
3427 self
._setOORInfo
(self
)
3429 def Create(*args
, **kwargs
):
3430 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3431 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3434 class MDIClientWindowPtr(MDIClientWindow
):
3435 def __init__(self
, this
):
3437 if not hasattr(self
,"thisown"): self
.thisown
= 0
3438 self
.__class
__ = MDIClientWindow
3439 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3441 def PreMDIClientWindow(*args
, **kwargs
):
3442 """PreMDIClientWindow() -> MDIClientWindow"""
3443 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3447 #---------------------------------------------------------------------------
3449 class PyWindow(_core
.Window
):
3451 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3452 def __init__(self
, *args
, **kwargs
):
3454 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3455 long style=0, String name=PanelNameStr) -> PyWindow
3457 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3458 self
.this
= newobj
.this
3461 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3463 def _setCallbackInfo(*args
, **kwargs
):
3464 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3465 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3467 def base_DoMoveWindow(*args
, **kwargs
):
3468 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3469 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3471 def base_DoSetSize(*args
, **kwargs
):
3472 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3473 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3475 def base_DoSetClientSize(*args
, **kwargs
):
3476 """base_DoSetClientSize(self, int width, int height)"""
3477 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3479 def base_DoSetVirtualSize(*args
, **kwargs
):
3480 """base_DoSetVirtualSize(self, int x, int y)"""
3481 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3483 def base_DoGetSize(*args
, **kwargs
):
3484 """base_DoGetSize() -> (width, height)"""
3485 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3487 def base_DoGetClientSize(*args
, **kwargs
):
3488 """base_DoGetClientSize() -> (width, height)"""
3489 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3491 def base_DoGetPosition(*args
, **kwargs
):
3492 """base_DoGetPosition() -> (x,y)"""
3493 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3495 def base_DoGetVirtualSize(*args
, **kwargs
):
3496 """base_DoGetVirtualSize(self) -> Size"""
3497 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3499 def base_DoGetBestSize(*args
, **kwargs
):
3500 """base_DoGetBestSize(self) -> Size"""
3501 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3503 def base_InitDialog(*args
, **kwargs
):
3504 """base_InitDialog(self)"""
3505 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3507 def base_TransferDataToWindow(*args
, **kwargs
):
3508 """base_TransferDataToWindow(self) -> bool"""
3509 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3511 def base_TransferDataFromWindow(*args
, **kwargs
):
3512 """base_TransferDataFromWindow(self) -> bool"""
3513 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3515 def base_Validate(*args
, **kwargs
):
3516 """base_Validate(self) -> bool"""
3517 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3519 def base_AcceptsFocus(*args
, **kwargs
):
3520 """base_AcceptsFocus(self) -> bool"""
3521 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3523 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3524 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3525 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3527 def base_GetMaxSize(*args
, **kwargs
):
3528 """base_GetMaxSize(self) -> Size"""
3529 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3531 def base_AddChild(*args
, **kwargs
):
3532 """base_AddChild(self, Window child)"""
3533 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3535 def base_RemoveChild(*args
, **kwargs
):
3536 """base_RemoveChild(self, Window child)"""
3537 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3539 def base_ShouldInheritColours(*args
, **kwargs
):
3540 """base_ShouldInheritColours(self) -> bool"""
3541 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3543 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3544 """base_ApplyParentThemeBackground(self, Colour c)"""
3545 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3548 class PyWindowPtr(PyWindow
):
3549 def __init__(self
, this
):
3551 if not hasattr(self
,"thisown"): self
.thisown
= 0
3552 self
.__class
__ = PyWindow
3553 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3555 def PrePyWindow(*args
, **kwargs
):
3556 """PrePyWindow() -> PyWindow"""
3557 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3561 class PyPanel(Panel
):
3563 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3564 def __init__(self
, *args
, **kwargs
):
3566 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3567 long style=0, String name=PanelNameStr) -> PyPanel
3569 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3570 self
.this
= newobj
.this
3573 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3575 def _setCallbackInfo(*args
, **kwargs
):
3576 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3577 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3579 def base_DoMoveWindow(*args
, **kwargs
):
3580 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3581 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3583 def base_DoSetSize(*args
, **kwargs
):
3584 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3585 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3587 def base_DoSetClientSize(*args
, **kwargs
):
3588 """base_DoSetClientSize(self, int width, int height)"""
3589 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3591 def base_DoSetVirtualSize(*args
, **kwargs
):
3592 """base_DoSetVirtualSize(self, int x, int y)"""
3593 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3595 def base_DoGetSize(*args
, **kwargs
):
3596 """base_DoGetSize() -> (width, height)"""
3597 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3599 def base_DoGetClientSize(*args
, **kwargs
):
3600 """base_DoGetClientSize() -> (width, height)"""
3601 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3603 def base_DoGetPosition(*args
, **kwargs
):
3604 """base_DoGetPosition() -> (x,y)"""
3605 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3607 def base_DoGetVirtualSize(*args
, **kwargs
):
3608 """base_DoGetVirtualSize(self) -> Size"""
3609 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3611 def base_DoGetBestSize(*args
, **kwargs
):
3612 """base_DoGetBestSize(self) -> Size"""
3613 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3615 def base_InitDialog(*args
, **kwargs
):
3616 """base_InitDialog(self)"""
3617 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3619 def base_TransferDataToWindow(*args
, **kwargs
):
3620 """base_TransferDataToWindow(self) -> bool"""
3621 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3623 def base_TransferDataFromWindow(*args
, **kwargs
):
3624 """base_TransferDataFromWindow(self) -> bool"""
3625 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3627 def base_Validate(*args
, **kwargs
):
3628 """base_Validate(self) -> bool"""
3629 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3631 def base_AcceptsFocus(*args
, **kwargs
):
3632 """base_AcceptsFocus(self) -> bool"""
3633 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3635 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3636 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3637 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3639 def base_GetMaxSize(*args
, **kwargs
):
3640 """base_GetMaxSize(self) -> Size"""
3641 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3643 def base_AddChild(*args
, **kwargs
):
3644 """base_AddChild(self, Window child)"""
3645 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3647 def base_RemoveChild(*args
, **kwargs
):
3648 """base_RemoveChild(self, Window child)"""
3649 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3651 def base_ShouldInheritColours(*args
, **kwargs
):
3652 """base_ShouldInheritColours(self) -> bool"""
3653 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3655 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3656 """base_ApplyParentThemeBackground(self, Colour c)"""
3657 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3660 class PyPanelPtr(PyPanel
):
3661 def __init__(self
, this
):
3663 if not hasattr(self
,"thisown"): self
.thisown
= 0
3664 self
.__class
__ = PyPanel
3665 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3667 def PrePyPanel(*args
, **kwargs
):
3668 """PrePyPanel() -> PyPanel"""
3669 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3673 class PyScrolledWindow(ScrolledWindow
):
3675 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3676 def __init__(self
, *args
, **kwargs
):
3678 __init__(self, Window parent, int id, Point pos=DefaultPosition, Size size=DefaultSize,
3679 long style=0, String name=PanelNameStr) -> PyScrolledWindow
3681 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3682 self
.this
= newobj
.this
3685 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3687 def _setCallbackInfo(*args
, **kwargs
):
3688 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3689 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3691 def base_DoMoveWindow(*args
, **kwargs
):
3692 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3693 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3695 def base_DoSetSize(*args
, **kwargs
):
3696 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3697 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3699 def base_DoSetClientSize(*args
, **kwargs
):
3700 """base_DoSetClientSize(self, int width, int height)"""
3701 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3703 def base_DoSetVirtualSize(*args
, **kwargs
):
3704 """base_DoSetVirtualSize(self, int x, int y)"""
3705 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3707 def base_DoGetSize(*args
, **kwargs
):
3708 """base_DoGetSize() -> (width, height)"""
3709 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3711 def base_DoGetClientSize(*args
, **kwargs
):
3712 """base_DoGetClientSize() -> (width, height)"""
3713 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3715 def base_DoGetPosition(*args
, **kwargs
):
3716 """base_DoGetPosition() -> (x,y)"""
3717 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3719 def base_DoGetVirtualSize(*args
, **kwargs
):
3720 """base_DoGetVirtualSize(self) -> Size"""
3721 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3723 def base_DoGetBestSize(*args
, **kwargs
):
3724 """base_DoGetBestSize(self) -> Size"""
3725 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3727 def base_InitDialog(*args
, **kwargs
):
3728 """base_InitDialog(self)"""
3729 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3731 def base_TransferDataToWindow(*args
, **kwargs
):
3732 """base_TransferDataToWindow(self) -> bool"""
3733 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3735 def base_TransferDataFromWindow(*args
, **kwargs
):
3736 """base_TransferDataFromWindow(self) -> bool"""
3737 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3739 def base_Validate(*args
, **kwargs
):
3740 """base_Validate(self) -> bool"""
3741 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3743 def base_AcceptsFocus(*args
, **kwargs
):
3744 """base_AcceptsFocus(self) -> bool"""
3745 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3747 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3748 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3749 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3751 def base_GetMaxSize(*args
, **kwargs
):
3752 """base_GetMaxSize(self) -> Size"""
3753 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3755 def base_AddChild(*args
, **kwargs
):
3756 """base_AddChild(self, Window child)"""
3757 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3759 def base_RemoveChild(*args
, **kwargs
):
3760 """base_RemoveChild(self, Window child)"""
3761 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3763 def base_ShouldInheritColours(*args
, **kwargs
):
3764 """base_ShouldInheritColours(self) -> bool"""
3765 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3767 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3768 """base_ApplyParentThemeBackground(self, Colour c)"""
3769 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3772 class PyScrolledWindowPtr(PyScrolledWindow
):
3773 def __init__(self
, this
):
3775 if not hasattr(self
,"thisown"): self
.thisown
= 0
3776 self
.__class
__ = PyScrolledWindow
3777 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3779 def PrePyScrolledWindow(*args
, **kwargs
):
3780 """PrePyScrolledWindow() -> PyScrolledWindow"""
3781 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3785 #---------------------------------------------------------------------------
3787 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3788 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3789 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3790 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3791 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3792 class PrintData(_core
.Object
):
3794 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3795 def __init__(self
, *args
, **kwargs
):
3796 """__init__(self) -> PrintData"""
3797 newobj
= _windows_
.new_PrintData(*args
, **kwargs
)
3798 self
.this
= newobj
.this
3801 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3804 if self
.thisown
: destroy(self
)
3807 def GetNoCopies(*args
, **kwargs
):
3808 """GetNoCopies(self) -> int"""
3809 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3811 def GetCollate(*args
, **kwargs
):
3812 """GetCollate(self) -> bool"""
3813 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3815 def GetOrientation(*args
, **kwargs
):
3816 """GetOrientation(self) -> int"""
3817 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3819 def Ok(*args
, **kwargs
):
3820 """Ok(self) -> bool"""
3821 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3823 def GetPrinterName(*args
, **kwargs
):
3824 """GetPrinterName(self) -> String"""
3825 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3827 def GetColour(*args
, **kwargs
):
3828 """GetColour(self) -> bool"""
3829 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3831 def GetDuplex(*args
, **kwargs
):
3832 """GetDuplex(self) -> int"""
3833 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3835 def GetPaperId(*args
, **kwargs
):
3836 """GetPaperId(self) -> int"""
3837 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3839 def GetPaperSize(*args
, **kwargs
):
3840 """GetPaperSize(self) -> Size"""
3841 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3843 def GetQuality(*args
, **kwargs
):
3844 """GetQuality(self) -> int"""
3845 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3847 def SetNoCopies(*args
, **kwargs
):
3848 """SetNoCopies(self, int v)"""
3849 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3851 def SetCollate(*args
, **kwargs
):
3852 """SetCollate(self, bool flag)"""
3853 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3855 def SetOrientation(*args
, **kwargs
):
3856 """SetOrientation(self, int orient)"""
3857 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3859 def SetPrinterName(*args
, **kwargs
):
3860 """SetPrinterName(self, String name)"""
3861 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3863 def SetColour(*args
, **kwargs
):
3864 """SetColour(self, bool colour)"""
3865 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3867 def SetDuplex(*args
, **kwargs
):
3868 """SetDuplex(self, int duplex)"""
3869 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3871 def SetPaperId(*args
, **kwargs
):
3872 """SetPaperId(self, int sizeId)"""
3873 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3875 def SetPaperSize(*args
, **kwargs
):
3876 """SetPaperSize(self, Size sz)"""
3877 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3879 def SetQuality(*args
, **kwargs
):
3880 """SetQuality(self, int quality)"""
3881 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3883 def GetPrinterCommand(*args
, **kwargs
):
3884 """GetPrinterCommand(self) -> String"""
3885 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3887 def GetPrinterOptions(*args
, **kwargs
):
3888 """GetPrinterOptions(self) -> String"""
3889 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3891 def GetPreviewCommand(*args
, **kwargs
):
3892 """GetPreviewCommand(self) -> String"""
3893 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3895 def GetFilename(*args
, **kwargs
):
3896 """GetFilename(self) -> String"""
3897 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3899 def GetFontMetricPath(*args
, **kwargs
):
3900 """GetFontMetricPath(self) -> String"""
3901 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3903 def GetPrinterScaleX(*args
, **kwargs
):
3904 """GetPrinterScaleX(self) -> double"""
3905 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3907 def GetPrinterScaleY(*args
, **kwargs
):
3908 """GetPrinterScaleY(self) -> double"""
3909 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3911 def GetPrinterTranslateX(*args
, **kwargs
):
3912 """GetPrinterTranslateX(self) -> long"""
3913 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3915 def GetPrinterTranslateY(*args
, **kwargs
):
3916 """GetPrinterTranslateY(self) -> long"""
3917 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3919 def GetPrintMode(*args
, **kwargs
):
3920 """GetPrintMode(self) -> int"""
3921 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3923 def SetPrinterCommand(*args
, **kwargs
):
3924 """SetPrinterCommand(self, String command)"""
3925 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3927 def SetPrinterOptions(*args
, **kwargs
):
3928 """SetPrinterOptions(self, String options)"""
3929 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3931 def SetPreviewCommand(*args
, **kwargs
):
3932 """SetPreviewCommand(self, String command)"""
3933 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3935 def SetFilename(*args
, **kwargs
):
3936 """SetFilename(self, String filename)"""
3937 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3939 def SetFontMetricPath(*args
, **kwargs
):
3940 """SetFontMetricPath(self, String path)"""
3941 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3943 def SetPrinterScaleX(*args
, **kwargs
):
3944 """SetPrinterScaleX(self, double x)"""
3945 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3947 def SetPrinterScaleY(*args
, **kwargs
):
3948 """SetPrinterScaleY(self, double y)"""
3949 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3951 def SetPrinterScaling(*args
, **kwargs
):
3952 """SetPrinterScaling(self, double x, double y)"""
3953 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3955 def SetPrinterTranslateX(*args
, **kwargs
):
3956 """SetPrinterTranslateX(self, long x)"""
3957 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3959 def SetPrinterTranslateY(*args
, **kwargs
):
3960 """SetPrinterTranslateY(self, long y)"""
3961 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3963 def SetPrinterTranslation(*args
, **kwargs
):
3964 """SetPrinterTranslation(self, long x, long y)"""
3965 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3967 def SetPrintMode(*args
, **kwargs
):
3968 """SetPrintMode(self, int printMode)"""
3969 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3971 def GetOutputStream(*args
, **kwargs
):
3972 """GetOutputStream(self) -> OutputStream"""
3973 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3975 def SetOutputStream(*args
, **kwargs
):
3976 """SetOutputStream(self, OutputStream outputstream)"""
3977 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3979 def __nonzero__(self
): return self
.Ok()
3981 class PrintDataPtr(PrintData
):
3982 def __init__(self
, this
):
3984 if not hasattr(self
,"thisown"): self
.thisown
= 0
3985 self
.__class
__ = PrintData
3986 _windows_
.PrintData_swigregister(PrintDataPtr
)
3987 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3988 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3990 class PageSetupDialogData(_core
.Object
):
3992 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3993 def __init__(self
, *args
, **kwargs
):
3994 """__init__(self) -> PageSetupDialogData"""
3995 newobj
= _windows_
.new_PageSetupDialogData(*args
, **kwargs
)
3996 self
.this
= newobj
.this
3999 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
4002 if self
.thisown
: destroy(self
)
4005 def EnableHelp(*args
, **kwargs
):
4006 """EnableHelp(self, bool flag)"""
4007 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
4009 def EnableMargins(*args
, **kwargs
):
4010 """EnableMargins(self, bool flag)"""
4011 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
4013 def EnableOrientation(*args
, **kwargs
):
4014 """EnableOrientation(self, bool flag)"""
4015 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
4017 def EnablePaper(*args
, **kwargs
):
4018 """EnablePaper(self, bool flag)"""
4019 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
4021 def EnablePrinter(*args
, **kwargs
):
4022 """EnablePrinter(self, bool flag)"""
4023 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
4025 def GetDefaultMinMargins(*args
, **kwargs
):
4026 """GetDefaultMinMargins(self) -> bool"""
4027 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
4029 def GetEnableMargins(*args
, **kwargs
):
4030 """GetEnableMargins(self) -> bool"""
4031 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
4033 def GetEnableOrientation(*args
, **kwargs
):
4034 """GetEnableOrientation(self) -> bool"""
4035 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
4037 def GetEnablePaper(*args
, **kwargs
):
4038 """GetEnablePaper(self) -> bool"""
4039 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
4041 def GetEnablePrinter(*args
, **kwargs
):
4042 """GetEnablePrinter(self) -> bool"""
4043 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
4045 def GetEnableHelp(*args
, **kwargs
):
4046 """GetEnableHelp(self) -> bool"""
4047 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
4049 def GetDefaultInfo(*args
, **kwargs
):
4050 """GetDefaultInfo(self) -> bool"""
4051 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
4053 def GetMarginTopLeft(*args
, **kwargs
):
4054 """GetMarginTopLeft(self) -> Point"""
4055 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4057 def GetMarginBottomRight(*args
, **kwargs
):
4058 """GetMarginBottomRight(self) -> Point"""
4059 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4061 def GetMinMarginTopLeft(*args
, **kwargs
):
4062 """GetMinMarginTopLeft(self) -> Point"""
4063 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4065 def GetMinMarginBottomRight(*args
, **kwargs
):
4066 """GetMinMarginBottomRight(self) -> Point"""
4067 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4069 def GetPaperId(*args
, **kwargs
):
4070 """GetPaperId(self) -> int"""
4071 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4073 def GetPaperSize(*args
, **kwargs
):
4074 """GetPaperSize(self) -> Size"""
4075 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4077 def GetPrintData(*args
, **kwargs
):
4078 """GetPrintData(self) -> PrintData"""
4079 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4081 def Ok(*args
, **kwargs
):
4082 """Ok(self) -> bool"""
4083 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4085 def SetDefaultInfo(*args
, **kwargs
):
4086 """SetDefaultInfo(self, bool flag)"""
4087 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4089 def SetDefaultMinMargins(*args
, **kwargs
):
4090 """SetDefaultMinMargins(self, bool flag)"""
4091 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4093 def SetMarginTopLeft(*args
, **kwargs
):
4094 """SetMarginTopLeft(self, Point pt)"""
4095 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4097 def SetMarginBottomRight(*args
, **kwargs
):
4098 """SetMarginBottomRight(self, Point pt)"""
4099 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4101 def SetMinMarginTopLeft(*args
, **kwargs
):
4102 """SetMinMarginTopLeft(self, Point pt)"""
4103 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4105 def SetMinMarginBottomRight(*args
, **kwargs
):
4106 """SetMinMarginBottomRight(self, Point pt)"""
4107 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4109 def SetPaperId(*args
, **kwargs
):
4110 """SetPaperId(self, int id)"""
4111 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4113 def SetPaperSize(*args
, **kwargs
):
4114 """SetPaperSize(self, Size size)"""
4115 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4117 def SetPrintData(*args
, **kwargs
):
4118 """SetPrintData(self, PrintData printData)"""
4119 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4121 def __nonzero__(self
): return self
.Ok()
4123 class PageSetupDialogDataPtr(PageSetupDialogData
):
4124 def __init__(self
, this
):
4126 if not hasattr(self
,"thisown"): self
.thisown
= 0
4127 self
.__class
__ = PageSetupDialogData
4128 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4130 class PageSetupDialog(Dialog
):
4132 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4133 def __init__(self
, *args
, **kwargs
):
4134 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4135 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4136 self
.this
= newobj
.this
4139 self
._setOORInfo
(self
)
4141 def GetPageSetupData(*args
, **kwargs
):
4142 """GetPageSetupData(self) -> PageSetupDialogData"""
4143 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4145 def ShowModal(*args
, **kwargs
):
4146 """ShowModal(self) -> int"""
4147 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4150 class PageSetupDialogPtr(PageSetupDialog
):
4151 def __init__(self
, this
):
4153 if not hasattr(self
,"thisown"): self
.thisown
= 0
4154 self
.__class
__ = PageSetupDialog
4155 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4157 class PrintDialogData(_core
.Object
):
4159 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4160 def __init__(self
, *args
):
4162 __init__(self) -> PrintDialogData
4163 __init__(self, PrintData printData) -> PrintDialogData
4165 newobj
= _windows_
.new_PrintDialogData(*args
)
4166 self
.this
= newobj
.this
4169 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4172 if self
.thisown
: destroy(self
)
4175 def GetFromPage(*args
, **kwargs
):
4176 """GetFromPage(self) -> int"""
4177 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4179 def GetToPage(*args
, **kwargs
):
4180 """GetToPage(self) -> int"""
4181 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4183 def GetMinPage(*args
, **kwargs
):
4184 """GetMinPage(self) -> int"""
4185 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4187 def GetMaxPage(*args
, **kwargs
):
4188 """GetMaxPage(self) -> int"""
4189 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4191 def GetNoCopies(*args
, **kwargs
):
4192 """GetNoCopies(self) -> int"""
4193 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4195 def GetAllPages(*args
, **kwargs
):
4196 """GetAllPages(self) -> bool"""
4197 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4199 def GetSelection(*args
, **kwargs
):
4200 """GetSelection(self) -> bool"""
4201 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4203 def GetCollate(*args
, **kwargs
):
4204 """GetCollate(self) -> bool"""
4205 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4207 def GetPrintToFile(*args
, **kwargs
):
4208 """GetPrintToFile(self) -> bool"""
4209 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4211 def GetSetupDialog(*args
, **kwargs
):
4212 """GetSetupDialog(self) -> bool"""
4213 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4215 def SetFromPage(*args
, **kwargs
):
4216 """SetFromPage(self, int v)"""
4217 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4219 def SetToPage(*args
, **kwargs
):
4220 """SetToPage(self, int v)"""
4221 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4223 def SetMinPage(*args
, **kwargs
):
4224 """SetMinPage(self, int v)"""
4225 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4227 def SetMaxPage(*args
, **kwargs
):
4228 """SetMaxPage(self, int v)"""
4229 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4231 def SetNoCopies(*args
, **kwargs
):
4232 """SetNoCopies(self, int v)"""
4233 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4235 def SetAllPages(*args
, **kwargs
):
4236 """SetAllPages(self, bool flag)"""
4237 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4239 def SetSelection(*args
, **kwargs
):
4240 """SetSelection(self, bool flag)"""
4241 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4243 def SetCollate(*args
, **kwargs
):
4244 """SetCollate(self, bool flag)"""
4245 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4247 def SetPrintToFile(*args
, **kwargs
):
4248 """SetPrintToFile(self, bool flag)"""
4249 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4251 def SetSetupDialog(*args
, **kwargs
):
4252 """SetSetupDialog(self, bool flag)"""
4253 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4255 def EnablePrintToFile(*args
, **kwargs
):
4256 """EnablePrintToFile(self, bool flag)"""
4257 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4259 def EnableSelection(*args
, **kwargs
):
4260 """EnableSelection(self, bool flag)"""
4261 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4263 def EnablePageNumbers(*args
, **kwargs
):
4264 """EnablePageNumbers(self, bool flag)"""
4265 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4267 def EnableHelp(*args
, **kwargs
):
4268 """EnableHelp(self, bool flag)"""
4269 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4271 def GetEnablePrintToFile(*args
, **kwargs
):
4272 """GetEnablePrintToFile(self) -> bool"""
4273 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4275 def GetEnableSelection(*args
, **kwargs
):
4276 """GetEnableSelection(self) -> bool"""
4277 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4279 def GetEnablePageNumbers(*args
, **kwargs
):
4280 """GetEnablePageNumbers(self) -> bool"""
4281 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4283 def GetEnableHelp(*args
, **kwargs
):
4284 """GetEnableHelp(self) -> bool"""
4285 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4287 def Ok(*args
, **kwargs
):
4288 """Ok(self) -> bool"""
4289 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4291 def GetPrintData(*args
, **kwargs
):
4292 """GetPrintData(self) -> PrintData"""
4293 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4295 def SetPrintData(*args
, **kwargs
):
4296 """SetPrintData(self, PrintData printData)"""
4297 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4299 def __nonzero__(self
): return self
.Ok()
4301 class PrintDialogDataPtr(PrintDialogData
):
4302 def __init__(self
, this
):
4304 if not hasattr(self
,"thisown"): self
.thisown
= 0
4305 self
.__class
__ = PrintDialogData
4306 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4308 class PrintDialog(Dialog
):
4310 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4311 def __init__(self
, *args
, **kwargs
):
4312 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4313 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4314 self
.this
= newobj
.this
4317 self
._setOORInfo
(self
)
4319 def GetPrintDialogData(*args
, **kwargs
):
4320 """GetPrintDialogData(self) -> PrintDialogData"""
4321 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4323 def GetPrintDC(*args
, **kwargs
):
4324 """GetPrintDC(self) -> DC"""
4325 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4327 def ShowModal(*args
, **kwargs
):
4328 """ShowModal(self) -> int"""
4329 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4332 class PrintDialogPtr(PrintDialog
):
4333 def __init__(self
, this
):
4335 if not hasattr(self
,"thisown"): self
.thisown
= 0
4336 self
.__class
__ = PrintDialog
4337 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4339 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4340 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4341 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4342 class Printer(_core
.Object
):
4344 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4345 def __init__(self
, *args
, **kwargs
):
4346 """__init__(self, PrintDialogData data=None) -> Printer"""
4347 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4348 self
.this
= newobj
.this
4351 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4354 if self
.thisown
: destroy(self
)
4357 def CreateAbortWindow(*args
, **kwargs
):
4358 """CreateAbortWindow(self, Window parent, Printout printout)"""
4359 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4361 def GetPrintDialogData(*args
, **kwargs
):
4362 """GetPrintDialogData(self) -> PrintDialogData"""
4363 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4365 def Print(*args
, **kwargs
):
4366 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4367 return _windows_
.Printer_Print(*args
, **kwargs
)
4369 def PrintDialog(*args
, **kwargs
):
4370 """PrintDialog(self, Window parent) -> DC"""
4371 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4373 def ReportError(*args
, **kwargs
):
4374 """ReportError(self, Window parent, Printout printout, String message)"""
4375 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4377 def Setup(*args
, **kwargs
):
4378 """Setup(self, Window parent) -> bool"""
4379 return _windows_
.Printer_Setup(*args
, **kwargs
)
4381 def GetAbort(*args
, **kwargs
):
4382 """GetAbort(self) -> bool"""
4383 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4385 def GetLastError(*args
, **kwargs
):
4386 """GetLastError() -> int"""
4387 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4389 GetLastError
= staticmethod(GetLastError
)
4391 class PrinterPtr(Printer
):
4392 def __init__(self
, this
):
4394 if not hasattr(self
,"thisown"): self
.thisown
= 0
4395 self
.__class
__ = Printer
4396 _windows_
.Printer_swigregister(PrinterPtr
)
4398 def Printer_GetLastError(*args
, **kwargs
):
4399 """Printer_GetLastError() -> int"""
4400 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4402 class Printout(_core
.Object
):
4404 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4405 def __init__(self
, *args
, **kwargs
):
4406 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4407 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4408 self
.this
= newobj
.this
4411 self
._setCallbackInfo
(self
, Printout
)
4413 def _setCallbackInfo(*args
, **kwargs
):
4414 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4415 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4417 def GetTitle(*args
, **kwargs
):
4418 """GetTitle(self) -> String"""
4419 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4421 def GetDC(*args
, **kwargs
):
4422 """GetDC(self) -> DC"""
4423 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4425 def SetDC(*args
, **kwargs
):
4426 """SetDC(self, DC dc)"""
4427 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4429 def SetPageSizePixels(*args
, **kwargs
):
4430 """SetPageSizePixels(self, int w, int h)"""
4431 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4433 def GetPageSizePixels(*args
, **kwargs
):
4434 """GetPageSizePixels() -> (w, h)"""
4435 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4437 def SetPageSizeMM(*args
, **kwargs
):
4438 """SetPageSizeMM(self, int w, int h)"""
4439 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4441 def GetPageSizeMM(*args
, **kwargs
):
4442 """GetPageSizeMM() -> (w, h)"""
4443 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4445 def SetPPIScreen(*args
, **kwargs
):
4446 """SetPPIScreen(self, int x, int y)"""
4447 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4449 def GetPPIScreen(*args
, **kwargs
):
4450 """GetPPIScreen() -> (x,y)"""
4451 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4453 def SetPPIPrinter(*args
, **kwargs
):
4454 """SetPPIPrinter(self, int x, int y)"""
4455 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4457 def GetPPIPrinter(*args
, **kwargs
):
4458 """GetPPIPrinter() -> (x,y)"""
4459 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4461 def IsPreview(*args
, **kwargs
):
4462 """IsPreview(self) -> bool"""
4463 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4465 def SetIsPreview(*args
, **kwargs
):
4466 """SetIsPreview(self, bool p)"""
4467 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4469 def base_OnBeginDocument(*args
, **kwargs
):
4470 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4471 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4473 def base_OnEndDocument(*args
, **kwargs
):
4474 """base_OnEndDocument(self)"""
4475 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4477 def base_OnBeginPrinting(*args
, **kwargs
):
4478 """base_OnBeginPrinting(self)"""
4479 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4481 def base_OnEndPrinting(*args
, **kwargs
):
4482 """base_OnEndPrinting(self)"""
4483 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4485 def base_OnPreparePrinting(*args
, **kwargs
):
4486 """base_OnPreparePrinting(self)"""
4487 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4489 def base_HasPage(*args
, **kwargs
):
4490 """base_HasPage(self, int page) -> bool"""
4491 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4493 def base_GetPageInfo(*args
, **kwargs
):
4494 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4495 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4498 class PrintoutPtr(Printout
):
4499 def __init__(self
, this
):
4501 if not hasattr(self
,"thisown"): self
.thisown
= 0
4502 self
.__class
__ = Printout
4503 _windows_
.Printout_swigregister(PrintoutPtr
)
4505 class PreviewCanvas(ScrolledWindow
):
4507 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4508 def __init__(self
, *args
, **kwargs
):
4510 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4511 Size size=DefaultSize, long style=0,
4512 String name=PreviewCanvasNameStr) -> PreviewCanvas
4514 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4515 self
.this
= newobj
.this
4518 self
._setOORInfo
(self
)
4521 class PreviewCanvasPtr(PreviewCanvas
):
4522 def __init__(self
, this
):
4524 if not hasattr(self
,"thisown"): self
.thisown
= 0
4525 self
.__class
__ = PreviewCanvas
4526 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4528 class PreviewFrame(Frame
):
4530 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4531 def __init__(self
, *args
, **kwargs
):
4533 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4534 Size size=DefaultSize,
4535 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4537 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4538 self
.this
= newobj
.this
4541 self
._setOORInfo
(self
)
4543 def Initialize(*args
, **kwargs
):
4544 """Initialize(self)"""
4545 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4547 def CreateControlBar(*args
, **kwargs
):
4548 """CreateControlBar(self)"""
4549 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4551 def CreateCanvas(*args
, **kwargs
):
4552 """CreateCanvas(self)"""
4553 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4555 def GetControlBar(*args
, **kwargs
):
4556 """GetControlBar(self) -> PreviewControlBar"""
4557 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4560 class PreviewFramePtr(PreviewFrame
):
4561 def __init__(self
, this
):
4563 if not hasattr(self
,"thisown"): self
.thisown
= 0
4564 self
.__class
__ = PreviewFrame
4565 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4567 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4568 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4569 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4570 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4571 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4572 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4573 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4574 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4575 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4576 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4577 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4578 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4579 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4580 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4581 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4582 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4583 class PreviewControlBar(Panel
):
4585 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4586 def __init__(self
, *args
, **kwargs
):
4588 __init__(self, PrintPreview preview, long buttons, Window parent,
4589 Point pos=DefaultPosition, Size size=DefaultSize,
4590 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4592 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4593 self
.this
= newobj
.this
4596 self
._setOORInfo
(self
)
4598 def GetZoomControl(*args
, **kwargs
):
4599 """GetZoomControl(self) -> int"""
4600 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4602 def SetZoomControl(*args
, **kwargs
):
4603 """SetZoomControl(self, int zoom)"""
4604 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4606 def GetPrintPreview(*args
, **kwargs
):
4607 """GetPrintPreview(self) -> PrintPreview"""
4608 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4610 def OnNext(*args
, **kwargs
):
4612 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4614 def OnPrevious(*args
, **kwargs
):
4615 """OnPrevious(self)"""
4616 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4618 def OnFirst(*args
, **kwargs
):
4620 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4622 def OnLast(*args
, **kwargs
):
4624 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4626 def OnGoto(*args
, **kwargs
):
4628 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4631 class PreviewControlBarPtr(PreviewControlBar
):
4632 def __init__(self
, this
):
4634 if not hasattr(self
,"thisown"): self
.thisown
= 0
4635 self
.__class
__ = PreviewControlBar
4636 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4638 class PrintPreview(_core
.Object
):
4640 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4641 def __init__(self
, *args
):
4643 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4644 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4646 newobj
= _windows_
.new_PrintPreview(*args
)
4647 self
.this
= newobj
.this
4650 def SetCurrentPage(*args
, **kwargs
):
4651 """SetCurrentPage(self, int pageNum) -> bool"""
4652 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4654 def GetCurrentPage(*args
, **kwargs
):
4655 """GetCurrentPage(self) -> int"""
4656 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4658 def SetPrintout(*args
, **kwargs
):
4659 """SetPrintout(self, Printout printout)"""
4660 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4662 def GetPrintout(*args
, **kwargs
):
4663 """GetPrintout(self) -> Printout"""
4664 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4666 def GetPrintoutForPrinting(*args
, **kwargs
):
4667 """GetPrintoutForPrinting(self) -> Printout"""
4668 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4670 def SetFrame(*args
, **kwargs
):
4671 """SetFrame(self, Frame frame)"""
4672 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4674 def SetCanvas(*args
, **kwargs
):
4675 """SetCanvas(self, PreviewCanvas canvas)"""
4676 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4678 def GetFrame(*args
, **kwargs
):
4679 """GetFrame(self) -> Frame"""
4680 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4682 def GetCanvas(*args
, **kwargs
):
4683 """GetCanvas(self) -> PreviewCanvas"""
4684 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4686 def PaintPage(*args
, **kwargs
):
4687 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4688 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4690 def DrawBlankPage(*args
, **kwargs
):
4691 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4692 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4694 def RenderPage(*args
, **kwargs
):
4695 """RenderPage(self, int pageNum) -> bool"""
4696 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4698 def AdjustScrollbars(*args
, **kwargs
):
4699 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4700 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4702 def GetPrintDialogData(*args
, **kwargs
):
4703 """GetPrintDialogData(self) -> PrintDialogData"""
4704 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4706 def SetZoom(*args
, **kwargs
):
4707 """SetZoom(self, int percent)"""
4708 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4710 def GetZoom(*args
, **kwargs
):
4711 """GetZoom(self) -> int"""
4712 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4714 def GetMaxPage(*args
, **kwargs
):
4715 """GetMaxPage(self) -> int"""
4716 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4718 def GetMinPage(*args
, **kwargs
):
4719 """GetMinPage(self) -> int"""
4720 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4722 def Ok(*args
, **kwargs
):
4723 """Ok(self) -> bool"""
4724 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4726 def SetOk(*args
, **kwargs
):
4727 """SetOk(self, bool ok)"""
4728 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4730 def Print(*args
, **kwargs
):
4731 """Print(self, bool interactive) -> bool"""
4732 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4734 def DetermineScaling(*args
, **kwargs
):
4735 """DetermineScaling(self)"""
4736 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4738 def __nonzero__(self
): return self
.Ok()
4740 class PrintPreviewPtr(PrintPreview
):
4741 def __init__(self
, this
):
4743 if not hasattr(self
,"thisown"): self
.thisown
= 0
4744 self
.__class
__ = PrintPreview
4745 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4747 class PyPrintPreview(PrintPreview
):
4749 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4750 def __init__(self
, *args
):
4752 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4753 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4755 newobj
= _windows_
.new_PyPrintPreview(*args
)
4756 self
.this
= newobj
.this
4759 self
._setCallbackInfo
(self
, PyPrintPreview
)
4761 def _setCallbackInfo(*args
, **kwargs
):
4762 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4763 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4765 def base_SetCurrentPage(*args
, **kwargs
):
4766 """base_SetCurrentPage(self, int pageNum) -> bool"""
4767 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4769 def base_PaintPage(*args
, **kwargs
):
4770 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4771 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4773 def base_DrawBlankPage(*args
, **kwargs
):
4774 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4775 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4777 def base_RenderPage(*args
, **kwargs
):
4778 """base_RenderPage(self, int pageNum) -> bool"""
4779 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4781 def base_SetZoom(*args
, **kwargs
):
4782 """base_SetZoom(self, int percent)"""
4783 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4785 def base_Print(*args
, **kwargs
):
4786 """base_Print(self, bool interactive) -> bool"""
4787 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4789 def base_DetermineScaling(*args
, **kwargs
):
4790 """base_DetermineScaling(self)"""
4791 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4794 class PyPrintPreviewPtr(PyPrintPreview
):
4795 def __init__(self
, this
):
4797 if not hasattr(self
,"thisown"): self
.thisown
= 0
4798 self
.__class
__ = PyPrintPreview
4799 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4801 class PyPreviewFrame(PreviewFrame
):
4803 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4804 def __init__(self
, *args
, **kwargs
):
4806 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4807 Size size=DefaultSize,
4808 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4810 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4811 self
.this
= newobj
.this
4814 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4816 def _setCallbackInfo(*args
, **kwargs
):
4817 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4818 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4820 def SetPreviewCanvas(*args
, **kwargs
):
4821 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4822 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4824 def SetControlBar(*args
, **kwargs
):
4825 """SetControlBar(self, PreviewControlBar bar)"""
4826 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4828 def base_Initialize(*args
, **kwargs
):
4829 """base_Initialize(self)"""
4830 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4832 def base_CreateCanvas(*args
, **kwargs
):
4833 """base_CreateCanvas(self)"""
4834 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4836 def base_CreateControlBar(*args
, **kwargs
):
4837 """base_CreateControlBar(self)"""
4838 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4841 class PyPreviewFramePtr(PyPreviewFrame
):
4842 def __init__(self
, this
):
4844 if not hasattr(self
,"thisown"): self
.thisown
= 0
4845 self
.__class
__ = PyPreviewFrame
4846 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4848 class PyPreviewControlBar(PreviewControlBar
):
4850 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4851 def __init__(self
, *args
, **kwargs
):
4853 __init__(self, PrintPreview preview, long buttons, Window parent,
4854 Point pos=DefaultPosition, Size size=DefaultSize,
4855 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4857 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4858 self
.this
= newobj
.this
4861 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4863 def _setCallbackInfo(*args
, **kwargs
):
4864 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4865 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4867 def SetPrintPreview(*args
, **kwargs
):
4868 """SetPrintPreview(self, PrintPreview preview)"""
4869 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4871 def base_CreateButtons(*args
, **kwargs
):
4872 """base_CreateButtons(self)"""
4873 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4875 def base_SetZoomControl(*args
, **kwargs
):
4876 """base_SetZoomControl(self, int zoom)"""
4877 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4880 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4881 def __init__(self
, this
):
4883 if not hasattr(self
,"thisown"): self
.thisown
= 0
4884 self
.__class
__ = PyPreviewControlBar
4885 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)