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 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
298 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
299 USER_COLOURS
= _windows_
.USER_COLOURS
300 NO_3D
= _windows_
.NO_3D
301 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
302 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
303 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
304 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
305 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
306 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
307 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
308 class TopLevelWindow(_core
.Window
):
309 def __init__(self
): raise RuntimeError, "No constructor defined"
311 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
312 def Maximize(*args
, **kwargs
):
313 """Maximize(self, bool maximize=True)"""
314 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
316 def Restore(*args
, **kwargs
):
318 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
320 def Iconize(*args
, **kwargs
):
321 """Iconize(self, bool iconize=True)"""
322 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
324 def IsMaximized(*args
, **kwargs
):
325 """IsMaximized(self) -> bool"""
326 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
328 def IsIconized(*args
, **kwargs
):
329 """IsIconized(self) -> bool"""
330 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
332 def GetIcon(*args
, **kwargs
):
333 """GetIcon(self) -> Icon"""
334 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
336 def SetIcon(*args
, **kwargs
):
337 """SetIcon(self, Icon icon)"""
338 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
340 def SetIcons(*args
, **kwargs
):
341 """SetIcons(self, wxIconBundle icons)"""
342 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
344 def ShowFullScreen(*args
, **kwargs
):
345 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
346 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
348 def IsFullScreen(*args
, **kwargs
):
349 """IsFullScreen(self) -> bool"""
350 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
352 def SetTitle(*args
, **kwargs
):
354 SetTitle(self, String title)
356 Sets the window's title. Applicable only to frames and dialogs.
358 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
360 def GetTitle(*args
, **kwargs
):
362 GetTitle(self) -> String
364 Gets the window's title. Applicable only to frames and dialogs.
366 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
368 def SetShape(*args
, **kwargs
):
369 """SetShape(self, Region region) -> bool"""
370 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
372 def MacSetMetalAppearance(*args
, **kwargs
):
373 """MacSetMetalAppearance(self, bool on)"""
374 return _windows_
.TopLevelWindow_MacSetMetalAppearance(*args
, **kwargs
)
376 def MacGetMetalAppearance(*args
, **kwargs
):
377 """MacGetMetalAppearance(self) -> bool"""
378 return _windows_
.TopLevelWindow_MacGetMetalAppearance(*args
, **kwargs
)
381 class TopLevelWindowPtr(TopLevelWindow
):
382 def __init__(self
, this
):
384 if not hasattr(self
,"thisown"): self
.thisown
= 0
385 self
.__class
__ = TopLevelWindow
386 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
387 cvar
= _windows_
.cvar
388 FrameNameStr
= cvar
.FrameNameStr
389 DialogNameStr
= cvar
.DialogNameStr
390 StatusLineNameStr
= cvar
.StatusLineNameStr
391 ToolBarNameStr
= cvar
.ToolBarNameStr
393 #---------------------------------------------------------------------------
395 class Frame(TopLevelWindow
):
397 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
398 def __init__(self
, *args
, **kwargs
):
400 __init__(self, Window parent, int id=-1, String title=EmptyString,
401 Point pos=DefaultPosition, Size size=DefaultSize,
402 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
404 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
405 self
.this
= newobj
.this
408 self
._setOORInfo
(self
)
410 def Create(*args
, **kwargs
):
412 Create(self, Window parent, int id=-1, String title=EmptyString,
413 Point pos=DefaultPosition, Size size=DefaultSize,
414 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
416 return _windows_
.Frame_Create(*args
, **kwargs
)
418 def GetClientAreaOrigin(*args
, **kwargs
):
420 GetClientAreaOrigin(self) -> Point
422 Get the origin of the client area of the window relative to the
423 window's top left corner (the client area may be shifted because of
424 the borders, scrollbars, other decorations...)
426 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
428 def SendSizeEvent(*args
, **kwargs
):
429 """SendSizeEvent(self)"""
430 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
432 def SetMenuBar(*args
, **kwargs
):
433 """SetMenuBar(self, MenuBar menubar)"""
434 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
436 def GetMenuBar(*args
, **kwargs
):
437 """GetMenuBar(self) -> MenuBar"""
438 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
440 def ProcessCommand(*args
, **kwargs
):
441 """ProcessCommand(self, int winid) -> bool"""
442 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
444 Command
= ProcessCommand
445 def CreateStatusBar(*args
, **kwargs
):
447 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
448 String name=StatusLineNameStr) -> StatusBar
450 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
452 def GetStatusBar(*args
, **kwargs
):
453 """GetStatusBar(self) -> StatusBar"""
454 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
456 def SetStatusBar(*args
, **kwargs
):
457 """SetStatusBar(self, StatusBar statBar)"""
458 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
460 def SetStatusText(*args
, **kwargs
):
461 """SetStatusText(self, String text, int number=0)"""
462 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
464 def SetStatusWidths(*args
, **kwargs
):
465 """SetStatusWidths(self, int widths, int widths_field)"""
466 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
468 def PushStatusText(*args
, **kwargs
):
469 """PushStatusText(self, String text, int number=0)"""
470 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
472 def PopStatusText(*args
, **kwargs
):
473 """PopStatusText(self, int number=0)"""
474 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
476 def SetStatusBarPane(*args
, **kwargs
):
477 """SetStatusBarPane(self, int n)"""
478 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
480 def GetStatusBarPane(*args
, **kwargs
):
481 """GetStatusBarPane(self) -> int"""
482 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
484 def CreateToolBar(*args
, **kwargs
):
485 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
486 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
488 def GetToolBar(*args
, **kwargs
):
489 """GetToolBar(self) -> wxToolBar"""
490 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
492 def SetToolBar(*args
, **kwargs
):
493 """SetToolBar(self, wxToolBar toolbar)"""
494 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
496 def DoGiveHelp(*args
, **kwargs
):
497 """DoGiveHelp(self, String text, bool show)"""
498 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
500 def DoMenuUpdates(*args
, **kwargs
):
501 """DoMenuUpdates(self, Menu menu=None)"""
502 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
504 def GetClassDefaultAttributes(*args
, **kwargs
):
506 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
508 Get the default attributes for this class. This is useful if you want
509 to use the same font or colour in your own control as in a standard
510 control -- which is a much better idea than hard coding specific
511 colours or fonts which might look completely out of place on the
512 user's system, especially if it uses themes.
514 The variant parameter is only relevant under Mac currently and is
515 ignore under other platforms. Under Mac, it will change the size of
516 the returned font. See `wx.Window.SetWindowVariant` for more about
519 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
521 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
523 class FramePtr(Frame
):
524 def __init__(self
, this
):
526 if not hasattr(self
,"thisown"): self
.thisown
= 0
527 self
.__class
__ = Frame
528 _windows_
.Frame_swigregister(FramePtr
)
530 def PreFrame(*args
, **kwargs
):
531 """PreFrame() -> Frame"""
532 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
536 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
538 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
540 Get the default attributes for this class. This is useful if you want
541 to use the same font or colour in your own control as in a standard
542 control -- which is a much better idea than hard coding specific
543 colours or fonts which might look completely out of place on the
544 user's system, especially if it uses themes.
546 The variant parameter is only relevant under Mac currently and is
547 ignore under other platforms. Under Mac, it will change the size of
548 the returned font. See `wx.Window.SetWindowVariant` for more about
551 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
553 #---------------------------------------------------------------------------
555 class Dialog(TopLevelWindow
):
557 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
558 def __init__(self
, *args
, **kwargs
):
560 __init__(self, Window parent, int id=-1, String title=EmptyString,
561 Point pos=DefaultPosition, Size size=DefaultSize,
562 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
564 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
565 self
.this
= newobj
.this
568 self
._setOORInfo
(self
)
570 def Create(*args
, **kwargs
):
572 Create(self, Window parent, int id=-1, String title=EmptyString,
573 Point pos=DefaultPosition, Size size=DefaultSize,
574 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
576 return _windows_
.Dialog_Create(*args
, **kwargs
)
578 def SetReturnCode(*args
, **kwargs
):
579 """SetReturnCode(self, int returnCode)"""
580 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
582 def GetReturnCode(*args
, **kwargs
):
583 """GetReturnCode(self) -> int"""
584 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
586 def CreateTextSizer(*args
, **kwargs
):
587 """CreateTextSizer(self, String message) -> Sizer"""
588 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
590 def CreateButtonSizer(*args
, **kwargs
):
591 """CreateButtonSizer(self, long flags) -> Sizer"""
592 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
594 def IsModal(*args
, **kwargs
):
595 """IsModal(self) -> bool"""
596 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
598 def ShowModal(*args
, **kwargs
):
599 """ShowModal(self) -> int"""
600 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
602 def EndModal(*args
, **kwargs
):
603 """EndModal(self, int retCode)"""
604 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
606 def GetClassDefaultAttributes(*args
, **kwargs
):
608 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
610 Get the default attributes for this class. This is useful if you want
611 to use the same font or colour in your own control as in a standard
612 control -- which is a much better idea than hard coding specific
613 colours or fonts which might look completely out of place on the
614 user's system, especially if it uses themes.
616 The variant parameter is only relevant under Mac currently and is
617 ignore under other platforms. Under Mac, it will change the size of
618 the returned font. See `wx.Window.SetWindowVariant` for more about
621 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
623 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
624 def SendSizeEvent(self
):
625 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
628 class DialogPtr(Dialog
):
629 def __init__(self
, this
):
631 if not hasattr(self
,"thisown"): self
.thisown
= 0
632 self
.__class
__ = Dialog
633 _windows_
.Dialog_swigregister(DialogPtr
)
635 def PreDialog(*args
, **kwargs
):
636 """PreDialog() -> Dialog"""
637 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
641 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
643 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
645 Get the default attributes for this class. This is useful if you want
646 to use the same font or colour in your own control as in a standard
647 control -- which is a much better idea than hard coding specific
648 colours or fonts which might look completely out of place on the
649 user's system, especially if it uses themes.
651 The variant parameter is only relevant under Mac currently and is
652 ignore under other platforms. Under Mac, it will change the size of
653 the returned font. See `wx.Window.SetWindowVariant` for more about
656 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
658 #---------------------------------------------------------------------------
660 class MiniFrame(Frame
):
662 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
663 def __init__(self
, *args
, **kwargs
):
665 __init__(self, Window parent, int id=-1, String title=EmptyString,
666 Point pos=DefaultPosition, Size size=DefaultSize,
667 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
669 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
670 self
.this
= newobj
.this
673 self
._setOORInfo
(self
)
675 def Create(*args
, **kwargs
):
677 Create(self, Window parent, int id=-1, String title=EmptyString,
678 Point pos=DefaultPosition, Size size=DefaultSize,
679 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
681 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
684 class MiniFramePtr(MiniFrame
):
685 def __init__(self
, this
):
687 if not hasattr(self
,"thisown"): self
.thisown
= 0
688 self
.__class
__ = MiniFrame
689 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
691 def PreMiniFrame(*args
, **kwargs
):
692 """PreMiniFrame() -> MiniFrame"""
693 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
697 #---------------------------------------------------------------------------
699 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
700 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
701 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
702 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
703 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
704 class SplashScreenWindow(_core
.Window
):
706 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
707 def __init__(self
, *args
, **kwargs
):
709 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
710 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
712 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
713 self
.this
= newobj
.this
716 self
._setOORInfo
(self
)
718 def SetBitmap(*args
, **kwargs
):
719 """SetBitmap(self, Bitmap bitmap)"""
720 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
722 def GetBitmap(*args
, **kwargs
):
723 """GetBitmap(self) -> Bitmap"""
724 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
727 class SplashScreenWindowPtr(SplashScreenWindow
):
728 def __init__(self
, this
):
730 if not hasattr(self
,"thisown"): self
.thisown
= 0
731 self
.__class
__ = SplashScreenWindow
732 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
734 class SplashScreen(Frame
):
736 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
737 def __init__(self
, *args
, **kwargs
):
739 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
740 Window parent, int id=-1, Point pos=DefaultPosition,
741 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
743 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
744 self
.this
= newobj
.this
747 self
._setOORInfo
(self
)
749 def GetSplashStyle(*args
, **kwargs
):
750 """GetSplashStyle(self) -> long"""
751 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
753 def GetSplashWindow(*args
, **kwargs
):
754 """GetSplashWindow(self) -> SplashScreenWindow"""
755 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
757 def GetTimeout(*args
, **kwargs
):
758 """GetTimeout(self) -> int"""
759 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
762 class SplashScreenPtr(SplashScreen
):
763 def __init__(self
, this
):
765 if not hasattr(self
,"thisown"): self
.thisown
= 0
766 self
.__class
__ = SplashScreen
767 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
769 #---------------------------------------------------------------------------
771 SB_NORMAL
= _windows_
.SB_NORMAL
772 SB_FLAT
= _windows_
.SB_FLAT
773 SB_RAISED
= _windows_
.SB_RAISED
774 class StatusBar(_core
.Window
):
776 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
777 def __init__(self
, *args
, **kwargs
):
778 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
779 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
780 self
.this
= newobj
.this
783 self
._setOORInfo
(self
)
785 def Create(*args
, **kwargs
):
786 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
787 return _windows_
.StatusBar_Create(*args
, **kwargs
)
789 def SetFieldsCount(*args
, **kwargs
):
790 """SetFieldsCount(self, int number=1)"""
791 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
793 def GetFieldsCount(*args
, **kwargs
):
794 """GetFieldsCount(self) -> int"""
795 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
797 def SetStatusText(*args
, **kwargs
):
798 """SetStatusText(self, String text, int number=0)"""
799 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
801 def GetStatusText(*args
, **kwargs
):
802 """GetStatusText(self, int number=0) -> String"""
803 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
805 def PushStatusText(*args
, **kwargs
):
806 """PushStatusText(self, String text, int number=0)"""
807 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
809 def PopStatusText(*args
, **kwargs
):
810 """PopStatusText(self, int number=0)"""
811 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
813 def SetStatusWidths(*args
, **kwargs
):
814 """SetStatusWidths(self, int widths, int widths_field)"""
815 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
817 def SetStatusStyles(*args
, **kwargs
):
818 """SetStatusStyles(self, int styles, int styles_field)"""
819 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
821 def GetFieldRect(*args
, **kwargs
):
822 """GetFieldRect(self, int i) -> Rect"""
823 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
825 def SetMinHeight(*args
, **kwargs
):
826 """SetMinHeight(self, int height)"""
827 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
829 def GetBorderX(*args
, **kwargs
):
830 """GetBorderX(self) -> int"""
831 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
833 def GetBorderY(*args
, **kwargs
):
834 """GetBorderY(self) -> int"""
835 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
837 def GetClassDefaultAttributes(*args
, **kwargs
):
839 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
841 Get the default attributes for this class. This is useful if you want
842 to use the same font or colour in your own control as in a standard
843 control -- which is a much better idea than hard coding specific
844 colours or fonts which might look completely out of place on the
845 user's system, especially if it uses themes.
847 The variant parameter is only relevant under Mac currently and is
848 ignore under other platforms. Under Mac, it will change the size of
849 the returned font. See `wx.Window.SetWindowVariant` for more about
852 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
854 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
856 class StatusBarPtr(StatusBar
):
857 def __init__(self
, this
):
859 if not hasattr(self
,"thisown"): self
.thisown
= 0
860 self
.__class
__ = StatusBar
861 _windows_
.StatusBar_swigregister(StatusBarPtr
)
863 def PreStatusBar(*args
, **kwargs
):
864 """PreStatusBar() -> StatusBar"""
865 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
869 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
871 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
873 Get the default attributes for this class. This is useful if you want
874 to use the same font or colour in your own control as in a standard
875 control -- which is a much better idea than hard coding specific
876 colours or fonts which might look completely out of place on the
877 user's system, especially if it uses themes.
879 The variant parameter is only relevant under Mac currently and is
880 ignore under other platforms. Under Mac, it will change the size of
881 the returned font. See `wx.Window.SetWindowVariant` for more about
884 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
886 #---------------------------------------------------------------------------
888 SP_NOBORDER
= _windows_
.SP_NOBORDER
889 SP_NOSASH
= _windows_
.SP_NOSASH
890 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
891 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
892 SP_3DSASH
= _windows_
.SP_3DSASH
893 SP_3DBORDER
= _windows_
.SP_3DBORDER
894 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
895 SP_BORDER
= _windows_
.SP_BORDER
896 SP_3D
= _windows_
.SP_3D
897 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
898 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
899 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
900 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
901 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
902 class SplitterWindow(_core
.Window
):
904 wx.SplitterWindow manages up to two subwindows or panes, with an
905 optional vertical or horizontal split which can be used with the mouse
909 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
910 def __init__(self
, *args
, **kwargs
):
912 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
913 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
915 Constructor. Creates and shows a SplitterWindow.
917 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
918 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
919 self
.this
= newobj
.this
922 self
._setOORInfo
(self
)
924 def Create(*args
, **kwargs
):
926 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
927 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
929 Create the GUI part of the SplitterWindow for the 2-phase create.
931 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
933 def GetWindow1(*args
, **kwargs
):
935 GetWindow1(self) -> Window
937 Gets the only or left/top pane.
939 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
941 def GetWindow2(*args
, **kwargs
):
943 GetWindow2(self) -> Window
945 Gets the right/bottom pane.
947 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
949 def SetSplitMode(*args
, **kwargs
):
951 SetSplitMode(self, int mode)
953 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
954 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
957 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
959 def GetSplitMode(*args
, **kwargs
):
961 GetSplitMode(self) -> int
965 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
967 def Initialize(*args
, **kwargs
):
969 Initialize(self, Window window)
971 Initializes the splitter window to have one pane. This should be
972 called if you wish to initially view only a single pane in the
975 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
977 def SplitVertically(*args
, **kwargs
):
979 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
981 Initializes the left and right panes of the splitter window.
983 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
985 def SplitHorizontally(*args
, **kwargs
):
987 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
989 Initializes the top and bottom panes of the splitter window.
991 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
993 def Unsplit(*args
, **kwargs
):
995 Unsplit(self, Window toRemove=None) -> bool
997 Unsplits the window. Pass the pane to remove, or None to remove the
998 right or bottom pane. Returns True if successful, False otherwise (the
999 window was not split).
1001 This function will not actually delete the pane being
1002 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1003 for the desired behaviour. By default, the pane being
1004 removed is only hidden.
1006 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1008 def ReplaceWindow(*args
, **kwargs
):
1010 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1012 This function replaces one of the windows managed by the
1013 SplitterWindow with another one. It is in general better to use it
1014 instead of calling Unsplit() and then resplitting the window back
1015 because it will provoke much less flicker. It is valid to call this
1016 function whether the splitter has two windows or only one.
1018 Both parameters should be non-None and winOld must specify one of the
1019 windows managed by the splitter. If the parameters are incorrect or
1020 the window couldn't be replaced, False is returned. Otherwise the
1021 function will return True, but please notice that it will not Destroy
1022 the replaced window and you may wish to do it yourself.
1024 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1026 def UpdateSize(*args
, **kwargs
):
1030 Causes any pending sizing of the sash and child panes to take place
1033 Such resizing normally takes place in idle time, in order to wait for
1034 layout to be completed. However, this can cause unacceptable flicker
1035 as the panes are resized after the window has been shown. To work
1036 around this, you can perform window layout (for example by sending a
1037 size event to the parent window), and then call this function, before
1038 showing the top-level window.
1040 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1042 def IsSplit(*args
, **kwargs
):
1044 IsSplit(self) -> bool
1046 Is the window split?
1048 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1050 def SetSashSize(*args
, **kwargs
):
1052 SetSashSize(self, int width)
1056 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1058 def SetBorderSize(*args
, **kwargs
):
1060 SetBorderSize(self, int width)
1062 Sets the border size
1064 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1066 def GetSashSize(*args
, **kwargs
):
1068 GetSashSize(self) -> int
1072 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1074 def GetBorderSize(*args
, **kwargs
):
1076 GetBorderSize(self) -> int
1078 Gets the border size
1080 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1082 def SetSashPosition(*args
, **kwargs
):
1084 SetSashPosition(self, int position, bool redraw=True)
1086 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1087 are resized and the sash and border are redrawn.
1089 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1091 def GetSashPosition(*args
, **kwargs
):
1093 GetSashPosition(self) -> int
1095 Returns the surrent sash position.
1097 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1099 def SetMinimumPaneSize(*args
, **kwargs
):
1101 SetMinimumPaneSize(self, int min)
1103 Sets the minimum pane size in pixels.
1105 The default minimum pane size is zero, which means that either pane
1106 can be reduced to zero by dragging the sash, thus removing one of the
1107 panes. To prevent this behaviour (and veto out-of-range sash
1108 dragging), set a minimum size, for example 20 pixels. If the
1109 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1110 the window may be unsplit even if minimum size is non-zero.
1112 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1114 def GetMinimumPaneSize(*args
, **kwargs
):
1116 GetMinimumPaneSize(self) -> int
1118 Gets the minimum pane size in pixels.
1120 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1122 def SashHitTest(*args
, **kwargs
):
1124 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1126 Tests for x, y over the sash
1128 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1130 def SizeWindows(*args
, **kwargs
):
1136 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1138 def SetNeedUpdating(*args
, **kwargs
):
1139 """SetNeedUpdating(self, bool needUpdating)"""
1140 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1142 def GetNeedUpdating(*args
, **kwargs
):
1143 """GetNeedUpdating(self) -> bool"""
1144 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1146 def GetClassDefaultAttributes(*args
, **kwargs
):
1148 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1150 Get the default attributes for this class. This is useful if you want
1151 to use the same font or colour in your own control as in a standard
1152 control -- which is a much better idea than hard coding specific
1153 colours or fonts which might look completely out of place on the
1154 user's system, especially if it uses themes.
1156 The variant parameter is only relevant under Mac currently and is
1157 ignore under other platforms. Under Mac, it will change the size of
1158 the returned font. See `wx.Window.SetWindowVariant` for more about
1161 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1163 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1165 class SplitterWindowPtr(SplitterWindow
):
1166 def __init__(self
, this
):
1168 if not hasattr(self
,"thisown"): self
.thisown
= 0
1169 self
.__class
__ = SplitterWindow
1170 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1171 SplitterNameStr
= cvar
.SplitterNameStr
1173 def PreSplitterWindow(*args
, **kwargs
):
1175 PreSplitterWindow() -> SplitterWindow
1177 Precreate a SplitterWindow for 2-phase creation.
1179 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1183 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1185 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1187 Get the default attributes for this class. This is useful if you want
1188 to use the same font or colour in your own control as in a standard
1189 control -- which is a much better idea than hard coding specific
1190 colours or fonts which might look completely out of place on the
1191 user's system, especially if it uses themes.
1193 The variant parameter is only relevant under Mac currently and is
1194 ignore under other platforms. Under Mac, it will change the size of
1195 the returned font. See `wx.Window.SetWindowVariant` for more about
1198 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1200 class SplitterEvent(_core
.NotifyEvent
):
1201 """This class represents the events generated by a splitter control."""
1203 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1204 def __init__(self
, *args
, **kwargs
):
1206 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1208 This class represents the events generated by a splitter control.
1210 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1211 self
.this
= newobj
.this
1214 def SetSashPosition(*args
, **kwargs
):
1216 SetSashPosition(self, int pos)
1218 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1219 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1220 events, sets the the new sash position. In the case of _CHANGING
1221 events, sets the new tracking bar position so visual feedback during
1222 dragging will represent that change that will actually take place. Set
1223 to -1 from the event handler code to prevent repositioning.
1225 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1227 def GetSashPosition(*args
, **kwargs
):
1229 GetSashPosition(self) -> int
1231 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1232 and EVT_SPLITTER_SASH_POS_CHANGED events.
1234 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1236 def GetWindowBeingRemoved(*args
, **kwargs
):
1238 GetWindowBeingRemoved(self) -> Window
1240 Returns a pointer to the window being removed when a splitter window
1243 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1245 def GetX(*args
, **kwargs
):
1249 Returns the x coordinate of the double-click point in a
1250 EVT_SPLITTER_DCLICK event.
1252 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1254 def GetY(*args
, **kwargs
):
1258 Returns the y coordinate of the double-click point in a
1259 EVT_SPLITTER_DCLICK event.
1261 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1264 class SplitterEventPtr(SplitterEvent
):
1265 def __init__(self
, this
):
1267 if not hasattr(self
,"thisown"): self
.thisown
= 0
1268 self
.__class
__ = SplitterEvent
1269 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1271 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1272 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1273 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1274 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1275 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1276 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1277 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1278 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1279 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1281 #---------------------------------------------------------------------------
1283 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1284 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1285 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1286 SW_NOBORDER
= _windows_
.SW_NOBORDER
1287 SW_BORDER
= _windows_
.SW_BORDER
1288 SW_3DSASH
= _windows_
.SW_3DSASH
1289 SW_3DBORDER
= _windows_
.SW_3DBORDER
1290 SW_3D
= _windows_
.SW_3D
1291 SASH_TOP
= _windows_
.SASH_TOP
1292 SASH_RIGHT
= _windows_
.SASH_RIGHT
1293 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1294 SASH_LEFT
= _windows_
.SASH_LEFT
1295 SASH_NONE
= _windows_
.SASH_NONE
1296 class SashWindow(_core
.Window
):
1298 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1299 def __init__(self
, *args
, **kwargs
):
1301 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1302 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1303 String name=SashNameStr) -> SashWindow
1305 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1306 self
.this
= newobj
.this
1309 self
._setOORInfo
(self
)
1311 def Create(*args
, **kwargs
):
1313 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1314 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1315 String name=SashNameStr) -> bool
1317 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1319 def SetSashVisible(*args
, **kwargs
):
1320 """SetSashVisible(self, int edge, bool sash)"""
1321 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1323 def GetSashVisible(*args
, **kwargs
):
1324 """GetSashVisible(self, int edge) -> bool"""
1325 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1327 def SetSashBorder(*args
, **kwargs
):
1328 """SetSashBorder(self, int edge, bool border)"""
1329 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1331 def HasBorder(*args
, **kwargs
):
1332 """HasBorder(self, int edge) -> bool"""
1333 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1335 def GetEdgeMargin(*args
, **kwargs
):
1336 """GetEdgeMargin(self, int edge) -> int"""
1337 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1339 def SetDefaultBorderSize(*args
, **kwargs
):
1340 """SetDefaultBorderSize(self, int width)"""
1341 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1343 def GetDefaultBorderSize(*args
, **kwargs
):
1344 """GetDefaultBorderSize(self) -> int"""
1345 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1347 def SetExtraBorderSize(*args
, **kwargs
):
1348 """SetExtraBorderSize(self, int width)"""
1349 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1351 def GetExtraBorderSize(*args
, **kwargs
):
1352 """GetExtraBorderSize(self) -> int"""
1353 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1355 def SetMinimumSizeX(*args
, **kwargs
):
1356 """SetMinimumSizeX(self, int min)"""
1357 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1359 def SetMinimumSizeY(*args
, **kwargs
):
1360 """SetMinimumSizeY(self, int min)"""
1361 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1363 def GetMinimumSizeX(*args
, **kwargs
):
1364 """GetMinimumSizeX(self) -> int"""
1365 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1367 def GetMinimumSizeY(*args
, **kwargs
):
1368 """GetMinimumSizeY(self) -> int"""
1369 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1371 def SetMaximumSizeX(*args
, **kwargs
):
1372 """SetMaximumSizeX(self, int max)"""
1373 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1375 def SetMaximumSizeY(*args
, **kwargs
):
1376 """SetMaximumSizeY(self, int max)"""
1377 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1379 def GetMaximumSizeX(*args
, **kwargs
):
1380 """GetMaximumSizeX(self) -> int"""
1381 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1383 def GetMaximumSizeY(*args
, **kwargs
):
1384 """GetMaximumSizeY(self) -> int"""
1385 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1387 def SashHitTest(*args
, **kwargs
):
1388 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1389 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1391 def SizeWindows(*args
, **kwargs
):
1392 """SizeWindows(self)"""
1393 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1396 class SashWindowPtr(SashWindow
):
1397 def __init__(self
, this
):
1399 if not hasattr(self
,"thisown"): self
.thisown
= 0
1400 self
.__class
__ = SashWindow
1401 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1402 SashNameStr
= cvar
.SashNameStr
1403 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1405 def PreSashWindow(*args
, **kwargs
):
1406 """PreSashWindow() -> SashWindow"""
1407 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1411 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1412 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1413 class SashEvent(_core
.CommandEvent
):
1415 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1416 def __init__(self
, *args
, **kwargs
):
1417 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1418 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1419 self
.this
= newobj
.this
1422 def SetEdge(*args
, **kwargs
):
1423 """SetEdge(self, int edge)"""
1424 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1426 def GetEdge(*args
, **kwargs
):
1427 """GetEdge(self) -> int"""
1428 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1430 def SetDragRect(*args
, **kwargs
):
1431 """SetDragRect(self, Rect rect)"""
1432 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1434 def GetDragRect(*args
, **kwargs
):
1435 """GetDragRect(self) -> Rect"""
1436 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1438 def SetDragStatus(*args
, **kwargs
):
1439 """SetDragStatus(self, int status)"""
1440 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1442 def GetDragStatus(*args
, **kwargs
):
1443 """GetDragStatus(self) -> int"""
1444 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1447 class SashEventPtr(SashEvent
):
1448 def __init__(self
, this
):
1450 if not hasattr(self
,"thisown"): self
.thisown
= 0
1451 self
.__class
__ = SashEvent
1452 _windows_
.SashEvent_swigregister(SashEventPtr
)
1454 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1455 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1456 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1458 #---------------------------------------------------------------------------
1460 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1461 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1462 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1463 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1464 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1465 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1466 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1467 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1468 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1469 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1470 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1471 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1472 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1473 class QueryLayoutInfoEvent(_core
.Event
):
1475 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1476 def __init__(self
, *args
, **kwargs
):
1477 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1478 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1479 self
.this
= newobj
.this
1482 def SetRequestedLength(*args
, **kwargs
):
1483 """SetRequestedLength(self, int length)"""
1484 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1486 def GetRequestedLength(*args
, **kwargs
):
1487 """GetRequestedLength(self) -> int"""
1488 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1490 def SetFlags(*args
, **kwargs
):
1491 """SetFlags(self, int flags)"""
1492 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1494 def GetFlags(*args
, **kwargs
):
1495 """GetFlags(self) -> int"""
1496 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1498 def SetSize(*args
, **kwargs
):
1499 """SetSize(self, Size size)"""
1500 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1502 def GetSize(*args
, **kwargs
):
1503 """GetSize(self) -> Size"""
1504 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1506 def SetOrientation(*args
, **kwargs
):
1507 """SetOrientation(self, int orient)"""
1508 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1510 def GetOrientation(*args
, **kwargs
):
1511 """GetOrientation(self) -> int"""
1512 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1514 def SetAlignment(*args
, **kwargs
):
1515 """SetAlignment(self, int align)"""
1516 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1518 def GetAlignment(*args
, **kwargs
):
1519 """GetAlignment(self) -> int"""
1520 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1523 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1524 def __init__(self
, this
):
1526 if not hasattr(self
,"thisown"): self
.thisown
= 0
1527 self
.__class
__ = QueryLayoutInfoEvent
1528 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1530 class CalculateLayoutEvent(_core
.Event
):
1532 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1533 def __init__(self
, *args
, **kwargs
):
1534 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1535 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1536 self
.this
= newobj
.this
1539 def SetFlags(*args
, **kwargs
):
1540 """SetFlags(self, int flags)"""
1541 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1543 def GetFlags(*args
, **kwargs
):
1544 """GetFlags(self) -> int"""
1545 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1547 def SetRect(*args
, **kwargs
):
1548 """SetRect(self, Rect rect)"""
1549 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1551 def GetRect(*args
, **kwargs
):
1552 """GetRect(self) -> Rect"""
1553 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1556 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1557 def __init__(self
, this
):
1559 if not hasattr(self
,"thisown"): self
.thisown
= 0
1560 self
.__class
__ = CalculateLayoutEvent
1561 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1563 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1564 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1566 class SashLayoutWindow(SashWindow
):
1568 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1569 def __init__(self
, *args
, **kwargs
):
1571 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1572 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1573 String name=SashLayoutNameStr) -> SashLayoutWindow
1575 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1576 self
.this
= newobj
.this
1579 self
._setOORInfo
(self
)
1581 def Create(*args
, **kwargs
):
1583 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1584 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1585 String name=SashLayoutNameStr) -> bool
1587 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1589 def GetAlignment(*args
, **kwargs
):
1590 """GetAlignment(self) -> int"""
1591 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1593 def GetOrientation(*args
, **kwargs
):
1594 """GetOrientation(self) -> int"""
1595 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1597 def SetAlignment(*args
, **kwargs
):
1598 """SetAlignment(self, int alignment)"""
1599 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1601 def SetDefaultSize(*args
, **kwargs
):
1602 """SetDefaultSize(self, Size size)"""
1603 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1605 def SetOrientation(*args
, **kwargs
):
1606 """SetOrientation(self, int orientation)"""
1607 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1610 class SashLayoutWindowPtr(SashLayoutWindow
):
1611 def __init__(self
, this
):
1613 if not hasattr(self
,"thisown"): self
.thisown
= 0
1614 self
.__class
__ = SashLayoutWindow
1615 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1617 def PreSashLayoutWindow(*args
, **kwargs
):
1618 """PreSashLayoutWindow() -> SashLayoutWindow"""
1619 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1623 class LayoutAlgorithm(_core
.Object
):
1625 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1626 def __init__(self
, *args
, **kwargs
):
1627 """__init__(self) -> LayoutAlgorithm"""
1628 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1629 self
.this
= newobj
.this
1632 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1635 if self
.thisown
: destroy(self
)
1638 def LayoutMDIFrame(*args
, **kwargs
):
1639 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1640 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1642 def LayoutFrame(*args
, **kwargs
):
1643 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1644 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1646 def LayoutWindow(*args
, **kwargs
):
1647 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1648 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1651 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1652 def __init__(self
, this
):
1654 if not hasattr(self
,"thisown"): self
.thisown
= 0
1655 self
.__class
__ = LayoutAlgorithm
1656 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1658 class PopupWindow(_core
.Window
):
1660 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1661 def __init__(self
, *args
, **kwargs
):
1662 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1663 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1664 self
.this
= newobj
.this
1668 class PopupWindowPtr(PopupWindow
):
1669 def __init__(self
, this
):
1671 if not hasattr(self
,"thisown"): self
.thisown
= 0
1672 self
.__class
__ = PopupWindow
1673 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1675 def PrePopupWindow(*args
, **kwargs
):
1676 """PrePopupWindow() -> PopupWindow"""
1677 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1681 class PopupTransientWindow(PopupWindow
):
1683 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1684 def __init__(self
, *args
, **kwargs
):
1685 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1686 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1687 self
.this
= newobj
.this
1691 class PopupTransientWindowPtr(PopupTransientWindow
):
1692 def __init__(self
, this
):
1694 if not hasattr(self
,"thisown"): self
.thisown
= 0
1695 self
.__class
__ = PopupTransientWindow
1696 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1698 def PrePopupTransientWindow(*args
, **kwargs
):
1699 """PrePopupTransientWindow() -> PopupTransientWindow"""
1700 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1704 #---------------------------------------------------------------------------
1706 class TipWindow(Frame
):
1708 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1709 def __init__(self
, *args
, **kwargs
):
1710 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1711 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1712 self
.this
= newobj
.this
1715 self
._setOORInfo
(self
)
1717 def SetBoundingRect(*args
, **kwargs
):
1718 """SetBoundingRect(self, Rect rectBound)"""
1719 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1721 def Close(*args
, **kwargs
):
1723 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1726 class TipWindowPtr(TipWindow
):
1727 def __init__(self
, this
):
1729 if not hasattr(self
,"thisown"): self
.thisown
= 0
1730 self
.__class
__ = TipWindow
1731 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1733 #---------------------------------------------------------------------------
1735 class VScrolledWindow(Panel
):
1737 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1738 def __init__(self
, *args
, **kwargs
):
1740 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1741 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1743 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1744 self
.this
= newobj
.this
1747 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1749 def _setCallbackInfo(*args
, **kwargs
):
1750 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1751 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1753 def Create(*args
, **kwargs
):
1755 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1756 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1758 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1760 def SetLineCount(*args
, **kwargs
):
1761 """SetLineCount(self, size_t count)"""
1762 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1764 def ScrollToLine(*args
, **kwargs
):
1765 """ScrollToLine(self, size_t line) -> bool"""
1766 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1768 def ScrollLines(*args
, **kwargs
):
1770 ScrollLines(self, int lines) -> bool
1772 If the platform and window class supports it, scrolls the window by
1773 the given number of lines down, if lines is positive, or up if lines
1774 is negative. Returns True if the window was scrolled, False if it was
1775 already on top/bottom and nothing was done.
1777 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1779 def ScrollPages(*args
, **kwargs
):
1781 ScrollPages(self, int pages) -> bool
1783 If the platform and window class supports it, scrolls the window by
1784 the given number of pages down, if pages is positive, or up if pages
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_ScrollPages(*args
, **kwargs
)
1790 def RefreshLine(*args
, **kwargs
):
1791 """RefreshLine(self, size_t line)"""
1792 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1794 def RefreshLines(*args
, **kwargs
):
1795 """RefreshLines(self, size_t from, size_t to)"""
1796 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1798 def HitTestXY(*args
, **kwargs
):
1800 HitTestXY(self, int x, int y) -> int
1802 Test where the given (in client coords) point lies
1804 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1806 def HitTest(*args
, **kwargs
):
1808 HitTest(self, Point pt) -> int
1810 Test where the given (in client coords) point lies
1812 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1814 def RefreshAll(*args
, **kwargs
):
1815 """RefreshAll(self)"""
1816 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1818 def GetLineCount(*args
, **kwargs
):
1819 """GetLineCount(self) -> size_t"""
1820 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1822 def GetFirstVisibleLine(*args
, **kwargs
):
1823 """GetFirstVisibleLine(self) -> size_t"""
1824 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1826 def GetLastVisibleLine(*args
, **kwargs
):
1827 """GetLastVisibleLine(self) -> size_t"""
1828 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1830 def IsVisible(*args
, **kwargs
):
1831 """IsVisible(self, size_t line) -> bool"""
1832 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1835 class VScrolledWindowPtr(VScrolledWindow
):
1836 def __init__(self
, this
):
1838 if not hasattr(self
,"thisown"): self
.thisown
= 0
1839 self
.__class
__ = VScrolledWindow
1840 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1842 def PreVScrolledWindow(*args
, **kwargs
):
1843 """PreVScrolledWindow() -> VScrolledWindow"""
1844 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1848 class VListBox(VScrolledWindow
):
1850 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1851 def __init__(self
, *args
, **kwargs
):
1853 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1854 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1856 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1857 self
.this
= newobj
.this
1860 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1862 def _setCallbackInfo(*args
, **kwargs
):
1863 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1864 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1866 def Create(*args
, **kwargs
):
1868 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1869 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1871 return _windows_
.VListBox_Create(*args
, **kwargs
)
1873 def GetItemCount(*args
, **kwargs
):
1874 """GetItemCount(self) -> size_t"""
1875 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1877 def HasMultipleSelection(*args
, **kwargs
):
1878 """HasMultipleSelection(self) -> bool"""
1879 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1881 def GetSelection(*args
, **kwargs
):
1882 """GetSelection(self) -> int"""
1883 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1885 def IsCurrent(*args
, **kwargs
):
1886 """IsCurrent(self, size_t item) -> bool"""
1887 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1889 def IsSelected(*args
, **kwargs
):
1890 """IsSelected(self, size_t item) -> bool"""
1891 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1893 def GetSelectedCount(*args
, **kwargs
):
1894 """GetSelectedCount(self) -> size_t"""
1895 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1897 def GetFirstSelected(*args
, **kwargs
):
1898 """GetFirstSelected(self) -> PyObject"""
1899 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1901 def GetNextSelected(*args
, **kwargs
):
1902 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1903 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1905 def GetMargins(*args
, **kwargs
):
1906 """GetMargins(self) -> Point"""
1907 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1909 def GetSelectionBackground(*args
, **kwargs
):
1910 """GetSelectionBackground(self) -> Colour"""
1911 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1913 def SetItemCount(*args
, **kwargs
):
1914 """SetItemCount(self, size_t count)"""
1915 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1917 def Clear(*args
, **kwargs
):
1919 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1921 def SetSelection(*args
, **kwargs
):
1922 """SetSelection(self, int selection)"""
1923 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1925 def Select(*args
, **kwargs
):
1926 """Select(self, size_t item, bool select=True) -> bool"""
1927 return _windows_
.VListBox_Select(*args
, **kwargs
)
1929 def SelectRange(*args
, **kwargs
):
1930 """SelectRange(self, size_t from, size_t to) -> bool"""
1931 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1933 def Toggle(*args
, **kwargs
):
1934 """Toggle(self, size_t item)"""
1935 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1937 def SelectAll(*args
, **kwargs
):
1938 """SelectAll(self) -> bool"""
1939 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1941 def DeselectAll(*args
, **kwargs
):
1942 """DeselectAll(self) -> bool"""
1943 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1945 def SetMargins(*args
, **kwargs
):
1946 """SetMargins(self, Point pt)"""
1947 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1949 def SetMarginsXY(*args
, **kwargs
):
1950 """SetMarginsXY(self, int x, int y)"""
1951 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1953 def SetSelectionBackground(*args
, **kwargs
):
1954 """SetSelectionBackground(self, Colour col)"""
1955 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1958 class VListBoxPtr(VListBox
):
1959 def __init__(self
, this
):
1961 if not hasattr(self
,"thisown"): self
.thisown
= 0
1962 self
.__class
__ = VListBox
1963 _windows_
.VListBox_swigregister(VListBoxPtr
)
1964 VListBoxNameStr
= cvar
.VListBoxNameStr
1966 def PreVListBox(*args
, **kwargs
):
1967 """PreVListBox() -> VListBox"""
1968 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1972 class HtmlListBox(VListBox
):
1974 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1975 def __init__(self
, *args
, **kwargs
):
1977 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1978 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1980 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
1981 self
.this
= newobj
.this
1984 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1986 def _setCallbackInfo(*args
, **kwargs
):
1987 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1988 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1990 def Create(*args
, **kwargs
):
1992 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1993 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1995 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1997 def RefreshAll(*args
, **kwargs
):
1998 """RefreshAll(self)"""
1999 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2001 def SetItemCount(*args
, **kwargs
):
2002 """SetItemCount(self, size_t count)"""
2003 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2005 def GetFileSystem(*args
, **kwargs
):
2006 """GetFileSystem(self) -> FileSystem"""
2007 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2010 class HtmlListBoxPtr(HtmlListBox
):
2011 def __init__(self
, this
):
2013 if not hasattr(self
,"thisown"): self
.thisown
= 0
2014 self
.__class
__ = HtmlListBox
2015 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2017 def PreHtmlListBox(*args
, **kwargs
):
2018 """PreHtmlListBox() -> HtmlListBox"""
2019 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2023 #---------------------------------------------------------------------------
2025 class TaskBarIcon(_core
.EvtHandler
):
2027 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2028 def __init__(self
, *args
, **kwargs
):
2029 """__init__(self) -> TaskBarIcon"""
2030 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2031 self
.this
= newobj
.this
2034 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2037 if self
.thisown
: destroy(self
)
2040 def Destroy(*args
, **kwargs
):
2044 Deletes the C++ object this Python object is a proxy for.
2046 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2049 class TaskBarIconPtr(TaskBarIcon
):
2050 def __init__(self
, this
):
2052 if not hasattr(self
,"thisown"): self
.thisown
= 0
2053 self
.__class
__ = TaskBarIcon
2054 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2056 class TaskBarIconEvent(_core
.Event
):
2058 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2059 def __init__(self
, *args
, **kwargs
):
2060 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2061 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2062 self
.this
= newobj
.this
2066 class TaskBarIconEventPtr(TaskBarIconEvent
):
2067 def __init__(self
, this
):
2069 if not hasattr(self
,"thisown"): self
.thisown
= 0
2070 self
.__class
__ = TaskBarIconEvent
2071 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2073 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2074 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2075 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2076 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2077 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2078 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2079 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2080 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2081 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2082 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2083 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2084 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2085 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2086 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2088 #---------------------------------------------------------------------------
2090 class ColourData(_core
.Object
):
2092 This class holds a variety of information related to the colour
2093 chooser dialog, used to transfer settings and results to and from the
2097 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2098 def __init__(self
, *args
, **kwargs
):
2100 __init__(self) -> ColourData
2102 Constructor, sets default values.
2104 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2105 self
.this
= newobj
.this
2108 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2111 if self
.thisown
: destroy(self
)
2114 def GetChooseFull(*args
, **kwargs
):
2116 GetChooseFull(self) -> bool
2118 Under Windows, determines whether the Windows colour dialog will
2119 display the full dialog with custom colour selection controls. Has no
2120 meaning under other platforms. The default value is true.
2122 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2124 def GetColour(*args
, **kwargs
):
2126 GetColour(self) -> Colour
2128 Gets the colour (pre)selected by the dialog.
2130 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2132 def GetCustomColour(*args
, **kwargs
):
2134 GetCustomColour(self, int i) -> Colour
2136 Gets the i'th custom colour associated with the colour dialog. i
2137 should be an integer between 0 and 15. The default custom colours are
2138 all invalid colours.
2140 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2142 def SetChooseFull(*args
, **kwargs
):
2144 SetChooseFull(self, int flag)
2146 Under Windows, tells the Windows colour dialog to display the full
2147 dialog with custom colour selection controls. Under other platforms,
2148 has no effect. The default value is true.
2150 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2152 def SetColour(*args
, **kwargs
):
2154 SetColour(self, Colour colour)
2156 Sets the default colour for the colour dialog. The default colour is
2159 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2161 def SetCustomColour(*args
, **kwargs
):
2163 SetCustomColour(self, int i, Colour colour)
2165 Sets the i'th custom colour for the colour dialog. i should be an
2166 integer between 0 and 15. The default custom colours are all invalid colours.
2168 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2171 class ColourDataPtr(ColourData
):
2172 def __init__(self
, this
):
2174 if not hasattr(self
,"thisown"): self
.thisown
= 0
2175 self
.__class
__ = ColourData
2176 _windows_
.ColourData_swigregister(ColourDataPtr
)
2177 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2178 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2179 DirDialogNameStr
= cvar
.DirDialogNameStr
2180 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2181 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2182 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2184 class ColourDialog(Dialog
):
2185 """This class represents the colour chooser dialog."""
2187 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2188 def __init__(self
, *args
, **kwargs
):
2190 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2192 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2193 which will be copied to the colour dialog's internal ColourData
2196 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2197 self
.this
= newobj
.this
2200 self
._setOORInfo
(self
)
2202 def GetColourData(*args
, **kwargs
):
2204 GetColourData(self) -> ColourData
2206 Returns a reference to the `wx.ColourData` used by the dialog.
2208 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2211 class ColourDialogPtr(ColourDialog
):
2212 def __init__(self
, this
):
2214 if not hasattr(self
,"thisown"): self
.thisown
= 0
2215 self
.__class
__ = ColourDialog
2216 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2218 class DirDialog(Dialog
):
2220 wx.DirDialog allows the user to select a directory by browising the
2224 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2225 def __init__(self
, *args
, **kwargs
):
2227 __init__(self, Window parent, String message=DirSelectorPromptStr,
2228 String defaultPath=EmptyString, long style=0,
2229 Point pos=DefaultPosition, Size size=DefaultSize,
2230 String name=DirDialogNameStr) -> DirDialog
2232 Constructor. Use ShowModal method to show the dialog.
2234 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2235 self
.this
= newobj
.this
2238 self
._setOORInfo
(self
)
2240 def GetPath(*args
, **kwargs
):
2242 GetPath(self) -> String
2244 Returns the default or user-selected path.
2246 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2248 def GetMessage(*args
, **kwargs
):
2250 GetMessage(self) -> String
2252 Returns the message that will be displayed on the dialog.
2254 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2256 def GetStyle(*args
, **kwargs
):
2258 GetStyle(self) -> long
2260 Returns the dialog style.
2262 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2264 def SetMessage(*args
, **kwargs
):
2266 SetMessage(self, String message)
2268 Sets the message that will be displayed on the dialog.
2270 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2272 def SetPath(*args
, **kwargs
):
2274 SetPath(self, String path)
2276 Sets the default path.
2278 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2281 class DirDialogPtr(DirDialog
):
2282 def __init__(self
, this
):
2284 if not hasattr(self
,"thisown"): self
.thisown
= 0
2285 self
.__class
__ = DirDialog
2286 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2288 class FileDialog(Dialog
):
2290 wx.FileDialog allows the user to select one or more files from the
2294 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2295 def __init__(self
, *args
, **kwargs
):
2297 __init__(self, Window parent, String message=FileSelectorPromptStr,
2298 String defaultDir=EmptyString, String defaultFile=EmptyString,
2299 String wildcard=FileSelectorDefaultWildcardStr,
2300 long style=0, Point pos=DefaultPosition) -> FileDialog
2302 Constructor. Use ShowModal method to show the dialog.
2304 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2305 self
.this
= newobj
.this
2308 self
._setOORInfo
(self
)
2310 def SetMessage(*args
, **kwargs
):
2312 SetMessage(self, String message)
2314 Sets the message that will be displayed on the dialog.
2316 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2318 def SetPath(*args
, **kwargs
):
2320 SetPath(self, String path)
2322 Sets the path (the combined directory and filename that will be
2323 returned when the dialog is dismissed).
2325 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2327 def SetDirectory(*args
, **kwargs
):
2329 SetDirectory(self, String dir)
2331 Sets the default directory.
2333 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2335 def SetFilename(*args
, **kwargs
):
2337 SetFilename(self, String name)
2339 Sets the default filename.
2341 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2343 def SetWildcard(*args
, **kwargs
):
2345 SetWildcard(self, String wildCard)
2347 Sets the wildcard, which can contain multiple file types, for
2350 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2353 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2355 def SetStyle(*args
, **kwargs
):
2357 SetStyle(self, long style)
2359 Sets the dialog style.
2361 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2363 def SetFilterIndex(*args
, **kwargs
):
2365 SetFilterIndex(self, int filterIndex)
2367 Sets the default filter index, starting from zero.
2369 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2371 def GetMessage(*args
, **kwargs
):
2373 GetMessage(self) -> String
2375 Returns the message that will be displayed on the dialog.
2377 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2379 def GetPath(*args
, **kwargs
):
2381 GetPath(self) -> String
2383 Returns the full path (directory and filename) of the selected file.
2385 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2387 def GetDirectory(*args
, **kwargs
):
2389 GetDirectory(self) -> String
2391 Returns the default directory.
2393 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2395 def GetFilename(*args
, **kwargs
):
2397 GetFilename(self) -> String
2399 Returns the default filename.
2401 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2403 def GetWildcard(*args
, **kwargs
):
2405 GetWildcard(self) -> String
2407 Returns the file dialog wildcard.
2409 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2411 def GetStyle(*args
, **kwargs
):
2413 GetStyle(self) -> long
2415 Returns the dialog style.
2417 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2419 def GetFilterIndex(*args
, **kwargs
):
2421 GetFilterIndex(self) -> int
2423 Returns the index into the list of filters supplied, optionally, in
2424 the wildcard parameter. Before the dialog is shown, this is the index
2425 which will be used when the dialog is first displayed. After the
2426 dialog is shown, this is the index selected by the user.
2428 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2430 def GetFilenames(*args
, **kwargs
):
2432 GetFilenames(self) -> PyObject
2434 Returns a list of filenames chosen in the dialog. This function
2435 should only be used with the dialogs which have wx.MULTIPLE style, use
2436 GetFilename for the others.
2438 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2440 def GetPaths(*args
, **kwargs
):
2442 GetPaths(self) -> PyObject
2444 Fills the array paths with the full paths of the files chosen. This
2445 function should only be used with the dialogs which have wx.MULTIPLE
2446 style, use GetPath for the others.
2448 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2451 class FileDialogPtr(FileDialog
):
2452 def __init__(self
, this
):
2454 if not hasattr(self
,"thisown"): self
.thisown
= 0
2455 self
.__class
__ = FileDialog
2456 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2458 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2459 class MultiChoiceDialog(Dialog
):
2460 """A simple dialog with a multi selection listbox."""
2462 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2463 def __init__(self
, *args
, **kwargs
):
2465 __init__(Window parent, String message, String caption,
2466 List choices=[], long style=CHOICEDLG_STYLE,
2467 Point pos=DefaultPosition) -> MultiChoiceDialog
2469 Constructor. Use ShowModal method to show the dialog.
2471 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2472 self
.this
= newobj
.this
2475 self
._setOORInfo
(self
)
2477 def SetSelections(*args
, **kwargs
):
2479 SetSelections(List selections)
2481 Specify the items in the list that should be selected, using a list of
2484 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2486 def GetSelections(*args
, **kwargs
):
2488 GetSelections() -> [selections]
2490 Returns a list of integers representing the items that are selected.
2492 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2495 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2496 def __init__(self
, this
):
2498 if not hasattr(self
,"thisown"): self
.thisown
= 0
2499 self
.__class
__ = MultiChoiceDialog
2500 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2502 class SingleChoiceDialog(Dialog
):
2503 """A simple dialog with a single selection listbox."""
2505 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2506 def __init__(self
, *args
, **kwargs
):
2508 __init__(Window parent, String message, String caption,
2509 List choices=[], long style=CHOICEDLG_STYLE,
2510 Point pos=DefaultPosition) -> SingleChoiceDialog
2512 Constructor. Use ShowModal method to show the dialog.
2514 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2515 self
.this
= newobj
.this
2518 self
._setOORInfo
(self
)
2520 def GetSelection(*args
, **kwargs
):
2522 GetSelection(self) -> int
2524 Get the index of teh currently selected item.
2526 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2528 def GetStringSelection(*args
, **kwargs
):
2530 GetStringSelection(self) -> String
2532 Returns the string value of the currently selected item
2534 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2536 def SetSelection(*args
, **kwargs
):
2538 SetSelection(self, int sel)
2540 Set the current selected item to sel
2542 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2545 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2546 def __init__(self
, this
):
2548 if not hasattr(self
,"thisown"): self
.thisown
= 0
2549 self
.__class
__ = SingleChoiceDialog
2550 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2552 class TextEntryDialog(Dialog
):
2553 """A dialog with text control, [ok] and [cancel] buttons"""
2555 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2556 def __init__(self
, *args
, **kwargs
):
2558 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2559 String defaultValue=EmptyString,
2560 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2562 Constructor. Use ShowModal method to show the dialog.
2564 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2565 self
.this
= newobj
.this
2568 self
._setOORInfo
(self
)
2570 def GetValue(*args
, **kwargs
):
2572 GetValue(self) -> String
2574 Returns the text that the user has entered if the user has pressed OK,
2575 or the original value if the user has pressed Cancel.
2577 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2579 def SetValue(*args
, **kwargs
):
2581 SetValue(self, String value)
2583 Sets the default text value.
2585 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2588 class TextEntryDialogPtr(TextEntryDialog
):
2589 def __init__(self
, this
):
2591 if not hasattr(self
,"thisown"): self
.thisown
= 0
2592 self
.__class
__ = TextEntryDialog
2593 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2595 class FontData(_core
.Object
):
2597 This class holds a variety of information related to font dialogs and
2598 is used to transfer settings to and results from a `wx.FontDialog`.
2601 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2602 def __init__(self
, *args
, **kwargs
):
2604 __init__(self) -> FontData
2606 This class holds a variety of information related to font dialogs and
2607 is used to transfer settings to and results from a `wx.FontDialog`.
2609 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2610 self
.this
= newobj
.this
2613 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2616 if self
.thisown
: destroy(self
)
2619 def EnableEffects(*args
, **kwargs
):
2621 EnableEffects(self, bool enable)
2623 Enables or disables 'effects' under MS Windows only. This refers to
2624 the controls for manipulating colour, strikeout and underline
2625 properties. The default value is true.
2627 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2629 def GetAllowSymbols(*args
, **kwargs
):
2631 GetAllowSymbols(self) -> bool
2633 Under MS Windows, returns a flag determining whether symbol fonts can
2634 be selected. Has no effect on other platforms. The default value is
2637 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2639 def GetColour(*args
, **kwargs
):
2641 GetColour(self) -> Colour
2643 Gets the colour associated with the font dialog. The default value is
2646 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2648 def GetChosenFont(*args
, **kwargs
):
2650 GetChosenFont(self) -> Font
2652 Gets the font chosen by the user.
2654 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2656 def GetEnableEffects(*args
, **kwargs
):
2658 GetEnableEffects(self) -> bool
2660 Determines whether 'effects' are enabled under Windows.
2662 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2664 def GetInitialFont(*args
, **kwargs
):
2666 GetInitialFont(self) -> Font
2668 Gets the font that will be initially used by the font dialog. This
2669 should have previously been set by the application.
2671 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2673 def GetShowHelp(*args
, **kwargs
):
2675 GetShowHelp(self) -> bool
2677 Returns true if the Help button will be shown (Windows only). The
2678 default value is false.
2680 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2682 def SetAllowSymbols(*args
, **kwargs
):
2684 SetAllowSymbols(self, bool allowSymbols)
2686 Under MS Windows, determines whether symbol fonts can be selected. Has
2687 no effect on other platforms. The default value is true.
2689 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2691 def SetChosenFont(*args
, **kwargs
):
2693 SetChosenFont(self, Font font)
2695 Sets the font that will be returned to the user (normally for internal
2698 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2700 def SetColour(*args
, **kwargs
):
2702 SetColour(self, Colour colour)
2704 Sets the colour that will be used for the font foreground colour. The
2705 default colour is black.
2707 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2709 def SetInitialFont(*args
, **kwargs
):
2711 SetInitialFont(self, Font font)
2713 Sets the font that will be initially used by the font dialog.
2715 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2717 def SetRange(*args
, **kwargs
):
2719 SetRange(self, int min, int max)
2721 Sets the valid range for the font point size (Windows only). The
2722 default is 0, 0 (unrestricted range).
2724 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2726 def SetShowHelp(*args
, **kwargs
):
2728 SetShowHelp(self, bool showHelp)
2730 Determines whether the Help button will be displayed in the font
2731 dialog (Windows only). The default value is false.
2733 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2736 class FontDataPtr(FontData
):
2737 def __init__(self
, this
):
2739 if not hasattr(self
,"thisown"): self
.thisown
= 0
2740 self
.__class
__ = FontData
2741 _windows_
.FontData_swigregister(FontDataPtr
)
2743 class FontDialog(Dialog
):
2745 wx.FontDialog allows the user to select a system font and its attributes.
2751 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2752 def __init__(self
, *args
, **kwargs
):
2754 __init__(self, Window parent, FontData data) -> FontDialog
2756 Constructor. Pass a parent window and the `wx.FontData` object to be
2757 used to initialize the dialog controls. Call `ShowModal` to display
2758 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2759 results with via the `wx.FontData` returned by `GetFontData`.
2761 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2762 self
.this
= newobj
.this
2765 self
._setOORInfo
(self
)
2767 def GetFontData(*args
, **kwargs
):
2769 GetFontData(self) -> FontData
2771 Returns a reference to the internal `wx.FontData` used by the
2774 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2777 class FontDialogPtr(FontDialog
):
2778 def __init__(self
, this
):
2780 if not hasattr(self
,"thisown"): self
.thisown
= 0
2781 self
.__class
__ = FontDialog
2782 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2784 class MessageDialog(Dialog
):
2786 This class provides a simple dialog that shows a single or multi-line
2787 message, with a choice of OK, Yes, No and/or Cancel buttons.
2790 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2791 def __init__(self
, *args
, **kwargs
):
2793 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2794 long style=wxOK|wxCANCEL|wxCENTRE,
2795 Point pos=DefaultPosition) -> MessageDialog
2797 Constructor, use `ShowModal` to display the dialog.
2799 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2800 self
.this
= newobj
.this
2803 self
._setOORInfo
(self
)
2806 class MessageDialogPtr(MessageDialog
):
2807 def __init__(self
, this
):
2809 if not hasattr(self
,"thisown"): self
.thisown
= 0
2810 self
.__class
__ = MessageDialog
2811 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2813 class ProgressDialog(Frame
):
2815 A dialog that shows a short message and a progress bar. Optionally, it
2816 can display an ABORT button.
2819 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2820 def __init__(self
, *args
, **kwargs
):
2822 __init__(self, String title, String message, int maximum=100, Window parent=None,
2823 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2825 Constructor. Creates the dialog, displays it and disables user input
2826 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2829 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2830 self
.this
= newobj
.this
2833 self
._setOORInfo
(self
)
2835 def Update(*args
, **kwargs
):
2837 Update(self, int value, String newmsg=EmptyString) -> bool
2839 Updates the dialog, setting the progress bar to the new value and, if
2840 given changes the message above it. The value given should be less
2841 than or equal to the maximum value given to the constructor and the
2842 dialog is closed if it is equal to the maximum. Returns true unless
2843 the Cancel button has been pressed.
2845 If false is returned, the application can either immediately destroy
2846 the dialog or ask the user for the confirmation and if the abort is
2847 not confirmed the dialog may be resumed with Resume function.
2849 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2851 def Resume(*args
, **kwargs
):
2855 Can be used to continue with the dialog, after the user had chosen to
2858 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2861 class ProgressDialogPtr(ProgressDialog
):
2862 def __init__(self
, this
):
2864 if not hasattr(self
,"thisown"): self
.thisown
= 0
2865 self
.__class
__ = ProgressDialog
2866 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2868 FR_DOWN
= _windows_
.FR_DOWN
2869 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2870 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2871 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2872 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2873 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2874 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2875 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2876 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2877 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2878 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2879 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2880 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2881 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2882 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2883 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2884 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2886 # For backwards compatibility. Should they be removed?
2887 EVT_COMMAND_FIND
= EVT_FIND
2888 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2889 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2890 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2891 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2893 class FindDialogEvent(_core
.CommandEvent
):
2894 """Events for the FindReplaceDialog"""
2896 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2897 def __init__(self
, *args
, **kwargs
):
2899 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2901 Events for the FindReplaceDialog
2903 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2904 self
.this
= newobj
.this
2907 def GetFlags(*args
, **kwargs
):
2909 GetFlags(self) -> int
2911 Get the currently selected flags: this is the combination of
2912 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2914 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2916 def GetFindString(*args
, **kwargs
):
2918 GetFindString(self) -> String
2920 Return the string to find (never empty).
2922 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2924 def GetReplaceString(*args
, **kwargs
):
2926 GetReplaceString(self) -> String
2928 Return the string to replace the search string with (only for replace
2929 and replace all events).
2931 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2933 def GetDialog(*args
, **kwargs
):
2935 GetDialog(self) -> FindReplaceDialog
2937 Return the pointer to the dialog which generated this event.
2939 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2941 def SetFlags(*args
, **kwargs
):
2942 """SetFlags(self, int flags)"""
2943 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2945 def SetFindString(*args
, **kwargs
):
2946 """SetFindString(self, String str)"""
2947 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2949 def SetReplaceString(*args
, **kwargs
):
2950 """SetReplaceString(self, String str)"""
2951 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2954 class FindDialogEventPtr(FindDialogEvent
):
2955 def __init__(self
, this
):
2957 if not hasattr(self
,"thisown"): self
.thisown
= 0
2958 self
.__class
__ = FindDialogEvent
2959 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2961 class FindReplaceData(_core
.Object
):
2963 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2964 to initialize the dialog with the default values and will keep the
2965 last values from the dialog when it is closed. It is also updated each
2966 time a `wx.FindDialogEvent` is generated so instead of using the
2967 `wx.FindDialogEvent` methods you can also directly query this object.
2969 Note that all SetXXX() methods may only be called before showing the
2970 dialog and calling them has no effect later.
2973 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2974 def __init__(self
, *args
, **kwargs
):
2976 __init__(self, int flags=0) -> FindReplaceData
2978 Constuctor initializes the flags to default value (0).
2980 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
2981 self
.this
= newobj
.this
2984 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
2987 if self
.thisown
: destroy(self
)
2990 def GetFindString(*args
, **kwargs
):
2992 GetFindString(self) -> String
2994 Get the string to find.
2996 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2998 def GetReplaceString(*args
, **kwargs
):
3000 GetReplaceString(self) -> String
3002 Get the replacement string.
3004 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3006 def GetFlags(*args
, **kwargs
):
3008 GetFlags(self) -> int
3010 Get the combination of flag values.
3012 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3014 def SetFlags(*args
, **kwargs
):
3016 SetFlags(self, int flags)
3018 Set the flags to use to initialize the controls of the dialog.
3020 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3022 def SetFindString(*args
, **kwargs
):
3024 SetFindString(self, String str)
3026 Set the string to find (used as initial value by the dialog).
3028 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3030 def SetReplaceString(*args
, **kwargs
):
3032 SetReplaceString(self, String str)
3034 Set the replacement string (used as initial value by the dialog).
3036 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3039 class FindReplaceDataPtr(FindReplaceData
):
3040 def __init__(self
, this
):
3042 if not hasattr(self
,"thisown"): self
.thisown
= 0
3043 self
.__class
__ = FindReplaceData
3044 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3046 class FindReplaceDialog(Dialog
):
3048 wx.FindReplaceDialog is a standard modeless dialog which is used to
3049 allow the user to search for some text (and possibly replace it with
3050 something else). The actual searching is supposed to be done in the
3051 owner window which is the parent of this dialog. Note that it means
3052 that unlike for the other standard dialogs this one must have a parent
3053 window. Also note that there is no way to use this dialog in a modal
3054 way; it is always, by design and implementation, modeless.
3057 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3058 def __init__(self
, *args
, **kwargs
):
3060 __init__(self, Window parent, FindReplaceData data, String title,
3061 int style=0) -> FindReplaceDialog
3063 Create a FindReplaceDialog. The parent and data parameters must be
3064 non-None. Use Show to display the dialog.
3066 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3067 self
.this
= newobj
.this
3070 self
._setOORInfo
(self
)
3072 def Create(*args
, **kwargs
):
3074 Create(self, Window parent, FindReplaceData data, String title,
3075 int style=0) -> bool
3077 Create the dialog, for 2-phase create.
3079 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3081 def GetData(*args
, **kwargs
):
3083 GetData(self) -> FindReplaceData
3085 Get the FindReplaceData object used by this dialog.
3087 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3089 def SetData(*args
, **kwargs
):
3091 SetData(self, FindReplaceData data)
3093 Set the FindReplaceData object used by this dialog.
3095 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3098 class FindReplaceDialogPtr(FindReplaceDialog
):
3099 def __init__(self
, this
):
3101 if not hasattr(self
,"thisown"): self
.thisown
= 0
3102 self
.__class
__ = FindReplaceDialog
3103 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3105 def PreFindReplaceDialog(*args
, **kwargs
):
3107 PreFindReplaceDialog() -> FindReplaceDialog
3109 Precreate a FindReplaceDialog for 2-phase creation
3111 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3115 #---------------------------------------------------------------------------
3117 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3118 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3119 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3120 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3121 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3122 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3123 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3124 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3125 class MDIParentFrame(Frame
):
3127 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3128 def __init__(self
, *args
, **kwargs
):
3130 __init__(self, Window parent, int id=-1, String title=EmptyString,
3131 Point pos=DefaultPosition, Size size=DefaultSize,
3132 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3133 String name=FrameNameStr) -> MDIParentFrame
3135 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3136 self
.this
= newobj
.this
3139 self
._setOORInfo
(self
)
3141 def Create(*args
, **kwargs
):
3143 Create(self, Window parent, int id=-1, String title=EmptyString,
3144 Point pos=DefaultPosition, Size size=DefaultSize,
3145 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3146 String name=FrameNameStr) -> bool
3148 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3150 def ActivateNext(*args
, **kwargs
):
3151 """ActivateNext(self)"""
3152 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3154 def ActivatePrevious(*args
, **kwargs
):
3155 """ActivatePrevious(self)"""
3156 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3158 def ArrangeIcons(*args
, **kwargs
):
3159 """ArrangeIcons(self)"""
3160 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3162 def Cascade(*args
, **kwargs
):
3164 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3166 def GetActiveChild(*args
, **kwargs
):
3167 """GetActiveChild(self) -> MDIChildFrame"""
3168 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3170 def GetClientWindow(*args
, **kwargs
):
3171 """GetClientWindow(self) -> MDIClientWindow"""
3172 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3174 def GetToolBar(*args
, **kwargs
):
3175 """GetToolBar(self) -> Window"""
3176 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3178 def Tile(*args
, **kwargs
):
3180 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3183 class MDIParentFramePtr(MDIParentFrame
):
3184 def __init__(self
, this
):
3186 if not hasattr(self
,"thisown"): self
.thisown
= 0
3187 self
.__class
__ = MDIParentFrame
3188 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3190 def PreMDIParentFrame(*args
, **kwargs
):
3191 """PreMDIParentFrame() -> MDIParentFrame"""
3192 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3196 class MDIChildFrame(Frame
):
3198 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3199 def __init__(self
, *args
, **kwargs
):
3201 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3202 Point pos=DefaultPosition, Size size=DefaultSize,
3203 long style=DEFAULT_FRAME_STYLE,
3204 String name=FrameNameStr) -> MDIChildFrame
3206 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3207 self
.this
= newobj
.this
3210 self
._setOORInfo
(self
)
3212 def Create(*args
, **kwargs
):
3214 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3215 Point pos=DefaultPosition, Size size=DefaultSize,
3216 long style=DEFAULT_FRAME_STYLE,
3217 String name=FrameNameStr) -> bool
3219 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3221 def Activate(*args
, **kwargs
):
3222 """Activate(self)"""
3223 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3225 def Maximize(*args
, **kwargs
):
3226 """Maximize(self, bool maximize)"""
3227 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3229 def Restore(*args
, **kwargs
):
3231 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3234 class MDIChildFramePtr(MDIChildFrame
):
3235 def __init__(self
, this
):
3237 if not hasattr(self
,"thisown"): self
.thisown
= 0
3238 self
.__class
__ = MDIChildFrame
3239 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3241 def PreMDIChildFrame(*args
, **kwargs
):
3242 """PreMDIChildFrame() -> MDIChildFrame"""
3243 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3247 class MDIClientWindow(_core
.Window
):
3249 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3250 def __init__(self
, *args
, **kwargs
):
3251 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3252 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3253 self
.this
= newobj
.this
3256 self
._setOORInfo
(self
)
3258 def Create(*args
, **kwargs
):
3259 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3260 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3263 class MDIClientWindowPtr(MDIClientWindow
):
3264 def __init__(self
, this
):
3266 if not hasattr(self
,"thisown"): self
.thisown
= 0
3267 self
.__class
__ = MDIClientWindow
3268 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3270 def PreMDIClientWindow(*args
, **kwargs
):
3271 """PreMDIClientWindow() -> MDIClientWindow"""
3272 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3276 #---------------------------------------------------------------------------
3278 class PyWindow(_core
.Window
):
3280 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3281 def __init__(self
, *args
, **kwargs
):
3283 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3284 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3286 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3287 self
.this
= newobj
.this
3290 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3292 def _setCallbackInfo(*args
, **kwargs
):
3293 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3294 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3296 def SetBestSize(*args
, **kwargs
):
3297 """SetBestSize(self, Size size)"""
3298 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3300 def base_DoMoveWindow(*args
, **kwargs
):
3301 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3302 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3304 def base_DoSetSize(*args
, **kwargs
):
3305 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3306 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3308 def base_DoSetClientSize(*args
, **kwargs
):
3309 """base_DoSetClientSize(self, int width, int height)"""
3310 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3312 def base_DoSetVirtualSize(*args
, **kwargs
):
3313 """base_DoSetVirtualSize(self, int x, int y)"""
3314 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3316 def base_DoGetSize(*args
, **kwargs
):
3317 """base_DoGetSize() -> (width, height)"""
3318 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3320 def base_DoGetClientSize(*args
, **kwargs
):
3321 """base_DoGetClientSize() -> (width, height)"""
3322 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3324 def base_DoGetPosition(*args
, **kwargs
):
3325 """base_DoGetPosition() -> (x,y)"""
3326 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3328 def base_DoGetVirtualSize(*args
, **kwargs
):
3329 """base_DoGetVirtualSize(self) -> Size"""
3330 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3332 def base_DoGetBestSize(*args
, **kwargs
):
3333 """base_DoGetBestSize(self) -> Size"""
3334 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3336 def base_InitDialog(*args
, **kwargs
):
3337 """base_InitDialog(self)"""
3338 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3340 def base_TransferDataToWindow(*args
, **kwargs
):
3341 """base_TransferDataToWindow(self) -> bool"""
3342 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3344 def base_TransferDataFromWindow(*args
, **kwargs
):
3345 """base_TransferDataFromWindow(self) -> bool"""
3346 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3348 def base_Validate(*args
, **kwargs
):
3349 """base_Validate(self) -> bool"""
3350 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3352 def base_AcceptsFocus(*args
, **kwargs
):
3353 """base_AcceptsFocus(self) -> bool"""
3354 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3356 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3357 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3358 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3360 def base_GetMaxSize(*args
, **kwargs
):
3361 """base_GetMaxSize(self) -> Size"""
3362 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3364 def base_AddChild(*args
, **kwargs
):
3365 """base_AddChild(self, Window child)"""
3366 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3368 def base_RemoveChild(*args
, **kwargs
):
3369 """base_RemoveChild(self, Window child)"""
3370 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3372 def base_ShouldInheritColours(*args
, **kwargs
):
3373 """base_ShouldInheritColours(self) -> bool"""
3374 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3376 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3377 """base_ApplyParentThemeBackground(self, Colour c)"""
3378 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3380 def base_GetDefaultAttributes(*args
, **kwargs
):
3381 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3382 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3385 class PyWindowPtr(PyWindow
):
3386 def __init__(self
, this
):
3388 if not hasattr(self
,"thisown"): self
.thisown
= 0
3389 self
.__class
__ = PyWindow
3390 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3392 def PrePyWindow(*args
, **kwargs
):
3393 """PrePyWindow() -> PyWindow"""
3394 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3398 class PyPanel(Panel
):
3400 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3401 def __init__(self
, *args
, **kwargs
):
3403 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3404 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3406 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3407 self
.this
= newobj
.this
3410 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3412 def _setCallbackInfo(*args
, **kwargs
):
3413 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3414 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3416 def SetBestSize(*args
, **kwargs
):
3417 """SetBestSize(self, Size size)"""
3418 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3420 def base_DoMoveWindow(*args
, **kwargs
):
3421 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3422 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3424 def base_DoSetSize(*args
, **kwargs
):
3425 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3426 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3428 def base_DoSetClientSize(*args
, **kwargs
):
3429 """base_DoSetClientSize(self, int width, int height)"""
3430 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3432 def base_DoSetVirtualSize(*args
, **kwargs
):
3433 """base_DoSetVirtualSize(self, int x, int y)"""
3434 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3436 def base_DoGetSize(*args
, **kwargs
):
3437 """base_DoGetSize() -> (width, height)"""
3438 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3440 def base_DoGetClientSize(*args
, **kwargs
):
3441 """base_DoGetClientSize() -> (width, height)"""
3442 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3444 def base_DoGetPosition(*args
, **kwargs
):
3445 """base_DoGetPosition() -> (x,y)"""
3446 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3448 def base_DoGetVirtualSize(*args
, **kwargs
):
3449 """base_DoGetVirtualSize(self) -> Size"""
3450 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3452 def base_DoGetBestSize(*args
, **kwargs
):
3453 """base_DoGetBestSize(self) -> Size"""
3454 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3456 def base_InitDialog(*args
, **kwargs
):
3457 """base_InitDialog(self)"""
3458 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3460 def base_TransferDataToWindow(*args
, **kwargs
):
3461 """base_TransferDataToWindow(self) -> bool"""
3462 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3464 def base_TransferDataFromWindow(*args
, **kwargs
):
3465 """base_TransferDataFromWindow(self) -> bool"""
3466 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3468 def base_Validate(*args
, **kwargs
):
3469 """base_Validate(self) -> bool"""
3470 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3472 def base_AcceptsFocus(*args
, **kwargs
):
3473 """base_AcceptsFocus(self) -> bool"""
3474 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3476 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3477 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3478 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3480 def base_GetMaxSize(*args
, **kwargs
):
3481 """base_GetMaxSize(self) -> Size"""
3482 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3484 def base_AddChild(*args
, **kwargs
):
3485 """base_AddChild(self, Window child)"""
3486 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3488 def base_RemoveChild(*args
, **kwargs
):
3489 """base_RemoveChild(self, Window child)"""
3490 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3492 def base_ShouldInheritColours(*args
, **kwargs
):
3493 """base_ShouldInheritColours(self) -> bool"""
3494 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3496 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3497 """base_ApplyParentThemeBackground(self, Colour c)"""
3498 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3500 def base_GetDefaultAttributes(*args
, **kwargs
):
3501 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3502 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3505 class PyPanelPtr(PyPanel
):
3506 def __init__(self
, this
):
3508 if not hasattr(self
,"thisown"): self
.thisown
= 0
3509 self
.__class
__ = PyPanel
3510 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3512 def PrePyPanel(*args
, **kwargs
):
3513 """PrePyPanel() -> PyPanel"""
3514 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3518 class PyScrolledWindow(ScrolledWindow
):
3520 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3521 def __init__(self
, *args
, **kwargs
):
3523 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3524 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3526 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3527 self
.this
= newobj
.this
3530 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3532 def _setCallbackInfo(*args
, **kwargs
):
3533 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3534 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3536 def SetBestSize(*args
, **kwargs
):
3537 """SetBestSize(self, Size size)"""
3538 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3540 def base_DoMoveWindow(*args
, **kwargs
):
3541 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3542 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3544 def base_DoSetSize(*args
, **kwargs
):
3545 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3546 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3548 def base_DoSetClientSize(*args
, **kwargs
):
3549 """base_DoSetClientSize(self, int width, int height)"""
3550 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3552 def base_DoSetVirtualSize(*args
, **kwargs
):
3553 """base_DoSetVirtualSize(self, int x, int y)"""
3554 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3556 def base_DoGetSize(*args
, **kwargs
):
3557 """base_DoGetSize() -> (width, height)"""
3558 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3560 def base_DoGetClientSize(*args
, **kwargs
):
3561 """base_DoGetClientSize() -> (width, height)"""
3562 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3564 def base_DoGetPosition(*args
, **kwargs
):
3565 """base_DoGetPosition() -> (x,y)"""
3566 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3568 def base_DoGetVirtualSize(*args
, **kwargs
):
3569 """base_DoGetVirtualSize(self) -> Size"""
3570 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3572 def base_DoGetBestSize(*args
, **kwargs
):
3573 """base_DoGetBestSize(self) -> Size"""
3574 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3576 def base_InitDialog(*args
, **kwargs
):
3577 """base_InitDialog(self)"""
3578 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3580 def base_TransferDataToWindow(*args
, **kwargs
):
3581 """base_TransferDataToWindow(self) -> bool"""
3582 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3584 def base_TransferDataFromWindow(*args
, **kwargs
):
3585 """base_TransferDataFromWindow(self) -> bool"""
3586 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3588 def base_Validate(*args
, **kwargs
):
3589 """base_Validate(self) -> bool"""
3590 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3592 def base_AcceptsFocus(*args
, **kwargs
):
3593 """base_AcceptsFocus(self) -> bool"""
3594 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3596 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3597 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3598 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3600 def base_GetMaxSize(*args
, **kwargs
):
3601 """base_GetMaxSize(self) -> Size"""
3602 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3604 def base_AddChild(*args
, **kwargs
):
3605 """base_AddChild(self, Window child)"""
3606 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3608 def base_RemoveChild(*args
, **kwargs
):
3609 """base_RemoveChild(self, Window child)"""
3610 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3612 def base_ShouldInheritColours(*args
, **kwargs
):
3613 """base_ShouldInheritColours(self) -> bool"""
3614 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3616 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3617 """base_ApplyParentThemeBackground(self, Colour c)"""
3618 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3620 def base_GetDefaultAttributes(*args
, **kwargs
):
3621 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3622 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3625 class PyScrolledWindowPtr(PyScrolledWindow
):
3626 def __init__(self
, this
):
3628 if not hasattr(self
,"thisown"): self
.thisown
= 0
3629 self
.__class
__ = PyScrolledWindow
3630 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3632 def PrePyScrolledWindow(*args
, **kwargs
):
3633 """PrePyScrolledWindow() -> PyScrolledWindow"""
3634 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3638 #---------------------------------------------------------------------------
3640 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3641 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3642 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3643 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3644 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3645 class PrintData(_core
.Object
):
3647 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3648 def __init__(self
, *args
):
3650 __init__(self) -> PrintData
3651 __init__(self, PrintData data) -> PrintData
3653 newobj
= _windows_
.new_PrintData(*args
)
3654 self
.this
= newobj
.this
3657 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3660 if self
.thisown
: destroy(self
)
3663 def GetNoCopies(*args
, **kwargs
):
3664 """GetNoCopies(self) -> int"""
3665 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3667 def GetCollate(*args
, **kwargs
):
3668 """GetCollate(self) -> bool"""
3669 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3671 def GetOrientation(*args
, **kwargs
):
3672 """GetOrientation(self) -> int"""
3673 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3675 def Ok(*args
, **kwargs
):
3676 """Ok(self) -> bool"""
3677 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3679 def GetPrinterName(*args
, **kwargs
):
3680 """GetPrinterName(self) -> String"""
3681 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3683 def GetColour(*args
, **kwargs
):
3684 """GetColour(self) -> bool"""
3685 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3687 def GetDuplex(*args
, **kwargs
):
3688 """GetDuplex(self) -> int"""
3689 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3691 def GetPaperId(*args
, **kwargs
):
3692 """GetPaperId(self) -> int"""
3693 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3695 def GetPaperSize(*args
, **kwargs
):
3696 """GetPaperSize(self) -> Size"""
3697 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3699 def GetQuality(*args
, **kwargs
):
3700 """GetQuality(self) -> int"""
3701 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3703 def SetNoCopies(*args
, **kwargs
):
3704 """SetNoCopies(self, int v)"""
3705 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3707 def SetCollate(*args
, **kwargs
):
3708 """SetCollate(self, bool flag)"""
3709 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3711 def SetOrientation(*args
, **kwargs
):
3712 """SetOrientation(self, int orient)"""
3713 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3715 def SetPrinterName(*args
, **kwargs
):
3716 """SetPrinterName(self, String name)"""
3717 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3719 def SetColour(*args
, **kwargs
):
3720 """SetColour(self, bool colour)"""
3721 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3723 def SetDuplex(*args
, **kwargs
):
3724 """SetDuplex(self, int duplex)"""
3725 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3727 def SetPaperId(*args
, **kwargs
):
3728 """SetPaperId(self, int sizeId)"""
3729 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3731 def SetPaperSize(*args
, **kwargs
):
3732 """SetPaperSize(self, Size sz)"""
3733 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3735 def SetQuality(*args
, **kwargs
):
3736 """SetQuality(self, int quality)"""
3737 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3739 def GetPrinterCommand(*args
, **kwargs
):
3740 """GetPrinterCommand(self) -> String"""
3741 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3743 def GetPrinterOptions(*args
, **kwargs
):
3744 """GetPrinterOptions(self) -> String"""
3745 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3747 def GetPreviewCommand(*args
, **kwargs
):
3748 """GetPreviewCommand(self) -> String"""
3749 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3751 def GetFilename(*args
, **kwargs
):
3752 """GetFilename(self) -> String"""
3753 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3755 def GetFontMetricPath(*args
, **kwargs
):
3756 """GetFontMetricPath(self) -> String"""
3757 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3759 def GetPrinterScaleX(*args
, **kwargs
):
3760 """GetPrinterScaleX(self) -> double"""
3761 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3763 def GetPrinterScaleY(*args
, **kwargs
):
3764 """GetPrinterScaleY(self) -> double"""
3765 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3767 def GetPrinterTranslateX(*args
, **kwargs
):
3768 """GetPrinterTranslateX(self) -> long"""
3769 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3771 def GetPrinterTranslateY(*args
, **kwargs
):
3772 """GetPrinterTranslateY(self) -> long"""
3773 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3775 def GetPrintMode(*args
, **kwargs
):
3776 """GetPrintMode(self) -> int"""
3777 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3779 def SetPrinterCommand(*args
, **kwargs
):
3780 """SetPrinterCommand(self, String command)"""
3781 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3783 def SetPrinterOptions(*args
, **kwargs
):
3784 """SetPrinterOptions(self, String options)"""
3785 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3787 def SetPreviewCommand(*args
, **kwargs
):
3788 """SetPreviewCommand(self, String command)"""
3789 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3791 def SetFilename(*args
, **kwargs
):
3792 """SetFilename(self, String filename)"""
3793 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3795 def SetFontMetricPath(*args
, **kwargs
):
3796 """SetFontMetricPath(self, String path)"""
3797 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3799 def SetPrinterScaleX(*args
, **kwargs
):
3800 """SetPrinterScaleX(self, double x)"""
3801 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3803 def SetPrinterScaleY(*args
, **kwargs
):
3804 """SetPrinterScaleY(self, double y)"""
3805 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3807 def SetPrinterScaling(*args
, **kwargs
):
3808 """SetPrinterScaling(self, double x, double y)"""
3809 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3811 def SetPrinterTranslateX(*args
, **kwargs
):
3812 """SetPrinterTranslateX(self, long x)"""
3813 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3815 def SetPrinterTranslateY(*args
, **kwargs
):
3816 """SetPrinterTranslateY(self, long y)"""
3817 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3819 def SetPrinterTranslation(*args
, **kwargs
):
3820 """SetPrinterTranslation(self, long x, long y)"""
3821 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3823 def SetPrintMode(*args
, **kwargs
):
3824 """SetPrintMode(self, int printMode)"""
3825 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3827 def GetOutputStream(*args
, **kwargs
):
3828 """GetOutputStream(self) -> OutputStream"""
3829 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3831 def SetOutputStream(*args
, **kwargs
):
3832 """SetOutputStream(self, OutputStream outputstream)"""
3833 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3835 def __nonzero__(self
): return self
.Ok()
3837 class PrintDataPtr(PrintData
):
3838 def __init__(self
, this
):
3840 if not hasattr(self
,"thisown"): self
.thisown
= 0
3841 self
.__class
__ = PrintData
3842 _windows_
.PrintData_swigregister(PrintDataPtr
)
3843 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3844 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3846 class PageSetupDialogData(_core
.Object
):
3848 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3849 def __init__(self
, *args
):
3851 __init__(self) -> PageSetupDialogData
3852 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3854 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3855 self
.this
= newobj
.this
3858 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3861 if self
.thisown
: destroy(self
)
3864 def EnableHelp(*args
, **kwargs
):
3865 """EnableHelp(self, bool flag)"""
3866 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3868 def EnableMargins(*args
, **kwargs
):
3869 """EnableMargins(self, bool flag)"""
3870 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3872 def EnableOrientation(*args
, **kwargs
):
3873 """EnableOrientation(self, bool flag)"""
3874 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3876 def EnablePaper(*args
, **kwargs
):
3877 """EnablePaper(self, bool flag)"""
3878 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3880 def EnablePrinter(*args
, **kwargs
):
3881 """EnablePrinter(self, bool flag)"""
3882 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3884 def GetDefaultMinMargins(*args
, **kwargs
):
3885 """GetDefaultMinMargins(self) -> bool"""
3886 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3888 def GetEnableMargins(*args
, **kwargs
):
3889 """GetEnableMargins(self) -> bool"""
3890 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3892 def GetEnableOrientation(*args
, **kwargs
):
3893 """GetEnableOrientation(self) -> bool"""
3894 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3896 def GetEnablePaper(*args
, **kwargs
):
3897 """GetEnablePaper(self) -> bool"""
3898 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3900 def GetEnablePrinter(*args
, **kwargs
):
3901 """GetEnablePrinter(self) -> bool"""
3902 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3904 def GetEnableHelp(*args
, **kwargs
):
3905 """GetEnableHelp(self) -> bool"""
3906 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3908 def GetDefaultInfo(*args
, **kwargs
):
3909 """GetDefaultInfo(self) -> bool"""
3910 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3912 def GetMarginTopLeft(*args
, **kwargs
):
3913 """GetMarginTopLeft(self) -> Point"""
3914 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3916 def GetMarginBottomRight(*args
, **kwargs
):
3917 """GetMarginBottomRight(self) -> Point"""
3918 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3920 def GetMinMarginTopLeft(*args
, **kwargs
):
3921 """GetMinMarginTopLeft(self) -> Point"""
3922 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3924 def GetMinMarginBottomRight(*args
, **kwargs
):
3925 """GetMinMarginBottomRight(self) -> Point"""
3926 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3928 def GetPaperId(*args
, **kwargs
):
3929 """GetPaperId(self) -> int"""
3930 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3932 def GetPaperSize(*args
, **kwargs
):
3933 """GetPaperSize(self) -> Size"""
3934 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3936 def GetPrintData(*args
, **kwargs
):
3937 """GetPrintData(self) -> PrintData"""
3938 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3940 def Ok(*args
, **kwargs
):
3941 """Ok(self) -> bool"""
3942 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3944 def SetDefaultInfo(*args
, **kwargs
):
3945 """SetDefaultInfo(self, bool flag)"""
3946 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3948 def SetDefaultMinMargins(*args
, **kwargs
):
3949 """SetDefaultMinMargins(self, bool flag)"""
3950 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3952 def SetMarginTopLeft(*args
, **kwargs
):
3953 """SetMarginTopLeft(self, Point pt)"""
3954 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3956 def SetMarginBottomRight(*args
, **kwargs
):
3957 """SetMarginBottomRight(self, Point pt)"""
3958 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3960 def SetMinMarginTopLeft(*args
, **kwargs
):
3961 """SetMinMarginTopLeft(self, Point pt)"""
3962 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3964 def SetMinMarginBottomRight(*args
, **kwargs
):
3965 """SetMinMarginBottomRight(self, Point pt)"""
3966 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3968 def SetPaperId(*args
, **kwargs
):
3969 """SetPaperId(self, int id)"""
3970 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3972 def SetPaperSize(*args
, **kwargs
):
3973 """SetPaperSize(self, Size size)"""
3974 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3976 def SetPrintData(*args
, **kwargs
):
3977 """SetPrintData(self, PrintData printData)"""
3978 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3980 def __nonzero__(self
): return self
.Ok()
3982 class PageSetupDialogDataPtr(PageSetupDialogData
):
3983 def __init__(self
, this
):
3985 if not hasattr(self
,"thisown"): self
.thisown
= 0
3986 self
.__class
__ = PageSetupDialogData
3987 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3989 class PageSetupDialog(Dialog
):
3991 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3992 def __init__(self
, *args
, **kwargs
):
3993 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3994 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
3995 self
.this
= newobj
.this
3998 self
._setOORInfo
(self
)
4000 def GetPageSetupData(*args
, **kwargs
):
4001 """GetPageSetupData(self) -> PageSetupDialogData"""
4002 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4004 def ShowModal(*args
, **kwargs
):
4005 """ShowModal(self) -> int"""
4006 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4009 class PageSetupDialogPtr(PageSetupDialog
):
4010 def __init__(self
, this
):
4012 if not hasattr(self
,"thisown"): self
.thisown
= 0
4013 self
.__class
__ = PageSetupDialog
4014 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4016 class PrintDialogData(_core
.Object
):
4018 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4019 def __init__(self
, *args
):
4021 __init__(self) -> PrintDialogData
4022 __init__(self, PrintData printData) -> PrintDialogData
4024 newobj
= _windows_
.new_PrintDialogData(*args
)
4025 self
.this
= newobj
.this
4028 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4031 if self
.thisown
: destroy(self
)
4034 def GetFromPage(*args
, **kwargs
):
4035 """GetFromPage(self) -> int"""
4036 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4038 def GetToPage(*args
, **kwargs
):
4039 """GetToPage(self) -> int"""
4040 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4042 def GetMinPage(*args
, **kwargs
):
4043 """GetMinPage(self) -> int"""
4044 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4046 def GetMaxPage(*args
, **kwargs
):
4047 """GetMaxPage(self) -> int"""
4048 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4050 def GetNoCopies(*args
, **kwargs
):
4051 """GetNoCopies(self) -> int"""
4052 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4054 def GetAllPages(*args
, **kwargs
):
4055 """GetAllPages(self) -> bool"""
4056 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4058 def GetSelection(*args
, **kwargs
):
4059 """GetSelection(self) -> bool"""
4060 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4062 def GetCollate(*args
, **kwargs
):
4063 """GetCollate(self) -> bool"""
4064 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4066 def GetPrintToFile(*args
, **kwargs
):
4067 """GetPrintToFile(self) -> bool"""
4068 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4070 def GetSetupDialog(*args
, **kwargs
):
4071 """GetSetupDialog(self) -> bool"""
4072 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4074 def SetFromPage(*args
, **kwargs
):
4075 """SetFromPage(self, int v)"""
4076 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4078 def SetToPage(*args
, **kwargs
):
4079 """SetToPage(self, int v)"""
4080 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4082 def SetMinPage(*args
, **kwargs
):
4083 """SetMinPage(self, int v)"""
4084 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4086 def SetMaxPage(*args
, **kwargs
):
4087 """SetMaxPage(self, int v)"""
4088 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4090 def SetNoCopies(*args
, **kwargs
):
4091 """SetNoCopies(self, int v)"""
4092 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4094 def SetAllPages(*args
, **kwargs
):
4095 """SetAllPages(self, bool flag)"""
4096 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4098 def SetSelection(*args
, **kwargs
):
4099 """SetSelection(self, bool flag)"""
4100 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4102 def SetCollate(*args
, **kwargs
):
4103 """SetCollate(self, bool flag)"""
4104 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4106 def SetPrintToFile(*args
, **kwargs
):
4107 """SetPrintToFile(self, bool flag)"""
4108 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4110 def SetSetupDialog(*args
, **kwargs
):
4111 """SetSetupDialog(self, bool flag)"""
4112 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4114 def EnablePrintToFile(*args
, **kwargs
):
4115 """EnablePrintToFile(self, bool flag)"""
4116 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4118 def EnableSelection(*args
, **kwargs
):
4119 """EnableSelection(self, bool flag)"""
4120 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4122 def EnablePageNumbers(*args
, **kwargs
):
4123 """EnablePageNumbers(self, bool flag)"""
4124 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4126 def EnableHelp(*args
, **kwargs
):
4127 """EnableHelp(self, bool flag)"""
4128 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4130 def GetEnablePrintToFile(*args
, **kwargs
):
4131 """GetEnablePrintToFile(self) -> bool"""
4132 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4134 def GetEnableSelection(*args
, **kwargs
):
4135 """GetEnableSelection(self) -> bool"""
4136 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4138 def GetEnablePageNumbers(*args
, **kwargs
):
4139 """GetEnablePageNumbers(self) -> bool"""
4140 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4142 def GetEnableHelp(*args
, **kwargs
):
4143 """GetEnableHelp(self) -> bool"""
4144 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4146 def Ok(*args
, **kwargs
):
4147 """Ok(self) -> bool"""
4148 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4150 def GetPrintData(*args
, **kwargs
):
4151 """GetPrintData(self) -> PrintData"""
4152 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4154 def SetPrintData(*args
, **kwargs
):
4155 """SetPrintData(self, PrintData printData)"""
4156 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4158 def __nonzero__(self
): return self
.Ok()
4160 class PrintDialogDataPtr(PrintDialogData
):
4161 def __init__(self
, this
):
4163 if not hasattr(self
,"thisown"): self
.thisown
= 0
4164 self
.__class
__ = PrintDialogData
4165 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4167 class PrintDialog(Dialog
):
4169 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4170 def __init__(self
, *args
, **kwargs
):
4171 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4172 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4173 self
.this
= newobj
.this
4176 self
._setOORInfo
(self
)
4178 def GetPrintDialogData(*args
, **kwargs
):
4179 """GetPrintDialogData(self) -> PrintDialogData"""
4180 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4182 def GetPrintDC(*args
, **kwargs
):
4183 """GetPrintDC(self) -> DC"""
4184 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4186 def ShowModal(*args
, **kwargs
):
4187 """ShowModal(self) -> int"""
4188 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4191 class PrintDialogPtr(PrintDialog
):
4192 def __init__(self
, this
):
4194 if not hasattr(self
,"thisown"): self
.thisown
= 0
4195 self
.__class
__ = PrintDialog
4196 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4198 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4199 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4200 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4201 class Printer(_core
.Object
):
4203 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4204 def __init__(self
, *args
, **kwargs
):
4205 """__init__(self, PrintDialogData data=None) -> Printer"""
4206 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4207 self
.this
= newobj
.this
4210 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4213 if self
.thisown
: destroy(self
)
4216 def CreateAbortWindow(*args
, **kwargs
):
4217 """CreateAbortWindow(self, Window parent, Printout printout)"""
4218 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4220 def GetPrintDialogData(*args
, **kwargs
):
4221 """GetPrintDialogData(self) -> PrintDialogData"""
4222 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4224 def Print(*args
, **kwargs
):
4225 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4226 return _windows_
.Printer_Print(*args
, **kwargs
)
4228 def PrintDialog(*args
, **kwargs
):
4229 """PrintDialog(self, Window parent) -> DC"""
4230 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4232 def ReportError(*args
, **kwargs
):
4233 """ReportError(self, Window parent, Printout printout, String message)"""
4234 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4236 def Setup(*args
, **kwargs
):
4237 """Setup(self, Window parent) -> bool"""
4238 return _windows_
.Printer_Setup(*args
, **kwargs
)
4240 def GetAbort(*args
, **kwargs
):
4241 """GetAbort(self) -> bool"""
4242 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4244 def GetLastError(*args
, **kwargs
):
4245 """GetLastError() -> int"""
4246 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4248 GetLastError
= staticmethod(GetLastError
)
4250 class PrinterPtr(Printer
):
4251 def __init__(self
, this
):
4253 if not hasattr(self
,"thisown"): self
.thisown
= 0
4254 self
.__class
__ = Printer
4255 _windows_
.Printer_swigregister(PrinterPtr
)
4257 def Printer_GetLastError(*args
, **kwargs
):
4258 """Printer_GetLastError() -> int"""
4259 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4261 class Printout(_core
.Object
):
4263 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4264 def __init__(self
, *args
, **kwargs
):
4265 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4266 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4267 self
.this
= newobj
.this
4270 self
._setCallbackInfo
(self
, Printout
)
4272 def _setCallbackInfo(*args
, **kwargs
):
4273 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4274 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4276 def GetTitle(*args
, **kwargs
):
4277 """GetTitle(self) -> String"""
4278 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4280 def GetDC(*args
, **kwargs
):
4281 """GetDC(self) -> DC"""
4282 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4284 def SetDC(*args
, **kwargs
):
4285 """SetDC(self, DC dc)"""
4286 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4288 def SetPageSizePixels(*args
, **kwargs
):
4289 """SetPageSizePixels(self, int w, int h)"""
4290 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4292 def GetPageSizePixels(*args
, **kwargs
):
4293 """GetPageSizePixels() -> (w, h)"""
4294 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4296 def SetPageSizeMM(*args
, **kwargs
):
4297 """SetPageSizeMM(self, int w, int h)"""
4298 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4300 def GetPageSizeMM(*args
, **kwargs
):
4301 """GetPageSizeMM() -> (w, h)"""
4302 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4304 def SetPPIScreen(*args
, **kwargs
):
4305 """SetPPIScreen(self, int x, int y)"""
4306 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4308 def GetPPIScreen(*args
, **kwargs
):
4309 """GetPPIScreen() -> (x,y)"""
4310 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4312 def SetPPIPrinter(*args
, **kwargs
):
4313 """SetPPIPrinter(self, int x, int y)"""
4314 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4316 def GetPPIPrinter(*args
, **kwargs
):
4317 """GetPPIPrinter() -> (x,y)"""
4318 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4320 def IsPreview(*args
, **kwargs
):
4321 """IsPreview(self) -> bool"""
4322 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4324 def SetIsPreview(*args
, **kwargs
):
4325 """SetIsPreview(self, bool p)"""
4326 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4328 def base_OnBeginDocument(*args
, **kwargs
):
4329 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4330 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4332 def base_OnEndDocument(*args
, **kwargs
):
4333 """base_OnEndDocument(self)"""
4334 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4336 def base_OnBeginPrinting(*args
, **kwargs
):
4337 """base_OnBeginPrinting(self)"""
4338 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4340 def base_OnEndPrinting(*args
, **kwargs
):
4341 """base_OnEndPrinting(self)"""
4342 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4344 def base_OnPreparePrinting(*args
, **kwargs
):
4345 """base_OnPreparePrinting(self)"""
4346 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4348 def base_HasPage(*args
, **kwargs
):
4349 """base_HasPage(self, int page) -> bool"""
4350 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4352 def base_GetPageInfo(*args
, **kwargs
):
4353 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4354 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4357 class PrintoutPtr(Printout
):
4358 def __init__(self
, this
):
4360 if not hasattr(self
,"thisown"): self
.thisown
= 0
4361 self
.__class
__ = Printout
4362 _windows_
.Printout_swigregister(PrintoutPtr
)
4364 class PreviewCanvas(ScrolledWindow
):
4366 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4367 def __init__(self
, *args
, **kwargs
):
4369 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4370 Size size=DefaultSize, long style=0,
4371 String name=PreviewCanvasNameStr) -> PreviewCanvas
4373 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4374 self
.this
= newobj
.this
4377 self
._setOORInfo
(self
)
4380 class PreviewCanvasPtr(PreviewCanvas
):
4381 def __init__(self
, this
):
4383 if not hasattr(self
,"thisown"): self
.thisown
= 0
4384 self
.__class
__ = PreviewCanvas
4385 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4387 class PreviewFrame(Frame
):
4389 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4390 def __init__(self
, *args
, **kwargs
):
4392 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4393 Size size=DefaultSize,
4394 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4396 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4397 self
.this
= newobj
.this
4400 self
._setOORInfo
(self
)
4402 def Initialize(*args
, **kwargs
):
4403 """Initialize(self)"""
4404 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4406 def CreateControlBar(*args
, **kwargs
):
4407 """CreateControlBar(self)"""
4408 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4410 def CreateCanvas(*args
, **kwargs
):
4411 """CreateCanvas(self)"""
4412 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4414 def GetControlBar(*args
, **kwargs
):
4415 """GetControlBar(self) -> PreviewControlBar"""
4416 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4419 class PreviewFramePtr(PreviewFrame
):
4420 def __init__(self
, this
):
4422 if not hasattr(self
,"thisown"): self
.thisown
= 0
4423 self
.__class
__ = PreviewFrame
4424 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4426 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4427 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4428 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4429 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4430 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4431 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4432 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4433 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4434 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4435 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4436 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4437 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4438 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4439 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4440 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4441 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4442 class PreviewControlBar(Panel
):
4444 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4445 def __init__(self
, *args
, **kwargs
):
4447 __init__(self, PrintPreview preview, long buttons, Window parent,
4448 Point pos=DefaultPosition, Size size=DefaultSize,
4449 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4451 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4452 self
.this
= newobj
.this
4455 self
._setOORInfo
(self
)
4457 def GetZoomControl(*args
, **kwargs
):
4458 """GetZoomControl(self) -> int"""
4459 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4461 def SetZoomControl(*args
, **kwargs
):
4462 """SetZoomControl(self, int zoom)"""
4463 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4465 def GetPrintPreview(*args
, **kwargs
):
4466 """GetPrintPreview(self) -> PrintPreview"""
4467 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4469 def OnNext(*args
, **kwargs
):
4471 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4473 def OnPrevious(*args
, **kwargs
):
4474 """OnPrevious(self)"""
4475 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4477 def OnFirst(*args
, **kwargs
):
4479 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4481 def OnLast(*args
, **kwargs
):
4483 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4485 def OnGoto(*args
, **kwargs
):
4487 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4490 class PreviewControlBarPtr(PreviewControlBar
):
4491 def __init__(self
, this
):
4493 if not hasattr(self
,"thisown"): self
.thisown
= 0
4494 self
.__class
__ = PreviewControlBar
4495 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4497 class PrintPreview(_core
.Object
):
4499 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4500 def __init__(self
, *args
):
4502 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4503 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4505 newobj
= _windows_
.new_PrintPreview(*args
)
4506 self
.this
= newobj
.this
4509 def SetCurrentPage(*args
, **kwargs
):
4510 """SetCurrentPage(self, int pageNum) -> bool"""
4511 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4513 def GetCurrentPage(*args
, **kwargs
):
4514 """GetCurrentPage(self) -> int"""
4515 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4517 def SetPrintout(*args
, **kwargs
):
4518 """SetPrintout(self, Printout printout)"""
4519 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4521 def GetPrintout(*args
, **kwargs
):
4522 """GetPrintout(self) -> Printout"""
4523 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4525 def GetPrintoutForPrinting(*args
, **kwargs
):
4526 """GetPrintoutForPrinting(self) -> Printout"""
4527 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4529 def SetFrame(*args
, **kwargs
):
4530 """SetFrame(self, Frame frame)"""
4531 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4533 def SetCanvas(*args
, **kwargs
):
4534 """SetCanvas(self, PreviewCanvas canvas)"""
4535 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4537 def GetFrame(*args
, **kwargs
):
4538 """GetFrame(self) -> Frame"""
4539 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4541 def GetCanvas(*args
, **kwargs
):
4542 """GetCanvas(self) -> PreviewCanvas"""
4543 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4545 def PaintPage(*args
, **kwargs
):
4546 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4547 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4549 def DrawBlankPage(*args
, **kwargs
):
4550 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4551 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4553 def RenderPage(*args
, **kwargs
):
4554 """RenderPage(self, int pageNum) -> bool"""
4555 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4557 def AdjustScrollbars(*args
, **kwargs
):
4558 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4559 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4561 def GetPrintDialogData(*args
, **kwargs
):
4562 """GetPrintDialogData(self) -> PrintDialogData"""
4563 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4565 def SetZoom(*args
, **kwargs
):
4566 """SetZoom(self, int percent)"""
4567 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4569 def GetZoom(*args
, **kwargs
):
4570 """GetZoom(self) -> int"""
4571 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4573 def GetMaxPage(*args
, **kwargs
):
4574 """GetMaxPage(self) -> int"""
4575 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4577 def GetMinPage(*args
, **kwargs
):
4578 """GetMinPage(self) -> int"""
4579 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4581 def Ok(*args
, **kwargs
):
4582 """Ok(self) -> bool"""
4583 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4585 def SetOk(*args
, **kwargs
):
4586 """SetOk(self, bool ok)"""
4587 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4589 def Print(*args
, **kwargs
):
4590 """Print(self, bool interactive) -> bool"""
4591 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4593 def DetermineScaling(*args
, **kwargs
):
4594 """DetermineScaling(self)"""
4595 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4597 def __nonzero__(self
): return self
.Ok()
4599 class PrintPreviewPtr(PrintPreview
):
4600 def __init__(self
, this
):
4602 if not hasattr(self
,"thisown"): self
.thisown
= 0
4603 self
.__class
__ = PrintPreview
4604 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4606 class PyPrintPreview(PrintPreview
):
4608 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4609 def __init__(self
, *args
):
4611 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4612 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4614 newobj
= _windows_
.new_PyPrintPreview(*args
)
4615 self
.this
= newobj
.this
4618 self
._setCallbackInfo
(self
, PyPrintPreview
)
4620 def _setCallbackInfo(*args
, **kwargs
):
4621 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4622 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4624 def base_SetCurrentPage(*args
, **kwargs
):
4625 """base_SetCurrentPage(self, int pageNum) -> bool"""
4626 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4628 def base_PaintPage(*args
, **kwargs
):
4629 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4630 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4632 def base_DrawBlankPage(*args
, **kwargs
):
4633 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4634 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4636 def base_RenderPage(*args
, **kwargs
):
4637 """base_RenderPage(self, int pageNum) -> bool"""
4638 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4640 def base_SetZoom(*args
, **kwargs
):
4641 """base_SetZoom(self, int percent)"""
4642 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4644 def base_Print(*args
, **kwargs
):
4645 """base_Print(self, bool interactive) -> bool"""
4646 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4648 def base_DetermineScaling(*args
, **kwargs
):
4649 """base_DetermineScaling(self)"""
4650 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4653 class PyPrintPreviewPtr(PyPrintPreview
):
4654 def __init__(self
, this
):
4656 if not hasattr(self
,"thisown"): self
.thisown
= 0
4657 self
.__class
__ = PyPrintPreview
4658 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4660 class PyPreviewFrame(PreviewFrame
):
4662 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4663 def __init__(self
, *args
, **kwargs
):
4665 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4666 Size size=DefaultSize,
4667 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4669 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4670 self
.this
= newobj
.this
4673 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4675 def _setCallbackInfo(*args
, **kwargs
):
4676 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4677 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4679 def SetPreviewCanvas(*args
, **kwargs
):
4680 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4681 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4683 def SetControlBar(*args
, **kwargs
):
4684 """SetControlBar(self, PreviewControlBar bar)"""
4685 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4687 def base_Initialize(*args
, **kwargs
):
4688 """base_Initialize(self)"""
4689 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4691 def base_CreateCanvas(*args
, **kwargs
):
4692 """base_CreateCanvas(self)"""
4693 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4695 def base_CreateControlBar(*args
, **kwargs
):
4696 """base_CreateControlBar(self)"""
4697 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4700 class PyPreviewFramePtr(PyPreviewFrame
):
4701 def __init__(self
, this
):
4703 if not hasattr(self
,"thisown"): self
.thisown
= 0
4704 self
.__class
__ = PyPreviewFrame
4705 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4707 class PyPreviewControlBar(PreviewControlBar
):
4709 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4710 def __init__(self
, *args
, **kwargs
):
4712 __init__(self, PrintPreview preview, long buttons, Window parent,
4713 Point pos=DefaultPosition, Size size=DefaultSize,
4714 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4716 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4717 self
.this
= newobj
.this
4720 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4722 def _setCallbackInfo(*args
, **kwargs
):
4723 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4724 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4726 def SetPrintPreview(*args
, **kwargs
):
4727 """SetPrintPreview(self, PrintPreview preview)"""
4728 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4730 def base_CreateButtons(*args
, **kwargs
):
4731 """base_CreateButtons(self)"""
4732 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4734 def base_SetZoomControl(*args
, **kwargs
):
4735 """base_SetZoomControl(self, int zoom)"""
4736 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4739 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4740 def __init__(self
, this
):
4742 if not hasattr(self
,"thisown"): self
.thisown
= 0
4743 self
.__class
__ = PyPreviewControlBar
4744 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)