1 # This file was created automatically by SWIG.
2 # Don't modify this file, modify the SWIG interface instead.
8 #---------------------------------------------------------------------------
10 class Panel(_core
.Window
):
12 return "<%s.%s; proxy of C++ wxPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
13 def __init__(self
, *args
, **kwargs
):
15 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
16 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
17 String name=PanelNameStr) -> Panel
19 newobj
= _windows_
.new_Panel(*args
, **kwargs
)
20 self
.this
= newobj
.this
23 self
._setOORInfo
(self
)
25 def Create(*args
, **kwargs
):
27 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
28 Size size=DefaultSize, long style=wxTAB_TRAVERSAL|wxNO_BORDER,
29 String name=PanelNameStr) -> bool
31 Create the GUI part of the Window for 2-phase creation mode.
33 return _windows_
.Panel_Create(*args
, **kwargs
)
35 def InitDialog(*args
, **kwargs
):
39 Sends an EVT_INIT_DIALOG event, whose handler usually transfers data
40 to the dialog via validators.
42 return _windows_
.Panel_InitDialog(*args
, **kwargs
)
44 def GetClassDefaultAttributes(*args
, **kwargs
):
46 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
48 Get the default attributes for this class. This is useful if you want
49 to use the same font or colour in your own control as in a standard
50 control -- which is a much better idea than hard coding specific
51 colours or fonts which might look completely out of place on the
52 user's system, especially if it uses themes.
54 The variant parameter is only relevant under Mac currently and is
55 ignore under other platforms. Under Mac, it will change the size of
56 the returned font. See `wx.Window.SetWindowVariant` for more about
59 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
61 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
63 class PanelPtr(Panel
):
64 def __init__(self
, this
):
66 if not hasattr(self
,"thisown"): self
.thisown
= 0
67 self
.__class
__ = Panel
68 _windows_
.Panel_swigregister(PanelPtr
)
70 def PrePanel(*args
, **kwargs
):
71 """PrePanel() -> Panel"""
72 val
= _windows_
.new_PrePanel(*args
, **kwargs
)
76 def Panel_GetClassDefaultAttributes(*args
, **kwargs
):
78 Panel_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
80 Get the default attributes for this class. This is useful if you want
81 to use the same font or colour in your own control as in a standard
82 control -- which is a much better idea than hard coding specific
83 colours or fonts which might look completely out of place on the
84 user's system, especially if it uses themes.
86 The variant parameter is only relevant under Mac currently and is
87 ignore under other platforms. Under Mac, it will change the size of
88 the returned font. See `wx.Window.SetWindowVariant` for more about
91 return _windows_
.Panel_GetClassDefaultAttributes(*args
, **kwargs
)
93 #---------------------------------------------------------------------------
95 class ScrolledWindow(Panel
):
97 return "<%s.%s; proxy of C++ wxScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
98 def __init__(self
, *args
, **kwargs
):
100 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
101 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
102 String name=PanelNameStr) -> ScrolledWindow
104 newobj
= _windows_
.new_ScrolledWindow(*args
, **kwargs
)
105 self
.this
= newobj
.this
108 self
._setOORInfo
(self
)
110 def Create(*args
, **kwargs
):
112 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
113 Size size=DefaultSize, long style=wxHSCROLL|wxVSCROLL,
114 String name=PanelNameStr) -> bool
116 Create the GUI part of the Window for 2-phase creation mode.
118 return _windows_
.ScrolledWindow_Create(*args
, **kwargs
)
120 def SetScrollbars(*args
, **kwargs
):
122 SetScrollbars(self, int pixelsPerUnitX, int pixelsPerUnitY, int noUnitsX,
123 int noUnitsY, int xPos=0, int yPos=0, bool noRefresh=False)
125 return _windows_
.ScrolledWindow_SetScrollbars(*args
, **kwargs
)
127 def Scroll(*args
, **kwargs
):
128 """Scroll(self, int x, int y)"""
129 return _windows_
.ScrolledWindow_Scroll(*args
, **kwargs
)
131 def GetScrollPageSize(*args
, **kwargs
):
132 """GetScrollPageSize(self, int orient) -> int"""
133 return _windows_
.ScrolledWindow_GetScrollPageSize(*args
, **kwargs
)
135 def SetScrollPageSize(*args
, **kwargs
):
136 """SetScrollPageSize(self, int orient, int pageSize)"""
137 return _windows_
.ScrolledWindow_SetScrollPageSize(*args
, **kwargs
)
139 def SetScrollRate(*args
, **kwargs
):
140 """SetScrollRate(self, int xstep, int ystep)"""
141 return _windows_
.ScrolledWindow_SetScrollRate(*args
, **kwargs
)
143 def GetScrollPixelsPerUnit(*args
, **kwargs
):
145 GetScrollPixelsPerUnit() -> (xUnit, yUnit)
147 Get the size of one logical unit in physical units.
149 return _windows_
.ScrolledWindow_GetScrollPixelsPerUnit(*args
, **kwargs
)
151 def EnableScrolling(*args
, **kwargs
):
152 """EnableScrolling(self, bool x_scrolling, bool y_scrolling)"""
153 return _windows_
.ScrolledWindow_EnableScrolling(*args
, **kwargs
)
155 def GetViewStart(*args
, **kwargs
):
157 GetViewStart() -> (x,y)
161 return _windows_
.ScrolledWindow_GetViewStart(*args
, **kwargs
)
163 def SetScale(*args
, **kwargs
):
164 """SetScale(self, double xs, double ys)"""
165 return _windows_
.ScrolledWindow_SetScale(*args
, **kwargs
)
167 def GetScaleX(*args
, **kwargs
):
168 """GetScaleX(self) -> double"""
169 return _windows_
.ScrolledWindow_GetScaleX(*args
, **kwargs
)
171 def GetScaleY(*args
, **kwargs
):
172 """GetScaleY(self) -> double"""
173 return _windows_
.ScrolledWindow_GetScaleY(*args
, **kwargs
)
175 def CalcScrolledPosition(*args
):
177 CalcScrolledPosition(self, Point pt) -> Point
178 CalcScrolledPosition(int x, int y) -> (sx, sy)
180 Translate between scrolled and unscrolled coordinates.
182 return _windows_
.ScrolledWindow_CalcScrolledPosition(*args
)
184 def CalcUnscrolledPosition(*args
):
186 CalcUnscrolledPosition(self, Point pt) -> Point
187 CalcUnscrolledPosition(int x, int y) -> (ux, uy)
189 Translate between scrolled and unscrolled coordinates.
191 return _windows_
.ScrolledWindow_CalcUnscrolledPosition(*args
)
193 def AdjustScrollbars(*args
, **kwargs
):
194 """AdjustScrollbars(self)"""
195 return _windows_
.ScrolledWindow_AdjustScrollbars(*args
, **kwargs
)
197 def CalcScrollInc(*args
, **kwargs
):
198 """CalcScrollInc(self, ScrollWinEvent event) -> int"""
199 return _windows_
.ScrolledWindow_CalcScrollInc(*args
, **kwargs
)
201 def SetTargetWindow(*args
, **kwargs
):
202 """SetTargetWindow(self, Window target)"""
203 return _windows_
.ScrolledWindow_SetTargetWindow(*args
, **kwargs
)
205 def GetTargetWindow(*args
, **kwargs
):
206 """GetTargetWindow(self) -> Window"""
207 return _windows_
.ScrolledWindow_GetTargetWindow(*args
, **kwargs
)
209 def SetTargetRect(*args
, **kwargs
):
210 """SetTargetRect(self, Rect rect)"""
211 return _windows_
.ScrolledWindow_SetTargetRect(*args
, **kwargs
)
213 def GetTargetRect(*args
, **kwargs
):
214 """GetTargetRect(self) -> Rect"""
215 return _windows_
.ScrolledWindow_GetTargetRect(*args
, **kwargs
)
217 def DoPrepareDC(*args
, **kwargs
):
219 DoPrepareDC(self, DC dc)
221 Normally what is called by `PrepareDC`.
223 return _windows_
.ScrolledWindow_DoPrepareDC(*args
, **kwargs
)
225 def GetClassDefaultAttributes(*args
, **kwargs
):
227 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
229 Get the default attributes for this class. This is useful if you want
230 to use the same font or colour in your own control as in a standard
231 control -- which is a much better idea than hard coding specific
232 colours or fonts which might look completely out of place on the
233 user's system, especially if it uses themes.
235 The variant parameter is only relevant under Mac currently and is
236 ignore under other platforms. Under Mac, it will change the size of
237 the returned font. See `wx.Window.SetWindowVariant` for more about
240 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
242 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
244 class ScrolledWindowPtr(ScrolledWindow
):
245 def __init__(self
, this
):
247 if not hasattr(self
,"thisown"): self
.thisown
= 0
248 self
.__class
__ = ScrolledWindow
249 _windows_
.ScrolledWindow_swigregister(ScrolledWindowPtr
)
251 def PreScrolledWindow(*args
, **kwargs
):
252 """PreScrolledWindow() -> ScrolledWindow"""
253 val
= _windows_
.new_PreScrolledWindow(*args
, **kwargs
)
257 def ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
):
259 ScrolledWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
261 Get the default attributes for this class. This is useful if you want
262 to use the same font or colour in your own control as in a standard
263 control -- which is a much better idea than hard coding specific
264 colours or fonts which might look completely out of place on the
265 user's system, especially if it uses themes.
267 The variant parameter is only relevant under Mac currently and is
268 ignore under other platforms. Under Mac, it will change the size of
269 the returned font. See `wx.Window.SetWindowVariant` for more about
272 return _windows_
.ScrolledWindow_GetClassDefaultAttributes(*args
, **kwargs
)
274 #---------------------------------------------------------------------------
276 STAY_ON_TOP
= _windows_
.STAY_ON_TOP
277 ICONIZE
= _windows_
.ICONIZE
278 MINIMIZE
= _windows_
.MINIMIZE
279 MAXIMIZE
= _windows_
.MAXIMIZE
280 CLOSE_BOX
= _windows_
.CLOSE_BOX
281 THICK_FRAME
= _windows_
.THICK_FRAME
282 SYSTEM_MENU
= _windows_
.SYSTEM_MENU
283 MINIMIZE_BOX
= _windows_
.MINIMIZE_BOX
284 MAXIMIZE_BOX
= _windows_
.MAXIMIZE_BOX
285 TINY_CAPTION_HORIZ
= _windows_
.TINY_CAPTION_HORIZ
286 TINY_CAPTION_VERT
= _windows_
.TINY_CAPTION_VERT
287 RESIZE_BOX
= _windows_
.RESIZE_BOX
288 RESIZE_BORDER
= _windows_
.RESIZE_BORDER
289 DIALOG_NO_PARENT
= _windows_
.DIALOG_NO_PARENT
290 DEFAULT_FRAME_STYLE
= _windows_
.DEFAULT_FRAME_STYLE
291 DEFAULT_DIALOG_STYLE
= _windows_
.DEFAULT_DIALOG_STYLE
292 FRAME_TOOL_WINDOW
= _windows_
.FRAME_TOOL_WINDOW
293 FRAME_FLOAT_ON_PARENT
= _windows_
.FRAME_FLOAT_ON_PARENT
294 FRAME_NO_WINDOW_MENU
= _windows_
.FRAME_NO_WINDOW_MENU
295 FRAME_NO_TASKBAR
= _windows_
.FRAME_NO_TASKBAR
296 FRAME_SHAPED
= _windows_
.FRAME_SHAPED
297 DIALOG_MODAL
= _windows_
.DIALOG_MODAL
298 DIALOG_MODELESS
= _windows_
.DIALOG_MODELESS
299 USER_COLOURS
= _windows_
.USER_COLOURS
300 NO_3D
= _windows_
.NO_3D
301 FULLSCREEN_NOMENUBAR
= _windows_
.FULLSCREEN_NOMENUBAR
302 FULLSCREEN_NOTOOLBAR
= _windows_
.FULLSCREEN_NOTOOLBAR
303 FULLSCREEN_NOSTATUSBAR
= _windows_
.FULLSCREEN_NOSTATUSBAR
304 FULLSCREEN_NOBORDER
= _windows_
.FULLSCREEN_NOBORDER
305 FULLSCREEN_NOCAPTION
= _windows_
.FULLSCREEN_NOCAPTION
306 FULLSCREEN_ALL
= _windows_
.FULLSCREEN_ALL
307 TOPLEVEL_EX_DIALOG
= _windows_
.TOPLEVEL_EX_DIALOG
308 class TopLevelWindow(_core
.Window
):
309 def __init__(self
): raise RuntimeError, "No constructor defined"
311 return "<%s.%s; proxy of C++ wxTopLevelWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
312 def Maximize(*args
, **kwargs
):
313 """Maximize(self, bool maximize=True)"""
314 return _windows_
.TopLevelWindow_Maximize(*args
, **kwargs
)
316 def Restore(*args
, **kwargs
):
318 return _windows_
.TopLevelWindow_Restore(*args
, **kwargs
)
320 def Iconize(*args
, **kwargs
):
321 """Iconize(self, bool iconize=True)"""
322 return _windows_
.TopLevelWindow_Iconize(*args
, **kwargs
)
324 def IsMaximized(*args
, **kwargs
):
325 """IsMaximized(self) -> bool"""
326 return _windows_
.TopLevelWindow_IsMaximized(*args
, **kwargs
)
328 def IsIconized(*args
, **kwargs
):
329 """IsIconized(self) -> bool"""
330 return _windows_
.TopLevelWindow_IsIconized(*args
, **kwargs
)
332 def GetIcon(*args
, **kwargs
):
333 """GetIcon(self) -> Icon"""
334 return _windows_
.TopLevelWindow_GetIcon(*args
, **kwargs
)
336 def SetIcon(*args
, **kwargs
):
337 """SetIcon(self, Icon icon)"""
338 return _windows_
.TopLevelWindow_SetIcon(*args
, **kwargs
)
340 def SetIcons(*args
, **kwargs
):
341 """SetIcons(self, wxIconBundle icons)"""
342 return _windows_
.TopLevelWindow_SetIcons(*args
, **kwargs
)
344 def ShowFullScreen(*args
, **kwargs
):
345 """ShowFullScreen(self, bool show, long style=FULLSCREEN_ALL) -> bool"""
346 return _windows_
.TopLevelWindow_ShowFullScreen(*args
, **kwargs
)
348 def IsFullScreen(*args
, **kwargs
):
349 """IsFullScreen(self) -> bool"""
350 return _windows_
.TopLevelWindow_IsFullScreen(*args
, **kwargs
)
352 def SetTitle(*args
, **kwargs
):
354 SetTitle(self, String title)
356 Sets the window's title. Applicable only to frames and dialogs.
358 return _windows_
.TopLevelWindow_SetTitle(*args
, **kwargs
)
360 def GetTitle(*args
, **kwargs
):
362 GetTitle(self) -> String
364 Gets the window's title. Applicable only to frames and dialogs.
366 return _windows_
.TopLevelWindow_GetTitle(*args
, **kwargs
)
368 def SetShape(*args
, **kwargs
):
369 """SetShape(self, Region region) -> bool"""
370 return _windows_
.TopLevelWindow_SetShape(*args
, **kwargs
)
373 class TopLevelWindowPtr(TopLevelWindow
):
374 def __init__(self
, this
):
376 if not hasattr(self
,"thisown"): self
.thisown
= 0
377 self
.__class
__ = TopLevelWindow
378 _windows_
.TopLevelWindow_swigregister(TopLevelWindowPtr
)
379 cvar
= _windows_
.cvar
380 FrameNameStr
= cvar
.FrameNameStr
381 DialogNameStr
= cvar
.DialogNameStr
382 StatusLineNameStr
= cvar
.StatusLineNameStr
383 ToolBarNameStr
= cvar
.ToolBarNameStr
385 #---------------------------------------------------------------------------
387 class Frame(TopLevelWindow
):
389 return "<%s.%s; proxy of C++ wxFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
390 def __init__(self
, *args
, **kwargs
):
392 __init__(self, Window parent, int id=-1, String title=EmptyString,
393 Point pos=DefaultPosition, Size size=DefaultSize,
394 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> Frame
396 newobj
= _windows_
.new_Frame(*args
, **kwargs
)
397 self
.this
= newobj
.this
400 self
._setOORInfo
(self
)
402 def Create(*args
, **kwargs
):
404 Create(self, Window parent, int id=-1, String title=EmptyString,
405 Point pos=DefaultPosition, Size size=DefaultSize,
406 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
408 return _windows_
.Frame_Create(*args
, **kwargs
)
410 def GetClientAreaOrigin(*args
, **kwargs
):
412 GetClientAreaOrigin(self) -> Point
414 Get the origin of the client area of the window relative to the
415 window's top left corner (the client area may be shifted because of
416 the borders, scrollbars, other decorations...)
418 return _windows_
.Frame_GetClientAreaOrigin(*args
, **kwargs
)
420 def SendSizeEvent(*args
, **kwargs
):
421 """SendSizeEvent(self)"""
422 return _windows_
.Frame_SendSizeEvent(*args
, **kwargs
)
424 def SetMenuBar(*args
, **kwargs
):
425 """SetMenuBar(self, MenuBar menubar)"""
426 return _windows_
.Frame_SetMenuBar(*args
, **kwargs
)
428 def GetMenuBar(*args
, **kwargs
):
429 """GetMenuBar(self) -> MenuBar"""
430 return _windows_
.Frame_GetMenuBar(*args
, **kwargs
)
432 def ProcessCommand(*args
, **kwargs
):
433 """ProcessCommand(self, int winid) -> bool"""
434 return _windows_
.Frame_ProcessCommand(*args
, **kwargs
)
436 Command
= ProcessCommand
437 def CreateStatusBar(*args
, **kwargs
):
439 CreateStatusBar(self, int number=1, long style=ST_SIZEGRIP, int winid=0,
440 String name=StatusLineNameStr) -> StatusBar
442 return _windows_
.Frame_CreateStatusBar(*args
, **kwargs
)
444 def GetStatusBar(*args
, **kwargs
):
445 """GetStatusBar(self) -> StatusBar"""
446 return _windows_
.Frame_GetStatusBar(*args
, **kwargs
)
448 def SetStatusBar(*args
, **kwargs
):
449 """SetStatusBar(self, StatusBar statBar)"""
450 return _windows_
.Frame_SetStatusBar(*args
, **kwargs
)
452 def SetStatusText(*args
, **kwargs
):
453 """SetStatusText(self, String text, int number=0)"""
454 return _windows_
.Frame_SetStatusText(*args
, **kwargs
)
456 def SetStatusWidths(*args
, **kwargs
):
457 """SetStatusWidths(self, int widths, int widths_field)"""
458 return _windows_
.Frame_SetStatusWidths(*args
, **kwargs
)
460 def PushStatusText(*args
, **kwargs
):
461 """PushStatusText(self, String text, int number=0)"""
462 return _windows_
.Frame_PushStatusText(*args
, **kwargs
)
464 def PopStatusText(*args
, **kwargs
):
465 """PopStatusText(self, int number=0)"""
466 return _windows_
.Frame_PopStatusText(*args
, **kwargs
)
468 def SetStatusBarPane(*args
, **kwargs
):
469 """SetStatusBarPane(self, int n)"""
470 return _windows_
.Frame_SetStatusBarPane(*args
, **kwargs
)
472 def GetStatusBarPane(*args
, **kwargs
):
473 """GetStatusBarPane(self) -> int"""
474 return _windows_
.Frame_GetStatusBarPane(*args
, **kwargs
)
476 def CreateToolBar(*args
, **kwargs
):
477 """CreateToolBar(self, long style=-1, int winid=-1, String name=ToolBarNameStr) -> wxToolBar"""
478 return _windows_
.Frame_CreateToolBar(*args
, **kwargs
)
480 def GetToolBar(*args
, **kwargs
):
481 """GetToolBar(self) -> wxToolBar"""
482 return _windows_
.Frame_GetToolBar(*args
, **kwargs
)
484 def SetToolBar(*args
, **kwargs
):
485 """SetToolBar(self, wxToolBar toolbar)"""
486 return _windows_
.Frame_SetToolBar(*args
, **kwargs
)
488 def DoGiveHelp(*args
, **kwargs
):
489 """DoGiveHelp(self, String text, bool show)"""
490 return _windows_
.Frame_DoGiveHelp(*args
, **kwargs
)
492 def DoMenuUpdates(*args
, **kwargs
):
493 """DoMenuUpdates(self, Menu menu=None)"""
494 return _windows_
.Frame_DoMenuUpdates(*args
, **kwargs
)
496 def GetClassDefaultAttributes(*args
, **kwargs
):
498 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
500 Get the default attributes for this class. This is useful if you want
501 to use the same font or colour in your own control as in a standard
502 control -- which is a much better idea than hard coding specific
503 colours or fonts which might look completely out of place on the
504 user's system, especially if it uses themes.
506 The variant parameter is only relevant under Mac currently and is
507 ignore under other platforms. Under Mac, it will change the size of
508 the returned font. See `wx.Window.SetWindowVariant` for more about
511 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
513 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
515 class FramePtr(Frame
):
516 def __init__(self
, this
):
518 if not hasattr(self
,"thisown"): self
.thisown
= 0
519 self
.__class
__ = Frame
520 _windows_
.Frame_swigregister(FramePtr
)
522 def PreFrame(*args
, **kwargs
):
523 """PreFrame() -> Frame"""
524 val
= _windows_
.new_PreFrame(*args
, **kwargs
)
528 def Frame_GetClassDefaultAttributes(*args
, **kwargs
):
530 Frame_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
532 Get the default attributes for this class. This is useful if you want
533 to use the same font or colour in your own control as in a standard
534 control -- which is a much better idea than hard coding specific
535 colours or fonts which might look completely out of place on the
536 user's system, especially if it uses themes.
538 The variant parameter is only relevant under Mac currently and is
539 ignore under other platforms. Under Mac, it will change the size of
540 the returned font. See `wx.Window.SetWindowVariant` for more about
543 return _windows_
.Frame_GetClassDefaultAttributes(*args
, **kwargs
)
545 #---------------------------------------------------------------------------
547 class Dialog(TopLevelWindow
):
549 return "<%s.%s; proxy of C++ wxDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
550 def __init__(self
, *args
, **kwargs
):
552 __init__(self, Window parent, int id=-1, String title=EmptyString,
553 Point pos=DefaultPosition, Size size=DefaultSize,
554 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> Dialog
556 newobj
= _windows_
.new_Dialog(*args
, **kwargs
)
557 self
.this
= newobj
.this
560 self
._setOORInfo
(self
)
562 def Create(*args
, **kwargs
):
564 Create(self, Window parent, int id=-1, String title=EmptyString,
565 Point pos=DefaultPosition, Size size=DefaultSize,
566 long style=DEFAULT_DIALOG_STYLE, String name=DialogNameStr) -> bool
568 return _windows_
.Dialog_Create(*args
, **kwargs
)
570 def SetReturnCode(*args
, **kwargs
):
571 """SetReturnCode(self, int returnCode)"""
572 return _windows_
.Dialog_SetReturnCode(*args
, **kwargs
)
574 def GetReturnCode(*args
, **kwargs
):
575 """GetReturnCode(self) -> int"""
576 return _windows_
.Dialog_GetReturnCode(*args
, **kwargs
)
578 def CreateTextSizer(*args
, **kwargs
):
579 """CreateTextSizer(self, String message) -> Sizer"""
580 return _windows_
.Dialog_CreateTextSizer(*args
, **kwargs
)
582 def CreateButtonSizer(*args
, **kwargs
):
583 """CreateButtonSizer(self, long flags) -> Sizer"""
584 return _windows_
.Dialog_CreateButtonSizer(*args
, **kwargs
)
586 def IsModal(*args
, **kwargs
):
587 """IsModal(self) -> bool"""
588 return _windows_
.Dialog_IsModal(*args
, **kwargs
)
590 def ShowModal(*args
, **kwargs
):
591 """ShowModal(self) -> int"""
592 return _windows_
.Dialog_ShowModal(*args
, **kwargs
)
594 def EndModal(*args
, **kwargs
):
595 """EndModal(self, int retCode)"""
596 return _windows_
.Dialog_EndModal(*args
, **kwargs
)
598 def GetClassDefaultAttributes(*args
, **kwargs
):
600 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
602 Get the default attributes for this class. This is useful if you want
603 to use the same font or colour in your own control as in a standard
604 control -- which is a much better idea than hard coding specific
605 colours or fonts which might look completely out of place on the
606 user's system, especially if it uses themes.
608 The variant parameter is only relevant under Mac currently and is
609 ignore under other platforms. Under Mac, it will change the size of
610 the returned font. See `wx.Window.SetWindowVariant` for more about
613 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
615 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
616 def SendSizeEvent(self
):
617 self
.ProcessEvent(wx
.SizeEvent((-1,-1)))
620 class DialogPtr(Dialog
):
621 def __init__(self
, this
):
623 if not hasattr(self
,"thisown"): self
.thisown
= 0
624 self
.__class
__ = Dialog
625 _windows_
.Dialog_swigregister(DialogPtr
)
627 def PreDialog(*args
, **kwargs
):
628 """PreDialog() -> Dialog"""
629 val
= _windows_
.new_PreDialog(*args
, **kwargs
)
633 def Dialog_GetClassDefaultAttributes(*args
, **kwargs
):
635 Dialog_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
637 Get the default attributes for this class. This is useful if you want
638 to use the same font or colour in your own control as in a standard
639 control -- which is a much better idea than hard coding specific
640 colours or fonts which might look completely out of place on the
641 user's system, especially if it uses themes.
643 The variant parameter is only relevant under Mac currently and is
644 ignore under other platforms. Under Mac, it will change the size of
645 the returned font. See `wx.Window.SetWindowVariant` for more about
648 return _windows_
.Dialog_GetClassDefaultAttributes(*args
, **kwargs
)
650 #---------------------------------------------------------------------------
652 class MiniFrame(Frame
):
654 return "<%s.%s; proxy of C++ wxMiniFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
655 def __init__(self
, *args
, **kwargs
):
657 __init__(self, Window parent, int id=-1, String title=EmptyString,
658 Point pos=DefaultPosition, Size size=DefaultSize,
659 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> MiniFrame
661 newobj
= _windows_
.new_MiniFrame(*args
, **kwargs
)
662 self
.this
= newobj
.this
665 self
._setOORInfo
(self
)
667 def Create(*args
, **kwargs
):
669 Create(self, Window parent, int id=-1, String title=EmptyString,
670 Point pos=DefaultPosition, Size size=DefaultSize,
671 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> bool
673 return _windows_
.MiniFrame_Create(*args
, **kwargs
)
676 class MiniFramePtr(MiniFrame
):
677 def __init__(self
, this
):
679 if not hasattr(self
,"thisown"): self
.thisown
= 0
680 self
.__class
__ = MiniFrame
681 _windows_
.MiniFrame_swigregister(MiniFramePtr
)
683 def PreMiniFrame(*args
, **kwargs
):
684 """PreMiniFrame() -> MiniFrame"""
685 val
= _windows_
.new_PreMiniFrame(*args
, **kwargs
)
689 #---------------------------------------------------------------------------
691 SPLASH_CENTRE_ON_PARENT
= _windows_
.SPLASH_CENTRE_ON_PARENT
692 SPLASH_CENTRE_ON_SCREEN
= _windows_
.SPLASH_CENTRE_ON_SCREEN
693 SPLASH_NO_CENTRE
= _windows_
.SPLASH_NO_CENTRE
694 SPLASH_TIMEOUT
= _windows_
.SPLASH_TIMEOUT
695 SPLASH_NO_TIMEOUT
= _windows_
.SPLASH_NO_TIMEOUT
696 class SplashScreenWindow(_core
.Window
):
698 return "<%s.%s; proxy of C++ wxSplashScreenWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
699 def __init__(self
, *args
, **kwargs
):
701 __init__(self, Bitmap bitmap, Window parent, int id, Point pos=DefaultPosition,
702 Size size=DefaultSize, long style=NO_BORDER) -> SplashScreenWindow
704 newobj
= _windows_
.new_SplashScreenWindow(*args
, **kwargs
)
705 self
.this
= newobj
.this
708 self
._setOORInfo
(self
)
710 def SetBitmap(*args
, **kwargs
):
711 """SetBitmap(self, Bitmap bitmap)"""
712 return _windows_
.SplashScreenWindow_SetBitmap(*args
, **kwargs
)
714 def GetBitmap(*args
, **kwargs
):
715 """GetBitmap(self) -> Bitmap"""
716 return _windows_
.SplashScreenWindow_GetBitmap(*args
, **kwargs
)
719 class SplashScreenWindowPtr(SplashScreenWindow
):
720 def __init__(self
, this
):
722 if not hasattr(self
,"thisown"): self
.thisown
= 0
723 self
.__class
__ = SplashScreenWindow
724 _windows_
.SplashScreenWindow_swigregister(SplashScreenWindowPtr
)
726 class SplashScreen(Frame
):
728 return "<%s.%s; proxy of C++ wxSplashScreen instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
729 def __init__(self
, *args
, **kwargs
):
731 __init__(self, Bitmap bitmap, long splashStyle, int milliseconds,
732 Window parent, int id=-1, Point pos=DefaultPosition,
733 Size size=DefaultSize, long style=wxSIMPLE_BORDER|wxFRAME_NO_TASKBAR|wxSTAY_ON_TOP) -> SplashScreen
735 newobj
= _windows_
.new_SplashScreen(*args
, **kwargs
)
736 self
.this
= newobj
.this
739 self
._setOORInfo
(self
)
741 def GetSplashStyle(*args
, **kwargs
):
742 """GetSplashStyle(self) -> long"""
743 return _windows_
.SplashScreen_GetSplashStyle(*args
, **kwargs
)
745 def GetSplashWindow(*args
, **kwargs
):
746 """GetSplashWindow(self) -> SplashScreenWindow"""
747 return _windows_
.SplashScreen_GetSplashWindow(*args
, **kwargs
)
749 def GetTimeout(*args
, **kwargs
):
750 """GetTimeout(self) -> int"""
751 return _windows_
.SplashScreen_GetTimeout(*args
, **kwargs
)
754 class SplashScreenPtr(SplashScreen
):
755 def __init__(self
, this
):
757 if not hasattr(self
,"thisown"): self
.thisown
= 0
758 self
.__class
__ = SplashScreen
759 _windows_
.SplashScreen_swigregister(SplashScreenPtr
)
761 #---------------------------------------------------------------------------
763 SB_NORMAL
= _windows_
.SB_NORMAL
764 SB_FLAT
= _windows_
.SB_FLAT
765 SB_RAISED
= _windows_
.SB_RAISED
766 class StatusBar(_core
.Window
):
768 return "<%s.%s; proxy of C++ wxStatusBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
769 def __init__(self
, *args
, **kwargs
):
770 """__init__(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> StatusBar"""
771 newobj
= _windows_
.new_StatusBar(*args
, **kwargs
)
772 self
.this
= newobj
.this
775 self
._setOORInfo
(self
)
777 def Create(*args
, **kwargs
):
778 """Create(self, Window parent, int id=-1, long style=ST_SIZEGRIP, String name=StatusLineNameStr) -> bool"""
779 return _windows_
.StatusBar_Create(*args
, **kwargs
)
781 def SetFieldsCount(*args
, **kwargs
):
782 """SetFieldsCount(self, int number=1)"""
783 return _windows_
.StatusBar_SetFieldsCount(*args
, **kwargs
)
785 def GetFieldsCount(*args
, **kwargs
):
786 """GetFieldsCount(self) -> int"""
787 return _windows_
.StatusBar_GetFieldsCount(*args
, **kwargs
)
789 def SetStatusText(*args
, **kwargs
):
790 """SetStatusText(self, String text, int number=0)"""
791 return _windows_
.StatusBar_SetStatusText(*args
, **kwargs
)
793 def GetStatusText(*args
, **kwargs
):
794 """GetStatusText(self, int number=0) -> String"""
795 return _windows_
.StatusBar_GetStatusText(*args
, **kwargs
)
797 def PushStatusText(*args
, **kwargs
):
798 """PushStatusText(self, String text, int number=0)"""
799 return _windows_
.StatusBar_PushStatusText(*args
, **kwargs
)
801 def PopStatusText(*args
, **kwargs
):
802 """PopStatusText(self, int number=0)"""
803 return _windows_
.StatusBar_PopStatusText(*args
, **kwargs
)
805 def SetStatusWidths(*args
, **kwargs
):
806 """SetStatusWidths(self, int widths, int widths_field)"""
807 return _windows_
.StatusBar_SetStatusWidths(*args
, **kwargs
)
809 def SetStatusStyles(*args
, **kwargs
):
810 """SetStatusStyles(self, int styles, int styles_field)"""
811 return _windows_
.StatusBar_SetStatusStyles(*args
, **kwargs
)
813 def GetFieldRect(*args
, **kwargs
):
814 """GetFieldRect(self, int i) -> Rect"""
815 return _windows_
.StatusBar_GetFieldRect(*args
, **kwargs
)
817 def SetMinHeight(*args
, **kwargs
):
818 """SetMinHeight(self, int height)"""
819 return _windows_
.StatusBar_SetMinHeight(*args
, **kwargs
)
821 def GetBorderX(*args
, **kwargs
):
822 """GetBorderX(self) -> int"""
823 return _windows_
.StatusBar_GetBorderX(*args
, **kwargs
)
825 def GetBorderY(*args
, **kwargs
):
826 """GetBorderY(self) -> int"""
827 return _windows_
.StatusBar_GetBorderY(*args
, **kwargs
)
829 def GetClassDefaultAttributes(*args
, **kwargs
):
831 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
833 Get the default attributes for this class. This is useful if you want
834 to use the same font or colour in your own control as in a standard
835 control -- which is a much better idea than hard coding specific
836 colours or fonts which might look completely out of place on the
837 user's system, especially if it uses themes.
839 The variant parameter is only relevant under Mac currently and is
840 ignore under other platforms. Under Mac, it will change the size of
841 the returned font. See `wx.Window.SetWindowVariant` for more about
844 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
846 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
848 class StatusBarPtr(StatusBar
):
849 def __init__(self
, this
):
851 if not hasattr(self
,"thisown"): self
.thisown
= 0
852 self
.__class
__ = StatusBar
853 _windows_
.StatusBar_swigregister(StatusBarPtr
)
855 def PreStatusBar(*args
, **kwargs
):
856 """PreStatusBar() -> StatusBar"""
857 val
= _windows_
.new_PreStatusBar(*args
, **kwargs
)
861 def StatusBar_GetClassDefaultAttributes(*args
, **kwargs
):
863 StatusBar_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
865 Get the default attributes for this class. This is useful if you want
866 to use the same font or colour in your own control as in a standard
867 control -- which is a much better idea than hard coding specific
868 colours or fonts which might look completely out of place on the
869 user's system, especially if it uses themes.
871 The variant parameter is only relevant under Mac currently and is
872 ignore under other platforms. Under Mac, it will change the size of
873 the returned font. See `wx.Window.SetWindowVariant` for more about
876 return _windows_
.StatusBar_GetClassDefaultAttributes(*args
, **kwargs
)
878 #---------------------------------------------------------------------------
880 SP_NOBORDER
= _windows_
.SP_NOBORDER
881 SP_NOSASH
= _windows_
.SP_NOSASH
882 SP_PERMIT_UNSPLIT
= _windows_
.SP_PERMIT_UNSPLIT
883 SP_LIVE_UPDATE
= _windows_
.SP_LIVE_UPDATE
884 SP_3DSASH
= _windows_
.SP_3DSASH
885 SP_3DBORDER
= _windows_
.SP_3DBORDER
886 SP_NO_XP_THEME
= _windows_
.SP_NO_XP_THEME
887 SP_BORDER
= _windows_
.SP_BORDER
888 SP_3D
= _windows_
.SP_3D
889 SPLIT_HORIZONTAL
= _windows_
.SPLIT_HORIZONTAL
890 SPLIT_VERTICAL
= _windows_
.SPLIT_VERTICAL
891 SPLIT_DRAG_NONE
= _windows_
.SPLIT_DRAG_NONE
892 SPLIT_DRAG_DRAGGING
= _windows_
.SPLIT_DRAG_DRAGGING
893 SPLIT_DRAG_LEFT_DOWN
= _windows_
.SPLIT_DRAG_LEFT_DOWN
894 class SplitterWindow(_core
.Window
):
896 wx.SplitterWindow manages up to two subwindows or panes, with an
897 optional vertical or horizontal split which can be used with the mouse
901 return "<%s.%s; proxy of C++ wxSplitterWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
902 def __init__(self
, *args
, **kwargs
):
904 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
905 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> SplitterWindow
907 Constructor. Creates and shows a SplitterWindow.
909 if kwargs
.has_key('point'): kwargs
['pos'] = kwargs
['point'];del kwargs
['point']
910 newobj
= _windows_
.new_SplitterWindow(*args
, **kwargs
)
911 self
.this
= newobj
.this
914 self
._setOORInfo
(self
)
916 def Create(*args
, **kwargs
):
918 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
919 Size size=DefaultSize, long style=SP_3D, String name=SplitterNameStr) -> bool
921 Create the GUI part of the SplitterWindow for the 2-phase create.
923 return _windows_
.SplitterWindow_Create(*args
, **kwargs
)
925 def GetWindow1(*args
, **kwargs
):
927 GetWindow1(self) -> Window
929 Gets the only or left/top pane.
931 return _windows_
.SplitterWindow_GetWindow1(*args
, **kwargs
)
933 def GetWindow2(*args
, **kwargs
):
935 GetWindow2(self) -> Window
937 Gets the right/bottom pane.
939 return _windows_
.SplitterWindow_GetWindow2(*args
, **kwargs
)
941 def SetSplitMode(*args
, **kwargs
):
943 SetSplitMode(self, int mode)
945 Sets the split mode. The mode can be wx.SPLIT_VERTICAL or
946 wx.SPLIT_HORIZONTAL. This only sets the internal variable; does not
949 return _windows_
.SplitterWindow_SetSplitMode(*args
, **kwargs
)
951 def GetSplitMode(*args
, **kwargs
):
953 GetSplitMode(self) -> int
957 return _windows_
.SplitterWindow_GetSplitMode(*args
, **kwargs
)
959 def Initialize(*args
, **kwargs
):
961 Initialize(self, Window window)
963 Initializes the splitter window to have one pane. This should be
964 called if you wish to initially view only a single pane in the
967 return _windows_
.SplitterWindow_Initialize(*args
, **kwargs
)
969 def SplitVertically(*args
, **kwargs
):
971 SplitVertically(self, Window window1, Window window2, int sashPosition=0) -> bool
973 Initializes the left and right panes of the splitter window.
975 return _windows_
.SplitterWindow_SplitVertically(*args
, **kwargs
)
977 def SplitHorizontally(*args
, **kwargs
):
979 SplitHorizontally(self, Window window1, Window window2, int sashPosition=0) -> bool
981 Initializes the top and bottom panes of the splitter window.
983 return _windows_
.SplitterWindow_SplitHorizontally(*args
, **kwargs
)
985 def Unsplit(*args
, **kwargs
):
987 Unsplit(self, Window toRemove=None) -> bool
989 Unsplits the window. Pass the pane to remove, or None to remove the
990 right or bottom pane. Returns True if successful, False otherwise (the
991 window was not split).
993 This function will not actually delete the pane being
994 removed; it sends EVT_SPLITTER_UNSPLIT which can be handled
995 for the desired behaviour. By default, the pane being
996 removed is only hidden.
998 return _windows_
.SplitterWindow_Unsplit(*args
, **kwargs
)
1000 def ReplaceWindow(*args
, **kwargs
):
1002 ReplaceWindow(self, Window winOld, Window winNew) -> bool
1004 This function replaces one of the windows managed by the
1005 SplitterWindow with another one. It is in general better to use it
1006 instead of calling Unsplit() and then resplitting the window back
1007 because it will provoke much less flicker. It is valid to call this
1008 function whether the splitter has two windows or only one.
1010 Both parameters should be non-None and winOld must specify one of the
1011 windows managed by the splitter. If the parameters are incorrect or
1012 the window couldn't be replaced, False is returned. Otherwise the
1013 function will return True, but please notice that it will not Destroy
1014 the replaced window and you may wish to do it yourself.
1016 return _windows_
.SplitterWindow_ReplaceWindow(*args
, **kwargs
)
1018 def UpdateSize(*args
, **kwargs
):
1022 Causes any pending sizing of the sash and child panes to take place
1025 Such resizing normally takes place in idle time, in order to wait for
1026 layout to be completed. However, this can cause unacceptable flicker
1027 as the panes are resized after the window has been shown. To work
1028 around this, you can perform window layout (for example by sending a
1029 size event to the parent window), and then call this function, before
1030 showing the top-level window.
1032 return _windows_
.SplitterWindow_UpdateSize(*args
, **kwargs
)
1034 def IsSplit(*args
, **kwargs
):
1036 IsSplit(self) -> bool
1038 Is the window split?
1040 return _windows_
.SplitterWindow_IsSplit(*args
, **kwargs
)
1042 def SetSashSize(*args
, **kwargs
):
1044 SetSashSize(self, int width)
1048 return _windows_
.SplitterWindow_SetSashSize(*args
, **kwargs
)
1050 def SetBorderSize(*args
, **kwargs
):
1052 SetBorderSize(self, int width)
1054 Sets the border size
1056 return _windows_
.SplitterWindow_SetBorderSize(*args
, **kwargs
)
1058 def GetSashSize(*args
, **kwargs
):
1060 GetSashSize(self) -> int
1064 return _windows_
.SplitterWindow_GetSashSize(*args
, **kwargs
)
1066 def GetBorderSize(*args
, **kwargs
):
1068 GetBorderSize(self) -> int
1070 Gets the border size
1072 return _windows_
.SplitterWindow_GetBorderSize(*args
, **kwargs
)
1074 def SetSashPosition(*args
, **kwargs
):
1076 SetSashPosition(self, int position, bool redraw=True)
1078 Sets the sash position, in pixels. If redraw is Ttrue then the panes
1079 are resized and the sash and border are redrawn.
1081 return _windows_
.SplitterWindow_SetSashPosition(*args
, **kwargs
)
1083 def GetSashPosition(*args
, **kwargs
):
1085 GetSashPosition(self) -> int
1087 Returns the surrent sash position.
1089 return _windows_
.SplitterWindow_GetSashPosition(*args
, **kwargs
)
1091 def SetMinimumPaneSize(*args
, **kwargs
):
1093 SetMinimumPaneSize(self, int min)
1095 Sets the minimum pane size in pixels.
1097 The default minimum pane size is zero, which means that either pane
1098 can be reduced to zero by dragging the sash, thus removing one of the
1099 panes. To prevent this behaviour (and veto out-of-range sash
1100 dragging), set a minimum size, for example 20 pixels. If the
1101 wx.SP_PERMIT_UNSPLIT style is used when a splitter window is created,
1102 the window may be unsplit even if minimum size is non-zero.
1104 return _windows_
.SplitterWindow_SetMinimumPaneSize(*args
, **kwargs
)
1106 def GetMinimumPaneSize(*args
, **kwargs
):
1108 GetMinimumPaneSize(self) -> int
1110 Gets the minimum pane size in pixels.
1112 return _windows_
.SplitterWindow_GetMinimumPaneSize(*args
, **kwargs
)
1114 def SashHitTest(*args
, **kwargs
):
1116 SashHitTest(self, int x, int y, int tolerance=5) -> bool
1118 Tests for x, y over the sash
1120 return _windows_
.SplitterWindow_SashHitTest(*args
, **kwargs
)
1122 def SizeWindows(*args
, **kwargs
):
1128 return _windows_
.SplitterWindow_SizeWindows(*args
, **kwargs
)
1130 def SetNeedUpdating(*args
, **kwargs
):
1131 """SetNeedUpdating(self, bool needUpdating)"""
1132 return _windows_
.SplitterWindow_SetNeedUpdating(*args
, **kwargs
)
1134 def GetNeedUpdating(*args
, **kwargs
):
1135 """GetNeedUpdating(self) -> bool"""
1136 return _windows_
.SplitterWindow_GetNeedUpdating(*args
, **kwargs
)
1138 def GetClassDefaultAttributes(*args
, **kwargs
):
1140 GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1142 Get the default attributes for this class. This is useful if you want
1143 to use the same font or colour in your own control as in a standard
1144 control -- which is a much better idea than hard coding specific
1145 colours or fonts which might look completely out of place on the
1146 user's system, especially if it uses themes.
1148 The variant parameter is only relevant under Mac currently and is
1149 ignore under other platforms. Under Mac, it will change the size of
1150 the returned font. See `wx.Window.SetWindowVariant` for more about
1153 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1155 GetClassDefaultAttributes
= staticmethod(GetClassDefaultAttributes
)
1157 class SplitterWindowPtr(SplitterWindow
):
1158 def __init__(self
, this
):
1160 if not hasattr(self
,"thisown"): self
.thisown
= 0
1161 self
.__class
__ = SplitterWindow
1162 _windows_
.SplitterWindow_swigregister(SplitterWindowPtr
)
1163 SplitterNameStr
= cvar
.SplitterNameStr
1165 def PreSplitterWindow(*args
, **kwargs
):
1167 PreSplitterWindow() -> SplitterWindow
1169 Precreate a SplitterWindow for 2-phase creation.
1171 val
= _windows_
.new_PreSplitterWindow(*args
, **kwargs
)
1175 def SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
):
1177 SplitterWindow_GetClassDefaultAttributes(int variant=WINDOW_VARIANT_NORMAL) -> VisualAttributes
1179 Get the default attributes for this class. This is useful if you want
1180 to use the same font or colour in your own control as in a standard
1181 control -- which is a much better idea than hard coding specific
1182 colours or fonts which might look completely out of place on the
1183 user's system, especially if it uses themes.
1185 The variant parameter is only relevant under Mac currently and is
1186 ignore under other platforms. Under Mac, it will change the size of
1187 the returned font. See `wx.Window.SetWindowVariant` for more about
1190 return _windows_
.SplitterWindow_GetClassDefaultAttributes(*args
, **kwargs
)
1192 class SplitterEvent(_core
.NotifyEvent
):
1193 """This class represents the events generated by a splitter control."""
1195 return "<%s.%s; proxy of C++ wxSplitterEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1196 def __init__(self
, *args
, **kwargs
):
1198 __init__(self, wxEventType type=wxEVT_NULL, SplitterWindow splitter=(wxSplitterWindow *) NULL) -> SplitterEvent
1200 This class represents the events generated by a splitter control.
1202 newobj
= _windows_
.new_SplitterEvent(*args
, **kwargs
)
1203 self
.this
= newobj
.this
1206 def SetSashPosition(*args
, **kwargs
):
1208 SetSashPosition(self, int pos)
1210 This funciton is only meaningful during EVT_SPLITTER_SASH_POS_CHANGING
1211 and EVT_SPLITTER_SASH_POS_CHANGED events. In the case of _CHANGED
1212 events, sets the the new sash position. In the case of _CHANGING
1213 events, sets the new tracking bar position so visual feedback during
1214 dragging will represent that change that will actually take place. Set
1215 to -1 from the event handler code to prevent repositioning.
1217 return _windows_
.SplitterEvent_SetSashPosition(*args
, **kwargs
)
1219 def GetSashPosition(*args
, **kwargs
):
1221 GetSashPosition(self) -> int
1223 Returns the new sash position while in EVT_SPLITTER_SASH_POS_CHANGING
1224 and EVT_SPLITTER_SASH_POS_CHANGED events.
1226 return _windows_
.SplitterEvent_GetSashPosition(*args
, **kwargs
)
1228 def GetWindowBeingRemoved(*args
, **kwargs
):
1230 GetWindowBeingRemoved(self) -> Window
1232 Returns a pointer to the window being removed when a splitter window
1235 return _windows_
.SplitterEvent_GetWindowBeingRemoved(*args
, **kwargs
)
1237 def GetX(*args
, **kwargs
):
1241 Returns the x coordinate of the double-click point in a
1242 EVT_SPLITTER_DCLICK event.
1244 return _windows_
.SplitterEvent_GetX(*args
, **kwargs
)
1246 def GetY(*args
, **kwargs
):
1250 Returns the y coordinate of the double-click point in a
1251 EVT_SPLITTER_DCLICK event.
1253 return _windows_
.SplitterEvent_GetY(*args
, **kwargs
)
1256 class SplitterEventPtr(SplitterEvent
):
1257 def __init__(self
, this
):
1259 if not hasattr(self
,"thisown"): self
.thisown
= 0
1260 self
.__class
__ = SplitterEvent
1261 _windows_
.SplitterEvent_swigregister(SplitterEventPtr
)
1263 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
1264 wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
= _windows_
.wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
1265 wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
= _windows_
.wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
1266 wxEVT_COMMAND_SPLITTER_UNSPLIT
= _windows_
.wxEVT_COMMAND_SPLITTER_UNSPLIT
1267 EVT_SPLITTER_SASH_POS_CHANGED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGED
, 1 )
1268 EVT_SPLITTER_SASH_POS_CHANGING
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_SASH_POS_CHANGING
, 1 )
1269 EVT_SPLITTER_DOUBLECLICKED
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_DOUBLECLICKED
, 1 )
1270 EVT_SPLITTER_UNSPLIT
= wx
.PyEventBinder( wxEVT_COMMAND_SPLITTER_UNSPLIT
, 1 )
1271 EVT_SPLITTER_DCLICK
= EVT_SPLITTER_DOUBLECLICKED
1273 #---------------------------------------------------------------------------
1275 SASH_DRAG_NONE
= _windows_
.SASH_DRAG_NONE
1276 SASH_DRAG_DRAGGING
= _windows_
.SASH_DRAG_DRAGGING
1277 SASH_DRAG_LEFT_DOWN
= _windows_
.SASH_DRAG_LEFT_DOWN
1278 SW_NOBORDER
= _windows_
.SW_NOBORDER
1279 SW_BORDER
= _windows_
.SW_BORDER
1280 SW_3DSASH
= _windows_
.SW_3DSASH
1281 SW_3DBORDER
= _windows_
.SW_3DBORDER
1282 SW_3D
= _windows_
.SW_3D
1283 SASH_TOP
= _windows_
.SASH_TOP
1284 SASH_RIGHT
= _windows_
.SASH_RIGHT
1285 SASH_BOTTOM
= _windows_
.SASH_BOTTOM
1286 SASH_LEFT
= _windows_
.SASH_LEFT
1287 SASH_NONE
= _windows_
.SASH_NONE
1288 class SashWindow(_core
.Window
):
1290 return "<%s.%s; proxy of C++ wxSashWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1291 def __init__(self
, *args
, **kwargs
):
1293 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1294 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1295 String name=SashNameStr) -> SashWindow
1297 newobj
= _windows_
.new_SashWindow(*args
, **kwargs
)
1298 self
.this
= newobj
.this
1301 self
._setOORInfo
(self
)
1303 def Create(*args
, **kwargs
):
1305 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1306 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1307 String name=SashNameStr) -> bool
1309 return _windows_
.SashWindow_Create(*args
, **kwargs
)
1311 def SetSashVisible(*args
, **kwargs
):
1312 """SetSashVisible(self, int edge, bool sash)"""
1313 return _windows_
.SashWindow_SetSashVisible(*args
, **kwargs
)
1315 def GetSashVisible(*args
, **kwargs
):
1316 """GetSashVisible(self, int edge) -> bool"""
1317 return _windows_
.SashWindow_GetSashVisible(*args
, **kwargs
)
1319 def SetSashBorder(*args
, **kwargs
):
1320 """SetSashBorder(self, int edge, bool border)"""
1321 return _windows_
.SashWindow_SetSashBorder(*args
, **kwargs
)
1323 def HasBorder(*args
, **kwargs
):
1324 """HasBorder(self, int edge) -> bool"""
1325 return _windows_
.SashWindow_HasBorder(*args
, **kwargs
)
1327 def GetEdgeMargin(*args
, **kwargs
):
1328 """GetEdgeMargin(self, int edge) -> int"""
1329 return _windows_
.SashWindow_GetEdgeMargin(*args
, **kwargs
)
1331 def SetDefaultBorderSize(*args
, **kwargs
):
1332 """SetDefaultBorderSize(self, int width)"""
1333 return _windows_
.SashWindow_SetDefaultBorderSize(*args
, **kwargs
)
1335 def GetDefaultBorderSize(*args
, **kwargs
):
1336 """GetDefaultBorderSize(self) -> int"""
1337 return _windows_
.SashWindow_GetDefaultBorderSize(*args
, **kwargs
)
1339 def SetExtraBorderSize(*args
, **kwargs
):
1340 """SetExtraBorderSize(self, int width)"""
1341 return _windows_
.SashWindow_SetExtraBorderSize(*args
, **kwargs
)
1343 def GetExtraBorderSize(*args
, **kwargs
):
1344 """GetExtraBorderSize(self) -> int"""
1345 return _windows_
.SashWindow_GetExtraBorderSize(*args
, **kwargs
)
1347 def SetMinimumSizeX(*args
, **kwargs
):
1348 """SetMinimumSizeX(self, int min)"""
1349 return _windows_
.SashWindow_SetMinimumSizeX(*args
, **kwargs
)
1351 def SetMinimumSizeY(*args
, **kwargs
):
1352 """SetMinimumSizeY(self, int min)"""
1353 return _windows_
.SashWindow_SetMinimumSizeY(*args
, **kwargs
)
1355 def GetMinimumSizeX(*args
, **kwargs
):
1356 """GetMinimumSizeX(self) -> int"""
1357 return _windows_
.SashWindow_GetMinimumSizeX(*args
, **kwargs
)
1359 def GetMinimumSizeY(*args
, **kwargs
):
1360 """GetMinimumSizeY(self) -> int"""
1361 return _windows_
.SashWindow_GetMinimumSizeY(*args
, **kwargs
)
1363 def SetMaximumSizeX(*args
, **kwargs
):
1364 """SetMaximumSizeX(self, int max)"""
1365 return _windows_
.SashWindow_SetMaximumSizeX(*args
, **kwargs
)
1367 def SetMaximumSizeY(*args
, **kwargs
):
1368 """SetMaximumSizeY(self, int max)"""
1369 return _windows_
.SashWindow_SetMaximumSizeY(*args
, **kwargs
)
1371 def GetMaximumSizeX(*args
, **kwargs
):
1372 """GetMaximumSizeX(self) -> int"""
1373 return _windows_
.SashWindow_GetMaximumSizeX(*args
, **kwargs
)
1375 def GetMaximumSizeY(*args
, **kwargs
):
1376 """GetMaximumSizeY(self) -> int"""
1377 return _windows_
.SashWindow_GetMaximumSizeY(*args
, **kwargs
)
1379 def SashHitTest(*args
, **kwargs
):
1380 """SashHitTest(self, int x, int y, int tolerance=2) -> int"""
1381 return _windows_
.SashWindow_SashHitTest(*args
, **kwargs
)
1383 def SizeWindows(*args
, **kwargs
):
1384 """SizeWindows(self)"""
1385 return _windows_
.SashWindow_SizeWindows(*args
, **kwargs
)
1388 class SashWindowPtr(SashWindow
):
1389 def __init__(self
, this
):
1391 if not hasattr(self
,"thisown"): self
.thisown
= 0
1392 self
.__class
__ = SashWindow
1393 _windows_
.SashWindow_swigregister(SashWindowPtr
)
1394 SashNameStr
= cvar
.SashNameStr
1395 SashLayoutNameStr
= cvar
.SashLayoutNameStr
1397 def PreSashWindow(*args
, **kwargs
):
1398 """PreSashWindow() -> SashWindow"""
1399 val
= _windows_
.new_PreSashWindow(*args
, **kwargs
)
1403 SASH_STATUS_OK
= _windows_
.SASH_STATUS_OK
1404 SASH_STATUS_OUT_OF_RANGE
= _windows_
.SASH_STATUS_OUT_OF_RANGE
1405 class SashEvent(_core
.CommandEvent
):
1407 return "<%s.%s; proxy of C++ wxSashEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1408 def __init__(self
, *args
, **kwargs
):
1409 """__init__(self, int id=0, int edge=SASH_NONE) -> SashEvent"""
1410 newobj
= _windows_
.new_SashEvent(*args
, **kwargs
)
1411 self
.this
= newobj
.this
1414 def SetEdge(*args
, **kwargs
):
1415 """SetEdge(self, int edge)"""
1416 return _windows_
.SashEvent_SetEdge(*args
, **kwargs
)
1418 def GetEdge(*args
, **kwargs
):
1419 """GetEdge(self) -> int"""
1420 return _windows_
.SashEvent_GetEdge(*args
, **kwargs
)
1422 def SetDragRect(*args
, **kwargs
):
1423 """SetDragRect(self, Rect rect)"""
1424 return _windows_
.SashEvent_SetDragRect(*args
, **kwargs
)
1426 def GetDragRect(*args
, **kwargs
):
1427 """GetDragRect(self) -> Rect"""
1428 return _windows_
.SashEvent_GetDragRect(*args
, **kwargs
)
1430 def SetDragStatus(*args
, **kwargs
):
1431 """SetDragStatus(self, int status)"""
1432 return _windows_
.SashEvent_SetDragStatus(*args
, **kwargs
)
1434 def GetDragStatus(*args
, **kwargs
):
1435 """GetDragStatus(self) -> int"""
1436 return _windows_
.SashEvent_GetDragStatus(*args
, **kwargs
)
1439 class SashEventPtr(SashEvent
):
1440 def __init__(self
, this
):
1442 if not hasattr(self
,"thisown"): self
.thisown
= 0
1443 self
.__class
__ = SashEvent
1444 _windows_
.SashEvent_swigregister(SashEventPtr
)
1446 wxEVT_SASH_DRAGGED
= _windows_
.wxEVT_SASH_DRAGGED
1447 EVT_SASH_DRAGGED
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 1 )
1448 EVT_SASH_DRAGGED_RANGE
= wx
.PyEventBinder( wxEVT_SASH_DRAGGED
, 2 )
1450 #---------------------------------------------------------------------------
1452 LAYOUT_HORIZONTAL
= _windows_
.LAYOUT_HORIZONTAL
1453 LAYOUT_VERTICAL
= _windows_
.LAYOUT_VERTICAL
1454 LAYOUT_NONE
= _windows_
.LAYOUT_NONE
1455 LAYOUT_TOP
= _windows_
.LAYOUT_TOP
1456 LAYOUT_LEFT
= _windows_
.LAYOUT_LEFT
1457 LAYOUT_RIGHT
= _windows_
.LAYOUT_RIGHT
1458 LAYOUT_BOTTOM
= _windows_
.LAYOUT_BOTTOM
1459 LAYOUT_LENGTH_Y
= _windows_
.LAYOUT_LENGTH_Y
1460 LAYOUT_LENGTH_X
= _windows_
.LAYOUT_LENGTH_X
1461 LAYOUT_MRU_LENGTH
= _windows_
.LAYOUT_MRU_LENGTH
1462 LAYOUT_QUERY
= _windows_
.LAYOUT_QUERY
1463 wxEVT_QUERY_LAYOUT_INFO
= _windows_
.wxEVT_QUERY_LAYOUT_INFO
1464 wxEVT_CALCULATE_LAYOUT
= _windows_
.wxEVT_CALCULATE_LAYOUT
1465 class QueryLayoutInfoEvent(_core
.Event
):
1467 return "<%s.%s; proxy of C++ wxQueryLayoutInfoEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1468 def __init__(self
, *args
, **kwargs
):
1469 """__init__(self, int id=0) -> QueryLayoutInfoEvent"""
1470 newobj
= _windows_
.new_QueryLayoutInfoEvent(*args
, **kwargs
)
1471 self
.this
= newobj
.this
1474 def SetRequestedLength(*args
, **kwargs
):
1475 """SetRequestedLength(self, int length)"""
1476 return _windows_
.QueryLayoutInfoEvent_SetRequestedLength(*args
, **kwargs
)
1478 def GetRequestedLength(*args
, **kwargs
):
1479 """GetRequestedLength(self) -> int"""
1480 return _windows_
.QueryLayoutInfoEvent_GetRequestedLength(*args
, **kwargs
)
1482 def SetFlags(*args
, **kwargs
):
1483 """SetFlags(self, int flags)"""
1484 return _windows_
.QueryLayoutInfoEvent_SetFlags(*args
, **kwargs
)
1486 def GetFlags(*args
, **kwargs
):
1487 """GetFlags(self) -> int"""
1488 return _windows_
.QueryLayoutInfoEvent_GetFlags(*args
, **kwargs
)
1490 def SetSize(*args
, **kwargs
):
1491 """SetSize(self, Size size)"""
1492 return _windows_
.QueryLayoutInfoEvent_SetSize(*args
, **kwargs
)
1494 def GetSize(*args
, **kwargs
):
1495 """GetSize(self) -> Size"""
1496 return _windows_
.QueryLayoutInfoEvent_GetSize(*args
, **kwargs
)
1498 def SetOrientation(*args
, **kwargs
):
1499 """SetOrientation(self, int orient)"""
1500 return _windows_
.QueryLayoutInfoEvent_SetOrientation(*args
, **kwargs
)
1502 def GetOrientation(*args
, **kwargs
):
1503 """GetOrientation(self) -> int"""
1504 return _windows_
.QueryLayoutInfoEvent_GetOrientation(*args
, **kwargs
)
1506 def SetAlignment(*args
, **kwargs
):
1507 """SetAlignment(self, int align)"""
1508 return _windows_
.QueryLayoutInfoEvent_SetAlignment(*args
, **kwargs
)
1510 def GetAlignment(*args
, **kwargs
):
1511 """GetAlignment(self) -> int"""
1512 return _windows_
.QueryLayoutInfoEvent_GetAlignment(*args
, **kwargs
)
1515 class QueryLayoutInfoEventPtr(QueryLayoutInfoEvent
):
1516 def __init__(self
, this
):
1518 if not hasattr(self
,"thisown"): self
.thisown
= 0
1519 self
.__class
__ = QueryLayoutInfoEvent
1520 _windows_
.QueryLayoutInfoEvent_swigregister(QueryLayoutInfoEventPtr
)
1522 class CalculateLayoutEvent(_core
.Event
):
1524 return "<%s.%s; proxy of C++ wxCalculateLayoutEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1525 def __init__(self
, *args
, **kwargs
):
1526 """__init__(self, int id=0) -> CalculateLayoutEvent"""
1527 newobj
= _windows_
.new_CalculateLayoutEvent(*args
, **kwargs
)
1528 self
.this
= newobj
.this
1531 def SetFlags(*args
, **kwargs
):
1532 """SetFlags(self, int flags)"""
1533 return _windows_
.CalculateLayoutEvent_SetFlags(*args
, **kwargs
)
1535 def GetFlags(*args
, **kwargs
):
1536 """GetFlags(self) -> int"""
1537 return _windows_
.CalculateLayoutEvent_GetFlags(*args
, **kwargs
)
1539 def SetRect(*args
, **kwargs
):
1540 """SetRect(self, Rect rect)"""
1541 return _windows_
.CalculateLayoutEvent_SetRect(*args
, **kwargs
)
1543 def GetRect(*args
, **kwargs
):
1544 """GetRect(self) -> Rect"""
1545 return _windows_
.CalculateLayoutEvent_GetRect(*args
, **kwargs
)
1548 class CalculateLayoutEventPtr(CalculateLayoutEvent
):
1549 def __init__(self
, this
):
1551 if not hasattr(self
,"thisown"): self
.thisown
= 0
1552 self
.__class
__ = CalculateLayoutEvent
1553 _windows_
.CalculateLayoutEvent_swigregister(CalculateLayoutEventPtr
)
1555 EVT_QUERY_LAYOUT_INFO
= wx
.PyEventBinder( wxEVT_QUERY_LAYOUT_INFO
)
1556 EVT_CALCULATE_LAYOUT
= wx
.PyEventBinder( wxEVT_CALCULATE_LAYOUT
)
1558 class SashLayoutWindow(SashWindow
):
1560 return "<%s.%s; proxy of C++ wxSashLayoutWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1561 def __init__(self
, *args
, **kwargs
):
1563 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
1564 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1565 String name=SashLayoutNameStr) -> SashLayoutWindow
1567 newobj
= _windows_
.new_SashLayoutWindow(*args
, **kwargs
)
1568 self
.this
= newobj
.this
1571 self
._setOORInfo
(self
)
1573 def Create(*args
, **kwargs
):
1575 Create(self, Window parent, int id=-1, Point pos=DefaultPosition,
1576 Size size=DefaultSize, long style=wxCLIP_CHILDREN|wxSW_3D,
1577 String name=SashLayoutNameStr) -> bool
1579 return _windows_
.SashLayoutWindow_Create(*args
, **kwargs
)
1581 def GetAlignment(*args
, **kwargs
):
1582 """GetAlignment(self) -> int"""
1583 return _windows_
.SashLayoutWindow_GetAlignment(*args
, **kwargs
)
1585 def GetOrientation(*args
, **kwargs
):
1586 """GetOrientation(self) -> int"""
1587 return _windows_
.SashLayoutWindow_GetOrientation(*args
, **kwargs
)
1589 def SetAlignment(*args
, **kwargs
):
1590 """SetAlignment(self, int alignment)"""
1591 return _windows_
.SashLayoutWindow_SetAlignment(*args
, **kwargs
)
1593 def SetDefaultSize(*args
, **kwargs
):
1594 """SetDefaultSize(self, Size size)"""
1595 return _windows_
.SashLayoutWindow_SetDefaultSize(*args
, **kwargs
)
1597 def SetOrientation(*args
, **kwargs
):
1598 """SetOrientation(self, int orientation)"""
1599 return _windows_
.SashLayoutWindow_SetOrientation(*args
, **kwargs
)
1602 class SashLayoutWindowPtr(SashLayoutWindow
):
1603 def __init__(self
, this
):
1605 if not hasattr(self
,"thisown"): self
.thisown
= 0
1606 self
.__class
__ = SashLayoutWindow
1607 _windows_
.SashLayoutWindow_swigregister(SashLayoutWindowPtr
)
1609 def PreSashLayoutWindow(*args
, **kwargs
):
1610 """PreSashLayoutWindow() -> SashLayoutWindow"""
1611 val
= _windows_
.new_PreSashLayoutWindow(*args
, **kwargs
)
1615 class LayoutAlgorithm(_core
.Object
):
1617 return "<%s.%s; proxy of C++ wxLayoutAlgorithm instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1618 def __init__(self
, *args
, **kwargs
):
1619 """__init__(self) -> LayoutAlgorithm"""
1620 newobj
= _windows_
.new_LayoutAlgorithm(*args
, **kwargs
)
1621 self
.this
= newobj
.this
1624 def __del__(self
, destroy
=_windows_
.delete_LayoutAlgorithm
):
1627 if self
.thisown
: destroy(self
)
1630 def LayoutMDIFrame(*args
, **kwargs
):
1631 """LayoutMDIFrame(self, MDIParentFrame frame, Rect rect=None) -> bool"""
1632 return _windows_
.LayoutAlgorithm_LayoutMDIFrame(*args
, **kwargs
)
1634 def LayoutFrame(*args
, **kwargs
):
1635 """LayoutFrame(self, Frame frame, Window mainWindow=None) -> bool"""
1636 return _windows_
.LayoutAlgorithm_LayoutFrame(*args
, **kwargs
)
1638 def LayoutWindow(*args
, **kwargs
):
1639 """LayoutWindow(self, Window parent, Window mainWindow=None) -> bool"""
1640 return _windows_
.LayoutAlgorithm_LayoutWindow(*args
, **kwargs
)
1643 class LayoutAlgorithmPtr(LayoutAlgorithm
):
1644 def __init__(self
, this
):
1646 if not hasattr(self
,"thisown"): self
.thisown
= 0
1647 self
.__class
__ = LayoutAlgorithm
1648 _windows_
.LayoutAlgorithm_swigregister(LayoutAlgorithmPtr
)
1650 #---------------------------------------------------------------------------
1652 class PopupWindow(_core
.Window
):
1654 return "<%s.%s; proxy of C++ wxPopupWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1655 def __init__(self
, *args
, **kwargs
):
1656 """__init__(self, Window parent, int flags=BORDER_NONE) -> PopupWindow"""
1657 newobj
= _windows_
.new_PopupWindow(*args
, **kwargs
)
1658 self
.this
= newobj
.this
1661 self
._setOORInfo
(self
)
1663 def Create(*args
, **kwargs
):
1664 """Create(self, Window parent, int flags=BORDER_NONE) -> bool"""
1665 return _windows_
.PopupWindow_Create(*args
, **kwargs
)
1667 def Position(*args
, **kwargs
):
1668 """Position(self, Point ptOrigin, Size size)"""
1669 return _windows_
.PopupWindow_Position(*args
, **kwargs
)
1672 class PopupWindowPtr(PopupWindow
):
1673 def __init__(self
, this
):
1675 if not hasattr(self
,"thisown"): self
.thisown
= 0
1676 self
.__class
__ = PopupWindow
1677 _windows_
.PopupWindow_swigregister(PopupWindowPtr
)
1679 def PrePopupWindow(*args
, **kwargs
):
1680 """PrePopupWindow() -> PopupWindow"""
1681 val
= _windows_
.new_PrePopupWindow(*args
, **kwargs
)
1685 #---------------------------------------------------------------------------
1687 class PopupTransientWindow(PopupWindow
):
1689 return "<%s.%s; proxy of C++ wxPyPopupTransientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1690 def __init__(self
, *args
, **kwargs
):
1691 """__init__(self, Window parent, int style=BORDER_NONE) -> PopupTransientWindow"""
1692 newobj
= _windows_
.new_PopupTransientWindow(*args
, **kwargs
)
1693 self
.this
= newobj
.this
1696 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, PopupTransientWindow
)
1698 def _setCallbackInfo(*args
, **kwargs
):
1699 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1700 return _windows_
.PopupTransientWindow__setCallbackInfo(*args
, **kwargs
)
1702 def Popup(*args
, **kwargs
):
1703 """Popup(self, Window focus=None)"""
1704 return _windows_
.PopupTransientWindow_Popup(*args
, **kwargs
)
1706 def Dismiss(*args
, **kwargs
):
1708 return _windows_
.PopupTransientWindow_Dismiss(*args
, **kwargs
)
1711 class PopupTransientWindowPtr(PopupTransientWindow
):
1712 def __init__(self
, this
):
1714 if not hasattr(self
,"thisown"): self
.thisown
= 0
1715 self
.__class
__ = PopupTransientWindow
1716 _windows_
.PopupTransientWindow_swigregister(PopupTransientWindowPtr
)
1718 def PrePopupTransientWindow(*args
, **kwargs
):
1719 """PrePopupTransientWindow() -> PopupTransientWindow"""
1720 val
= _windows_
.new_PrePopupTransientWindow(*args
, **kwargs
)
1724 #---------------------------------------------------------------------------
1726 class TipWindow(PopupTransientWindow
):
1728 return "<%s.%s; proxy of C++ wxTipWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1729 def __init__(self
, *args
, **kwargs
):
1730 """__init__(self, Window parent, String text, int maxLength=100, Rect rectBound=None) -> TipWindow"""
1731 newobj
= _windows_
.new_TipWindow(*args
, **kwargs
)
1732 self
.this
= newobj
.this
1735 self
._setOORInfo
(self
)
1737 def SetBoundingRect(*args
, **kwargs
):
1738 """SetBoundingRect(self, Rect rectBound)"""
1739 return _windows_
.TipWindow_SetBoundingRect(*args
, **kwargs
)
1741 def Close(*args
, **kwargs
):
1743 return _windows_
.TipWindow_Close(*args
, **kwargs
)
1746 class TipWindowPtr(TipWindow
):
1747 def __init__(self
, this
):
1749 if not hasattr(self
,"thisown"): self
.thisown
= 0
1750 self
.__class
__ = TipWindow
1751 _windows_
.TipWindow_swigregister(TipWindowPtr
)
1753 #---------------------------------------------------------------------------
1755 class VScrolledWindow(Panel
):
1757 return "<%s.%s; proxy of C++ wxPyVScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1758 def __init__(self
, *args
, **kwargs
):
1760 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1761 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> VScrolledWindow
1763 newobj
= _windows_
.new_VScrolledWindow(*args
, **kwargs
)
1764 self
.this
= newobj
.this
1767 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, VScrolledWindow
)
1769 def _setCallbackInfo(*args
, **kwargs
):
1770 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1771 return _windows_
.VScrolledWindow__setCallbackInfo(*args
, **kwargs
)
1773 def Create(*args
, **kwargs
):
1775 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1776 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> bool
1778 return _windows_
.VScrolledWindow_Create(*args
, **kwargs
)
1780 def SetLineCount(*args
, **kwargs
):
1781 """SetLineCount(self, size_t count)"""
1782 return _windows_
.VScrolledWindow_SetLineCount(*args
, **kwargs
)
1784 def ScrollToLine(*args
, **kwargs
):
1785 """ScrollToLine(self, size_t line) -> bool"""
1786 return _windows_
.VScrolledWindow_ScrollToLine(*args
, **kwargs
)
1788 def ScrollLines(*args
, **kwargs
):
1790 ScrollLines(self, int lines) -> bool
1792 If the platform and window class supports it, scrolls the window by
1793 the given number of lines down, if lines is positive, or up if lines
1794 is negative. Returns True if the window was scrolled, False if it was
1795 already on top/bottom and nothing was done.
1797 return _windows_
.VScrolledWindow_ScrollLines(*args
, **kwargs
)
1799 def ScrollPages(*args
, **kwargs
):
1801 ScrollPages(self, int pages) -> bool
1803 If the platform and window class supports it, scrolls the window by
1804 the given number of pages down, if pages is positive, or up if pages
1805 is negative. Returns True if the window was scrolled, False if it was
1806 already on top/bottom and nothing was done.
1808 return _windows_
.VScrolledWindow_ScrollPages(*args
, **kwargs
)
1810 def RefreshLine(*args
, **kwargs
):
1811 """RefreshLine(self, size_t line)"""
1812 return _windows_
.VScrolledWindow_RefreshLine(*args
, **kwargs
)
1814 def RefreshLines(*args
, **kwargs
):
1815 """RefreshLines(self, size_t from, size_t to)"""
1816 return _windows_
.VScrolledWindow_RefreshLines(*args
, **kwargs
)
1818 def HitTestXY(*args
, **kwargs
):
1820 HitTestXY(self, int x, int y) -> int
1822 Test where the given (in client coords) point lies
1824 return _windows_
.VScrolledWindow_HitTestXY(*args
, **kwargs
)
1826 def HitTest(*args
, **kwargs
):
1828 HitTest(self, Point pt) -> int
1830 Test where the given (in client coords) point lies
1832 return _windows_
.VScrolledWindow_HitTest(*args
, **kwargs
)
1834 def RefreshAll(*args
, **kwargs
):
1835 """RefreshAll(self)"""
1836 return _windows_
.VScrolledWindow_RefreshAll(*args
, **kwargs
)
1838 def GetLineCount(*args
, **kwargs
):
1839 """GetLineCount(self) -> size_t"""
1840 return _windows_
.VScrolledWindow_GetLineCount(*args
, **kwargs
)
1842 def GetFirstVisibleLine(*args
, **kwargs
):
1843 """GetFirstVisibleLine(self) -> size_t"""
1844 return _windows_
.VScrolledWindow_GetFirstVisibleLine(*args
, **kwargs
)
1846 def GetLastVisibleLine(*args
, **kwargs
):
1847 """GetLastVisibleLine(self) -> size_t"""
1848 return _windows_
.VScrolledWindow_GetLastVisibleLine(*args
, **kwargs
)
1850 def IsVisible(*args
, **kwargs
):
1851 """IsVisible(self, size_t line) -> bool"""
1852 return _windows_
.VScrolledWindow_IsVisible(*args
, **kwargs
)
1855 class VScrolledWindowPtr(VScrolledWindow
):
1856 def __init__(self
, this
):
1858 if not hasattr(self
,"thisown"): self
.thisown
= 0
1859 self
.__class
__ = VScrolledWindow
1860 _windows_
.VScrolledWindow_swigregister(VScrolledWindowPtr
)
1862 def PreVScrolledWindow(*args
, **kwargs
):
1863 """PreVScrolledWindow() -> VScrolledWindow"""
1864 val
= _windows_
.new_PreVScrolledWindow(*args
, **kwargs
)
1868 class VListBox(VScrolledWindow
):
1870 return "<%s.%s; proxy of C++ wxPyVListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1871 def __init__(self
, *args
, **kwargs
):
1873 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1874 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> VListBox
1876 newobj
= _windows_
.new_VListBox(*args
, **kwargs
)
1877 self
.this
= newobj
.this
1880 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, VListBox
)
1882 def _setCallbackInfo(*args
, **kwargs
):
1883 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
1884 return _windows_
.VListBox__setCallbackInfo(*args
, **kwargs
)
1886 def Create(*args
, **kwargs
):
1888 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1889 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
1891 return _windows_
.VListBox_Create(*args
, **kwargs
)
1893 def GetItemCount(*args
, **kwargs
):
1894 """GetItemCount(self) -> size_t"""
1895 return _windows_
.VListBox_GetItemCount(*args
, **kwargs
)
1897 def HasMultipleSelection(*args
, **kwargs
):
1898 """HasMultipleSelection(self) -> bool"""
1899 return _windows_
.VListBox_HasMultipleSelection(*args
, **kwargs
)
1901 def GetSelection(*args
, **kwargs
):
1902 """GetSelection(self) -> int"""
1903 return _windows_
.VListBox_GetSelection(*args
, **kwargs
)
1905 def IsCurrent(*args
, **kwargs
):
1906 """IsCurrent(self, size_t item) -> bool"""
1907 return _windows_
.VListBox_IsCurrent(*args
, **kwargs
)
1909 def IsSelected(*args
, **kwargs
):
1910 """IsSelected(self, size_t item) -> bool"""
1911 return _windows_
.VListBox_IsSelected(*args
, **kwargs
)
1913 def GetSelectedCount(*args
, **kwargs
):
1914 """GetSelectedCount(self) -> size_t"""
1915 return _windows_
.VListBox_GetSelectedCount(*args
, **kwargs
)
1917 def GetFirstSelected(*args
, **kwargs
):
1918 """GetFirstSelected(self) -> PyObject"""
1919 return _windows_
.VListBox_GetFirstSelected(*args
, **kwargs
)
1921 def GetNextSelected(*args
, **kwargs
):
1922 """GetNextSelected(self, unsigned long cookie) -> PyObject"""
1923 return _windows_
.VListBox_GetNextSelected(*args
, **kwargs
)
1925 def GetMargins(*args
, **kwargs
):
1926 """GetMargins(self) -> Point"""
1927 return _windows_
.VListBox_GetMargins(*args
, **kwargs
)
1929 def GetSelectionBackground(*args
, **kwargs
):
1930 """GetSelectionBackground(self) -> Colour"""
1931 return _windows_
.VListBox_GetSelectionBackground(*args
, **kwargs
)
1933 def SetItemCount(*args
, **kwargs
):
1934 """SetItemCount(self, size_t count)"""
1935 return _windows_
.VListBox_SetItemCount(*args
, **kwargs
)
1937 def Clear(*args
, **kwargs
):
1939 return _windows_
.VListBox_Clear(*args
, **kwargs
)
1941 def SetSelection(*args
, **kwargs
):
1942 """SetSelection(self, int selection)"""
1943 return _windows_
.VListBox_SetSelection(*args
, **kwargs
)
1945 def Select(*args
, **kwargs
):
1946 """Select(self, size_t item, bool select=True) -> bool"""
1947 return _windows_
.VListBox_Select(*args
, **kwargs
)
1949 def SelectRange(*args
, **kwargs
):
1950 """SelectRange(self, size_t from, size_t to) -> bool"""
1951 return _windows_
.VListBox_SelectRange(*args
, **kwargs
)
1953 def Toggle(*args
, **kwargs
):
1954 """Toggle(self, size_t item)"""
1955 return _windows_
.VListBox_Toggle(*args
, **kwargs
)
1957 def SelectAll(*args
, **kwargs
):
1958 """SelectAll(self) -> bool"""
1959 return _windows_
.VListBox_SelectAll(*args
, **kwargs
)
1961 def DeselectAll(*args
, **kwargs
):
1962 """DeselectAll(self) -> bool"""
1963 return _windows_
.VListBox_DeselectAll(*args
, **kwargs
)
1965 def SetMargins(*args
, **kwargs
):
1966 """SetMargins(self, Point pt)"""
1967 return _windows_
.VListBox_SetMargins(*args
, **kwargs
)
1969 def SetMarginsXY(*args
, **kwargs
):
1970 """SetMarginsXY(self, int x, int y)"""
1971 return _windows_
.VListBox_SetMarginsXY(*args
, **kwargs
)
1973 def SetSelectionBackground(*args
, **kwargs
):
1974 """SetSelectionBackground(self, Colour col)"""
1975 return _windows_
.VListBox_SetSelectionBackground(*args
, **kwargs
)
1978 class VListBoxPtr(VListBox
):
1979 def __init__(self
, this
):
1981 if not hasattr(self
,"thisown"): self
.thisown
= 0
1982 self
.__class
__ = VListBox
1983 _windows_
.VListBox_swigregister(VListBoxPtr
)
1984 VListBoxNameStr
= cvar
.VListBoxNameStr
1986 def PreVListBox(*args
, **kwargs
):
1987 """PreVListBox() -> VListBox"""
1988 val
= _windows_
.new_PreVListBox(*args
, **kwargs
)
1992 class HtmlListBox(VListBox
):
1994 return "<%s.%s; proxy of C++ wxPyHtmlListBox instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
1995 def __init__(self
, *args
, **kwargs
):
1997 __init__(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
1998 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> HtmlListBox
2000 newobj
= _windows_
.new_HtmlListBox(*args
, **kwargs
)
2001 self
.this
= newobj
.this
2004 self
._setOORInfo
(self
);self
._setCallbackInfo
(self
, HtmlListBox
)
2006 def _setCallbackInfo(*args
, **kwargs
):
2007 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
2008 return _windows_
.HtmlListBox__setCallbackInfo(*args
, **kwargs
)
2010 def Create(*args
, **kwargs
):
2012 Create(self, Window parent, int id=ID_ANY, Point pos=DefaultPosition,
2013 Size size=DefaultSize, long style=0, String name=VListBoxNameStr) -> bool
2015 return _windows_
.HtmlListBox_Create(*args
, **kwargs
)
2017 def RefreshAll(*args
, **kwargs
):
2018 """RefreshAll(self)"""
2019 return _windows_
.HtmlListBox_RefreshAll(*args
, **kwargs
)
2021 def SetItemCount(*args
, **kwargs
):
2022 """SetItemCount(self, size_t count)"""
2023 return _windows_
.HtmlListBox_SetItemCount(*args
, **kwargs
)
2025 def GetFileSystem(*args
, **kwargs
):
2026 """GetFileSystem(self) -> FileSystem"""
2027 return _windows_
.HtmlListBox_GetFileSystem(*args
, **kwargs
)
2030 class HtmlListBoxPtr(HtmlListBox
):
2031 def __init__(self
, this
):
2033 if not hasattr(self
,"thisown"): self
.thisown
= 0
2034 self
.__class
__ = HtmlListBox
2035 _windows_
.HtmlListBox_swigregister(HtmlListBoxPtr
)
2037 def PreHtmlListBox(*args
, **kwargs
):
2038 """PreHtmlListBox() -> HtmlListBox"""
2039 val
= _windows_
.new_PreHtmlListBox(*args
, **kwargs
)
2043 #---------------------------------------------------------------------------
2045 class TaskBarIcon(_core
.EvtHandler
):
2047 return "<%s.%s; proxy of C++ wxTaskBarIcon instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2048 def __init__(self
, *args
, **kwargs
):
2049 """__init__(self) -> TaskBarIcon"""
2050 newobj
= _windows_
.new_TaskBarIcon(*args
, **kwargs
)
2051 self
.this
= newobj
.this
2054 def __del__(self
, destroy
=_windows_
.delete_TaskBarIcon
):
2057 if self
.thisown
: destroy(self
)
2060 def Destroy(*args
, **kwargs
):
2064 Deletes the C++ object this Python object is a proxy for.
2066 return _windows_
.TaskBarIcon_Destroy(*args
, **kwargs
)
2068 def IsOk(*args
, **kwargs
):
2069 """IsOk(self) -> bool"""
2070 return _windows_
.TaskBarIcon_IsOk(*args
, **kwargs
)
2072 def __nonzero__(self
): return self
.IsOk()
2073 def IsIconInstalled(*args
, **kwargs
):
2074 """IsIconInstalled(self) -> bool"""
2075 return _windows_
.TaskBarIcon_IsIconInstalled(*args
, **kwargs
)
2077 def SetIcon(*args
, **kwargs
):
2078 """SetIcon(self, Icon icon, String tooltip=EmptyString) -> bool"""
2079 return _windows_
.TaskBarIcon_SetIcon(*args
, **kwargs
)
2081 def RemoveIcon(*args
, **kwargs
):
2082 """RemoveIcon(self) -> bool"""
2083 return _windows_
.TaskBarIcon_RemoveIcon(*args
, **kwargs
)
2085 def PopupMenu(*args
, **kwargs
):
2086 """PopupMenu(self, Menu menu) -> bool"""
2087 return _windows_
.TaskBarIcon_PopupMenu(*args
, **kwargs
)
2090 class TaskBarIconPtr(TaskBarIcon
):
2091 def __init__(self
, this
):
2093 if not hasattr(self
,"thisown"): self
.thisown
= 0
2094 self
.__class
__ = TaskBarIcon
2095 _windows_
.TaskBarIcon_swigregister(TaskBarIconPtr
)
2097 class TaskBarIconEvent(_core
.Event
):
2099 return "<%s.%s; proxy of C++ wxTaskBarIconEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2100 def __init__(self
, *args
, **kwargs
):
2101 """__init__(self, wxEventType evtType, TaskBarIcon tbIcon) -> TaskBarIconEvent"""
2102 newobj
= _windows_
.new_TaskBarIconEvent(*args
, **kwargs
)
2103 self
.this
= newobj
.this
2107 class TaskBarIconEventPtr(TaskBarIconEvent
):
2108 def __init__(self
, this
):
2110 if not hasattr(self
,"thisown"): self
.thisown
= 0
2111 self
.__class
__ = TaskBarIconEvent
2112 _windows_
.TaskBarIconEvent_swigregister(TaskBarIconEventPtr
)
2114 wxEVT_TASKBAR_MOVE
= _windows_
.wxEVT_TASKBAR_MOVE
2115 wxEVT_TASKBAR_LEFT_DOWN
= _windows_
.wxEVT_TASKBAR_LEFT_DOWN
2116 wxEVT_TASKBAR_LEFT_UP
= _windows_
.wxEVT_TASKBAR_LEFT_UP
2117 wxEVT_TASKBAR_RIGHT_DOWN
= _windows_
.wxEVT_TASKBAR_RIGHT_DOWN
2118 wxEVT_TASKBAR_RIGHT_UP
= _windows_
.wxEVT_TASKBAR_RIGHT_UP
2119 wxEVT_TASKBAR_LEFT_DCLICK
= _windows_
.wxEVT_TASKBAR_LEFT_DCLICK
2120 wxEVT_TASKBAR_RIGHT_DCLICK
= _windows_
.wxEVT_TASKBAR_RIGHT_DCLICK
2121 EVT_TASKBAR_MOVE
= wx
.PyEventBinder ( wxEVT_TASKBAR_MOVE
)
2122 EVT_TASKBAR_LEFT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DOWN
)
2123 EVT_TASKBAR_LEFT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_UP
)
2124 EVT_TASKBAR_RIGHT_DOWN
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DOWN
)
2125 EVT_TASKBAR_RIGHT_UP
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_UP
)
2126 EVT_TASKBAR_LEFT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_LEFT_DCLICK
)
2127 EVT_TASKBAR_RIGHT_DCLICK
= wx
.PyEventBinder ( wxEVT_TASKBAR_RIGHT_DCLICK
)
2129 #---------------------------------------------------------------------------
2131 class ColourData(_core
.Object
):
2133 This class holds a variety of information related to the colour
2134 chooser dialog, used to transfer settings and results to and from the
2138 return "<%s.%s; proxy of C++ wxColourData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2139 def __init__(self
, *args
, **kwargs
):
2141 __init__(self) -> ColourData
2143 Constructor, sets default values.
2145 newobj
= _windows_
.new_ColourData(*args
, **kwargs
)
2146 self
.this
= newobj
.this
2149 def __del__(self
, destroy
=_windows_
.delete_ColourData
):
2152 if self
.thisown
: destroy(self
)
2155 def GetChooseFull(*args
, **kwargs
):
2157 GetChooseFull(self) -> bool
2159 Under Windows, determines whether the Windows colour dialog will
2160 display the full dialog with custom colour selection controls. Has no
2161 meaning under other platforms. The default value is true.
2163 return _windows_
.ColourData_GetChooseFull(*args
, **kwargs
)
2165 def GetColour(*args
, **kwargs
):
2167 GetColour(self) -> Colour
2169 Gets the colour (pre)selected by the dialog.
2171 return _windows_
.ColourData_GetColour(*args
, **kwargs
)
2173 def GetCustomColour(*args
, **kwargs
):
2175 GetCustomColour(self, int i) -> Colour
2177 Gets the i'th custom colour associated with the colour dialog. i
2178 should be an integer between 0 and 15. The default custom colours are
2179 all invalid colours.
2181 return _windows_
.ColourData_GetCustomColour(*args
, **kwargs
)
2183 def SetChooseFull(*args
, **kwargs
):
2185 SetChooseFull(self, int flag)
2187 Under Windows, tells the Windows colour dialog to display the full
2188 dialog with custom colour selection controls. Under other platforms,
2189 has no effect. The default value is true.
2191 return _windows_
.ColourData_SetChooseFull(*args
, **kwargs
)
2193 def SetColour(*args
, **kwargs
):
2195 SetColour(self, Colour colour)
2197 Sets the default colour for the colour dialog. The default colour is
2200 return _windows_
.ColourData_SetColour(*args
, **kwargs
)
2202 def SetCustomColour(*args
, **kwargs
):
2204 SetCustomColour(self, int i, Colour colour)
2206 Sets the i'th custom colour for the colour dialog. i should be an
2207 integer between 0 and 15. The default custom colours are all invalid colours.
2209 return _windows_
.ColourData_SetCustomColour(*args
, **kwargs
)
2212 class ColourDataPtr(ColourData
):
2213 def __init__(self
, this
):
2215 if not hasattr(self
,"thisown"): self
.thisown
= 0
2216 self
.__class
__ = ColourData
2217 _windows_
.ColourData_swigregister(ColourDataPtr
)
2218 FileSelectorPromptStr
= cvar
.FileSelectorPromptStr
2219 DirSelectorPromptStr
= cvar
.DirSelectorPromptStr
2220 DirDialogNameStr
= cvar
.DirDialogNameStr
2221 FileSelectorDefaultWildcardStr
= cvar
.FileSelectorDefaultWildcardStr
2222 GetTextFromUserPromptStr
= cvar
.GetTextFromUserPromptStr
2223 MessageBoxCaptionStr
= cvar
.MessageBoxCaptionStr
2225 class ColourDialog(Dialog
):
2226 """This class represents the colour chooser dialog."""
2228 return "<%s.%s; proxy of C++ wxColourDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2229 def __init__(self
, *args
, **kwargs
):
2231 __init__(self, Window parent, ColourData data=None) -> ColourDialog
2233 Constructor. Pass a parent window, and optionally a `wx.ColourData`,
2234 which will be copied to the colour dialog's internal ColourData
2237 newobj
= _windows_
.new_ColourDialog(*args
, **kwargs
)
2238 self
.this
= newobj
.this
2241 self
._setOORInfo
(self
)
2243 def GetColourData(*args
, **kwargs
):
2245 GetColourData(self) -> ColourData
2247 Returns a reference to the `wx.ColourData` used by the dialog.
2249 return _windows_
.ColourDialog_GetColourData(*args
, **kwargs
)
2252 class ColourDialogPtr(ColourDialog
):
2253 def __init__(self
, this
):
2255 if not hasattr(self
,"thisown"): self
.thisown
= 0
2256 self
.__class
__ = ColourDialog
2257 _windows_
.ColourDialog_swigregister(ColourDialogPtr
)
2259 class DirDialog(Dialog
):
2261 wx.DirDialog allows the user to select a directory by browising the
2265 return "<%s.%s; proxy of C++ wxDirDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2266 def __init__(self
, *args
, **kwargs
):
2268 __init__(self, Window parent, String message=DirSelectorPromptStr,
2269 String defaultPath=EmptyString, long style=0,
2270 Point pos=DefaultPosition, Size size=DefaultSize,
2271 String name=DirDialogNameStr) -> DirDialog
2273 Constructor. Use ShowModal method to show the dialog.
2275 newobj
= _windows_
.new_DirDialog(*args
, **kwargs
)
2276 self
.this
= newobj
.this
2279 self
._setOORInfo
(self
)
2281 def GetPath(*args
, **kwargs
):
2283 GetPath(self) -> String
2285 Returns the default or user-selected path.
2287 return _windows_
.DirDialog_GetPath(*args
, **kwargs
)
2289 def GetMessage(*args
, **kwargs
):
2291 GetMessage(self) -> String
2293 Returns the message that will be displayed on the dialog.
2295 return _windows_
.DirDialog_GetMessage(*args
, **kwargs
)
2297 def GetStyle(*args
, **kwargs
):
2299 GetStyle(self) -> long
2301 Returns the dialog style.
2303 return _windows_
.DirDialog_GetStyle(*args
, **kwargs
)
2305 def SetMessage(*args
, **kwargs
):
2307 SetMessage(self, String message)
2309 Sets the message that will be displayed on the dialog.
2311 return _windows_
.DirDialog_SetMessage(*args
, **kwargs
)
2313 def SetPath(*args
, **kwargs
):
2315 SetPath(self, String path)
2317 Sets the default path.
2319 return _windows_
.DirDialog_SetPath(*args
, **kwargs
)
2322 class DirDialogPtr(DirDialog
):
2323 def __init__(self
, this
):
2325 if not hasattr(self
,"thisown"): self
.thisown
= 0
2326 self
.__class
__ = DirDialog
2327 _windows_
.DirDialog_swigregister(DirDialogPtr
)
2329 class FileDialog(Dialog
):
2331 wx.FileDialog allows the user to select one or more files from the
2335 return "<%s.%s; proxy of C++ wxFileDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2336 def __init__(self
, *args
, **kwargs
):
2338 __init__(self, Window parent, String message=FileSelectorPromptStr,
2339 String defaultDir=EmptyString, String defaultFile=EmptyString,
2340 String wildcard=FileSelectorDefaultWildcardStr,
2341 long style=0, Point pos=DefaultPosition) -> FileDialog
2343 Constructor. Use ShowModal method to show the dialog.
2345 newobj
= _windows_
.new_FileDialog(*args
, **kwargs
)
2346 self
.this
= newobj
.this
2349 self
._setOORInfo
(self
)
2351 def SetMessage(*args
, **kwargs
):
2353 SetMessage(self, String message)
2355 Sets the message that will be displayed on the dialog.
2357 return _windows_
.FileDialog_SetMessage(*args
, **kwargs
)
2359 def SetPath(*args
, **kwargs
):
2361 SetPath(self, String path)
2363 Sets the path (the combined directory and filename that will be
2364 returned when the dialog is dismissed).
2366 return _windows_
.FileDialog_SetPath(*args
, **kwargs
)
2368 def SetDirectory(*args
, **kwargs
):
2370 SetDirectory(self, String dir)
2372 Sets the default directory.
2374 return _windows_
.FileDialog_SetDirectory(*args
, **kwargs
)
2376 def SetFilename(*args
, **kwargs
):
2378 SetFilename(self, String name)
2380 Sets the default filename.
2382 return _windows_
.FileDialog_SetFilename(*args
, **kwargs
)
2384 def SetWildcard(*args
, **kwargs
):
2386 SetWildcard(self, String wildCard)
2388 Sets the wildcard, which can contain multiple file types, for
2391 "BMP files (*.bmp)|*.bmp|GIF files (*.gif)|*.gif"
2394 return _windows_
.FileDialog_SetWildcard(*args
, **kwargs
)
2396 def SetStyle(*args
, **kwargs
):
2398 SetStyle(self, long style)
2400 Sets the dialog style.
2402 return _windows_
.FileDialog_SetStyle(*args
, **kwargs
)
2404 def SetFilterIndex(*args
, **kwargs
):
2406 SetFilterIndex(self, int filterIndex)
2408 Sets the default filter index, starting from zero.
2410 return _windows_
.FileDialog_SetFilterIndex(*args
, **kwargs
)
2412 def GetMessage(*args
, **kwargs
):
2414 GetMessage(self) -> String
2416 Returns the message that will be displayed on the dialog.
2418 return _windows_
.FileDialog_GetMessage(*args
, **kwargs
)
2420 def GetPath(*args
, **kwargs
):
2422 GetPath(self) -> String
2424 Returns the full path (directory and filename) of the selected file.
2426 return _windows_
.FileDialog_GetPath(*args
, **kwargs
)
2428 def GetDirectory(*args
, **kwargs
):
2430 GetDirectory(self) -> String
2432 Returns the default directory.
2434 return _windows_
.FileDialog_GetDirectory(*args
, **kwargs
)
2436 def GetFilename(*args
, **kwargs
):
2438 GetFilename(self) -> String
2440 Returns the default filename.
2442 return _windows_
.FileDialog_GetFilename(*args
, **kwargs
)
2444 def GetWildcard(*args
, **kwargs
):
2446 GetWildcard(self) -> String
2448 Returns the file dialog wildcard.
2450 return _windows_
.FileDialog_GetWildcard(*args
, **kwargs
)
2452 def GetStyle(*args
, **kwargs
):
2454 GetStyle(self) -> long
2456 Returns the dialog style.
2458 return _windows_
.FileDialog_GetStyle(*args
, **kwargs
)
2460 def GetFilterIndex(*args
, **kwargs
):
2462 GetFilterIndex(self) -> int
2464 Returns the index into the list of filters supplied, optionally, in
2465 the wildcard parameter. Before the dialog is shown, this is the index
2466 which will be used when the dialog is first displayed. After the
2467 dialog is shown, this is the index selected by the user.
2469 return _windows_
.FileDialog_GetFilterIndex(*args
, **kwargs
)
2471 def GetFilenames(*args
, **kwargs
):
2473 GetFilenames(self) -> PyObject
2475 Returns a list of filenames chosen in the dialog. This function
2476 should only be used with the dialogs which have wx.MULTIPLE style, use
2477 GetFilename for the others.
2479 return _windows_
.FileDialog_GetFilenames(*args
, **kwargs
)
2481 def GetPaths(*args
, **kwargs
):
2483 GetPaths(self) -> PyObject
2485 Fills the array paths with the full paths of the files chosen. This
2486 function should only be used with the dialogs which have wx.MULTIPLE
2487 style, use GetPath for the others.
2489 return _windows_
.FileDialog_GetPaths(*args
, **kwargs
)
2492 class FileDialogPtr(FileDialog
):
2493 def __init__(self
, this
):
2495 if not hasattr(self
,"thisown"): self
.thisown
= 0
2496 self
.__class
__ = FileDialog
2497 _windows_
.FileDialog_swigregister(FileDialogPtr
)
2499 CHOICEDLG_STYLE
= _windows_
.CHOICEDLG_STYLE
2500 class MultiChoiceDialog(Dialog
):
2501 """A simple dialog with a multi selection listbox."""
2503 return "<%s.%s; proxy of C++ wxMultiChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2504 def __init__(self
, *args
, **kwargs
):
2506 __init__(Window parent, String message, String caption,
2507 List choices=[], long style=CHOICEDLG_STYLE,
2508 Point pos=DefaultPosition) -> MultiChoiceDialog
2510 Constructor. Use ShowModal method to show the dialog.
2512 newobj
= _windows_
.new_MultiChoiceDialog(*args
, **kwargs
)
2513 self
.this
= newobj
.this
2516 self
._setOORInfo
(self
)
2518 def SetSelections(*args
, **kwargs
):
2520 SetSelections(List selections)
2522 Specify the items in the list that should be selected, using a list of
2525 return _windows_
.MultiChoiceDialog_SetSelections(*args
, **kwargs
)
2527 def GetSelections(*args
, **kwargs
):
2529 GetSelections() -> [selections]
2531 Returns a list of integers representing the items that are selected.
2533 return _windows_
.MultiChoiceDialog_GetSelections(*args
, **kwargs
)
2536 class MultiChoiceDialogPtr(MultiChoiceDialog
):
2537 def __init__(self
, this
):
2539 if not hasattr(self
,"thisown"): self
.thisown
= 0
2540 self
.__class
__ = MultiChoiceDialog
2541 _windows_
.MultiChoiceDialog_swigregister(MultiChoiceDialogPtr
)
2543 class SingleChoiceDialog(Dialog
):
2544 """A simple dialog with a single selection listbox."""
2546 return "<%s.%s; proxy of C++ wxSingleChoiceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2547 def __init__(self
, *args
, **kwargs
):
2549 __init__(Window parent, String message, String caption,
2550 List choices=[], long style=CHOICEDLG_STYLE,
2551 Point pos=DefaultPosition) -> SingleChoiceDialog
2553 Constructor. Use ShowModal method to show the dialog.
2555 newobj
= _windows_
.new_SingleChoiceDialog(*args
, **kwargs
)
2556 self
.this
= newobj
.this
2559 self
._setOORInfo
(self
)
2561 def GetSelection(*args
, **kwargs
):
2563 GetSelection(self) -> int
2565 Get the index of teh currently selected item.
2567 return _windows_
.SingleChoiceDialog_GetSelection(*args
, **kwargs
)
2569 def GetStringSelection(*args
, **kwargs
):
2571 GetStringSelection(self) -> String
2573 Returns the string value of the currently selected item
2575 return _windows_
.SingleChoiceDialog_GetStringSelection(*args
, **kwargs
)
2577 def SetSelection(*args
, **kwargs
):
2579 SetSelection(self, int sel)
2581 Set the current selected item to sel
2583 return _windows_
.SingleChoiceDialog_SetSelection(*args
, **kwargs
)
2586 class SingleChoiceDialogPtr(SingleChoiceDialog
):
2587 def __init__(self
, this
):
2589 if not hasattr(self
,"thisown"): self
.thisown
= 0
2590 self
.__class
__ = SingleChoiceDialog
2591 _windows_
.SingleChoiceDialog_swigregister(SingleChoiceDialogPtr
)
2593 class TextEntryDialog(Dialog
):
2594 """A dialog with text control, [ok] and [cancel] buttons"""
2596 return "<%s.%s; proxy of C++ wxTextEntryDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2597 def __init__(self
, *args
, **kwargs
):
2599 __init__(self, Window parent, String message, String caption=GetTextFromUserPromptStr,
2600 String defaultValue=EmptyString,
2601 long style=wxOK|wxCANCEL|wxCENTRE, Point pos=DefaultPosition) -> TextEntryDialog
2603 Constructor. Use ShowModal method to show the dialog.
2605 newobj
= _windows_
.new_TextEntryDialog(*args
, **kwargs
)
2606 self
.this
= newobj
.this
2609 self
._setOORInfo
(self
)
2611 def GetValue(*args
, **kwargs
):
2613 GetValue(self) -> String
2615 Returns the text that the user has entered if the user has pressed OK,
2616 or the original value if the user has pressed Cancel.
2618 return _windows_
.TextEntryDialog_GetValue(*args
, **kwargs
)
2620 def SetValue(*args
, **kwargs
):
2622 SetValue(self, String value)
2624 Sets the default text value.
2626 return _windows_
.TextEntryDialog_SetValue(*args
, **kwargs
)
2629 class TextEntryDialogPtr(TextEntryDialog
):
2630 def __init__(self
, this
):
2632 if not hasattr(self
,"thisown"): self
.thisown
= 0
2633 self
.__class
__ = TextEntryDialog
2634 _windows_
.TextEntryDialog_swigregister(TextEntryDialogPtr
)
2636 class FontData(_core
.Object
):
2638 This class holds a variety of information related to font dialogs and
2639 is used to transfer settings to and results from a `wx.FontDialog`.
2642 return "<%s.%s; proxy of C++ wxFontData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2643 def __init__(self
, *args
, **kwargs
):
2645 __init__(self) -> FontData
2647 This class holds a variety of information related to font dialogs and
2648 is used to transfer settings to and results from a `wx.FontDialog`.
2650 newobj
= _windows_
.new_FontData(*args
, **kwargs
)
2651 self
.this
= newobj
.this
2654 def __del__(self
, destroy
=_windows_
.delete_FontData
):
2657 if self
.thisown
: destroy(self
)
2660 def EnableEffects(*args
, **kwargs
):
2662 EnableEffects(self, bool enable)
2664 Enables or disables 'effects' under MS Windows only. This refers to
2665 the controls for manipulating colour, strikeout and underline
2666 properties. The default value is true.
2668 return _windows_
.FontData_EnableEffects(*args
, **kwargs
)
2670 def GetAllowSymbols(*args
, **kwargs
):
2672 GetAllowSymbols(self) -> bool
2674 Under MS Windows, returns a flag determining whether symbol fonts can
2675 be selected. Has no effect on other platforms. The default value is
2678 return _windows_
.FontData_GetAllowSymbols(*args
, **kwargs
)
2680 def GetColour(*args
, **kwargs
):
2682 GetColour(self) -> Colour
2684 Gets the colour associated with the font dialog. The default value is
2687 return _windows_
.FontData_GetColour(*args
, **kwargs
)
2689 def GetChosenFont(*args
, **kwargs
):
2691 GetChosenFont(self) -> Font
2693 Gets the font chosen by the user.
2695 return _windows_
.FontData_GetChosenFont(*args
, **kwargs
)
2697 def GetEnableEffects(*args
, **kwargs
):
2699 GetEnableEffects(self) -> bool
2701 Determines whether 'effects' are enabled under Windows.
2703 return _windows_
.FontData_GetEnableEffects(*args
, **kwargs
)
2705 def GetInitialFont(*args
, **kwargs
):
2707 GetInitialFont(self) -> Font
2709 Gets the font that will be initially used by the font dialog. This
2710 should have previously been set by the application.
2712 return _windows_
.FontData_GetInitialFont(*args
, **kwargs
)
2714 def GetShowHelp(*args
, **kwargs
):
2716 GetShowHelp(self) -> bool
2718 Returns true if the Help button will be shown (Windows only). The
2719 default value is false.
2721 return _windows_
.FontData_GetShowHelp(*args
, **kwargs
)
2723 def SetAllowSymbols(*args
, **kwargs
):
2725 SetAllowSymbols(self, bool allowSymbols)
2727 Under MS Windows, determines whether symbol fonts can be selected. Has
2728 no effect on other platforms. The default value is true.
2730 return _windows_
.FontData_SetAllowSymbols(*args
, **kwargs
)
2732 def SetChosenFont(*args
, **kwargs
):
2734 SetChosenFont(self, Font font)
2736 Sets the font that will be returned to the user (normally for internal
2739 return _windows_
.FontData_SetChosenFont(*args
, **kwargs
)
2741 def SetColour(*args
, **kwargs
):
2743 SetColour(self, Colour colour)
2745 Sets the colour that will be used for the font foreground colour. The
2746 default colour is black.
2748 return _windows_
.FontData_SetColour(*args
, **kwargs
)
2750 def SetInitialFont(*args
, **kwargs
):
2752 SetInitialFont(self, Font font)
2754 Sets the font that will be initially used by the font dialog.
2756 return _windows_
.FontData_SetInitialFont(*args
, **kwargs
)
2758 def SetRange(*args
, **kwargs
):
2760 SetRange(self, int min, int max)
2762 Sets the valid range for the font point size (Windows only). The
2763 default is 0, 0 (unrestricted range).
2765 return _windows_
.FontData_SetRange(*args
, **kwargs
)
2767 def SetShowHelp(*args
, **kwargs
):
2769 SetShowHelp(self, bool showHelp)
2771 Determines whether the Help button will be displayed in the font
2772 dialog (Windows only). The default value is false.
2774 return _windows_
.FontData_SetShowHelp(*args
, **kwargs
)
2777 class FontDataPtr(FontData
):
2778 def __init__(self
, this
):
2780 if not hasattr(self
,"thisown"): self
.thisown
= 0
2781 self
.__class
__ = FontData
2782 _windows_
.FontData_swigregister(FontDataPtr
)
2784 class FontDialog(Dialog
):
2786 wx.FontDialog allows the user to select a system font and its attributes.
2792 return "<%s.%s; proxy of C++ wxFontDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2793 def __init__(self
, *args
, **kwargs
):
2795 __init__(self, Window parent, FontData data) -> FontDialog
2797 Constructor. Pass a parent window and the `wx.FontData` object to be
2798 used to initialize the dialog controls. Call `ShowModal` to display
2799 the dialog. If ShowModal returns ``wx.ID_OK`` then you can fetch the
2800 results with via the `wx.FontData` returned by `GetFontData`.
2802 newobj
= _windows_
.new_FontDialog(*args
, **kwargs
)
2803 self
.this
= newobj
.this
2806 self
._setOORInfo
(self
)
2808 def GetFontData(*args
, **kwargs
):
2810 GetFontData(self) -> FontData
2812 Returns a reference to the internal `wx.FontData` used by the
2815 return _windows_
.FontDialog_GetFontData(*args
, **kwargs
)
2818 class FontDialogPtr(FontDialog
):
2819 def __init__(self
, this
):
2821 if not hasattr(self
,"thisown"): self
.thisown
= 0
2822 self
.__class
__ = FontDialog
2823 _windows_
.FontDialog_swigregister(FontDialogPtr
)
2825 class MessageDialog(Dialog
):
2827 This class provides a simple dialog that shows a single or multi-line
2828 message, with a choice of OK, Yes, No and/or Cancel buttons.
2831 return "<%s.%s; proxy of C++ wxMessageDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2832 def __init__(self
, *args
, **kwargs
):
2834 __init__(self, Window parent, String message, String caption=MessageBoxCaptionStr,
2835 long style=wxOK|wxCANCEL|wxCENTRE,
2836 Point pos=DefaultPosition) -> MessageDialog
2838 Constructor, use `ShowModal` to display the dialog.
2840 newobj
= _windows_
.new_MessageDialog(*args
, **kwargs
)
2841 self
.this
= newobj
.this
2844 self
._setOORInfo
(self
)
2847 class MessageDialogPtr(MessageDialog
):
2848 def __init__(self
, this
):
2850 if not hasattr(self
,"thisown"): self
.thisown
= 0
2851 self
.__class
__ = MessageDialog
2852 _windows_
.MessageDialog_swigregister(MessageDialogPtr
)
2854 class ProgressDialog(Frame
):
2856 A dialog that shows a short message and a progress bar. Optionally, it
2857 can display an ABORT button.
2860 return "<%s.%s; proxy of C++ wxProgressDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2861 def __init__(self
, *args
, **kwargs
):
2863 __init__(self, String title, String message, int maximum=100, Window parent=None,
2864 int style=wxPD_AUTO_HIDE|wxPD_APP_MODAL) -> ProgressDialog
2866 Constructor. Creates the dialog, displays it and disables user input
2867 for other windows, or, if wx.PD_APP_MODAL flag is not given, for its
2870 newobj
= _windows_
.new_ProgressDialog(*args
, **kwargs
)
2871 self
.this
= newobj
.this
2874 self
._setOORInfo
(self
)
2876 def Update(*args
, **kwargs
):
2878 Update(self, int value, String newmsg=EmptyString) -> bool
2880 Updates the dialog, setting the progress bar to the new value and, if
2881 given changes the message above it. The value given should be less
2882 than or equal to the maximum value given to the constructor and the
2883 dialog is closed if it is equal to the maximum. Returns true unless
2884 the Cancel button has been pressed.
2886 If false is returned, the application can either immediately destroy
2887 the dialog or ask the user for the confirmation and if the abort is
2888 not confirmed the dialog may be resumed with Resume function.
2890 return _windows_
.ProgressDialog_Update(*args
, **kwargs
)
2892 def Resume(*args
, **kwargs
):
2896 Can be used to continue with the dialog, after the user had chosen to
2899 return _windows_
.ProgressDialog_Resume(*args
, **kwargs
)
2902 class ProgressDialogPtr(ProgressDialog
):
2903 def __init__(self
, this
):
2905 if not hasattr(self
,"thisown"): self
.thisown
= 0
2906 self
.__class
__ = ProgressDialog
2907 _windows_
.ProgressDialog_swigregister(ProgressDialogPtr
)
2909 FR_DOWN
= _windows_
.FR_DOWN
2910 FR_WHOLEWORD
= _windows_
.FR_WHOLEWORD
2911 FR_MATCHCASE
= _windows_
.FR_MATCHCASE
2912 FR_REPLACEDIALOG
= _windows_
.FR_REPLACEDIALOG
2913 FR_NOUPDOWN
= _windows_
.FR_NOUPDOWN
2914 FR_NOMATCHCASE
= _windows_
.FR_NOMATCHCASE
2915 FR_NOWHOLEWORD
= _windows_
.FR_NOWHOLEWORD
2916 wxEVT_COMMAND_FIND
= _windows_
.wxEVT_COMMAND_FIND
2917 wxEVT_COMMAND_FIND_NEXT
= _windows_
.wxEVT_COMMAND_FIND_NEXT
2918 wxEVT_COMMAND_FIND_REPLACE
= _windows_
.wxEVT_COMMAND_FIND_REPLACE
2919 wxEVT_COMMAND_FIND_REPLACE_ALL
= _windows_
.wxEVT_COMMAND_FIND_REPLACE_ALL
2920 wxEVT_COMMAND_FIND_CLOSE
= _windows_
.wxEVT_COMMAND_FIND_CLOSE
2921 EVT_FIND
= wx
.PyEventBinder( wxEVT_COMMAND_FIND
, 1 )
2922 EVT_FIND_NEXT
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_NEXT
, 1 )
2923 EVT_FIND_REPLACE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE
, 1 )
2924 EVT_FIND_REPLACE_ALL
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_REPLACE_ALL
, 1 )
2925 EVT_FIND_CLOSE
= wx
.PyEventBinder( wxEVT_COMMAND_FIND_CLOSE
, 1 )
2927 # For backwards compatibility. Should they be removed?
2928 EVT_COMMAND_FIND
= EVT_FIND
2929 EVT_COMMAND_FIND_NEXT
= EVT_FIND_NEXT
2930 EVT_COMMAND_FIND_REPLACE
= EVT_FIND_REPLACE
2931 EVT_COMMAND_FIND_REPLACE_ALL
= EVT_FIND_REPLACE_ALL
2932 EVT_COMMAND_FIND_CLOSE
= EVT_FIND_CLOSE
2934 class FindDialogEvent(_core
.CommandEvent
):
2935 """Events for the FindReplaceDialog"""
2937 return "<%s.%s; proxy of C++ wxFindDialogEvent instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
2938 def __init__(self
, *args
, **kwargs
):
2940 __init__(self, wxEventType commandType=wxEVT_NULL, int id=0) -> FindDialogEvent
2942 Events for the FindReplaceDialog
2944 newobj
= _windows_
.new_FindDialogEvent(*args
, **kwargs
)
2945 self
.this
= newobj
.this
2948 def GetFlags(*args
, **kwargs
):
2950 GetFlags(self) -> int
2952 Get the currently selected flags: this is the combination of
2953 wx.FR_DOWN, wx.FR_WHOLEWORD and wx.FR_MATCHCASE flags.
2955 return _windows_
.FindDialogEvent_GetFlags(*args
, **kwargs
)
2957 def GetFindString(*args
, **kwargs
):
2959 GetFindString(self) -> String
2961 Return the string to find (never empty).
2963 return _windows_
.FindDialogEvent_GetFindString(*args
, **kwargs
)
2965 def GetReplaceString(*args
, **kwargs
):
2967 GetReplaceString(self) -> String
2969 Return the string to replace the search string with (only for replace
2970 and replace all events).
2972 return _windows_
.FindDialogEvent_GetReplaceString(*args
, **kwargs
)
2974 def GetDialog(*args
, **kwargs
):
2976 GetDialog(self) -> FindReplaceDialog
2978 Return the pointer to the dialog which generated this event.
2980 return _windows_
.FindDialogEvent_GetDialog(*args
, **kwargs
)
2982 def SetFlags(*args
, **kwargs
):
2983 """SetFlags(self, int flags)"""
2984 return _windows_
.FindDialogEvent_SetFlags(*args
, **kwargs
)
2986 def SetFindString(*args
, **kwargs
):
2987 """SetFindString(self, String str)"""
2988 return _windows_
.FindDialogEvent_SetFindString(*args
, **kwargs
)
2990 def SetReplaceString(*args
, **kwargs
):
2991 """SetReplaceString(self, String str)"""
2992 return _windows_
.FindDialogEvent_SetReplaceString(*args
, **kwargs
)
2995 class FindDialogEventPtr(FindDialogEvent
):
2996 def __init__(self
, this
):
2998 if not hasattr(self
,"thisown"): self
.thisown
= 0
2999 self
.__class
__ = FindDialogEvent
3000 _windows_
.FindDialogEvent_swigregister(FindDialogEventPtr
)
3002 class FindReplaceData(_core
.Object
):
3004 wx.FindReplaceData holds the data for wx.FindReplaceDialog. It is used
3005 to initialize the dialog with the default values and will keep the
3006 last values from the dialog when it is closed. It is also updated each
3007 time a `wx.FindDialogEvent` is generated so instead of using the
3008 `wx.FindDialogEvent` methods you can also directly query this object.
3010 Note that all SetXXX() methods may only be called before showing the
3011 dialog and calling them has no effect later.
3014 return "<%s.%s; proxy of C++ wxFindReplaceData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3015 def __init__(self
, *args
, **kwargs
):
3017 __init__(self, int flags=0) -> FindReplaceData
3019 Constuctor initializes the flags to default value (0).
3021 newobj
= _windows_
.new_FindReplaceData(*args
, **kwargs
)
3022 self
.this
= newobj
.this
3025 def __del__(self
, destroy
=_windows_
.delete_FindReplaceData
):
3028 if self
.thisown
: destroy(self
)
3031 def GetFindString(*args
, **kwargs
):
3033 GetFindString(self) -> String
3035 Get the string to find.
3037 return _windows_
.FindReplaceData_GetFindString(*args
, **kwargs
)
3039 def GetReplaceString(*args
, **kwargs
):
3041 GetReplaceString(self) -> String
3043 Get the replacement string.
3045 return _windows_
.FindReplaceData_GetReplaceString(*args
, **kwargs
)
3047 def GetFlags(*args
, **kwargs
):
3049 GetFlags(self) -> int
3051 Get the combination of flag values.
3053 return _windows_
.FindReplaceData_GetFlags(*args
, **kwargs
)
3055 def SetFlags(*args
, **kwargs
):
3057 SetFlags(self, int flags)
3059 Set the flags to use to initialize the controls of the dialog.
3061 return _windows_
.FindReplaceData_SetFlags(*args
, **kwargs
)
3063 def SetFindString(*args
, **kwargs
):
3065 SetFindString(self, String str)
3067 Set the string to find (used as initial value by the dialog).
3069 return _windows_
.FindReplaceData_SetFindString(*args
, **kwargs
)
3071 def SetReplaceString(*args
, **kwargs
):
3073 SetReplaceString(self, String str)
3075 Set the replacement string (used as initial value by the dialog).
3077 return _windows_
.FindReplaceData_SetReplaceString(*args
, **kwargs
)
3080 class FindReplaceDataPtr(FindReplaceData
):
3081 def __init__(self
, this
):
3083 if not hasattr(self
,"thisown"): self
.thisown
= 0
3084 self
.__class
__ = FindReplaceData
3085 _windows_
.FindReplaceData_swigregister(FindReplaceDataPtr
)
3087 class FindReplaceDialog(Dialog
):
3089 wx.FindReplaceDialog is a standard modeless dialog which is used to
3090 allow the user to search for some text (and possibly replace it with
3091 something else). The actual searching is supposed to be done in the
3092 owner window which is the parent of this dialog. Note that it means
3093 that unlike for the other standard dialogs this one must have a parent
3094 window. Also note that there is no way to use this dialog in a modal
3095 way; it is always, by design and implementation, modeless.
3098 return "<%s.%s; proxy of C++ wxFindReplaceDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3099 def __init__(self
, *args
, **kwargs
):
3101 __init__(self, Window parent, FindReplaceData data, String title,
3102 int style=0) -> FindReplaceDialog
3104 Create a FindReplaceDialog. The parent and data parameters must be
3105 non-None. Use Show to display the dialog.
3107 newobj
= _windows_
.new_FindReplaceDialog(*args
, **kwargs
)
3108 self
.this
= newobj
.this
3111 self
._setOORInfo
(self
)
3113 def Create(*args
, **kwargs
):
3115 Create(self, Window parent, FindReplaceData data, String title,
3116 int style=0) -> bool
3118 Create the dialog, for 2-phase create.
3120 return _windows_
.FindReplaceDialog_Create(*args
, **kwargs
)
3122 def GetData(*args
, **kwargs
):
3124 GetData(self) -> FindReplaceData
3126 Get the FindReplaceData object used by this dialog.
3128 return _windows_
.FindReplaceDialog_GetData(*args
, **kwargs
)
3130 def SetData(*args
, **kwargs
):
3132 SetData(self, FindReplaceData data)
3134 Set the FindReplaceData object used by this dialog.
3136 return _windows_
.FindReplaceDialog_SetData(*args
, **kwargs
)
3139 class FindReplaceDialogPtr(FindReplaceDialog
):
3140 def __init__(self
, this
):
3142 if not hasattr(self
,"thisown"): self
.thisown
= 0
3143 self
.__class
__ = FindReplaceDialog
3144 _windows_
.FindReplaceDialog_swigregister(FindReplaceDialogPtr
)
3146 def PreFindReplaceDialog(*args
, **kwargs
):
3148 PreFindReplaceDialog() -> FindReplaceDialog
3150 Precreate a FindReplaceDialog for 2-phase creation
3152 val
= _windows_
.new_PreFindReplaceDialog(*args
, **kwargs
)
3156 #---------------------------------------------------------------------------
3158 IDM_WINDOWTILE
= _windows_
.IDM_WINDOWTILE
3159 IDM_WINDOWTILEHOR
= _windows_
.IDM_WINDOWTILEHOR
3160 IDM_WINDOWCASCADE
= _windows_
.IDM_WINDOWCASCADE
3161 IDM_WINDOWICONS
= _windows_
.IDM_WINDOWICONS
3162 IDM_WINDOWNEXT
= _windows_
.IDM_WINDOWNEXT
3163 IDM_WINDOWTILEVERT
= _windows_
.IDM_WINDOWTILEVERT
3164 FIRST_MDI_CHILD
= _windows_
.FIRST_MDI_CHILD
3165 LAST_MDI_CHILD
= _windows_
.LAST_MDI_CHILD
3166 class MDIParentFrame(Frame
):
3168 return "<%s.%s; proxy of C++ wxMDIParentFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3169 def __init__(self
, *args
, **kwargs
):
3171 __init__(self, Window parent, int id=-1, String title=EmptyString,
3172 Point pos=DefaultPosition, Size size=DefaultSize,
3173 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3174 String name=FrameNameStr) -> MDIParentFrame
3176 newobj
= _windows_
.new_MDIParentFrame(*args
, **kwargs
)
3177 self
.this
= newobj
.this
3180 self
._setOORInfo
(self
)
3182 def Create(*args
, **kwargs
):
3184 Create(self, Window parent, int id=-1, String title=EmptyString,
3185 Point pos=DefaultPosition, Size size=DefaultSize,
3186 long style=wxDEFAULT_FRAME_STYLE|wxVSCROLL|wxHSCROLL,
3187 String name=FrameNameStr) -> bool
3189 return _windows_
.MDIParentFrame_Create(*args
, **kwargs
)
3191 def ActivateNext(*args
, **kwargs
):
3192 """ActivateNext(self)"""
3193 return _windows_
.MDIParentFrame_ActivateNext(*args
, **kwargs
)
3195 def ActivatePrevious(*args
, **kwargs
):
3196 """ActivatePrevious(self)"""
3197 return _windows_
.MDIParentFrame_ActivatePrevious(*args
, **kwargs
)
3199 def ArrangeIcons(*args
, **kwargs
):
3200 """ArrangeIcons(self)"""
3201 return _windows_
.MDIParentFrame_ArrangeIcons(*args
, **kwargs
)
3203 def Cascade(*args
, **kwargs
):
3205 return _windows_
.MDIParentFrame_Cascade(*args
, **kwargs
)
3207 def GetActiveChild(*args
, **kwargs
):
3208 """GetActiveChild(self) -> MDIChildFrame"""
3209 return _windows_
.MDIParentFrame_GetActiveChild(*args
, **kwargs
)
3211 def GetClientWindow(*args
, **kwargs
):
3212 """GetClientWindow(self) -> MDIClientWindow"""
3213 return _windows_
.MDIParentFrame_GetClientWindow(*args
, **kwargs
)
3215 def GetToolBar(*args
, **kwargs
):
3216 """GetToolBar(self) -> Window"""
3217 return _windows_
.MDIParentFrame_GetToolBar(*args
, **kwargs
)
3219 def GetWindowMenu(*args
, **kwargs
):
3220 """GetWindowMenu(self) -> Menu"""
3221 return _windows_
.MDIParentFrame_GetWindowMenu(*args
, **kwargs
)
3223 def SetWindowMenu(*args
, **kwargs
):
3224 """SetWindowMenu(self, Menu menu)"""
3225 return _windows_
.MDIParentFrame_SetWindowMenu(*args
, **kwargs
)
3227 def SetToolBar(*args
, **kwargs
):
3228 """SetToolBar(self, wxToolBar toolbar)"""
3229 return _windows_
.MDIParentFrame_SetToolBar(*args
, **kwargs
)
3231 def Tile(*args
, **kwargs
):
3233 return _windows_
.MDIParentFrame_Tile(*args
, **kwargs
)
3236 class MDIParentFramePtr(MDIParentFrame
):
3237 def __init__(self
, this
):
3239 if not hasattr(self
,"thisown"): self
.thisown
= 0
3240 self
.__class
__ = MDIParentFrame
3241 _windows_
.MDIParentFrame_swigregister(MDIParentFramePtr
)
3243 def PreMDIParentFrame(*args
, **kwargs
):
3244 """PreMDIParentFrame() -> MDIParentFrame"""
3245 val
= _windows_
.new_PreMDIParentFrame(*args
, **kwargs
)
3249 class MDIChildFrame(Frame
):
3251 return "<%s.%s; proxy of C++ wxMDIChildFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3252 def __init__(self
, *args
, **kwargs
):
3254 __init__(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3255 Point pos=DefaultPosition, Size size=DefaultSize,
3256 long style=DEFAULT_FRAME_STYLE,
3257 String name=FrameNameStr) -> MDIChildFrame
3259 newobj
= _windows_
.new_MDIChildFrame(*args
, **kwargs
)
3260 self
.this
= newobj
.this
3263 self
._setOORInfo
(self
)
3265 def Create(*args
, **kwargs
):
3267 Create(self, MDIParentFrame parent, int id=-1, String title=EmptyString,
3268 Point pos=DefaultPosition, Size size=DefaultSize,
3269 long style=DEFAULT_FRAME_STYLE,
3270 String name=FrameNameStr) -> bool
3272 return _windows_
.MDIChildFrame_Create(*args
, **kwargs
)
3274 def Activate(*args
, **kwargs
):
3275 """Activate(self)"""
3276 return _windows_
.MDIChildFrame_Activate(*args
, **kwargs
)
3278 def Maximize(*args
, **kwargs
):
3279 """Maximize(self, bool maximize)"""
3280 return _windows_
.MDIChildFrame_Maximize(*args
, **kwargs
)
3282 def Restore(*args
, **kwargs
):
3284 return _windows_
.MDIChildFrame_Restore(*args
, **kwargs
)
3287 class MDIChildFramePtr(MDIChildFrame
):
3288 def __init__(self
, this
):
3290 if not hasattr(self
,"thisown"): self
.thisown
= 0
3291 self
.__class
__ = MDIChildFrame
3292 _windows_
.MDIChildFrame_swigregister(MDIChildFramePtr
)
3294 def PreMDIChildFrame(*args
, **kwargs
):
3295 """PreMDIChildFrame() -> MDIChildFrame"""
3296 val
= _windows_
.new_PreMDIChildFrame(*args
, **kwargs
)
3300 class MDIClientWindow(_core
.Window
):
3302 return "<%s.%s; proxy of C++ wxMDIClientWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3303 def __init__(self
, *args
, **kwargs
):
3304 """__init__(self, MDIParentFrame parent, long style=0) -> MDIClientWindow"""
3305 newobj
= _windows_
.new_MDIClientWindow(*args
, **kwargs
)
3306 self
.this
= newobj
.this
3309 self
._setOORInfo
(self
)
3311 def Create(*args
, **kwargs
):
3312 """Create(self, MDIParentFrame parent, long style=0) -> bool"""
3313 return _windows_
.MDIClientWindow_Create(*args
, **kwargs
)
3316 class MDIClientWindowPtr(MDIClientWindow
):
3317 def __init__(self
, this
):
3319 if not hasattr(self
,"thisown"): self
.thisown
= 0
3320 self
.__class
__ = MDIClientWindow
3321 _windows_
.MDIClientWindow_swigregister(MDIClientWindowPtr
)
3323 def PreMDIClientWindow(*args
, **kwargs
):
3324 """PreMDIClientWindow() -> MDIClientWindow"""
3325 val
= _windows_
.new_PreMDIClientWindow(*args
, **kwargs
)
3329 #---------------------------------------------------------------------------
3331 class PyWindow(_core
.Window
):
3333 return "<%s.%s; proxy of C++ wxPyWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3334 def __init__(self
, *args
, **kwargs
):
3336 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3337 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyWindow
3339 newobj
= _windows_
.new_PyWindow(*args
, **kwargs
)
3340 self
.this
= newobj
.this
3343 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyWindow
)
3345 def _setCallbackInfo(*args
, **kwargs
):
3346 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3347 return _windows_
.PyWindow__setCallbackInfo(*args
, **kwargs
)
3349 def SetBestSize(*args
, **kwargs
):
3350 """SetBestSize(self, Size size)"""
3351 return _windows_
.PyWindow_SetBestSize(*args
, **kwargs
)
3353 def base_DoMoveWindow(*args
, **kwargs
):
3354 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3355 return _windows_
.PyWindow_base_DoMoveWindow(*args
, **kwargs
)
3357 def base_DoSetSize(*args
, **kwargs
):
3358 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3359 return _windows_
.PyWindow_base_DoSetSize(*args
, **kwargs
)
3361 def base_DoSetClientSize(*args
, **kwargs
):
3362 """base_DoSetClientSize(self, int width, int height)"""
3363 return _windows_
.PyWindow_base_DoSetClientSize(*args
, **kwargs
)
3365 def base_DoSetVirtualSize(*args
, **kwargs
):
3366 """base_DoSetVirtualSize(self, int x, int y)"""
3367 return _windows_
.PyWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3369 def base_DoGetSize(*args
, **kwargs
):
3370 """base_DoGetSize() -> (width, height)"""
3371 return _windows_
.PyWindow_base_DoGetSize(*args
, **kwargs
)
3373 def base_DoGetClientSize(*args
, **kwargs
):
3374 """base_DoGetClientSize() -> (width, height)"""
3375 return _windows_
.PyWindow_base_DoGetClientSize(*args
, **kwargs
)
3377 def base_DoGetPosition(*args
, **kwargs
):
3378 """base_DoGetPosition() -> (x,y)"""
3379 return _windows_
.PyWindow_base_DoGetPosition(*args
, **kwargs
)
3381 def base_DoGetVirtualSize(*args
, **kwargs
):
3382 """base_DoGetVirtualSize(self) -> Size"""
3383 return _windows_
.PyWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3385 def base_DoGetBestSize(*args
, **kwargs
):
3386 """base_DoGetBestSize(self) -> Size"""
3387 return _windows_
.PyWindow_base_DoGetBestSize(*args
, **kwargs
)
3389 def base_InitDialog(*args
, **kwargs
):
3390 """base_InitDialog(self)"""
3391 return _windows_
.PyWindow_base_InitDialog(*args
, **kwargs
)
3393 def base_TransferDataToWindow(*args
, **kwargs
):
3394 """base_TransferDataToWindow(self) -> bool"""
3395 return _windows_
.PyWindow_base_TransferDataToWindow(*args
, **kwargs
)
3397 def base_TransferDataFromWindow(*args
, **kwargs
):
3398 """base_TransferDataFromWindow(self) -> bool"""
3399 return _windows_
.PyWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3401 def base_Validate(*args
, **kwargs
):
3402 """base_Validate(self) -> bool"""
3403 return _windows_
.PyWindow_base_Validate(*args
, **kwargs
)
3405 def base_AcceptsFocus(*args
, **kwargs
):
3406 """base_AcceptsFocus(self) -> bool"""
3407 return _windows_
.PyWindow_base_AcceptsFocus(*args
, **kwargs
)
3409 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3410 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3411 return _windows_
.PyWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3413 def base_GetMaxSize(*args
, **kwargs
):
3414 """base_GetMaxSize(self) -> Size"""
3415 return _windows_
.PyWindow_base_GetMaxSize(*args
, **kwargs
)
3417 def base_AddChild(*args
, **kwargs
):
3418 """base_AddChild(self, Window child)"""
3419 return _windows_
.PyWindow_base_AddChild(*args
, **kwargs
)
3421 def base_RemoveChild(*args
, **kwargs
):
3422 """base_RemoveChild(self, Window child)"""
3423 return _windows_
.PyWindow_base_RemoveChild(*args
, **kwargs
)
3425 def base_ShouldInheritColours(*args
, **kwargs
):
3426 """base_ShouldInheritColours(self) -> bool"""
3427 return _windows_
.PyWindow_base_ShouldInheritColours(*args
, **kwargs
)
3429 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3430 """base_ApplyParentThemeBackground(self, Colour c)"""
3431 return _windows_
.PyWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3433 def base_GetDefaultAttributes(*args
, **kwargs
):
3434 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3435 return _windows_
.PyWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3438 class PyWindowPtr(PyWindow
):
3439 def __init__(self
, this
):
3441 if not hasattr(self
,"thisown"): self
.thisown
= 0
3442 self
.__class
__ = PyWindow
3443 _windows_
.PyWindow_swigregister(PyWindowPtr
)
3445 def PrePyWindow(*args
, **kwargs
):
3446 """PrePyWindow() -> PyWindow"""
3447 val
= _windows_
.new_PrePyWindow(*args
, **kwargs
)
3451 class PyPanel(Panel
):
3453 return "<%s.%s; proxy of C++ wxPyPanel instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3454 def __init__(self
, *args
, **kwargs
):
3456 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3457 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyPanel
3459 newobj
= _windows_
.new_PyPanel(*args
, **kwargs
)
3460 self
.this
= newobj
.this
3463 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3465 def _setCallbackInfo(*args
, **kwargs
):
3466 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3467 return _windows_
.PyPanel__setCallbackInfo(*args
, **kwargs
)
3469 def SetBestSize(*args
, **kwargs
):
3470 """SetBestSize(self, Size size)"""
3471 return _windows_
.PyPanel_SetBestSize(*args
, **kwargs
)
3473 def base_DoMoveWindow(*args
, **kwargs
):
3474 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3475 return _windows_
.PyPanel_base_DoMoveWindow(*args
, **kwargs
)
3477 def base_DoSetSize(*args
, **kwargs
):
3478 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3479 return _windows_
.PyPanel_base_DoSetSize(*args
, **kwargs
)
3481 def base_DoSetClientSize(*args
, **kwargs
):
3482 """base_DoSetClientSize(self, int width, int height)"""
3483 return _windows_
.PyPanel_base_DoSetClientSize(*args
, **kwargs
)
3485 def base_DoSetVirtualSize(*args
, **kwargs
):
3486 """base_DoSetVirtualSize(self, int x, int y)"""
3487 return _windows_
.PyPanel_base_DoSetVirtualSize(*args
, **kwargs
)
3489 def base_DoGetSize(*args
, **kwargs
):
3490 """base_DoGetSize() -> (width, height)"""
3491 return _windows_
.PyPanel_base_DoGetSize(*args
, **kwargs
)
3493 def base_DoGetClientSize(*args
, **kwargs
):
3494 """base_DoGetClientSize() -> (width, height)"""
3495 return _windows_
.PyPanel_base_DoGetClientSize(*args
, **kwargs
)
3497 def base_DoGetPosition(*args
, **kwargs
):
3498 """base_DoGetPosition() -> (x,y)"""
3499 return _windows_
.PyPanel_base_DoGetPosition(*args
, **kwargs
)
3501 def base_DoGetVirtualSize(*args
, **kwargs
):
3502 """base_DoGetVirtualSize(self) -> Size"""
3503 return _windows_
.PyPanel_base_DoGetVirtualSize(*args
, **kwargs
)
3505 def base_DoGetBestSize(*args
, **kwargs
):
3506 """base_DoGetBestSize(self) -> Size"""
3507 return _windows_
.PyPanel_base_DoGetBestSize(*args
, **kwargs
)
3509 def base_InitDialog(*args
, **kwargs
):
3510 """base_InitDialog(self)"""
3511 return _windows_
.PyPanel_base_InitDialog(*args
, **kwargs
)
3513 def base_TransferDataToWindow(*args
, **kwargs
):
3514 """base_TransferDataToWindow(self) -> bool"""
3515 return _windows_
.PyPanel_base_TransferDataToWindow(*args
, **kwargs
)
3517 def base_TransferDataFromWindow(*args
, **kwargs
):
3518 """base_TransferDataFromWindow(self) -> bool"""
3519 return _windows_
.PyPanel_base_TransferDataFromWindow(*args
, **kwargs
)
3521 def base_Validate(*args
, **kwargs
):
3522 """base_Validate(self) -> bool"""
3523 return _windows_
.PyPanel_base_Validate(*args
, **kwargs
)
3525 def base_AcceptsFocus(*args
, **kwargs
):
3526 """base_AcceptsFocus(self) -> bool"""
3527 return _windows_
.PyPanel_base_AcceptsFocus(*args
, **kwargs
)
3529 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3530 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3531 return _windows_
.PyPanel_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3533 def base_GetMaxSize(*args
, **kwargs
):
3534 """base_GetMaxSize(self) -> Size"""
3535 return _windows_
.PyPanel_base_GetMaxSize(*args
, **kwargs
)
3537 def base_AddChild(*args
, **kwargs
):
3538 """base_AddChild(self, Window child)"""
3539 return _windows_
.PyPanel_base_AddChild(*args
, **kwargs
)
3541 def base_RemoveChild(*args
, **kwargs
):
3542 """base_RemoveChild(self, Window child)"""
3543 return _windows_
.PyPanel_base_RemoveChild(*args
, **kwargs
)
3545 def base_ShouldInheritColours(*args
, **kwargs
):
3546 """base_ShouldInheritColours(self) -> bool"""
3547 return _windows_
.PyPanel_base_ShouldInheritColours(*args
, **kwargs
)
3549 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3550 """base_ApplyParentThemeBackground(self, Colour c)"""
3551 return _windows_
.PyPanel_base_ApplyParentThemeBackground(*args
, **kwargs
)
3553 def base_GetDefaultAttributes(*args
, **kwargs
):
3554 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3555 return _windows_
.PyPanel_base_GetDefaultAttributes(*args
, **kwargs
)
3558 class PyPanelPtr(PyPanel
):
3559 def __init__(self
, this
):
3561 if not hasattr(self
,"thisown"): self
.thisown
= 0
3562 self
.__class
__ = PyPanel
3563 _windows_
.PyPanel_swigregister(PyPanelPtr
)
3565 def PrePyPanel(*args
, **kwargs
):
3566 """PrePyPanel() -> PyPanel"""
3567 val
= _windows_
.new_PrePyPanel(*args
, **kwargs
)
3571 class PyScrolledWindow(ScrolledWindow
):
3573 return "<%s.%s; proxy of C++ wxPyScrolledWindow instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3574 def __init__(self
, *args
, **kwargs
):
3576 __init__(self, Window parent, int id=-1, Point pos=DefaultPosition,
3577 Size size=DefaultSize, long style=0, String name=PanelNameStr) -> PyScrolledWindow
3579 newobj
= _windows_
.new_PyScrolledWindow(*args
, **kwargs
)
3580 self
.this
= newobj
.this
3583 self
._setOORInfo
(self
); self
._setCallbackInfo
(self
, PyPanel
)
3585 def _setCallbackInfo(*args
, **kwargs
):
3586 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
3587 return _windows_
.PyScrolledWindow__setCallbackInfo(*args
, **kwargs
)
3589 def SetBestSize(*args
, **kwargs
):
3590 """SetBestSize(self, Size size)"""
3591 return _windows_
.PyScrolledWindow_SetBestSize(*args
, **kwargs
)
3593 def base_DoMoveWindow(*args
, **kwargs
):
3594 """base_DoMoveWindow(self, int x, int y, int width, int height)"""
3595 return _windows_
.PyScrolledWindow_base_DoMoveWindow(*args
, **kwargs
)
3597 def base_DoSetSize(*args
, **kwargs
):
3598 """base_DoSetSize(self, int x, int y, int width, int height, int sizeFlags=SIZE_AUTO)"""
3599 return _windows_
.PyScrolledWindow_base_DoSetSize(*args
, **kwargs
)
3601 def base_DoSetClientSize(*args
, **kwargs
):
3602 """base_DoSetClientSize(self, int width, int height)"""
3603 return _windows_
.PyScrolledWindow_base_DoSetClientSize(*args
, **kwargs
)
3605 def base_DoSetVirtualSize(*args
, **kwargs
):
3606 """base_DoSetVirtualSize(self, int x, int y)"""
3607 return _windows_
.PyScrolledWindow_base_DoSetVirtualSize(*args
, **kwargs
)
3609 def base_DoGetSize(*args
, **kwargs
):
3610 """base_DoGetSize() -> (width, height)"""
3611 return _windows_
.PyScrolledWindow_base_DoGetSize(*args
, **kwargs
)
3613 def base_DoGetClientSize(*args
, **kwargs
):
3614 """base_DoGetClientSize() -> (width, height)"""
3615 return _windows_
.PyScrolledWindow_base_DoGetClientSize(*args
, **kwargs
)
3617 def base_DoGetPosition(*args
, **kwargs
):
3618 """base_DoGetPosition() -> (x,y)"""
3619 return _windows_
.PyScrolledWindow_base_DoGetPosition(*args
, **kwargs
)
3621 def base_DoGetVirtualSize(*args
, **kwargs
):
3622 """base_DoGetVirtualSize(self) -> Size"""
3623 return _windows_
.PyScrolledWindow_base_DoGetVirtualSize(*args
, **kwargs
)
3625 def base_DoGetBestSize(*args
, **kwargs
):
3626 """base_DoGetBestSize(self) -> Size"""
3627 return _windows_
.PyScrolledWindow_base_DoGetBestSize(*args
, **kwargs
)
3629 def base_InitDialog(*args
, **kwargs
):
3630 """base_InitDialog(self)"""
3631 return _windows_
.PyScrolledWindow_base_InitDialog(*args
, **kwargs
)
3633 def base_TransferDataToWindow(*args
, **kwargs
):
3634 """base_TransferDataToWindow(self) -> bool"""
3635 return _windows_
.PyScrolledWindow_base_TransferDataToWindow(*args
, **kwargs
)
3637 def base_TransferDataFromWindow(*args
, **kwargs
):
3638 """base_TransferDataFromWindow(self) -> bool"""
3639 return _windows_
.PyScrolledWindow_base_TransferDataFromWindow(*args
, **kwargs
)
3641 def base_Validate(*args
, **kwargs
):
3642 """base_Validate(self) -> bool"""
3643 return _windows_
.PyScrolledWindow_base_Validate(*args
, **kwargs
)
3645 def base_AcceptsFocus(*args
, **kwargs
):
3646 """base_AcceptsFocus(self) -> bool"""
3647 return _windows_
.PyScrolledWindow_base_AcceptsFocus(*args
, **kwargs
)
3649 def base_AcceptsFocusFromKeyboard(*args
, **kwargs
):
3650 """base_AcceptsFocusFromKeyboard(self) -> bool"""
3651 return _windows_
.PyScrolledWindow_base_AcceptsFocusFromKeyboard(*args
, **kwargs
)
3653 def base_GetMaxSize(*args
, **kwargs
):
3654 """base_GetMaxSize(self) -> Size"""
3655 return _windows_
.PyScrolledWindow_base_GetMaxSize(*args
, **kwargs
)
3657 def base_AddChild(*args
, **kwargs
):
3658 """base_AddChild(self, Window child)"""
3659 return _windows_
.PyScrolledWindow_base_AddChild(*args
, **kwargs
)
3661 def base_RemoveChild(*args
, **kwargs
):
3662 """base_RemoveChild(self, Window child)"""
3663 return _windows_
.PyScrolledWindow_base_RemoveChild(*args
, **kwargs
)
3665 def base_ShouldInheritColours(*args
, **kwargs
):
3666 """base_ShouldInheritColours(self) -> bool"""
3667 return _windows_
.PyScrolledWindow_base_ShouldInheritColours(*args
, **kwargs
)
3669 def base_ApplyParentThemeBackground(*args
, **kwargs
):
3670 """base_ApplyParentThemeBackground(self, Colour c)"""
3671 return _windows_
.PyScrolledWindow_base_ApplyParentThemeBackground(*args
, **kwargs
)
3673 def base_GetDefaultAttributes(*args
, **kwargs
):
3674 """base_GetDefaultAttributes(self) -> VisualAttributes"""
3675 return _windows_
.PyScrolledWindow_base_GetDefaultAttributes(*args
, **kwargs
)
3678 class PyScrolledWindowPtr(PyScrolledWindow
):
3679 def __init__(self
, this
):
3681 if not hasattr(self
,"thisown"): self
.thisown
= 0
3682 self
.__class
__ = PyScrolledWindow
3683 _windows_
.PyScrolledWindow_swigregister(PyScrolledWindowPtr
)
3685 def PrePyScrolledWindow(*args
, **kwargs
):
3686 """PrePyScrolledWindow() -> PyScrolledWindow"""
3687 val
= _windows_
.new_PrePyScrolledWindow(*args
, **kwargs
)
3691 #---------------------------------------------------------------------------
3693 PRINT_MODE_NONE
= _windows_
.PRINT_MODE_NONE
3694 PRINT_MODE_PREVIEW
= _windows_
.PRINT_MODE_PREVIEW
3695 PRINT_MODE_FILE
= _windows_
.PRINT_MODE_FILE
3696 PRINT_MODE_PRINTER
= _windows_
.PRINT_MODE_PRINTER
3697 PRINT_MODE_STREAM
= _windows_
.PRINT_MODE_STREAM
3698 class PrintData(_core
.Object
):
3700 return "<%s.%s; proxy of C++ wxPrintData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3701 def __init__(self
, *args
):
3703 __init__(self) -> PrintData
3704 __init__(self, PrintData data) -> PrintData
3706 newobj
= _windows_
.new_PrintData(*args
)
3707 self
.this
= newobj
.this
3710 def __del__(self
, destroy
=_windows_
.delete_PrintData
):
3713 if self
.thisown
: destroy(self
)
3716 def GetNoCopies(*args
, **kwargs
):
3717 """GetNoCopies(self) -> int"""
3718 return _windows_
.PrintData_GetNoCopies(*args
, **kwargs
)
3720 def GetCollate(*args
, **kwargs
):
3721 """GetCollate(self) -> bool"""
3722 return _windows_
.PrintData_GetCollate(*args
, **kwargs
)
3724 def GetOrientation(*args
, **kwargs
):
3725 """GetOrientation(self) -> int"""
3726 return _windows_
.PrintData_GetOrientation(*args
, **kwargs
)
3728 def Ok(*args
, **kwargs
):
3729 """Ok(self) -> bool"""
3730 return _windows_
.PrintData_Ok(*args
, **kwargs
)
3732 def GetPrinterName(*args
, **kwargs
):
3733 """GetPrinterName(self) -> String"""
3734 return _windows_
.PrintData_GetPrinterName(*args
, **kwargs
)
3736 def GetColour(*args
, **kwargs
):
3737 """GetColour(self) -> bool"""
3738 return _windows_
.PrintData_GetColour(*args
, **kwargs
)
3740 def GetDuplex(*args
, **kwargs
):
3741 """GetDuplex(self) -> int"""
3742 return _windows_
.PrintData_GetDuplex(*args
, **kwargs
)
3744 def GetPaperId(*args
, **kwargs
):
3745 """GetPaperId(self) -> int"""
3746 return _windows_
.PrintData_GetPaperId(*args
, **kwargs
)
3748 def GetPaperSize(*args
, **kwargs
):
3749 """GetPaperSize(self) -> Size"""
3750 return _windows_
.PrintData_GetPaperSize(*args
, **kwargs
)
3752 def GetQuality(*args
, **kwargs
):
3753 """GetQuality(self) -> int"""
3754 return _windows_
.PrintData_GetQuality(*args
, **kwargs
)
3756 def SetNoCopies(*args
, **kwargs
):
3757 """SetNoCopies(self, int v)"""
3758 return _windows_
.PrintData_SetNoCopies(*args
, **kwargs
)
3760 def SetCollate(*args
, **kwargs
):
3761 """SetCollate(self, bool flag)"""
3762 return _windows_
.PrintData_SetCollate(*args
, **kwargs
)
3764 def SetOrientation(*args
, **kwargs
):
3765 """SetOrientation(self, int orient)"""
3766 return _windows_
.PrintData_SetOrientation(*args
, **kwargs
)
3768 def SetPrinterName(*args
, **kwargs
):
3769 """SetPrinterName(self, String name)"""
3770 return _windows_
.PrintData_SetPrinterName(*args
, **kwargs
)
3772 def SetColour(*args
, **kwargs
):
3773 """SetColour(self, bool colour)"""
3774 return _windows_
.PrintData_SetColour(*args
, **kwargs
)
3776 def SetDuplex(*args
, **kwargs
):
3777 """SetDuplex(self, int duplex)"""
3778 return _windows_
.PrintData_SetDuplex(*args
, **kwargs
)
3780 def SetPaperId(*args
, **kwargs
):
3781 """SetPaperId(self, int sizeId)"""
3782 return _windows_
.PrintData_SetPaperId(*args
, **kwargs
)
3784 def SetPaperSize(*args
, **kwargs
):
3785 """SetPaperSize(self, Size sz)"""
3786 return _windows_
.PrintData_SetPaperSize(*args
, **kwargs
)
3788 def SetQuality(*args
, **kwargs
):
3789 """SetQuality(self, int quality)"""
3790 return _windows_
.PrintData_SetQuality(*args
, **kwargs
)
3792 def GetPrinterCommand(*args
, **kwargs
):
3793 """GetPrinterCommand(self) -> String"""
3794 return _windows_
.PrintData_GetPrinterCommand(*args
, **kwargs
)
3796 def GetPrinterOptions(*args
, **kwargs
):
3797 """GetPrinterOptions(self) -> String"""
3798 return _windows_
.PrintData_GetPrinterOptions(*args
, **kwargs
)
3800 def GetPreviewCommand(*args
, **kwargs
):
3801 """GetPreviewCommand(self) -> String"""
3802 return _windows_
.PrintData_GetPreviewCommand(*args
, **kwargs
)
3804 def GetFilename(*args
, **kwargs
):
3805 """GetFilename(self) -> String"""
3806 return _windows_
.PrintData_GetFilename(*args
, **kwargs
)
3808 def GetFontMetricPath(*args
, **kwargs
):
3809 """GetFontMetricPath(self) -> String"""
3810 return _windows_
.PrintData_GetFontMetricPath(*args
, **kwargs
)
3812 def GetPrinterScaleX(*args
, **kwargs
):
3813 """GetPrinterScaleX(self) -> double"""
3814 return _windows_
.PrintData_GetPrinterScaleX(*args
, **kwargs
)
3816 def GetPrinterScaleY(*args
, **kwargs
):
3817 """GetPrinterScaleY(self) -> double"""
3818 return _windows_
.PrintData_GetPrinterScaleY(*args
, **kwargs
)
3820 def GetPrinterTranslateX(*args
, **kwargs
):
3821 """GetPrinterTranslateX(self) -> long"""
3822 return _windows_
.PrintData_GetPrinterTranslateX(*args
, **kwargs
)
3824 def GetPrinterTranslateY(*args
, **kwargs
):
3825 """GetPrinterTranslateY(self) -> long"""
3826 return _windows_
.PrintData_GetPrinterTranslateY(*args
, **kwargs
)
3828 def GetPrintMode(*args
, **kwargs
):
3829 """GetPrintMode(self) -> int"""
3830 return _windows_
.PrintData_GetPrintMode(*args
, **kwargs
)
3832 def SetPrinterCommand(*args
, **kwargs
):
3833 """SetPrinterCommand(self, String command)"""
3834 return _windows_
.PrintData_SetPrinterCommand(*args
, **kwargs
)
3836 def SetPrinterOptions(*args
, **kwargs
):
3837 """SetPrinterOptions(self, String options)"""
3838 return _windows_
.PrintData_SetPrinterOptions(*args
, **kwargs
)
3840 def SetPreviewCommand(*args
, **kwargs
):
3841 """SetPreviewCommand(self, String command)"""
3842 return _windows_
.PrintData_SetPreviewCommand(*args
, **kwargs
)
3844 def SetFilename(*args
, **kwargs
):
3845 """SetFilename(self, String filename)"""
3846 return _windows_
.PrintData_SetFilename(*args
, **kwargs
)
3848 def SetFontMetricPath(*args
, **kwargs
):
3849 """SetFontMetricPath(self, String path)"""
3850 return _windows_
.PrintData_SetFontMetricPath(*args
, **kwargs
)
3852 def SetPrinterScaleX(*args
, **kwargs
):
3853 """SetPrinterScaleX(self, double x)"""
3854 return _windows_
.PrintData_SetPrinterScaleX(*args
, **kwargs
)
3856 def SetPrinterScaleY(*args
, **kwargs
):
3857 """SetPrinterScaleY(self, double y)"""
3858 return _windows_
.PrintData_SetPrinterScaleY(*args
, **kwargs
)
3860 def SetPrinterScaling(*args
, **kwargs
):
3861 """SetPrinterScaling(self, double x, double y)"""
3862 return _windows_
.PrintData_SetPrinterScaling(*args
, **kwargs
)
3864 def SetPrinterTranslateX(*args
, **kwargs
):
3865 """SetPrinterTranslateX(self, long x)"""
3866 return _windows_
.PrintData_SetPrinterTranslateX(*args
, **kwargs
)
3868 def SetPrinterTranslateY(*args
, **kwargs
):
3869 """SetPrinterTranslateY(self, long y)"""
3870 return _windows_
.PrintData_SetPrinterTranslateY(*args
, **kwargs
)
3872 def SetPrinterTranslation(*args
, **kwargs
):
3873 """SetPrinterTranslation(self, long x, long y)"""
3874 return _windows_
.PrintData_SetPrinterTranslation(*args
, **kwargs
)
3876 def SetPrintMode(*args
, **kwargs
):
3877 """SetPrintMode(self, int printMode)"""
3878 return _windows_
.PrintData_SetPrintMode(*args
, **kwargs
)
3880 def GetOutputStream(*args
, **kwargs
):
3881 """GetOutputStream(self) -> OutputStream"""
3882 return _windows_
.PrintData_GetOutputStream(*args
, **kwargs
)
3884 def SetOutputStream(*args
, **kwargs
):
3885 """SetOutputStream(self, OutputStream outputstream)"""
3886 return _windows_
.PrintData_SetOutputStream(*args
, **kwargs
)
3888 def __nonzero__(self
): return self
.Ok()
3890 class PrintDataPtr(PrintData
):
3891 def __init__(self
, this
):
3893 if not hasattr(self
,"thisown"): self
.thisown
= 0
3894 self
.__class
__ = PrintData
3895 _windows_
.PrintData_swigregister(PrintDataPtr
)
3896 PrintoutTitleStr
= cvar
.PrintoutTitleStr
3897 PreviewCanvasNameStr
= cvar
.PreviewCanvasNameStr
3899 class PageSetupDialogData(_core
.Object
):
3901 return "<%s.%s; proxy of C++ wxPageSetupDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
3902 def __init__(self
, *args
):
3904 __init__(self) -> PageSetupDialogData
3905 __init__(self, PageSetupDialogData data) -> PageSetupDialogData
3907 newobj
= _windows_
.new_PageSetupDialogData(*args
)
3908 self
.this
= newobj
.this
3911 def __del__(self
, destroy
=_windows_
.delete_PageSetupDialogData
):
3914 if self
.thisown
: destroy(self
)
3917 def EnableHelp(*args
, **kwargs
):
3918 """EnableHelp(self, bool flag)"""
3919 return _windows_
.PageSetupDialogData_EnableHelp(*args
, **kwargs
)
3921 def EnableMargins(*args
, **kwargs
):
3922 """EnableMargins(self, bool flag)"""
3923 return _windows_
.PageSetupDialogData_EnableMargins(*args
, **kwargs
)
3925 def EnableOrientation(*args
, **kwargs
):
3926 """EnableOrientation(self, bool flag)"""
3927 return _windows_
.PageSetupDialogData_EnableOrientation(*args
, **kwargs
)
3929 def EnablePaper(*args
, **kwargs
):
3930 """EnablePaper(self, bool flag)"""
3931 return _windows_
.PageSetupDialogData_EnablePaper(*args
, **kwargs
)
3933 def EnablePrinter(*args
, **kwargs
):
3934 """EnablePrinter(self, bool flag)"""
3935 return _windows_
.PageSetupDialogData_EnablePrinter(*args
, **kwargs
)
3937 def GetDefaultMinMargins(*args
, **kwargs
):
3938 """GetDefaultMinMargins(self) -> bool"""
3939 return _windows_
.PageSetupDialogData_GetDefaultMinMargins(*args
, **kwargs
)
3941 def GetEnableMargins(*args
, **kwargs
):
3942 """GetEnableMargins(self) -> bool"""
3943 return _windows_
.PageSetupDialogData_GetEnableMargins(*args
, **kwargs
)
3945 def GetEnableOrientation(*args
, **kwargs
):
3946 """GetEnableOrientation(self) -> bool"""
3947 return _windows_
.PageSetupDialogData_GetEnableOrientation(*args
, **kwargs
)
3949 def GetEnablePaper(*args
, **kwargs
):
3950 """GetEnablePaper(self) -> bool"""
3951 return _windows_
.PageSetupDialogData_GetEnablePaper(*args
, **kwargs
)
3953 def GetEnablePrinter(*args
, **kwargs
):
3954 """GetEnablePrinter(self) -> bool"""
3955 return _windows_
.PageSetupDialogData_GetEnablePrinter(*args
, **kwargs
)
3957 def GetEnableHelp(*args
, **kwargs
):
3958 """GetEnableHelp(self) -> bool"""
3959 return _windows_
.PageSetupDialogData_GetEnableHelp(*args
, **kwargs
)
3961 def GetDefaultInfo(*args
, **kwargs
):
3962 """GetDefaultInfo(self) -> bool"""
3963 return _windows_
.PageSetupDialogData_GetDefaultInfo(*args
, **kwargs
)
3965 def GetMarginTopLeft(*args
, **kwargs
):
3966 """GetMarginTopLeft(self) -> Point"""
3967 return _windows_
.PageSetupDialogData_GetMarginTopLeft(*args
, **kwargs
)
3969 def GetMarginBottomRight(*args
, **kwargs
):
3970 """GetMarginBottomRight(self) -> Point"""
3971 return _windows_
.PageSetupDialogData_GetMarginBottomRight(*args
, **kwargs
)
3973 def GetMinMarginTopLeft(*args
, **kwargs
):
3974 """GetMinMarginTopLeft(self) -> Point"""
3975 return _windows_
.PageSetupDialogData_GetMinMarginTopLeft(*args
, **kwargs
)
3977 def GetMinMarginBottomRight(*args
, **kwargs
):
3978 """GetMinMarginBottomRight(self) -> Point"""
3979 return _windows_
.PageSetupDialogData_GetMinMarginBottomRight(*args
, **kwargs
)
3981 def GetPaperId(*args
, **kwargs
):
3982 """GetPaperId(self) -> int"""
3983 return _windows_
.PageSetupDialogData_GetPaperId(*args
, **kwargs
)
3985 def GetPaperSize(*args
, **kwargs
):
3986 """GetPaperSize(self) -> Size"""
3987 return _windows_
.PageSetupDialogData_GetPaperSize(*args
, **kwargs
)
3989 def GetPrintData(*args
, **kwargs
):
3990 """GetPrintData(self) -> PrintData"""
3991 return _windows_
.PageSetupDialogData_GetPrintData(*args
, **kwargs
)
3993 def Ok(*args
, **kwargs
):
3994 """Ok(self) -> bool"""
3995 return _windows_
.PageSetupDialogData_Ok(*args
, **kwargs
)
3997 def SetDefaultInfo(*args
, **kwargs
):
3998 """SetDefaultInfo(self, bool flag)"""
3999 return _windows_
.PageSetupDialogData_SetDefaultInfo(*args
, **kwargs
)
4001 def SetDefaultMinMargins(*args
, **kwargs
):
4002 """SetDefaultMinMargins(self, bool flag)"""
4003 return _windows_
.PageSetupDialogData_SetDefaultMinMargins(*args
, **kwargs
)
4005 def SetMarginTopLeft(*args
, **kwargs
):
4006 """SetMarginTopLeft(self, Point pt)"""
4007 return _windows_
.PageSetupDialogData_SetMarginTopLeft(*args
, **kwargs
)
4009 def SetMarginBottomRight(*args
, **kwargs
):
4010 """SetMarginBottomRight(self, Point pt)"""
4011 return _windows_
.PageSetupDialogData_SetMarginBottomRight(*args
, **kwargs
)
4013 def SetMinMarginTopLeft(*args
, **kwargs
):
4014 """SetMinMarginTopLeft(self, Point pt)"""
4015 return _windows_
.PageSetupDialogData_SetMinMarginTopLeft(*args
, **kwargs
)
4017 def SetMinMarginBottomRight(*args
, **kwargs
):
4018 """SetMinMarginBottomRight(self, Point pt)"""
4019 return _windows_
.PageSetupDialogData_SetMinMarginBottomRight(*args
, **kwargs
)
4021 def SetPaperId(*args
, **kwargs
):
4022 """SetPaperId(self, int id)"""
4023 return _windows_
.PageSetupDialogData_SetPaperId(*args
, **kwargs
)
4025 def SetPaperSize(*args
, **kwargs
):
4026 """SetPaperSize(self, Size size)"""
4027 return _windows_
.PageSetupDialogData_SetPaperSize(*args
, **kwargs
)
4029 def SetPrintData(*args
, **kwargs
):
4030 """SetPrintData(self, PrintData printData)"""
4031 return _windows_
.PageSetupDialogData_SetPrintData(*args
, **kwargs
)
4033 def __nonzero__(self
): return self
.Ok()
4035 class PageSetupDialogDataPtr(PageSetupDialogData
):
4036 def __init__(self
, this
):
4038 if not hasattr(self
,"thisown"): self
.thisown
= 0
4039 self
.__class
__ = PageSetupDialogData
4040 _windows_
.PageSetupDialogData_swigregister(PageSetupDialogDataPtr
)
4042 class PageSetupDialog(Dialog
):
4044 return "<%s.%s; proxy of C++ wxPageSetupDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4045 def __init__(self
, *args
, **kwargs
):
4046 """__init__(self, Window parent, PageSetupDialogData data=None) -> PageSetupDialog"""
4047 newobj
= _windows_
.new_PageSetupDialog(*args
, **kwargs
)
4048 self
.this
= newobj
.this
4051 self
._setOORInfo
(self
)
4053 def GetPageSetupData(*args
, **kwargs
):
4054 """GetPageSetupData(self) -> PageSetupDialogData"""
4055 return _windows_
.PageSetupDialog_GetPageSetupData(*args
, **kwargs
)
4057 def ShowModal(*args
, **kwargs
):
4058 """ShowModal(self) -> int"""
4059 return _windows_
.PageSetupDialog_ShowModal(*args
, **kwargs
)
4062 class PageSetupDialogPtr(PageSetupDialog
):
4063 def __init__(self
, this
):
4065 if not hasattr(self
,"thisown"): self
.thisown
= 0
4066 self
.__class
__ = PageSetupDialog
4067 _windows_
.PageSetupDialog_swigregister(PageSetupDialogPtr
)
4069 class PrintDialogData(_core
.Object
):
4071 return "<%s.%s; proxy of C++ wxPrintDialogData instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4072 def __init__(self
, *args
):
4074 __init__(self) -> PrintDialogData
4075 __init__(self, PrintData printData) -> PrintDialogData
4077 newobj
= _windows_
.new_PrintDialogData(*args
)
4078 self
.this
= newobj
.this
4081 def __del__(self
, destroy
=_windows_
.delete_PrintDialogData
):
4084 if self
.thisown
: destroy(self
)
4087 def GetFromPage(*args
, **kwargs
):
4088 """GetFromPage(self) -> int"""
4089 return _windows_
.PrintDialogData_GetFromPage(*args
, **kwargs
)
4091 def GetToPage(*args
, **kwargs
):
4092 """GetToPage(self) -> int"""
4093 return _windows_
.PrintDialogData_GetToPage(*args
, **kwargs
)
4095 def GetMinPage(*args
, **kwargs
):
4096 """GetMinPage(self) -> int"""
4097 return _windows_
.PrintDialogData_GetMinPage(*args
, **kwargs
)
4099 def GetMaxPage(*args
, **kwargs
):
4100 """GetMaxPage(self) -> int"""
4101 return _windows_
.PrintDialogData_GetMaxPage(*args
, **kwargs
)
4103 def GetNoCopies(*args
, **kwargs
):
4104 """GetNoCopies(self) -> int"""
4105 return _windows_
.PrintDialogData_GetNoCopies(*args
, **kwargs
)
4107 def GetAllPages(*args
, **kwargs
):
4108 """GetAllPages(self) -> bool"""
4109 return _windows_
.PrintDialogData_GetAllPages(*args
, **kwargs
)
4111 def GetSelection(*args
, **kwargs
):
4112 """GetSelection(self) -> bool"""
4113 return _windows_
.PrintDialogData_GetSelection(*args
, **kwargs
)
4115 def GetCollate(*args
, **kwargs
):
4116 """GetCollate(self) -> bool"""
4117 return _windows_
.PrintDialogData_GetCollate(*args
, **kwargs
)
4119 def GetPrintToFile(*args
, **kwargs
):
4120 """GetPrintToFile(self) -> bool"""
4121 return _windows_
.PrintDialogData_GetPrintToFile(*args
, **kwargs
)
4123 def GetSetupDialog(*args
, **kwargs
):
4124 """GetSetupDialog(self) -> bool"""
4125 return _windows_
.PrintDialogData_GetSetupDialog(*args
, **kwargs
)
4127 def SetFromPage(*args
, **kwargs
):
4128 """SetFromPage(self, int v)"""
4129 return _windows_
.PrintDialogData_SetFromPage(*args
, **kwargs
)
4131 def SetToPage(*args
, **kwargs
):
4132 """SetToPage(self, int v)"""
4133 return _windows_
.PrintDialogData_SetToPage(*args
, **kwargs
)
4135 def SetMinPage(*args
, **kwargs
):
4136 """SetMinPage(self, int v)"""
4137 return _windows_
.PrintDialogData_SetMinPage(*args
, **kwargs
)
4139 def SetMaxPage(*args
, **kwargs
):
4140 """SetMaxPage(self, int v)"""
4141 return _windows_
.PrintDialogData_SetMaxPage(*args
, **kwargs
)
4143 def SetNoCopies(*args
, **kwargs
):
4144 """SetNoCopies(self, int v)"""
4145 return _windows_
.PrintDialogData_SetNoCopies(*args
, **kwargs
)
4147 def SetAllPages(*args
, **kwargs
):
4148 """SetAllPages(self, bool flag)"""
4149 return _windows_
.PrintDialogData_SetAllPages(*args
, **kwargs
)
4151 def SetSelection(*args
, **kwargs
):
4152 """SetSelection(self, bool flag)"""
4153 return _windows_
.PrintDialogData_SetSelection(*args
, **kwargs
)
4155 def SetCollate(*args
, **kwargs
):
4156 """SetCollate(self, bool flag)"""
4157 return _windows_
.PrintDialogData_SetCollate(*args
, **kwargs
)
4159 def SetPrintToFile(*args
, **kwargs
):
4160 """SetPrintToFile(self, bool flag)"""
4161 return _windows_
.PrintDialogData_SetPrintToFile(*args
, **kwargs
)
4163 def SetSetupDialog(*args
, **kwargs
):
4164 """SetSetupDialog(self, bool flag)"""
4165 return _windows_
.PrintDialogData_SetSetupDialog(*args
, **kwargs
)
4167 def EnablePrintToFile(*args
, **kwargs
):
4168 """EnablePrintToFile(self, bool flag)"""
4169 return _windows_
.PrintDialogData_EnablePrintToFile(*args
, **kwargs
)
4171 def EnableSelection(*args
, **kwargs
):
4172 """EnableSelection(self, bool flag)"""
4173 return _windows_
.PrintDialogData_EnableSelection(*args
, **kwargs
)
4175 def EnablePageNumbers(*args
, **kwargs
):
4176 """EnablePageNumbers(self, bool flag)"""
4177 return _windows_
.PrintDialogData_EnablePageNumbers(*args
, **kwargs
)
4179 def EnableHelp(*args
, **kwargs
):
4180 """EnableHelp(self, bool flag)"""
4181 return _windows_
.PrintDialogData_EnableHelp(*args
, **kwargs
)
4183 def GetEnablePrintToFile(*args
, **kwargs
):
4184 """GetEnablePrintToFile(self) -> bool"""
4185 return _windows_
.PrintDialogData_GetEnablePrintToFile(*args
, **kwargs
)
4187 def GetEnableSelection(*args
, **kwargs
):
4188 """GetEnableSelection(self) -> bool"""
4189 return _windows_
.PrintDialogData_GetEnableSelection(*args
, **kwargs
)
4191 def GetEnablePageNumbers(*args
, **kwargs
):
4192 """GetEnablePageNumbers(self) -> bool"""
4193 return _windows_
.PrintDialogData_GetEnablePageNumbers(*args
, **kwargs
)
4195 def GetEnableHelp(*args
, **kwargs
):
4196 """GetEnableHelp(self) -> bool"""
4197 return _windows_
.PrintDialogData_GetEnableHelp(*args
, **kwargs
)
4199 def Ok(*args
, **kwargs
):
4200 """Ok(self) -> bool"""
4201 return _windows_
.PrintDialogData_Ok(*args
, **kwargs
)
4203 def GetPrintData(*args
, **kwargs
):
4204 """GetPrintData(self) -> PrintData"""
4205 return _windows_
.PrintDialogData_GetPrintData(*args
, **kwargs
)
4207 def SetPrintData(*args
, **kwargs
):
4208 """SetPrintData(self, PrintData printData)"""
4209 return _windows_
.PrintDialogData_SetPrintData(*args
, **kwargs
)
4211 def __nonzero__(self
): return self
.Ok()
4213 class PrintDialogDataPtr(PrintDialogData
):
4214 def __init__(self
, this
):
4216 if not hasattr(self
,"thisown"): self
.thisown
= 0
4217 self
.__class
__ = PrintDialogData
4218 _windows_
.PrintDialogData_swigregister(PrintDialogDataPtr
)
4220 class PrintDialog(Dialog
):
4222 return "<%s.%s; proxy of C++ wxPrintDialog instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4223 def __init__(self
, *args
, **kwargs
):
4224 """__init__(self, Window parent, PrintDialogData data=None) -> PrintDialog"""
4225 newobj
= _windows_
.new_PrintDialog(*args
, **kwargs
)
4226 self
.this
= newobj
.this
4229 self
._setOORInfo
(self
)
4231 def GetPrintDialogData(*args
, **kwargs
):
4232 """GetPrintDialogData(self) -> PrintDialogData"""
4233 return _windows_
.PrintDialog_GetPrintDialogData(*args
, **kwargs
)
4235 def GetPrintDC(*args
, **kwargs
):
4236 """GetPrintDC(self) -> DC"""
4237 return _windows_
.PrintDialog_GetPrintDC(*args
, **kwargs
)
4239 def ShowModal(*args
, **kwargs
):
4240 """ShowModal(self) -> int"""
4241 return _windows_
.PrintDialog_ShowModal(*args
, **kwargs
)
4244 class PrintDialogPtr(PrintDialog
):
4245 def __init__(self
, this
):
4247 if not hasattr(self
,"thisown"): self
.thisown
= 0
4248 self
.__class
__ = PrintDialog
4249 _windows_
.PrintDialog_swigregister(PrintDialogPtr
)
4251 PRINTER_NO_ERROR
= _windows_
.PRINTER_NO_ERROR
4252 PRINTER_CANCELLED
= _windows_
.PRINTER_CANCELLED
4253 PRINTER_ERROR
= _windows_
.PRINTER_ERROR
4254 class Printer(_core
.Object
):
4256 return "<%s.%s; proxy of C++ wxPrinter instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4257 def __init__(self
, *args
, **kwargs
):
4258 """__init__(self, PrintDialogData data=None) -> Printer"""
4259 newobj
= _windows_
.new_Printer(*args
, **kwargs
)
4260 self
.this
= newobj
.this
4263 def __del__(self
, destroy
=_windows_
.delete_Printer
):
4266 if self
.thisown
: destroy(self
)
4269 def CreateAbortWindow(*args
, **kwargs
):
4270 """CreateAbortWindow(self, Window parent, Printout printout)"""
4271 return _windows_
.Printer_CreateAbortWindow(*args
, **kwargs
)
4273 def GetPrintDialogData(*args
, **kwargs
):
4274 """GetPrintDialogData(self) -> PrintDialogData"""
4275 return _windows_
.Printer_GetPrintDialogData(*args
, **kwargs
)
4277 def Print(*args
, **kwargs
):
4278 """Print(self, Window parent, Printout printout, int prompt=True) -> bool"""
4279 return _windows_
.Printer_Print(*args
, **kwargs
)
4281 def PrintDialog(*args
, **kwargs
):
4282 """PrintDialog(self, Window parent) -> DC"""
4283 return _windows_
.Printer_PrintDialog(*args
, **kwargs
)
4285 def ReportError(*args
, **kwargs
):
4286 """ReportError(self, Window parent, Printout printout, String message)"""
4287 return _windows_
.Printer_ReportError(*args
, **kwargs
)
4289 def Setup(*args
, **kwargs
):
4290 """Setup(self, Window parent) -> bool"""
4291 return _windows_
.Printer_Setup(*args
, **kwargs
)
4293 def GetAbort(*args
, **kwargs
):
4294 """GetAbort(self) -> bool"""
4295 return _windows_
.Printer_GetAbort(*args
, **kwargs
)
4297 def GetLastError(*args
, **kwargs
):
4298 """GetLastError() -> int"""
4299 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4301 GetLastError
= staticmethod(GetLastError
)
4303 class PrinterPtr(Printer
):
4304 def __init__(self
, this
):
4306 if not hasattr(self
,"thisown"): self
.thisown
= 0
4307 self
.__class
__ = Printer
4308 _windows_
.Printer_swigregister(PrinterPtr
)
4310 def Printer_GetLastError(*args
, **kwargs
):
4311 """Printer_GetLastError() -> int"""
4312 return _windows_
.Printer_GetLastError(*args
, **kwargs
)
4314 class Printout(_core
.Object
):
4316 return "<%s.%s; proxy of C++ wxPyPrintout instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4317 def __init__(self
, *args
, **kwargs
):
4318 """__init__(self, String title=PrintoutTitleStr) -> Printout"""
4319 newobj
= _windows_
.new_Printout(*args
, **kwargs
)
4320 self
.this
= newobj
.this
4323 self
._setCallbackInfo
(self
, Printout
)
4325 def _setCallbackInfo(*args
, **kwargs
):
4326 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4327 return _windows_
.Printout__setCallbackInfo(*args
, **kwargs
)
4329 def GetTitle(*args
, **kwargs
):
4330 """GetTitle(self) -> String"""
4331 return _windows_
.Printout_GetTitle(*args
, **kwargs
)
4333 def GetDC(*args
, **kwargs
):
4334 """GetDC(self) -> DC"""
4335 return _windows_
.Printout_GetDC(*args
, **kwargs
)
4337 def SetDC(*args
, **kwargs
):
4338 """SetDC(self, DC dc)"""
4339 return _windows_
.Printout_SetDC(*args
, **kwargs
)
4341 def SetPageSizePixels(*args
, **kwargs
):
4342 """SetPageSizePixels(self, int w, int h)"""
4343 return _windows_
.Printout_SetPageSizePixels(*args
, **kwargs
)
4345 def GetPageSizePixels(*args
, **kwargs
):
4346 """GetPageSizePixels() -> (w, h)"""
4347 return _windows_
.Printout_GetPageSizePixels(*args
, **kwargs
)
4349 def SetPageSizeMM(*args
, **kwargs
):
4350 """SetPageSizeMM(self, int w, int h)"""
4351 return _windows_
.Printout_SetPageSizeMM(*args
, **kwargs
)
4353 def GetPageSizeMM(*args
, **kwargs
):
4354 """GetPageSizeMM() -> (w, h)"""
4355 return _windows_
.Printout_GetPageSizeMM(*args
, **kwargs
)
4357 def SetPPIScreen(*args
, **kwargs
):
4358 """SetPPIScreen(self, int x, int y)"""
4359 return _windows_
.Printout_SetPPIScreen(*args
, **kwargs
)
4361 def GetPPIScreen(*args
, **kwargs
):
4362 """GetPPIScreen() -> (x,y)"""
4363 return _windows_
.Printout_GetPPIScreen(*args
, **kwargs
)
4365 def SetPPIPrinter(*args
, **kwargs
):
4366 """SetPPIPrinter(self, int x, int y)"""
4367 return _windows_
.Printout_SetPPIPrinter(*args
, **kwargs
)
4369 def GetPPIPrinter(*args
, **kwargs
):
4370 """GetPPIPrinter() -> (x,y)"""
4371 return _windows_
.Printout_GetPPIPrinter(*args
, **kwargs
)
4373 def IsPreview(*args
, **kwargs
):
4374 """IsPreview(self) -> bool"""
4375 return _windows_
.Printout_IsPreview(*args
, **kwargs
)
4377 def SetIsPreview(*args
, **kwargs
):
4378 """SetIsPreview(self, bool p)"""
4379 return _windows_
.Printout_SetIsPreview(*args
, **kwargs
)
4381 def base_OnBeginDocument(*args
, **kwargs
):
4382 """base_OnBeginDocument(self, int startPage, int endPage) -> bool"""
4383 return _windows_
.Printout_base_OnBeginDocument(*args
, **kwargs
)
4385 def base_OnEndDocument(*args
, **kwargs
):
4386 """base_OnEndDocument(self)"""
4387 return _windows_
.Printout_base_OnEndDocument(*args
, **kwargs
)
4389 def base_OnBeginPrinting(*args
, **kwargs
):
4390 """base_OnBeginPrinting(self)"""
4391 return _windows_
.Printout_base_OnBeginPrinting(*args
, **kwargs
)
4393 def base_OnEndPrinting(*args
, **kwargs
):
4394 """base_OnEndPrinting(self)"""
4395 return _windows_
.Printout_base_OnEndPrinting(*args
, **kwargs
)
4397 def base_OnPreparePrinting(*args
, **kwargs
):
4398 """base_OnPreparePrinting(self)"""
4399 return _windows_
.Printout_base_OnPreparePrinting(*args
, **kwargs
)
4401 def base_HasPage(*args
, **kwargs
):
4402 """base_HasPage(self, int page) -> bool"""
4403 return _windows_
.Printout_base_HasPage(*args
, **kwargs
)
4405 def base_GetPageInfo(*args
, **kwargs
):
4406 """base_GetPageInfo() -> (minPage, maxPage, pageFrom, pageTo)"""
4407 return _windows_
.Printout_base_GetPageInfo(*args
, **kwargs
)
4410 class PrintoutPtr(Printout
):
4411 def __init__(self
, this
):
4413 if not hasattr(self
,"thisown"): self
.thisown
= 0
4414 self
.__class
__ = Printout
4415 _windows_
.Printout_swigregister(PrintoutPtr
)
4417 class PreviewCanvas(ScrolledWindow
):
4419 return "<%s.%s; proxy of C++ wxPreviewCanvas instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4420 def __init__(self
, *args
, **kwargs
):
4422 __init__(self, PrintPreview preview, Window parent, Point pos=DefaultPosition,
4423 Size size=DefaultSize, long style=0,
4424 String name=PreviewCanvasNameStr) -> PreviewCanvas
4426 newobj
= _windows_
.new_PreviewCanvas(*args
, **kwargs
)
4427 self
.this
= newobj
.this
4430 self
._setOORInfo
(self
)
4433 class PreviewCanvasPtr(PreviewCanvas
):
4434 def __init__(self
, this
):
4436 if not hasattr(self
,"thisown"): self
.thisown
= 0
4437 self
.__class
__ = PreviewCanvas
4438 _windows_
.PreviewCanvas_swigregister(PreviewCanvasPtr
)
4440 class PreviewFrame(Frame
):
4442 return "<%s.%s; proxy of C++ wxPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4443 def __init__(self
, *args
, **kwargs
):
4445 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4446 Size size=DefaultSize,
4447 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PreviewFrame
4449 newobj
= _windows_
.new_PreviewFrame(*args
, **kwargs
)
4450 self
.this
= newobj
.this
4453 self
._setOORInfo
(self
)
4455 def Initialize(*args
, **kwargs
):
4456 """Initialize(self)"""
4457 return _windows_
.PreviewFrame_Initialize(*args
, **kwargs
)
4459 def CreateControlBar(*args
, **kwargs
):
4460 """CreateControlBar(self)"""
4461 return _windows_
.PreviewFrame_CreateControlBar(*args
, **kwargs
)
4463 def CreateCanvas(*args
, **kwargs
):
4464 """CreateCanvas(self)"""
4465 return _windows_
.PreviewFrame_CreateCanvas(*args
, **kwargs
)
4467 def GetControlBar(*args
, **kwargs
):
4468 """GetControlBar(self) -> PreviewControlBar"""
4469 return _windows_
.PreviewFrame_GetControlBar(*args
, **kwargs
)
4472 class PreviewFramePtr(PreviewFrame
):
4473 def __init__(self
, this
):
4475 if not hasattr(self
,"thisown"): self
.thisown
= 0
4476 self
.__class
__ = PreviewFrame
4477 _windows_
.PreviewFrame_swigregister(PreviewFramePtr
)
4479 PREVIEW_PRINT
= _windows_
.PREVIEW_PRINT
4480 PREVIEW_PREVIOUS
= _windows_
.PREVIEW_PREVIOUS
4481 PREVIEW_NEXT
= _windows_
.PREVIEW_NEXT
4482 PREVIEW_ZOOM
= _windows_
.PREVIEW_ZOOM
4483 PREVIEW_FIRST
= _windows_
.PREVIEW_FIRST
4484 PREVIEW_LAST
= _windows_
.PREVIEW_LAST
4485 PREVIEW_GOTO
= _windows_
.PREVIEW_GOTO
4486 PREVIEW_DEFAULT
= _windows_
.PREVIEW_DEFAULT
4487 ID_PREVIEW_CLOSE
= _windows_
.ID_PREVIEW_CLOSE
4488 ID_PREVIEW_NEXT
= _windows_
.ID_PREVIEW_NEXT
4489 ID_PREVIEW_PREVIOUS
= _windows_
.ID_PREVIEW_PREVIOUS
4490 ID_PREVIEW_PRINT
= _windows_
.ID_PREVIEW_PRINT
4491 ID_PREVIEW_ZOOM
= _windows_
.ID_PREVIEW_ZOOM
4492 ID_PREVIEW_FIRST
= _windows_
.ID_PREVIEW_FIRST
4493 ID_PREVIEW_LAST
= _windows_
.ID_PREVIEW_LAST
4494 ID_PREVIEW_GOTO
= _windows_
.ID_PREVIEW_GOTO
4495 class PreviewControlBar(Panel
):
4497 return "<%s.%s; proxy of C++ wxPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4498 def __init__(self
, *args
, **kwargs
):
4500 __init__(self, PrintPreview preview, long buttons, Window parent,
4501 Point pos=DefaultPosition, Size size=DefaultSize,
4502 long style=TAB_TRAVERSAL, String name=PanelNameStr) -> PreviewControlBar
4504 newobj
= _windows_
.new_PreviewControlBar(*args
, **kwargs
)
4505 self
.this
= newobj
.this
4508 self
._setOORInfo
(self
)
4510 def GetZoomControl(*args
, **kwargs
):
4511 """GetZoomControl(self) -> int"""
4512 return _windows_
.PreviewControlBar_GetZoomControl(*args
, **kwargs
)
4514 def SetZoomControl(*args
, **kwargs
):
4515 """SetZoomControl(self, int zoom)"""
4516 return _windows_
.PreviewControlBar_SetZoomControl(*args
, **kwargs
)
4518 def GetPrintPreview(*args
, **kwargs
):
4519 """GetPrintPreview(self) -> PrintPreview"""
4520 return _windows_
.PreviewControlBar_GetPrintPreview(*args
, **kwargs
)
4522 def OnNext(*args
, **kwargs
):
4524 return _windows_
.PreviewControlBar_OnNext(*args
, **kwargs
)
4526 def OnPrevious(*args
, **kwargs
):
4527 """OnPrevious(self)"""
4528 return _windows_
.PreviewControlBar_OnPrevious(*args
, **kwargs
)
4530 def OnFirst(*args
, **kwargs
):
4532 return _windows_
.PreviewControlBar_OnFirst(*args
, **kwargs
)
4534 def OnLast(*args
, **kwargs
):
4536 return _windows_
.PreviewControlBar_OnLast(*args
, **kwargs
)
4538 def OnGoto(*args
, **kwargs
):
4540 return _windows_
.PreviewControlBar_OnGoto(*args
, **kwargs
)
4543 class PreviewControlBarPtr(PreviewControlBar
):
4544 def __init__(self
, this
):
4546 if not hasattr(self
,"thisown"): self
.thisown
= 0
4547 self
.__class
__ = PreviewControlBar
4548 _windows_
.PreviewControlBar_swigregister(PreviewControlBarPtr
)
4550 class PrintPreview(_core
.Object
):
4552 return "<%s.%s; proxy of C++ wxPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4553 def __init__(self
, *args
):
4555 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PrintPreview
4556 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PrintPreview
4558 newobj
= _windows_
.new_PrintPreview(*args
)
4559 self
.this
= newobj
.this
4562 def SetCurrentPage(*args
, **kwargs
):
4563 """SetCurrentPage(self, int pageNum) -> bool"""
4564 return _windows_
.PrintPreview_SetCurrentPage(*args
, **kwargs
)
4566 def GetCurrentPage(*args
, **kwargs
):
4567 """GetCurrentPage(self) -> int"""
4568 return _windows_
.PrintPreview_GetCurrentPage(*args
, **kwargs
)
4570 def SetPrintout(*args
, **kwargs
):
4571 """SetPrintout(self, Printout printout)"""
4572 return _windows_
.PrintPreview_SetPrintout(*args
, **kwargs
)
4574 def GetPrintout(*args
, **kwargs
):
4575 """GetPrintout(self) -> Printout"""
4576 return _windows_
.PrintPreview_GetPrintout(*args
, **kwargs
)
4578 def GetPrintoutForPrinting(*args
, **kwargs
):
4579 """GetPrintoutForPrinting(self) -> Printout"""
4580 return _windows_
.PrintPreview_GetPrintoutForPrinting(*args
, **kwargs
)
4582 def SetFrame(*args
, **kwargs
):
4583 """SetFrame(self, Frame frame)"""
4584 return _windows_
.PrintPreview_SetFrame(*args
, **kwargs
)
4586 def SetCanvas(*args
, **kwargs
):
4587 """SetCanvas(self, PreviewCanvas canvas)"""
4588 return _windows_
.PrintPreview_SetCanvas(*args
, **kwargs
)
4590 def GetFrame(*args
, **kwargs
):
4591 """GetFrame(self) -> Frame"""
4592 return _windows_
.PrintPreview_GetFrame(*args
, **kwargs
)
4594 def GetCanvas(*args
, **kwargs
):
4595 """GetCanvas(self) -> PreviewCanvas"""
4596 return _windows_
.PrintPreview_GetCanvas(*args
, **kwargs
)
4598 def PaintPage(*args
, **kwargs
):
4599 """PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4600 return _windows_
.PrintPreview_PaintPage(*args
, **kwargs
)
4602 def DrawBlankPage(*args
, **kwargs
):
4603 """DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4604 return _windows_
.PrintPreview_DrawBlankPage(*args
, **kwargs
)
4606 def RenderPage(*args
, **kwargs
):
4607 """RenderPage(self, int pageNum) -> bool"""
4608 return _windows_
.PrintPreview_RenderPage(*args
, **kwargs
)
4610 def AdjustScrollbars(*args
, **kwargs
):
4611 """AdjustScrollbars(self, PreviewCanvas canvas)"""
4612 return _windows_
.PrintPreview_AdjustScrollbars(*args
, **kwargs
)
4614 def GetPrintDialogData(*args
, **kwargs
):
4615 """GetPrintDialogData(self) -> PrintDialogData"""
4616 return _windows_
.PrintPreview_GetPrintDialogData(*args
, **kwargs
)
4618 def SetZoom(*args
, **kwargs
):
4619 """SetZoom(self, int percent)"""
4620 return _windows_
.PrintPreview_SetZoom(*args
, **kwargs
)
4622 def GetZoom(*args
, **kwargs
):
4623 """GetZoom(self) -> int"""
4624 return _windows_
.PrintPreview_GetZoom(*args
, **kwargs
)
4626 def GetMaxPage(*args
, **kwargs
):
4627 """GetMaxPage(self) -> int"""
4628 return _windows_
.PrintPreview_GetMaxPage(*args
, **kwargs
)
4630 def GetMinPage(*args
, **kwargs
):
4631 """GetMinPage(self) -> int"""
4632 return _windows_
.PrintPreview_GetMinPage(*args
, **kwargs
)
4634 def Ok(*args
, **kwargs
):
4635 """Ok(self) -> bool"""
4636 return _windows_
.PrintPreview_Ok(*args
, **kwargs
)
4638 def SetOk(*args
, **kwargs
):
4639 """SetOk(self, bool ok)"""
4640 return _windows_
.PrintPreview_SetOk(*args
, **kwargs
)
4642 def Print(*args
, **kwargs
):
4643 """Print(self, bool interactive) -> bool"""
4644 return _windows_
.PrintPreview_Print(*args
, **kwargs
)
4646 def DetermineScaling(*args
, **kwargs
):
4647 """DetermineScaling(self)"""
4648 return _windows_
.PrintPreview_DetermineScaling(*args
, **kwargs
)
4650 def __nonzero__(self
): return self
.Ok()
4652 class PrintPreviewPtr(PrintPreview
):
4653 def __init__(self
, this
):
4655 if not hasattr(self
,"thisown"): self
.thisown
= 0
4656 self
.__class
__ = PrintPreview
4657 _windows_
.PrintPreview_swigregister(PrintPreviewPtr
)
4659 class PyPrintPreview(PrintPreview
):
4661 return "<%s.%s; proxy of C++ wxPyPrintPreview instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4662 def __init__(self
, *args
):
4664 __init__(self, Printout printout, Printout printoutForPrinting, PrintDialogData data=None) -> PyPrintPreview
4665 __init__(self, Printout printout, Printout printoutForPrinting, PrintData data) -> PyPrintPreview
4667 newobj
= _windows_
.new_PyPrintPreview(*args
)
4668 self
.this
= newobj
.this
4671 self
._setCallbackInfo
(self
, PyPrintPreview
)
4673 def _setCallbackInfo(*args
, **kwargs
):
4674 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4675 return _windows_
.PyPrintPreview__setCallbackInfo(*args
, **kwargs
)
4677 def base_SetCurrentPage(*args
, **kwargs
):
4678 """base_SetCurrentPage(self, int pageNum) -> bool"""
4679 return _windows_
.PyPrintPreview_base_SetCurrentPage(*args
, **kwargs
)
4681 def base_PaintPage(*args
, **kwargs
):
4682 """base_PaintPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4683 return _windows_
.PyPrintPreview_base_PaintPage(*args
, **kwargs
)
4685 def base_DrawBlankPage(*args
, **kwargs
):
4686 """base_DrawBlankPage(self, PreviewCanvas canvas, DC dc) -> bool"""
4687 return _windows_
.PyPrintPreview_base_DrawBlankPage(*args
, **kwargs
)
4689 def base_RenderPage(*args
, **kwargs
):
4690 """base_RenderPage(self, int pageNum) -> bool"""
4691 return _windows_
.PyPrintPreview_base_RenderPage(*args
, **kwargs
)
4693 def base_SetZoom(*args
, **kwargs
):
4694 """base_SetZoom(self, int percent)"""
4695 return _windows_
.PyPrintPreview_base_SetZoom(*args
, **kwargs
)
4697 def base_Print(*args
, **kwargs
):
4698 """base_Print(self, bool interactive) -> bool"""
4699 return _windows_
.PyPrintPreview_base_Print(*args
, **kwargs
)
4701 def base_DetermineScaling(*args
, **kwargs
):
4702 """base_DetermineScaling(self)"""
4703 return _windows_
.PyPrintPreview_base_DetermineScaling(*args
, **kwargs
)
4706 class PyPrintPreviewPtr(PyPrintPreview
):
4707 def __init__(self
, this
):
4709 if not hasattr(self
,"thisown"): self
.thisown
= 0
4710 self
.__class
__ = PyPrintPreview
4711 _windows_
.PyPrintPreview_swigregister(PyPrintPreviewPtr
)
4713 class PyPreviewFrame(PreviewFrame
):
4715 return "<%s.%s; proxy of C++ wxPyPreviewFrame instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4716 def __init__(self
, *args
, **kwargs
):
4718 __init__(self, PrintPreview preview, Frame parent, String title, Point pos=DefaultPosition,
4719 Size size=DefaultSize,
4720 long style=DEFAULT_FRAME_STYLE, String name=FrameNameStr) -> PyPreviewFrame
4722 newobj
= _windows_
.new_PyPreviewFrame(*args
, **kwargs
)
4723 self
.this
= newobj
.this
4726 self
._setCallbackInfo
(self
, PyPreviewFrame
); self
._setOORInfo
(self
)
4728 def _setCallbackInfo(*args
, **kwargs
):
4729 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4730 return _windows_
.PyPreviewFrame__setCallbackInfo(*args
, **kwargs
)
4732 def SetPreviewCanvas(*args
, **kwargs
):
4733 """SetPreviewCanvas(self, PreviewCanvas canvas)"""
4734 return _windows_
.PyPreviewFrame_SetPreviewCanvas(*args
, **kwargs
)
4736 def SetControlBar(*args
, **kwargs
):
4737 """SetControlBar(self, PreviewControlBar bar)"""
4738 return _windows_
.PyPreviewFrame_SetControlBar(*args
, **kwargs
)
4740 def base_Initialize(*args
, **kwargs
):
4741 """base_Initialize(self)"""
4742 return _windows_
.PyPreviewFrame_base_Initialize(*args
, **kwargs
)
4744 def base_CreateCanvas(*args
, **kwargs
):
4745 """base_CreateCanvas(self)"""
4746 return _windows_
.PyPreviewFrame_base_CreateCanvas(*args
, **kwargs
)
4748 def base_CreateControlBar(*args
, **kwargs
):
4749 """base_CreateControlBar(self)"""
4750 return _windows_
.PyPreviewFrame_base_CreateControlBar(*args
, **kwargs
)
4753 class PyPreviewFramePtr(PyPreviewFrame
):
4754 def __init__(self
, this
):
4756 if not hasattr(self
,"thisown"): self
.thisown
= 0
4757 self
.__class
__ = PyPreviewFrame
4758 _windows_
.PyPreviewFrame_swigregister(PyPreviewFramePtr
)
4760 class PyPreviewControlBar(PreviewControlBar
):
4762 return "<%s.%s; proxy of C++ wxPyPreviewControlBar instance at %s>" % (self
.__class
__.__module
__, self
.__class
__.__name
__, self
.this
,)
4763 def __init__(self
, *args
, **kwargs
):
4765 __init__(self, PrintPreview preview, long buttons, Window parent,
4766 Point pos=DefaultPosition, Size size=DefaultSize,
4767 long style=0, String name=PanelNameStr) -> PyPreviewControlBar
4769 newobj
= _windows_
.new_PyPreviewControlBar(*args
, **kwargs
)
4770 self
.this
= newobj
.this
4773 self
._setCallbackInfo
(self
, PyPreviewControlBar
); self
._setOORInfo
(self
)
4775 def _setCallbackInfo(*args
, **kwargs
):
4776 """_setCallbackInfo(self, PyObject self, PyObject _class)"""
4777 return _windows_
.PyPreviewControlBar__setCallbackInfo(*args
, **kwargs
)
4779 def SetPrintPreview(*args
, **kwargs
):
4780 """SetPrintPreview(self, PrintPreview preview)"""
4781 return _windows_
.PyPreviewControlBar_SetPrintPreview(*args
, **kwargs
)
4783 def base_CreateButtons(*args
, **kwargs
):
4784 """base_CreateButtons(self)"""
4785 return _windows_
.PyPreviewControlBar_base_CreateButtons(*args
, **kwargs
)
4787 def base_SetZoomControl(*args
, **kwargs
):
4788 """base_SetZoomControl(self, int zoom)"""
4789 return _windows_
.PyPreviewControlBar_base_SetZoomControl(*args
, **kwargs
)
4792 class PyPreviewControlBarPtr(PyPreviewControlBar
):
4793 def __init__(self
, this
):
4795 if not hasattr(self
,"thisown"): self
.thisown
= 0
4796 self
.__class
__ = PyPreviewControlBar
4797 _windows_
.PyPreviewControlBar_swigregister(PyPreviewControlBarPtr
)