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 return _windows_
.Panel_Create(*args
, **kwargs
)
33 def InitDialog(*args
, **kwargs
):
37 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
38 to the dialog via validators.
40 return _windows_
.Panel_InitDialog(*args
, **kwargs
)
42 def GetClassDefaultAttributes(*args
, **kwargs
):
44 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
46 Get the default attributes for this class. This is useful if you want
47 to use the same font or colour in your own control as in a standard
48 control -- which is a much better idea than hard coding specific
49 colours or fonts which might look completely out of place on the
50 user's system, especially if it uses themes.
52 The variant parameter is only relevant under Mac currently and is
53 ignore under other platforms. Under Mac, it will change the size of
54 the returned font. See `wx.Window.SetWindowVariant` for more about
57 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
59 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
61 class PanelPtr(Panel
):
62 def __init__(self
, this
):
64 if not hasattr(self
,"thisown"): self
.thisown
= 0
65 self
.__class
__ = Panel
66 _windows_
.Panel_swigregister(PanelPtr
)
68 def PrePanel(*args
, **kwargs
):
69 """PrePanel() -> Panel"""
70 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
74 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
76 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
78 Get the default attributes for this class. This is useful if you want
79 to use the same font or colour in your own control as in a standard
80 control -- which is a much better idea than hard coding specific
81 colours or fonts which might look completely out of place on the
82 user's system, especially if it uses themes.
84 The variant parameter is only relevant under Mac currently and is
85 ignore under other platforms. Under Mac, it will change the size of
86 the returned font. See `wx.Window.SetWindowVariant` for more about
89 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
91 #---------------------------------------------------------------------------
93 class ScrolledWindow(Panel
):
95 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
96 def __init__(self
, *args
, **kwargs
):
98 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
99 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
100 String name=PanelNameStr) -> ScrolledWindow
102 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
103 self
.this
= newobj
.this
106 self
._setOORInfo
(self
)
108 def Create(*args
, **kwargs
):
110 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
111 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
112 String name=PanelNameStr) -> bool
114 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
116 def SetScrollbars(*args
, **kwargs
):
118 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
119 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
121 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
123 def Scroll(*args
, **kwargs
):
124 """Scroll(self, int x, int y)"""
125 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
127 def GetScrollPageSize(*args
, **kwargs
):
128 """GetScrollPageSize(self, int orient) -> int"""
129 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
131 def SetScrollPageSize(*args
, **kwargs
):
132 """SetScrollPageSize(self, int orient, int pageSize)"""
133 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
135 def SetScrollRate(*args
, **kwargs
):
136 """SetScrollRate(self, int xstep, int ystep)"""
137 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
139 def GetScrollPixelsPerUnit(*args
, **kwargs
):
141 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
143 Get the size of one logical unit in physical units.
145 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
147 def EnableScrolling(*args
, **kwargs
):
148 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
149 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
151 def GetViewStart(*args
, **kwargs
):
153 GetViewStart() -> (x,y)
157 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
159 def SetScale(*args
, **kwargs
):
160 """SetScale(self, double xs, double ys)"""
161 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
163 def GetScaleX(*args
, **kwargs
):
164 """GetScaleX(self) -> double"""
165 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
167 def GetScaleY(*args
, **kwargs
):
168 """GetScaleY(self) -> double"""
169 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
171 def CalcScrolledPosition(*args
):
173 CalcScrolledPosition(self, Point pt) -> Point
174 CalcScrolledPosition(int x, int y) -> (sx, sy)
176 Translate between scrolled and unscrolled coordinates.
178 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
180 def CalcUnscrolledPosition(*args
):
182 CalcUnscrolledPosition(self, Point pt) -> Point
183 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
185 Translate between scrolled and unscrolled coordinates.
187 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
189 def AdjustScrollbars(*args
, **kwargs
):
190 """AdjustScrollbars(self)"""
191 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
193 def CalcScrollInc(*args
, **kwargs
):
194 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
195 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
197 def SetTargetWindow(*args
, **kwargs
):
198 """SetTargetWindow(self, Window target)"""
199 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
201 def GetTargetWindow(*args
, **kwargs
):
202 """GetTargetWindow(self) -> Window"""
203 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
205 def DoPrepareDC(*args
, **kwargs
):
207 DoPrepareDC(self, DC dc)
209 Normally what is called by `PrepareDC`.
211 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
213 def GetClassDefaultAttributes(*args
, **kwargs
):
215 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
217 Get the default attributes for this class. This is useful if you want
218 to use the same font or colour in your own control as in a standard
219 control -- which is a much better idea than hard coding specific
220 colours or fonts which might look completely out of place on the
221 user's system, especially if it uses themes.
223 The variant parameter is only relevant under Mac currently and is
224 ignore under other platforms. Under Mac, it will change the size of
225 the returned font. See `wx.Window.SetWindowVariant` for more about
228 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
230 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
232 class ScrolledWindowPtr(ScrolledWindow
):
233 def __init__(self
, this
):
235 if not hasattr(self
,"thisown"): self
.thisown
= 0
236 self
.__class
__ = ScrolledWindow
237 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
239 def PreScrolledWindow(*args
, **kwargs
):
240 """PreScrolledWindow() -> ScrolledWindow"""
241 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
245 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
247 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
249 Get the default attributes for this class. This is useful if you want
250 to use the same font or colour in your own control as in a standard
251 control -- which is a much better idea than hard coding specific
252 colours or fonts which might look completely out of place on the
253 user's system, especially if it uses themes.
255 The variant parameter is only relevant under Mac currently and is
256 ignore under other platforms. Under Mac, it will change the size of
257 the returned font. See `wx.Window.SetWindowVariant` for more about
260 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
262 #---------------------------------------------------------------------------
264 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
265 ICONIZE
= _windows_
.ICONIZE
266 MINIMIZE
= _windows_
.MINIMIZE
267 MAXIMIZE
= _windows_
.MAXIMIZE
268 CLOSE_BOX
= _windows_
.CLOSE_BOX
269 THICK_FRAME
= _windows_
.THICK_FRAME
270 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
271 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
272 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
273 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
274 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
275 RESIZE_BOX
= _windows_
.RESIZE_BOX
276 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
277 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
278 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
279 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
280 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
281 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
282 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
283 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
284 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
285 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
286 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
287 USER_COLOURS
= _windows_
.USER_COLOURS
288 NO_3D
= _windows_
.NO_3D
289 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
290 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
291 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
292 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
293 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
294 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
295 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
296 class TopLevelWindow(_core
.Window
):
297 def __init__(self
): raise RuntimeError, "No constructor defined"
299 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
300 def Maximize(*args
, **kwargs
):
301 """Maximize(self, bool maximize=True)"""
302 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
304 def Restore(*args
, **kwargs
):
306 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
308 def Iconize(*args
, **kwargs
):
309 """Iconize(self, bool iconize=True)"""
310 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
312 def IsMaximized(*args
, **kwargs
):
313 """IsMaximized(self) -> bool"""
314 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
316 def IsIconized(*args
, **kwargs
):
317 """IsIconized(self) -> bool"""
318 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
320 def GetIcon(*args
, **kwargs
):
321 """GetIcon(self) -> Icon"""
322 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
324 def SetIcon(*args
, **kwargs
):
325 """SetIcon(self, Icon icon)"""
326 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
328 def SetIcons(*args
, **kwargs
):
329 """SetIcons(self, wxIconBundle icons)"""
330 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
332 def ShowFullScreen(*args
, **kwargs
):
333 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
334 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
336 def IsFullScreen(*args
, **kwargs
):
337 """IsFullScreen(self) -> bool"""
338 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
340 def SetTitle(*args
, **kwargs
):
342 SetTitle(self, String title)
344 Sets the window's title. Applicable only to frames and dialogs.
346 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
348 def GetTitle(*args
, **kwargs
):
350 GetTitle(self) -> String
352 Gets the window's title. Applicable only to frames and dialogs.
354 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
356 def SetShape(*args
, **kwargs
):
357 """SetShape(self, Region region) -> bool"""
358 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
361 class TopLevelWindowPtr(TopLevelWindow
):
362 def __init__(self
, this
):
364 if not hasattr(self
,"thisown"): self
.thisown
= 0
365 self
.__class
__ = TopLevelWindow
366 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
367 cvar
= _windows_
.cvar
368 FrameNameStr
= cvar
.FrameNameStr
369 DialogNameStr
= cvar
.DialogNameStr
370 StatusLineNameStr
= cvar
.StatusLineNameStr
371 ToolBarNameStr
= cvar
.ToolBarNameStr
373 #---------------------------------------------------------------------------
375 class Frame(TopLevelWindow
):
377 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
378 def __init__(self
, *args
, **kwargs
):
380 __init__(self, Window parent, int id=-1, String title=EmptyString,
381 Point pos=DefaultPosition, Size size=DefaultSize,
382 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
384 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
385 self
.this
= newobj
.this
388 self
._setOORInfo
(self
)
390 def Create(*args
, **kwargs
):
392 Create(self, Window parent, int id=-1, String title=EmptyString,
393 Point pos=DefaultPosition, Size size=DefaultSize,
394 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
396 return _windows_
.Frame_Create(*args
, **kwargs
)
398 def GetClientAreaOrigin(*args
, **kwargs
):
400 GetClientAreaOrigin(self) -> Point
402 Get the origin of the client area of the window relative to the
403 window's top left corner (the client area may be shifted because of
404 the borders, scrollbars, other decorations...)
406 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
408 def SendSizeEvent(*args
, **kwargs
):
409 """SendSizeEvent(self)"""
410 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
412 def SetMenuBar(*args
, **kwargs
):
413 """SetMenuBar(self, MenuBar menubar)"""
414 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
416 def GetMenuBar(*args
, **kwargs
):
417 """GetMenuBar(self) -> MenuBar"""
418 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
420 def ProcessCommand(*args
, **kwargs
):
421 """ProcessCommand(self, int winid) -> bool"""
422 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
424 Command
= ProcessCommand
425 def CreateStatusBar(*args
, **kwargs
):
427 CreateStatusBar(self, int number=1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
428 int winid=0, String name=StatusLineNameStr) -> StatusBar
430 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
432 def GetStatusBar(*args
, **kwargs
):
433 """GetStatusBar(self) -> StatusBar"""
434 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
436 def SetStatusBar(*args
, **kwargs
):
437 """SetStatusBar(self, StatusBar statBar)"""
438 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
440 def SetStatusText(*args
, **kwargs
):
441 """SetStatusText(self, String text, int number=0)"""
442 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
444 def SetStatusWidths(*args
, **kwargs
):
445 """SetStatusWidths(self, int widths, int widths_field)"""
446 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
448 def PushStatusText(*args
, **kwargs
):
449 """PushStatusText(self, String text, int number=0)"""
450 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
452 def PopStatusText(*args
, **kwargs
):
453 """PopStatusText(self, int number=0)"""
454 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
456 def SetStatusBarPane(*args
, **kwargs
):
457 """SetStatusBarPane(self, int n)"""
458 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
460 def GetStatusBarPane(*args
, **kwargs
):
461 """GetStatusBarPane(self) -> int"""
462 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
464 def CreateToolBar(*args
, **kwargs
):
465 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
466 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
468 def GetToolBar(*args
, **kwargs
):
469 """GetToolBar(self) -> wxToolBar"""
470 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
472 def SetToolBar(*args
, **kwargs
):
473 """SetToolBar(self, wxToolBar toolbar)"""
474 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
476 def DoGiveHelp(*args
, **kwargs
):
477 """DoGiveHelp(self, String text, bool show)"""
478 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
480 def DoMenuUpdates(*args
, **kwargs
):
481 """DoMenuUpdates(self, Menu menu=None)"""
482 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
484 def GetClassDefaultAttributes(*args
, **kwargs
):
486 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
488 Get the default attributes for this class. This is useful if you want
489 to use the same font or colour in your own control as in a standard
490 control -- which is a much better idea than hard coding specific
491 colours or fonts which might look completely out of place on the
492 user's system, especially if it uses themes.
494 The variant parameter is only relevant under Mac currently and is
495 ignore under other platforms. Under Mac, it will change the size of
496 the returned font. See `wx.Window.SetWindowVariant` for more about
499 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
501 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
503 class FramePtr(Frame
):
504 def __init__(self
, this
):
506 if not hasattr(self
,"thisown"): self
.thisown
= 0
507 self
.__class
__ = Frame
508 _windows_
.Frame_swigregister(FramePtr
)
510 def PreFrame(*args
, **kwargs
):
511 """PreFrame() -> Frame"""
512 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
516 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
518 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
520 Get the default attributes for this class. This is useful if you want
521 to use the same font or colour in your own control as in a standard
522 control -- which is a much better idea than hard coding specific
523 colours or fonts which might look completely out of place on the
524 user's system, especially if it uses themes.
526 The variant parameter is only relevant under Mac currently and is
527 ignore under other platforms. Under Mac, it will change the size of
528 the returned font. See `wx.Window.SetWindowVariant` for more about
531 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
533 #---------------------------------------------------------------------------
535 class Dialog(TopLevelWindow
):
537 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
538 def __init__(self
, *args
, **kwargs
):
540 __init__(self, Window parent, int id=-1, String title=EmptyString,
541 Point pos=DefaultPosition, Size size=DefaultSize,
542 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
544 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
545 self
.this
= newobj
.this
548 self
._setOORInfo
(self
)
550 def Create(*args
, **kwargs
):
552 Create(self, Window parent, int id=-1, String title=EmptyString,
553 Point pos=DefaultPosition, Size size=DefaultSize,
554 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
556 return _windows_
.Dialog_Create(*args
, **kwargs
)
558 def SetReturnCode(*args
, **kwargs
):
559 """SetReturnCode(self, int returnCode)"""
560 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
562 def GetReturnCode(*args
, **kwargs
):
563 """GetReturnCode(self) -> int"""
564 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
566 def CreateTextSizer(*args
, **kwargs
):
567 """CreateTextSizer(self, String message) -> Sizer"""
568 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
570 def CreateButtonSizer(*args
, **kwargs
):
571 """CreateButtonSizer(self, long flags) -> Sizer"""
572 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
574 def IsModal(*args
, **kwargs
):
575 """IsModal(self) -> bool"""
576 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
578 def ShowModal(*args
, **kwargs
):
579 """ShowModal(self) -> int"""
580 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
582 def EndModal(*args
, **kwargs
):
583 """EndModal(self, int retCode)"""
584 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
586 def GetClassDefaultAttributes(*args
, **kwargs
):
588 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
590 Get the default attributes for this class. This is useful if you want
591 to use the same font or colour in your own control as in a standard
592 control -- which is a much better idea than hard coding specific
593 colours or fonts which might look completely out of place on the
594 user's system, especially if it uses themes.
596 The variant parameter is only relevant under Mac currently and is
597 ignore under other platforms. Under Mac, it will change the size of
598 the returned font. See `wx.Window.SetWindowVariant` for more about
601 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
603 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
604 def SendSizeEvent(self
):
605 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
608 class DialogPtr(Dialog
):
609 def __init__(self
, this
):
611 if not hasattr(self
,"thisown"): self
.thisown
= 0
612 self
.__class
__ = Dialog
613 _windows_
.Dialog_swigregister(DialogPtr
)
615 def PreDialog(*args
, **kwargs
):
616 """PreDialog() -> Dialog"""
617 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
621 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
623 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
625 Get the default attributes for this class. This is useful if you want
626 to use the same font or colour in your own control as in a standard
627 control -- which is a much better idea than hard coding specific
628 colours or fonts which might look completely out of place on the
629 user's system, especially if it uses themes.
631 The variant parameter is only relevant under Mac currently and is
632 ignore under other platforms. Under Mac, it will change the size of
633 the returned font. See `wx.Window.SetWindowVariant` for more about
636 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
638 #---------------------------------------------------------------------------
640 class MiniFrame(Frame
):
642 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
643 def __init__(self
, *args
, **kwargs
):
645 __init__(self, Window parent, int id=-1, String title=EmptyString,
646 Point pos=DefaultPosition, Size size=DefaultSize,
647 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
649 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
650 self
.this
= newobj
.this
653 self
._setOORInfo
(self
)
655 def Create(*args
, **kwargs
):
657 Create(self, Window parent, int id=-1, String title=EmptyString,
658 Point pos=DefaultPosition, Size size=DefaultSize,
659 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
661 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
664 class MiniFramePtr(MiniFrame
):
665 def __init__(self
, this
):
667 if not hasattr(self
,"thisown"): self
.thisown
= 0
668 self
.__class
__ = MiniFrame
669 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
671 def PreMiniFrame(*args
, **kwargs
):
672 """PreMiniFrame() -> MiniFrame"""
673 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
677 #---------------------------------------------------------------------------
679 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
680 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
681 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
682 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
683 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
684 class SplashScreenWindow(_core
.Window
):
686 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
687 def __init__(self
, *args
, **kwargs
):
689 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
690 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
692 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
693 self
.this
= newobj
.this
696 self
._setOORInfo
(self
)
698 def SetBitmap(*args
, **kwargs
):
699 """SetBitmap(self, Bitmap bitmap)"""
700 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
702 def GetBitmap(*args
, **kwargs
):
703 """GetBitmap(self) -> Bitmap"""
704 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
707 class SplashScreenWindowPtr(SplashScreenWindow
):
708 def __init__(self
, this
):
710 if not hasattr(self
,"thisown"): self
.thisown
= 0
711 self
.__class
__ = SplashScreenWindow
712 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
714 class SplashScreen(Frame
):
716 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
717 def __init__(self
, *args
, **kwargs
):
719 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
720 Window parent, int id=-1, Point pos=DefaultPosition,
721 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
723 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
724 self
.this
= newobj
.this
727 self
._setOORInfo
(self
)
729 def GetSplashStyle(*args
, **kwargs
):
730 """GetSplashStyle(self) -> long"""
731 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
733 def GetSplashWindow(*args
, **kwargs
):
734 """GetSplashWindow(self) -> SplashScreenWindow"""
735 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
737 def GetTimeout(*args
, **kwargs
):
738 """GetTimeout(self) -> int"""
739 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
742 class SplashScreenPtr(SplashScreen
):
743 def __init__(self
, this
):
745 if not hasattr(self
,"thisown"): self
.thisown
= 0
746 self
.__class
__ = SplashScreen
747 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
749 #---------------------------------------------------------------------------
751 SB_NORMAL
= _windows_
.SB_NORMAL
752 SB_FLAT
= _windows_
.SB_FLAT
753 SB_RAISED
= _windows_
.SB_RAISED
754 class StatusBar(_core
.Window
):
756 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
757 def __init__(self
, *args
, **kwargs
):
759 __init__(self, Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
760 String name=StatusLineNameStr) -> StatusBar
762 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
763 self
.this
= newobj
.this
766 self
._setOORInfo
(self
)
768 def Create(*args
, **kwargs
):
769 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
770 return _windows_
.StatusBar_Create(*args
, **kwargs
)
772 def SetFieldsCount(*args
, **kwargs
):
773 """SetFieldsCount(self, int number=1)"""
774 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
776 def GetFieldsCount(*args
, **kwargs
):
777 """GetFieldsCount(self) -> int"""
778 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
780 def SetStatusText(*args
, **kwargs
):
781 """SetStatusText(self, String text, int number=0)"""
782 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
784 def GetStatusText(*args
, **kwargs
):
785 """GetStatusText(self, int number=0) -> String"""
786 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
788 def PushStatusText(*args
, **kwargs
):
789 """PushStatusText(self, String text, int number=0)"""
790 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
792 def PopStatusText(*args
, **kwargs
):
793 """PopStatusText(self, int number=0)"""
794 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
796 def SetStatusWidths(*args
, **kwargs
):
797 """SetStatusWidths(self, int widths, int widths_field)"""
798 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
800 def SetStatusStyles(*args
, **kwargs
):
801 """SetStatusStyles(self, int styles, int styles_field)"""
802 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
804 def GetFieldRect(*args
, **kwargs
):
805 """GetFieldRect(self, int i) -> Rect"""
806 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
808 def SetMinHeight(*args
, **kwargs
):
809 """SetMinHeight(self, int height)"""
810 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
812 def GetBorderX(*args
, **kwargs
):
813 """GetBorderX(self) -> int"""
814 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
816 def GetBorderY(*args
, **kwargs
):
817 """GetBorderY(self) -> int"""
818 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
820 def GetClassDefaultAttributes(*args
, **kwargs
):
822 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
824 Get the default attributes for this class. This is useful if you want
825 to use the same font or colour in your own control as in a standard
826 control -- which is a much better idea than hard coding specific
827 colours or fonts which might look completely out of place on the
828 user's system, especially if it uses themes.
830 The variant parameter is only relevant under Mac currently and is
831 ignore under other platforms. Under Mac, it will change the size of
832 the returned font. See `wx.Window.SetWindowVariant` for more about
835 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
837 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
839 class StatusBarPtr(StatusBar
):
840 def __init__(self
, this
):
842 if not hasattr(self
,"thisown"): self
.thisown
= 0
843 self
.__class
__ = StatusBar
844 _windows_
.StatusBar_swigregister(StatusBarPtr
)
846 def PreStatusBar(*args
, **kwargs
):
847 """PreStatusBar() -> StatusBar"""
848 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
852 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
854 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
856 Get the default attributes for this class. This is useful if you want
857 to use the same font or colour in your own control as in a standard
858 control -- which is a much better idea than hard coding specific
859 colours or fonts which might look completely out of place on the
860 user's system, especially if it uses themes.
862 The variant parameter is only relevant under Mac currently and is
863 ignore under other platforms. Under Mac, it will change the size of
864 the returned font. See `wx.Window.SetWindowVariant` for more about
867 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
869 #---------------------------------------------------------------------------
871 SP_NOBORDER
= _windows_
.SP_NOBORDER
872 SP_NOSASH
= _windows_
.SP_NOSASH
873 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
874 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
875 SP_3DSASH
= _windows_
.SP_3DSASH
876 SP_3DBORDER
= _windows_
.SP_3DBORDER
877 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
878 SP_BORDER
= _windows_
.SP_BORDER
879 SP_3D
= _windows_
.SP_3D
880 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
881 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
882 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
883 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
884 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
885 class SplitterWindow(_core
.Window
):
887 wx.SplitterWindow manages up to two subwindows or panes, with an
888 optional vertical or horizontal split which can be used with the mouse
892 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
893 def __init__(self
, *args
, **kwargs
):
895 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
896 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
898 Constructor. Creates and shows a SplitterWindow.
900 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
901 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
902 self
.this
= newobj
.this
905 self
._setOORInfo
(self
)
907 def Create(*args
, **kwargs
):
909 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
910 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
912 Create the GUI part of the SplitterWindow for the 2-phase create.
914 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
916 def GetWindow1(*args
, **kwargs
):
918 GetWindow1(self) -> Window
920 Gets the only or left/top pane.
922 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
924 def GetWindow2(*args
, **kwargs
):
926 GetWindow2(self) -> Window
928 Gets the right/bottom pane.
930 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
932 def SetSplitMode(*args
, **kwargs
):
934 SetSplitMode(self, int mode)
936 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
937 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
940 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
942 def GetSplitMode(*args
, **kwargs
):
944 GetSplitMode(self) -> int
948 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
950 def Initialize(*args
, **kwargs
):
952 Initialize(self, Window window)
954 Initializes the splitter window to have one pane. This should be
955 called if you wish to initially view only a single pane in the
958 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
960 def SplitVertically(*args
, **kwargs
):
962 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
964 Initializes the left and right panes of the splitter window.
966 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
968 def SplitHorizontally(*args
, **kwargs
):
970 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
972 Initializes the top and bottom panes of the splitter window.
974 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
976 def Unsplit(*args
, **kwargs
):
978 Unsplit(self, Window toRemove=None) -> bool
980 Unsplits the window. Pass the pane to remove, or None to remove the
981 right or bottom pane. Returns True if successful, False otherwise (the
982 window was not split).
984 This function will not actually delete the pane being
985 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
986 for the desired behaviour. By default, the pane being
987 removed is only hidden.
989 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
991 def ReplaceWindow(*args
, **kwargs
):
993 ReplaceWindow(self, Window winOld, Window winNew) -> bool
995 This function replaces one of the windows managed by the
996 SplitterWindow with another one. It is in general better to use it
997 instead of calling Unsplit() and then resplitting the window back
998 because it will provoke much less flicker. It is valid to call this
999 function whether the splitter has two windows or only one.
1001 Both parameters should be non-None and winOld must specify one of the
1002 windows managed by the splitter. If the parameters are incorrect or
1003 the window couldn't be replaced, False is returned. Otherwise the
1004 function will return True, but please notice that it will not Destroy
1005 the replaced window and you may wish to do it yourself.
1007 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1009 def UpdateSize(*args
, **kwargs
):
1013 Causes any pending sizing of the sash and child panes to take place
1016 Such resizing normally takes place in idle time, in order to wait for
1017 layout to be completed. However, this can cause unacceptable flicker
1018 as the panes are resized after the window has been shown. To work
1019 around this, you can perform window layout (for example by sending a
1020 size event to the parent window), and then call this function, before
1021 showing the top-level window.
1023 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1025 def IsSplit(*args
, **kwargs
):
1027 IsSplit(self) -> bool
1029 Is the window split?
1031 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1033 def SetSashSize(*args
, **kwargs
):
1035 SetSashSize(self, int width)
1039 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1041 def SetBorderSize(*args
, **kwargs
):
1043 SetBorderSize(self, int width)
1045 Sets the border size
1047 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1049 def GetSashSize(*args
, **kwargs
):
1051 GetSashSize(self) -> int
1055 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1057 def GetBorderSize(*args
, **kwargs
):
1059 GetBorderSize(self) -> int
1061 Gets the border size
1063 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1065 def SetSashPosition(*args
, **kwargs
):
1067 SetSashPosition(self, int position, bool redraw=True)
1069 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1070 are resized and the sash and border are redrawn.
1072 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1074 def GetSashPosition(*args
, **kwargs
):
1076 GetSashPosition(self) -> int
1078 Returns the surrent sash position.
1080 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1082 def SetMinimumPaneSize(*args
, **kwargs
):
1084 SetMinimumPaneSize(self, int min)
1086 Sets the minimum pane size in pixels.
1088 The default minimum pane size is zero, which means that either pane
1089 can be reduced to zero by dragging the sash, thus removing one of the
1090 panes. To prevent this behaviour (and veto out-of-range sash
1091 dragging), set a minimum size, for example 20 pixels. If the
1092 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1093 the window may be unsplit even if minimum size is non-zero.
1095 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1097 def GetMinimumPaneSize(*args
, **kwargs
):
1099 GetMinimumPaneSize(self) -> int
1101 Gets the minimum pane size in pixels.
1103 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1105 def SashHitTest(*args
, **kwargs
):
1107 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1109 Tests for x, y over the sash
1111 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1113 def SizeWindows(*args
, **kwargs
):
1119 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1121 def SetNeedUpdating(*args
, **kwargs
):
1122 """SetNeedUpdating(self, bool needUpdating)"""
1123 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1125 def GetNeedUpdating(*args
, **kwargs
):
1126 """GetNeedUpdating(self) -> bool"""
1127 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1129 def GetClassDefaultAttributes(*args
, **kwargs
):
1131 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1133 Get the default attributes for this class. This is useful if you want
1134 to use the same font or colour in your own control as in a standard
1135 control -- which is a much better idea than hard coding specific
1136 colours or fonts which might look completely out of place on the
1137 user's system, especially if it uses themes.
1139 The variant parameter is only relevant under Mac currently and is
1140 ignore under other platforms. Under Mac, it will change the size of
1141 the returned font. See `wx.Window.SetWindowVariant` for more about
1144 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1146 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1148 class SplitterWindowPtr(SplitterWindow
):
1149 def __init__(self
, this
):
1151 if not hasattr(self
,"thisown"): self
.thisown
= 0
1152 self
.__class
__ = SplitterWindow
1153 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1154 SplitterNameStr
= cvar
.SplitterNameStr
1156 def PreSplitterWindow(*args
, **kwargs
):
1158 PreSplitterWindow() -> SplitterWindow
1160 Precreate a SplitterWindow for 2-phase creation.
1162 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1166 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1168 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1170 Get the default attributes for this class. This is useful if you want
1171 to use the same font or colour in your own control as in a standard
1172 control -- which is a much better idea than hard coding specific
1173 colours or fonts which might look completely out of place on the
1174 user's system, especially if it uses themes.
1176 The variant parameter is only relevant under Mac currently and is
1177 ignore under other platforms. Under Mac, it will change the size of
1178 the returned font. See `wx.Window.SetWindowVariant` for more about
1181 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1183 class SplitterEvent(_core
.NotifyEvent
):
1184 """This class represents the events generated by a splitter control."""
1186 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1187 def __init__(self
, *args
, **kwargs
):
1189 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1191 This class represents the events generated by a splitter control.
1193 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1194 self
.this
= newobj
.this
1197 def SetSashPosition(*args
, **kwargs
):
1199 SetSashPosition(self, int pos)
1201 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1202 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1203 events, sets the the new sash position. In the case of _CHANGING
1204 events, sets the new tracking bar position so visual feedback during
1205 dragging will represent that change that will actually take place. Set
1206 to -1 from the event handler code to prevent repositioning.
1208 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1210 def GetSashPosition(*args
, **kwargs
):
1212 GetSashPosition(self) -> int
1214 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1215 and EVT_SPLITTER_SASH_POS_CHANGED events.
1217 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1219 def GetWindowBeingRemoved(*args
, **kwargs
):
1221 GetWindowBeingRemoved(self) -> Window
1223 Returns a pointer to the window being removed when a splitter window
1226 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1228 def GetX(*args
, **kwargs
):
1232 Returns the x coordinate of the double-click point in a
1233 EVT_SPLITTER_DCLICK event.
1235 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1237 def GetY(*args
, **kwargs
):
1241 Returns the y coordinate of the double-click point in a
1242 EVT_SPLITTER_DCLICK event.
1244 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1247 class SplitterEventPtr(SplitterEvent
):
1248 def __init__(self
, this
):
1250 if not hasattr(self
,"thisown"): self
.thisown
= 0
1251 self
.__class
__ = SplitterEvent
1252 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1254 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1255 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1256 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1257 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1258 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1259 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1260 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1261 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1262 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1264 #---------------------------------------------------------------------------
1266 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1267 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1268 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1269 SW_NOBORDER
= _windows_
.SW_NOBORDER
1270 SW_BORDER
= _windows_
.SW_BORDER
1271 SW_3DSASH
= _windows_
.SW_3DSASH
1272 SW_3DBORDER
= _windows_
.SW_3DBORDER
1273 SW_3D
= _windows_
.SW_3D
1274 SASH_TOP
= _windows_
.SASH_TOP
1275 SASH_RIGHT
= _windows_
.SASH_RIGHT
1276 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1277 SASH_LEFT
= _windows_
.SASH_LEFT
1278 SASH_NONE
= _windows_
.SASH_NONE
1279 class SashWindow(_core
.Window
):
1281 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1282 def __init__(self
, *args
, **kwargs
):
1284 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1285 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1286 String name=SashNameStr) -> SashWindow
1288 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1289 self
.this
= newobj
.this
1292 self
._setOORInfo
(self
)
1294 def Create(*args
, **kwargs
):
1296 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1297 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1298 String name=SashNameStr) -> bool
1300 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1302 def SetSashVisible(*args
, **kwargs
):
1303 """SetSashVisible(self, int edge, bool sash)"""
1304 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1306 def GetSashVisible(*args
, **kwargs
):
1307 """GetSashVisible(self, int edge) -> bool"""
1308 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1310 def SetSashBorder(*args
, **kwargs
):
1311 """SetSashBorder(self, int edge, bool border)"""
1312 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1314 def HasBorder(*args
, **kwargs
):
1315 """HasBorder(self, int edge) -> bool"""
1316 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1318 def GetEdgeMargin(*args
, **kwargs
):
1319 """GetEdgeMargin(self, int edge) -> int"""
1320 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1322 def SetDefaultBorderSize(*args
, **kwargs
):
1323 """SetDefaultBorderSize(self, int width)"""
1324 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1326 def GetDefaultBorderSize(*args
, **kwargs
):
1327 """GetDefaultBorderSize(self) -> int"""
1328 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1330 def SetExtraBorderSize(*args
, **kwargs
):
1331 """SetExtraBorderSize(self, int width)"""
1332 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1334 def GetExtraBorderSize(*args
, **kwargs
):
1335 """GetExtraBorderSize(self) -> int"""
1336 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1338 def SetMinimumSizeX(*args
, **kwargs
):
1339 """SetMinimumSizeX(self, int min)"""
1340 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1342 def SetMinimumSizeY(*args
, **kwargs
):
1343 """SetMinimumSizeY(self, int min)"""
1344 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1346 def GetMinimumSizeX(*args
, **kwargs
):
1347 """GetMinimumSizeX(self) -> int"""
1348 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1350 def GetMinimumSizeY(*args
, **kwargs
):
1351 """GetMinimumSizeY(self) -> int"""
1352 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1354 def SetMaximumSizeX(*args
, **kwargs
):
1355 """SetMaximumSizeX(self, int max)"""
1356 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1358 def SetMaximumSizeY(*args
, **kwargs
):
1359 """SetMaximumSizeY(self, int max)"""
1360 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1362 def GetMaximumSizeX(*args
, **kwargs
):
1363 """GetMaximumSizeX(self) -> int"""
1364 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1366 def GetMaximumSizeY(*args
, **kwargs
):
1367 """GetMaximumSizeY(self) -> int"""
1368 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1370 def SashHitTest(*args
, **kwargs
):
1371 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1372 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1374 def SizeWindows(*args
, **kwargs
):
1375 """SizeWindows(self)"""
1376 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1379 class SashWindowPtr(SashWindow
):
1380 def __init__(self
, this
):
1382 if not hasattr(self
,"thisown"): self
.thisown
= 0
1383 self
.__class
__ = SashWindow
1384 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1385 SashNameStr
= cvar
.SashNameStr
1386 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1388 def PreSashWindow(*args
, **kwargs
):
1389 """PreSashWindow() -> SashWindow"""
1390 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1394 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1395 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1396 class SashEvent(_core
.CommandEvent
):
1398 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1399 def __init__(self
, *args
, **kwargs
):
1400 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1401 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1402 self
.this
= newobj
.this
1405 def SetEdge(*args
, **kwargs
):
1406 """SetEdge(self, int edge)"""
1407 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1409 def GetEdge(*args
, **kwargs
):
1410 """GetEdge(self) -> int"""
1411 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1413 def SetDragRect(*args
, **kwargs
):
1414 """SetDragRect(self, Rect rect)"""
1415 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1417 def GetDragRect(*args
, **kwargs
):
1418 """GetDragRect(self) -> Rect"""
1419 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1421 def SetDragStatus(*args
, **kwargs
):
1422 """SetDragStatus(self, int status)"""
1423 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1425 def GetDragStatus(*args
, **kwargs
):
1426 """GetDragStatus(self) -> int"""
1427 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1430 class SashEventPtr(SashEvent
):
1431 def __init__(self
, this
):
1433 if not hasattr(self
,"thisown"): self
.thisown
= 0
1434 self
.__class
__ = SashEvent
1435 _windows_
.SashEvent_swigregister(SashEventPtr
)
1437 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1438 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1439 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1441 #---------------------------------------------------------------------------
1443 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1444 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1445 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1446 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1447 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1448 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1449 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1450 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1451 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1452 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1453 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1454 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1455 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1456 class QueryLayoutInfoEvent(_core
.Event
):
1458 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1459 def __init__(self
, *args
, **kwargs
):
1460 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1461 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1462 self
.this
= newobj
.this
1465 def SetRequestedLength(*args
, **kwargs
):
1466 """SetRequestedLength(self, int length)"""
1467 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1469 def GetRequestedLength(*args
, **kwargs
):
1470 """GetRequestedLength(self) -> int"""
1471 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1473 def SetFlags(*args
, **kwargs
):
1474 """SetFlags(self, int flags)"""
1475 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1477 def GetFlags(*args
, **kwargs
):
1478 """GetFlags(self) -> int"""
1479 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1481 def SetSize(*args
, **kwargs
):
1482 """SetSize(self, Size size)"""
1483 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1485 def GetSize(*args
, **kwargs
):
1486 """GetSize(self) -> Size"""
1487 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1489 def SetOrientation(*args
, **kwargs
):
1490 """SetOrientation(self, int orient)"""
1491 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1493 def GetOrientation(*args
, **kwargs
):
1494 """GetOrientation(self) -> int"""
1495 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1497 def SetAlignment(*args
, **kwargs
):
1498 """SetAlignment(self, int align)"""
1499 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1501 def GetAlignment(*args
, **kwargs
):
1502 """GetAlignment(self) -> int"""
1503 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1506 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1507 def __init__(self
, this
):
1509 if not hasattr(self
,"thisown"): self
.thisown
= 0
1510 self
.__class
__ = QueryLayoutInfoEvent
1511 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1513 class CalculateLayoutEvent(_core
.Event
):
1515 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1516 def __init__(self
, *args
, **kwargs
):
1517 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1518 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1519 self
.this
= newobj
.this
1522 def SetFlags(*args
, **kwargs
):
1523 """SetFlags(self, int flags)"""
1524 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1526 def GetFlags(*args
, **kwargs
):
1527 """GetFlags(self) -> int"""
1528 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1530 def SetRect(*args
, **kwargs
):
1531 """SetRect(self, Rect rect)"""
1532 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1534 def GetRect(*args
, **kwargs
):
1535 """GetRect(self) -> Rect"""
1536 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1539 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1540 def __init__(self
, this
):
1542 if not hasattr(self
,"thisown"): self
.thisown
= 0
1543 self
.__class
__ = CalculateLayoutEvent
1544 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1546 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1547 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1549 class SashLayoutWindow(SashWindow
):
1551 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1552 def __init__(self
, *args
, **kwargs
):
1554 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1555 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1556 String name=SashLayoutNameStr) -> SashLayoutWindow
1558 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1559 self
.this
= newobj
.this
1562 self
._setOORInfo
(self
)
1564 def Create(*args
, **kwargs
):
1566 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1567 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1568 String name=SashLayoutNameStr) -> bool
1570 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1572 def GetAlignment(*args
, **kwargs
):
1573 """GetAlignment(self) -> int"""
1574 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1576 def GetOrientation(*args
, **kwargs
):
1577 """GetOrientation(self) -> int"""
1578 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1580 def SetAlignment(*args
, **kwargs
):
1581 """SetAlignment(self, int alignment)"""
1582 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1584 def SetDefaultSize(*args
, **kwargs
):
1585 """SetDefaultSize(self, Size size)"""
1586 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1588 def SetOrientation(*args
, **kwargs
):
1589 """SetOrientation(self, int orientation)"""
1590 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1593 class SashLayoutWindowPtr(SashLayoutWindow
):
1594 def __init__(self
, this
):
1596 if not hasattr(self
,"thisown"): self
.thisown
= 0
1597 self
.__class
__ = SashLayoutWindow
1598 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1600 def PreSashLayoutWindow(*args
, **kwargs
):
1601 """PreSashLayoutWindow() -> SashLayoutWindow"""
1602 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1606 class LayoutAlgorithm(_core
.Object
):
1608 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1609 def __init__(self
, *args
, **kwargs
):
1610 """__init__(self) -> LayoutAlgorithm"""
1611 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1612 self
.this
= newobj
.this
1615 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1618 if self
.thisown
: destroy(self
)
1621 def LayoutMDIFrame(*args
, **kwargs
):
1622 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1623 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1625 def LayoutFrame(*args
, **kwargs
):
1626 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1627 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1629 def LayoutWindow(*args
, **kwargs
):
1630 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1631 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1634 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1635 def __init__(self
, this
):
1637 if not hasattr(self
,"thisown"): self
.thisown
= 0
1638 self
.__class
__ = LayoutAlgorithm
1639 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1641 #---------------------------------------------------------------------------
1643 class PopupWindow(_core
.Window
):
1645 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1646 def __init__(self
, *args
, **kwargs
):
1647 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1648 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1649 self
.this
= newobj
.this
1652 self
._setOORInfo
(self
)
1654 def Create(*args
, **kwargs
):
1655 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1656 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1658 def Position(*args
, **kwargs
):
1659 """Position(self, Point ptOrigin, Size size)"""
1660 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1663 class PopupWindowPtr(PopupWindow
):
1664 def __init__(self
, this
):
1666 if not hasattr(self
,"thisown"): self
.thisown
= 0
1667 self
.__class
__ = PopupWindow
1668 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1670 def PrePopupWindow(*args
, **kwargs
):
1671 """PrePopupWindow() -> PopupWindow"""
1672 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1676 #---------------------------------------------------------------------------
1678 class PopupTransientWindow(PopupWindow
):
1680 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1681 def __init__(self
, *args
, **kwargs
):
1682 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1683 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1684 self
.this
= newobj
.this
1687 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1689 def _setCallbackInfo(*args
, **kwargs
):
1690 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1691 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1693 def Popup(*args
, **kwargs
):
1694 """Popup(self, Window focus=None)"""
1695 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1697 def Dismiss(*args
, **kwargs
):
1699 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1702 class PopupTransientWindowPtr(PopupTransientWindow
):
1703 def __init__(self
, this
):
1705 if not hasattr(self
,"thisown"): self
.thisown
= 0
1706 self
.__class
__ = PopupTransientWindow
1707 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1709 def PrePopupTransientWindow(*args
, **kwargs
):
1710 """PrePopupTransientWindow() -> PopupTransientWindow"""
1711 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1715 #---------------------------------------------------------------------------
1717 class TipWindow(PopupTransientWindow
):
1719 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1720 def __init__(self
, *args
, **kwargs
):
1721 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1722 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1723 self
.this
= newobj
.this
1726 self
._setOORInfo
(self
)
1728 def SetBoundingRect(*args
, **kwargs
):
1729 """SetBoundingRect(self, Rect rectBound)"""
1730 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1732 def Close(*args
, **kwargs
):
1734 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1737 class TipWindowPtr(TipWindow
):
1738 def __init__(self
, this
):
1740 if not hasattr(self
,"thisown"): self
.thisown
= 0
1741 self
.__class
__ = TipWindow
1742 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1744 #---------------------------------------------------------------------------
1746 class VScrolledWindow(Panel
):
1748 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1749 def __init__(self
, *args
, **kwargs
):
1751 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1752 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1754 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1755 self
.this
= newobj
.this
1758 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1760 def _setCallbackInfo(*args
, **kwargs
):
1761 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1762 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1764 def Create(*args
, **kwargs
):
1766 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1767 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1769 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1771 def SetLineCount(*args
, **kwargs
):
1772 """SetLineCount(self, size_t count)"""
1773 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1775 def ScrollToLine(*args
, **kwargs
):
1776 """ScrollToLine(self, size_t line) -> bool"""
1777 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1779 def ScrollLines(*args
, **kwargs
):
1780 """ScrollLines(self, int lines) -> bool"""
1781 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1783 def ScrollPages(*args
, **kwargs
):
1785 ScrollPages(self, int pages) -> bool
1787 If the platform and window class supports it, scrolls the window by
1788 the given number of pages down, if pages is positive, or up if pages
1789 is negative. Returns True if the window was scrolled, False if it was
1790 already on top/bottom and nothing was done.
1792 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1794 def RefreshLine(*args
, **kwargs
):
1795 """RefreshLine(self, size_t line)"""
1796 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1798 def RefreshLines(*args
, **kwargs
):
1799 """RefreshLines(self, size_t from, size_t to)"""
1800 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1802 def HitTestXY(*args
, **kwargs
):
1804 HitTestXY(self, int x, int y) -> int
1806 Test where the given (in client coords) point lies
1808 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1810 def HitTest(*args
, **kwargs
):
1812 HitTest(self, Point pt) -> int
1814 Test where the given (in client coords) point lies
1816 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1818 def RefreshAll(*args
, **kwargs
):
1819 """RefreshAll(self)"""
1820 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1822 def GetLineCount(*args
, **kwargs
):
1823 """GetLineCount(self) -> size_t"""
1824 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1826 def GetFirstVisibleLine(*args
, **kwargs
):
1827 """GetFirstVisibleLine(self) -> size_t"""
1828 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1830 def GetLastVisibleLine(*args
, **kwargs
):
1831 """GetLastVisibleLine(self) -> size_t"""
1832 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1834 def IsVisible(*args
, **kwargs
):
1835 """IsVisible(self, size_t line) -> bool"""
1836 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1839 class VScrolledWindowPtr(VScrolledWindow
):
1840 def __init__(self
, this
):
1842 if not hasattr(self
,"thisown"): self
.thisown
= 0
1843 self
.__class
__ = VScrolledWindow
1844 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1846 def PreVScrolledWindow(*args
, **kwargs
):
1847 """PreVScrolledWindow() -> VScrolledWindow"""
1848 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1852 class VListBox(VScrolledWindow
):
1854 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1855 def __init__(self
, *args
, **kwargs
):
1857 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1858 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1860 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1861 self
.this
= newobj
.this
1864 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1866 def _setCallbackInfo(*args
, **kwargs
):
1867 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1868 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1870 def Create(*args
, **kwargs
):
1872 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1873 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1875 return _windows_
.VListBox_Create(*args
, **kwargs
)
1877 def GetItemCount(*args
, **kwargs
):
1878 """GetItemCount(self) -> size_t"""
1879 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1881 def HasMultipleSelection(*args
, **kwargs
):
1882 """HasMultipleSelection(self) -> bool"""
1883 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1885 def GetSelection(*args
, **kwargs
):
1886 """GetSelection(self) -> int"""
1887 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1889 def IsCurrent(*args
, **kwargs
):
1890 """IsCurrent(self, size_t item) -> bool"""
1891 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1893 def IsSelected(*args
, **kwargs
):
1894 """IsSelected(self, size_t item) -> bool"""
1895 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1897 def GetSelectedCount(*args
, **kwargs
):
1898 """GetSelectedCount(self) -> size_t"""
1899 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1901 def GetFirstSelected(*args
, **kwargs
):
1902 """GetFirstSelected(self) -> PyObject"""
1903 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1905 def GetNextSelected(*args
, **kwargs
):
1906 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1907 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1909 def GetMargins(*args
, **kwargs
):
1910 """GetMargins(self) -> Point"""
1911 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1913 def GetSelectionBackground(*args
, **kwargs
):
1914 """GetSelectionBackground(self) -> Colour"""
1915 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1917 def SetItemCount(*args
, **kwargs
):
1918 """SetItemCount(self, size_t count)"""
1919 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1921 def Clear(*args
, **kwargs
):
1923 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1925 def SetSelection(*args
, **kwargs
):
1926 """SetSelection(self, int selection)"""
1927 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1929 def Select(*args
, **kwargs
):
1930 """Select(self, size_t item, bool select=True) -> bool"""
1931 return _windows_
.VListBox_Select(*args
, **kwargs
)
1933 def SelectRange(*args
, **kwargs
):
1934 """SelectRange(self, size_t from, size_t to) -> bool"""
1935 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1937 def Toggle(*args
, **kwargs
):
1938 """Toggle(self, size_t item)"""
1939 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1941 def SelectAll(*args
, **kwargs
):
1942 """SelectAll(self) -> bool"""
1943 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1945 def DeselectAll(*args
, **kwargs
):
1946 """DeselectAll(self) -> bool"""
1947 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1949 def SetMargins(*args
, **kwargs
):
1950 """SetMargins(self, Point pt)"""
1951 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1953 def SetMarginsXY(*args
, **kwargs
):
1954 """SetMarginsXY(self, int x, int y)"""
1955 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1957 def SetSelectionBackground(*args
, **kwargs
):
1958 """SetSelectionBackground(self, Colour col)"""
1959 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1962 class VListBoxPtr(VListBox
):
1963 def __init__(self
, this
):
1965 if not hasattr(self
,"thisown"): self
.thisown
= 0
1966 self
.__class
__ = VListBox
1967 _windows_
.VListBox_swigregister(VListBoxPtr
)
1968 VListBoxNameStr
= cvar
.VListBoxNameStr
1970 def PreVListBox(*args
, **kwargs
):
1971 """PreVListBox() -> VListBox"""
1972 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1976 class HtmlListBox(VListBox
):
1978 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1979 def __init__(self
, *args
, **kwargs
):
1981 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1982 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1984 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
1985 self
.this
= newobj
.this
1988 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1990 def _setCallbackInfo(*args
, **kwargs
):
1991 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1992 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1994 def Create(*args
, **kwargs
):
1996 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1997 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1999 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2001 def RefreshAll(*args
, **kwargs
):
2002 """RefreshAll(self)"""
2003 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2005 def SetItemCount(*args
, **kwargs
):
2006 """SetItemCount(self, size_t count)"""
2007 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2009 def GetFileSystem(*args
, **kwargs
):
2010 """GetFileSystem(self) -> FileSystem"""
2011 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2014 class HtmlListBoxPtr(HtmlListBox
):
2015 def __init__(self
, this
):
2017 if not hasattr(self
,"thisown"): self
.thisown
= 0
2018 self
.__class
__ = HtmlListBox
2019 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2021 def PreHtmlListBox(*args
, **kwargs
):
2022 """PreHtmlListBox() -> HtmlListBox"""
2023 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2027 #---------------------------------------------------------------------------
2029 class TaskBarIcon(_core
.EvtHandler
):
2031 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2032 def __init__(self
, *args
, **kwargs
):
2033 """__init__(self) -> TaskBarIcon"""
2034 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2035 self
.this
= newobj
.this
2038 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2041 if self
.thisown
: destroy(self
)
2044 def Destroy(*args
, **kwargs
):
2048 Deletes the C++ object this Python object is a proxy for.
2050 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2052 def IsOk(*args
, **kwargs
):
2053 """IsOk(self) -> bool"""
2054 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2056 def __nonzero__(self
): return self
.IsOk()
2057 def IsIconInstalled(*args
, **kwargs
):
2058 """IsIconInstalled(self) -> bool"""
2059 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2061 def SetIcon(*args
, **kwargs
):
2062 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2063 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2065 def RemoveIcon(*args
, **kwargs
):
2066 """RemoveIcon(self) -> bool"""
2067 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2069 def PopupMenu(*args
, **kwargs
):
2070 """PopupMenu(self, Menu menu) -> bool"""
2071 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2074 class TaskBarIconPtr(TaskBarIcon
):
2075 def __init__(self
, this
):
2077 if not hasattr(self
,"thisown"): self
.thisown
= 0
2078 self
.__class
__ = TaskBarIcon
2079 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2081 class TaskBarIconEvent(_core
.Event
):
2083 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2084 def __init__(self
, *args
, **kwargs
):
2085 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2086 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2087 self
.this
= newobj
.this
2091 class TaskBarIconEventPtr(TaskBarIconEvent
):
2092 def __init__(self
, this
):
2094 if not hasattr(self
,"thisown"): self
.thisown
= 0
2095 self
.__class
__ = TaskBarIconEvent
2096 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2098 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2099 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2100 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2101 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2102 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2103 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2104 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2105 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2106 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2107 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2108 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2109 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2110 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2111 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2113 #---------------------------------------------------------------------------
2115 class ColourData(_core
.Object
):
2117 This class holds a variety of information related to the colour
2118 chooser dialog, used to transfer settings and results to and from the
2122 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2123 def __init__(self
, *args
, **kwargs
):
2125 __init__(self) -> ColourData
2127 Constructor, sets default values.
2129 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2130 self
.this
= newobj
.this
2133 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2136 if self
.thisown
: destroy(self
)
2139 def GetChooseFull(*args
, **kwargs
):
2141 GetChooseFull(self) -> bool
2143 Under Windows, determines whether the Windows colour dialog will
2144 display the full dialog with custom colour selection controls. Has no
2145 meaning under other platforms. The default value is true.
2147 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2149 def GetColour(*args
, **kwargs
):
2151 GetColour(self) -> Colour
2153 Gets the colour (pre)selected by the dialog.
2155 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2157 def GetCustomColour(*args
, **kwargs
):
2159 GetCustomColour(self, int i) -> Colour
2161 Gets the i'th custom colour associated with the colour dialog. i
2162 should be an integer between 0 and 15. The default custom colours are
2163 all invalid colours.
2165 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2167 def SetChooseFull(*args
, **kwargs
):
2169 SetChooseFull(self, int flag)
2171 Under Windows, tells the Windows colour dialog to display the full
2172 dialog with custom colour selection controls. Under other platforms,
2173 has no effect. The default value is true.
2175 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2177 def SetColour(*args
, **kwargs
):
2179 SetColour(self, Colour colour)
2181 Sets the default colour for the colour dialog. The default colour is
2184 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2186 def SetCustomColour(*args
, **kwargs
):
2188 SetCustomColour(self, int i, Colour colour)
2190 Sets the i'th custom colour for the colour dialog. i should be an
2191 integer between 0 and 15. The default custom colours are all invalid colours.
2193 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2196 class ColourDataPtr(ColourData
):
2197 def __init__(self
, this
):
2199 if not hasattr(self
,"thisown"): self
.thisown
= 0
2200 self
.__class
__ = ColourData
2201 _windows_
.ColourData_swigregister(ColourDataPtr
)
2202 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2203 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2204 DirDialogNameStr
= cvar
.DirDialogNameStr
2205 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2206 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2207 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2209 class ColourDialog(Dialog
):
2210 """This class represents the colour chooser dialog."""
2212 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2213 def __init__(self
, *args
, **kwargs
):
2215 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2217 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2218 which will be copied to the colour dialog's internal ColourData
2221 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2222 self
.this
= newobj
.this
2225 self
._setOORInfo
(self
)
2227 def GetColourData(*args
, **kwargs
):
2229 GetColourData(self) -> ColourData
2231 Returns a reference to the `wx.ColourData` used by the dialog.
2233 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2236 class ColourDialogPtr(ColourDialog
):
2237 def __init__(self
, this
):
2239 if not hasattr(self
,"thisown"): self
.thisown
= 0
2240 self
.__class
__ = ColourDialog
2241 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2243 class DirDialog(Dialog
):
2245 wx.DirDialog allows the user to select a directory by browising the
2249 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2250 def __init__(self
, *args
, **kwargs
):
2252 __init__(self, Window parent, String message=DirSelectorPromptStr,
2253 String defaultPath=EmptyString, long style=0,
2254 Point pos=DefaultPosition, Size size=DefaultSize,
2255 String name=DirDialogNameStr) -> DirDialog
2257 Constructor. Use ShowModal method to show the dialog.
2259 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2260 self
.this
= newobj
.this
2263 self
._setOORInfo
(self
)
2265 def GetPath(*args
, **kwargs
):
2267 GetPath(self) -> String
2269 Returns the default or user-selected path.
2271 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2273 def GetMessage(*args
, **kwargs
):
2275 GetMessage(self) -> String
2277 Returns the message that will be displayed on the dialog.
2279 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2281 def GetStyle(*args
, **kwargs
):
2283 GetStyle(self) -> long
2285 Returns the dialog style.
2287 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2289 def SetMessage(*args
, **kwargs
):
2291 SetMessage(self, String message)
2293 Sets the message that will be displayed on the dialog.
2295 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2297 def SetPath(*args
, **kwargs
):
2299 SetPath(self, String path)
2301 Sets the default path.
2303 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2306 class DirDialogPtr(DirDialog
):
2307 def __init__(self
, this
):
2309 if not hasattr(self
,"thisown"): self
.thisown
= 0
2310 self
.__class
__ = DirDialog
2311 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2313 class FileDialog(Dialog
):
2315 wx.FileDialog allows the user to select one or more files from the
2319 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2320 def __init__(self
, *args
, **kwargs
):
2322 __init__(self, Window parent, String message=FileSelectorPromptStr,
2323 String defaultDir=EmptyString, String defaultFile=EmptyString,
2324 String wildcard=FileSelectorDefaultWildcardStr,
2325 long style=0, Point pos=DefaultPosition) -> FileDialog
2327 Constructor. Use ShowModal method to show the dialog.
2329 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2330 self
.this
= newobj
.this
2333 self
._setOORInfo
(self
)
2335 def SetMessage(*args
, **kwargs
):
2337 SetMessage(self, String message)
2339 Sets the message that will be displayed on the dialog.
2341 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2343 def SetPath(*args
, **kwargs
):
2345 SetPath(self, String path)
2347 Sets the path (the combined directory and filename that will be
2348 returned when the dialog is dismissed).
2350 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2352 def SetDirectory(*args
, **kwargs
):
2354 SetDirectory(self, String dir)
2356 Sets the default directory.
2358 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2360 def SetFilename(*args
, **kwargs
):
2362 SetFilename(self, String name)
2364 Sets the default filename.
2366 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2368 def SetWildcard(*args
, **kwargs
):
2370 SetWildcard(self, String wildCard)
2372 Sets the wildcard, which can contain multiple file types, for
2375 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2378 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2380 def SetStyle(*args
, **kwargs
):
2382 SetStyle(self, long style)
2384 Sets the dialog style.
2386 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2388 def SetFilterIndex(*args
, **kwargs
):
2390 SetFilterIndex(self, int filterIndex)
2392 Sets the default filter index, starting from zero.
2394 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2396 def GetMessage(*args
, **kwargs
):
2398 GetMessage(self) -> String
2400 Returns the message that will be displayed on the dialog.
2402 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2404 def GetPath(*args
, **kwargs
):
2406 GetPath(self) -> String
2408 Returns the full path (directory and filename) of the selected file.
2410 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2412 def GetDirectory(*args
, **kwargs
):
2414 GetDirectory(self) -> String
2416 Returns the default directory.
2418 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2420 def GetFilename(*args
, **kwargs
):
2422 GetFilename(self) -> String
2424 Returns the default filename.
2426 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2428 def GetWildcard(*args
, **kwargs
):
2430 GetWildcard(self) -> String
2432 Returns the file dialog wildcard.
2434 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2436 def GetStyle(*args
, **kwargs
):
2438 GetStyle(self) -> long
2440 Returns the dialog style.
2442 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2444 def GetFilterIndex(*args
, **kwargs
):
2446 GetFilterIndex(self) -> int
2448 Returns the index into the list of filters supplied, optionally, in
2449 the wildcard parameter. Before the dialog is shown, this is the index
2450 which will be used when the dialog is first displayed. After the
2451 dialog is shown, this is the index selected by the user.
2453 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2455 def GetFilenames(*args
, **kwargs
):
2457 GetFilenames(self) -> PyObject
2459 Returns a list of filenames chosen in the dialog. This function
2460 should only be used with the dialogs which have wx.MULTIPLE style, use
2461 GetFilename for the others.
2463 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2465 def GetPaths(*args
, **kwargs
):
2467 GetPaths(self) -> PyObject
2469 Fills the array paths with the full paths of the files chosen. This
2470 function should only be used with the dialogs which have wx.MULTIPLE
2471 style, use GetPath for the others.
2473 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2476 class FileDialogPtr(FileDialog
):
2477 def __init__(self
, this
):
2479 if not hasattr(self
,"thisown"): self
.thisown
= 0
2480 self
.__class
__ = FileDialog
2481 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2483 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2484 class MultiChoiceDialog(Dialog
):
2485 """A simple dialog with a multi selection listbox."""
2487 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2488 def __init__(self
, *args
, **kwargs
):
2490 __init__(Window parent, String message, String caption,
2491 List choices=[], long style=CHOICEDLG_STYLE,
2492 Point pos=DefaultPosition) -> MultiChoiceDialog
2494 Constructor. Use ShowModal method to show the dialog.
2496 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2497 self
.this
= newobj
.this
2500 self
._setOORInfo
(self
)
2502 def SetSelections(*args
, **kwargs
):
2504 SetSelections(List selections)
2506 Specify the items in the list that should be selected, using a list of
2509 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2511 def GetSelections(*args
, **kwargs
):
2513 GetSelections() -> [selections]
2515 Returns a list of integers representing the items that are selected.
2517 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2520 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2521 def __init__(self
, this
):
2523 if not hasattr(self
,"thisown"): self
.thisown
= 0
2524 self
.__class
__ = MultiChoiceDialog
2525 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2527 class SingleChoiceDialog(Dialog
):
2528 """A simple dialog with a single selection listbox."""
2530 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2531 def __init__(self
, *args
, **kwargs
):
2533 __init__(Window parent, String message, String caption,
2534 List choices=[], long style=CHOICEDLG_STYLE,
2535 Point pos=DefaultPosition) -> SingleChoiceDialog
2537 Constructor. Use ShowModal method to show the dialog.
2539 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2540 self
.this
= newobj
.this
2543 self
._setOORInfo
(self
)
2545 def GetSelection(*args
, **kwargs
):
2547 GetSelection(self) -> int
2549 Get the index of teh currently selected item.
2551 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2553 def GetStringSelection(*args
, **kwargs
):
2555 GetStringSelection(self) -> String
2557 Returns the string value of the currently selected item
2559 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2561 def SetSelection(*args
, **kwargs
):
2563 SetSelection(self, int sel)
2565 Set the current selected item to sel
2567 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2570 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2571 def __init__(self
, this
):
2573 if not hasattr(self
,"thisown"): self
.thisown
= 0
2574 self
.__class
__ = SingleChoiceDialog
2575 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2577 class TextEntryDialog(Dialog
):
2578 """A dialog with text control, [ok] and [cancel] buttons"""
2580 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2581 def __init__(self
, *args
, **kwargs
):
2583 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2584 String defaultValue=EmptyString,
2585 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2587 Constructor. Use ShowModal method to show the dialog.
2589 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2590 self
.this
= newobj
.this
2593 self
._setOORInfo
(self
)
2595 def GetValue(*args
, **kwargs
):
2597 GetValue(self) -> String
2599 Returns the text that the user has entered if the user has pressed OK,
2600 or the original value if the user has pressed Cancel.
2602 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2604 def SetValue(*args
, **kwargs
):
2606 SetValue(self, String value)
2608 Sets the default text value.
2610 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2613 class TextEntryDialogPtr(TextEntryDialog
):
2614 def __init__(self
, this
):
2616 if not hasattr(self
,"thisown"): self
.thisown
= 0
2617 self
.__class
__ = TextEntryDialog
2618 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2620 class FontData(_core
.Object
):
2622 This class holds a variety of information related to font dialogs and
2623 is used to transfer settings to and results from a `wx.FontDialog`.
2626 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2627 def __init__(self
, *args
, **kwargs
):
2629 __init__(self) -> FontData
2631 This class holds a variety of information related to font dialogs and
2632 is used to transfer settings to and results from a `wx.FontDialog`.
2634 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2635 self
.this
= newobj
.this
2638 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2641 if self
.thisown
: destroy(self
)
2644 def EnableEffects(*args
, **kwargs
):
2646 EnableEffects(self, bool enable)
2648 Enables or disables 'effects' under MS Windows only. This refers to
2649 the controls for manipulating colour, strikeout and underline
2650 properties. The default value is true.
2652 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2654 def GetAllowSymbols(*args
, **kwargs
):
2656 GetAllowSymbols(self) -> bool
2658 Under MS Windows, returns a flag determining whether symbol fonts can
2659 be selected. Has no effect on other platforms. The default value is
2662 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2664 def GetColour(*args
, **kwargs
):
2666 GetColour(self) -> Colour
2668 Gets the colour associated with the font dialog. The default value is
2671 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2673 def GetChosenFont(*args
, **kwargs
):
2675 GetChosenFont(self) -> Font
2677 Gets the font chosen by the user.
2679 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2681 def GetEnableEffects(*args
, **kwargs
):
2683 GetEnableEffects(self) -> bool
2685 Determines whether 'effects' are enabled under Windows.
2687 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2689 def GetInitialFont(*args
, **kwargs
):
2691 GetInitialFont(self) -> Font
2693 Gets the font that will be initially used by the font dialog. This
2694 should have previously been set by the application.
2696 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2698 def GetShowHelp(*args
, **kwargs
):
2700 GetShowHelp(self) -> bool
2702 Returns true if the Help button will be shown (Windows only). The
2703 default value is false.
2705 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2707 def SetAllowSymbols(*args
, **kwargs
):
2709 SetAllowSymbols(self, bool allowSymbols)
2711 Under MS Windows, determines whether symbol fonts can be selected. Has
2712 no effect on other platforms. The default value is true.
2714 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2716 def SetChosenFont(*args
, **kwargs
):
2718 SetChosenFont(self, Font font)
2720 Sets the font that will be returned to the user (normally for internal
2723 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2725 def SetColour(*args
, **kwargs
):
2727 SetColour(self, Colour colour)
2729 Sets the colour that will be used for the font foreground colour. The
2730 default colour is black.
2732 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2734 def SetInitialFont(*args
, **kwargs
):
2736 SetInitialFont(self, Font font)
2738 Sets the font that will be initially used by the font dialog.
2740 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2742 def SetRange(*args
, **kwargs
):
2744 SetRange(self, int min, int max)
2746 Sets the valid range for the font point size (Windows only). The
2747 default is 0, 0 (unrestricted range).
2749 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2751 def SetShowHelp(*args
, **kwargs
):
2753 SetShowHelp(self, bool showHelp)
2755 Determines whether the Help button will be displayed in the font
2756 dialog (Windows only). The default value is false.
2758 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2761 class FontDataPtr(FontData
):
2762 def __init__(self
, this
):
2764 if not hasattr(self
,"thisown"): self
.thisown
= 0
2765 self
.__class
__ = FontData
2766 _windows_
.FontData_swigregister(FontDataPtr
)
2768 class FontDialog(Dialog
):
2770 wx.FontDialog allows the user to select a system font and its attributes.
2776 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2777 def __init__(self
, *args
, **kwargs
):
2779 __init__(self, Window parent, FontData data) -> FontDialog
2781 Constructor. Pass a parent window and the `wx.FontData` object to be
2782 used to initialize the dialog controls. Call `ShowModal` to display
2783 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2784 results with via the `wx.FontData` returned by `GetFontData`.
2786 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2787 self
.this
= newobj
.this
2790 self
._setOORInfo
(self
)
2792 def GetFontData(*args
, **kwargs
):
2794 GetFontData(self) -> FontData
2796 Returns a reference to the internal `wx.FontData` used by the
2799 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2802 class FontDialogPtr(FontDialog
):
2803 def __init__(self
, this
):
2805 if not hasattr(self
,"thisown"): self
.thisown
= 0
2806 self
.__class
__ = FontDialog
2807 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2809 class MessageDialog(Dialog
):
2811 This class provides a simple dialog that shows a single or multi-line
2812 message, with a choice of OK, Yes, No and/or Cancel buttons.
2815 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2816 def __init__(self
, *args
, **kwargs
):
2818 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2819 long style=wxOK|wxCANCEL|wxCENTRE,
2820 Point pos=DefaultPosition) -> MessageDialog
2822 Constructor, use `ShowModal` to display the dialog.
2824 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2825 self
.this
= newobj
.this
2828 self
._setOORInfo
(self
)
2831 class MessageDialogPtr(MessageDialog
):
2832 def __init__(self
, this
):
2834 if not hasattr(self
,"thisown"): self
.thisown
= 0
2835 self
.__class
__ = MessageDialog
2836 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2838 class ProgressDialog(Frame
):
2840 A dialog that shows a short message and a progress bar. Optionally, it
2841 can display an ABORT button.
2844 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2845 def __init__(self
, *args
, **kwargs
):
2847 __init__(self, String title, String message, int maximum=100, Window parent=None,
2848 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2850 Constructor. Creates the dialog, displays it and disables user input
2851 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2854 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2855 self
.this
= newobj
.this
2858 self
._setOORInfo
(self
)
2860 def Update(*args
, **kwargs
):
2862 Update(self, int value, String newmsg=EmptyString) -> bool
2864 Updates the dialog, setting the progress bar to the new value and, if
2865 given changes the message above it. The value given should be less
2866 than or equal to the maximum value given to the constructor and the
2867 dialog is closed if it is equal to the maximum. Returns true unless
2868 the Cancel button has been pressed.
2870 If false is returned, the application can either immediately destroy
2871 the dialog or ask the user for the confirmation and if the abort is
2872 not confirmed the dialog may be resumed with Resume function.
2874 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2876 def Resume(*args
, **kwargs
):
2880 Can be used to continue with the dialog, after the user had chosen to
2883 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2886 class ProgressDialogPtr(ProgressDialog
):
2887 def __init__(self
, this
):
2889 if not hasattr(self
,"thisown"): self
.thisown
= 0
2890 self
.__class
__ = ProgressDialog
2891 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2893 FR_DOWN
= _windows_
.FR_DOWN
2894 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2895 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2896 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2897 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2898 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2899 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2900 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2901 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2902 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2903 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2904 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2905 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2906 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2907 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2908 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2909 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2911 # For backwards compatibility. Should they be removed?
2912 EVT_COMMAND_FIND
= EVT_FIND
2913 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2914 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2915 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2916 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2918 class FindDialogEvent(_core
.CommandEvent
):
2919 """Events for the FindReplaceDialog"""
2921 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2922 def __init__(self
, *args
, **kwargs
):
2924 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2926 Events for the FindReplaceDialog
2928 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2929 self
.this
= newobj
.this
2932 def GetFlags(*args
, **kwargs
):
2934 GetFlags(self) -> int
2936 Get the currently selected flags: this is the combination of
2937 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2939 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2941 def GetFindString(*args
, **kwargs
):
2943 GetFindString(self) -> String
2945 Return the string to find (never empty).
2947 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2949 def GetReplaceString(*args
, **kwargs
):
2951 GetReplaceString(self) -> String
2953 Return the string to replace the search string with (only for replace
2954 and replace all events).
2956 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2958 def GetDialog(*args
, **kwargs
):
2960 GetDialog(self) -> FindReplaceDialog
2962 Return the pointer to the dialog which generated this event.
2964 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2966 def SetFlags(*args
, **kwargs
):
2967 """SetFlags(self, int flags)"""
2968 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2970 def SetFindString(*args
, **kwargs
):
2971 """SetFindString(self, String str)"""
2972 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2974 def SetReplaceString(*args
, **kwargs
):
2975 """SetReplaceString(self, String str)"""
2976 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2979 class FindDialogEventPtr(FindDialogEvent
):
2980 def __init__(self
, this
):
2982 if not hasattr(self
,"thisown"): self
.thisown
= 0
2983 self
.__class
__ = FindDialogEvent
2984 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2986 class FindReplaceData(_core
.Object
):
2988 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2989 to initialize the dialog with the default values and will keep the
2990 last values from the dialog when it is closed. It is also updated each
2991 time a `wx.FindDialogEvent` is generated so instead of using the
2992 `wx.FindDialogEvent` methods you can also directly query this object.
2994 Note that all SetXXX() methods may only be called before showing the
2995 dialog and calling them has no effect later.
2998 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2999 def __init__(self
, *args
, **kwargs
):
3001 __init__(self, int flags=0) -> FindReplaceData
3003 Constuctor initializes the flags to default value (0).
3005 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3006 self
.this
= newobj
.this
3009 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3012 if self
.thisown
: destroy(self
)
3015 def GetFindString(*args
, **kwargs
):
3017 GetFindString(self) -> String
3019 Get the string to find.
3021 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3023 def GetReplaceString(*args
, **kwargs
):
3025 GetReplaceString(self) -> String
3027 Get the replacement string.
3029 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3031 def GetFlags(*args
, **kwargs
):
3033 GetFlags(self) -> int
3035 Get the combination of flag values.
3037 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3039 def SetFlags(*args
, **kwargs
):
3041 SetFlags(self, int flags)
3043 Set the flags to use to initialize the controls of the dialog.
3045 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3047 def SetFindString(*args
, **kwargs
):
3049 SetFindString(self, String str)
3051 Set the string to find (used as initial value by the dialog).
3053 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3055 def SetReplaceString(*args
, **kwargs
):
3057 SetReplaceString(self, String str)
3059 Set the replacement string (used as initial value by the dialog).
3061 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3064 class FindReplaceDataPtr(FindReplaceData
):
3065 def __init__(self
, this
):
3067 if not hasattr(self
,"thisown"): self
.thisown
= 0
3068 self
.__class
__ = FindReplaceData
3069 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3071 class FindReplaceDialog(Dialog
):
3073 wx.FindReplaceDialog is a standard modeless dialog which is used to
3074 allow the user to search for some text (and possibly replace it with
3075 something else). The actual searching is supposed to be done in the
3076 owner window which is the parent of this dialog. Note that it means
3077 that unlike for the other standard dialogs this one must have a parent
3078 window. Also note that there is no way to use this dialog in a modal
3079 way; it is always, by design and implementation, modeless.
3082 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3083 def __init__(self
, *args
, **kwargs
):
3085 __init__(self, Window parent, FindReplaceData data, String title,
3086 int style=0) -> FindReplaceDialog
3088 Create a FindReplaceDialog. The parent and data parameters must be
3089 non-None. Use Show to display the dialog.
3091 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3092 self
.this
= newobj
.this
3095 self
._setOORInfo
(self
)
3097 def Create(*args
, **kwargs
):
3099 Create(self, Window parent, FindReplaceData data, String title,
3100 int style=0) -> bool
3102 Create the dialog, for 2-phase create.
3104 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3106 def GetData(*args
, **kwargs
):
3108 GetData(self) -> FindReplaceData
3110 Get the FindReplaceData object used by this dialog.
3112 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3114 def SetData(*args
, **kwargs
):
3116 SetData(self, FindReplaceData data)
3118 Set the FindReplaceData object used by this dialog.
3120 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3123 class FindReplaceDialogPtr(FindReplaceDialog
):
3124 def __init__(self
, this
):
3126 if not hasattr(self
,"thisown"): self
.thisown
= 0
3127 self
.__class
__ = FindReplaceDialog
3128 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3130 def PreFindReplaceDialog(*args
, **kwargs
):
3132 PreFindReplaceDialog() -> FindReplaceDialog
3134 Precreate a FindReplaceDialog for 2-phase creation
3136 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3140 #---------------------------------------------------------------------------
3142 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3143 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3144 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3145 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3146 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3147 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3148 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3149 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3150 class MDIParentFrame(Frame
):
3152 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3153 def __init__(self
, *args
, **kwargs
):
3155 __init__(self, Window parent, int id=-1, String title=EmptyString,
3156 Point pos=DefaultPosition, Size size=DefaultSize,
3157 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3158 String name=FrameNameStr) -> MDIParentFrame
3160 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3161 self
.this
= newobj
.this
3164 self
._setOORInfo
(self
)
3166 def Create(*args
, **kwargs
):
3168 Create(self, Window parent, int id=-1, String title=EmptyString,
3169 Point pos=DefaultPosition, Size size=DefaultSize,
3170 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3171 String name=FrameNameStr) -> bool
3173 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3175 def ActivateNext(*args
, **kwargs
):
3176 """ActivateNext(self)"""
3177 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3179 def ActivatePrevious(*args
, **kwargs
):
3180 """ActivatePrevious(self)"""
3181 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3183 def ArrangeIcons(*args
, **kwargs
):
3184 """ArrangeIcons(self)"""
3185 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3187 def Cascade(*args
, **kwargs
):
3189 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3191 def GetActiveChild(*args
, **kwargs
):
3192 """GetActiveChild(self) -> MDIChildFrame"""
3193 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3195 def GetClientWindow(*args
, **kwargs
):
3196 """GetClientWindow(self) -> MDIClientWindow"""
3197 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3199 def GetToolBar(*args
, **kwargs
):
3200 """GetToolBar(self) -> Window"""
3201 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3203 def Tile(*args
, **kwargs
):
3205 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3208 class MDIParentFramePtr(MDIParentFrame
):
3209 def __init__(self
, this
):
3211 if not hasattr(self
,"thisown"): self
.thisown
= 0
3212 self
.__class
__ = MDIParentFrame
3213 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3215 def PreMDIParentFrame(*args
, **kwargs
):
3216 """PreMDIParentFrame() -> MDIParentFrame"""
3217 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3221 class MDIChildFrame(Frame
):
3223 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3224 def __init__(self
, *args
, **kwargs
):
3226 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3227 Point pos=DefaultPosition, Size size=DefaultSize,
3228 long style=DEFAULT_FRAME_STYLE,
3229 String name=FrameNameStr) -> MDIChildFrame
3231 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3232 self
.this
= newobj
.this
3235 self
._setOORInfo
(self
)
3237 def Create(*args
, **kwargs
):
3239 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3240 Point pos=DefaultPosition, Size size=DefaultSize,
3241 long style=DEFAULT_FRAME_STYLE,
3242 String name=FrameNameStr) -> bool
3244 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3246 def Activate(*args
, **kwargs
):
3247 """Activate(self)"""
3248 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3250 def Maximize(*args
, **kwargs
):
3251 """Maximize(self, bool maximize)"""
3252 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3254 def Restore(*args
, **kwargs
):
3256 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3259 class MDIChildFramePtr(MDIChildFrame
):
3260 def __init__(self
, this
):
3262 if not hasattr(self
,"thisown"): self
.thisown
= 0
3263 self
.__class
__ = MDIChildFrame
3264 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3266 def PreMDIChildFrame(*args
, **kwargs
):
3267 """PreMDIChildFrame() -> MDIChildFrame"""
3268 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3272 class MDIClientWindow(_core
.Window
):
3274 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3275 def __init__(self
, *args
, **kwargs
):
3276 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3277 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3278 self
.this
= newobj
.this
3281 self
._setOORInfo
(self
)
3283 def Create(*args
, **kwargs
):
3284 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3285 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3288 class MDIClientWindowPtr(MDIClientWindow
):
3289 def __init__(self
, this
):
3291 if not hasattr(self
,"thisown"): self
.thisown
= 0
3292 self
.__class
__ = MDIClientWindow
3293 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3295 def PreMDIClientWindow(*args
, **kwargs
):
3296 """PreMDIClientWindow() -> MDIClientWindow"""
3297 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3301 #---------------------------------------------------------------------------
3303 class PyWindow(_core
.Window
):
3305 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3306 def __init__(self
, *args
, **kwargs
):
3308 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3309 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3311 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3312 self
.this
= newobj
.this
3315 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3317 def _setCallbackInfo(*args
, **kwargs
):
3318 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3319 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3321 def SetBestSize(*args
, **kwargs
):
3322 """SetBestSize(self, Size size)"""
3323 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3325 def base_DoMoveWindow(*args
, **kwargs
):
3326 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3327 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3329 def base_DoSetSize(*args
, **kwargs
):
3330 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3331 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3333 def base_DoSetClientSize(*args
, **kwargs
):
3334 """base_DoSetClientSize(self, int width, int height)"""
3335 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3337 def base_DoSetVirtualSize(*args
, **kwargs
):
3338 """base_DoSetVirtualSize(self, int x, int y)"""
3339 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3341 def base_DoGetSize(*args
, **kwargs
):
3342 """base_DoGetSize() -> (width, height)"""
3343 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3345 def base_DoGetClientSize(*args
, **kwargs
):
3346 """base_DoGetClientSize() -> (width, height)"""
3347 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3349 def base_DoGetPosition(*args
, **kwargs
):
3350 """base_DoGetPosition() -> (x,y)"""
3351 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3353 def base_DoGetVirtualSize(*args
, **kwargs
):
3354 """base_DoGetVirtualSize(self) -> Size"""
3355 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3357 def base_DoGetBestSize(*args
, **kwargs
):
3358 """base_DoGetBestSize(self) -> Size"""
3359 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3361 def base_InitDialog(*args
, **kwargs
):
3362 """base_InitDialog(self)"""
3363 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3365 def base_TransferDataToWindow(*args
, **kwargs
):
3366 """base_TransferDataToWindow(self) -> bool"""
3367 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3369 def base_TransferDataFromWindow(*args
, **kwargs
):
3370 """base_TransferDataFromWindow(self) -> bool"""
3371 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3373 def base_Validate(*args
, **kwargs
):
3374 """base_Validate(self) -> bool"""
3375 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3377 def base_AcceptsFocus(*args
, **kwargs
):
3378 """base_AcceptsFocus(self) -> bool"""
3379 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3381 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3382 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3383 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3385 def base_GetMaxSize(*args
, **kwargs
):
3386 """base_GetMaxSize(self) -> Size"""
3387 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3389 def base_AddChild(*args
, **kwargs
):
3390 """base_AddChild(self, Window child)"""
3391 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3393 def base_RemoveChild(*args
, **kwargs
):
3394 """base_RemoveChild(self, Window child)"""
3395 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3397 def base_ShouldInheritColours(*args
, **kwargs
):
3398 """base_ShouldInheritColours(self) -> bool"""
3399 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3401 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3402 """base_ApplyParentThemeBackground(self, Colour c)"""
3403 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3405 def base_GetDefaultAttributes(*args
, **kwargs
):
3406 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3407 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3410 class PyWindowPtr(PyWindow
):
3411 def __init__(self
, this
):
3413 if not hasattr(self
,"thisown"): self
.thisown
= 0
3414 self
.__class
__ = PyWindow
3415 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3417 def PrePyWindow(*args
, **kwargs
):
3418 """PrePyWindow() -> PyWindow"""
3419 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3423 class PyPanel(Panel
):
3425 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3426 def __init__(self
, *args
, **kwargs
):
3428 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3429 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3431 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3432 self
.this
= newobj
.this
3435 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3437 def _setCallbackInfo(*args
, **kwargs
):
3438 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3439 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3441 def SetBestSize(*args
, **kwargs
):
3442 """SetBestSize(self, Size size)"""
3443 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3445 def base_DoMoveWindow(*args
, **kwargs
):
3446 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3447 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3449 def base_DoSetSize(*args
, **kwargs
):
3450 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3451 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3453 def base_DoSetClientSize(*args
, **kwargs
):
3454 """base_DoSetClientSize(self, int width, int height)"""
3455 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3457 def base_DoSetVirtualSize(*args
, **kwargs
):
3458 """base_DoSetVirtualSize(self, int x, int y)"""
3459 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3461 def base_DoGetSize(*args
, **kwargs
):
3462 """base_DoGetSize() -> (width, height)"""
3463 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3465 def base_DoGetClientSize(*args
, **kwargs
):
3466 """base_DoGetClientSize() -> (width, height)"""
3467 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3469 def base_DoGetPosition(*args
, **kwargs
):
3470 """base_DoGetPosition() -> (x,y)"""
3471 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3473 def base_DoGetVirtualSize(*args
, **kwargs
):
3474 """base_DoGetVirtualSize(self) -> Size"""
3475 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3477 def base_DoGetBestSize(*args
, **kwargs
):
3478 """base_DoGetBestSize(self) -> Size"""
3479 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3481 def base_InitDialog(*args
, **kwargs
):
3482 """base_InitDialog(self)"""
3483 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3485 def base_TransferDataToWindow(*args
, **kwargs
):
3486 """base_TransferDataToWindow(self) -> bool"""
3487 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3489 def base_TransferDataFromWindow(*args
, **kwargs
):
3490 """base_TransferDataFromWindow(self) -> bool"""
3491 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3493 def base_Validate(*args
, **kwargs
):
3494 """base_Validate(self) -> bool"""
3495 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3497 def base_AcceptsFocus(*args
, **kwargs
):
3498 """base_AcceptsFocus(self) -> bool"""
3499 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3501 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3502 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3503 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3505 def base_GetMaxSize(*args
, **kwargs
):
3506 """base_GetMaxSize(self) -> Size"""
3507 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3509 def base_AddChild(*args
, **kwargs
):
3510 """base_AddChild(self, Window child)"""
3511 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3513 def base_RemoveChild(*args
, **kwargs
):
3514 """base_RemoveChild(self, Window child)"""
3515 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3517 def base_ShouldInheritColours(*args
, **kwargs
):
3518 """base_ShouldInheritColours(self) -> bool"""
3519 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3521 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3522 """base_ApplyParentThemeBackground(self, Colour c)"""
3523 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3525 def base_GetDefaultAttributes(*args
, **kwargs
):
3526 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3527 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3530 class PyPanelPtr(PyPanel
):
3531 def __init__(self
, this
):
3533 if not hasattr(self
,"thisown"): self
.thisown
= 0
3534 self
.__class
__ = PyPanel
3535 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3537 def PrePyPanel(*args
, **kwargs
):
3538 """PrePyPanel() -> PyPanel"""
3539 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3543 class PyScrolledWindow(ScrolledWindow
):
3545 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3546 def __init__(self
, *args
, **kwargs
):
3548 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3549 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3551 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3552 self
.this
= newobj
.this
3555 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3557 def _setCallbackInfo(*args
, **kwargs
):
3558 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3559 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3561 def SetBestSize(*args
, **kwargs
):
3562 """SetBestSize(self, Size size)"""
3563 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3565 def base_DoMoveWindow(*args
, **kwargs
):
3566 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3567 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3569 def base_DoSetSize(*args
, **kwargs
):
3570 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3571 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3573 def base_DoSetClientSize(*args
, **kwargs
):
3574 """base_DoSetClientSize(self, int width, int height)"""
3575 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3577 def base_DoSetVirtualSize(*args
, **kwargs
):
3578 """base_DoSetVirtualSize(self, int x, int y)"""
3579 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3581 def base_DoGetSize(*args
, **kwargs
):
3582 """base_DoGetSize() -> (width, height)"""
3583 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3585 def base_DoGetClientSize(*args
, **kwargs
):
3586 """base_DoGetClientSize() -> (width, height)"""
3587 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3589 def base_DoGetPosition(*args
, **kwargs
):
3590 """base_DoGetPosition() -> (x,y)"""
3591 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3593 def base_DoGetVirtualSize(*args
, **kwargs
):
3594 """base_DoGetVirtualSize(self) -> Size"""
3595 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3597 def base_DoGetBestSize(*args
, **kwargs
):
3598 """base_DoGetBestSize(self) -> Size"""
3599 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3601 def base_InitDialog(*args
, **kwargs
):
3602 """base_InitDialog(self)"""
3603 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3605 def base_TransferDataToWindow(*args
, **kwargs
):
3606 """base_TransferDataToWindow(self) -> bool"""
3607 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3609 def base_TransferDataFromWindow(*args
, **kwargs
):
3610 """base_TransferDataFromWindow(self) -> bool"""
3611 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3613 def base_Validate(*args
, **kwargs
):
3614 """base_Validate(self) -> bool"""
3615 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3617 def base_AcceptsFocus(*args
, **kwargs
):
3618 """base_AcceptsFocus(self) -> bool"""
3619 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3621 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3622 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3623 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3625 def base_GetMaxSize(*args
, **kwargs
):
3626 """base_GetMaxSize(self) -> Size"""
3627 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3629 def base_AddChild(*args
, **kwargs
):
3630 """base_AddChild(self, Window child)"""
3631 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3633 def base_RemoveChild(*args
, **kwargs
):
3634 """base_RemoveChild(self, Window child)"""
3635 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3637 def base_ShouldInheritColours(*args
, **kwargs
):
3638 """base_ShouldInheritColours(self) -> bool"""
3639 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3641 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3642 """base_ApplyParentThemeBackground(self, Colour c)"""
3643 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3645 def base_GetDefaultAttributes(*args
, **kwargs
):
3646 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3647 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3650 class PyScrolledWindowPtr(PyScrolledWindow
):
3651 def __init__(self
, this
):
3653 if not hasattr(self
,"thisown"): self
.thisown
= 0
3654 self
.__class
__ = PyScrolledWindow
3655 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3657 def PrePyScrolledWindow(*args
, **kwargs
):
3658 """PrePyScrolledWindow() -> PyScrolledWindow"""
3659 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3663 #---------------------------------------------------------------------------
3665 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3666 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3667 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3668 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3669 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3670 class PrintData(_core
.Object
):
3672 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3673 def __init__(self
, *args
):
3675 __init__(self) -> PrintData
3676 __init__(self, PrintData data) -> PrintData
3678 newobj
= _windows_
.new_PrintData(*args
)
3679 self
.this
= newobj
.this
3682 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3685 if self
.thisown
: destroy(self
)
3688 def GetNoCopies(*args
, **kwargs
):
3689 """GetNoCopies(self) -> int"""
3690 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3692 def GetCollate(*args
, **kwargs
):
3693 """GetCollate(self) -> bool"""
3694 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3696 def GetOrientation(*args
, **kwargs
):
3697 """GetOrientation(self) -> int"""
3698 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3700 def Ok(*args
, **kwargs
):
3701 """Ok(self) -> bool"""
3702 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3704 def GetPrinterName(*args
, **kwargs
):
3705 """GetPrinterName(self) -> String"""
3706 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3708 def GetColour(*args
, **kwargs
):
3709 """GetColour(self) -> bool"""
3710 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3712 def GetDuplex(*args
, **kwargs
):
3713 """GetDuplex(self) -> int"""
3714 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3716 def GetPaperId(*args
, **kwargs
):
3717 """GetPaperId(self) -> int"""
3718 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3720 def GetPaperSize(*args
, **kwargs
):
3721 """GetPaperSize(self) -> Size"""
3722 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3724 def GetQuality(*args
, **kwargs
):
3725 """GetQuality(self) -> int"""
3726 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3728 def SetNoCopies(*args
, **kwargs
):
3729 """SetNoCopies(self, int v)"""
3730 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3732 def SetCollate(*args
, **kwargs
):
3733 """SetCollate(self, bool flag)"""
3734 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3736 def SetOrientation(*args
, **kwargs
):
3737 """SetOrientation(self, int orient)"""
3738 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3740 def SetPrinterName(*args
, **kwargs
):
3741 """SetPrinterName(self, String name)"""
3742 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3744 def SetColour(*args
, **kwargs
):
3745 """SetColour(self, bool colour)"""
3746 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3748 def SetDuplex(*args
, **kwargs
):
3749 """SetDuplex(self, int duplex)"""
3750 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3752 def SetPaperId(*args
, **kwargs
):
3753 """SetPaperId(self, int sizeId)"""
3754 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3756 def SetPaperSize(*args
, **kwargs
):
3757 """SetPaperSize(self, Size sz)"""
3758 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3760 def SetQuality(*args
, **kwargs
):
3761 """SetQuality(self, int quality)"""
3762 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3764 def GetPrinterCommand(*args
, **kwargs
):
3765 """GetPrinterCommand(self) -> String"""
3766 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3768 def GetPrinterOptions(*args
, **kwargs
):
3769 """GetPrinterOptions(self) -> String"""
3770 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3772 def GetPreviewCommand(*args
, **kwargs
):
3773 """GetPreviewCommand(self) -> String"""
3774 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3776 def GetFilename(*args
, **kwargs
):
3777 """GetFilename(self) -> String"""
3778 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3780 def GetFontMetricPath(*args
, **kwargs
):
3781 """GetFontMetricPath(self) -> String"""
3782 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3784 def GetPrinterScaleX(*args
, **kwargs
):
3785 """GetPrinterScaleX(self) -> double"""
3786 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3788 def GetPrinterScaleY(*args
, **kwargs
):
3789 """GetPrinterScaleY(self) -> double"""
3790 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3792 def GetPrinterTranslateX(*args
, **kwargs
):
3793 """GetPrinterTranslateX(self) -> long"""
3794 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3796 def GetPrinterTranslateY(*args
, **kwargs
):
3797 """GetPrinterTranslateY(self) -> long"""
3798 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3800 def GetPrintMode(*args
, **kwargs
):
3801 """GetPrintMode(self) -> int"""
3802 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3804 def SetPrinterCommand(*args
, **kwargs
):
3805 """SetPrinterCommand(self, String command)"""
3806 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3808 def SetPrinterOptions(*args
, **kwargs
):
3809 """SetPrinterOptions(self, String options)"""
3810 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3812 def SetPreviewCommand(*args
, **kwargs
):
3813 """SetPreviewCommand(self, String command)"""
3814 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3816 def SetFilename(*args
, **kwargs
):
3817 """SetFilename(self, String filename)"""
3818 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3820 def SetFontMetricPath(*args
, **kwargs
):
3821 """SetFontMetricPath(self, String path)"""
3822 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3824 def SetPrinterScaleX(*args
, **kwargs
):
3825 """SetPrinterScaleX(self, double x)"""
3826 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3828 def SetPrinterScaleY(*args
, **kwargs
):
3829 """SetPrinterScaleY(self, double y)"""
3830 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3832 def SetPrinterScaling(*args
, **kwargs
):
3833 """SetPrinterScaling(self, double x, double y)"""
3834 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3836 def SetPrinterTranslateX(*args
, **kwargs
):
3837 """SetPrinterTranslateX(self, long x)"""
3838 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3840 def SetPrinterTranslateY(*args
, **kwargs
):
3841 """SetPrinterTranslateY(self, long y)"""
3842 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3844 def SetPrinterTranslation(*args
, **kwargs
):
3845 """SetPrinterTranslation(self, long x, long y)"""
3846 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3848 def SetPrintMode(*args
, **kwargs
):
3849 """SetPrintMode(self, int printMode)"""
3850 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3852 def GetOutputStream(*args
, **kwargs
):
3853 """GetOutputStream(self) -> OutputStream"""
3854 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3856 def SetOutputStream(*args
, **kwargs
):
3857 """SetOutputStream(self, OutputStream outputstream)"""
3858 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3860 def __nonzero__(self
): return self
.Ok()
3862 class PrintDataPtr(PrintData
):
3863 def __init__(self
, this
):
3865 if not hasattr(self
,"thisown"): self
.thisown
= 0
3866 self
.__class
__ = PrintData
3867 _windows_
.PrintData_swigregister(PrintDataPtr
)
3868 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3869 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3871 class PageSetupDialogData(_core
.Object
):
3873 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3874 def __init__(self
, *args
):
3876 __init__(self) -> PageSetupDialogData
3877 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3879 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3880 self
.this
= newobj
.this
3883 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3886 if self
.thisown
: destroy(self
)
3889 def EnableHelp(*args
, **kwargs
):
3890 """EnableHelp(self, bool flag)"""
3891 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3893 def EnableMargins(*args
, **kwargs
):
3894 """EnableMargins(self, bool flag)"""
3895 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3897 def EnableOrientation(*args
, **kwargs
):
3898 """EnableOrientation(self, bool flag)"""
3899 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3901 def EnablePaper(*args
, **kwargs
):
3902 """EnablePaper(self, bool flag)"""
3903 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3905 def EnablePrinter(*args
, **kwargs
):
3906 """EnablePrinter(self, bool flag)"""
3907 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3909 def GetDefaultMinMargins(*args
, **kwargs
):
3910 """GetDefaultMinMargins(self) -> bool"""
3911 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3913 def GetEnableMargins(*args
, **kwargs
):
3914 """GetEnableMargins(self) -> bool"""
3915 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3917 def GetEnableOrientation(*args
, **kwargs
):
3918 """GetEnableOrientation(self) -> bool"""
3919 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3921 def GetEnablePaper(*args
, **kwargs
):
3922 """GetEnablePaper(self) -> bool"""
3923 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3925 def GetEnablePrinter(*args
, **kwargs
):
3926 """GetEnablePrinter(self) -> bool"""
3927 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3929 def GetEnableHelp(*args
, **kwargs
):
3930 """GetEnableHelp(self) -> bool"""
3931 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3933 def GetDefaultInfo(*args
, **kwargs
):
3934 """GetDefaultInfo(self) -> bool"""
3935 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3937 def GetMarginTopLeft(*args
, **kwargs
):
3938 """GetMarginTopLeft(self) -> Point"""
3939 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3941 def GetMarginBottomRight(*args
, **kwargs
):
3942 """GetMarginBottomRight(self) -> Point"""
3943 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3945 def GetMinMarginTopLeft(*args
, **kwargs
):
3946 """GetMinMarginTopLeft(self) -> Point"""
3947 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3949 def GetMinMarginBottomRight(*args
, **kwargs
):
3950 """GetMinMarginBottomRight(self) -> Point"""
3951 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3953 def GetPaperId(*args
, **kwargs
):
3954 """GetPaperId(self) -> int"""
3955 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3957 def GetPaperSize(*args
, **kwargs
):
3958 """GetPaperSize(self) -> Size"""
3959 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3961 def GetPrintData(*args
, **kwargs
):
3962 """GetPrintData(self) -> PrintData"""
3963 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3965 def Ok(*args
, **kwargs
):
3966 """Ok(self) -> bool"""
3967 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3969 def SetDefaultInfo(*args
, **kwargs
):
3970 """SetDefaultInfo(self, bool flag)"""
3971 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3973 def SetDefaultMinMargins(*args
, **kwargs
):
3974 """SetDefaultMinMargins(self, bool flag)"""
3975 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3977 def SetMarginTopLeft(*args
, **kwargs
):
3978 """SetMarginTopLeft(self, Point pt)"""
3979 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3981 def SetMarginBottomRight(*args
, **kwargs
):
3982 """SetMarginBottomRight(self, Point pt)"""
3983 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3985 def SetMinMarginTopLeft(*args
, **kwargs
):
3986 """SetMinMarginTopLeft(self, Point pt)"""
3987 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3989 def SetMinMarginBottomRight(*args
, **kwargs
):
3990 """SetMinMarginBottomRight(self, Point pt)"""
3991 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3993 def SetPaperId(*args
, **kwargs
):
3994 """SetPaperId(self, int id)"""
3995 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3997 def SetPaperSize(*args
, **kwargs
):
3998 """SetPaperSize(self, Size size)"""
3999 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4001 def SetPrintData(*args
, **kwargs
):
4002 """SetPrintData(self, PrintData printData)"""
4003 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4005 def __nonzero__(self
): return self
.Ok()
4007 class PageSetupDialogDataPtr(PageSetupDialogData
):
4008 def __init__(self
, this
):
4010 if not hasattr(self
,"thisown"): self
.thisown
= 0
4011 self
.__class
__ = PageSetupDialogData
4012 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4014 class PageSetupDialog(Dialog
):
4016 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4017 def __init__(self
, *args
, **kwargs
):
4018 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4019 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4020 self
.this
= newobj
.this
4023 self
._setOORInfo
(self
)
4025 def GetPageSetupData(*args
, **kwargs
):
4026 """GetPageSetupData(self) -> PageSetupDialogData"""
4027 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4029 def ShowModal(*args
, **kwargs
):
4030 """ShowModal(self) -> int"""
4031 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4034 class PageSetupDialogPtr(PageSetupDialog
):
4035 def __init__(self
, this
):
4037 if not hasattr(self
,"thisown"): self
.thisown
= 0
4038 self
.__class
__ = PageSetupDialog
4039 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4041 class PrintDialogData(_core
.Object
):
4043 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4044 def __init__(self
, *args
):
4046 __init__(self) -> PrintDialogData
4047 __init__(self, PrintData printData) -> PrintDialogData
4049 newobj
= _windows_
.new_PrintDialogData(*args
)
4050 self
.this
= newobj
.this
4053 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4056 if self
.thisown
: destroy(self
)
4059 def GetFromPage(*args
, **kwargs
):
4060 """GetFromPage(self) -> int"""
4061 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4063 def GetToPage(*args
, **kwargs
):
4064 """GetToPage(self) -> int"""
4065 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4067 def GetMinPage(*args
, **kwargs
):
4068 """GetMinPage(self) -> int"""
4069 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4071 def GetMaxPage(*args
, **kwargs
):
4072 """GetMaxPage(self) -> int"""
4073 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4075 def GetNoCopies(*args
, **kwargs
):
4076 """GetNoCopies(self) -> int"""
4077 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4079 def GetAllPages(*args
, **kwargs
):
4080 """GetAllPages(self) -> bool"""
4081 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4083 def GetSelection(*args
, **kwargs
):
4084 """GetSelection(self) -> bool"""
4085 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4087 def GetCollate(*args
, **kwargs
):
4088 """GetCollate(self) -> bool"""
4089 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4091 def GetPrintToFile(*args
, **kwargs
):
4092 """GetPrintToFile(self) -> bool"""
4093 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4095 def GetSetupDialog(*args
, **kwargs
):
4096 """GetSetupDialog(self) -> bool"""
4097 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4099 def SetFromPage(*args
, **kwargs
):
4100 """SetFromPage(self, int v)"""
4101 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4103 def SetToPage(*args
, **kwargs
):
4104 """SetToPage(self, int v)"""
4105 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4107 def SetMinPage(*args
, **kwargs
):
4108 """SetMinPage(self, int v)"""
4109 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4111 def SetMaxPage(*args
, **kwargs
):
4112 """SetMaxPage(self, int v)"""
4113 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4115 def SetNoCopies(*args
, **kwargs
):
4116 """SetNoCopies(self, int v)"""
4117 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4119 def SetAllPages(*args
, **kwargs
):
4120 """SetAllPages(self, bool flag)"""
4121 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4123 def SetSelection(*args
, **kwargs
):
4124 """SetSelection(self, bool flag)"""
4125 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4127 def SetCollate(*args
, **kwargs
):
4128 """SetCollate(self, bool flag)"""
4129 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4131 def SetPrintToFile(*args
, **kwargs
):
4132 """SetPrintToFile(self, bool flag)"""
4133 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4135 def SetSetupDialog(*args
, **kwargs
):
4136 """SetSetupDialog(self, bool flag)"""
4137 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4139 def EnablePrintToFile(*args
, **kwargs
):
4140 """EnablePrintToFile(self, bool flag)"""
4141 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4143 def EnableSelection(*args
, **kwargs
):
4144 """EnableSelection(self, bool flag)"""
4145 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4147 def EnablePageNumbers(*args
, **kwargs
):
4148 """EnablePageNumbers(self, bool flag)"""
4149 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4151 def EnableHelp(*args
, **kwargs
):
4152 """EnableHelp(self, bool flag)"""
4153 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4155 def GetEnablePrintToFile(*args
, **kwargs
):
4156 """GetEnablePrintToFile(self) -> bool"""
4157 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4159 def GetEnableSelection(*args
, **kwargs
):
4160 """GetEnableSelection(self) -> bool"""
4161 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4163 def GetEnablePageNumbers(*args
, **kwargs
):
4164 """GetEnablePageNumbers(self) -> bool"""
4165 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4167 def GetEnableHelp(*args
, **kwargs
):
4168 """GetEnableHelp(self) -> bool"""
4169 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4171 def Ok(*args
, **kwargs
):
4172 """Ok(self) -> bool"""
4173 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4175 def GetPrintData(*args
, **kwargs
):
4176 """GetPrintData(self) -> PrintData"""
4177 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4179 def SetPrintData(*args
, **kwargs
):
4180 """SetPrintData(self, PrintData printData)"""
4181 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4183 def __nonzero__(self
): return self
.Ok()
4185 class PrintDialogDataPtr(PrintDialogData
):
4186 def __init__(self
, this
):
4188 if not hasattr(self
,"thisown"): self
.thisown
= 0
4189 self
.__class
__ = PrintDialogData
4190 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4192 class PrintDialog(Dialog
):
4194 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4195 def __init__(self
, *args
, **kwargs
):
4196 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4197 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4198 self
.this
= newobj
.this
4201 self
._setOORInfo
(self
)
4203 def GetPrintDialogData(*args
, **kwargs
):
4204 """GetPrintDialogData(self) -> PrintDialogData"""
4205 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4207 def GetPrintDC(*args
, **kwargs
):
4208 """GetPrintDC(self) -> DC"""
4209 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4211 def ShowModal(*args
, **kwargs
):
4212 """ShowModal(self) -> int"""
4213 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4216 class PrintDialogPtr(PrintDialog
):
4217 def __init__(self
, this
):
4219 if not hasattr(self
,"thisown"): self
.thisown
= 0
4220 self
.__class
__ = PrintDialog
4221 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4223 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4224 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4225 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4226 class Printer(_core
.Object
):
4228 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4229 def __init__(self
, *args
, **kwargs
):
4230 """__init__(self, PrintDialogData data=None) -> Printer"""
4231 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4232 self
.this
= newobj
.this
4235 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4238 if self
.thisown
: destroy(self
)
4241 def CreateAbortWindow(*args
, **kwargs
):
4242 """CreateAbortWindow(self, Window parent, Printout printout)"""
4243 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4245 def GetPrintDialogData(*args
, **kwargs
):
4246 """GetPrintDialogData(self) -> PrintDialogData"""
4247 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4249 def Print(*args
, **kwargs
):
4250 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4251 return _windows_
.Printer_Print(*args
, **kwargs
)
4253 def PrintDialog(*args
, **kwargs
):
4254 """PrintDialog(self, Window parent) -> DC"""
4255 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4257 def ReportError(*args
, **kwargs
):
4258 """ReportError(self, Window parent, Printout printout, String message)"""
4259 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4261 def Setup(*args
, **kwargs
):
4262 """Setup(self, Window parent) -> bool"""
4263 return _windows_
.Printer_Setup(*args
, **kwargs
)
4265 def GetAbort(*args
, **kwargs
):
4266 """GetAbort(self) -> bool"""
4267 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4269 def GetLastError(*args
, **kwargs
):
4270 """GetLastError() -> int"""
4271 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4273 GetLastError
= staticmethod(GetLastError
)
4275 class PrinterPtr(Printer
):
4276 def __init__(self
, this
):
4278 if not hasattr(self
,"thisown"): self
.thisown
= 0
4279 self
.__class
__ = Printer
4280 _windows_
.Printer_swigregister(PrinterPtr
)
4282 def Printer_GetLastError(*args
, **kwargs
):
4283 """Printer_GetLastError() -> int"""
4284 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4286 class Printout(_core
.Object
):
4288 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4289 def __init__(self
, *args
, **kwargs
):
4290 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4291 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4292 self
.this
= newobj
.this
4295 self
._setCallbackInfo
(self
, Printout
)
4297 def _setCallbackInfo(*args
, **kwargs
):
4298 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4299 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4301 def GetTitle(*args
, **kwargs
):
4302 """GetTitle(self) -> String"""
4303 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4305 def GetDC(*args
, **kwargs
):
4306 """GetDC(self) -> DC"""
4307 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4309 def SetDC(*args
, **kwargs
):
4310 """SetDC(self, DC dc)"""
4311 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4313 def SetPageSizePixels(*args
, **kwargs
):
4314 """SetPageSizePixels(self, int w, int h)"""
4315 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4317 def GetPageSizePixels(*args
, **kwargs
):
4318 """GetPageSizePixels() -> (w, h)"""
4319 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4321 def SetPageSizeMM(*args
, **kwargs
):
4322 """SetPageSizeMM(self, int w, int h)"""
4323 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4325 def GetPageSizeMM(*args
, **kwargs
):
4326 """GetPageSizeMM() -> (w, h)"""
4327 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4329 def SetPPIScreen(*args
, **kwargs
):
4330 """SetPPIScreen(self, int x, int y)"""
4331 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4333 def GetPPIScreen(*args
, **kwargs
):
4334 """GetPPIScreen() -> (x,y)"""
4335 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4337 def SetPPIPrinter(*args
, **kwargs
):
4338 """SetPPIPrinter(self, int x, int y)"""
4339 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4341 def GetPPIPrinter(*args
, **kwargs
):
4342 """GetPPIPrinter() -> (x,y)"""
4343 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4345 def IsPreview(*args
, **kwargs
):
4346 """IsPreview(self) -> bool"""
4347 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4349 def SetIsPreview(*args
, **kwargs
):
4350 """SetIsPreview(self, bool p)"""
4351 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4353 def base_OnBeginDocument(*args
, **kwargs
):
4354 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4355 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4357 def base_OnEndDocument(*args
, **kwargs
):
4358 """base_OnEndDocument(self)"""
4359 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4361 def base_OnBeginPrinting(*args
, **kwargs
):
4362 """base_OnBeginPrinting(self)"""
4363 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4365 def base_OnEndPrinting(*args
, **kwargs
):
4366 """base_OnEndPrinting(self)"""
4367 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4369 def base_OnPreparePrinting(*args
, **kwargs
):
4370 """base_OnPreparePrinting(self)"""
4371 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4373 def base_HasPage(*args
, **kwargs
):
4374 """base_HasPage(self, int page) -> bool"""
4375 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4377 def base_GetPageInfo(*args
, **kwargs
):
4378 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4379 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4382 class PrintoutPtr(Printout
):
4383 def __init__(self
, this
):
4385 if not hasattr(self
,"thisown"): self
.thisown
= 0
4386 self
.__class
__ = Printout
4387 _windows_
.Printout_swigregister(PrintoutPtr
)
4389 class PreviewCanvas(ScrolledWindow
):
4391 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4392 def __init__(self
, *args
, **kwargs
):
4394 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4395 Size size=DefaultSize, long style=0,
4396 String name=PreviewCanvasNameStr) -> PreviewCanvas
4398 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4399 self
.this
= newobj
.this
4402 self
._setOORInfo
(self
)
4405 class PreviewCanvasPtr(PreviewCanvas
):
4406 def __init__(self
, this
):
4408 if not hasattr(self
,"thisown"): self
.thisown
= 0
4409 self
.__class
__ = PreviewCanvas
4410 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4412 class PreviewFrame(Frame
):
4414 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4415 def __init__(self
, *args
, **kwargs
):
4417 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4418 Size size=DefaultSize,
4419 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4421 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4422 self
.this
= newobj
.this
4425 self
._setOORInfo
(self
)
4427 def Initialize(*args
, **kwargs
):
4428 """Initialize(self)"""
4429 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4431 def CreateControlBar(*args
, **kwargs
):
4432 """CreateControlBar(self)"""
4433 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4435 def CreateCanvas(*args
, **kwargs
):
4436 """CreateCanvas(self)"""
4437 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4439 def GetControlBar(*args
, **kwargs
):
4440 """GetControlBar(self) -> PreviewControlBar"""
4441 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4444 class PreviewFramePtr(PreviewFrame
):
4445 def __init__(self
, this
):
4447 if not hasattr(self
,"thisown"): self
.thisown
= 0
4448 self
.__class
__ = PreviewFrame
4449 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4451 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4452 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4453 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4454 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4455 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4456 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4457 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4458 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4459 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4460 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4461 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4462 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4463 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4464 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4465 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4466 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4467 class PreviewControlBar(Panel
):
4469 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4470 def __init__(self
, *args
, **kwargs
):
4472 __init__(self, PrintPreview preview, long buttons, Window parent,
4473 Point pos=DefaultPosition, Size size=DefaultSize,
4474 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4476 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4477 self
.this
= newobj
.this
4480 self
._setOORInfo
(self
)
4482 def GetZoomControl(*args
, **kwargs
):
4483 """GetZoomControl(self) -> int"""
4484 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4486 def SetZoomControl(*args
, **kwargs
):
4487 """SetZoomControl(self, int zoom)"""
4488 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4490 def GetPrintPreview(*args
, **kwargs
):
4491 """GetPrintPreview(self) -> PrintPreview"""
4492 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4494 def OnNext(*args
, **kwargs
):
4496 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4498 def OnPrevious(*args
, **kwargs
):
4499 """OnPrevious(self)"""
4500 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4502 def OnFirst(*args
, **kwargs
):
4504 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4506 def OnLast(*args
, **kwargs
):
4508 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4510 def OnGoto(*args
, **kwargs
):
4512 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4515 class PreviewControlBarPtr(PreviewControlBar
):
4516 def __init__(self
, this
):
4518 if not hasattr(self
,"thisown"): self
.thisown
= 0
4519 self
.__class
__ = PreviewControlBar
4520 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4522 class PrintPreview(_core
.Object
):
4524 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4525 def __init__(self
, *args
):
4527 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4528 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4530 newobj
= _windows_
.new_PrintPreview(*args
)
4531 self
.this
= newobj
.this
4534 def SetCurrentPage(*args
, **kwargs
):
4535 """SetCurrentPage(self, int pageNum) -> bool"""
4536 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4538 def GetCurrentPage(*args
, **kwargs
):
4539 """GetCurrentPage(self) -> int"""
4540 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4542 def SetPrintout(*args
, **kwargs
):
4543 """SetPrintout(self, Printout printout)"""
4544 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4546 def GetPrintout(*args
, **kwargs
):
4547 """GetPrintout(self) -> Printout"""
4548 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4550 def GetPrintoutForPrinting(*args
, **kwargs
):
4551 """GetPrintoutForPrinting(self) -> Printout"""
4552 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4554 def SetFrame(*args
, **kwargs
):
4555 """SetFrame(self, Frame frame)"""
4556 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4558 def SetCanvas(*args
, **kwargs
):
4559 """SetCanvas(self, PreviewCanvas canvas)"""
4560 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4562 def GetFrame(*args
, **kwargs
):
4563 """GetFrame(self) -> Frame"""
4564 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4566 def GetCanvas(*args
, **kwargs
):
4567 """GetCanvas(self) -> PreviewCanvas"""
4568 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4570 def PaintPage(*args
, **kwargs
):
4571 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4572 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4574 def DrawBlankPage(*args
, **kwargs
):
4575 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4576 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4578 def RenderPage(*args
, **kwargs
):
4579 """RenderPage(self, int pageNum) -> bool"""
4580 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4582 def AdjustScrollbars(*args
, **kwargs
):
4583 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4584 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4586 def GetPrintDialogData(*args
, **kwargs
):
4587 """GetPrintDialogData(self) -> PrintDialogData"""
4588 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4590 def SetZoom(*args
, **kwargs
):
4591 """SetZoom(self, int percent)"""
4592 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4594 def GetZoom(*args
, **kwargs
):
4595 """GetZoom(self) -> int"""
4596 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4598 def GetMaxPage(*args
, **kwargs
):
4599 """GetMaxPage(self) -> int"""
4600 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4602 def GetMinPage(*args
, **kwargs
):
4603 """GetMinPage(self) -> int"""
4604 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4606 def Ok(*args
, **kwargs
):
4607 """Ok(self) -> bool"""
4608 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4610 def SetOk(*args
, **kwargs
):
4611 """SetOk(self, bool ok)"""
4612 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4614 def Print(*args
, **kwargs
):
4615 """Print(self, bool interactive) -> bool"""
4616 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4618 def DetermineScaling(*args
, **kwargs
):
4619 """DetermineScaling(self)"""
4620 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4622 def __nonzero__(self
): return self
.Ok()
4624 class PrintPreviewPtr(PrintPreview
):
4625 def __init__(self
, this
):
4627 if not hasattr(self
,"thisown"): self
.thisown
= 0
4628 self
.__class
__ = PrintPreview
4629 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4631 class PyPrintPreview(PrintPreview
):
4633 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4634 def __init__(self
, *args
):
4636 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4637 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4639 newobj
= _windows_
.new_PyPrintPreview(*args
)
4640 self
.this
= newobj
.this
4643 self
._setCallbackInfo
(self
, PyPrintPreview
)
4645 def _setCallbackInfo(*args
, **kwargs
):
4646 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4647 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4649 def base_SetCurrentPage(*args
, **kwargs
):
4650 """base_SetCurrentPage(self, int pageNum) -> bool"""
4651 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4653 def base_PaintPage(*args
, **kwargs
):
4654 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4655 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4657 def base_DrawBlankPage(*args
, **kwargs
):
4658 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4659 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4661 def base_RenderPage(*args
, **kwargs
):
4662 """base_RenderPage(self, int pageNum) -> bool"""
4663 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4665 def base_SetZoom(*args
, **kwargs
):
4666 """base_SetZoom(self, int percent)"""
4667 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4669 def base_Print(*args
, **kwargs
):
4670 """base_Print(self, bool interactive) -> bool"""
4671 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4673 def base_DetermineScaling(*args
, **kwargs
):
4674 """base_DetermineScaling(self)"""
4675 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4678 class PyPrintPreviewPtr(PyPrintPreview
):
4679 def __init__(self
, this
):
4681 if not hasattr(self
,"thisown"): self
.thisown
= 0
4682 self
.__class
__ = PyPrintPreview
4683 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4685 class PyPreviewFrame(PreviewFrame
):
4687 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4688 def __init__(self
, *args
, **kwargs
):
4690 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4691 Size size=DefaultSize,
4692 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4694 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4695 self
.this
= newobj
.this
4698 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4700 def _setCallbackInfo(*args
, **kwargs
):
4701 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4702 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4704 def SetPreviewCanvas(*args
, **kwargs
):
4705 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4706 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4708 def SetControlBar(*args
, **kwargs
):
4709 """SetControlBar(self, PreviewControlBar bar)"""
4710 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4712 def base_Initialize(*args
, **kwargs
):
4713 """base_Initialize(self)"""
4714 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4716 def base_CreateCanvas(*args
, **kwargs
):
4717 """base_CreateCanvas(self)"""
4718 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4720 def base_CreateControlBar(*args
, **kwargs
):
4721 """base_CreateControlBar(self)"""
4722 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4725 class PyPreviewFramePtr(PyPreviewFrame
):
4726 def __init__(self
, this
):
4728 if not hasattr(self
,"thisown"): self
.thisown
= 0
4729 self
.__class
__ = PyPreviewFrame
4730 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4732 class PyPreviewControlBar(PreviewControlBar
):
4734 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4735 def __init__(self
, *args
, **kwargs
):
4737 __init__(self, PrintPreview preview, long buttons, Window parent,
4738 Point pos=DefaultPosition, Size size=DefaultSize,
4739 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4741 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4742 self
.this
= newobj
.this
4745 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4747 def _setCallbackInfo(*args
, **kwargs
):
4748 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4749 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4751 def SetPrintPreview(*args
, **kwargs
):
4752 """SetPrintPreview(self, PrintPreview preview)"""
4753 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4755 def base_CreateButtons(*args
, **kwargs
):
4756 """base_CreateButtons(self)"""
4757 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4759 def base_SetZoomControl(*args
, **kwargs
):
4760 """base_SetZoomControl(self, int zoom)"""
4761 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4764 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4765 def __init__(self
, this
):
4767 if not hasattr(self
,"thisown"): self
.thisown
= 0
4768 self
.__class
__ = PyPreviewControlBar
4769 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)