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 DoPrepareDC(*args
, **kwargs
):
211 DoPrepareDC(self, DC dc)
213 Normally what is called by `PrepareDC`.
215 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
217 def GetClassDefaultAttributes(*args
, **kwargs
):
219 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
221 Get the default attributes for this class. This is useful if you want
222 to use the same font or colour in your own control as in a standard
223 control -- which is a much better idea than hard coding specific
224 colours or fonts which might look completely out of place on the
225 user's system, especially if it uses themes.
227 The variant parameter is only relevant under Mac currently and is
228 ignore under other platforms. Under Mac, it will change the size of
229 the returned font. See `wx.Window.SetWindowVariant` for more about
232 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
234 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
236 class ScrolledWindowPtr(ScrolledWindow
):
237 def __init__(self
, this
):
239 if not hasattr(self
,"thisown"): self
.thisown
= 0
240 self
.__class
__ = ScrolledWindow
241 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
243 def PreScrolledWindow(*args
, **kwargs
):
244 """PreScrolledWindow() -> ScrolledWindow"""
245 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
249 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
251 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
253 Get the default attributes for this class. This is useful if you want
254 to use the same font or colour in your own control as in a standard
255 control -- which is a much better idea than hard coding specific
256 colours or fonts which might look completely out of place on the
257 user's system, especially if it uses themes.
259 The variant parameter is only relevant under Mac currently and is
260 ignore under other platforms. Under Mac, it will change the size of
261 the returned font. See `wx.Window.SetWindowVariant` for more about
264 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
266 #---------------------------------------------------------------------------
268 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
269 ICONIZE
= _windows_
.ICONIZE
270 MINIMIZE
= _windows_
.MINIMIZE
271 MAXIMIZE
= _windows_
.MAXIMIZE
272 CLOSE_BOX
= _windows_
.CLOSE_BOX
273 THICK_FRAME
= _windows_
.THICK_FRAME
274 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
275 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
276 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
277 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
278 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
279 RESIZE_BOX
= _windows_
.RESIZE_BOX
280 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
281 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
282 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
283 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
284 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
285 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
286 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
287 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
288 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
289 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
290 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
291 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
292 USER_COLOURS
= _windows_
.USER_COLOURS
293 NO_3D
= _windows_
.NO_3D
294 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
295 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
296 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
297 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
298 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
299 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
300 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
301 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
302 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
303 class TopLevelWindow(_core
.Window
):
304 def __init__(self
): raise RuntimeError, "No constructor defined"
306 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
307 def Maximize(*args
, **kwargs
):
308 """Maximize(self, bool maximize=True)"""
309 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
311 def Restore(*args
, **kwargs
):
313 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
315 def Iconize(*args
, **kwargs
):
316 """Iconize(self, bool iconize=True)"""
317 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
319 def IsMaximized(*args
, **kwargs
):
320 """IsMaximized(self) -> bool"""
321 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
323 def IsIconized(*args
, **kwargs
):
324 """IsIconized(self) -> bool"""
325 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
327 def GetIcon(*args
, **kwargs
):
328 """GetIcon(self) -> Icon"""
329 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
331 def SetIcon(*args
, **kwargs
):
332 """SetIcon(self, Icon icon)"""
333 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
335 def SetIcons(*args
, **kwargs
):
336 """SetIcons(self, wxIconBundle icons)"""
337 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
339 def ShowFullScreen(*args
, **kwargs
):
340 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
341 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
343 def IsFullScreen(*args
, **kwargs
):
344 """IsFullScreen(self) -> bool"""
345 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
347 def SetTitle(*args
, **kwargs
):
349 SetTitle(self, String title)
351 Sets the window's title. Applicable only to frames and dialogs.
353 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
355 def GetTitle(*args
, **kwargs
):
357 GetTitle(self) -> String
359 Gets the window's title. Applicable only to frames and dialogs.
361 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
363 def SetShape(*args
, **kwargs
):
364 """SetShape(self, Region region) -> bool"""
365 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
367 def RequestUserAttention(*args
, **kwargs
):
368 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
369 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
371 def IsActive(*args
, **kwargs
):
372 """IsActive(self) -> bool"""
373 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
375 def MacSetMetalAppearance(*args
, **kwargs
):
376 """MacSetMetalAppearance(self, bool on)"""
377 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
379 def MacGetMetalAppearance(*args
, **kwargs
):
380 """MacGetMetalAppearance(self) -> bool"""
381 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*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=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
451 int winid=0, 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
):
782 __init__(self, Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
783 String name=StatusLineNameStr) -> StatusBar
785 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
786 self
.this
= newobj
.this
789 self
._setOORInfo
(self
)
791 def Create(*args
, **kwargs
):
792 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
793 return _windows_
.StatusBar_Create(*args
, **kwargs
)
795 def SetFieldsCount(*args
, **kwargs
):
796 """SetFieldsCount(self, int number=1)"""
797 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
799 def GetFieldsCount(*args
, **kwargs
):
800 """GetFieldsCount(self) -> int"""
801 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
803 def SetStatusText(*args
, **kwargs
):
804 """SetStatusText(self, String text, int number=0)"""
805 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
807 def GetStatusText(*args
, **kwargs
):
808 """GetStatusText(self, int number=0) -> String"""
809 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
811 def PushStatusText(*args
, **kwargs
):
812 """PushStatusText(self, String text, int number=0)"""
813 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
815 def PopStatusText(*args
, **kwargs
):
816 """PopStatusText(self, int number=0)"""
817 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
819 def SetStatusWidths(*args
, **kwargs
):
820 """SetStatusWidths(self, int widths, int widths_field)"""
821 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
823 def SetStatusStyles(*args
, **kwargs
):
824 """SetStatusStyles(self, int styles, int styles_field)"""
825 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
827 def GetFieldRect(*args
, **kwargs
):
828 """GetFieldRect(self, int i) -> Rect"""
829 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
831 def SetMinHeight(*args
, **kwargs
):
832 """SetMinHeight(self, int height)"""
833 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
835 def GetBorderX(*args
, **kwargs
):
836 """GetBorderX(self) -> int"""
837 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
839 def GetBorderY(*args
, **kwargs
):
840 """GetBorderY(self) -> int"""
841 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
843 def GetClassDefaultAttributes(*args
, **kwargs
):
845 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
847 Get the default attributes for this class. This is useful if you want
848 to use the same font or colour in your own control as in a standard
849 control -- which is a much better idea than hard coding specific
850 colours or fonts which might look completely out of place on the
851 user's system, especially if it uses themes.
853 The variant parameter is only relevant under Mac currently and is
854 ignore under other platforms. Under Mac, it will change the size of
855 the returned font. See `wx.Window.SetWindowVariant` for more about
858 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
860 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
862 class StatusBarPtr(StatusBar
):
863 def __init__(self
, this
):
865 if not hasattr(self
,"thisown"): self
.thisown
= 0
866 self
.__class
__ = StatusBar
867 _windows_
.StatusBar_swigregister(StatusBarPtr
)
869 def PreStatusBar(*args
, **kwargs
):
870 """PreStatusBar() -> StatusBar"""
871 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
875 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
877 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
879 Get the default attributes for this class. This is useful if you want
880 to use the same font or colour in your own control as in a standard
881 control -- which is a much better idea than hard coding specific
882 colours or fonts which might look completely out of place on the
883 user's system, especially if it uses themes.
885 The variant parameter is only relevant under Mac currently and is
886 ignore under other platforms. Under Mac, it will change the size of
887 the returned font. See `wx.Window.SetWindowVariant` for more about
890 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
892 #---------------------------------------------------------------------------
894 SP_NOBORDER
= _windows_
.SP_NOBORDER
895 SP_NOSASH
= _windows_
.SP_NOSASH
896 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
897 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
898 SP_3DSASH
= _windows_
.SP_3DSASH
899 SP_3DBORDER
= _windows_
.SP_3DBORDER
900 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
901 SP_BORDER
= _windows_
.SP_BORDER
902 SP_3D
= _windows_
.SP_3D
903 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
904 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
905 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
906 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
907 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
908 class SplitterWindow(_core
.Window
):
910 wx.SplitterWindow manages up to two subwindows or panes, with an
911 optional vertical or horizontal split which can be used with the mouse
915 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
916 def __init__(self
, *args
, **kwargs
):
918 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
919 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
921 Constructor. Creates and shows a SplitterWindow.
923 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
924 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
925 self
.this
= newobj
.this
928 self
._setOORInfo
(self
)
930 def Create(*args
, **kwargs
):
932 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
933 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
935 Create the GUI part of the SplitterWindow for the 2-phase create.
937 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
939 def GetWindow1(*args
, **kwargs
):
941 GetWindow1(self) -> Window
943 Gets the only or left/top pane.
945 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
947 def GetWindow2(*args
, **kwargs
):
949 GetWindow2(self) -> Window
951 Gets the right/bottom pane.
953 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
955 def SetSplitMode(*args
, **kwargs
):
957 SetSplitMode(self, int mode)
959 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
960 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
963 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
965 def GetSplitMode(*args
, **kwargs
):
967 GetSplitMode(self) -> int
971 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
973 def Initialize(*args
, **kwargs
):
975 Initialize(self, Window window)
977 Initializes the splitter window to have one pane. This should be
978 called if you wish to initially view only a single pane in the
981 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
983 def SplitVertically(*args
, **kwargs
):
985 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
987 Initializes the left and right panes of the splitter window.
989 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
991 def SplitHorizontally(*args
, **kwargs
):
993 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
995 Initializes the top and bottom panes of the splitter window.
997 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
999 def Unsplit(*args
, **kwargs
):
1001 Unsplit(self, Window toRemove=None) -> bool
1003 Unsplits the window. Pass the pane to remove, or None to remove the
1004 right or bottom pane. Returns True if successful, False otherwise (the
1005 window was not split).
1007 This function will not actually delete the pane being
1008 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1009 for the desired behaviour. By default, the pane being
1010 removed is only hidden.
1012 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1014 def ReplaceWindow(*args
, **kwargs
):
1016 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1018 This function replaces one of the windows managed by the
1019 SplitterWindow with another one. It is in general better to use it
1020 instead of calling Unsplit() and then resplitting the window back
1021 because it will provoke much less flicker. It is valid to call this
1022 function whether the splitter has two windows or only one.
1024 Both parameters should be non-None and winOld must specify one of the
1025 windows managed by the splitter. If the parameters are incorrect or
1026 the window couldn't be replaced, False is returned. Otherwise the
1027 function will return True, but please notice that it will not Destroy
1028 the replaced window and you may wish to do it yourself.
1030 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1032 def UpdateSize(*args
, **kwargs
):
1036 Causes any pending sizing of the sash and child panes to take place
1039 Such resizing normally takes place in idle time, in order to wait for
1040 layout to be completed. However, this can cause unacceptable flicker
1041 as the panes are resized after the window has been shown. To work
1042 around this, you can perform window layout (for example by sending a
1043 size event to the parent window), and then call this function, before
1044 showing the top-level window.
1046 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1048 def IsSplit(*args
, **kwargs
):
1050 IsSplit(self) -> bool
1052 Is the window split?
1054 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1056 def SetSashSize(*args
, **kwargs
):
1058 SetSashSize(self, int width)
1062 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1064 def SetBorderSize(*args
, **kwargs
):
1066 SetBorderSize(self, int width)
1068 Sets the border size
1070 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1072 def GetSashSize(*args
, **kwargs
):
1074 GetSashSize(self) -> int
1078 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1080 def GetBorderSize(*args
, **kwargs
):
1082 GetBorderSize(self) -> int
1084 Gets the border size
1086 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1088 def SetSashPosition(*args
, **kwargs
):
1090 SetSashPosition(self, int position, bool redraw=True)
1092 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1093 are resized and the sash and border are redrawn.
1095 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1097 def GetSashPosition(*args
, **kwargs
):
1099 GetSashPosition(self) -> int
1101 Returns the surrent sash position.
1103 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1105 def SetMinimumPaneSize(*args
, **kwargs
):
1107 SetMinimumPaneSize(self, int min)
1109 Sets the minimum pane size in pixels.
1111 The default minimum pane size is zero, which means that either pane
1112 can be reduced to zero by dragging the sash, thus removing one of the
1113 panes. To prevent this behaviour (and veto out-of-range sash
1114 dragging), set a minimum size, for example 20 pixels. If the
1115 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1116 the window may be unsplit even if minimum size is non-zero.
1118 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1120 def GetMinimumPaneSize(*args
, **kwargs
):
1122 GetMinimumPaneSize(self) -> int
1124 Gets the minimum pane size in pixels.
1126 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1128 def SashHitTest(*args
, **kwargs
):
1130 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1132 Tests for x, y over the sash
1134 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1136 def SizeWindows(*args
, **kwargs
):
1142 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1144 def SetNeedUpdating(*args
, **kwargs
):
1145 """SetNeedUpdating(self, bool needUpdating)"""
1146 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1148 def GetNeedUpdating(*args
, **kwargs
):
1149 """GetNeedUpdating(self) -> bool"""
1150 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1152 def GetClassDefaultAttributes(*args
, **kwargs
):
1154 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1156 Get the default attributes for this class. This is useful if you want
1157 to use the same font or colour in your own control as in a standard
1158 control -- which is a much better idea than hard coding specific
1159 colours or fonts which might look completely out of place on the
1160 user's system, especially if it uses themes.
1162 The variant parameter is only relevant under Mac currently and is
1163 ignore under other platforms. Under Mac, it will change the size of
1164 the returned font. See `wx.Window.SetWindowVariant` for more about
1167 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1169 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1171 class SplitterWindowPtr(SplitterWindow
):
1172 def __init__(self
, this
):
1174 if not hasattr(self
,"thisown"): self
.thisown
= 0
1175 self
.__class
__ = SplitterWindow
1176 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1177 SplitterNameStr
= cvar
.SplitterNameStr
1179 def PreSplitterWindow(*args
, **kwargs
):
1181 PreSplitterWindow() -> SplitterWindow
1183 Precreate a SplitterWindow for 2-phase creation.
1185 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1189 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1191 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1193 Get the default attributes for this class. This is useful if you want
1194 to use the same font or colour in your own control as in a standard
1195 control -- which is a much better idea than hard coding specific
1196 colours or fonts which might look completely out of place on the
1197 user's system, especially if it uses themes.
1199 The variant parameter is only relevant under Mac currently and is
1200 ignore under other platforms. Under Mac, it will change the size of
1201 the returned font. See `wx.Window.SetWindowVariant` for more about
1204 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1206 class SplitterEvent(_core
.NotifyEvent
):
1207 """This class represents the events generated by a splitter control."""
1209 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1210 def __init__(self
, *args
, **kwargs
):
1212 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1214 This class represents the events generated by a splitter control.
1216 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1217 self
.this
= newobj
.this
1220 def SetSashPosition(*args
, **kwargs
):
1222 SetSashPosition(self, int pos)
1224 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1225 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1226 events, sets the the new sash position. In the case of _CHANGING
1227 events, sets the new tracking bar position so visual feedback during
1228 dragging will represent that change that will actually take place. Set
1229 to -1 from the event handler code to prevent repositioning.
1231 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1233 def GetSashPosition(*args
, **kwargs
):
1235 GetSashPosition(self) -> int
1237 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1238 and EVT_SPLITTER_SASH_POS_CHANGED events.
1240 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1242 def GetWindowBeingRemoved(*args
, **kwargs
):
1244 GetWindowBeingRemoved(self) -> Window
1246 Returns a pointer to the window being removed when a splitter window
1249 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1251 def GetX(*args
, **kwargs
):
1255 Returns the x coordinate of the double-click point in a
1256 EVT_SPLITTER_DCLICK event.
1258 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1260 def GetY(*args
, **kwargs
):
1264 Returns the y coordinate of the double-click point in a
1265 EVT_SPLITTER_DCLICK event.
1267 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1270 class SplitterEventPtr(SplitterEvent
):
1271 def __init__(self
, this
):
1273 if not hasattr(self
,"thisown"): self
.thisown
= 0
1274 self
.__class
__ = SplitterEvent
1275 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1277 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1278 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1279 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1280 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1281 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1282 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1283 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1284 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1285 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1287 #---------------------------------------------------------------------------
1289 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1290 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1291 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1292 SW_NOBORDER
= _windows_
.SW_NOBORDER
1293 SW_BORDER
= _windows_
.SW_BORDER
1294 SW_3DSASH
= _windows_
.SW_3DSASH
1295 SW_3DBORDER
= _windows_
.SW_3DBORDER
1296 SW_3D
= _windows_
.SW_3D
1297 SASH_TOP
= _windows_
.SASH_TOP
1298 SASH_RIGHT
= _windows_
.SASH_RIGHT
1299 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1300 SASH_LEFT
= _windows_
.SASH_LEFT
1301 SASH_NONE
= _windows_
.SASH_NONE
1302 class SashWindow(_core
.Window
):
1304 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1305 def __init__(self
, *args
, **kwargs
):
1307 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1308 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1309 String name=SashNameStr) -> SashWindow
1311 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1312 self
.this
= newobj
.this
1315 self
._setOORInfo
(self
)
1317 def Create(*args
, **kwargs
):
1319 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1320 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1321 String name=SashNameStr) -> bool
1323 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1325 def SetSashVisible(*args
, **kwargs
):
1326 """SetSashVisible(self, int edge, bool sash)"""
1327 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1329 def GetSashVisible(*args
, **kwargs
):
1330 """GetSashVisible(self, int edge) -> bool"""
1331 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1333 def SetSashBorder(*args
, **kwargs
):
1334 """SetSashBorder(self, int edge, bool border)"""
1335 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1337 def HasBorder(*args
, **kwargs
):
1338 """HasBorder(self, int edge) -> bool"""
1339 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1341 def GetEdgeMargin(*args
, **kwargs
):
1342 """GetEdgeMargin(self, int edge) -> int"""
1343 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1345 def SetDefaultBorderSize(*args
, **kwargs
):
1346 """SetDefaultBorderSize(self, int width)"""
1347 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1349 def GetDefaultBorderSize(*args
, **kwargs
):
1350 """GetDefaultBorderSize(self) -> int"""
1351 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1353 def SetExtraBorderSize(*args
, **kwargs
):
1354 """SetExtraBorderSize(self, int width)"""
1355 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1357 def GetExtraBorderSize(*args
, **kwargs
):
1358 """GetExtraBorderSize(self) -> int"""
1359 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1361 def SetMinimumSizeX(*args
, **kwargs
):
1362 """SetMinimumSizeX(self, int min)"""
1363 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1365 def SetMinimumSizeY(*args
, **kwargs
):
1366 """SetMinimumSizeY(self, int min)"""
1367 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1369 def GetMinimumSizeX(*args
, **kwargs
):
1370 """GetMinimumSizeX(self) -> int"""
1371 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1373 def GetMinimumSizeY(*args
, **kwargs
):
1374 """GetMinimumSizeY(self) -> int"""
1375 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1377 def SetMaximumSizeX(*args
, **kwargs
):
1378 """SetMaximumSizeX(self, int max)"""
1379 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1381 def SetMaximumSizeY(*args
, **kwargs
):
1382 """SetMaximumSizeY(self, int max)"""
1383 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1385 def GetMaximumSizeX(*args
, **kwargs
):
1386 """GetMaximumSizeX(self) -> int"""
1387 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1389 def GetMaximumSizeY(*args
, **kwargs
):
1390 """GetMaximumSizeY(self) -> int"""
1391 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1393 def SashHitTest(*args
, **kwargs
):
1394 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1395 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1397 def SizeWindows(*args
, **kwargs
):
1398 """SizeWindows(self)"""
1399 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1402 class SashWindowPtr(SashWindow
):
1403 def __init__(self
, this
):
1405 if not hasattr(self
,"thisown"): self
.thisown
= 0
1406 self
.__class
__ = SashWindow
1407 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1408 SashNameStr
= cvar
.SashNameStr
1409 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1411 def PreSashWindow(*args
, **kwargs
):
1412 """PreSashWindow() -> SashWindow"""
1413 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1417 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1418 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1419 class SashEvent(_core
.CommandEvent
):
1421 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1422 def __init__(self
, *args
, **kwargs
):
1423 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1424 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1425 self
.this
= newobj
.this
1428 def SetEdge(*args
, **kwargs
):
1429 """SetEdge(self, int edge)"""
1430 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1432 def GetEdge(*args
, **kwargs
):
1433 """GetEdge(self) -> int"""
1434 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1436 def SetDragRect(*args
, **kwargs
):
1437 """SetDragRect(self, Rect rect)"""
1438 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1440 def GetDragRect(*args
, **kwargs
):
1441 """GetDragRect(self) -> Rect"""
1442 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1444 def SetDragStatus(*args
, **kwargs
):
1445 """SetDragStatus(self, int status)"""
1446 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1448 def GetDragStatus(*args
, **kwargs
):
1449 """GetDragStatus(self) -> int"""
1450 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1453 class SashEventPtr(SashEvent
):
1454 def __init__(self
, this
):
1456 if not hasattr(self
,"thisown"): self
.thisown
= 0
1457 self
.__class
__ = SashEvent
1458 _windows_
.SashEvent_swigregister(SashEventPtr
)
1460 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1461 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1462 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1464 #---------------------------------------------------------------------------
1466 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1467 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1468 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1469 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1470 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1471 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1472 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1473 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1474 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1475 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1476 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1477 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1478 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1479 class QueryLayoutInfoEvent(_core
.Event
):
1481 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1482 def __init__(self
, *args
, **kwargs
):
1483 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1484 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1485 self
.this
= newobj
.this
1488 def SetRequestedLength(*args
, **kwargs
):
1489 """SetRequestedLength(self, int length)"""
1490 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1492 def GetRequestedLength(*args
, **kwargs
):
1493 """GetRequestedLength(self) -> int"""
1494 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1496 def SetFlags(*args
, **kwargs
):
1497 """SetFlags(self, int flags)"""
1498 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1500 def GetFlags(*args
, **kwargs
):
1501 """GetFlags(self) -> int"""
1502 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1504 def SetSize(*args
, **kwargs
):
1505 """SetSize(self, Size size)"""
1506 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1508 def GetSize(*args
, **kwargs
):
1509 """GetSize(self) -> Size"""
1510 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1512 def SetOrientation(*args
, **kwargs
):
1513 """SetOrientation(self, int orient)"""
1514 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1516 def GetOrientation(*args
, **kwargs
):
1517 """GetOrientation(self) -> int"""
1518 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1520 def SetAlignment(*args
, **kwargs
):
1521 """SetAlignment(self, int align)"""
1522 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1524 def GetAlignment(*args
, **kwargs
):
1525 """GetAlignment(self) -> int"""
1526 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1529 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1530 def __init__(self
, this
):
1532 if not hasattr(self
,"thisown"): self
.thisown
= 0
1533 self
.__class
__ = QueryLayoutInfoEvent
1534 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1536 class CalculateLayoutEvent(_core
.Event
):
1538 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1539 def __init__(self
, *args
, **kwargs
):
1540 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1541 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1542 self
.this
= newobj
.this
1545 def SetFlags(*args
, **kwargs
):
1546 """SetFlags(self, int flags)"""
1547 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1549 def GetFlags(*args
, **kwargs
):
1550 """GetFlags(self) -> int"""
1551 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1553 def SetRect(*args
, **kwargs
):
1554 """SetRect(self, Rect rect)"""
1555 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1557 def GetRect(*args
, **kwargs
):
1558 """GetRect(self) -> Rect"""
1559 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1562 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1563 def __init__(self
, this
):
1565 if not hasattr(self
,"thisown"): self
.thisown
= 0
1566 self
.__class
__ = CalculateLayoutEvent
1567 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1569 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1570 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1572 class SashLayoutWindow(SashWindow
):
1574 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1575 def __init__(self
, *args
, **kwargs
):
1577 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1578 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1579 String name=SashLayoutNameStr) -> SashLayoutWindow
1581 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1582 self
.this
= newobj
.this
1585 self
._setOORInfo
(self
)
1587 def Create(*args
, **kwargs
):
1589 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1590 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1591 String name=SashLayoutNameStr) -> bool
1593 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1595 def GetAlignment(*args
, **kwargs
):
1596 """GetAlignment(self) -> int"""
1597 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1599 def GetOrientation(*args
, **kwargs
):
1600 """GetOrientation(self) -> int"""
1601 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1603 def SetAlignment(*args
, **kwargs
):
1604 """SetAlignment(self, int alignment)"""
1605 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1607 def SetDefaultSize(*args
, **kwargs
):
1608 """SetDefaultSize(self, Size size)"""
1609 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1611 def SetOrientation(*args
, **kwargs
):
1612 """SetOrientation(self, int orientation)"""
1613 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1616 class SashLayoutWindowPtr(SashLayoutWindow
):
1617 def __init__(self
, this
):
1619 if not hasattr(self
,"thisown"): self
.thisown
= 0
1620 self
.__class
__ = SashLayoutWindow
1621 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1623 def PreSashLayoutWindow(*args
, **kwargs
):
1624 """PreSashLayoutWindow() -> SashLayoutWindow"""
1625 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1629 class LayoutAlgorithm(_core
.Object
):
1631 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1632 def __init__(self
, *args
, **kwargs
):
1633 """__init__(self) -> LayoutAlgorithm"""
1634 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1635 self
.this
= newobj
.this
1638 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1641 if self
.thisown
: destroy(self
)
1644 def LayoutMDIFrame(*args
, **kwargs
):
1645 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1646 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1648 def LayoutFrame(*args
, **kwargs
):
1649 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1650 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1652 def LayoutWindow(*args
, **kwargs
):
1653 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1654 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1657 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1658 def __init__(self
, this
):
1660 if not hasattr(self
,"thisown"): self
.thisown
= 0
1661 self
.__class
__ = LayoutAlgorithm
1662 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1664 #---------------------------------------------------------------------------
1666 class PopupWindow(_core
.Window
):
1668 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1669 def __init__(self
, *args
, **kwargs
):
1670 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1671 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1672 self
.this
= newobj
.this
1675 self
._setOORInfo
(self
)
1677 def Create(*args
, **kwargs
):
1678 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1679 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1681 def Position(*args
, **kwargs
):
1682 """Position(self, Point ptOrigin, Size size)"""
1683 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1686 class PopupWindowPtr(PopupWindow
):
1687 def __init__(self
, this
):
1689 if not hasattr(self
,"thisown"): self
.thisown
= 0
1690 self
.__class
__ = PopupWindow
1691 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1693 def PrePopupWindow(*args
, **kwargs
):
1694 """PrePopupWindow() -> PopupWindow"""
1695 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1699 #---------------------------------------------------------------------------
1701 class PopupTransientWindow(PopupWindow
):
1703 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1704 def __init__(self
, *args
, **kwargs
):
1705 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1706 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1707 self
.this
= newobj
.this
1710 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1712 def _setCallbackInfo(*args
, **kwargs
):
1713 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1714 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1716 def Popup(*args
, **kwargs
):
1717 """Popup(self, Window focus=None)"""
1718 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1720 def Dismiss(*args
, **kwargs
):
1722 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1725 class PopupTransientWindowPtr(PopupTransientWindow
):
1726 def __init__(self
, this
):
1728 if not hasattr(self
,"thisown"): self
.thisown
= 0
1729 self
.__class
__ = PopupTransientWindow
1730 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1732 def PrePopupTransientWindow(*args
, **kwargs
):
1733 """PrePopupTransientWindow() -> PopupTransientWindow"""
1734 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1738 #---------------------------------------------------------------------------
1740 class TipWindow(PopupTransientWindow
):
1742 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1743 def __init__(self
, *args
, **kwargs
):
1744 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1745 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1746 self
.this
= newobj
.this
1749 self
._setOORInfo
(self
)
1751 def SetBoundingRect(*args
, **kwargs
):
1752 """SetBoundingRect(self, Rect rectBound)"""
1753 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1755 def Close(*args
, **kwargs
):
1757 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1760 class TipWindowPtr(TipWindow
):
1761 def __init__(self
, this
):
1763 if not hasattr(self
,"thisown"): self
.thisown
= 0
1764 self
.__class
__ = TipWindow
1765 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1767 #---------------------------------------------------------------------------
1769 class VScrolledWindow(Panel
):
1771 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1772 def __init__(self
, *args
, **kwargs
):
1774 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1775 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1777 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1778 self
.this
= newobj
.this
1781 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1783 def _setCallbackInfo(*args
, **kwargs
):
1784 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1785 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1787 def Create(*args
, **kwargs
):
1789 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1790 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1792 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1794 def SetLineCount(*args
, **kwargs
):
1795 """SetLineCount(self, size_t count)"""
1796 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1798 def ScrollToLine(*args
, **kwargs
):
1799 """ScrollToLine(self, size_t line) -> bool"""
1800 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1802 def ScrollLines(*args
, **kwargs
):
1804 ScrollLines(self, int lines) -> bool
1806 If the platform and window class supports it, scrolls the window by
1807 the given number of lines down, if lines is positive, or up if lines
1808 is negative. Returns True if the window was scrolled, False if it was
1809 already on top/bottom and nothing was done.
1811 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1813 def ScrollPages(*args
, **kwargs
):
1815 ScrollPages(self, int pages) -> bool
1817 If the platform and window class supports it, scrolls the window by
1818 the given number of pages down, if pages is positive, or up if pages
1819 is negative. Returns True if the window was scrolled, False if it was
1820 already on top/bottom and nothing was done.
1822 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1824 def RefreshLine(*args
, **kwargs
):
1825 """RefreshLine(self, size_t line)"""
1826 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1828 def RefreshLines(*args
, **kwargs
):
1829 """RefreshLines(self, size_t from, size_t to)"""
1830 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1832 def HitTestXY(*args
, **kwargs
):
1834 HitTestXY(self, int x, int y) -> int
1836 Test where the given (in client coords) point lies
1838 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1840 def HitTest(*args
, **kwargs
):
1842 HitTest(self, Point pt) -> int
1844 Test where the given (in client coords) point lies
1846 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1848 def RefreshAll(*args
, **kwargs
):
1849 """RefreshAll(self)"""
1850 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1852 def GetLineCount(*args
, **kwargs
):
1853 """GetLineCount(self) -> size_t"""
1854 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1856 def GetFirstVisibleLine(*args
, **kwargs
):
1857 """GetFirstVisibleLine(self) -> size_t"""
1858 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1860 def GetLastVisibleLine(*args
, **kwargs
):
1861 """GetLastVisibleLine(self) -> size_t"""
1862 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1864 def IsVisible(*args
, **kwargs
):
1865 """IsVisible(self, size_t line) -> bool"""
1866 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1869 class VScrolledWindowPtr(VScrolledWindow
):
1870 def __init__(self
, this
):
1872 if not hasattr(self
,"thisown"): self
.thisown
= 0
1873 self
.__class
__ = VScrolledWindow
1874 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1876 def PreVScrolledWindow(*args
, **kwargs
):
1877 """PreVScrolledWindow() -> VScrolledWindow"""
1878 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1882 class VListBox(VScrolledWindow
):
1884 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1885 def __init__(self
, *args
, **kwargs
):
1887 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1888 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1890 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1891 self
.this
= newobj
.this
1894 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1896 def _setCallbackInfo(*args
, **kwargs
):
1897 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1898 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1900 def Create(*args
, **kwargs
):
1902 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1903 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1905 return _windows_
.VListBox_Create(*args
, **kwargs
)
1907 def GetItemCount(*args
, **kwargs
):
1908 """GetItemCount(self) -> size_t"""
1909 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1911 def HasMultipleSelection(*args
, **kwargs
):
1912 """HasMultipleSelection(self) -> bool"""
1913 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1915 def GetSelection(*args
, **kwargs
):
1916 """GetSelection(self) -> int"""
1917 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1919 def IsCurrent(*args
, **kwargs
):
1920 """IsCurrent(self, size_t item) -> bool"""
1921 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1923 def IsSelected(*args
, **kwargs
):
1924 """IsSelected(self, size_t item) -> bool"""
1925 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1927 def GetSelectedCount(*args
, **kwargs
):
1928 """GetSelectedCount(self) -> size_t"""
1929 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1931 def GetFirstSelected(*args
, **kwargs
):
1932 """GetFirstSelected(self) -> PyObject"""
1933 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1935 def GetNextSelected(*args
, **kwargs
):
1936 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1937 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1939 def GetMargins(*args
, **kwargs
):
1940 """GetMargins(self) -> Point"""
1941 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1943 def GetSelectionBackground(*args
, **kwargs
):
1944 """GetSelectionBackground(self) -> Colour"""
1945 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1947 def SetItemCount(*args
, **kwargs
):
1948 """SetItemCount(self, size_t count)"""
1949 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1951 def Clear(*args
, **kwargs
):
1953 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1955 def SetSelection(*args
, **kwargs
):
1956 """SetSelection(self, int selection)"""
1957 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1959 def Select(*args
, **kwargs
):
1960 """Select(self, size_t item, bool select=True) -> bool"""
1961 return _windows_
.VListBox_Select(*args
, **kwargs
)
1963 def SelectRange(*args
, **kwargs
):
1964 """SelectRange(self, size_t from, size_t to) -> bool"""
1965 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1967 def Toggle(*args
, **kwargs
):
1968 """Toggle(self, size_t item)"""
1969 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1971 def SelectAll(*args
, **kwargs
):
1972 """SelectAll(self) -> bool"""
1973 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1975 def DeselectAll(*args
, **kwargs
):
1976 """DeselectAll(self) -> bool"""
1977 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1979 def SetMargins(*args
, **kwargs
):
1980 """SetMargins(self, Point pt)"""
1981 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1983 def SetMarginsXY(*args
, **kwargs
):
1984 """SetMarginsXY(self, int x, int y)"""
1985 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1987 def SetSelectionBackground(*args
, **kwargs
):
1988 """SetSelectionBackground(self, Colour col)"""
1989 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1992 class VListBoxPtr(VListBox
):
1993 def __init__(self
, this
):
1995 if not hasattr(self
,"thisown"): self
.thisown
= 0
1996 self
.__class
__ = VListBox
1997 _windows_
.VListBox_swigregister(VListBoxPtr
)
1998 VListBoxNameStr
= cvar
.VListBoxNameStr
2000 def PreVListBox(*args
, **kwargs
):
2001 """PreVListBox() -> VListBox"""
2002 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
2006 class HtmlListBox(VListBox
):
2008 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2009 def __init__(self
, *args
, **kwargs
):
2011 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2012 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2014 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2015 self
.this
= newobj
.this
2018 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2020 def _setCallbackInfo(*args
, **kwargs
):
2021 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2022 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2024 def Create(*args
, **kwargs
):
2026 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2027 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2029 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2031 def RefreshAll(*args
, **kwargs
):
2032 """RefreshAll(self)"""
2033 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2035 def SetItemCount(*args
, **kwargs
):
2036 """SetItemCount(self, size_t count)"""
2037 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2039 def GetFileSystem(*args
, **kwargs
):
2040 """GetFileSystem(self) -> FileSystem"""
2041 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2044 class HtmlListBoxPtr(HtmlListBox
):
2045 def __init__(self
, this
):
2047 if not hasattr(self
,"thisown"): self
.thisown
= 0
2048 self
.__class
__ = HtmlListBox
2049 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2051 def PreHtmlListBox(*args
, **kwargs
):
2052 """PreHtmlListBox() -> HtmlListBox"""
2053 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2057 #---------------------------------------------------------------------------
2059 class TaskBarIcon(_core
.EvtHandler
):
2061 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2062 def __init__(self
, *args
, **kwargs
):
2063 """__init__(self) -> TaskBarIcon"""
2064 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2065 self
.this
= newobj
.this
2068 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2070 def _setCallbackInfo(*args
, **kwargs
):
2071 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2072 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2074 def Destroy(*args
, **kwargs
):
2078 Deletes the C++ object this Python object is a proxy for.
2080 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2082 def IsOk(*args
, **kwargs
):
2083 """IsOk(self) -> bool"""
2084 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2086 def __nonzero__(self
): return self
.IsOk()
2087 def IsIconInstalled(*args
, **kwargs
):
2088 """IsIconInstalled(self) -> bool"""
2089 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2091 def SetIcon(*args
, **kwargs
):
2092 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2093 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2095 def RemoveIcon(*args
, **kwargs
):
2096 """RemoveIcon(self) -> bool"""
2097 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2099 def PopupMenu(*args
, **kwargs
):
2100 """PopupMenu(self, Menu menu) -> bool"""
2101 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2104 class TaskBarIconPtr(TaskBarIcon
):
2105 def __init__(self
, this
):
2107 if not hasattr(self
,"thisown"): self
.thisown
= 0
2108 self
.__class
__ = TaskBarIcon
2109 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2111 class TaskBarIconEvent(_core
.Event
):
2113 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2114 def __init__(self
, *args
, **kwargs
):
2115 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2116 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2117 self
.this
= newobj
.this
2121 class TaskBarIconEventPtr(TaskBarIconEvent
):
2122 def __init__(self
, this
):
2124 if not hasattr(self
,"thisown"): self
.thisown
= 0
2125 self
.__class
__ = TaskBarIconEvent
2126 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2128 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2129 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2130 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2131 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2132 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2133 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2134 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2135 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2136 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2137 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2138 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2139 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2140 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2141 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2143 #---------------------------------------------------------------------------
2145 class ColourData(_core
.Object
):
2147 This class holds a variety of information related to the colour
2148 chooser dialog, used to transfer settings and results to and from the
2152 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2153 def __init__(self
, *args
, **kwargs
):
2155 __init__(self) -> ColourData
2157 Constructor, sets default values.
2159 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2160 self
.this
= newobj
.this
2163 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2166 if self
.thisown
: destroy(self
)
2169 def GetChooseFull(*args
, **kwargs
):
2171 GetChooseFull(self) -> bool
2173 Under Windows, determines whether the Windows colour dialog will
2174 display the full dialog with custom colour selection controls. Has no
2175 meaning under other platforms. The default value is true.
2177 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2179 def GetColour(*args
, **kwargs
):
2181 GetColour(self) -> Colour
2183 Gets the colour (pre)selected by the dialog.
2185 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2187 def GetCustomColour(*args
, **kwargs
):
2189 GetCustomColour(self, int i) -> Colour
2191 Gets the i'th custom colour associated with the colour dialog. i
2192 should be an integer between 0 and 15. The default custom colours are
2193 all invalid colours.
2195 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2197 def SetChooseFull(*args
, **kwargs
):
2199 SetChooseFull(self, int flag)
2201 Under Windows, tells the Windows colour dialog to display the full
2202 dialog with custom colour selection controls. Under other platforms,
2203 has no effect. The default value is true.
2205 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2207 def SetColour(*args
, **kwargs
):
2209 SetColour(self, Colour colour)
2211 Sets the default colour for the colour dialog. The default colour is
2214 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2216 def SetCustomColour(*args
, **kwargs
):
2218 SetCustomColour(self, int i, Colour colour)
2220 Sets the i'th custom colour for the colour dialog. i should be an
2221 integer between 0 and 15. The default custom colours are all invalid colours.
2223 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2226 class ColourDataPtr(ColourData
):
2227 def __init__(self
, this
):
2229 if not hasattr(self
,"thisown"): self
.thisown
= 0
2230 self
.__class
__ = ColourData
2231 _windows_
.ColourData_swigregister(ColourDataPtr
)
2232 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2233 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2234 DirDialogNameStr
= cvar
.DirDialogNameStr
2235 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2236 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2237 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2239 class ColourDialog(Dialog
):
2240 """This class represents the colour chooser dialog."""
2242 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2243 def __init__(self
, *args
, **kwargs
):
2245 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2247 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2248 which will be copied to the colour dialog's internal ColourData
2251 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2252 self
.this
= newobj
.this
2255 self
._setOORInfo
(self
)
2257 def GetColourData(*args
, **kwargs
):
2259 GetColourData(self) -> ColourData
2261 Returns a reference to the `wx.ColourData` used by the dialog.
2263 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2266 class ColourDialogPtr(ColourDialog
):
2267 def __init__(self
, this
):
2269 if not hasattr(self
,"thisown"): self
.thisown
= 0
2270 self
.__class
__ = ColourDialog
2271 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2273 class DirDialog(Dialog
):
2275 wx.DirDialog allows the user to select a directory by browising the
2279 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2280 def __init__(self
, *args
, **kwargs
):
2282 __init__(self, Window parent, String message=DirSelectorPromptStr,
2283 String defaultPath=EmptyString, long style=0,
2284 Point pos=DefaultPosition, Size size=DefaultSize,
2285 String name=DirDialogNameStr) -> DirDialog
2287 Constructor. Use ShowModal method to show the dialog.
2289 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2290 self
.this
= newobj
.this
2293 self
._setOORInfo
(self
)
2295 def GetPath(*args
, **kwargs
):
2297 GetPath(self) -> String
2299 Returns the default or user-selected path.
2301 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2303 def GetMessage(*args
, **kwargs
):
2305 GetMessage(self) -> String
2307 Returns the message that will be displayed on the dialog.
2309 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2311 def GetStyle(*args
, **kwargs
):
2313 GetStyle(self) -> long
2315 Returns the dialog style.
2317 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2319 def SetMessage(*args
, **kwargs
):
2321 SetMessage(self, String message)
2323 Sets the message that will be displayed on the dialog.
2325 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2327 def SetPath(*args
, **kwargs
):
2329 SetPath(self, String path)
2331 Sets the default path.
2333 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2336 class DirDialogPtr(DirDialog
):
2337 def __init__(self
, this
):
2339 if not hasattr(self
,"thisown"): self
.thisown
= 0
2340 self
.__class
__ = DirDialog
2341 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2343 class FileDialog(Dialog
):
2345 wx.FileDialog allows the user to select one or more files from the
2349 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2350 def __init__(self
, *args
, **kwargs
):
2352 __init__(self, Window parent, String message=FileSelectorPromptStr,
2353 String defaultDir=EmptyString, String defaultFile=EmptyString,
2354 String wildcard=FileSelectorDefaultWildcardStr,
2355 long style=0, Point pos=DefaultPosition) -> FileDialog
2357 Constructor. Use ShowModal method to show the dialog.
2359 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2360 self
.this
= newobj
.this
2363 self
._setOORInfo
(self
)
2365 def SetMessage(*args
, **kwargs
):
2367 SetMessage(self, String message)
2369 Sets the message that will be displayed on the dialog.
2371 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2373 def SetPath(*args
, **kwargs
):
2375 SetPath(self, String path)
2377 Sets the path (the combined directory and filename that will be
2378 returned when the dialog is dismissed).
2380 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2382 def SetDirectory(*args
, **kwargs
):
2384 SetDirectory(self, String dir)
2386 Sets the default directory.
2388 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2390 def SetFilename(*args
, **kwargs
):
2392 SetFilename(self, String name)
2394 Sets the default filename.
2396 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2398 def SetWildcard(*args
, **kwargs
):
2400 SetWildcard(self, String wildCard)
2402 Sets the wildcard, which can contain multiple file types, for
2405 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2408 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2410 def SetStyle(*args
, **kwargs
):
2412 SetStyle(self, long style)
2414 Sets the dialog style.
2416 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2418 def SetFilterIndex(*args
, **kwargs
):
2420 SetFilterIndex(self, int filterIndex)
2422 Sets the default filter index, starting from zero.
2424 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2426 def GetMessage(*args
, **kwargs
):
2428 GetMessage(self) -> String
2430 Returns the message that will be displayed on the dialog.
2432 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2434 def GetPath(*args
, **kwargs
):
2436 GetPath(self) -> String
2438 Returns the full path (directory and filename) of the selected file.
2440 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2442 def GetDirectory(*args
, **kwargs
):
2444 GetDirectory(self) -> String
2446 Returns the default directory.
2448 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2450 def GetFilename(*args
, **kwargs
):
2452 GetFilename(self) -> String
2454 Returns the default filename.
2456 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2458 def GetWildcard(*args
, **kwargs
):
2460 GetWildcard(self) -> String
2462 Returns the file dialog wildcard.
2464 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2466 def GetStyle(*args
, **kwargs
):
2468 GetStyle(self) -> long
2470 Returns the dialog style.
2472 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2474 def GetFilterIndex(*args
, **kwargs
):
2476 GetFilterIndex(self) -> int
2478 Returns the index into the list of filters supplied, optionally, in
2479 the wildcard parameter. Before the dialog is shown, this is the index
2480 which will be used when the dialog is first displayed. After the
2481 dialog is shown, this is the index selected by the user.
2483 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2485 def GetFilenames(*args
, **kwargs
):
2487 GetFilenames(self) -> PyObject
2489 Returns a list of filenames chosen in the dialog. This function
2490 should only be used with the dialogs which have wx.MULTIPLE style, use
2491 GetFilename for the others.
2493 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2495 def GetPaths(*args
, **kwargs
):
2497 GetPaths(self) -> PyObject
2499 Fills the array paths with the full paths of the files chosen. This
2500 function should only be used with the dialogs which have wx.MULTIPLE
2501 style, use GetPath for the others.
2503 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2506 class FileDialogPtr(FileDialog
):
2507 def __init__(self
, this
):
2509 if not hasattr(self
,"thisown"): self
.thisown
= 0
2510 self
.__class
__ = FileDialog
2511 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2513 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2514 class MultiChoiceDialog(Dialog
):
2515 """A simple dialog with a multi selection listbox."""
2517 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2518 def __init__(self
, *args
, **kwargs
):
2520 __init__(Window parent, String message, String caption,
2521 List choices=[], long style=CHOICEDLG_STYLE,
2522 Point pos=DefaultPosition) -> MultiChoiceDialog
2524 Constructor. Use ShowModal method to show the dialog.
2526 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2527 self
.this
= newobj
.this
2530 self
._setOORInfo
(self
)
2532 def SetSelections(*args
, **kwargs
):
2534 SetSelections(List selections)
2536 Specify the items in the list that should be selected, using a list of
2539 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2541 def GetSelections(*args
, **kwargs
):
2543 GetSelections() -> [selections]
2545 Returns a list of integers representing the items that are selected.
2547 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2550 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2551 def __init__(self
, this
):
2553 if not hasattr(self
,"thisown"): self
.thisown
= 0
2554 self
.__class
__ = MultiChoiceDialog
2555 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2557 class SingleChoiceDialog(Dialog
):
2558 """A simple dialog with a single selection listbox."""
2560 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2561 def __init__(self
, *args
, **kwargs
):
2563 __init__(Window parent, String message, String caption,
2564 List choices=[], long style=CHOICEDLG_STYLE,
2565 Point pos=DefaultPosition) -> SingleChoiceDialog
2567 Constructor. Use ShowModal method to show the dialog.
2569 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2570 self
.this
= newobj
.this
2573 self
._setOORInfo
(self
)
2575 def GetSelection(*args
, **kwargs
):
2577 GetSelection(self) -> int
2579 Get the index of teh currently selected item.
2581 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2583 def GetStringSelection(*args
, **kwargs
):
2585 GetStringSelection(self) -> String
2587 Returns the string value of the currently selected item
2589 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2591 def SetSelection(*args
, **kwargs
):
2593 SetSelection(self, int sel)
2595 Set the current selected item to sel
2597 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2600 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2601 def __init__(self
, this
):
2603 if not hasattr(self
,"thisown"): self
.thisown
= 0
2604 self
.__class
__ = SingleChoiceDialog
2605 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2607 class TextEntryDialog(Dialog
):
2608 """A dialog with text control, [ok] and [cancel] buttons"""
2610 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2611 def __init__(self
, *args
, **kwargs
):
2613 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2614 String defaultValue=EmptyString,
2615 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2617 Constructor. Use ShowModal method to show the dialog.
2619 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2620 self
.this
= newobj
.this
2623 self
._setOORInfo
(self
)
2625 def GetValue(*args
, **kwargs
):
2627 GetValue(self) -> String
2629 Returns the text that the user has entered if the user has pressed OK,
2630 or the original value if the user has pressed Cancel.
2632 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2634 def SetValue(*args
, **kwargs
):
2636 SetValue(self, String value)
2638 Sets the default text value.
2640 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2643 class TextEntryDialogPtr(TextEntryDialog
):
2644 def __init__(self
, this
):
2646 if not hasattr(self
,"thisown"): self
.thisown
= 0
2647 self
.__class
__ = TextEntryDialog
2648 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2650 class FontData(_core
.Object
):
2652 This class holds a variety of information related to font dialogs and
2653 is used to transfer settings to and results from a `wx.FontDialog`.
2656 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2657 def __init__(self
, *args
, **kwargs
):
2659 __init__(self) -> FontData
2661 This class holds a variety of information related to font dialogs and
2662 is used to transfer settings to and results from a `wx.FontDialog`.
2664 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2665 self
.this
= newobj
.this
2668 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2671 if self
.thisown
: destroy(self
)
2674 def EnableEffects(*args
, **kwargs
):
2676 EnableEffects(self, bool enable)
2678 Enables or disables 'effects' under MS Windows only. This refers to
2679 the controls for manipulating colour, strikeout and underline
2680 properties. The default value is true.
2682 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2684 def GetAllowSymbols(*args
, **kwargs
):
2686 GetAllowSymbols(self) -> bool
2688 Under MS Windows, returns a flag determining whether symbol fonts can
2689 be selected. Has no effect on other platforms. The default value is
2692 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2694 def GetColour(*args
, **kwargs
):
2696 GetColour(self) -> Colour
2698 Gets the colour associated with the font dialog. The default value is
2701 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2703 def GetChosenFont(*args
, **kwargs
):
2705 GetChosenFont(self) -> Font
2707 Gets the font chosen by the user.
2709 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2711 def GetEnableEffects(*args
, **kwargs
):
2713 GetEnableEffects(self) -> bool
2715 Determines whether 'effects' are enabled under Windows.
2717 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2719 def GetInitialFont(*args
, **kwargs
):
2721 GetInitialFont(self) -> Font
2723 Gets the font that will be initially used by the font dialog. This
2724 should have previously been set by the application.
2726 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2728 def GetShowHelp(*args
, **kwargs
):
2730 GetShowHelp(self) -> bool
2732 Returns true if the Help button will be shown (Windows only). The
2733 default value is false.
2735 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2737 def SetAllowSymbols(*args
, **kwargs
):
2739 SetAllowSymbols(self, bool allowSymbols)
2741 Under MS Windows, determines whether symbol fonts can be selected. Has
2742 no effect on other platforms. The default value is true.
2744 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2746 def SetChosenFont(*args
, **kwargs
):
2748 SetChosenFont(self, Font font)
2750 Sets the font that will be returned to the user (normally for internal
2753 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2755 def SetColour(*args
, **kwargs
):
2757 SetColour(self, Colour colour)
2759 Sets the colour that will be used for the font foreground colour. The
2760 default colour is black.
2762 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2764 def SetInitialFont(*args
, **kwargs
):
2766 SetInitialFont(self, Font font)
2768 Sets the font that will be initially used by the font dialog.
2770 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2772 def SetRange(*args
, **kwargs
):
2774 SetRange(self, int min, int max)
2776 Sets the valid range for the font point size (Windows only). The
2777 default is 0, 0 (unrestricted range).
2779 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2781 def SetShowHelp(*args
, **kwargs
):
2783 SetShowHelp(self, bool showHelp)
2785 Determines whether the Help button will be displayed in the font
2786 dialog (Windows only). The default value is false.
2788 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2791 class FontDataPtr(FontData
):
2792 def __init__(self
, this
):
2794 if not hasattr(self
,"thisown"): self
.thisown
= 0
2795 self
.__class
__ = FontData
2796 _windows_
.FontData_swigregister(FontDataPtr
)
2798 class FontDialog(Dialog
):
2800 wx.FontDialog allows the user to select a system font and its attributes.
2806 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2807 def __init__(self
, *args
, **kwargs
):
2809 __init__(self, Window parent, FontData data) -> FontDialog
2811 Constructor. Pass a parent window and the `wx.FontData` object to be
2812 used to initialize the dialog controls. Call `ShowModal` to display
2813 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2814 results with via the `wx.FontData` returned by `GetFontData`.
2816 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2817 self
.this
= newobj
.this
2820 self
._setOORInfo
(self
)
2822 def GetFontData(*args
, **kwargs
):
2824 GetFontData(self) -> FontData
2826 Returns a reference to the internal `wx.FontData` used by the
2829 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2832 class FontDialogPtr(FontDialog
):
2833 def __init__(self
, this
):
2835 if not hasattr(self
,"thisown"): self
.thisown
= 0
2836 self
.__class
__ = FontDialog
2837 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2839 class MessageDialog(Dialog
):
2841 This class provides a simple dialog that shows a single or multi-line
2842 message, with a choice of OK, Yes, No and/or Cancel buttons.
2845 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2846 def __init__(self
, *args
, **kwargs
):
2848 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2849 long style=wxOK|wxCANCEL|wxCENTRE,
2850 Point pos=DefaultPosition) -> MessageDialog
2852 Constructor, use `ShowModal` to display the dialog.
2854 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2855 self
.this
= newobj
.this
2858 self
._setOORInfo
(self
)
2861 class MessageDialogPtr(MessageDialog
):
2862 def __init__(self
, this
):
2864 if not hasattr(self
,"thisown"): self
.thisown
= 0
2865 self
.__class
__ = MessageDialog
2866 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2868 class ProgressDialog(Frame
):
2870 A dialog that shows a short message and a progress bar. Optionally, it
2871 can display an ABORT button.
2874 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2875 def __init__(self
, *args
, **kwargs
):
2877 __init__(self, String title, String message, int maximum=100, Window parent=None,
2878 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2880 Constructor. Creates the dialog, displays it and disables user input
2881 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2884 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2885 self
.this
= newobj
.this
2888 self
._setOORInfo
(self
)
2890 def Update(*args
, **kwargs
):
2892 Update(self, int value, String newmsg=EmptyString) -> bool
2894 Updates the dialog, setting the progress bar to the new value and, if
2895 given changes the message above it. The value given should be less
2896 than or equal to the maximum value given to the constructor and the
2897 dialog is closed if it is equal to the maximum. Returns true unless
2898 the Cancel button has been pressed.
2900 If false is returned, the application can either immediately destroy
2901 the dialog or ask the user for the confirmation and if the abort is
2902 not confirmed the dialog may be resumed with Resume function.
2904 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2906 def Resume(*args
, **kwargs
):
2910 Can be used to continue with the dialog, after the user had chosen to
2913 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2916 class ProgressDialogPtr(ProgressDialog
):
2917 def __init__(self
, this
):
2919 if not hasattr(self
,"thisown"): self
.thisown
= 0
2920 self
.__class
__ = ProgressDialog
2921 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2923 FR_DOWN
= _windows_
.FR_DOWN
2924 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2925 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2926 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2927 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2928 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2929 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2930 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2931 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2932 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2933 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2934 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2935 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2936 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2937 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2938 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2939 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2941 # For backwards compatibility. Should they be removed?
2942 EVT_COMMAND_FIND
= EVT_FIND
2943 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2944 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2945 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2946 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2948 class FindDialogEvent(_core
.CommandEvent
):
2949 """Events for the FindReplaceDialog"""
2951 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2952 def __init__(self
, *args
, **kwargs
):
2954 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2956 Events for the FindReplaceDialog
2958 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2959 self
.this
= newobj
.this
2962 def GetFlags(*args
, **kwargs
):
2964 GetFlags(self) -> int
2966 Get the currently selected flags: this is the combination of
2967 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2969 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2971 def GetFindString(*args
, **kwargs
):
2973 GetFindString(self) -> String
2975 Return the string to find (never empty).
2977 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2979 def GetReplaceString(*args
, **kwargs
):
2981 GetReplaceString(self) -> String
2983 Return the string to replace the search string with (only for replace
2984 and replace all events).
2986 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2988 def GetDialog(*args
, **kwargs
):
2990 GetDialog(self) -> FindReplaceDialog
2992 Return the pointer to the dialog which generated this event.
2994 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2996 def SetFlags(*args
, **kwargs
):
2997 """SetFlags(self, int flags)"""
2998 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
3000 def SetFindString(*args
, **kwargs
):
3001 """SetFindString(self, String str)"""
3002 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
3004 def SetReplaceString(*args
, **kwargs
):
3005 """SetReplaceString(self, String str)"""
3006 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3009 class FindDialogEventPtr(FindDialogEvent
):
3010 def __init__(self
, this
):
3012 if not hasattr(self
,"thisown"): self
.thisown
= 0
3013 self
.__class
__ = FindDialogEvent
3014 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3016 class FindReplaceData(_core
.Object
):
3018 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3019 to initialize the dialog with the default values and will keep the
3020 last values from the dialog when it is closed. It is also updated each
3021 time a `wx.FindDialogEvent` is generated so instead of using the
3022 `wx.FindDialogEvent` methods you can also directly query this object.
3024 Note that all SetXXX() methods may only be called before showing the
3025 dialog and calling them has no effect later.
3028 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3029 def __init__(self
, *args
, **kwargs
):
3031 __init__(self, int flags=0) -> FindReplaceData
3033 Constuctor initializes the flags to default value (0).
3035 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3036 self
.this
= newobj
.this
3039 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3042 if self
.thisown
: destroy(self
)
3045 def GetFindString(*args
, **kwargs
):
3047 GetFindString(self) -> String
3049 Get the string to find.
3051 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3053 def GetReplaceString(*args
, **kwargs
):
3055 GetReplaceString(self) -> String
3057 Get the replacement string.
3059 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3061 def GetFlags(*args
, **kwargs
):
3063 GetFlags(self) -> int
3065 Get the combination of flag values.
3067 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3069 def SetFlags(*args
, **kwargs
):
3071 SetFlags(self, int flags)
3073 Set the flags to use to initialize the controls of the dialog.
3075 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3077 def SetFindString(*args
, **kwargs
):
3079 SetFindString(self, String str)
3081 Set the string to find (used as initial value by the dialog).
3083 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3085 def SetReplaceString(*args
, **kwargs
):
3087 SetReplaceString(self, String str)
3089 Set the replacement string (used as initial value by the dialog).
3091 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3094 class FindReplaceDataPtr(FindReplaceData
):
3095 def __init__(self
, this
):
3097 if not hasattr(self
,"thisown"): self
.thisown
= 0
3098 self
.__class
__ = FindReplaceData
3099 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3101 class FindReplaceDialog(Dialog
):
3103 wx.FindReplaceDialog is a standard modeless dialog which is used to
3104 allow the user to search for some text (and possibly replace it with
3105 something else). The actual searching is supposed to be done in the
3106 owner window which is the parent of this dialog. Note that it means
3107 that unlike for the other standard dialogs this one must have a parent
3108 window. Also note that there is no way to use this dialog in a modal
3109 way; it is always, by design and implementation, modeless.
3112 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3113 def __init__(self
, *args
, **kwargs
):
3115 __init__(self, Window parent, FindReplaceData data, String title,
3116 int style=0) -> FindReplaceDialog
3118 Create a FindReplaceDialog. The parent and data parameters must be
3119 non-None. Use Show to display the dialog.
3121 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3122 self
.this
= newobj
.this
3125 self
._setOORInfo
(self
)
3127 def Create(*args
, **kwargs
):
3129 Create(self, Window parent, FindReplaceData data, String title,
3130 int style=0) -> bool
3132 Create the dialog, for 2-phase create.
3134 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3136 def GetData(*args
, **kwargs
):
3138 GetData(self) -> FindReplaceData
3140 Get the FindReplaceData object used by this dialog.
3142 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3144 def SetData(*args
, **kwargs
):
3146 SetData(self, FindReplaceData data)
3148 Set the FindReplaceData object used by this dialog.
3150 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3153 class FindReplaceDialogPtr(FindReplaceDialog
):
3154 def __init__(self
, this
):
3156 if not hasattr(self
,"thisown"): self
.thisown
= 0
3157 self
.__class
__ = FindReplaceDialog
3158 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3160 def PreFindReplaceDialog(*args
, **kwargs
):
3162 PreFindReplaceDialog() -> FindReplaceDialog
3164 Precreate a FindReplaceDialog for 2-phase creation
3166 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3170 #---------------------------------------------------------------------------
3172 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3173 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3174 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3175 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3176 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3177 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3178 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3179 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3180 class MDIParentFrame(Frame
):
3182 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3183 def __init__(self
, *args
, **kwargs
):
3185 __init__(self, Window parent, int id=-1, String title=EmptyString,
3186 Point pos=DefaultPosition, Size size=DefaultSize,
3187 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3188 String name=FrameNameStr) -> MDIParentFrame
3190 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3191 self
.this
= newobj
.this
3194 self
._setOORInfo
(self
)
3196 def Create(*args
, **kwargs
):
3198 Create(self, Window parent, int id=-1, String title=EmptyString,
3199 Point pos=DefaultPosition, Size size=DefaultSize,
3200 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3201 String name=FrameNameStr) -> bool
3203 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3205 def ActivateNext(*args
, **kwargs
):
3206 """ActivateNext(self)"""
3207 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3209 def ActivatePrevious(*args
, **kwargs
):
3210 """ActivatePrevious(self)"""
3211 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3213 def ArrangeIcons(*args
, **kwargs
):
3214 """ArrangeIcons(self)"""
3215 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3217 def Cascade(*args
, **kwargs
):
3219 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3221 def GetActiveChild(*args
, **kwargs
):
3222 """GetActiveChild(self) -> MDIChildFrame"""
3223 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3225 def GetClientWindow(*args
, **kwargs
):
3226 """GetClientWindow(self) -> MDIClientWindow"""
3227 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3229 def GetToolBar(*args
, **kwargs
):
3230 """GetToolBar(self) -> Window"""
3231 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3233 def Tile(*args
, **kwargs
):
3235 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3238 class MDIParentFramePtr(MDIParentFrame
):
3239 def __init__(self
, this
):
3241 if not hasattr(self
,"thisown"): self
.thisown
= 0
3242 self
.__class
__ = MDIParentFrame
3243 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3245 def PreMDIParentFrame(*args
, **kwargs
):
3246 """PreMDIParentFrame() -> MDIParentFrame"""
3247 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3251 class MDIChildFrame(Frame
):
3253 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3254 def __init__(self
, *args
, **kwargs
):
3256 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3257 Point pos=DefaultPosition, Size size=DefaultSize,
3258 long style=DEFAULT_FRAME_STYLE,
3259 String name=FrameNameStr) -> MDIChildFrame
3261 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3262 self
.this
= newobj
.this
3265 self
._setOORInfo
(self
)
3267 def Create(*args
, **kwargs
):
3269 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3270 Point pos=DefaultPosition, Size size=DefaultSize,
3271 long style=DEFAULT_FRAME_STYLE,
3272 String name=FrameNameStr) -> bool
3274 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3276 def Activate(*args
, **kwargs
):
3277 """Activate(self)"""
3278 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3280 def Maximize(*args
, **kwargs
):
3281 """Maximize(self, bool maximize)"""
3282 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3284 def Restore(*args
, **kwargs
):
3286 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3289 class MDIChildFramePtr(MDIChildFrame
):
3290 def __init__(self
, this
):
3292 if not hasattr(self
,"thisown"): self
.thisown
= 0
3293 self
.__class
__ = MDIChildFrame
3294 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3296 def PreMDIChildFrame(*args
, **kwargs
):
3297 """PreMDIChildFrame() -> MDIChildFrame"""
3298 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3302 class MDIClientWindow(_core
.Window
):
3304 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3305 def __init__(self
, *args
, **kwargs
):
3306 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3307 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3308 self
.this
= newobj
.this
3311 self
._setOORInfo
(self
)
3313 def Create(*args
, **kwargs
):
3314 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3315 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3318 class MDIClientWindowPtr(MDIClientWindow
):
3319 def __init__(self
, this
):
3321 if not hasattr(self
,"thisown"): self
.thisown
= 0
3322 self
.__class
__ = MDIClientWindow
3323 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3325 def PreMDIClientWindow(*args
, **kwargs
):
3326 """PreMDIClientWindow() -> MDIClientWindow"""
3327 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3331 #---------------------------------------------------------------------------
3333 class PyWindow(_core
.Window
):
3335 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3336 def __init__(self
, *args
, **kwargs
):
3338 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3339 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3341 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3342 self
.this
= newobj
.this
3345 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3347 def _setCallbackInfo(*args
, **kwargs
):
3348 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3349 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3351 def SetBestSize(*args
, **kwargs
):
3352 """SetBestSize(self, Size size)"""
3353 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3355 def base_DoMoveWindow(*args
, **kwargs
):
3356 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3357 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3359 def base_DoSetSize(*args
, **kwargs
):
3360 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3361 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3363 def base_DoSetClientSize(*args
, **kwargs
):
3364 """base_DoSetClientSize(self, int width, int height)"""
3365 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3367 def base_DoSetVirtualSize(*args
, **kwargs
):
3368 """base_DoSetVirtualSize(self, int x, int y)"""
3369 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3371 def base_DoGetSize(*args
, **kwargs
):
3372 """base_DoGetSize() -> (width, height)"""
3373 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3375 def base_DoGetClientSize(*args
, **kwargs
):
3376 """base_DoGetClientSize() -> (width, height)"""
3377 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3379 def base_DoGetPosition(*args
, **kwargs
):
3380 """base_DoGetPosition() -> (x,y)"""
3381 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3383 def base_DoGetVirtualSize(*args
, **kwargs
):
3384 """base_DoGetVirtualSize(self) -> Size"""
3385 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3387 def base_DoGetBestSize(*args
, **kwargs
):
3388 """base_DoGetBestSize(self) -> Size"""
3389 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3391 def base_InitDialog(*args
, **kwargs
):
3392 """base_InitDialog(self)"""
3393 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3395 def base_TransferDataToWindow(*args
, **kwargs
):
3396 """base_TransferDataToWindow(self) -> bool"""
3397 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3399 def base_TransferDataFromWindow(*args
, **kwargs
):
3400 """base_TransferDataFromWindow(self) -> bool"""
3401 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3403 def base_Validate(*args
, **kwargs
):
3404 """base_Validate(self) -> bool"""
3405 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3407 def base_AcceptsFocus(*args
, **kwargs
):
3408 """base_AcceptsFocus(self) -> bool"""
3409 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3411 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3412 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3413 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3415 def base_GetMaxSize(*args
, **kwargs
):
3416 """base_GetMaxSize(self) -> Size"""
3417 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3419 def base_AddChild(*args
, **kwargs
):
3420 """base_AddChild(self, Window child)"""
3421 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3423 def base_RemoveChild(*args
, **kwargs
):
3424 """base_RemoveChild(self, Window child)"""
3425 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3427 def base_ShouldInheritColours(*args
, **kwargs
):
3428 """base_ShouldInheritColours(self) -> bool"""
3429 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3431 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3432 """base_ApplyParentThemeBackground(self, Colour c)"""
3433 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3435 def base_GetDefaultAttributes(*args
, **kwargs
):
3436 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3437 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3440 class PyWindowPtr(PyWindow
):
3441 def __init__(self
, this
):
3443 if not hasattr(self
,"thisown"): self
.thisown
= 0
3444 self
.__class
__ = PyWindow
3445 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3447 def PrePyWindow(*args
, **kwargs
):
3448 """PrePyWindow() -> PyWindow"""
3449 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3453 class PyPanel(Panel
):
3455 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3456 def __init__(self
, *args
, **kwargs
):
3458 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3459 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3461 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3462 self
.this
= newobj
.this
3465 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3467 def _setCallbackInfo(*args
, **kwargs
):
3468 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3469 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3471 def SetBestSize(*args
, **kwargs
):
3472 """SetBestSize(self, Size size)"""
3473 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3475 def base_DoMoveWindow(*args
, **kwargs
):
3476 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3477 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3479 def base_DoSetSize(*args
, **kwargs
):
3480 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3481 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3483 def base_DoSetClientSize(*args
, **kwargs
):
3484 """base_DoSetClientSize(self, int width, int height)"""
3485 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3487 def base_DoSetVirtualSize(*args
, **kwargs
):
3488 """base_DoSetVirtualSize(self, int x, int y)"""
3489 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3491 def base_DoGetSize(*args
, **kwargs
):
3492 """base_DoGetSize() -> (width, height)"""
3493 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3495 def base_DoGetClientSize(*args
, **kwargs
):
3496 """base_DoGetClientSize() -> (width, height)"""
3497 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3499 def base_DoGetPosition(*args
, **kwargs
):
3500 """base_DoGetPosition() -> (x,y)"""
3501 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3503 def base_DoGetVirtualSize(*args
, **kwargs
):
3504 """base_DoGetVirtualSize(self) -> Size"""
3505 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3507 def base_DoGetBestSize(*args
, **kwargs
):
3508 """base_DoGetBestSize(self) -> Size"""
3509 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3511 def base_InitDialog(*args
, **kwargs
):
3512 """base_InitDialog(self)"""
3513 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3515 def base_TransferDataToWindow(*args
, **kwargs
):
3516 """base_TransferDataToWindow(self) -> bool"""
3517 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3519 def base_TransferDataFromWindow(*args
, **kwargs
):
3520 """base_TransferDataFromWindow(self) -> bool"""
3521 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3523 def base_Validate(*args
, **kwargs
):
3524 """base_Validate(self) -> bool"""
3525 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3527 def base_AcceptsFocus(*args
, **kwargs
):
3528 """base_AcceptsFocus(self) -> bool"""
3529 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3531 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3532 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3533 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3535 def base_GetMaxSize(*args
, **kwargs
):
3536 """base_GetMaxSize(self) -> Size"""
3537 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3539 def base_AddChild(*args
, **kwargs
):
3540 """base_AddChild(self, Window child)"""
3541 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3543 def base_RemoveChild(*args
, **kwargs
):
3544 """base_RemoveChild(self, Window child)"""
3545 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3547 def base_ShouldInheritColours(*args
, **kwargs
):
3548 """base_ShouldInheritColours(self) -> bool"""
3549 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3551 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3552 """base_ApplyParentThemeBackground(self, Colour c)"""
3553 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3555 def base_GetDefaultAttributes(*args
, **kwargs
):
3556 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3557 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3560 class PyPanelPtr(PyPanel
):
3561 def __init__(self
, this
):
3563 if not hasattr(self
,"thisown"): self
.thisown
= 0
3564 self
.__class
__ = PyPanel
3565 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3567 def PrePyPanel(*args
, **kwargs
):
3568 """PrePyPanel() -> PyPanel"""
3569 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3573 class PyScrolledWindow(ScrolledWindow
):
3575 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3576 def __init__(self
, *args
, **kwargs
):
3578 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3579 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3581 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3582 self
.this
= newobj
.this
3585 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3587 def _setCallbackInfo(*args
, **kwargs
):
3588 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3589 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3591 def SetBestSize(*args
, **kwargs
):
3592 """SetBestSize(self, Size size)"""
3593 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3595 def base_DoMoveWindow(*args
, **kwargs
):
3596 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3597 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3599 def base_DoSetSize(*args
, **kwargs
):
3600 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3601 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3603 def base_DoSetClientSize(*args
, **kwargs
):
3604 """base_DoSetClientSize(self, int width, int height)"""
3605 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3607 def base_DoSetVirtualSize(*args
, **kwargs
):
3608 """base_DoSetVirtualSize(self, int x, int y)"""
3609 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3611 def base_DoGetSize(*args
, **kwargs
):
3612 """base_DoGetSize() -> (width, height)"""
3613 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3615 def base_DoGetClientSize(*args
, **kwargs
):
3616 """base_DoGetClientSize() -> (width, height)"""
3617 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3619 def base_DoGetPosition(*args
, **kwargs
):
3620 """base_DoGetPosition() -> (x,y)"""
3621 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3623 def base_DoGetVirtualSize(*args
, **kwargs
):
3624 """base_DoGetVirtualSize(self) -> Size"""
3625 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3627 def base_DoGetBestSize(*args
, **kwargs
):
3628 """base_DoGetBestSize(self) -> Size"""
3629 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3631 def base_InitDialog(*args
, **kwargs
):
3632 """base_InitDialog(self)"""
3633 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3635 def base_TransferDataToWindow(*args
, **kwargs
):
3636 """base_TransferDataToWindow(self) -> bool"""
3637 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3639 def base_TransferDataFromWindow(*args
, **kwargs
):
3640 """base_TransferDataFromWindow(self) -> bool"""
3641 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3643 def base_Validate(*args
, **kwargs
):
3644 """base_Validate(self) -> bool"""
3645 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3647 def base_AcceptsFocus(*args
, **kwargs
):
3648 """base_AcceptsFocus(self) -> bool"""
3649 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3651 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3652 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3653 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3655 def base_GetMaxSize(*args
, **kwargs
):
3656 """base_GetMaxSize(self) -> Size"""
3657 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3659 def base_AddChild(*args
, **kwargs
):
3660 """base_AddChild(self, Window child)"""
3661 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3663 def base_RemoveChild(*args
, **kwargs
):
3664 """base_RemoveChild(self, Window child)"""
3665 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3667 def base_ShouldInheritColours(*args
, **kwargs
):
3668 """base_ShouldInheritColours(self) -> bool"""
3669 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3671 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3672 """base_ApplyParentThemeBackground(self, Colour c)"""
3673 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3675 def base_GetDefaultAttributes(*args
, **kwargs
):
3676 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3677 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3680 class PyScrolledWindowPtr(PyScrolledWindow
):
3681 def __init__(self
, this
):
3683 if not hasattr(self
,"thisown"): self
.thisown
= 0
3684 self
.__class
__ = PyScrolledWindow
3685 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3687 def PrePyScrolledWindow(*args
, **kwargs
):
3688 """PrePyScrolledWindow() -> PyScrolledWindow"""
3689 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3693 #---------------------------------------------------------------------------
3695 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3696 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3697 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3698 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3699 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3700 PRINTBIN_DEFAULT
= _windows_
.PRINTBIN_DEFAULT
3701 PRINTBIN_ONLYONE
= _windows_
.PRINTBIN_ONLYONE
3702 PRINTBIN_LOWER
= _windows_
.PRINTBIN_LOWER
3703 PRINTBIN_MIDDLE
= _windows_
.PRINTBIN_MIDDLE
3704 PRINTBIN_MANUAL
= _windows_
.PRINTBIN_MANUAL
3705 PRINTBIN_ENVELOPE
= _windows_
.PRINTBIN_ENVELOPE
3706 PRINTBIN_ENVMANUAL
= _windows_
.PRINTBIN_ENVMANUAL
3707 PRINTBIN_AUTO
= _windows_
.PRINTBIN_AUTO
3708 PRINTBIN_TRACTOR
= _windows_
.PRINTBIN_TRACTOR
3709 PRINTBIN_SMALLFMT
= _windows_
.PRINTBIN_SMALLFMT
3710 PRINTBIN_LARGEFMT
= _windows_
.PRINTBIN_LARGEFMT
3711 PRINTBIN_LARGECAPACITY
= _windows_
.PRINTBIN_LARGECAPACITY
3712 PRINTBIN_CASSETTE
= _windows_
.PRINTBIN_CASSETTE
3713 PRINTBIN_FORMSOURCE
= _windows_
.PRINTBIN_FORMSOURCE
3714 PRINTBIN_USER
= _windows_
.PRINTBIN_USER
3715 class PrintData(_core
.Object
):
3717 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3718 def __init__(self
, *args
):
3720 __init__(self) -> PrintData
3721 __init__(self, PrintData data) -> PrintData
3723 newobj
= _windows_
.new_PrintData(*args
)
3724 self
.this
= newobj
.this
3727 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3730 if self
.thisown
: destroy(self
)
3733 def GetNoCopies(*args
, **kwargs
):
3734 """GetNoCopies(self) -> int"""
3735 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3737 def GetCollate(*args
, **kwargs
):
3738 """GetCollate(self) -> bool"""
3739 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3741 def GetOrientation(*args
, **kwargs
):
3742 """GetOrientation(self) -> int"""
3743 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3745 def Ok(*args
, **kwargs
):
3746 """Ok(self) -> bool"""
3747 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3749 def GetPrinterName(*args
, **kwargs
):
3750 """GetPrinterName(self) -> String"""
3751 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3753 def GetColour(*args
, **kwargs
):
3754 """GetColour(self) -> bool"""
3755 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3757 def GetDuplex(*args
, **kwargs
):
3758 """GetDuplex(self) -> int"""
3759 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3761 def GetPaperId(*args
, **kwargs
):
3762 """GetPaperId(self) -> int"""
3763 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3765 def GetPaperSize(*args
, **kwargs
):
3766 """GetPaperSize(self) -> Size"""
3767 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3769 def GetQuality(*args
, **kwargs
):
3770 """GetQuality(self) -> int"""
3771 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3773 def GetBin(*args
, **kwargs
):
3774 """GetBin(self) -> int"""
3775 return _windows_
.PrintData_GetBin(*args
, **kwargs
)
3777 def SetNoCopies(*args
, **kwargs
):
3778 """SetNoCopies(self, int v)"""
3779 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3781 def SetCollate(*args
, **kwargs
):
3782 """SetCollate(self, bool flag)"""
3783 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3785 def SetOrientation(*args
, **kwargs
):
3786 """SetOrientation(self, int orient)"""
3787 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3789 def SetPrinterName(*args
, **kwargs
):
3790 """SetPrinterName(self, String name)"""
3791 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3793 def SetColour(*args
, **kwargs
):
3794 """SetColour(self, bool colour)"""
3795 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3797 def SetDuplex(*args
, **kwargs
):
3798 """SetDuplex(self, int duplex)"""
3799 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3801 def SetPaperId(*args
, **kwargs
):
3802 """SetPaperId(self, int sizeId)"""
3803 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3805 def SetPaperSize(*args
, **kwargs
):
3806 """SetPaperSize(self, Size sz)"""
3807 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3809 def SetQuality(*args
, **kwargs
):
3810 """SetQuality(self, int quality)"""
3811 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3813 def SetBin(*args
, **kwargs
):
3814 """SetBin(self, int bin)"""
3815 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3817 def GetPrinterCommand(*args
, **kwargs
):
3818 """GetPrinterCommand(self) -> String"""
3819 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3821 def GetPrinterOptions(*args
, **kwargs
):
3822 """GetPrinterOptions(self) -> String"""
3823 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3825 def GetPreviewCommand(*args
, **kwargs
):
3826 """GetPreviewCommand(self) -> String"""
3827 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3829 def GetFilename(*args
, **kwargs
):
3830 """GetFilename(self) -> String"""
3831 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3833 def GetFontMetricPath(*args
, **kwargs
):
3834 """GetFontMetricPath(self) -> String"""
3835 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3837 def GetPrinterScaleX(*args
, **kwargs
):
3838 """GetPrinterScaleX(self) -> double"""
3839 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3841 def GetPrinterScaleY(*args
, **kwargs
):
3842 """GetPrinterScaleY(self) -> double"""
3843 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3845 def GetPrinterTranslateX(*args
, **kwargs
):
3846 """GetPrinterTranslateX(self) -> long"""
3847 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3849 def GetPrinterTranslateY(*args
, **kwargs
):
3850 """GetPrinterTranslateY(self) -> long"""
3851 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3853 def GetPrintMode(*args
, **kwargs
):
3854 """GetPrintMode(self) -> int"""
3855 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3857 def SetPrinterCommand(*args
, **kwargs
):
3858 """SetPrinterCommand(self, String command)"""
3859 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3861 def SetPrinterOptions(*args
, **kwargs
):
3862 """SetPrinterOptions(self, String options)"""
3863 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3865 def SetPreviewCommand(*args
, **kwargs
):
3866 """SetPreviewCommand(self, String command)"""
3867 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3869 def SetFilename(*args
, **kwargs
):
3870 """SetFilename(self, String filename)"""
3871 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3873 def SetFontMetricPath(*args
, **kwargs
):
3874 """SetFontMetricPath(self, String path)"""
3875 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3877 def SetPrinterScaleX(*args
, **kwargs
):
3878 """SetPrinterScaleX(self, double x)"""
3879 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3881 def SetPrinterScaleY(*args
, **kwargs
):
3882 """SetPrinterScaleY(self, double y)"""
3883 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3885 def SetPrinterScaling(*args
, **kwargs
):
3886 """SetPrinterScaling(self, double x, double y)"""
3887 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3889 def SetPrinterTranslateX(*args
, **kwargs
):
3890 """SetPrinterTranslateX(self, long x)"""
3891 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3893 def SetPrinterTranslateY(*args
, **kwargs
):
3894 """SetPrinterTranslateY(self, long y)"""
3895 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3897 def SetPrinterTranslation(*args
, **kwargs
):
3898 """SetPrinterTranslation(self, long x, long y)"""
3899 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3901 def SetPrintMode(*args
, **kwargs
):
3902 """SetPrintMode(self, int printMode)"""
3903 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3905 def GetOutputStream(*args
, **kwargs
):
3906 """GetOutputStream(self) -> OutputStream"""
3907 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3909 def SetOutputStream(*args
, **kwargs
):
3910 """SetOutputStream(self, OutputStream outputstream)"""
3911 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3913 def __nonzero__(self
): return self
.Ok()
3915 class PrintDataPtr(PrintData
):
3916 def __init__(self
, this
):
3918 if not hasattr(self
,"thisown"): self
.thisown
= 0
3919 self
.__class
__ = PrintData
3920 _windows_
.PrintData_swigregister(PrintDataPtr
)
3921 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3922 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3924 class PageSetupDialogData(_core
.Object
):
3926 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3927 def __init__(self
, *args
):
3929 __init__(self) -> PageSetupDialogData
3930 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3932 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3933 self
.this
= newobj
.this
3936 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3939 if self
.thisown
: destroy(self
)
3942 def EnableHelp(*args
, **kwargs
):
3943 """EnableHelp(self, bool flag)"""
3944 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3946 def EnableMargins(*args
, **kwargs
):
3947 """EnableMargins(self, bool flag)"""
3948 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3950 def EnableOrientation(*args
, **kwargs
):
3951 """EnableOrientation(self, bool flag)"""
3952 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3954 def EnablePaper(*args
, **kwargs
):
3955 """EnablePaper(self, bool flag)"""
3956 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3958 def EnablePrinter(*args
, **kwargs
):
3959 """EnablePrinter(self, bool flag)"""
3960 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3962 def GetDefaultMinMargins(*args
, **kwargs
):
3963 """GetDefaultMinMargins(self) -> bool"""
3964 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3966 def GetEnableMargins(*args
, **kwargs
):
3967 """GetEnableMargins(self) -> bool"""
3968 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3970 def GetEnableOrientation(*args
, **kwargs
):
3971 """GetEnableOrientation(self) -> bool"""
3972 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3974 def GetEnablePaper(*args
, **kwargs
):
3975 """GetEnablePaper(self) -> bool"""
3976 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3978 def GetEnablePrinter(*args
, **kwargs
):
3979 """GetEnablePrinter(self) -> bool"""
3980 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3982 def GetEnableHelp(*args
, **kwargs
):
3983 """GetEnableHelp(self) -> bool"""
3984 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3986 def GetDefaultInfo(*args
, **kwargs
):
3987 """GetDefaultInfo(self) -> bool"""
3988 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3990 def GetMarginTopLeft(*args
, **kwargs
):
3991 """GetMarginTopLeft(self) -> Point"""
3992 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3994 def GetMarginBottomRight(*args
, **kwargs
):
3995 """GetMarginBottomRight(self) -> Point"""
3996 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3998 def GetMinMarginTopLeft(*args
, **kwargs
):
3999 """GetMinMarginTopLeft(self) -> Point"""
4000 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
4002 def GetMinMarginBottomRight(*args
, **kwargs
):
4003 """GetMinMarginBottomRight(self) -> Point"""
4004 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
4006 def GetPaperId(*args
, **kwargs
):
4007 """GetPaperId(self) -> int"""
4008 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4010 def GetPaperSize(*args
, **kwargs
):
4011 """GetPaperSize(self) -> Size"""
4012 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4014 def GetPrintData(*args
, **kwargs
):
4015 """GetPrintData(self) -> PrintData"""
4016 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4018 def Ok(*args
, **kwargs
):
4019 """Ok(self) -> bool"""
4020 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4022 def SetDefaultInfo(*args
, **kwargs
):
4023 """SetDefaultInfo(self, bool flag)"""
4024 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4026 def SetDefaultMinMargins(*args
, **kwargs
):
4027 """SetDefaultMinMargins(self, bool flag)"""
4028 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4030 def SetMarginTopLeft(*args
, **kwargs
):
4031 """SetMarginTopLeft(self, Point pt)"""
4032 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4034 def SetMarginBottomRight(*args
, **kwargs
):
4035 """SetMarginBottomRight(self, Point pt)"""
4036 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4038 def SetMinMarginTopLeft(*args
, **kwargs
):
4039 """SetMinMarginTopLeft(self, Point pt)"""
4040 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4042 def SetMinMarginBottomRight(*args
, **kwargs
):
4043 """SetMinMarginBottomRight(self, Point pt)"""
4044 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4046 def SetPaperId(*args
, **kwargs
):
4047 """SetPaperId(self, int id)"""
4048 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4050 def SetPaperSize(*args
, **kwargs
):
4051 """SetPaperSize(self, Size size)"""
4052 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4054 def SetPrintData(*args
, **kwargs
):
4055 """SetPrintData(self, PrintData printData)"""
4056 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4058 def __nonzero__(self
): return self
.Ok()
4060 class PageSetupDialogDataPtr(PageSetupDialogData
):
4061 def __init__(self
, this
):
4063 if not hasattr(self
,"thisown"): self
.thisown
= 0
4064 self
.__class
__ = PageSetupDialogData
4065 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4067 class PageSetupDialog(Dialog
):
4069 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4070 def __init__(self
, *args
, **kwargs
):
4071 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4072 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4073 self
.this
= newobj
.this
4076 self
._setOORInfo
(self
)
4078 def GetPageSetupData(*args
, **kwargs
):
4079 """GetPageSetupData(self) -> PageSetupDialogData"""
4080 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4082 def ShowModal(*args
, **kwargs
):
4083 """ShowModal(self) -> int"""
4084 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4087 class PageSetupDialogPtr(PageSetupDialog
):
4088 def __init__(self
, this
):
4090 if not hasattr(self
,"thisown"): self
.thisown
= 0
4091 self
.__class
__ = PageSetupDialog
4092 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4094 class PrintDialogData(_core
.Object
):
4096 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4097 def __init__(self
, *args
):
4099 __init__(self) -> PrintDialogData
4100 __init__(self, PrintData printData) -> PrintDialogData
4102 newobj
= _windows_
.new_PrintDialogData(*args
)
4103 self
.this
= newobj
.this
4106 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4109 if self
.thisown
: destroy(self
)
4112 def GetFromPage(*args
, **kwargs
):
4113 """GetFromPage(self) -> int"""
4114 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4116 def GetToPage(*args
, **kwargs
):
4117 """GetToPage(self) -> int"""
4118 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4120 def GetMinPage(*args
, **kwargs
):
4121 """GetMinPage(self) -> int"""
4122 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4124 def GetMaxPage(*args
, **kwargs
):
4125 """GetMaxPage(self) -> int"""
4126 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4128 def GetNoCopies(*args
, **kwargs
):
4129 """GetNoCopies(self) -> int"""
4130 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4132 def GetAllPages(*args
, **kwargs
):
4133 """GetAllPages(self) -> bool"""
4134 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4136 def GetSelection(*args
, **kwargs
):
4137 """GetSelection(self) -> bool"""
4138 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4140 def GetCollate(*args
, **kwargs
):
4141 """GetCollate(self) -> bool"""
4142 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4144 def GetPrintToFile(*args
, **kwargs
):
4145 """GetPrintToFile(self) -> bool"""
4146 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4148 def GetSetupDialog(*args
, **kwargs
):
4149 """GetSetupDialog(self) -> bool"""
4150 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4152 def SetFromPage(*args
, **kwargs
):
4153 """SetFromPage(self, int v)"""
4154 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4156 def SetToPage(*args
, **kwargs
):
4157 """SetToPage(self, int v)"""
4158 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4160 def SetMinPage(*args
, **kwargs
):
4161 """SetMinPage(self, int v)"""
4162 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4164 def SetMaxPage(*args
, **kwargs
):
4165 """SetMaxPage(self, int v)"""
4166 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4168 def SetNoCopies(*args
, **kwargs
):
4169 """SetNoCopies(self, int v)"""
4170 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4172 def SetAllPages(*args
, **kwargs
):
4173 """SetAllPages(self, bool flag)"""
4174 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4176 def SetSelection(*args
, **kwargs
):
4177 """SetSelection(self, bool flag)"""
4178 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4180 def SetCollate(*args
, **kwargs
):
4181 """SetCollate(self, bool flag)"""
4182 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4184 def SetPrintToFile(*args
, **kwargs
):
4185 """SetPrintToFile(self, bool flag)"""
4186 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4188 def SetSetupDialog(*args
, **kwargs
):
4189 """SetSetupDialog(self, bool flag)"""
4190 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4192 def EnablePrintToFile(*args
, **kwargs
):
4193 """EnablePrintToFile(self, bool flag)"""
4194 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4196 def EnableSelection(*args
, **kwargs
):
4197 """EnableSelection(self, bool flag)"""
4198 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4200 def EnablePageNumbers(*args
, **kwargs
):
4201 """EnablePageNumbers(self, bool flag)"""
4202 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4204 def EnableHelp(*args
, **kwargs
):
4205 """EnableHelp(self, bool flag)"""
4206 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4208 def GetEnablePrintToFile(*args
, **kwargs
):
4209 """GetEnablePrintToFile(self) -> bool"""
4210 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4212 def GetEnableSelection(*args
, **kwargs
):
4213 """GetEnableSelection(self) -> bool"""
4214 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4216 def GetEnablePageNumbers(*args
, **kwargs
):
4217 """GetEnablePageNumbers(self) -> bool"""
4218 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4220 def GetEnableHelp(*args
, **kwargs
):
4221 """GetEnableHelp(self) -> bool"""
4222 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4224 def Ok(*args
, **kwargs
):
4225 """Ok(self) -> bool"""
4226 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4228 def GetPrintData(*args
, **kwargs
):
4229 """GetPrintData(self) -> PrintData"""
4230 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4232 def SetPrintData(*args
, **kwargs
):
4233 """SetPrintData(self, PrintData printData)"""
4234 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4236 def __nonzero__(self
): return self
.Ok()
4238 class PrintDialogDataPtr(PrintDialogData
):
4239 def __init__(self
, this
):
4241 if not hasattr(self
,"thisown"): self
.thisown
= 0
4242 self
.__class
__ = PrintDialogData
4243 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4245 class PrintDialog(Dialog
):
4247 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4248 def __init__(self
, *args
, **kwargs
):
4249 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4250 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4251 self
.this
= newobj
.this
4254 self
._setOORInfo
(self
)
4256 def GetPrintDialogData(*args
, **kwargs
):
4257 """GetPrintDialogData(self) -> PrintDialogData"""
4258 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4260 def GetPrintDC(*args
, **kwargs
):
4261 """GetPrintDC(self) -> DC"""
4262 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4264 def ShowModal(*args
, **kwargs
):
4265 """ShowModal(self) -> int"""
4266 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4269 class PrintDialogPtr(PrintDialog
):
4270 def __init__(self
, this
):
4272 if not hasattr(self
,"thisown"): self
.thisown
= 0
4273 self
.__class
__ = PrintDialog
4274 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4276 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4277 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4278 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4279 class Printer(_core
.Object
):
4281 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4282 def __init__(self
, *args
, **kwargs
):
4283 """__init__(self, PrintDialogData data=None) -> Printer"""
4284 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4285 self
.this
= newobj
.this
4288 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4291 if self
.thisown
: destroy(self
)
4294 def CreateAbortWindow(*args
, **kwargs
):
4295 """CreateAbortWindow(self, Window parent, Printout printout)"""
4296 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4298 def GetPrintDialogData(*args
, **kwargs
):
4299 """GetPrintDialogData(self) -> PrintDialogData"""
4300 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4302 def Print(*args
, **kwargs
):
4303 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4304 return _windows_
.Printer_Print(*args
, **kwargs
)
4306 def PrintDialog(*args
, **kwargs
):
4307 """PrintDialog(self, Window parent) -> DC"""
4308 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4310 def ReportError(*args
, **kwargs
):
4311 """ReportError(self, Window parent, Printout printout, String message)"""
4312 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4314 def Setup(*args
, **kwargs
):
4315 """Setup(self, Window parent) -> bool"""
4316 return _windows_
.Printer_Setup(*args
, **kwargs
)
4318 def GetAbort(*args
, **kwargs
):
4319 """GetAbort(self) -> bool"""
4320 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4322 def GetLastError(*args
, **kwargs
):
4323 """GetLastError() -> int"""
4324 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4326 GetLastError
= staticmethod(GetLastError
)
4328 class PrinterPtr(Printer
):
4329 def __init__(self
, this
):
4331 if not hasattr(self
,"thisown"): self
.thisown
= 0
4332 self
.__class
__ = Printer
4333 _windows_
.Printer_swigregister(PrinterPtr
)
4335 def Printer_GetLastError(*args
, **kwargs
):
4336 """Printer_GetLastError() -> int"""
4337 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4339 class Printout(_core
.Object
):
4341 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4342 def __init__(self
, *args
, **kwargs
):
4343 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4344 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4345 self
.this
= newobj
.this
4348 self
._setCallbackInfo
(self
, Printout
)
4350 def _setCallbackInfo(*args
, **kwargs
):
4351 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4352 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4354 def GetTitle(*args
, **kwargs
):
4355 """GetTitle(self) -> String"""
4356 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4358 def GetDC(*args
, **kwargs
):
4359 """GetDC(self) -> DC"""
4360 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4362 def SetDC(*args
, **kwargs
):
4363 """SetDC(self, DC dc)"""
4364 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4366 def SetPageSizePixels(*args
, **kwargs
):
4367 """SetPageSizePixels(self, int w, int h)"""
4368 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4370 def GetPageSizePixels(*args
, **kwargs
):
4371 """GetPageSizePixels() -> (w, h)"""
4372 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4374 def SetPageSizeMM(*args
, **kwargs
):
4375 """SetPageSizeMM(self, int w, int h)"""
4376 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4378 def GetPageSizeMM(*args
, **kwargs
):
4379 """GetPageSizeMM() -> (w, h)"""
4380 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4382 def SetPPIScreen(*args
, **kwargs
):
4383 """SetPPIScreen(self, int x, int y)"""
4384 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4386 def GetPPIScreen(*args
, **kwargs
):
4387 """GetPPIScreen() -> (x,y)"""
4388 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4390 def SetPPIPrinter(*args
, **kwargs
):
4391 """SetPPIPrinter(self, int x, int y)"""
4392 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4394 def GetPPIPrinter(*args
, **kwargs
):
4395 """GetPPIPrinter() -> (x,y)"""
4396 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4398 def IsPreview(*args
, **kwargs
):
4399 """IsPreview(self) -> bool"""
4400 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4402 def SetIsPreview(*args
, **kwargs
):
4403 """SetIsPreview(self, bool p)"""
4404 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4406 def base_OnBeginDocument(*args
, **kwargs
):
4407 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4408 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4410 def base_OnEndDocument(*args
, **kwargs
):
4411 """base_OnEndDocument(self)"""
4412 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4414 def base_OnBeginPrinting(*args
, **kwargs
):
4415 """base_OnBeginPrinting(self)"""
4416 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4418 def base_OnEndPrinting(*args
, **kwargs
):
4419 """base_OnEndPrinting(self)"""
4420 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4422 def base_OnPreparePrinting(*args
, **kwargs
):
4423 """base_OnPreparePrinting(self)"""
4424 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4426 def base_HasPage(*args
, **kwargs
):
4427 """base_HasPage(self, int page) -> bool"""
4428 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4430 def base_GetPageInfo(*args
, **kwargs
):
4431 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4432 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4435 class PrintoutPtr(Printout
):
4436 def __init__(self
, this
):
4438 if not hasattr(self
,"thisown"): self
.thisown
= 0
4439 self
.__class
__ = Printout
4440 _windows_
.Printout_swigregister(PrintoutPtr
)
4442 class PreviewCanvas(ScrolledWindow
):
4444 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4445 def __init__(self
, *args
, **kwargs
):
4447 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4448 Size size=DefaultSize, long style=0,
4449 String name=PreviewCanvasNameStr) -> PreviewCanvas
4451 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4452 self
.this
= newobj
.this
4455 self
._setOORInfo
(self
)
4458 class PreviewCanvasPtr(PreviewCanvas
):
4459 def __init__(self
, this
):
4461 if not hasattr(self
,"thisown"): self
.thisown
= 0
4462 self
.__class
__ = PreviewCanvas
4463 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4465 class PreviewFrame(Frame
):
4467 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4468 def __init__(self
, *args
, **kwargs
):
4470 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4471 Size size=DefaultSize,
4472 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4474 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4475 self
.this
= newobj
.this
4478 self
._setOORInfo
(self
)
4480 def Initialize(*args
, **kwargs
):
4481 """Initialize(self)"""
4482 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4484 def CreateControlBar(*args
, **kwargs
):
4485 """CreateControlBar(self)"""
4486 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4488 def CreateCanvas(*args
, **kwargs
):
4489 """CreateCanvas(self)"""
4490 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4492 def GetControlBar(*args
, **kwargs
):
4493 """GetControlBar(self) -> PreviewControlBar"""
4494 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4497 class PreviewFramePtr(PreviewFrame
):
4498 def __init__(self
, this
):
4500 if not hasattr(self
,"thisown"): self
.thisown
= 0
4501 self
.__class
__ = PreviewFrame
4502 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4504 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4505 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4506 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4507 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4508 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4509 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4510 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4511 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4512 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4513 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4514 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4515 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4516 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4517 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4518 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4519 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4520 class PreviewControlBar(Panel
):
4522 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4523 def __init__(self
, *args
, **kwargs
):
4525 __init__(self, PrintPreview preview, long buttons, Window parent,
4526 Point pos=DefaultPosition, Size size=DefaultSize,
4527 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4529 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4530 self
.this
= newobj
.this
4533 self
._setOORInfo
(self
)
4535 def GetZoomControl(*args
, **kwargs
):
4536 """GetZoomControl(self) -> int"""
4537 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4539 def SetZoomControl(*args
, **kwargs
):
4540 """SetZoomControl(self, int zoom)"""
4541 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4543 def GetPrintPreview(*args
, **kwargs
):
4544 """GetPrintPreview(self) -> PrintPreview"""
4545 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4547 def OnNext(*args
, **kwargs
):
4549 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4551 def OnPrevious(*args
, **kwargs
):
4552 """OnPrevious(self)"""
4553 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4555 def OnFirst(*args
, **kwargs
):
4557 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4559 def OnLast(*args
, **kwargs
):
4561 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4563 def OnGoto(*args
, **kwargs
):
4565 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4568 class PreviewControlBarPtr(PreviewControlBar
):
4569 def __init__(self
, this
):
4571 if not hasattr(self
,"thisown"): self
.thisown
= 0
4572 self
.__class
__ = PreviewControlBar
4573 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4575 class PrintPreview(_core
.Object
):
4577 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4578 def __init__(self
, *args
):
4580 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4581 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4583 newobj
= _windows_
.new_PrintPreview(*args
)
4584 self
.this
= newobj
.this
4587 def SetCurrentPage(*args
, **kwargs
):
4588 """SetCurrentPage(self, int pageNum) -> bool"""
4589 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4591 def GetCurrentPage(*args
, **kwargs
):
4592 """GetCurrentPage(self) -> int"""
4593 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4595 def SetPrintout(*args
, **kwargs
):
4596 """SetPrintout(self, Printout printout)"""
4597 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4599 def GetPrintout(*args
, **kwargs
):
4600 """GetPrintout(self) -> Printout"""
4601 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4603 def GetPrintoutForPrinting(*args
, **kwargs
):
4604 """GetPrintoutForPrinting(self) -> Printout"""
4605 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4607 def SetFrame(*args
, **kwargs
):
4608 """SetFrame(self, Frame frame)"""
4609 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4611 def SetCanvas(*args
, **kwargs
):
4612 """SetCanvas(self, PreviewCanvas canvas)"""
4613 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4615 def GetFrame(*args
, **kwargs
):
4616 """GetFrame(self) -> Frame"""
4617 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4619 def GetCanvas(*args
, **kwargs
):
4620 """GetCanvas(self) -> PreviewCanvas"""
4621 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4623 def PaintPage(*args
, **kwargs
):
4624 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4625 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4627 def DrawBlankPage(*args
, **kwargs
):
4628 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4629 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4631 def RenderPage(*args
, **kwargs
):
4632 """RenderPage(self, int pageNum) -> bool"""
4633 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4635 def AdjustScrollbars(*args
, **kwargs
):
4636 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4637 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4639 def GetPrintDialogData(*args
, **kwargs
):
4640 """GetPrintDialogData(self) -> PrintDialogData"""
4641 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4643 def SetZoom(*args
, **kwargs
):
4644 """SetZoom(self, int percent)"""
4645 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4647 def GetZoom(*args
, **kwargs
):
4648 """GetZoom(self) -> int"""
4649 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4651 def GetMaxPage(*args
, **kwargs
):
4652 """GetMaxPage(self) -> int"""
4653 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4655 def GetMinPage(*args
, **kwargs
):
4656 """GetMinPage(self) -> int"""
4657 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4659 def Ok(*args
, **kwargs
):
4660 """Ok(self) -> bool"""
4661 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4663 def SetOk(*args
, **kwargs
):
4664 """SetOk(self, bool ok)"""
4665 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4667 def Print(*args
, **kwargs
):
4668 """Print(self, bool interactive) -> bool"""
4669 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4671 def DetermineScaling(*args
, **kwargs
):
4672 """DetermineScaling(self)"""
4673 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4675 def __nonzero__(self
): return self
.Ok()
4677 class PrintPreviewPtr(PrintPreview
):
4678 def __init__(self
, this
):
4680 if not hasattr(self
,"thisown"): self
.thisown
= 0
4681 self
.__class
__ = PrintPreview
4682 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4684 class PyPrintPreview(PrintPreview
):
4686 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4687 def __init__(self
, *args
):
4689 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4690 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4692 newobj
= _windows_
.new_PyPrintPreview(*args
)
4693 self
.this
= newobj
.this
4696 self
._setCallbackInfo
(self
, PyPrintPreview
)
4698 def _setCallbackInfo(*args
, **kwargs
):
4699 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4700 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4702 def base_SetCurrentPage(*args
, **kwargs
):
4703 """base_SetCurrentPage(self, int pageNum) -> bool"""
4704 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4706 def base_PaintPage(*args
, **kwargs
):
4707 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4708 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4710 def base_DrawBlankPage(*args
, **kwargs
):
4711 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4712 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4714 def base_RenderPage(*args
, **kwargs
):
4715 """base_RenderPage(self, int pageNum) -> bool"""
4716 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4718 def base_SetZoom(*args
, **kwargs
):
4719 """base_SetZoom(self, int percent)"""
4720 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4722 def base_Print(*args
, **kwargs
):
4723 """base_Print(self, bool interactive) -> bool"""
4724 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4726 def base_DetermineScaling(*args
, **kwargs
):
4727 """base_DetermineScaling(self)"""
4728 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4731 class PyPrintPreviewPtr(PyPrintPreview
):
4732 def __init__(self
, this
):
4734 if not hasattr(self
,"thisown"): self
.thisown
= 0
4735 self
.__class
__ = PyPrintPreview
4736 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4738 class PyPreviewFrame(PreviewFrame
):
4740 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4741 def __init__(self
, *args
, **kwargs
):
4743 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4744 Size size=DefaultSize,
4745 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4747 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4748 self
.this
= newobj
.this
4751 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4753 def _setCallbackInfo(*args
, **kwargs
):
4754 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4755 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4757 def SetPreviewCanvas(*args
, **kwargs
):
4758 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4759 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4761 def SetControlBar(*args
, **kwargs
):
4762 """SetControlBar(self, PreviewControlBar bar)"""
4763 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4765 def base_Initialize(*args
, **kwargs
):
4766 """base_Initialize(self)"""
4767 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4769 def base_CreateCanvas(*args
, **kwargs
):
4770 """base_CreateCanvas(self)"""
4771 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4773 def base_CreateControlBar(*args
, **kwargs
):
4774 """base_CreateControlBar(self)"""
4775 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4778 class PyPreviewFramePtr(PyPreviewFrame
):
4779 def __init__(self
, this
):
4781 if not hasattr(self
,"thisown"): self
.thisown
= 0
4782 self
.__class
__ = PyPreviewFrame
4783 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4785 class PyPreviewControlBar(PreviewControlBar
):
4787 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4788 def __init__(self
, *args
, **kwargs
):
4790 __init__(self, PrintPreview preview, long buttons, Window parent,
4791 Point pos=DefaultPosition, Size size=DefaultSize,
4792 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4794 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4795 self
.this
= newobj
.this
4798 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4800 def _setCallbackInfo(*args
, **kwargs
):
4801 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4802 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4804 def SetPrintPreview(*args
, **kwargs
):
4805 """SetPrintPreview(self, PrintPreview preview)"""
4806 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4808 def base_CreateButtons(*args
, **kwargs
):
4809 """base_CreateButtons(self)"""
4810 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4812 def base_SetZoomControl(*args
, **kwargs
):
4813 """base_SetZoomControl(self, int zoom)"""
4814 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4817 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4818 def __init__(self
, this
):
4820 if not hasattr(self
,"thisown"): self
.thisown
= 0
4821 self
.__class
__ = PyPreviewControlBar
4822 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)