1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 class Panel(_core
.Window
):
12 return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
13 def __init__(self
, *args
, **kwargs
):
15 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
16 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
17 String name=PanelNameStr) -> Panel
19 newobj
= _windows_
.new_Panel(*args
, **kwargs
)
20 self
.this
= newobj
.this
23 self
._setOORInfo
(self
)
25 def Create(*args
, **kwargs
):
27 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
28 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
29 String name=PanelNameStr) -> bool
31 Create the GUI part of the Window for 2-phase creation mode.
33 return _windows_
.Panel_Create(*args
, **kwargs
)
35 def InitDialog(*args
, **kwargs
):
39 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
40 to the dialog via validators.
42 return _windows_
.Panel_InitDialog(*args
, **kwargs
)
44 def GetClassDefaultAttributes(*args
, **kwargs
):
46 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
48 Get the default attributes for this class. This is useful if you want
49 to use the same font or colour in your own control as in a standard
50 control -- which is a much better idea than hard coding specific
51 colours or fonts which might look completely out of place on the
52 user's system, especially if it uses themes.
54 The variant parameter is only relevant under Mac currently and is
55 ignore under other platforms. Under Mac, it will change the size of
56 the returned font. See `wx.Window.SetWindowVariant` for more about
59 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
61 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
63 class PanelPtr(Panel
):
64 def __init__(self
, this
):
66 if not hasattr(self
,"thisown"): self
.thisown
= 0
67 self
.__class
__ = Panel
68 _windows_
.Panel_swigregister(PanelPtr
)
70 def PrePanel(*args
, **kwargs
):
71 """PrePanel() -> Panel"""
72 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
76 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
78 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
80 Get the default attributes for this class. This is useful if you want
81 to use the same font or colour in your own control as in a standard
82 control -- which is a much better idea than hard coding specific
83 colours or fonts which might look completely out of place on the
84 user's system, especially if it uses themes.
86 The variant parameter is only relevant under Mac currently and is
87 ignore under other platforms. Under Mac, it will change the size of
88 the returned font. See `wx.Window.SetWindowVariant` for more about
91 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
93 #---------------------------------------------------------------------------
95 class ScrolledWindow(Panel
):
97 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
98 def __init__(self
, *args
, **kwargs
):
100 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
101 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
102 String name=PanelNameStr) -> ScrolledWindow
104 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
105 self
.this
= newobj
.this
108 self
._setOORInfo
(self
)
110 def Create(*args
, **kwargs
):
112 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
113 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
114 String name=PanelNameStr) -> bool
116 Create the GUI part of the Window for 2-phase creation mode.
118 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
120 def SetScrollbars(*args
, **kwargs
):
122 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
123 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
125 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
127 def Scroll(*args
, **kwargs
):
128 """Scroll(self, int x, int y)"""
129 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
131 def GetScrollPageSize(*args
, **kwargs
):
132 """GetScrollPageSize(self, int orient) -> int"""
133 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
135 def SetScrollPageSize(*args
, **kwargs
):
136 """SetScrollPageSize(self, int orient, int pageSize)"""
137 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
139 def SetScrollRate(*args
, **kwargs
):
140 """SetScrollRate(self, int xstep, int ystep)"""
141 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
143 def GetScrollPixelsPerUnit(*args
, **kwargs
):
145 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
147 Get the size of one logical unit in physical units.
149 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
151 def EnableScrolling(*args
, **kwargs
):
152 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
153 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
155 def GetViewStart(*args
, **kwargs
):
157 GetViewStart() -> (x,y)
161 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
163 def SetScale(*args
, **kwargs
):
164 """SetScale(self, double xs, double ys)"""
165 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
167 def GetScaleX(*args
, **kwargs
):
168 """GetScaleX(self) -> double"""
169 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
171 def GetScaleY(*args
, **kwargs
):
172 """GetScaleY(self) -> double"""
173 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
175 def CalcScrolledPosition(*args
):
177 CalcScrolledPosition(self, Point pt) -> Point
178 CalcScrolledPosition(int x, int y) -> (sx, sy)
180 Translate between scrolled and unscrolled coordinates.
182 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
184 def CalcUnscrolledPosition(*args
):
186 CalcUnscrolledPosition(self, Point pt) -> Point
187 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
189 Translate between scrolled and unscrolled coordinates.
191 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
193 def AdjustScrollbars(*args
, **kwargs
):
194 """AdjustScrollbars(self)"""
195 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
197 def CalcScrollInc(*args
, **kwargs
):
198 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
199 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
201 def SetTargetWindow(*args
, **kwargs
):
202 """SetTargetWindow(self, Window target)"""
203 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
205 def GetTargetWindow(*args
, **kwargs
):
206 """GetTargetWindow(self) -> Window"""
207 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
209 def SetTargetRect(*args
, **kwargs
):
210 """SetTargetRect(self, Rect rect)"""
211 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
213 def GetTargetRect(*args
, **kwargs
):
214 """GetTargetRect(self) -> Rect"""
215 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
217 def DoPrepareDC(*args
, **kwargs
):
219 DoPrepareDC(self, DC dc)
221 Normally what is called by `PrepareDC`.
223 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
225 def GetClassDefaultAttributes(*args
, **kwargs
):
227 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
229 Get the default attributes for this class. This is useful if you want
230 to use the same font or colour in your own control as in a standard
231 control -- which is a much better idea than hard coding specific
232 colours or fonts which might look completely out of place on the
233 user's system, especially if it uses themes.
235 The variant parameter is only relevant under Mac currently and is
236 ignore under other platforms. Under Mac, it will change the size of
237 the returned font. See `wx.Window.SetWindowVariant` for more about
240 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
242 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
244 class ScrolledWindowPtr(ScrolledWindow
):
245 def __init__(self
, this
):
247 if not hasattr(self
,"thisown"): self
.thisown
= 0
248 self
.__class
__ = ScrolledWindow
249 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
251 def PreScrolledWindow(*args
, **kwargs
):
252 """PreScrolledWindow() -> ScrolledWindow"""
253 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
257 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
259 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
261 Get the default attributes for this class. This is useful if you want
262 to use the same font or colour in your own control as in a standard
263 control -- which is a much better idea than hard coding specific
264 colours or fonts which might look completely out of place on the
265 user's system, especially if it uses themes.
267 The variant parameter is only relevant under Mac currently and is
268 ignore under other platforms. Under Mac, it will change the size of
269 the returned font. See `wx.Window.SetWindowVariant` for more about
272 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
274 #---------------------------------------------------------------------------
276 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
277 ICONIZE
= _windows_
.ICONIZE
278 MINIMIZE
= _windows_
.MINIMIZE
279 MAXIMIZE
= _windows_
.MAXIMIZE
280 CLOSE_BOX
= _windows_
.CLOSE_BOX
281 THICK_FRAME
= _windows_
.THICK_FRAME
282 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
283 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
284 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
285 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
286 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
287 RESIZE_BOX
= _windows_
.RESIZE_BOX
288 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
289 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
290 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
291 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
292 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
293 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
294 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
295 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
296 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
297 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
298 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
299 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
300 USER_COLOURS
= _windows_
.USER_COLOURS
301 NO_3D
= _windows_
.NO_3D
302 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
303 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
304 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
305 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
306 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
307 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
308 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
309 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
310 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
311 class TopLevelWindow(_core
.Window
):
312 def __init__(self
): raise RuntimeError, "No constructor defined"
314 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
315 def Maximize(*args
, **kwargs
):
316 """Maximize(self, bool maximize=True)"""
317 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
319 def Restore(*args
, **kwargs
):
321 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
323 def Iconize(*args
, **kwargs
):
324 """Iconize(self, bool iconize=True)"""
325 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
327 def IsMaximized(*args
, **kwargs
):
328 """IsMaximized(self) -> bool"""
329 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
331 def IsIconized(*args
, **kwargs
):
332 """IsIconized(self) -> bool"""
333 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
335 def GetIcon(*args
, **kwargs
):
336 """GetIcon(self) -> Icon"""
337 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
339 def SetIcon(*args
, **kwargs
):
340 """SetIcon(self, Icon icon)"""
341 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
343 def SetIcons(*args
, **kwargs
):
344 """SetIcons(self, wxIconBundle icons)"""
345 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
347 def ShowFullScreen(*args
, **kwargs
):
348 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
349 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
351 def IsFullScreen(*args
, **kwargs
):
352 """IsFullScreen(self) -> bool"""
353 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
355 def SetTitle(*args
, **kwargs
):
357 SetTitle(self, String title)
359 Sets the window's title. Applicable only to frames and dialogs.
361 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
363 def GetTitle(*args
, **kwargs
):
365 GetTitle(self) -> String
367 Gets the window's title. Applicable only to frames and dialogs.
369 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
371 def SetShape(*args
, **kwargs
):
372 """SetShape(self, Region region) -> bool"""
373 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
375 def RequestUserAttention(*args
, **kwargs
):
376 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
377 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
379 def IsActive(*args
, **kwargs
):
380 """IsActive(self) -> bool"""
381 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
384 class TopLevelWindowPtr(TopLevelWindow
):
385 def __init__(self
, this
):
387 if not hasattr(self
,"thisown"): self
.thisown
= 0
388 self
.__class
__ = TopLevelWindow
389 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
390 cvar
= _windows_
.cvar
391 FrameNameStr
= cvar
.FrameNameStr
392 DialogNameStr
= cvar
.DialogNameStr
393 StatusLineNameStr
= cvar
.StatusLineNameStr
394 ToolBarNameStr
= cvar
.ToolBarNameStr
396 #---------------------------------------------------------------------------
398 class Frame(TopLevelWindow
):
400 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
401 def __init__(self
, *args
, **kwargs
):
403 __init__(self, Window parent, int id=-1, String title=EmptyString,
404 Point pos=DefaultPosition, Size size=DefaultSize,
405 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
407 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
408 self
.this
= newobj
.this
411 self
._setOORInfo
(self
)
413 def Create(*args
, **kwargs
):
415 Create(self, Window parent, int id=-1, String title=EmptyString,
416 Point pos=DefaultPosition, Size size=DefaultSize,
417 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
419 return _windows_
.Frame_Create(*args
, **kwargs
)
421 def GetClientAreaOrigin(*args
, **kwargs
):
423 GetClientAreaOrigin(self) -> Point
425 Get the origin of the client area of the window relative to the
426 window's top left corner (the client area may be shifted because of
427 the borders, scrollbars, other decorations...)
429 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
431 def SendSizeEvent(*args
, **kwargs
):
432 """SendSizeEvent(self)"""
433 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
435 def SetMenuBar(*args
, **kwargs
):
436 """SetMenuBar(self, MenuBar menubar)"""
437 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
439 def GetMenuBar(*args
, **kwargs
):
440 """GetMenuBar(self) -> MenuBar"""
441 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
443 def ProcessCommand(*args
, **kwargs
):
444 """ProcessCommand(self, int winid) -> bool"""
445 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
447 Command
= ProcessCommand
448 def CreateStatusBar(*args
, **kwargs
):
450 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
451 String name=StatusLineNameStr) -> StatusBar
453 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
455 def GetStatusBar(*args
, **kwargs
):
456 """GetStatusBar(self) -> StatusBar"""
457 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
459 def SetStatusBar(*args
, **kwargs
):
460 """SetStatusBar(self, StatusBar statBar)"""
461 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
463 def SetStatusText(*args
, **kwargs
):
464 """SetStatusText(self, String text, int number=0)"""
465 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
467 def SetStatusWidths(*args
, **kwargs
):
468 """SetStatusWidths(self, int widths, int widths_field)"""
469 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
471 def PushStatusText(*args
, **kwargs
):
472 """PushStatusText(self, String text, int number=0)"""
473 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
475 def PopStatusText(*args
, **kwargs
):
476 """PopStatusText(self, int number=0)"""
477 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
479 def SetStatusBarPane(*args
, **kwargs
):
480 """SetStatusBarPane(self, int n)"""
481 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
483 def GetStatusBarPane(*args
, **kwargs
):
484 """GetStatusBarPane(self) -> int"""
485 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
487 def CreateToolBar(*args
, **kwargs
):
488 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
489 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
491 def GetToolBar(*args
, **kwargs
):
492 """GetToolBar(self) -> wxToolBar"""
493 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
495 def SetToolBar(*args
, **kwargs
):
496 """SetToolBar(self, wxToolBar toolbar)"""
497 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
499 def DoGiveHelp(*args
, **kwargs
):
500 """DoGiveHelp(self, String text, bool show)"""
501 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
503 def DoMenuUpdates(*args
, **kwargs
):
504 """DoMenuUpdates(self, Menu menu=None)"""
505 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
507 def GetClassDefaultAttributes(*args
, **kwargs
):
509 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
511 Get the default attributes for this class. This is useful if you want
512 to use the same font or colour in your own control as in a standard
513 control -- which is a much better idea than hard coding specific
514 colours or fonts which might look completely out of place on the
515 user's system, especially if it uses themes.
517 The variant parameter is only relevant under Mac currently and is
518 ignore under other platforms. Under Mac, it will change the size of
519 the returned font. See `wx.Window.SetWindowVariant` for more about
522 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
524 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
526 class FramePtr(Frame
):
527 def __init__(self
, this
):
529 if not hasattr(self
,"thisown"): self
.thisown
= 0
530 self
.__class
__ = Frame
531 _windows_
.Frame_swigregister(FramePtr
)
533 def PreFrame(*args
, **kwargs
):
534 """PreFrame() -> Frame"""
535 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
539 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
541 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
543 Get the default attributes for this class. This is useful if you want
544 to use the same font or colour in your own control as in a standard
545 control -- which is a much better idea than hard coding specific
546 colours or fonts which might look completely out of place on the
547 user's system, especially if it uses themes.
549 The variant parameter is only relevant under Mac currently and is
550 ignore under other platforms. Under Mac, it will change the size of
551 the returned font. See `wx.Window.SetWindowVariant` for more about
554 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
556 #---------------------------------------------------------------------------
558 class Dialog(TopLevelWindow
):
560 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
561 def __init__(self
, *args
, **kwargs
):
563 __init__(self, Window parent, int id=-1, String title=EmptyString,
564 Point pos=DefaultPosition, Size size=DefaultSize,
565 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
567 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
568 self
.this
= newobj
.this
571 self
._setOORInfo
(self
)
573 def Create(*args
, **kwargs
):
575 Create(self, Window parent, int id=-1, String title=EmptyString,
576 Point pos=DefaultPosition, Size size=DefaultSize,
577 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
579 return _windows_
.Dialog_Create(*args
, **kwargs
)
581 def SetReturnCode(*args
, **kwargs
):
582 """SetReturnCode(self, int returnCode)"""
583 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
585 def GetReturnCode(*args
, **kwargs
):
586 """GetReturnCode(self) -> int"""
587 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
589 def CreateTextSizer(*args
, **kwargs
):
590 """CreateTextSizer(self, String message) -> Sizer"""
591 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
593 def CreateButtonSizer(*args
, **kwargs
):
594 """CreateButtonSizer(self, long flags) -> Sizer"""
595 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
597 def IsModal(*args
, **kwargs
):
598 """IsModal(self) -> bool"""
599 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
601 def ShowModal(*args
, **kwargs
):
602 """ShowModal(self) -> int"""
603 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
605 def EndModal(*args
, **kwargs
):
606 """EndModal(self, int retCode)"""
607 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
609 def GetClassDefaultAttributes(*args
, **kwargs
):
611 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
613 Get the default attributes for this class. This is useful if you want
614 to use the same font or colour in your own control as in a standard
615 control -- which is a much better idea than hard coding specific
616 colours or fonts which might look completely out of place on the
617 user's system, especially if it uses themes.
619 The variant parameter is only relevant under Mac currently and is
620 ignore under other platforms. Under Mac, it will change the size of
621 the returned font. See `wx.Window.SetWindowVariant` for more about
624 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
626 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
627 def SendSizeEvent(self
):
628 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
631 class DialogPtr(Dialog
):
632 def __init__(self
, this
):
634 if not hasattr(self
,"thisown"): self
.thisown
= 0
635 self
.__class
__ = Dialog
636 _windows_
.Dialog_swigregister(DialogPtr
)
638 def PreDialog(*args
, **kwargs
):
639 """PreDialog() -> Dialog"""
640 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
644 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
646 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
648 Get the default attributes for this class. This is useful if you want
649 to use the same font or colour in your own control as in a standard
650 control -- which is a much better idea than hard coding specific
651 colours or fonts which might look completely out of place on the
652 user's system, especially if it uses themes.
654 The variant parameter is only relevant under Mac currently and is
655 ignore under other platforms. Under Mac, it will change the size of
656 the returned font. See `wx.Window.SetWindowVariant` for more about
659 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
661 #---------------------------------------------------------------------------
663 class MiniFrame(Frame
):
665 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
666 def __init__(self
, *args
, **kwargs
):
668 __init__(self, Window parent, int id=-1, String title=EmptyString,
669 Point pos=DefaultPosition, Size size=DefaultSize,
670 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
672 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
673 self
.this
= newobj
.this
676 self
._setOORInfo
(self
)
678 def Create(*args
, **kwargs
):
680 Create(self, Window parent, int id=-1, String title=EmptyString,
681 Point pos=DefaultPosition, Size size=DefaultSize,
682 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
684 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
687 class MiniFramePtr(MiniFrame
):
688 def __init__(self
, this
):
690 if not hasattr(self
,"thisown"): self
.thisown
= 0
691 self
.__class
__ = MiniFrame
692 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
694 def PreMiniFrame(*args
, **kwargs
):
695 """PreMiniFrame() -> MiniFrame"""
696 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
700 #---------------------------------------------------------------------------
702 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
703 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
704 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
705 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
706 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
707 class SplashScreenWindow(_core
.Window
):
709 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
710 def __init__(self
, *args
, **kwargs
):
712 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
713 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
715 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
716 self
.this
= newobj
.this
719 self
._setOORInfo
(self
)
721 def SetBitmap(*args
, **kwargs
):
722 """SetBitmap(self, Bitmap bitmap)"""
723 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
725 def GetBitmap(*args
, **kwargs
):
726 """GetBitmap(self) -> Bitmap"""
727 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
730 class SplashScreenWindowPtr(SplashScreenWindow
):
731 def __init__(self
, this
):
733 if not hasattr(self
,"thisown"): self
.thisown
= 0
734 self
.__class
__ = SplashScreenWindow
735 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
737 class SplashScreen(Frame
):
739 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
740 def __init__(self
, *args
, **kwargs
):
742 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
743 Window parent, int id=-1, Point pos=DefaultPosition,
744 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
746 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
747 self
.this
= newobj
.this
750 self
._setOORInfo
(self
)
752 def GetSplashStyle(*args
, **kwargs
):
753 """GetSplashStyle(self) -> long"""
754 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
756 def GetSplashWindow(*args
, **kwargs
):
757 """GetSplashWindow(self) -> SplashScreenWindow"""
758 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
760 def GetTimeout(*args
, **kwargs
):
761 """GetTimeout(self) -> int"""
762 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
765 class SplashScreenPtr(SplashScreen
):
766 def __init__(self
, this
):
768 if not hasattr(self
,"thisown"): self
.thisown
= 0
769 self
.__class
__ = SplashScreen
770 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
772 #---------------------------------------------------------------------------
774 SB_NORMAL
= _windows_
.SB_NORMAL
775 SB_FLAT
= _windows_
.SB_FLAT
776 SB_RAISED
= _windows_
.SB_RAISED
777 class StatusBar(_core
.Window
):
779 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
780 def __init__(self
, *args
, **kwargs
):
781 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
782 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
783 self
.this
= newobj
.this
786 self
._setOORInfo
(self
)
788 def Create(*args
, **kwargs
):
789 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
790 return _windows_
.StatusBar_Create(*args
, **kwargs
)
792 def SetFieldsCount(*args
, **kwargs
):
793 """SetFieldsCount(self, int number=1)"""
794 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
796 def GetFieldsCount(*args
, **kwargs
):
797 """GetFieldsCount(self) -> int"""
798 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
800 def SetStatusText(*args
, **kwargs
):
801 """SetStatusText(self, String text, int number=0)"""
802 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
804 def GetStatusText(*args
, **kwargs
):
805 """GetStatusText(self, int number=0) -> String"""
806 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
808 def PushStatusText(*args
, **kwargs
):
809 """PushStatusText(self, String text, int number=0)"""
810 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
812 def PopStatusText(*args
, **kwargs
):
813 """PopStatusText(self, int number=0)"""
814 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
816 def SetStatusWidths(*args
, **kwargs
):
817 """SetStatusWidths(self, int widths, int widths_field)"""
818 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
820 def SetStatusStyles(*args
, **kwargs
):
821 """SetStatusStyles(self, int styles, int styles_field)"""
822 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
824 def GetFieldRect(*args
, **kwargs
):
825 """GetFieldRect(self, int i) -> Rect"""
826 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
828 def SetMinHeight(*args
, **kwargs
):
829 """SetMinHeight(self, int height)"""
830 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
832 def GetBorderX(*args
, **kwargs
):
833 """GetBorderX(self) -> int"""
834 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
836 def GetBorderY(*args
, **kwargs
):
837 """GetBorderY(self) -> int"""
838 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
840 def GetClassDefaultAttributes(*args
, **kwargs
):
842 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
844 Get the default attributes for this class. This is useful if you want
845 to use the same font or colour in your own control as in a standard
846 control -- which is a much better idea than hard coding specific
847 colours or fonts which might look completely out of place on the
848 user's system, especially if it uses themes.
850 The variant parameter is only relevant under Mac currently and is
851 ignore under other platforms. Under Mac, it will change the size of
852 the returned font. See `wx.Window.SetWindowVariant` for more about
855 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
857 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
859 class StatusBarPtr(StatusBar
):
860 def __init__(self
, this
):
862 if not hasattr(self
,"thisown"): self
.thisown
= 0
863 self
.__class
__ = StatusBar
864 _windows_
.StatusBar_swigregister(StatusBarPtr
)
866 def PreStatusBar(*args
, **kwargs
):
867 """PreStatusBar() -> StatusBar"""
868 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
872 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
874 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
876 Get the default attributes for this class. This is useful if you want
877 to use the same font or colour in your own control as in a standard
878 control -- which is a much better idea than hard coding specific
879 colours or fonts which might look completely out of place on the
880 user's system, especially if it uses themes.
882 The variant parameter is only relevant under Mac currently and is
883 ignore under other platforms. Under Mac, it will change the size of
884 the returned font. See `wx.Window.SetWindowVariant` for more about
887 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
889 #---------------------------------------------------------------------------
891 SP_NOBORDER
= _windows_
.SP_NOBORDER
892 SP_NOSASH
= _windows_
.SP_NOSASH
893 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
894 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
895 SP_3DSASH
= _windows_
.SP_3DSASH
896 SP_3DBORDER
= _windows_
.SP_3DBORDER
897 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
898 SP_BORDER
= _windows_
.SP_BORDER
899 SP_3D
= _windows_
.SP_3D
900 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
901 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
902 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
903 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
904 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
905 class SplitterWindow(_core
.Window
):
907 wx.SplitterWindow manages up to two subwindows or panes, with an
908 optional vertical or horizontal split which can be used with the mouse
912 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
913 def __init__(self
, *args
, **kwargs
):
915 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
916 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
918 Constructor. Creates and shows a SplitterWindow.
920 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
921 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
922 self
.this
= newobj
.this
925 self
._setOORInfo
(self
)
927 def Create(*args
, **kwargs
):
929 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
930 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
932 Create the GUI part of the SplitterWindow for the 2-phase create.
934 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
936 def GetWindow1(*args
, **kwargs
):
938 GetWindow1(self) -> Window
940 Gets the only or left/top pane.
942 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
944 def GetWindow2(*args
, **kwargs
):
946 GetWindow2(self) -> Window
948 Gets the right/bottom pane.
950 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
952 def SetSplitMode(*args
, **kwargs
):
954 SetSplitMode(self, int mode)
956 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
957 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
960 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
962 def GetSplitMode(*args
, **kwargs
):
964 GetSplitMode(self) -> int
968 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
970 def Initialize(*args
, **kwargs
):
972 Initialize(self, Window window)
974 Initializes the splitter window to have one pane. This should be
975 called if you wish to initially view only a single pane in the
978 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
980 def SplitVertically(*args
, **kwargs
):
982 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
984 Initializes the left and right panes of the splitter window.
986 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
988 def SplitHorizontally(*args
, **kwargs
):
990 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
992 Initializes the top and bottom panes of the splitter window.
994 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
996 def Unsplit(*args
, **kwargs
):
998 Unsplit(self, Window toRemove=None) -> bool
1000 Unsplits the window. Pass the pane to remove, or None to remove the
1001 right or bottom pane. Returns True if successful, False otherwise (the
1002 window was not split).
1004 This function will not actually delete the pane being
1005 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1006 for the desired behaviour. By default, the pane being
1007 removed is only hidden.
1009 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1011 def ReplaceWindow(*args
, **kwargs
):
1013 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1015 This function replaces one of the windows managed by the
1016 SplitterWindow with another one. It is in general better to use it
1017 instead of calling Unsplit() and then resplitting the window back
1018 because it will provoke much less flicker. It is valid to call this
1019 function whether the splitter has two windows or only one.
1021 Both parameters should be non-None and winOld must specify one of the
1022 windows managed by the splitter. If the parameters are incorrect or
1023 the window couldn't be replaced, False is returned. Otherwise the
1024 function will return True, but please notice that it will not Destroy
1025 the replaced window and you may wish to do it yourself.
1027 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1029 def UpdateSize(*args
, **kwargs
):
1033 Causes any pending sizing of the sash and child panes to take place
1036 Such resizing normally takes place in idle time, in order to wait for
1037 layout to be completed. However, this can cause unacceptable flicker
1038 as the panes are resized after the window has been shown. To work
1039 around this, you can perform window layout (for example by sending a
1040 size event to the parent window), and then call this function, before
1041 showing the top-level window.
1043 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1045 def IsSplit(*args
, **kwargs
):
1047 IsSplit(self) -> bool
1049 Is the window split?
1051 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1053 def SetSashSize(*args
, **kwargs
):
1055 SetSashSize(self, int width)
1059 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1061 def SetBorderSize(*args
, **kwargs
):
1063 SetBorderSize(self, int width)
1065 Sets the border size
1067 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1069 def GetSashSize(*args
, **kwargs
):
1071 GetSashSize(self) -> int
1075 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1077 def GetBorderSize(*args
, **kwargs
):
1079 GetBorderSize(self) -> int
1081 Gets the border size
1083 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1085 def SetSashPosition(*args
, **kwargs
):
1087 SetSashPosition(self, int position, bool redraw=True)
1089 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1090 are resized and the sash and border are redrawn.
1092 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1094 def GetSashPosition(*args
, **kwargs
):
1096 GetSashPosition(self) -> int
1098 Returns the surrent sash position.
1100 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1102 def SetMinimumPaneSize(*args
, **kwargs
):
1104 SetMinimumPaneSize(self, int min)
1106 Sets the minimum pane size in pixels.
1108 The default minimum pane size is zero, which means that either pane
1109 can be reduced to zero by dragging the sash, thus removing one of the
1110 panes. To prevent this behaviour (and veto out-of-range sash
1111 dragging), set a minimum size, for example 20 pixels. If the
1112 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1113 the window may be unsplit even if minimum size is non-zero.
1115 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1117 def GetMinimumPaneSize(*args
, **kwargs
):
1119 GetMinimumPaneSize(self) -> int
1121 Gets the minimum pane size in pixels.
1123 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1125 def SashHitTest(*args
, **kwargs
):
1127 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1129 Tests for x, y over the sash
1131 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1133 def SizeWindows(*args
, **kwargs
):
1139 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1141 def SetNeedUpdating(*args
, **kwargs
):
1142 """SetNeedUpdating(self, bool needUpdating)"""
1143 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1145 def GetNeedUpdating(*args
, **kwargs
):
1146 """GetNeedUpdating(self) -> bool"""
1147 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1149 def GetClassDefaultAttributes(*args
, **kwargs
):
1151 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1153 Get the default attributes for this class. This is useful if you want
1154 to use the same font or colour in your own control as in a standard
1155 control -- which is a much better idea than hard coding specific
1156 colours or fonts which might look completely out of place on the
1157 user's system, especially if it uses themes.
1159 The variant parameter is only relevant under Mac currently and is
1160 ignore under other platforms. Under Mac, it will change the size of
1161 the returned font. See `wx.Window.SetWindowVariant` for more about
1164 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1166 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1168 class SplitterWindowPtr(SplitterWindow
):
1169 def __init__(self
, this
):
1171 if not hasattr(self
,"thisown"): self
.thisown
= 0
1172 self
.__class
__ = SplitterWindow
1173 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1174 SplitterNameStr
= cvar
.SplitterNameStr
1176 def PreSplitterWindow(*args
, **kwargs
):
1178 PreSplitterWindow() -> SplitterWindow
1180 Precreate a SplitterWindow for 2-phase creation.
1182 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1186 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1188 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1190 Get the default attributes for this class. This is useful if you want
1191 to use the same font or colour in your own control as in a standard
1192 control -- which is a much better idea than hard coding specific
1193 colours or fonts which might look completely out of place on the
1194 user's system, especially if it uses themes.
1196 The variant parameter is only relevant under Mac currently and is
1197 ignore under other platforms. Under Mac, it will change the size of
1198 the returned font. See `wx.Window.SetWindowVariant` for more about
1201 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1203 class SplitterEvent(_core
.NotifyEvent
):
1204 """This class represents the events generated by a splitter control."""
1206 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1207 def __init__(self
, *args
, **kwargs
):
1209 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1211 This class represents the events generated by a splitter control.
1213 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1214 self
.this
= newobj
.this
1217 def SetSashPosition(*args
, **kwargs
):
1219 SetSashPosition(self, int pos)
1221 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1222 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1223 events, sets the the new sash position. In the case of _CHANGING
1224 events, sets the new tracking bar position so visual feedback during
1225 dragging will represent that change that will actually take place. Set
1226 to -1 from the event handler code to prevent repositioning.
1228 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1230 def GetSashPosition(*args
, **kwargs
):
1232 GetSashPosition(self) -> int
1234 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1235 and EVT_SPLITTER_SASH_POS_CHANGED events.
1237 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1239 def GetWindowBeingRemoved(*args
, **kwargs
):
1241 GetWindowBeingRemoved(self) -> Window
1243 Returns a pointer to the window being removed when a splitter window
1246 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1248 def GetX(*args
, **kwargs
):
1252 Returns the x coordinate of the double-click point in a
1253 EVT_SPLITTER_DCLICK event.
1255 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1257 def GetY(*args
, **kwargs
):
1261 Returns the y coordinate of the double-click point in a
1262 EVT_SPLITTER_DCLICK event.
1264 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1267 class SplitterEventPtr(SplitterEvent
):
1268 def __init__(self
, this
):
1270 if not hasattr(self
,"thisown"): self
.thisown
= 0
1271 self
.__class
__ = SplitterEvent
1272 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1274 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1275 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1276 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1277 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1278 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1279 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1280 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1281 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1282 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1284 #---------------------------------------------------------------------------
1286 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1287 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1288 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1289 SW_NOBORDER
= _windows_
.SW_NOBORDER
1290 SW_BORDER
= _windows_
.SW_BORDER
1291 SW_3DSASH
= _windows_
.SW_3DSASH
1292 SW_3DBORDER
= _windows_
.SW_3DBORDER
1293 SW_3D
= _windows_
.SW_3D
1294 SASH_TOP
= _windows_
.SASH_TOP
1295 SASH_RIGHT
= _windows_
.SASH_RIGHT
1296 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1297 SASH_LEFT
= _windows_
.SASH_LEFT
1298 SASH_NONE
= _windows_
.SASH_NONE
1299 class SashWindow(_core
.Window
):
1301 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1302 def __init__(self
, *args
, **kwargs
):
1304 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1305 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1306 String name=SashNameStr) -> SashWindow
1308 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1309 self
.this
= newobj
.this
1312 self
._setOORInfo
(self
)
1314 def Create(*args
, **kwargs
):
1316 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1317 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1318 String name=SashNameStr) -> bool
1320 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1322 def SetSashVisible(*args
, **kwargs
):
1323 """SetSashVisible(self, int edge, bool sash)"""
1324 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1326 def GetSashVisible(*args
, **kwargs
):
1327 """GetSashVisible(self, int edge) -> bool"""
1328 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1330 def SetSashBorder(*args
, **kwargs
):
1331 """SetSashBorder(self, int edge, bool border)"""
1332 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1334 def HasBorder(*args
, **kwargs
):
1335 """HasBorder(self, int edge) -> bool"""
1336 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1338 def GetEdgeMargin(*args
, **kwargs
):
1339 """GetEdgeMargin(self, int edge) -> int"""
1340 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1342 def SetDefaultBorderSize(*args
, **kwargs
):
1343 """SetDefaultBorderSize(self, int width)"""
1344 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1346 def GetDefaultBorderSize(*args
, **kwargs
):
1347 """GetDefaultBorderSize(self) -> int"""
1348 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1350 def SetExtraBorderSize(*args
, **kwargs
):
1351 """SetExtraBorderSize(self, int width)"""
1352 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1354 def GetExtraBorderSize(*args
, **kwargs
):
1355 """GetExtraBorderSize(self) -> int"""
1356 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1358 def SetMinimumSizeX(*args
, **kwargs
):
1359 """SetMinimumSizeX(self, int min)"""
1360 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1362 def SetMinimumSizeY(*args
, **kwargs
):
1363 """SetMinimumSizeY(self, int min)"""
1364 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1366 def GetMinimumSizeX(*args
, **kwargs
):
1367 """GetMinimumSizeX(self) -> int"""
1368 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1370 def GetMinimumSizeY(*args
, **kwargs
):
1371 """GetMinimumSizeY(self) -> int"""
1372 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1374 def SetMaximumSizeX(*args
, **kwargs
):
1375 """SetMaximumSizeX(self, int max)"""
1376 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1378 def SetMaximumSizeY(*args
, **kwargs
):
1379 """SetMaximumSizeY(self, int max)"""
1380 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1382 def GetMaximumSizeX(*args
, **kwargs
):
1383 """GetMaximumSizeX(self) -> int"""
1384 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1386 def GetMaximumSizeY(*args
, **kwargs
):
1387 """GetMaximumSizeY(self) -> int"""
1388 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1390 def SashHitTest(*args
, **kwargs
):
1391 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1392 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1394 def SizeWindows(*args
, **kwargs
):
1395 """SizeWindows(self)"""
1396 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1399 class SashWindowPtr(SashWindow
):
1400 def __init__(self
, this
):
1402 if not hasattr(self
,"thisown"): self
.thisown
= 0
1403 self
.__class
__ = SashWindow
1404 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1405 SashNameStr
= cvar
.SashNameStr
1406 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1408 def PreSashWindow(*args
, **kwargs
):
1409 """PreSashWindow() -> SashWindow"""
1410 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1414 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1415 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1416 class SashEvent(_core
.CommandEvent
):
1418 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1419 def __init__(self
, *args
, **kwargs
):
1420 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1421 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1422 self
.this
= newobj
.this
1425 def SetEdge(*args
, **kwargs
):
1426 """SetEdge(self, int edge)"""
1427 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1429 def GetEdge(*args
, **kwargs
):
1430 """GetEdge(self) -> int"""
1431 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1433 def SetDragRect(*args
, **kwargs
):
1434 """SetDragRect(self, Rect rect)"""
1435 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1437 def GetDragRect(*args
, **kwargs
):
1438 """GetDragRect(self) -> Rect"""
1439 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1441 def SetDragStatus(*args
, **kwargs
):
1442 """SetDragStatus(self, int status)"""
1443 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1445 def GetDragStatus(*args
, **kwargs
):
1446 """GetDragStatus(self) -> int"""
1447 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1450 class SashEventPtr(SashEvent
):
1451 def __init__(self
, this
):
1453 if not hasattr(self
,"thisown"): self
.thisown
= 0
1454 self
.__class
__ = SashEvent
1455 _windows_
.SashEvent_swigregister(SashEventPtr
)
1457 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1458 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1459 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1461 #---------------------------------------------------------------------------
1463 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1464 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1465 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1466 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1467 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1468 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1469 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1470 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1471 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1472 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1473 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1474 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1475 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1476 class QueryLayoutInfoEvent(_core
.Event
):
1478 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1479 def __init__(self
, *args
, **kwargs
):
1480 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1481 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1482 self
.this
= newobj
.this
1485 def SetRequestedLength(*args
, **kwargs
):
1486 """SetRequestedLength(self, int length)"""
1487 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1489 def GetRequestedLength(*args
, **kwargs
):
1490 """GetRequestedLength(self) -> int"""
1491 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1493 def SetFlags(*args
, **kwargs
):
1494 """SetFlags(self, int flags)"""
1495 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1497 def GetFlags(*args
, **kwargs
):
1498 """GetFlags(self) -> int"""
1499 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1501 def SetSize(*args
, **kwargs
):
1502 """SetSize(self, Size size)"""
1503 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1505 def GetSize(*args
, **kwargs
):
1506 """GetSize(self) -> Size"""
1507 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1509 def SetOrientation(*args
, **kwargs
):
1510 """SetOrientation(self, int orient)"""
1511 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1513 def GetOrientation(*args
, **kwargs
):
1514 """GetOrientation(self) -> int"""
1515 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1517 def SetAlignment(*args
, **kwargs
):
1518 """SetAlignment(self, int align)"""
1519 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1521 def GetAlignment(*args
, **kwargs
):
1522 """GetAlignment(self) -> int"""
1523 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1526 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1527 def __init__(self
, this
):
1529 if not hasattr(self
,"thisown"): self
.thisown
= 0
1530 self
.__class
__ = QueryLayoutInfoEvent
1531 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1533 class CalculateLayoutEvent(_core
.Event
):
1535 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1536 def __init__(self
, *args
, **kwargs
):
1537 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1538 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1539 self
.this
= newobj
.this
1542 def SetFlags(*args
, **kwargs
):
1543 """SetFlags(self, int flags)"""
1544 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1546 def GetFlags(*args
, **kwargs
):
1547 """GetFlags(self) -> int"""
1548 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1550 def SetRect(*args
, **kwargs
):
1551 """SetRect(self, Rect rect)"""
1552 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1554 def GetRect(*args
, **kwargs
):
1555 """GetRect(self) -> Rect"""
1556 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1559 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1560 def __init__(self
, this
):
1562 if not hasattr(self
,"thisown"): self
.thisown
= 0
1563 self
.__class
__ = CalculateLayoutEvent
1564 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1566 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1567 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1569 class SashLayoutWindow(SashWindow
):
1571 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1572 def __init__(self
, *args
, **kwargs
):
1574 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1575 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1576 String name=SashLayoutNameStr) -> SashLayoutWindow
1578 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1579 self
.this
= newobj
.this
1582 self
._setOORInfo
(self
)
1584 def Create(*args
, **kwargs
):
1586 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1587 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1588 String name=SashLayoutNameStr) -> bool
1590 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1592 def GetAlignment(*args
, **kwargs
):
1593 """GetAlignment(self) -> int"""
1594 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1596 def GetOrientation(*args
, **kwargs
):
1597 """GetOrientation(self) -> int"""
1598 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1600 def SetAlignment(*args
, **kwargs
):
1601 """SetAlignment(self, int alignment)"""
1602 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1604 def SetDefaultSize(*args
, **kwargs
):
1605 """SetDefaultSize(self, Size size)"""
1606 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1608 def SetOrientation(*args
, **kwargs
):
1609 """SetOrientation(self, int orientation)"""
1610 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1613 class SashLayoutWindowPtr(SashLayoutWindow
):
1614 def __init__(self
, this
):
1616 if not hasattr(self
,"thisown"): self
.thisown
= 0
1617 self
.__class
__ = SashLayoutWindow
1618 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1620 def PreSashLayoutWindow(*args
, **kwargs
):
1621 """PreSashLayoutWindow() -> SashLayoutWindow"""
1622 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1626 class LayoutAlgorithm(_core
.Object
):
1628 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1629 def __init__(self
, *args
, **kwargs
):
1630 """__init__(self) -> LayoutAlgorithm"""
1631 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1632 self
.this
= newobj
.this
1635 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1638 if self
.thisown
: destroy(self
)
1641 def LayoutMDIFrame(*args
, **kwargs
):
1642 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1643 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1645 def LayoutFrame(*args
, **kwargs
):
1646 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1647 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1649 def LayoutWindow(*args
, **kwargs
):
1650 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1651 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1654 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1655 def __init__(self
, this
):
1657 if not hasattr(self
,"thisown"): self
.thisown
= 0
1658 self
.__class
__ = LayoutAlgorithm
1659 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1661 #---------------------------------------------------------------------------
1663 class PopupWindow(_core
.Window
):
1665 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1666 def __init__(self
, *args
, **kwargs
):
1667 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1668 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1669 self
.this
= newobj
.this
1672 self
._setOORInfo
(self
)
1674 def Create(*args
, **kwargs
):
1675 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1676 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1678 def Position(*args
, **kwargs
):
1679 """Position(self, Point ptOrigin, Size size)"""
1680 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1683 class PopupWindowPtr(PopupWindow
):
1684 def __init__(self
, this
):
1686 if not hasattr(self
,"thisown"): self
.thisown
= 0
1687 self
.__class
__ = PopupWindow
1688 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1690 def PrePopupWindow(*args
, **kwargs
):
1691 """PrePopupWindow() -> PopupWindow"""
1692 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1696 #---------------------------------------------------------------------------
1698 class PopupTransientWindow(PopupWindow
):
1700 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1701 def __init__(self
, *args
, **kwargs
):
1702 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1703 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1704 self
.this
= newobj
.this
1707 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1709 def _setCallbackInfo(*args
, **kwargs
):
1710 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1711 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1713 def Popup(*args
, **kwargs
):
1714 """Popup(self, Window focus=None)"""
1715 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1717 def Dismiss(*args
, **kwargs
):
1719 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1722 class PopupTransientWindowPtr(PopupTransientWindow
):
1723 def __init__(self
, this
):
1725 if not hasattr(self
,"thisown"): self
.thisown
= 0
1726 self
.__class
__ = PopupTransientWindow
1727 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1729 def PrePopupTransientWindow(*args
, **kwargs
):
1730 """PrePopupTransientWindow() -> PopupTransientWindow"""
1731 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1735 #---------------------------------------------------------------------------
1737 class TipWindow(PopupTransientWindow
):
1739 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1740 def __init__(self
, *args
, **kwargs
):
1741 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1742 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1743 self
.this
= newobj
.this
1746 self
._setOORInfo
(self
)
1748 def SetBoundingRect(*args
, **kwargs
):
1749 """SetBoundingRect(self, Rect rectBound)"""
1750 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1752 def Close(*args
, **kwargs
):
1754 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1757 class TipWindowPtr(TipWindow
):
1758 def __init__(self
, this
):
1760 if not hasattr(self
,"thisown"): self
.thisown
= 0
1761 self
.__class
__ = TipWindow
1762 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1764 #---------------------------------------------------------------------------
1766 class VScrolledWindow(Panel
):
1768 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1769 def __init__(self
, *args
, **kwargs
):
1771 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1772 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1774 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1775 self
.this
= newobj
.this
1778 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1780 def _setCallbackInfo(*args
, **kwargs
):
1781 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1782 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1784 def Create(*args
, **kwargs
):
1786 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1787 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1789 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1791 def SetLineCount(*args
, **kwargs
):
1792 """SetLineCount(self, size_t count)"""
1793 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1795 def ScrollToLine(*args
, **kwargs
):
1796 """ScrollToLine(self, size_t line) -> bool"""
1797 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1799 def ScrollLines(*args
, **kwargs
):
1801 ScrollLines(self, int lines) -> bool
1803 If the platform and window class supports it, scrolls the window by
1804 the given number of lines down, if lines is positive, or up if lines
1805 is negative. Returns True if the window was scrolled, False if it was
1806 already on top/bottom and nothing was done.
1808 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1810 def ScrollPages(*args
, **kwargs
):
1812 ScrollPages(self, int pages) -> bool
1814 If the platform and window class supports it, scrolls the window by
1815 the given number of pages down, if pages is positive, or up if pages
1816 is negative. Returns True if the window was scrolled, False if it was
1817 already on top/bottom and nothing was done.
1819 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1821 def RefreshLine(*args
, **kwargs
):
1822 """RefreshLine(self, size_t line)"""
1823 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1825 def RefreshLines(*args
, **kwargs
):
1826 """RefreshLines(self, size_t from, size_t to)"""
1827 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1829 def HitTestXY(*args
, **kwargs
):
1831 HitTestXY(self, int x, int y) -> int
1833 Test where the given (in client coords) point lies
1835 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1837 def HitTest(*args
, **kwargs
):
1839 HitTest(self, Point pt) -> int
1841 Test where the given (in client coords) point lies
1843 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1845 def RefreshAll(*args
, **kwargs
):
1846 """RefreshAll(self)"""
1847 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1849 def GetLineCount(*args
, **kwargs
):
1850 """GetLineCount(self) -> size_t"""
1851 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1853 def GetFirstVisibleLine(*args
, **kwargs
):
1854 """GetFirstVisibleLine(self) -> size_t"""
1855 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1857 def GetLastVisibleLine(*args
, **kwargs
):
1858 """GetLastVisibleLine(self) -> size_t"""
1859 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1861 def IsVisible(*args
, **kwargs
):
1862 """IsVisible(self, size_t line) -> bool"""
1863 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1866 class VScrolledWindowPtr(VScrolledWindow
):
1867 def __init__(self
, this
):
1869 if not hasattr(self
,"thisown"): self
.thisown
= 0
1870 self
.__class
__ = VScrolledWindow
1871 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1873 def PreVScrolledWindow(*args
, **kwargs
):
1874 """PreVScrolledWindow() -> VScrolledWindow"""
1875 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1879 class VListBox(VScrolledWindow
):
1881 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1882 def __init__(self
, *args
, **kwargs
):
1884 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1885 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1887 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1888 self
.this
= newobj
.this
1891 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1893 def _setCallbackInfo(*args
, **kwargs
):
1894 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1895 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1897 def Create(*args
, **kwargs
):
1899 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1900 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1902 return _windows_
.VListBox_Create(*args
, **kwargs
)
1904 def GetItemCount(*args
, **kwargs
):
1905 """GetItemCount(self) -> size_t"""
1906 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1908 def HasMultipleSelection(*args
, **kwargs
):
1909 """HasMultipleSelection(self) -> bool"""
1910 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1912 def GetSelection(*args
, **kwargs
):
1913 """GetSelection(self) -> int"""
1914 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1916 def IsCurrent(*args
, **kwargs
):
1917 """IsCurrent(self, size_t item) -> bool"""
1918 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1920 def IsSelected(*args
, **kwargs
):
1921 """IsSelected(self, size_t item) -> bool"""
1922 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1924 def GetSelectedCount(*args
, **kwargs
):
1925 """GetSelectedCount(self) -> size_t"""
1926 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1928 def GetFirstSelected(*args
, **kwargs
):
1929 """GetFirstSelected(self) -> PyObject"""
1930 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1932 def GetNextSelected(*args
, **kwargs
):
1933 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1934 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1936 def GetMargins(*args
, **kwargs
):
1937 """GetMargins(self) -> Point"""
1938 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1940 def GetSelectionBackground(*args
, **kwargs
):
1941 """GetSelectionBackground(self) -> Colour"""
1942 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1944 def SetItemCount(*args
, **kwargs
):
1945 """SetItemCount(self, size_t count)"""
1946 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1948 def Clear(*args
, **kwargs
):
1950 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1952 def SetSelection(*args
, **kwargs
):
1953 """SetSelection(self, int selection)"""
1954 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1956 def Select(*args
, **kwargs
):
1957 """Select(self, size_t item, bool select=True) -> bool"""
1958 return _windows_
.VListBox_Select(*args
, **kwargs
)
1960 def SelectRange(*args
, **kwargs
):
1961 """SelectRange(self, size_t from, size_t to) -> bool"""
1962 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1964 def Toggle(*args
, **kwargs
):
1965 """Toggle(self, size_t item)"""
1966 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1968 def SelectAll(*args
, **kwargs
):
1969 """SelectAll(self) -> bool"""
1970 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1972 def DeselectAll(*args
, **kwargs
):
1973 """DeselectAll(self) -> bool"""
1974 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1976 def SetMargins(*args
, **kwargs
):
1977 """SetMargins(self, Point pt)"""
1978 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1980 def SetMarginsXY(*args
, **kwargs
):
1981 """SetMarginsXY(self, int x, int y)"""
1982 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1984 def SetSelectionBackground(*args
, **kwargs
):
1985 """SetSelectionBackground(self, Colour col)"""
1986 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1989 class VListBoxPtr(VListBox
):
1990 def __init__(self
, this
):
1992 if not hasattr(self
,"thisown"): self
.thisown
= 0
1993 self
.__class
__ = VListBox
1994 _windows_
.VListBox_swigregister(VListBoxPtr
)
1995 VListBoxNameStr
= cvar
.VListBoxNameStr
1997 def PreVListBox(*args
, **kwargs
):
1998 """PreVListBox() -> VListBox"""
1999 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2003 class HtmlListBox(VListBox
):
2005 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2006 def __init__(self
, *args
, **kwargs
):
2008 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2009 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2011 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2012 self
.this
= newobj
.this
2015 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2017 def _setCallbackInfo(*args
, **kwargs
):
2018 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2019 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2021 def Create(*args
, **kwargs
):
2023 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2024 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2026 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2028 def RefreshAll(*args
, **kwargs
):
2029 """RefreshAll(self)"""
2030 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2032 def SetItemCount(*args
, **kwargs
):
2033 """SetItemCount(self, size_t count)"""
2034 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2036 def GetFileSystem(*args
, **kwargs
):
2037 """GetFileSystem(self) -> FileSystem"""
2038 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2041 class HtmlListBoxPtr(HtmlListBox
):
2042 def __init__(self
, this
):
2044 if not hasattr(self
,"thisown"): self
.thisown
= 0
2045 self
.__class
__ = HtmlListBox
2046 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2048 def PreHtmlListBox(*args
, **kwargs
):
2049 """PreHtmlListBox() -> HtmlListBox"""
2050 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2054 #---------------------------------------------------------------------------
2056 class TaskBarIcon(_core
.EvtHandler
):
2058 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2059 def __init__(self
, *args
, **kwargs
):
2060 """__init__(self) -> TaskBarIcon"""
2061 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2062 self
.this
= newobj
.this
2065 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2067 def _setCallbackInfo(*args
, **kwargs
):
2068 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2069 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2071 def Destroy(*args
, **kwargs
):
2075 Deletes the C++ object this Python object is a proxy for.
2077 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2079 def IsOk(*args
, **kwargs
):
2080 """IsOk(self) -> bool"""
2081 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2083 def __nonzero__(self
): return self
.IsOk()
2084 def IsIconInstalled(*args
, **kwargs
):
2085 """IsIconInstalled(self) -> bool"""
2086 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2088 def SetIcon(*args
, **kwargs
):
2089 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2090 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2092 def RemoveIcon(*args
, **kwargs
):
2093 """RemoveIcon(self) -> bool"""
2094 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2096 def PopupMenu(*args
, **kwargs
):
2097 """PopupMenu(self, Menu menu) -> bool"""
2098 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2101 class TaskBarIconPtr(TaskBarIcon
):
2102 def __init__(self
, this
):
2104 if not hasattr(self
,"thisown"): self
.thisown
= 0
2105 self
.__class
__ = TaskBarIcon
2106 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2108 class TaskBarIconEvent(_core
.Event
):
2110 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2111 def __init__(self
, *args
, **kwargs
):
2112 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2113 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2114 self
.this
= newobj
.this
2118 class TaskBarIconEventPtr(TaskBarIconEvent
):
2119 def __init__(self
, this
):
2121 if not hasattr(self
,"thisown"): self
.thisown
= 0
2122 self
.__class
__ = TaskBarIconEvent
2123 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2125 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2126 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2127 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2128 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2129 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2130 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2131 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2132 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2133 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2134 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2135 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2136 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2137 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2138 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2140 #---------------------------------------------------------------------------
2142 class ColourData(_core
.Object
):
2144 This class holds a variety of information related to the colour
2145 chooser dialog, used to transfer settings and results to and from the
2149 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2150 def __init__(self
, *args
, **kwargs
):
2152 __init__(self) -> ColourData
2154 Constructor, sets default values.
2156 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2157 self
.this
= newobj
.this
2160 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2163 if self
.thisown
: destroy(self
)
2166 def GetChooseFull(*args
, **kwargs
):
2168 GetChooseFull(self) -> bool
2170 Under Windows, determines whether the Windows colour dialog will
2171 display the full dialog with custom colour selection controls. Has no
2172 meaning under other platforms. The default value is true.
2174 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2176 def GetColour(*args
, **kwargs
):
2178 GetColour(self) -> Colour
2180 Gets the colour (pre)selected by the dialog.
2182 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2184 def GetCustomColour(*args
, **kwargs
):
2186 GetCustomColour(self, int i) -> Colour
2188 Gets the i'th custom colour associated with the colour dialog. i
2189 should be an integer between 0 and 15. The default custom colours are
2190 all invalid colours.
2192 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2194 def SetChooseFull(*args
, **kwargs
):
2196 SetChooseFull(self, int flag)
2198 Under Windows, tells the Windows colour dialog to display the full
2199 dialog with custom colour selection controls. Under other platforms,
2200 has no effect. The default value is true.
2202 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2204 def SetColour(*args
, **kwargs
):
2206 SetColour(self, Colour colour)
2208 Sets the default colour for the colour dialog. The default colour is
2211 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2213 def SetCustomColour(*args
, **kwargs
):
2215 SetCustomColour(self, int i, Colour colour)
2217 Sets the i'th custom colour for the colour dialog. i should be an
2218 integer between 0 and 15. The default custom colours are all invalid colours.
2220 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2223 class ColourDataPtr(ColourData
):
2224 def __init__(self
, this
):
2226 if not hasattr(self
,"thisown"): self
.thisown
= 0
2227 self
.__class
__ = ColourData
2228 _windows_
.ColourData_swigregister(ColourDataPtr
)
2229 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2230 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2231 DirDialogNameStr
= cvar
.DirDialogNameStr
2232 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2233 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2234 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2236 class ColourDialog(Dialog
):
2237 """This class represents the colour chooser dialog."""
2239 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2240 def __init__(self
, *args
, **kwargs
):
2242 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2244 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2245 which will be copied to the colour dialog's internal ColourData
2248 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2249 self
.this
= newobj
.this
2252 self
._setOORInfo
(self
)
2254 def GetColourData(*args
, **kwargs
):
2256 GetColourData(self) -> ColourData
2258 Returns a reference to the `wx.ColourData` used by the dialog.
2260 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2263 class ColourDialogPtr(ColourDialog
):
2264 def __init__(self
, this
):
2266 if not hasattr(self
,"thisown"): self
.thisown
= 0
2267 self
.__class
__ = ColourDialog
2268 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2270 class DirDialog(Dialog
):
2272 wx.DirDialog allows the user to select a directory by browising the
2276 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2277 def __init__(self
, *args
, **kwargs
):
2279 __init__(self, Window parent, String message=DirSelectorPromptStr,
2280 String defaultPath=EmptyString, long style=0,
2281 Point pos=DefaultPosition, Size size=DefaultSize,
2282 String name=DirDialogNameStr) -> DirDialog
2284 Constructor. Use ShowModal method to show the dialog.
2286 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2287 self
.this
= newobj
.this
2290 self
._setOORInfo
(self
)
2292 def GetPath(*args
, **kwargs
):
2294 GetPath(self) -> String
2296 Returns the default or user-selected path.
2298 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2300 def GetMessage(*args
, **kwargs
):
2302 GetMessage(self) -> String
2304 Returns the message that will be displayed on the dialog.
2306 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2308 def GetStyle(*args
, **kwargs
):
2310 GetStyle(self) -> long
2312 Returns the dialog style.
2314 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2316 def SetMessage(*args
, **kwargs
):
2318 SetMessage(self, String message)
2320 Sets the message that will be displayed on the dialog.
2322 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2324 def SetPath(*args
, **kwargs
):
2326 SetPath(self, String path)
2328 Sets the default path.
2330 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2333 class DirDialogPtr(DirDialog
):
2334 def __init__(self
, this
):
2336 if not hasattr(self
,"thisown"): self
.thisown
= 0
2337 self
.__class
__ = DirDialog
2338 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2340 class FileDialog(Dialog
):
2342 wx.FileDialog allows the user to select one or more files from the
2346 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2347 def __init__(self
, *args
, **kwargs
):
2349 __init__(self, Window parent, String message=FileSelectorPromptStr,
2350 String defaultDir=EmptyString, String defaultFile=EmptyString,
2351 String wildcard=FileSelectorDefaultWildcardStr,
2352 long style=0, Point pos=DefaultPosition) -> FileDialog
2354 Constructor. Use ShowModal method to show the dialog.
2356 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2357 self
.this
= newobj
.this
2360 self
._setOORInfo
(self
)
2362 def SetMessage(*args
, **kwargs
):
2364 SetMessage(self, String message)
2366 Sets the message that will be displayed on the dialog.
2368 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2370 def SetPath(*args
, **kwargs
):
2372 SetPath(self, String path)
2374 Sets the path (the combined directory and filename that will be
2375 returned when the dialog is dismissed).
2377 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2379 def SetDirectory(*args
, **kwargs
):
2381 SetDirectory(self, String dir)
2383 Sets the default directory.
2385 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2387 def SetFilename(*args
, **kwargs
):
2389 SetFilename(self, String name)
2391 Sets the default filename.
2393 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2395 def SetWildcard(*args
, **kwargs
):
2397 SetWildcard(self, String wildCard)
2399 Sets the wildcard, which can contain multiple file types, for
2402 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2405 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2407 def SetStyle(*args
, **kwargs
):
2409 SetStyle(self, long style)
2411 Sets the dialog style.
2413 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2415 def SetFilterIndex(*args
, **kwargs
):
2417 SetFilterIndex(self, int filterIndex)
2419 Sets the default filter index, starting from zero.
2421 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2423 def GetMessage(*args
, **kwargs
):
2425 GetMessage(self) -> String
2427 Returns the message that will be displayed on the dialog.
2429 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2431 def GetPath(*args
, **kwargs
):
2433 GetPath(self) -> String
2435 Returns the full path (directory and filename) of the selected file.
2437 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2439 def GetDirectory(*args
, **kwargs
):
2441 GetDirectory(self) -> String
2443 Returns the default directory.
2445 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2447 def GetFilename(*args
, **kwargs
):
2449 GetFilename(self) -> String
2451 Returns the default filename.
2453 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2455 def GetWildcard(*args
, **kwargs
):
2457 GetWildcard(self) -> String
2459 Returns the file dialog wildcard.
2461 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2463 def GetStyle(*args
, **kwargs
):
2465 GetStyle(self) -> long
2467 Returns the dialog style.
2469 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2471 def GetFilterIndex(*args
, **kwargs
):
2473 GetFilterIndex(self) -> int
2475 Returns the index into the list of filters supplied, optionally, in
2476 the wildcard parameter. Before the dialog is shown, this is the index
2477 which will be used when the dialog is first displayed. After the
2478 dialog is shown, this is the index selected by the user.
2480 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2482 def GetFilenames(*args
, **kwargs
):
2484 GetFilenames(self) -> PyObject
2486 Returns a list of filenames chosen in the dialog. This function
2487 should only be used with the dialogs which have wx.MULTIPLE style, use
2488 GetFilename for the others.
2490 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2492 def GetPaths(*args
, **kwargs
):
2494 GetPaths(self) -> PyObject
2496 Fills the array paths with the full paths of the files chosen. This
2497 function should only be used with the dialogs which have wx.MULTIPLE
2498 style, use GetPath for the others.
2500 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2503 class FileDialogPtr(FileDialog
):
2504 def __init__(self
, this
):
2506 if not hasattr(self
,"thisown"): self
.thisown
= 0
2507 self
.__class
__ = FileDialog
2508 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2510 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2511 class MultiChoiceDialog(Dialog
):
2512 """A simple dialog with a multi selection listbox."""
2514 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2515 def __init__(self
, *args
, **kwargs
):
2517 __init__(Window parent, String message, String caption,
2518 List choices=[], long style=CHOICEDLG_STYLE,
2519 Point pos=DefaultPosition) -> MultiChoiceDialog
2521 Constructor. Use ShowModal method to show the dialog.
2523 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2524 self
.this
= newobj
.this
2527 self
._setOORInfo
(self
)
2529 def SetSelections(*args
, **kwargs
):
2531 SetSelections(List selections)
2533 Specify the items in the list that should be selected, using a list of
2536 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2538 def GetSelections(*args
, **kwargs
):
2540 GetSelections() -> [selections]
2542 Returns a list of integers representing the items that are selected.
2544 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2547 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2548 def __init__(self
, this
):
2550 if not hasattr(self
,"thisown"): self
.thisown
= 0
2551 self
.__class
__ = MultiChoiceDialog
2552 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2554 class SingleChoiceDialog(Dialog
):
2555 """A simple dialog with a single selection listbox."""
2557 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2558 def __init__(self
, *args
, **kwargs
):
2560 __init__(Window parent, String message, String caption,
2561 List choices=[], long style=CHOICEDLG_STYLE,
2562 Point pos=DefaultPosition) -> SingleChoiceDialog
2564 Constructor. Use ShowModal method to show the dialog.
2566 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2567 self
.this
= newobj
.this
2570 self
._setOORInfo
(self
)
2572 def GetSelection(*args
, **kwargs
):
2574 GetSelection(self) -> int
2576 Get the index of teh currently selected item.
2578 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2580 def GetStringSelection(*args
, **kwargs
):
2582 GetStringSelection(self) -> String
2584 Returns the string value of the currently selected item
2586 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2588 def SetSelection(*args
, **kwargs
):
2590 SetSelection(self, int sel)
2592 Set the current selected item to sel
2594 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2597 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2598 def __init__(self
, this
):
2600 if not hasattr(self
,"thisown"): self
.thisown
= 0
2601 self
.__class
__ = SingleChoiceDialog
2602 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2604 class TextEntryDialog(Dialog
):
2605 """A dialog with text control, [ok] and [cancel] buttons"""
2607 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2608 def __init__(self
, *args
, **kwargs
):
2610 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2611 String defaultValue=EmptyString,
2612 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2614 Constructor. Use ShowModal method to show the dialog.
2616 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2617 self
.this
= newobj
.this
2620 self
._setOORInfo
(self
)
2622 def GetValue(*args
, **kwargs
):
2624 GetValue(self) -> String
2626 Returns the text that the user has entered if the user has pressed OK,
2627 or the original value if the user has pressed Cancel.
2629 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2631 def SetValue(*args
, **kwargs
):
2633 SetValue(self, String value)
2635 Sets the default text value.
2637 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2640 class TextEntryDialogPtr(TextEntryDialog
):
2641 def __init__(self
, this
):
2643 if not hasattr(self
,"thisown"): self
.thisown
= 0
2644 self
.__class
__ = TextEntryDialog
2645 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2647 class FontData(_core
.Object
):
2649 This class holds a variety of information related to font dialogs and
2650 is used to transfer settings to and results from a `wx.FontDialog`.
2653 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2654 def __init__(self
, *args
, **kwargs
):
2656 __init__(self) -> FontData
2658 This class holds a variety of information related to font dialogs and
2659 is used to transfer settings to and results from a `wx.FontDialog`.
2661 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2662 self
.this
= newobj
.this
2665 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2668 if self
.thisown
: destroy(self
)
2671 def EnableEffects(*args
, **kwargs
):
2673 EnableEffects(self, bool enable)
2675 Enables or disables 'effects' under MS Windows only. This refers to
2676 the controls for manipulating colour, strikeout and underline
2677 properties. The default value is true.
2679 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2681 def GetAllowSymbols(*args
, **kwargs
):
2683 GetAllowSymbols(self) -> bool
2685 Under MS Windows, returns a flag determining whether symbol fonts can
2686 be selected. Has no effect on other platforms. The default value is
2689 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2691 def GetColour(*args
, **kwargs
):
2693 GetColour(self) -> Colour
2695 Gets the colour associated with the font dialog. The default value is
2698 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2700 def GetChosenFont(*args
, **kwargs
):
2702 GetChosenFont(self) -> Font
2704 Gets the font chosen by the user.
2706 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2708 def GetEnableEffects(*args
, **kwargs
):
2710 GetEnableEffects(self) -> bool
2712 Determines whether 'effects' are enabled under Windows.
2714 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2716 def GetInitialFont(*args
, **kwargs
):
2718 GetInitialFont(self) -> Font
2720 Gets the font that will be initially used by the font dialog. This
2721 should have previously been set by the application.
2723 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2725 def GetShowHelp(*args
, **kwargs
):
2727 GetShowHelp(self) -> bool
2729 Returns true if the Help button will be shown (Windows only). The
2730 default value is false.
2732 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2734 def SetAllowSymbols(*args
, **kwargs
):
2736 SetAllowSymbols(self, bool allowSymbols)
2738 Under MS Windows, determines whether symbol fonts can be selected. Has
2739 no effect on other platforms. The default value is true.
2741 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2743 def SetChosenFont(*args
, **kwargs
):
2745 SetChosenFont(self, Font font)
2747 Sets the font that will be returned to the user (normally for internal
2750 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2752 def SetColour(*args
, **kwargs
):
2754 SetColour(self, Colour colour)
2756 Sets the colour that will be used for the font foreground colour. The
2757 default colour is black.
2759 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2761 def SetInitialFont(*args
, **kwargs
):
2763 SetInitialFont(self, Font font)
2765 Sets the font that will be initially used by the font dialog.
2767 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2769 def SetRange(*args
, **kwargs
):
2771 SetRange(self, int min, int max)
2773 Sets the valid range for the font point size (Windows only). The
2774 default is 0, 0 (unrestricted range).
2776 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2778 def SetShowHelp(*args
, **kwargs
):
2780 SetShowHelp(self, bool showHelp)
2782 Determines whether the Help button will be displayed in the font
2783 dialog (Windows only). The default value is false.
2785 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2788 class FontDataPtr(FontData
):
2789 def __init__(self
, this
):
2791 if not hasattr(self
,"thisown"): self
.thisown
= 0
2792 self
.__class
__ = FontData
2793 _windows_
.FontData_swigregister(FontDataPtr
)
2795 class FontDialog(Dialog
):
2797 wx.FontDialog allows the user to select a system font and its attributes.
2803 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2804 def __init__(self
, *args
, **kwargs
):
2806 __init__(self, Window parent, FontData data) -> FontDialog
2808 Constructor. Pass a parent window and the `wx.FontData` object to be
2809 used to initialize the dialog controls. Call `ShowModal` to display
2810 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2811 results with via the `wx.FontData` returned by `GetFontData`.
2813 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2814 self
.this
= newobj
.this
2817 self
._setOORInfo
(self
)
2819 def GetFontData(*args
, **kwargs
):
2821 GetFontData(self) -> FontData
2823 Returns a reference to the internal `wx.FontData` used by the
2826 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2829 class FontDialogPtr(FontDialog
):
2830 def __init__(self
, this
):
2832 if not hasattr(self
,"thisown"): self
.thisown
= 0
2833 self
.__class
__ = FontDialog
2834 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2836 class MessageDialog(Dialog
):
2838 This class provides a simple dialog that shows a single or multi-line
2839 message, with a choice of OK, Yes, No and/or Cancel buttons.
2842 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2843 def __init__(self
, *args
, **kwargs
):
2845 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2846 long style=wxOK|wxCANCEL|wxCENTRE,
2847 Point pos=DefaultPosition) -> MessageDialog
2849 Constructor, use `ShowModal` to display the dialog.
2851 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2852 self
.this
= newobj
.this
2855 self
._setOORInfo
(self
)
2858 class MessageDialogPtr(MessageDialog
):
2859 def __init__(self
, this
):
2861 if not hasattr(self
,"thisown"): self
.thisown
= 0
2862 self
.__class
__ = MessageDialog
2863 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2865 class ProgressDialog(Frame
):
2867 A dialog that shows a short message and a progress bar. Optionally, it
2868 can display an ABORT button.
2871 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2872 def __init__(self
, *args
, **kwargs
):
2874 __init__(self, String title, String message, int maximum=100, Window parent=None,
2875 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2877 Constructor. Creates the dialog, displays it and disables user input
2878 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2881 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2882 self
.this
= newobj
.this
2885 self
._setOORInfo
(self
)
2887 def Update(*args
, **kwargs
):
2889 Update(self, int value, String newmsg=EmptyString) -> bool
2891 Updates the dialog, setting the progress bar to the new value and, if
2892 given changes the message above it. The value given should be less
2893 than or equal to the maximum value given to the constructor and the
2894 dialog is closed if it is equal to the maximum. Returns true unless
2895 the Cancel button has been pressed.
2897 If false is returned, the application can either immediately destroy
2898 the dialog or ask the user for the confirmation and if the abort is
2899 not confirmed the dialog may be resumed with Resume function.
2901 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2903 def Resume(*args
, **kwargs
):
2907 Can be used to continue with the dialog, after the user had chosen to
2910 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2913 class ProgressDialogPtr(ProgressDialog
):
2914 def __init__(self
, this
):
2916 if not hasattr(self
,"thisown"): self
.thisown
= 0
2917 self
.__class
__ = ProgressDialog
2918 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2920 FR_DOWN
= _windows_
.FR_DOWN
2921 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2922 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2923 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2924 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2925 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2926 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2927 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2928 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2929 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2930 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2931 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2932 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2933 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2934 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2935 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2936 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2938 # For backwards compatibility. Should they be removed?
2939 EVT_COMMAND_FIND
= EVT_FIND
2940 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2941 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2942 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2943 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2945 class FindDialogEvent(_core
.CommandEvent
):
2946 """Events for the FindReplaceDialog"""
2948 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2949 def __init__(self
, *args
, **kwargs
):
2951 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2953 Events for the FindReplaceDialog
2955 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2956 self
.this
= newobj
.this
2959 def GetFlags(*args
, **kwargs
):
2961 GetFlags(self) -> int
2963 Get the currently selected flags: this is the combination of
2964 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2966 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2968 def GetFindString(*args
, **kwargs
):
2970 GetFindString(self) -> String
2972 Return the string to find (never empty).
2974 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2976 def GetReplaceString(*args
, **kwargs
):
2978 GetReplaceString(self) -> String
2980 Return the string to replace the search string with (only for replace
2981 and replace all events).
2983 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2985 def GetDialog(*args
, **kwargs
):
2987 GetDialog(self) -> FindReplaceDialog
2989 Return the pointer to the dialog which generated this event.
2991 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2993 def SetFlags(*args
, **kwargs
):
2994 """SetFlags(self, int flags)"""
2995 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2997 def SetFindString(*args
, **kwargs
):
2998 """SetFindString(self, String str)"""
2999 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3001 def SetReplaceString(*args
, **kwargs
):
3002 """SetReplaceString(self, String str)"""
3003 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3006 class FindDialogEventPtr(FindDialogEvent
):
3007 def __init__(self
, this
):
3009 if not hasattr(self
,"thisown"): self
.thisown
= 0
3010 self
.__class
__ = FindDialogEvent
3011 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3013 class FindReplaceData(_core
.Object
):
3015 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3016 to initialize the dialog with the default values and will keep the
3017 last values from the dialog when it is closed. It is also updated each
3018 time a `wx.FindDialogEvent` is generated so instead of using the
3019 `wx.FindDialogEvent` methods you can also directly query this object.
3021 Note that all SetXXX() methods may only be called before showing the
3022 dialog and calling them has no effect later.
3025 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3026 def __init__(self
, *args
, **kwargs
):
3028 __init__(self, int flags=0) -> FindReplaceData
3030 Constuctor initializes the flags to default value (0).
3032 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3033 self
.this
= newobj
.this
3036 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3039 if self
.thisown
: destroy(self
)
3042 def GetFindString(*args
, **kwargs
):
3044 GetFindString(self) -> String
3046 Get the string to find.
3048 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3050 def GetReplaceString(*args
, **kwargs
):
3052 GetReplaceString(self) -> String
3054 Get the replacement string.
3056 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3058 def GetFlags(*args
, **kwargs
):
3060 GetFlags(self) -> int
3062 Get the combination of flag values.
3064 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3066 def SetFlags(*args
, **kwargs
):
3068 SetFlags(self, int flags)
3070 Set the flags to use to initialize the controls of the dialog.
3072 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3074 def SetFindString(*args
, **kwargs
):
3076 SetFindString(self, String str)
3078 Set the string to find (used as initial value by the dialog).
3080 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3082 def SetReplaceString(*args
, **kwargs
):
3084 SetReplaceString(self, String str)
3086 Set the replacement string (used as initial value by the dialog).
3088 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3091 class FindReplaceDataPtr(FindReplaceData
):
3092 def __init__(self
, this
):
3094 if not hasattr(self
,"thisown"): self
.thisown
= 0
3095 self
.__class
__ = FindReplaceData
3096 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3098 class FindReplaceDialog(Dialog
):
3100 wx.FindReplaceDialog is a standard modeless dialog which is used to
3101 allow the user to search for some text (and possibly replace it with
3102 something else). The actual searching is supposed to be done in the
3103 owner window which is the parent of this dialog. Note that it means
3104 that unlike for the other standard dialogs this one must have a parent
3105 window. Also note that there is no way to use this dialog in a modal
3106 way; it is always, by design and implementation, modeless.
3109 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3110 def __init__(self
, *args
, **kwargs
):
3112 __init__(self, Window parent, FindReplaceData data, String title,
3113 int style=0) -> FindReplaceDialog
3115 Create a FindReplaceDialog. The parent and data parameters must be
3116 non-None. Use Show to display the dialog.
3118 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3119 self
.this
= newobj
.this
3122 self
._setOORInfo
(self
)
3124 def Create(*args
, **kwargs
):
3126 Create(self, Window parent, FindReplaceData data, String title,
3127 int style=0) -> bool
3129 Create the dialog, for 2-phase create.
3131 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3133 def GetData(*args
, **kwargs
):
3135 GetData(self) -> FindReplaceData
3137 Get the FindReplaceData object used by this dialog.
3139 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3141 def SetData(*args
, **kwargs
):
3143 SetData(self, FindReplaceData data)
3145 Set the FindReplaceData object used by this dialog.
3147 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3150 class FindReplaceDialogPtr(FindReplaceDialog
):
3151 def __init__(self
, this
):
3153 if not hasattr(self
,"thisown"): self
.thisown
= 0
3154 self
.__class
__ = FindReplaceDialog
3155 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3157 def PreFindReplaceDialog(*args
, **kwargs
):
3159 PreFindReplaceDialog() -> FindReplaceDialog
3161 Precreate a FindReplaceDialog for 2-phase creation
3163 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3167 #---------------------------------------------------------------------------
3169 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3170 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3171 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3172 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3173 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3174 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3175 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3176 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3177 class MDIParentFrame(Frame
):
3179 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3180 def __init__(self
, *args
, **kwargs
):
3182 __init__(self, Window parent, int id=-1, String title=EmptyString,
3183 Point pos=DefaultPosition, Size size=DefaultSize,
3184 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3185 String name=FrameNameStr) -> MDIParentFrame
3187 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3188 self
.this
= newobj
.this
3191 self
._setOORInfo
(self
)
3193 def Create(*args
, **kwargs
):
3195 Create(self, Window parent, int id=-1, String title=EmptyString,
3196 Point pos=DefaultPosition, Size size=DefaultSize,
3197 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3198 String name=FrameNameStr) -> bool
3200 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3202 def ActivateNext(*args
, **kwargs
):
3203 """ActivateNext(self)"""
3204 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3206 def ActivatePrevious(*args
, **kwargs
):
3207 """ActivatePrevious(self)"""
3208 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3210 def ArrangeIcons(*args
, **kwargs
):
3211 """ArrangeIcons(self)"""
3212 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3214 def Cascade(*args
, **kwargs
):
3216 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3218 def GetActiveChild(*args
, **kwargs
):
3219 """GetActiveChild(self) -> MDIChildFrame"""
3220 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3222 def GetClientWindow(*args
, **kwargs
):
3223 """GetClientWindow(self) -> MDIClientWindow"""
3224 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3226 def GetToolBar(*args
, **kwargs
):
3227 """GetToolBar(self) -> Window"""
3228 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3230 def GetWindowMenu(*args
, **kwargs
):
3231 """GetWindowMenu(self) -> Menu"""
3232 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3234 def SetWindowMenu(*args
, **kwargs
):
3235 """SetWindowMenu(self, Menu menu)"""
3236 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3238 def SetToolBar(*args
, **kwargs
):
3239 """SetToolBar(self, wxToolBar toolbar)"""
3240 return _windows_
.MDIParentFrame_SetToolBar(*args
, **kwargs
)
3242 def Tile(*args
, **kwargs
):
3244 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3247 class MDIParentFramePtr(MDIParentFrame
):
3248 def __init__(self
, this
):
3250 if not hasattr(self
,"thisown"): self
.thisown
= 0
3251 self
.__class
__ = MDIParentFrame
3252 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3254 def PreMDIParentFrame(*args
, **kwargs
):
3255 """PreMDIParentFrame() -> MDIParentFrame"""
3256 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3260 class MDIChildFrame(Frame
):
3262 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3263 def __init__(self
, *args
, **kwargs
):
3265 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3266 Point pos=DefaultPosition, Size size=DefaultSize,
3267 long style=DEFAULT_FRAME_STYLE,
3268 String name=FrameNameStr) -> MDIChildFrame
3270 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3271 self
.this
= newobj
.this
3274 self
._setOORInfo
(self
)
3276 def Create(*args
, **kwargs
):
3278 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3279 Point pos=DefaultPosition, Size size=DefaultSize,
3280 long style=DEFAULT_FRAME_STYLE,
3281 String name=FrameNameStr) -> bool
3283 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3285 def Activate(*args
, **kwargs
):
3286 """Activate(self)"""
3287 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3289 def Maximize(*args
, **kwargs
):
3290 """Maximize(self, bool maximize)"""
3291 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3293 def Restore(*args
, **kwargs
):
3295 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3298 class MDIChildFramePtr(MDIChildFrame
):
3299 def __init__(self
, this
):
3301 if not hasattr(self
,"thisown"): self
.thisown
= 0
3302 self
.__class
__ = MDIChildFrame
3303 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3305 def PreMDIChildFrame(*args
, **kwargs
):
3306 """PreMDIChildFrame() -> MDIChildFrame"""
3307 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3311 class MDIClientWindow(_core
.Window
):
3313 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3314 def __init__(self
, *args
, **kwargs
):
3315 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3316 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3317 self
.this
= newobj
.this
3320 self
._setOORInfo
(self
)
3322 def Create(*args
, **kwargs
):
3323 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3324 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3327 class MDIClientWindowPtr(MDIClientWindow
):
3328 def __init__(self
, this
):
3330 if not hasattr(self
,"thisown"): self
.thisown
= 0
3331 self
.__class
__ = MDIClientWindow
3332 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3334 def PreMDIClientWindow(*args
, **kwargs
):
3335 """PreMDIClientWindow() -> MDIClientWindow"""
3336 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3340 #---------------------------------------------------------------------------
3342 class PyWindow(_core
.Window
):
3344 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3345 def __init__(self
, *args
, **kwargs
):
3347 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3348 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3350 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3351 self
.this
= newobj
.this
3354 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3356 def _setCallbackInfo(*args
, **kwargs
):
3357 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3358 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3360 def SetBestSize(*args
, **kwargs
):
3361 """SetBestSize(self, Size size)"""
3362 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3364 def base_DoMoveWindow(*args
, **kwargs
):
3365 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3366 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3368 def base_DoSetSize(*args
, **kwargs
):
3369 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3370 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3372 def base_DoSetClientSize(*args
, **kwargs
):
3373 """base_DoSetClientSize(self, int width, int height)"""
3374 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3376 def base_DoSetVirtualSize(*args
, **kwargs
):
3377 """base_DoSetVirtualSize(self, int x, int y)"""
3378 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3380 def base_DoGetSize(*args
, **kwargs
):
3381 """base_DoGetSize() -> (width, height)"""
3382 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3384 def base_DoGetClientSize(*args
, **kwargs
):
3385 """base_DoGetClientSize() -> (width, height)"""
3386 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3388 def base_DoGetPosition(*args
, **kwargs
):
3389 """base_DoGetPosition() -> (x,y)"""
3390 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3392 def base_DoGetVirtualSize(*args
, **kwargs
):
3393 """base_DoGetVirtualSize(self) -> Size"""
3394 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3396 def base_DoGetBestSize(*args
, **kwargs
):
3397 """base_DoGetBestSize(self) -> Size"""
3398 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3400 def base_InitDialog(*args
, **kwargs
):
3401 """base_InitDialog(self)"""
3402 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3404 def base_TransferDataToWindow(*args
, **kwargs
):
3405 """base_TransferDataToWindow(self) -> bool"""
3406 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3408 def base_TransferDataFromWindow(*args
, **kwargs
):
3409 """base_TransferDataFromWindow(self) -> bool"""
3410 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3412 def base_Validate(*args
, **kwargs
):
3413 """base_Validate(self) -> bool"""
3414 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3416 def base_AcceptsFocus(*args
, **kwargs
):
3417 """base_AcceptsFocus(self) -> bool"""
3418 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3420 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3421 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3422 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3424 def base_GetMaxSize(*args
, **kwargs
):
3425 """base_GetMaxSize(self) -> Size"""
3426 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3428 def base_AddChild(*args
, **kwargs
):
3429 """base_AddChild(self, Window child)"""
3430 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3432 def base_RemoveChild(*args
, **kwargs
):
3433 """base_RemoveChild(self, Window child)"""
3434 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3436 def base_ShouldInheritColours(*args
, **kwargs
):
3437 """base_ShouldInheritColours(self) -> bool"""
3438 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3440 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3441 """base_ApplyParentThemeBackground(self, Colour c)"""
3442 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3444 def base_GetDefaultAttributes(*args
, **kwargs
):
3445 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3446 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3449 class PyWindowPtr(PyWindow
):
3450 def __init__(self
, this
):
3452 if not hasattr(self
,"thisown"): self
.thisown
= 0
3453 self
.__class
__ = PyWindow
3454 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3456 def PrePyWindow(*args
, **kwargs
):
3457 """PrePyWindow() -> PyWindow"""
3458 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3462 class PyPanel(Panel
):
3464 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3465 def __init__(self
, *args
, **kwargs
):
3467 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3468 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3470 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3471 self
.this
= newobj
.this
3474 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3476 def _setCallbackInfo(*args
, **kwargs
):
3477 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3478 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3480 def SetBestSize(*args
, **kwargs
):
3481 """SetBestSize(self, Size size)"""
3482 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3484 def base_DoMoveWindow(*args
, **kwargs
):
3485 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3486 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3488 def base_DoSetSize(*args
, **kwargs
):
3489 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3490 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3492 def base_DoSetClientSize(*args
, **kwargs
):
3493 """base_DoSetClientSize(self, int width, int height)"""
3494 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3496 def base_DoSetVirtualSize(*args
, **kwargs
):
3497 """base_DoSetVirtualSize(self, int x, int y)"""
3498 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3500 def base_DoGetSize(*args
, **kwargs
):
3501 """base_DoGetSize() -> (width, height)"""
3502 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3504 def base_DoGetClientSize(*args
, **kwargs
):
3505 """base_DoGetClientSize() -> (width, height)"""
3506 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3508 def base_DoGetPosition(*args
, **kwargs
):
3509 """base_DoGetPosition() -> (x,y)"""
3510 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3512 def base_DoGetVirtualSize(*args
, **kwargs
):
3513 """base_DoGetVirtualSize(self) -> Size"""
3514 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3516 def base_DoGetBestSize(*args
, **kwargs
):
3517 """base_DoGetBestSize(self) -> Size"""
3518 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3520 def base_InitDialog(*args
, **kwargs
):
3521 """base_InitDialog(self)"""
3522 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3524 def base_TransferDataToWindow(*args
, **kwargs
):
3525 """base_TransferDataToWindow(self) -> bool"""
3526 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3528 def base_TransferDataFromWindow(*args
, **kwargs
):
3529 """base_TransferDataFromWindow(self) -> bool"""
3530 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3532 def base_Validate(*args
, **kwargs
):
3533 """base_Validate(self) -> bool"""
3534 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3536 def base_AcceptsFocus(*args
, **kwargs
):
3537 """base_AcceptsFocus(self) -> bool"""
3538 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3540 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3541 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3542 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3544 def base_GetMaxSize(*args
, **kwargs
):
3545 """base_GetMaxSize(self) -> Size"""
3546 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3548 def base_AddChild(*args
, **kwargs
):
3549 """base_AddChild(self, Window child)"""
3550 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3552 def base_RemoveChild(*args
, **kwargs
):
3553 """base_RemoveChild(self, Window child)"""
3554 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3556 def base_ShouldInheritColours(*args
, **kwargs
):
3557 """base_ShouldInheritColours(self) -> bool"""
3558 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3560 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3561 """base_ApplyParentThemeBackground(self, Colour c)"""
3562 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3564 def base_GetDefaultAttributes(*args
, **kwargs
):
3565 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3566 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3569 class PyPanelPtr(PyPanel
):
3570 def __init__(self
, this
):
3572 if not hasattr(self
,"thisown"): self
.thisown
= 0
3573 self
.__class
__ = PyPanel
3574 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3576 def PrePyPanel(*args
, **kwargs
):
3577 """PrePyPanel() -> PyPanel"""
3578 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3582 class PyScrolledWindow(ScrolledWindow
):
3584 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3585 def __init__(self
, *args
, **kwargs
):
3587 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3588 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3590 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3591 self
.this
= newobj
.this
3594 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3596 def _setCallbackInfo(*args
, **kwargs
):
3597 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3598 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3600 def SetBestSize(*args
, **kwargs
):
3601 """SetBestSize(self, Size size)"""
3602 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3604 def base_DoMoveWindow(*args
, **kwargs
):
3605 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3606 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3608 def base_DoSetSize(*args
, **kwargs
):
3609 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3610 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3612 def base_DoSetClientSize(*args
, **kwargs
):
3613 """base_DoSetClientSize(self, int width, int height)"""
3614 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3616 def base_DoSetVirtualSize(*args
, **kwargs
):
3617 """base_DoSetVirtualSize(self, int x, int y)"""
3618 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3620 def base_DoGetSize(*args
, **kwargs
):
3621 """base_DoGetSize() -> (width, height)"""
3622 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3624 def base_DoGetClientSize(*args
, **kwargs
):
3625 """base_DoGetClientSize() -> (width, height)"""
3626 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3628 def base_DoGetPosition(*args
, **kwargs
):
3629 """base_DoGetPosition() -> (x,y)"""
3630 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3632 def base_DoGetVirtualSize(*args
, **kwargs
):
3633 """base_DoGetVirtualSize(self) -> Size"""
3634 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3636 def base_DoGetBestSize(*args
, **kwargs
):
3637 """base_DoGetBestSize(self) -> Size"""
3638 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3640 def base_InitDialog(*args
, **kwargs
):
3641 """base_InitDialog(self)"""
3642 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3644 def base_TransferDataToWindow(*args
, **kwargs
):
3645 """base_TransferDataToWindow(self) -> bool"""
3646 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3648 def base_TransferDataFromWindow(*args
, **kwargs
):
3649 """base_TransferDataFromWindow(self) -> bool"""
3650 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3652 def base_Validate(*args
, **kwargs
):
3653 """base_Validate(self) -> bool"""
3654 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3656 def base_AcceptsFocus(*args
, **kwargs
):
3657 """base_AcceptsFocus(self) -> bool"""
3658 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3660 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3661 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3662 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3664 def base_GetMaxSize(*args
, **kwargs
):
3665 """base_GetMaxSize(self) -> Size"""
3666 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3668 def base_AddChild(*args
, **kwargs
):
3669 """base_AddChild(self, Window child)"""
3670 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3672 def base_RemoveChild(*args
, **kwargs
):
3673 """base_RemoveChild(self, Window child)"""
3674 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3676 def base_ShouldInheritColours(*args
, **kwargs
):
3677 """base_ShouldInheritColours(self) -> bool"""
3678 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3680 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3681 """base_ApplyParentThemeBackground(self, Colour c)"""
3682 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3684 def base_GetDefaultAttributes(*args
, **kwargs
):
3685 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3686 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3689 class PyScrolledWindowPtr(PyScrolledWindow
):
3690 def __init__(self
, this
):
3692 if not hasattr(self
,"thisown"): self
.thisown
= 0
3693 self
.__class
__ = PyScrolledWindow
3694 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3696 def PrePyScrolledWindow(*args
, **kwargs
):
3697 """PrePyScrolledWindow() -> PyScrolledWindow"""
3698 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3702 #---------------------------------------------------------------------------
3704 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3705 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3706 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3707 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3708 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3709 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3710 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3711 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3712 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3713 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3714 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3715 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3716 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3717 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3718 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3719 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3720 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3721 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3722 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3723 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3724 class PrintData(_core
.Object
):
3726 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3727 def __init__(self
, *args
):
3729 __init__(self) -> PrintData
3730 __init__(self, PrintData data) -> PrintData
3732 newobj
= _windows_
.new_PrintData(*args
)
3733 self
.this
= newobj
.this
3736 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3739 if self
.thisown
: destroy(self
)
3742 def GetNoCopies(*args
, **kwargs
):
3743 """GetNoCopies(self) -> int"""
3744 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3746 def GetCollate(*args
, **kwargs
):
3747 """GetCollate(self) -> bool"""
3748 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3750 def GetOrientation(*args
, **kwargs
):
3751 """GetOrientation(self) -> int"""
3752 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3754 def Ok(*args
, **kwargs
):
3755 """Ok(self) -> bool"""
3756 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3758 def GetPrinterName(*args
, **kwargs
):
3759 """GetPrinterName(self) -> String"""
3760 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3762 def GetColour(*args
, **kwargs
):
3763 """GetColour(self) -> bool"""
3764 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3766 def GetDuplex(*args
, **kwargs
):
3767 """GetDuplex(self) -> int"""
3768 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3770 def GetPaperId(*args
, **kwargs
):
3771 """GetPaperId(self) -> int"""
3772 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3774 def GetPaperSize(*args
, **kwargs
):
3775 """GetPaperSize(self) -> Size"""
3776 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3778 def GetQuality(*args
, **kwargs
):
3779 """GetQuality(self) -> int"""
3780 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3782 def GetBin(*args
, **kwargs
):
3783 """GetBin(self) -> int"""
3784 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3786 def SetNoCopies(*args
, **kwargs
):
3787 """SetNoCopies(self, int v)"""
3788 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3790 def SetCollate(*args
, **kwargs
):
3791 """SetCollate(self, bool flag)"""
3792 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3794 def SetOrientation(*args
, **kwargs
):
3795 """SetOrientation(self, int orient)"""
3796 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3798 def SetPrinterName(*args
, **kwargs
):
3799 """SetPrinterName(self, String name)"""
3800 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3802 def SetColour(*args
, **kwargs
):
3803 """SetColour(self, bool colour)"""
3804 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3806 def SetDuplex(*args
, **kwargs
):
3807 """SetDuplex(self, int duplex)"""
3808 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3810 def SetPaperId(*args
, **kwargs
):
3811 """SetPaperId(self, int sizeId)"""
3812 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3814 def SetPaperSize(*args
, **kwargs
):
3815 """SetPaperSize(self, Size sz)"""
3816 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3818 def SetQuality(*args
, **kwargs
):
3819 """SetQuality(self, int quality)"""
3820 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3822 def SetBin(*args
, **kwargs
):
3823 """SetBin(self, int bin)"""
3824 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3826 def GetPrinterCommand(*args
, **kwargs
):
3827 """GetPrinterCommand(self) -> String"""
3828 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3830 def GetPrinterOptions(*args
, **kwargs
):
3831 """GetPrinterOptions(self) -> String"""
3832 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3834 def GetPreviewCommand(*args
, **kwargs
):
3835 """GetPreviewCommand(self) -> String"""
3836 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3838 def GetFilename(*args
, **kwargs
):
3839 """GetFilename(self) -> String"""
3840 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3842 def GetFontMetricPath(*args
, **kwargs
):
3843 """GetFontMetricPath(self) -> String"""
3844 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3846 def GetPrinterScaleX(*args
, **kwargs
):
3847 """GetPrinterScaleX(self) -> double"""
3848 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3850 def GetPrinterScaleY(*args
, **kwargs
):
3851 """GetPrinterScaleY(self) -> double"""
3852 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3854 def GetPrinterTranslateX(*args
, **kwargs
):
3855 """GetPrinterTranslateX(self) -> long"""
3856 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3858 def GetPrinterTranslateY(*args
, **kwargs
):
3859 """GetPrinterTranslateY(self) -> long"""
3860 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3862 def GetPrintMode(*args
, **kwargs
):
3863 """GetPrintMode(self) -> int"""
3864 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3866 def SetPrinterCommand(*args
, **kwargs
):
3867 """SetPrinterCommand(self, String command)"""
3868 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3870 def SetPrinterOptions(*args
, **kwargs
):
3871 """SetPrinterOptions(self, String options)"""
3872 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3874 def SetPreviewCommand(*args
, **kwargs
):
3875 """SetPreviewCommand(self, String command)"""
3876 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3878 def SetFilename(*args
, **kwargs
):
3879 """SetFilename(self, String filename)"""
3880 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3882 def SetFontMetricPath(*args
, **kwargs
):
3883 """SetFontMetricPath(self, String path)"""
3884 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3886 def SetPrinterScaleX(*args
, **kwargs
):
3887 """SetPrinterScaleX(self, double x)"""
3888 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3890 def SetPrinterScaleY(*args
, **kwargs
):
3891 """SetPrinterScaleY(self, double y)"""
3892 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3894 def SetPrinterScaling(*args
, **kwargs
):
3895 """SetPrinterScaling(self, double x, double y)"""
3896 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3898 def SetPrinterTranslateX(*args
, **kwargs
):
3899 """SetPrinterTranslateX(self, long x)"""
3900 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3902 def SetPrinterTranslateY(*args
, **kwargs
):
3903 """SetPrinterTranslateY(self, long y)"""
3904 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3906 def SetPrinterTranslation(*args
, **kwargs
):
3907 """SetPrinterTranslation(self, long x, long y)"""
3908 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3910 def SetPrintMode(*args
, **kwargs
):
3911 """SetPrintMode(self, int printMode)"""
3912 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3914 def GetOutputStream(*args
, **kwargs
):
3915 """GetOutputStream(self) -> OutputStream"""
3916 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3918 def SetOutputStream(*args
, **kwargs
):
3919 """SetOutputStream(self, OutputStream outputstream)"""
3920 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3922 def __nonzero__(self
): return self
.Ok()
3924 class PrintDataPtr(PrintData
):
3925 def __init__(self
, this
):
3927 if not hasattr(self
,"thisown"): self
.thisown
= 0
3928 self
.__class
__ = PrintData
3929 _windows_
.PrintData_swigregister(PrintDataPtr
)
3930 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3931 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3933 class PageSetupDialogData(_core
.Object
):
3935 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3936 def __init__(self
, *args
):
3938 __init__(self) -> PageSetupDialogData
3939 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3941 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3942 self
.this
= newobj
.this
3945 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3948 if self
.thisown
: destroy(self
)
3951 def EnableHelp(*args
, **kwargs
):
3952 """EnableHelp(self, bool flag)"""
3953 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3955 def EnableMargins(*args
, **kwargs
):
3956 """EnableMargins(self, bool flag)"""
3957 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3959 def EnableOrientation(*args
, **kwargs
):
3960 """EnableOrientation(self, bool flag)"""
3961 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3963 def EnablePaper(*args
, **kwargs
):
3964 """EnablePaper(self, bool flag)"""
3965 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3967 def EnablePrinter(*args
, **kwargs
):
3968 """EnablePrinter(self, bool flag)"""
3969 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3971 def GetDefaultMinMargins(*args
, **kwargs
):
3972 """GetDefaultMinMargins(self) -> bool"""
3973 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3975 def GetEnableMargins(*args
, **kwargs
):
3976 """GetEnableMargins(self) -> bool"""
3977 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3979 def GetEnableOrientation(*args
, **kwargs
):
3980 """GetEnableOrientation(self) -> bool"""
3981 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3983 def GetEnablePaper(*args
, **kwargs
):
3984 """GetEnablePaper(self) -> bool"""
3985 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3987 def GetEnablePrinter(*args
, **kwargs
):
3988 """GetEnablePrinter(self) -> bool"""
3989 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3991 def GetEnableHelp(*args
, **kwargs
):
3992 """GetEnableHelp(self) -> bool"""
3993 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3995 def GetDefaultInfo(*args
, **kwargs
):
3996 """GetDefaultInfo(self) -> bool"""
3997 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3999 def GetMarginTopLeft(*args
, **kwargs
):
4000 """GetMarginTopLeft(self) -> Point"""
4001 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
4003 def GetMarginBottomRight(*args
, **kwargs
):
4004 """GetMarginBottomRight(self) -> Point"""
4005 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
4007 def GetMinMarginTopLeft(*args
, **kwargs
):
4008 """GetMinMarginTopLeft(self) -> Point"""
4009 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4011 def GetMinMarginBottomRight(*args
, **kwargs
):
4012 """GetMinMarginBottomRight(self) -> Point"""
4013 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4015 def GetPaperId(*args
, **kwargs
):
4016 """GetPaperId(self) -> int"""
4017 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4019 def GetPaperSize(*args
, **kwargs
):
4020 """GetPaperSize(self) -> Size"""
4021 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4023 def GetPrintData(*args
, **kwargs
):
4024 """GetPrintData(self) -> PrintData"""
4025 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4027 def Ok(*args
, **kwargs
):
4028 """Ok(self) -> bool"""
4029 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4031 def SetDefaultInfo(*args
, **kwargs
):
4032 """SetDefaultInfo(self, bool flag)"""
4033 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4035 def SetDefaultMinMargins(*args
, **kwargs
):
4036 """SetDefaultMinMargins(self, bool flag)"""
4037 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4039 def SetMarginTopLeft(*args
, **kwargs
):
4040 """SetMarginTopLeft(self, Point pt)"""
4041 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4043 def SetMarginBottomRight(*args
, **kwargs
):
4044 """SetMarginBottomRight(self, Point pt)"""
4045 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4047 def SetMinMarginTopLeft(*args
, **kwargs
):
4048 """SetMinMarginTopLeft(self, Point pt)"""
4049 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4051 def SetMinMarginBottomRight(*args
, **kwargs
):
4052 """SetMinMarginBottomRight(self, Point pt)"""
4053 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4055 def SetPaperId(*args
, **kwargs
):
4056 """SetPaperId(self, int id)"""
4057 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4059 def SetPaperSize(*args
, **kwargs
):
4060 """SetPaperSize(self, Size size)"""
4061 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4063 def SetPrintData(*args
, **kwargs
):
4064 """SetPrintData(self, PrintData printData)"""
4065 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4067 def __nonzero__(self
): return self
.Ok()
4069 class PageSetupDialogDataPtr(PageSetupDialogData
):
4070 def __init__(self
, this
):
4072 if not hasattr(self
,"thisown"): self
.thisown
= 0
4073 self
.__class
__ = PageSetupDialogData
4074 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4076 class PageSetupDialog(Dialog
):
4078 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4079 def __init__(self
, *args
, **kwargs
):
4080 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4081 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4082 self
.this
= newobj
.this
4085 self
._setOORInfo
(self
)
4087 def GetPageSetupData(*args
, **kwargs
):
4088 """GetPageSetupData(self) -> PageSetupDialogData"""
4089 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4091 def ShowModal(*args
, **kwargs
):
4092 """ShowModal(self) -> int"""
4093 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4096 class PageSetupDialogPtr(PageSetupDialog
):
4097 def __init__(self
, this
):
4099 if not hasattr(self
,"thisown"): self
.thisown
= 0
4100 self
.__class
__ = PageSetupDialog
4101 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4103 class PrintDialogData(_core
.Object
):
4105 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4106 def __init__(self
, *args
):
4108 __init__(self) -> PrintDialogData
4109 __init__(self, PrintData printData) -> PrintDialogData
4111 newobj
= _windows_
.new_PrintDialogData(*args
)
4112 self
.this
= newobj
.this
4115 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4118 if self
.thisown
: destroy(self
)
4121 def GetFromPage(*args
, **kwargs
):
4122 """GetFromPage(self) -> int"""
4123 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4125 def GetToPage(*args
, **kwargs
):
4126 """GetToPage(self) -> int"""
4127 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4129 def GetMinPage(*args
, **kwargs
):
4130 """GetMinPage(self) -> int"""
4131 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4133 def GetMaxPage(*args
, **kwargs
):
4134 """GetMaxPage(self) -> int"""
4135 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4137 def GetNoCopies(*args
, **kwargs
):
4138 """GetNoCopies(self) -> int"""
4139 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4141 def GetAllPages(*args
, **kwargs
):
4142 """GetAllPages(self) -> bool"""
4143 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4145 def GetSelection(*args
, **kwargs
):
4146 """GetSelection(self) -> bool"""
4147 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4149 def GetCollate(*args
, **kwargs
):
4150 """GetCollate(self) -> bool"""
4151 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4153 def GetPrintToFile(*args
, **kwargs
):
4154 """GetPrintToFile(self) -> bool"""
4155 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4157 def GetSetupDialog(*args
, **kwargs
):
4158 """GetSetupDialog(self) -> bool"""
4159 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4161 def SetFromPage(*args
, **kwargs
):
4162 """SetFromPage(self, int v)"""
4163 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4165 def SetToPage(*args
, **kwargs
):
4166 """SetToPage(self, int v)"""
4167 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4169 def SetMinPage(*args
, **kwargs
):
4170 """SetMinPage(self, int v)"""
4171 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4173 def SetMaxPage(*args
, **kwargs
):
4174 """SetMaxPage(self, int v)"""
4175 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4177 def SetNoCopies(*args
, **kwargs
):
4178 """SetNoCopies(self, int v)"""
4179 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4181 def SetAllPages(*args
, **kwargs
):
4182 """SetAllPages(self, bool flag)"""
4183 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4185 def SetSelection(*args
, **kwargs
):
4186 """SetSelection(self, bool flag)"""
4187 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4189 def SetCollate(*args
, **kwargs
):
4190 """SetCollate(self, bool flag)"""
4191 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4193 def SetPrintToFile(*args
, **kwargs
):
4194 """SetPrintToFile(self, bool flag)"""
4195 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4197 def SetSetupDialog(*args
, **kwargs
):
4198 """SetSetupDialog(self, bool flag)"""
4199 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4201 def EnablePrintToFile(*args
, **kwargs
):
4202 """EnablePrintToFile(self, bool flag)"""
4203 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4205 def EnableSelection(*args
, **kwargs
):
4206 """EnableSelection(self, bool flag)"""
4207 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4209 def EnablePageNumbers(*args
, **kwargs
):
4210 """EnablePageNumbers(self, bool flag)"""
4211 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4213 def EnableHelp(*args
, **kwargs
):
4214 """EnableHelp(self, bool flag)"""
4215 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4217 def GetEnablePrintToFile(*args
, **kwargs
):
4218 """GetEnablePrintToFile(self) -> bool"""
4219 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4221 def GetEnableSelection(*args
, **kwargs
):
4222 """GetEnableSelection(self) -> bool"""
4223 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4225 def GetEnablePageNumbers(*args
, **kwargs
):
4226 """GetEnablePageNumbers(self) -> bool"""
4227 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4229 def GetEnableHelp(*args
, **kwargs
):
4230 """GetEnableHelp(self) -> bool"""
4231 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4233 def Ok(*args
, **kwargs
):
4234 """Ok(self) -> bool"""
4235 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4237 def GetPrintData(*args
, **kwargs
):
4238 """GetPrintData(self) -> PrintData"""
4239 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4241 def SetPrintData(*args
, **kwargs
):
4242 """SetPrintData(self, PrintData printData)"""
4243 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4245 def __nonzero__(self
): return self
.Ok()
4247 class PrintDialogDataPtr(PrintDialogData
):
4248 def __init__(self
, this
):
4250 if not hasattr(self
,"thisown"): self
.thisown
= 0
4251 self
.__class
__ = PrintDialogData
4252 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4254 class PrintDialog(Dialog
):
4256 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4257 def __init__(self
, *args
, **kwargs
):
4258 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4259 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4260 self
.this
= newobj
.this
4263 self
._setOORInfo
(self
)
4265 def GetPrintDialogData(*args
, **kwargs
):
4266 """GetPrintDialogData(self) -> PrintDialogData"""
4267 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4269 def GetPrintDC(*args
, **kwargs
):
4270 """GetPrintDC(self) -> DC"""
4271 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4273 def ShowModal(*args
, **kwargs
):
4274 """ShowModal(self) -> int"""
4275 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4278 class PrintDialogPtr(PrintDialog
):
4279 def __init__(self
, this
):
4281 if not hasattr(self
,"thisown"): self
.thisown
= 0
4282 self
.__class
__ = PrintDialog
4283 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4285 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4286 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4287 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4288 class Printer(_core
.Object
):
4290 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4291 def __init__(self
, *args
, **kwargs
):
4292 """__init__(self, PrintDialogData data=None) -> Printer"""
4293 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4294 self
.this
= newobj
.this
4297 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4300 if self
.thisown
: destroy(self
)
4303 def CreateAbortWindow(*args
, **kwargs
):
4304 """CreateAbortWindow(self, Window parent, Printout printout)"""
4305 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4307 def GetPrintDialogData(*args
, **kwargs
):
4308 """GetPrintDialogData(self) -> PrintDialogData"""
4309 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4311 def Print(*args
, **kwargs
):
4312 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4313 return _windows_
.Printer_Print(*args
, **kwargs
)
4315 def PrintDialog(*args
, **kwargs
):
4316 """PrintDialog(self, Window parent) -> DC"""
4317 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4319 def ReportError(*args
, **kwargs
):
4320 """ReportError(self, Window parent, Printout printout, String message)"""
4321 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4323 def Setup(*args
, **kwargs
):
4324 """Setup(self, Window parent) -> bool"""
4325 return _windows_
.Printer_Setup(*args
, **kwargs
)
4327 def GetAbort(*args
, **kwargs
):
4328 """GetAbort(self) -> bool"""
4329 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4331 def GetLastError(*args
, **kwargs
):
4332 """GetLastError() -> int"""
4333 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4335 GetLastError
= staticmethod(GetLastError
)
4337 class PrinterPtr(Printer
):
4338 def __init__(self
, this
):
4340 if not hasattr(self
,"thisown"): self
.thisown
= 0
4341 self
.__class
__ = Printer
4342 _windows_
.Printer_swigregister(PrinterPtr
)
4344 def Printer_GetLastError(*args
, **kwargs
):
4345 """Printer_GetLastError() -> int"""
4346 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4348 class Printout(_core
.Object
):
4350 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4351 def __init__(self
, *args
, **kwargs
):
4352 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4353 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4354 self
.this
= newobj
.this
4357 self
._setCallbackInfo
(self
, Printout
)
4359 def _setCallbackInfo(*args
, **kwargs
):
4360 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4361 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4363 def GetTitle(*args
, **kwargs
):
4364 """GetTitle(self) -> String"""
4365 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4367 def GetDC(*args
, **kwargs
):
4368 """GetDC(self) -> DC"""
4369 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4371 def SetDC(*args
, **kwargs
):
4372 """SetDC(self, DC dc)"""
4373 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4375 def SetPageSizePixels(*args
, **kwargs
):
4376 """SetPageSizePixels(self, int w, int h)"""
4377 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4379 def GetPageSizePixels(*args
, **kwargs
):
4380 """GetPageSizePixels() -> (w, h)"""
4381 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4383 def SetPageSizeMM(*args
, **kwargs
):
4384 """SetPageSizeMM(self, int w, int h)"""
4385 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4387 def GetPageSizeMM(*args
, **kwargs
):
4388 """GetPageSizeMM() -> (w, h)"""
4389 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4391 def SetPPIScreen(*args
, **kwargs
):
4392 """SetPPIScreen(self, int x, int y)"""
4393 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4395 def GetPPIScreen(*args
, **kwargs
):
4396 """GetPPIScreen() -> (x,y)"""
4397 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4399 def SetPPIPrinter(*args
, **kwargs
):
4400 """SetPPIPrinter(self, int x, int y)"""
4401 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4403 def GetPPIPrinter(*args
, **kwargs
):
4404 """GetPPIPrinter() -> (x,y)"""
4405 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4407 def IsPreview(*args
, **kwargs
):
4408 """IsPreview(self) -> bool"""
4409 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4411 def SetIsPreview(*args
, **kwargs
):
4412 """SetIsPreview(self, bool p)"""
4413 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4415 def base_OnBeginDocument(*args
, **kwargs
):
4416 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4417 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4419 def base_OnEndDocument(*args
, **kwargs
):
4420 """base_OnEndDocument(self)"""
4421 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4423 def base_OnBeginPrinting(*args
, **kwargs
):
4424 """base_OnBeginPrinting(self)"""
4425 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4427 def base_OnEndPrinting(*args
, **kwargs
):
4428 """base_OnEndPrinting(self)"""
4429 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4431 def base_OnPreparePrinting(*args
, **kwargs
):
4432 """base_OnPreparePrinting(self)"""
4433 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4435 def base_HasPage(*args
, **kwargs
):
4436 """base_HasPage(self, int page) -> bool"""
4437 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4439 def base_GetPageInfo(*args
, **kwargs
):
4440 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4441 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4444 class PrintoutPtr(Printout
):
4445 def __init__(self
, this
):
4447 if not hasattr(self
,"thisown"): self
.thisown
= 0
4448 self
.__class
__ = Printout
4449 _windows_
.Printout_swigregister(PrintoutPtr
)
4451 class PreviewCanvas(ScrolledWindow
):
4453 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4454 def __init__(self
, *args
, **kwargs
):
4456 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4457 Size size=DefaultSize, long style=0,
4458 String name=PreviewCanvasNameStr) -> PreviewCanvas
4460 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4461 self
.this
= newobj
.this
4464 self
._setOORInfo
(self
)
4467 class PreviewCanvasPtr(PreviewCanvas
):
4468 def __init__(self
, this
):
4470 if not hasattr(self
,"thisown"): self
.thisown
= 0
4471 self
.__class
__ = PreviewCanvas
4472 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4474 class PreviewFrame(Frame
):
4476 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4477 def __init__(self
, *args
, **kwargs
):
4479 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4480 Size size=DefaultSize,
4481 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4483 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4484 self
.this
= newobj
.this
4487 self
._setOORInfo
(self
)
4489 def Initialize(*args
, **kwargs
):
4490 """Initialize(self)"""
4491 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4493 def CreateControlBar(*args
, **kwargs
):
4494 """CreateControlBar(self)"""
4495 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4497 def CreateCanvas(*args
, **kwargs
):
4498 """CreateCanvas(self)"""
4499 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4501 def GetControlBar(*args
, **kwargs
):
4502 """GetControlBar(self) -> PreviewControlBar"""
4503 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4506 class PreviewFramePtr(PreviewFrame
):
4507 def __init__(self
, this
):
4509 if not hasattr(self
,"thisown"): self
.thisown
= 0
4510 self
.__class
__ = PreviewFrame
4511 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4513 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4514 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4515 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4516 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4517 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4518 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4519 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4520 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4521 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4522 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4523 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4524 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4525 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4526 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4527 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4528 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4529 class PreviewControlBar(Panel
):
4531 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4532 def __init__(self
, *args
, **kwargs
):
4534 __init__(self, PrintPreview preview, long buttons, Window parent,
4535 Point pos=DefaultPosition, Size size=DefaultSize,
4536 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4538 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4539 self
.this
= newobj
.this
4542 self
._setOORInfo
(self
)
4544 def GetZoomControl(*args
, **kwargs
):
4545 """GetZoomControl(self) -> int"""
4546 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4548 def SetZoomControl(*args
, **kwargs
):
4549 """SetZoomControl(self, int zoom)"""
4550 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4552 def GetPrintPreview(*args
, **kwargs
):
4553 """GetPrintPreview(self) -> PrintPreview"""
4554 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4556 def OnNext(*args
, **kwargs
):
4558 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4560 def OnPrevious(*args
, **kwargs
):
4561 """OnPrevious(self)"""
4562 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4564 def OnFirst(*args
, **kwargs
):
4566 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4568 def OnLast(*args
, **kwargs
):
4570 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4572 def OnGoto(*args
, **kwargs
):
4574 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4577 class PreviewControlBarPtr(PreviewControlBar
):
4578 def __init__(self
, this
):
4580 if not hasattr(self
,"thisown"): self
.thisown
= 0
4581 self
.__class
__ = PreviewControlBar
4582 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4584 class PrintPreview(_core
.Object
):
4586 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4587 def __init__(self
, *args
):
4589 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4590 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4592 newobj
= _windows_
.new_PrintPreview(*args
)
4593 self
.this
= newobj
.this
4596 def SetCurrentPage(*args
, **kwargs
):
4597 """SetCurrentPage(self, int pageNum) -> bool"""
4598 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4600 def GetCurrentPage(*args
, **kwargs
):
4601 """GetCurrentPage(self) -> int"""
4602 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4604 def SetPrintout(*args
, **kwargs
):
4605 """SetPrintout(self, Printout printout)"""
4606 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4608 def GetPrintout(*args
, **kwargs
):
4609 """GetPrintout(self) -> Printout"""
4610 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4612 def GetPrintoutForPrinting(*args
, **kwargs
):
4613 """GetPrintoutForPrinting(self) -> Printout"""
4614 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4616 def SetFrame(*args
, **kwargs
):
4617 """SetFrame(self, Frame frame)"""
4618 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4620 def SetCanvas(*args
, **kwargs
):
4621 """SetCanvas(self, PreviewCanvas canvas)"""
4622 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4624 def GetFrame(*args
, **kwargs
):
4625 """GetFrame(self) -> Frame"""
4626 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4628 def GetCanvas(*args
, **kwargs
):
4629 """GetCanvas(self) -> PreviewCanvas"""
4630 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4632 def PaintPage(*args
, **kwargs
):
4633 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4634 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4636 def DrawBlankPage(*args
, **kwargs
):
4637 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4638 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4640 def RenderPage(*args
, **kwargs
):
4641 """RenderPage(self, int pageNum) -> bool"""
4642 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4644 def AdjustScrollbars(*args
, **kwargs
):
4645 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4646 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4648 def GetPrintDialogData(*args
, **kwargs
):
4649 """GetPrintDialogData(self) -> PrintDialogData"""
4650 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4652 def SetZoom(*args
, **kwargs
):
4653 """SetZoom(self, int percent)"""
4654 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4656 def GetZoom(*args
, **kwargs
):
4657 """GetZoom(self) -> int"""
4658 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4660 def GetMaxPage(*args
, **kwargs
):
4661 """GetMaxPage(self) -> int"""
4662 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4664 def GetMinPage(*args
, **kwargs
):
4665 """GetMinPage(self) -> int"""
4666 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4668 def Ok(*args
, **kwargs
):
4669 """Ok(self) -> bool"""
4670 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4672 def SetOk(*args
, **kwargs
):
4673 """SetOk(self, bool ok)"""
4674 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4676 def Print(*args
, **kwargs
):
4677 """Print(self, bool interactive) -> bool"""
4678 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4680 def DetermineScaling(*args
, **kwargs
):
4681 """DetermineScaling(self)"""
4682 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4684 def __nonzero__(self
): return self
.Ok()
4686 class PrintPreviewPtr(PrintPreview
):
4687 def __init__(self
, this
):
4689 if not hasattr(self
,"thisown"): self
.thisown
= 0
4690 self
.__class
__ = PrintPreview
4691 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4693 class PyPrintPreview(PrintPreview
):
4695 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4696 def __init__(self
, *args
):
4698 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4699 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4701 newobj
= _windows_
.new_PyPrintPreview(*args
)
4702 self
.this
= newobj
.this
4705 self
._setCallbackInfo
(self
, PyPrintPreview
)
4707 def _setCallbackInfo(*args
, **kwargs
):
4708 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4709 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4711 def base_SetCurrentPage(*args
, **kwargs
):
4712 """base_SetCurrentPage(self, int pageNum) -> bool"""
4713 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4715 def base_PaintPage(*args
, **kwargs
):
4716 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4717 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4719 def base_DrawBlankPage(*args
, **kwargs
):
4720 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4721 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4723 def base_RenderPage(*args
, **kwargs
):
4724 """base_RenderPage(self, int pageNum) -> bool"""
4725 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4727 def base_SetZoom(*args
, **kwargs
):
4728 """base_SetZoom(self, int percent)"""
4729 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4731 def base_Print(*args
, **kwargs
):
4732 """base_Print(self, bool interactive) -> bool"""
4733 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4735 def base_DetermineScaling(*args
, **kwargs
):
4736 """base_DetermineScaling(self)"""
4737 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4740 class PyPrintPreviewPtr(PyPrintPreview
):
4741 def __init__(self
, this
):
4743 if not hasattr(self
,"thisown"): self
.thisown
= 0
4744 self
.__class
__ = PyPrintPreview
4745 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4747 class PyPreviewFrame(PreviewFrame
):
4749 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4750 def __init__(self
, *args
, **kwargs
):
4752 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4753 Size size=DefaultSize,
4754 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4756 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4757 self
.this
= newobj
.this
4760 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4762 def _setCallbackInfo(*args
, **kwargs
):
4763 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4764 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4766 def SetPreviewCanvas(*args
, **kwargs
):
4767 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4768 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4770 def SetControlBar(*args
, **kwargs
):
4771 """SetControlBar(self, PreviewControlBar bar)"""
4772 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4774 def base_Initialize(*args
, **kwargs
):
4775 """base_Initialize(self)"""
4776 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4778 def base_CreateCanvas(*args
, **kwargs
):
4779 """base_CreateCanvas(self)"""
4780 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4782 def base_CreateControlBar(*args
, **kwargs
):
4783 """base_CreateControlBar(self)"""
4784 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4787 class PyPreviewFramePtr(PyPreviewFrame
):
4788 def __init__(self
, this
):
4790 if not hasattr(self
,"thisown"): self
.thisown
= 0
4791 self
.__class
__ = PyPreviewFrame
4792 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4794 class PyPreviewControlBar(PreviewControlBar
):
4796 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4797 def __init__(self
, *args
, **kwargs
):
4799 __init__(self, PrintPreview preview, long buttons, Window parent,
4800 Point pos=DefaultPosition, Size size=DefaultSize,
4801 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4803 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4804 self
.this
= newobj
.this
4807 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4809 def _setCallbackInfo(*args
, **kwargs
):
4810 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4811 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4813 def SetPrintPreview(*args
, **kwargs
):
4814 """SetPrintPreview(self, PrintPreview preview)"""
4815 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4817 def base_CreateButtons(*args
, **kwargs
):
4818 """base_CreateButtons(self)"""
4819 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4821 def base_SetZoomControl(*args
, **kwargs
):
4822 """base_SetZoomControl(self, int zoom)"""
4823 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4826 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4827 def __init__(self
, this
):
4829 if not hasattr(self
,"thisown"): self
.thisown
= 0
4830 self
.__class
__ = PyPreviewControlBar
4831 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)