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 USER_ATTENTION_INFO
= _windows_
.USER_ATTENTION_INFO
309 USER_ATTENTION_ERROR
= _windows_
.USER_ATTENTION_ERROR
310 class TopLevelWindow(_core
.Window
):
311 def __init__(self
): raise RuntimeError, "No constructor defined"
313 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
314 def Maximize(*args
, **kwargs
):
315 """Maximize(self, bool maximize=True)"""
316 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
318 def Restore(*args
, **kwargs
):
320 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
322 def Iconize(*args
, **kwargs
):
323 """Iconize(self, bool iconize=True)"""
324 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
326 def IsMaximized(*args
, **kwargs
):
327 """IsMaximized(self) -> bool"""
328 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
330 def IsIconized(*args
, **kwargs
):
331 """IsIconized(self) -> bool"""
332 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
334 def GetIcon(*args
, **kwargs
):
335 """GetIcon(self) -> Icon"""
336 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
338 def SetIcon(*args
, **kwargs
):
339 """SetIcon(self, Icon icon)"""
340 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
342 def SetIcons(*args
, **kwargs
):
343 """SetIcons(self, wxIconBundle icons)"""
344 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
346 def ShowFullScreen(*args
, **kwargs
):
347 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
348 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
350 def IsFullScreen(*args
, **kwargs
):
351 """IsFullScreen(self) -> bool"""
352 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
354 def SetTitle(*args
, **kwargs
):
356 SetTitle(self, String title)
358 Sets the window's title. Applicable only to frames and dialogs.
360 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
362 def GetTitle(*args
, **kwargs
):
364 GetTitle(self) -> String
366 Gets the window's title. Applicable only to frames and dialogs.
368 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
370 def SetShape(*args
, **kwargs
):
371 """SetShape(self, Region region) -> bool"""
372 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
374 def RequestUserAttention(*args
, **kwargs
):
375 """RequestUserAttention(self, int flags=USER_ATTENTION_INFO)"""
376 return _windows_
.TopLevelWindow_RequestUserAttention(*args
, **kwargs
)
379 class TopLevelWindowPtr(TopLevelWindow
):
380 def __init__(self
, this
):
382 if not hasattr(self
,"thisown"): self
.thisown
= 0
383 self
.__class
__ = TopLevelWindow
384 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
385 cvar
= _windows_
.cvar
386 FrameNameStr
= cvar
.FrameNameStr
387 DialogNameStr
= cvar
.DialogNameStr
388 StatusLineNameStr
= cvar
.StatusLineNameStr
389 ToolBarNameStr
= cvar
.ToolBarNameStr
391 #---------------------------------------------------------------------------
393 class Frame(TopLevelWindow
):
395 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
396 def __init__(self
, *args
, **kwargs
):
398 __init__(self, Window parent, int id=-1, String title=EmptyString,
399 Point pos=DefaultPosition, Size size=DefaultSize,
400 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
402 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
403 self
.this
= newobj
.this
406 self
._setOORInfo
(self
)
408 def Create(*args
, **kwargs
):
410 Create(self, Window parent, int id=-1, String title=EmptyString,
411 Point pos=DefaultPosition, Size size=DefaultSize,
412 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
414 return _windows_
.Frame_Create(*args
, **kwargs
)
416 def GetClientAreaOrigin(*args
, **kwargs
):
418 GetClientAreaOrigin(self) -> Point
420 Get the origin of the client area of the window relative to the
421 window's top left corner (the client area may be shifted because of
422 the borders, scrollbars, other decorations...)
424 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
426 def SendSizeEvent(*args
, **kwargs
):
427 """SendSizeEvent(self)"""
428 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
430 def SetMenuBar(*args
, **kwargs
):
431 """SetMenuBar(self, MenuBar menubar)"""
432 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
434 def GetMenuBar(*args
, **kwargs
):
435 """GetMenuBar(self) -> MenuBar"""
436 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
438 def ProcessCommand(*args
, **kwargs
):
439 """ProcessCommand(self, int winid) -> bool"""
440 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
442 Command
= ProcessCommand
443 def CreateStatusBar(*args
, **kwargs
):
445 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
446 String name=StatusLineNameStr) -> StatusBar
448 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
450 def GetStatusBar(*args
, **kwargs
):
451 """GetStatusBar(self) -> StatusBar"""
452 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
454 def SetStatusBar(*args
, **kwargs
):
455 """SetStatusBar(self, StatusBar statBar)"""
456 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
458 def SetStatusText(*args
, **kwargs
):
459 """SetStatusText(self, String text, int number=0)"""
460 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
462 def SetStatusWidths(*args
, **kwargs
):
463 """SetStatusWidths(self, int widths, int widths_field)"""
464 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
466 def PushStatusText(*args
, **kwargs
):
467 """PushStatusText(self, String text, int number=0)"""
468 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
470 def PopStatusText(*args
, **kwargs
):
471 """PopStatusText(self, int number=0)"""
472 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
474 def SetStatusBarPane(*args
, **kwargs
):
475 """SetStatusBarPane(self, int n)"""
476 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
478 def GetStatusBarPane(*args
, **kwargs
):
479 """GetStatusBarPane(self) -> int"""
480 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
482 def CreateToolBar(*args
, **kwargs
):
483 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
484 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
486 def GetToolBar(*args
, **kwargs
):
487 """GetToolBar(self) -> wxToolBar"""
488 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
490 def SetToolBar(*args
, **kwargs
):
491 """SetToolBar(self, wxToolBar toolbar)"""
492 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
494 def DoGiveHelp(*args
, **kwargs
):
495 """DoGiveHelp(self, String text, bool show)"""
496 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
498 def DoMenuUpdates(*args
, **kwargs
):
499 """DoMenuUpdates(self, Menu menu=None)"""
500 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
502 def GetClassDefaultAttributes(*args
, **kwargs
):
504 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
506 Get the default attributes for this class. This is useful if you want
507 to use the same font or colour in your own control as in a standard
508 control -- which is a much better idea than hard coding specific
509 colours or fonts which might look completely out of place on the
510 user's system, especially if it uses themes.
512 The variant parameter is only relevant under Mac currently and is
513 ignore under other platforms. Under Mac, it will change the size of
514 the returned font. See `wx.Window.SetWindowVariant` for more about
517 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
519 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
521 class FramePtr(Frame
):
522 def __init__(self
, this
):
524 if not hasattr(self
,"thisown"): self
.thisown
= 0
525 self
.__class
__ = Frame
526 _windows_
.Frame_swigregister(FramePtr
)
528 def PreFrame(*args
, **kwargs
):
529 """PreFrame() -> Frame"""
530 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
534 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
536 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
538 Get the default attributes for this class. This is useful if you want
539 to use the same font or colour in your own control as in a standard
540 control -- which is a much better idea than hard coding specific
541 colours or fonts which might look completely out of place on the
542 user's system, especially if it uses themes.
544 The variant parameter is only relevant under Mac currently and is
545 ignore under other platforms. Under Mac, it will change the size of
546 the returned font. See `wx.Window.SetWindowVariant` for more about
549 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
551 #---------------------------------------------------------------------------
553 class Dialog(TopLevelWindow
):
555 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
556 def __init__(self
, *args
, **kwargs
):
558 __init__(self, Window parent, int id=-1, String title=EmptyString,
559 Point pos=DefaultPosition, Size size=DefaultSize,
560 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
562 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
563 self
.this
= newobj
.this
566 self
._setOORInfo
(self
)
568 def Create(*args
, **kwargs
):
570 Create(self, Window parent, int id=-1, String title=EmptyString,
571 Point pos=DefaultPosition, Size size=DefaultSize,
572 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
574 return _windows_
.Dialog_Create(*args
, **kwargs
)
576 def SetReturnCode(*args
, **kwargs
):
577 """SetReturnCode(self, int returnCode)"""
578 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
580 def GetReturnCode(*args
, **kwargs
):
581 """GetReturnCode(self) -> int"""
582 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
584 def CreateTextSizer(*args
, **kwargs
):
585 """CreateTextSizer(self, String message) -> Sizer"""
586 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
588 def CreateButtonSizer(*args
, **kwargs
):
589 """CreateButtonSizer(self, long flags) -> Sizer"""
590 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
592 def IsModal(*args
, **kwargs
):
593 """IsModal(self) -> bool"""
594 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
596 def ShowModal(*args
, **kwargs
):
597 """ShowModal(self) -> int"""
598 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
600 def EndModal(*args
, **kwargs
):
601 """EndModal(self, int retCode)"""
602 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
604 def GetClassDefaultAttributes(*args
, **kwargs
):
606 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
608 Get the default attributes for this class. This is useful if you want
609 to use the same font or colour in your own control as in a standard
610 control -- which is a much better idea than hard coding specific
611 colours or fonts which might look completely out of place on the
612 user's system, especially if it uses themes.
614 The variant parameter is only relevant under Mac currently and is
615 ignore under other platforms. Under Mac, it will change the size of
616 the returned font. See `wx.Window.SetWindowVariant` for more about
619 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
621 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
622 def SendSizeEvent(self
):
623 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
626 class DialogPtr(Dialog
):
627 def __init__(self
, this
):
629 if not hasattr(self
,"thisown"): self
.thisown
= 0
630 self
.__class
__ = Dialog
631 _windows_
.Dialog_swigregister(DialogPtr
)
633 def PreDialog(*args
, **kwargs
):
634 """PreDialog() -> Dialog"""
635 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
639 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
641 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
643 Get the default attributes for this class. This is useful if you want
644 to use the same font or colour in your own control as in a standard
645 control -- which is a much better idea than hard coding specific
646 colours or fonts which might look completely out of place on the
647 user's system, especially if it uses themes.
649 The variant parameter is only relevant under Mac currently and is
650 ignore under other platforms. Under Mac, it will change the size of
651 the returned font. See `wx.Window.SetWindowVariant` for more about
654 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
656 #---------------------------------------------------------------------------
658 class MiniFrame(Frame
):
660 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
661 def __init__(self
, *args
, **kwargs
):
663 __init__(self, Window parent, int id=-1, String title=EmptyString,
664 Point pos=DefaultPosition, Size size=DefaultSize,
665 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
667 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
668 self
.this
= newobj
.this
671 self
._setOORInfo
(self
)
673 def Create(*args
, **kwargs
):
675 Create(self, Window parent, int id=-1, String title=EmptyString,
676 Point pos=DefaultPosition, Size size=DefaultSize,
677 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
679 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
682 class MiniFramePtr(MiniFrame
):
683 def __init__(self
, this
):
685 if not hasattr(self
,"thisown"): self
.thisown
= 0
686 self
.__class
__ = MiniFrame
687 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
689 def PreMiniFrame(*args
, **kwargs
):
690 """PreMiniFrame() -> MiniFrame"""
691 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
695 #---------------------------------------------------------------------------
697 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
698 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
699 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
700 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
701 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
702 class SplashScreenWindow(_core
.Window
):
704 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
705 def __init__(self
, *args
, **kwargs
):
707 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
708 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
710 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
711 self
.this
= newobj
.this
714 self
._setOORInfo
(self
)
716 def SetBitmap(*args
, **kwargs
):
717 """SetBitmap(self, Bitmap bitmap)"""
718 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
720 def GetBitmap(*args
, **kwargs
):
721 """GetBitmap(self) -> Bitmap"""
722 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
725 class SplashScreenWindowPtr(SplashScreenWindow
):
726 def __init__(self
, this
):
728 if not hasattr(self
,"thisown"): self
.thisown
= 0
729 self
.__class
__ = SplashScreenWindow
730 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
732 class SplashScreen(Frame
):
734 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
735 def __init__(self
, *args
, **kwargs
):
737 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
738 Window parent, int id=-1, Point pos=DefaultPosition,
739 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
741 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
742 self
.this
= newobj
.this
745 self
._setOORInfo
(self
)
747 def GetSplashStyle(*args
, **kwargs
):
748 """GetSplashStyle(self) -> long"""
749 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
751 def GetSplashWindow(*args
, **kwargs
):
752 """GetSplashWindow(self) -> SplashScreenWindow"""
753 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
755 def GetTimeout(*args
, **kwargs
):
756 """GetTimeout(self) -> int"""
757 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
760 class SplashScreenPtr(SplashScreen
):
761 def __init__(self
, this
):
763 if not hasattr(self
,"thisown"): self
.thisown
= 0
764 self
.__class
__ = SplashScreen
765 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
767 #---------------------------------------------------------------------------
769 SB_NORMAL
= _windows_
.SB_NORMAL
770 SB_FLAT
= _windows_
.SB_FLAT
771 SB_RAISED
= _windows_
.SB_RAISED
772 class StatusBar(_core
.Window
):
774 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
775 def __init__(self
, *args
, **kwargs
):
776 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
777 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
778 self
.this
= newobj
.this
781 self
._setOORInfo
(self
)
783 def Create(*args
, **kwargs
):
784 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
785 return _windows_
.StatusBar_Create(*args
, **kwargs
)
787 def SetFieldsCount(*args
, **kwargs
):
788 """SetFieldsCount(self, int number=1)"""
789 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
791 def GetFieldsCount(*args
, **kwargs
):
792 """GetFieldsCount(self) -> int"""
793 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
795 def SetStatusText(*args
, **kwargs
):
796 """SetStatusText(self, String text, int number=0)"""
797 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
799 def GetStatusText(*args
, **kwargs
):
800 """GetStatusText(self, int number=0) -> String"""
801 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
803 def PushStatusText(*args
, **kwargs
):
804 """PushStatusText(self, String text, int number=0)"""
805 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
807 def PopStatusText(*args
, **kwargs
):
808 """PopStatusText(self, int number=0)"""
809 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
811 def SetStatusWidths(*args
, **kwargs
):
812 """SetStatusWidths(self, int widths, int widths_field)"""
813 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
815 def SetStatusStyles(*args
, **kwargs
):
816 """SetStatusStyles(self, int styles, int styles_field)"""
817 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
819 def GetFieldRect(*args
, **kwargs
):
820 """GetFieldRect(self, int i) -> Rect"""
821 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
823 def SetMinHeight(*args
, **kwargs
):
824 """SetMinHeight(self, int height)"""
825 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
827 def GetBorderX(*args
, **kwargs
):
828 """GetBorderX(self) -> int"""
829 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
831 def GetBorderY(*args
, **kwargs
):
832 """GetBorderY(self) -> int"""
833 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
835 def GetClassDefaultAttributes(*args
, **kwargs
):
837 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
839 Get the default attributes for this class. This is useful if you want
840 to use the same font or colour in your own control as in a standard
841 control -- which is a much better idea than hard coding specific
842 colours or fonts which might look completely out of place on the
843 user's system, especially if it uses themes.
845 The variant parameter is only relevant under Mac currently and is
846 ignore under other platforms. Under Mac, it will change the size of
847 the returned font. See `wx.Window.SetWindowVariant` for more about
850 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
852 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
854 class StatusBarPtr(StatusBar
):
855 def __init__(self
, this
):
857 if not hasattr(self
,"thisown"): self
.thisown
= 0
858 self
.__class
__ = StatusBar
859 _windows_
.StatusBar_swigregister(StatusBarPtr
)
861 def PreStatusBar(*args
, **kwargs
):
862 """PreStatusBar() -> StatusBar"""
863 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
867 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
869 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
871 Get the default attributes for this class. This is useful if you want
872 to use the same font or colour in your own control as in a standard
873 control -- which is a much better idea than hard coding specific
874 colours or fonts which might look completely out of place on the
875 user's system, especially if it uses themes.
877 The variant parameter is only relevant under Mac currently and is
878 ignore under other platforms. Under Mac, it will change the size of
879 the returned font. See `wx.Window.SetWindowVariant` for more about
882 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
884 #---------------------------------------------------------------------------
886 SP_NOBORDER
= _windows_
.SP_NOBORDER
887 SP_NOSASH
= _windows_
.SP_NOSASH
888 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
889 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
890 SP_3DSASH
= _windows_
.SP_3DSASH
891 SP_3DBORDER
= _windows_
.SP_3DBORDER
892 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
893 SP_BORDER
= _windows_
.SP_BORDER
894 SP_3D
= _windows_
.SP_3D
895 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
896 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
897 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
898 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
899 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
900 class SplitterWindow(_core
.Window
):
902 wx.SplitterWindow manages up to two subwindows or panes, with an
903 optional vertical or horizontal split which can be used with the mouse
907 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
908 def __init__(self
, *args
, **kwargs
):
910 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
911 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
913 Constructor. Creates and shows a SplitterWindow.
915 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
916 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
917 self
.this
= newobj
.this
920 self
._setOORInfo
(self
)
922 def Create(*args
, **kwargs
):
924 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
925 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
927 Create the GUI part of the SplitterWindow for the 2-phase create.
929 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
931 def GetWindow1(*args
, **kwargs
):
933 GetWindow1(self) -> Window
935 Gets the only or left/top pane.
937 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
939 def GetWindow2(*args
, **kwargs
):
941 GetWindow2(self) -> Window
943 Gets the right/bottom pane.
945 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
947 def SetSplitMode(*args
, **kwargs
):
949 SetSplitMode(self, int mode)
951 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
952 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
955 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
957 def GetSplitMode(*args
, **kwargs
):
959 GetSplitMode(self) -> int
963 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
965 def Initialize(*args
, **kwargs
):
967 Initialize(self, Window window)
969 Initializes the splitter window to have one pane. This should be
970 called if you wish to initially view only a single pane in the
973 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
975 def SplitVertically(*args
, **kwargs
):
977 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
979 Initializes the left and right panes of the splitter window.
981 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
983 def SplitHorizontally(*args
, **kwargs
):
985 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
987 Initializes the top and bottom panes of the splitter window.
989 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
991 def Unsplit(*args
, **kwargs
):
993 Unsplit(self, Window toRemove=None) -> bool
995 Unsplits the window. Pass the pane to remove, or None to remove the
996 right or bottom pane. Returns True if successful, False otherwise (the
997 window was not split).
999 This function will not actually delete the pane being
1000 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
1001 for the desired behaviour. By default, the pane being
1002 removed is only hidden.
1004 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1006 def ReplaceWindow(*args
, **kwargs
):
1008 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1010 This function replaces one of the windows managed by the
1011 SplitterWindow with another one. It is in general better to use it
1012 instead of calling Unsplit() and then resplitting the window back
1013 because it will provoke much less flicker. It is valid to call this
1014 function whether the splitter has two windows or only one.
1016 Both parameters should be non-None and winOld must specify one of the
1017 windows managed by the splitter. If the parameters are incorrect or
1018 the window couldn't be replaced, False is returned. Otherwise the
1019 function will return True, but please notice that it will not Destroy
1020 the replaced window and you may wish to do it yourself.
1022 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1024 def UpdateSize(*args
, **kwargs
):
1028 Causes any pending sizing of the sash and child panes to take place
1031 Such resizing normally takes place in idle time, in order to wait for
1032 layout to be completed. However, this can cause unacceptable flicker
1033 as the panes are resized after the window has been shown. To work
1034 around this, you can perform window layout (for example by sending a
1035 size event to the parent window), and then call this function, before
1036 showing the top-level window.
1038 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1040 def IsSplit(*args
, **kwargs
):
1042 IsSplit(self) -> bool
1044 Is the window split?
1046 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1048 def SetSashSize(*args
, **kwargs
):
1050 SetSashSize(self, int width)
1054 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1056 def SetBorderSize(*args
, **kwargs
):
1058 SetBorderSize(self, int width)
1060 Sets the border size
1062 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1064 def GetSashSize(*args
, **kwargs
):
1066 GetSashSize(self) -> int
1070 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1072 def GetBorderSize(*args
, **kwargs
):
1074 GetBorderSize(self) -> int
1076 Gets the border size
1078 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1080 def SetSashPosition(*args
, **kwargs
):
1082 SetSashPosition(self, int position, bool redraw=True)
1084 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1085 are resized and the sash and border are redrawn.
1087 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1089 def GetSashPosition(*args
, **kwargs
):
1091 GetSashPosition(self) -> int
1093 Returns the surrent sash position.
1095 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1097 def SetMinimumPaneSize(*args
, **kwargs
):
1099 SetMinimumPaneSize(self, int min)
1101 Sets the minimum pane size in pixels.
1103 The default minimum pane size is zero, which means that either pane
1104 can be reduced to zero by dragging the sash, thus removing one of the
1105 panes. To prevent this behaviour (and veto out-of-range sash
1106 dragging), set a minimum size, for example 20 pixels. If the
1107 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1108 the window may be unsplit even if minimum size is non-zero.
1110 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1112 def GetMinimumPaneSize(*args
, **kwargs
):
1114 GetMinimumPaneSize(self) -> int
1116 Gets the minimum pane size in pixels.
1118 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1120 def SashHitTest(*args
, **kwargs
):
1122 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1124 Tests for x, y over the sash
1126 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1128 def SizeWindows(*args
, **kwargs
):
1134 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1136 def SetNeedUpdating(*args
, **kwargs
):
1137 """SetNeedUpdating(self, bool needUpdating)"""
1138 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1140 def GetNeedUpdating(*args
, **kwargs
):
1141 """GetNeedUpdating(self) -> bool"""
1142 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1144 def GetClassDefaultAttributes(*args
, **kwargs
):
1146 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1148 Get the default attributes for this class. This is useful if you want
1149 to use the same font or colour in your own control as in a standard
1150 control -- which is a much better idea than hard coding specific
1151 colours or fonts which might look completely out of place on the
1152 user's system, especially if it uses themes.
1154 The variant parameter is only relevant under Mac currently and is
1155 ignore under other platforms. Under Mac, it will change the size of
1156 the returned font. See `wx.Window.SetWindowVariant` for more about
1159 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1161 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1163 class SplitterWindowPtr(SplitterWindow
):
1164 def __init__(self
, this
):
1166 if not hasattr(self
,"thisown"): self
.thisown
= 0
1167 self
.__class
__ = SplitterWindow
1168 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1169 SplitterNameStr
= cvar
.SplitterNameStr
1171 def PreSplitterWindow(*args
, **kwargs
):
1173 PreSplitterWindow() -> SplitterWindow
1175 Precreate a SplitterWindow for 2-phase creation.
1177 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1181 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1183 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1185 Get the default attributes for this class. This is useful if you want
1186 to use the same font or colour in your own control as in a standard
1187 control -- which is a much better idea than hard coding specific
1188 colours or fonts which might look completely out of place on the
1189 user's system, especially if it uses themes.
1191 The variant parameter is only relevant under Mac currently and is
1192 ignore under other platforms. Under Mac, it will change the size of
1193 the returned font. See `wx.Window.SetWindowVariant` for more about
1196 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1198 class SplitterEvent(_core
.NotifyEvent
):
1199 """This class represents the events generated by a splitter control."""
1201 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1202 def __init__(self
, *args
, **kwargs
):
1204 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1206 This class represents the events generated by a splitter control.
1208 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1209 self
.this
= newobj
.this
1212 def SetSashPosition(*args
, **kwargs
):
1214 SetSashPosition(self, int pos)
1216 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1217 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1218 events, sets the the new sash position. In the case of _CHANGING
1219 events, sets the new tracking bar position so visual feedback during
1220 dragging will represent that change that will actually take place. Set
1221 to -1 from the event handler code to prevent repositioning.
1223 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1225 def GetSashPosition(*args
, **kwargs
):
1227 GetSashPosition(self) -> int
1229 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1230 and EVT_SPLITTER_SASH_POS_CHANGED events.
1232 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1234 def GetWindowBeingRemoved(*args
, **kwargs
):
1236 GetWindowBeingRemoved(self) -> Window
1238 Returns a pointer to the window being removed when a splitter window
1241 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1243 def GetX(*args
, **kwargs
):
1247 Returns the x coordinate of the double-click point in a
1248 EVT_SPLITTER_DCLICK event.
1250 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1252 def GetY(*args
, **kwargs
):
1256 Returns the y coordinate of the double-click point in a
1257 EVT_SPLITTER_DCLICK event.
1259 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1262 class SplitterEventPtr(SplitterEvent
):
1263 def __init__(self
, this
):
1265 if not hasattr(self
,"thisown"): self
.thisown
= 0
1266 self
.__class
__ = SplitterEvent
1267 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1269 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1270 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1271 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1272 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1273 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1274 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1275 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1276 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1277 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1279 #---------------------------------------------------------------------------
1281 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1282 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1283 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1284 SW_NOBORDER
= _windows_
.SW_NOBORDER
1285 SW_BORDER
= _windows_
.SW_BORDER
1286 SW_3DSASH
= _windows_
.SW_3DSASH
1287 SW_3DBORDER
= _windows_
.SW_3DBORDER
1288 SW_3D
= _windows_
.SW_3D
1289 SASH_TOP
= _windows_
.SASH_TOP
1290 SASH_RIGHT
= _windows_
.SASH_RIGHT
1291 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1292 SASH_LEFT
= _windows_
.SASH_LEFT
1293 SASH_NONE
= _windows_
.SASH_NONE
1294 class SashWindow(_core
.Window
):
1296 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1297 def __init__(self
, *args
, **kwargs
):
1299 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1300 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1301 String name=SashNameStr) -> SashWindow
1303 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1304 self
.this
= newobj
.this
1307 self
._setOORInfo
(self
)
1309 def Create(*args
, **kwargs
):
1311 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1312 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1313 String name=SashNameStr) -> bool
1315 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1317 def SetSashVisible(*args
, **kwargs
):
1318 """SetSashVisible(self, int edge, bool sash)"""
1319 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1321 def GetSashVisible(*args
, **kwargs
):
1322 """GetSashVisible(self, int edge) -> bool"""
1323 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1325 def SetSashBorder(*args
, **kwargs
):
1326 """SetSashBorder(self, int edge, bool border)"""
1327 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1329 def HasBorder(*args
, **kwargs
):
1330 """HasBorder(self, int edge) -> bool"""
1331 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1333 def GetEdgeMargin(*args
, **kwargs
):
1334 """GetEdgeMargin(self, int edge) -> int"""
1335 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1337 def SetDefaultBorderSize(*args
, **kwargs
):
1338 """SetDefaultBorderSize(self, int width)"""
1339 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1341 def GetDefaultBorderSize(*args
, **kwargs
):
1342 """GetDefaultBorderSize(self) -> int"""
1343 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1345 def SetExtraBorderSize(*args
, **kwargs
):
1346 """SetExtraBorderSize(self, int width)"""
1347 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1349 def GetExtraBorderSize(*args
, **kwargs
):
1350 """GetExtraBorderSize(self) -> int"""
1351 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1353 def SetMinimumSizeX(*args
, **kwargs
):
1354 """SetMinimumSizeX(self, int min)"""
1355 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1357 def SetMinimumSizeY(*args
, **kwargs
):
1358 """SetMinimumSizeY(self, int min)"""
1359 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1361 def GetMinimumSizeX(*args
, **kwargs
):
1362 """GetMinimumSizeX(self) -> int"""
1363 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1365 def GetMinimumSizeY(*args
, **kwargs
):
1366 """GetMinimumSizeY(self) -> int"""
1367 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1369 def SetMaximumSizeX(*args
, **kwargs
):
1370 """SetMaximumSizeX(self, int max)"""
1371 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1373 def SetMaximumSizeY(*args
, **kwargs
):
1374 """SetMaximumSizeY(self, int max)"""
1375 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1377 def GetMaximumSizeX(*args
, **kwargs
):
1378 """GetMaximumSizeX(self) -> int"""
1379 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1381 def GetMaximumSizeY(*args
, **kwargs
):
1382 """GetMaximumSizeY(self) -> int"""
1383 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1385 def SashHitTest(*args
, **kwargs
):
1386 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1387 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1389 def SizeWindows(*args
, **kwargs
):
1390 """SizeWindows(self)"""
1391 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1394 class SashWindowPtr(SashWindow
):
1395 def __init__(self
, this
):
1397 if not hasattr(self
,"thisown"): self
.thisown
= 0
1398 self
.__class
__ = SashWindow
1399 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1400 SashNameStr
= cvar
.SashNameStr
1401 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1403 def PreSashWindow(*args
, **kwargs
):
1404 """PreSashWindow() -> SashWindow"""
1405 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1409 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1410 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1411 class SashEvent(_core
.CommandEvent
):
1413 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1414 def __init__(self
, *args
, **kwargs
):
1415 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1416 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1417 self
.this
= newobj
.this
1420 def SetEdge(*args
, **kwargs
):
1421 """SetEdge(self, int edge)"""
1422 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1424 def GetEdge(*args
, **kwargs
):
1425 """GetEdge(self) -> int"""
1426 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1428 def SetDragRect(*args
, **kwargs
):
1429 """SetDragRect(self, Rect rect)"""
1430 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1432 def GetDragRect(*args
, **kwargs
):
1433 """GetDragRect(self) -> Rect"""
1434 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1436 def SetDragStatus(*args
, **kwargs
):
1437 """SetDragStatus(self, int status)"""
1438 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1440 def GetDragStatus(*args
, **kwargs
):
1441 """GetDragStatus(self) -> int"""
1442 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1445 class SashEventPtr(SashEvent
):
1446 def __init__(self
, this
):
1448 if not hasattr(self
,"thisown"): self
.thisown
= 0
1449 self
.__class
__ = SashEvent
1450 _windows_
.SashEvent_swigregister(SashEventPtr
)
1452 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1453 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1454 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1456 #---------------------------------------------------------------------------
1458 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1459 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1460 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1461 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1462 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1463 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1464 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1465 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1466 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1467 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1468 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1469 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1470 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1471 class QueryLayoutInfoEvent(_core
.Event
):
1473 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1474 def __init__(self
, *args
, **kwargs
):
1475 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1476 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1477 self
.this
= newobj
.this
1480 def SetRequestedLength(*args
, **kwargs
):
1481 """SetRequestedLength(self, int length)"""
1482 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1484 def GetRequestedLength(*args
, **kwargs
):
1485 """GetRequestedLength(self) -> int"""
1486 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1488 def SetFlags(*args
, **kwargs
):
1489 """SetFlags(self, int flags)"""
1490 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1492 def GetFlags(*args
, **kwargs
):
1493 """GetFlags(self) -> int"""
1494 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1496 def SetSize(*args
, **kwargs
):
1497 """SetSize(self, Size size)"""
1498 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1500 def GetSize(*args
, **kwargs
):
1501 """GetSize(self) -> Size"""
1502 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1504 def SetOrientation(*args
, **kwargs
):
1505 """SetOrientation(self, int orient)"""
1506 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1508 def GetOrientation(*args
, **kwargs
):
1509 """GetOrientation(self) -> int"""
1510 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1512 def SetAlignment(*args
, **kwargs
):
1513 """SetAlignment(self, int align)"""
1514 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1516 def GetAlignment(*args
, **kwargs
):
1517 """GetAlignment(self) -> int"""
1518 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1521 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1522 def __init__(self
, this
):
1524 if not hasattr(self
,"thisown"): self
.thisown
= 0
1525 self
.__class
__ = QueryLayoutInfoEvent
1526 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1528 class CalculateLayoutEvent(_core
.Event
):
1530 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1531 def __init__(self
, *args
, **kwargs
):
1532 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1533 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1534 self
.this
= newobj
.this
1537 def SetFlags(*args
, **kwargs
):
1538 """SetFlags(self, int flags)"""
1539 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1541 def GetFlags(*args
, **kwargs
):
1542 """GetFlags(self) -> int"""
1543 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1545 def SetRect(*args
, **kwargs
):
1546 """SetRect(self, Rect rect)"""
1547 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1549 def GetRect(*args
, **kwargs
):
1550 """GetRect(self) -> Rect"""
1551 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1554 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1555 def __init__(self
, this
):
1557 if not hasattr(self
,"thisown"): self
.thisown
= 0
1558 self
.__class
__ = CalculateLayoutEvent
1559 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1561 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1562 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1564 class SashLayoutWindow(SashWindow
):
1566 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1567 def __init__(self
, *args
, **kwargs
):
1569 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1570 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1571 String name=SashLayoutNameStr) -> SashLayoutWindow
1573 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1574 self
.this
= newobj
.this
1577 self
._setOORInfo
(self
)
1579 def Create(*args
, **kwargs
):
1581 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1582 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1583 String name=SashLayoutNameStr) -> bool
1585 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1587 def GetAlignment(*args
, **kwargs
):
1588 """GetAlignment(self) -> int"""
1589 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1591 def GetOrientation(*args
, **kwargs
):
1592 """GetOrientation(self) -> int"""
1593 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1595 def SetAlignment(*args
, **kwargs
):
1596 """SetAlignment(self, int alignment)"""
1597 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1599 def SetDefaultSize(*args
, **kwargs
):
1600 """SetDefaultSize(self, Size size)"""
1601 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1603 def SetOrientation(*args
, **kwargs
):
1604 """SetOrientation(self, int orientation)"""
1605 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1608 class SashLayoutWindowPtr(SashLayoutWindow
):
1609 def __init__(self
, this
):
1611 if not hasattr(self
,"thisown"): self
.thisown
= 0
1612 self
.__class
__ = SashLayoutWindow
1613 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1615 def PreSashLayoutWindow(*args
, **kwargs
):
1616 """PreSashLayoutWindow() -> SashLayoutWindow"""
1617 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1621 class LayoutAlgorithm(_core
.Object
):
1623 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1624 def __init__(self
, *args
, **kwargs
):
1625 """__init__(self) -> LayoutAlgorithm"""
1626 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1627 self
.this
= newobj
.this
1630 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1633 if self
.thisown
: destroy(self
)
1636 def LayoutMDIFrame(*args
, **kwargs
):
1637 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1638 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1640 def LayoutFrame(*args
, **kwargs
):
1641 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1642 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1644 def LayoutWindow(*args
, **kwargs
):
1645 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1646 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1649 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1650 def __init__(self
, this
):
1652 if not hasattr(self
,"thisown"): self
.thisown
= 0
1653 self
.__class
__ = LayoutAlgorithm
1654 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1656 #---------------------------------------------------------------------------
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
1667 self
._setOORInfo
(self
)
1669 def Create(*args
, **kwargs
):
1670 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1671 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1673 def Position(*args
, **kwargs
):
1674 """Position(self, Point ptOrigin, Size size)"""
1675 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1678 class PopupWindowPtr(PopupWindow
):
1679 def __init__(self
, this
):
1681 if not hasattr(self
,"thisown"): self
.thisown
= 0
1682 self
.__class
__ = PopupWindow
1683 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1685 def PrePopupWindow(*args
, **kwargs
):
1686 """PrePopupWindow() -> PopupWindow"""
1687 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1691 #---------------------------------------------------------------------------
1693 class PopupTransientWindow(PopupWindow
):
1695 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1696 def __init__(self
, *args
, **kwargs
):
1697 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1698 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1699 self
.this
= newobj
.this
1702 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1704 def _setCallbackInfo(*args
, **kwargs
):
1705 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1706 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1708 def Popup(*args
, **kwargs
):
1709 """Popup(self, Window focus=None)"""
1710 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1712 def Dismiss(*args
, **kwargs
):
1714 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1717 class PopupTransientWindowPtr(PopupTransientWindow
):
1718 def __init__(self
, this
):
1720 if not hasattr(self
,"thisown"): self
.thisown
= 0
1721 self
.__class
__ = PopupTransientWindow
1722 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1724 def PrePopupTransientWindow(*args
, **kwargs
):
1725 """PrePopupTransientWindow() -> PopupTransientWindow"""
1726 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1730 #---------------------------------------------------------------------------
1732 class TipWindow(PopupTransientWindow
):
1734 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1735 def __init__(self
, *args
, **kwargs
):
1736 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1737 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1738 self
.this
= newobj
.this
1741 self
._setOORInfo
(self
)
1743 def SetBoundingRect(*args
, **kwargs
):
1744 """SetBoundingRect(self, Rect rectBound)"""
1745 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1747 def Close(*args
, **kwargs
):
1749 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1752 class TipWindowPtr(TipWindow
):
1753 def __init__(self
, this
):
1755 if not hasattr(self
,"thisown"): self
.thisown
= 0
1756 self
.__class
__ = TipWindow
1757 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1759 #---------------------------------------------------------------------------
1761 class VScrolledWindow(Panel
):
1763 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1764 def __init__(self
, *args
, **kwargs
):
1766 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1767 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1769 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1770 self
.this
= newobj
.this
1773 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1775 def _setCallbackInfo(*args
, **kwargs
):
1776 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1777 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1779 def Create(*args
, **kwargs
):
1781 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1782 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1784 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1786 def SetLineCount(*args
, **kwargs
):
1787 """SetLineCount(self, size_t count)"""
1788 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1790 def ScrollToLine(*args
, **kwargs
):
1791 """ScrollToLine(self, size_t line) -> bool"""
1792 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1794 def ScrollLines(*args
, **kwargs
):
1796 ScrollLines(self, int lines) -> bool
1798 If the platform and window class supports it, scrolls the window by
1799 the given number of lines down, if lines is positive, or up if lines
1800 is negative. Returns True if the window was scrolled, False if it was
1801 already on top/bottom and nothing was done.
1803 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1805 def ScrollPages(*args
, **kwargs
):
1807 ScrollPages(self, int pages) -> bool
1809 If the platform and window class supports it, scrolls the window by
1810 the given number of pages down, if pages is positive, or up if pages
1811 is negative. Returns True if the window was scrolled, False if it was
1812 already on top/bottom and nothing was done.
1814 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1816 def RefreshLine(*args
, **kwargs
):
1817 """RefreshLine(self, size_t line)"""
1818 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1820 def RefreshLines(*args
, **kwargs
):
1821 """RefreshLines(self, size_t from, size_t to)"""
1822 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1824 def HitTestXY(*args
, **kwargs
):
1826 HitTestXY(self, int x, int y) -> int
1828 Test where the given (in client coords) point lies
1830 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1832 def HitTest(*args
, **kwargs
):
1834 HitTest(self, Point pt) -> int
1836 Test where the given (in client coords) point lies
1838 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1840 def RefreshAll(*args
, **kwargs
):
1841 """RefreshAll(self)"""
1842 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1844 def GetLineCount(*args
, **kwargs
):
1845 """GetLineCount(self) -> size_t"""
1846 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1848 def GetFirstVisibleLine(*args
, **kwargs
):
1849 """GetFirstVisibleLine(self) -> size_t"""
1850 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1852 def GetLastVisibleLine(*args
, **kwargs
):
1853 """GetLastVisibleLine(self) -> size_t"""
1854 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1856 def IsVisible(*args
, **kwargs
):
1857 """IsVisible(self, size_t line) -> bool"""
1858 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1861 class VScrolledWindowPtr(VScrolledWindow
):
1862 def __init__(self
, this
):
1864 if not hasattr(self
,"thisown"): self
.thisown
= 0
1865 self
.__class
__ = VScrolledWindow
1866 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1868 def PreVScrolledWindow(*args
, **kwargs
):
1869 """PreVScrolledWindow() -> VScrolledWindow"""
1870 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1874 class VListBox(VScrolledWindow
):
1876 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1877 def __init__(self
, *args
, **kwargs
):
1879 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1880 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1882 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1883 self
.this
= newobj
.this
1886 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1888 def _setCallbackInfo(*args
, **kwargs
):
1889 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1890 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1892 def Create(*args
, **kwargs
):
1894 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1895 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1897 return _windows_
.VListBox_Create(*args
, **kwargs
)
1899 def GetItemCount(*args
, **kwargs
):
1900 """GetItemCount(self) -> size_t"""
1901 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1903 def HasMultipleSelection(*args
, **kwargs
):
1904 """HasMultipleSelection(self) -> bool"""
1905 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1907 def GetSelection(*args
, **kwargs
):
1908 """GetSelection(self) -> int"""
1909 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1911 def IsCurrent(*args
, **kwargs
):
1912 """IsCurrent(self, size_t item) -> bool"""
1913 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1915 def IsSelected(*args
, **kwargs
):
1916 """IsSelected(self, size_t item) -> bool"""
1917 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1919 def GetSelectedCount(*args
, **kwargs
):
1920 """GetSelectedCount(self) -> size_t"""
1921 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1923 def GetFirstSelected(*args
, **kwargs
):
1924 """GetFirstSelected(self) -> PyObject"""
1925 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1927 def GetNextSelected(*args
, **kwargs
):
1928 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1929 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1931 def GetMargins(*args
, **kwargs
):
1932 """GetMargins(self) -> Point"""
1933 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1935 def GetSelectionBackground(*args
, **kwargs
):
1936 """GetSelectionBackground(self) -> Colour"""
1937 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1939 def SetItemCount(*args
, **kwargs
):
1940 """SetItemCount(self, size_t count)"""
1941 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1943 def Clear(*args
, **kwargs
):
1945 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1947 def SetSelection(*args
, **kwargs
):
1948 """SetSelection(self, int selection)"""
1949 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1951 def Select(*args
, **kwargs
):
1952 """Select(self, size_t item, bool select=True) -> bool"""
1953 return _windows_
.VListBox_Select(*args
, **kwargs
)
1955 def SelectRange(*args
, **kwargs
):
1956 """SelectRange(self, size_t from, size_t to) -> bool"""
1957 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1959 def Toggle(*args
, **kwargs
):
1960 """Toggle(self, size_t item)"""
1961 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1963 def SelectAll(*args
, **kwargs
):
1964 """SelectAll(self) -> bool"""
1965 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1967 def DeselectAll(*args
, **kwargs
):
1968 """DeselectAll(self) -> bool"""
1969 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1971 def SetMargins(*args
, **kwargs
):
1972 """SetMargins(self, Point pt)"""
1973 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1975 def SetMarginsXY(*args
, **kwargs
):
1976 """SetMarginsXY(self, int x, int y)"""
1977 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1979 def SetSelectionBackground(*args
, **kwargs
):
1980 """SetSelectionBackground(self, Colour col)"""
1981 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1984 class VListBoxPtr(VListBox
):
1985 def __init__(self
, this
):
1987 if not hasattr(self
,"thisown"): self
.thisown
= 0
1988 self
.__class
__ = VListBox
1989 _windows_
.VListBox_swigregister(VListBoxPtr
)
1990 VListBoxNameStr
= cvar
.VListBoxNameStr
1992 def PreVListBox(*args
, **kwargs
):
1993 """PreVListBox() -> VListBox"""
1994 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1998 class HtmlListBox(VListBox
):
2000 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2001 def __init__(self
, *args
, **kwargs
):
2003 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2004 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2006 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2007 self
.this
= newobj
.this
2010 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2012 def _setCallbackInfo(*args
, **kwargs
):
2013 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2014 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2016 def Create(*args
, **kwargs
):
2018 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2019 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2021 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2023 def RefreshAll(*args
, **kwargs
):
2024 """RefreshAll(self)"""
2025 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2027 def SetItemCount(*args
, **kwargs
):
2028 """SetItemCount(self, size_t count)"""
2029 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2031 def GetFileSystem(*args
, **kwargs
):
2032 """GetFileSystem(self) -> FileSystem"""
2033 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2036 class HtmlListBoxPtr(HtmlListBox
):
2037 def __init__(self
, this
):
2039 if not hasattr(self
,"thisown"): self
.thisown
= 0
2040 self
.__class
__ = HtmlListBox
2041 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2043 def PreHtmlListBox(*args
, **kwargs
):
2044 """PreHtmlListBox() -> HtmlListBox"""
2045 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2049 #---------------------------------------------------------------------------
2051 class TaskBarIcon(_core
.EvtHandler
):
2053 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2054 def __init__(self
, *args
, **kwargs
):
2055 """__init__(self) -> TaskBarIcon"""
2056 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2057 self
.this
= newobj
.this
2060 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2063 if self
.thisown
: destroy(self
)
2066 def Destroy(*args
, **kwargs
):
2070 Deletes the C++ object this Python object is a proxy for.
2072 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2074 def IsOk(*args
, **kwargs
):
2075 """IsOk(self) -> bool"""
2076 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2078 def __nonzero__(self
): return self
.IsOk()
2079 def IsIconInstalled(*args
, **kwargs
):
2080 """IsIconInstalled(self) -> bool"""
2081 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2083 def SetIcon(*args
, **kwargs
):
2084 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2085 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2087 def RemoveIcon(*args
, **kwargs
):
2088 """RemoveIcon(self) -> bool"""
2089 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2091 def PopupMenu(*args
, **kwargs
):
2092 """PopupMenu(self, Menu menu) -> bool"""
2093 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2096 class TaskBarIconPtr(TaskBarIcon
):
2097 def __init__(self
, this
):
2099 if not hasattr(self
,"thisown"): self
.thisown
= 0
2100 self
.__class
__ = TaskBarIcon
2101 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2103 class TaskBarIconEvent(_core
.Event
):
2105 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2106 def __init__(self
, *args
, **kwargs
):
2107 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2108 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2109 self
.this
= newobj
.this
2113 class TaskBarIconEventPtr(TaskBarIconEvent
):
2114 def __init__(self
, this
):
2116 if not hasattr(self
,"thisown"): self
.thisown
= 0
2117 self
.__class
__ = TaskBarIconEvent
2118 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2120 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2121 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2122 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2123 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2124 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2125 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2126 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2127 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2128 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2129 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2130 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2131 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2132 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2133 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2135 #---------------------------------------------------------------------------
2137 class ColourData(_core
.Object
):
2139 This class holds a variety of information related to the colour
2140 chooser dialog, used to transfer settings and results to and from the
2144 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2145 def __init__(self
, *args
, **kwargs
):
2147 __init__(self) -> ColourData
2149 Constructor, sets default values.
2151 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2152 self
.this
= newobj
.this
2155 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2158 if self
.thisown
: destroy(self
)
2161 def GetChooseFull(*args
, **kwargs
):
2163 GetChooseFull(self) -> bool
2165 Under Windows, determines whether the Windows colour dialog will
2166 display the full dialog with custom colour selection controls. Has no
2167 meaning under other platforms. The default value is true.
2169 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2171 def GetColour(*args
, **kwargs
):
2173 GetColour(self) -> Colour
2175 Gets the colour (pre)selected by the dialog.
2177 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2179 def GetCustomColour(*args
, **kwargs
):
2181 GetCustomColour(self, int i) -> Colour
2183 Gets the i'th custom colour associated with the colour dialog. i
2184 should be an integer between 0 and 15. The default custom colours are
2185 all invalid colours.
2187 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2189 def SetChooseFull(*args
, **kwargs
):
2191 SetChooseFull(self, int flag)
2193 Under Windows, tells the Windows colour dialog to display the full
2194 dialog with custom colour selection controls. Under other platforms,
2195 has no effect. The default value is true.
2197 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2199 def SetColour(*args
, **kwargs
):
2201 SetColour(self, Colour colour)
2203 Sets the default colour for the colour dialog. The default colour is
2206 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2208 def SetCustomColour(*args
, **kwargs
):
2210 SetCustomColour(self, int i, Colour colour)
2212 Sets the i'th custom colour for the colour dialog. i should be an
2213 integer between 0 and 15. The default custom colours are all invalid colours.
2215 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2218 class ColourDataPtr(ColourData
):
2219 def __init__(self
, this
):
2221 if not hasattr(self
,"thisown"): self
.thisown
= 0
2222 self
.__class
__ = ColourData
2223 _windows_
.ColourData_swigregister(ColourDataPtr
)
2224 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2225 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2226 DirDialogNameStr
= cvar
.DirDialogNameStr
2227 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2228 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2229 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2231 class ColourDialog(Dialog
):
2232 """This class represents the colour chooser dialog."""
2234 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2235 def __init__(self
, *args
, **kwargs
):
2237 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2239 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2240 which will be copied to the colour dialog's internal ColourData
2243 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2244 self
.this
= newobj
.this
2247 self
._setOORInfo
(self
)
2249 def GetColourData(*args
, **kwargs
):
2251 GetColourData(self) -> ColourData
2253 Returns a reference to the `wx.ColourData` used by the dialog.
2255 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2258 class ColourDialogPtr(ColourDialog
):
2259 def __init__(self
, this
):
2261 if not hasattr(self
,"thisown"): self
.thisown
= 0
2262 self
.__class
__ = ColourDialog
2263 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2265 class DirDialog(Dialog
):
2267 wx.DirDialog allows the user to select a directory by browising the
2271 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2272 def __init__(self
, *args
, **kwargs
):
2274 __init__(self, Window parent, String message=DirSelectorPromptStr,
2275 String defaultPath=EmptyString, long style=0,
2276 Point pos=DefaultPosition, Size size=DefaultSize,
2277 String name=DirDialogNameStr) -> DirDialog
2279 Constructor. Use ShowModal method to show the dialog.
2281 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2282 self
.this
= newobj
.this
2285 self
._setOORInfo
(self
)
2287 def GetPath(*args
, **kwargs
):
2289 GetPath(self) -> String
2291 Returns the default or user-selected path.
2293 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2295 def GetMessage(*args
, **kwargs
):
2297 GetMessage(self) -> String
2299 Returns the message that will be displayed on the dialog.
2301 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2303 def GetStyle(*args
, **kwargs
):
2305 GetStyle(self) -> long
2307 Returns the dialog style.
2309 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2311 def SetMessage(*args
, **kwargs
):
2313 SetMessage(self, String message)
2315 Sets the message that will be displayed on the dialog.
2317 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2319 def SetPath(*args
, **kwargs
):
2321 SetPath(self, String path)
2323 Sets the default path.
2325 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2328 class DirDialogPtr(DirDialog
):
2329 def __init__(self
, this
):
2331 if not hasattr(self
,"thisown"): self
.thisown
= 0
2332 self
.__class
__ = DirDialog
2333 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2335 class FileDialog(Dialog
):
2337 wx.FileDialog allows the user to select one or more files from the
2341 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2342 def __init__(self
, *args
, **kwargs
):
2344 __init__(self, Window parent, String message=FileSelectorPromptStr,
2345 String defaultDir=EmptyString, String defaultFile=EmptyString,
2346 String wildcard=FileSelectorDefaultWildcardStr,
2347 long style=0, Point pos=DefaultPosition) -> FileDialog
2349 Constructor. Use ShowModal method to show the dialog.
2351 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2352 self
.this
= newobj
.this
2355 self
._setOORInfo
(self
)
2357 def SetMessage(*args
, **kwargs
):
2359 SetMessage(self, String message)
2361 Sets the message that will be displayed on the dialog.
2363 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2365 def SetPath(*args
, **kwargs
):
2367 SetPath(self, String path)
2369 Sets the path (the combined directory and filename that will be
2370 returned when the dialog is dismissed).
2372 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2374 def SetDirectory(*args
, **kwargs
):
2376 SetDirectory(self, String dir)
2378 Sets the default directory.
2380 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2382 def SetFilename(*args
, **kwargs
):
2384 SetFilename(self, String name)
2386 Sets the default filename.
2388 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2390 def SetWildcard(*args
, **kwargs
):
2392 SetWildcard(self, String wildCard)
2394 Sets the wildcard, which can contain multiple file types, for
2397 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2400 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2402 def SetStyle(*args
, **kwargs
):
2404 SetStyle(self, long style)
2406 Sets the dialog style.
2408 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2410 def SetFilterIndex(*args
, **kwargs
):
2412 SetFilterIndex(self, int filterIndex)
2414 Sets the default filter index, starting from zero.
2416 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2418 def GetMessage(*args
, **kwargs
):
2420 GetMessage(self) -> String
2422 Returns the message that will be displayed on the dialog.
2424 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2426 def GetPath(*args
, **kwargs
):
2428 GetPath(self) -> String
2430 Returns the full path (directory and filename) of the selected file.
2432 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2434 def GetDirectory(*args
, **kwargs
):
2436 GetDirectory(self) -> String
2438 Returns the default directory.
2440 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2442 def GetFilename(*args
, **kwargs
):
2444 GetFilename(self) -> String
2446 Returns the default filename.
2448 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2450 def GetWildcard(*args
, **kwargs
):
2452 GetWildcard(self) -> String
2454 Returns the file dialog wildcard.
2456 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2458 def GetStyle(*args
, **kwargs
):
2460 GetStyle(self) -> long
2462 Returns the dialog style.
2464 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2466 def GetFilterIndex(*args
, **kwargs
):
2468 GetFilterIndex(self) -> int
2470 Returns the index into the list of filters supplied, optionally, in
2471 the wildcard parameter. Before the dialog is shown, this is the index
2472 which will be used when the dialog is first displayed. After the
2473 dialog is shown, this is the index selected by the user.
2475 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2477 def GetFilenames(*args
, **kwargs
):
2479 GetFilenames(self) -> PyObject
2481 Returns a list of filenames chosen in the dialog. This function
2482 should only be used with the dialogs which have wx.MULTIPLE style, use
2483 GetFilename for the others.
2485 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2487 def GetPaths(*args
, **kwargs
):
2489 GetPaths(self) -> PyObject
2491 Fills the array paths with the full paths of the files chosen. This
2492 function should only be used with the dialogs which have wx.MULTIPLE
2493 style, use GetPath for the others.
2495 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2498 class FileDialogPtr(FileDialog
):
2499 def __init__(self
, this
):
2501 if not hasattr(self
,"thisown"): self
.thisown
= 0
2502 self
.__class
__ = FileDialog
2503 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2505 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2506 class MultiChoiceDialog(Dialog
):
2507 """A simple dialog with a multi selection listbox."""
2509 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2510 def __init__(self
, *args
, **kwargs
):
2512 __init__(Window parent, String message, String caption,
2513 List choices=[], long style=CHOICEDLG_STYLE,
2514 Point pos=DefaultPosition) -> MultiChoiceDialog
2516 Constructor. Use ShowModal method to show the dialog.
2518 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2519 self
.this
= newobj
.this
2522 self
._setOORInfo
(self
)
2524 def SetSelections(*args
, **kwargs
):
2526 SetSelections(List selections)
2528 Specify the items in the list that should be selected, using a list of
2531 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2533 def GetSelections(*args
, **kwargs
):
2535 GetSelections() -> [selections]
2537 Returns a list of integers representing the items that are selected.
2539 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2542 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2543 def __init__(self
, this
):
2545 if not hasattr(self
,"thisown"): self
.thisown
= 0
2546 self
.__class
__ = MultiChoiceDialog
2547 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2549 class SingleChoiceDialog(Dialog
):
2550 """A simple dialog with a single selection listbox."""
2552 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2553 def __init__(self
, *args
, **kwargs
):
2555 __init__(Window parent, String message, String caption,
2556 List choices=[], long style=CHOICEDLG_STYLE,
2557 Point pos=DefaultPosition) -> SingleChoiceDialog
2559 Constructor. Use ShowModal method to show the dialog.
2561 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2562 self
.this
= newobj
.this
2565 self
._setOORInfo
(self
)
2567 def GetSelection(*args
, **kwargs
):
2569 GetSelection(self) -> int
2571 Get the index of teh currently selected item.
2573 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2575 def GetStringSelection(*args
, **kwargs
):
2577 GetStringSelection(self) -> String
2579 Returns the string value of the currently selected item
2581 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2583 def SetSelection(*args
, **kwargs
):
2585 SetSelection(self, int sel)
2587 Set the current selected item to sel
2589 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2592 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2593 def __init__(self
, this
):
2595 if not hasattr(self
,"thisown"): self
.thisown
= 0
2596 self
.__class
__ = SingleChoiceDialog
2597 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2599 class TextEntryDialog(Dialog
):
2600 """A dialog with text control, [ok] and [cancel] buttons"""
2602 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2603 def __init__(self
, *args
, **kwargs
):
2605 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2606 String defaultValue=EmptyString,
2607 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2609 Constructor. Use ShowModal method to show the dialog.
2611 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2612 self
.this
= newobj
.this
2615 self
._setOORInfo
(self
)
2617 def GetValue(*args
, **kwargs
):
2619 GetValue(self) -> String
2621 Returns the text that the user has entered if the user has pressed OK,
2622 or the original value if the user has pressed Cancel.
2624 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2626 def SetValue(*args
, **kwargs
):
2628 SetValue(self, String value)
2630 Sets the default text value.
2632 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2635 class TextEntryDialogPtr(TextEntryDialog
):
2636 def __init__(self
, this
):
2638 if not hasattr(self
,"thisown"): self
.thisown
= 0
2639 self
.__class
__ = TextEntryDialog
2640 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2642 class FontData(_core
.Object
):
2644 This class holds a variety of information related to font dialogs and
2645 is used to transfer settings to and results from a `wx.FontDialog`.
2648 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2649 def __init__(self
, *args
, **kwargs
):
2651 __init__(self) -> FontData
2653 This class holds a variety of information related to font dialogs and
2654 is used to transfer settings to and results from a `wx.FontDialog`.
2656 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2657 self
.this
= newobj
.this
2660 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2663 if self
.thisown
: destroy(self
)
2666 def EnableEffects(*args
, **kwargs
):
2668 EnableEffects(self, bool enable)
2670 Enables or disables 'effects' under MS Windows only. This refers to
2671 the controls for manipulating colour, strikeout and underline
2672 properties. The default value is true.
2674 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2676 def GetAllowSymbols(*args
, **kwargs
):
2678 GetAllowSymbols(self) -> bool
2680 Under MS Windows, returns a flag determining whether symbol fonts can
2681 be selected. Has no effect on other platforms. The default value is
2684 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2686 def GetColour(*args
, **kwargs
):
2688 GetColour(self) -> Colour
2690 Gets the colour associated with the font dialog. The default value is
2693 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2695 def GetChosenFont(*args
, **kwargs
):
2697 GetChosenFont(self) -> Font
2699 Gets the font chosen by the user.
2701 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2703 def GetEnableEffects(*args
, **kwargs
):
2705 GetEnableEffects(self) -> bool
2707 Determines whether 'effects' are enabled under Windows.
2709 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2711 def GetInitialFont(*args
, **kwargs
):
2713 GetInitialFont(self) -> Font
2715 Gets the font that will be initially used by the font dialog. This
2716 should have previously been set by the application.
2718 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2720 def GetShowHelp(*args
, **kwargs
):
2722 GetShowHelp(self) -> bool
2724 Returns true if the Help button will be shown (Windows only). The
2725 default value is false.
2727 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2729 def SetAllowSymbols(*args
, **kwargs
):
2731 SetAllowSymbols(self, bool allowSymbols)
2733 Under MS Windows, determines whether symbol fonts can be selected. Has
2734 no effect on other platforms. The default value is true.
2736 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2738 def SetChosenFont(*args
, **kwargs
):
2740 SetChosenFont(self, Font font)
2742 Sets the font that will be returned to the user (normally for internal
2745 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2747 def SetColour(*args
, **kwargs
):
2749 SetColour(self, Colour colour)
2751 Sets the colour that will be used for the font foreground colour. The
2752 default colour is black.
2754 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2756 def SetInitialFont(*args
, **kwargs
):
2758 SetInitialFont(self, Font font)
2760 Sets the font that will be initially used by the font dialog.
2762 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2764 def SetRange(*args
, **kwargs
):
2766 SetRange(self, int min, int max)
2768 Sets the valid range for the font point size (Windows only). The
2769 default is 0, 0 (unrestricted range).
2771 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2773 def SetShowHelp(*args
, **kwargs
):
2775 SetShowHelp(self, bool showHelp)
2777 Determines whether the Help button will be displayed in the font
2778 dialog (Windows only). The default value is false.
2780 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2783 class FontDataPtr(FontData
):
2784 def __init__(self
, this
):
2786 if not hasattr(self
,"thisown"): self
.thisown
= 0
2787 self
.__class
__ = FontData
2788 _windows_
.FontData_swigregister(FontDataPtr
)
2790 class FontDialog(Dialog
):
2792 wx.FontDialog allows the user to select a system font and its attributes.
2798 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2799 def __init__(self
, *args
, **kwargs
):
2801 __init__(self, Window parent, FontData data) -> FontDialog
2803 Constructor. Pass a parent window and the `wx.FontData` object to be
2804 used to initialize the dialog controls. Call `ShowModal` to display
2805 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2806 results with via the `wx.FontData` returned by `GetFontData`.
2808 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2809 self
.this
= newobj
.this
2812 self
._setOORInfo
(self
)
2814 def GetFontData(*args
, **kwargs
):
2816 GetFontData(self) -> FontData
2818 Returns a reference to the internal `wx.FontData` used by the
2821 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2824 class FontDialogPtr(FontDialog
):
2825 def __init__(self
, this
):
2827 if not hasattr(self
,"thisown"): self
.thisown
= 0
2828 self
.__class
__ = FontDialog
2829 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2831 class MessageDialog(Dialog
):
2833 This class provides a simple dialog that shows a single or multi-line
2834 message, with a choice of OK, Yes, No and/or Cancel buttons.
2837 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2838 def __init__(self
, *args
, **kwargs
):
2840 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2841 long style=wxOK|wxCANCEL|wxCENTRE,
2842 Point pos=DefaultPosition) -> MessageDialog
2844 Constructor, use `ShowModal` to display the dialog.
2846 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2847 self
.this
= newobj
.this
2850 self
._setOORInfo
(self
)
2853 class MessageDialogPtr(MessageDialog
):
2854 def __init__(self
, this
):
2856 if not hasattr(self
,"thisown"): self
.thisown
= 0
2857 self
.__class
__ = MessageDialog
2858 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2860 class ProgressDialog(Frame
):
2862 A dialog that shows a short message and a progress bar. Optionally, it
2863 can display an ABORT button.
2866 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2867 def __init__(self
, *args
, **kwargs
):
2869 __init__(self, String title, String message, int maximum=100, Window parent=None,
2870 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2872 Constructor. Creates the dialog, displays it and disables user input
2873 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2876 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2877 self
.this
= newobj
.this
2880 self
._setOORInfo
(self
)
2882 def Update(*args
, **kwargs
):
2884 Update(self, int value, String newmsg=EmptyString) -> bool
2886 Updates the dialog, setting the progress bar to the new value and, if
2887 given changes the message above it. The value given should be less
2888 than or equal to the maximum value given to the constructor and the
2889 dialog is closed if it is equal to the maximum. Returns true unless
2890 the Cancel button has been pressed.
2892 If false is returned, the application can either immediately destroy
2893 the dialog or ask the user for the confirmation and if the abort is
2894 not confirmed the dialog may be resumed with Resume function.
2896 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2898 def Resume(*args
, **kwargs
):
2902 Can be used to continue with the dialog, after the user had chosen to
2905 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2908 class ProgressDialogPtr(ProgressDialog
):
2909 def __init__(self
, this
):
2911 if not hasattr(self
,"thisown"): self
.thisown
= 0
2912 self
.__class
__ = ProgressDialog
2913 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2915 FR_DOWN
= _windows_
.FR_DOWN
2916 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2917 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2918 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2919 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2920 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2921 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2922 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2923 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2924 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2925 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2926 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2927 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2928 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2929 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2930 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2931 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2933 # For backwards compatibility. Should they be removed?
2934 EVT_COMMAND_FIND
= EVT_FIND
2935 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2936 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2937 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2938 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2940 class FindDialogEvent(_core
.CommandEvent
):
2941 """Events for the FindReplaceDialog"""
2943 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2944 def __init__(self
, *args
, **kwargs
):
2946 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2948 Events for the FindReplaceDialog
2950 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2951 self
.this
= newobj
.this
2954 def GetFlags(*args
, **kwargs
):
2956 GetFlags(self) -> int
2958 Get the currently selected flags: this is the combination of
2959 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2961 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2963 def GetFindString(*args
, **kwargs
):
2965 GetFindString(self) -> String
2967 Return the string to find (never empty).
2969 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2971 def GetReplaceString(*args
, **kwargs
):
2973 GetReplaceString(self) -> String
2975 Return the string to replace the search string with (only for replace
2976 and replace all events).
2978 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2980 def GetDialog(*args
, **kwargs
):
2982 GetDialog(self) -> FindReplaceDialog
2984 Return the pointer to the dialog which generated this event.
2986 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2988 def SetFlags(*args
, **kwargs
):
2989 """SetFlags(self, int flags)"""
2990 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2992 def SetFindString(*args
, **kwargs
):
2993 """SetFindString(self, String str)"""
2994 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2996 def SetReplaceString(*args
, **kwargs
):
2997 """SetReplaceString(self, String str)"""
2998 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
3001 class FindDialogEventPtr(FindDialogEvent
):
3002 def __init__(self
, this
):
3004 if not hasattr(self
,"thisown"): self
.thisown
= 0
3005 self
.__class
__ = FindDialogEvent
3006 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3008 class FindReplaceData(_core
.Object
):
3010 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3011 to initialize the dialog with the default values and will keep the
3012 last values from the dialog when it is closed. It is also updated each
3013 time a `wx.FindDialogEvent` is generated so instead of using the
3014 `wx.FindDialogEvent` methods you can also directly query this object.
3016 Note that all SetXXX() methods may only be called before showing the
3017 dialog and calling them has no effect later.
3020 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3021 def __init__(self
, *args
, **kwargs
):
3023 __init__(self, int flags=0) -> FindReplaceData
3025 Constuctor initializes the flags to default value (0).
3027 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3028 self
.this
= newobj
.this
3031 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3034 if self
.thisown
: destroy(self
)
3037 def GetFindString(*args
, **kwargs
):
3039 GetFindString(self) -> String
3041 Get the string to find.
3043 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3045 def GetReplaceString(*args
, **kwargs
):
3047 GetReplaceString(self) -> String
3049 Get the replacement string.
3051 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3053 def GetFlags(*args
, **kwargs
):
3055 GetFlags(self) -> int
3057 Get the combination of flag values.
3059 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3061 def SetFlags(*args
, **kwargs
):
3063 SetFlags(self, int flags)
3065 Set the flags to use to initialize the controls of the dialog.
3067 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3069 def SetFindString(*args
, **kwargs
):
3071 SetFindString(self, String str)
3073 Set the string to find (used as initial value by the dialog).
3075 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3077 def SetReplaceString(*args
, **kwargs
):
3079 SetReplaceString(self, String str)
3081 Set the replacement string (used as initial value by the dialog).
3083 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3086 class FindReplaceDataPtr(FindReplaceData
):
3087 def __init__(self
, this
):
3089 if not hasattr(self
,"thisown"): self
.thisown
= 0
3090 self
.__class
__ = FindReplaceData
3091 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3093 class FindReplaceDialog(Dialog
):
3095 wx.FindReplaceDialog is a standard modeless dialog which is used to
3096 allow the user to search for some text (and possibly replace it with
3097 something else). The actual searching is supposed to be done in the
3098 owner window which is the parent of this dialog. Note that it means
3099 that unlike for the other standard dialogs this one must have a parent
3100 window. Also note that there is no way to use this dialog in a modal
3101 way; it is always, by design and implementation, modeless.
3104 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3105 def __init__(self
, *args
, **kwargs
):
3107 __init__(self, Window parent, FindReplaceData data, String title,
3108 int style=0) -> FindReplaceDialog
3110 Create a FindReplaceDialog. The parent and data parameters must be
3111 non-None. Use Show to display the dialog.
3113 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3114 self
.this
= newobj
.this
3117 self
._setOORInfo
(self
)
3119 def Create(*args
, **kwargs
):
3121 Create(self, Window parent, FindReplaceData data, String title,
3122 int style=0) -> bool
3124 Create the dialog, for 2-phase create.
3126 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3128 def GetData(*args
, **kwargs
):
3130 GetData(self) -> FindReplaceData
3132 Get the FindReplaceData object used by this dialog.
3134 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3136 def SetData(*args
, **kwargs
):
3138 SetData(self, FindReplaceData data)
3140 Set the FindReplaceData object used by this dialog.
3142 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3145 class FindReplaceDialogPtr(FindReplaceDialog
):
3146 def __init__(self
, this
):
3148 if not hasattr(self
,"thisown"): self
.thisown
= 0
3149 self
.__class
__ = FindReplaceDialog
3150 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3152 def PreFindReplaceDialog(*args
, **kwargs
):
3154 PreFindReplaceDialog() -> FindReplaceDialog
3156 Precreate a FindReplaceDialog for 2-phase creation
3158 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3162 #---------------------------------------------------------------------------
3164 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3165 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3166 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3167 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3168 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3169 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3170 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3171 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3172 class MDIParentFrame(Frame
):
3174 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3175 def __init__(self
, *args
, **kwargs
):
3177 __init__(self, Window parent, int id=-1, String title=EmptyString,
3178 Point pos=DefaultPosition, Size size=DefaultSize,
3179 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3180 String name=FrameNameStr) -> MDIParentFrame
3182 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3183 self
.this
= newobj
.this
3186 self
._setOORInfo
(self
)
3188 def Create(*args
, **kwargs
):
3190 Create(self, Window parent, int id=-1, String title=EmptyString,
3191 Point pos=DefaultPosition, Size size=DefaultSize,
3192 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3193 String name=FrameNameStr) -> bool
3195 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3197 def ActivateNext(*args
, **kwargs
):
3198 """ActivateNext(self)"""
3199 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3201 def ActivatePrevious(*args
, **kwargs
):
3202 """ActivatePrevious(self)"""
3203 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3205 def ArrangeIcons(*args
, **kwargs
):
3206 """ArrangeIcons(self)"""
3207 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3209 def Cascade(*args
, **kwargs
):
3211 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3213 def GetActiveChild(*args
, **kwargs
):
3214 """GetActiveChild(self) -> MDIChildFrame"""
3215 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3217 def GetClientWindow(*args
, **kwargs
):
3218 """GetClientWindow(self) -> MDIClientWindow"""
3219 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3221 def GetToolBar(*args
, **kwargs
):
3222 """GetToolBar(self) -> Window"""
3223 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3225 def GetWindowMenu(*args
, **kwargs
):
3226 """GetWindowMenu(self) -> Menu"""
3227 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3229 def SetWindowMenu(*args
, **kwargs
):
3230 """SetWindowMenu(self, Menu menu)"""
3231 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3233 def SetToolBar(*args
, **kwargs
):
3234 """SetToolBar(self, wxToolBar toolbar)"""
3235 return _windows_
.MDIParentFrame_SetToolBar(*args
, **kwargs
)
3237 def Tile(*args
, **kwargs
):
3239 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3242 class MDIParentFramePtr(MDIParentFrame
):
3243 def __init__(self
, this
):
3245 if not hasattr(self
,"thisown"): self
.thisown
= 0
3246 self
.__class
__ = MDIParentFrame
3247 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3249 def PreMDIParentFrame(*args
, **kwargs
):
3250 """PreMDIParentFrame() -> MDIParentFrame"""
3251 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3255 class MDIChildFrame(Frame
):
3257 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3258 def __init__(self
, *args
, **kwargs
):
3260 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3261 Point pos=DefaultPosition, Size size=DefaultSize,
3262 long style=DEFAULT_FRAME_STYLE,
3263 String name=FrameNameStr) -> MDIChildFrame
3265 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3266 self
.this
= newobj
.this
3269 self
._setOORInfo
(self
)
3271 def Create(*args
, **kwargs
):
3273 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3274 Point pos=DefaultPosition, Size size=DefaultSize,
3275 long style=DEFAULT_FRAME_STYLE,
3276 String name=FrameNameStr) -> bool
3278 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3280 def Activate(*args
, **kwargs
):
3281 """Activate(self)"""
3282 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3284 def Maximize(*args
, **kwargs
):
3285 """Maximize(self, bool maximize)"""
3286 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3288 def Restore(*args
, **kwargs
):
3290 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3293 class MDIChildFramePtr(MDIChildFrame
):
3294 def __init__(self
, this
):
3296 if not hasattr(self
,"thisown"): self
.thisown
= 0
3297 self
.__class
__ = MDIChildFrame
3298 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3300 def PreMDIChildFrame(*args
, **kwargs
):
3301 """PreMDIChildFrame() -> MDIChildFrame"""
3302 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3306 class MDIClientWindow(_core
.Window
):
3308 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3309 def __init__(self
, *args
, **kwargs
):
3310 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3311 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3312 self
.this
= newobj
.this
3315 self
._setOORInfo
(self
)
3317 def Create(*args
, **kwargs
):
3318 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3319 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3322 class MDIClientWindowPtr(MDIClientWindow
):
3323 def __init__(self
, this
):
3325 if not hasattr(self
,"thisown"): self
.thisown
= 0
3326 self
.__class
__ = MDIClientWindow
3327 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3329 def PreMDIClientWindow(*args
, **kwargs
):
3330 """PreMDIClientWindow() -> MDIClientWindow"""
3331 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3335 #---------------------------------------------------------------------------
3337 class PyWindow(_core
.Window
):
3339 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3340 def __init__(self
, *args
, **kwargs
):
3342 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3343 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3345 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3346 self
.this
= newobj
.this
3349 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3351 def _setCallbackInfo(*args
, **kwargs
):
3352 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3353 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3355 def SetBestSize(*args
, **kwargs
):
3356 """SetBestSize(self, Size size)"""
3357 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3359 def base_DoMoveWindow(*args
, **kwargs
):
3360 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3361 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3363 def base_DoSetSize(*args
, **kwargs
):
3364 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3365 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3367 def base_DoSetClientSize(*args
, **kwargs
):
3368 """base_DoSetClientSize(self, int width, int height)"""
3369 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3371 def base_DoSetVirtualSize(*args
, **kwargs
):
3372 """base_DoSetVirtualSize(self, int x, int y)"""
3373 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3375 def base_DoGetSize(*args
, **kwargs
):
3376 """base_DoGetSize() -> (width, height)"""
3377 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3379 def base_DoGetClientSize(*args
, **kwargs
):
3380 """base_DoGetClientSize() -> (width, height)"""
3381 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3383 def base_DoGetPosition(*args
, **kwargs
):
3384 """base_DoGetPosition() -> (x,y)"""
3385 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3387 def base_DoGetVirtualSize(*args
, **kwargs
):
3388 """base_DoGetVirtualSize(self) -> Size"""
3389 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3391 def base_DoGetBestSize(*args
, **kwargs
):
3392 """base_DoGetBestSize(self) -> Size"""
3393 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3395 def base_InitDialog(*args
, **kwargs
):
3396 """base_InitDialog(self)"""
3397 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3399 def base_TransferDataToWindow(*args
, **kwargs
):
3400 """base_TransferDataToWindow(self) -> bool"""
3401 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3403 def base_TransferDataFromWindow(*args
, **kwargs
):
3404 """base_TransferDataFromWindow(self) -> bool"""
3405 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3407 def base_Validate(*args
, **kwargs
):
3408 """base_Validate(self) -> bool"""
3409 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3411 def base_AcceptsFocus(*args
, **kwargs
):
3412 """base_AcceptsFocus(self) -> bool"""
3413 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3415 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3416 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3417 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3419 def base_GetMaxSize(*args
, **kwargs
):
3420 """base_GetMaxSize(self) -> Size"""
3421 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3423 def base_AddChild(*args
, **kwargs
):
3424 """base_AddChild(self, Window child)"""
3425 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3427 def base_RemoveChild(*args
, **kwargs
):
3428 """base_RemoveChild(self, Window child)"""
3429 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3431 def base_ShouldInheritColours(*args
, **kwargs
):
3432 """base_ShouldInheritColours(self) -> bool"""
3433 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3435 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3436 """base_ApplyParentThemeBackground(self, Colour c)"""
3437 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3439 def base_GetDefaultAttributes(*args
, **kwargs
):
3440 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3441 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3444 class PyWindowPtr(PyWindow
):
3445 def __init__(self
, this
):
3447 if not hasattr(self
,"thisown"): self
.thisown
= 0
3448 self
.__class
__ = PyWindow
3449 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3451 def PrePyWindow(*args
, **kwargs
):
3452 """PrePyWindow() -> PyWindow"""
3453 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3457 class PyPanel(Panel
):
3459 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3460 def __init__(self
, *args
, **kwargs
):
3462 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3463 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3465 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3466 self
.this
= newobj
.this
3469 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3471 def _setCallbackInfo(*args
, **kwargs
):
3472 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3473 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3475 def SetBestSize(*args
, **kwargs
):
3476 """SetBestSize(self, Size size)"""
3477 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3479 def base_DoMoveWindow(*args
, **kwargs
):
3480 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3481 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3483 def base_DoSetSize(*args
, **kwargs
):
3484 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3485 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3487 def base_DoSetClientSize(*args
, **kwargs
):
3488 """base_DoSetClientSize(self, int width, int height)"""
3489 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3491 def base_DoSetVirtualSize(*args
, **kwargs
):
3492 """base_DoSetVirtualSize(self, int x, int y)"""
3493 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3495 def base_DoGetSize(*args
, **kwargs
):
3496 """base_DoGetSize() -> (width, height)"""
3497 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3499 def base_DoGetClientSize(*args
, **kwargs
):
3500 """base_DoGetClientSize() -> (width, height)"""
3501 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3503 def base_DoGetPosition(*args
, **kwargs
):
3504 """base_DoGetPosition() -> (x,y)"""
3505 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3507 def base_DoGetVirtualSize(*args
, **kwargs
):
3508 """base_DoGetVirtualSize(self) -> Size"""
3509 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3511 def base_DoGetBestSize(*args
, **kwargs
):
3512 """base_DoGetBestSize(self) -> Size"""
3513 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3515 def base_InitDialog(*args
, **kwargs
):
3516 """base_InitDialog(self)"""
3517 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3519 def base_TransferDataToWindow(*args
, **kwargs
):
3520 """base_TransferDataToWindow(self) -> bool"""
3521 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3523 def base_TransferDataFromWindow(*args
, **kwargs
):
3524 """base_TransferDataFromWindow(self) -> bool"""
3525 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3527 def base_Validate(*args
, **kwargs
):
3528 """base_Validate(self) -> bool"""
3529 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3531 def base_AcceptsFocus(*args
, **kwargs
):
3532 """base_AcceptsFocus(self) -> bool"""
3533 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3535 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3536 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3537 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3539 def base_GetMaxSize(*args
, **kwargs
):
3540 """base_GetMaxSize(self) -> Size"""
3541 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3543 def base_AddChild(*args
, **kwargs
):
3544 """base_AddChild(self, Window child)"""
3545 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3547 def base_RemoveChild(*args
, **kwargs
):
3548 """base_RemoveChild(self, Window child)"""
3549 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3551 def base_ShouldInheritColours(*args
, **kwargs
):
3552 """base_ShouldInheritColours(self) -> bool"""
3553 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3555 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3556 """base_ApplyParentThemeBackground(self, Colour c)"""
3557 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3559 def base_GetDefaultAttributes(*args
, **kwargs
):
3560 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3561 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3564 class PyPanelPtr(PyPanel
):
3565 def __init__(self
, this
):
3567 if not hasattr(self
,"thisown"): self
.thisown
= 0
3568 self
.__class
__ = PyPanel
3569 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3571 def PrePyPanel(*args
, **kwargs
):
3572 """PrePyPanel() -> PyPanel"""
3573 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3577 class PyScrolledWindow(ScrolledWindow
):
3579 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3580 def __init__(self
, *args
, **kwargs
):
3582 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3583 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3585 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3586 self
.this
= newobj
.this
3589 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3591 def _setCallbackInfo(*args
, **kwargs
):
3592 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3593 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3595 def SetBestSize(*args
, **kwargs
):
3596 """SetBestSize(self, Size size)"""
3597 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3599 def base_DoMoveWindow(*args
, **kwargs
):
3600 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3601 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3603 def base_DoSetSize(*args
, **kwargs
):
3604 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3605 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3607 def base_DoSetClientSize(*args
, **kwargs
):
3608 """base_DoSetClientSize(self, int width, int height)"""
3609 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3611 def base_DoSetVirtualSize(*args
, **kwargs
):
3612 """base_DoSetVirtualSize(self, int x, int y)"""
3613 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3615 def base_DoGetSize(*args
, **kwargs
):
3616 """base_DoGetSize() -> (width, height)"""
3617 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3619 def base_DoGetClientSize(*args
, **kwargs
):
3620 """base_DoGetClientSize() -> (width, height)"""
3621 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3623 def base_DoGetPosition(*args
, **kwargs
):
3624 """base_DoGetPosition() -> (x,y)"""
3625 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3627 def base_DoGetVirtualSize(*args
, **kwargs
):
3628 """base_DoGetVirtualSize(self) -> Size"""
3629 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3631 def base_DoGetBestSize(*args
, **kwargs
):
3632 """base_DoGetBestSize(self) -> Size"""
3633 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3635 def base_InitDialog(*args
, **kwargs
):
3636 """base_InitDialog(self)"""
3637 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3639 def base_TransferDataToWindow(*args
, **kwargs
):
3640 """base_TransferDataToWindow(self) -> bool"""
3641 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3643 def base_TransferDataFromWindow(*args
, **kwargs
):
3644 """base_TransferDataFromWindow(self) -> bool"""
3645 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3647 def base_Validate(*args
, **kwargs
):
3648 """base_Validate(self) -> bool"""
3649 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3651 def base_AcceptsFocus(*args
, **kwargs
):
3652 """base_AcceptsFocus(self) -> bool"""
3653 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3655 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3656 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3657 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3659 def base_GetMaxSize(*args
, **kwargs
):
3660 """base_GetMaxSize(self) -> Size"""
3661 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3663 def base_AddChild(*args
, **kwargs
):
3664 """base_AddChild(self, Window child)"""
3665 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3667 def base_RemoveChild(*args
, **kwargs
):
3668 """base_RemoveChild(self, Window child)"""
3669 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3671 def base_ShouldInheritColours(*args
, **kwargs
):
3672 """base_ShouldInheritColours(self) -> bool"""
3673 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3675 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3676 """base_ApplyParentThemeBackground(self, Colour c)"""
3677 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3679 def base_GetDefaultAttributes(*args
, **kwargs
):
3680 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3681 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3684 class PyScrolledWindowPtr(PyScrolledWindow
):
3685 def __init__(self
, this
):
3687 if not hasattr(self
,"thisown"): self
.thisown
= 0
3688 self
.__class
__ = PyScrolledWindow
3689 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3691 def PrePyScrolledWindow(*args
, **kwargs
):
3692 """PrePyScrolledWindow() -> PyScrolledWindow"""
3693 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3697 #---------------------------------------------------------------------------
3699 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3700 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3701 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3702 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3703 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3704 class PrintData(_core
.Object
):
3706 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3707 def __init__(self
, *args
):
3709 __init__(self) -> PrintData
3710 __init__(self, PrintData data) -> PrintData
3712 newobj
= _windows_
.new_PrintData(*args
)
3713 self
.this
= newobj
.this
3716 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3719 if self
.thisown
: destroy(self
)
3722 def GetNoCopies(*args
, **kwargs
):
3723 """GetNoCopies(self) -> int"""
3724 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3726 def GetCollate(*args
, **kwargs
):
3727 """GetCollate(self) -> bool"""
3728 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3730 def GetOrientation(*args
, **kwargs
):
3731 """GetOrientation(self) -> int"""
3732 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3734 def Ok(*args
, **kwargs
):
3735 """Ok(self) -> bool"""
3736 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3738 def GetPrinterName(*args
, **kwargs
):
3739 """GetPrinterName(self) -> String"""
3740 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3742 def GetColour(*args
, **kwargs
):
3743 """GetColour(self) -> bool"""
3744 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3746 def GetDuplex(*args
, **kwargs
):
3747 """GetDuplex(self) -> int"""
3748 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3750 def GetPaperId(*args
, **kwargs
):
3751 """GetPaperId(self) -> int"""
3752 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3754 def GetPaperSize(*args
, **kwargs
):
3755 """GetPaperSize(self) -> Size"""
3756 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3758 def GetQuality(*args
, **kwargs
):
3759 """GetQuality(self) -> int"""
3760 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3762 def SetNoCopies(*args
, **kwargs
):
3763 """SetNoCopies(self, int v)"""
3764 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3766 def SetCollate(*args
, **kwargs
):
3767 """SetCollate(self, bool flag)"""
3768 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3770 def SetOrientation(*args
, **kwargs
):
3771 """SetOrientation(self, int orient)"""
3772 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3774 def SetPrinterName(*args
, **kwargs
):
3775 """SetPrinterName(self, String name)"""
3776 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3778 def SetColour(*args
, **kwargs
):
3779 """SetColour(self, bool colour)"""
3780 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3782 def SetDuplex(*args
, **kwargs
):
3783 """SetDuplex(self, int duplex)"""
3784 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3786 def SetPaperId(*args
, **kwargs
):
3787 """SetPaperId(self, int sizeId)"""
3788 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3790 def SetPaperSize(*args
, **kwargs
):
3791 """SetPaperSize(self, Size sz)"""
3792 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3794 def SetQuality(*args
, **kwargs
):
3795 """SetQuality(self, int quality)"""
3796 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3798 def GetPrinterCommand(*args
, **kwargs
):
3799 """GetPrinterCommand(self) -> String"""
3800 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3802 def GetPrinterOptions(*args
, **kwargs
):
3803 """GetPrinterOptions(self) -> String"""
3804 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3806 def GetPreviewCommand(*args
, **kwargs
):
3807 """GetPreviewCommand(self) -> String"""
3808 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3810 def GetFilename(*args
, **kwargs
):
3811 """GetFilename(self) -> String"""
3812 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3814 def GetFontMetricPath(*args
, **kwargs
):
3815 """GetFontMetricPath(self) -> String"""
3816 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3818 def GetPrinterScaleX(*args
, **kwargs
):
3819 """GetPrinterScaleX(self) -> double"""
3820 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3822 def GetPrinterScaleY(*args
, **kwargs
):
3823 """GetPrinterScaleY(self) -> double"""
3824 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3826 def GetPrinterTranslateX(*args
, **kwargs
):
3827 """GetPrinterTranslateX(self) -> long"""
3828 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3830 def GetPrinterTranslateY(*args
, **kwargs
):
3831 """GetPrinterTranslateY(self) -> long"""
3832 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3834 def GetPrintMode(*args
, **kwargs
):
3835 """GetPrintMode(self) -> int"""
3836 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3838 def SetPrinterCommand(*args
, **kwargs
):
3839 """SetPrinterCommand(self, String command)"""
3840 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3842 def SetPrinterOptions(*args
, **kwargs
):
3843 """SetPrinterOptions(self, String options)"""
3844 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3846 def SetPreviewCommand(*args
, **kwargs
):
3847 """SetPreviewCommand(self, String command)"""
3848 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3850 def SetFilename(*args
, **kwargs
):
3851 """SetFilename(self, String filename)"""
3852 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3854 def SetFontMetricPath(*args
, **kwargs
):
3855 """SetFontMetricPath(self, String path)"""
3856 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3858 def SetPrinterScaleX(*args
, **kwargs
):
3859 """SetPrinterScaleX(self, double x)"""
3860 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3862 def SetPrinterScaleY(*args
, **kwargs
):
3863 """SetPrinterScaleY(self, double y)"""
3864 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3866 def SetPrinterScaling(*args
, **kwargs
):
3867 """SetPrinterScaling(self, double x, double y)"""
3868 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3870 def SetPrinterTranslateX(*args
, **kwargs
):
3871 """SetPrinterTranslateX(self, long x)"""
3872 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3874 def SetPrinterTranslateY(*args
, **kwargs
):
3875 """SetPrinterTranslateY(self, long y)"""
3876 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3878 def SetPrinterTranslation(*args
, **kwargs
):
3879 """SetPrinterTranslation(self, long x, long y)"""
3880 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3882 def SetPrintMode(*args
, **kwargs
):
3883 """SetPrintMode(self, int printMode)"""
3884 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3886 def GetOutputStream(*args
, **kwargs
):
3887 """GetOutputStream(self) -> OutputStream"""
3888 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3890 def SetOutputStream(*args
, **kwargs
):
3891 """SetOutputStream(self, OutputStream outputstream)"""
3892 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3894 def __nonzero__(self
): return self
.Ok()
3896 class PrintDataPtr(PrintData
):
3897 def __init__(self
, this
):
3899 if not hasattr(self
,"thisown"): self
.thisown
= 0
3900 self
.__class
__ = PrintData
3901 _windows_
.PrintData_swigregister(PrintDataPtr
)
3902 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3903 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3905 class PageSetupDialogData(_core
.Object
):
3907 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3908 def __init__(self
, *args
):
3910 __init__(self) -> PageSetupDialogData
3911 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3913 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3914 self
.this
= newobj
.this
3917 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3920 if self
.thisown
: destroy(self
)
3923 def EnableHelp(*args
, **kwargs
):
3924 """EnableHelp(self, bool flag)"""
3925 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3927 def EnableMargins(*args
, **kwargs
):
3928 """EnableMargins(self, bool flag)"""
3929 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3931 def EnableOrientation(*args
, **kwargs
):
3932 """EnableOrientation(self, bool flag)"""
3933 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3935 def EnablePaper(*args
, **kwargs
):
3936 """EnablePaper(self, bool flag)"""
3937 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3939 def EnablePrinter(*args
, **kwargs
):
3940 """EnablePrinter(self, bool flag)"""
3941 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3943 def GetDefaultMinMargins(*args
, **kwargs
):
3944 """GetDefaultMinMargins(self) -> bool"""
3945 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3947 def GetEnableMargins(*args
, **kwargs
):
3948 """GetEnableMargins(self) -> bool"""
3949 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3951 def GetEnableOrientation(*args
, **kwargs
):
3952 """GetEnableOrientation(self) -> bool"""
3953 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3955 def GetEnablePaper(*args
, **kwargs
):
3956 """GetEnablePaper(self) -> bool"""
3957 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3959 def GetEnablePrinter(*args
, **kwargs
):
3960 """GetEnablePrinter(self) -> bool"""
3961 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3963 def GetEnableHelp(*args
, **kwargs
):
3964 """GetEnableHelp(self) -> bool"""
3965 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3967 def GetDefaultInfo(*args
, **kwargs
):
3968 """GetDefaultInfo(self) -> bool"""
3969 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3971 def GetMarginTopLeft(*args
, **kwargs
):
3972 """GetMarginTopLeft(self) -> Point"""
3973 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3975 def GetMarginBottomRight(*args
, **kwargs
):
3976 """GetMarginBottomRight(self) -> Point"""
3977 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3979 def GetMinMarginTopLeft(*args
, **kwargs
):
3980 """GetMinMarginTopLeft(self) -> Point"""
3981 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3983 def GetMinMarginBottomRight(*args
, **kwargs
):
3984 """GetMinMarginBottomRight(self) -> Point"""
3985 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3987 def GetPaperId(*args
, **kwargs
):
3988 """GetPaperId(self) -> int"""
3989 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3991 def GetPaperSize(*args
, **kwargs
):
3992 """GetPaperSize(self) -> Size"""
3993 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3995 def GetPrintData(*args
, **kwargs
):
3996 """GetPrintData(self) -> PrintData"""
3997 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3999 def Ok(*args
, **kwargs
):
4000 """Ok(self) -> bool"""
4001 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
4003 def SetDefaultInfo(*args
, **kwargs
):
4004 """SetDefaultInfo(self, bool flag)"""
4005 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4007 def SetDefaultMinMargins(*args
, **kwargs
):
4008 """SetDefaultMinMargins(self, bool flag)"""
4009 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4011 def SetMarginTopLeft(*args
, **kwargs
):
4012 """SetMarginTopLeft(self, Point pt)"""
4013 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4015 def SetMarginBottomRight(*args
, **kwargs
):
4016 """SetMarginBottomRight(self, Point pt)"""
4017 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4019 def SetMinMarginTopLeft(*args
, **kwargs
):
4020 """SetMinMarginTopLeft(self, Point pt)"""
4021 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4023 def SetMinMarginBottomRight(*args
, **kwargs
):
4024 """SetMinMarginBottomRight(self, Point pt)"""
4025 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4027 def SetPaperId(*args
, **kwargs
):
4028 """SetPaperId(self, int id)"""
4029 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4031 def SetPaperSize(*args
, **kwargs
):
4032 """SetPaperSize(self, Size size)"""
4033 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4035 def SetPrintData(*args
, **kwargs
):
4036 """SetPrintData(self, PrintData printData)"""
4037 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4039 def __nonzero__(self
): return self
.Ok()
4041 class PageSetupDialogDataPtr(PageSetupDialogData
):
4042 def __init__(self
, this
):
4044 if not hasattr(self
,"thisown"): self
.thisown
= 0
4045 self
.__class
__ = PageSetupDialogData
4046 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4048 class PageSetupDialog(Dialog
):
4050 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4051 def __init__(self
, *args
, **kwargs
):
4052 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4053 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4054 self
.this
= newobj
.this
4057 self
._setOORInfo
(self
)
4059 def GetPageSetupData(*args
, **kwargs
):
4060 """GetPageSetupData(self) -> PageSetupDialogData"""
4061 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4063 def ShowModal(*args
, **kwargs
):
4064 """ShowModal(self) -> int"""
4065 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4068 class PageSetupDialogPtr(PageSetupDialog
):
4069 def __init__(self
, this
):
4071 if not hasattr(self
,"thisown"): self
.thisown
= 0
4072 self
.__class
__ = PageSetupDialog
4073 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4075 class PrintDialogData(_core
.Object
):
4077 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4078 def __init__(self
, *args
):
4080 __init__(self) -> PrintDialogData
4081 __init__(self, PrintData printData) -> PrintDialogData
4083 newobj
= _windows_
.new_PrintDialogData(*args
)
4084 self
.this
= newobj
.this
4087 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4090 if self
.thisown
: destroy(self
)
4093 def GetFromPage(*args
, **kwargs
):
4094 """GetFromPage(self) -> int"""
4095 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4097 def GetToPage(*args
, **kwargs
):
4098 """GetToPage(self) -> int"""
4099 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4101 def GetMinPage(*args
, **kwargs
):
4102 """GetMinPage(self) -> int"""
4103 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4105 def GetMaxPage(*args
, **kwargs
):
4106 """GetMaxPage(self) -> int"""
4107 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4109 def GetNoCopies(*args
, **kwargs
):
4110 """GetNoCopies(self) -> int"""
4111 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4113 def GetAllPages(*args
, **kwargs
):
4114 """GetAllPages(self) -> bool"""
4115 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4117 def GetSelection(*args
, **kwargs
):
4118 """GetSelection(self) -> bool"""
4119 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4121 def GetCollate(*args
, **kwargs
):
4122 """GetCollate(self) -> bool"""
4123 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4125 def GetPrintToFile(*args
, **kwargs
):
4126 """GetPrintToFile(self) -> bool"""
4127 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4129 def GetSetupDialog(*args
, **kwargs
):
4130 """GetSetupDialog(self) -> bool"""
4131 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4133 def SetFromPage(*args
, **kwargs
):
4134 """SetFromPage(self, int v)"""
4135 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4137 def SetToPage(*args
, **kwargs
):
4138 """SetToPage(self, int v)"""
4139 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4141 def SetMinPage(*args
, **kwargs
):
4142 """SetMinPage(self, int v)"""
4143 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4145 def SetMaxPage(*args
, **kwargs
):
4146 """SetMaxPage(self, int v)"""
4147 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4149 def SetNoCopies(*args
, **kwargs
):
4150 """SetNoCopies(self, int v)"""
4151 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4153 def SetAllPages(*args
, **kwargs
):
4154 """SetAllPages(self, bool flag)"""
4155 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4157 def SetSelection(*args
, **kwargs
):
4158 """SetSelection(self, bool flag)"""
4159 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4161 def SetCollate(*args
, **kwargs
):
4162 """SetCollate(self, bool flag)"""
4163 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4165 def SetPrintToFile(*args
, **kwargs
):
4166 """SetPrintToFile(self, bool flag)"""
4167 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4169 def SetSetupDialog(*args
, **kwargs
):
4170 """SetSetupDialog(self, bool flag)"""
4171 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4173 def EnablePrintToFile(*args
, **kwargs
):
4174 """EnablePrintToFile(self, bool flag)"""
4175 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4177 def EnableSelection(*args
, **kwargs
):
4178 """EnableSelection(self, bool flag)"""
4179 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4181 def EnablePageNumbers(*args
, **kwargs
):
4182 """EnablePageNumbers(self, bool flag)"""
4183 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4185 def EnableHelp(*args
, **kwargs
):
4186 """EnableHelp(self, bool flag)"""
4187 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4189 def GetEnablePrintToFile(*args
, **kwargs
):
4190 """GetEnablePrintToFile(self) -> bool"""
4191 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4193 def GetEnableSelection(*args
, **kwargs
):
4194 """GetEnableSelection(self) -> bool"""
4195 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4197 def GetEnablePageNumbers(*args
, **kwargs
):
4198 """GetEnablePageNumbers(self) -> bool"""
4199 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4201 def GetEnableHelp(*args
, **kwargs
):
4202 """GetEnableHelp(self) -> bool"""
4203 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4205 def Ok(*args
, **kwargs
):
4206 """Ok(self) -> bool"""
4207 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4209 def GetPrintData(*args
, **kwargs
):
4210 """GetPrintData(self) -> PrintData"""
4211 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4213 def SetPrintData(*args
, **kwargs
):
4214 """SetPrintData(self, PrintData printData)"""
4215 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4217 def __nonzero__(self
): return self
.Ok()
4219 class PrintDialogDataPtr(PrintDialogData
):
4220 def __init__(self
, this
):
4222 if not hasattr(self
,"thisown"): self
.thisown
= 0
4223 self
.__class
__ = PrintDialogData
4224 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4226 class PrintDialog(Dialog
):
4228 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4229 def __init__(self
, *args
, **kwargs
):
4230 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4231 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4232 self
.this
= newobj
.this
4235 self
._setOORInfo
(self
)
4237 def GetPrintDialogData(*args
, **kwargs
):
4238 """GetPrintDialogData(self) -> PrintDialogData"""
4239 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4241 def GetPrintDC(*args
, **kwargs
):
4242 """GetPrintDC(self) -> DC"""
4243 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4245 def ShowModal(*args
, **kwargs
):
4246 """ShowModal(self) -> int"""
4247 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4250 class PrintDialogPtr(PrintDialog
):
4251 def __init__(self
, this
):
4253 if not hasattr(self
,"thisown"): self
.thisown
= 0
4254 self
.__class
__ = PrintDialog
4255 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4257 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4258 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4259 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4260 class Printer(_core
.Object
):
4262 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4263 def __init__(self
, *args
, **kwargs
):
4264 """__init__(self, PrintDialogData data=None) -> Printer"""
4265 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4266 self
.this
= newobj
.this
4269 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4272 if self
.thisown
: destroy(self
)
4275 def CreateAbortWindow(*args
, **kwargs
):
4276 """CreateAbortWindow(self, Window parent, Printout printout)"""
4277 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4279 def GetPrintDialogData(*args
, **kwargs
):
4280 """GetPrintDialogData(self) -> PrintDialogData"""
4281 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4283 def Print(*args
, **kwargs
):
4284 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4285 return _windows_
.Printer_Print(*args
, **kwargs
)
4287 def PrintDialog(*args
, **kwargs
):
4288 """PrintDialog(self, Window parent) -> DC"""
4289 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4291 def ReportError(*args
, **kwargs
):
4292 """ReportError(self, Window parent, Printout printout, String message)"""
4293 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4295 def Setup(*args
, **kwargs
):
4296 """Setup(self, Window parent) -> bool"""
4297 return _windows_
.Printer_Setup(*args
, **kwargs
)
4299 def GetAbort(*args
, **kwargs
):
4300 """GetAbort(self) -> bool"""
4301 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4303 def GetLastError(*args
, **kwargs
):
4304 """GetLastError() -> int"""
4305 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4307 GetLastError
= staticmethod(GetLastError
)
4309 class PrinterPtr(Printer
):
4310 def __init__(self
, this
):
4312 if not hasattr(self
,"thisown"): self
.thisown
= 0
4313 self
.__class
__ = Printer
4314 _windows_
.Printer_swigregister(PrinterPtr
)
4316 def Printer_GetLastError(*args
, **kwargs
):
4317 """Printer_GetLastError() -> int"""
4318 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4320 class Printout(_core
.Object
):
4322 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4323 def __init__(self
, *args
, **kwargs
):
4324 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4325 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4326 self
.this
= newobj
.this
4329 self
._setCallbackInfo
(self
, Printout
)
4331 def _setCallbackInfo(*args
, **kwargs
):
4332 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4333 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4335 def GetTitle(*args
, **kwargs
):
4336 """GetTitle(self) -> String"""
4337 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4339 def GetDC(*args
, **kwargs
):
4340 """GetDC(self) -> DC"""
4341 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4343 def SetDC(*args
, **kwargs
):
4344 """SetDC(self, DC dc)"""
4345 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4347 def SetPageSizePixels(*args
, **kwargs
):
4348 """SetPageSizePixels(self, int w, int h)"""
4349 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4351 def GetPageSizePixels(*args
, **kwargs
):
4352 """GetPageSizePixels() -> (w, h)"""
4353 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4355 def SetPageSizeMM(*args
, **kwargs
):
4356 """SetPageSizeMM(self, int w, int h)"""
4357 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4359 def GetPageSizeMM(*args
, **kwargs
):
4360 """GetPageSizeMM() -> (w, h)"""
4361 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4363 def SetPPIScreen(*args
, **kwargs
):
4364 """SetPPIScreen(self, int x, int y)"""
4365 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4367 def GetPPIScreen(*args
, **kwargs
):
4368 """GetPPIScreen() -> (x,y)"""
4369 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4371 def SetPPIPrinter(*args
, **kwargs
):
4372 """SetPPIPrinter(self, int x, int y)"""
4373 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4375 def GetPPIPrinter(*args
, **kwargs
):
4376 """GetPPIPrinter() -> (x,y)"""
4377 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4379 def IsPreview(*args
, **kwargs
):
4380 """IsPreview(self) -> bool"""
4381 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4383 def SetIsPreview(*args
, **kwargs
):
4384 """SetIsPreview(self, bool p)"""
4385 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4387 def base_OnBeginDocument(*args
, **kwargs
):
4388 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4389 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4391 def base_OnEndDocument(*args
, **kwargs
):
4392 """base_OnEndDocument(self)"""
4393 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4395 def base_OnBeginPrinting(*args
, **kwargs
):
4396 """base_OnBeginPrinting(self)"""
4397 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4399 def base_OnEndPrinting(*args
, **kwargs
):
4400 """base_OnEndPrinting(self)"""
4401 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4403 def base_OnPreparePrinting(*args
, **kwargs
):
4404 """base_OnPreparePrinting(self)"""
4405 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4407 def base_HasPage(*args
, **kwargs
):
4408 """base_HasPage(self, int page) -> bool"""
4409 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4411 def base_GetPageInfo(*args
, **kwargs
):
4412 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4413 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4416 class PrintoutPtr(Printout
):
4417 def __init__(self
, this
):
4419 if not hasattr(self
,"thisown"): self
.thisown
= 0
4420 self
.__class
__ = Printout
4421 _windows_
.Printout_swigregister(PrintoutPtr
)
4423 class PreviewCanvas(ScrolledWindow
):
4425 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4426 def __init__(self
, *args
, **kwargs
):
4428 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4429 Size size=DefaultSize, long style=0,
4430 String name=PreviewCanvasNameStr) -> PreviewCanvas
4432 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4433 self
.this
= newobj
.this
4436 self
._setOORInfo
(self
)
4439 class PreviewCanvasPtr(PreviewCanvas
):
4440 def __init__(self
, this
):
4442 if not hasattr(self
,"thisown"): self
.thisown
= 0
4443 self
.__class
__ = PreviewCanvas
4444 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4446 class PreviewFrame(Frame
):
4448 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4449 def __init__(self
, *args
, **kwargs
):
4451 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4452 Size size=DefaultSize,
4453 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4455 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4456 self
.this
= newobj
.this
4459 self
._setOORInfo
(self
)
4461 def Initialize(*args
, **kwargs
):
4462 """Initialize(self)"""
4463 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4465 def CreateControlBar(*args
, **kwargs
):
4466 """CreateControlBar(self)"""
4467 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4469 def CreateCanvas(*args
, **kwargs
):
4470 """CreateCanvas(self)"""
4471 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4473 def GetControlBar(*args
, **kwargs
):
4474 """GetControlBar(self) -> PreviewControlBar"""
4475 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4478 class PreviewFramePtr(PreviewFrame
):
4479 def __init__(self
, this
):
4481 if not hasattr(self
,"thisown"): self
.thisown
= 0
4482 self
.__class
__ = PreviewFrame
4483 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4485 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4486 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4487 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4488 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4489 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4490 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4491 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4492 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4493 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4494 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4495 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4496 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4497 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4498 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4499 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4500 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4501 class PreviewControlBar(Panel
):
4503 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4504 def __init__(self
, *args
, **kwargs
):
4506 __init__(self, PrintPreview preview, long buttons, Window parent,
4507 Point pos=DefaultPosition, Size size=DefaultSize,
4508 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4510 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4511 self
.this
= newobj
.this
4514 self
._setOORInfo
(self
)
4516 def GetZoomControl(*args
, **kwargs
):
4517 """GetZoomControl(self) -> int"""
4518 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4520 def SetZoomControl(*args
, **kwargs
):
4521 """SetZoomControl(self, int zoom)"""
4522 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4524 def GetPrintPreview(*args
, **kwargs
):
4525 """GetPrintPreview(self) -> PrintPreview"""
4526 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4528 def OnNext(*args
, **kwargs
):
4530 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4532 def OnPrevious(*args
, **kwargs
):
4533 """OnPrevious(self)"""
4534 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4536 def OnFirst(*args
, **kwargs
):
4538 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4540 def OnLast(*args
, **kwargs
):
4542 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4544 def OnGoto(*args
, **kwargs
):
4546 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4549 class PreviewControlBarPtr(PreviewControlBar
):
4550 def __init__(self
, this
):
4552 if not hasattr(self
,"thisown"): self
.thisown
= 0
4553 self
.__class
__ = PreviewControlBar
4554 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4556 class PrintPreview(_core
.Object
):
4558 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4559 def __init__(self
, *args
):
4561 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4562 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4564 newobj
= _windows_
.new_PrintPreview(*args
)
4565 self
.this
= newobj
.this
4568 def SetCurrentPage(*args
, **kwargs
):
4569 """SetCurrentPage(self, int pageNum) -> bool"""
4570 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4572 def GetCurrentPage(*args
, **kwargs
):
4573 """GetCurrentPage(self) -> int"""
4574 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4576 def SetPrintout(*args
, **kwargs
):
4577 """SetPrintout(self, Printout printout)"""
4578 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4580 def GetPrintout(*args
, **kwargs
):
4581 """GetPrintout(self) -> Printout"""
4582 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4584 def GetPrintoutForPrinting(*args
, **kwargs
):
4585 """GetPrintoutForPrinting(self) -> Printout"""
4586 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4588 def SetFrame(*args
, **kwargs
):
4589 """SetFrame(self, Frame frame)"""
4590 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4592 def SetCanvas(*args
, **kwargs
):
4593 """SetCanvas(self, PreviewCanvas canvas)"""
4594 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4596 def GetFrame(*args
, **kwargs
):
4597 """GetFrame(self) -> Frame"""
4598 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4600 def GetCanvas(*args
, **kwargs
):
4601 """GetCanvas(self) -> PreviewCanvas"""
4602 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4604 def PaintPage(*args
, **kwargs
):
4605 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4606 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4608 def DrawBlankPage(*args
, **kwargs
):
4609 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4610 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4612 def RenderPage(*args
, **kwargs
):
4613 """RenderPage(self, int pageNum) -> bool"""
4614 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4616 def AdjustScrollbars(*args
, **kwargs
):
4617 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4618 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4620 def GetPrintDialogData(*args
, **kwargs
):
4621 """GetPrintDialogData(self) -> PrintDialogData"""
4622 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4624 def SetZoom(*args
, **kwargs
):
4625 """SetZoom(self, int percent)"""
4626 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4628 def GetZoom(*args
, **kwargs
):
4629 """GetZoom(self) -> int"""
4630 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4632 def GetMaxPage(*args
, **kwargs
):
4633 """GetMaxPage(self) -> int"""
4634 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4636 def GetMinPage(*args
, **kwargs
):
4637 """GetMinPage(self) -> int"""
4638 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4640 def Ok(*args
, **kwargs
):
4641 """Ok(self) -> bool"""
4642 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4644 def SetOk(*args
, **kwargs
):
4645 """SetOk(self, bool ok)"""
4646 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4648 def Print(*args
, **kwargs
):
4649 """Print(self, bool interactive) -> bool"""
4650 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4652 def DetermineScaling(*args
, **kwargs
):
4653 """DetermineScaling(self)"""
4654 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4656 def __nonzero__(self
): return self
.Ok()
4658 class PrintPreviewPtr(PrintPreview
):
4659 def __init__(self
, this
):
4661 if not hasattr(self
,"thisown"): self
.thisown
= 0
4662 self
.__class
__ = PrintPreview
4663 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4665 class PyPrintPreview(PrintPreview
):
4667 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4668 def __init__(self
, *args
):
4670 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4671 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4673 newobj
= _windows_
.new_PyPrintPreview(*args
)
4674 self
.this
= newobj
.this
4677 self
._setCallbackInfo
(self
, PyPrintPreview
)
4679 def _setCallbackInfo(*args
, **kwargs
):
4680 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4681 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4683 def base_SetCurrentPage(*args
, **kwargs
):
4684 """base_SetCurrentPage(self, int pageNum) -> bool"""
4685 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4687 def base_PaintPage(*args
, **kwargs
):
4688 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4689 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4691 def base_DrawBlankPage(*args
, **kwargs
):
4692 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4693 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4695 def base_RenderPage(*args
, **kwargs
):
4696 """base_RenderPage(self, int pageNum) -> bool"""
4697 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4699 def base_SetZoom(*args
, **kwargs
):
4700 """base_SetZoom(self, int percent)"""
4701 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4703 def base_Print(*args
, **kwargs
):
4704 """base_Print(self, bool interactive) -> bool"""
4705 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4707 def base_DetermineScaling(*args
, **kwargs
):
4708 """base_DetermineScaling(self)"""
4709 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4712 class PyPrintPreviewPtr(PyPrintPreview
):
4713 def __init__(self
, this
):
4715 if not hasattr(self
,"thisown"): self
.thisown
= 0
4716 self
.__class
__ = PyPrintPreview
4717 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4719 class PyPreviewFrame(PreviewFrame
):
4721 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4722 def __init__(self
, *args
, **kwargs
):
4724 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4725 Size size=DefaultSize,
4726 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4728 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4729 self
.this
= newobj
.this
4732 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4734 def _setCallbackInfo(*args
, **kwargs
):
4735 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4736 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4738 def SetPreviewCanvas(*args
, **kwargs
):
4739 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4740 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4742 def SetControlBar(*args
, **kwargs
):
4743 """SetControlBar(self, PreviewControlBar bar)"""
4744 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4746 def base_Initialize(*args
, **kwargs
):
4747 """base_Initialize(self)"""
4748 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4750 def base_CreateCanvas(*args
, **kwargs
):
4751 """base_CreateCanvas(self)"""
4752 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4754 def base_CreateControlBar(*args
, **kwargs
):
4755 """base_CreateControlBar(self)"""
4756 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4759 class PyPreviewFramePtr(PyPreviewFrame
):
4760 def __init__(self
, this
):
4762 if not hasattr(self
,"thisown"): self
.thisown
= 0
4763 self
.__class
__ = PyPreviewFrame
4764 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4766 class PyPreviewControlBar(PreviewControlBar
):
4768 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4769 def __init__(self
, *args
, **kwargs
):
4771 __init__(self, PrintPreview preview, long buttons, Window parent,
4772 Point pos=DefaultPosition, Size size=DefaultSize,
4773 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4775 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4776 self
.this
= newobj
.this
4779 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4781 def _setCallbackInfo(*args
, **kwargs
):
4782 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4783 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4785 def SetPrintPreview(*args
, **kwargs
):
4786 """SetPrintPreview(self, PrintPreview preview)"""
4787 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4789 def base_CreateButtons(*args
, **kwargs
):
4790 """base_CreateButtons(self)"""
4791 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4793 def base_SetZoomControl(*args
, **kwargs
):
4794 """base_SetZoomControl(self, int zoom)"""
4795 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4798 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4799 def __init__(self
, this
):
4801 if not hasattr(self
,"thisown"): self
.thisown
= 0
4802 self
.__class
__ = PyPreviewControlBar
4803 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)