1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 class Panel(_core
.Window
):
12 return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
13 def __init__(self
, *args
, **kwargs
):
15 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
16 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
17 String name=PanelNameStr) -> Panel
19 newobj
= _windows_
.new_Panel(*args
, **kwargs
)
20 self
.this
= newobj
.this
23 self
._setOORInfo
(self
)
25 def Create(*args
, **kwargs
):
27 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
28 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
29 String name=PanelNameStr) -> bool
31 Create the GUI part of the Window for 2-phase creation mode.
33 return _windows_
.Panel_Create(*args
, **kwargs
)
35 def InitDialog(*args
, **kwargs
):
39 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
40 to the dialog via validators.
42 return _windows_
.Panel_InitDialog(*args
, **kwargs
)
44 def GetClassDefaultAttributes(*args
, **kwargs
):
46 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
48 Get the default attributes for this class. This is useful if you want
49 to use the same font or colour in your own control as in a standard
50 control -- which is a much better idea than hard coding specific
51 colours or fonts which might look completely out of place on the
52 user's system, especially if it uses themes.
54 The variant parameter is only relevant under Mac currently and is
55 ignore under other platforms. Under Mac, it will change the size of
56 the returned font. See `wx.Window.SetWindowVariant` for more about
59 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
61 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
63 class PanelPtr(Panel
):
64 def __init__(self
, this
):
66 if not hasattr(self
,"thisown"): self
.thisown
= 0
67 self
.__class
__ = Panel
68 _windows_
.Panel_swigregister(PanelPtr
)
70 def PrePanel(*args
, **kwargs
):
71 """PrePanel() -> Panel"""
72 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
76 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
78 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
80 Get the default attributes for this class. This is useful if you want
81 to use the same font or colour in your own control as in a standard
82 control -- which is a much better idea than hard coding specific
83 colours or fonts which might look completely out of place on the
84 user's system, especially if it uses themes.
86 The variant parameter is only relevant under Mac currently and is
87 ignore under other platforms. Under Mac, it will change the size of
88 the returned font. See `wx.Window.SetWindowVariant` for more about
91 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
93 #---------------------------------------------------------------------------
95 class ScrolledWindow(Panel
):
97 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
98 def __init__(self
, *args
, **kwargs
):
100 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
101 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
102 String name=PanelNameStr) -> ScrolledWindow
104 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
105 self
.this
= newobj
.this
108 self
._setOORInfo
(self
)
110 def Create(*args
, **kwargs
):
112 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
113 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
114 String name=PanelNameStr) -> bool
116 Create the GUI part of the Window for 2-phase creation mode.
118 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
120 def SetScrollbars(*args
, **kwargs
):
122 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
123 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
125 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
127 def Scroll(*args
, **kwargs
):
128 """Scroll(self, int x, int y)"""
129 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
131 def GetScrollPageSize(*args
, **kwargs
):
132 """GetScrollPageSize(self, int orient) -> int"""
133 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
135 def SetScrollPageSize(*args
, **kwargs
):
136 """SetScrollPageSize(self, int orient, int pageSize)"""
137 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
139 def SetScrollRate(*args
, **kwargs
):
140 """SetScrollRate(self, int xstep, int ystep)"""
141 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
143 def GetScrollPixelsPerUnit(*args
, **kwargs
):
145 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
147 Get the size of one logical unit in physical units.
149 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
151 def EnableScrolling(*args
, **kwargs
):
152 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
153 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
155 def GetViewStart(*args
, **kwargs
):
157 GetViewStart() -> (x,y)
161 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
163 def SetScale(*args
, **kwargs
):
164 """SetScale(self, double xs, double ys)"""
165 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
167 def GetScaleX(*args
, **kwargs
):
168 """GetScaleX(self) -> double"""
169 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
171 def GetScaleY(*args
, **kwargs
):
172 """GetScaleY(self) -> double"""
173 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
175 def CalcScrolledPosition(*args
):
177 CalcScrolledPosition(self, Point pt) -> Point
178 CalcScrolledPosition(int x, int y) -> (sx, sy)
180 Translate between scrolled and unscrolled coordinates.
182 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
184 def CalcUnscrolledPosition(*args
):
186 CalcUnscrolledPosition(self, Point pt) -> Point
187 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
189 Translate between scrolled and unscrolled coordinates.
191 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
193 def AdjustScrollbars(*args
, **kwargs
):
194 """AdjustScrollbars(self)"""
195 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
197 def CalcScrollInc(*args
, **kwargs
):
198 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
199 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
201 def SetTargetWindow(*args
, **kwargs
):
202 """SetTargetWindow(self, Window target)"""
203 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
205 def GetTargetWindow(*args
, **kwargs
):
206 """GetTargetWindow(self) -> Window"""
207 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
209 def SetTargetRect(*args
, **kwargs
):
210 """SetTargetRect(self, Rect rect)"""
211 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
213 def GetTargetRect(*args
, **kwargs
):
214 """GetTargetRect(self) -> Rect"""
215 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
217 def DoPrepareDC(*args
, **kwargs
):
219 DoPrepareDC(self, DC dc)
221 Normally what is called by `PrepareDC`.
223 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
225 def GetClassDefaultAttributes(*args
, **kwargs
):
227 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
229 Get the default attributes for this class. This is useful if you want
230 to use the same font or colour in your own control as in a standard
231 control -- which is a much better idea than hard coding specific
232 colours or fonts which might look completely out of place on the
233 user's system, especially if it uses themes.
235 The variant parameter is only relevant under Mac currently and is
236 ignore under other platforms. Under Mac, it will change the size of
237 the returned font. See `wx.Window.SetWindowVariant` for more about
240 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
242 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
244 class ScrolledWindowPtr(ScrolledWindow
):
245 def __init__(self
, this
):
247 if not hasattr(self
,"thisown"): self
.thisown
= 0
248 self
.__class
__ = ScrolledWindow
249 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
251 def PreScrolledWindow(*args
, **kwargs
):
252 """PreScrolledWindow() -> ScrolledWindow"""
253 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
257 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
259 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
261 Get the default attributes for this class. This is useful if you want
262 to use the same font or colour in your own control as in a standard
263 control -- which is a much better idea than hard coding specific
264 colours or fonts which might look completely out of place on the
265 user's system, especially if it uses themes.
267 The variant parameter is only relevant under Mac currently and is
268 ignore under other platforms. Under Mac, it will change the size of
269 the returned font. See `wx.Window.SetWindowVariant` for more about
272 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
274 #---------------------------------------------------------------------------
276 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
277 ICONIZE
= _windows_
.ICONIZE
278 MINIMIZE
= _windows_
.MINIMIZE
279 MAXIMIZE
= _windows_
.MAXIMIZE
280 CLOSE_BOX
= _windows_
.CLOSE_BOX
281 THICK_FRAME
= _windows_
.THICK_FRAME
282 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
283 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
284 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
285 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
286 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
287 RESIZE_BOX
= _windows_
.RESIZE_BOX
288 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
289 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
290 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
291 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
292 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
293 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
294 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
295 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
296 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
297 FRAME_DRAWER
= _windows_
.FRAME_DRAWER
298 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
299 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
300 USER_COLOURS
= _windows_
.USER_COLOURS
301 NO_3D
= _windows_
.NO_3D
302 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
303 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
304 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
305 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
306 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
307 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
308 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
309 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
310 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
311 class TopLevelWindow(_core
.Window
):
312 def __init__(self
): raise RuntimeError, "No constructor defined"
314 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
315 def Maximize(*args
, **kwargs
):
316 """Maximize(self, bool maximize=True)"""
317 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
319 def Restore(*args
, **kwargs
):
321 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
323 def Iconize(*args
, **kwargs
):
324 """Iconize(self, bool iconize=True)"""
325 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
327 def IsMaximized(*args
, **kwargs
):
328 """IsMaximized(self) -> bool"""
329 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
331 def IsIconized(*args
, **kwargs
):
332 """IsIconized(self) -> bool"""
333 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
335 def GetIcon(*args
, **kwargs
):
336 """GetIcon(self) -> Icon"""
337 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
339 def SetIcon(*args
, **kwargs
):
340 """SetIcon(self, Icon icon)"""
341 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
343 def SetIcons(*args
, **kwargs
):
344 """SetIcons(self, wxIconBundle icons)"""
345 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
347 def ShowFullScreen(*args
, **kwargs
):
348 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
349 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
351 def IsFullScreen(*args
, **kwargs
):
352 """IsFullScreen(self) -> bool"""
353 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
355 def SetTitle(*args
, **kwargs
):
357 SetTitle(self, String title)
359 Sets the window's title. Applicable only to frames and dialogs.
361 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
363 def GetTitle(*args
, **kwargs
):
365 GetTitle(self) -> String
367 Gets the window's title. Applicable only to frames and dialogs.
369 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
371 def SetShape(*args
, **kwargs
):
372 """SetShape(self, Region region) -> bool"""
373 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
375 def RequestUserAttention(*args
, **kwargs
):
376 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
377 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
379 def IsActive(*args
, **kwargs
):
380 """IsActive(self) -> bool"""
381 return _windows_
.TopLevelWindow_IsActive(*args
, **kwargs
)
383 def MacSetMetalAppearance(*args
, **kwargs
):
384 """MacSetMetalAppearance(self, bool on)"""
385 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
387 def MacGetMetalAppearance(*args
, **kwargs
):
388 """MacGetMetalAppearance(self) -> bool"""
389 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
392 class TopLevelWindowPtr(TopLevelWindow
):
393 def __init__(self
, this
):
395 if not hasattr(self
,"thisown"): self
.thisown
= 0
396 self
.__class
__ = TopLevelWindow
397 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
398 cvar
= _windows_
.cvar
399 FrameNameStr
= cvar
.FrameNameStr
400 DialogNameStr
= cvar
.DialogNameStr
401 StatusLineNameStr
= cvar
.StatusLineNameStr
402 ToolBarNameStr
= cvar
.ToolBarNameStr
404 #---------------------------------------------------------------------------
406 class Frame(TopLevelWindow
):
408 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
409 def __init__(self
, *args
, **kwargs
):
411 __init__(self, Window parent, int id=-1, String title=EmptyString,
412 Point pos=DefaultPosition, Size size=DefaultSize,
413 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
415 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
416 self
.this
= newobj
.this
419 self
._setOORInfo
(self
)
421 def Create(*args
, **kwargs
):
423 Create(self, Window parent, int id=-1, String title=EmptyString,
424 Point pos=DefaultPosition, Size size=DefaultSize,
425 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
427 return _windows_
.Frame_Create(*args
, **kwargs
)
429 def GetClientAreaOrigin(*args
, **kwargs
):
431 GetClientAreaOrigin(self) -> Point
433 Get the origin of the client area of the window relative to the
434 window's top left corner (the client area may be shifted because of
435 the borders, scrollbars, other decorations...)
437 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
439 def SendSizeEvent(*args
, **kwargs
):
440 """SendSizeEvent(self)"""
441 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
443 def SetMenuBar(*args
, **kwargs
):
444 """SetMenuBar(self, MenuBar menubar)"""
445 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
447 def GetMenuBar(*args
, **kwargs
):
448 """GetMenuBar(self) -> MenuBar"""
449 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
451 def ProcessCommand(*args
, **kwargs
):
452 """ProcessCommand(self, int winid) -> bool"""
453 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
455 Command
= ProcessCommand
456 def CreateStatusBar(*args
, **kwargs
):
458 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
459 String name=StatusLineNameStr) -> StatusBar
461 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
463 def GetStatusBar(*args
, **kwargs
):
464 """GetStatusBar(self) -> StatusBar"""
465 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
467 def SetStatusBar(*args
, **kwargs
):
468 """SetStatusBar(self, StatusBar statBar)"""
469 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
471 def SetStatusText(*args
, **kwargs
):
472 """SetStatusText(self, String text, int number=0)"""
473 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
475 def SetStatusWidths(*args
, **kwargs
):
476 """SetStatusWidths(self, int widths, int widths_field)"""
477 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
479 def PushStatusText(*args
, **kwargs
):
480 """PushStatusText(self, String text, int number=0)"""
481 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
483 def PopStatusText(*args
, **kwargs
):
484 """PopStatusText(self, int number=0)"""
485 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
487 def SetStatusBarPane(*args
, **kwargs
):
488 """SetStatusBarPane(self, int n)"""
489 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
491 def GetStatusBarPane(*args
, **kwargs
):
492 """GetStatusBarPane(self) -> int"""
493 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
495 def CreateToolBar(*args
, **kwargs
):
496 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
497 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
499 def GetToolBar(*args
, **kwargs
):
500 """GetToolBar(self) -> wxToolBar"""
501 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
503 def SetToolBar(*args
, **kwargs
):
504 """SetToolBar(self, wxToolBar toolbar)"""
505 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
507 def DoGiveHelp(*args
, **kwargs
):
508 """DoGiveHelp(self, String text, bool show)"""
509 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
511 def DoMenuUpdates(*args
, **kwargs
):
512 """DoMenuUpdates(self, Menu menu=None)"""
513 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
515 def GetClassDefaultAttributes(*args
, **kwargs
):
517 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
519 Get the default attributes for this class. This is useful if you want
520 to use the same font or colour in your own control as in a standard
521 control -- which is a much better idea than hard coding specific
522 colours or fonts which might look completely out of place on the
523 user's system, especially if it uses themes.
525 The variant parameter is only relevant under Mac currently and is
526 ignore under other platforms. Under Mac, it will change the size of
527 the returned font. See `wx.Window.SetWindowVariant` for more about
530 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
532 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
534 class FramePtr(Frame
):
535 def __init__(self
, this
):
537 if not hasattr(self
,"thisown"): self
.thisown
= 0
538 self
.__class
__ = Frame
539 _windows_
.Frame_swigregister(FramePtr
)
541 def PreFrame(*args
, **kwargs
):
542 """PreFrame() -> Frame"""
543 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
547 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
549 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
551 Get the default attributes for this class. This is useful if you want
552 to use the same font or colour in your own control as in a standard
553 control -- which is a much better idea than hard coding specific
554 colours or fonts which might look completely out of place on the
555 user's system, especially if it uses themes.
557 The variant parameter is only relevant under Mac currently and is
558 ignore under other platforms. Under Mac, it will change the size of
559 the returned font. See `wx.Window.SetWindowVariant` for more about
562 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
564 #---------------------------------------------------------------------------
566 class Dialog(TopLevelWindow
):
568 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
569 def __init__(self
, *args
, **kwargs
):
571 __init__(self, Window parent, int id=-1, String title=EmptyString,
572 Point pos=DefaultPosition, Size size=DefaultSize,
573 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
575 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
576 self
.this
= newobj
.this
579 self
._setOORInfo
(self
)
581 def Create(*args
, **kwargs
):
583 Create(self, Window parent, int id=-1, String title=EmptyString,
584 Point pos=DefaultPosition, Size size=DefaultSize,
585 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
587 return _windows_
.Dialog_Create(*args
, **kwargs
)
589 def SetReturnCode(*args
, **kwargs
):
590 """SetReturnCode(self, int returnCode)"""
591 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
593 def GetReturnCode(*args
, **kwargs
):
594 """GetReturnCode(self) -> int"""
595 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
597 def CreateTextSizer(*args
, **kwargs
):
598 """CreateTextSizer(self, String message) -> Sizer"""
599 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
601 def CreateButtonSizer(*args
, **kwargs
):
602 """CreateButtonSizer(self, long flags) -> Sizer"""
603 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
605 def IsModal(*args
, **kwargs
):
606 """IsModal(self) -> bool"""
607 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
609 def ShowModal(*args
, **kwargs
):
610 """ShowModal(self) -> int"""
611 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
613 def EndModal(*args
, **kwargs
):
614 """EndModal(self, int retCode)"""
615 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
617 def GetClassDefaultAttributes(*args
, **kwargs
):
619 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
621 Get the default attributes for this class. This is useful if you want
622 to use the same font or colour in your own control as in a standard
623 control -- which is a much better idea than hard coding specific
624 colours or fonts which might look completely out of place on the
625 user's system, especially if it uses themes.
627 The variant parameter is only relevant under Mac currently and is
628 ignore under other platforms. Under Mac, it will change the size of
629 the returned font. See `wx.Window.SetWindowVariant` for more about
632 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
634 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
635 def SendSizeEvent(self
):
636 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
639 class DialogPtr(Dialog
):
640 def __init__(self
, this
):
642 if not hasattr(self
,"thisown"): self
.thisown
= 0
643 self
.__class
__ = Dialog
644 _windows_
.Dialog_swigregister(DialogPtr
)
646 def PreDialog(*args
, **kwargs
):
647 """PreDialog() -> Dialog"""
648 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
652 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
654 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
656 Get the default attributes for this class. This is useful if you want
657 to use the same font or colour in your own control as in a standard
658 control -- which is a much better idea than hard coding specific
659 colours or fonts which might look completely out of place on the
660 user's system, especially if it uses themes.
662 The variant parameter is only relevant under Mac currently and is
663 ignore under other platforms. Under Mac, it will change the size of
664 the returned font. See `wx.Window.SetWindowVariant` for more about
667 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
669 #---------------------------------------------------------------------------
671 class MiniFrame(Frame
):
673 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
674 def __init__(self
, *args
, **kwargs
):
676 __init__(self, Window parent, int id=-1, String title=EmptyString,
677 Point pos=DefaultPosition, Size size=DefaultSize,
678 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
680 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
681 self
.this
= newobj
.this
684 self
._setOORInfo
(self
)
686 def Create(*args
, **kwargs
):
688 Create(self, Window parent, int id=-1, String title=EmptyString,
689 Point pos=DefaultPosition, Size size=DefaultSize,
690 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
692 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
695 class MiniFramePtr(MiniFrame
):
696 def __init__(self
, this
):
698 if not hasattr(self
,"thisown"): self
.thisown
= 0
699 self
.__class
__ = MiniFrame
700 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
702 def PreMiniFrame(*args
, **kwargs
):
703 """PreMiniFrame() -> MiniFrame"""
704 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
708 #---------------------------------------------------------------------------
710 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
711 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
712 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
713 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
714 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
715 class SplashScreenWindow(_core
.Window
):
717 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
718 def __init__(self
, *args
, **kwargs
):
720 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
721 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
723 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
724 self
.this
= newobj
.this
727 self
._setOORInfo
(self
)
729 def SetBitmap(*args
, **kwargs
):
730 """SetBitmap(self, Bitmap bitmap)"""
731 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
733 def GetBitmap(*args
, **kwargs
):
734 """GetBitmap(self) -> Bitmap"""
735 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
738 class SplashScreenWindowPtr(SplashScreenWindow
):
739 def __init__(self
, this
):
741 if not hasattr(self
,"thisown"): self
.thisown
= 0
742 self
.__class
__ = SplashScreenWindow
743 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
745 class SplashScreen(Frame
):
747 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
748 def __init__(self
, *args
, **kwargs
):
750 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
751 Window parent, int id=-1, Point pos=DefaultPosition,
752 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
754 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
755 self
.this
= newobj
.this
758 self
._setOORInfo
(self
)
760 def GetSplashStyle(*args
, **kwargs
):
761 """GetSplashStyle(self) -> long"""
762 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
764 def GetSplashWindow(*args
, **kwargs
):
765 """GetSplashWindow(self) -> SplashScreenWindow"""
766 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
768 def GetTimeout(*args
, **kwargs
):
769 """GetTimeout(self) -> int"""
770 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
773 class SplashScreenPtr(SplashScreen
):
774 def __init__(self
, this
):
776 if not hasattr(self
,"thisown"): self
.thisown
= 0
777 self
.__class
__ = SplashScreen
778 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
780 #---------------------------------------------------------------------------
782 SB_NORMAL
= _windows_
.SB_NORMAL
783 SB_FLAT
= _windows_
.SB_FLAT
784 SB_RAISED
= _windows_
.SB_RAISED
785 class StatusBar(_core
.Window
):
787 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
788 def __init__(self
, *args
, **kwargs
):
789 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
790 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
791 self
.this
= newobj
.this
794 self
._setOORInfo
(self
)
796 def Create(*args
, **kwargs
):
797 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
798 return _windows_
.StatusBar_Create(*args
, **kwargs
)
800 def SetFieldsCount(*args
, **kwargs
):
801 """SetFieldsCount(self, int number=1)"""
802 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
804 def GetFieldsCount(*args
, **kwargs
):
805 """GetFieldsCount(self) -> int"""
806 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
808 def SetStatusText(*args
, **kwargs
):
809 """SetStatusText(self, String text, int number=0)"""
810 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
812 def GetStatusText(*args
, **kwargs
):
813 """GetStatusText(self, int number=0) -> String"""
814 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
816 def PushStatusText(*args
, **kwargs
):
817 """PushStatusText(self, String text, int number=0)"""
818 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
820 def PopStatusText(*args
, **kwargs
):
821 """PopStatusText(self, int number=0)"""
822 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
824 def SetStatusWidths(*args
, **kwargs
):
825 """SetStatusWidths(self, int widths, int widths_field)"""
826 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
828 def SetStatusStyles(*args
, **kwargs
):
829 """SetStatusStyles(self, int styles, int styles_field)"""
830 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
832 def GetFieldRect(*args
, **kwargs
):
833 """GetFieldRect(self, int i) -> Rect"""
834 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
836 def SetMinHeight(*args
, **kwargs
):
837 """SetMinHeight(self, int height)"""
838 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
840 def GetBorderX(*args
, **kwargs
):
841 """GetBorderX(self) -> int"""
842 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
844 def GetBorderY(*args
, **kwargs
):
845 """GetBorderY(self) -> int"""
846 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
848 def GetClassDefaultAttributes(*args
, **kwargs
):
850 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
852 Get the default attributes for this class. This is useful if you want
853 to use the same font or colour in your own control as in a standard
854 control -- which is a much better idea than hard coding specific
855 colours or fonts which might look completely out of place on the
856 user's system, especially if it uses themes.
858 The variant parameter is only relevant under Mac currently and is
859 ignore under other platforms. Under Mac, it will change the size of
860 the returned font. See `wx.Window.SetWindowVariant` for more about
863 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
865 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
867 class StatusBarPtr(StatusBar
):
868 def __init__(self
, this
):
870 if not hasattr(self
,"thisown"): self
.thisown
= 0
871 self
.__class
__ = StatusBar
872 _windows_
.StatusBar_swigregister(StatusBarPtr
)
874 def PreStatusBar(*args
, **kwargs
):
875 """PreStatusBar() -> StatusBar"""
876 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
880 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
882 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
884 Get the default attributes for this class. This is useful if you want
885 to use the same font or colour in your own control as in a standard
886 control -- which is a much better idea than hard coding specific
887 colours or fonts which might look completely out of place on the
888 user's system, especially if it uses themes.
890 The variant parameter is only relevant under Mac currently and is
891 ignore under other platforms. Under Mac, it will change the size of
892 the returned font. See `wx.Window.SetWindowVariant` for more about
895 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
897 #---------------------------------------------------------------------------
899 SP_NOBORDER
= _windows_
.SP_NOBORDER
900 SP_NOSASH
= _windows_
.SP_NOSASH
901 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
902 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
903 SP_3DSASH
= _windows_
.SP_3DSASH
904 SP_3DBORDER
= _windows_
.SP_3DBORDER
905 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
906 SP_BORDER
= _windows_
.SP_BORDER
907 SP_3D
= _windows_
.SP_3D
908 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
909 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
910 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
911 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
912 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
913 class SplitterWindow(_core
.Window
):
915 wx.SplitterWindow manages up to two subwindows or panes, with an
916 optional vertical or horizontal split which can be used with the mouse
920 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
921 def __init__(self
, *args
, **kwargs
):
923 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
924 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
926 Constructor. Creates and shows a SplitterWindow.
928 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
929 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
930 self
.this
= newobj
.this
933 self
._setOORInfo
(self
)
935 def Create(*args
, **kwargs
):
937 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
938 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
940 Create the GUI part of the SplitterWindow for the 2-phase create.
942 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
944 def GetWindow1(*args
, **kwargs
):
946 GetWindow1(self) -> Window
948 Gets the only or left/top pane.
950 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
952 def GetWindow2(*args
, **kwargs
):
954 GetWindow2(self) -> Window
956 Gets the right/bottom pane.
958 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
960 def SetSplitMode(*args
, **kwargs
):
962 SetSplitMode(self, int mode)
964 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
965 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
968 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
970 def GetSplitMode(*args
, **kwargs
):
972 GetSplitMode(self) -> int
976 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
978 def Initialize(*args
, **kwargs
):
980 Initialize(self, Window window)
982 Initializes the splitter window to have one pane. This should be
983 called if you wish to initially view only a single pane in the
986 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
988 def SplitVertically(*args
, **kwargs
):
990 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
992 Initializes the left and right panes of the splitter window.
994 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
996 def SplitHorizontally(*args
, **kwargs
):
998 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
1000 Initializes the top and bottom panes of the splitter window.
1002 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
1004 def Unsplit(*args
, **kwargs
):
1006 Unsplit(self, Window toRemove=None) -> bool
1008 Unsplits the window. Pass the pane to remove, or None to remove the
1009 right or bottom pane. Returns True if successful, False otherwise (the
1010 window was not split).
1012 This function will not actually delete the pane being
1013 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1014 for the desired behaviour. By default, the pane being
1015 removed is only hidden.
1017 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1019 def ReplaceWindow(*args
, **kwargs
):
1021 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1023 This function replaces one of the windows managed by the
1024 SplitterWindow with another one. It is in general better to use it
1025 instead of calling Unsplit() and then resplitting the window back
1026 because it will provoke much less flicker. It is valid to call this
1027 function whether the splitter has two windows or only one.
1029 Both parameters should be non-None and winOld must specify one of the
1030 windows managed by the splitter. If the parameters are incorrect or
1031 the window couldn't be replaced, False is returned. Otherwise the
1032 function will return True, but please notice that it will not Destroy
1033 the replaced window and you may wish to do it yourself.
1035 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1037 def UpdateSize(*args
, **kwargs
):
1041 Causes any pending sizing of the sash and child panes to take place
1044 Such resizing normally takes place in idle time, in order to wait for
1045 layout to be completed. However, this can cause unacceptable flicker
1046 as the panes are resized after the window has been shown. To work
1047 around this, you can perform window layout (for example by sending a
1048 size event to the parent window), and then call this function, before
1049 showing the top-level window.
1051 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1053 def IsSplit(*args
, **kwargs
):
1055 IsSplit(self) -> bool
1057 Is the window split?
1059 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1061 def SetSashSize(*args
, **kwargs
):
1063 SetSashSize(self, int width)
1065 Sets the sash size. Currently a NOP.
1067 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1069 def SetBorderSize(*args
, **kwargs
):
1071 SetBorderSize(self, int width)
1073 Sets the border size. Currently a NOP.
1075 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1077 def GetSashSize(*args
, **kwargs
):
1079 GetSashSize(self) -> int
1083 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1085 def GetBorderSize(*args
, **kwargs
):
1087 GetBorderSize(self) -> int
1089 Gets the border size
1091 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1093 def SetSashPosition(*args
, **kwargs
):
1095 SetSashPosition(self, int position, bool redraw=True)
1097 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1098 are resized and the sash and border are redrawn.
1100 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1102 def GetSashPosition(*args
, **kwargs
):
1104 GetSashPosition(self) -> int
1106 Returns the surrent sash position.
1108 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1110 def SetMinimumPaneSize(*args
, **kwargs
):
1112 SetMinimumPaneSize(self, int min)
1114 Sets the minimum pane size in pixels.
1116 The default minimum pane size is zero, which means that either pane
1117 can be reduced to zero by dragging the sash, thus removing one of the
1118 panes. To prevent this behaviour (and veto out-of-range sash
1119 dragging), set a minimum size, for example 20 pixels. If the
1120 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1121 the window may be unsplit even if minimum size is non-zero.
1123 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1125 def GetMinimumPaneSize(*args
, **kwargs
):
1127 GetMinimumPaneSize(self) -> int
1129 Gets the minimum pane size in pixels.
1131 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1133 def SashHitTest(*args
, **kwargs
):
1135 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1137 Tests for x, y over the sash
1139 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1141 def SizeWindows(*args
, **kwargs
):
1147 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1149 def SetNeedUpdating(*args
, **kwargs
):
1150 """SetNeedUpdating(self, bool needUpdating)"""
1151 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1153 def GetNeedUpdating(*args
, **kwargs
):
1154 """GetNeedUpdating(self) -> bool"""
1155 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1157 def GetClassDefaultAttributes(*args
, **kwargs
):
1159 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1161 Get the default attributes for this class. This is useful if you want
1162 to use the same font or colour in your own control as in a standard
1163 control -- which is a much better idea than hard coding specific
1164 colours or fonts which might look completely out of place on the
1165 user's system, especially if it uses themes.
1167 The variant parameter is only relevant under Mac currently and is
1168 ignore under other platforms. Under Mac, it will change the size of
1169 the returned font. See `wx.Window.SetWindowVariant` for more about
1172 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1174 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1176 class SplitterWindowPtr(SplitterWindow
):
1177 def __init__(self
, this
):
1179 if not hasattr(self
,"thisown"): self
.thisown
= 0
1180 self
.__class
__ = SplitterWindow
1181 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1182 SplitterNameStr
= cvar
.SplitterNameStr
1184 def PreSplitterWindow(*args
, **kwargs
):
1186 PreSplitterWindow() -> SplitterWindow
1188 Precreate a SplitterWindow for 2-phase creation.
1190 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1194 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1196 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1198 Get the default attributes for this class. This is useful if you want
1199 to use the same font or colour in your own control as in a standard
1200 control -- which is a much better idea than hard coding specific
1201 colours or fonts which might look completely out of place on the
1202 user's system, especially if it uses themes.
1204 The variant parameter is only relevant under Mac currently and is
1205 ignore under other platforms. Under Mac, it will change the size of
1206 the returned font. See `wx.Window.SetWindowVariant` for more about
1209 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1211 class SplitterEvent(_core
.NotifyEvent
):
1212 """This class represents the events generated by a splitter control."""
1214 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1215 def __init__(self
, *args
, **kwargs
):
1217 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1219 This class represents the events generated by a splitter control.
1221 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1222 self
.this
= newobj
.this
1225 def SetSashPosition(*args
, **kwargs
):
1227 SetSashPosition(self, int pos)
1229 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1230 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1231 events, sets the the new sash position. In the case of _CHANGING
1232 events, sets the new tracking bar position so visual feedback during
1233 dragging will represent that change that will actually take place. Set
1234 to -1 from the event handler code to prevent repositioning.
1236 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1238 def GetSashPosition(*args
, **kwargs
):
1240 GetSashPosition(self) -> int
1242 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1243 and EVT_SPLITTER_SASH_POS_CHANGED events.
1245 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1247 def GetWindowBeingRemoved(*args
, **kwargs
):
1249 GetWindowBeingRemoved(self) -> Window
1251 Returns a pointer to the window being removed when a splitter window
1254 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1256 def GetX(*args
, **kwargs
):
1260 Returns the x coordinate of the double-click point in a
1261 EVT_SPLITTER_DCLICK event.
1263 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1265 def GetY(*args
, **kwargs
):
1269 Returns the y coordinate of the double-click point in a
1270 EVT_SPLITTER_DCLICK event.
1272 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1275 class SplitterEventPtr(SplitterEvent
):
1276 def __init__(self
, this
):
1278 if not hasattr(self
,"thisown"): self
.thisown
= 0
1279 self
.__class
__ = SplitterEvent
1280 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1282 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1283 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1284 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1285 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1286 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1287 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1288 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1289 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1290 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1292 #---------------------------------------------------------------------------
1294 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1295 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1296 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1297 SW_NOBORDER
= _windows_
.SW_NOBORDER
1298 SW_BORDER
= _windows_
.SW_BORDER
1299 SW_3DSASH
= _windows_
.SW_3DSASH
1300 SW_3DBORDER
= _windows_
.SW_3DBORDER
1301 SW_3D
= _windows_
.SW_3D
1302 SASH_TOP
= _windows_
.SASH_TOP
1303 SASH_RIGHT
= _windows_
.SASH_RIGHT
1304 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1305 SASH_LEFT
= _windows_
.SASH_LEFT
1306 SASH_NONE
= _windows_
.SASH_NONE
1307 class SashWindow(_core
.Window
):
1309 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1310 def __init__(self
, *args
, **kwargs
):
1312 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1313 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1314 String name=SashNameStr) -> SashWindow
1316 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1317 self
.this
= newobj
.this
1320 self
._setOORInfo
(self
)
1322 def Create(*args
, **kwargs
):
1324 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1325 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1326 String name=SashNameStr) -> bool
1328 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1330 def SetSashVisible(*args
, **kwargs
):
1331 """SetSashVisible(self, int edge, bool sash)"""
1332 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1334 def GetSashVisible(*args
, **kwargs
):
1335 """GetSashVisible(self, int edge) -> bool"""
1336 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1338 def SetSashBorder(*args
, **kwargs
):
1339 """SetSashBorder(self, int edge, bool border)"""
1340 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1342 def HasBorder(*args
, **kwargs
):
1343 """HasBorder(self, int edge) -> bool"""
1344 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1346 def GetEdgeMargin(*args
, **kwargs
):
1347 """GetEdgeMargin(self, int edge) -> int"""
1348 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1350 def SetDefaultBorderSize(*args
, **kwargs
):
1351 """SetDefaultBorderSize(self, int width)"""
1352 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1354 def GetDefaultBorderSize(*args
, **kwargs
):
1355 """GetDefaultBorderSize(self) -> int"""
1356 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1358 def SetExtraBorderSize(*args
, **kwargs
):
1359 """SetExtraBorderSize(self, int width)"""
1360 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1362 def GetExtraBorderSize(*args
, **kwargs
):
1363 """GetExtraBorderSize(self) -> int"""
1364 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1366 def SetMinimumSizeX(*args
, **kwargs
):
1367 """SetMinimumSizeX(self, int min)"""
1368 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1370 def SetMinimumSizeY(*args
, **kwargs
):
1371 """SetMinimumSizeY(self, int min)"""
1372 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1374 def GetMinimumSizeX(*args
, **kwargs
):
1375 """GetMinimumSizeX(self) -> int"""
1376 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1378 def GetMinimumSizeY(*args
, **kwargs
):
1379 """GetMinimumSizeY(self) -> int"""
1380 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1382 def SetMaximumSizeX(*args
, **kwargs
):
1383 """SetMaximumSizeX(self, int max)"""
1384 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1386 def SetMaximumSizeY(*args
, **kwargs
):
1387 """SetMaximumSizeY(self, int max)"""
1388 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1390 def GetMaximumSizeX(*args
, **kwargs
):
1391 """GetMaximumSizeX(self) -> int"""
1392 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1394 def GetMaximumSizeY(*args
, **kwargs
):
1395 """GetMaximumSizeY(self) -> int"""
1396 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1398 def SashHitTest(*args
, **kwargs
):
1399 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1400 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1402 def SizeWindows(*args
, **kwargs
):
1403 """SizeWindows(self)"""
1404 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1407 class SashWindowPtr(SashWindow
):
1408 def __init__(self
, this
):
1410 if not hasattr(self
,"thisown"): self
.thisown
= 0
1411 self
.__class
__ = SashWindow
1412 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1413 SashNameStr
= cvar
.SashNameStr
1414 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1416 def PreSashWindow(*args
, **kwargs
):
1417 """PreSashWindow() -> SashWindow"""
1418 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1422 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1423 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1424 class SashEvent(_core
.CommandEvent
):
1426 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1427 def __init__(self
, *args
, **kwargs
):
1428 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1429 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1430 self
.this
= newobj
.this
1433 def SetEdge(*args
, **kwargs
):
1434 """SetEdge(self, int edge)"""
1435 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1437 def GetEdge(*args
, **kwargs
):
1438 """GetEdge(self) -> int"""
1439 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1441 def SetDragRect(*args
, **kwargs
):
1442 """SetDragRect(self, Rect rect)"""
1443 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1445 def GetDragRect(*args
, **kwargs
):
1446 """GetDragRect(self) -> Rect"""
1447 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1449 def SetDragStatus(*args
, **kwargs
):
1450 """SetDragStatus(self, int status)"""
1451 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1453 def GetDragStatus(*args
, **kwargs
):
1454 """GetDragStatus(self) -> int"""
1455 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1458 class SashEventPtr(SashEvent
):
1459 def __init__(self
, this
):
1461 if not hasattr(self
,"thisown"): self
.thisown
= 0
1462 self
.__class
__ = SashEvent
1463 _windows_
.SashEvent_swigregister(SashEventPtr
)
1465 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1466 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1467 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1469 #---------------------------------------------------------------------------
1471 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1472 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1473 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1474 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1475 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1476 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1477 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1478 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1479 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1480 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1481 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1482 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1483 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1484 class QueryLayoutInfoEvent(_core
.Event
):
1486 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1487 def __init__(self
, *args
, **kwargs
):
1488 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1489 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1490 self
.this
= newobj
.this
1493 def SetRequestedLength(*args
, **kwargs
):
1494 """SetRequestedLength(self, int length)"""
1495 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1497 def GetRequestedLength(*args
, **kwargs
):
1498 """GetRequestedLength(self) -> int"""
1499 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1501 def SetFlags(*args
, **kwargs
):
1502 """SetFlags(self, int flags)"""
1503 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1505 def GetFlags(*args
, **kwargs
):
1506 """GetFlags(self) -> int"""
1507 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1509 def SetSize(*args
, **kwargs
):
1510 """SetSize(self, Size size)"""
1511 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1513 def GetSize(*args
, **kwargs
):
1514 """GetSize(self) -> Size"""
1515 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1517 def SetOrientation(*args
, **kwargs
):
1518 """SetOrientation(self, int orient)"""
1519 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1521 def GetOrientation(*args
, **kwargs
):
1522 """GetOrientation(self) -> int"""
1523 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1525 def SetAlignment(*args
, **kwargs
):
1526 """SetAlignment(self, int align)"""
1527 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1529 def GetAlignment(*args
, **kwargs
):
1530 """GetAlignment(self) -> int"""
1531 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1534 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1535 def __init__(self
, this
):
1537 if not hasattr(self
,"thisown"): self
.thisown
= 0
1538 self
.__class
__ = QueryLayoutInfoEvent
1539 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1541 class CalculateLayoutEvent(_core
.Event
):
1543 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1544 def __init__(self
, *args
, **kwargs
):
1545 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1546 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1547 self
.this
= newobj
.this
1550 def SetFlags(*args
, **kwargs
):
1551 """SetFlags(self, int flags)"""
1552 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1554 def GetFlags(*args
, **kwargs
):
1555 """GetFlags(self) -> int"""
1556 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1558 def SetRect(*args
, **kwargs
):
1559 """SetRect(self, Rect rect)"""
1560 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1562 def GetRect(*args
, **kwargs
):
1563 """GetRect(self) -> Rect"""
1564 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1567 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1568 def __init__(self
, this
):
1570 if not hasattr(self
,"thisown"): self
.thisown
= 0
1571 self
.__class
__ = CalculateLayoutEvent
1572 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1574 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1575 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1577 class SashLayoutWindow(SashWindow
):
1579 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1580 def __init__(self
, *args
, **kwargs
):
1582 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1583 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1584 String name=SashLayoutNameStr) -> SashLayoutWindow
1586 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1587 self
.this
= newobj
.this
1590 self
._setOORInfo
(self
)
1592 def Create(*args
, **kwargs
):
1594 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1595 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1596 String name=SashLayoutNameStr) -> bool
1598 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1600 def GetAlignment(*args
, **kwargs
):
1601 """GetAlignment(self) -> int"""
1602 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1604 def GetOrientation(*args
, **kwargs
):
1605 """GetOrientation(self) -> int"""
1606 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1608 def SetAlignment(*args
, **kwargs
):
1609 """SetAlignment(self, int alignment)"""
1610 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1612 def SetDefaultSize(*args
, **kwargs
):
1613 """SetDefaultSize(self, Size size)"""
1614 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1616 def SetOrientation(*args
, **kwargs
):
1617 """SetOrientation(self, int orientation)"""
1618 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1621 class SashLayoutWindowPtr(SashLayoutWindow
):
1622 def __init__(self
, this
):
1624 if not hasattr(self
,"thisown"): self
.thisown
= 0
1625 self
.__class
__ = SashLayoutWindow
1626 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1628 def PreSashLayoutWindow(*args
, **kwargs
):
1629 """PreSashLayoutWindow() -> SashLayoutWindow"""
1630 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1634 class LayoutAlgorithm(_core
.Object
):
1636 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1637 def __init__(self
, *args
, **kwargs
):
1638 """__init__(self) -> LayoutAlgorithm"""
1639 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1640 self
.this
= newobj
.this
1643 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1646 if self
.thisown
: destroy(self
)
1649 def LayoutMDIFrame(*args
, **kwargs
):
1650 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1651 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1653 def LayoutFrame(*args
, **kwargs
):
1654 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1655 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1657 def LayoutWindow(*args
, **kwargs
):
1658 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1659 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1662 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1663 def __init__(self
, this
):
1665 if not hasattr(self
,"thisown"): self
.thisown
= 0
1666 self
.__class
__ = LayoutAlgorithm
1667 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1669 class PopupWindow(_core
.Window
):
1671 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1672 def __init__(self
, *args
, **kwargs
):
1673 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1674 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1675 self
.this
= newobj
.this
1679 class PopupWindowPtr(PopupWindow
):
1680 def __init__(self
, this
):
1682 if not hasattr(self
,"thisown"): self
.thisown
= 0
1683 self
.__class
__ = PopupWindow
1684 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1686 def PrePopupWindow(*args
, **kwargs
):
1687 """PrePopupWindow() -> PopupWindow"""
1688 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1692 class PopupTransientWindow(PopupWindow
):
1694 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1695 def __init__(self
, *args
, **kwargs
):
1696 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1697 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1698 self
.this
= newobj
.this
1702 class PopupTransientWindowPtr(PopupTransientWindow
):
1703 def __init__(self
, this
):
1705 if not hasattr(self
,"thisown"): self
.thisown
= 0
1706 self
.__class
__ = PopupTransientWindow
1707 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1709 def PrePopupTransientWindow(*args
, **kwargs
):
1710 """PrePopupTransientWindow() -> PopupTransientWindow"""
1711 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1715 #---------------------------------------------------------------------------
1717 class TipWindow(Frame
):
1719 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1720 def __init__(self
, *args
, **kwargs
):
1721 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1722 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1723 self
.this
= newobj
.this
1726 self
._setOORInfo
(self
)
1728 def SetBoundingRect(*args
, **kwargs
):
1729 """SetBoundingRect(self, Rect rectBound)"""
1730 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1732 def Close(*args
, **kwargs
):
1734 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1737 class TipWindowPtr(TipWindow
):
1738 def __init__(self
, this
):
1740 if not hasattr(self
,"thisown"): self
.thisown
= 0
1741 self
.__class
__ = TipWindow
1742 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1744 #---------------------------------------------------------------------------
1746 class VScrolledWindow(Panel
):
1748 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1749 def __init__(self
, *args
, **kwargs
):
1751 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1752 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1754 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1755 self
.this
= newobj
.this
1758 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1760 def _setCallbackInfo(*args
, **kwargs
):
1761 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1762 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1764 def Create(*args
, **kwargs
):
1766 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1767 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1769 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1771 def SetLineCount(*args
, **kwargs
):
1772 """SetLineCount(self, size_t count)"""
1773 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1775 def ScrollToLine(*args
, **kwargs
):
1776 """ScrollToLine(self, size_t line) -> bool"""
1777 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1779 def ScrollLines(*args
, **kwargs
):
1781 ScrollLines(self, int lines) -> bool
1783 If the platform and window class supports it, scrolls the window by
1784 the given number of lines down, if lines is positive, or up if lines
1785 is negative. Returns True if the window was scrolled, False if it was
1786 already on top/bottom and nothing was done.
1788 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1790 def ScrollPages(*args
, **kwargs
):
1792 ScrollPages(self, int pages) -> bool
1794 If the platform and window class supports it, scrolls the window by
1795 the given number of pages down, if pages is positive, or up if pages
1796 is negative. Returns True if the window was scrolled, False if it was
1797 already on top/bottom and nothing was done.
1799 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1801 def RefreshLine(*args
, **kwargs
):
1802 """RefreshLine(self, size_t line)"""
1803 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1805 def RefreshLines(*args
, **kwargs
):
1806 """RefreshLines(self, size_t from, size_t to)"""
1807 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1809 def HitTestXY(*args
, **kwargs
):
1811 HitTestXY(self, int x, int y) -> int
1813 Test where the given (in client coords) point lies
1815 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1817 def HitTest(*args
, **kwargs
):
1819 HitTest(self, Point pt) -> int
1821 Test where the given (in client coords) point lies
1823 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1825 def RefreshAll(*args
, **kwargs
):
1826 """RefreshAll(self)"""
1827 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1829 def GetLineCount(*args
, **kwargs
):
1830 """GetLineCount(self) -> size_t"""
1831 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1833 def GetFirstVisibleLine(*args
, **kwargs
):
1834 """GetFirstVisibleLine(self) -> size_t"""
1835 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1837 def GetLastVisibleLine(*args
, **kwargs
):
1838 """GetLastVisibleLine(self) -> size_t"""
1839 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1841 def IsVisible(*args
, **kwargs
):
1842 """IsVisible(self, size_t line) -> bool"""
1843 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1846 class VScrolledWindowPtr(VScrolledWindow
):
1847 def __init__(self
, this
):
1849 if not hasattr(self
,"thisown"): self
.thisown
= 0
1850 self
.__class
__ = VScrolledWindow
1851 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1853 def PreVScrolledWindow(*args
, **kwargs
):
1854 """PreVScrolledWindow() -> VScrolledWindow"""
1855 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1859 class VListBox(VScrolledWindow
):
1861 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1862 def __init__(self
, *args
, **kwargs
):
1864 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1865 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1867 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1868 self
.this
= newobj
.this
1871 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1873 def _setCallbackInfo(*args
, **kwargs
):
1874 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1875 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1877 def Create(*args
, **kwargs
):
1879 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1880 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1882 return _windows_
.VListBox_Create(*args
, **kwargs
)
1884 def GetItemCount(*args
, **kwargs
):
1885 """GetItemCount(self) -> size_t"""
1886 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1888 def HasMultipleSelection(*args
, **kwargs
):
1889 """HasMultipleSelection(self) -> bool"""
1890 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1892 def GetSelection(*args
, **kwargs
):
1893 """GetSelection(self) -> int"""
1894 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1896 def IsCurrent(*args
, **kwargs
):
1897 """IsCurrent(self, size_t item) -> bool"""
1898 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1900 def IsSelected(*args
, **kwargs
):
1901 """IsSelected(self, size_t item) -> bool"""
1902 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1904 def GetSelectedCount(*args
, **kwargs
):
1905 """GetSelectedCount(self) -> size_t"""
1906 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1908 def GetFirstSelected(*args
, **kwargs
):
1909 """GetFirstSelected(self) -> PyObject"""
1910 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1912 def GetNextSelected(*args
, **kwargs
):
1913 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1914 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1916 def GetMargins(*args
, **kwargs
):
1917 """GetMargins(self) -> Point"""
1918 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1920 def GetSelectionBackground(*args
, **kwargs
):
1921 """GetSelectionBackground(self) -> Colour"""
1922 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1924 def SetItemCount(*args
, **kwargs
):
1925 """SetItemCount(self, size_t count)"""
1926 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1928 def Clear(*args
, **kwargs
):
1930 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1932 def SetSelection(*args
, **kwargs
):
1933 """SetSelection(self, int selection)"""
1934 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1936 def Select(*args
, **kwargs
):
1937 """Select(self, size_t item, bool select=True) -> bool"""
1938 return _windows_
.VListBox_Select(*args
, **kwargs
)
1940 def SelectRange(*args
, **kwargs
):
1941 """SelectRange(self, size_t from, size_t to) -> bool"""
1942 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1944 def Toggle(*args
, **kwargs
):
1945 """Toggle(self, size_t item)"""
1946 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1948 def SelectAll(*args
, **kwargs
):
1949 """SelectAll(self) -> bool"""
1950 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1952 def DeselectAll(*args
, **kwargs
):
1953 """DeselectAll(self) -> bool"""
1954 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1956 def SetMargins(*args
, **kwargs
):
1957 """SetMargins(self, Point pt)"""
1958 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1960 def SetMarginsXY(*args
, **kwargs
):
1961 """SetMarginsXY(self, int x, int y)"""
1962 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1964 def SetSelectionBackground(*args
, **kwargs
):
1965 """SetSelectionBackground(self, Colour col)"""
1966 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1969 class VListBoxPtr(VListBox
):
1970 def __init__(self
, this
):
1972 if not hasattr(self
,"thisown"): self
.thisown
= 0
1973 self
.__class
__ = VListBox
1974 _windows_
.VListBox_swigregister(VListBoxPtr
)
1975 VListBoxNameStr
= cvar
.VListBoxNameStr
1977 def PreVListBox(*args
, **kwargs
):
1978 """PreVListBox() -> VListBox"""
1979 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1983 class HtmlListBox(VListBox
):
1985 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1986 def __init__(self
, *args
, **kwargs
):
1988 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1989 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1991 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
1992 self
.this
= newobj
.this
1995 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1997 def _setCallbackInfo(*args
, **kwargs
):
1998 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1999 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2001 def Create(*args
, **kwargs
):
2003 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2004 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2006 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2008 def RefreshAll(*args
, **kwargs
):
2009 """RefreshAll(self)"""
2010 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2012 def SetItemCount(*args
, **kwargs
):
2013 """SetItemCount(self, size_t count)"""
2014 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2016 def GetFileSystem(*args
, **kwargs
):
2017 """GetFileSystem(self) -> FileSystem"""
2018 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2021 class HtmlListBoxPtr(HtmlListBox
):
2022 def __init__(self
, this
):
2024 if not hasattr(self
,"thisown"): self
.thisown
= 0
2025 self
.__class
__ = HtmlListBox
2026 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2028 def PreHtmlListBox(*args
, **kwargs
):
2029 """PreHtmlListBox() -> HtmlListBox"""
2030 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2034 #---------------------------------------------------------------------------
2036 class TaskBarIcon(_core
.EvtHandler
):
2038 return "<%s.%s; proxy of C++ wxPyTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2039 def __init__(self
, *args
, **kwargs
):
2040 """__init__(self) -> TaskBarIcon"""
2041 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2042 self
.this
= newobj
.this
2045 self
._setCallbackInfo
(self
, TaskBarIcon
, 0)
2047 def _setCallbackInfo(*args
, **kwargs
):
2048 """_setCallbackInfo(self, PyObject self, PyObject _class, int incref)"""
2049 return _windows_
.TaskBarIcon__setCallbackInfo(*args
, **kwargs
)
2051 def Destroy(*args
, **kwargs
):
2055 Deletes the C++ object this Python object is a proxy for.
2057 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2059 def IsOk(*args
, **kwargs
):
2060 """IsOk(self) -> bool"""
2061 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2063 def __nonzero__(self
): return self
.IsOk()
2064 def IsIconInstalled(*args
, **kwargs
):
2065 """IsIconInstalled(self) -> bool"""
2066 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2068 def SetIcon(*args
, **kwargs
):
2069 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2070 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2072 def RemoveIcon(*args
, **kwargs
):
2073 """RemoveIcon(self) -> bool"""
2074 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2076 def PopupMenu(*args
, **kwargs
):
2077 """PopupMenu(self, Menu menu) -> bool"""
2078 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2081 class TaskBarIconPtr(TaskBarIcon
):
2082 def __init__(self
, this
):
2084 if not hasattr(self
,"thisown"): self
.thisown
= 0
2085 self
.__class
__ = TaskBarIcon
2086 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2088 class TaskBarIconEvent(_core
.Event
):
2090 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2091 def __init__(self
, *args
, **kwargs
):
2092 """__init__(self, wxEventType evtType, wxTaskBarIcon tbIcon) -> TaskBarIconEvent"""
2093 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2094 self
.this
= newobj
.this
2098 class TaskBarIconEventPtr(TaskBarIconEvent
):
2099 def __init__(self
, this
):
2101 if not hasattr(self
,"thisown"): self
.thisown
= 0
2102 self
.__class
__ = TaskBarIconEvent
2103 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2105 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2106 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2107 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2108 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2109 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2110 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2111 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2112 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2113 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2114 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2115 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2116 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2117 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2118 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2120 #---------------------------------------------------------------------------
2122 class ColourData(_core
.Object
):
2124 This class holds a variety of information related to the colour
2125 chooser dialog, used to transfer settings and results to and from the
2129 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2130 def __init__(self
, *args
, **kwargs
):
2132 __init__(self) -> ColourData
2134 Constructor, sets default values.
2136 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2137 self
.this
= newobj
.this
2140 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2143 if self
.thisown
: destroy(self
)
2146 def GetChooseFull(*args
, **kwargs
):
2148 GetChooseFull(self) -> bool
2150 Under Windows, determines whether the Windows colour dialog will
2151 display the full dialog with custom colour selection controls. Has no
2152 meaning under other platforms. The default value is true.
2154 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2156 def GetColour(*args
, **kwargs
):
2158 GetColour(self) -> Colour
2160 Gets the colour (pre)selected by the dialog.
2162 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2164 def GetCustomColour(*args
, **kwargs
):
2166 GetCustomColour(self, int i) -> Colour
2168 Gets the i'th custom colour associated with the colour dialog. i
2169 should be an integer between 0 and 15. The default custom colours are
2170 all invalid colours.
2172 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2174 def SetChooseFull(*args
, **kwargs
):
2176 SetChooseFull(self, int flag)
2178 Under Windows, tells the Windows colour dialog to display the full
2179 dialog with custom colour selection controls. Under other platforms,
2180 has no effect. The default value is true.
2182 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2184 def SetColour(*args
, **kwargs
):
2186 SetColour(self, Colour colour)
2188 Sets the default colour for the colour dialog. The default colour is
2191 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2193 def SetCustomColour(*args
, **kwargs
):
2195 SetCustomColour(self, int i, Colour colour)
2197 Sets the i'th custom colour for the colour dialog. i should be an
2198 integer between 0 and 15. The default custom colours are all invalid colours.
2200 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2203 class ColourDataPtr(ColourData
):
2204 def __init__(self
, this
):
2206 if not hasattr(self
,"thisown"): self
.thisown
= 0
2207 self
.__class
__ = ColourData
2208 _windows_
.ColourData_swigregister(ColourDataPtr
)
2209 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2210 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2211 DirDialogNameStr
= cvar
.DirDialogNameStr
2212 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2213 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2214 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2216 class ColourDialog(Dialog
):
2217 """This class represents the colour chooser dialog."""
2219 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2220 def __init__(self
, *args
, **kwargs
):
2222 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2224 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2225 which will be copied to the colour dialog's internal ColourData
2228 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2229 self
.this
= newobj
.this
2232 self
._setOORInfo
(self
)
2234 def GetColourData(*args
, **kwargs
):
2236 GetColourData(self) -> ColourData
2238 Returns a reference to the `wx.ColourData` used by the dialog.
2240 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2243 class ColourDialogPtr(ColourDialog
):
2244 def __init__(self
, this
):
2246 if not hasattr(self
,"thisown"): self
.thisown
= 0
2247 self
.__class
__ = ColourDialog
2248 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2250 class DirDialog(Dialog
):
2252 wx.DirDialog allows the user to select a directory by browising the
2256 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2257 def __init__(self
, *args
, **kwargs
):
2259 __init__(self, Window parent, String message=DirSelectorPromptStr,
2260 String defaultPath=EmptyString, long style=0,
2261 Point pos=DefaultPosition, Size size=DefaultSize,
2262 String name=DirDialogNameStr) -> DirDialog
2264 Constructor. Use ShowModal method to show the dialog.
2266 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2267 self
.this
= newobj
.this
2270 self
._setOORInfo
(self
)
2272 def GetPath(*args
, **kwargs
):
2274 GetPath(self) -> String
2276 Returns the default or user-selected path.
2278 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2280 def GetMessage(*args
, **kwargs
):
2282 GetMessage(self) -> String
2284 Returns the message that will be displayed on the dialog.
2286 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2288 def GetStyle(*args
, **kwargs
):
2290 GetStyle(self) -> long
2292 Returns the dialog style.
2294 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2296 def SetMessage(*args
, **kwargs
):
2298 SetMessage(self, String message)
2300 Sets the message that will be displayed on the dialog.
2302 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2304 def SetPath(*args
, **kwargs
):
2306 SetPath(self, String path)
2308 Sets the default path.
2310 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2313 class DirDialogPtr(DirDialog
):
2314 def __init__(self
, this
):
2316 if not hasattr(self
,"thisown"): self
.thisown
= 0
2317 self
.__class
__ = DirDialog
2318 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2320 class FileDialog(Dialog
):
2322 wx.FileDialog allows the user to select one or more files from the
2326 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2327 def __init__(self
, *args
, **kwargs
):
2329 __init__(self, Window parent, String message=FileSelectorPromptStr,
2330 String defaultDir=EmptyString, String defaultFile=EmptyString,
2331 String wildcard=FileSelectorDefaultWildcardStr,
2332 long style=0, Point pos=DefaultPosition) -> FileDialog
2334 Constructor. Use ShowModal method to show the dialog.
2336 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2337 self
.this
= newobj
.this
2340 self
._setOORInfo
(self
)
2342 def SetMessage(*args
, **kwargs
):
2344 SetMessage(self, String message)
2346 Sets the message that will be displayed on the dialog.
2348 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2350 def SetPath(*args
, **kwargs
):
2352 SetPath(self, String path)
2354 Sets the path (the combined directory and filename that will be
2355 returned when the dialog is dismissed).
2357 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2359 def SetDirectory(*args
, **kwargs
):
2361 SetDirectory(self, String dir)
2363 Sets the default directory.
2365 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2367 def SetFilename(*args
, **kwargs
):
2369 SetFilename(self, String name)
2371 Sets the default filename.
2373 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2375 def SetWildcard(*args
, **kwargs
):
2377 SetWildcard(self, String wildCard)
2379 Sets the wildcard, which can contain multiple file types, for
2382 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2385 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2387 def SetStyle(*args
, **kwargs
):
2389 SetStyle(self, long style)
2391 Sets the dialog style.
2393 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2395 def SetFilterIndex(*args
, **kwargs
):
2397 SetFilterIndex(self, int filterIndex)
2399 Sets the default filter index, starting from zero.
2401 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2403 def GetMessage(*args
, **kwargs
):
2405 GetMessage(self) -> String
2407 Returns the message that will be displayed on the dialog.
2409 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2411 def GetPath(*args
, **kwargs
):
2413 GetPath(self) -> String
2415 Returns the full path (directory and filename) of the selected file.
2417 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2419 def GetDirectory(*args
, **kwargs
):
2421 GetDirectory(self) -> String
2423 Returns the default directory.
2425 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2427 def GetFilename(*args
, **kwargs
):
2429 GetFilename(self) -> String
2431 Returns the default filename.
2433 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2435 def GetWildcard(*args
, **kwargs
):
2437 GetWildcard(self) -> String
2439 Returns the file dialog wildcard.
2441 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2443 def GetStyle(*args
, **kwargs
):
2445 GetStyle(self) -> long
2447 Returns the dialog style.
2449 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2451 def GetFilterIndex(*args
, **kwargs
):
2453 GetFilterIndex(self) -> int
2455 Returns the index into the list of filters supplied, optionally, in
2456 the wildcard parameter. Before the dialog is shown, this is the index
2457 which will be used when the dialog is first displayed. After the
2458 dialog is shown, this is the index selected by the user.
2460 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2462 def GetFilenames(*args
, **kwargs
):
2464 GetFilenames(self) -> PyObject
2466 Returns a list of filenames chosen in the dialog. This function
2467 should only be used with the dialogs which have wx.MULTIPLE style, use
2468 GetFilename for the others.
2470 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2472 def GetPaths(*args
, **kwargs
):
2474 GetPaths(self) -> PyObject
2476 Fills the array paths with the full paths of the files chosen. This
2477 function should only be used with the dialogs which have wx.MULTIPLE
2478 style, use GetPath for the others.
2480 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2483 class FileDialogPtr(FileDialog
):
2484 def __init__(self
, this
):
2486 if not hasattr(self
,"thisown"): self
.thisown
= 0
2487 self
.__class
__ = FileDialog
2488 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2490 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2491 class MultiChoiceDialog(Dialog
):
2492 """A simple dialog with a multi selection listbox."""
2494 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2495 def __init__(self
, *args
, **kwargs
):
2497 __init__(Window parent, String message, String caption,
2498 List choices=[], long style=CHOICEDLG_STYLE,
2499 Point pos=DefaultPosition) -> MultiChoiceDialog
2501 Constructor. Use ShowModal method to show the dialog.
2503 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2504 self
.this
= newobj
.this
2507 self
._setOORInfo
(self
)
2509 def SetSelections(*args
, **kwargs
):
2511 SetSelections(List selections)
2513 Specify the items in the list that should be selected, using a list of
2516 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2518 def GetSelections(*args
, **kwargs
):
2520 GetSelections() -> [selections]
2522 Returns a list of integers representing the items that are selected.
2524 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2527 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2528 def __init__(self
, this
):
2530 if not hasattr(self
,"thisown"): self
.thisown
= 0
2531 self
.__class
__ = MultiChoiceDialog
2532 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2534 class SingleChoiceDialog(Dialog
):
2535 """A simple dialog with a single selection listbox."""
2537 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2538 def __init__(self
, *args
, **kwargs
):
2540 __init__(Window parent, String message, String caption,
2541 List choices=[], long style=CHOICEDLG_STYLE,
2542 Point pos=DefaultPosition) -> SingleChoiceDialog
2544 Constructor. Use ShowModal method to show the dialog.
2546 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2547 self
.this
= newobj
.this
2550 self
._setOORInfo
(self
)
2552 def GetSelection(*args
, **kwargs
):
2554 GetSelection(self) -> int
2556 Get the index of teh currently selected item.
2558 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2560 def GetStringSelection(*args
, **kwargs
):
2562 GetStringSelection(self) -> String
2564 Returns the string value of the currently selected item
2566 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2568 def SetSelection(*args
, **kwargs
):
2570 SetSelection(self, int sel)
2572 Set the current selected item to sel
2574 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2577 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2578 def __init__(self
, this
):
2580 if not hasattr(self
,"thisown"): self
.thisown
= 0
2581 self
.__class
__ = SingleChoiceDialog
2582 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2584 TextEntryDialogStyle
= _windows_
.TextEntryDialogStyle
2585 class TextEntryDialog(Dialog
):
2586 """A dialog with text control, [ok] and [cancel] buttons"""
2588 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2589 def __init__(self
, *args
, **kwargs
):
2591 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2592 String defaultValue=EmptyString,
2593 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> TextEntryDialog
2595 Constructor. Use ShowModal method to show the dialog.
2597 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2598 self
.this
= newobj
.this
2601 self
._setOORInfo
(self
)
2603 def GetValue(*args
, **kwargs
):
2605 GetValue(self) -> String
2607 Returns the text that the user has entered if the user has pressed OK,
2608 or the original value if the user has pressed Cancel.
2610 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2612 def SetValue(*args
, **kwargs
):
2614 SetValue(self, String value)
2616 Sets the default text value.
2618 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2621 class TextEntryDialogPtr(TextEntryDialog
):
2622 def __init__(self
, this
):
2624 if not hasattr(self
,"thisown"): self
.thisown
= 0
2625 self
.__class
__ = TextEntryDialog
2626 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2628 class PasswordEntryDialog(TextEntryDialog
):
2630 return "<%s.%s; proxy of C++ wxPasswordEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2631 def __init__(self
, *args
, **kwargs
):
2633 __init__(self, Window parent, String message, String caption=GetPasswordFromUserPromptStr,
2634 String value=EmptyString,
2635 long style=TextEntryDialogStyle, Point pos=DefaultPosition) -> PasswordEntryDialog
2637 newobj
= _windows_
.new_PasswordEntryDialog(*args
, **kwargs
)
2638 self
.this
= newobj
.this
2642 class PasswordEntryDialogPtr(PasswordEntryDialog
):
2643 def __init__(self
, this
):
2645 if not hasattr(self
,"thisown"): self
.thisown
= 0
2646 self
.__class
__ = PasswordEntryDialog
2647 _windows_
.PasswordEntryDialog_swigregister(PasswordEntryDialogPtr
)
2648 GetPasswordFromUserPromptStr
= cvar
.GetPasswordFromUserPromptStr
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 GetPrintMode(*args
, **kwargs
):
3778 """GetPrintMode(self) -> int"""
3779 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3781 def SetNoCopies(*args
, **kwargs
):
3782 """SetNoCopies(self, int v)"""
3783 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3785 def SetCollate(*args
, **kwargs
):
3786 """SetCollate(self, bool flag)"""
3787 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3789 def SetOrientation(*args
, **kwargs
):
3790 """SetOrientation(self, int orient)"""
3791 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3793 def SetPrinterName(*args
, **kwargs
):
3794 """SetPrinterName(self, String name)"""
3795 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3797 def SetColour(*args
, **kwargs
):
3798 """SetColour(self, bool colour)"""
3799 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3801 def SetDuplex(*args
, **kwargs
):
3802 """SetDuplex(self, int duplex)"""
3803 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3805 def SetPaperId(*args
, **kwargs
):
3806 """SetPaperId(self, int sizeId)"""
3807 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3809 def SetPaperSize(*args
, **kwargs
):
3810 """SetPaperSize(self, Size sz)"""
3811 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3813 def SetQuality(*args
, **kwargs
):
3814 """SetQuality(self, int quality)"""
3815 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3817 def SetBin(*args
, **kwargs
):
3818 """SetBin(self, int bin)"""
3819 return _windows_
.PrintData_SetBin(*args
, **kwargs
)
3821 def SetPrintMode(*args
, **kwargs
):
3822 """SetPrintMode(self, int printMode)"""
3823 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3825 def GetFilename(*args
, **kwargs
):
3826 """GetFilename(self) -> String"""
3827 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3829 def SetFilename(*args
, **kwargs
):
3830 """SetFilename(self, String filename)"""
3831 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3833 def __nonzero__(self
): return self
.Ok()
3834 def GetPrinterCommand(*args
, **kwargs
):
3835 """GetPrinterCommand(self) -> String"""
3836 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3838 def GetPrinterOptions(*args
, **kwargs
):
3839 """GetPrinterOptions(self) -> String"""
3840 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3842 def GetPreviewCommand(*args
, **kwargs
):
3843 """GetPreviewCommand(self) -> String"""
3844 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3846 def GetFontMetricPath(*args
, **kwargs
):
3847 """GetFontMetricPath(self) -> String"""
3848 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3850 def GetPrinterScaleX(*args
, **kwargs
):
3851 """GetPrinterScaleX(self) -> double"""
3852 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3854 def GetPrinterScaleY(*args
, **kwargs
):
3855 """GetPrinterScaleY(self) -> double"""
3856 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3858 def GetPrinterTranslateX(*args
, **kwargs
):
3859 """GetPrinterTranslateX(self) -> long"""
3860 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3862 def GetPrinterTranslateY(*args
, **kwargs
):
3863 """GetPrinterTranslateY(self) -> long"""
3864 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3866 def SetPrinterCommand(*args
, **kwargs
):
3867 """SetPrinterCommand(self, String command)"""
3868 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3870 def SetPrinterOptions(*args
, **kwargs
):
3871 """SetPrinterOptions(self, String options)"""
3872 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3874 def SetPreviewCommand(*args
, **kwargs
):
3875 """SetPreviewCommand(self, String command)"""
3876 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3878 def SetFontMetricPath(*args
, **kwargs
):
3879 """SetFontMetricPath(self, String path)"""
3880 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3882 def SetPrinterScaleX(*args
, **kwargs
):
3883 """SetPrinterScaleX(self, double x)"""
3884 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3886 def SetPrinterScaleY(*args
, **kwargs
):
3887 """SetPrinterScaleY(self, double y)"""
3888 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3890 def SetPrinterScaling(*args
, **kwargs
):
3891 """SetPrinterScaling(self, double x, double y)"""
3892 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3894 def SetPrinterTranslateX(*args
, **kwargs
):
3895 """SetPrinterTranslateX(self, long x)"""
3896 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3898 def SetPrinterTranslateY(*args
, **kwargs
):
3899 """SetPrinterTranslateY(self, long y)"""
3900 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3902 def SetPrinterTranslation(*args
, **kwargs
):
3903 """SetPrinterTranslation(self, long x, long y)"""
3904 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3907 class PrintDataPtr(PrintData
):
3908 def __init__(self
, this
):
3910 if not hasattr(self
,"thisown"): self
.thisown
= 0
3911 self
.__class
__ = PrintData
3912 _windows_
.PrintData_swigregister(PrintDataPtr
)
3913 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3914 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3916 class PageSetupDialogData(_core
.Object
):
3918 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3919 def __init__(self
, *args
):
3921 __init__(self) -> PageSetupDialogData
3922 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3924 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3925 self
.this
= newobj
.this
3928 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3931 if self
.thisown
: destroy(self
)
3934 def EnableHelp(*args
, **kwargs
):
3935 """EnableHelp(self, bool flag)"""
3936 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3938 def EnableMargins(*args
, **kwargs
):
3939 """EnableMargins(self, bool flag)"""
3940 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3942 def EnableOrientation(*args
, **kwargs
):
3943 """EnableOrientation(self, bool flag)"""
3944 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3946 def EnablePaper(*args
, **kwargs
):
3947 """EnablePaper(self, bool flag)"""
3948 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3950 def EnablePrinter(*args
, **kwargs
):
3951 """EnablePrinter(self, bool flag)"""
3952 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3954 def GetDefaultMinMargins(*args
, **kwargs
):
3955 """GetDefaultMinMargins(self) -> bool"""
3956 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3958 def GetEnableMargins(*args
, **kwargs
):
3959 """GetEnableMargins(self) -> bool"""
3960 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3962 def GetEnableOrientation(*args
, **kwargs
):
3963 """GetEnableOrientation(self) -> bool"""
3964 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3966 def GetEnablePaper(*args
, **kwargs
):
3967 """GetEnablePaper(self) -> bool"""
3968 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3970 def GetEnablePrinter(*args
, **kwargs
):
3971 """GetEnablePrinter(self) -> bool"""
3972 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3974 def GetEnableHelp(*args
, **kwargs
):
3975 """GetEnableHelp(self) -> bool"""
3976 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3978 def GetDefaultInfo(*args
, **kwargs
):
3979 """GetDefaultInfo(self) -> bool"""
3980 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3982 def GetMarginTopLeft(*args
, **kwargs
):
3983 """GetMarginTopLeft(self) -> Point"""
3984 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3986 def GetMarginBottomRight(*args
, **kwargs
):
3987 """GetMarginBottomRight(self) -> Point"""
3988 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3990 def GetMinMarginTopLeft(*args
, **kwargs
):
3991 """GetMinMarginTopLeft(self) -> Point"""
3992 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3994 def GetMinMarginBottomRight(*args
, **kwargs
):
3995 """GetMinMarginBottomRight(self) -> Point"""
3996 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3998 def GetPaperId(*args
, **kwargs
):
3999 """GetPaperId(self) -> int"""
4000 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
4002 def GetPaperSize(*args
, **kwargs
):
4003 """GetPaperSize(self) -> Size"""
4004 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
4006 def GetPrintData(*args
, **kwargs
):
4007 """GetPrintData(self) -> PrintData"""
4008 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
4010 def Ok(*args
, **kwargs
):
4011 """Ok(self) -> bool"""
4012 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4014 def SetDefaultInfo(*args
, **kwargs
):
4015 """SetDefaultInfo(self, bool flag)"""
4016 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4018 def SetDefaultMinMargins(*args
, **kwargs
):
4019 """SetDefaultMinMargins(self, bool flag)"""
4020 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4022 def SetMarginTopLeft(*args
, **kwargs
):
4023 """SetMarginTopLeft(self, Point pt)"""
4024 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4026 def SetMarginBottomRight(*args
, **kwargs
):
4027 """SetMarginBottomRight(self, Point pt)"""
4028 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4030 def SetMinMarginTopLeft(*args
, **kwargs
):
4031 """SetMinMarginTopLeft(self, Point pt)"""
4032 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4034 def SetMinMarginBottomRight(*args
, **kwargs
):
4035 """SetMinMarginBottomRight(self, Point pt)"""
4036 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4038 def SetPaperId(*args
, **kwargs
):
4039 """SetPaperId(self, int id)"""
4040 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4042 def SetPaperSize(*args
, **kwargs
):
4043 """SetPaperSize(self, Size size)"""
4044 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4046 def SetPrintData(*args
, **kwargs
):
4047 """SetPrintData(self, PrintData printData)"""
4048 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4050 def __nonzero__(self
): return self
.Ok()
4052 class PageSetupDialogDataPtr(PageSetupDialogData
):
4053 def __init__(self
, this
):
4055 if not hasattr(self
,"thisown"): self
.thisown
= 0
4056 self
.__class
__ = PageSetupDialogData
4057 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4059 class PageSetupDialog(_core
.Object
):
4061 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4062 def __init__(self
, *args
, **kwargs
):
4063 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4064 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4065 self
.this
= newobj
.this
4068 def GetPageSetupData(*args
, **kwargs
):
4069 """GetPageSetupData(self) -> PageSetupDialogData"""
4070 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4072 def GetPageSetupDialogData(*args
, **kwargs
):
4073 """GetPageSetupDialogData(self) -> PageSetupDialogData"""
4074 return _windows_
.PageSetupDialog_GetPageSetupDialogData(*args
, **kwargs
)
4076 def ShowModal(*args
, **kwargs
):
4077 """ShowModal(self) -> int"""
4078 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4081 class PageSetupDialogPtr(PageSetupDialog
):
4082 def __init__(self
, this
):
4084 if not hasattr(self
,"thisown"): self
.thisown
= 0
4085 self
.__class
__ = PageSetupDialog
4086 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4088 class PrintDialogData(_core
.Object
):
4090 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4091 def __init__(self
, *args
):
4093 __init__(self) -> PrintDialogData
4094 __init__(self, PrintData printData) -> PrintDialogData
4096 newobj
= _windows_
.new_PrintDialogData(*args
)
4097 self
.this
= newobj
.this
4100 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4103 if self
.thisown
: destroy(self
)
4106 def GetFromPage(*args
, **kwargs
):
4107 """GetFromPage(self) -> int"""
4108 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4110 def GetToPage(*args
, **kwargs
):
4111 """GetToPage(self) -> int"""
4112 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4114 def GetMinPage(*args
, **kwargs
):
4115 """GetMinPage(self) -> int"""
4116 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4118 def GetMaxPage(*args
, **kwargs
):
4119 """GetMaxPage(self) -> int"""
4120 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4122 def GetNoCopies(*args
, **kwargs
):
4123 """GetNoCopies(self) -> int"""
4124 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4126 def GetAllPages(*args
, **kwargs
):
4127 """GetAllPages(self) -> bool"""
4128 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4130 def GetSelection(*args
, **kwargs
):
4131 """GetSelection(self) -> bool"""
4132 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4134 def GetCollate(*args
, **kwargs
):
4135 """GetCollate(self) -> bool"""
4136 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4138 def GetPrintToFile(*args
, **kwargs
):
4139 """GetPrintToFile(self) -> bool"""
4140 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4142 def GetSetupDialog(*args
, **kwargs
):
4143 """GetSetupDialog(self) -> bool"""
4144 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4146 def SetSetupDialog(*args
, **kwargs
):
4147 """SetSetupDialog(self, bool flag)"""
4148 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4150 def SetFromPage(*args
, **kwargs
):
4151 """SetFromPage(self, int v)"""
4152 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4154 def SetToPage(*args
, **kwargs
):
4155 """SetToPage(self, int v)"""
4156 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4158 def SetMinPage(*args
, **kwargs
):
4159 """SetMinPage(self, int v)"""
4160 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4162 def SetMaxPage(*args
, **kwargs
):
4163 """SetMaxPage(self, int v)"""
4164 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4166 def SetNoCopies(*args
, **kwargs
):
4167 """SetNoCopies(self, int v)"""
4168 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4170 def SetAllPages(*args
, **kwargs
):
4171 """SetAllPages(self, bool flag)"""
4172 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4174 def SetSelection(*args
, **kwargs
):
4175 """SetSelection(self, bool flag)"""
4176 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4178 def SetCollate(*args
, **kwargs
):
4179 """SetCollate(self, bool flag)"""
4180 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4182 def SetPrintToFile(*args
, **kwargs
):
4183 """SetPrintToFile(self, bool flag)"""
4184 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4186 def EnablePrintToFile(*args
, **kwargs
):
4187 """EnablePrintToFile(self, bool flag)"""
4188 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4190 def EnableSelection(*args
, **kwargs
):
4191 """EnableSelection(self, bool flag)"""
4192 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4194 def EnablePageNumbers(*args
, **kwargs
):
4195 """EnablePageNumbers(self, bool flag)"""
4196 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4198 def EnableHelp(*args
, **kwargs
):
4199 """EnableHelp(self, bool flag)"""
4200 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4202 def GetEnablePrintToFile(*args
, **kwargs
):
4203 """GetEnablePrintToFile(self) -> bool"""
4204 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4206 def GetEnableSelection(*args
, **kwargs
):
4207 """GetEnableSelection(self) -> bool"""
4208 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4210 def GetEnablePageNumbers(*args
, **kwargs
):
4211 """GetEnablePageNumbers(self) -> bool"""
4212 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4214 def GetEnableHelp(*args
, **kwargs
):
4215 """GetEnableHelp(self) -> bool"""
4216 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4218 def Ok(*args
, **kwargs
):
4219 """Ok(self) -> bool"""
4220 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4222 def GetPrintData(*args
, **kwargs
):
4223 """GetPrintData(self) -> PrintData"""
4224 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4226 def SetPrintData(*args
, **kwargs
):
4227 """SetPrintData(self, PrintData printData)"""
4228 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4230 def __nonzero__(self
): return self
.Ok()
4232 class PrintDialogDataPtr(PrintDialogData
):
4233 def __init__(self
, this
):
4235 if not hasattr(self
,"thisown"): self
.thisown
= 0
4236 self
.__class
__ = PrintDialogData
4237 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4239 class PrintDialog(_core
.Object
):
4241 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4242 def __init__(self
, *args
, **kwargs
):
4243 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4244 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4245 self
.this
= newobj
.this
4248 def ShowModal(*args
, **kwargs
):
4249 """ShowModal(self) -> int"""
4250 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4252 def GetPrintDialogData(*args
, **kwargs
):
4253 """GetPrintDialogData(self) -> PrintDialogData"""
4254 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4256 def GetPrintData(*args
, **kwargs
):
4257 """GetPrintData(self) -> PrintData"""
4258 return _windows_
.PrintDialog_GetPrintData(*args
, **kwargs
)
4260 def GetPrintDC(*args
, **kwargs
):
4261 """GetPrintDC(self) -> DC"""
4262 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4265 class PrintDialogPtr(PrintDialog
):
4266 def __init__(self
, this
):
4268 if not hasattr(self
,"thisown"): self
.thisown
= 0
4269 self
.__class
__ = PrintDialog
4270 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4272 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4273 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4274 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4275 class Printer(_core
.Object
):
4277 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4278 def __init__(self
, *args
, **kwargs
):
4279 """__init__(self, PrintDialogData data=None) -> Printer"""
4280 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4281 self
.this
= newobj
.this
4284 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4287 if self
.thisown
: destroy(self
)
4290 def CreateAbortWindow(*args
, **kwargs
):
4291 """CreateAbortWindow(self, Window parent, Printout printout) -> Window"""
4292 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4294 def ReportError(*args
, **kwargs
):
4295 """ReportError(self, Window parent, Printout printout, String message)"""
4296 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4298 def Setup(*args
, **kwargs
):
4299 """Setup(self, Window parent) -> bool"""
4300 return _windows_
.Printer_Setup(*args
, **kwargs
)
4302 def Print(*args
, **kwargs
):
4303 """Print(self, Window parent, Printout printout, bool 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 GetPrintDialogData(*args
, **kwargs
):
4311 """GetPrintDialogData(self) -> PrintDialogData"""
4312 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4314 def GetAbort(*args
, **kwargs
):
4315 """GetAbort(self) -> bool"""
4316 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4318 def GetLastError(*args
, **kwargs
):
4319 """GetLastError() -> int"""
4320 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4322 GetLastError
= staticmethod(GetLastError
)
4324 class PrinterPtr(Printer
):
4325 def __init__(self
, this
):
4327 if not hasattr(self
,"thisown"): self
.thisown
= 0
4328 self
.__class
__ = Printer
4329 _windows_
.Printer_swigregister(PrinterPtr
)
4331 def Printer_GetLastError(*args
, **kwargs
):
4332 """Printer_GetLastError() -> int"""
4333 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4335 class Printout(_core
.Object
):
4337 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4338 def __init__(self
, *args
, **kwargs
):
4339 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4340 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4341 self
.this
= newobj
.this
4344 self
._setCallbackInfo
(self
, Printout
)
4346 def _setCallbackInfo(*args
, **kwargs
):
4347 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4348 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4350 def GetTitle(*args
, **kwargs
):
4351 """GetTitle(self) -> String"""
4352 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4354 def GetDC(*args
, **kwargs
):
4355 """GetDC(self) -> DC"""
4356 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4358 def SetDC(*args
, **kwargs
):
4359 """SetDC(self, DC dc)"""
4360 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4362 def SetPageSizePixels(*args
, **kwargs
):
4363 """SetPageSizePixels(self, int w, int h)"""
4364 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4366 def GetPageSizePixels(*args
, **kwargs
):
4367 """GetPageSizePixels() -> (w, h)"""
4368 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4370 def SetPageSizeMM(*args
, **kwargs
):
4371 """SetPageSizeMM(self, int w, int h)"""
4372 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4374 def GetPageSizeMM(*args
, **kwargs
):
4375 """GetPageSizeMM() -> (w, h)"""
4376 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4378 def SetPPIScreen(*args
, **kwargs
):
4379 """SetPPIScreen(self, int x, int y)"""
4380 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4382 def GetPPIScreen(*args
, **kwargs
):
4383 """GetPPIScreen() -> (x,y)"""
4384 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4386 def SetPPIPrinter(*args
, **kwargs
):
4387 """SetPPIPrinter(self, int x, int y)"""
4388 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4390 def GetPPIPrinter(*args
, **kwargs
):
4391 """GetPPIPrinter() -> (x,y)"""
4392 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4394 def IsPreview(*args
, **kwargs
):
4395 """IsPreview(self) -> bool"""
4396 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4398 def SetIsPreview(*args
, **kwargs
):
4399 """SetIsPreview(self, bool p)"""
4400 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4402 def base_OnBeginDocument(*args
, **kwargs
):
4403 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4404 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4406 def base_OnEndDocument(*args
, **kwargs
):
4407 """base_OnEndDocument(self)"""
4408 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4410 def base_OnBeginPrinting(*args
, **kwargs
):
4411 """base_OnBeginPrinting(self)"""
4412 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4414 def base_OnEndPrinting(*args
, **kwargs
):
4415 """base_OnEndPrinting(self)"""
4416 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4418 def base_OnPreparePrinting(*args
, **kwargs
):
4419 """base_OnPreparePrinting(self)"""
4420 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4422 def base_HasPage(*args
, **kwargs
):
4423 """base_HasPage(self, int page) -> bool"""
4424 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4426 def base_GetPageInfo(*args
, **kwargs
):
4427 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4428 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4431 class PrintoutPtr(Printout
):
4432 def __init__(self
, this
):
4434 if not hasattr(self
,"thisown"): self
.thisown
= 0
4435 self
.__class
__ = Printout
4436 _windows_
.Printout_swigregister(PrintoutPtr
)
4438 class PreviewCanvas(ScrolledWindow
):
4440 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4441 def __init__(self
, *args
, **kwargs
):
4443 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4444 Size size=DefaultSize, long style=0,
4445 String name=PreviewCanvasNameStr) -> PreviewCanvas
4447 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4448 self
.this
= newobj
.this
4451 self
._setOORInfo
(self
)
4454 class PreviewCanvasPtr(PreviewCanvas
):
4455 def __init__(self
, this
):
4457 if not hasattr(self
,"thisown"): self
.thisown
= 0
4458 self
.__class
__ = PreviewCanvas
4459 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4461 class PreviewFrame(Frame
):
4463 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4464 def __init__(self
, *args
, **kwargs
):
4466 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4467 Size size=DefaultSize,
4468 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4470 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4471 self
.this
= newobj
.this
4474 self
._setOORInfo
(self
)
4476 def Initialize(*args
, **kwargs
):
4477 """Initialize(self)"""
4478 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4480 def CreateControlBar(*args
, **kwargs
):
4481 """CreateControlBar(self)"""
4482 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4484 def CreateCanvas(*args
, **kwargs
):
4485 """CreateCanvas(self)"""
4486 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4488 def GetControlBar(*args
, **kwargs
):
4489 """GetControlBar(self) -> PreviewControlBar"""
4490 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4493 class PreviewFramePtr(PreviewFrame
):
4494 def __init__(self
, this
):
4496 if not hasattr(self
,"thisown"): self
.thisown
= 0
4497 self
.__class
__ = PreviewFrame
4498 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4500 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4501 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4502 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4503 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4504 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4505 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4506 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4507 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4508 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4509 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4510 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4511 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4512 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4513 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4514 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4515 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4516 class PreviewControlBar(Panel
):
4518 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4519 def __init__(self
, *args
, **kwargs
):
4521 __init__(self, PrintPreview preview, long buttons, Window parent,
4522 Point pos=DefaultPosition, Size size=DefaultSize,
4523 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4525 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4526 self
.this
= newobj
.this
4529 self
._setOORInfo
(self
)
4531 def GetZoomControl(*args
, **kwargs
):
4532 """GetZoomControl(self) -> int"""
4533 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4535 def SetZoomControl(*args
, **kwargs
):
4536 """SetZoomControl(self, int zoom)"""
4537 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4539 def GetPrintPreview(*args
, **kwargs
):
4540 """GetPrintPreview(self) -> PrintPreview"""
4541 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4543 def OnNext(*args
, **kwargs
):
4545 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4547 def OnPrevious(*args
, **kwargs
):
4548 """OnPrevious(self)"""
4549 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4551 def OnFirst(*args
, **kwargs
):
4553 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4555 def OnLast(*args
, **kwargs
):
4557 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4559 def OnGoto(*args
, **kwargs
):
4561 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4564 class PreviewControlBarPtr(PreviewControlBar
):
4565 def __init__(self
, this
):
4567 if not hasattr(self
,"thisown"): self
.thisown
= 0
4568 self
.__class
__ = PreviewControlBar
4569 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4571 class PrintPreview(_core
.Object
):
4573 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4574 def __init__(self
, *args
):
4576 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4577 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4579 newobj
= _windows_
.new_PrintPreview(*args
)
4580 self
.this
= newobj
.this
4583 def SetCurrentPage(*args
, **kwargs
):
4584 """SetCurrentPage(self, int pageNum) -> bool"""
4585 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4587 def GetCurrentPage(*args
, **kwargs
):
4588 """GetCurrentPage(self) -> int"""
4589 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4591 def SetPrintout(*args
, **kwargs
):
4592 """SetPrintout(self, Printout printout)"""
4593 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4595 def GetPrintout(*args
, **kwargs
):
4596 """GetPrintout(self) -> Printout"""
4597 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4599 def GetPrintoutForPrinting(*args
, **kwargs
):
4600 """GetPrintoutForPrinting(self) -> Printout"""
4601 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4603 def SetFrame(*args
, **kwargs
):
4604 """SetFrame(self, Frame frame)"""
4605 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4607 def SetCanvas(*args
, **kwargs
):
4608 """SetCanvas(self, PreviewCanvas canvas)"""
4609 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4611 def GetFrame(*args
, **kwargs
):
4612 """GetFrame(self) -> Frame"""
4613 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4615 def GetCanvas(*args
, **kwargs
):
4616 """GetCanvas(self) -> PreviewCanvas"""
4617 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4619 def PaintPage(*args
, **kwargs
):
4620 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4621 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4623 def DrawBlankPage(*args
, **kwargs
):
4624 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4625 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4627 def RenderPage(*args
, **kwargs
):
4628 """RenderPage(self, int pageNum) -> bool"""
4629 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4631 def AdjustScrollbars(*args
, **kwargs
):
4632 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4633 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4635 def GetPrintDialogData(*args
, **kwargs
):
4636 """GetPrintDialogData(self) -> PrintDialogData"""
4637 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4639 def SetZoom(*args
, **kwargs
):
4640 """SetZoom(self, int percent)"""
4641 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4643 def GetZoom(*args
, **kwargs
):
4644 """GetZoom(self) -> int"""
4645 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4647 def GetMaxPage(*args
, **kwargs
):
4648 """GetMaxPage(self) -> int"""
4649 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4651 def GetMinPage(*args
, **kwargs
):
4652 """GetMinPage(self) -> int"""
4653 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4655 def Ok(*args
, **kwargs
):
4656 """Ok(self) -> bool"""
4657 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4659 def SetOk(*args
, **kwargs
):
4660 """SetOk(self, bool ok)"""
4661 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4663 def Print(*args
, **kwargs
):
4664 """Print(self, bool interactive) -> bool"""
4665 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4667 def DetermineScaling(*args
, **kwargs
):
4668 """DetermineScaling(self)"""
4669 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4671 def __nonzero__(self
): return self
.Ok()
4673 class PrintPreviewPtr(PrintPreview
):
4674 def __init__(self
, this
):
4676 if not hasattr(self
,"thisown"): self
.thisown
= 0
4677 self
.__class
__ = PrintPreview
4678 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4680 class PyPrintPreview(PrintPreview
):
4682 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4683 def __init__(self
, *args
):
4685 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4686 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4688 newobj
= _windows_
.new_PyPrintPreview(*args
)
4689 self
.this
= newobj
.this
4692 self
._setCallbackInfo
(self
, PyPrintPreview
)
4694 def _setCallbackInfo(*args
, **kwargs
):
4695 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4696 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4698 def base_SetCurrentPage(*args
, **kwargs
):
4699 """base_SetCurrentPage(self, int pageNum) -> bool"""
4700 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4702 def base_PaintPage(*args
, **kwargs
):
4703 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4704 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4706 def base_DrawBlankPage(*args
, **kwargs
):
4707 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4708 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4710 def base_RenderPage(*args
, **kwargs
):
4711 """base_RenderPage(self, int pageNum) -> bool"""
4712 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4714 def base_SetZoom(*args
, **kwargs
):
4715 """base_SetZoom(self, int percent)"""
4716 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4718 def base_Print(*args
, **kwargs
):
4719 """base_Print(self, bool interactive) -> bool"""
4720 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4722 def base_DetermineScaling(*args
, **kwargs
):
4723 """base_DetermineScaling(self)"""
4724 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4727 class PyPrintPreviewPtr(PyPrintPreview
):
4728 def __init__(self
, this
):
4730 if not hasattr(self
,"thisown"): self
.thisown
= 0
4731 self
.__class
__ = PyPrintPreview
4732 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4734 class PyPreviewFrame(PreviewFrame
):
4736 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4737 def __init__(self
, *args
, **kwargs
):
4739 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4740 Size size=DefaultSize,
4741 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4743 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4744 self
.this
= newobj
.this
4747 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4749 def _setCallbackInfo(*args
, **kwargs
):
4750 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4751 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4753 def SetPreviewCanvas(*args
, **kwargs
):
4754 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4755 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4757 def SetControlBar(*args
, **kwargs
):
4758 """SetControlBar(self, PreviewControlBar bar)"""
4759 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4761 def base_Initialize(*args
, **kwargs
):
4762 """base_Initialize(self)"""
4763 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4765 def base_CreateCanvas(*args
, **kwargs
):
4766 """base_CreateCanvas(self)"""
4767 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4769 def base_CreateControlBar(*args
, **kwargs
):
4770 """base_CreateControlBar(self)"""
4771 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4774 class PyPreviewFramePtr(PyPreviewFrame
):
4775 def __init__(self
, this
):
4777 if not hasattr(self
,"thisown"): self
.thisown
= 0
4778 self
.__class
__ = PyPreviewFrame
4779 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4781 class PyPreviewControlBar(PreviewControlBar
):
4783 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4784 def __init__(self
, *args
, **kwargs
):
4786 __init__(self, PrintPreview preview, long buttons, Window parent,
4787 Point pos=DefaultPosition, Size size=DefaultSize,
4788 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4790 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4791 self
.this
= newobj
.this
4794 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4796 def _setCallbackInfo(*args
, **kwargs
):
4797 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4798 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4800 def SetPrintPreview(*args
, **kwargs
):
4801 """SetPrintPreview(self, PrintPreview preview)"""
4802 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4804 def base_CreateButtons(*args
, **kwargs
):
4805 """base_CreateButtons(self)"""
4806 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4808 def base_SetZoomControl(*args
, **kwargs
):
4809 """base_SetZoomControl(self, int zoom)"""
4810 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4813 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4814 def __init__(self
, this
):
4816 if not hasattr(self
,"thisown"): self
.thisown
= 0
4817 self
.__class
__ = PyPreviewControlBar
4818 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)