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
)
368 def MacSetMetalAppearance(*args
, **kwargs
):
369 """MacSetMetalAppearance(self, bool on)"""
370 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
372 def MacGetMetalAppearance(*args
, **kwargs
):
373 """MacGetMetalAppearance(self) -> bool"""
374 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
377 class TopLevelWindowPtr(TopLevelWindow
):
378 def __init__(self
, this
):
380 if not hasattr(self
,"thisown"): self
.thisown
= 0
381 self
.__class
__ = TopLevelWindow
382 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
383 cvar
= _windows_
.cvar
384 FrameNameStr
= cvar
.FrameNameStr
385 DialogNameStr
= cvar
.DialogNameStr
386 StatusLineNameStr
= cvar
.StatusLineNameStr
387 ToolBarNameStr
= cvar
.ToolBarNameStr
389 #---------------------------------------------------------------------------
391 class Frame(TopLevelWindow
):
393 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
394 def __init__(self
, *args
, **kwargs
):
396 __init__(self, Window parent, int id=-1, String title=EmptyString,
397 Point pos=DefaultPosition, Size size=DefaultSize,
398 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
400 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
401 self
.this
= newobj
.this
404 self
._setOORInfo
(self
)
406 def Create(*args
, **kwargs
):
408 Create(self, Window parent, int id=-1, String title=EmptyString,
409 Point pos=DefaultPosition, Size size=DefaultSize,
410 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
412 return _windows_
.Frame_Create(*args
, **kwargs
)
414 def GetClientAreaOrigin(*args
, **kwargs
):
416 GetClientAreaOrigin(self) -> Point
418 Get the origin of the client area of the window relative to the
419 window's top left corner (the client area may be shifted because of
420 the borders, scrollbars, other decorations...)
422 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
424 def SendSizeEvent(*args
, **kwargs
):
425 """SendSizeEvent(self)"""
426 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
428 def SetMenuBar(*args
, **kwargs
):
429 """SetMenuBar(self, MenuBar menubar)"""
430 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
432 def GetMenuBar(*args
, **kwargs
):
433 """GetMenuBar(self) -> MenuBar"""
434 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
436 def ProcessCommand(*args
, **kwargs
):
437 """ProcessCommand(self, int winid) -> bool"""
438 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
440 Command
= ProcessCommand
441 def CreateStatusBar(*args
, **kwargs
):
443 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
444 String name=StatusLineNameStr) -> StatusBar
446 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
448 def GetStatusBar(*args
, **kwargs
):
449 """GetStatusBar(self) -> StatusBar"""
450 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
452 def SetStatusBar(*args
, **kwargs
):
453 """SetStatusBar(self, StatusBar statBar)"""
454 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
456 def SetStatusText(*args
, **kwargs
):
457 """SetStatusText(self, String text, int number=0)"""
458 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
460 def SetStatusWidths(*args
, **kwargs
):
461 """SetStatusWidths(self, int widths, int widths_field)"""
462 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
464 def PushStatusText(*args
, **kwargs
):
465 """PushStatusText(self, String text, int number=0)"""
466 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
468 def PopStatusText(*args
, **kwargs
):
469 """PopStatusText(self, int number=0)"""
470 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
472 def SetStatusBarPane(*args
, **kwargs
):
473 """SetStatusBarPane(self, int n)"""
474 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
476 def GetStatusBarPane(*args
, **kwargs
):
477 """GetStatusBarPane(self) -> int"""
478 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
480 def CreateToolBar(*args
, **kwargs
):
481 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
482 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
484 def GetToolBar(*args
, **kwargs
):
485 """GetToolBar(self) -> wxToolBar"""
486 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
488 def SetToolBar(*args
, **kwargs
):
489 """SetToolBar(self, wxToolBar toolbar)"""
490 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
492 def DoGiveHelp(*args
, **kwargs
):
493 """DoGiveHelp(self, String text, bool show)"""
494 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
496 def DoMenuUpdates(*args
, **kwargs
):
497 """DoMenuUpdates(self, Menu menu=None)"""
498 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
500 def GetClassDefaultAttributes(*args
, **kwargs
):
502 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
504 Get the default attributes for this class. This is useful if you want
505 to use the same font or colour in your own control as in a standard
506 control -- which is a much better idea than hard coding specific
507 colours or fonts which might look completely out of place on the
508 user's system, especially if it uses themes.
510 The variant parameter is only relevant under Mac currently and is
511 ignore under other platforms. Under Mac, it will change the size of
512 the returned font. See `wx.Window.SetWindowVariant` for more about
515 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
517 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
519 class FramePtr(Frame
):
520 def __init__(self
, this
):
522 if not hasattr(self
,"thisown"): self
.thisown
= 0
523 self
.__class
__ = Frame
524 _windows_
.Frame_swigregister(FramePtr
)
526 def PreFrame(*args
, **kwargs
):
527 """PreFrame() -> Frame"""
528 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
532 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
534 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
536 Get the default attributes for this class. This is useful if you want
537 to use the same font or colour in your own control as in a standard
538 control -- which is a much better idea than hard coding specific
539 colours or fonts which might look completely out of place on the
540 user's system, especially if it uses themes.
542 The variant parameter is only relevant under Mac currently and is
543 ignore under other platforms. Under Mac, it will change the size of
544 the returned font. See `wx.Window.SetWindowVariant` for more about
547 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
549 #---------------------------------------------------------------------------
551 class Dialog(TopLevelWindow
):
553 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
554 def __init__(self
, *args
, **kwargs
):
556 __init__(self, Window parent, int id=-1, String title=EmptyString,
557 Point pos=DefaultPosition, Size size=DefaultSize,
558 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
560 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
561 self
.this
= newobj
.this
564 self
._setOORInfo
(self
)
566 def Create(*args
, **kwargs
):
568 Create(self, Window parent, int id=-1, String title=EmptyString,
569 Point pos=DefaultPosition, Size size=DefaultSize,
570 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
572 return _windows_
.Dialog_Create(*args
, **kwargs
)
574 def SetReturnCode(*args
, **kwargs
):
575 """SetReturnCode(self, int returnCode)"""
576 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
578 def GetReturnCode(*args
, **kwargs
):
579 """GetReturnCode(self) -> int"""
580 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
582 def CreateTextSizer(*args
, **kwargs
):
583 """CreateTextSizer(self, String message) -> Sizer"""
584 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
586 def CreateButtonSizer(*args
, **kwargs
):
587 """CreateButtonSizer(self, long flags) -> Sizer"""
588 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
590 def IsModal(*args
, **kwargs
):
591 """IsModal(self) -> bool"""
592 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
594 def ShowModal(*args
, **kwargs
):
595 """ShowModal(self) -> int"""
596 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
598 def EndModal(*args
, **kwargs
):
599 """EndModal(self, int retCode)"""
600 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
602 def GetClassDefaultAttributes(*args
, **kwargs
):
604 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
606 Get the default attributes for this class. This is useful if you want
607 to use the same font or colour in your own control as in a standard
608 control -- which is a much better idea than hard coding specific
609 colours or fonts which might look completely out of place on the
610 user's system, especially if it uses themes.
612 The variant parameter is only relevant under Mac currently and is
613 ignore under other platforms. Under Mac, it will change the size of
614 the returned font. See `wx.Window.SetWindowVariant` for more about
617 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
619 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
620 def SendSizeEvent(self
):
621 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
624 class DialogPtr(Dialog
):
625 def __init__(self
, this
):
627 if not hasattr(self
,"thisown"): self
.thisown
= 0
628 self
.__class
__ = Dialog
629 _windows_
.Dialog_swigregister(DialogPtr
)
631 def PreDialog(*args
, **kwargs
):
632 """PreDialog() -> Dialog"""
633 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
637 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
639 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
641 Get the default attributes for this class. This is useful if you want
642 to use the same font or colour in your own control as in a standard
643 control -- which is a much better idea than hard coding specific
644 colours or fonts which might look completely out of place on the
645 user's system, especially if it uses themes.
647 The variant parameter is only relevant under Mac currently and is
648 ignore under other platforms. Under Mac, it will change the size of
649 the returned font. See `wx.Window.SetWindowVariant` for more about
652 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
654 #---------------------------------------------------------------------------
656 class MiniFrame(Frame
):
658 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
659 def __init__(self
, *args
, **kwargs
):
661 __init__(self, Window parent, int id=-1, String title=EmptyString,
662 Point pos=DefaultPosition, Size size=DefaultSize,
663 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
665 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
666 self
.this
= newobj
.this
669 self
._setOORInfo
(self
)
671 def Create(*args
, **kwargs
):
673 Create(self, Window parent, int id=-1, String title=EmptyString,
674 Point pos=DefaultPosition, Size size=DefaultSize,
675 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
677 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
680 class MiniFramePtr(MiniFrame
):
681 def __init__(self
, this
):
683 if not hasattr(self
,"thisown"): self
.thisown
= 0
684 self
.__class
__ = MiniFrame
685 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
687 def PreMiniFrame(*args
, **kwargs
):
688 """PreMiniFrame() -> MiniFrame"""
689 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
693 #---------------------------------------------------------------------------
695 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
696 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
697 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
698 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
699 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
700 class SplashScreenWindow(_core
.Window
):
702 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
703 def __init__(self
, *args
, **kwargs
):
705 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
706 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
708 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
709 self
.this
= newobj
.this
712 self
._setOORInfo
(self
)
714 def SetBitmap(*args
, **kwargs
):
715 """SetBitmap(self, Bitmap bitmap)"""
716 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
718 def GetBitmap(*args
, **kwargs
):
719 """GetBitmap(self) -> Bitmap"""
720 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
723 class SplashScreenWindowPtr(SplashScreenWindow
):
724 def __init__(self
, this
):
726 if not hasattr(self
,"thisown"): self
.thisown
= 0
727 self
.__class
__ = SplashScreenWindow
728 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
730 class SplashScreen(Frame
):
732 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
733 def __init__(self
, *args
, **kwargs
):
735 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
736 Window parent, int id=-1, Point pos=DefaultPosition,
737 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
739 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
740 self
.this
= newobj
.this
743 self
._setOORInfo
(self
)
745 def GetSplashStyle(*args
, **kwargs
):
746 """GetSplashStyle(self) -> long"""
747 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
749 def GetSplashWindow(*args
, **kwargs
):
750 """GetSplashWindow(self) -> SplashScreenWindow"""
751 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
753 def GetTimeout(*args
, **kwargs
):
754 """GetTimeout(self) -> int"""
755 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
758 class SplashScreenPtr(SplashScreen
):
759 def __init__(self
, this
):
761 if not hasattr(self
,"thisown"): self
.thisown
= 0
762 self
.__class
__ = SplashScreen
763 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
765 #---------------------------------------------------------------------------
767 SB_NORMAL
= _windows_
.SB_NORMAL
768 SB_FLAT
= _windows_
.SB_FLAT
769 SB_RAISED
= _windows_
.SB_RAISED
770 class StatusBar(_core
.Window
):
772 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
773 def __init__(self
, *args
, **kwargs
):
774 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
775 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
776 self
.this
= newobj
.this
779 self
._setOORInfo
(self
)
781 def Create(*args
, **kwargs
):
782 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
783 return _windows_
.StatusBar_Create(*args
, **kwargs
)
785 def SetFieldsCount(*args
, **kwargs
):
786 """SetFieldsCount(self, int number=1)"""
787 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
789 def GetFieldsCount(*args
, **kwargs
):
790 """GetFieldsCount(self) -> int"""
791 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
793 def SetStatusText(*args
, **kwargs
):
794 """SetStatusText(self, String text, int number=0)"""
795 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
797 def GetStatusText(*args
, **kwargs
):
798 """GetStatusText(self, int number=0) -> String"""
799 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
801 def PushStatusText(*args
, **kwargs
):
802 """PushStatusText(self, String text, int number=0)"""
803 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
805 def PopStatusText(*args
, **kwargs
):
806 """PopStatusText(self, int number=0)"""
807 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
809 def SetStatusWidths(*args
, **kwargs
):
810 """SetStatusWidths(self, int widths, int widths_field)"""
811 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
813 def SetStatusStyles(*args
, **kwargs
):
814 """SetStatusStyles(self, int styles, int styles_field)"""
815 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
817 def GetFieldRect(*args
, **kwargs
):
818 """GetFieldRect(self, int i) -> Rect"""
819 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
821 def SetMinHeight(*args
, **kwargs
):
822 """SetMinHeight(self, int height)"""
823 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
825 def GetBorderX(*args
, **kwargs
):
826 """GetBorderX(self) -> int"""
827 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
829 def GetBorderY(*args
, **kwargs
):
830 """GetBorderY(self) -> int"""
831 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
833 def GetClassDefaultAttributes(*args
, **kwargs
):
835 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
837 Get the default attributes for this class. This is useful if you want
838 to use the same font or colour in your own control as in a standard
839 control -- which is a much better idea than hard coding specific
840 colours or fonts which might look completely out of place on the
841 user's system, especially if it uses themes.
843 The variant parameter is only relevant under Mac currently and is
844 ignore under other platforms. Under Mac, it will change the size of
845 the returned font. See `wx.Window.SetWindowVariant` for more about
848 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
850 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
852 class StatusBarPtr(StatusBar
):
853 def __init__(self
, this
):
855 if not hasattr(self
,"thisown"): self
.thisown
= 0
856 self
.__class
__ = StatusBar
857 _windows_
.StatusBar_swigregister(StatusBarPtr
)
859 def PreStatusBar(*args
, **kwargs
):
860 """PreStatusBar() -> StatusBar"""
861 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
865 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
867 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
869 Get the default attributes for this class. This is useful if you want
870 to use the same font or colour in your own control as in a standard
871 control -- which is a much better idea than hard coding specific
872 colours or fonts which might look completely out of place on the
873 user's system, especially if it uses themes.
875 The variant parameter is only relevant under Mac currently and is
876 ignore under other platforms. Under Mac, it will change the size of
877 the returned font. See `wx.Window.SetWindowVariant` for more about
880 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
882 #---------------------------------------------------------------------------
884 SP_NOBORDER
= _windows_
.SP_NOBORDER
885 SP_NOSASH
= _windows_
.SP_NOSASH
886 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
887 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
888 SP_3DSASH
= _windows_
.SP_3DSASH
889 SP_3DBORDER
= _windows_
.SP_3DBORDER
890 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
891 SP_BORDER
= _windows_
.SP_BORDER
892 SP_3D
= _windows_
.SP_3D
893 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
894 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
895 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
896 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
897 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
898 class SplitterWindow(_core
.Window
):
900 wx.SplitterWindow manages up to two subwindows or panes, with an
901 optional vertical or horizontal split which can be used with the mouse
905 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
906 def __init__(self
, *args
, **kwargs
):
908 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
909 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
911 Constructor. Creates and shows a SplitterWindow.
913 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
914 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
915 self
.this
= newobj
.this
918 self
._setOORInfo
(self
)
920 def Create(*args
, **kwargs
):
922 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
923 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
925 Create the GUI part of the SplitterWindow for the 2-phase create.
927 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
929 def GetWindow1(*args
, **kwargs
):
931 GetWindow1(self) -> Window
933 Gets the only or left/top pane.
935 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
937 def GetWindow2(*args
, **kwargs
):
939 GetWindow2(self) -> Window
941 Gets the right/bottom pane.
943 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
945 def SetSplitMode(*args
, **kwargs
):
947 SetSplitMode(self, int mode)
949 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
950 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
953 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
955 def GetSplitMode(*args
, **kwargs
):
957 GetSplitMode(self) -> int
961 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
963 def Initialize(*args
, **kwargs
):
965 Initialize(self, Window window)
967 Initializes the splitter window to have one pane. This should be
968 called if you wish to initially view only a single pane in the
971 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
973 def SplitVertically(*args
, **kwargs
):
975 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
977 Initializes the left and right panes of the splitter window.
979 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
981 def SplitHorizontally(*args
, **kwargs
):
983 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
985 Initializes the top and bottom panes of the splitter window.
987 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
989 def Unsplit(*args
, **kwargs
):
991 Unsplit(self, Window toRemove=None) -> bool
993 Unsplits the window. Pass the pane to remove, or None to remove the
994 right or bottom pane. Returns True if successful, False otherwise (the
995 window was not split).
997 This function will not actually delete the pane being
998 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
999 for the desired behaviour. By default, the pane being
1000 removed is only hidden.
1002 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1004 def ReplaceWindow(*args
, **kwargs
):
1006 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1008 This function replaces one of the windows managed by the
1009 SplitterWindow with another one. It is in general better to use it
1010 instead of calling Unsplit() and then resplitting the window back
1011 because it will provoke much less flicker. It is valid to call this
1012 function whether the splitter has two windows or only one.
1014 Both parameters should be non-None and winOld must specify one of the
1015 windows managed by the splitter. If the parameters are incorrect or
1016 the window couldn't be replaced, False is returned. Otherwise the
1017 function will return True, but please notice that it will not Destroy
1018 the replaced window and you may wish to do it yourself.
1020 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1022 def UpdateSize(*args
, **kwargs
):
1026 Causes any pending sizing of the sash and child panes to take place
1029 Such resizing normally takes place in idle time, in order to wait for
1030 layout to be completed. However, this can cause unacceptable flicker
1031 as the panes are resized after the window has been shown. To work
1032 around this, you can perform window layout (for example by sending a
1033 size event to the parent window), and then call this function, before
1034 showing the top-level window.
1036 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1038 def IsSplit(*args
, **kwargs
):
1040 IsSplit(self) -> bool
1042 Is the window split?
1044 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1046 def SetSashSize(*args
, **kwargs
):
1048 SetSashSize(self, int width)
1052 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1054 def SetBorderSize(*args
, **kwargs
):
1056 SetBorderSize(self, int width)
1058 Sets the border size
1060 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1062 def GetSashSize(*args
, **kwargs
):
1064 GetSashSize(self) -> int
1068 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1070 def GetBorderSize(*args
, **kwargs
):
1072 GetBorderSize(self) -> int
1074 Gets the border size
1076 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1078 def SetSashPosition(*args
, **kwargs
):
1080 SetSashPosition(self, int position, bool redraw=True)
1082 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1083 are resized and the sash and border are redrawn.
1085 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1087 def GetSashPosition(*args
, **kwargs
):
1089 GetSashPosition(self) -> int
1091 Returns the surrent sash position.
1093 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1095 def SetMinimumPaneSize(*args
, **kwargs
):
1097 SetMinimumPaneSize(self, int min)
1099 Sets the minimum pane size in pixels.
1101 The default minimum pane size is zero, which means that either pane
1102 can be reduced to zero by dragging the sash, thus removing one of the
1103 panes. To prevent this behaviour (and veto out-of-range sash
1104 dragging), set a minimum size, for example 20 pixels. If the
1105 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1106 the window may be unsplit even if minimum size is non-zero.
1108 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1110 def GetMinimumPaneSize(*args
, **kwargs
):
1112 GetMinimumPaneSize(self) -> int
1114 Gets the minimum pane size in pixels.
1116 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1118 def SashHitTest(*args
, **kwargs
):
1120 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1122 Tests for x, y over the sash
1124 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1126 def SizeWindows(*args
, **kwargs
):
1132 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1134 def SetNeedUpdating(*args
, **kwargs
):
1135 """SetNeedUpdating(self, bool needUpdating)"""
1136 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1138 def GetNeedUpdating(*args
, **kwargs
):
1139 """GetNeedUpdating(self) -> bool"""
1140 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1142 def GetClassDefaultAttributes(*args
, **kwargs
):
1144 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1146 Get the default attributes for this class. This is useful if you want
1147 to use the same font or colour in your own control as in a standard
1148 control -- which is a much better idea than hard coding specific
1149 colours or fonts which might look completely out of place on the
1150 user's system, especially if it uses themes.
1152 The variant parameter is only relevant under Mac currently and is
1153 ignore under other platforms. Under Mac, it will change the size of
1154 the returned font. See `wx.Window.SetWindowVariant` for more about
1157 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1159 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1161 class SplitterWindowPtr(SplitterWindow
):
1162 def __init__(self
, this
):
1164 if not hasattr(self
,"thisown"): self
.thisown
= 0
1165 self
.__class
__ = SplitterWindow
1166 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1167 SplitterNameStr
= cvar
.SplitterNameStr
1169 def PreSplitterWindow(*args
, **kwargs
):
1171 PreSplitterWindow() -> SplitterWindow
1173 Precreate a SplitterWindow for 2-phase creation.
1175 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1179 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1181 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1183 Get the default attributes for this class. This is useful if you want
1184 to use the same font or colour in your own control as in a standard
1185 control -- which is a much better idea than hard coding specific
1186 colours or fonts which might look completely out of place on the
1187 user's system, especially if it uses themes.
1189 The variant parameter is only relevant under Mac currently and is
1190 ignore under other platforms. Under Mac, it will change the size of
1191 the returned font. See `wx.Window.SetWindowVariant` for more about
1194 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1196 class SplitterEvent(_core
.NotifyEvent
):
1197 """This class represents the events generated by a splitter control."""
1199 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1200 def __init__(self
, *args
, **kwargs
):
1202 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1204 This class represents the events generated by a splitter control.
1206 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1207 self
.this
= newobj
.this
1210 def SetSashPosition(*args
, **kwargs
):
1212 SetSashPosition(self, int pos)
1214 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1215 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1216 events, sets the the new sash position. In the case of _CHANGING
1217 events, sets the new tracking bar position so visual feedback during
1218 dragging will represent that change that will actually take place. Set
1219 to -1 from the event handler code to prevent repositioning.
1221 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1223 def GetSashPosition(*args
, **kwargs
):
1225 GetSashPosition(self) -> int
1227 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1228 and EVT_SPLITTER_SASH_POS_CHANGED events.
1230 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1232 def GetWindowBeingRemoved(*args
, **kwargs
):
1234 GetWindowBeingRemoved(self) -> Window
1236 Returns a pointer to the window being removed when a splitter window
1239 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1241 def GetX(*args
, **kwargs
):
1245 Returns the x coordinate of the double-click point in a
1246 EVT_SPLITTER_DCLICK event.
1248 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1250 def GetY(*args
, **kwargs
):
1254 Returns the y coordinate of the double-click point in a
1255 EVT_SPLITTER_DCLICK event.
1257 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1260 class SplitterEventPtr(SplitterEvent
):
1261 def __init__(self
, this
):
1263 if not hasattr(self
,"thisown"): self
.thisown
= 0
1264 self
.__class
__ = SplitterEvent
1265 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1267 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1268 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1269 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1270 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1271 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1272 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1273 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1274 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1275 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1277 #---------------------------------------------------------------------------
1279 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1280 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1281 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1282 SW_NOBORDER
= _windows_
.SW_NOBORDER
1283 SW_BORDER
= _windows_
.SW_BORDER
1284 SW_3DSASH
= _windows_
.SW_3DSASH
1285 SW_3DBORDER
= _windows_
.SW_3DBORDER
1286 SW_3D
= _windows_
.SW_3D
1287 SASH_TOP
= _windows_
.SASH_TOP
1288 SASH_RIGHT
= _windows_
.SASH_RIGHT
1289 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1290 SASH_LEFT
= _windows_
.SASH_LEFT
1291 SASH_NONE
= _windows_
.SASH_NONE
1292 class SashWindow(_core
.Window
):
1294 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1295 def __init__(self
, *args
, **kwargs
):
1297 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1298 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1299 String name=SashNameStr) -> SashWindow
1301 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1302 self
.this
= newobj
.this
1305 self
._setOORInfo
(self
)
1307 def Create(*args
, **kwargs
):
1309 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1310 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1311 String name=SashNameStr) -> bool
1313 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1315 def SetSashVisible(*args
, **kwargs
):
1316 """SetSashVisible(self, int edge, bool sash)"""
1317 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1319 def GetSashVisible(*args
, **kwargs
):
1320 """GetSashVisible(self, int edge) -> bool"""
1321 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1323 def SetSashBorder(*args
, **kwargs
):
1324 """SetSashBorder(self, int edge, bool border)"""
1325 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1327 def HasBorder(*args
, **kwargs
):
1328 """HasBorder(self, int edge) -> bool"""
1329 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1331 def GetEdgeMargin(*args
, **kwargs
):
1332 """GetEdgeMargin(self, int edge) -> int"""
1333 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1335 def SetDefaultBorderSize(*args
, **kwargs
):
1336 """SetDefaultBorderSize(self, int width)"""
1337 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1339 def GetDefaultBorderSize(*args
, **kwargs
):
1340 """GetDefaultBorderSize(self) -> int"""
1341 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1343 def SetExtraBorderSize(*args
, **kwargs
):
1344 """SetExtraBorderSize(self, int width)"""
1345 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1347 def GetExtraBorderSize(*args
, **kwargs
):
1348 """GetExtraBorderSize(self) -> int"""
1349 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1351 def SetMinimumSizeX(*args
, **kwargs
):
1352 """SetMinimumSizeX(self, int min)"""
1353 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1355 def SetMinimumSizeY(*args
, **kwargs
):
1356 """SetMinimumSizeY(self, int min)"""
1357 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1359 def GetMinimumSizeX(*args
, **kwargs
):
1360 """GetMinimumSizeX(self) -> int"""
1361 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1363 def GetMinimumSizeY(*args
, **kwargs
):
1364 """GetMinimumSizeY(self) -> int"""
1365 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1367 def SetMaximumSizeX(*args
, **kwargs
):
1368 """SetMaximumSizeX(self, int max)"""
1369 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1371 def SetMaximumSizeY(*args
, **kwargs
):
1372 """SetMaximumSizeY(self, int max)"""
1373 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1375 def GetMaximumSizeX(*args
, **kwargs
):
1376 """GetMaximumSizeX(self) -> int"""
1377 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1379 def GetMaximumSizeY(*args
, **kwargs
):
1380 """GetMaximumSizeY(self) -> int"""
1381 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1383 def SashHitTest(*args
, **kwargs
):
1384 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1385 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1387 def SizeWindows(*args
, **kwargs
):
1388 """SizeWindows(self)"""
1389 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1392 class SashWindowPtr(SashWindow
):
1393 def __init__(self
, this
):
1395 if not hasattr(self
,"thisown"): self
.thisown
= 0
1396 self
.__class
__ = SashWindow
1397 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1398 SashNameStr
= cvar
.SashNameStr
1399 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1401 def PreSashWindow(*args
, **kwargs
):
1402 """PreSashWindow() -> SashWindow"""
1403 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1407 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1408 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1409 class SashEvent(_core
.CommandEvent
):
1411 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1412 def __init__(self
, *args
, **kwargs
):
1413 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1414 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1415 self
.this
= newobj
.this
1418 def SetEdge(*args
, **kwargs
):
1419 """SetEdge(self, int edge)"""
1420 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1422 def GetEdge(*args
, **kwargs
):
1423 """GetEdge(self) -> int"""
1424 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1426 def SetDragRect(*args
, **kwargs
):
1427 """SetDragRect(self, Rect rect)"""
1428 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1430 def GetDragRect(*args
, **kwargs
):
1431 """GetDragRect(self) -> Rect"""
1432 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1434 def SetDragStatus(*args
, **kwargs
):
1435 """SetDragStatus(self, int status)"""
1436 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1438 def GetDragStatus(*args
, **kwargs
):
1439 """GetDragStatus(self) -> int"""
1440 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1443 class SashEventPtr(SashEvent
):
1444 def __init__(self
, this
):
1446 if not hasattr(self
,"thisown"): self
.thisown
= 0
1447 self
.__class
__ = SashEvent
1448 _windows_
.SashEvent_swigregister(SashEventPtr
)
1450 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1451 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1452 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1454 #---------------------------------------------------------------------------
1456 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1457 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1458 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1459 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1460 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1461 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1462 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1463 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1464 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1465 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1466 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1467 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1468 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1469 class QueryLayoutInfoEvent(_core
.Event
):
1471 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1472 def __init__(self
, *args
, **kwargs
):
1473 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1474 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1475 self
.this
= newobj
.this
1478 def SetRequestedLength(*args
, **kwargs
):
1479 """SetRequestedLength(self, int length)"""
1480 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1482 def GetRequestedLength(*args
, **kwargs
):
1483 """GetRequestedLength(self) -> int"""
1484 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1486 def SetFlags(*args
, **kwargs
):
1487 """SetFlags(self, int flags)"""
1488 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1490 def GetFlags(*args
, **kwargs
):
1491 """GetFlags(self) -> int"""
1492 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1494 def SetSize(*args
, **kwargs
):
1495 """SetSize(self, Size size)"""
1496 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1498 def GetSize(*args
, **kwargs
):
1499 """GetSize(self) -> Size"""
1500 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1502 def SetOrientation(*args
, **kwargs
):
1503 """SetOrientation(self, int orient)"""
1504 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1506 def GetOrientation(*args
, **kwargs
):
1507 """GetOrientation(self) -> int"""
1508 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1510 def SetAlignment(*args
, **kwargs
):
1511 """SetAlignment(self, int align)"""
1512 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1514 def GetAlignment(*args
, **kwargs
):
1515 """GetAlignment(self) -> int"""
1516 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1519 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1520 def __init__(self
, this
):
1522 if not hasattr(self
,"thisown"): self
.thisown
= 0
1523 self
.__class
__ = QueryLayoutInfoEvent
1524 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1526 class CalculateLayoutEvent(_core
.Event
):
1528 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1529 def __init__(self
, *args
, **kwargs
):
1530 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1531 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1532 self
.this
= newobj
.this
1535 def SetFlags(*args
, **kwargs
):
1536 """SetFlags(self, int flags)"""
1537 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1539 def GetFlags(*args
, **kwargs
):
1540 """GetFlags(self) -> int"""
1541 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1543 def SetRect(*args
, **kwargs
):
1544 """SetRect(self, Rect rect)"""
1545 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1547 def GetRect(*args
, **kwargs
):
1548 """GetRect(self) -> Rect"""
1549 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1552 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1553 def __init__(self
, this
):
1555 if not hasattr(self
,"thisown"): self
.thisown
= 0
1556 self
.__class
__ = CalculateLayoutEvent
1557 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1559 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1560 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1562 class SashLayoutWindow(SashWindow
):
1564 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1565 def __init__(self
, *args
, **kwargs
):
1567 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1568 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1569 String name=SashLayoutNameStr) -> SashLayoutWindow
1571 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1572 self
.this
= newobj
.this
1575 self
._setOORInfo
(self
)
1577 def Create(*args
, **kwargs
):
1579 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1580 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1581 String name=SashLayoutNameStr) -> bool
1583 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1585 def GetAlignment(*args
, **kwargs
):
1586 """GetAlignment(self) -> int"""
1587 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1589 def GetOrientation(*args
, **kwargs
):
1590 """GetOrientation(self) -> int"""
1591 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1593 def SetAlignment(*args
, **kwargs
):
1594 """SetAlignment(self, int alignment)"""
1595 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1597 def SetDefaultSize(*args
, **kwargs
):
1598 """SetDefaultSize(self, Size size)"""
1599 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1601 def SetOrientation(*args
, **kwargs
):
1602 """SetOrientation(self, int orientation)"""
1603 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1606 class SashLayoutWindowPtr(SashLayoutWindow
):
1607 def __init__(self
, this
):
1609 if not hasattr(self
,"thisown"): self
.thisown
= 0
1610 self
.__class
__ = SashLayoutWindow
1611 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1613 def PreSashLayoutWindow(*args
, **kwargs
):
1614 """PreSashLayoutWindow() -> SashLayoutWindow"""
1615 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1619 class LayoutAlgorithm(_core
.Object
):
1621 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1622 def __init__(self
, *args
, **kwargs
):
1623 """__init__(self) -> LayoutAlgorithm"""
1624 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1625 self
.this
= newobj
.this
1628 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1631 if self
.thisown
: destroy(self
)
1634 def LayoutMDIFrame(*args
, **kwargs
):
1635 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1636 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1638 def LayoutFrame(*args
, **kwargs
):
1639 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1640 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1642 def LayoutWindow(*args
, **kwargs
):
1643 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1644 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1647 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1648 def __init__(self
, this
):
1650 if not hasattr(self
,"thisown"): self
.thisown
= 0
1651 self
.__class
__ = LayoutAlgorithm
1652 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1654 class PopupWindow(_core
.Window
):
1656 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1657 def __init__(self
, *args
, **kwargs
):
1658 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1659 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1660 self
.this
= newobj
.this
1664 class PopupWindowPtr(PopupWindow
):
1665 def __init__(self
, this
):
1667 if not hasattr(self
,"thisown"): self
.thisown
= 0
1668 self
.__class
__ = PopupWindow
1669 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1671 def PrePopupWindow(*args
, **kwargs
):
1672 """PrePopupWindow() -> PopupWindow"""
1673 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1677 class PopupTransientWindow(PopupWindow
):
1679 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1680 def __init__(self
, *args
, **kwargs
):
1681 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1682 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1683 self
.this
= newobj
.this
1687 class PopupTransientWindowPtr(PopupTransientWindow
):
1688 def __init__(self
, this
):
1690 if not hasattr(self
,"thisown"): self
.thisown
= 0
1691 self
.__class
__ = PopupTransientWindow
1692 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1694 def PrePopupTransientWindow(*args
, **kwargs
):
1695 """PrePopupTransientWindow() -> PopupTransientWindow"""
1696 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1700 #---------------------------------------------------------------------------
1702 class TipWindow(Frame
):
1704 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1705 def __init__(self
, *args
, **kwargs
):
1706 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1707 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1708 self
.this
= newobj
.this
1711 self
._setOORInfo
(self
)
1713 def SetBoundingRect(*args
, **kwargs
):
1714 """SetBoundingRect(self, Rect rectBound)"""
1715 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1717 def Close(*args
, **kwargs
):
1719 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1722 class TipWindowPtr(TipWindow
):
1723 def __init__(self
, this
):
1725 if not hasattr(self
,"thisown"): self
.thisown
= 0
1726 self
.__class
__ = TipWindow
1727 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1729 #---------------------------------------------------------------------------
1731 class VScrolledWindow(Panel
):
1733 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1734 def __init__(self
, *args
, **kwargs
):
1736 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1737 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1739 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1740 self
.this
= newobj
.this
1743 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1745 def _setCallbackInfo(*args
, **kwargs
):
1746 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1747 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1749 def Create(*args
, **kwargs
):
1751 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1752 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1754 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1756 def SetLineCount(*args
, **kwargs
):
1757 """SetLineCount(self, size_t count)"""
1758 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1760 def ScrollToLine(*args
, **kwargs
):
1761 """ScrollToLine(self, size_t line) -> bool"""
1762 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1764 def ScrollLines(*args
, **kwargs
):
1765 """ScrollLines(self, int lines) -> bool"""
1766 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1768 def ScrollPages(*args
, **kwargs
):
1770 ScrollPages(self, int pages) -> bool
1772 If the platform and window class supports it, scrolls the window by
1773 the given number of pages down, if pages is positive, or up if pages
1774 is negative. Returns True if the window was scrolled, False if it was
1775 already on top/bottom and nothing was done.
1777 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1779 def RefreshLine(*args
, **kwargs
):
1780 """RefreshLine(self, size_t line)"""
1781 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1783 def RefreshLines(*args
, **kwargs
):
1784 """RefreshLines(self, size_t from, size_t to)"""
1785 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1787 def HitTestXT(*args
, **kwargs
):
1788 """HitTestXT(self, int x, int y) -> int"""
1789 return _windows_
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1791 def HitTest(*args
, **kwargs
):
1792 """HitTest(self, Point pt) -> int"""
1793 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1795 def RefreshAll(*args
, **kwargs
):
1796 """RefreshAll(self)"""
1797 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1799 def GetLineCount(*args
, **kwargs
):
1800 """GetLineCount(self) -> size_t"""
1801 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1803 def GetFirstVisibleLine(*args
, **kwargs
):
1804 """GetFirstVisibleLine(self) -> size_t"""
1805 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1807 def GetLastVisibleLine(*args
, **kwargs
):
1808 """GetLastVisibleLine(self) -> size_t"""
1809 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1811 def IsVisible(*args
, **kwargs
):
1812 """IsVisible(self, size_t line) -> bool"""
1813 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1816 class VScrolledWindowPtr(VScrolledWindow
):
1817 def __init__(self
, this
):
1819 if not hasattr(self
,"thisown"): self
.thisown
= 0
1820 self
.__class
__ = VScrolledWindow
1821 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1823 def PreVScrolledWindow(*args
, **kwargs
):
1824 """PreVScrolledWindow() -> VScrolledWindow"""
1825 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1829 class VListBox(VScrolledWindow
):
1831 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1832 def __init__(self
, *args
, **kwargs
):
1834 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1835 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1837 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1838 self
.this
= newobj
.this
1841 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1843 def _setCallbackInfo(*args
, **kwargs
):
1844 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1845 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1847 def Create(*args
, **kwargs
):
1849 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1850 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1852 return _windows_
.VListBox_Create(*args
, **kwargs
)
1854 def GetItemCount(*args
, **kwargs
):
1855 """GetItemCount(self) -> size_t"""
1856 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1858 def HasMultipleSelection(*args
, **kwargs
):
1859 """HasMultipleSelection(self) -> bool"""
1860 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1862 def GetSelection(*args
, **kwargs
):
1863 """GetSelection(self) -> int"""
1864 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1866 def IsCurrent(*args
, **kwargs
):
1867 """IsCurrent(self, size_t item) -> bool"""
1868 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1870 def IsSelected(*args
, **kwargs
):
1871 """IsSelected(self, size_t item) -> bool"""
1872 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1874 def GetSelectedCount(*args
, **kwargs
):
1875 """GetSelectedCount(self) -> size_t"""
1876 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1878 def GetFirstSelected(*args
, **kwargs
):
1879 """GetFirstSelected(self) -> PyObject"""
1880 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1882 def GetNextSelected(*args
, **kwargs
):
1883 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1884 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1886 def GetMargins(*args
, **kwargs
):
1887 """GetMargins(self) -> Point"""
1888 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1890 def GetSelectionBackground(*args
, **kwargs
):
1891 """GetSelectionBackground(self) -> Colour"""
1892 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1894 def SetItemCount(*args
, **kwargs
):
1895 """SetItemCount(self, size_t count)"""
1896 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1898 def Clear(*args
, **kwargs
):
1900 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1902 def SetSelection(*args
, **kwargs
):
1903 """SetSelection(self, int selection)"""
1904 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1906 def Select(*args
, **kwargs
):
1907 """Select(self, size_t item, bool select=True) -> bool"""
1908 return _windows_
.VListBox_Select(*args
, **kwargs
)
1910 def SelectRange(*args
, **kwargs
):
1911 """SelectRange(self, size_t from, size_t to) -> bool"""
1912 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1914 def Toggle(*args
, **kwargs
):
1915 """Toggle(self, size_t item)"""
1916 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1918 def SelectAll(*args
, **kwargs
):
1919 """SelectAll(self) -> bool"""
1920 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1922 def DeselectAll(*args
, **kwargs
):
1923 """DeselectAll(self) -> bool"""
1924 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1926 def SetMargins(*args
, **kwargs
):
1927 """SetMargins(self, Point pt)"""
1928 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1930 def SetMarginsXY(*args
, **kwargs
):
1931 """SetMarginsXY(self, int x, int y)"""
1932 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1934 def SetSelectionBackground(*args
, **kwargs
):
1935 """SetSelectionBackground(self, Colour col)"""
1936 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1939 class VListBoxPtr(VListBox
):
1940 def __init__(self
, this
):
1942 if not hasattr(self
,"thisown"): self
.thisown
= 0
1943 self
.__class
__ = VListBox
1944 _windows_
.VListBox_swigregister(VListBoxPtr
)
1945 VListBoxNameStr
= cvar
.VListBoxNameStr
1947 def PreVListBox(*args
, **kwargs
):
1948 """PreVListBox() -> VListBox"""
1949 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1953 class HtmlListBox(VListBox
):
1955 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1956 def __init__(self
, *args
, **kwargs
):
1958 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1959 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1961 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
1962 self
.this
= newobj
.this
1965 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1967 def _setCallbackInfo(*args
, **kwargs
):
1968 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1969 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1971 def Create(*args
, **kwargs
):
1973 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1974 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1976 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1978 def RefreshAll(*args
, **kwargs
):
1979 """RefreshAll(self)"""
1980 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1982 def SetItemCount(*args
, **kwargs
):
1983 """SetItemCount(self, size_t count)"""
1984 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1986 def GetFileSystem(*args
, **kwargs
):
1987 """GetFileSystem(self) -> FileSystem"""
1988 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
1991 class HtmlListBoxPtr(HtmlListBox
):
1992 def __init__(self
, this
):
1994 if not hasattr(self
,"thisown"): self
.thisown
= 0
1995 self
.__class
__ = HtmlListBox
1996 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1998 def PreHtmlListBox(*args
, **kwargs
):
1999 """PreHtmlListBox() -> HtmlListBox"""
2000 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2004 #---------------------------------------------------------------------------
2006 class TaskBarIcon(_core
.EvtHandler
):
2008 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2009 def __init__(self
, *args
, **kwargs
):
2010 """__init__(self) -> TaskBarIcon"""
2011 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2012 self
.this
= newobj
.this
2015 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2018 if self
.thisown
: destroy(self
)
2021 def Destroy(*args
, **kwargs
):
2025 Deletes the C++ object this Python object is a proxy for.
2027 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2030 class TaskBarIconPtr(TaskBarIcon
):
2031 def __init__(self
, this
):
2033 if not hasattr(self
,"thisown"): self
.thisown
= 0
2034 self
.__class
__ = TaskBarIcon
2035 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2037 class TaskBarIconEvent(_core
.Event
):
2039 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2040 def __init__(self
, *args
, **kwargs
):
2041 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2042 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2043 self
.this
= newobj
.this
2047 class TaskBarIconEventPtr(TaskBarIconEvent
):
2048 def __init__(self
, this
):
2050 if not hasattr(self
,"thisown"): self
.thisown
= 0
2051 self
.__class
__ = TaskBarIconEvent
2052 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2054 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2055 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2056 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2057 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2058 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2059 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2060 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2061 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2062 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2063 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2064 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2065 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2066 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2067 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2069 #---------------------------------------------------------------------------
2071 class ColourData(_core
.Object
):
2073 This class holds a variety of information related to the colour
2074 chooser dialog, used to transfer settings and results to and from the
2078 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2079 def __init__(self
, *args
, **kwargs
):
2081 __init__(self) -> ColourData
2083 Constructor, sets default values.
2085 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2086 self
.this
= newobj
.this
2089 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2092 if self
.thisown
: destroy(self
)
2095 def GetChooseFull(*args
, **kwargs
):
2097 GetChooseFull(self) -> bool
2099 Under Windows, determines whether the Windows colour dialog will
2100 display the full dialog with custom colour selection controls. Has no
2101 meaning under other platforms. The default value is true.
2103 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2105 def GetColour(*args
, **kwargs
):
2107 GetColour(self) -> Colour
2109 Gets the colour (pre)selected by the dialog.
2111 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2113 def GetCustomColour(*args
, **kwargs
):
2115 GetCustomColour(self, int i) -> Colour
2117 Gets the i'th custom colour associated with the colour dialog. i
2118 should be an integer between 0 and 15. The default custom colours are
2119 all invalid colours.
2121 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2123 def SetChooseFull(*args
, **kwargs
):
2125 SetChooseFull(self, int flag)
2127 Under Windows, tells the Windows colour dialog to display the full
2128 dialog with custom colour selection controls. Under other platforms,
2129 has no effect. The default value is true.
2131 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2133 def SetColour(*args
, **kwargs
):
2135 SetColour(self, Colour colour)
2137 Sets the default colour for the colour dialog. The default colour is
2140 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2142 def SetCustomColour(*args
, **kwargs
):
2144 SetCustomColour(self, int i, Colour colour)
2146 Sets the i'th custom colour for the colour dialog. i should be an
2147 integer between 0 and 15. The default custom colours are all invalid colours.
2149 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2152 class ColourDataPtr(ColourData
):
2153 def __init__(self
, this
):
2155 if not hasattr(self
,"thisown"): self
.thisown
= 0
2156 self
.__class
__ = ColourData
2157 _windows_
.ColourData_swigregister(ColourDataPtr
)
2158 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2159 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2160 DirDialogNameStr
= cvar
.DirDialogNameStr
2161 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2162 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2163 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2165 class ColourDialog(Dialog
):
2166 """This class represents the colour chooser dialog."""
2168 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2169 def __init__(self
, *args
, **kwargs
):
2171 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2173 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2174 which will be copied to the colour dialog's internal ColourData
2177 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2178 self
.this
= newobj
.this
2181 self
._setOORInfo
(self
)
2183 def GetColourData(*args
, **kwargs
):
2185 GetColourData(self) -> ColourData
2187 Returns a reference to the `wx.ColourData` used by the dialog.
2189 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2192 class ColourDialogPtr(ColourDialog
):
2193 def __init__(self
, this
):
2195 if not hasattr(self
,"thisown"): self
.thisown
= 0
2196 self
.__class
__ = ColourDialog
2197 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2199 class DirDialog(Dialog
):
2201 wx.DirDialog allows the user to select a directory by browising the
2205 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2206 def __init__(self
, *args
, **kwargs
):
2208 __init__(self, Window parent, String message=DirSelectorPromptStr,
2209 String defaultPath=EmptyString, long style=0,
2210 Point pos=DefaultPosition, Size size=DefaultSize,
2211 String name=DirDialogNameStr) -> DirDialog
2213 Constructor. Use ShowModal method to show the dialog.
2215 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2216 self
.this
= newobj
.this
2219 self
._setOORInfo
(self
)
2221 def GetPath(*args
, **kwargs
):
2223 GetPath(self) -> String
2225 Returns the default or user-selected path.
2227 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2229 def GetMessage(*args
, **kwargs
):
2231 GetMessage(self) -> String
2233 Returns the message that will be displayed on the dialog.
2235 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2237 def GetStyle(*args
, **kwargs
):
2239 GetStyle(self) -> long
2241 Returns the dialog style.
2243 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2245 def SetMessage(*args
, **kwargs
):
2247 SetMessage(self, String message)
2249 Sets the message that will be displayed on the dialog.
2251 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2253 def SetPath(*args
, **kwargs
):
2255 SetPath(self, String path)
2257 Sets the default path.
2259 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2262 class DirDialogPtr(DirDialog
):
2263 def __init__(self
, this
):
2265 if not hasattr(self
,"thisown"): self
.thisown
= 0
2266 self
.__class
__ = DirDialog
2267 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2269 class FileDialog(Dialog
):
2271 wx.FileDialog allows the user to select one or more files from the
2275 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2276 def __init__(self
, *args
, **kwargs
):
2278 __init__(self, Window parent, String message=FileSelectorPromptStr,
2279 String defaultDir=EmptyString, String defaultFile=EmptyString,
2280 String wildcard=FileSelectorDefaultWildcardStr,
2281 long style=0, Point pos=DefaultPosition) -> FileDialog
2283 Constructor. Use ShowModal method to show the dialog.
2285 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2286 self
.this
= newobj
.this
2289 self
._setOORInfo
(self
)
2291 def SetMessage(*args
, **kwargs
):
2293 SetMessage(self, String message)
2295 Sets the message that will be displayed on the dialog.
2297 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2299 def SetPath(*args
, **kwargs
):
2301 SetPath(self, String path)
2303 Sets the path (the combined directory and filename that will be
2304 returned when the dialog is dismissed).
2306 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2308 def SetDirectory(*args
, **kwargs
):
2310 SetDirectory(self, String dir)
2312 Sets the default directory.
2314 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2316 def SetFilename(*args
, **kwargs
):
2318 SetFilename(self, String name)
2320 Sets the default filename.
2322 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2324 def SetWildcard(*args
, **kwargs
):
2326 SetWildcard(self, String wildCard)
2328 Sets the wildcard, which can contain multiple file types, for
2331 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2334 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2336 def SetStyle(*args
, **kwargs
):
2338 SetStyle(self, long style)
2340 Sets the dialog style.
2342 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2344 def SetFilterIndex(*args
, **kwargs
):
2346 SetFilterIndex(self, int filterIndex)
2348 Sets the default filter index, starting from zero.
2350 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2352 def GetMessage(*args
, **kwargs
):
2354 GetMessage(self) -> String
2356 Returns the message that will be displayed on the dialog.
2358 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2360 def GetPath(*args
, **kwargs
):
2362 GetPath(self) -> String
2364 Returns the full path (directory and filename) of the selected file.
2366 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2368 def GetDirectory(*args
, **kwargs
):
2370 GetDirectory(self) -> String
2372 Returns the default directory.
2374 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2376 def GetFilename(*args
, **kwargs
):
2378 GetFilename(self) -> String
2380 Returns the default filename.
2382 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2384 def GetWildcard(*args
, **kwargs
):
2386 GetWildcard(self) -> String
2388 Returns the file dialog wildcard.
2390 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2392 def GetStyle(*args
, **kwargs
):
2394 GetStyle(self) -> long
2396 Returns the dialog style.
2398 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2400 def GetFilterIndex(*args
, **kwargs
):
2402 GetFilterIndex(self) -> int
2404 Returns the index into the list of filters supplied, optionally, in
2405 the wildcard parameter. Before the dialog is shown, this is the index
2406 which will be used when the dialog is first displayed. After the
2407 dialog is shown, this is the index selected by the user.
2409 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2411 def GetFilenames(*args
, **kwargs
):
2413 GetFilenames(self) -> PyObject
2415 Returns a list of filenames chosen in the dialog. This function
2416 should only be used with the dialogs which have wx.MULTIPLE style, use
2417 GetFilename for the others.
2419 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2421 def GetPaths(*args
, **kwargs
):
2423 GetPaths(self) -> PyObject
2425 Fills the array paths with the full paths of the files chosen. This
2426 function should only be used with the dialogs which have wx.MULTIPLE
2427 style, use GetPath for the others.
2429 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2432 class FileDialogPtr(FileDialog
):
2433 def __init__(self
, this
):
2435 if not hasattr(self
,"thisown"): self
.thisown
= 0
2436 self
.__class
__ = FileDialog
2437 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2439 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2440 class MultiChoiceDialog(Dialog
):
2441 """A simple dialog with a multi selection listbox."""
2443 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2444 def __init__(self
, *args
, **kwargs
):
2446 __init__(Window parent, String message, String caption,
2447 List choices=[], long style=CHOICEDLG_STYLE,
2448 Point pos=DefaultPosition) -> MultiChoiceDialog
2450 Constructor. Use ShowModal method to show the dialog.
2452 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2453 self
.this
= newobj
.this
2456 self
._setOORInfo
(self
)
2458 def SetSelections(*args
, **kwargs
):
2460 SetSelections(List selections)
2462 Specify the items in the list that should be selected, using a list of
2465 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2467 def GetSelections(*args
, **kwargs
):
2469 GetSelections() -> [selections]
2471 Returns a list of integers representing the items that are selected.
2473 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2476 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2477 def __init__(self
, this
):
2479 if not hasattr(self
,"thisown"): self
.thisown
= 0
2480 self
.__class
__ = MultiChoiceDialog
2481 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2483 class SingleChoiceDialog(Dialog
):
2484 """A simple dialog with a single selection listbox."""
2486 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2487 def __init__(self
, *args
, **kwargs
):
2489 __init__(Window parent, String message, String caption,
2490 List choices=[], long style=CHOICEDLG_STYLE,
2491 Point pos=DefaultPosition) -> SingleChoiceDialog
2493 Constructor. Use ShowModal method to show the dialog.
2495 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2496 self
.this
= newobj
.this
2499 self
._setOORInfo
(self
)
2501 def GetSelection(*args
, **kwargs
):
2503 GetSelection(self) -> int
2505 Get the index of teh currently selected item.
2507 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2509 def GetStringSelection(*args
, **kwargs
):
2511 GetStringSelection(self) -> String
2513 Returns the string value of the currently selected item
2515 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2517 def SetSelection(*args
, **kwargs
):
2519 SetSelection(self, int sel)
2521 Set the current selected item to sel
2523 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2526 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2527 def __init__(self
, this
):
2529 if not hasattr(self
,"thisown"): self
.thisown
= 0
2530 self
.__class
__ = SingleChoiceDialog
2531 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2533 class TextEntryDialog(Dialog
):
2534 """A dialog with text control, [ok] and [cancel] buttons"""
2536 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2537 def __init__(self
, *args
, **kwargs
):
2539 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2540 String defaultValue=EmptyString,
2541 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2543 Constructor. Use ShowModal method to show the dialog.
2545 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2546 self
.this
= newobj
.this
2549 self
._setOORInfo
(self
)
2551 def GetValue(*args
, **kwargs
):
2553 GetValue(self) -> String
2555 Returns the text that the user has entered if the user has pressed OK,
2556 or the original value if the user has pressed Cancel.
2558 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2560 def SetValue(*args
, **kwargs
):
2562 SetValue(self, String value)
2564 Sets the default text value.
2566 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2569 class TextEntryDialogPtr(TextEntryDialog
):
2570 def __init__(self
, this
):
2572 if not hasattr(self
,"thisown"): self
.thisown
= 0
2573 self
.__class
__ = TextEntryDialog
2574 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2576 class FontData(_core
.Object
):
2578 This class holds a variety of information related to font dialogs and
2579 is used to transfer settings to and results from a `wx.FontDialog`.
2582 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2583 def __init__(self
, *args
, **kwargs
):
2585 __init__(self) -> FontData
2587 This class holds a variety of information related to font dialogs and
2588 is used to transfer settings to and results from a `wx.FontDialog`.
2590 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2591 self
.this
= newobj
.this
2594 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2597 if self
.thisown
: destroy(self
)
2600 def EnableEffects(*args
, **kwargs
):
2602 EnableEffects(self, bool enable)
2604 Enables or disables 'effects' under MS Windows only. This refers to
2605 the controls for manipulating colour, strikeout and underline
2606 properties. The default value is true.
2608 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2610 def GetAllowSymbols(*args
, **kwargs
):
2612 GetAllowSymbols(self) -> bool
2614 Under MS Windows, returns a flag determining whether symbol fonts can
2615 be selected. Has no effect on other platforms. The default value is
2618 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2620 def GetColour(*args
, **kwargs
):
2622 GetColour(self) -> Colour
2624 Gets the colour associated with the font dialog. The default value is
2627 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2629 def GetChosenFont(*args
, **kwargs
):
2631 GetChosenFont(self) -> Font
2633 Gets the font chosen by the user.
2635 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2637 def GetEnableEffects(*args
, **kwargs
):
2639 GetEnableEffects(self) -> bool
2641 Determines whether 'effects' are enabled under Windows.
2643 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2645 def GetInitialFont(*args
, **kwargs
):
2647 GetInitialFont(self) -> Font
2649 Gets the font that will be initially used by the font dialog. This
2650 should have previously been set by the application.
2652 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2654 def GetShowHelp(*args
, **kwargs
):
2656 GetShowHelp(self) -> bool
2658 Returns true if the Help button will be shown (Windows only). The
2659 default value is false.
2661 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2663 def SetAllowSymbols(*args
, **kwargs
):
2665 SetAllowSymbols(self, bool allowSymbols)
2667 Under MS Windows, determines whether symbol fonts can be selected. Has
2668 no effect on other platforms. The default value is true.
2670 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2672 def SetChosenFont(*args
, **kwargs
):
2674 SetChosenFont(self, Font font)
2676 Sets the font that will be returned to the user (normally for internal
2679 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2681 def SetColour(*args
, **kwargs
):
2683 SetColour(self, Colour colour)
2685 Sets the colour that will be used for the font foreground colour. The
2686 default colour is black.
2688 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2690 def SetInitialFont(*args
, **kwargs
):
2692 SetInitialFont(self, Font font)
2694 Sets the font that will be initially used by the font dialog.
2696 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2698 def SetRange(*args
, **kwargs
):
2700 SetRange(self, int min, int max)
2702 Sets the valid range for the font point size (Windows only). The
2703 default is 0, 0 (unrestricted range).
2705 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2707 def SetShowHelp(*args
, **kwargs
):
2709 SetShowHelp(self, bool showHelp)
2711 Determines whether the Help button will be displayed in the font
2712 dialog (Windows only). The default value is false.
2714 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2717 class FontDataPtr(FontData
):
2718 def __init__(self
, this
):
2720 if not hasattr(self
,"thisown"): self
.thisown
= 0
2721 self
.__class
__ = FontData
2722 _windows_
.FontData_swigregister(FontDataPtr
)
2724 class FontDialog(Dialog
):
2726 wx.FontDialog allows the user to select a system font and its attributes.
2732 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2733 def __init__(self
, *args
, **kwargs
):
2735 __init__(self, Window parent, FontData data) -> FontDialog
2737 Constructor. Pass a parent window and the `wx.FontData` object to be
2738 used to initialize the dialog controls. Call `ShowModal` to display
2739 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2740 results with via the `wx.FontData` returned by `GetFontData`.
2742 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2743 self
.this
= newobj
.this
2746 self
._setOORInfo
(self
)
2748 def GetFontData(*args
, **kwargs
):
2750 GetFontData(self) -> FontData
2752 Returns a reference to the internal `wx.FontData` used by the
2755 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2758 class FontDialogPtr(FontDialog
):
2759 def __init__(self
, this
):
2761 if not hasattr(self
,"thisown"): self
.thisown
= 0
2762 self
.__class
__ = FontDialog
2763 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2765 class MessageDialog(Dialog
):
2767 This class provides a simple dialog that shows a single or multi-line
2768 message, with a choice of OK, Yes, No and/or Cancel buttons.
2771 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2772 def __init__(self
, *args
, **kwargs
):
2774 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2775 long style=wxOK|wxCANCEL|wxCENTRE,
2776 Point pos=DefaultPosition) -> MessageDialog
2778 Constructor, use `ShowModal` to display the dialog.
2780 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2781 self
.this
= newobj
.this
2784 self
._setOORInfo
(self
)
2787 class MessageDialogPtr(MessageDialog
):
2788 def __init__(self
, this
):
2790 if not hasattr(self
,"thisown"): self
.thisown
= 0
2791 self
.__class
__ = MessageDialog
2792 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2794 class ProgressDialog(Frame
):
2796 A dialog that shows a short message and a progress bar. Optionally, it
2797 can display an ABORT button.
2800 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2801 def __init__(self
, *args
, **kwargs
):
2803 __init__(self, String title, String message, int maximum=100, Window parent=None,
2804 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2806 Constructor. Creates the dialog, displays it and disables user input
2807 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2810 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2811 self
.this
= newobj
.this
2814 self
._setOORInfo
(self
)
2816 def Update(*args
, **kwargs
):
2818 Update(self, int value, String newmsg=EmptyString) -> bool
2820 Updates the dialog, setting the progress bar to the new value and, if
2821 given changes the message above it. The value given should be less
2822 than or equal to the maximum value given to the constructor and the
2823 dialog is closed if it is equal to the maximum. Returns true unless
2824 the Cancel button has been pressed.
2826 If false is returned, the application can either immediately destroy
2827 the dialog or ask the user for the confirmation and if the abort is
2828 not confirmed the dialog may be resumed with Resume function.
2830 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2832 def Resume(*args
, **kwargs
):
2836 Can be used to continue with the dialog, after the user had chosen to
2839 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2842 class ProgressDialogPtr(ProgressDialog
):
2843 def __init__(self
, this
):
2845 if not hasattr(self
,"thisown"): self
.thisown
= 0
2846 self
.__class
__ = ProgressDialog
2847 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2849 FR_DOWN
= _windows_
.FR_DOWN
2850 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2851 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2852 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2853 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2854 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2855 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2856 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2857 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2858 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2859 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2860 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2861 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2862 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2863 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2864 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2865 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2867 # For backwards compatibility. Should they be removed?
2868 EVT_COMMAND_FIND
= EVT_FIND
2869 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2870 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2871 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2872 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2874 class FindDialogEvent(_core
.CommandEvent
):
2875 """Events for the FindReplaceDialog"""
2877 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2878 def __init__(self
, *args
, **kwargs
):
2880 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2882 Events for the FindReplaceDialog
2884 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2885 self
.this
= newobj
.this
2888 def GetFlags(*args
, **kwargs
):
2890 GetFlags(self) -> int
2892 Get the currently selected flags: this is the combination of
2893 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2895 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2897 def GetFindString(*args
, **kwargs
):
2899 GetFindString(self) -> String
2901 Return the string to find (never empty).
2903 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2905 def GetReplaceString(*args
, **kwargs
):
2907 GetReplaceString(self) -> String
2909 Return the string to replace the search string with (only for replace
2910 and replace all events).
2912 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2914 def GetDialog(*args
, **kwargs
):
2916 GetDialog(self) -> FindReplaceDialog
2918 Return the pointer to the dialog which generated this event.
2920 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2922 def SetFlags(*args
, **kwargs
):
2923 """SetFlags(self, int flags)"""
2924 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2926 def SetFindString(*args
, **kwargs
):
2927 """SetFindString(self, String str)"""
2928 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2930 def SetReplaceString(*args
, **kwargs
):
2931 """SetReplaceString(self, String str)"""
2932 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2935 class FindDialogEventPtr(FindDialogEvent
):
2936 def __init__(self
, this
):
2938 if not hasattr(self
,"thisown"): self
.thisown
= 0
2939 self
.__class
__ = FindDialogEvent
2940 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2942 class FindReplaceData(_core
.Object
):
2944 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2945 to initialize the dialog with the default values and will keep the
2946 last values from the dialog when it is closed. It is also updated each
2947 time a `wx.FindDialogEvent` is generated so instead of using the
2948 `wx.FindDialogEvent` methods you can also directly query this object.
2950 Note that all SetXXX() methods may only be called before showing the
2951 dialog and calling them has no effect later.
2954 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2955 def __init__(self
, *args
, **kwargs
):
2957 __init__(self, int flags=0) -> FindReplaceData
2959 Constuctor initializes the flags to default value (0).
2961 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
2962 self
.this
= newobj
.this
2965 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
2968 if self
.thisown
: destroy(self
)
2971 def GetFindString(*args
, **kwargs
):
2973 GetFindString(self) -> String
2975 Get the string to find.
2977 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2979 def GetReplaceString(*args
, **kwargs
):
2981 GetReplaceString(self) -> String
2983 Get the replacement string.
2985 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
2987 def GetFlags(*args
, **kwargs
):
2989 GetFlags(self) -> int
2991 Get the combination of flag values.
2993 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
2995 def SetFlags(*args
, **kwargs
):
2997 SetFlags(self, int flags)
2999 Set the flags to use to initialize the controls of the dialog.
3001 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3003 def SetFindString(*args
, **kwargs
):
3005 SetFindString(self, String str)
3007 Set the string to find (used as initial value by the dialog).
3009 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3011 def SetReplaceString(*args
, **kwargs
):
3013 SetReplaceString(self, String str)
3015 Set the replacement string (used as initial value by the dialog).
3017 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3020 class FindReplaceDataPtr(FindReplaceData
):
3021 def __init__(self
, this
):
3023 if not hasattr(self
,"thisown"): self
.thisown
= 0
3024 self
.__class
__ = FindReplaceData
3025 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3027 class FindReplaceDialog(Dialog
):
3029 wx.FindReplaceDialog is a standard modeless dialog which is used to
3030 allow the user to search for some text (and possibly replace it with
3031 something else). The actual searching is supposed to be done in the
3032 owner window which is the parent of this dialog. Note that it means
3033 that unlike for the other standard dialogs this one must have a parent
3034 window. Also note that there is no way to use this dialog in a modal
3035 way; it is always, by design and implementation, modeless.
3038 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3039 def __init__(self
, *args
, **kwargs
):
3041 __init__(self, Window parent, FindReplaceData data, String title,
3042 int style=0) -> FindReplaceDialog
3044 Create a FindReplaceDialog. The parent and data parameters must be
3045 non-None. Use Show to display the dialog.
3047 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3048 self
.this
= newobj
.this
3051 self
._setOORInfo
(self
)
3053 def Create(*args
, **kwargs
):
3055 Create(self, Window parent, FindReplaceData data, String title,
3056 int style=0) -> bool
3058 Create the dialog, for 2-phase create.
3060 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3062 def GetData(*args
, **kwargs
):
3064 GetData(self) -> FindReplaceData
3066 Get the FindReplaceData object used by this dialog.
3068 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3070 def SetData(*args
, **kwargs
):
3072 SetData(self, FindReplaceData data)
3074 Set the FindReplaceData object used by this dialog.
3076 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3079 class FindReplaceDialogPtr(FindReplaceDialog
):
3080 def __init__(self
, this
):
3082 if not hasattr(self
,"thisown"): self
.thisown
= 0
3083 self
.__class
__ = FindReplaceDialog
3084 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3086 def PreFindReplaceDialog(*args
, **kwargs
):
3088 PreFindReplaceDialog() -> FindReplaceDialog
3090 Precreate a FindReplaceDialog for 2-phase creation
3092 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3096 #---------------------------------------------------------------------------
3098 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3099 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3100 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3101 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3102 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3103 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3104 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3105 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3106 class MDIParentFrame(Frame
):
3108 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3109 def __init__(self
, *args
, **kwargs
):
3111 __init__(self, Window parent, int id=-1, String title=EmptyString,
3112 Point pos=DefaultPosition, Size size=DefaultSize,
3113 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3114 String name=FrameNameStr) -> MDIParentFrame
3116 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3117 self
.this
= newobj
.this
3120 self
._setOORInfo
(self
)
3122 def Create(*args
, **kwargs
):
3124 Create(self, Window parent, int id=-1, String title=EmptyString,
3125 Point pos=DefaultPosition, Size size=DefaultSize,
3126 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3127 String name=FrameNameStr) -> bool
3129 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3131 def ActivateNext(*args
, **kwargs
):
3132 """ActivateNext(self)"""
3133 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3135 def ActivatePrevious(*args
, **kwargs
):
3136 """ActivatePrevious(self)"""
3137 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3139 def ArrangeIcons(*args
, **kwargs
):
3140 """ArrangeIcons(self)"""
3141 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3143 def Cascade(*args
, **kwargs
):
3145 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3147 def GetActiveChild(*args
, **kwargs
):
3148 """GetActiveChild(self) -> MDIChildFrame"""
3149 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3151 def GetClientWindow(*args
, **kwargs
):
3152 """GetClientWindow(self) -> MDIClientWindow"""
3153 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3155 def GetToolBar(*args
, **kwargs
):
3156 """GetToolBar(self) -> Window"""
3157 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3159 def Tile(*args
, **kwargs
):
3161 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3164 class MDIParentFramePtr(MDIParentFrame
):
3165 def __init__(self
, this
):
3167 if not hasattr(self
,"thisown"): self
.thisown
= 0
3168 self
.__class
__ = MDIParentFrame
3169 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3171 def PreMDIParentFrame(*args
, **kwargs
):
3172 """PreMDIParentFrame() -> MDIParentFrame"""
3173 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3177 class MDIChildFrame(Frame
):
3179 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3180 def __init__(self
, *args
, **kwargs
):
3182 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3183 Point pos=DefaultPosition, Size size=DefaultSize,
3184 long style=DEFAULT_FRAME_STYLE,
3185 String name=FrameNameStr) -> MDIChildFrame
3187 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3188 self
.this
= newobj
.this
3191 self
._setOORInfo
(self
)
3193 def Create(*args
, **kwargs
):
3195 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3196 Point pos=DefaultPosition, Size size=DefaultSize,
3197 long style=DEFAULT_FRAME_STYLE,
3198 String name=FrameNameStr) -> bool
3200 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3202 def Activate(*args
, **kwargs
):
3203 """Activate(self)"""
3204 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3206 def Maximize(*args
, **kwargs
):
3207 """Maximize(self, bool maximize)"""
3208 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3210 def Restore(*args
, **kwargs
):
3212 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3215 class MDIChildFramePtr(MDIChildFrame
):
3216 def __init__(self
, this
):
3218 if not hasattr(self
,"thisown"): self
.thisown
= 0
3219 self
.__class
__ = MDIChildFrame
3220 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3222 def PreMDIChildFrame(*args
, **kwargs
):
3223 """PreMDIChildFrame() -> MDIChildFrame"""
3224 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3228 class MDIClientWindow(_core
.Window
):
3230 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3231 def __init__(self
, *args
, **kwargs
):
3232 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3233 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3234 self
.this
= newobj
.this
3237 self
._setOORInfo
(self
)
3239 def Create(*args
, **kwargs
):
3240 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3241 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3244 class MDIClientWindowPtr(MDIClientWindow
):
3245 def __init__(self
, this
):
3247 if not hasattr(self
,"thisown"): self
.thisown
= 0
3248 self
.__class
__ = MDIClientWindow
3249 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3251 def PreMDIClientWindow(*args
, **kwargs
):
3252 """PreMDIClientWindow() -> MDIClientWindow"""
3253 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3257 #---------------------------------------------------------------------------
3259 class PyWindow(_core
.Window
):
3261 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3262 def __init__(self
, *args
, **kwargs
):
3264 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3265 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3267 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3268 self
.this
= newobj
.this
3271 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3273 def _setCallbackInfo(*args
, **kwargs
):
3274 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3275 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3277 def SetBestSize(*args
, **kwargs
):
3278 """SetBestSize(self, Size size)"""
3279 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3281 def base_DoMoveWindow(*args
, **kwargs
):
3282 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3283 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3285 def base_DoSetSize(*args
, **kwargs
):
3286 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3287 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3289 def base_DoSetClientSize(*args
, **kwargs
):
3290 """base_DoSetClientSize(self, int width, int height)"""
3291 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3293 def base_DoSetVirtualSize(*args
, **kwargs
):
3294 """base_DoSetVirtualSize(self, int x, int y)"""
3295 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3297 def base_DoGetSize(*args
, **kwargs
):
3298 """base_DoGetSize() -> (width, height)"""
3299 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3301 def base_DoGetClientSize(*args
, **kwargs
):
3302 """base_DoGetClientSize() -> (width, height)"""
3303 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3305 def base_DoGetPosition(*args
, **kwargs
):
3306 """base_DoGetPosition() -> (x,y)"""
3307 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3309 def base_DoGetVirtualSize(*args
, **kwargs
):
3310 """base_DoGetVirtualSize(self) -> Size"""
3311 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3313 def base_DoGetBestSize(*args
, **kwargs
):
3314 """base_DoGetBestSize(self) -> Size"""
3315 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3317 def base_InitDialog(*args
, **kwargs
):
3318 """base_InitDialog(self)"""
3319 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3321 def base_TransferDataToWindow(*args
, **kwargs
):
3322 """base_TransferDataToWindow(self) -> bool"""
3323 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3325 def base_TransferDataFromWindow(*args
, **kwargs
):
3326 """base_TransferDataFromWindow(self) -> bool"""
3327 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3329 def base_Validate(*args
, **kwargs
):
3330 """base_Validate(self) -> bool"""
3331 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3333 def base_AcceptsFocus(*args
, **kwargs
):
3334 """base_AcceptsFocus(self) -> bool"""
3335 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3337 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3338 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3339 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3341 def base_GetMaxSize(*args
, **kwargs
):
3342 """base_GetMaxSize(self) -> Size"""
3343 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3345 def base_AddChild(*args
, **kwargs
):
3346 """base_AddChild(self, Window child)"""
3347 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3349 def base_RemoveChild(*args
, **kwargs
):
3350 """base_RemoveChild(self, Window child)"""
3351 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3353 def base_ShouldInheritColours(*args
, **kwargs
):
3354 """base_ShouldInheritColours(self) -> bool"""
3355 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3357 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3358 """base_ApplyParentThemeBackground(self, Colour c)"""
3359 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3361 def base_GetDefaultAttributes(*args
, **kwargs
):
3362 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3363 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3366 class PyWindowPtr(PyWindow
):
3367 def __init__(self
, this
):
3369 if not hasattr(self
,"thisown"): self
.thisown
= 0
3370 self
.__class
__ = PyWindow
3371 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3373 def PrePyWindow(*args
, **kwargs
):
3374 """PrePyWindow() -> PyWindow"""
3375 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3379 class PyPanel(Panel
):
3381 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3382 def __init__(self
, *args
, **kwargs
):
3384 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3385 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3387 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3388 self
.this
= newobj
.this
3391 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3393 def _setCallbackInfo(*args
, **kwargs
):
3394 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3395 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3397 def SetBestSize(*args
, **kwargs
):
3398 """SetBestSize(self, Size size)"""
3399 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3401 def base_DoMoveWindow(*args
, **kwargs
):
3402 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3403 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3405 def base_DoSetSize(*args
, **kwargs
):
3406 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3407 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3409 def base_DoSetClientSize(*args
, **kwargs
):
3410 """base_DoSetClientSize(self, int width, int height)"""
3411 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3413 def base_DoSetVirtualSize(*args
, **kwargs
):
3414 """base_DoSetVirtualSize(self, int x, int y)"""
3415 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3417 def base_DoGetSize(*args
, **kwargs
):
3418 """base_DoGetSize() -> (width, height)"""
3419 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3421 def base_DoGetClientSize(*args
, **kwargs
):
3422 """base_DoGetClientSize() -> (width, height)"""
3423 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3425 def base_DoGetPosition(*args
, **kwargs
):
3426 """base_DoGetPosition() -> (x,y)"""
3427 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3429 def base_DoGetVirtualSize(*args
, **kwargs
):
3430 """base_DoGetVirtualSize(self) -> Size"""
3431 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3433 def base_DoGetBestSize(*args
, **kwargs
):
3434 """base_DoGetBestSize(self) -> Size"""
3435 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3437 def base_InitDialog(*args
, **kwargs
):
3438 """base_InitDialog(self)"""
3439 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3441 def base_TransferDataToWindow(*args
, **kwargs
):
3442 """base_TransferDataToWindow(self) -> bool"""
3443 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3445 def base_TransferDataFromWindow(*args
, **kwargs
):
3446 """base_TransferDataFromWindow(self) -> bool"""
3447 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3449 def base_Validate(*args
, **kwargs
):
3450 """base_Validate(self) -> bool"""
3451 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3453 def base_AcceptsFocus(*args
, **kwargs
):
3454 """base_AcceptsFocus(self) -> bool"""
3455 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3457 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3458 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3459 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3461 def base_GetMaxSize(*args
, **kwargs
):
3462 """base_GetMaxSize(self) -> Size"""
3463 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3465 def base_AddChild(*args
, **kwargs
):
3466 """base_AddChild(self, Window child)"""
3467 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3469 def base_RemoveChild(*args
, **kwargs
):
3470 """base_RemoveChild(self, Window child)"""
3471 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3473 def base_ShouldInheritColours(*args
, **kwargs
):
3474 """base_ShouldInheritColours(self) -> bool"""
3475 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3477 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3478 """base_ApplyParentThemeBackground(self, Colour c)"""
3479 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3481 def base_GetDefaultAttributes(*args
, **kwargs
):
3482 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3483 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3486 class PyPanelPtr(PyPanel
):
3487 def __init__(self
, this
):
3489 if not hasattr(self
,"thisown"): self
.thisown
= 0
3490 self
.__class
__ = PyPanel
3491 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3493 def PrePyPanel(*args
, **kwargs
):
3494 """PrePyPanel() -> PyPanel"""
3495 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3499 class PyScrolledWindow(ScrolledWindow
):
3501 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3502 def __init__(self
, *args
, **kwargs
):
3504 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3505 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3507 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3508 self
.this
= newobj
.this
3511 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3513 def _setCallbackInfo(*args
, **kwargs
):
3514 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3515 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3517 def SetBestSize(*args
, **kwargs
):
3518 """SetBestSize(self, Size size)"""
3519 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3521 def base_DoMoveWindow(*args
, **kwargs
):
3522 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3523 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3525 def base_DoSetSize(*args
, **kwargs
):
3526 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3527 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3529 def base_DoSetClientSize(*args
, **kwargs
):
3530 """base_DoSetClientSize(self, int width, int height)"""
3531 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3533 def base_DoSetVirtualSize(*args
, **kwargs
):
3534 """base_DoSetVirtualSize(self, int x, int y)"""
3535 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3537 def base_DoGetSize(*args
, **kwargs
):
3538 """base_DoGetSize() -> (width, height)"""
3539 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3541 def base_DoGetClientSize(*args
, **kwargs
):
3542 """base_DoGetClientSize() -> (width, height)"""
3543 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3545 def base_DoGetPosition(*args
, **kwargs
):
3546 """base_DoGetPosition() -> (x,y)"""
3547 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3549 def base_DoGetVirtualSize(*args
, **kwargs
):
3550 """base_DoGetVirtualSize(self) -> Size"""
3551 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3553 def base_DoGetBestSize(*args
, **kwargs
):
3554 """base_DoGetBestSize(self) -> Size"""
3555 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3557 def base_InitDialog(*args
, **kwargs
):
3558 """base_InitDialog(self)"""
3559 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3561 def base_TransferDataToWindow(*args
, **kwargs
):
3562 """base_TransferDataToWindow(self) -> bool"""
3563 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3565 def base_TransferDataFromWindow(*args
, **kwargs
):
3566 """base_TransferDataFromWindow(self) -> bool"""
3567 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3569 def base_Validate(*args
, **kwargs
):
3570 """base_Validate(self) -> bool"""
3571 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3573 def base_AcceptsFocus(*args
, **kwargs
):
3574 """base_AcceptsFocus(self) -> bool"""
3575 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3577 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3578 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3579 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3581 def base_GetMaxSize(*args
, **kwargs
):
3582 """base_GetMaxSize(self) -> Size"""
3583 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3585 def base_AddChild(*args
, **kwargs
):
3586 """base_AddChild(self, Window child)"""
3587 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3589 def base_RemoveChild(*args
, **kwargs
):
3590 """base_RemoveChild(self, Window child)"""
3591 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3593 def base_ShouldInheritColours(*args
, **kwargs
):
3594 """base_ShouldInheritColours(self) -> bool"""
3595 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3597 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3598 """base_ApplyParentThemeBackground(self, Colour c)"""
3599 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3601 def base_GetDefaultAttributes(*args
, **kwargs
):
3602 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3603 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3606 class PyScrolledWindowPtr(PyScrolledWindow
):
3607 def __init__(self
, this
):
3609 if not hasattr(self
,"thisown"): self
.thisown
= 0
3610 self
.__class
__ = PyScrolledWindow
3611 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3613 def PrePyScrolledWindow(*args
, **kwargs
):
3614 """PrePyScrolledWindow() -> PyScrolledWindow"""
3615 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3619 #---------------------------------------------------------------------------
3621 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3622 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3623 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3624 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3625 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3626 class PrintData(_core
.Object
):
3628 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3629 def __init__(self
, *args
):
3631 __init__(self) -> PrintData
3632 __init__(self, PrintData data) -> PrintData
3634 newobj
= _windows_
.new_PrintData(*args
)
3635 self
.this
= newobj
.this
3638 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3641 if self
.thisown
: destroy(self
)
3644 def GetNoCopies(*args
, **kwargs
):
3645 """GetNoCopies(self) -> int"""
3646 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3648 def GetCollate(*args
, **kwargs
):
3649 """GetCollate(self) -> bool"""
3650 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3652 def GetOrientation(*args
, **kwargs
):
3653 """GetOrientation(self) -> int"""
3654 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3656 def Ok(*args
, **kwargs
):
3657 """Ok(self) -> bool"""
3658 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3660 def GetPrinterName(*args
, **kwargs
):
3661 """GetPrinterName(self) -> String"""
3662 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3664 def GetColour(*args
, **kwargs
):
3665 """GetColour(self) -> bool"""
3666 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3668 def GetDuplex(*args
, **kwargs
):
3669 """GetDuplex(self) -> int"""
3670 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3672 def GetPaperId(*args
, **kwargs
):
3673 """GetPaperId(self) -> int"""
3674 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3676 def GetPaperSize(*args
, **kwargs
):
3677 """GetPaperSize(self) -> Size"""
3678 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3680 def GetQuality(*args
, **kwargs
):
3681 """GetQuality(self) -> int"""
3682 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3684 def SetNoCopies(*args
, **kwargs
):
3685 """SetNoCopies(self, int v)"""
3686 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3688 def SetCollate(*args
, **kwargs
):
3689 """SetCollate(self, bool flag)"""
3690 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3692 def SetOrientation(*args
, **kwargs
):
3693 """SetOrientation(self, int orient)"""
3694 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3696 def SetPrinterName(*args
, **kwargs
):
3697 """SetPrinterName(self, String name)"""
3698 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3700 def SetColour(*args
, **kwargs
):
3701 """SetColour(self, bool colour)"""
3702 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3704 def SetDuplex(*args
, **kwargs
):
3705 """SetDuplex(self, int duplex)"""
3706 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3708 def SetPaperId(*args
, **kwargs
):
3709 """SetPaperId(self, int sizeId)"""
3710 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3712 def SetPaperSize(*args
, **kwargs
):
3713 """SetPaperSize(self, Size sz)"""
3714 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3716 def SetQuality(*args
, **kwargs
):
3717 """SetQuality(self, int quality)"""
3718 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3720 def GetPrinterCommand(*args
, **kwargs
):
3721 """GetPrinterCommand(self) -> String"""
3722 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3724 def GetPrinterOptions(*args
, **kwargs
):
3725 """GetPrinterOptions(self) -> String"""
3726 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3728 def GetPreviewCommand(*args
, **kwargs
):
3729 """GetPreviewCommand(self) -> String"""
3730 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3732 def GetFilename(*args
, **kwargs
):
3733 """GetFilename(self) -> String"""
3734 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3736 def GetFontMetricPath(*args
, **kwargs
):
3737 """GetFontMetricPath(self) -> String"""
3738 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3740 def GetPrinterScaleX(*args
, **kwargs
):
3741 """GetPrinterScaleX(self) -> double"""
3742 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3744 def GetPrinterScaleY(*args
, **kwargs
):
3745 """GetPrinterScaleY(self) -> double"""
3746 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3748 def GetPrinterTranslateX(*args
, **kwargs
):
3749 """GetPrinterTranslateX(self) -> long"""
3750 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3752 def GetPrinterTranslateY(*args
, **kwargs
):
3753 """GetPrinterTranslateY(self) -> long"""
3754 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3756 def GetPrintMode(*args
, **kwargs
):
3757 """GetPrintMode(self) -> int"""
3758 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3760 def SetPrinterCommand(*args
, **kwargs
):
3761 """SetPrinterCommand(self, String command)"""
3762 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3764 def SetPrinterOptions(*args
, **kwargs
):
3765 """SetPrinterOptions(self, String options)"""
3766 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3768 def SetPreviewCommand(*args
, **kwargs
):
3769 """SetPreviewCommand(self, String command)"""
3770 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3772 def SetFilename(*args
, **kwargs
):
3773 """SetFilename(self, String filename)"""
3774 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3776 def SetFontMetricPath(*args
, **kwargs
):
3777 """SetFontMetricPath(self, String path)"""
3778 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3780 def SetPrinterScaleX(*args
, **kwargs
):
3781 """SetPrinterScaleX(self, double x)"""
3782 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3784 def SetPrinterScaleY(*args
, **kwargs
):
3785 """SetPrinterScaleY(self, double y)"""
3786 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3788 def SetPrinterScaling(*args
, **kwargs
):
3789 """SetPrinterScaling(self, double x, double y)"""
3790 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3792 def SetPrinterTranslateX(*args
, **kwargs
):
3793 """SetPrinterTranslateX(self, long x)"""
3794 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3796 def SetPrinterTranslateY(*args
, **kwargs
):
3797 """SetPrinterTranslateY(self, long y)"""
3798 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3800 def SetPrinterTranslation(*args
, **kwargs
):
3801 """SetPrinterTranslation(self, long x, long y)"""
3802 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3804 def SetPrintMode(*args
, **kwargs
):
3805 """SetPrintMode(self, int printMode)"""
3806 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3808 def GetOutputStream(*args
, **kwargs
):
3809 """GetOutputStream(self) -> OutputStream"""
3810 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3812 def SetOutputStream(*args
, **kwargs
):
3813 """SetOutputStream(self, OutputStream outputstream)"""
3814 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3816 def __nonzero__(self
): return self
.Ok()
3818 class PrintDataPtr(PrintData
):
3819 def __init__(self
, this
):
3821 if not hasattr(self
,"thisown"): self
.thisown
= 0
3822 self
.__class
__ = PrintData
3823 _windows_
.PrintData_swigregister(PrintDataPtr
)
3824 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3825 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3827 class PageSetupDialogData(_core
.Object
):
3829 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3830 def __init__(self
, *args
):
3832 __init__(self) -> PageSetupDialogData
3833 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3835 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3836 self
.this
= newobj
.this
3839 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3842 if self
.thisown
: destroy(self
)
3845 def EnableHelp(*args
, **kwargs
):
3846 """EnableHelp(self, bool flag)"""
3847 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3849 def EnableMargins(*args
, **kwargs
):
3850 """EnableMargins(self, bool flag)"""
3851 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3853 def EnableOrientation(*args
, **kwargs
):
3854 """EnableOrientation(self, bool flag)"""
3855 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3857 def EnablePaper(*args
, **kwargs
):
3858 """EnablePaper(self, bool flag)"""
3859 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3861 def EnablePrinter(*args
, **kwargs
):
3862 """EnablePrinter(self, bool flag)"""
3863 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3865 def GetDefaultMinMargins(*args
, **kwargs
):
3866 """GetDefaultMinMargins(self) -> bool"""
3867 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3869 def GetEnableMargins(*args
, **kwargs
):
3870 """GetEnableMargins(self) -> bool"""
3871 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3873 def GetEnableOrientation(*args
, **kwargs
):
3874 """GetEnableOrientation(self) -> bool"""
3875 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3877 def GetEnablePaper(*args
, **kwargs
):
3878 """GetEnablePaper(self) -> bool"""
3879 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3881 def GetEnablePrinter(*args
, **kwargs
):
3882 """GetEnablePrinter(self) -> bool"""
3883 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3885 def GetEnableHelp(*args
, **kwargs
):
3886 """GetEnableHelp(self) -> bool"""
3887 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3889 def GetDefaultInfo(*args
, **kwargs
):
3890 """GetDefaultInfo(self) -> bool"""
3891 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3893 def GetMarginTopLeft(*args
, **kwargs
):
3894 """GetMarginTopLeft(self) -> Point"""
3895 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3897 def GetMarginBottomRight(*args
, **kwargs
):
3898 """GetMarginBottomRight(self) -> Point"""
3899 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3901 def GetMinMarginTopLeft(*args
, **kwargs
):
3902 """GetMinMarginTopLeft(self) -> Point"""
3903 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3905 def GetMinMarginBottomRight(*args
, **kwargs
):
3906 """GetMinMarginBottomRight(self) -> Point"""
3907 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3909 def GetPaperId(*args
, **kwargs
):
3910 """GetPaperId(self) -> int"""
3911 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3913 def GetPaperSize(*args
, **kwargs
):
3914 """GetPaperSize(self) -> Size"""
3915 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3917 def GetPrintData(*args
, **kwargs
):
3918 """GetPrintData(self) -> PrintData"""
3919 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3921 def Ok(*args
, **kwargs
):
3922 """Ok(self) -> bool"""
3923 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3925 def SetDefaultInfo(*args
, **kwargs
):
3926 """SetDefaultInfo(self, bool flag)"""
3927 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3929 def SetDefaultMinMargins(*args
, **kwargs
):
3930 """SetDefaultMinMargins(self, bool flag)"""
3931 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3933 def SetMarginTopLeft(*args
, **kwargs
):
3934 """SetMarginTopLeft(self, Point pt)"""
3935 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3937 def SetMarginBottomRight(*args
, **kwargs
):
3938 """SetMarginBottomRight(self, Point pt)"""
3939 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3941 def SetMinMarginTopLeft(*args
, **kwargs
):
3942 """SetMinMarginTopLeft(self, Point pt)"""
3943 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3945 def SetMinMarginBottomRight(*args
, **kwargs
):
3946 """SetMinMarginBottomRight(self, Point pt)"""
3947 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3949 def SetPaperId(*args
, **kwargs
):
3950 """SetPaperId(self, int id)"""
3951 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3953 def SetPaperSize(*args
, **kwargs
):
3954 """SetPaperSize(self, Size size)"""
3955 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3957 def SetPrintData(*args
, **kwargs
):
3958 """SetPrintData(self, PrintData printData)"""
3959 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3961 def __nonzero__(self
): return self
.Ok()
3963 class PageSetupDialogDataPtr(PageSetupDialogData
):
3964 def __init__(self
, this
):
3966 if not hasattr(self
,"thisown"): self
.thisown
= 0
3967 self
.__class
__ = PageSetupDialogData
3968 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3970 class PageSetupDialog(Dialog
):
3972 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3973 def __init__(self
, *args
, **kwargs
):
3974 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3975 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
3976 self
.this
= newobj
.this
3979 self
._setOORInfo
(self
)
3981 def GetPageSetupData(*args
, **kwargs
):
3982 """GetPageSetupData(self) -> PageSetupDialogData"""
3983 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
3985 def ShowModal(*args
, **kwargs
):
3986 """ShowModal(self) -> int"""
3987 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
3990 class PageSetupDialogPtr(PageSetupDialog
):
3991 def __init__(self
, this
):
3993 if not hasattr(self
,"thisown"): self
.thisown
= 0
3994 self
.__class
__ = PageSetupDialog
3995 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
3997 class PrintDialogData(_core
.Object
):
3999 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4000 def __init__(self
, *args
):
4002 __init__(self) -> PrintDialogData
4003 __init__(self, PrintData printData) -> PrintDialogData
4005 newobj
= _windows_
.new_PrintDialogData(*args
)
4006 self
.this
= newobj
.this
4009 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4012 if self
.thisown
: destroy(self
)
4015 def GetFromPage(*args
, **kwargs
):
4016 """GetFromPage(self) -> int"""
4017 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4019 def GetToPage(*args
, **kwargs
):
4020 """GetToPage(self) -> int"""
4021 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4023 def GetMinPage(*args
, **kwargs
):
4024 """GetMinPage(self) -> int"""
4025 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4027 def GetMaxPage(*args
, **kwargs
):
4028 """GetMaxPage(self) -> int"""
4029 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4031 def GetNoCopies(*args
, **kwargs
):
4032 """GetNoCopies(self) -> int"""
4033 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4035 def GetAllPages(*args
, **kwargs
):
4036 """GetAllPages(self) -> bool"""
4037 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4039 def GetSelection(*args
, **kwargs
):
4040 """GetSelection(self) -> bool"""
4041 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4043 def GetCollate(*args
, **kwargs
):
4044 """GetCollate(self) -> bool"""
4045 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4047 def GetPrintToFile(*args
, **kwargs
):
4048 """GetPrintToFile(self) -> bool"""
4049 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4051 def GetSetupDialog(*args
, **kwargs
):
4052 """GetSetupDialog(self) -> bool"""
4053 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4055 def SetFromPage(*args
, **kwargs
):
4056 """SetFromPage(self, int v)"""
4057 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4059 def SetToPage(*args
, **kwargs
):
4060 """SetToPage(self, int v)"""
4061 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4063 def SetMinPage(*args
, **kwargs
):
4064 """SetMinPage(self, int v)"""
4065 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4067 def SetMaxPage(*args
, **kwargs
):
4068 """SetMaxPage(self, int v)"""
4069 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4071 def SetNoCopies(*args
, **kwargs
):
4072 """SetNoCopies(self, int v)"""
4073 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4075 def SetAllPages(*args
, **kwargs
):
4076 """SetAllPages(self, bool flag)"""
4077 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4079 def SetSelection(*args
, **kwargs
):
4080 """SetSelection(self, bool flag)"""
4081 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4083 def SetCollate(*args
, **kwargs
):
4084 """SetCollate(self, bool flag)"""
4085 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4087 def SetPrintToFile(*args
, **kwargs
):
4088 """SetPrintToFile(self, bool flag)"""
4089 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4091 def SetSetupDialog(*args
, **kwargs
):
4092 """SetSetupDialog(self, bool flag)"""
4093 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4095 def EnablePrintToFile(*args
, **kwargs
):
4096 """EnablePrintToFile(self, bool flag)"""
4097 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4099 def EnableSelection(*args
, **kwargs
):
4100 """EnableSelection(self, bool flag)"""
4101 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4103 def EnablePageNumbers(*args
, **kwargs
):
4104 """EnablePageNumbers(self, bool flag)"""
4105 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4107 def EnableHelp(*args
, **kwargs
):
4108 """EnableHelp(self, bool flag)"""
4109 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4111 def GetEnablePrintToFile(*args
, **kwargs
):
4112 """GetEnablePrintToFile(self) -> bool"""
4113 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4115 def GetEnableSelection(*args
, **kwargs
):
4116 """GetEnableSelection(self) -> bool"""
4117 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4119 def GetEnablePageNumbers(*args
, **kwargs
):
4120 """GetEnablePageNumbers(self) -> bool"""
4121 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4123 def GetEnableHelp(*args
, **kwargs
):
4124 """GetEnableHelp(self) -> bool"""
4125 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4127 def Ok(*args
, **kwargs
):
4128 """Ok(self) -> bool"""
4129 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4131 def GetPrintData(*args
, **kwargs
):
4132 """GetPrintData(self) -> PrintData"""
4133 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4135 def SetPrintData(*args
, **kwargs
):
4136 """SetPrintData(self, PrintData printData)"""
4137 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4139 def __nonzero__(self
): return self
.Ok()
4141 class PrintDialogDataPtr(PrintDialogData
):
4142 def __init__(self
, this
):
4144 if not hasattr(self
,"thisown"): self
.thisown
= 0
4145 self
.__class
__ = PrintDialogData
4146 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4148 class PrintDialog(Dialog
):
4150 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4151 def __init__(self
, *args
, **kwargs
):
4152 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4153 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4154 self
.this
= newobj
.this
4157 self
._setOORInfo
(self
)
4159 def GetPrintDialogData(*args
, **kwargs
):
4160 """GetPrintDialogData(self) -> PrintDialogData"""
4161 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4163 def GetPrintDC(*args
, **kwargs
):
4164 """GetPrintDC(self) -> DC"""
4165 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4167 def ShowModal(*args
, **kwargs
):
4168 """ShowModal(self) -> int"""
4169 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4172 class PrintDialogPtr(PrintDialog
):
4173 def __init__(self
, this
):
4175 if not hasattr(self
,"thisown"): self
.thisown
= 0
4176 self
.__class
__ = PrintDialog
4177 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4179 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4180 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4181 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4182 class Printer(_core
.Object
):
4184 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4185 def __init__(self
, *args
, **kwargs
):
4186 """__init__(self, PrintDialogData data=None) -> Printer"""
4187 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4188 self
.this
= newobj
.this
4191 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4194 if self
.thisown
: destroy(self
)
4197 def CreateAbortWindow(*args
, **kwargs
):
4198 """CreateAbortWindow(self, Window parent, Printout printout)"""
4199 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4201 def GetPrintDialogData(*args
, **kwargs
):
4202 """GetPrintDialogData(self) -> PrintDialogData"""
4203 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4205 def Print(*args
, **kwargs
):
4206 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4207 return _windows_
.Printer_Print(*args
, **kwargs
)
4209 def PrintDialog(*args
, **kwargs
):
4210 """PrintDialog(self, Window parent) -> DC"""
4211 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4213 def ReportError(*args
, **kwargs
):
4214 """ReportError(self, Window parent, Printout printout, String message)"""
4215 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4217 def Setup(*args
, **kwargs
):
4218 """Setup(self, Window parent) -> bool"""
4219 return _windows_
.Printer_Setup(*args
, **kwargs
)
4221 def GetAbort(*args
, **kwargs
):
4222 """GetAbort(self) -> bool"""
4223 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4225 def GetLastError(*args
, **kwargs
):
4226 """GetLastError() -> int"""
4227 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4229 GetLastError
= staticmethod(GetLastError
)
4231 class PrinterPtr(Printer
):
4232 def __init__(self
, this
):
4234 if not hasattr(self
,"thisown"): self
.thisown
= 0
4235 self
.__class
__ = Printer
4236 _windows_
.Printer_swigregister(PrinterPtr
)
4238 def Printer_GetLastError(*args
, **kwargs
):
4239 """Printer_GetLastError() -> int"""
4240 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4242 class Printout(_core
.Object
):
4244 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4245 def __init__(self
, *args
, **kwargs
):
4246 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4247 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4248 self
.this
= newobj
.this
4251 self
._setCallbackInfo
(self
, Printout
)
4253 def _setCallbackInfo(*args
, **kwargs
):
4254 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4255 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4257 def GetTitle(*args
, **kwargs
):
4258 """GetTitle(self) -> String"""
4259 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4261 def GetDC(*args
, **kwargs
):
4262 """GetDC(self) -> DC"""
4263 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4265 def SetDC(*args
, **kwargs
):
4266 """SetDC(self, DC dc)"""
4267 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4269 def SetPageSizePixels(*args
, **kwargs
):
4270 """SetPageSizePixels(self, int w, int h)"""
4271 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4273 def GetPageSizePixels(*args
, **kwargs
):
4274 """GetPageSizePixels() -> (w, h)"""
4275 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4277 def SetPageSizeMM(*args
, **kwargs
):
4278 """SetPageSizeMM(self, int w, int h)"""
4279 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4281 def GetPageSizeMM(*args
, **kwargs
):
4282 """GetPageSizeMM() -> (w, h)"""
4283 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4285 def SetPPIScreen(*args
, **kwargs
):
4286 """SetPPIScreen(self, int x, int y)"""
4287 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4289 def GetPPIScreen(*args
, **kwargs
):
4290 """GetPPIScreen() -> (x,y)"""
4291 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4293 def SetPPIPrinter(*args
, **kwargs
):
4294 """SetPPIPrinter(self, int x, int y)"""
4295 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4297 def GetPPIPrinter(*args
, **kwargs
):
4298 """GetPPIPrinter() -> (x,y)"""
4299 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4301 def IsPreview(*args
, **kwargs
):
4302 """IsPreview(self) -> bool"""
4303 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4305 def SetIsPreview(*args
, **kwargs
):
4306 """SetIsPreview(self, bool p)"""
4307 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4309 def base_OnBeginDocument(*args
, **kwargs
):
4310 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4311 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4313 def base_OnEndDocument(*args
, **kwargs
):
4314 """base_OnEndDocument(self)"""
4315 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4317 def base_OnBeginPrinting(*args
, **kwargs
):
4318 """base_OnBeginPrinting(self)"""
4319 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4321 def base_OnEndPrinting(*args
, **kwargs
):
4322 """base_OnEndPrinting(self)"""
4323 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4325 def base_OnPreparePrinting(*args
, **kwargs
):
4326 """base_OnPreparePrinting(self)"""
4327 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4329 def base_HasPage(*args
, **kwargs
):
4330 """base_HasPage(self, int page) -> bool"""
4331 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4333 def base_GetPageInfo(*args
, **kwargs
):
4334 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4335 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4338 class PrintoutPtr(Printout
):
4339 def __init__(self
, this
):
4341 if not hasattr(self
,"thisown"): self
.thisown
= 0
4342 self
.__class
__ = Printout
4343 _windows_
.Printout_swigregister(PrintoutPtr
)
4345 class PreviewCanvas(ScrolledWindow
):
4347 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4348 def __init__(self
, *args
, **kwargs
):
4350 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4351 Size size=DefaultSize, long style=0,
4352 String name=PreviewCanvasNameStr) -> PreviewCanvas
4354 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4355 self
.this
= newobj
.this
4358 self
._setOORInfo
(self
)
4361 class PreviewCanvasPtr(PreviewCanvas
):
4362 def __init__(self
, this
):
4364 if not hasattr(self
,"thisown"): self
.thisown
= 0
4365 self
.__class
__ = PreviewCanvas
4366 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4368 class PreviewFrame(Frame
):
4370 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4371 def __init__(self
, *args
, **kwargs
):
4373 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4374 Size size=DefaultSize,
4375 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4377 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4378 self
.this
= newobj
.this
4381 self
._setOORInfo
(self
)
4383 def Initialize(*args
, **kwargs
):
4384 """Initialize(self)"""
4385 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4387 def CreateControlBar(*args
, **kwargs
):
4388 """CreateControlBar(self)"""
4389 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4391 def CreateCanvas(*args
, **kwargs
):
4392 """CreateCanvas(self)"""
4393 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4395 def GetControlBar(*args
, **kwargs
):
4396 """GetControlBar(self) -> PreviewControlBar"""
4397 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4400 class PreviewFramePtr(PreviewFrame
):
4401 def __init__(self
, this
):
4403 if not hasattr(self
,"thisown"): self
.thisown
= 0
4404 self
.__class
__ = PreviewFrame
4405 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4407 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4408 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4409 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4410 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4411 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4412 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4413 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4414 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4415 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4416 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4417 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4418 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4419 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4420 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4421 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4422 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4423 class PreviewControlBar(Panel
):
4425 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4426 def __init__(self
, *args
, **kwargs
):
4428 __init__(self, PrintPreview preview, long buttons, Window parent,
4429 Point pos=DefaultPosition, Size size=DefaultSize,
4430 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4432 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4433 self
.this
= newobj
.this
4436 self
._setOORInfo
(self
)
4438 def GetZoomControl(*args
, **kwargs
):
4439 """GetZoomControl(self) -> int"""
4440 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4442 def SetZoomControl(*args
, **kwargs
):
4443 """SetZoomControl(self, int zoom)"""
4444 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4446 def GetPrintPreview(*args
, **kwargs
):
4447 """GetPrintPreview(self) -> PrintPreview"""
4448 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4450 def OnNext(*args
, **kwargs
):
4452 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4454 def OnPrevious(*args
, **kwargs
):
4455 """OnPrevious(self)"""
4456 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4458 def OnFirst(*args
, **kwargs
):
4460 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4462 def OnLast(*args
, **kwargs
):
4464 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4466 def OnGoto(*args
, **kwargs
):
4468 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4471 class PreviewControlBarPtr(PreviewControlBar
):
4472 def __init__(self
, this
):
4474 if not hasattr(self
,"thisown"): self
.thisown
= 0
4475 self
.__class
__ = PreviewControlBar
4476 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4478 class PrintPreview(_core
.Object
):
4480 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4481 def __init__(self
, *args
):
4483 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4484 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4486 newobj
= _windows_
.new_PrintPreview(*args
)
4487 self
.this
= newobj
.this
4490 def SetCurrentPage(*args
, **kwargs
):
4491 """SetCurrentPage(self, int pageNum) -> bool"""
4492 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4494 def GetCurrentPage(*args
, **kwargs
):
4495 """GetCurrentPage(self) -> int"""
4496 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4498 def SetPrintout(*args
, **kwargs
):
4499 """SetPrintout(self, Printout printout)"""
4500 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4502 def GetPrintout(*args
, **kwargs
):
4503 """GetPrintout(self) -> Printout"""
4504 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4506 def GetPrintoutForPrinting(*args
, **kwargs
):
4507 """GetPrintoutForPrinting(self) -> Printout"""
4508 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4510 def SetFrame(*args
, **kwargs
):
4511 """SetFrame(self, Frame frame)"""
4512 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4514 def SetCanvas(*args
, **kwargs
):
4515 """SetCanvas(self, PreviewCanvas canvas)"""
4516 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4518 def GetFrame(*args
, **kwargs
):
4519 """GetFrame(self) -> Frame"""
4520 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4522 def GetCanvas(*args
, **kwargs
):
4523 """GetCanvas(self) -> PreviewCanvas"""
4524 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4526 def PaintPage(*args
, **kwargs
):
4527 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4528 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4530 def DrawBlankPage(*args
, **kwargs
):
4531 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4532 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4534 def RenderPage(*args
, **kwargs
):
4535 """RenderPage(self, int pageNum) -> bool"""
4536 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4538 def AdjustScrollbars(*args
, **kwargs
):
4539 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4540 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4542 def GetPrintDialogData(*args
, **kwargs
):
4543 """GetPrintDialogData(self) -> PrintDialogData"""
4544 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4546 def SetZoom(*args
, **kwargs
):
4547 """SetZoom(self, int percent)"""
4548 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4550 def GetZoom(*args
, **kwargs
):
4551 """GetZoom(self) -> int"""
4552 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4554 def GetMaxPage(*args
, **kwargs
):
4555 """GetMaxPage(self) -> int"""
4556 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4558 def GetMinPage(*args
, **kwargs
):
4559 """GetMinPage(self) -> int"""
4560 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4562 def Ok(*args
, **kwargs
):
4563 """Ok(self) -> bool"""
4564 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4566 def SetOk(*args
, **kwargs
):
4567 """SetOk(self, bool ok)"""
4568 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4570 def Print(*args
, **kwargs
):
4571 """Print(self, bool interactive) -> bool"""
4572 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4574 def DetermineScaling(*args
, **kwargs
):
4575 """DetermineScaling(self)"""
4576 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4578 def __nonzero__(self
): return self
.Ok()
4580 class PrintPreviewPtr(PrintPreview
):
4581 def __init__(self
, this
):
4583 if not hasattr(self
,"thisown"): self
.thisown
= 0
4584 self
.__class
__ = PrintPreview
4585 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4587 class PyPrintPreview(PrintPreview
):
4589 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4590 def __init__(self
, *args
):
4592 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4593 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4595 newobj
= _windows_
.new_PyPrintPreview(*args
)
4596 self
.this
= newobj
.this
4599 self
._setCallbackInfo
(self
, PyPrintPreview
)
4601 def _setCallbackInfo(*args
, **kwargs
):
4602 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4603 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4605 def base_SetCurrentPage(*args
, **kwargs
):
4606 """base_SetCurrentPage(self, int pageNum) -> bool"""
4607 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4609 def base_PaintPage(*args
, **kwargs
):
4610 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4611 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4613 def base_DrawBlankPage(*args
, **kwargs
):
4614 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4615 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4617 def base_RenderPage(*args
, **kwargs
):
4618 """base_RenderPage(self, int pageNum) -> bool"""
4619 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4621 def base_SetZoom(*args
, **kwargs
):
4622 """base_SetZoom(self, int percent)"""
4623 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4625 def base_Print(*args
, **kwargs
):
4626 """base_Print(self, bool interactive) -> bool"""
4627 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4629 def base_DetermineScaling(*args
, **kwargs
):
4630 """base_DetermineScaling(self)"""
4631 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4634 class PyPrintPreviewPtr(PyPrintPreview
):
4635 def __init__(self
, this
):
4637 if not hasattr(self
,"thisown"): self
.thisown
= 0
4638 self
.__class
__ = PyPrintPreview
4639 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4641 class PyPreviewFrame(PreviewFrame
):
4643 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4644 def __init__(self
, *args
, **kwargs
):
4646 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4647 Size size=DefaultSize,
4648 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4650 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4651 self
.this
= newobj
.this
4654 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4656 def _setCallbackInfo(*args
, **kwargs
):
4657 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4658 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4660 def SetPreviewCanvas(*args
, **kwargs
):
4661 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4662 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4664 def SetControlBar(*args
, **kwargs
):
4665 """SetControlBar(self, PreviewControlBar bar)"""
4666 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4668 def base_Initialize(*args
, **kwargs
):
4669 """base_Initialize(self)"""
4670 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4672 def base_CreateCanvas(*args
, **kwargs
):
4673 """base_CreateCanvas(self)"""
4674 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4676 def base_CreateControlBar(*args
, **kwargs
):
4677 """base_CreateControlBar(self)"""
4678 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4681 class PyPreviewFramePtr(PyPreviewFrame
):
4682 def __init__(self
, this
):
4684 if not hasattr(self
,"thisown"): self
.thisown
= 0
4685 self
.__class
__ = PyPreviewFrame
4686 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4688 class PyPreviewControlBar(PreviewControlBar
):
4690 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4691 def __init__(self
, *args
, **kwargs
):
4693 __init__(self, PrintPreview preview, long buttons, Window parent,
4694 Point pos=DefaultPosition, Size size=DefaultSize,
4695 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4697 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4698 self
.this
= newobj
.this
4701 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4703 def _setCallbackInfo(*args
, **kwargs
):
4704 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4705 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4707 def SetPrintPreview(*args
, **kwargs
):
4708 """SetPrintPreview(self, PrintPreview preview)"""
4709 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4711 def base_CreateButtons(*args
, **kwargs
):
4712 """base_CreateButtons(self)"""
4713 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4715 def base_SetZoomControl(*args
, **kwargs
):
4716 """base_SetZoomControl(self, int zoom)"""
4717 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4720 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4721 def __init__(self
, this
):
4723 if not hasattr(self
,"thisown"): self
.thisown
= 0
4724 self
.__class
__ = PyPreviewControlBar
4725 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)