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 GetClassDefaultAttributes(*args
, **kwargs
):
207 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
209 Get the default attributes for this class. This is useful if you want
210 to use the same font or colour in your own control as in a standard
211 control -- which is a much better idea than hard coding specific
212 colours or fonts which might look completely out of place on the
213 user's system, especially if it uses themes.
215 The variant parameter is only relevant under Mac currently and is
216 ignore under other platforms. Under Mac, it will change the size of
217 the returned font. See `wx.Window.SetWindowVariant` for more about
220 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
222 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
224 class ScrolledWindowPtr(ScrolledWindow
):
225 def __init__(self
, this
):
227 if not hasattr(self
,"thisown"): self
.thisown
= 0
228 self
.__class
__ = ScrolledWindow
229 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
231 def PreScrolledWindow(*args
, **kwargs
):
232 """PreScrolledWindow() -> ScrolledWindow"""
233 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
237 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
239 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
241 Get the default attributes for this class. This is useful if you want
242 to use the same font or colour in your own control as in a standard
243 control -- which is a much better idea than hard coding specific
244 colours or fonts which might look completely out of place on the
245 user's system, especially if it uses themes.
247 The variant parameter is only relevant under Mac currently and is
248 ignore under other platforms. Under Mac, it will change the size of
249 the returned font. See `wx.Window.SetWindowVariant` for more about
252 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
254 #---------------------------------------------------------------------------
256 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
257 ICONIZE
= _windows_
.ICONIZE
258 MINIMIZE
= _windows_
.MINIMIZE
259 MAXIMIZE
= _windows_
.MAXIMIZE
260 CLOSE_BOX
= _windows_
.CLOSE_BOX
261 THICK_FRAME
= _windows_
.THICK_FRAME
262 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
263 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
264 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
265 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
266 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
267 RESIZE_BOX
= _windows_
.RESIZE_BOX
268 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
269 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
270 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
271 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
272 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
273 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
274 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
275 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
276 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
277 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
278 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
279 USER_COLOURS
= _windows_
.USER_COLOURS
280 NO_3D
= _windows_
.NO_3D
281 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
282 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
283 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
284 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
285 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
286 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
287 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
288 class TopLevelWindow(_core
.Window
):
289 def __init__(self
): raise RuntimeError, "No constructor defined"
291 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
292 def Maximize(*args
, **kwargs
):
293 """Maximize(self, bool maximize=True)"""
294 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
296 def Restore(*args
, **kwargs
):
298 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
300 def Iconize(*args
, **kwargs
):
301 """Iconize(self, bool iconize=True)"""
302 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
304 def IsMaximized(*args
, **kwargs
):
305 """IsMaximized(self) -> bool"""
306 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
308 def IsIconized(*args
, **kwargs
):
309 """IsIconized(self) -> bool"""
310 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
312 def GetIcon(*args
, **kwargs
):
313 """GetIcon(self) -> Icon"""
314 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
316 def SetIcon(*args
, **kwargs
):
317 """SetIcon(self, Icon icon)"""
318 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
320 def SetIcons(*args
, **kwargs
):
321 """SetIcons(self, wxIconBundle icons)"""
322 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
324 def ShowFullScreen(*args
, **kwargs
):
325 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
326 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
328 def IsFullScreen(*args
, **kwargs
):
329 """IsFullScreen(self) -> bool"""
330 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
332 def SetTitle(*args
, **kwargs
):
334 SetTitle(self, String title)
336 Sets the window's title. Applicable only to frames and dialogs.
338 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
340 def GetTitle(*args
, **kwargs
):
342 GetTitle(self) -> String
344 Gets the window's title. Applicable only to frames and dialogs.
346 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
348 def SetShape(*args
, **kwargs
):
349 """SetShape(self, Region region) -> bool"""
350 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
353 class TopLevelWindowPtr(TopLevelWindow
):
354 def __init__(self
, this
):
356 if not hasattr(self
,"thisown"): self
.thisown
= 0
357 self
.__class
__ = TopLevelWindow
358 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
359 cvar
= _windows_
.cvar
360 FrameNameStr
= cvar
.FrameNameStr
361 DialogNameStr
= cvar
.DialogNameStr
362 StatusLineNameStr
= cvar
.StatusLineNameStr
363 ToolBarNameStr
= cvar
.ToolBarNameStr
365 #---------------------------------------------------------------------------
367 class Frame(TopLevelWindow
):
369 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
370 def __init__(self
, *args
, **kwargs
):
372 __init__(self, Window parent, int id=-1, String title=EmptyString,
373 Point pos=DefaultPosition, Size size=DefaultSize,
374 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
376 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
377 self
.this
= newobj
.this
380 self
._setOORInfo
(self
)
382 def Create(*args
, **kwargs
):
384 Create(self, Window parent, int id=-1, String title=EmptyString,
385 Point pos=DefaultPosition, Size size=DefaultSize,
386 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
388 return _windows_
.Frame_Create(*args
, **kwargs
)
390 def GetClientAreaOrigin(*args
, **kwargs
):
392 GetClientAreaOrigin(self) -> Point
394 Get the origin of the client area of the window relative to the
395 window's top left corner (the client area may be shifted because of
396 the borders, scrollbars, other decorations...)
398 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
400 def SendSizeEvent(*args
, **kwargs
):
401 """SendSizeEvent(self)"""
402 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
404 def SetMenuBar(*args
, **kwargs
):
405 """SetMenuBar(self, MenuBar menubar)"""
406 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
408 def GetMenuBar(*args
, **kwargs
):
409 """GetMenuBar(self) -> MenuBar"""
410 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
412 def ProcessCommand(*args
, **kwargs
):
413 """ProcessCommand(self, int winid) -> bool"""
414 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
416 Command
= ProcessCommand
417 def CreateStatusBar(*args
, **kwargs
):
419 CreateStatusBar(self, int number=1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
420 int winid=0, String name=StatusLineNameStr) -> StatusBar
422 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
424 def GetStatusBar(*args
, **kwargs
):
425 """GetStatusBar(self) -> StatusBar"""
426 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
428 def SetStatusBar(*args
, **kwargs
):
429 """SetStatusBar(self, StatusBar statBar)"""
430 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
432 def SetStatusText(*args
, **kwargs
):
433 """SetStatusText(self, String text, int number=0)"""
434 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
436 def SetStatusWidths(*args
, **kwargs
):
437 """SetStatusWidths(self, int widths, int widths_field)"""
438 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
440 def PushStatusText(*args
, **kwargs
):
441 """PushStatusText(self, String text, int number=0)"""
442 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
444 def PopStatusText(*args
, **kwargs
):
445 """PopStatusText(self, int number=0)"""
446 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
448 def SetStatusBarPane(*args
, **kwargs
):
449 """SetStatusBarPane(self, int n)"""
450 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
452 def GetStatusBarPane(*args
, **kwargs
):
453 """GetStatusBarPane(self) -> int"""
454 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
456 def CreateToolBar(*args
, **kwargs
):
457 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
458 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
460 def GetToolBar(*args
, **kwargs
):
461 """GetToolBar(self) -> wxToolBar"""
462 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
464 def SetToolBar(*args
, **kwargs
):
465 """SetToolBar(self, wxToolBar toolbar)"""
466 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
468 def DoGiveHelp(*args
, **kwargs
):
469 """DoGiveHelp(self, String text, bool show)"""
470 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
472 def DoMenuUpdates(*args
, **kwargs
):
473 """DoMenuUpdates(self, Menu menu=None)"""
474 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
476 def GetClassDefaultAttributes(*args
, **kwargs
):
478 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
480 Get the default attributes for this class. This is useful if you want
481 to use the same font or colour in your own control as in a standard
482 control -- which is a much better idea than hard coding specific
483 colours or fonts which might look completely out of place on the
484 user's system, especially if it uses themes.
486 The variant parameter is only relevant under Mac currently and is
487 ignore under other platforms. Under Mac, it will change the size of
488 the returned font. See `wx.Window.SetWindowVariant` for more about
491 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
493 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
495 class FramePtr(Frame
):
496 def __init__(self
, this
):
498 if not hasattr(self
,"thisown"): self
.thisown
= 0
499 self
.__class
__ = Frame
500 _windows_
.Frame_swigregister(FramePtr
)
502 def PreFrame(*args
, **kwargs
):
503 """PreFrame() -> Frame"""
504 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
508 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
510 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
512 Get the default attributes for this class. This is useful if you want
513 to use the same font or colour in your own control as in a standard
514 control -- which is a much better idea than hard coding specific
515 colours or fonts which might look completely out of place on the
516 user's system, especially if it uses themes.
518 The variant parameter is only relevant under Mac currently and is
519 ignore under other platforms. Under Mac, it will change the size of
520 the returned font. See `wx.Window.SetWindowVariant` for more about
523 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
525 #---------------------------------------------------------------------------
527 class Dialog(TopLevelWindow
):
529 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
530 def __init__(self
, *args
, **kwargs
):
532 __init__(self, Window parent, int id=-1, String title=EmptyString,
533 Point pos=DefaultPosition, Size size=DefaultSize,
534 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
536 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
537 self
.this
= newobj
.this
540 self
._setOORInfo
(self
)
542 def Create(*args
, **kwargs
):
544 Create(self, Window parent, int id=-1, String title=EmptyString,
545 Point pos=DefaultPosition, Size size=DefaultSize,
546 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
548 return _windows_
.Dialog_Create(*args
, **kwargs
)
550 def SetReturnCode(*args
, **kwargs
):
551 """SetReturnCode(self, int returnCode)"""
552 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
554 def GetReturnCode(*args
, **kwargs
):
555 """GetReturnCode(self) -> int"""
556 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
558 def CreateTextSizer(*args
, **kwargs
):
559 """CreateTextSizer(self, String message) -> Sizer"""
560 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
562 def CreateButtonSizer(*args
, **kwargs
):
563 """CreateButtonSizer(self, long flags) -> Sizer"""
564 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
566 def IsModal(*args
, **kwargs
):
567 """IsModal(self) -> bool"""
568 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
570 def ShowModal(*args
, **kwargs
):
571 """ShowModal(self) -> int"""
572 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
574 def EndModal(*args
, **kwargs
):
575 """EndModal(self, int retCode)"""
576 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
578 def GetClassDefaultAttributes(*args
, **kwargs
):
580 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
582 Get the default attributes for this class. This is useful if you want
583 to use the same font or colour in your own control as in a standard
584 control -- which is a much better idea than hard coding specific
585 colours or fonts which might look completely out of place on the
586 user's system, especially if it uses themes.
588 The variant parameter is only relevant under Mac currently and is
589 ignore under other platforms. Under Mac, it will change the size of
590 the returned font. See `wx.Window.SetWindowVariant` for more about
593 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
595 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
597 class DialogPtr(Dialog
):
598 def __init__(self
, this
):
600 if not hasattr(self
,"thisown"): self
.thisown
= 0
601 self
.__class
__ = Dialog
602 _windows_
.Dialog_swigregister(DialogPtr
)
604 def PreDialog(*args
, **kwargs
):
605 """PreDialog() -> Dialog"""
606 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
610 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
612 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
614 Get the default attributes for this class. This is useful if you want
615 to use the same font or colour in your own control as in a standard
616 control -- which is a much better idea than hard coding specific
617 colours or fonts which might look completely out of place on the
618 user's system, especially if it uses themes.
620 The variant parameter is only relevant under Mac currently and is
621 ignore under other platforms. Under Mac, it will change the size of
622 the returned font. See `wx.Window.SetWindowVariant` for more about
625 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
627 #---------------------------------------------------------------------------
629 class MiniFrame(Frame
):
631 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
632 def __init__(self
, *args
, **kwargs
):
634 __init__(self, Window parent, int id=-1, String title=EmptyString,
635 Point pos=DefaultPosition, Size size=DefaultSize,
636 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
638 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
639 self
.this
= newobj
.this
642 self
._setOORInfo
(self
)
644 def Create(*args
, **kwargs
):
646 Create(self, Window parent, int id=-1, String title=EmptyString,
647 Point pos=DefaultPosition, Size size=DefaultSize,
648 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
650 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
653 class MiniFramePtr(MiniFrame
):
654 def __init__(self
, this
):
656 if not hasattr(self
,"thisown"): self
.thisown
= 0
657 self
.__class
__ = MiniFrame
658 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
660 def PreMiniFrame(*args
, **kwargs
):
661 """PreMiniFrame() -> MiniFrame"""
662 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
666 #---------------------------------------------------------------------------
668 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
669 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
670 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
671 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
672 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
673 class SplashScreenWindow(_core
.Window
):
675 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
676 def __init__(self
, *args
, **kwargs
):
678 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
679 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
681 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
682 self
.this
= newobj
.this
685 self
._setOORInfo
(self
)
687 def SetBitmap(*args
, **kwargs
):
688 """SetBitmap(self, Bitmap bitmap)"""
689 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
691 def GetBitmap(*args
, **kwargs
):
692 """GetBitmap(self) -> Bitmap"""
693 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
696 class SplashScreenWindowPtr(SplashScreenWindow
):
697 def __init__(self
, this
):
699 if not hasattr(self
,"thisown"): self
.thisown
= 0
700 self
.__class
__ = SplashScreenWindow
701 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
703 class SplashScreen(Frame
):
705 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
706 def __init__(self
, *args
, **kwargs
):
708 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
709 Window parent, int id=-1, Point pos=DefaultPosition,
710 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
712 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
713 self
.this
= newobj
.this
716 self
._setOORInfo
(self
)
718 def GetSplashStyle(*args
, **kwargs
):
719 """GetSplashStyle(self) -> long"""
720 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
722 def GetSplashWindow(*args
, **kwargs
):
723 """GetSplashWindow(self) -> SplashScreenWindow"""
724 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
726 def GetTimeout(*args
, **kwargs
):
727 """GetTimeout(self) -> int"""
728 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
731 class SplashScreenPtr(SplashScreen
):
732 def __init__(self
, this
):
734 if not hasattr(self
,"thisown"): self
.thisown
= 0
735 self
.__class
__ = SplashScreen
736 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
738 #---------------------------------------------------------------------------
740 class StatusBar(_core
.Window
):
742 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
743 def __init__(self
, *args
, **kwargs
):
745 __init__(self, Window parent, int id=-1, long style=wxST_SIZEGRIP|wxFULL_REPAINT_ON_RESIZE,
746 String name=StatusLineNameStr) -> StatusBar
748 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
749 self
.this
= newobj
.this
752 self
._setOORInfo
(self
)
754 def Create(*args
, **kwargs
):
755 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
756 return _windows_
.StatusBar_Create(*args
, **kwargs
)
758 def SetFieldsCount(*args
, **kwargs
):
759 """SetFieldsCount(self, int number=1)"""
760 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
762 def GetFieldsCount(*args
, **kwargs
):
763 """GetFieldsCount(self) -> int"""
764 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
766 def SetStatusText(*args
, **kwargs
):
767 """SetStatusText(self, String text, int number=0)"""
768 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
770 def GetStatusText(*args
, **kwargs
):
771 """GetStatusText(self, int number=0) -> String"""
772 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
774 def PushStatusText(*args
, **kwargs
):
775 """PushStatusText(self, String text, int number=0)"""
776 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
778 def PopStatusText(*args
, **kwargs
):
779 """PopStatusText(self, int number=0)"""
780 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
782 def SetStatusWidths(*args
, **kwargs
):
783 """SetStatusWidths(self, int widths, int widths_field)"""
784 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
786 def GetFieldRect(*args
, **kwargs
):
787 """GetFieldRect(self, int i) -> Rect"""
788 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
790 def SetMinHeight(*args
, **kwargs
):
791 """SetMinHeight(self, int height)"""
792 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
794 def GetBorderX(*args
, **kwargs
):
795 """GetBorderX(self) -> int"""
796 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
798 def GetBorderY(*args
, **kwargs
):
799 """GetBorderY(self) -> int"""
800 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
802 def GetClassDefaultAttributes(*args
, **kwargs
):
804 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
806 Get the default attributes for this class. This is useful if you want
807 to use the same font or colour in your own control as in a standard
808 control -- which is a much better idea than hard coding specific
809 colours or fonts which might look completely out of place on the
810 user's system, especially if it uses themes.
812 The variant parameter is only relevant under Mac currently and is
813 ignore under other platforms. Under Mac, it will change the size of
814 the returned font. See `wx.Window.SetWindowVariant` for more about
817 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
819 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
821 class StatusBarPtr(StatusBar
):
822 def __init__(self
, this
):
824 if not hasattr(self
,"thisown"): self
.thisown
= 0
825 self
.__class
__ = StatusBar
826 _windows_
.StatusBar_swigregister(StatusBarPtr
)
828 def PreStatusBar(*args
, **kwargs
):
829 """PreStatusBar() -> StatusBar"""
830 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
834 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
836 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
838 Get the default attributes for this class. This is useful if you want
839 to use the same font or colour in your own control as in a standard
840 control -- which is a much better idea than hard coding specific
841 colours or fonts which might look completely out of place on the
842 user's system, especially if it uses themes.
844 The variant parameter is only relevant under Mac currently and is
845 ignore under other platforms. Under Mac, it will change the size of
846 the returned font. See `wx.Window.SetWindowVariant` for more about
849 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
851 #---------------------------------------------------------------------------
853 SP_NOBORDER
= _windows_
.SP_NOBORDER
854 SP_NOSASH
= _windows_
.SP_NOSASH
855 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
856 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
857 SP_3DSASH
= _windows_
.SP_3DSASH
858 SP_3DBORDER
= _windows_
.SP_3DBORDER
859 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
860 SP_BORDER
= _windows_
.SP_BORDER
861 SP_3D
= _windows_
.SP_3D
862 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
863 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
864 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
865 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
866 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
867 class SplitterWindow(_core
.Window
):
869 wx.SplitterWindow manages up to two subwindows or panes, with an
870 optional vertical or horizontal split which can be used with the mouse
874 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
875 def __init__(self
, *args
, **kwargs
):
877 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
878 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
880 Constructor. Creates and shows a SplitterWindow.
882 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
883 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
884 self
.this
= newobj
.this
887 self
._setOORInfo
(self
)
889 def Create(*args
, **kwargs
):
891 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
892 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
894 Create the GUI part of the SplitterWindow for the 2-phase create.
896 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
898 def GetWindow1(*args
, **kwargs
):
900 GetWindow1(self) -> Window
902 Gets the only or left/top pane.
904 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
906 def GetWindow2(*args
, **kwargs
):
908 GetWindow2(self) -> Window
910 Gets the right/bottom pane.
912 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
914 def SetSplitMode(*args
, **kwargs
):
916 SetSplitMode(self, int mode)
918 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
919 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
922 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
924 def GetSplitMode(*args
, **kwargs
):
926 GetSplitMode(self) -> int
930 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
932 def Initialize(*args
, **kwargs
):
934 Initialize(self, Window window)
936 Initializes the splitter window to have one pane. This should be
937 called if you wish to initially view only a single pane in the
940 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
942 def SplitVertically(*args
, **kwargs
):
944 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
946 Initializes the left and right panes of the splitter window.
948 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
950 def SplitHorizontally(*args
, **kwargs
):
952 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
954 Initializes the top and bottom panes of the splitter window.
956 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
958 def Unsplit(*args
, **kwargs
):
960 Unsplit(self, Window toRemove=None) -> bool
962 Unsplits the window. Pass the pane to remove, or None to remove the
963 right or bottom pane. Returns True if successful, False otherwise (the
964 window was not split).
966 This function will not actually delete the pane being
967 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
968 for the desired behaviour. By default, the pane being
969 removed is only hidden.
971 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
973 def ReplaceWindow(*args
, **kwargs
):
975 ReplaceWindow(self, Window winOld, Window winNew) -> bool
977 This function replaces one of the windows managed by the
978 SplitterWindow with another one. It is in general better to use it
979 instead of calling Unsplit() and then resplitting the window back
980 because it will provoke much less flicker. It is valid to call this
981 function whether the splitter has two windows or only one.
983 Both parameters should be non-None and winOld must specify one of the
984 windows managed by the splitter. If the parameters are incorrect or
985 the window couldn't be replaced, False is returned. Otherwise the
986 function will return True, but please notice that it will not Destroy
987 the replaced window and you may wish to do it yourself.
989 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
991 def UpdateSize(*args
, **kwargs
):
995 Causes any pending sizing of the sash and child panes to take place
998 Such resizing normally takes place in idle time, in order to wait for
999 layout to be completed. However, this can cause unacceptable flicker
1000 as the panes are resized after the window has been shown. To work
1001 around this, you can perform window layout (for example by sending a
1002 size event to the parent window), and then call this function, before
1003 showing the top-level window.
1005 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1007 def IsSplit(*args
, **kwargs
):
1009 IsSplit(self) -> bool
1011 Is the window split?
1013 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1015 def SetSashSize(*args
, **kwargs
):
1017 SetSashSize(self, int width)
1021 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1023 def SetBorderSize(*args
, **kwargs
):
1025 SetBorderSize(self, int width)
1027 Sets the border size
1029 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1031 def GetSashSize(*args
, **kwargs
):
1033 GetSashSize(self) -> int
1037 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1039 def GetBorderSize(*args
, **kwargs
):
1041 GetBorderSize(self) -> int
1043 Gets the border size
1045 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1047 def SetSashPosition(*args
, **kwargs
):
1049 SetSashPosition(self, int position, bool redraw=True)
1051 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1052 are resized and the sash and border are redrawn.
1054 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1056 def GetSashPosition(*args
, **kwargs
):
1058 GetSashPosition(self) -> int
1060 Returns the surrent sash position.
1062 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1064 def SetMinimumPaneSize(*args
, **kwargs
):
1066 SetMinimumPaneSize(self, int min)
1068 Sets the minimum pane size in pixels.
1070 The default minimum pane size is zero, which means that either pane
1071 can be reduced to zero by dragging the sash, thus removing one of the
1072 panes. To prevent this behaviour (and veto out-of-range sash
1073 dragging), set a minimum size, for example 20 pixels. If the
1074 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1075 the window may be unsplit even if minimum size is non-zero.
1077 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1079 def GetMinimumPaneSize(*args
, **kwargs
):
1081 GetMinimumPaneSize(self) -> int
1083 Gets the minimum pane size in pixels.
1085 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1087 def SashHitTest(*args
, **kwargs
):
1089 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1091 Tests for x, y over the sash
1093 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1095 def SizeWindows(*args
, **kwargs
):
1101 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1103 def SetNeedUpdating(*args
, **kwargs
):
1104 """SetNeedUpdating(self, bool needUpdating)"""
1105 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1107 def GetNeedUpdating(*args
, **kwargs
):
1108 """GetNeedUpdating(self) -> bool"""
1109 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1111 def GetClassDefaultAttributes(*args
, **kwargs
):
1113 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1115 Get the default attributes for this class. This is useful if you want
1116 to use the same font or colour in your own control as in a standard
1117 control -- which is a much better idea than hard coding specific
1118 colours or fonts which might look completely out of place on the
1119 user's system, especially if it uses themes.
1121 The variant parameter is only relevant under Mac currently and is
1122 ignore under other platforms. Under Mac, it will change the size of
1123 the returned font. See `wx.Window.SetWindowVariant` for more about
1126 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1128 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1130 class SplitterWindowPtr(SplitterWindow
):
1131 def __init__(self
, this
):
1133 if not hasattr(self
,"thisown"): self
.thisown
= 0
1134 self
.__class
__ = SplitterWindow
1135 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1136 SplitterNameStr
= cvar
.SplitterNameStr
1138 def PreSplitterWindow(*args
, **kwargs
):
1140 PreSplitterWindow() -> SplitterWindow
1142 Precreate a SplitterWindow for 2-phase creation.
1144 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1148 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1150 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1152 Get the default attributes for this class. This is useful if you want
1153 to use the same font or colour in your own control as in a standard
1154 control -- which is a much better idea than hard coding specific
1155 colours or fonts which might look completely out of place on the
1156 user's system, especially if it uses themes.
1158 The variant parameter is only relevant under Mac currently and is
1159 ignore under other platforms. Under Mac, it will change the size of
1160 the returned font. See `wx.Window.SetWindowVariant` for more about
1163 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1165 class SplitterEvent(_core
.NotifyEvent
):
1166 """This class represents the events generated by a splitter control."""
1168 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1169 def __init__(self
, *args
, **kwargs
):
1171 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1173 This class represents the events generated by a splitter control.
1175 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1176 self
.this
= newobj
.this
1179 def SetSashPosition(*args
, **kwargs
):
1181 SetSashPosition(self, int pos)
1183 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1184 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1185 events, sets the the new sash position. In the case of _CHANGING
1186 events, sets the new tracking bar position so visual feedback during
1187 dragging will represent that change that will actually take place. Set
1188 to -1 from the event handler code to prevent repositioning.
1190 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1192 def GetSashPosition(*args
, **kwargs
):
1194 GetSashPosition(self) -> int
1196 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1197 and EVT_SPLITTER_SASH_POS_CHANGED events.
1199 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1201 def GetWindowBeingRemoved(*args
, **kwargs
):
1203 GetWindowBeingRemoved(self) -> Window
1205 Returns a pointer to the window being removed when a splitter window
1208 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1210 def GetX(*args
, **kwargs
):
1214 Returns the x coordinate of the double-click point in a
1215 EVT_SPLITTER_DCLICK event.
1217 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1219 def GetY(*args
, **kwargs
):
1223 Returns the y coordinate of the double-click point in a
1224 EVT_SPLITTER_DCLICK event.
1226 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1229 class SplitterEventPtr(SplitterEvent
):
1230 def __init__(self
, this
):
1232 if not hasattr(self
,"thisown"): self
.thisown
= 0
1233 self
.__class
__ = SplitterEvent
1234 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1236 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1237 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1238 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1239 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1240 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1241 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1242 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1243 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1244 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1246 #---------------------------------------------------------------------------
1248 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1249 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1250 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1251 SW_NOBORDER
= _windows_
.SW_NOBORDER
1252 SW_BORDER
= _windows_
.SW_BORDER
1253 SW_3DSASH
= _windows_
.SW_3DSASH
1254 SW_3DBORDER
= _windows_
.SW_3DBORDER
1255 SW_3D
= _windows_
.SW_3D
1256 SASH_TOP
= _windows_
.SASH_TOP
1257 SASH_RIGHT
= _windows_
.SASH_RIGHT
1258 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1259 SASH_LEFT
= _windows_
.SASH_LEFT
1260 SASH_NONE
= _windows_
.SASH_NONE
1261 class SashWindow(_core
.Window
):
1263 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1264 def __init__(self
, *args
, **kwargs
):
1266 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1267 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1268 String name=SashNameStr) -> SashWindow
1270 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1271 self
.this
= newobj
.this
1274 self
._setOORInfo
(self
)
1276 def Create(*args
, **kwargs
):
1278 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1279 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1280 String name=SashNameStr) -> bool
1282 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1284 def SetSashVisible(*args
, **kwargs
):
1285 """SetSashVisible(self, int edge, bool sash)"""
1286 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1288 def GetSashVisible(*args
, **kwargs
):
1289 """GetSashVisible(self, int edge) -> bool"""
1290 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1292 def SetSashBorder(*args
, **kwargs
):
1293 """SetSashBorder(self, int edge, bool border)"""
1294 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1296 def HasBorder(*args
, **kwargs
):
1297 """HasBorder(self, int edge) -> bool"""
1298 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1300 def GetEdgeMargin(*args
, **kwargs
):
1301 """GetEdgeMargin(self, int edge) -> int"""
1302 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1304 def SetDefaultBorderSize(*args
, **kwargs
):
1305 """SetDefaultBorderSize(self, int width)"""
1306 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1308 def GetDefaultBorderSize(*args
, **kwargs
):
1309 """GetDefaultBorderSize(self) -> int"""
1310 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1312 def SetExtraBorderSize(*args
, **kwargs
):
1313 """SetExtraBorderSize(self, int width)"""
1314 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1316 def GetExtraBorderSize(*args
, **kwargs
):
1317 """GetExtraBorderSize(self) -> int"""
1318 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1320 def SetMinimumSizeX(*args
, **kwargs
):
1321 """SetMinimumSizeX(self, int min)"""
1322 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1324 def SetMinimumSizeY(*args
, **kwargs
):
1325 """SetMinimumSizeY(self, int min)"""
1326 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1328 def GetMinimumSizeX(*args
, **kwargs
):
1329 """GetMinimumSizeX(self) -> int"""
1330 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1332 def GetMinimumSizeY(*args
, **kwargs
):
1333 """GetMinimumSizeY(self) -> int"""
1334 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1336 def SetMaximumSizeX(*args
, **kwargs
):
1337 """SetMaximumSizeX(self, int max)"""
1338 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1340 def SetMaximumSizeY(*args
, **kwargs
):
1341 """SetMaximumSizeY(self, int max)"""
1342 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1344 def GetMaximumSizeX(*args
, **kwargs
):
1345 """GetMaximumSizeX(self) -> int"""
1346 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1348 def GetMaximumSizeY(*args
, **kwargs
):
1349 """GetMaximumSizeY(self) -> int"""
1350 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1352 def SashHitTest(*args
, **kwargs
):
1353 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1354 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1356 def SizeWindows(*args
, **kwargs
):
1357 """SizeWindows(self)"""
1358 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1361 class SashWindowPtr(SashWindow
):
1362 def __init__(self
, this
):
1364 if not hasattr(self
,"thisown"): self
.thisown
= 0
1365 self
.__class
__ = SashWindow
1366 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1367 SashNameStr
= cvar
.SashNameStr
1368 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1370 def PreSashWindow(*args
, **kwargs
):
1371 """PreSashWindow() -> SashWindow"""
1372 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1376 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1377 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1378 class SashEvent(_core
.CommandEvent
):
1380 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1381 def __init__(self
, *args
, **kwargs
):
1382 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1383 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1384 self
.this
= newobj
.this
1387 def SetEdge(*args
, **kwargs
):
1388 """SetEdge(self, int edge)"""
1389 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1391 def GetEdge(*args
, **kwargs
):
1392 """GetEdge(self) -> int"""
1393 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1395 def SetDragRect(*args
, **kwargs
):
1396 """SetDragRect(self, Rect rect)"""
1397 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1399 def GetDragRect(*args
, **kwargs
):
1400 """GetDragRect(self) -> Rect"""
1401 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1403 def SetDragStatus(*args
, **kwargs
):
1404 """SetDragStatus(self, int status)"""
1405 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1407 def GetDragStatus(*args
, **kwargs
):
1408 """GetDragStatus(self) -> int"""
1409 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1412 class SashEventPtr(SashEvent
):
1413 def __init__(self
, this
):
1415 if not hasattr(self
,"thisown"): self
.thisown
= 0
1416 self
.__class
__ = SashEvent
1417 _windows_
.SashEvent_swigregister(SashEventPtr
)
1419 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1420 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1421 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1423 #---------------------------------------------------------------------------
1425 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1426 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1427 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1428 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1429 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1430 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1431 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1432 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1433 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1434 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1435 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1436 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1437 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1438 class QueryLayoutInfoEvent(_core
.Event
):
1440 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1441 def __init__(self
, *args
, **kwargs
):
1442 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1443 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1444 self
.this
= newobj
.this
1447 def SetRequestedLength(*args
, **kwargs
):
1448 """SetRequestedLength(self, int length)"""
1449 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1451 def GetRequestedLength(*args
, **kwargs
):
1452 """GetRequestedLength(self) -> int"""
1453 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1455 def SetFlags(*args
, **kwargs
):
1456 """SetFlags(self, int flags)"""
1457 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1459 def GetFlags(*args
, **kwargs
):
1460 """GetFlags(self) -> int"""
1461 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1463 def SetSize(*args
, **kwargs
):
1464 """SetSize(self, Size size)"""
1465 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1467 def GetSize(*args
, **kwargs
):
1468 """GetSize(self) -> Size"""
1469 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1471 def SetOrientation(*args
, **kwargs
):
1472 """SetOrientation(self, int orient)"""
1473 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1475 def GetOrientation(*args
, **kwargs
):
1476 """GetOrientation(self) -> int"""
1477 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1479 def SetAlignment(*args
, **kwargs
):
1480 """SetAlignment(self, int align)"""
1481 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1483 def GetAlignment(*args
, **kwargs
):
1484 """GetAlignment(self) -> int"""
1485 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1488 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1489 def __init__(self
, this
):
1491 if not hasattr(self
,"thisown"): self
.thisown
= 0
1492 self
.__class
__ = QueryLayoutInfoEvent
1493 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1495 class CalculateLayoutEvent(_core
.Event
):
1497 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1498 def __init__(self
, *args
, **kwargs
):
1499 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1500 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1501 self
.this
= newobj
.this
1504 def SetFlags(*args
, **kwargs
):
1505 """SetFlags(self, int flags)"""
1506 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1508 def GetFlags(*args
, **kwargs
):
1509 """GetFlags(self) -> int"""
1510 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1512 def SetRect(*args
, **kwargs
):
1513 """SetRect(self, Rect rect)"""
1514 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1516 def GetRect(*args
, **kwargs
):
1517 """GetRect(self) -> Rect"""
1518 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1521 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1522 def __init__(self
, this
):
1524 if not hasattr(self
,"thisown"): self
.thisown
= 0
1525 self
.__class
__ = CalculateLayoutEvent
1526 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1528 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1529 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1531 class SashLayoutWindow(SashWindow
):
1533 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1534 def __init__(self
, *args
, **kwargs
):
1536 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1537 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1538 String name=SashLayoutNameStr) -> SashLayoutWindow
1540 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1541 self
.this
= newobj
.this
1544 self
._setOORInfo
(self
)
1546 def Create(*args
, **kwargs
):
1548 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1549 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1550 String name=SashLayoutNameStr) -> bool
1552 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1554 def GetAlignment(*args
, **kwargs
):
1555 """GetAlignment(self) -> int"""
1556 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1558 def GetOrientation(*args
, **kwargs
):
1559 """GetOrientation(self) -> int"""
1560 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1562 def SetAlignment(*args
, **kwargs
):
1563 """SetAlignment(self, int alignment)"""
1564 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1566 def SetDefaultSize(*args
, **kwargs
):
1567 """SetDefaultSize(self, Size size)"""
1568 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1570 def SetOrientation(*args
, **kwargs
):
1571 """SetOrientation(self, int orientation)"""
1572 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1575 class SashLayoutWindowPtr(SashLayoutWindow
):
1576 def __init__(self
, this
):
1578 if not hasattr(self
,"thisown"): self
.thisown
= 0
1579 self
.__class
__ = SashLayoutWindow
1580 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1582 def PreSashLayoutWindow(*args
, **kwargs
):
1583 """PreSashLayoutWindow() -> SashLayoutWindow"""
1584 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1588 class LayoutAlgorithm(_core
.Object
):
1590 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1591 def __init__(self
, *args
, **kwargs
):
1592 """__init__(self) -> LayoutAlgorithm"""
1593 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1594 self
.this
= newobj
.this
1597 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1600 if self
.thisown
: destroy(self
)
1603 def LayoutMDIFrame(*args
, **kwargs
):
1604 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1605 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1607 def LayoutFrame(*args
, **kwargs
):
1608 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1609 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1611 def LayoutWindow(*args
, **kwargs
):
1612 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1613 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1616 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1617 def __init__(self
, this
):
1619 if not hasattr(self
,"thisown"): self
.thisown
= 0
1620 self
.__class
__ = LayoutAlgorithm
1621 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1623 #---------------------------------------------------------------------------
1625 class PopupWindow(_core
.Window
):
1627 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1628 def __init__(self
, *args
, **kwargs
):
1629 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1630 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1631 self
.this
= newobj
.this
1634 self
._setOORInfo
(self
)
1636 def Create(*args
, **kwargs
):
1637 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1638 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1640 def Position(*args
, **kwargs
):
1641 """Position(self, Point ptOrigin, Size size)"""
1642 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1645 class PopupWindowPtr(PopupWindow
):
1646 def __init__(self
, this
):
1648 if not hasattr(self
,"thisown"): self
.thisown
= 0
1649 self
.__class
__ = PopupWindow
1650 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1652 def PrePopupWindow(*args
, **kwargs
):
1653 """PrePopupWindow() -> PopupWindow"""
1654 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1658 #---------------------------------------------------------------------------
1660 class PopupTransientWindow(PopupWindow
):
1662 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1663 def __init__(self
, *args
, **kwargs
):
1664 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1665 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1666 self
.this
= newobj
.this
1669 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1671 def _setCallbackInfo(*args
, **kwargs
):
1672 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1673 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1675 def Popup(*args
, **kwargs
):
1676 """Popup(self, Window focus=None)"""
1677 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1679 def Dismiss(*args
, **kwargs
):
1681 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1684 class PopupTransientWindowPtr(PopupTransientWindow
):
1685 def __init__(self
, this
):
1687 if not hasattr(self
,"thisown"): self
.thisown
= 0
1688 self
.__class
__ = PopupTransientWindow
1689 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1691 def PrePopupTransientWindow(*args
, **kwargs
):
1692 """PrePopupTransientWindow() -> PopupTransientWindow"""
1693 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1697 #---------------------------------------------------------------------------
1699 class TipWindow(PopupTransientWindow
):
1701 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1702 def __init__(self
, *args
, **kwargs
):
1703 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1704 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1705 self
.this
= newobj
.this
1708 self
._setOORInfo
(self
)
1710 def SetBoundingRect(*args
, **kwargs
):
1711 """SetBoundingRect(self, Rect rectBound)"""
1712 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1714 def Close(*args
, **kwargs
):
1716 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1719 class TipWindowPtr(TipWindow
):
1720 def __init__(self
, this
):
1722 if not hasattr(self
,"thisown"): self
.thisown
= 0
1723 self
.__class
__ = TipWindow
1724 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1726 #---------------------------------------------------------------------------
1728 class VScrolledWindow(Panel
):
1730 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1731 def __init__(self
, *args
, **kwargs
):
1733 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1734 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1736 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1737 self
.this
= newobj
.this
1740 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1742 def _setCallbackInfo(*args
, **kwargs
):
1743 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1744 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1746 def Create(*args
, **kwargs
):
1748 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1749 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1751 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1753 def SetLineCount(*args
, **kwargs
):
1754 """SetLineCount(self, size_t count)"""
1755 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1757 def ScrollToLine(*args
, **kwargs
):
1758 """ScrollToLine(self, size_t line) -> bool"""
1759 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1761 def ScrollLines(*args
, **kwargs
):
1762 """ScrollLines(self, int lines) -> bool"""
1763 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1765 def ScrollPages(*args
, **kwargs
):
1767 ScrollPages(self, int pages) -> bool
1769 If the platform and window class supports it, scrolls the window by
1770 the given number of pages down, if pages is positive, or up if pages
1771 is negative. Returns True if the window was scrolled, False if it was
1772 already on top/bottom and nothing was done.
1774 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1776 def RefreshLine(*args
, **kwargs
):
1777 """RefreshLine(self, size_t line)"""
1778 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1780 def RefreshLines(*args
, **kwargs
):
1781 """RefreshLines(self, size_t from, size_t to)"""
1782 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1784 def HitTestXT(*args
, **kwargs
):
1785 """HitTestXT(self, int x, int y) -> int"""
1786 return _windows_
.VScrolledWindow_HitTestXT(*args
, **kwargs
)
1788 def HitTest(*args
, **kwargs
):
1789 """HitTest(self, Point pt) -> int"""
1790 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1792 def RefreshAll(*args
, **kwargs
):
1793 """RefreshAll(self)"""
1794 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1796 def GetLineCount(*args
, **kwargs
):
1797 """GetLineCount(self) -> size_t"""
1798 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1800 def GetFirstVisibleLine(*args
, **kwargs
):
1801 """GetFirstVisibleLine(self) -> size_t"""
1802 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1804 def GetLastVisibleLine(*args
, **kwargs
):
1805 """GetLastVisibleLine(self) -> size_t"""
1806 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1808 def IsVisible(*args
, **kwargs
):
1809 """IsVisible(self, size_t line) -> bool"""
1810 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1813 class VScrolledWindowPtr(VScrolledWindow
):
1814 def __init__(self
, this
):
1816 if not hasattr(self
,"thisown"): self
.thisown
= 0
1817 self
.__class
__ = VScrolledWindow
1818 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1820 def PreVScrolledWindow(*args
, **kwargs
):
1821 """PreVScrolledWindow() -> VScrolledWindow"""
1822 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1826 class VListBox(VScrolledWindow
):
1828 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1829 def __init__(self
, *args
, **kwargs
):
1831 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1832 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1834 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1835 self
.this
= newobj
.this
1838 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1840 def _setCallbackInfo(*args
, **kwargs
):
1841 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1842 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1844 def Create(*args
, **kwargs
):
1846 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1847 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1849 return _windows_
.VListBox_Create(*args
, **kwargs
)
1851 def GetItemCount(*args
, **kwargs
):
1852 """GetItemCount(self) -> size_t"""
1853 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1855 def HasMultipleSelection(*args
, **kwargs
):
1856 """HasMultipleSelection(self) -> bool"""
1857 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1859 def GetSelection(*args
, **kwargs
):
1860 """GetSelection(self) -> int"""
1861 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1863 def IsCurrent(*args
, **kwargs
):
1864 """IsCurrent(self, size_t item) -> bool"""
1865 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1867 def IsSelected(*args
, **kwargs
):
1868 """IsSelected(self, size_t item) -> bool"""
1869 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1871 def GetSelectedCount(*args
, **kwargs
):
1872 """GetSelectedCount(self) -> size_t"""
1873 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1875 def GetFirstSelected(*args
, **kwargs
):
1876 """GetFirstSelected(self) -> PyObject"""
1877 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1879 def GetNextSelected(*args
, **kwargs
):
1880 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1881 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1883 def GetMargins(*args
, **kwargs
):
1884 """GetMargins(self) -> Point"""
1885 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1887 def GetSelectionBackground(*args
, **kwargs
):
1888 """GetSelectionBackground(self) -> Colour"""
1889 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1891 def SetItemCount(*args
, **kwargs
):
1892 """SetItemCount(self, size_t count)"""
1893 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1895 def Clear(*args
, **kwargs
):
1897 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1899 def SetSelection(*args
, **kwargs
):
1900 """SetSelection(self, int selection)"""
1901 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1903 def Select(*args
, **kwargs
):
1904 """Select(self, size_t item, bool select=True) -> bool"""
1905 return _windows_
.VListBox_Select(*args
, **kwargs
)
1907 def SelectRange(*args
, **kwargs
):
1908 """SelectRange(self, size_t from, size_t to) -> bool"""
1909 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1911 def Toggle(*args
, **kwargs
):
1912 """Toggle(self, size_t item)"""
1913 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1915 def SelectAll(*args
, **kwargs
):
1916 """SelectAll(self) -> bool"""
1917 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1919 def DeselectAll(*args
, **kwargs
):
1920 """DeselectAll(self) -> bool"""
1921 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1923 def SetMargins(*args
, **kwargs
):
1924 """SetMargins(self, Point pt)"""
1925 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1927 def SetMarginsXY(*args
, **kwargs
):
1928 """SetMarginsXY(self, int x, int y)"""
1929 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1931 def SetSelectionBackground(*args
, **kwargs
):
1932 """SetSelectionBackground(self, Colour col)"""
1933 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1936 class VListBoxPtr(VListBox
):
1937 def __init__(self
, this
):
1939 if not hasattr(self
,"thisown"): self
.thisown
= 0
1940 self
.__class
__ = VListBox
1941 _windows_
.VListBox_swigregister(VListBoxPtr
)
1942 VListBoxNameStr
= cvar
.VListBoxNameStr
1944 def PreVListBox(*args
, **kwargs
):
1945 """PreVListBox() -> VListBox"""
1946 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1950 class HtmlListBox(VListBox
):
1952 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1953 def __init__(self
, *args
, **kwargs
):
1955 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1956 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
1958 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
1959 self
.this
= newobj
.this
1962 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
1964 def _setCallbackInfo(*args
, **kwargs
):
1965 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1966 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
1968 def Create(*args
, **kwargs
):
1970 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1971 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1973 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
1975 def RefreshAll(*args
, **kwargs
):
1976 """RefreshAll(self)"""
1977 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
1979 def SetItemCount(*args
, **kwargs
):
1980 """SetItemCount(self, size_t count)"""
1981 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
1983 def GetFileSystem(*args
, **kwargs
):
1984 """GetFileSystem(self) -> FileSystem"""
1985 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
1988 class HtmlListBoxPtr(HtmlListBox
):
1989 def __init__(self
, this
):
1991 if not hasattr(self
,"thisown"): self
.thisown
= 0
1992 self
.__class
__ = HtmlListBox
1993 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
1995 def PreHtmlListBox(*args
, **kwargs
):
1996 """PreHtmlListBox() -> HtmlListBox"""
1997 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2001 #---------------------------------------------------------------------------
2003 class TaskBarIcon(_core
.EvtHandler
):
2005 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2006 def __init__(self
, *args
, **kwargs
):
2007 """__init__(self) -> TaskBarIcon"""
2008 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2009 self
.this
= newobj
.this
2012 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2015 if self
.thisown
: destroy(self
)
2018 def Destroy(*args
, **kwargs
):
2022 Deletes the C++ object this Python object is a proxy for.
2024 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2026 def IsOk(*args
, **kwargs
):
2027 """IsOk(self) -> bool"""
2028 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2030 def __nonzero__(self
): return self
.IsOk()
2031 def IsIconInstalled(*args
, **kwargs
):
2032 """IsIconInstalled(self) -> bool"""
2033 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2035 def SetIcon(*args
, **kwargs
):
2036 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2037 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2039 def RemoveIcon(*args
, **kwargs
):
2040 """RemoveIcon(self) -> bool"""
2041 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2043 def PopupMenu(*args
, **kwargs
):
2044 """PopupMenu(self, Menu menu) -> bool"""
2045 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2048 class TaskBarIconPtr(TaskBarIcon
):
2049 def __init__(self
, this
):
2051 if not hasattr(self
,"thisown"): self
.thisown
= 0
2052 self
.__class
__ = TaskBarIcon
2053 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2055 class TaskBarIconEvent(_core
.Event
):
2057 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2058 def __init__(self
, *args
, **kwargs
):
2059 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2060 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2061 self
.this
= newobj
.this
2065 class TaskBarIconEventPtr(TaskBarIconEvent
):
2066 def __init__(self
, this
):
2068 if not hasattr(self
,"thisown"): self
.thisown
= 0
2069 self
.__class
__ = TaskBarIconEvent
2070 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2072 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2073 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2074 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2075 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2076 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2077 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2078 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2079 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2080 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2081 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2082 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2083 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2084 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2085 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2087 #---------------------------------------------------------------------------
2089 class ColourData(_core
.Object
):
2091 This class holds a variety of information related to the colour
2092 chooser dialog, used to transfer settings and results to and from the
2096 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2097 def __init__(self
, *args
, **kwargs
):
2099 __init__(self) -> ColourData
2101 Constructor, sets default values.
2103 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2104 self
.this
= newobj
.this
2107 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2110 if self
.thisown
: destroy(self
)
2113 def GetChooseFull(*args
, **kwargs
):
2115 GetChooseFull(self) -> bool
2117 Under Windows, determines whether the Windows colour dialog will
2118 display the full dialog with custom colour selection controls. Has no
2119 meaning under other platforms. The default value is true.
2121 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2123 def GetColour(*args
, **kwargs
):
2125 GetColour(self) -> Colour
2127 Gets the colour (pre)selected by the dialog.
2129 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2131 def GetCustomColour(*args
, **kwargs
):
2133 GetCustomColour(self, int i) -> Colour
2135 Gets the i'th custom colour associated with the colour dialog. i
2136 should be an integer between 0 and 15. The default custom colours are
2137 all invalid colours.
2139 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2141 def SetChooseFull(*args
, **kwargs
):
2143 SetChooseFull(self, int flag)
2145 Under Windows, tells the Windows colour dialog to display the full
2146 dialog with custom colour selection controls. Under other platforms,
2147 has no effect. The default value is true.
2149 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2151 def SetColour(*args
, **kwargs
):
2153 SetColour(self, Colour colour)
2155 Sets the default colour for the colour dialog. The default colour is
2158 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2160 def SetCustomColour(*args
, **kwargs
):
2162 SetCustomColour(self, int i, Colour colour)
2164 Sets the i'th custom colour for the colour dialog. i should be an
2165 integer between 0 and 15. The default custom colours are all invalid colours.
2167 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2170 class ColourDataPtr(ColourData
):
2171 def __init__(self
, this
):
2173 if not hasattr(self
,"thisown"): self
.thisown
= 0
2174 self
.__class
__ = ColourData
2175 _windows_
.ColourData_swigregister(ColourDataPtr
)
2176 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2177 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2178 DirDialogNameStr
= cvar
.DirDialogNameStr
2179 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2180 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2181 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2183 class ColourDialog(Dialog
):
2184 """This class represents the colour chooser dialog."""
2186 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2187 def __init__(self
, *args
, **kwargs
):
2189 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2191 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2192 which will be copied to the colour dialog's internal ColourData
2195 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2196 self
.this
= newobj
.this
2199 self
._setOORInfo
(self
)
2201 def GetColourData(*args
, **kwargs
):
2203 GetColourData(self) -> ColourData
2205 Returns a reference to the `wx.ColourData` used by the dialog.
2207 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2210 class ColourDialogPtr(ColourDialog
):
2211 def __init__(self
, this
):
2213 if not hasattr(self
,"thisown"): self
.thisown
= 0
2214 self
.__class
__ = ColourDialog
2215 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2217 class DirDialog(Dialog
):
2219 wx.DirDialog allows the user to select a directory by browising the
2223 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2224 def __init__(self
, *args
, **kwargs
):
2226 __init__(self, Window parent, String message=DirSelectorPromptStr,
2227 String defaultPath=EmptyString, long style=0,
2228 Point pos=DefaultPosition, Size size=DefaultSize,
2229 String name=DirDialogNameStr) -> DirDialog
2231 Constructor. Use ShowModal method to show the dialog.
2233 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2234 self
.this
= newobj
.this
2237 self
._setOORInfo
(self
)
2239 def GetPath(*args
, **kwargs
):
2241 GetPath(self) -> String
2243 Returns the default or user-selected path.
2245 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2247 def GetMessage(*args
, **kwargs
):
2249 GetMessage(self) -> String
2251 Returns the message that will be displayed on the dialog.
2253 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2255 def GetStyle(*args
, **kwargs
):
2257 GetStyle(self) -> long
2259 Returns the dialog style.
2261 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2263 def SetMessage(*args
, **kwargs
):
2265 SetMessage(self, String message)
2267 Sets the message that will be displayed on the dialog.
2269 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2271 def SetPath(*args
, **kwargs
):
2273 SetPath(self, String path)
2275 Sets the default path.
2277 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2280 class DirDialogPtr(DirDialog
):
2281 def __init__(self
, this
):
2283 if not hasattr(self
,"thisown"): self
.thisown
= 0
2284 self
.__class
__ = DirDialog
2285 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2287 class FileDialog(Dialog
):
2289 wx.FileDialog allows the user to select one or more files from the
2293 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2294 def __init__(self
, *args
, **kwargs
):
2296 __init__(self, Window parent, String message=FileSelectorPromptStr,
2297 String defaultDir=EmptyString, String defaultFile=EmptyString,
2298 String wildcard=FileSelectorDefaultWildcardStr,
2299 long style=0, Point pos=DefaultPosition) -> FileDialog
2301 Constructor. Use ShowModal method to show the dialog.
2303 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2304 self
.this
= newobj
.this
2307 self
._setOORInfo
(self
)
2309 def SetMessage(*args
, **kwargs
):
2311 SetMessage(self, String message)
2313 Sets the message that will be displayed on the dialog.
2315 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2317 def SetPath(*args
, **kwargs
):
2319 SetPath(self, String path)
2321 Sets the path (the combined directory and filename that will be
2322 returned when the dialog is dismissed).
2324 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2326 def SetDirectory(*args
, **kwargs
):
2328 SetDirectory(self, String dir)
2330 Sets the default directory.
2332 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2334 def SetFilename(*args
, **kwargs
):
2336 SetFilename(self, String name)
2338 Sets the default filename.
2340 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2342 def SetWildcard(*args
, **kwargs
):
2344 SetWildcard(self, String wildCard)
2346 Sets the wildcard, which can contain multiple file types, for
2349 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2352 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2354 def SetStyle(*args
, **kwargs
):
2356 SetStyle(self, long style)
2358 Sets the dialog style.
2360 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2362 def SetFilterIndex(*args
, **kwargs
):
2364 SetFilterIndex(self, int filterIndex)
2366 Sets the default filter index, starting from zero.
2368 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2370 def GetMessage(*args
, **kwargs
):
2372 GetMessage(self) -> String
2374 Returns the message that will be displayed on the dialog.
2376 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2378 def GetPath(*args
, **kwargs
):
2380 GetPath(self) -> String
2382 Returns the full path (directory and filename) of the selected file.
2384 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2386 def GetDirectory(*args
, **kwargs
):
2388 GetDirectory(self) -> String
2390 Returns the default directory.
2392 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2394 def GetFilename(*args
, **kwargs
):
2396 GetFilename(self) -> String
2398 Returns the default filename.
2400 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2402 def GetWildcard(*args
, **kwargs
):
2404 GetWildcard(self) -> String
2406 Returns the file dialog wildcard.
2408 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2410 def GetStyle(*args
, **kwargs
):
2412 GetStyle(self) -> long
2414 Returns the dialog style.
2416 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2418 def GetFilterIndex(*args
, **kwargs
):
2420 GetFilterIndex(self) -> int
2422 Returns the index into the list of filters supplied, optionally, in
2423 the wildcard parameter. Before the dialog is shown, this is the index
2424 which will be used when the dialog is first displayed. After the
2425 dialog is shown, this is the index selected by the user.
2427 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2429 def GetFilenames(*args
, **kwargs
):
2431 GetFilenames(self) -> PyObject
2433 Returns a list of filenames chosen in the dialog. This function
2434 should only be used with the dialogs which have wx.MULTIPLE style, use
2435 GetFilename for the others.
2437 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2439 def GetPaths(*args
, **kwargs
):
2441 GetPaths(self) -> PyObject
2443 Fills the array paths with the full paths of the files chosen. This
2444 function should only be used with the dialogs which have wx.MULTIPLE
2445 style, use GetPath for the others.
2447 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2450 class FileDialogPtr(FileDialog
):
2451 def __init__(self
, this
):
2453 if not hasattr(self
,"thisown"): self
.thisown
= 0
2454 self
.__class
__ = FileDialog
2455 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2457 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2458 class MultiChoiceDialog(Dialog
):
2459 """A simple dialog with a multi selection listbox."""
2461 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2462 def __init__(self
, *args
, **kwargs
):
2464 __init__(Window parent, String message, String caption,
2465 List choices=[], long style=CHOICEDLG_STYLE,
2466 Point pos=DefaultPosition) -> MultiChoiceDialog
2468 Constructor. Use ShowModal method to show the dialog.
2470 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2471 self
.this
= newobj
.this
2474 self
._setOORInfo
(self
)
2476 def SetSelections(*args
, **kwargs
):
2478 SetSelections(List selections)
2480 Specify the items in the list that should be selected, using a list of
2483 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2485 def GetSelections(*args
, **kwargs
):
2487 GetSelections() -> [selections]
2489 Returns a list of integers representing the items that are selected.
2491 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2494 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2495 def __init__(self
, this
):
2497 if not hasattr(self
,"thisown"): self
.thisown
= 0
2498 self
.__class
__ = MultiChoiceDialog
2499 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2501 class SingleChoiceDialog(Dialog
):
2502 """A simple dialog with a single selection listbox."""
2504 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2505 def __init__(self
, *args
, **kwargs
):
2507 __init__(Window parent, String message, String caption,
2508 List choices=[], long style=CHOICEDLG_STYLE,
2509 Point pos=DefaultPosition) -> SingleChoiceDialog
2511 Constructor. Use ShowModal method to show the dialog.
2513 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2514 self
.this
= newobj
.this
2517 self
._setOORInfo
(self
)
2519 def GetSelection(*args
, **kwargs
):
2521 GetSelection(self) -> int
2523 Get the index of teh currently selected item.
2525 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2527 def GetStringSelection(*args
, **kwargs
):
2529 GetStringSelection(self) -> String
2531 Returns the string value of the currently selected item
2533 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2535 def SetSelection(*args
, **kwargs
):
2537 SetSelection(self, int sel)
2539 Set the current selected item to sel
2541 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2544 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2545 def __init__(self
, this
):
2547 if not hasattr(self
,"thisown"): self
.thisown
= 0
2548 self
.__class
__ = SingleChoiceDialog
2549 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2551 class TextEntryDialog(Dialog
):
2552 """A dialog with text control, [ok] and [cancel] buttons"""
2554 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2555 def __init__(self
, *args
, **kwargs
):
2557 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2558 String defaultValue=EmptyString,
2559 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2561 Constructor. Use ShowModal method to show the dialog.
2563 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2564 self
.this
= newobj
.this
2567 self
._setOORInfo
(self
)
2569 def GetValue(*args
, **kwargs
):
2571 GetValue(self) -> String
2573 Returns the text that the user has entered if the user has pressed OK,
2574 or the original value if the user has pressed Cancel.
2576 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2578 def SetValue(*args
, **kwargs
):
2580 SetValue(self, String value)
2582 Sets the default text value.
2584 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2587 class TextEntryDialogPtr(TextEntryDialog
):
2588 def __init__(self
, this
):
2590 if not hasattr(self
,"thisown"): self
.thisown
= 0
2591 self
.__class
__ = TextEntryDialog
2592 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2594 class FontData(_core
.Object
):
2596 This class holds a variety of information related to font dialogs and
2597 is used to transfer settings to and results from a `wx.FontDialog`.
2600 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2601 def __init__(self
, *args
, **kwargs
):
2603 __init__(self) -> FontData
2605 This class holds a variety of information related to font dialogs and
2606 is used to transfer settings to and results from a `wx.FontDialog`.
2608 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2609 self
.this
= newobj
.this
2612 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2615 if self
.thisown
: destroy(self
)
2618 def EnableEffects(*args
, **kwargs
):
2620 EnableEffects(self, bool enable)
2622 Enables or disables 'effects' under MS Windows only. This refers to
2623 the controls for manipulating colour, strikeout and underline
2624 properties. The default value is true.
2626 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2628 def GetAllowSymbols(*args
, **kwargs
):
2630 GetAllowSymbols(self) -> bool
2632 Under MS Windows, returns a flag determining whether symbol fonts can
2633 be selected. Has no effect on other platforms. The default value is
2636 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2638 def GetColour(*args
, **kwargs
):
2640 GetColour(self) -> Colour
2642 Gets the colour associated with the font dialog. The default value is
2645 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2647 def GetChosenFont(*args
, **kwargs
):
2649 GetChosenFont(self) -> Font
2651 Gets the font chosen by the user.
2653 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2655 def GetEnableEffects(*args
, **kwargs
):
2657 GetEnableEffects(self) -> bool
2659 Determines whether 'effects' are enabled under Windows.
2661 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2663 def GetInitialFont(*args
, **kwargs
):
2665 GetInitialFont(self) -> Font
2667 Gets the font that will be initially used by the font dialog. This
2668 should have previously been set by the application.
2670 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2672 def GetShowHelp(*args
, **kwargs
):
2674 GetShowHelp(self) -> bool
2676 Returns true if the Help button will be shown (Windows only). The
2677 default value is false.
2679 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2681 def SetAllowSymbols(*args
, **kwargs
):
2683 SetAllowSymbols(self, bool allowSymbols)
2685 Under MS Windows, determines whether symbol fonts can be selected. Has
2686 no effect on other platforms. The default value is true.
2688 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2690 def SetChosenFont(*args
, **kwargs
):
2692 SetChosenFont(self, Font font)
2694 Sets the font that will be returned to the user (normally for internal
2697 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2699 def SetColour(*args
, **kwargs
):
2701 SetColour(self, Colour colour)
2703 Sets the colour that will be used for the font foreground colour. The
2704 default colour is black.
2706 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2708 def SetInitialFont(*args
, **kwargs
):
2710 SetInitialFont(self, Font font)
2712 Sets the font that will be initially used by the font dialog.
2714 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2716 def SetRange(*args
, **kwargs
):
2718 SetRange(self, int min, int max)
2720 Sets the valid range for the font point size (Windows only). The
2721 default is 0, 0 (unrestricted range).
2723 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2725 def SetShowHelp(*args
, **kwargs
):
2727 SetShowHelp(self, bool showHelp)
2729 Determines whether the Help button will be displayed in the font
2730 dialog (Windows only). The default value is false.
2732 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2735 class FontDataPtr(FontData
):
2736 def __init__(self
, this
):
2738 if not hasattr(self
,"thisown"): self
.thisown
= 0
2739 self
.__class
__ = FontData
2740 _windows_
.FontData_swigregister(FontDataPtr
)
2742 class FontDialog(Dialog
):
2744 wx.FontDialog allows the user to select a system font and its attributes.
2750 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2751 def __init__(self
, *args
, **kwargs
):
2753 __init__(self, Window parent, FontData data) -> FontDialog
2755 Constructor. Pass a parent window and the `wx.FontData` object to be
2756 used to initialize the dialog controls. Call `ShowModal` to display
2757 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2758 results with via the `wx.FontData` returned by `GetFontData`.
2760 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2761 self
.this
= newobj
.this
2764 self
._setOORInfo
(self
)
2766 def GetFontData(*args
, **kwargs
):
2768 GetFontData(self) -> FontData
2770 Returns a reference to the internal `wx.FontData` used by the
2773 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2776 class FontDialogPtr(FontDialog
):
2777 def __init__(self
, this
):
2779 if not hasattr(self
,"thisown"): self
.thisown
= 0
2780 self
.__class
__ = FontDialog
2781 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2783 class MessageDialog(Dialog
):
2785 This class provides a simple dialog that shows a single or multi-line
2786 message, with a choice of OK, Yes, No and/or Cancel buttons.
2789 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2790 def __init__(self
, *args
, **kwargs
):
2792 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2793 long style=wxOK|wxCANCEL|wxCENTRE,
2794 Point pos=DefaultPosition) -> MessageDialog
2796 Constructor, use `ShowModal` to display the dialog.
2798 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2799 self
.this
= newobj
.this
2802 self
._setOORInfo
(self
)
2805 class MessageDialogPtr(MessageDialog
):
2806 def __init__(self
, this
):
2808 if not hasattr(self
,"thisown"): self
.thisown
= 0
2809 self
.__class
__ = MessageDialog
2810 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2812 class ProgressDialog(Frame
):
2814 A dialog that shows a short message and a progress bar. Optionally, it
2815 can display an ABORT button.
2818 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2819 def __init__(self
, *args
, **kwargs
):
2821 __init__(self, String title, String message, int maximum=100, Window parent=None,
2822 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2824 Constructor. Creates the dialog, displays it and disables user input
2825 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2828 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2829 self
.this
= newobj
.this
2832 self
._setOORInfo
(self
)
2834 def Update(*args
, **kwargs
):
2836 Update(self, int value, String newmsg=EmptyString) -> bool
2838 Updates the dialog, setting the progress bar to the new value and, if
2839 given changes the message above it. The value given should be less
2840 than or equal to the maximum value given to the constructor and the
2841 dialog is closed if it is equal to the maximum. Returns true unless
2842 the Cancel button has been pressed.
2844 If false is returned, the application can either immediately destroy
2845 the dialog or ask the user for the confirmation and if the abort is
2846 not confirmed the dialog may be resumed with Resume function.
2848 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2850 def Resume(*args
, **kwargs
):
2854 Can be used to continue with the dialog, after the user had chosen to
2857 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2860 class ProgressDialogPtr(ProgressDialog
):
2861 def __init__(self
, this
):
2863 if not hasattr(self
,"thisown"): self
.thisown
= 0
2864 self
.__class
__ = ProgressDialog
2865 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2867 FR_DOWN
= _windows_
.FR_DOWN
2868 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2869 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2870 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2871 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2872 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2873 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2874 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2875 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2876 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2877 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2878 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2879 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2880 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2881 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2882 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2883 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2885 # For backwards compatibility. Should they be removed?
2886 EVT_COMMAND_FIND
= EVT_FIND
2887 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2888 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2889 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2890 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2892 class FindDialogEvent(_core
.CommandEvent
):
2893 """Events for the FindReplaceDialog"""
2895 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2896 def __init__(self
, *args
, **kwargs
):
2898 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2900 Events for the FindReplaceDialog
2902 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2903 self
.this
= newobj
.this
2906 def GetFlags(*args
, **kwargs
):
2908 GetFlags(self) -> int
2910 Get the currently selected flags: this is the combination of
2911 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2913 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2915 def GetFindString(*args
, **kwargs
):
2917 GetFindString(self) -> String
2919 Return the string to find (never empty).
2921 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2923 def GetReplaceString(*args
, **kwargs
):
2925 GetReplaceString(self) -> String
2927 Return the string to replace the search string with (only for replace
2928 and replace all events).
2930 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2932 def GetDialog(*args
, **kwargs
):
2934 GetDialog(self) -> FindReplaceDialog
2936 Return the pointer to the dialog which generated this event.
2938 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2940 def SetFlags(*args
, **kwargs
):
2941 """SetFlags(self, int flags)"""
2942 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2944 def SetFindString(*args
, **kwargs
):
2945 """SetFindString(self, String str)"""
2946 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2948 def SetReplaceString(*args
, **kwargs
):
2949 """SetReplaceString(self, String str)"""
2950 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2953 class FindDialogEventPtr(FindDialogEvent
):
2954 def __init__(self
, this
):
2956 if not hasattr(self
,"thisown"): self
.thisown
= 0
2957 self
.__class
__ = FindDialogEvent
2958 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
2960 class FindReplaceData(_core
.Object
):
2962 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
2963 to initialize the dialog with the default values and will keep the
2964 last values from the dialog when it is closed. It is also updated each
2965 time a `wx.FindDialogEvent` is generated so instead of using the
2966 `wx.FindDialogEvent` methods you can also directly query this object.
2968 Note that all SetXXX() methods may only be called before showing the
2969 dialog and calling them has no effect later.
2972 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2973 def __init__(self
, *args
, **kwargs
):
2975 __init__(self, int flags=0) -> FindReplaceData
2977 Constuctor initializes the flags to default value (0).
2979 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
2980 self
.this
= newobj
.this
2983 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
2986 if self
.thisown
: destroy(self
)
2989 def GetFindString(*args
, **kwargs
):
2991 GetFindString(self) -> String
2993 Get the string to find.
2995 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
2997 def GetReplaceString(*args
, **kwargs
):
2999 GetReplaceString(self) -> String
3001 Get the replacement string.
3003 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3005 def GetFlags(*args
, **kwargs
):
3007 GetFlags(self) -> int
3009 Get the combination of flag values.
3011 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3013 def SetFlags(*args
, **kwargs
):
3015 SetFlags(self, int flags)
3017 Set the flags to use to initialize the controls of the dialog.
3019 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3021 def SetFindString(*args
, **kwargs
):
3023 SetFindString(self, String str)
3025 Set the string to find (used as initial value by the dialog).
3027 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3029 def SetReplaceString(*args
, **kwargs
):
3031 SetReplaceString(self, String str)
3033 Set the replacement string (used as initial value by the dialog).
3035 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3038 class FindReplaceDataPtr(FindReplaceData
):
3039 def __init__(self
, this
):
3041 if not hasattr(self
,"thisown"): self
.thisown
= 0
3042 self
.__class
__ = FindReplaceData
3043 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3045 class FindReplaceDialog(Dialog
):
3047 wx.FindReplaceDialog is a standard modeless dialog which is used to
3048 allow the user to search for some text (and possibly replace it with
3049 something else). The actual searching is supposed to be done in the
3050 owner window which is the parent of this dialog. Note that it means
3051 that unlike for the other standard dialogs this one must have a parent
3052 window. Also note that there is no way to use this dialog in a modal
3053 way; it is always, by design and implementation, modeless.
3056 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3057 def __init__(self
, *args
, **kwargs
):
3059 __init__(self, Window parent, FindReplaceData data, String title,
3060 int style=0) -> FindReplaceDialog
3062 Create a FindReplaceDialog. The parent and data parameters must be
3063 non-None. Use Show to display the dialog.
3065 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3066 self
.this
= newobj
.this
3069 self
._setOORInfo
(self
)
3071 def Create(*args
, **kwargs
):
3073 Create(self, Window parent, FindReplaceData data, String title,
3074 int style=0) -> bool
3076 Create the dialog, for 2-phase create.
3078 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3080 def GetData(*args
, **kwargs
):
3082 GetData(self) -> FindReplaceData
3084 Get the FindReplaceData object used by this dialog.
3086 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3088 def SetData(*args
, **kwargs
):
3090 SetData(self, FindReplaceData data)
3092 Set the FindReplaceData object used by this dialog.
3094 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3097 class FindReplaceDialogPtr(FindReplaceDialog
):
3098 def __init__(self
, this
):
3100 if not hasattr(self
,"thisown"): self
.thisown
= 0
3101 self
.__class
__ = FindReplaceDialog
3102 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3104 def PreFindReplaceDialog(*args
, **kwargs
):
3106 PreFindReplaceDialog() -> FindReplaceDialog
3108 Precreate a FindReplaceDialog for 2-phase creation
3110 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3114 #---------------------------------------------------------------------------
3116 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3117 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3118 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3119 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3120 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3121 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3122 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3123 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3124 class MDIParentFrame(Frame
):
3126 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3127 def __init__(self
, *args
, **kwargs
):
3129 __init__(self, Window parent, int id=-1, String title=EmptyString,
3130 Point pos=DefaultPosition, Size size=DefaultSize,
3131 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3132 String name=FrameNameStr) -> MDIParentFrame
3134 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3135 self
.this
= newobj
.this
3138 self
._setOORInfo
(self
)
3140 def Create(*args
, **kwargs
):
3142 Create(self, Window parent, int id=-1, String title=EmptyString,
3143 Point pos=DefaultPosition, Size size=DefaultSize,
3144 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3145 String name=FrameNameStr) -> bool
3147 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3149 def ActivateNext(*args
, **kwargs
):
3150 """ActivateNext(self)"""
3151 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3153 def ActivatePrevious(*args
, **kwargs
):
3154 """ActivatePrevious(self)"""
3155 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3157 def ArrangeIcons(*args
, **kwargs
):
3158 """ArrangeIcons(self)"""
3159 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3161 def Cascade(*args
, **kwargs
):
3163 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3165 def GetActiveChild(*args
, **kwargs
):
3166 """GetActiveChild(self) -> MDIChildFrame"""
3167 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3169 def GetClientWindow(*args
, **kwargs
):
3170 """GetClientWindow(self) -> MDIClientWindow"""
3171 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3173 def GetToolBar(*args
, **kwargs
):
3174 """GetToolBar(self) -> Window"""
3175 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3177 def Tile(*args
, **kwargs
):
3179 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3182 class MDIParentFramePtr(MDIParentFrame
):
3183 def __init__(self
, this
):
3185 if not hasattr(self
,"thisown"): self
.thisown
= 0
3186 self
.__class
__ = MDIParentFrame
3187 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3189 def PreMDIParentFrame(*args
, **kwargs
):
3190 """PreMDIParentFrame() -> MDIParentFrame"""
3191 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3195 class MDIChildFrame(Frame
):
3197 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3198 def __init__(self
, *args
, **kwargs
):
3200 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3201 Point pos=DefaultPosition, Size size=DefaultSize,
3202 long style=DEFAULT_FRAME_STYLE,
3203 String name=FrameNameStr) -> MDIChildFrame
3205 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3206 self
.this
= newobj
.this
3209 self
._setOORInfo
(self
)
3211 def Create(*args
, **kwargs
):
3213 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3214 Point pos=DefaultPosition, Size size=DefaultSize,
3215 long style=DEFAULT_FRAME_STYLE,
3216 String name=FrameNameStr) -> bool
3218 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3220 def Activate(*args
, **kwargs
):
3221 """Activate(self)"""
3222 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3224 def Maximize(*args
, **kwargs
):
3225 """Maximize(self, bool maximize)"""
3226 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3228 def Restore(*args
, **kwargs
):
3230 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3233 class MDIChildFramePtr(MDIChildFrame
):
3234 def __init__(self
, this
):
3236 if not hasattr(self
,"thisown"): self
.thisown
= 0
3237 self
.__class
__ = MDIChildFrame
3238 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3240 def PreMDIChildFrame(*args
, **kwargs
):
3241 """PreMDIChildFrame() -> MDIChildFrame"""
3242 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3246 class MDIClientWindow(_core
.Window
):
3248 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3249 def __init__(self
, *args
, **kwargs
):
3250 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3251 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3252 self
.this
= newobj
.this
3255 self
._setOORInfo
(self
)
3257 def Create(*args
, **kwargs
):
3258 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3259 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3262 class MDIClientWindowPtr(MDIClientWindow
):
3263 def __init__(self
, this
):
3265 if not hasattr(self
,"thisown"): self
.thisown
= 0
3266 self
.__class
__ = MDIClientWindow
3267 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3269 def PreMDIClientWindow(*args
, **kwargs
):
3270 """PreMDIClientWindow() -> MDIClientWindow"""
3271 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3275 #---------------------------------------------------------------------------
3277 class PyWindow(_core
.Window
):
3279 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3280 def __init__(self
, *args
, **kwargs
):
3282 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3283 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3285 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3286 self
.this
= newobj
.this
3289 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3291 def _setCallbackInfo(*args
, **kwargs
):
3292 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3293 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3295 def SetBestSize(*args
, **kwargs
):
3296 """SetBestSize(self, Size size)"""
3297 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3299 def base_DoMoveWindow(*args
, **kwargs
):
3300 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3301 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3303 def base_DoSetSize(*args
, **kwargs
):
3304 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3305 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3307 def base_DoSetClientSize(*args
, **kwargs
):
3308 """base_DoSetClientSize(self, int width, int height)"""
3309 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3311 def base_DoSetVirtualSize(*args
, **kwargs
):
3312 """base_DoSetVirtualSize(self, int x, int y)"""
3313 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3315 def base_DoGetSize(*args
, **kwargs
):
3316 """base_DoGetSize() -> (width, height)"""
3317 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3319 def base_DoGetClientSize(*args
, **kwargs
):
3320 """base_DoGetClientSize() -> (width, height)"""
3321 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3323 def base_DoGetPosition(*args
, **kwargs
):
3324 """base_DoGetPosition() -> (x,y)"""
3325 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3327 def base_DoGetVirtualSize(*args
, **kwargs
):
3328 """base_DoGetVirtualSize(self) -> Size"""
3329 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3331 def base_DoGetBestSize(*args
, **kwargs
):
3332 """base_DoGetBestSize(self) -> Size"""
3333 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3335 def base_InitDialog(*args
, **kwargs
):
3336 """base_InitDialog(self)"""
3337 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3339 def base_TransferDataToWindow(*args
, **kwargs
):
3340 """base_TransferDataToWindow(self) -> bool"""
3341 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3343 def base_TransferDataFromWindow(*args
, **kwargs
):
3344 """base_TransferDataFromWindow(self) -> bool"""
3345 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3347 def base_Validate(*args
, **kwargs
):
3348 """base_Validate(self) -> bool"""
3349 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3351 def base_AcceptsFocus(*args
, **kwargs
):
3352 """base_AcceptsFocus(self) -> bool"""
3353 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3355 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3356 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3357 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3359 def base_GetMaxSize(*args
, **kwargs
):
3360 """base_GetMaxSize(self) -> Size"""
3361 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3363 def base_AddChild(*args
, **kwargs
):
3364 """base_AddChild(self, Window child)"""
3365 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3367 def base_RemoveChild(*args
, **kwargs
):
3368 """base_RemoveChild(self, Window child)"""
3369 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3371 def base_ShouldInheritColours(*args
, **kwargs
):
3372 """base_ShouldInheritColours(self) -> bool"""
3373 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3375 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3376 """base_ApplyParentThemeBackground(self, Colour c)"""
3377 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3379 def base_GetDefaultAttributes(*args
, **kwargs
):
3380 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3381 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3384 class PyWindowPtr(PyWindow
):
3385 def __init__(self
, this
):
3387 if not hasattr(self
,"thisown"): self
.thisown
= 0
3388 self
.__class
__ = PyWindow
3389 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3391 def PrePyWindow(*args
, **kwargs
):
3392 """PrePyWindow() -> PyWindow"""
3393 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3397 class PyPanel(Panel
):
3399 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3400 def __init__(self
, *args
, **kwargs
):
3402 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3403 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3405 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3406 self
.this
= newobj
.this
3409 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3411 def _setCallbackInfo(*args
, **kwargs
):
3412 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3413 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3415 def SetBestSize(*args
, **kwargs
):
3416 """SetBestSize(self, Size size)"""
3417 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3419 def base_DoMoveWindow(*args
, **kwargs
):
3420 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3421 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3423 def base_DoSetSize(*args
, **kwargs
):
3424 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3425 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3427 def base_DoSetClientSize(*args
, **kwargs
):
3428 """base_DoSetClientSize(self, int width, int height)"""
3429 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3431 def base_DoSetVirtualSize(*args
, **kwargs
):
3432 """base_DoSetVirtualSize(self, int x, int y)"""
3433 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3435 def base_DoGetSize(*args
, **kwargs
):
3436 """base_DoGetSize() -> (width, height)"""
3437 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3439 def base_DoGetClientSize(*args
, **kwargs
):
3440 """base_DoGetClientSize() -> (width, height)"""
3441 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3443 def base_DoGetPosition(*args
, **kwargs
):
3444 """base_DoGetPosition() -> (x,y)"""
3445 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3447 def base_DoGetVirtualSize(*args
, **kwargs
):
3448 """base_DoGetVirtualSize(self) -> Size"""
3449 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3451 def base_DoGetBestSize(*args
, **kwargs
):
3452 """base_DoGetBestSize(self) -> Size"""
3453 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3455 def base_InitDialog(*args
, **kwargs
):
3456 """base_InitDialog(self)"""
3457 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3459 def base_TransferDataToWindow(*args
, **kwargs
):
3460 """base_TransferDataToWindow(self) -> bool"""
3461 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3463 def base_TransferDataFromWindow(*args
, **kwargs
):
3464 """base_TransferDataFromWindow(self) -> bool"""
3465 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3467 def base_Validate(*args
, **kwargs
):
3468 """base_Validate(self) -> bool"""
3469 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3471 def base_AcceptsFocus(*args
, **kwargs
):
3472 """base_AcceptsFocus(self) -> bool"""
3473 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3475 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3476 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3477 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3479 def base_GetMaxSize(*args
, **kwargs
):
3480 """base_GetMaxSize(self) -> Size"""
3481 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3483 def base_AddChild(*args
, **kwargs
):
3484 """base_AddChild(self, Window child)"""
3485 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3487 def base_RemoveChild(*args
, **kwargs
):
3488 """base_RemoveChild(self, Window child)"""
3489 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3491 def base_ShouldInheritColours(*args
, **kwargs
):
3492 """base_ShouldInheritColours(self) -> bool"""
3493 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3495 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3496 """base_ApplyParentThemeBackground(self, Colour c)"""
3497 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3499 def base_GetDefaultAttributes(*args
, **kwargs
):
3500 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3501 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3504 class PyPanelPtr(PyPanel
):
3505 def __init__(self
, this
):
3507 if not hasattr(self
,"thisown"): self
.thisown
= 0
3508 self
.__class
__ = PyPanel
3509 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3511 def PrePyPanel(*args
, **kwargs
):
3512 """PrePyPanel() -> PyPanel"""
3513 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3517 class PyScrolledWindow(ScrolledWindow
):
3519 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3520 def __init__(self
, *args
, **kwargs
):
3522 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3523 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3525 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3526 self
.this
= newobj
.this
3529 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3531 def _setCallbackInfo(*args
, **kwargs
):
3532 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3533 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3535 def SetBestSize(*args
, **kwargs
):
3536 """SetBestSize(self, Size size)"""
3537 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3539 def base_DoMoveWindow(*args
, **kwargs
):
3540 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3541 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3543 def base_DoSetSize(*args
, **kwargs
):
3544 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3545 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3547 def base_DoSetClientSize(*args
, **kwargs
):
3548 """base_DoSetClientSize(self, int width, int height)"""
3549 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3551 def base_DoSetVirtualSize(*args
, **kwargs
):
3552 """base_DoSetVirtualSize(self, int x, int y)"""
3553 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3555 def base_DoGetSize(*args
, **kwargs
):
3556 """base_DoGetSize() -> (width, height)"""
3557 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3559 def base_DoGetClientSize(*args
, **kwargs
):
3560 """base_DoGetClientSize() -> (width, height)"""
3561 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3563 def base_DoGetPosition(*args
, **kwargs
):
3564 """base_DoGetPosition() -> (x,y)"""
3565 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3567 def base_DoGetVirtualSize(*args
, **kwargs
):
3568 """base_DoGetVirtualSize(self) -> Size"""
3569 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3571 def base_DoGetBestSize(*args
, **kwargs
):
3572 """base_DoGetBestSize(self) -> Size"""
3573 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3575 def base_InitDialog(*args
, **kwargs
):
3576 """base_InitDialog(self)"""
3577 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3579 def base_TransferDataToWindow(*args
, **kwargs
):
3580 """base_TransferDataToWindow(self) -> bool"""
3581 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3583 def base_TransferDataFromWindow(*args
, **kwargs
):
3584 """base_TransferDataFromWindow(self) -> bool"""
3585 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3587 def base_Validate(*args
, **kwargs
):
3588 """base_Validate(self) -> bool"""
3589 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3591 def base_AcceptsFocus(*args
, **kwargs
):
3592 """base_AcceptsFocus(self) -> bool"""
3593 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3595 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3596 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3597 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3599 def base_GetMaxSize(*args
, **kwargs
):
3600 """base_GetMaxSize(self) -> Size"""
3601 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3603 def base_AddChild(*args
, **kwargs
):
3604 """base_AddChild(self, Window child)"""
3605 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3607 def base_RemoveChild(*args
, **kwargs
):
3608 """base_RemoveChild(self, Window child)"""
3609 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3611 def base_ShouldInheritColours(*args
, **kwargs
):
3612 """base_ShouldInheritColours(self) -> bool"""
3613 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3615 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3616 """base_ApplyParentThemeBackground(self, Colour c)"""
3617 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3619 def base_GetDefaultAttributes(*args
, **kwargs
):
3620 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3621 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3624 class PyScrolledWindowPtr(PyScrolledWindow
):
3625 def __init__(self
, this
):
3627 if not hasattr(self
,"thisown"): self
.thisown
= 0
3628 self
.__class
__ = PyScrolledWindow
3629 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3631 def PrePyScrolledWindow(*args
, **kwargs
):
3632 """PrePyScrolledWindow() -> PyScrolledWindow"""
3633 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3637 #---------------------------------------------------------------------------
3639 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3640 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3641 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3642 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3643 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3644 class PrintData(_core
.Object
):
3646 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3647 def __init__(self
, *args
):
3649 __init__(self) -> PrintData
3650 __init__(self, PrintData data) -> PrintData
3652 newobj
= _windows_
.new_PrintData(*args
)
3653 self
.this
= newobj
.this
3656 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3659 if self
.thisown
: destroy(self
)
3662 def GetNoCopies(*args
, **kwargs
):
3663 """GetNoCopies(self) -> int"""
3664 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3666 def GetCollate(*args
, **kwargs
):
3667 """GetCollate(self) -> bool"""
3668 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3670 def GetOrientation(*args
, **kwargs
):
3671 """GetOrientation(self) -> int"""
3672 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3674 def Ok(*args
, **kwargs
):
3675 """Ok(self) -> bool"""
3676 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3678 def GetPrinterName(*args
, **kwargs
):
3679 """GetPrinterName(self) -> String"""
3680 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3682 def GetColour(*args
, **kwargs
):
3683 """GetColour(self) -> bool"""
3684 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3686 def GetDuplex(*args
, **kwargs
):
3687 """GetDuplex(self) -> int"""
3688 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3690 def GetPaperId(*args
, **kwargs
):
3691 """GetPaperId(self) -> int"""
3692 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3694 def GetPaperSize(*args
, **kwargs
):
3695 """GetPaperSize(self) -> Size"""
3696 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3698 def GetQuality(*args
, **kwargs
):
3699 """GetQuality(self) -> int"""
3700 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3702 def SetNoCopies(*args
, **kwargs
):
3703 """SetNoCopies(self, int v)"""
3704 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3706 def SetCollate(*args
, **kwargs
):
3707 """SetCollate(self, bool flag)"""
3708 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3710 def SetOrientation(*args
, **kwargs
):
3711 """SetOrientation(self, int orient)"""
3712 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3714 def SetPrinterName(*args
, **kwargs
):
3715 """SetPrinterName(self, String name)"""
3716 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3718 def SetColour(*args
, **kwargs
):
3719 """SetColour(self, bool colour)"""
3720 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3722 def SetDuplex(*args
, **kwargs
):
3723 """SetDuplex(self, int duplex)"""
3724 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3726 def SetPaperId(*args
, **kwargs
):
3727 """SetPaperId(self, int sizeId)"""
3728 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3730 def SetPaperSize(*args
, **kwargs
):
3731 """SetPaperSize(self, Size sz)"""
3732 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3734 def SetQuality(*args
, **kwargs
):
3735 """SetQuality(self, int quality)"""
3736 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3738 def GetPrinterCommand(*args
, **kwargs
):
3739 """GetPrinterCommand(self) -> String"""
3740 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3742 def GetPrinterOptions(*args
, **kwargs
):
3743 """GetPrinterOptions(self) -> String"""
3744 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3746 def GetPreviewCommand(*args
, **kwargs
):
3747 """GetPreviewCommand(self) -> String"""
3748 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3750 def GetFilename(*args
, **kwargs
):
3751 """GetFilename(self) -> String"""
3752 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3754 def GetFontMetricPath(*args
, **kwargs
):
3755 """GetFontMetricPath(self) -> String"""
3756 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3758 def GetPrinterScaleX(*args
, **kwargs
):
3759 """GetPrinterScaleX(self) -> double"""
3760 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3762 def GetPrinterScaleY(*args
, **kwargs
):
3763 """GetPrinterScaleY(self) -> double"""
3764 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3766 def GetPrinterTranslateX(*args
, **kwargs
):
3767 """GetPrinterTranslateX(self) -> long"""
3768 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3770 def GetPrinterTranslateY(*args
, **kwargs
):
3771 """GetPrinterTranslateY(self) -> long"""
3772 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3774 def GetPrintMode(*args
, **kwargs
):
3775 """GetPrintMode(self) -> int"""
3776 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3778 def SetPrinterCommand(*args
, **kwargs
):
3779 """SetPrinterCommand(self, String command)"""
3780 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3782 def SetPrinterOptions(*args
, **kwargs
):
3783 """SetPrinterOptions(self, String options)"""
3784 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3786 def SetPreviewCommand(*args
, **kwargs
):
3787 """SetPreviewCommand(self, String command)"""
3788 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3790 def SetFilename(*args
, **kwargs
):
3791 """SetFilename(self, String filename)"""
3792 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3794 def SetFontMetricPath(*args
, **kwargs
):
3795 """SetFontMetricPath(self, String path)"""
3796 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3798 def SetPrinterScaleX(*args
, **kwargs
):
3799 """SetPrinterScaleX(self, double x)"""
3800 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3802 def SetPrinterScaleY(*args
, **kwargs
):
3803 """SetPrinterScaleY(self, double y)"""
3804 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3806 def SetPrinterScaling(*args
, **kwargs
):
3807 """SetPrinterScaling(self, double x, double y)"""
3808 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3810 def SetPrinterTranslateX(*args
, **kwargs
):
3811 """SetPrinterTranslateX(self, long x)"""
3812 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3814 def SetPrinterTranslateY(*args
, **kwargs
):
3815 """SetPrinterTranslateY(self, long y)"""
3816 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3818 def SetPrinterTranslation(*args
, **kwargs
):
3819 """SetPrinterTranslation(self, long x, long y)"""
3820 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3822 def SetPrintMode(*args
, **kwargs
):
3823 """SetPrintMode(self, int printMode)"""
3824 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3826 def GetOutputStream(*args
, **kwargs
):
3827 """GetOutputStream(self) -> OutputStream"""
3828 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3830 def SetOutputStream(*args
, **kwargs
):
3831 """SetOutputStream(self, OutputStream outputstream)"""
3832 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3834 def __nonzero__(self
): return self
.Ok()
3836 class PrintDataPtr(PrintData
):
3837 def __init__(self
, this
):
3839 if not hasattr(self
,"thisown"): self
.thisown
= 0
3840 self
.__class
__ = PrintData
3841 _windows_
.PrintData_swigregister(PrintDataPtr
)
3842 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3843 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3845 class PageSetupDialogData(_core
.Object
):
3847 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3848 def __init__(self
, *args
):
3850 __init__(self) -> PageSetupDialogData
3851 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3853 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3854 self
.this
= newobj
.this
3857 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3860 if self
.thisown
: destroy(self
)
3863 def EnableHelp(*args
, **kwargs
):
3864 """EnableHelp(self, bool flag)"""
3865 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3867 def EnableMargins(*args
, **kwargs
):
3868 """EnableMargins(self, bool flag)"""
3869 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3871 def EnableOrientation(*args
, **kwargs
):
3872 """EnableOrientation(self, bool flag)"""
3873 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3875 def EnablePaper(*args
, **kwargs
):
3876 """EnablePaper(self, bool flag)"""
3877 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3879 def EnablePrinter(*args
, **kwargs
):
3880 """EnablePrinter(self, bool flag)"""
3881 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3883 def GetDefaultMinMargins(*args
, **kwargs
):
3884 """GetDefaultMinMargins(self) -> bool"""
3885 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3887 def GetEnableMargins(*args
, **kwargs
):
3888 """GetEnableMargins(self) -> bool"""
3889 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3891 def GetEnableOrientation(*args
, **kwargs
):
3892 """GetEnableOrientation(self) -> bool"""
3893 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3895 def GetEnablePaper(*args
, **kwargs
):
3896 """GetEnablePaper(self) -> bool"""
3897 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3899 def GetEnablePrinter(*args
, **kwargs
):
3900 """GetEnablePrinter(self) -> bool"""
3901 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3903 def GetEnableHelp(*args
, **kwargs
):
3904 """GetEnableHelp(self) -> bool"""
3905 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3907 def GetDefaultInfo(*args
, **kwargs
):
3908 """GetDefaultInfo(self) -> bool"""
3909 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3911 def GetMarginTopLeft(*args
, **kwargs
):
3912 """GetMarginTopLeft(self) -> Point"""
3913 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3915 def GetMarginBottomRight(*args
, **kwargs
):
3916 """GetMarginBottomRight(self) -> Point"""
3917 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3919 def GetMinMarginTopLeft(*args
, **kwargs
):
3920 """GetMinMarginTopLeft(self) -> Point"""
3921 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3923 def GetMinMarginBottomRight(*args
, **kwargs
):
3924 """GetMinMarginBottomRight(self) -> Point"""
3925 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3927 def GetPaperId(*args
, **kwargs
):
3928 """GetPaperId(self) -> int"""
3929 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3931 def GetPaperSize(*args
, **kwargs
):
3932 """GetPaperSize(self) -> Size"""
3933 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3935 def GetPrintData(*args
, **kwargs
):
3936 """GetPrintData(self) -> PrintData"""
3937 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3939 def Ok(*args
, **kwargs
):
3940 """Ok(self) -> bool"""
3941 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3943 def SetDefaultInfo(*args
, **kwargs
):
3944 """SetDefaultInfo(self, bool flag)"""
3945 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
3947 def SetDefaultMinMargins(*args
, **kwargs
):
3948 """SetDefaultMinMargins(self, bool flag)"""
3949 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
3951 def SetMarginTopLeft(*args
, **kwargs
):
3952 """SetMarginTopLeft(self, Point pt)"""
3953 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
3955 def SetMarginBottomRight(*args
, **kwargs
):
3956 """SetMarginBottomRight(self, Point pt)"""
3957 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
3959 def SetMinMarginTopLeft(*args
, **kwargs
):
3960 """SetMinMarginTopLeft(self, Point pt)"""
3961 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
3963 def SetMinMarginBottomRight(*args
, **kwargs
):
3964 """SetMinMarginBottomRight(self, Point pt)"""
3965 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
3967 def SetPaperId(*args
, **kwargs
):
3968 """SetPaperId(self, int id)"""
3969 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
3971 def SetPaperSize(*args
, **kwargs
):
3972 """SetPaperSize(self, Size size)"""
3973 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
3975 def SetPrintData(*args
, **kwargs
):
3976 """SetPrintData(self, PrintData printData)"""
3977 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
3979 def __nonzero__(self
): return self
.Ok()
3981 class PageSetupDialogDataPtr(PageSetupDialogData
):
3982 def __init__(self
, this
):
3984 if not hasattr(self
,"thisown"): self
.thisown
= 0
3985 self
.__class
__ = PageSetupDialogData
3986 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
3988 class PageSetupDialog(Dialog
):
3990 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3991 def __init__(self
, *args
, **kwargs
):
3992 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
3993 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
3994 self
.this
= newobj
.this
3997 self
._setOORInfo
(self
)
3999 def GetPageSetupData(*args
, **kwargs
):
4000 """GetPageSetupData(self) -> PageSetupDialogData"""
4001 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4003 def ShowModal(*args
, **kwargs
):
4004 """ShowModal(self) -> int"""
4005 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4008 class PageSetupDialogPtr(PageSetupDialog
):
4009 def __init__(self
, this
):
4011 if not hasattr(self
,"thisown"): self
.thisown
= 0
4012 self
.__class
__ = PageSetupDialog
4013 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4015 class PrintDialogData(_core
.Object
):
4017 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4018 def __init__(self
, *args
):
4020 __init__(self) -> PrintDialogData
4021 __init__(self, PrintData printData) -> PrintDialogData
4023 newobj
= _windows_
.new_PrintDialogData(*args
)
4024 self
.this
= newobj
.this
4027 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4030 if self
.thisown
: destroy(self
)
4033 def GetFromPage(*args
, **kwargs
):
4034 """GetFromPage(self) -> int"""
4035 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4037 def GetToPage(*args
, **kwargs
):
4038 """GetToPage(self) -> int"""
4039 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4041 def GetMinPage(*args
, **kwargs
):
4042 """GetMinPage(self) -> int"""
4043 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4045 def GetMaxPage(*args
, **kwargs
):
4046 """GetMaxPage(self) -> int"""
4047 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4049 def GetNoCopies(*args
, **kwargs
):
4050 """GetNoCopies(self) -> int"""
4051 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4053 def GetAllPages(*args
, **kwargs
):
4054 """GetAllPages(self) -> bool"""
4055 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4057 def GetSelection(*args
, **kwargs
):
4058 """GetSelection(self) -> bool"""
4059 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4061 def GetCollate(*args
, **kwargs
):
4062 """GetCollate(self) -> bool"""
4063 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4065 def GetPrintToFile(*args
, **kwargs
):
4066 """GetPrintToFile(self) -> bool"""
4067 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4069 def GetSetupDialog(*args
, **kwargs
):
4070 """GetSetupDialog(self) -> bool"""
4071 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4073 def SetFromPage(*args
, **kwargs
):
4074 """SetFromPage(self, int v)"""
4075 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4077 def SetToPage(*args
, **kwargs
):
4078 """SetToPage(self, int v)"""
4079 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4081 def SetMinPage(*args
, **kwargs
):
4082 """SetMinPage(self, int v)"""
4083 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4085 def SetMaxPage(*args
, **kwargs
):
4086 """SetMaxPage(self, int v)"""
4087 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4089 def SetNoCopies(*args
, **kwargs
):
4090 """SetNoCopies(self, int v)"""
4091 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4093 def SetAllPages(*args
, **kwargs
):
4094 """SetAllPages(self, bool flag)"""
4095 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4097 def SetSelection(*args
, **kwargs
):
4098 """SetSelection(self, bool flag)"""
4099 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4101 def SetCollate(*args
, **kwargs
):
4102 """SetCollate(self, bool flag)"""
4103 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4105 def SetPrintToFile(*args
, **kwargs
):
4106 """SetPrintToFile(self, bool flag)"""
4107 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4109 def SetSetupDialog(*args
, **kwargs
):
4110 """SetSetupDialog(self, bool flag)"""
4111 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4113 def EnablePrintToFile(*args
, **kwargs
):
4114 """EnablePrintToFile(self, bool flag)"""
4115 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4117 def EnableSelection(*args
, **kwargs
):
4118 """EnableSelection(self, bool flag)"""
4119 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4121 def EnablePageNumbers(*args
, **kwargs
):
4122 """EnablePageNumbers(self, bool flag)"""
4123 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4125 def EnableHelp(*args
, **kwargs
):
4126 """EnableHelp(self, bool flag)"""
4127 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4129 def GetEnablePrintToFile(*args
, **kwargs
):
4130 """GetEnablePrintToFile(self) -> bool"""
4131 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4133 def GetEnableSelection(*args
, **kwargs
):
4134 """GetEnableSelection(self) -> bool"""
4135 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4137 def GetEnablePageNumbers(*args
, **kwargs
):
4138 """GetEnablePageNumbers(self) -> bool"""
4139 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4141 def GetEnableHelp(*args
, **kwargs
):
4142 """GetEnableHelp(self) -> bool"""
4143 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4145 def Ok(*args
, **kwargs
):
4146 """Ok(self) -> bool"""
4147 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4149 def GetPrintData(*args
, **kwargs
):
4150 """GetPrintData(self) -> PrintData"""
4151 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4153 def SetPrintData(*args
, **kwargs
):
4154 """SetPrintData(self, PrintData printData)"""
4155 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4157 def __nonzero__(self
): return self
.Ok()
4159 class PrintDialogDataPtr(PrintDialogData
):
4160 def __init__(self
, this
):
4162 if not hasattr(self
,"thisown"): self
.thisown
= 0
4163 self
.__class
__ = PrintDialogData
4164 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4166 class PrintDialog(Dialog
):
4168 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4169 def __init__(self
, *args
, **kwargs
):
4170 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4171 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4172 self
.this
= newobj
.this
4175 self
._setOORInfo
(self
)
4177 def GetPrintDialogData(*args
, **kwargs
):
4178 """GetPrintDialogData(self) -> PrintDialogData"""
4179 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4181 def GetPrintDC(*args
, **kwargs
):
4182 """GetPrintDC(self) -> DC"""
4183 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4185 def ShowModal(*args
, **kwargs
):
4186 """ShowModal(self) -> int"""
4187 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4190 class PrintDialogPtr(PrintDialog
):
4191 def __init__(self
, this
):
4193 if not hasattr(self
,"thisown"): self
.thisown
= 0
4194 self
.__class
__ = PrintDialog
4195 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4197 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4198 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4199 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4200 class Printer(_core
.Object
):
4202 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4203 def __init__(self
, *args
, **kwargs
):
4204 """__init__(self, PrintDialogData data=None) -> Printer"""
4205 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4206 self
.this
= newobj
.this
4209 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4212 if self
.thisown
: destroy(self
)
4215 def CreateAbortWindow(*args
, **kwargs
):
4216 """CreateAbortWindow(self, Window parent, Printout printout)"""
4217 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4219 def GetPrintDialogData(*args
, **kwargs
):
4220 """GetPrintDialogData(self) -> PrintDialogData"""
4221 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4223 def Print(*args
, **kwargs
):
4224 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4225 return _windows_
.Printer_Print(*args
, **kwargs
)
4227 def PrintDialog(*args
, **kwargs
):
4228 """PrintDialog(self, Window parent) -> DC"""
4229 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4231 def ReportError(*args
, **kwargs
):
4232 """ReportError(self, Window parent, Printout printout, String message)"""
4233 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4235 def Setup(*args
, **kwargs
):
4236 """Setup(self, Window parent) -> bool"""
4237 return _windows_
.Printer_Setup(*args
, **kwargs
)
4239 def GetAbort(*args
, **kwargs
):
4240 """GetAbort(self) -> bool"""
4241 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4243 def GetLastError(*args
, **kwargs
):
4244 """GetLastError() -> int"""
4245 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4247 GetLastError
= staticmethod(GetLastError
)
4249 class PrinterPtr(Printer
):
4250 def __init__(self
, this
):
4252 if not hasattr(self
,"thisown"): self
.thisown
= 0
4253 self
.__class
__ = Printer
4254 _windows_
.Printer_swigregister(PrinterPtr
)
4256 def Printer_GetLastError(*args
, **kwargs
):
4257 """Printer_GetLastError() -> int"""
4258 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4260 class Printout(_core
.Object
):
4262 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4263 def __init__(self
, *args
, **kwargs
):
4264 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4265 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4266 self
.this
= newobj
.this
4269 self
._setCallbackInfo
(self
, Printout
)
4271 def _setCallbackInfo(*args
, **kwargs
):
4272 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4273 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4275 def GetTitle(*args
, **kwargs
):
4276 """GetTitle(self) -> String"""
4277 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4279 def GetDC(*args
, **kwargs
):
4280 """GetDC(self) -> DC"""
4281 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4283 def SetDC(*args
, **kwargs
):
4284 """SetDC(self, DC dc)"""
4285 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4287 def SetPageSizePixels(*args
, **kwargs
):
4288 """SetPageSizePixels(self, int w, int h)"""
4289 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4291 def GetPageSizePixels(*args
, **kwargs
):
4292 """GetPageSizePixels() -> (w, h)"""
4293 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4295 def SetPageSizeMM(*args
, **kwargs
):
4296 """SetPageSizeMM(self, int w, int h)"""
4297 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4299 def GetPageSizeMM(*args
, **kwargs
):
4300 """GetPageSizeMM() -> (w, h)"""
4301 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4303 def SetPPIScreen(*args
, **kwargs
):
4304 """SetPPIScreen(self, int x, int y)"""
4305 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4307 def GetPPIScreen(*args
, **kwargs
):
4308 """GetPPIScreen() -> (x,y)"""
4309 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4311 def SetPPIPrinter(*args
, **kwargs
):
4312 """SetPPIPrinter(self, int x, int y)"""
4313 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4315 def GetPPIPrinter(*args
, **kwargs
):
4316 """GetPPIPrinter() -> (x,y)"""
4317 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4319 def IsPreview(*args
, **kwargs
):
4320 """IsPreview(self) -> bool"""
4321 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4323 def SetIsPreview(*args
, **kwargs
):
4324 """SetIsPreview(self, bool p)"""
4325 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4327 def base_OnBeginDocument(*args
, **kwargs
):
4328 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4329 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4331 def base_OnEndDocument(*args
, **kwargs
):
4332 """base_OnEndDocument(self)"""
4333 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4335 def base_OnBeginPrinting(*args
, **kwargs
):
4336 """base_OnBeginPrinting(self)"""
4337 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4339 def base_OnEndPrinting(*args
, **kwargs
):
4340 """base_OnEndPrinting(self)"""
4341 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4343 def base_OnPreparePrinting(*args
, **kwargs
):
4344 """base_OnPreparePrinting(self)"""
4345 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4347 def base_HasPage(*args
, **kwargs
):
4348 """base_HasPage(self, int page) -> bool"""
4349 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4351 def base_GetPageInfo(*args
, **kwargs
):
4352 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4353 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4356 class PrintoutPtr(Printout
):
4357 def __init__(self
, this
):
4359 if not hasattr(self
,"thisown"): self
.thisown
= 0
4360 self
.__class
__ = Printout
4361 _windows_
.Printout_swigregister(PrintoutPtr
)
4363 class PreviewCanvas(ScrolledWindow
):
4365 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4366 def __init__(self
, *args
, **kwargs
):
4368 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4369 Size size=DefaultSize, long style=0,
4370 String name=PreviewCanvasNameStr) -> PreviewCanvas
4372 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4373 self
.this
= newobj
.this
4376 self
._setOORInfo
(self
)
4379 class PreviewCanvasPtr(PreviewCanvas
):
4380 def __init__(self
, this
):
4382 if not hasattr(self
,"thisown"): self
.thisown
= 0
4383 self
.__class
__ = PreviewCanvas
4384 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4386 class PreviewFrame(Frame
):
4388 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4389 def __init__(self
, *args
, **kwargs
):
4391 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4392 Size size=DefaultSize,
4393 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4395 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4396 self
.this
= newobj
.this
4399 self
._setOORInfo
(self
)
4401 def Initialize(*args
, **kwargs
):
4402 """Initialize(self)"""
4403 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4405 def CreateControlBar(*args
, **kwargs
):
4406 """CreateControlBar(self)"""
4407 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4409 def CreateCanvas(*args
, **kwargs
):
4410 """CreateCanvas(self)"""
4411 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4413 def GetControlBar(*args
, **kwargs
):
4414 """GetControlBar(self) -> PreviewControlBar"""
4415 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4418 class PreviewFramePtr(PreviewFrame
):
4419 def __init__(self
, this
):
4421 if not hasattr(self
,"thisown"): self
.thisown
= 0
4422 self
.__class
__ = PreviewFrame
4423 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4425 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4426 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4427 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4428 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4429 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4430 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4431 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4432 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4433 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4434 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4435 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4436 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4437 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4438 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4439 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4440 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4441 class PreviewControlBar(Panel
):
4443 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4444 def __init__(self
, *args
, **kwargs
):
4446 __init__(self, PrintPreview preview, long buttons, Window parent,
4447 Point pos=DefaultPosition, Size size=DefaultSize,
4448 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4450 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4451 self
.this
= newobj
.this
4454 self
._setOORInfo
(self
)
4456 def GetZoomControl(*args
, **kwargs
):
4457 """GetZoomControl(self) -> int"""
4458 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4460 def SetZoomControl(*args
, **kwargs
):
4461 """SetZoomControl(self, int zoom)"""
4462 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4464 def GetPrintPreview(*args
, **kwargs
):
4465 """GetPrintPreview(self) -> PrintPreview"""
4466 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4468 def OnNext(*args
, **kwargs
):
4470 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4472 def OnPrevious(*args
, **kwargs
):
4473 """OnPrevious(self)"""
4474 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4476 def OnFirst(*args
, **kwargs
):
4478 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4480 def OnLast(*args
, **kwargs
):
4482 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4484 def OnGoto(*args
, **kwargs
):
4486 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4489 class PreviewControlBarPtr(PreviewControlBar
):
4490 def __init__(self
, this
):
4492 if not hasattr(self
,"thisown"): self
.thisown
= 0
4493 self
.__class
__ = PreviewControlBar
4494 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4496 class PrintPreview(_core
.Object
):
4498 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4499 def __init__(self
, *args
):
4501 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4502 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4504 newobj
= _windows_
.new_PrintPreview(*args
)
4505 self
.this
= newobj
.this
4508 def SetCurrentPage(*args
, **kwargs
):
4509 """SetCurrentPage(self, int pageNum) -> bool"""
4510 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4512 def GetCurrentPage(*args
, **kwargs
):
4513 """GetCurrentPage(self) -> int"""
4514 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4516 def SetPrintout(*args
, **kwargs
):
4517 """SetPrintout(self, Printout printout)"""
4518 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4520 def GetPrintout(*args
, **kwargs
):
4521 """GetPrintout(self) -> Printout"""
4522 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4524 def GetPrintoutForPrinting(*args
, **kwargs
):
4525 """GetPrintoutForPrinting(self) -> Printout"""
4526 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4528 def SetFrame(*args
, **kwargs
):
4529 """SetFrame(self, Frame frame)"""
4530 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4532 def SetCanvas(*args
, **kwargs
):
4533 """SetCanvas(self, PreviewCanvas canvas)"""
4534 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4536 def GetFrame(*args
, **kwargs
):
4537 """GetFrame(self) -> Frame"""
4538 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4540 def GetCanvas(*args
, **kwargs
):
4541 """GetCanvas(self) -> PreviewCanvas"""
4542 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4544 def PaintPage(*args
, **kwargs
):
4545 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4546 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4548 def DrawBlankPage(*args
, **kwargs
):
4549 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4550 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4552 def RenderPage(*args
, **kwargs
):
4553 """RenderPage(self, int pageNum) -> bool"""
4554 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4556 def AdjustScrollbars(*args
, **kwargs
):
4557 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4558 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4560 def GetPrintDialogData(*args
, **kwargs
):
4561 """GetPrintDialogData(self) -> PrintDialogData"""
4562 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4564 def SetZoom(*args
, **kwargs
):
4565 """SetZoom(self, int percent)"""
4566 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4568 def GetZoom(*args
, **kwargs
):
4569 """GetZoom(self) -> int"""
4570 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4572 def GetMaxPage(*args
, **kwargs
):
4573 """GetMaxPage(self) -> int"""
4574 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4576 def GetMinPage(*args
, **kwargs
):
4577 """GetMinPage(self) -> int"""
4578 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4580 def Ok(*args
, **kwargs
):
4581 """Ok(self) -> bool"""
4582 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4584 def SetOk(*args
, **kwargs
):
4585 """SetOk(self, bool ok)"""
4586 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4588 def Print(*args
, **kwargs
):
4589 """Print(self, bool interactive) -> bool"""
4590 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4592 def DetermineScaling(*args
, **kwargs
):
4593 """DetermineScaling(self)"""
4594 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4596 def __nonzero__(self
): return self
.Ok()
4598 class PrintPreviewPtr(PrintPreview
):
4599 def __init__(self
, this
):
4601 if not hasattr(self
,"thisown"): self
.thisown
= 0
4602 self
.__class
__ = PrintPreview
4603 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4605 class PyPrintPreview(PrintPreview
):
4607 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4608 def __init__(self
, *args
):
4610 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4611 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4613 newobj
= _windows_
.new_PyPrintPreview(*args
)
4614 self
.this
= newobj
.this
4617 self
._setCallbackInfo
(self
, PyPrintPreview
)
4619 def _setCallbackInfo(*args
, **kwargs
):
4620 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4621 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4623 def base_SetCurrentPage(*args
, **kwargs
):
4624 """base_SetCurrentPage(self, int pageNum) -> bool"""
4625 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4627 def base_PaintPage(*args
, **kwargs
):
4628 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4629 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4631 def base_DrawBlankPage(*args
, **kwargs
):
4632 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4633 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4635 def base_RenderPage(*args
, **kwargs
):
4636 """base_RenderPage(self, int pageNum) -> bool"""
4637 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4639 def base_SetZoom(*args
, **kwargs
):
4640 """base_SetZoom(self, int percent)"""
4641 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4643 def base_Print(*args
, **kwargs
):
4644 """base_Print(self, bool interactive) -> bool"""
4645 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4647 def base_DetermineScaling(*args
, **kwargs
):
4648 """base_DetermineScaling(self)"""
4649 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4652 class PyPrintPreviewPtr(PyPrintPreview
):
4653 def __init__(self
, this
):
4655 if not hasattr(self
,"thisown"): self
.thisown
= 0
4656 self
.__class
__ = PyPrintPreview
4657 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4659 class PyPreviewFrame(PreviewFrame
):
4661 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4662 def __init__(self
, *args
, **kwargs
):
4664 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4665 Size size=DefaultSize,
4666 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4668 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4669 self
.this
= newobj
.this
4672 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4674 def _setCallbackInfo(*args
, **kwargs
):
4675 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4676 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4678 def SetPreviewCanvas(*args
, **kwargs
):
4679 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4680 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4682 def SetControlBar(*args
, **kwargs
):
4683 """SetControlBar(self, PreviewControlBar bar)"""
4684 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4686 def base_Initialize(*args
, **kwargs
):
4687 """base_Initialize(self)"""
4688 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4690 def base_CreateCanvas(*args
, **kwargs
):
4691 """base_CreateCanvas(self)"""
4692 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4694 def base_CreateControlBar(*args
, **kwargs
):
4695 """base_CreateControlBar(self)"""
4696 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4699 class PyPreviewFramePtr(PyPreviewFrame
):
4700 def __init__(self
, this
):
4702 if not hasattr(self
,"thisown"): self
.thisown
= 0
4703 self
.__class
__ = PyPreviewFrame
4704 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4706 class PyPreviewControlBar(PreviewControlBar
):
4708 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4709 def __init__(self
, *args
, **kwargs
):
4711 __init__(self, PrintPreview preview, long buttons, Window parent,
4712 Point pos=DefaultPosition, Size size=DefaultSize,
4713 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4715 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4716 self
.this
= newobj
.this
4719 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4721 def _setCallbackInfo(*args
, **kwargs
):
4722 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4723 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4725 def SetPrintPreview(*args
, **kwargs
):
4726 """SetPrintPreview(self, PrintPreview preview)"""
4727 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4729 def base_CreateButtons(*args
, **kwargs
):
4730 """base_CreateButtons(self)"""
4731 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4733 def base_SetZoomControl(*args
, **kwargs
):
4734 """base_SetZoomControl(self, int zoom)"""
4735 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4738 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4739 def __init__(self
, this
):
4741 if not hasattr(self
,"thisown"): self
.thisown
= 0
4742 self
.__class
__ = PyPreviewControlBar
4743 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)