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 return _windows_
.Panel_Create(*args
, **kwargs
)
33 def InitDialog(*args
, **kwargs
):
37 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
38 to the dialog via validators.
40 return _windows_
.Panel_InitDialog(*args
, **kwargs
)
42 def GetClassDefaultAttributes(*args
, **kwargs
):
44 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
46 Get the default attributes for this class. This is useful if you want
47 to use the same font or colour in your own control as in a standard
48 control -- which is a much better idea than hard coding specific
49 colours or fonts which might look completely out of place on the
50 user's system, especially if it uses themes.
52 The variant parameter is only relevant under Mac currently and is
53 ignore under other platforms. Under Mac, it will change the size of
54 the returned font. See `wx.Window.SetWindowVariant` for more about
57 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
59 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
61 class PanelPtr(Panel
):
62 def __init__(self
, this
):
64 if not hasattr(self
,"thisown"): self
.thisown
= 0
65 self
.__class
__ = Panel
66 _windows_
.Panel_swigregister(PanelPtr
)
68 def PrePanel(*args
, **kwargs
):
69 """PrePanel() -> Panel"""
70 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
74 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
76 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
78 Get the default attributes for this class. This is useful if you want
79 to use the same font or colour in your own control as in a standard
80 control -- which is a much better idea than hard coding specific
81 colours or fonts which might look completely out of place on the
82 user's system, especially if it uses themes.
84 The variant parameter is only relevant under Mac currently and is
85 ignore under other platforms. Under Mac, it will change the size of
86 the returned font. See `wx.Window.SetWindowVariant` for more about
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 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
116 def SetScrollbars(*args
, **kwargs
):
118 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
119 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
121 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
123 def Scroll(*args
, **kwargs
):
124 """Scroll(self, int x, int y)"""
125 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
127 def GetScrollPageSize(*args
, **kwargs
):
128 """GetScrollPageSize(self, int orient) -> int"""
129 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
131 def SetScrollPageSize(*args
, **kwargs
):
132 """SetScrollPageSize(self, int orient, int pageSize)"""
133 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
135 def SetScrollRate(*args
, **kwargs
):
136 """SetScrollRate(self, int xstep, int ystep)"""
137 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
139 def GetScrollPixelsPerUnit(*args
, **kwargs
):
141 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
143 Get the size of one logical unit in physical units.
145 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
147 def EnableScrolling(*args
, **kwargs
):
148 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
149 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
151 def GetViewStart(*args
, **kwargs
):
153 GetViewStart() -> (x,y)
157 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
159 def SetScale(*args
, **kwargs
):
160 """SetScale(self, double xs, double ys)"""
161 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
163 def GetScaleX(*args
, **kwargs
):
164 """GetScaleX(self) -> double"""
165 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
167 def GetScaleY(*args
, **kwargs
):
168 """GetScaleY(self) -> double"""
169 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
171 def CalcScrolledPosition(*args
):
173 CalcScrolledPosition(self, Point pt) -> Point
174 CalcScrolledPosition(int x, int y) -> (sx, sy)
176 Translate between scrolled and unscrolled coordinates.
178 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
180 def CalcUnscrolledPosition(*args
):
182 CalcUnscrolledPosition(self, Point pt) -> Point
183 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
185 Translate between scrolled and unscrolled coordinates.
187 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
189 def AdjustScrollbars(*args
, **kwargs
):
190 """AdjustScrollbars(self)"""
191 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
193 def CalcScrollInc(*args
, **kwargs
):
194 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
195 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
197 def SetTargetWindow(*args
, **kwargs
):
198 """SetTargetWindow(self, Window target)"""
199 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
201 def GetTargetWindow(*args
, **kwargs
):
202 """GetTargetWindow(self) -> Window"""
203 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
205 def SetTargetRect(*args
, **kwargs
):
206 """SetTargetRect(self, Rect rect)"""
207 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
209 def GetTargetRect(*args
, **kwargs
):
210 """GetTargetRect(self) -> Rect"""
211 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
213 def DoPrepareDC(*args
, **kwargs
):
215 DoPrepareDC(self, DC dc)
217 Normally what is called by `PrepareDC`.
219 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
221 def GetClassDefaultAttributes(*args
, **kwargs
):
223 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
225 Get the default attributes for this class. This is useful if you want
226 to use the same font or colour in your own control as in a standard
227 control -- which is a much better idea than hard coding specific
228 colours or fonts which might look completely out of place on the
229 user's system, especially if it uses themes.
231 The variant parameter is only relevant under Mac currently and is
232 ignore under other platforms. Under Mac, it will change the size of
233 the returned font. See `wx.Window.SetWindowVariant` for more about
236 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
238 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
240 class ScrolledWindowPtr(ScrolledWindow
):
241 def __init__(self
, this
):
243 if not hasattr(self
,"thisown"): self
.thisown
= 0
244 self
.__class
__ = ScrolledWindow
245 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
247 def PreScrolledWindow(*args
, **kwargs
):
248 """PreScrolledWindow() -> ScrolledWindow"""
249 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
253 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
255 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
257 Get the default attributes for this class. This is useful if you want
258 to use the same font or colour in your own control as in a standard
259 control -- which is a much better idea than hard coding specific
260 colours or fonts which might look completely out of place on the
261 user's system, especially if it uses themes.
263 The variant parameter is only relevant under Mac currently and is
264 ignore under other platforms. Under Mac, it will change the size of
265 the returned font. See `wx.Window.SetWindowVariant` for more about
268 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
270 #---------------------------------------------------------------------------
272 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
273 ICONIZE
= _windows_
.ICONIZE
274 MINIMIZE
= _windows_
.MINIMIZE
275 MAXIMIZE
= _windows_
.MAXIMIZE
276 CLOSE_BOX
= _windows_
.CLOSE_BOX
277 THICK_FRAME
= _windows_
.THICK_FRAME
278 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
279 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
280 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
281 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
282 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
283 RESIZE_BOX
= _windows_
.RESIZE_BOX
284 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
285 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
286 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
287 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
288 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
289 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
290 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
291 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
292 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
293 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
294 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
295 USER_COLOURS
= _windows_
.USER_COLOURS
296 NO_3D
= _windows_
.NO_3D
297 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
298 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
299 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
300 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
301 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
302 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
303 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
304 class TopLevelWindow(_core
.Window
):
305 def __init__(self
): raise RuntimeError, "No constructor defined"
307 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
308 def Maximize(*args
, **kwargs
):
309 """Maximize(self, bool maximize=True)"""
310 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
312 def Restore(*args
, **kwargs
):
314 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
316 def Iconize(*args
, **kwargs
):
317 """Iconize(self, bool iconize=True)"""
318 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
320 def IsMaximized(*args
, **kwargs
):
321 """IsMaximized(self) -> bool"""
322 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
324 def IsIconized(*args
, **kwargs
):
325 """IsIconized(self) -> bool"""
326 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
328 def GetIcon(*args
, **kwargs
):
329 """GetIcon(self) -> Icon"""
330 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
332 def SetIcon(*args
, **kwargs
):
333 """SetIcon(self, Icon icon)"""
334 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
336 def SetIcons(*args
, **kwargs
):
337 """SetIcons(self, wxIconBundle icons)"""
338 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
340 def ShowFullScreen(*args
, **kwargs
):
341 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
342 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
344 def IsFullScreen(*args
, **kwargs
):
345 """IsFullScreen(self) -> bool"""
346 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
348 def SetTitle(*args
, **kwargs
):
350 SetTitle(self, String title)
352 Sets the window's title. Applicable only to frames and dialogs.
354 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
356 def GetTitle(*args
, **kwargs
):
358 GetTitle(self) -> String
360 Gets the window's title. Applicable only to frames and dialogs.
362 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
364 def SetShape(*args
, **kwargs
):
365 """SetShape(self, Region region) -> bool"""
366 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
369 class TopLevelWindowPtr(TopLevelWindow
):
370 def __init__(self
, this
):
372 if not hasattr(self
,"thisown"): self
.thisown
= 0
373 self
.__class
__ = TopLevelWindow
374 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
375 cvar
= _windows_
.cvar
376 FrameNameStr
= cvar
.FrameNameStr
377 DialogNameStr
= cvar
.DialogNameStr
378 StatusLineNameStr
= cvar
.StatusLineNameStr
379 ToolBarNameStr
= cvar
.ToolBarNameStr
381 #---------------------------------------------------------------------------
383 class Frame(TopLevelWindow
):
385 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
386 def __init__(self
, *args
, **kwargs
):
388 __init__(self, Window parent, int id=-1, String title=EmptyString,
389 Point pos=DefaultPosition, Size size=DefaultSize,
390 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
392 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
393 self
.this
= newobj
.this
396 self
._setOORInfo
(self
)
398 def Create(*args
, **kwargs
):
400 Create(self, Window parent, int id=-1, String title=EmptyString,
401 Point pos=DefaultPosition, Size size=DefaultSize,
402 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
404 return _windows_
.Frame_Create(*args
, **kwargs
)
406 def GetClientAreaOrigin(*args
, **kwargs
):
408 GetClientAreaOrigin(self) -> Point
410 Get the origin of the client area of the window relative to the
411 window's top left corner (the client area may be shifted because of
412 the borders, scrollbars, other decorations...)
414 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
416 def SendSizeEvent(*args
, **kwargs
):
417 """SendSizeEvent(self)"""
418 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
420 def SetMenuBar(*args
, **kwargs
):
421 """SetMenuBar(self, MenuBar menubar)"""
422 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
424 def GetMenuBar(*args
, **kwargs
):
425 """GetMenuBar(self) -> MenuBar"""
426 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
428 def ProcessCommand(*args
, **kwargs
):
429 """ProcessCommand(self, int winid) -> bool"""
430 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
432 Command
= ProcessCommand
433 def CreateStatusBar(*args
, **kwargs
):
435 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
436 String name=StatusLineNameStr) -> StatusBar
438 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
440 def GetStatusBar(*args
, **kwargs
):
441 """GetStatusBar(self) -> StatusBar"""
442 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
444 def SetStatusBar(*args
, **kwargs
):
445 """SetStatusBar(self, StatusBar statBar)"""
446 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
448 def SetStatusText(*args
, **kwargs
):
449 """SetStatusText(self, String text, int number=0)"""
450 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
452 def SetStatusWidths(*args
, **kwargs
):
453 """SetStatusWidths(self, int widths, int widths_field)"""
454 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
456 def PushStatusText(*args
, **kwargs
):
457 """PushStatusText(self, String text, int number=0)"""
458 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
460 def PopStatusText(*args
, **kwargs
):
461 """PopStatusText(self, int number=0)"""
462 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
464 def SetStatusBarPane(*args
, **kwargs
):
465 """SetStatusBarPane(self, int n)"""
466 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
468 def GetStatusBarPane(*args
, **kwargs
):
469 """GetStatusBarPane(self) -> int"""
470 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
472 def CreateToolBar(*args
, **kwargs
):
473 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
474 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
476 def GetToolBar(*args
, **kwargs
):
477 """GetToolBar(self) -> wxToolBar"""
478 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
480 def SetToolBar(*args
, **kwargs
):
481 """SetToolBar(self, wxToolBar toolbar)"""
482 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
484 def DoGiveHelp(*args
, **kwargs
):
485 """DoGiveHelp(self, String text, bool show)"""
486 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
488 def DoMenuUpdates(*args
, **kwargs
):
489 """DoMenuUpdates(self, Menu menu=None)"""
490 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
492 def GetClassDefaultAttributes(*args
, **kwargs
):
494 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
496 Get the default attributes for this class. This is useful if you want
497 to use the same font or colour in your own control as in a standard
498 control -- which is a much better idea than hard coding specific
499 colours or fonts which might look completely out of place on the
500 user's system, especially if it uses themes.
502 The variant parameter is only relevant under Mac currently and is
503 ignore under other platforms. Under Mac, it will change the size of
504 the returned font. See `wx.Window.SetWindowVariant` for more about
507 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
509 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
511 class FramePtr(Frame
):
512 def __init__(self
, this
):
514 if not hasattr(self
,"thisown"): self
.thisown
= 0
515 self
.__class
__ = Frame
516 _windows_
.Frame_swigregister(FramePtr
)
518 def PreFrame(*args
, **kwargs
):
519 """PreFrame() -> Frame"""
520 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
524 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
526 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
528 Get the default attributes for this class. This is useful if you want
529 to use the same font or colour in your own control as in a standard
530 control -- which is a much better idea than hard coding specific
531 colours or fonts which might look completely out of place on the
532 user's system, especially if it uses themes.
534 The variant parameter is only relevant under Mac currently and is
535 ignore under other platforms. Under Mac, it will change the size of
536 the returned font. See `wx.Window.SetWindowVariant` for more about
539 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
541 #---------------------------------------------------------------------------
543 class Dialog(TopLevelWindow
):
545 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
546 def __init__(self
, *args
, **kwargs
):
548 __init__(self, Window parent, int id=-1, String title=EmptyString,
549 Point pos=DefaultPosition, Size size=DefaultSize,
550 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
552 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
553 self
.this
= newobj
.this
556 self
._setOORInfo
(self
)
558 def Create(*args
, **kwargs
):
560 Create(self, Window parent, int id=-1, String title=EmptyString,
561 Point pos=DefaultPosition, Size size=DefaultSize,
562 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
564 return _windows_
.Dialog_Create(*args
, **kwargs
)
566 def SetReturnCode(*args
, **kwargs
):
567 """SetReturnCode(self, int returnCode)"""
568 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
570 def GetReturnCode(*args
, **kwargs
):
571 """GetReturnCode(self) -> int"""
572 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
574 def CreateTextSizer(*args
, **kwargs
):
575 """CreateTextSizer(self, String message) -> Sizer"""
576 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
578 def CreateButtonSizer(*args
, **kwargs
):
579 """CreateButtonSizer(self, long flags) -> Sizer"""
580 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
582 def IsModal(*args
, **kwargs
):
583 """IsModal(self) -> bool"""
584 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
586 def ShowModal(*args
, **kwargs
):
587 """ShowModal(self) -> int"""
588 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
590 def EndModal(*args
, **kwargs
):
591 """EndModal(self, int retCode)"""
592 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
594 def GetClassDefaultAttributes(*args
, **kwargs
):
596 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
598 Get the default attributes for this class. This is useful if you want
599 to use the same font or colour in your own control as in a standard
600 control -- which is a much better idea than hard coding specific
601 colours or fonts which might look completely out of place on the
602 user's system, especially if it uses themes.
604 The variant parameter is only relevant under Mac currently and is
605 ignore under other platforms. Under Mac, it will change the size of
606 the returned font. See `wx.Window.SetWindowVariant` for more about
609 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
611 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
612 def SendSizeEvent(self
):
613 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
616 class DialogPtr(Dialog
):
617 def __init__(self
, this
):
619 if not hasattr(self
,"thisown"): self
.thisown
= 0
620 self
.__class
__ = Dialog
621 _windows_
.Dialog_swigregister(DialogPtr
)
623 def PreDialog(*args
, **kwargs
):
624 """PreDialog() -> Dialog"""
625 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
629 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
631 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
633 Get the default attributes for this class. This is useful if you want
634 to use the same font or colour in your own control as in a standard
635 control -- which is a much better idea than hard coding specific
636 colours or fonts which might look completely out of place on the
637 user's system, especially if it uses themes.
639 The variant parameter is only relevant under Mac currently and is
640 ignore under other platforms. Under Mac, it will change the size of
641 the returned font. See `wx.Window.SetWindowVariant` for more about
644 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
646 #---------------------------------------------------------------------------
648 class MiniFrame(Frame
):
650 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
651 def __init__(self
, *args
, **kwargs
):
653 __init__(self, Window parent, int id=-1, String title=EmptyString,
654 Point pos=DefaultPosition, Size size=DefaultSize,
655 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
657 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
658 self
.this
= newobj
.this
661 self
._setOORInfo
(self
)
663 def Create(*args
, **kwargs
):
665 Create(self, Window parent, int id=-1, String title=EmptyString,
666 Point pos=DefaultPosition, Size size=DefaultSize,
667 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
669 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
672 class MiniFramePtr(MiniFrame
):
673 def __init__(self
, this
):
675 if not hasattr(self
,"thisown"): self
.thisown
= 0
676 self
.__class
__ = MiniFrame
677 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
679 def PreMiniFrame(*args
, **kwargs
):
680 """PreMiniFrame() -> MiniFrame"""
681 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
685 #---------------------------------------------------------------------------
687 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
688 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
689 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
690 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
691 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
692 class SplashScreenWindow(_core
.Window
):
694 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
695 def __init__(self
, *args
, **kwargs
):
697 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
698 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
700 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
701 self
.this
= newobj
.this
704 self
._setOORInfo
(self
)
706 def SetBitmap(*args
, **kwargs
):
707 """SetBitmap(self, Bitmap bitmap)"""
708 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
710 def GetBitmap(*args
, **kwargs
):
711 """GetBitmap(self) -> Bitmap"""
712 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
715 class SplashScreenWindowPtr(SplashScreenWindow
):
716 def __init__(self
, this
):
718 if not hasattr(self
,"thisown"): self
.thisown
= 0
719 self
.__class
__ = SplashScreenWindow
720 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
722 class SplashScreen(Frame
):
724 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
725 def __init__(self
, *args
, **kwargs
):
727 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
728 Window parent, int id=-1, Point pos=DefaultPosition,
729 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
731 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
732 self
.this
= newobj
.this
735 self
._setOORInfo
(self
)
737 def GetSplashStyle(*args
, **kwargs
):
738 """GetSplashStyle(self) -> long"""
739 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
741 def GetSplashWindow(*args
, **kwargs
):
742 """GetSplashWindow(self) -> SplashScreenWindow"""
743 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
745 def GetTimeout(*args
, **kwargs
):
746 """GetTimeout(self) -> int"""
747 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
750 class SplashScreenPtr(SplashScreen
):
751 def __init__(self
, this
):
753 if not hasattr(self
,"thisown"): self
.thisown
= 0
754 self
.__class
__ = SplashScreen
755 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
757 #---------------------------------------------------------------------------
759 SB_NORMAL
= _windows_
.SB_NORMAL
760 SB_FLAT
= _windows_
.SB_FLAT
761 SB_RAISED
= _windows_
.SB_RAISED
762 class StatusBar(_core
.Window
):
764 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
765 def __init__(self
, *args
, **kwargs
):
766 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
767 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
768 self
.this
= newobj
.this
771 self
._setOORInfo
(self
)
773 def Create(*args
, **kwargs
):
774 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
775 return _windows_
.StatusBar_Create(*args
, **kwargs
)
777 def SetFieldsCount(*args
, **kwargs
):
778 """SetFieldsCount(self, int number=1)"""
779 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
781 def GetFieldsCount(*args
, **kwargs
):
782 """GetFieldsCount(self) -> int"""
783 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
785 def SetStatusText(*args
, **kwargs
):
786 """SetStatusText(self, String text, int number=0)"""
787 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
789 def GetStatusText(*args
, **kwargs
):
790 """GetStatusText(self, int number=0) -> String"""
791 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
793 def PushStatusText(*args
, **kwargs
):
794 """PushStatusText(self, String text, int number=0)"""
795 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
797 def PopStatusText(*args
, **kwargs
):
798 """PopStatusText(self, int number=0)"""
799 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
801 def SetStatusWidths(*args
, **kwargs
):
802 """SetStatusWidths(self, int widths, int widths_field)"""
803 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
805 def SetStatusStyles(*args
, **kwargs
):
806 """SetStatusStyles(self, int styles, int styles_field)"""
807 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
809 def GetFieldRect(*args
, **kwargs
):
810 """GetFieldRect(self, int i) -> Rect"""
811 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
813 def SetMinHeight(*args
, **kwargs
):
814 """SetMinHeight(self, int height)"""
815 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
817 def GetBorderX(*args
, **kwargs
):
818 """GetBorderX(self) -> int"""
819 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
821 def GetBorderY(*args
, **kwargs
):
822 """GetBorderY(self) -> int"""
823 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
825 def GetClassDefaultAttributes(*args
, **kwargs
):
827 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
829 Get the default attributes for this class. This is useful if you want
830 to use the same font or colour in your own control as in a standard
831 control -- which is a much better idea than hard coding specific
832 colours or fonts which might look completely out of place on the
833 user's system, especially if it uses themes.
835 The variant parameter is only relevant under Mac currently and is
836 ignore under other platforms. Under Mac, it will change the size of
837 the returned font. See `wx.Window.SetWindowVariant` for more about
840 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
842 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
844 class StatusBarPtr(StatusBar
):
845 def __init__(self
, this
):
847 if not hasattr(self
,"thisown"): self
.thisown
= 0
848 self
.__class
__ = StatusBar
849 _windows_
.StatusBar_swigregister(StatusBarPtr
)
851 def PreStatusBar(*args
, **kwargs
):
852 """PreStatusBar() -> StatusBar"""
853 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
857 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
859 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
861 Get the default attributes for this class. This is useful if you want
862 to use the same font or colour in your own control as in a standard
863 control -- which is a much better idea than hard coding specific
864 colours or fonts which might look completely out of place on the
865 user's system, especially if it uses themes.
867 The variant parameter is only relevant under Mac currently and is
868 ignore under other platforms. Under Mac, it will change the size of
869 the returned font. See `wx.Window.SetWindowVariant` for more about
872 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
874 #---------------------------------------------------------------------------
876 SP_NOBORDER
= _windows_
.SP_NOBORDER
877 SP_NOSASH
= _windows_
.SP_NOSASH
878 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
879 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
880 SP_3DSASH
= _windows_
.SP_3DSASH
881 SP_3DBORDER
= _windows_
.SP_3DBORDER
882 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
883 SP_BORDER
= _windows_
.SP_BORDER
884 SP_3D
= _windows_
.SP_3D
885 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
886 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
887 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
888 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
889 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
890 class SplitterWindow(_core
.Window
):
892 wx.SplitterWindow manages up to two subwindows or panes, with an
893 optional vertical or horizontal split which can be used with the mouse
897 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
898 def __init__(self
, *args
, **kwargs
):
900 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
901 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
903 Constructor. Creates and shows a SplitterWindow.
905 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
906 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
907 self
.this
= newobj
.this
910 self
._setOORInfo
(self
)
912 def Create(*args
, **kwargs
):
914 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
915 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
917 Create the GUI part of the SplitterWindow for the 2-phase create.
919 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
921 def GetWindow1(*args
, **kwargs
):
923 GetWindow1(self) -> Window
925 Gets the only or left/top pane.
927 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
929 def GetWindow2(*args
, **kwargs
):
931 GetWindow2(self) -> Window
933 Gets the right/bottom pane.
935 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
937 def SetSplitMode(*args
, **kwargs
):
939 SetSplitMode(self, int mode)
941 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
942 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
945 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
947 def GetSplitMode(*args
, **kwargs
):
949 GetSplitMode(self) -> int
953 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
955 def Initialize(*args
, **kwargs
):
957 Initialize(self, Window window)
959 Initializes the splitter window to have one pane. This should be
960 called if you wish to initially view only a single pane in the
963 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
965 def SplitVertically(*args
, **kwargs
):
967 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
969 Initializes the left and right panes of the splitter window.
971 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
973 def SplitHorizontally(*args
, **kwargs
):
975 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
977 Initializes the top and bottom panes of the splitter window.
979 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
981 def Unsplit(*args
, **kwargs
):
983 Unsplit(self, Window toRemove=None) -> bool
985 Unsplits the window. Pass the pane to remove, or None to remove the
986 right or bottom pane. Returns True if successful, False otherwise (the
987 window was not split).
989 This function will not actually delete the pane being
990 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
991 for the desired behaviour. By default, the pane being
992 removed is only hidden.
994 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
996 def ReplaceWindow(*args
, **kwargs
):
998 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1000 This function replaces one of the windows managed by the
1001 SplitterWindow with another one. It is in general better to use it
1002 instead of calling Unsplit() and then resplitting the window back
1003 because it will provoke much less flicker. It is valid to call this
1004 function whether the splitter has two windows or only one.
1006 Both parameters should be non-None and winOld must specify one of the
1007 windows managed by the splitter. If the parameters are incorrect or
1008 the window couldn't be replaced, False is returned. Otherwise the
1009 function will return True, but please notice that it will not Destroy
1010 the replaced window and you may wish to do it yourself.
1012 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1014 def UpdateSize(*args
, **kwargs
):
1018 Causes any pending sizing of the sash and child panes to take place
1021 Such resizing normally takes place in idle time, in order to wait for
1022 layout to be completed. However, this can cause unacceptable flicker
1023 as the panes are resized after the window has been shown. To work
1024 around this, you can perform window layout (for example by sending a
1025 size event to the parent window), and then call this function, before
1026 showing the top-level window.
1028 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1030 def IsSplit(*args
, **kwargs
):
1032 IsSplit(self) -> bool
1034 Is the window split?
1036 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1038 def SetSashSize(*args
, **kwargs
):
1040 SetSashSize(self, int width)
1044 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1046 def SetBorderSize(*args
, **kwargs
):
1048 SetBorderSize(self, int width)
1050 Sets the border size
1052 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1054 def GetSashSize(*args
, **kwargs
):
1056 GetSashSize(self) -> int
1060 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1062 def GetBorderSize(*args
, **kwargs
):
1064 GetBorderSize(self) -> int
1066 Gets the border size
1068 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1070 def SetSashPosition(*args
, **kwargs
):
1072 SetSashPosition(self, int position, bool redraw=True)
1074 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1075 are resized and the sash and border are redrawn.
1077 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1079 def GetSashPosition(*args
, **kwargs
):
1081 GetSashPosition(self) -> int
1083 Returns the surrent sash position.
1085 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1087 def SetMinimumPaneSize(*args
, **kwargs
):
1089 SetMinimumPaneSize(self, int min)
1091 Sets the minimum pane size in pixels.
1093 The default minimum pane size is zero, which means that either pane
1094 can be reduced to zero by dragging the sash, thus removing one of the
1095 panes. To prevent this behaviour (and veto out-of-range sash
1096 dragging), set a minimum size, for example 20 pixels. If the
1097 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1098 the window may be unsplit even if minimum size is non-zero.
1100 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1102 def GetMinimumPaneSize(*args
, **kwargs
):
1104 GetMinimumPaneSize(self) -> int
1106 Gets the minimum pane size in pixels.
1108 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1110 def SashHitTest(*args
, **kwargs
):
1112 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1114 Tests for x, y over the sash
1116 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1118 def SizeWindows(*args
, **kwargs
):
1124 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1126 def SetNeedUpdating(*args
, **kwargs
):
1127 """SetNeedUpdating(self, bool needUpdating)"""
1128 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1130 def GetNeedUpdating(*args
, **kwargs
):
1131 """GetNeedUpdating(self) -> bool"""
1132 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1134 def GetClassDefaultAttributes(*args
, **kwargs
):
1136 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1138 Get the default attributes for this class. This is useful if you want
1139 to use the same font or colour in your own control as in a standard
1140 control -- which is a much better idea than hard coding specific
1141 colours or fonts which might look completely out of place on the
1142 user's system, especially if it uses themes.
1144 The variant parameter is only relevant under Mac currently and is
1145 ignore under other platforms. Under Mac, it will change the size of
1146 the returned font. See `wx.Window.SetWindowVariant` for more about
1149 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1151 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1153 class SplitterWindowPtr(SplitterWindow
):
1154 def __init__(self
, this
):
1156 if not hasattr(self
,"thisown"): self
.thisown
= 0
1157 self
.__class
__ = SplitterWindow
1158 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1159 SplitterNameStr
= cvar
.SplitterNameStr
1161 def PreSplitterWindow(*args
, **kwargs
):
1163 PreSplitterWindow() -> SplitterWindow
1165 Precreate a SplitterWindow for 2-phase creation.
1167 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1171 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1173 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1175 Get the default attributes for this class. This is useful if you want
1176 to use the same font or colour in your own control as in a standard
1177 control -- which is a much better idea than hard coding specific
1178 colours or fonts which might look completely out of place on the
1179 user's system, especially if it uses themes.
1181 The variant parameter is only relevant under Mac currently and is
1182 ignore under other platforms. Under Mac, it will change the size of
1183 the returned font. See `wx.Window.SetWindowVariant` for more about
1186 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1188 class SplitterEvent(_core
.NotifyEvent
):
1189 """This class represents the events generated by a splitter control."""
1191 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1192 def __init__(self
, *args
, **kwargs
):
1194 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1196 This class represents the events generated by a splitter control.
1198 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1199 self
.this
= newobj
.this
1202 def SetSashPosition(*args
, **kwargs
):
1204 SetSashPosition(self, int pos)
1206 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1207 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1208 events, sets the the new sash position. In the case of _CHANGING
1209 events, sets the new tracking bar position so visual feedback during
1210 dragging will represent that change that will actually take place. Set
1211 to -1 from the event handler code to prevent repositioning.
1213 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1215 def GetSashPosition(*args
, **kwargs
):
1217 GetSashPosition(self) -> int
1219 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1220 and EVT_SPLITTER_SASH_POS_CHANGED events.
1222 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1224 def GetWindowBeingRemoved(*args
, **kwargs
):
1226 GetWindowBeingRemoved(self) -> Window
1228 Returns a pointer to the window being removed when a splitter window
1231 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1233 def GetX(*args
, **kwargs
):
1237 Returns the x coordinate of the double-click point in a
1238 EVT_SPLITTER_DCLICK event.
1240 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1242 def GetY(*args
, **kwargs
):
1246 Returns the y coordinate of the double-click point in a
1247 EVT_SPLITTER_DCLICK event.
1249 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1252 class SplitterEventPtr(SplitterEvent
):
1253 def __init__(self
, this
):
1255 if not hasattr(self
,"thisown"): self
.thisown
= 0
1256 self
.__class
__ = SplitterEvent
1257 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1259 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1260 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1261 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1262 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1263 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1264 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1265 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1266 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1267 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1269 #---------------------------------------------------------------------------
1271 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1272 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1273 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1274 SW_NOBORDER
= _windows_
.SW_NOBORDER
1275 SW_BORDER
= _windows_
.SW_BORDER
1276 SW_3DSASH
= _windows_
.SW_3DSASH
1277 SW_3DBORDER
= _windows_
.SW_3DBORDER
1278 SW_3D
= _windows_
.SW_3D
1279 SASH_TOP
= _windows_
.SASH_TOP
1280 SASH_RIGHT
= _windows_
.SASH_RIGHT
1281 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1282 SASH_LEFT
= _windows_
.SASH_LEFT
1283 SASH_NONE
= _windows_
.SASH_NONE
1284 class SashWindow(_core
.Window
):
1286 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1287 def __init__(self
, *args
, **kwargs
):
1289 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1290 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1291 String name=SashNameStr) -> SashWindow
1293 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1294 self
.this
= newobj
.this
1297 self
._setOORInfo
(self
)
1299 def Create(*args
, **kwargs
):
1301 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1302 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1303 String name=SashNameStr) -> bool
1305 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1307 def SetSashVisible(*args
, **kwargs
):
1308 """SetSashVisible(self, int edge, bool sash)"""
1309 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1311 def GetSashVisible(*args
, **kwargs
):
1312 """GetSashVisible(self, int edge) -> bool"""
1313 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1315 def SetSashBorder(*args
, **kwargs
):
1316 """SetSashBorder(self, int edge, bool border)"""
1317 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1319 def HasBorder(*args
, **kwargs
):
1320 """HasBorder(self, int edge) -> bool"""
1321 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1323 def GetEdgeMargin(*args
, **kwargs
):
1324 """GetEdgeMargin(self, int edge) -> int"""
1325 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1327 def SetDefaultBorderSize(*args
, **kwargs
):
1328 """SetDefaultBorderSize(self, int width)"""
1329 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1331 def GetDefaultBorderSize(*args
, **kwargs
):
1332 """GetDefaultBorderSize(self) -> int"""
1333 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1335 def SetExtraBorderSize(*args
, **kwargs
):
1336 """SetExtraBorderSize(self, int width)"""
1337 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1339 def GetExtraBorderSize(*args
, **kwargs
):
1340 """GetExtraBorderSize(self) -> int"""
1341 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1343 def SetMinimumSizeX(*args
, **kwargs
):
1344 """SetMinimumSizeX(self, int min)"""
1345 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1347 def SetMinimumSizeY(*args
, **kwargs
):
1348 """SetMinimumSizeY(self, int min)"""
1349 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1351 def GetMinimumSizeX(*args
, **kwargs
):
1352 """GetMinimumSizeX(self) -> int"""
1353 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1355 def GetMinimumSizeY(*args
, **kwargs
):
1356 """GetMinimumSizeY(self) -> int"""
1357 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1359 def SetMaximumSizeX(*args
, **kwargs
):
1360 """SetMaximumSizeX(self, int max)"""
1361 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1363 def SetMaximumSizeY(*args
, **kwargs
):
1364 """SetMaximumSizeY(self, int max)"""
1365 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1367 def GetMaximumSizeX(*args
, **kwargs
):
1368 """GetMaximumSizeX(self) -> int"""
1369 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1371 def GetMaximumSizeY(*args
, **kwargs
):
1372 """GetMaximumSizeY(self) -> int"""
1373 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1375 def SashHitTest(*args
, **kwargs
):
1376 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1377 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1379 def SizeWindows(*args
, **kwargs
):
1380 """SizeWindows(self)"""
1381 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1384 class SashWindowPtr(SashWindow
):
1385 def __init__(self
, this
):
1387 if not hasattr(self
,"thisown"): self
.thisown
= 0
1388 self
.__class
__ = SashWindow
1389 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1390 SashNameStr
= cvar
.SashNameStr
1391 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1393 def PreSashWindow(*args
, **kwargs
):
1394 """PreSashWindow() -> SashWindow"""
1395 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1399 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1400 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1401 class SashEvent(_core
.CommandEvent
):
1403 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1404 def __init__(self
, *args
, **kwargs
):
1405 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1406 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1407 self
.this
= newobj
.this
1410 def SetEdge(*args
, **kwargs
):
1411 """SetEdge(self, int edge)"""
1412 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1414 def GetEdge(*args
, **kwargs
):
1415 """GetEdge(self) -> int"""
1416 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1418 def SetDragRect(*args
, **kwargs
):
1419 """SetDragRect(self, Rect rect)"""
1420 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1422 def GetDragRect(*args
, **kwargs
):
1423 """GetDragRect(self) -> Rect"""
1424 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1426 def SetDragStatus(*args
, **kwargs
):
1427 """SetDragStatus(self, int status)"""
1428 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1430 def GetDragStatus(*args
, **kwargs
):
1431 """GetDragStatus(self) -> int"""
1432 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1435 class SashEventPtr(SashEvent
):
1436 def __init__(self
, this
):
1438 if not hasattr(self
,"thisown"): self
.thisown
= 0
1439 self
.__class
__ = SashEvent
1440 _windows_
.SashEvent_swigregister(SashEventPtr
)
1442 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1443 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1444 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1446 #---------------------------------------------------------------------------
1448 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1449 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1450 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1451 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1452 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1453 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1454 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1455 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1456 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1457 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1458 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1459 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1460 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1461 class QueryLayoutInfoEvent(_core
.Event
):
1463 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1464 def __init__(self
, *args
, **kwargs
):
1465 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1466 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1467 self
.this
= newobj
.this
1470 def SetRequestedLength(*args
, **kwargs
):
1471 """SetRequestedLength(self, int length)"""
1472 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1474 def GetRequestedLength(*args
, **kwargs
):
1475 """GetRequestedLength(self) -> int"""
1476 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1478 def SetFlags(*args
, **kwargs
):
1479 """SetFlags(self, int flags)"""
1480 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1482 def GetFlags(*args
, **kwargs
):
1483 """GetFlags(self) -> int"""
1484 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1486 def SetSize(*args
, **kwargs
):
1487 """SetSize(self, Size size)"""
1488 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1490 def GetSize(*args
, **kwargs
):
1491 """GetSize(self) -> Size"""
1492 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1494 def SetOrientation(*args
, **kwargs
):
1495 """SetOrientation(self, int orient)"""
1496 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1498 def GetOrientation(*args
, **kwargs
):
1499 """GetOrientation(self) -> int"""
1500 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1502 def SetAlignment(*args
, **kwargs
):
1503 """SetAlignment(self, int align)"""
1504 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1506 def GetAlignment(*args
, **kwargs
):
1507 """GetAlignment(self) -> int"""
1508 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1511 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1512 def __init__(self
, this
):
1514 if not hasattr(self
,"thisown"): self
.thisown
= 0
1515 self
.__class
__ = QueryLayoutInfoEvent
1516 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1518 class CalculateLayoutEvent(_core
.Event
):
1520 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1521 def __init__(self
, *args
, **kwargs
):
1522 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1523 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1524 self
.this
= newobj
.this
1527 def SetFlags(*args
, **kwargs
):
1528 """SetFlags(self, int flags)"""
1529 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1531 def GetFlags(*args
, **kwargs
):
1532 """GetFlags(self) -> int"""
1533 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1535 def SetRect(*args
, **kwargs
):
1536 """SetRect(self, Rect rect)"""
1537 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1539 def GetRect(*args
, **kwargs
):
1540 """GetRect(self) -> Rect"""
1541 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1544 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1545 def __init__(self
, this
):
1547 if not hasattr(self
,"thisown"): self
.thisown
= 0
1548 self
.__class
__ = CalculateLayoutEvent
1549 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1551 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1552 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1554 class SashLayoutWindow(SashWindow
):
1556 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1557 def __init__(self
, *args
, **kwargs
):
1559 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1560 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1561 String name=SashLayoutNameStr) -> SashLayoutWindow
1563 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1564 self
.this
= newobj
.this
1567 self
._setOORInfo
(self
)
1569 def Create(*args
, **kwargs
):
1571 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1572 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1573 String name=SashLayoutNameStr) -> bool
1575 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1577 def GetAlignment(*args
, **kwargs
):
1578 """GetAlignment(self) -> int"""
1579 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1581 def GetOrientation(*args
, **kwargs
):
1582 """GetOrientation(self) -> int"""
1583 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1585 def SetAlignment(*args
, **kwargs
):
1586 """SetAlignment(self, int alignment)"""
1587 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1589 def SetDefaultSize(*args
, **kwargs
):
1590 """SetDefaultSize(self, Size size)"""
1591 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1593 def SetOrientation(*args
, **kwargs
):
1594 """SetOrientation(self, int orientation)"""
1595 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1598 class SashLayoutWindowPtr(SashLayoutWindow
):
1599 def __init__(self
, this
):
1601 if not hasattr(self
,"thisown"): self
.thisown
= 0
1602 self
.__class
__ = SashLayoutWindow
1603 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1605 def PreSashLayoutWindow(*args
, **kwargs
):
1606 """PreSashLayoutWindow() -> SashLayoutWindow"""
1607 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1611 class LayoutAlgorithm(_core
.Object
):
1613 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1614 def __init__(self
, *args
, **kwargs
):
1615 """__init__(self) -> LayoutAlgorithm"""
1616 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1617 self
.this
= newobj
.this
1620 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1623 if self
.thisown
: destroy(self
)
1626 def LayoutMDIFrame(*args
, **kwargs
):
1627 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1628 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1630 def LayoutFrame(*args
, **kwargs
):
1631 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1632 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1634 def LayoutWindow(*args
, **kwargs
):
1635 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1636 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1639 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1640 def __init__(self
, this
):
1642 if not hasattr(self
,"thisown"): self
.thisown
= 0
1643 self
.__class
__ = LayoutAlgorithm
1644 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1646 #---------------------------------------------------------------------------
1648 class PopupWindow(_core
.Window
):
1650 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1651 def __init__(self
, *args
, **kwargs
):
1652 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1653 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1654 self
.this
= newobj
.this
1657 self
._setOORInfo
(self
)
1659 def Create(*args
, **kwargs
):
1660 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1661 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1663 def Position(*args
, **kwargs
):
1664 """Position(self, Point ptOrigin, Size size)"""
1665 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1668 class PopupWindowPtr(PopupWindow
):
1669 def __init__(self
, this
):
1671 if not hasattr(self
,"thisown"): self
.thisown
= 0
1672 self
.__class
__ = PopupWindow
1673 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1675 def PrePopupWindow(*args
, **kwargs
):
1676 """PrePopupWindow() -> PopupWindow"""
1677 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1681 #---------------------------------------------------------------------------
1683 class PopupTransientWindow(PopupWindow
):
1685 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1686 def __init__(self
, *args
, **kwargs
):
1687 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1688 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1689 self
.this
= newobj
.this
1692 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1694 def _setCallbackInfo(*args
, **kwargs
):
1695 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1696 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1698 def Popup(*args
, **kwargs
):
1699 """Popup(self, Window focus=None)"""
1700 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1702 def Dismiss(*args
, **kwargs
):
1704 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1707 class PopupTransientWindowPtr(PopupTransientWindow
):
1708 def __init__(self
, this
):
1710 if not hasattr(self
,"thisown"): self
.thisown
= 0
1711 self
.__class
__ = PopupTransientWindow
1712 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1714 def PrePopupTransientWindow(*args
, **kwargs
):
1715 """PrePopupTransientWindow() -> PopupTransientWindow"""
1716 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1720 #---------------------------------------------------------------------------
1722 class TipWindow(PopupTransientWindow
):
1724 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1725 def __init__(self
, *args
, **kwargs
):
1726 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1727 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1728 self
.this
= newobj
.this
1731 self
._setOORInfo
(self
)
1733 def SetBoundingRect(*args
, **kwargs
):
1734 """SetBoundingRect(self, Rect rectBound)"""
1735 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1737 def Close(*args
, **kwargs
):
1739 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1742 class TipWindowPtr(TipWindow
):
1743 def __init__(self
, this
):
1745 if not hasattr(self
,"thisown"): self
.thisown
= 0
1746 self
.__class
__ = TipWindow
1747 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1749 #---------------------------------------------------------------------------
1751 class VScrolledWindow(Panel
):
1753 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1754 def __init__(self
, *args
, **kwargs
):
1756 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1757 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1759 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1760 self
.this
= newobj
.this
1763 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1765 def _setCallbackInfo(*args
, **kwargs
):
1766 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1767 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1769 def Create(*args
, **kwargs
):
1771 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1772 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1774 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1776 def SetLineCount(*args
, **kwargs
):
1777 """SetLineCount(self, size_t count)"""
1778 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1780 def ScrollToLine(*args
, **kwargs
):
1781 """ScrollToLine(self, size_t line) -> bool"""
1782 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1784 def ScrollLines(*args
, **kwargs
):
1786 ScrollLines(self, int lines) -> bool
1788 If the platform and window class supports it, scrolls the window by
1789 the given number of lines down, if lines is positive, or up if lines
1790 is negative. Returns True if the window was scrolled, False if it was
1791 already on top/bottom and nothing was done.
1793 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1795 def ScrollPages(*args
, **kwargs
):
1797 ScrollPages(self, int pages) -> bool
1799 If the platform and window class supports it, scrolls the window by
1800 the given number of pages down, if pages is positive, or up if pages
1801 is negative. Returns True if the window was scrolled, False if it was
1802 already on top/bottom and nothing was done.
1804 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1806 def RefreshLine(*args
, **kwargs
):
1807 """RefreshLine(self, size_t line)"""
1808 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1810 def RefreshLines(*args
, **kwargs
):
1811 """RefreshLines(self, size_t from, size_t to)"""
1812 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1814 def HitTestXT(*args
, **kwargs
):
1816 HitTestXT(self, int x, int y) -> int
1818 Test where the given (in client coords) point lies
1820 return _windows_
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1822 def HitTest(*args
, **kwargs
):
1824 HitTest(self, Point pt) -> int
1826 Test where the given (in client coords) point lies
1828 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1830 def RefreshAll(*args
, **kwargs
):
1831 """RefreshAll(self)"""
1832 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1834 def GetLineCount(*args
, **kwargs
):
1835 """GetLineCount(self) -> size_t"""
1836 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1838 def GetFirstVisibleLine(*args
, **kwargs
):
1839 """GetFirstVisibleLine(self) -> size_t"""
1840 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1842 def GetLastVisibleLine(*args
, **kwargs
):
1843 """GetLastVisibleLine(self) -> size_t"""
1844 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1846 def IsVisible(*args
, **kwargs
):
1847 """IsVisible(self, size_t line) -> bool"""
1848 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1851 class VScrolledWindowPtr(VScrolledWindow
):
1852 def __init__(self
, this
):
1854 if not hasattr(self
,"thisown"): self
.thisown
= 0
1855 self
.__class
__ = VScrolledWindow
1856 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1858 def PreVScrolledWindow(*args
, **kwargs
):
1859 """PreVScrolledWindow() -> VScrolledWindow"""
1860 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1864 class VListBox(VScrolledWindow
):
1866 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1867 def __init__(self
, *args
, **kwargs
):
1869 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1870 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1872 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1873 self
.this
= newobj
.this
1876 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1878 def _setCallbackInfo(*args
, **kwargs
):
1879 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1880 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1882 def Create(*args
, **kwargs
):
1884 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1885 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1887 return _windows_
.VListBox_Create(*args
, **kwargs
)
1889 def GetItemCount(*args
, **kwargs
):
1890 """GetItemCount(self) -> size_t"""
1891 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1893 def HasMultipleSelection(*args
, **kwargs
):
1894 """HasMultipleSelection(self) -> bool"""
1895 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1897 def GetSelection(*args
, **kwargs
):
1898 """GetSelection(self) -> int"""
1899 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1901 def IsCurrent(*args
, **kwargs
):
1902 """IsCurrent(self, size_t item) -> bool"""
1903 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1905 def IsSelected(*args
, **kwargs
):
1906 """IsSelected(self, size_t item) -> bool"""
1907 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1909 def GetSelectedCount(*args
, **kwargs
):
1910 """GetSelectedCount(self) -> size_t"""
1911 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1913 def GetFirstSelected(*args
, **kwargs
):
1914 """GetFirstSelected(self) -> PyObject"""
1915 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1917 def GetNextSelected(*args
, **kwargs
):
1918 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1919 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1921 def GetMargins(*args
, **kwargs
):
1922 """GetMargins(self) -> Point"""
1923 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1925 def GetSelectionBackground(*args
, **kwargs
):
1926 """GetSelectionBackground(self) -> Colour"""
1927 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1929 def SetItemCount(*args
, **kwargs
):
1930 """SetItemCount(self, size_t count)"""
1931 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1933 def Clear(*args
, **kwargs
):
1935 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1937 def SetSelection(*args
, **kwargs
):
1938 """SetSelection(self, int selection)"""
1939 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1941 def Select(*args
, **kwargs
):
1942 """Select(self, size_t item, bool select=True) -> bool"""
1943 return _windows_
.VListBox_Select(*args
, **kwargs
)
1945 def SelectRange(*args
, **kwargs
):
1946 """SelectRange(self, size_t from, size_t to) -> bool"""
1947 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1949 def Toggle(*args
, **kwargs
):
1950 """Toggle(self, size_t item)"""
1951 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1953 def SelectAll(*args
, **kwargs
):
1954 """SelectAll(self) -> bool"""
1955 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1957 def DeselectAll(*args
, **kwargs
):
1958 """DeselectAll(self) -> bool"""
1959 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1961 def SetMargins(*args
, **kwargs
):
1962 """SetMargins(self, Point pt)"""
1963 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1965 def SetMarginsXY(*args
, **kwargs
):
1966 """SetMarginsXY(self, int x, int y)"""
1967 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1969 def SetSelectionBackground(*args
, **kwargs
):
1970 """SetSelectionBackground(self, Colour col)"""
1971 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1974 class VListBoxPtr(VListBox
):
1975 def __init__(self
, this
):
1977 if not hasattr(self
,"thisown"): self
.thisown
= 0
1978 self
.__class
__ = VListBox
1979 _windows_
.VListBox_swigregister(VListBoxPtr
)
1980 VListBoxNameStr
= cvar
.VListBoxNameStr
1982 def PreVListBox(*args
, **kwargs
):
1983 """PreVListBox() -> VListBox"""
1984 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1988 class HtmlListBox(VListBox
):
1990 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1991 def __init__(self
, *args
, **kwargs
):
1993 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1994 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1996 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
1997 self
.this
= newobj
.this
2000 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2002 def _setCallbackInfo(*args
, **kwargs
):
2003 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2004 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2006 def Create(*args
, **kwargs
):
2008 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2009 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2011 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2013 def RefreshAll(*args
, **kwargs
):
2014 """RefreshAll(self)"""
2015 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2017 def SetItemCount(*args
, **kwargs
):
2018 """SetItemCount(self, size_t count)"""
2019 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2021 def GetFileSystem(*args
, **kwargs
):
2022 """GetFileSystem(self) -> FileSystem"""
2023 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2026 class HtmlListBoxPtr(HtmlListBox
):
2027 def __init__(self
, this
):
2029 if not hasattr(self
,"thisown"): self
.thisown
= 0
2030 self
.__class
__ = HtmlListBox
2031 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2033 def PreHtmlListBox(*args
, **kwargs
):
2034 """PreHtmlListBox() -> HtmlListBox"""
2035 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2039 #---------------------------------------------------------------------------
2041 class TaskBarIcon(_core
.EvtHandler
):
2043 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2044 def __init__(self
, *args
, **kwargs
):
2045 """__init__(self) -> TaskBarIcon"""
2046 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2047 self
.this
= newobj
.this
2050 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2053 if self
.thisown
: destroy(self
)
2056 def Destroy(*args
, **kwargs
):
2060 Deletes the C++ object this Python object is a proxy for.
2062 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2064 def IsOk(*args
, **kwargs
):
2065 """IsOk(self) -> bool"""
2066 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2068 def __nonzero__(self
): return self
.IsOk()
2069 def IsIconInstalled(*args
, **kwargs
):
2070 """IsIconInstalled(self) -> bool"""
2071 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2073 def SetIcon(*args
, **kwargs
):
2074 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2075 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2077 def RemoveIcon(*args
, **kwargs
):
2078 """RemoveIcon(self) -> bool"""
2079 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2081 def PopupMenu(*args
, **kwargs
):
2082 """PopupMenu(self, Menu menu) -> bool"""
2083 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2086 class TaskBarIconPtr(TaskBarIcon
):
2087 def __init__(self
, this
):
2089 if not hasattr(self
,"thisown"): self
.thisown
= 0
2090 self
.__class
__ = TaskBarIcon
2091 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2093 class TaskBarIconEvent(_core
.Event
):
2095 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2096 def __init__(self
, *args
, **kwargs
):
2097 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2098 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2099 self
.this
= newobj
.this
2103 class TaskBarIconEventPtr(TaskBarIconEvent
):
2104 def __init__(self
, this
):
2106 if not hasattr(self
,"thisown"): self
.thisown
= 0
2107 self
.__class
__ = TaskBarIconEvent
2108 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2110 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2111 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2112 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2113 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2114 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2115 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2116 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2117 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2118 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2119 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2120 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2121 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2122 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2123 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2125 #---------------------------------------------------------------------------
2127 class ColourData(_core
.Object
):
2129 This class holds a variety of information related to the colour
2130 chooser dialog, used to transfer settings and results to and from the
2134 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2135 def __init__(self
, *args
, **kwargs
):
2137 __init__(self) -> ColourData
2139 Constructor, sets default values.
2141 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2142 self
.this
= newobj
.this
2145 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2148 if self
.thisown
: destroy(self
)
2151 def GetChooseFull(*args
, **kwargs
):
2153 GetChooseFull(self) -> bool
2155 Under Windows, determines whether the Windows colour dialog will
2156 display the full dialog with custom colour selection controls. Has no
2157 meaning under other platforms. The default value is true.
2159 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2161 def GetColour(*args
, **kwargs
):
2163 GetColour(self) -> Colour
2165 Gets the colour (pre)selected by the dialog.
2167 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2169 def GetCustomColour(*args
, **kwargs
):
2171 GetCustomColour(self, int i) -> Colour
2173 Gets the i'th custom colour associated with the colour dialog. i
2174 should be an integer between 0 and 15. The default custom colours are
2175 all invalid colours.
2177 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2179 def SetChooseFull(*args
, **kwargs
):
2181 SetChooseFull(self, int flag)
2183 Under Windows, tells the Windows colour dialog to display the full
2184 dialog with custom colour selection controls. Under other platforms,
2185 has no effect. The default value is true.
2187 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2189 def SetColour(*args
, **kwargs
):
2191 SetColour(self, Colour colour)
2193 Sets the default colour for the colour dialog. The default colour is
2196 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2198 def SetCustomColour(*args
, **kwargs
):
2200 SetCustomColour(self, int i, Colour colour)
2202 Sets the i'th custom colour for the colour dialog. i should be an
2203 integer between 0 and 15. The default custom colours are all invalid colours.
2205 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2208 class ColourDataPtr(ColourData
):
2209 def __init__(self
, this
):
2211 if not hasattr(self
,"thisown"): self
.thisown
= 0
2212 self
.__class
__ = ColourData
2213 _windows_
.ColourData_swigregister(ColourDataPtr
)
2214 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2215 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2216 DirDialogNameStr
= cvar
.DirDialogNameStr
2217 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2218 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2219 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2221 class ColourDialog(Dialog
):
2222 """This class represents the colour chooser dialog."""
2224 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2225 def __init__(self
, *args
, **kwargs
):
2227 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2229 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2230 which will be copied to the colour dialog's internal ColourData
2233 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2234 self
.this
= newobj
.this
2237 self
._setOORInfo
(self
)
2239 def GetColourData(*args
, **kwargs
):
2241 GetColourData(self) -> ColourData
2243 Returns a reference to the `wx.ColourData` used by the dialog.
2245 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2248 class ColourDialogPtr(ColourDialog
):
2249 def __init__(self
, this
):
2251 if not hasattr(self
,"thisown"): self
.thisown
= 0
2252 self
.__class
__ = ColourDialog
2253 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2255 class DirDialog(Dialog
):
2257 wx.DirDialog allows the user to select a directory by browising the
2261 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2262 def __init__(self
, *args
, **kwargs
):
2264 __init__(self, Window parent, String message=DirSelectorPromptStr,
2265 String defaultPath=EmptyString, long style=0,
2266 Point pos=DefaultPosition, Size size=DefaultSize,
2267 String name=DirDialogNameStr) -> DirDialog
2269 Constructor. Use ShowModal method to show the dialog.
2271 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2272 self
.this
= newobj
.this
2275 self
._setOORInfo
(self
)
2277 def GetPath(*args
, **kwargs
):
2279 GetPath(self) -> String
2281 Returns the default or user-selected path.
2283 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2285 def GetMessage(*args
, **kwargs
):
2287 GetMessage(self) -> String
2289 Returns the message that will be displayed on the dialog.
2291 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2293 def GetStyle(*args
, **kwargs
):
2295 GetStyle(self) -> long
2297 Returns the dialog style.
2299 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2301 def SetMessage(*args
, **kwargs
):
2303 SetMessage(self, String message)
2305 Sets the message that will be displayed on the dialog.
2307 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2309 def SetPath(*args
, **kwargs
):
2311 SetPath(self, String path)
2313 Sets the default path.
2315 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2318 class DirDialogPtr(DirDialog
):
2319 def __init__(self
, this
):
2321 if not hasattr(self
,"thisown"): self
.thisown
= 0
2322 self
.__class
__ = DirDialog
2323 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2325 class FileDialog(Dialog
):
2327 wx.FileDialog allows the user to select one or more files from the
2331 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2332 def __init__(self
, *args
, **kwargs
):
2334 __init__(self, Window parent, String message=FileSelectorPromptStr,
2335 String defaultDir=EmptyString, String defaultFile=EmptyString,
2336 String wildcard=FileSelectorDefaultWildcardStr,
2337 long style=0, Point pos=DefaultPosition) -> FileDialog
2339 Constructor. Use ShowModal method to show the dialog.
2341 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2342 self
.this
= newobj
.this
2345 self
._setOORInfo
(self
)
2347 def SetMessage(*args
, **kwargs
):
2349 SetMessage(self, String message)
2351 Sets the message that will be displayed on the dialog.
2353 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2355 def SetPath(*args
, **kwargs
):
2357 SetPath(self, String path)
2359 Sets the path (the combined directory and filename that will be
2360 returned when the dialog is dismissed).
2362 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2364 def SetDirectory(*args
, **kwargs
):
2366 SetDirectory(self, String dir)
2368 Sets the default directory.
2370 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2372 def SetFilename(*args
, **kwargs
):
2374 SetFilename(self, String name)
2376 Sets the default filename.
2378 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2380 def SetWildcard(*args
, **kwargs
):
2382 SetWildcard(self, String wildCard)
2384 Sets the wildcard, which can contain multiple file types, for
2387 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2390 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2392 def SetStyle(*args
, **kwargs
):
2394 SetStyle(self, long style)
2396 Sets the dialog style.
2398 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2400 def SetFilterIndex(*args
, **kwargs
):
2402 SetFilterIndex(self, int filterIndex)
2404 Sets the default filter index, starting from zero.
2406 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2408 def GetMessage(*args
, **kwargs
):
2410 GetMessage(self) -> String
2412 Returns the message that will be displayed on the dialog.
2414 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2416 def GetPath(*args
, **kwargs
):
2418 GetPath(self) -> String
2420 Returns the full path (directory and filename) of the selected file.
2422 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2424 def GetDirectory(*args
, **kwargs
):
2426 GetDirectory(self) -> String
2428 Returns the default directory.
2430 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2432 def GetFilename(*args
, **kwargs
):
2434 GetFilename(self) -> String
2436 Returns the default filename.
2438 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2440 def GetWildcard(*args
, **kwargs
):
2442 GetWildcard(self) -> String
2444 Returns the file dialog wildcard.
2446 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2448 def GetStyle(*args
, **kwargs
):
2450 GetStyle(self) -> long
2452 Returns the dialog style.
2454 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2456 def GetFilterIndex(*args
, **kwargs
):
2458 GetFilterIndex(self) -> int
2460 Returns the index into the list of filters supplied, optionally, in
2461 the wildcard parameter. Before the dialog is shown, this is the index
2462 which will be used when the dialog is first displayed. After the
2463 dialog is shown, this is the index selected by the user.
2465 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2467 def GetFilenames(*args
, **kwargs
):
2469 GetFilenames(self) -> PyObject
2471 Returns a list of filenames chosen in the dialog. This function
2472 should only be used with the dialogs which have wx.MULTIPLE style, use
2473 GetFilename for the others.
2475 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2477 def GetPaths(*args
, **kwargs
):
2479 GetPaths(self) -> PyObject
2481 Fills the array paths with the full paths of the files chosen. This
2482 function should only be used with the dialogs which have wx.MULTIPLE
2483 style, use GetPath for the others.
2485 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2488 class FileDialogPtr(FileDialog
):
2489 def __init__(self
, this
):
2491 if not hasattr(self
,"thisown"): self
.thisown
= 0
2492 self
.__class
__ = FileDialog
2493 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2495 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2496 class MultiChoiceDialog(Dialog
):
2497 """A simple dialog with a multi selection listbox."""
2499 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2500 def __init__(self
, *args
, **kwargs
):
2502 __init__(Window parent, String message, String caption,
2503 List choices=[], long style=CHOICEDLG_STYLE,
2504 Point pos=DefaultPosition) -> MultiChoiceDialog
2506 Constructor. Use ShowModal method to show the dialog.
2508 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2509 self
.this
= newobj
.this
2512 self
._setOORInfo
(self
)
2514 def SetSelections(*args
, **kwargs
):
2516 SetSelections(List selections)
2518 Specify the items in the list that should be selected, using a list of
2521 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2523 def GetSelections(*args
, **kwargs
):
2525 GetSelections() -> [selections]
2527 Returns a list of integers representing the items that are selected.
2529 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2532 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2533 def __init__(self
, this
):
2535 if not hasattr(self
,"thisown"): self
.thisown
= 0
2536 self
.__class
__ = MultiChoiceDialog
2537 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2539 class SingleChoiceDialog(Dialog
):
2540 """A simple dialog with a single selection listbox."""
2542 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2543 def __init__(self
, *args
, **kwargs
):
2545 __init__(Window parent, String message, String caption,
2546 List choices=[], long style=CHOICEDLG_STYLE,
2547 Point pos=DefaultPosition) -> SingleChoiceDialog
2549 Constructor. Use ShowModal method to show the dialog.
2551 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2552 self
.this
= newobj
.this
2555 self
._setOORInfo
(self
)
2557 def GetSelection(*args
, **kwargs
):
2559 GetSelection(self) -> int
2561 Get the index of teh currently selected item.
2563 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2565 def GetStringSelection(*args
, **kwargs
):
2567 GetStringSelection(self) -> String
2569 Returns the string value of the currently selected item
2571 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2573 def SetSelection(*args
, **kwargs
):
2575 SetSelection(self, int sel)
2577 Set the current selected item to sel
2579 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2582 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2583 def __init__(self
, this
):
2585 if not hasattr(self
,"thisown"): self
.thisown
= 0
2586 self
.__class
__ = SingleChoiceDialog
2587 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2589 class TextEntryDialog(Dialog
):
2590 """A dialog with text control, [ok] and [cancel] buttons"""
2592 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2593 def __init__(self
, *args
, **kwargs
):
2595 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2596 String defaultValue=EmptyString,
2597 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2599 Constructor. Use ShowModal method to show the dialog.
2601 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2602 self
.this
= newobj
.this
2605 self
._setOORInfo
(self
)
2607 def GetValue(*args
, **kwargs
):
2609 GetValue(self) -> String
2611 Returns the text that the user has entered if the user has pressed OK,
2612 or the original value if the user has pressed Cancel.
2614 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2616 def SetValue(*args
, **kwargs
):
2618 SetValue(self, String value)
2620 Sets the default text value.
2622 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2625 class TextEntryDialogPtr(TextEntryDialog
):
2626 def __init__(self
, this
):
2628 if not hasattr(self
,"thisown"): self
.thisown
= 0
2629 self
.__class
__ = TextEntryDialog
2630 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2632 class FontData(_core
.Object
):
2634 This class holds a variety of information related to font dialogs and
2635 is used to transfer settings to and results from a `wx.FontDialog`.
2638 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2639 def __init__(self
, *args
, **kwargs
):
2641 __init__(self) -> FontData
2643 This class holds a variety of information related to font dialogs and
2644 is used to transfer settings to and results from a `wx.FontDialog`.
2646 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2647 self
.this
= newobj
.this
2650 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2653 if self
.thisown
: destroy(self
)
2656 def EnableEffects(*args
, **kwargs
):
2658 EnableEffects(self, bool enable)
2660 Enables or disables 'effects' under MS Windows only. This refers to
2661 the controls for manipulating colour, strikeout and underline
2662 properties. The default value is true.
2664 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2666 def GetAllowSymbols(*args
, **kwargs
):
2668 GetAllowSymbols(self) -> bool
2670 Under MS Windows, returns a flag determining whether symbol fonts can
2671 be selected. Has no effect on other platforms. The default value is
2674 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2676 def GetColour(*args
, **kwargs
):
2678 GetColour(self) -> Colour
2680 Gets the colour associated with the font dialog. The default value is
2683 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2685 def GetChosenFont(*args
, **kwargs
):
2687 GetChosenFont(self) -> Font
2689 Gets the font chosen by the user.
2691 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2693 def GetEnableEffects(*args
, **kwargs
):
2695 GetEnableEffects(self) -> bool
2697 Determines whether 'effects' are enabled under Windows.
2699 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2701 def GetInitialFont(*args
, **kwargs
):
2703 GetInitialFont(self) -> Font
2705 Gets the font that will be initially used by the font dialog. This
2706 should have previously been set by the application.
2708 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2710 def GetShowHelp(*args
, **kwargs
):
2712 GetShowHelp(self) -> bool
2714 Returns true if the Help button will be shown (Windows only). The
2715 default value is false.
2717 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2719 def SetAllowSymbols(*args
, **kwargs
):
2721 SetAllowSymbols(self, bool allowSymbols)
2723 Under MS Windows, determines whether symbol fonts can be selected. Has
2724 no effect on other platforms. The default value is true.
2726 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2728 def SetChosenFont(*args
, **kwargs
):
2730 SetChosenFont(self, Font font)
2732 Sets the font that will be returned to the user (normally for internal
2735 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2737 def SetColour(*args
, **kwargs
):
2739 SetColour(self, Colour colour)
2741 Sets the colour that will be used for the font foreground colour. The
2742 default colour is black.
2744 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2746 def SetInitialFont(*args
, **kwargs
):
2748 SetInitialFont(self, Font font)
2750 Sets the font that will be initially used by the font dialog.
2752 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2754 def SetRange(*args
, **kwargs
):
2756 SetRange(self, int min, int max)
2758 Sets the valid range for the font point size (Windows only). The
2759 default is 0, 0 (unrestricted range).
2761 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2763 def SetShowHelp(*args
, **kwargs
):
2765 SetShowHelp(self, bool showHelp)
2767 Determines whether the Help button will be displayed in the font
2768 dialog (Windows only). The default value is false.
2770 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2773 class FontDataPtr(FontData
):
2774 def __init__(self
, this
):
2776 if not hasattr(self
,"thisown"): self
.thisown
= 0
2777 self
.__class
__ = FontData
2778 _windows_
.FontData_swigregister(FontDataPtr
)
2780 class FontDialog(Dialog
):
2782 wx.FontDialog allows the user to select a system font and its attributes.
2788 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2789 def __init__(self
, *args
, **kwargs
):
2791 __init__(self, Window parent, FontData data) -> FontDialog
2793 Constructor. Pass a parent window and the `wx.FontData` object to be
2794 used to initialize the dialog controls. Call `ShowModal` to display
2795 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2796 results with via the `wx.FontData` returned by `GetFontData`.
2798 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2799 self
.this
= newobj
.this
2802 self
._setOORInfo
(self
)
2804 def GetFontData(*args
, **kwargs
):
2806 GetFontData(self) -> FontData
2808 Returns a reference to the internal `wx.FontData` used by the
2811 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2814 class FontDialogPtr(FontDialog
):
2815 def __init__(self
, this
):
2817 if not hasattr(self
,"thisown"): self
.thisown
= 0
2818 self
.__class
__ = FontDialog
2819 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2821 class MessageDialog(Dialog
):
2823 This class provides a simple dialog that shows a single or multi-line
2824 message, with a choice of OK, Yes, No and/or Cancel buttons.
2827 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2828 def __init__(self
, *args
, **kwargs
):
2830 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2831 long style=wxOK|wxCANCEL|wxCENTRE,
2832 Point pos=DefaultPosition) -> MessageDialog
2834 Constructor, use `ShowModal` to display the dialog.
2836 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2837 self
.this
= newobj
.this
2840 self
._setOORInfo
(self
)
2843 class MessageDialogPtr(MessageDialog
):
2844 def __init__(self
, this
):
2846 if not hasattr(self
,"thisown"): self
.thisown
= 0
2847 self
.__class
__ = MessageDialog
2848 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2850 class ProgressDialog(Frame
):
2852 A dialog that shows a short message and a progress bar. Optionally, it
2853 can display an ABORT button.
2856 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2857 def __init__(self
, *args
, **kwargs
):
2859 __init__(self, String title, String message, int maximum=100, Window parent=None,
2860 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2862 Constructor. Creates the dialog, displays it and disables user input
2863 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2866 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2867 self
.this
= newobj
.this
2870 self
._setOORInfo
(self
)
2872 def Update(*args
, **kwargs
):
2874 Update(self, int value, String newmsg=EmptyString) -> bool
2876 Updates the dialog, setting the progress bar to the new value and, if
2877 given changes the message above it. The value given should be less
2878 than or equal to the maximum value given to the constructor and the
2879 dialog is closed if it is equal to the maximum. Returns true unless
2880 the Cancel button has been pressed.
2882 If false is returned, the application can either immediately destroy
2883 the dialog or ask the user for the confirmation and if the abort is
2884 not confirmed the dialog may be resumed with Resume function.
2886 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2888 def Resume(*args
, **kwargs
):
2892 Can be used to continue with the dialog, after the user had chosen to
2895 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2898 class ProgressDialogPtr(ProgressDialog
):
2899 def __init__(self
, this
):
2901 if not hasattr(self
,"thisown"): self
.thisown
= 0
2902 self
.__class
__ = ProgressDialog
2903 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2905 FR_DOWN
= _windows_
.FR_DOWN
2906 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2907 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2908 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2909 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2910 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2911 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2912 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2913 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2914 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2915 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2916 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2917 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2918 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2919 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2920 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2921 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2923 # For backwards compatibility. Should they be removed?
2924 EVT_COMMAND_FIND
= EVT_FIND
2925 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2926 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2927 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2928 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2930 class FindDialogEvent(_core
.CommandEvent
):
2931 """Events for the FindReplaceDialog"""
2933 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2934 def __init__(self
, *args
, **kwargs
):
2936 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2938 Events for the FindReplaceDialog
2940 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2941 self
.this
= newobj
.this
2944 def GetFlags(*args
, **kwargs
):
2946 GetFlags(self) -> int
2948 Get the currently selected flags: this is the combination of
2949 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2951 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2953 def GetFindString(*args
, **kwargs
):
2955 GetFindString(self) -> String
2957 Return the string to find (never empty).
2959 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2961 def GetReplaceString(*args
, **kwargs
):
2963 GetReplaceString(self) -> String
2965 Return the string to replace the search string with (only for replace
2966 and replace all events).
2968 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2970 def GetDialog(*args
, **kwargs
):
2972 GetDialog(self) -> FindReplaceDialog
2974 Return the pointer to the dialog which generated this event.
2976 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2978 def SetFlags(*args
, **kwargs
):
2979 """SetFlags(self, int flags)"""
2980 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2982 def SetFindString(*args
, **kwargs
):
2983 """SetFindString(self, String str)"""
2984 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2986 def SetReplaceString(*args
, **kwargs
):
2987 """SetReplaceString(self, String str)"""
2988 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2991 class FindDialogEventPtr(FindDialogEvent
):
2992 def __init__(self
, this
):
2994 if not hasattr(self
,"thisown"): self
.thisown
= 0
2995 self
.__class
__ = FindDialogEvent
2996 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2998 class FindReplaceData(_core
.Object
):
3000 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3001 to initialize the dialog with the default values and will keep the
3002 last values from the dialog when it is closed. It is also updated each
3003 time a `wx.FindDialogEvent` is generated so instead of using the
3004 `wx.FindDialogEvent` methods you can also directly query this object.
3006 Note that all SetXXX() methods may only be called before showing the
3007 dialog and calling them has no effect later.
3010 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3011 def __init__(self
, *args
, **kwargs
):
3013 __init__(self, int flags=0) -> FindReplaceData
3015 Constuctor initializes the flags to default value (0).
3017 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3018 self
.this
= newobj
.this
3021 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3024 if self
.thisown
: destroy(self
)
3027 def GetFindString(*args
, **kwargs
):
3029 GetFindString(self) -> String
3031 Get the string to find.
3033 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3035 def GetReplaceString(*args
, **kwargs
):
3037 GetReplaceString(self) -> String
3039 Get the replacement string.
3041 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3043 def GetFlags(*args
, **kwargs
):
3045 GetFlags(self) -> int
3047 Get the combination of flag values.
3049 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3051 def SetFlags(*args
, **kwargs
):
3053 SetFlags(self, int flags)
3055 Set the flags to use to initialize the controls of the dialog.
3057 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3059 def SetFindString(*args
, **kwargs
):
3061 SetFindString(self, String str)
3063 Set the string to find (used as initial value by the dialog).
3065 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3067 def SetReplaceString(*args
, **kwargs
):
3069 SetReplaceString(self, String str)
3071 Set the replacement string (used as initial value by the dialog).
3073 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3076 class FindReplaceDataPtr(FindReplaceData
):
3077 def __init__(self
, this
):
3079 if not hasattr(self
,"thisown"): self
.thisown
= 0
3080 self
.__class
__ = FindReplaceData
3081 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3083 class FindReplaceDialog(Dialog
):
3085 wx.FindReplaceDialog is a standard modeless dialog which is used to
3086 allow the user to search for some text (and possibly replace it with
3087 something else). The actual searching is supposed to be done in the
3088 owner window which is the parent of this dialog. Note that it means
3089 that unlike for the other standard dialogs this one must have a parent
3090 window. Also note that there is no way to use this dialog in a modal
3091 way; it is always, by design and implementation, modeless.
3094 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3095 def __init__(self
, *args
, **kwargs
):
3097 __init__(self, Window parent, FindReplaceData data, String title,
3098 int style=0) -> FindReplaceDialog
3100 Create a FindReplaceDialog. The parent and data parameters must be
3101 non-None. Use Show to display the dialog.
3103 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3104 self
.this
= newobj
.this
3107 self
._setOORInfo
(self
)
3109 def Create(*args
, **kwargs
):
3111 Create(self, Window parent, FindReplaceData data, String title,
3112 int style=0) -> bool
3114 Create the dialog, for 2-phase create.
3116 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3118 def GetData(*args
, **kwargs
):
3120 GetData(self) -> FindReplaceData
3122 Get the FindReplaceData object used by this dialog.
3124 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3126 def SetData(*args
, **kwargs
):
3128 SetData(self, FindReplaceData data)
3130 Set the FindReplaceData object used by this dialog.
3132 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3135 class FindReplaceDialogPtr(FindReplaceDialog
):
3136 def __init__(self
, this
):
3138 if not hasattr(self
,"thisown"): self
.thisown
= 0
3139 self
.__class
__ = FindReplaceDialog
3140 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3142 def PreFindReplaceDialog(*args
, **kwargs
):
3144 PreFindReplaceDialog() -> FindReplaceDialog
3146 Precreate a FindReplaceDialog for 2-phase creation
3148 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3152 #---------------------------------------------------------------------------
3154 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3155 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3156 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3157 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3158 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3159 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3160 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3161 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3162 class MDIParentFrame(Frame
):
3164 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3165 def __init__(self
, *args
, **kwargs
):
3167 __init__(self, Window parent, int id=-1, String title=EmptyString,
3168 Point pos=DefaultPosition, Size size=DefaultSize,
3169 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3170 String name=FrameNameStr) -> MDIParentFrame
3172 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3173 self
.this
= newobj
.this
3176 self
._setOORInfo
(self
)
3178 def Create(*args
, **kwargs
):
3180 Create(self, Window parent, int id=-1, String title=EmptyString,
3181 Point pos=DefaultPosition, Size size=DefaultSize,
3182 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3183 String name=FrameNameStr) -> bool
3185 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3187 def ActivateNext(*args
, **kwargs
):
3188 """ActivateNext(self)"""
3189 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3191 def ActivatePrevious(*args
, **kwargs
):
3192 """ActivatePrevious(self)"""
3193 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3195 def ArrangeIcons(*args
, **kwargs
):
3196 """ArrangeIcons(self)"""
3197 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3199 def Cascade(*args
, **kwargs
):
3201 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3203 def GetActiveChild(*args
, **kwargs
):
3204 """GetActiveChild(self) -> MDIChildFrame"""
3205 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3207 def GetClientWindow(*args
, **kwargs
):
3208 """GetClientWindow(self) -> MDIClientWindow"""
3209 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3211 def GetToolBar(*args
, **kwargs
):
3212 """GetToolBar(self) -> Window"""
3213 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3215 def GetWindowMenu(*args
, **kwargs
):
3216 """GetWindowMenu(self) -> Menu"""
3217 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3219 def SetWindowMenu(*args
, **kwargs
):
3220 """SetWindowMenu(self, Menu menu)"""
3221 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3223 def SetToolBar(*args
, **kwargs
):
3224 """SetToolBar(self, wxToolBar toolbar)"""
3225 return _windows_
.MDIParentFrame_SetToolBar(*args
, **kwargs
)
3227 def Tile(*args
, **kwargs
):
3229 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3232 class MDIParentFramePtr(MDIParentFrame
):
3233 def __init__(self
, this
):
3235 if not hasattr(self
,"thisown"): self
.thisown
= 0
3236 self
.__class
__ = MDIParentFrame
3237 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3239 def PreMDIParentFrame(*args
, **kwargs
):
3240 """PreMDIParentFrame() -> MDIParentFrame"""
3241 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3245 class MDIChildFrame(Frame
):
3247 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3248 def __init__(self
, *args
, **kwargs
):
3250 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3251 Point pos=DefaultPosition, Size size=DefaultSize,
3252 long style=DEFAULT_FRAME_STYLE,
3253 String name=FrameNameStr) -> MDIChildFrame
3255 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3256 self
.this
= newobj
.this
3259 self
._setOORInfo
(self
)
3261 def Create(*args
, **kwargs
):
3263 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3264 Point pos=DefaultPosition, Size size=DefaultSize,
3265 long style=DEFAULT_FRAME_STYLE,
3266 String name=FrameNameStr) -> bool
3268 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3270 def Activate(*args
, **kwargs
):
3271 """Activate(self)"""
3272 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3274 def Maximize(*args
, **kwargs
):
3275 """Maximize(self, bool maximize)"""
3276 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3278 def Restore(*args
, **kwargs
):
3280 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3283 class MDIChildFramePtr(MDIChildFrame
):
3284 def __init__(self
, this
):
3286 if not hasattr(self
,"thisown"): self
.thisown
= 0
3287 self
.__class
__ = MDIChildFrame
3288 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3290 def PreMDIChildFrame(*args
, **kwargs
):
3291 """PreMDIChildFrame() -> MDIChildFrame"""
3292 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3296 class MDIClientWindow(_core
.Window
):
3298 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3299 def __init__(self
, *args
, **kwargs
):
3300 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3301 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3302 self
.this
= newobj
.this
3305 self
._setOORInfo
(self
)
3307 def Create(*args
, **kwargs
):
3308 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3309 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3312 class MDIClientWindowPtr(MDIClientWindow
):
3313 def __init__(self
, this
):
3315 if not hasattr(self
,"thisown"): self
.thisown
= 0
3316 self
.__class
__ = MDIClientWindow
3317 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3319 def PreMDIClientWindow(*args
, **kwargs
):
3320 """PreMDIClientWindow() -> MDIClientWindow"""
3321 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3325 #---------------------------------------------------------------------------
3327 class PyWindow(_core
.Window
):
3329 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3330 def __init__(self
, *args
, **kwargs
):
3332 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3333 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3335 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3336 self
.this
= newobj
.this
3339 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3341 def _setCallbackInfo(*args
, **kwargs
):
3342 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3343 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3345 def SetBestSize(*args
, **kwargs
):
3346 """SetBestSize(self, Size size)"""
3347 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3349 def base_DoMoveWindow(*args
, **kwargs
):
3350 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3351 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3353 def base_DoSetSize(*args
, **kwargs
):
3354 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3355 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3357 def base_DoSetClientSize(*args
, **kwargs
):
3358 """base_DoSetClientSize(self, int width, int height)"""
3359 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3361 def base_DoSetVirtualSize(*args
, **kwargs
):
3362 """base_DoSetVirtualSize(self, int x, int y)"""
3363 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3365 def base_DoGetSize(*args
, **kwargs
):
3366 """base_DoGetSize() -> (width, height)"""
3367 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3369 def base_DoGetClientSize(*args
, **kwargs
):
3370 """base_DoGetClientSize() -> (width, height)"""
3371 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3373 def base_DoGetPosition(*args
, **kwargs
):
3374 """base_DoGetPosition() -> (x,y)"""
3375 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3377 def base_DoGetVirtualSize(*args
, **kwargs
):
3378 """base_DoGetVirtualSize(self) -> Size"""
3379 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3381 def base_DoGetBestSize(*args
, **kwargs
):
3382 """base_DoGetBestSize(self) -> Size"""
3383 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3385 def base_InitDialog(*args
, **kwargs
):
3386 """base_InitDialog(self)"""
3387 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3389 def base_TransferDataToWindow(*args
, **kwargs
):
3390 """base_TransferDataToWindow(self) -> bool"""
3391 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3393 def base_TransferDataFromWindow(*args
, **kwargs
):
3394 """base_TransferDataFromWindow(self) -> bool"""
3395 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3397 def base_Validate(*args
, **kwargs
):
3398 """base_Validate(self) -> bool"""
3399 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3401 def base_AcceptsFocus(*args
, **kwargs
):
3402 """base_AcceptsFocus(self) -> bool"""
3403 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3405 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3406 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3407 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3409 def base_GetMaxSize(*args
, **kwargs
):
3410 """base_GetMaxSize(self) -> Size"""
3411 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3413 def base_AddChild(*args
, **kwargs
):
3414 """base_AddChild(self, Window child)"""
3415 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3417 def base_RemoveChild(*args
, **kwargs
):
3418 """base_RemoveChild(self, Window child)"""
3419 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3421 def base_ShouldInheritColours(*args
, **kwargs
):
3422 """base_ShouldInheritColours(self) -> bool"""
3423 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3425 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3426 """base_ApplyParentThemeBackground(self, Colour c)"""
3427 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3429 def base_GetDefaultAttributes(*args
, **kwargs
):
3430 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3431 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3434 class PyWindowPtr(PyWindow
):
3435 def __init__(self
, this
):
3437 if not hasattr(self
,"thisown"): self
.thisown
= 0
3438 self
.__class
__ = PyWindow
3439 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3441 def PrePyWindow(*args
, **kwargs
):
3442 """PrePyWindow() -> PyWindow"""
3443 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3447 class PyPanel(Panel
):
3449 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3450 def __init__(self
, *args
, **kwargs
):
3452 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3453 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3455 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3456 self
.this
= newobj
.this
3459 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3461 def _setCallbackInfo(*args
, **kwargs
):
3462 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3463 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3465 def SetBestSize(*args
, **kwargs
):
3466 """SetBestSize(self, Size size)"""
3467 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3469 def base_DoMoveWindow(*args
, **kwargs
):
3470 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3471 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3473 def base_DoSetSize(*args
, **kwargs
):
3474 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3475 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3477 def base_DoSetClientSize(*args
, **kwargs
):
3478 """base_DoSetClientSize(self, int width, int height)"""
3479 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3481 def base_DoSetVirtualSize(*args
, **kwargs
):
3482 """base_DoSetVirtualSize(self, int x, int y)"""
3483 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3485 def base_DoGetSize(*args
, **kwargs
):
3486 """base_DoGetSize() -> (width, height)"""
3487 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3489 def base_DoGetClientSize(*args
, **kwargs
):
3490 """base_DoGetClientSize() -> (width, height)"""
3491 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3493 def base_DoGetPosition(*args
, **kwargs
):
3494 """base_DoGetPosition() -> (x,y)"""
3495 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3497 def base_DoGetVirtualSize(*args
, **kwargs
):
3498 """base_DoGetVirtualSize(self) -> Size"""
3499 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3501 def base_DoGetBestSize(*args
, **kwargs
):
3502 """base_DoGetBestSize(self) -> Size"""
3503 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3505 def base_InitDialog(*args
, **kwargs
):
3506 """base_InitDialog(self)"""
3507 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3509 def base_TransferDataToWindow(*args
, **kwargs
):
3510 """base_TransferDataToWindow(self) -> bool"""
3511 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3513 def base_TransferDataFromWindow(*args
, **kwargs
):
3514 """base_TransferDataFromWindow(self) -> bool"""
3515 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3517 def base_Validate(*args
, **kwargs
):
3518 """base_Validate(self) -> bool"""
3519 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3521 def base_AcceptsFocus(*args
, **kwargs
):
3522 """base_AcceptsFocus(self) -> bool"""
3523 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3525 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3526 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3527 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3529 def base_GetMaxSize(*args
, **kwargs
):
3530 """base_GetMaxSize(self) -> Size"""
3531 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3533 def base_AddChild(*args
, **kwargs
):
3534 """base_AddChild(self, Window child)"""
3535 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3537 def base_RemoveChild(*args
, **kwargs
):
3538 """base_RemoveChild(self, Window child)"""
3539 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3541 def base_ShouldInheritColours(*args
, **kwargs
):
3542 """base_ShouldInheritColours(self) -> bool"""
3543 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3545 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3546 """base_ApplyParentThemeBackground(self, Colour c)"""
3547 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3549 def base_GetDefaultAttributes(*args
, **kwargs
):
3550 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3551 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3554 class PyPanelPtr(PyPanel
):
3555 def __init__(self
, this
):
3557 if not hasattr(self
,"thisown"): self
.thisown
= 0
3558 self
.__class
__ = PyPanel
3559 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3561 def PrePyPanel(*args
, **kwargs
):
3562 """PrePyPanel() -> PyPanel"""
3563 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3567 class PyScrolledWindow(ScrolledWindow
):
3569 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3570 def __init__(self
, *args
, **kwargs
):
3572 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3573 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3575 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3576 self
.this
= newobj
.this
3579 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3581 def _setCallbackInfo(*args
, **kwargs
):
3582 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3583 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3585 def SetBestSize(*args
, **kwargs
):
3586 """SetBestSize(self, Size size)"""
3587 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3589 def base_DoMoveWindow(*args
, **kwargs
):
3590 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3591 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3593 def base_DoSetSize(*args
, **kwargs
):
3594 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3595 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3597 def base_DoSetClientSize(*args
, **kwargs
):
3598 """base_DoSetClientSize(self, int width, int height)"""
3599 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3601 def base_DoSetVirtualSize(*args
, **kwargs
):
3602 """base_DoSetVirtualSize(self, int x, int y)"""
3603 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3605 def base_DoGetSize(*args
, **kwargs
):
3606 """base_DoGetSize() -> (width, height)"""
3607 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3609 def base_DoGetClientSize(*args
, **kwargs
):
3610 """base_DoGetClientSize() -> (width, height)"""
3611 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3613 def base_DoGetPosition(*args
, **kwargs
):
3614 """base_DoGetPosition() -> (x,y)"""
3615 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3617 def base_DoGetVirtualSize(*args
, **kwargs
):
3618 """base_DoGetVirtualSize(self) -> Size"""
3619 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3621 def base_DoGetBestSize(*args
, **kwargs
):
3622 """base_DoGetBestSize(self) -> Size"""
3623 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3625 def base_InitDialog(*args
, **kwargs
):
3626 """base_InitDialog(self)"""
3627 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3629 def base_TransferDataToWindow(*args
, **kwargs
):
3630 """base_TransferDataToWindow(self) -> bool"""
3631 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3633 def base_TransferDataFromWindow(*args
, **kwargs
):
3634 """base_TransferDataFromWindow(self) -> bool"""
3635 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3637 def base_Validate(*args
, **kwargs
):
3638 """base_Validate(self) -> bool"""
3639 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3641 def base_AcceptsFocus(*args
, **kwargs
):
3642 """base_AcceptsFocus(self) -> bool"""
3643 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3645 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3646 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3647 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3649 def base_GetMaxSize(*args
, **kwargs
):
3650 """base_GetMaxSize(self) -> Size"""
3651 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3653 def base_AddChild(*args
, **kwargs
):
3654 """base_AddChild(self, Window child)"""
3655 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3657 def base_RemoveChild(*args
, **kwargs
):
3658 """base_RemoveChild(self, Window child)"""
3659 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3661 def base_ShouldInheritColours(*args
, **kwargs
):
3662 """base_ShouldInheritColours(self) -> bool"""
3663 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3665 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3666 """base_ApplyParentThemeBackground(self, Colour c)"""
3667 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3669 def base_GetDefaultAttributes(*args
, **kwargs
):
3670 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3671 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3674 class PyScrolledWindowPtr(PyScrolledWindow
):
3675 def __init__(self
, this
):
3677 if not hasattr(self
,"thisown"): self
.thisown
= 0
3678 self
.__class
__ = PyScrolledWindow
3679 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3681 def PrePyScrolledWindow(*args
, **kwargs
):
3682 """PrePyScrolledWindow() -> PyScrolledWindow"""
3683 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3687 #---------------------------------------------------------------------------
3689 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3690 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3691 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3692 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3693 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3694 class PrintData(_core
.Object
):
3696 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3697 def __init__(self
, *args
):
3699 __init__(self) -> PrintData
3700 __init__(self, PrintData data) -> PrintData
3702 newobj
= _windows_
.new_PrintData(*args
)
3703 self
.this
= newobj
.this
3706 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3709 if self
.thisown
: destroy(self
)
3712 def GetNoCopies(*args
, **kwargs
):
3713 """GetNoCopies(self) -> int"""
3714 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3716 def GetCollate(*args
, **kwargs
):
3717 """GetCollate(self) -> bool"""
3718 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3720 def GetOrientation(*args
, **kwargs
):
3721 """GetOrientation(self) -> int"""
3722 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3724 def Ok(*args
, **kwargs
):
3725 """Ok(self) -> bool"""
3726 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3728 def GetPrinterName(*args
, **kwargs
):
3729 """GetPrinterName(self) -> String"""
3730 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3732 def GetColour(*args
, **kwargs
):
3733 """GetColour(self) -> bool"""
3734 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3736 def GetDuplex(*args
, **kwargs
):
3737 """GetDuplex(self) -> int"""
3738 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3740 def GetPaperId(*args
, **kwargs
):
3741 """GetPaperId(self) -> int"""
3742 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3744 def GetPaperSize(*args
, **kwargs
):
3745 """GetPaperSize(self) -> Size"""
3746 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3748 def GetQuality(*args
, **kwargs
):
3749 """GetQuality(self) -> int"""
3750 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3752 def SetNoCopies(*args
, **kwargs
):
3753 """SetNoCopies(self, int v)"""
3754 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3756 def SetCollate(*args
, **kwargs
):
3757 """SetCollate(self, bool flag)"""
3758 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3760 def SetOrientation(*args
, **kwargs
):
3761 """SetOrientation(self, int orient)"""
3762 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3764 def SetPrinterName(*args
, **kwargs
):
3765 """SetPrinterName(self, String name)"""
3766 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3768 def SetColour(*args
, **kwargs
):
3769 """SetColour(self, bool colour)"""
3770 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3772 def SetDuplex(*args
, **kwargs
):
3773 """SetDuplex(self, int duplex)"""
3774 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3776 def SetPaperId(*args
, **kwargs
):
3777 """SetPaperId(self, int sizeId)"""
3778 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3780 def SetPaperSize(*args
, **kwargs
):
3781 """SetPaperSize(self, Size sz)"""
3782 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3784 def SetQuality(*args
, **kwargs
):
3785 """SetQuality(self, int quality)"""
3786 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3788 def GetPrinterCommand(*args
, **kwargs
):
3789 """GetPrinterCommand(self) -> String"""
3790 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3792 def GetPrinterOptions(*args
, **kwargs
):
3793 """GetPrinterOptions(self) -> String"""
3794 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3796 def GetPreviewCommand(*args
, **kwargs
):
3797 """GetPreviewCommand(self) -> String"""
3798 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3800 def GetFilename(*args
, **kwargs
):
3801 """GetFilename(self) -> String"""
3802 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3804 def GetFontMetricPath(*args
, **kwargs
):
3805 """GetFontMetricPath(self) -> String"""
3806 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3808 def GetPrinterScaleX(*args
, **kwargs
):
3809 """GetPrinterScaleX(self) -> double"""
3810 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3812 def GetPrinterScaleY(*args
, **kwargs
):
3813 """GetPrinterScaleY(self) -> double"""
3814 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3816 def GetPrinterTranslateX(*args
, **kwargs
):
3817 """GetPrinterTranslateX(self) -> long"""
3818 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3820 def GetPrinterTranslateY(*args
, **kwargs
):
3821 """GetPrinterTranslateY(self) -> long"""
3822 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3824 def GetPrintMode(*args
, **kwargs
):
3825 """GetPrintMode(self) -> int"""
3826 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3828 def SetPrinterCommand(*args
, **kwargs
):
3829 """SetPrinterCommand(self, String command)"""
3830 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3832 def SetPrinterOptions(*args
, **kwargs
):
3833 """SetPrinterOptions(self, String options)"""
3834 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3836 def SetPreviewCommand(*args
, **kwargs
):
3837 """SetPreviewCommand(self, String command)"""
3838 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3840 def SetFilename(*args
, **kwargs
):
3841 """SetFilename(self, String filename)"""
3842 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3844 def SetFontMetricPath(*args
, **kwargs
):
3845 """SetFontMetricPath(self, String path)"""
3846 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3848 def SetPrinterScaleX(*args
, **kwargs
):
3849 """SetPrinterScaleX(self, double x)"""
3850 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3852 def SetPrinterScaleY(*args
, **kwargs
):
3853 """SetPrinterScaleY(self, double y)"""
3854 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3856 def SetPrinterScaling(*args
, **kwargs
):
3857 """SetPrinterScaling(self, double x, double y)"""
3858 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3860 def SetPrinterTranslateX(*args
, **kwargs
):
3861 """SetPrinterTranslateX(self, long x)"""
3862 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3864 def SetPrinterTranslateY(*args
, **kwargs
):
3865 """SetPrinterTranslateY(self, long y)"""
3866 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3868 def SetPrinterTranslation(*args
, **kwargs
):
3869 """SetPrinterTranslation(self, long x, long y)"""
3870 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3872 def SetPrintMode(*args
, **kwargs
):
3873 """SetPrintMode(self, int printMode)"""
3874 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3876 def GetOutputStream(*args
, **kwargs
):
3877 """GetOutputStream(self) -> OutputStream"""
3878 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3880 def SetOutputStream(*args
, **kwargs
):
3881 """SetOutputStream(self, OutputStream outputstream)"""
3882 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3884 def __nonzero__(self
): return self
.Ok()
3886 class PrintDataPtr(PrintData
):
3887 def __init__(self
, this
):
3889 if not hasattr(self
,"thisown"): self
.thisown
= 0
3890 self
.__class
__ = PrintData
3891 _windows_
.PrintData_swigregister(PrintDataPtr
)
3892 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3893 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3895 class PageSetupDialogData(_core
.Object
):
3897 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3898 def __init__(self
, *args
):
3900 __init__(self) -> PageSetupDialogData
3901 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3903 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3904 self
.this
= newobj
.this
3907 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3910 if self
.thisown
: destroy(self
)
3913 def EnableHelp(*args
, **kwargs
):
3914 """EnableHelp(self, bool flag)"""
3915 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3917 def EnableMargins(*args
, **kwargs
):
3918 """EnableMargins(self, bool flag)"""
3919 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3921 def EnableOrientation(*args
, **kwargs
):
3922 """EnableOrientation(self, bool flag)"""
3923 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3925 def EnablePaper(*args
, **kwargs
):
3926 """EnablePaper(self, bool flag)"""
3927 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3929 def EnablePrinter(*args
, **kwargs
):
3930 """EnablePrinter(self, bool flag)"""
3931 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3933 def GetDefaultMinMargins(*args
, **kwargs
):
3934 """GetDefaultMinMargins(self) -> bool"""
3935 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3937 def GetEnableMargins(*args
, **kwargs
):
3938 """GetEnableMargins(self) -> bool"""
3939 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3941 def GetEnableOrientation(*args
, **kwargs
):
3942 """GetEnableOrientation(self) -> bool"""
3943 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3945 def GetEnablePaper(*args
, **kwargs
):
3946 """GetEnablePaper(self) -> bool"""
3947 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3949 def GetEnablePrinter(*args
, **kwargs
):
3950 """GetEnablePrinter(self) -> bool"""
3951 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3953 def GetEnableHelp(*args
, **kwargs
):
3954 """GetEnableHelp(self) -> bool"""
3955 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3957 def GetDefaultInfo(*args
, **kwargs
):
3958 """GetDefaultInfo(self) -> bool"""
3959 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3961 def GetMarginTopLeft(*args
, **kwargs
):
3962 """GetMarginTopLeft(self) -> Point"""
3963 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3965 def GetMarginBottomRight(*args
, **kwargs
):
3966 """GetMarginBottomRight(self) -> Point"""
3967 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3969 def GetMinMarginTopLeft(*args
, **kwargs
):
3970 """GetMinMarginTopLeft(self) -> Point"""
3971 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3973 def GetMinMarginBottomRight(*args
, **kwargs
):
3974 """GetMinMarginBottomRight(self) -> Point"""
3975 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3977 def GetPaperId(*args
, **kwargs
):
3978 """GetPaperId(self) -> int"""
3979 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3981 def GetPaperSize(*args
, **kwargs
):
3982 """GetPaperSize(self) -> Size"""
3983 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3985 def GetPrintData(*args
, **kwargs
):
3986 """GetPrintData(self) -> PrintData"""
3987 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3989 def Ok(*args
, **kwargs
):
3990 """Ok(self) -> bool"""
3991 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3993 def SetDefaultInfo(*args
, **kwargs
):
3994 """SetDefaultInfo(self, bool flag)"""
3995 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3997 def SetDefaultMinMargins(*args
, **kwargs
):
3998 """SetDefaultMinMargins(self, bool flag)"""
3999 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4001 def SetMarginTopLeft(*args
, **kwargs
):
4002 """SetMarginTopLeft(self, Point pt)"""
4003 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4005 def SetMarginBottomRight(*args
, **kwargs
):
4006 """SetMarginBottomRight(self, Point pt)"""
4007 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4009 def SetMinMarginTopLeft(*args
, **kwargs
):
4010 """SetMinMarginTopLeft(self, Point pt)"""
4011 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4013 def SetMinMarginBottomRight(*args
, **kwargs
):
4014 """SetMinMarginBottomRight(self, Point pt)"""
4015 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4017 def SetPaperId(*args
, **kwargs
):
4018 """SetPaperId(self, int id)"""
4019 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4021 def SetPaperSize(*args
, **kwargs
):
4022 """SetPaperSize(self, Size size)"""
4023 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4025 def SetPrintData(*args
, **kwargs
):
4026 """SetPrintData(self, PrintData printData)"""
4027 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4029 def __nonzero__(self
): return self
.Ok()
4031 class PageSetupDialogDataPtr(PageSetupDialogData
):
4032 def __init__(self
, this
):
4034 if not hasattr(self
,"thisown"): self
.thisown
= 0
4035 self
.__class
__ = PageSetupDialogData
4036 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4038 class PageSetupDialog(Dialog
):
4040 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4041 def __init__(self
, *args
, **kwargs
):
4042 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4043 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4044 self
.this
= newobj
.this
4047 self
._setOORInfo
(self
)
4049 def GetPageSetupData(*args
, **kwargs
):
4050 """GetPageSetupData(self) -> PageSetupDialogData"""
4051 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4053 def ShowModal(*args
, **kwargs
):
4054 """ShowModal(self) -> int"""
4055 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4058 class PageSetupDialogPtr(PageSetupDialog
):
4059 def __init__(self
, this
):
4061 if not hasattr(self
,"thisown"): self
.thisown
= 0
4062 self
.__class
__ = PageSetupDialog
4063 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4065 class PrintDialogData(_core
.Object
):
4067 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4068 def __init__(self
, *args
):
4070 __init__(self) -> PrintDialogData
4071 __init__(self, PrintData printData) -> PrintDialogData
4073 newobj
= _windows_
.new_PrintDialogData(*args
)
4074 self
.this
= newobj
.this
4077 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4080 if self
.thisown
: destroy(self
)
4083 def GetFromPage(*args
, **kwargs
):
4084 """GetFromPage(self) -> int"""
4085 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4087 def GetToPage(*args
, **kwargs
):
4088 """GetToPage(self) -> int"""
4089 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4091 def GetMinPage(*args
, **kwargs
):
4092 """GetMinPage(self) -> int"""
4093 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4095 def GetMaxPage(*args
, **kwargs
):
4096 """GetMaxPage(self) -> int"""
4097 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4099 def GetNoCopies(*args
, **kwargs
):
4100 """GetNoCopies(self) -> int"""
4101 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4103 def GetAllPages(*args
, **kwargs
):
4104 """GetAllPages(self) -> bool"""
4105 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4107 def GetSelection(*args
, **kwargs
):
4108 """GetSelection(self) -> bool"""
4109 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4111 def GetCollate(*args
, **kwargs
):
4112 """GetCollate(self) -> bool"""
4113 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4115 def GetPrintToFile(*args
, **kwargs
):
4116 """GetPrintToFile(self) -> bool"""
4117 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4119 def GetSetupDialog(*args
, **kwargs
):
4120 """GetSetupDialog(self) -> bool"""
4121 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4123 def SetFromPage(*args
, **kwargs
):
4124 """SetFromPage(self, int v)"""
4125 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4127 def SetToPage(*args
, **kwargs
):
4128 """SetToPage(self, int v)"""
4129 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4131 def SetMinPage(*args
, **kwargs
):
4132 """SetMinPage(self, int v)"""
4133 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4135 def SetMaxPage(*args
, **kwargs
):
4136 """SetMaxPage(self, int v)"""
4137 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4139 def SetNoCopies(*args
, **kwargs
):
4140 """SetNoCopies(self, int v)"""
4141 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4143 def SetAllPages(*args
, **kwargs
):
4144 """SetAllPages(self, bool flag)"""
4145 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4147 def SetSelection(*args
, **kwargs
):
4148 """SetSelection(self, bool flag)"""
4149 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4151 def SetCollate(*args
, **kwargs
):
4152 """SetCollate(self, bool flag)"""
4153 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4155 def SetPrintToFile(*args
, **kwargs
):
4156 """SetPrintToFile(self, bool flag)"""
4157 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4159 def SetSetupDialog(*args
, **kwargs
):
4160 """SetSetupDialog(self, bool flag)"""
4161 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4163 def EnablePrintToFile(*args
, **kwargs
):
4164 """EnablePrintToFile(self, bool flag)"""
4165 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4167 def EnableSelection(*args
, **kwargs
):
4168 """EnableSelection(self, bool flag)"""
4169 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4171 def EnablePageNumbers(*args
, **kwargs
):
4172 """EnablePageNumbers(self, bool flag)"""
4173 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4175 def EnableHelp(*args
, **kwargs
):
4176 """EnableHelp(self, bool flag)"""
4177 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4179 def GetEnablePrintToFile(*args
, **kwargs
):
4180 """GetEnablePrintToFile(self) -> bool"""
4181 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4183 def GetEnableSelection(*args
, **kwargs
):
4184 """GetEnableSelection(self) -> bool"""
4185 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4187 def GetEnablePageNumbers(*args
, **kwargs
):
4188 """GetEnablePageNumbers(self) -> bool"""
4189 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4191 def GetEnableHelp(*args
, **kwargs
):
4192 """GetEnableHelp(self) -> bool"""
4193 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4195 def Ok(*args
, **kwargs
):
4196 """Ok(self) -> bool"""
4197 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4199 def GetPrintData(*args
, **kwargs
):
4200 """GetPrintData(self) -> PrintData"""
4201 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4203 def SetPrintData(*args
, **kwargs
):
4204 """SetPrintData(self, PrintData printData)"""
4205 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4207 def __nonzero__(self
): return self
.Ok()
4209 class PrintDialogDataPtr(PrintDialogData
):
4210 def __init__(self
, this
):
4212 if not hasattr(self
,"thisown"): self
.thisown
= 0
4213 self
.__class
__ = PrintDialogData
4214 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4216 class PrintDialog(Dialog
):
4218 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4219 def __init__(self
, *args
, **kwargs
):
4220 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4221 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4222 self
.this
= newobj
.this
4225 self
._setOORInfo
(self
)
4227 def GetPrintDialogData(*args
, **kwargs
):
4228 """GetPrintDialogData(self) -> PrintDialogData"""
4229 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4231 def GetPrintDC(*args
, **kwargs
):
4232 """GetPrintDC(self) -> DC"""
4233 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4235 def ShowModal(*args
, **kwargs
):
4236 """ShowModal(self) -> int"""
4237 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4240 class PrintDialogPtr(PrintDialog
):
4241 def __init__(self
, this
):
4243 if not hasattr(self
,"thisown"): self
.thisown
= 0
4244 self
.__class
__ = PrintDialog
4245 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4247 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4248 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4249 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4250 class Printer(_core
.Object
):
4252 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4253 def __init__(self
, *args
, **kwargs
):
4254 """__init__(self, PrintDialogData data=None) -> Printer"""
4255 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4256 self
.this
= newobj
.this
4259 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4262 if self
.thisown
: destroy(self
)
4265 def CreateAbortWindow(*args
, **kwargs
):
4266 """CreateAbortWindow(self, Window parent, Printout printout)"""
4267 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4269 def GetPrintDialogData(*args
, **kwargs
):
4270 """GetPrintDialogData(self) -> PrintDialogData"""
4271 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4273 def Print(*args
, **kwargs
):
4274 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4275 return _windows_
.Printer_Print(*args
, **kwargs
)
4277 def PrintDialog(*args
, **kwargs
):
4278 """PrintDialog(self, Window parent) -> DC"""
4279 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4281 def ReportError(*args
, **kwargs
):
4282 """ReportError(self, Window parent, Printout printout, String message)"""
4283 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4285 def Setup(*args
, **kwargs
):
4286 """Setup(self, Window parent) -> bool"""
4287 return _windows_
.Printer_Setup(*args
, **kwargs
)
4289 def GetAbort(*args
, **kwargs
):
4290 """GetAbort(self) -> bool"""
4291 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4293 def GetLastError(*args
, **kwargs
):
4294 """GetLastError() -> int"""
4295 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4297 GetLastError
= staticmethod(GetLastError
)
4299 class PrinterPtr(Printer
):
4300 def __init__(self
, this
):
4302 if not hasattr(self
,"thisown"): self
.thisown
= 0
4303 self
.__class
__ = Printer
4304 _windows_
.Printer_swigregister(PrinterPtr
)
4306 def Printer_GetLastError(*args
, **kwargs
):
4307 """Printer_GetLastError() -> int"""
4308 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4310 class Printout(_core
.Object
):
4312 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4313 def __init__(self
, *args
, **kwargs
):
4314 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4315 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4316 self
.this
= newobj
.this
4319 self
._setCallbackInfo
(self
, Printout
)
4321 def _setCallbackInfo(*args
, **kwargs
):
4322 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4323 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4325 def GetTitle(*args
, **kwargs
):
4326 """GetTitle(self) -> String"""
4327 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4329 def GetDC(*args
, **kwargs
):
4330 """GetDC(self) -> DC"""
4331 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4333 def SetDC(*args
, **kwargs
):
4334 """SetDC(self, DC dc)"""
4335 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4337 def SetPageSizePixels(*args
, **kwargs
):
4338 """SetPageSizePixels(self, int w, int h)"""
4339 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4341 def GetPageSizePixels(*args
, **kwargs
):
4342 """GetPageSizePixels() -> (w, h)"""
4343 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4345 def SetPageSizeMM(*args
, **kwargs
):
4346 """SetPageSizeMM(self, int w, int h)"""
4347 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4349 def GetPageSizeMM(*args
, **kwargs
):
4350 """GetPageSizeMM() -> (w, h)"""
4351 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4353 def SetPPIScreen(*args
, **kwargs
):
4354 """SetPPIScreen(self, int x, int y)"""
4355 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4357 def GetPPIScreen(*args
, **kwargs
):
4358 """GetPPIScreen() -> (x,y)"""
4359 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4361 def SetPPIPrinter(*args
, **kwargs
):
4362 """SetPPIPrinter(self, int x, int y)"""
4363 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4365 def GetPPIPrinter(*args
, **kwargs
):
4366 """GetPPIPrinter() -> (x,y)"""
4367 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4369 def IsPreview(*args
, **kwargs
):
4370 """IsPreview(self) -> bool"""
4371 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4373 def SetIsPreview(*args
, **kwargs
):
4374 """SetIsPreview(self, bool p)"""
4375 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4377 def base_OnBeginDocument(*args
, **kwargs
):
4378 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4379 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4381 def base_OnEndDocument(*args
, **kwargs
):
4382 """base_OnEndDocument(self)"""
4383 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4385 def base_OnBeginPrinting(*args
, **kwargs
):
4386 """base_OnBeginPrinting(self)"""
4387 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4389 def base_OnEndPrinting(*args
, **kwargs
):
4390 """base_OnEndPrinting(self)"""
4391 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4393 def base_OnPreparePrinting(*args
, **kwargs
):
4394 """base_OnPreparePrinting(self)"""
4395 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4397 def base_HasPage(*args
, **kwargs
):
4398 """base_HasPage(self, int page) -> bool"""
4399 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4401 def base_GetPageInfo(*args
, **kwargs
):
4402 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4403 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4406 class PrintoutPtr(Printout
):
4407 def __init__(self
, this
):
4409 if not hasattr(self
,"thisown"): self
.thisown
= 0
4410 self
.__class
__ = Printout
4411 _windows_
.Printout_swigregister(PrintoutPtr
)
4413 class PreviewCanvas(ScrolledWindow
):
4415 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4416 def __init__(self
, *args
, **kwargs
):
4418 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4419 Size size=DefaultSize, long style=0,
4420 String name=PreviewCanvasNameStr) -> PreviewCanvas
4422 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4423 self
.this
= newobj
.this
4426 self
._setOORInfo
(self
)
4429 class PreviewCanvasPtr(PreviewCanvas
):
4430 def __init__(self
, this
):
4432 if not hasattr(self
,"thisown"): self
.thisown
= 0
4433 self
.__class
__ = PreviewCanvas
4434 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4436 class PreviewFrame(Frame
):
4438 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4439 def __init__(self
, *args
, **kwargs
):
4441 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4442 Size size=DefaultSize,
4443 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4445 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4446 self
.this
= newobj
.this
4449 self
._setOORInfo
(self
)
4451 def Initialize(*args
, **kwargs
):
4452 """Initialize(self)"""
4453 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4455 def CreateControlBar(*args
, **kwargs
):
4456 """CreateControlBar(self)"""
4457 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4459 def CreateCanvas(*args
, **kwargs
):
4460 """CreateCanvas(self)"""
4461 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4463 def GetControlBar(*args
, **kwargs
):
4464 """GetControlBar(self) -> PreviewControlBar"""
4465 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4468 class PreviewFramePtr(PreviewFrame
):
4469 def __init__(self
, this
):
4471 if not hasattr(self
,"thisown"): self
.thisown
= 0
4472 self
.__class
__ = PreviewFrame
4473 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4475 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4476 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4477 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4478 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4479 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4480 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4481 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4482 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4483 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4484 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4485 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4486 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4487 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4488 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4489 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4490 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4491 class PreviewControlBar(Panel
):
4493 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4494 def __init__(self
, *args
, **kwargs
):
4496 __init__(self, PrintPreview preview, long buttons, Window parent,
4497 Point pos=DefaultPosition, Size size=DefaultSize,
4498 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4500 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4501 self
.this
= newobj
.this
4504 self
._setOORInfo
(self
)
4506 def GetZoomControl(*args
, **kwargs
):
4507 """GetZoomControl(self) -> int"""
4508 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4510 def SetZoomControl(*args
, **kwargs
):
4511 """SetZoomControl(self, int zoom)"""
4512 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4514 def GetPrintPreview(*args
, **kwargs
):
4515 """GetPrintPreview(self) -> PrintPreview"""
4516 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4518 def OnNext(*args
, **kwargs
):
4520 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4522 def OnPrevious(*args
, **kwargs
):
4523 """OnPrevious(self)"""
4524 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4526 def OnFirst(*args
, **kwargs
):
4528 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4530 def OnLast(*args
, **kwargs
):
4532 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4534 def OnGoto(*args
, **kwargs
):
4536 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4539 class PreviewControlBarPtr(PreviewControlBar
):
4540 def __init__(self
, this
):
4542 if not hasattr(self
,"thisown"): self
.thisown
= 0
4543 self
.__class
__ = PreviewControlBar
4544 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4546 class PrintPreview(_core
.Object
):
4548 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4549 def __init__(self
, *args
):
4551 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4552 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4554 newobj
= _windows_
.new_PrintPreview(*args
)
4555 self
.this
= newobj
.this
4558 def SetCurrentPage(*args
, **kwargs
):
4559 """SetCurrentPage(self, int pageNum) -> bool"""
4560 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4562 def GetCurrentPage(*args
, **kwargs
):
4563 """GetCurrentPage(self) -> int"""
4564 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4566 def SetPrintout(*args
, **kwargs
):
4567 """SetPrintout(self, Printout printout)"""
4568 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4570 def GetPrintout(*args
, **kwargs
):
4571 """GetPrintout(self) -> Printout"""
4572 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4574 def GetPrintoutForPrinting(*args
, **kwargs
):
4575 """GetPrintoutForPrinting(self) -> Printout"""
4576 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4578 def SetFrame(*args
, **kwargs
):
4579 """SetFrame(self, Frame frame)"""
4580 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4582 def SetCanvas(*args
, **kwargs
):
4583 """SetCanvas(self, PreviewCanvas canvas)"""
4584 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4586 def GetFrame(*args
, **kwargs
):
4587 """GetFrame(self) -> Frame"""
4588 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4590 def GetCanvas(*args
, **kwargs
):
4591 """GetCanvas(self) -> PreviewCanvas"""
4592 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4594 def PaintPage(*args
, **kwargs
):
4595 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4596 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4598 def DrawBlankPage(*args
, **kwargs
):
4599 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4600 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4602 def RenderPage(*args
, **kwargs
):
4603 """RenderPage(self, int pageNum) -> bool"""
4604 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4606 def AdjustScrollbars(*args
, **kwargs
):
4607 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4608 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4610 def GetPrintDialogData(*args
, **kwargs
):
4611 """GetPrintDialogData(self) -> PrintDialogData"""
4612 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4614 def SetZoom(*args
, **kwargs
):
4615 """SetZoom(self, int percent)"""
4616 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4618 def GetZoom(*args
, **kwargs
):
4619 """GetZoom(self) -> int"""
4620 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4622 def GetMaxPage(*args
, **kwargs
):
4623 """GetMaxPage(self) -> int"""
4624 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4626 def GetMinPage(*args
, **kwargs
):
4627 """GetMinPage(self) -> int"""
4628 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4630 def Ok(*args
, **kwargs
):
4631 """Ok(self) -> bool"""
4632 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4634 def SetOk(*args
, **kwargs
):
4635 """SetOk(self, bool ok)"""
4636 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4638 def Print(*args
, **kwargs
):
4639 """Print(self, bool interactive) -> bool"""
4640 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4642 def DetermineScaling(*args
, **kwargs
):
4643 """DetermineScaling(self)"""
4644 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4646 def __nonzero__(self
): return self
.Ok()
4648 class PrintPreviewPtr(PrintPreview
):
4649 def __init__(self
, this
):
4651 if not hasattr(self
,"thisown"): self
.thisown
= 0
4652 self
.__class
__ = PrintPreview
4653 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4655 class PyPrintPreview(PrintPreview
):
4657 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4658 def __init__(self
, *args
):
4660 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4661 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4663 newobj
= _windows_
.new_PyPrintPreview(*args
)
4664 self
.this
= newobj
.this
4667 self
._setCallbackInfo
(self
, PyPrintPreview
)
4669 def _setCallbackInfo(*args
, **kwargs
):
4670 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4671 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4673 def base_SetCurrentPage(*args
, **kwargs
):
4674 """base_SetCurrentPage(self, int pageNum) -> bool"""
4675 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4677 def base_PaintPage(*args
, **kwargs
):
4678 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4679 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4681 def base_DrawBlankPage(*args
, **kwargs
):
4682 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4683 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4685 def base_RenderPage(*args
, **kwargs
):
4686 """base_RenderPage(self, int pageNum) -> bool"""
4687 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4689 def base_SetZoom(*args
, **kwargs
):
4690 """base_SetZoom(self, int percent)"""
4691 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4693 def base_Print(*args
, **kwargs
):
4694 """base_Print(self, bool interactive) -> bool"""
4695 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4697 def base_DetermineScaling(*args
, **kwargs
):
4698 """base_DetermineScaling(self)"""
4699 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4702 class PyPrintPreviewPtr(PyPrintPreview
):
4703 def __init__(self
, this
):
4705 if not hasattr(self
,"thisown"): self
.thisown
= 0
4706 self
.__class
__ = PyPrintPreview
4707 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4709 class PyPreviewFrame(PreviewFrame
):
4711 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4712 def __init__(self
, *args
, **kwargs
):
4714 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4715 Size size=DefaultSize,
4716 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4718 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4719 self
.this
= newobj
.this
4722 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4724 def _setCallbackInfo(*args
, **kwargs
):
4725 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4726 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4728 def SetPreviewCanvas(*args
, **kwargs
):
4729 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4730 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4732 def SetControlBar(*args
, **kwargs
):
4733 """SetControlBar(self, PreviewControlBar bar)"""
4734 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4736 def base_Initialize(*args
, **kwargs
):
4737 """base_Initialize(self)"""
4738 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4740 def base_CreateCanvas(*args
, **kwargs
):
4741 """base_CreateCanvas(self)"""
4742 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4744 def base_CreateControlBar(*args
, **kwargs
):
4745 """base_CreateControlBar(self)"""
4746 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4749 class PyPreviewFramePtr(PyPreviewFrame
):
4750 def __init__(self
, this
):
4752 if not hasattr(self
,"thisown"): self
.thisown
= 0
4753 self
.__class
__ = PyPreviewFrame
4754 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4756 class PyPreviewControlBar(PreviewControlBar
):
4758 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4759 def __init__(self
, *args
, **kwargs
):
4761 __init__(self, PrintPreview preview, long buttons, Window parent,
4762 Point pos=DefaultPosition, Size size=DefaultSize,
4763 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4765 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4766 self
.this
= newobj
.this
4769 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4771 def _setCallbackInfo(*args
, **kwargs
):
4772 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4773 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4775 def SetPrintPreview(*args
, **kwargs
):
4776 """SetPrintPreview(self, PrintPreview preview)"""
4777 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4779 def base_CreateButtons(*args
, **kwargs
):
4780 """base_CreateButtons(self)"""
4781 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4783 def base_SetZoomControl(*args
, **kwargs
):
4784 """base_SetZoomControl(self, int zoom)"""
4785 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4788 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4789 def __init__(self
, this
):
4791 if not hasattr(self
,"thisown"): self
.thisown
= 0
4792 self
.__class
__ = PyPreviewControlBar
4793 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)